Revise DejaGnu patch submission guidelines.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4be5d520
MC
12003-08-22 Michael Chastain <mec@shout.net>
2
3 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
4 Add lines for files in gdb/testsuite/gdb.cp/* that are
5 still not 8.3 unique.
6
7ed85d26
DJ
72003-08-22 Daniel Jacobowitz <drow@mvista.com>
8
9 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
10 TYPE_VPTR_FIELDNO is valid.
11
eb0d3137
MK
122003-08-19 Mark Kettenis <kettenis@gnu.org>
13
14 * utils.c (set_width_command): Remove prototypes.
15 (set_screen_size): New prototype.
16 (init_page_info): Simplify by fetching the screen size from
17 Readline. Call set_screen_size.
18 (set_screen_size): New function.
19 (set_width): Add missing whitespace in comment.
20 (set_width_command): Call set_screen_size.
21 (set_height_command): New function.
22 (initialize_utils): Fix formatting. Make "set height" command
23 call set_height_command. Remove redundant code that turns off
24 pagination if output isn't a terminal. Remove redundant call to
25 set_width_command.
26
7e6d0ac8
MK
272003-08-22 Mark Kettenis <kettenis@gnu.org>
28
3567a8ea
MK
29 * sparc64-tdep.h (sparc64_regnum): Fix comment.
30 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
31 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
32 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
33 `case' keyword.
34 (sparc64_register_info): Give the reister with number
35 SPARC64_STATE_REGNUM a name.
36 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
37 %asi and %ccr.
38 (sparc64_push_dummy_call): Take BIAS into account when checking
39 stcak alignment.
40 (sparc_software_single_step): Remove assertions that check whether
41 NPC and NNPC were zero.
42 (sparc_supply_rwindow): Make public. Merge functionality with
43 sparc64_supply_rwindow.
44 (sparc_fill_rwindow): Make public. Merge functionality with
45 sparc64_fill_rwindow.
46 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
47 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
48 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
49 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
50 sparc_supply_rwindow instead of sparc64_supply_rwindow.
51
7e6d0ac8
MK
52 * reggroups.c: Add whitespace after declarations of local
53 variables in functions.
54
72e5f484
MC
552003-08-21 Michael Chastain <mec@shout.net>
56
57 * gdbtypes.h: Change array bound type from an int to enum.
58
435ac228
AC
592003-08-21 Andrew Cagney <cagney@redhat.com>
60
61 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
62 * config/sparc/tm-sparc.h: Ditto.
63 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
64 unconditionally.
65 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
66
0d0e1a63
MK
672003-07-13 Mark Kettenis <kettenis@gnu.org>
68
69 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
70 (register_objfile_data, set_objfile_data, objfile_data): New
71 prototypes.
72 * objfiles.c (objfile_alloc_data, objfile_free_data): New
73 prototypes.
74 (allocate_objfile): Call objfile_alloc_data.
75 (free_objfile): Call objfile_free_data.
76 (struct objfile_data): New.
77 (struct objfile_data_registration): New.
78 (struct objfile_data_registry): New.
79 (objfile_data_registry): New variable.
80 (register_objfile_data): New function.
81 (objfile_alloc_data, objfile_free_data): New functions.
82 (set_objfile_data, objfile_data): New functions.
83 * dwarf2-frame.c (dwarf2_frame_data): New variable.
84 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
85 (_initialize_dwarf2_frame): New function and prototype.
86
d90cf509
AC
872003-08-21 Andrew Cagney <cagney@redhat.com>
88
89 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
90 a specific architecture.
91 * arch-utils.h (set_architecture_from_arch_mach): Delete
92 declaration.
93 (target_architecture_hook): Delete declaration.
94 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
95 (default_float_format): Assume GDB_MULTI_ARCH.
96 (default_double_format): Assume GDB_MULTI_ARCH.
97 (set_endian_from_file): Delete function.
98 (arch_ok): Delete function.
99 (set_arch): Delete function.
100 (set_architecture_from_arch_mach): Delete function.
101 (set_architecture_from_file): Delete function.
102 (set_architecture): Assume GDB_MULTI_ARCH.
103 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
104
8b39fe56
MK
1052003-08-21 Mark Kettenis <kettenis@gnu.org>
106
107 Rewrite FreeBSD/sparc64 native configuration.
108 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
109 * sparc64fbsd-nat.c: New file.
110 * sparc64fbsd-tdep.c: New file.
111 * sparc64-tdep.c sparc64-tdep.h: New files.
112 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
113 sparc64fbsd-tdep.o): New dependencies.
114 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
115 and sparc64fbsd-tdep.c.
116 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
117 * config/sparc/fbsd.mh: Remove copyright notice.
118 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
119 sparcbsd-nat.o.
120 * config/sparc/fbsd.mt: Remove copyright notice.
121 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
122 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
123 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
124 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
125 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
126 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
127 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
128 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
129 "sparc/tm-sp64.h".
130 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
131 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
132
a7f19c79
MC
1332003-08-21 Michael Chastain <mec@shout.net>
134
135 * symtab.h: Add doco on the space critical structures and
136 some measurements of space usage.
137
da08ea5b
MS
1382003-08-21 Michael Snyder <msnyder@redhat.com>
139
140 * tracepoint.c (trace_dump_command): Trace break address
141 is subject to DECR_PC_AFTER_BREAK.
142 (set_traceframe_context): Make "trace_line" an int.
143 Fixes suggested by Mark Newman <mark.newman@lmco.com>
144
6df2bf50
MS
1452003-08-20 Michael Snyder <msnyder@redhat.com>
146
147 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
148 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
149 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
150 argument passing.
151 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
152 functions, replace sh_push_dummy_call.
153 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
154
0955bbf0
MC
1552003-08-20 Michael Chastain <mec@shout.net>
156
157 * gdbtypes.h (struct main_type): Rearrange to save space.
158
260a4188
MS
1592003-08-20 Michael Snyder <msnyder@redhat.com>
160
161 * trad-frame.c: Comment typo fix.
162
8baa6f92
KB
1632003-08-20 Michael Snyder <msnyder@redhat.com>
164 Kevin Buettner <kevinb@redhat.com>
165
166 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
167 (frv_frame_init_saved_regs): Add declaration.
168 (frame_extra_info): Add new field ``saved_regs''.
169 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
170 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
171 Update frame related code.
172 (frv_extract_struct_value_address): Adjust formatting.
173 * Makefile.in (frv-tdep.o): Update dependencies.
174 * config/frv/tm-frv.h (target_insert_watchpoint)
175 (target_remove_watchpoint, target_insert_hw_breakpoint)
176 (target_remove_hw_breakpoint): Delete these macros.
177 (remote_insert_watchpoint, remote_remove_watchpoint)
178 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
179 these declarations.
180
87193939
MC
1812003-08-20 Michael Chastain <mec@shout.net>
182
183 * defs.h (ENUM_BITFIELD): New macro.
184 * symtab.h (ENUM_BITFIELD): Use it.
185 (BYTE_BITFIELD): Remove old macro, which was already disabled.
186
062103ba
SA
1872003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
188
189 * MAINTAINERS (write after approval): Add myself.
190
8b148df9
AC
1912003-08-18 Andrew Cagney <cagney@redhat.com>
192
193 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
194 * gdbarch.h, gdbarch.c: Re-generate.
195 * infcall.c (call_function_by_hand): Adjust the SP by
196 frame_red_zone_size before allocating any stack space.
197 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
198 * x86-64-tdep.c (x86_64_frame_align): New function.
199 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
200
201 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
202 Remove code adjusting SP so that it skips over the Red Zone.
203
954a4db8
MK
2042003-08-18 Mark Kettenis <kettenis@gnu.org>
205
206 * NEWS (New native configurations): Mention FreeBSD/amd64.
207
1a241548
AC
2082003-08-18 Andrew Cagney <cagney@redhat.com>
209
210 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
211 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
212 "m68k_frame_p".
213 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
214
f82b2acd
MK
2152003-08-18 Mark Kettenis <kettenis@gnu.org>
216
217 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
218
4056d258
ML
2192003-08-18 Michal Ludvig <mludvig@suse.cz>
220
221 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
222 Define.
223 * i386-linux-nat.c: Include "linux-nat.h".
224 (child_post_startup_inferior): New function.
225
99ab4326
MK
2262003-08-18 Mark Kettenis <kettenis@gnu.org>
227
228 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
229 at the start of a frameless function. This probably fixes PR
230 backtrace/1338.
231
c8d5f0d6
MC
2322003-08-17 Michael Chastain <mec@shout.net>
233
234 * symfile.c (find_sym_fns): Remove special case for apollo target.
235
9016a515
DJ
2362003-08-17 Daniel Jacobowitz <drow@mvista.com>
237
238 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
239 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
240 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
241 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
242 (linux_supports_tracevforkdone): New function.
243 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
244 TRACEVFORKDONE.
245 (child_follow_fork): Handle vfork.
246 (linux_handle_extended_wait): Likewise. Also handle exec.
247 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
248 * NEWS: Mention fork tracing.
249
c538c11c
DJ
2502003-08-17 Daniel Jacobowitz <drow@mvista.com>
251
252 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
253
4de4c07c
DJ
2542003-08-17 Daniel Jacobowitz <drow@mvista.com>
255
256 * Makefile.in (i386-linux-nat.o): Update dependencies.
257 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
258 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
259 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
260 * i386-linux-nat.c: Include "linux-nat.h".
261 (child_post_startup_inferior): New function.
262 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
263 * infptrace.c (kill_inferior): Wrap in #ifdef.
264 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
265 attaching to each LWP.
266 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
267 (init_lin_lwp_ops): Fill in some more operations.
268 * linux-nat.h (linux_enable_event_reporting)
269 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
270 prototypes.
271 * linux-nat.c (linux_enable_event_reporting): New function.
272 (child_post_attach, linux_child_post_startup_inferior)
273 (child_post_startup_inferior, child_follow_fork)
274 (linux_handle_extended_wait, kill_inferior): New functions.
275
7996bcec
AC
2762003-08-16 Andrew Cagney <cagney@redhat.com>
277
278 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
279 * gdbarch.h, gdbarch.c: Re-generate.
280
3d48a7a0
MK
2812003-08-16 Mark Kettenis <kettenis@gnu.org>
282
283 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
284
7989c619
AC
2852003-08-16 Andrew Cagney <cagney@redhat.com>
286
287 * NEWS: Mention that "set prompt-escape-char" was deleted.
288 * top.c (get_prompt_1): Delete function.
289 (gdb_prompt_escape):
290 (init_main): Do not clear "gdb_prompt_escape". Delete "set
291 prompt-escape-char" command.
292 (MAX_PROMPT_SIZE): Delete macro.
293 (get_prompt): Simplify, do not call get_prompt_1.
294
07978cd8
AC
2952003-08-16 Andrew Cagney <cagney@redhat.com>
296
297 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
298 -Werror. -Wformat-nonliteral problems.
299
3ff7cf9e
JB
3002003-08-15 J. Brobecker <brobecker@gnat.com>
301
302 Further multiarching work mostly for hppa64-*-hpux11:
303 * hppa-tdep.h: New file.
304 * hppa-tdep.c: #include hppa-tdep.c.
305 (hppa32_num_regs): Renamed from hppa_num_regs.
306 (hppa64_num_regs): New constant.
307 (hppa64_call_dummy_breakpoint_offset): New constant.
308 (hppa32_call_dummy_length): New constant.
309 (hppa64_call_dummy_length): New constant.
310 (hppa32_stack_align): Make name 32bit explicit.
311 (hppa32_register_virtual_type): Likewise.
312 (hppa32_extract_return_value): Likewise.
313 (hppa32_use_struct_convention): Likewise.
314 (hppa32_store_return_value): Likewise.
315 (hppa64_register_virtual_type): New function.
316 (hppa64_extract_return_value): New function.
317 (hppa64_use_struct_convention): New function.
318 (hppa64_store_return_value): New function.
319 (hppa_frame_locals_address): Remove declaration, function does
320 not exist anymore.
321 (hppa_register_byte): Add support for PA64 ABI.
322 (hppa_gdbarch_init): Add support for PA64 ABI.
323 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
324 Make name 32bit explicit.
325 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
326 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
327 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
328 (hppa64_hpux_frame_base_before_sigtramp): New function.
329 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
330 * config/pa/tm-hppa64.h: Remove macros that are no longer
331 necessary now that the gdbarch vector is properly setup.
332 Transform some macros into function calls. Some minor cleanup.
333 * config/pa/tm-hppah.h: Update function calls in macros
334 following the function renaming in hppa-hpux-tdep.c.
335 * Makefile.in (hppa_tdep_h): New variable.
336 (hppa-tdep.o): Add dependency over hppa_tdep_h.
337
5d05ca6d
MS
3382003-08-14 Michael Snyder <msnyder@redhat.com>
339
340 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
341
37ba2569
JB
3422003-08-13 J. Brobecker <brobecker@gnat.com>
343
344 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
345 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
346 routine.
347
aed7f26a
MS
3482003-08-13 Michael Snyder <msnyder@redhat.com>
349
350 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
351 (frv_saved_pc_after_call): Use deprecated ftype.
352 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
353 (frv_remote_translate_xfer_address): Remove.
354 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
355
752d4ac1
JB
3562003-08-13 J. Brobecker <brobecker@gnat.com>
357
358 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
359 initialization after the common gdbarch initialization, not before.
360
1426ac1d
JB
3612003-08-13 J. Brobecker <brobecker@gnat.com>
362
363 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
364 (ADDR_BITS_REMOVE): Remove, redundant.
365
b6fbdd1d
JB
3662003-08-13 J. Brobecker <brobecker@gnat.com>
367
368 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
369 gdbarch method to clear the 2 low bits of text addresses.
370
44160db3
AC
3712003-08-12 Andrew Cagney <cagney@redhat.com>
372
373 * Makefile.in (dsrec.o): Update dependencies.
374 * dsrec.c: Include "gdb_assert.h".
375 (make_srec): Use snprintf instead of sprintf, use a literal format
376 string.
377
bcf7d3ca
AC
3782003-08-12 Andrew Cagney <cagney@redhat.com>
379
380 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
381 FRAME_OBSTACK_ZALLOC.
382
49ed40de
KB
3832003-08-12 Kevin Buettner <kevinb@redhat.com>
384
385 * i386-tdep.c (i386_gdbarch_init): Enable default support for
386 SSE registers.
387
b246147c
MK
3882003-08-10 Mark Kettenis <kettenis@gnu.org>
389
390 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
391 amd64fbsd_sc_reg_offset): Add extern declarations.
392 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
393 declarations.
394
d95fdc0d
BE
3952003-08-11 Ben Elliston <bje@wasabisystems.com>
396
397 * MAINTAINERS (write after approval): Update my mail address.
398
cf6a0e73
AC
3992003-08-10 Andrew Cagney <cagney@redhat.com>
400
401 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
402
f837910f
MK
4032003-08-10 Mark Kettenis <kettenis@gnu.org>
404
e2dbbd2d
MK
405 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
406 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
407 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
408 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
409 i386bsd_sc_reg_offset): Add extern declarations.
410 * i386obsd-nat.c: Include "i386-tdep.h"
411 (_initialize_i386obsd_nat): Remove extern declarations.
412 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
413 declarations.
414 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
415 declarations.
416
f837910f
MK
417 * i386-tdep.c (i386_register_to_value): Use get_frame_register
418 instead of frame_read_register.
419 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
420 instead of frame_read_register. Use I386_ESP_REGNUM instead of
421 SP_REGNUM.
422 (i386_frame_prev_register): Use frame_unwind_register_unsigned
423 instead of frame_unwind_unsigned_register. Use
424 I386_EFLAGS_REGISTER instead of PS_REGNUM.
425 (i386_get_longjmp_target): Use regcache_read_unsigned_register
426 instead of read_register. Use builtin_type_void_data_ptr instead
427 of builtin_type_void_func_ptr when extracting the address of the
428 jmp_buf.
429 (i386_extract_return_value, i386_store_return_value,
430 i386_pseudo_register_read, i386_pseudo_register_write): Use
431 register_size instead REGISTER_RAW_SIZE.
432
edcf254d
AC
4332003-08-10 Andrew Cagney <cagney@redhat.com>
434
435 * infcall.c (call_function_by_hand): Use xstrprintf instead of
436 sprintf. Make "name" constant.
437
26604a34
MK
4382003-08-10 Mark Kettenis <kettenis@gnu.org>
439
192285c6
MK
440 * i387-tdep.c (i387_register_to_value): Use get_frame_register
441 instead of frame_read_register.
f837910f
MK
442 (i387_print_float_info): Use get_frame_register and
443 get_frame_register_unsigned instead of frame_register_read.
192285c6 444
f0925262
MK
445 * i386fbsd-nat.c: Include "i386-tdep.h".
446 (child_resume): Make `eflags' an ULONGEST. Use
447 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
448 instead of register_read and register_write.
449
a144416f
MK
450 * i386bsd-nat.c (fetch_inferior_registers,
451 store_inferior_registers): Don't use && at the end of a line.
452 (_initialize_i386bsd_nat): Fix typo.
453
fec74868
MK
454 * frame.c (_initialize_frame): Add missing backslash.
455
87232496
MK
456 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
457 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
458 and supply_register instead of manipulating the register buffer
459 directly.
460
c9b9de0b
MK
461 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
462 * config/i386/nm-i386sol2.h
463 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
464
26604a34
MK
465 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
466 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
467 instructions that GCC likes to mingle into the prologue. Fixes
468 gdb/1253 and gdb/1255.
469
25d29d70
AC
4702003-08-09 Andrew Cagney <cagney@redhat.com>
471
472 Fix GDB PR cli/926.
473 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
474 * command.h (add_setshow_uinteger_cmd): Declare.
475 * frame.c (set_backtrace_cmd): New function.
476 (show_backtrace_cmd): New function.
477 * frame.c (_initialize_frame): Replace "set/show
478 backtrace-below-main" with "set/show backtrace past-main". Add
479 command "set/show backtrace limit".
480 (backtrace_past_main): Rename "backtrace_below_main".
481 (backtrace_limit): New variable.
482 (get_prev_frame): Update. Check the backtrace_limit.
483
9ebf4acf
AC
4842003-08-09 Andrew Cagney <cagney@redhat.com>
485
486 * defs.h (xstrprintf): Declare.
487 * utils.c (xstrprintf): New function.
488 * breakpoint.c (insert_breakpoints): Replace sprintf and
489 non-literal format strings, with xstrprintf and cleanups.
490 (delete_breakpoint,breakpoint_re_set): Ditto.
491 (commands_command, insert_breakpoints): Ditto.
492 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
493 (break_at_finish_command_1): Ditto.
494
3771659b
AC
4952003-08-09 Andrew Cagney <cagney@redhat.com>
496
497 * MAINTAINERS (language support): List Adam Fedor as Objective C
498 maintainer.
499
b4263afa
JB
5002003-08-08 J. Brobecker <brobecker@gnat.com>
501
502 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
503 are now multiarched.
504
d84defb1
JB
5052003-08-08 J. Brobecker <brobecker@gnat.com>
506
507 * config/pa/tm-hppa64.h: Remove lots of macros that are no
508 longer necessary now that hppa64 is partially multiarch'ed.
509
f786f615
AC
5102003-08-08 Andrew Cagney <cagney@redhat.com>
511
512 * interps.c (interp_set): Check for a NULL "old_interp".
513
c938e9b0
L
5142003-08-08 H.J. Lu <hongjiu.lu@intel.com>
515
516 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
517 (install-only): Support DESTDIR.
518 (uninstall): Likewise.
519 (install-gdbtk): Likewise.
520
9a146a11
EZ
5212003-08-08 Elena Zannoni <ezannoni@redhat.com>
522
523 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
524 contains something meaningful at all times.
525
526Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 527
62599e99 528 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 529
56296155
BC
530Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
531
62599e99 532 * MAINTAINERS (write after approval): Added self.
56296155 533
9710e734
AC
5342003-08-07 Andrew Cagney <cagney@redhat.com>
535
536 * inferior.h (AT_SYMBOL): Define.
537 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
538 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
539 * mips-tdep.c (mips_call_dummy_address): Delete function.
540 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
541 set call_dummy_address.
542
98b3ab73
AC
5432003-08-07 Andrew Cagney <cagney@redhat.com>
544
545 * language.c (op_error): Delete function.
546 (binop_type_check): Delete function.
547 * language.h (type_op_error, range_op_error): Delete macros.
548 (op_error): Delete declaration.
549
2fcf52f0
AC
5502003-08-07 Andrew Cagney <cagney@redhat.com>
551
552 * interps.h (INTERP_MI2, INTERP_MI3): Define.
553
abd4220e 5542003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 555
abd4220e 556 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 557 (x86_64_push_arguments): Skip the red zone.
abd4220e 558
9dd5f34f
AC
5592003-08-05 Andrew Cagney <cagney@redhat.com>
560
561 * reggroups.c (reggroup_next): Check for the final entry.
562
e5e78edc
AC
5632003-08-04 Andrew Cagney <cagney@redhat.com>
564
ab4e3d93
AC
565 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
566 * cli/cli-script.c (define_command): Call query directly, instead
567 of passing it a buffer.
568 * ocd.c (ocd_error): Pass error a constant format string.
569 * remote-mips.c (mips_error): Use fputs_filtered.
570
1062ca82
AC
571 * solib-svr4.c (_initialize_svr4_solib): Update
572 register_gdbarch_data call.
573 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
574
fcc1c85c
AC
575 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
576 (register_gdbarch_data): Delete "free" parameter. Update
577 comments.
578 * gdbarch.h, gdbarch.c: Re-generate.
579 * reggroups.c (_initialize_reggroup): Update.
580 * gnu-v3-abi.c (init_gnuv3_ops): Update.
581 * frame-base.c (_initialize_frame_base): Update.
582 * frame-unwind.c (_initialize_frame_unwind): Update.
583 * user-regs.c (_initialize_user_regs): Update.
584 * remote.c (_initialize_remote): Update.
585 * regcache.c (_initialize_regcache): Update.
586
116f06ea
AC
587 * regcache.c (xfree_regcache_descr): Delete function.
588 (_initialize_regcache): Update call to register_gdbarch_data.
589 (init_regcache_descr, init_legacy_regcache_descr): Use
590 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
591
e5e78edc
AC
592 * remote.c (free_remote_state): Delete function.
593 (_initialize_remote): Update register_gdbarch_data.
594 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
595 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
596
6c7d17ba
AC
5972003-08-04 Andrew Cagney <cagney@redhat.com>
598
599 * reggroups.c (struct reggroup_el): Define.
600 (struct reggroups): Delete field "nr_group". Replace array
601 "group" with a "first" to "last" linked list.
602 (reggroups_init): Update. Allocate using gdbarch's obstack.
603 (reggroups_free): Delete function.
604 (add_group): Update. Add "el" parameter.
605 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
606 (default_groups): Update.
607 (reggroup_next): Replace reggroups.
608 (reggroups_dump): Update.
609 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
610 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
611 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
612
89b7795b
DJ
6132003-08-04 Daniel Jacobowitz <drow@mvista.com>
614
615 * Makefile.in (tui-interp.o): Update dependencies.
616
306d9ac5
DC
6172003-08-04 David Carlton <carlton@kealia.com>
618
619 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
620 to internal_error call.
621 * source.c (forward_search_command): Add "%s" format argument.
622 (reverse_search_command): Ditto.
623 * top.c (quit_confirm): Ditto.
624 * cli/cli-setshow.c (do_setshow_command): Ditto.
625 * cp-valprint.c (cp_print_class_method): Replace
626 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
627 (cp_print_class_member): Ditto.
628 * event-top.c (command_line_handler): Ditto.
629 * linux-proc.c (linux_info_proc_cmd): Ditto.
630 * p-typeprint.c (pascal_type_print_base): Ditto.
631 * p-valprint.c (pascal_object_print_class_method): Ditto.
632 (pascal_object_print_class_member): Ditto.
633 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
634 * remote.c (remote_cisco_section_offsets): Ditto.
635 * top.c (command_line_input): Ditto.
636 * utils.c (vwarning,error_stream,quit): Ditto.
637 * valprint.c (print_floating,print_binary_chars)
638 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
639
57bfe177
AC
6402003-08-04 Andrew Cagney <cagney@redhat.com>
641
642 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
643
e546b999
AC
6442003-08-02 Andrew Cagney <cagney@redhat.com>
645
646 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
647 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
648 amd64fbsd-nat.c.
649
91092ee5
AC
6502003-08-02 Andrew Cagney <cagney@redhat.com>
651
652 * Makefile.in: Update all dependencies and definitions.
653
889f28e2
AF
6542003-08-02 Adam Fedor <fedor@gnu.org>
655
656 * linespec.c (is_objc_method_format): New function
657 (decode_line_1, locate_first_half): Use it.
658 Fixes PR objc/1298
659
880bc914
AC
6602003-08-01 Andrew Cagney <cagney@redhat.com>
661
662 * NEWS: Mention that m32r is multi-arch.
663 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
664 * configure.tgt: Recognize m32r-*-*.
665 * config/m32r/tm-m32r.h: Delete file.
666 * config/m32r/m32r.mt: New file.
667 * m32r-rom.c (m32r_upload_command): Use hostent only when
668 gethostname succeeds, in order to avoid a compilation
669 warning.
670 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
671 compiler warning.
672
19f59343
MS
6732003-08-01 Michael Snyder <msnyder@redhat.com>
674
675 * sh-tdep.c (sh_frame_align): New gdbarch method.
676 (sh_gdbarch_init): Set up frame_align method.
677
4e7d7511
MS
6782003-07-31 Michael Snyder <msnyder@redhat.com>
679
680 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
681 which is already covered by the new frames infrastructure.
682
63022984
AC
6832003-07-31 Andrew Cagney <cagney@redhat.com>
684
685 * user-regs.c (struct user_reg): Add "next" link.
686 (struct user_regs): Replace "user" with "first" and "last" links.
687 (append_user_reg): Add pre-allocated "reg" parameter.
688 (builtin_user_regs): Provide initial value for "last".
689 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
690 (user_regs_init): Allocate memory from the gdbarch obstack.
691 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
692 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
693 linked list.
694 (usernum_to_user_reg): New function.
695 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
696 (value_of_user_reg): Use usernum_to_user_reg.
697 (user_regs_free): Delete function.
698 (_initialize_user_regs): Update register_gdbarch_data call.
699
7cf6e574
DJ
7002003-07-31 Daniel Jacobowitz <drow@mvista.com>
701
702 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
703
c48a845b
MS
7042003-07-30 Michael Snyder <msnyder@redhat.com>
705
4e7d7511 706 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
707 * infcall.c (call_function_by_hand): Pass struct_addr to
708 value_being_returned.
709 * infcmd.c (print_return_value): Pass zero as struct_addr.
710 * values.c (value_being_returned): If struct_addr is passed,
711 use it instead of trying to recover it from the inferior.
712
f0d8db19
KB
7132003-07-30 Kevin Buettner <kevinb@redhat.com>
714
715 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
716 the prologue analyzer won't need to attempt to extract the pc
717 value from the woefully incomplete dummy frame.
718 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
719 possible. Disable code which modifies the frame.
720
e5c113a1
AC
7212003-07-28 Andrew Cagney <cagney@redhat.com>
722
723 * annotate.c (annotate_breakpoints_headers): Restrict annotation
724 to level 2.
725 (annotate_breakpoints_table, annotate_record): Ditto.
726 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
727 (annotate_field_name_end, annotate_field_value): Ditto.
728 (annotate_field_end, annotate_frame_source_begin): Ditto.
729 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
730 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
731 (annotate_frame_begin, annotate_frame_function_name): Ditto.
732 (annotate_frame_address_end, annotate_frame_address): Ditto.
733 (annotate_frame_args, annotate_frame_end): Ditto.
734 (annotate_frame_where, annotate_arg_begin): Ditto.
735 (annotate_arg_name_end, annotate_arg_value): Ditto.
736 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
737 (annotate_function_call, annotate_signal_name): Ditto.
738 (annotate_signal_string, annotate_signal_name_end): Ditto.
739 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
740 (annotate_value_begin, annotate_value_history_value): Ditto.
741 (annotate_value_history_end, annotate_value_end): Ditto.
742 (annotate_display_begin, annotate_display_number_end): Ditto.
743 (annotate_display_format, annotate_display_expression): Ditto.
744 (annotate_display_expression_end, annotate_display_value): Ditto.
745 (annotate_display_end, annotate_array_section_begin): Ditto.
746 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
747 (annotate_elt, annotate_array_section_end): Ditto.
748
bb1db049
AC
7492003-07-28 Andrew Cagney <cagney@redhat.com>
750
751 * regcache.c (struct regcache_descr): Update comments on
752 nr_raw_registers.
753 (init_legacy_regcache_descr): Don't set nr_raw_registers or
754 sizeof_raw_register_valid_p.
755 (init_regcache_descr): Set nr_raw_registers and
756 sizeof_raw_register_valid_p before calling
757 init_legacy_regcache_descr.
758
20e6603c
AC
7592003-07-28 Andrew Cagney <cagney@redhat.com>
760
761 * mips-tdep.c (print_gp_register_row): Print the GPR's register
762 MOD NUM_REGS.
763
db742940
DJ
7642003-07-28 Daniel Jacobowitz <drow@mvista.com>
765
766 * thread.c (info_threads_command): Use get_selected_frame ().
767 Check that there is at least one non-sentinel frame.
768
ce7f4371
SC
7692003-07-27 Stephane Carrez <stcarrez@nerim.fr>
770
771 * m68hc11-tdep.c (struct frame_extra_info): Remove.
772 (m68hc11_pop_frame): Remove.
773 (m68hc11_frame_saved_pc): Remove.
774 (m68hc11_frame_chain): Remove.
775 (m68hc11_frame_init_saved_regs): Remove.
776 (m68hc11_init_extra_frame_info): Remove.
777 (m68hc11_store_struct_return): Remove.
778 (m68hc11_saved_pc_after_call): Remove.
779
1ea653ae
SC
7802003-07-27 Stephane Carrez <stcarrez@nerim.fr>
781
782 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
783 frame unwind information.
784 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
785 and adapted for frame unwinding.
786 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
787 (m68hc11_unwind_pc): New function.
788 (m68hc11_frame_unwind_cache): New function to analyze frames.
789 (m68hc11_frame_this_id): New function to create new frame struct.
790 (m68hc11_frame_prev_register): New function to unwind a register from
791 the frame.
792 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
793 (m68hc11_frame_p): New function for the above.
794 (m68hc11_frame_base_address): New function to return fp of frame.
795 (m68hc11_frame_args_address): Update for frame.
796 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
797 (m68hc11_unwind_sp): New function.
798 (m68hc11_unwind_dummy_id): New function.
799 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
800 calls.
801
c8a7f6ac
SC
8022003-07-27 Stephane Carrez <stcarrez@nerim.fr>
803
804 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
805 (m68hc11_guess_from_prologue): Advance the pc and frame size only
806 when we are beyond the current pc.
807
3dc990bf
SC
8082003-07-27 Stephane Carrez <stcarrez@nerim.fr>
809
810 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
811 from m68hc11_push_arguments.
812 (m68hc11_push_arguments): Remove.
813 (m68hc11_push_return_address): Remove.
814 (m68hc11_gdbarch_init): Install the above; remove above deprecated
815 handlers; remove deprecated_extra_stack_alignment_needed.
816
222e5d1d
AC
8172003-07-27 Andrew Cagney <cagney@redhat.com>
818
819 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
820 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
821 REAL_PC and not the pointer.
822 * hppa-hpux-tdep.c: Include frame.h
823
a7e9a47e
AC
8242003-07-27 Andrew Cagney <cagney@redhat.com>
825
826 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
827 GDB_MULTI_ACH_PARTIAL.
828
7e3dd49e
AC
8292003-07-27 Andrew Cagney <cagney@redhat.com>
830
831 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
832 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
833 operator at start and not end of line.
834 (decode_prologue): Ditto.
835 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
836 frame_unwind_register_unsigned instead of
837 frame_unwind_unsigned_register.
838 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
839 read_register.
840 (m32r_push_dummy_call): Use register_size instead of
841 REGISTER_RAW_SIZE.
842 (m32r_frame_sniffer): Replace m32r_frame_p.
843 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
844 * m32r-rom.c (report_transfer_performance): Delete extern
845 declaration.
846 (m32r_load, m32r_upload_command): Use print_transfer_performance
847 instead of report_transfer_performance.
848 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
849 / add_show_from_set.
850
0880807f
AC
8512003-07-26 Andrew Cagney <cagney@redhat.com>
852
853 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
854 store_return_value and extract_struct_value_address.
855
64ae9269
DJ
8562003-07-26 Daniel Jacobowitz <drow@mvista.com>
857
858 PR c++/1267
859 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
860 NULL, default to the section containing PC.
861
e286caf2
SC
8622003-07-24 Stephane Carrez <stcarrez@nerim.fr>
863
864 * NEWS: Mention "regs" deprecated for m68hc11 too.
865
866 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
867 (m68hc11_print_register): New function to print out one register.
868 (m68hc11_print_registers_info): New function to print registers.
869 (show_regs): Deprecate and use the above.
870 (m68hc11_gdbarch_init): Install the print_registers_info.
871
705b278b
JJ
8722003-07-24 Jeff Johnston <jjohnstn@redhat.com>
873
874 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
875 that we have a SIGTRAP before returning non-zero.
876
63cd4198
EZ
8772003-07-23 Michal Ludvig <mludvig@suse.cz>
878 Elena Zannoni <ezannoni@redhat.com>
879
880 * linespec.c (decode_line_2): Avoid crash if
881 find_function_start_sal() returns empty record.
882
6926787d
AS
8832003-07-23 Andreas Schwab <schwab@suse.de>
884
885 * ia64-tdep.c (ia64_print_insn): New function.
886 (ia64_gdbarch_init): Set print_insn to it.
887 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
888 deprecated_tm_print_insn_info.
889
708cc1b6
MS
8902003-07-22 Michael Snyder <msnyder@redhat.com>
891
892 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
893 handle 8-bit returns (long long).
894 (h8300h_extract_return_value): Ditto.
895 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
896
aebd7893
AC
8972003-07-22 Andrew Cagney <cagney@redhat.com>
898
899 * gdbarch.c Include "gdb_obstack.h".
900 (struct gdbarch): Add an "obstack".
901 (alloc_gdbarch_data): Allocate the gdbarch data using
902 GDBARCH_OBSTACK_CALLOC.
903 (free_gdbarch_data): Delete function.
904 (gdbarch_obstack_zalloc): New function.
905 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
906 Assert that the architecture is not initialized.
907 (gdbarch_alloc): Allocate an obstack, allocate the architecture
908 vector from the obstack.
909 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
910 architecture obstack.
911 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
912 (set_gdbarch_data): Assert that the data is not initialized.
913 (struct gdbarch_data): Delete member "free".
914 (register_gdbarch_data): Do not initialize "free".
915 * gdbarch.h, gdbarch.c: Re-generate.
916
153721e6
AC
9172003-07-22 Andrew Cagney <cagney@redhat.com>
918
919 * configure.in (build_warnings): Add -Wformat-nonliteral.
920 * configure: Re-generate.
921
c193f044 9222003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
923
924 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 925
c3228f12
EZ
9262003-07-22 Elena Zannoni <ezannoni@redhat.com>
927
928 * findvar.c (read_var_value): Remove case for thread local storage
929 variables. It is now entirely handled by the dwarf2 location
930 expression code.
931 * printcmd.c (address_info): Ditto.
932 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
933 enumeration value.
934 (struct symbol): Remove objfile field, which was used by
935 LOC_THREAD_LOCAL_STATIC only.
936 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
937 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
938 usage of objfile pointer.
939 * dwarf2loc.c (locexpr_describe_location): Add case to handle
940 thread local variables.
941 Add include of objfiles.h.
942 * dwarf2expr.c (execute_stack_op): Add comments about thread local
943 storage variables.
944 * Makefile.in (dwarf2loc.o): Update dependencies.
945
aef9bcd2
AC
9462003-07-22 Andrew Cagney <cagney@redhat.com>
947
948 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
949 get_frame_base.
950 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
951 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
952 (struct value): Add opaque declaration.
953 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
954
d95a8903
AC
9552003-07-21 Andrew Cagney <cagney@redhat.com>
956
957 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
958 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
959
4db73d49
SC
9602003-07-20 Stephane Carrez <stcarrez@nerim.fr>
961
962 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
963 regcache_cooked_read_unsigned instead of read_register.
964 (m68hc11_saved_pc_after_call): Likewise.
965 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
966 instead of write_register.
967 (m68hc11_register_type): New function.
968 (m68hc11_register_virtual_type): Remove.
969 (m68hc11_store_return_value): Convert to use the regcache.
970 (m68hc11_extract_struct_value_address): Likewise.
971 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
972 m68hc11_register_type; undeprecate store_return_value and
973 extract_struct_value_address.
974
ef2b8fcd
SC
9752003-07-20 Stephane Carrez <stcarrez@nerim.fr>
976
977 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
978 and translate to use regcache.
979 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
980
625b0b97
AC
9812003-07-18 Andrew Cagney <cagney@redhat.com>
982
983 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
984 * gdbarch.h, gdbarch.c: Re-generate.
985 * i386-tdep.c (i386_gdbarch_init): Do not set
986 DWARF2_BUILD_FRAME_INFO.
987 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
988 unconditionally.
989 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
990 DWARF2_BUILD_FRAME_INFO.
991
22b0d388
AC
9922003-07-18 Andrew Cagney <cagney@redhat.com>
993
994 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
995 * disasm.c (gdb_disassemble_info): Initilize di.arch.
996
1ce5d6dd
AC
9972003-07-18 Andrew Cagney <cagney@redhat.com>
998
999 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1000 frame_unwind_address_in_block, instead of frame_pc_unwind.
1001 (dwarf2_frame_cache): Ditto.
1002
e6e5e94c
AC
10032003-07-18 Andrew Cagney <cagney@redhat.com>
1004
1005 * user-regs.h (struct gdbarch): Declare opaque.
1006 * ui-out.h (struct ui_file): Declare opaque.
1007 * dwarf2-frame.h (struct frame_info): Declare opaque.
1008
5483d879
KW
10092003-07-18 Kris Warkentin <kewarken@qnx.com>
1010
1011 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1012 #include "...".
1013 (procfs_meminfo): Change strerror to safe_strerror.
1014 (procfs_can_run): Remove K&R badness.
1015
278a7cf7
MS
10162003-07-17 Michael Snyder <msnyder@redhat.com>
1017
1018 * remote-sim.c: Comment typo fix.
1019
606e3b82
AC
10202003-07-17 Andrew Cagney <cagney@redhat.com>
1021
1022 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1023 configure.
1024 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1025 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1026 GDB_MULTI_ARCH_PARTIAL.
1027
c43af07c
EZ
10282003-07-17 Elena Zannoni <ezannoni@redhat.com>
1029
1030 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1031 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1032 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1033
3b85b0f1
TR
10342003-07-16 Theodore A. Roth <troth@openavr.org>
1035
1036 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1037 found.
1038 (avr_frame_unwind_cache): Don't unwind FP for main.
1039 Update a comment.
1040 Save the computed prev_sp.
1041 (avr_saved_regs_unwinder): Remove function.
1042 (avr_frame_prev_register): Use PC unwind logic from
1043 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1044
336d1bba
AC
10452003-07-16 Andrew Cagney <cagney@redhat.com>
1046
1047 * frame-base.h (frame_base_p_ftype): Delete definition.
1048 (frame_base_append_predicate): Delete declaration.
1049 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1050 (frame_unwind_append_predicate): Delete declaration.
1051 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1052 (append_predicate): Delete parameter "p".
1053 (frame_unwind_append_predicate): Delete function.
1054 (frame_unwind_append_sniffer): Update call to append_predicate.
1055 (frame_unwind_free): Delete function.
1056 (_initialize_frame_unwind): Pass NULL as "free" to
1057 register_gdbarch_data.
1058 (frame_unwind_init): Append the dummy_frame_sniffer.
1059 (frame_unwind_find_by_frame): Simplify.
1060 * frame-base.c (struct frame_base_table): Delete field "p".
1061 (append_predicate): Delete parameter "p".
1062 (frame_base_append_predicate): Delete function.
1063 (frame_base_append_sniffer): Update call to append_predicate.
1064 (frame_base_free): Delete function.
1065 (frame_base_find_by_frame): Simplify.
1066 (_initialize_frame_base): Pass NULL as "free" to
1067 register_gdbarch_data.
1068 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1069 (x86_64_sigtramp_frame_sniffer): Replace
1070 "x86_64_sigtramp_frame_p".
1071 (x86_64_init_abi): Set the frame unwind sniffers.
1072 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1073 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1074 (m68k_gdbarch_init): Set the frame unwind sniffers.
1075 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1076 "i386_sigtramp_frame_p".
1077 (i386_frame_sniffer): Replace "i386_frame_p".
1078 (i386_gdbarch_init): Set the frame unwind sniffers.
1079 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1080 (avr_gdbarch_init): Set the frame unwind sniffers.
1081 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1082 "alpha_sigtramp_frame_p"
1083 (alpha_heuristic_frame_sniffer): Replace
1084 "alpha_heuristic_frame_p".
1085 (alpha_gdbarch_init): Set the frame unwind sniffers.
1086 (alpha_dwarf2_init_abi): Ditto.
1087 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1088 "alpha_debug_frame_p".
1089 (alpha_mdebug_frame_base_sniffer): Replace
1090 "alpha_mdebug_frame_base_p".
1091 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1092 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1093 (d10v_gdbarch_init): Set the frame unwind sniffer.
1094 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1095 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1096 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1097 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1098 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1099 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1100
48db5a3c
CV
11012003-07-16 Michael Snyder <msnyder@redhat.com>
1102
1103 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1104 should go thru sh_dsp_register_sim_regno, else the dsp regs
1105 will not get the right values.
1106
11072003-07-16 Corinna Vinschen <vinschen@redhat.com>
1108
1109 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1110 deprecated_store_floating by call to store_typed_floating.
1111 (sh_sh4_register_convert_to_raw): Substitute call to
1112 deprecated_extract_floating by call to extract_typed_floating.
1113
11142003-07-16 Corinna Vinschen <vinschen@redhat.com>
1115
1116 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1117
11182003-07-16 Corinna Vinschen <vinschen@redhat.com>
1119
1120 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1121 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1122 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1123 as possible.
1124 (do_pseudo_register): Remove.
1125 (sh_push_dummy_code): New function.
1126 (sh64_store_struct_return): Rename from sh_store_struct_return.
1127 Only called for sh64 now.
1128 (sh_extract_struct_value_address): Regcache'ify.
1129 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1130 and accomodate new tasks.
1131 (sh64_push_return_address): Rename from sh_push_return_address.
1132 Only called for sh64 now.
1133 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1134 Regcache'ify.
1135 (sh3e_sh4_extract_return_value): Regcache'ify.
1136 (sh_default_store_return_value): Ditto.
1137 (sh3e_sh4_store_return_value): Ditto.
1138 (sh_default_register_byte): Remove.
1139 (sh_sh4_register_byte): Remove.
1140 (sh_default_register_raw_size): Remove.
1141 (sh_sh4_register_raw_size): Remove.
1142 (sh_register_virtual_size): Remove.
1143 (sh_sh3e_register_virtual_type): Remove.
1144 (sh_sh3e_register_type): New function.
1145 (sh_sh4_register_virtual_type): Remove.
1146 (sh_sh4_register_type): New function.
1147 (sh_default_register_virtual_type): Remove.
1148 (sh_default_register_type): New function.
1149 (do_fv_register_info): Add parameters to accomodate call from
1150 sh_print_registers_info.
1151 (do_dr_register_info): Ditto.
1152 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1153 Add parameters to accomodate call from sh_print_registers_info.
1154 (sh_do_fp_register): Ditto.
1155 (sh64_do_pseudo_register): Call do_dr_register_info,
1156 do_fv_register_info and sh_do_fp_register with default parameters.
1157 (sh_do_register): Add parameters to accomodate call from
1158 sh_print_registers_info.
1159 (sh_print_register): Ditto.
1160 (sh_print_registers_info): Rename from sh_do_registers_info.
1161 Add parameters to be used as gdbarch_print_registers_info
1162 implementation. Accomodate removed do_pseudo_register function
1163 pointer.
1164 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1165 function pointer. Call sh_print_register with default parameters.
1166 (sh64_do_registers_info): Call sh_print_registers_info instead of
1167 sh_do_registers_info.
1168 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1169 detection of deprecated vs. non-deprecated functionality.
1170 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1171 function pointer assignments by direct function calls.
1172
e8a89fe2
AC
11732003-07-15 Andrew Cagney <cagney@redhat.com>
1174
1175 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1176 (frame_register_unwind, create_new_frame): Ditto.
1177 (legacy_get_prev_frame, get_frame_type): Ditto.
1178 (get_frame_base_address): Use frame_base_find_by_frame.
1179 (get_frame_locals_address): Use frame_base_find_by_frame.
1180 (get_frame_args_address): Use frame_base_find_by_frame.
1181 * frame-base.h (frame_base_sniffer_ftype): Declare.
1182 (frame_base_append_sniffer): Declare.
1183 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1184 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1185 (frame_base_append_sniffer): New function.
1186 (frame_base_append_predicate): Add a NULL sniffer.
1187 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1188 (struct frame_base_table): Add "sniffer".
1189 (frame_base_free): Free the "sniffer" table.
1190 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1191 (frame_unwind_append_sniffer): Declare.
1192 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1193 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1194 (struct frame_unwind_table): Add "sniffer", delete "middle".
1195 (append_predicate): Add "sniffer" parameter, append the sniffer.
1196 (frame_unwind_init): Update append_predicate call.
1197 (frame_unwind_append_sniffer): New function.
1198 (frame_unwind_append_predicate): Update append_predicate call.
1199 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1200
0714963c
AC
12012003-07-15 Andrew Cagney <cagney@redhat.com>
1202
1203 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1204 before code inhibiting repeated unwind attempts. Add to
1205 commentary on that test's problems.
1206 * blockframe.c (inside_main_func): Look for "main" in the minimal
1207 symbol table.
1208 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1209 identical.
1210
d9170e22
AC
12112003-07-15 Andrew Cagney <cagney@redhat.com>
1212
1213 * complaints.c (struct explanation): Define.
1214 (struct complaints): Change type of "explanation" to "struct
1215 explanation".
1216 (symfile_explanations): Convert to a "struct explanation" table.
1217 (vcomplaint): Update.
1218
eba29c8c
ML
12192003-07-15 Michal Ludvig <mludvig@suse.cz>
1220
1221 * x86-64-linux-nat.c (regmap): Removed.
1222 (supply_gregset, fill_gregset): Call
1223 x86_64_linux_(fill,supply)_gregset functions.
1224 * x86-64-linux-tdep.c (USER_*): New defines.
1225 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1226 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1227 New functions.
1228 (fetch_core_registers): Ditto.
1229 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1230 * x86-64-linux-tdep.h: New file.
1231 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1232 and core-regset.o.
1233 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1234
68cc0bfb
MK
12352003-07-13 Mark Kettenis <kettenis@gnu.org>
1236
88a115f7
MK
1237 * x86-64-tdep.c (x86_64_store_return_value): Use
1238 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 1239
68cc0bfb
MK
1240 * configure.host: Add x86_64-*-freebsd*.
1241 * configure.tgt: Add x86_64-*-freebsd*.
1242 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1243 * amd64fbsd-nat.c: New file.
1244 * amd64fbsd-tdep.c: New file.
1245 * config/i386/nm-fbsd64.h: New file.
1246 * config/i386/fbsd64.mh: New file.
1247 * config/i386/fbsd64.mt: New file.
1248
138e7be5
MK
12492003-07-11 Mark Kettenis <kettenis@gnu.org>
1250
1251 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1252 `sc_regs_offset' and `sc_fpregs_offset'.
1253 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1254 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1255 (alpha_sigtramp_register_address): Rewrite to use new members of
1256 `struct gdbarch_tdep'.
1257 (alpha_gdbarch_init): Initialize new members of struct
1258 gdbarch_tdep'.
1259 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1260 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1261 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1262 (alphafbsd_pc_in_sigtramp): Implement.
1263 (alphafbsd_sigtramp_offset): New function.
1264 (alphafbsd_sigcontext_addr): New function.
1265 (alphafbsd_init_abi): Initialize signal trampoline related members
1266 of `struct gdbarch_tdep'.
1267 (_initialize_alphafbsd_tdep): Add prototype.
1268
95303a68
TR
12692003-07-11 Theodore A. Roth <troth@openavr.org>
1270
ba292e4c
TR
1271 * Makefile.in (install-only): Quote sed expression when generating
1272 transformed_name.
95303a68 1273
6896c0c7
RH
12742003-07-11 Richard Henderson <rth@redhat.com>
1275
1276 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1277 * dwarf2-frame.c: Include complaints.h.
1278 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1279 variable initialization; return NULL on error.
1280 (decode_frame_entry): New.
1281
8edd5d01
AC
12822003-07-11 Andrew Cagney <cagney@redhat.com>
1283
c4a09524
AC
1284 * frame.h (frame_address_in_block): Delete declaration.
1285 * blockframe.c (frame_address_in_block): Delete function.
1286 (get_frame_block): Use get_frame_address_in_block.
1287 (block_innermost_frame): Ditto.
1288 * stack.c (print_frame, backtrace_command_1): Ditto.
1289
8edd5d01
AC
1290 * frame.h (get_frame_address_in_block): Declare.
1291 (frame_unwind_address_in_block): Declare.
1292 * frame.c (frame_unwind_address_in_block): New function.
1293 (get_frame_address_in_block): New function.
1294
f7968451
AC
12952003-07-10 Andrew Cagney <cagney@redhat.com>
1296
1297 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1298 pre-default. Note: re-generate has no effect.
1299
ae99b398
AC
13002003-07-10 Andrew Cagney <cagney@redhat.com>
1301
1302 * gdbarch.sh: When a variable, but not a function, compare against
1303 0. Fix problem in previous patch.
1304 * gdbarch.c: Re-generate.
1305
956ac328
AC
13062003-07-10 Andrew Cagney <cagney@redhat.com>
1307
1308 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1309 functions against NULL, not 0.
1310 * gdbarch.c: Re-generate.
1311
287c3240
FF
13122003-07-10 Fred Fish <fnf@ninemoons.com>
1313
1314 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1315 null string instead of a null pointer.
1316 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1317
32f63c4b
MS
13182003-07-09 Michael Snyder <msnyder@redhat.com>
1319
1320 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1321
402ecd56
MK
13222003-07-09 Mark Kettenis <kettenis@gnu.org>
1323
1324 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1325 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1326 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1327 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1328 * x86-64-tdep.c: ... from here.
1329
c481dac7
AS
13302003-07-09 Andreas Schwab <schwab@suse.de>
1331
1332 * m68k-tdep.h (enum struct_return): Define.
1333 (struct gdbarch_tdep): Add struct_return.
1334 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1335 bytes are padded to the right, not to the left. Pass struct value
1336 address in register %a1, not on stack.
1337 (m68k_use_struct_convention): New function.
1338 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1339 struct_return in tdep to pcc_struct_return.
1340 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1341 reg_struct_return.
1342
64176fa3
JB
13432003-07-09 Joel Brobecker <brobecker@gnat.com>
1344
1345 * somread.c (som_symfile_offsets): Fix compilation error.
1346
96a4ee76
AC
13472003-07-09 Andrew Cagney <cagney@redhat.com>
1348
1349 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1350 Add comments about the checks.
1351
1517c6d1
AC
13522003-07-08 Andrew Cagney <cagney@redhat.com>
1353
1354 * Makefile.in: Make dependency section headers consistent.
1355 (config_h): Move to $BUILD headers section.
1356 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1357 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1358 (ada-exp.tab.c): Move to YACC/LEX section.
1359 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1360 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1361
dc5dd1eb
KW
13622003-07-08 Kris Warkentin <kewarken@qnx.com>
1363
1364 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
1365 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1366 of strerror with safe_strerror, use ISO C function definitions,
1367 and replace instances of sprintf with snprintf.
dc5dd1eb 1368
612dde91
AC
13692003-07-07 Andrew Cagney <cagney@redhat.com>
1370
1371 * frame.c (get_prev_frame): Enable check for identical frames.
1372 Update comments. Update error messages.
1373
492c11d3
JB
13742003-07-07 Joel Brobecker <brobecker@gnat.com>
1375
1376 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1377
376a5a49
JB
13782003-07-07 Joel Brobecker <brobecker@gnat.com>
1379
1380 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1381 sort_symtab_syms, no longer necessary.
1382
22b4a9ad
JB
13832003-07-07 Joel Brobecker <brobecker@gnat.com>
1384
1385 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1386
5bbcb741
JB
13872003-07-07 Joel Brobecker <brobecker@gnat.com>
1388
1389 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1390 (mips_register_byte): Likewise.
1391
c139e7d9
DJ
13922003-07-07 Daniel Jacobowitz <drow@mvista.com>
1393
1394 * Makefile.in (sparc_tdep_h): New.
1395 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1396 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1397 * sparc-linux-nat.c: Include "sparc-tdep.h".
1398 * sparc-nat.c: Likewise.
1399 * sparc-tdep.c: Likewise.
1400 * sparc64nbsd-nat.c: Likewise.
1401 * sparcnbsd-nat.c: Likewise.
1402 * sparcnbsd-tdep.c: Likewise.
1403 * sparc-tdep.h: New file.
1404 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1405 and sparc_npc_regnum.
1406
fd8f87c5
DJ
14072003-07-07 Daniel Jacobowitz <drow@mvista.com>
1408
1409 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1410 (mips_linux_cannot_store_register): List supported instead of
1411 unsupported registers.
1412
13adf674
DJ
14132003-07-07 Daniel Jacobowitz <drow@mvista.com>
1414
1415 * disasm.c (dump_insns): Separate instructions from addresses.
1416
8de307e0
AS
14172003-07-07 Andreas Schwab <schwab@suse.de>
1418
1419 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1420 dependencies.
1421 * m68k-tdep.c (NUM_FREGS): Delete.
1422 (SIG_PC_FP_OFFSET): Delete.
1423 (TARGET_M68K): Delete.
1424 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1425 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1426 P_MOVEL_SP, P_MOVEML_SP): Define.
1427 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1428 P_TRAP): Delete.
1429 (m68k_register_raw_size): Delete.
1430 (m68k_register_virtual_size): Delete.
1431 (m68k_register_type): Renamed from m68k_register_virtual_type and
1432 add gdbarch argument.
1433 (m68k_store_struct_return): Delete.
1434 (m68k_deprecated_extract_return_value): Delete.
1435 (m68k_deprecated_extract_struct_value_address): Delete.
1436 (m68k_frame_chain): Delete.
1437 (m68k_frame_saved_pc): Delete.
1438 (m68k_fix_call_dummy): Delete.
1439 (m68k_push_dummy_frame): Delete.
1440 (m68k_pop_frame): Delete.
1441 (m68k_extract_return_value): New function.
1442 (m68k_store_return_value): Rewrite using regcache.
1443 (m68k_extract_struct_value_address): Rewrite using regcache.
1444 (m68k_push_dummy_call): New function.
1445 (struct m68k_frame_cache): Define.
1446 (m68k_alloc_frame_cache): New function.
1447 (m68k_analyze_frame_setup): New function.
1448 (m68k_analyze_register_saves): New function.
1449 (m68k_analyze_prologue): New function.
1450 (m68k_skip_prologue): Rewrite using above functions.
1451 (m68k_unwind_pc): New function.
1452 (m68k_frame_cache): New function.
1453 (m68k_frame_this_id): New function.
1454 (m68k_frame_prev_register): New function.
1455 (m68k_frame_unwind): New variable.
1456 (m68k_frame_p): New function.
1457 (m68k_sigtramp_frame_cache): New function.
1458 (m68k_sigtramp_frame_this_id): New function.
1459 (m68k_sigtramp_frame_prev_register): New function.
1460 (m68k_sigtramp_frame_unwind): New variable.
1461 (m68k_sigtramp_frame_p): New function.
1462 (m68k_frame_base_address): New function.
1463 (m68k_frame_base): New function.
1464 (m68k_unwind_dummy_id): New function.
1465 (fill_gregset): Use regcache_collect.
1466 (fill_fpregset): Likewise.
1467 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1468 defined.
1469 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1470 deprecated_init_frame_pc, deprecated_store_struct_return,
1471 deprecated_extract_return_value, deprecated_store_return_value,
1472 deprecated_frame_chain, deprecated_frame_saved_pc,
1473 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1474 deprecated_register_virtual_size,
1475 deprecated_max_register_raw_size,
1476 deprecated_max_register_virtual_size,
1477 deprecated_register_virtual_type, deprecated_register_size,
1478 deprecated_register_byte, deprecated_register_bytes,
1479 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1480 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1481 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1482 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1483 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1484 deprecated_push_dummy_frame, deprecated_pop_frame,
1485 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1486 only if SYSCALL_TRAP is defined. Set extract_return_value,
1487 store_return_value, extract_struct_value_address, register_type,
1488 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1489 predicates.
1490 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1491 M68K_MAX_REGISTER_SIZE): Define.
1492 (struct m68k_sigtramp_info): Define.
1493 (struct gdbarch_tdep): Add get_sigtramp_info.
1494 * m68klinux-nat.c (fetch_register): Use register_size instead of
1495 REGISTER_RAW_SIZE. Don't put assignment in if.
1496 (store_register): Likewise.
1497 (fetch_inferior_registers): Likewise.
1498 (store_inferior_registers): Likewise.
1499 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1500 (m68k_linux_frame_saved_pc): Delete.
1501 (m68k_linux_sigcontext_reg_offset,
1502 m68k_linux_ucontext_reg_offset): Define.
1503 (m68k_linux_get_sigtramp_info): New function.
1504 (m68k_linux_extract_return_value): Rewrite using regcache.
1505 (m68k_linux_store_return_value): Likewise.
1506 (m68k_linux_extract_struct_value_address): Likewise.
1507 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1508 Don't set deprecated_frame_saved_pc,
1509 deprecated_extract_return_value, deprecated_store_return_value,
1510 deprecated_extract_struct_value_address. Set
1511 extract_return_value, store_return_value,
1512 extract_struct_value_address.
1513
eb8bc282
AC
15142003-07-07 Andrew Cagney <cagney@redhat.com>
1515
1516 * expprint.c: Include "user-regs.h" instead of "frame.h".
1517 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1518 frame_map_regnum_to_name.
1519 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1520 (frame_map_name_to_regnum): Simplify, call
1521 user_reg_map_name_to_regnum.
1522 (frame_map_regnum_to_name): Simplify, call
1523 user_reg_map_regnum_to_name.
1524 (frame_register_unwind): Update.
1525 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1526 (_initialize_frame_reg): Call user_reg_add_builtin.
1527 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1528 (value_of_register): Use value_of_user_reg.
1529 * eval.c (evaluate_subexp_standard): Update.
1530 * parse.c (write_dollar_variable): Update.
1531 * d10v-tdep.c (d10v_print_registers_info): Update.
1532 * infcmd.c (registers_info): Update.
1533 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1534 (builtin_regs_h): Delete macro.
1535 (user_regs_h): Define.
1536 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1537 (builtin-regs.o): Delete target.
1538 (user-regs.o): Specify dependencies.
1539 (expprint.o): Update dependencies.
1540 (findvar.o): Update dependencies.
1541 (frame.o): Update dependencies.
1542 (std-regs.o): Update dependencies.
1543
9f476a01
CF
15442003-07-06 Christopher Faylor <cgf@redhat.com>
1545
1546 * win32-nat.c (solib_symbols_add): Use one variable for all section
1547 address stuff. Pass variable rather than address of variable to
1548 safe_symbol_file_add.
1549
a731b831
AS
15502003-07-06 Andreas Schwab <schwab@suse.de>
1551
1552 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1553
9f83329d
JB
15542003-07-04 Joel Brobecker <brobecker@gnat.com>
1555
1556 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1557
27e28cc5
KW
15582003-07-04 Kris Warkentin <kewarken@qnx.com>
1559
1560 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1561
15622003-07-04 Kris Warkentin <kewarken@qnx.com>
1563
1564 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1565 * config/i386/nto.mh: New file.
1566 * config/i386/nm-nto.h: New file.
1567 * configure.host: Add i[3456]86-*-nto*.
1568
100f2e98
JB
15692003-07-03 Joel Brobecker <brobecker@gnat.com>
1570
1571 * remote-vx.c (vx_add_symbols): Fix compilation error.
1572
e23457df
AC
15732003-07-03 Andrew Cagney <cagney@redhat.com>
1574
1575 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1576 * gdbarch.h, gdbarch.c: Re-generate.
1577 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1578 (legacy_register_name): Declare.
1579 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1580 (REGISTER_NAME): Define.
1581 * sparc-tdep.c (legacy_register_name): New function.
1582 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1583 (REGISTER_NAME): Define.
1584 (hppa64_register_name): Declare.
1585 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1586 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1587 (hppa64_register_name): New function.
1588 (hppa_register_name): New function.
1589 * arch-utils.c (legacy_register_name): Delete.
1590 * arch-utils.h (legacy_register_name): Delete.
1591
38caaeec
DJ
15922003-07-03 Daniel Jacobowitz <drow@mvista.com>
1593
1594 * cli/cli-interp.c (cli_interpreter_resume): Update the
1595 cli_uiout's stream to gdb_stdout.
1596
dadd712e
AC
15972003-07-03 Andrew Cagney <cagney@redhat.com>
1598
1599 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1600 predicate.
1601 * gdbarch.h, gdbarch.c: Re-generate.
1602 * regcache.c (init_regcache_descr): Use legacy code when either
1603 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1604
c7f1390e
DJ
16052003-07-02 Daniel Jacobowitz <drow@mvista.com>
1606
1607 * NEWS: Move "set logging" entry into GDB 6.0 section.
1608
4bc8c588
JB
16092003-07-02 Jim Blandy <jimb@redhat.com>
1610
a9dd42f1
JB
1611 * s390-tdep.c (struct frame_extra_info): new member:
1612 'stack_bought_valid'.
1613 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1614 initialize fextra_info->stack_bought.
1615 (s390_frameless_function_invocation): Don't trust the value of
1616 fextra_info_ptr->stack_bought unless
1617 fextra_info->stack_bought_valid is set.
1618
4bc8c588
JB
1619 New S390 prologue analyzer.
1620 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1621 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1622 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1623 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1624 compute_x_addr, s390_on_stack, s390_store,
1625 s390_get_signal_frame_info): New functions.
1626 (S390_NUM_SPILL_SLOTS): New macro.
1627 (s390_get_frame_info): Rewritten.
1628 (is_arg_reg): Deleted.
1629
1630 Break out the decoding of S/390 instructions into separate
1631 functions, to make it more legible, and easier to check
1632 against the spec.
1633 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1634 is_rx, is_rxe): New functions.
1635 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1636 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1637 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1638 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1639 enums for opcode values. (Is this an improvement?)
1640
fd13a04a
AC
16412003-07-02 Andrew Cagney <cagney@redhat.com>
1642
1643 * i386-tdep.c: Revert change committed as part of trad-frame code
1644 below.
1645
3f8091c1
DJ
16462003-07-02 Daniel Jacobowitz <drow@mvista.com>
1647
1648 * breakpoint.c (insert_catchpoint): Make static.
1649
8dd5115e
AS
16502003-07-02 Andreas Schwab <schwab@suse.de>
1651
1652 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1653 former ia64_push_arguments and ia64_push_return_address, and use
1654 regcache functions instead of read/write_register.
1655 (ia64_gdbarch_init): Set push_dummy_call instead of
1656 deprecated_push_arguments and deprecated_push_return_address.
1657
a2229c23
AJ
16582003-07-01 Andreas Jaeger <aj@suse.de>
1659
1660 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1661 before the call.
1662 Set %rax only to number of SSE registers used.
1663
3b3850e8
AC
16642003-07-01 Andrew Cagney <cagney@redhat.com>
1665
1666 * trad-frame.h: Update comments, a -1 .addr is reserved.
1667 (trad_frame_value_p, trad_frame_addr_p): Declare.
1668 (trad_frame_reg_p): Declare.
1669 (trad_frame_set_value): Rename trad_frame_register_value.
1670 (trad_frame_set_unknown): Declare.
1671 * trad-frame.c (trad_frame_realreg_p): New function.
1672 (trad_frame_addr_p, trad_frame_value_p): New function.
1673 (trad_frame_set_unknown): New function.
1674 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1675 (trad_frame_prev_register): Use trad_frame_realreg_p,
1676 trad_frame_addr_p and trad_frame_value_p.
1677 (trad_frame_set_value): Rename trad_frame_register_value.
1678 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1679 and trad_frame_set_value.
a2229c23 1680
4d819d0e
JB
16812003-06-30 Jim Blandy <jimb@redhat.com>
1682
1683 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1684 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1685 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1686 for 16 registers, and then 32 more bytes.
1687 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1688 New macros.
1689 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1690 Move up in the file, since it's now used by is_simple_arg.
1691 (is_simple_arg): Don't assume registers are four bytes long.
1692 Exclude all double arguments. Extended floats are not simple
1693 args.
1694 (is_power_of_two): New function.
1695 (pass_by_copy_ref): Call is_power_of_two, and check that the
1696 length fits in a register, rather than listing all the acceptable
1697 sizes. Extended floats are not passed by reference.
1698 (s390_push_arguments): Don't assume registers are four bytes long.
1699 Reserve an argument register to point to the buffer for structures
1700 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1701 S390_STACK_FRAME_OVERHEAD.
1702
1ad828f1
AS
17032003-06-30 Andreas Schwab <schwab@suse.de>
1704
1705 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1706 format error message.
1707
39b00981
JB
17082003-06-30 Joel Brobecker <brobecker@gnat.com>
1709
1710 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1711
b2a7f303
DC
17122003-06-30 David Carlton <carlton@kealia.com>
1713
1714 Band-aid for PR c++/1245.
1715 * Makefile.in (cp-support.o): Depend on complaints_h.
1716 * cp-support.c: Include complaints.h. Add declaration for
1717 find_last_component.
1718 (cp_find_first_component): Separate code into
1719 cp_find_first_component_aux.
1720 (cp_find_first_component_aux): Call demangled_name_complaint.
1721 (demangled_name_complaint): New.
1722
a257b5bb
AC
17232003-06-30 Andrew Cagney <cagney@redhat.com>
1724
1725 * remote.c (remote_write_bytes): Explicitly compute and then use
1726 the payload size. Update comments to reflect. Fixes problem of
1727 GDB not sending small packets as found by Fred Fish.
1728
0a2cfde4
AC
17292003-06-30 Andrew Cagney <cagney@redhat.com>
1730
1731 * remote.c (remote_async_wait): Fix -Wformat problem.
1732
3fcb8548
AC
17332003-06-29 Andrew Cagney <cagney@redhat.com>
1734
1735 * remote.c (remote_wait): Call error, and not warning, when the
1736 packet is corrupt.
1737 (remote_async_wait): Ditto.
1738
9f9970a3
DJ
17392003-06-29 Daniel Jacobowitz <drow@mvista.com>
1740
1741 * sparc-tdep.c (sparc_y_regnum): Make external again.
1742
83a8ccca
DJ
17432003-06-29 Daniel Jacobowitz <drow@mvista.com>
1744
1745 * cli/cli-logging.c (pop_output_files): Add void to function
1746 definition.
1747
d2cf594a
AC
17482003-06-29 Andrew Cagney <cagney@redhat.com>
1749
1750 * frame.c (frame_register_unwind): Use unsigned char when dumping
1751 the buffer contents.
1752
0fac0b41
DJ
17532003-06-28 Daniel Jacobowitz <drow@mvista.com>
1754
1755 * cli/cli-logging.c: New file.
1756 * cli-out.c (struct ui_out_data): Add original_stream.
1757 (cli_redirect): New function.
1758 (cli_ui_out_impl): Add cli_redirect.
1759 (cli_out_new): Initialize original_stream.
1760 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1761 (uo_redirect, ui_out_redirect): New.
1762 * ui-out.h (struct ui_out_impl): Add redirect member.
1763 (redirect_ftype): New.
1764 (ui_out_redirect): Add prototype.
1765 * Makefile.in: Add rules for cli-logging.c.
1766 * NEWS: Mention "set logging".
1767
88a07d7c
EZ
17682003-06-27 Elena Zannoni <ezannoni@redhat.com>
1769
1770 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1771
4eb58876
AC
17722003-06-27 Andrew Cagney <cagney@redhat.com>
1773
1774 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1775 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1776 * avr-tdep.c (avr_call_dummy_address): Delete function.
1777 (avr_gdbarch_init): Do not set call_dummy_address.
1778
1549f619
EZ
17792003-06-27 Elena Zannoni <ezannoni@redhat.com>
1780
1781 * symfile.c (syms_from_objfile): Move variables to inner block.
1782 Move the checks for the non-mainline case a bit earlier to avoid
1783 doing some useless computations.
1784
3cb3398d
EZ
17852003-06-27 Elena Zannoni <ezannoni@redhat.com>
1786
1787 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1788
3799ccc6
EZ
17892003-06-26 Elena Zannoni <ezannoni@redhat.com>
1790
1791 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1792 sections.
1793
ce1f6491
MC
17942003-06-26 Michael Chastain <mec@shout.net>
1795
1796 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1797 gdb/testsuite/gdb.c++/pr-1210.exp.
1798
d958dfd0
AC
17992003-06-26 Andrew Cagney <cagney@redhat.com>
1800
1801 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1802 altivec_expression.h and altivec_registers.h.
1803
d31431ed
AC
18042003-06-26 Andrew Cagney <cagney@redhat.com>
1805
1806 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1807 info->mach when MIPS16. Patch suggested by Fred Fish.
1808
714b1282
AC
18092003-06-26 Andrew Cagney <cagney@redhat.com>
1810
1811 * utils.c (internal_vproblem): Print the problem to a reason
1812 buffer and then pass to query. Make the msg variable more local.
1813
42efa47a
AC
18142003-06-26 Andrew Cagney <cagney@redhat.com>
1815
1816 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
1817 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
1818 * gdbarch.h, gdbarch.c: Re-generate.
1819 * frame-base.c (default_frame_args_address): Update. Use
1820 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
1821 not available.
1822 (default_frame_locals_address): Ditto for
1823 DEPRECATED_FRAME_LOCALS_ADDRESS.
1824 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
1825 (vax_frame_num_args): Update.
1826 (vax_gdbarch_init): Update.
1827 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1828 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1829 * mcore-tdep.c (mcore_gdbarch_init): Update.
1830 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1831 * ia64-tdep.c (ia64_gdbarch_init): Update.
1832 * symtab.h (address_class): Update comments.
1833 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
1834 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1835 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1836 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1837 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1838 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1839 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1840 * alpha-mdebug-tdep.c: Update.
1841 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
1842
8ffd9b1b
AJ
18432003-06-26 Andreas Jaeger <aj@suse.de>
1844
1845 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
1846 of SSE registers so that varargs functions work. Rework handling
1847 of passing arguments on the stack.
1848 (x86_64_store_return_value): Return double and float values in SSE
1849 register.
1850
e8ac10a6
MC
18512003-06-24 Michael Chastain <mec@shout.net>
1852
1853 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
1854 the "constructor breakpoints ignored" bug.
1855
986af8e6
DC
18562003-06-25 David Carlton <carlton@kealia.com>
1857
1858 * MAINTAINERS: Update e-mail address.
1859
d64558a5
JB
18602003-06-24 Jim Blandy <jimb@redhat.com>
1861
e538d2d7
JB
1862 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
1863
02631ec0
JB
1864 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
1865 function.
1866 (ppc_linux_init_abi): Register it as the
1867 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
1868
e716d87a
JB
1869 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
1870 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
1871 method.
1872
d64558a5
JB
1873 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
1874 (ppc64_standard_linkage_target): Use it.
1875
449a5da4
AC
18762003-06-23 Andrew Cagney <cagney@redhat.com>
1877
1878 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
1879 for 0 "int0" and 4 "int32" sized registers.
1880 * gdbtypes.c (builtin_type_int0): Define.
1881 (build_gdbtypes): Initialize builtin_type_int0.
1882 * gdbtypes.h (builtin_type_int0): Declare.
1883
b2a02dda
SC
18842003-06-23 Stephane Carrez <stcarrez@nerim.fr>
1885
1886 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
1887 as characters are unsigned.
1888
fba3138e
DJ
18892003-06-22 Daniel Jacobowitz <drow@mvista.com>
1890
1891 PR gdb/1179
1892 * dwarfread.c (struct_type): Skip static fields without crashing.
1893
f6c8180b
AC
18942003-06-22 Andrew Cagney <cagney@redhat.com>
1895
1896 GDB 6.0 branch created.
f2c06f52
AC
1897 * README: Update.
1898 * PROBLEMS: Update. Empty.
1899 * NEWS: Update.
f6c8180b 1900
ae822768
DJ
19012003-06-22 Daniel Jacobowitz <drow@mvista.com>
1902
1903 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
1904 Suggested by Nick Hibma <n_hibma@webweaving.org>.
1905
261de166
AC
19062003-06-22 Andrew Cagney <cagney@redhat.com>
1907
1908 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
1909 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
1910 Velikov.
1911
30e94205
DJ
19122003-06-22 Daniel Jacobowitz <drow@mvista.com>
1913
1914 * cli/cli-cmds.c (shell_escape): Silence warnings from old
1915 compilers.
1916
9e14d721
DJ
19172003-06-21 Daniel Jacobowitz <drow@mvista.com>
1918
1919 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
1920 argument of val_print.
1921 * cp-valprint.c (cp_print_value): Don't add the offset parameter
1922 to the address argument of baseclass_offset or target_read_memory.
1923 Do add it to the argument of cp_print_value_fields.
1924
a4b8ebc8
AC
19252003-06-21 Andrew Cagney <cagney@redhat.com>
1926
1927 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
1928 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
1929 instead of 0..NUM_REGS.
1930 (mips_register_reggroup_p): New function.
1931 (mips_pseudo_register_write): New function.
1932 (mips_pseudo_register_read): New function.
1933 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
1934 based on the register's type.
1935 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
1936 cooked.
1937 (mips_get_saved_register): Simplify. Assert that REGNO is a
1938 pseudo / cooked.
1939 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
1940 (mips_register_type): Replace mips_register_virtual_type. Map
1941 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
1942 when available.
1943 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
1944 that the register is cooked / virtual.
1945 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
1946 Only get the extra info when needed.
1947 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
1948 (mips32_heuristic_proc_desc): Fetch the cooked register.
1949 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
1950 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
1951 (mips_print_register): Use gdbarch_register_type, instead of
1952 REGISTER_VIRTUAL_TYPE.
1953 (print_gp_register_row): Use gdbarch_register_type, instead of
1954 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
1955 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1956 Print the pseudo / cooked registers.
1957 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1958 Print the pseudo / cooked registers.
1959 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
1960 REG_NUM is pseudo / cooked.
1961 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
1962 (mips_n32n64_xfer_return_value): Ditto.
1963 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
1964 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
1965 (mips_register_sim_regno): New function.
1966 (mips_gdbarch_init): Set deprecated_register_byte,
1967 register_group_p, pseudo_register_write, pseudo_register_read,
1968 register_sim_regno, and num_pseudo_regs. Set register_type,
1969 instead of register_virtual_type.
1970 * Makefile.in (mips-tdep.o): Update dependencies.
1971 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
1972 REGISTER_VIRTUAL_TYPE.
1973 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
1974 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
1975 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
1976 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
1977 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
1978
325ed089
DJ
19792003-06-21 Daniel Jacobowitz <drow@mvista.com>
1980
1981 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
1982 * cli/cli-cmds.c: Include "gdb_vfork.h".
1983 (shell_escape): Use vfork.
1984
f0e7d0e8
AC
19852003-06-21 Andrew Cagney <cagney@redhat.com>
1986
c57bb9fa
AC
1987 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
1988 32 bit floating-point register saves.
1989
6e51443a
AC
1990 * frame.h (deprecated_unwind_get_saved_register): Delete.
1991 * frame.c (deprecated_unwind_get_saved_register): Delete function.
1992 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
1993 and deprecated_get_next_frame_hack instead of
1994 deprecated_unwind_get_saved_register.
1995
ed183c7c
AC
1996 * mips-tdep.c (mips_dump_tdep): Do not print
1997 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
1998
f0e7d0e8
AC
1999 * frame.c (get_frame_register): New function.
2000 (frame_unwind_register_signed): New function.
2001 (get_frame_register_signed): New function.
2002 (frame_unwind_register_unsigned): New function.
2003 (get_frame_register_unsigned): New function.
2004 * frame.h: Add comments on naming schema.
2005 (get_frame_register, frame_unwind_register_signed): Declare.
2006 (get_frame_register_signed, get_frame_register_signed): Declare.
2007 (frame_unwind_register_unsigned): Declare.
2008 (get_frame_register_unsigned): Declare.
2009
2224d941
TR
20102003-06-20 Theodore A. Roth <troth@openavr.org>
2011
2012 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2013
8619218d
TR
20142003-06-20 Theodore A. Roth <troth@openavr.org>
2015
2016 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2017 (avr_read_sp): Ditto.
2018
0b1b50c0
DJ
20192003-06-20 Daniel Jacobowitz <drow@mvista.com>
2020
2021 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2022 * config/arm/nm-linux.h: Likewise.
2023 * config/arm/tm-linux.h: Likewise.
2024 * config/ia64/nm-linux.h: Likewise.
2025 * config/ia64/tm-ia64.h: Likewise.
2026 * config/s390/tm-linux.h: Likewise.
2027 * config/s390/tm-s390.h: Likewise.
2028 * s390-nat.c: Likewise.
2029 * s390-tdep.c: Likewise.
2030
2031 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2032 * config/ia64/linux.mt: Likewise.
2033 * config/m68k/linux.mh: Likewise.
2034 * config/mips/linux.mt: Likewise.
2035 * config/powerpc/linux.mh: Likewise.
2036 * config/sh/linux.mt: Likewise.
2037
c8c18e65
KW
20382003-06-19 Kris Warkentin <kewarken@qnx.com>
2039
2040 * solib.c (solib_open): Change tests for whether to search
2041 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2042 comments.
2043
dcccef2e
TR
20442003-06-19 Theodore A. Roth <troth@openavr.org>
2045
2046 * avr-tdep.c (avr_frame_address): Delete function.
2047 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2048 set_gdbarch_frame_args_address.
2049
5861a190
AC
20502003-06-19 Andrew Cagney <cagney@redhat.com>
2051
2052 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2053 (REGISTER_CONVERT_FROM_TYPE): Delete.
2054 (mips_register_convert_to_type): Delete declaration.
2055 (mips_register_convert_from_type): Delete declaration.
2056 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2057 kernel/.
2058
0274a8ce
MS
20592003-06-19 Michael Snyder <msnyder@redhat.com>
2060
2061 * linux-nat.h: New file.
2062 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 2063 * lin-lwp.c: Include linux-nat.h.
0274a8ce 2064 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 2065 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
2066 (linux_make_note_section): Iterate over lwps instead of threads.
2067 (linux_do_thread_registers): Use lwp instead of merged pid.
2068 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 2069 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
2070 Add dependency on linux_nat_h.
2071
adf5f719
TR
20722003-06-19 Theodore A. Roth <troth@openavr.org>
2073
2074 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2075
6766a268
DJ
20762003-06-19 Daniel Jacobowitz <drow@mvista.com>
2077
2078 * varobj.c (get_type, get_target_type): Use check_typedef.
2079
1171114a
DJ
20802003-06-19 Daniel Jacobowitz <drow@mvista.com>
2081
2082 * breakpoint.c (insert_catchpoint): Call internal_error.
2083
adcf68a2
TR
20842003-06-19 Theodore A. Roth <troth@openavr.org>
2085
2086 * avr-tdep.c (avr_push_dummy_code): Delete function.
2087 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2088
ea67f13b
DJ
20892003-06-19 Daniel Jacobowitz <drow@mvista.com>
2090
2091 * arch-utils.c (default_prepare_to_proceed): Remove.
2092 (generic_prepare_to_proceed): Remove.
2093 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2094 (generic_prepare_to_proceed): Remove prototype.
2095 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2096 * gdbarch.c: Regenerate.
2097 * gdbarch.h: Regenerate.
2098 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2099 * hppah-nat.c (hppa_switched_threads): Remove.
2100 * infrun.c (prepare_to_proceed): New static function, copied from
2101 generic_prepare_to_proceed. Remove select_it argument.
2102 (proceed): Call prepare_to_proceed.
2103 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2104 variables.
2105 (ptrace_wait): Don't set the removed variables.
2106 (hppa_switched_threads): Remove.
2107 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2108 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2109 (lin_lwp_prepare_to_proceed): Remove prototype.
2110 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2111 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2112
4add8633
TR
21132003-06-18 Theodore A. Roth <troth@openavr.org>
2114
2115 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2116 trad-frame.h.
2117 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2118 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2119 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2120 (AVR_PROLOGUE_*): Enumerate prologue types.
2121 (struct frame_extra_info): Remove.
2122 (struct avr_unwind_cache): Define.
2123 (avr_write_sp): Delete function.
2124 (avr_read_fp): Ditto.
2125 (avr_init_extra_frame_info): Ditto.
2126 (avr_pop_frame): Ditto.
2127 (avr_frame_saved_pc): Ditto.
2128 (avr_saved_pc_after_call): Ditto.
2129 (avr_push_return_address): Ditto.
2130 (avr_frame_chain): Ditto.
2131 (avr_store_struct_return): Ditto.
2132 (avr_push_arguments): Ditto.
2133 (avr_scan_prologue): Update comments. Changed to set up the info for
2134 cache unwinding. Now returns end of prologue PC.
2135 (avr_skip_prologue): Better handling of functions lacking a prologue
2136 by using avr_scan_prologue.
2137 (avr_scan_arg_moves): New function.
2138 (avr_saved_regs_unwinder): Ditto.
2139 (avr_frame_unwind_cache): Ditto.
2140 (avr_unwind_pc): Ditto.
2141 (avr_frame_this_id): Ditto.
2142 (avr_frame_prev_register): Ditto.
2143 (avr_frame_p): Ditto.
2144 (avr_frame_base_address ): Ditto.
2145 (avr_unwind_dummy_id): Ditto.
2146 (avr_push_dummy_code): Ditto.
2147 (push_stack_item): Ditto.
2148 (pop_stack_item): Ditto.
2149 (avr_push_dummy_call): Ditto.
2150 (struct stack_item): Define.
2151 (avr_frame_unwind): Declare structure.
2152 (avr_frame_base): Ditto.
2153 (avr_gdbarch_init): Remove calls to
2154 set_gdbarch_deprecated_init_frame_pc,
2155 set_gdbarch_deprecated_target_read_fp,
2156 set_gdbarch_deprecated_dummy_write_sp,
2157 set_gdbarch_deprecated_fp_regnum,
2158 set_gdbarch_deprecated_push_arguments,
2159 set_gdbarch_deprecated_push_return_address,
2160 set_gdbarch_deprecated_pop_frame,
2161 set_gdbarch_deprecated_store_struct_return,
2162 set_gdbarch_deprecated_frame_init_saved_regs,
2163 set_gdbarch_deprecated_init_extra_frame_info,
2164 set_gdbarch_deprecated_frame_chain,
2165 set_gdbarch_deprecated_frame_saved_pc,
2166 set_gdbarch_deprecated_saved_pc_after_call.
2167 Add calls to set_gdbarch_push_dummy_call,
2168 set_gdbarch_push_dummy_code,
2169 frame_unwind_append_predicate,
2170 frame_base_set_default,
2171 set_gdbarch_unwind_dummy_id,
2172 set_gdbarch_unwind_pc.
2173 Wrap a long line.
2174
7be04a68
MS
21752003-06-18 Corinna Vinschen <vinschen@redhat.com>
2176
2177 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2178 registers for H8/300S.
2179 (h8300_print_registers_info): Ditto.
8ffd9b1b 2180 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 2181
ae087d01
DJ
21822003-06-18 Daniel Jacobowitz <drow@mvista.com>
2183
2184 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2185 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2186 (lin_lwp_wait): Likewise. Update comments.
2187 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2188 (pull_pid_from_list, linux_record_stopped_pid): New.
2189
07d8f827
SC
21902003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2191
2192 * ada-lang.c (scan_discrim_bound): Name first argument.
2193 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2194 declared by ALL_BLOCK_SYMBOLS.
2195
7cb47b14
SC
21962003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2197
2198 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2199 ("regcache.h"): Include it.
2200 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2201
6ad8ae5c
DJ
22022003-06-17 Daniel Jacobowitz <drow@mvista.com>
2203
2204 * NEWS: Mention gdbserver detach change and "disconnect" command.
2205 * infcmd.c (disconnect_command): New function.
2206 (_initialize_infcmd): Add ``disconnect'' command.
2207 * remote.c (remote_async_detach): Delete.
2208 (remote_detach): Merge remote_async_detach.
2209 (remote_disconnect): New.
2210 (init_remote_ops): Set to_disconnect.
2211 (init_remote_cisco_ops): Likewise.
2212 (init_remote_async_ops): Likewise. Use remote_detach.
2213 * target.c (cleanup_target): Default to_disconnect.
2214 (update_current_target): Inherit to_disconnect.
2215 (target_disconnect, debug_to_disconnect): New functions.
2216 (setup_target_debug): Set to_disconnect.
2217 * target.h (struct target_ops): Add to_disconnect.
2218 (target_disconnect): Add prototype.
2219
687595f9
DJ
22202003-06-17 Daniel Jacobowitz <drow@mvista.com>
2221
2222 * breakpoint.c (insert_catchpoint): New function.
2223 (insert_breakpoints): Use catch_exceptions to call
2224 insert_catchpoint. Disable catchpoints if they fail to insert.
2225
29239a8f
DJ
22262003-06-17 Daniel Jacobowitz <drow@mvista.com>
2227
2228 * symfile.c (reread_symbols): Clear sym_private.
2229
2cdf3c63
AC
22302003-06-17 Andrew Cagney <cagney@redhat.com>
2231
2232 * trad-frame.h (struct frame_info): Add opaque declaration.
2233 * remote-fileio.h (struct cmd_list_element): Add opaque
2234 declaration.
2235 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2236 comments.
2237
cf0e1e0d
DJ
22382003-06-17 Daniel Jacobowitz <drow@mvista.com>
2239
2240 * remote.c (remote_prepare_to_store): Replace call to
2241 deprecated_read_register_bytes with multiple regcache_raw_read
2242 calls.
2243
192cdb19
KW
22442003-06-17 Kris Warkentin <kewarken@qnx.com>
2245
2246 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2247 (nto_find_and_open_solib): Likewise.
2248 (nto_init_solib_absolute_prefix): Likewise.
2249 (_initialize_nto_tdep): Fix indentation.
2250
89929b45
KW
22512003-06-17 Kris Warkentin <kewarken@qnx.com>
2252
2253 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2254
46019f27
KW
22552003-06-17 Kris Warkentin <kewarken@qnx.com>
2256
2257 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2258
1a38736e
JB
22592003-06-17 Jim Blandy <jimb@redhat.com>
2260
2261 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2262
3605c34a
TR
22632003-06-16 Theodore A. Roth <troth@openavr.org>
2264
2265 * avr-tdep.c (avr_extract_return_value): New function.
2266 (avr_gdbarch_init): Set extract_return_value method.
2267
870b3035
AC
22682003-06-16 Andrew Cagney <cagney@redhat.com>
2269
2270 * frame.h (deprecated_get_next_frame_hack): Declare.
2271 * frame.c (legacy_saved_regs_prev_register): Only require
2272 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2273 there are always saved regs.
2274 (deprecated_generic_get_saved_register): Do not require
2275 DEPRECATED_FRAME_INIT_SAVED_REGS.
2276 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2277 use frame ID unwind instead.
2278 (deprecated_get_next_frame_hack): New function.
2279
63d47a7d
CV
22802003-06-16 Corinna Vinschen <vinschen@redhat.com>
2281
2282 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2283 (h8300_push_dummy_call): ...this function. Some minor optimization.
2284 (h8300_push_return_address): Remove.
2285 (h8300_gdbarch_init): Remove calls to
2286 set_gdbarch_deprecated_dummy_write_sp,
2287 set_gdbarch_deprecated_push_arguments and
2288 set_gdbarch_deprecated_push_return_address.
2289 Add call to set_gdbarch_push_dummy_call.
2290
4bb1dc5e
CV
22912003-06-16 Corinna Vinschen <vinschen@redhat.com>
2292
2293 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2294 (E_PSEUDO_EXR_REGNUM): Ditto.
2295 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 2296 registers into safe registers.
4bb1dc5e
CV
2297 (h8300_skip_prologue): Check for stm instruction to push registers
2298 used for register variables onto stack.
2299 (gdb_print_insn_h8300): Remove.
2300 (h8300_examine_prologue): Add a comment.
2301 (h8300_register_name): Take pseudo registers into account.
2302 (h8300s_register_name): Ditto.
2303 (h8300sx_register_name): Ditto.
2304 (h8300_print_register): Ditto.
2305 (h8300_print_registers_info): Define "nice" printing order.
2306 (h8300_saved_pc_after_call): Take pseudo registers into account.
2307 (h8300_register_type): Ditto. Return type used for remote connection
2308 when requesting real CCR or EXR register, return actual type when
2309 requesting pseudo CCR or EXR.
2310 (h8300_pseudo_register_read): New function.
2311 (h8300_pseudo_register_write): Ditto.
2312 (h8300_dbg_reg_to_regnum): Ditto.
2313 (h8300s_dbg_reg_to_regnum): Ditto.
2314 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2315 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2316 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2317 set_gdbarch_print_insn architecture dependent.
2318 Call set_gdbarch_pseudo_register_read and
2319 set_gdbarch_pseudo_register_write.
2320 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2321
a59fe496
AC
23222003-06-16 Andrew Cagney <cagney@redhat.com>
2323
2324 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2325 * gdbarch.h, gdbarch.c: Re-generate.
2326 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2327 * s390-tdep.c (s390_gdbarch_init): Update.
2328 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2329 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2330 * mips-tdep.c (mips_gdbarch_init): Update.
2331 * mcore-tdep.c (mcore_gdbarch_init): Update.
2332 * cris-tdep.c (cris_gdbarch_init): Update.
2333 * infcall.c (call_function_by_hand): Update.
2334 * ia64-tdep.c (ia64_push_arguments): Update comment.
2335 * frame.c (legacy_get_prev_frame): Do not assume
2336 SAVE_DUMMY_FRAME_TOS_P.
2337 * dummy-frame.c (find_dummy_frame): Update comment.
2338
6f4e5a41
AC
23392003-06-16 Andrew Cagney <cagney@redhat.com>
2340
2341 * regcache.c (do_cooked_read): Do not use register_valid_p.
2342
72fab697
TR
23432003-06-15 Theodore A. Roth <troth@openavr.org>
2344
2345 * avr-tdep.c (avr_register_type): Remove a blank line.
2346 (avr_scan_prologue): Correct some comments.
2347
e3d8b004
TR
23482003-06-15 Theodore A. Roth <troth@openavr.org>
2349
2350 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2351 prologue types.
8ffd9b1b 2352 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
2353 option.
2354 Add code to scan -mcall-prologues for mega devices.
2355
866b76ea
TR
23562003-06-15 Theodore A. Roth <troth@openavr.org>
2357
2358 * avr-tdep.c (avr_register_byte): Delete function.
2359 (avr_register_raw_size): Delete function.
2360 (avr_register_virtual_size): Delete function.
2361 (avr_register_virtual_type): Delete function.
2362 (avr_register_type): New function.
2363 (avr_address_to_pointer): Remove unused code.
2364 (avr_read_fp): Need to read FP as two separate bytes due to change to
2365 avr_register_type() usage.
2366 (avr_gdbarch_init): Don't set deprecated_register_size.
2367 Don't set deprecated_register_bytes.
2368 Don't set deprecated_register_byte.
2369 Don't set deprecated_register_raw_size.
2370 Don't set deprecated_max_register_raw_size.
2371 Don't set deprecated_register_virtual_size.
2372 Don't set deprecated_max_register_virtual_size.
2373 Don't set deprecated_register_virtual_type.
2374 Set register_type method.
2375
3993f6b1
DJ
23762003-06-15 Daniel Jacobowitz <drow@mvista.com>
2377
2378 * Makefile.in (linux-nat.o): Add rule.
2379 * linux-nat.c: New file.
2380 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2381 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2382 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2383 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2384 * config/arm/linux.mh (NATDEPFILES): Likewise.
2385 * config/i386/linux.mh (NATDEPFILES): Likewise.
2386 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2387 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2388 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2389 * config/mips/linux.mh (NATDEPFILES): Likewise.
2390 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2391 * config/s390/s390.mh (NATDEPFILES): Likewise.
2392 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2393
786a90bb
MK
23942003-06-15 Mark Kettenis <kettenis@gnu.org>
2395
2396 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2397 replace out-of-date comment.
2398
3bd3f01e
AC
23992003-06-15 Andrew Cagney <cagney@redhat.com>
2400
2401 * rdi-share/host.h (Fail): Change to a varargs function.
2402 * remote-rdi.c (Fail): Update.
8ffd9b1b 2403
de5b9bb9
MK
24042003-06-15 Mark Kettenis <kettenis@gnu.org>
2405
2406 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2407 (i386_convert_register_p, i386_register_to_value,
2408 i386_register_from_value): Handle types longer than 8 bytes.
2409
d532c08f
MK
24102003-06-15 Mark Kettenis <kettenis@gnu.org>
2411
2412 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2413 Move floating-point code to new function in i387-tdep.c.
2414 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2415 New functions containing code moved here from i386-tdep.c.
2416 * i387-tdep.h: Add opaque declaration for `struct type'.
2417 (i387_register_to_value, i387_value_to_register): New prototypes.
2418 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2419 (x86_64_init_abi): Set convert_register_p, register_to_value and
2420 value_to_register here.
8ffd9b1b 2421
42c466d7
AC
24222003-06-14 Andrew Cagney <cagney@redhat.com>
2423
2424 * mips-tdep.c (mips_register_to_value): Make static.
2425 (mips_value_to_register): Make static.
2426 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2427 * ia64-tdep.c (ia64_register_raw_size): Make static.
2428 (ia64_register_virtual_size): Make static.
2429 (ia64_register_byte): Make static.
2430 * i387-tdep.c: Include "i387-tdep.h".
2431 (print_387_control_word): Delete function.
2432 (print_387_status_word): Delete function.
2433 (print_387_status_bits): Delete function.
2434 (print_387_control_bits): Delete function.
2435 * Makefile.in (i387-tdep.o): Update dependencies.
2436 * rdi-share/host.h (Fail): Declare.
2437 * remote-rdi.c (Fail): Update to match declaration.
2438
2a9cda49
AC
24392003-06-14 Andrew Cagney <cagney@redhat.com>
2440
2441 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2442 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2443 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2444 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2445 * README: Delete reference to remote-array.
2446 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2447 (remote-array.o): Delete target.
2448 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2449 * remote-array.c: Delete file.
2450
ff2e87ac
AC
24512003-06-14 Andrew Cagney <cagney@redhat.com>
2452 Mark Kettenis <kettenis@gnu.org>
2453
2454 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2455 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2456 parameter with "frame".
2457 * gdbarch.h, gdbarch.c: Re-generate.
2458 * frame.h (put_frame_register): Declare.
2459 * frame.c (put_frame_register): New function.
2460 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2461 (legacy_register_to_value): Rewrite, use "frame" to get the
2462 register value.
2463 (legacy_value_to_register): Rewrite, use "frame" to find the
2464 register's location before storing.
2465 * arch-utils.h (legacy_convert_register_p): Update.
2466 (legacy_register_to_value, legacy_value_to_register): Update.
2467 * findvar.c (value_from_register): Rewrite, eliminate use of
2468 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2469 "frame" to REGISTER_TO_VALUE.
2470 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2471 lval_reg_frame_relative + lval_register branch of the switch. Do
2472 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2473 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2474 I386_EDI_REGNUM): New defines.
2475 (i386_next_regnum, i386_convert_register_p,
2476 i386_register_to_value, i386_value_to_register): New functions.
2477 (i386_register_convertible, i386_register_convert_to_virtual,
2478 i386_convert_to_raw): Remove functions.
2479 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2480 value_to_register instead of register_convertible,
2481 register_convert_to_virtual and register_convert_to_raw.
2482 * mips-tdep.c (mips_convert_register_p): New function.
2483 (mips_value_to_register): Replace mips_register_convert_from_type.
2484 (mips_register_to_value): Replace mips_register_convert_to_type.
2485 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2486 register_to_value.
2487 * alpha-tdep.c (alpha_convert_register_p): Update.
2488 (alpha_value_to_register): Update, store the register.
2489 (alpha_register_to_value): Update, fetch the register.
2490
98be1e77
TR
24912003-06-14 Theodore A. Roth <troth@openavr.org>
2492
2493 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2494 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2495 Don't set deprecated_call_dummy_words.
2496 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2497 Don't set remote_translate_xfer_address.
2498 (avr_io_reg_read_command): Remove commented out debug printf.
2499 Wrap a long line.
2500
57bc6122
TR
25012003-06-14 Theodore A. Roth <troth@openavr.org>
2502
2503 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2504 causes gdb to seg fault.
2505
eb01fc62
DJ
25062003-06-14 Daniel Jacobowitz <drow@mvista.com>
2507
2508 * sparc-nat.c (fetch_inferior_registers): Correct
2509 a reference to "registers".
2510
3b3e6bee
DJ
25112003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2512
2513 * Makefile.in (exc_request_U_h): Define
2514 (exc_request_S_h): Likewise.
2515 (msg_reply_S_h): Likewise.
2516 (msg_U_h): Likewise.
2517 (notify_S_h): Likewise.
2518 (process_reply_S_h): Likewise.
2519 (gnu-nat.o): Depend on gdb_obstack_h
2520 * gnu-nat.c: Include "gdb_obstack.h".
2521
b8de8283
AC
25222003-06-13 Andrew Cagney <cagney@redhat.com>
2523
2524 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2525 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 2526
f3be58bc
AC
25272003-06-13 Andrew Cagney <cagney@redhat.com>
2528
2529 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2530 when deprecated REGISTER macros can be deleted.
2531 * gdbarch.h, gdbarch.c: Re-generate.
2532
4c0122c8
JB
25332003-06-13 Jim Blandy <jimb@redhat.com>
2534
2535 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2536 Linux entry point symbols for _dl_debug_state, too.
2537
3e210248
AC
25382003-06-13 Andrew Cagney <cagney@redhat.com>
2539
2540 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2541 available, do not use the FP register, and always save the TOS.
2542 * dummy-frame.c (dummy_frame_this_id): Do not assert
2543 SAVE_DUMMY_FRAME_TOS.
2544 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2545 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2546 (i386_push_dummy_call): Add 8 to the returned SP.
2547 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2548 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2549 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2550 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2551 (x86_64_push_dummy_call): Return "sp + 16".
2552 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2553 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2554 save_dummy_frame_tos.
2555
0b65af49
JB
25562003-06-13 Jim Blandy <jimb@redhat.com>
2557
2558 * frv-tdep.c (frv_use_struct_convention): Delete static
2559 declaration for function deleted in my change of 2003-06-12.
2560
4ea2465e
TR
25612003-06-13 Theodore A. Roth <troth@openavr.org>
2562
2563 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2564 (avr_pointer_to_address): Shift code addrs left 1 bit.
2565 (avr_convert_from_func_ptr_addr): Delete function since operation is
2566 better handled by avr_address_to_pointer and avr_pointer_to_address.
2567 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2568
1581182a
MK
25692003-06-13 Mark Kettenis <kettenis@gnu.org>
2570
2571 From Kelley Cook <kelleycook@wideopenwest.com>:
2572 * configure.host: Accept i[34567]86 variants.
2573 * configure.tgt: Likewise.
2574 * nlm/configure.in: Likewise.
2575 * nlm/configure: Regenerated.
2576
7aa1783e
RE
25772003-06-13 Richard Earnshaw <rearnsha@arm.com>
2578
2579 * arm-tdep.c (solib-svr4.h): Dont' include it.
2580 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2581 * arm-linux-tdep.c: ... here. Make static.
2582 (arm_linux_init_abi): Register it.
2583 (solib-svr4.h): Include it.
2584 * Makefile.in: Update dependencies.
2585 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2586 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2587
0261a0d0
CV
25882003-06-13 Corinna Vinschen <vinschen@redhat.com>
2589
2590 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2591 indicate registers used for return values.
2592 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2593 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2594 members.
2595 (h8300_init_extra_frame_info): Ditto.
2596 (h8300_frame_locals_address): Removed.
2597 (h8300_frame_args_address): Removed.
2598 (h8300_extract_return_value): Use new regcache structure. Only care
2599 for 16 bit CPUs.
2600 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2601 (h8300_store_return_value): Use new regcache structure. Only care
2602 for 16 bit CPUs.
2603 (h8300h_store_return_value): Same function for 32 bit CPUs.
2604 (h8300_store_struct_return): Removed.
2605 (h8300_extract_struct_value_address): Use new regcache structure.
2606 (h8300h_extract_struct_value_address): Removed.
2607 (h8300_push_dummy_code): New function.
2608 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2609 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2610 set_gdbarch_store_return_value architecture dependent.
2611 Call set_gdbarch_push_dummy_code and
2612 set_gdbarch_extract_struct_value_address.
2613 Remove calls to set_gdbarch_frame_args_address,
2614 set_gdbarch_frame_locals_address,
2615 set_gdbarch_deprecated_store_struct_return,
2616 set_gdbarch_deprecated_extract_return_value,
2617 set_gdbarch_deprecated_extract_struct_value_address,
2618 set_gdbarch_deprecated_call_dummy_words and
2619 set_gdbarch_deprecated_sizeof_call_dummy_words.
2620
055c394a
CV
26212003-06-13 Corinna Vinschen <vinschen@redhat.com>
2622
2623 * h8300-tdep.c (h8300_register_byte): Remove.
2624 (h8300h_register_byte): Remove.
2625 (h8300_register_virtual_type): Remove. Substitute by...
2626 (h8300_register_type): New function.
2627 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2628 (h8300h_extract_struct_value_address): Ditto.
2629 (h8300_gdbarch_init): Drop calls to
2630 set_gdbarch_deprecated_register_byte and
2631 set_gdbarch_deprecated_register_virtual_type.
2632 Add call to set_gdbarch_register_type.
2633
9c04cab7
AC
26342003-06-13 Andrew Cagney <cagney@redhat.com>
2635
2636 * gdbarch.sh: Update comments on registers.
2637 (deprecated_register_byte): Rename register_byte.
2638 (deprecated_register_raw_size): Rename register_raw_size.
2639 (deprecated_register_virtual_size): Rename register_virtual_size.
2640 (deprecated_register_virtual_type): Rename register_virtual_type.
2641 * gdbarch.h, gdbarch.c: Re-generate.
2642 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2643 * vax-tdep.c (vax_gdbarch_init): Update.
2644 * v850-tdep.c (v850_gdbarch_init): Update.
2645 * sparc-tdep.c (sparc_gdbarch_init): Update.
2646 * sh-tdep.c (sh_gdbarch_init): Update.
2647 * s390-tdep.c (s390_gdbarch_init): Update.
2648 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2649 * ns32k-tdep.c: Update.
2650 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2651 * mips-tdep.c (mips_gdbarch_init): Update.
2652 * mcore-tdep.c (mcore_gdbarch_init): Update.
2653 * m68k-tdep.c (m68k_gdbarch_init): Update.
2654 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2655 * ia64-tdep.c (ia64_gdbarch_init): Update.
2656 * hppa-tdep.c (hppa_gdbarch_init): Update.
2657 * h8300-tdep.c (h8300_gdbarch_init): Update.
2658 * frv-tdep.c (frv_gdbarch_init): Update.
2659 * cris-tdep.c (cris_gdbarch_init): Update.
2660 * avr-tdep.c (avr_gdbarch_init): Update.
2661 * alpha-tdep.c (alpha_gdbarch_init): Update.
2662 * arm-tdep.c (arm_gdbarch_init): Update.
2663
b060cbea
AC
26642003-06-13 Andrew Cagney <cagney@redhat.com>
2665
2666 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2667 mips_o32_use_struct_convention with always_use_struct_convention.
2668
0fc9922a
DC
26692003-06-12 David Carlton <carlton@kealia.com>
2670
2671 * cp-namespace.c (cp_set_block_scope): Comment out
2672 processing_has_namespace_info branch.
2673
1fd35568
JB
26742003-06-12 Jim Blandy <jimb@redhat.com>
2675
f470a70a
JB
2676 Recognize and skip 64-bit PowerPC Linux linkage functions.
2677 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2678 insn_pattern, insns_match_pattern, d_field, ds_field): New
2679 functions, macros, and types for working with PPC instructions.
2680 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2681 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2682 ppc64_skip_trampoline_code): New functions, variables, and macros
2683 for recognizing and skipping linkage functions.
2684 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2685 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2686
49ff75ad
JB
2687 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2688 register offsets for both the 32- and 64-bit interfaces.
2689
bd918c83
JB
2690 Actually finish the job started by my change of 2003-05-29.
2691 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2692 other #definition of this.
2693 (ppc_linux_skip_trampoline_code): Remove declaration.
2694 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2695 static.
2696 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2697 method for GDBARCH.
2698
2699 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2700 'long' on ppc64-*-linux*.
2701
f8c59253
JB
2702 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2703 isn't #defined, assume the register doesn't exist: act as if
2704 tdep->ppc_mq_regnum were -1.
2705
8fbb30b1
JB
2706 * configure.host, configure.tgt: Add entries for
2707 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2708 powerpc/linux.mt.
2709 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2710 New files.
2711
1fd35568
JB
2712 * arch-utils.c (always_use_struct_convention): New function.
2713 * arch-utils.h (always_use_struct_convention): New prototype.
2714 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2715 (alpha_gdbarch_init): Register always_use_struct_convention,
2716 instead of alpha_use_struct_convention.
2717 * cris-tdep.c (cris_use_struct_convention): Delete.
2718 (cris_gdbarch_init): Register always_use_struct_convention,
2719 instead of cris_use_struct_convention.
2720 * frv-tdep.c (frv_use_struct_convention): Delete.
2721 (frv_gdbarch_init): Register always_use_struct_convention,
2722 instead of frv_use_struct_convention.
2723 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2724 (h8300_gdbarch_init): Register always_use_struct_convention,
2725 instead of h8300_use_struct_convention.
e3305dd9 2726 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
2727 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2728 instead of mips_o32_use_struct_convention.
2729
e14e6e9c
AC
27302003-06-12 Andrew Cagney <cagney@redhat.com>
2731
2732 * wince.c: Include "mips-tdep.h".
2733 * mips-tdep.h (mips_next_pc): Declare.
2734 * mcore-tdep.c: Make more local functions static.
2735 * Makefile.in (wince.o): Update dependencies.
2736
2335f48e
DC
27372003-06-12 David Carlton <carlton@kealia.com>
2738
2739 * symtab.c (lookup_symbol_aux_minsyms): Replace
2740 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2741 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2742 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2743 SYMBOL_NATURAL_NAME.
2744
f70a7d61
AS
27452003-06-12 Andreas Schwab <schwab@suse.de>
2746
2747 * Makefile.in (tuiDisassem.o): Update dependencies.
2748
b6429628
DC
27492003-06-12 David Carlton <carlton@bactrian.org>
2750
2751 * symtab.h: Delete declaration of make_symbol_overload_list.
2752 Add declaration of lookup_partial_symbol.
2753 * symtab.c (remove_params): Move to cp-support.c.
2754 (overload_list_add_symbol, make_symbol_overload_list)
2755 (sym_return_val_size, sym_return_val_index): Ditto.
2756 (lookup_partial_symbol): Make extern.
2757 * cp-support.h: Add declaration of make_symbol_overload_list.
2758 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2759 symtab.h, and block.h.
2760 (remove_params): Move here from symtab.c.
2761 (overload_list_add_symbol, make_symbol_overload_list)
2762 (sym_return_val_size, sym_return_val_index): Ditto.
2763 * valops.c: Include cp-support.h.
2764 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2765 frame_h, and block_h.
2766 (valops.o): Depend on cp_support_h.
2767
084edea5
CV
27682003-06-12 Corinna Vinschen <vinschen@redhat.com>
2769
2770 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2771 substitute by NUM_REGS throughout.
2772 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2773 (h8300s_register_name): New function for H8S registers.
2774 (h8300sx_register_name): Ditto for H8SX registers.
2775 (h8300_print_register): Revise register printing, avoid depending
2776 on 32 bit long.
0261a0d0 2777 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
2778 (h8300h_register_byte): New function for any other architecture.
2779 (h8300_register_raw_size): Remove.
2780 (h8300_register_virtual_type): Revise to return actually useful
2781 type.
2782 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2783 (h8300h_extract_struct_value_address): New function for any other
2784 architecture.
2785 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2786 set_gdbarch_register_name, set_gdbarch_register_byte,
2787 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2788 Remove calls to set_gdbarch_deprecated_register_size,
2789 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2790 set_gdbarch_deprecated_max_register_raw_size,
2791 set_gdbarch_register_virtual_size and
2792 set_gdbarch_deprecated_max_register_virtual_size entirely.
2793 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2794 set_gdbarch_long_double_bit.
2795
06194148
JJ
27962003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2797
8ffd9b1b
AJ
2798 * doublest.c (convert_doublest_to_floatformat): When dealing
2799 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
2800 processing a full 32 bits of mantissa.
2801
de4f826b
DC
28022003-06-11 David Carlton <carlton@bactrian.org>
2803
2804 * dictionary.h: New.
2805 * dictionary.c: New.
2806 * block.h: Add opaque declaration for struct dictionary.
2807 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2808 'sym' members.
2809 (BLOCK_DICT): New macro.
2810 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2811 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2812 BLOCK_SHOULD_SORT.
2813 (ALL_BLOCK_SYMBOLS): Update definition.
2814 * Makefile.in (SFILES): Add dictionary.c.
2815 (dictionary_h): New.
2816 (COMMON_OBS): Add dictionary.o.
2817 (dictionary.o): New.
2818 (ada-lang.o): Depend on dictionary_h.
2819 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
2820 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
2821 (mi-cmd-stack.o): Ditto.
2822 (gdbtk-cmds.o): Update dependencies.
2823 (gdbtk-stack.o): Ditto.
2824 * ada-lang.c: Include dictionary.h.
2825 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
2826 (fill_in_ada_prototype, debug_print_block): Ditto.
2827 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
2828 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
2829 'is_sorted'.
2830 * mdebugread.c: Include dictionary.h.
2831 (struct parse_stack): Delete 'maxsyms' member.
2832 (parse_symbol): Update calls to new_block. Delete calls to
2833 shrink_block. Use dictionary methods.
2834 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
2835 Update calls to new_symtab. Don't maintain maxsyms data.
2836 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
2837 (add_symbol): Just call dict_add_symbol.
2838 (new_symtab): Delete 'maxsyms' argument.
2839 (new_symtab): Update calls to new_block.
2840 (new_block): Delete 'maxsyms' argument; add 'function' argument.
2841 (shrink_block): Delete function.
2842 (fixup_sigtramp): Update call to new_block. Add symbol via
2843 dict_add_symbol.
2844 * jv-lang.c: Include dictionary.h.
2845 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
2846 appropriately. Set class_symtab->free_func. Make sure the
2847 blockvector is big enough to hold two blocks.
2848 (add_class_symtab_symbol): Use dictionary methods.
2849 (free_class_block): New function.
2850 (type_from_class): Replace explicit iteration by
2851 ALL_BLOCK_SYMBOLS.
2852 * symtab.h (struct symtab): Replace 'free_ptr' method by
2853 'free_func'.
2854 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
2855 sort_symtab_syms.
2856 * dwarfread.c (psymtab_to_symtab_1): Delete call to
2857 sort_symtab_syms.
2858 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
2859 Include dictionary.h.
2860 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
2861 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
2862 sort_symtab_syms.
2863 * objfiles.c: Include dictionary.h.
2864 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
2865 * buildsym.c: Include dictionary.h.
2866 (finish_block): Use dictionary methods.
2867 (end_symtab): Set free_func to NULL, not free_ptr.
2868 * tracepoint.c: Include dictionary.h.
2869 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
2870 (scope_info): Ditto.
2871 * stack.c: Include dictionary.h.
2872 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
2873 (print_block_frame_labels, print_frame_arg_vars)
2874 (print_frame_args): Ditto.
2875 * symmisc.c (free_symtab_block): Use dictionary methods.
2876 (dump_symtab): Ditto.
2877 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
2878 Include dictionary.h.
2879 * symfile.h: Delete declarations of sort_block_syms,
2880 sort_symtab_syms.
2881 * symfile.c (sort_block_syms): Delete.
2882 (sort_symtab_syms): Delete.
2883 * symtab.c: Include dictionary.h.
2884 (lookup_block_symbol): Use dictionary iterators.
2885 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
2886 (search_symbols, make_symbol_completion_list): Ditto.
2887 (make_symbol_overload_list): Ditto.
2888 * valops.c (value_of_local): Use dict_empty.
2889 Include dictionary.h.
2890
a31f978c
JB
28912003-06-11 J. Brobecker <brobecker@gnat.com>
2892
2893 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
2894
526e70c0
DC
28952003-06-11 David Carlton <carlton@bactrian.org>
2896
2897 * block.h (BLOCK_SHOULD_SORT): Delete.
2898 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
2899 blocks.
2900 * ada-lang.c (ada_add_block_symbols): Ditto.
2901 * symfile.c (sort_block_syms): Delete.
2902 (sort_symtab_syms): Ditto.
2903 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
2904 declarations.
2905 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
2906 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
2907 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
2908 * dwarfread.c (psymtab_to_symtab_1): Ditto.
2909 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
2910 * mdebugread.c (psymtab_to_symtab_1): Ditto.
2911 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2912
33c08150
JJ
29132003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2914
8ffd9b1b 2915 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
2916 bits to 128.
2917
781a750d
AC
29182003-06-11 Andrew Cagney <cagney@redhat.com>
2919
2920 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2921 REGISTER_CONVERTIBLE.
2922 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
2923 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
2924 * gdbarch.h, gdbarch.c: Re-generate.
2925 * arch-utils.h (deprecated_register_convertible_not): Rename
2926 generic_register_convertible_not.
2927 * arch-utils.c (deprecated_register_convertible_not): Rename
2928 generic_register_convertible.
2929 (legacy_convert_register_p, legacy_register_to_value): Update.
2930 * sh-tdep.c (sh64_push_arguments): Update.
2931 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
2932 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
2933 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
2934 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
2935 * arch-utils.c (legacy_value_to_register): Update.
2936 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2937 (rs6000_register_convert_to_raw): Make parameter "from" const.
2938 * mips-tdep.c (mips_gdbarch_init): Update.
2939 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
2940 * infcmd.c (default_print_registers_info): Update.
2941 * ia64-tdep.c (ia64_gdbarch_init): Update.
2942 (ia64_register_convert_to_raw): Make parameter "from" const.
2943 * i386-tdep.c (i386_gdbarch_init): Update.
2944 (i386_register_convert_to_raw): Update.
2945
cd90e54f
AC
29462003-06-11 Andrew Cagney <cagney@redhat.com>
2947
2948 * remote-fileio.c: Include "remote-fileio.h".
2949 * Makefile.in (remote-fileio.o): Update dependencies.
2950 (remote_fileio_h): Fix typo.
2951
a78f21af
AC
29522003-06-11 Andrew Cagney <cagney@redhat.com>
2953
2954 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
2955 (xstormy16_save_dummy_frame_tos): Make static.
2956 (_initialize_xstormy16_tdep): Add declaration.
2957 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
2958 * v850-tdep.c: Make local functions static.
2959 (_initialize_v850_tdep): Add declaration.
2960 * sparc-tdep.c: Make local functions static.
2961 (_initialize_sparc_tdep): Add declaration.
2962 * sh-tdep.c: Make local functions static.
2963 (_initialize_sh_tdep): Add declaration.
2964 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
2965 * s390-tdep.c: Make local functions static.
2966 (_initialize_s390_tdep): Add declaration.
2967 * dbxread.c (find_stab_function_addr): Make static.
2968 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
2969 * ocd.c (_initialize_remote_ocd): Add declaration.
2970 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
2971 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
2972 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
2973 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
2974 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
2975 * remote-array.c (_initialize_array): Add declaration.
2976 (_initialize_remote_monitors): Add declaration.
2977 * remote-mips.c: Make local functions static.
2978 (_initialize_remote_mips): Add declaration.
2979 * mcore-tdep.c: Make all local functions static.
2980 (_initialize_mcore_tdep): Add declaration.
2981 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
2982 * abug-rom.c (_initialize_abug_rom): Add declaration.
2983 * rom68k-rom.c (_initialize_rom68k): Add declaration.
2984 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
2985 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
2986 * remote-est.c (_initialize_est): Add declaration.
2987 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
2988 (m68hc11_call_dummy_address): Make static.
2989 * ia64-tdep.c: Make local functions static.
2990 (_initialize_ia64_tdep): Add declaration.
2991 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
2992 * monitor.c (monitor_wait_filter): Make static.
2993 (_initialize_remote_monitors): Add declaration.
2994 * remote-hms.c (_initialize_remote_hms): Add declaration.
2995 * remote-e7000.c (fetch_regs_from_dump): Make static.
2996 (expect_n): Make static.
2997 (_initialize_remote_e7000): Add declaration.
2998 * ser-e7kpc.c: Always include "defs.h".
2999 (_initialize_ser_e7000pc): Add declaration.
3000 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3001 * cris-tdep.c: Make all but one function static.
3002 (_initialize_cris_tdep): Add declaration.
3003 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3004 * solib.c (update_solib_list): Make static.
3005 (_initialize_solib): Add declaration.
3006 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3007 (_initialize_avr_tdep): Add declaration.
3008 * remote-rdi.c (voiddummy): Make static.
3009 (_initialize_remote_rdi): Add declaration.
3010 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3011 * remote-rdp.c (send_rdp): Make static.
3012 (_initialize_remote_rdp): Add declaration.
3013 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3014
cbcdb1f5
CV
30152003-06-11 Corinna Vinschen <vinschen@redhat.com>
3016
3017 * remote-fileio.c: Make ari happy.
3018
a191ea8d
JB
30192003-06-10 J. Brobecker <brobecker@gnat.com>
3020
3021 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3022 fetching the trailing bytes of the buffer we are about to write.
3023
0ef75e11
AC
30242003-06-10 Andrew Cagney <cagney@redhat.com>
3025
3026 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3027 * Makefile.in (remote-fileio.o): Update dependencies.
3028 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3029 include <setjmp.h>, or <sys/types.h> conditional on USG.
3030 (remote_fio_jmp_buf): Delete global variable.
3031
449092f6 30322003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 3033 Martin M. Hunt <hunt@redhat.com>
449092f6 3034
559fa028
AC
3035 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3036 (SFILES): Add remote-fileio.c.
3037 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3038 dependencies for building remote.o.
449092f6
CV
3039 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3040 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 3041 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
3042 static storage class.
3043 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3044 'F' packet.
3045 (_initialize_remote): Call initialize_remote_fileio().
3046 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
3047 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3048 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3049 (captured_main): Initialize new ui_files.
3050 * ui-file.c: Add read and fgets input functions.
3051 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3052 (null_file_read): New function.
3053 (ui_file_read): New function.
3054 (set_ui_file_read): New function.
3055 (stdio_file_read): New function.
3056 * ui-file.h: New type ui_file_read_ftype.
3057 (set_ui_file_read): Declare.
3058 (ui_file_read): Declare.
3059
248de703
AC
30602003-06-09 Andrew Cagney <cagney@redhat.com>
3061
3062 * frame.h (deprecated_unwind_get_saved_register): Rename
3063 generic_unwind_get_saved_register, update comments.
3064 * mips-tdep.c (mips_get_saved_register): Update.
3065 * frame.c (deprecated_unwind_get_saved_register): Update.
3066
0ed8aa57
AC
30672003-06-09 Andrew Cagney <cagney@redhat.com>
3068
3069 * vax-tdep.c (vax_frame_locals_address): Delete function.
3070 (vax_gdbarch_init): Do not set frame_locals_address.
3071 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3072 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3073 * s390-tdep.c (s390_frame_args_address): Delete function.
3074 (s390_gdbarch_init): Do not set frame_args_address or
3075 frame_locals_address.
3076 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3077 (ns32k_gdbarch_init): Do not set frame_locals_address.
3078 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3079 (hppa_frame_locals_address): Delete function.
3080 (hppa_gdbarch_init): Do not set frame_args_address, or
3081 frame_locals_address.
3082 * arm-tdep.c (arm_frame_args_address): Delete.
3083 (arm_frame_locals_address): Delete.
3084 (arm_gdbarch_init): Do not set frame_args_address, or
3085 frame_locals_address.
3086
983a287a
AC
30872003-06-09 Andrew Cagney <cagney@redhat.com>
3088
3089 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3090 * gdbarch.h, gdbarch.c: Re-generate.
3091 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3092 * arch-utils.c (frame_num_args_unknown): Delete function.
3093 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3094 (frame_info): Use FRAME_NUM_ARGS_P.
3095 * arm-tdep.c (arm_frame_num_args): Delete function.
3096 (arm_gdbarch_init): Do not set frame_num_args.
3097 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3098 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3099 (hppa_gdbarch_init): Do not set frame_num_args.
3100 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3101 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3102 frame_num_args to default frame_num_args_unknown.
3103 * v850-tdep.c (v850_gdbarch_init): Ditto.
3104 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3105 * sh-tdep.c (sh_gdbarch_init): Ditto.
3106 * s390-tdep.c (s390_gdbarch_init): Ditto.
3107 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3108 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3109 * mips-tdep.c (mips_gdbarch_init): Ditto.
3110 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3111 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3112 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3113 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3114 * i386-tdep.c (i386_gdbarch_init): Ditto.
3115 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3116 * frv-tdep.c (frv_gdbarch_init): Ditto.
3117 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3118 * cris-tdep.c (cris_gdbarch_init): Ditto.
3119 * avr-tdep.c (avr_gdbarch_init): Ditto.
3120 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3121
8d3b0994
AC
31222003-06-09 Andrew Cagney <cagney@redhat.com>
3123
3124 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3125 (print_frame_args): Moved to "stack.c".
3126 * stack.c: Include "gdb_assert.h".
3127 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3128 (print_frame_args): Moved from "printcmd.c".
3129 * frame.h (print_frame_args): Delete declaration.
3130 * Makefile.in (stack.o): Update dependencies.
3131
25e3a86b
AC
31322003-06-08 Andrew Cagney <cagney@redhat.com>
3133
3134 * frame.c (get_prev_frame): Remove reference to
3135 frame_args_address_correct in comments.
3136 * frame-base.c (default_frame_args_address): Delete code
3137 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3138 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3139 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3140 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3141 (vax_frame_args_address_correct): Delete declaration.
3142
a9e5fdc2
AC
31432003-06-08 Andrew Cagney <cagney@redhat.com>
3144
3145 * gdbarch.sh (UNWIND_SP): Add.
3146 * gdbarch.h, gdbarch.c: Re-generate.
3147 * frame.c (frame_sp_unwind): New function.
3148 (get_frame_sp): New function.
3149 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3150 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3151 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3152 value.
3153 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3154 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3155
8983bd83
AC
31562003-06-08 Andrew Cagney <cagney@redhat.com>
3157
7fec2c59
AC
3158 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3159 REMOTE_BREAKPOINT.
3160 * remote.c: Update.
3161 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3162 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3163 * config/m68k/tm-sun3.h: Update.
3164 * config/m68k/tm-m68klynx.h: Update.
3165 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3166
8983bd83
AC
3167 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3168 trad_frame". Update comments.
3169 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3170 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3171 (trad_frame_register_value, trad_frame_prev_register): Update.
3172
b9362cc7
AC
31732003-06-08 Andrew Cagney <cagney@redhat.com>
3174
3175 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3176 from GCC's acinclude.m4.
3177 * configure.in: Check for getopt's delcaration.
8ffd9b1b 3178 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
3179 * main.c (error_init): Delete declaration.
3180 * defs.h (error_init): Declare.
3181 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3182 (rs6000_convert_from_func_ptr_addr): Make static.
3183 (_initialize_rs6000_tdep): Add declaration.
3184 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3185 (show_commands, set_verbose, show_history): Delete declaration.
3186 * top.h (set_verbose): Add declaration.
3187 (show_history, set_history, show_commands): Add declaration.
3188 (do_restore_instream_cleanup): Add declaration.
3189 * objc-lang.c (specialcmp): Make static.
3190 (print_object_command): Make static.
3191 (find_objc_msgsend): Make static.
3192 (find_objc_msgcall_submethod_helper): Make static.
3193 (find_objc_msgcall_submethod): Make static.
3194 (_initialize_objc_language): Add declaration.
3195 (find_implementation_from_class): Make static.
3196 (find_implementation): Make static.
3197 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3198 * objc-lang.h (lookup_struct_typedef): Add declaration.
3199 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3200 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3201 (do_restore_user_call_depth): Make static.
3202 (do_restore_instream_cleanup): Delete declaration.
3203 (dont_repeat): Delete declaration.
3204 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3205 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3206 * reggroups.c (_initialize_reggroup): Add declaration.
3207 * cp-support.c (_initialize_cp_support): Add declaration.
3208 * cp-abi.c (_initialize_cp_abi): Add declaration.
3209 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3210 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3211 (_initialize_gnu_v3_abi): Add declaration.
3212 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3213 (_initialize_gnu_v2_abi): Add declaration.
3214 * frame-base.c (_initialize_frame_base): Add declaration.
3215 * doublest.c (floatformat_from_length): Make static.
3216 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3217 * frame.c (create_sentinel_frame): Make static.
3218 (_initialize_frame): Add declaration.
3219 * top.c (do_catch_errors): Make static.
3220 (gdb_rl_operate_and_get_next_completion): Make static.
3221 * typeprint.c: Include "typeprint.h".
3222 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3223 (sentinel_frame_this_id): Make static.
3224 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3225 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3226 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3227 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3228 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3229 * maint.c (maintenance_print_architecture): Make static.
3230 * signals/signals.c (_initialize_signals): Add declaration.
3231 * std-regs.c (_initialize_frame_reg): Add declaration.
3232 * jv-exp.y (push_variable): ISO C definition.
3233 (push_qualified_expression_name): Ditto.
3234 * memattr.c (_initialize_mem): Add declaration.
3235 * remote.c (remote_check_watch_resources): Make static.
3236 (remote_stopped_by_watchpoint): Make static.
3237 (remote_stopped_data_address): Make static.
3238 * d10v-tdep.c (nr_dmap_regs): Make static.
3239 (a0_regnum): Make static.
3240 (d10v_frame_unwind_cache): Make static.
3241 (d10v_frame_p): Make static.
3242 * osabi.c (show_osabi): Make static.
3243 (_initialize_gdb_osabi): Add extern declaration.
3244 * gdbtypes.c (make_qualified_type): Make static.
3245 (safe_parse_type): Make static.
3246 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3247 * macrotab.c (macro_bcache_free): Make static.
3248 * interps.c (interp_set_quiet): Make static.
3249 (interpreter_exec_cmd): Make static.
3250 * stack.h (select_frame_command): New file.
3251 * stack.c: Include "stack.h".
3252 (select_frame_command_wrapper): Delete function.
3253 (select_frame_command): Make global.
3254 * infcall.c: Include "infcall.h".
3255 * linespec.c: Include "linespec.h".
3256 * symfile.c (sections_overlap): Make static.
3257 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3258 * charset.c (_initialize_charset): Add missing prototype.
3259 * regcache.c (init_legacy_regcache_descr): Make static.
3260 (do_regcache_xfree): Make static.
3261 (regcache_xfer_part): Make static.
3262 (_initialize_regcache): Add missing prototype.
3263 * breakpoint.c (parse_breakpoint_sals): Make static.
3264 (breakpoint_sals_to_pc): Make static.
3265 * interps.h (clear_interpreter_hooks): ISO C declaration.
3266 * Makefile.in (stack_h): Define.
3267 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3268 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3269
a0f267c7
AC
32702003-06-08 Andrew Cagney <cagney@redhat.com>
3271
3272 * Makefile.in (d10v-tdep.o): Update dependencies.
3273 (SFILES): Add trad-frame.c.
3274 (trad_frame_h): Define.
3275 (COMMON_OBS): Add trad-frame.o.
3276 (trad-frame.o): Specify dependencies.
3277 * d10v-tdep.c: Include "trad-frame.h".
3278 (saved_regs_unwinder): Delete function.
3279 (d10v_frame_prev_register): Use trad_frame_prev_register.
3280 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3281 trad_frame", delete "regs" and "prev_sp".
3282 (prologue_find_regs): Use trad-frame.
3283 * trad-frame.h, trad-frame.c: New files.
3284
4538b4f4
MK
32852003-06-08 Mark Kettenis <kettenis@gnu.org>
3286
3287 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3288
a0273b2f
AF
32892003-06-07 Adam Fedor <fedor@gnu.org>
3290
3291 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3292 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3293 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3294 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 3295 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
3296 Use it.
3297
3a6c3343
AC
32982003-06-07 Andrew Cagney <cagney@redhat.com>
3299
3300 * symfile.h: Re-indent, clean up comments.
3301
b46e02f6
AC
33022003-06-07 Andrew Cagney <cagney@redhat.com>
3303
3304 * inferior.h (deprecated_write_sp): Replace
3305 generic_target_write_sp.
3306 * regcache.c (deprecated_write_sp): Replace
3307 generic_target_write_sp.
3308 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3309 * vax-tdep.c (vax_gdbarch_init): Update.
3310 * v850-tdep.c (v850_gdbarch_init): Update.
3311 * sparc-tdep.c (sparc_gdbarch_init): Update.
3312 * sh-tdep.c (sh_gdbarch_init): Update.
3313 * s390-tdep.c (s390_gdbarch_init): Update.
3314 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3315 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3316 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3317 * mcore-tdep.c (mcore_gdbarch_init): Update.
3318 * m68k-tdep.c (m68k_gdbarch_init): Update.
3319 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3320 * ia64-tdep.c (ia64_gdbarch_init): Update.
3321 * h8300-tdep.c (h8300_gdbarch_init): Update.
3322 * frv-tdep.c (frv_gdbarch_init): Update.
3323 * cris-tdep.c (cris_gdbarch_init): Update.
3324 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3325
a42e117c
AC
33262003-06-07 Andrew Cagney <cagney@redhat.com>
3327
3328 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3329 Assert that PC_REGNUM is valid.
3330 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3331
bd1ce8ba
AC
33322003-06-07 Andrew Cagney <cagney@redhat.com>
3333
3334 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3335 * gdbarch.h, gdbarch.c: Regenerate.
3336 * mn10300-tdep.c: Include "gdb_assert.h".
3337 (mn10300_read_fp): New function.
3338 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3339 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3340 * ia64-tdep.c: Include "gdb_assert.h".
3341 (ia64_read_fp): New function.
3342 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3343 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3344 * regcache.c (generic_target_read_sp): Delete function.
3345 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3346 * inferior.h (generic_target_read_sp): Delete declaration.
3347 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3348 generic_target_read_sp.
3349 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3350 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3351 * sh-tdep.c (sh_gdbarch_init): Ditto.
3352 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3353 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3354
ec5cbaec
AC
33552003-06-07 Andrew Cagney <cagney@redhat.com>
3356
3357 * gdbarch.sh: Comment each field of startup_gdbarch.
3358 * gdbarch.h, gdbarch.c: Re-generate.
3359
cde9ea48
AC
33602003-06-07 Andrew Cagney <cagney@redhat.com>
3361
3362 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3363 * gdbarch.h, gdbarch.c: Re-generate.
3364 * regcache.c: Update comments on read_pc et.al.
3365 (generic_target_read_pc): Delete function.
3366 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3367 * inferior.h (generic_target_read_pc): Delete declaration.
3368 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3369 generic_target_read_pc.
3370 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3371 * sh-tdep.c (sh_gdbarch_init): Ditto.
3372 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3373 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 3374
9a90a780
AC
33752003-06-07 Andrew Cagney <cagney@redhat.com>
3376
3377 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3378 "index" with "special_local_sect". Use strcmp instead of STREQ.
3379 Append period to coments.
3380
a39a16c4
MM
33812003-06-06 Mark Mitchell <mark@codesourcery.com>
3382
3383 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3384 (elfstab_offset_sections): Likewise.
3385 * gdb-stabs.h (stab_section_info): Likewise.
3386 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3387 * objfiles.c (objfile_relocate): Likewise.
3388 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3389 * remote.c (get_offsets): Likewise.
3390 (remote_cisco_objfile_relocate): Likewise.
3391 * somread.c (som_symfile_offsets): Likewise.
3392 * symfile.c (alloc_section_addr_info): New function.
3393 (build_section_addr_info_from_section_tab): Use it.
3394 (free_section_addr_info): Adjust.
3395 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3396 (syms_from_objfile): Allocate local_addr dynamically.
3397 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3398 dynamically.
3399 (add_symbol_file_command): Allocate sect_opts dynamically.
3400 (reread_symbols): Avoid use of SECT_OFF_MAX.
3401 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3402 (alloc_section_addr_info): Declare it.
3403 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3404 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3405 dynamically.
3406 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 3407
20c6c2f8
AC
34082003-06-06 Andrew Cagney <cagney@redhat.com>
3409
3410 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3411 (d10v_frame_unwind_cache): Do not set "return_pc".
3412
884a26c8
MS
34132003-06-06 Michael Snyder <msnyder@redhat.com>
3414
3415 * h8300-tdep.c: Make tidy (long lines).
3416
088ce440
ML
34172003-06-06 Michal Ludvig <mludvig@suse.cz>
3418
8ffd9b1b 3419 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
3420 to regcache_collect().
3421
7d773d96
JB
34222003-06-05 J. Brobecker <brobecker@gnat.com>
3423
3424 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3425 pc_in_sigtramp multiarch method.
3426 (hppa_hpux_som_init_abi): Use it.
3427 (hppa_hpux_elf_init_abi): Likewise.
3428 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3429 macro has been multiarched.
3430 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3431 macro here, as hppa64 isn't multiarched yet.
3432
1df6926e
AC
34332003-06-05 Andrew Cagney <cagney@redhat.com>
3434
3435 * Makefile.in (value_h): Add $(frame_h).
3436 * value.h: Include "frame.h".
3437 (struct value): Replace "frame_addr" with "frame_id".
3438 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3439 * values.c (allocate_value): Use VALUE_FRAME_ID.
3440 (value_copy): Use VALUE_FRAME_ID.
3441 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3442 * valops.c (value_assign): Update. Use frame_find_by_id.
3443
6b53acc6
ML
34442003-06-05 Michal Ludvig <mludvig@suse.cz>
3445
3446 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3447 in each pass.
3448
4d9850d3
JJ
34492003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3450
3451 * thread-db.c (check_event): For create/death event breakpoints,
3452 loop through all messages to ensure that we read the message
3453 corresponding to the breakpoint we are at.
3454
8efca6ba
MS
34552003-06-04 Michael Snyder <msnyder@redhat.com>
3456
3457 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3458
0912c7f2
MK
34592003-06-04 Mark Kettenis <kettenis@gnu.org>
3460
3461 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3462 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3463 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3464 when handling .eh_frame sections.
3465
4e370325
JB
34662003-06-04 J. Brobecker <brobecker@gnat.com>
3467
3468 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3469 prepare_to_proceed procedure instead of the hppa-specific one.
3470 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3471
b757528f 34722003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 3473
b757528f
JJ
3474 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3475 * config.in: Regenerated.
3476 * configure.in: Add test for syscall function and check for
3477 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3478 * configure: Regenerated.
3479 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3480 <sys/syscall.h>.
3481 (kill_lwp): New function that uses tkill syscall or
3482 uses kill, depending on whether threading model is nptl or not.
3483 All callers of kill() changed to use kill_lwp().
3484 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3485 see if all threads have already exited in the nptl model.
3486 (stop_and_resume_callback): New callback function used by the
3487 lin_lwp_wait thread exit handling code.
3488 (stop_wait_callback): Check for threads already having exited and
3489 delete such threads fromt the lwp list when discovered.
3490 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 3491
b757528f
JJ
3492 Roland McGrath <roland@redhat.com>
3493 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3494 nptl libthread_db.
3495
087779b1
RH
34962003-06-03 Richard Henderson <rth@redhat.com>
3497
b21fd293
RH
3498 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3499 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3500 (alpha_sigtramp_frame_prev_register): Likewise.
3501 (alpha_heuristic_frame_prev_register): Likewise.
3502 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3503
8ffd9b1b 3504 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
3505 alpha-specific register id names.
3506 (alpha_mdebug_frame_unwind_cache): Likewise.
3507 (alpha_mdebug_frame_prev_register): Likewise.
3508
baa490c4
RH
35092003-06-03 Richard Henderson <rth@redhat.com>
3510
3511 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3512 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3513 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3514 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3515 unwind routines.
3516 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3517 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3518 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3519
3520 * alpha-linux-tdep.c: Remove unnecessary includes.
3521 * Makefile.in (alpha-linux-tdep.o): Update.
3522
35232003-06-03 Richard Henderson <rth@redhat.com>
3524
3525 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3526 (alphabsd_fill_fpreg): Likewise.
3527
f534e522
JB
35282003-06-03 J. Brobecker <brobecker@gnat.com>
3529
3530 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3531 references to struct frame_info fields by calls to the equivalent
3532 accessors. Necessary now that frame_info is opaque.
3533
4035536b
JB
35342003-06-03 J. Brobecker <brobecker@gnat.com>
3535
3536 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3537 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3538 structure, field no longer exists.
3539
0bd79c5c
JB
35402003-06-03 J. Brobecker <brobecker@gnat.com>
3541
3542 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3543 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3544
37bb6d9f
JB
35452003-06-03 J. Brobecker <brobecker@gnat.com>
3546
3547 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3548 references to struct frame_info fields by calls to the equivalent
3549 accessors. Necessary now that frame_info is opaque.
3550
852ee05c
JB
35512003-06-03 J. Brobecker <brobecker@gnat.com>
3552
3553 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3554 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3555 structure, field no longer exists.
3556
7d58c67d
TR
35572003-06-03 Theodore A. Roth <troth@openavr.org>
3558
8ffd9b1b 3559 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
3560 accumulation of the size of all registers instead of blindly using
3561 DEPRECATED_REGISTER_BYTES.
3562
0a48e7e8
MS
35632003-06-03 Michael Snyder <msnyder@redhat.com>
3564
3565 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3566 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3567 for h8300sx.
3568
9798ab0d
JB
35692003-06-03 J. Brobecker <brobecker@gnat.com>
3570
3571 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3572 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3573
00b037e2
AC
35742003-06-03 Andrew Cagney <cagney@redhat.com>
3575
3576 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3577 (sparc_convert_to_raw): Delete function.
3578 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3579 register_convert_to_virtual.
3580
043b2f77
JJ
35812003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3582
3583 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3584 layer if not dealing with a statically-linked threaded program.
3585
f43caff8
KW
35862003-06-03 Kris Warkentin <kewarken@qnx.com>
3587
3588 * solib.c (solib_open): Update comment to reflect actual search order.
3589
ae1e7417
AC
35902003-06-03 Andrew Cagney <cagney@redhat.com>
3591
3592 * frame.c (get_frame_memory_signed): New function.
3593 (get_frame_memory, get_frame_memory_unsigned): New function.
3594 (get_frame_arch): New function.
3595 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3596 (get_frame_memory, get_frame_unsigned_memory): Declare.
3597 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3598 get_frame_memory_unsigned and get_frame_arch.
3599 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3600
cb123844
RG
36012003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3602
3603 * MAINTAINERS (write after approval): Add myself.
3604
1bb792e9
JB
36052003-06-03 Jim Blandy <jimb@redhat.com>
3606
3607 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3608 elements of gregset_t are 64 bits each, but access registers
3609 are still 32 bits, so they're packed two per gregset_t
3610 element. Unpack/pack them properly.
3611
aee8d8ba
DC
36122003-06-02 David Carlton <carlton@bactrian.org>
3613
3614 * linespec.c (find_methods): Break out code into
3615 add_matching_methods and add_constructors.
3616 (add_matching_methods): New.
3617 (add_constructors): Ditto.
3618
bf7488d2
AC
36192003-06-02 Andrew Cagney <cagney@redhat.com>
3620
bf7488d2
AC
3621 * sparc-tdep.c (sparc_print_registers): Delete call to
3622 REGISTER_CONVERTIBLE.
3623 (sparc_gdbarch_init): Do not set register_convertible.
3624 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3625 * frv-tdep.c (frv_gdbarch_init): Ditto.
3626 * cris-tdep.c (cris_gdbarch_init): Ditto.
3627
adedef68
EZ
36282003-06-02 Elena Zannoni <ezannoni@redhat.com>
3629
8ffd9b1b 3630 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
3631 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3632 (syms_from_objfile): Ditto.
3633
650fcc91
AS
36342003-06-03 Andreas Schwab <schwab@suse.de>
3635
3636 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3637 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3638
df4a182b
RH
36392003-06-02 Richard Henderson <rth@redhat.com>
3640
3641 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3642 a member of all_reggroup.
3643
c483c494
RH
36442003-06-02 Richard Henderson <rth@redhat.com>
3645
3646 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3647 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3648 (alpha_lds, alpha_sts): New.
3649 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 3650 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
3651 restructure and fail for type sizes other than 4 or 8.
3652 (alpha_value_to_register): Similarly.
3653 (alpha_extract_return_value): Use alpha_sts.
3654 (alpha_store_return_value): Use alpha_lds.
3655 (alpha_gdbarch_init): Update hooks.
3656
b38b6be2
RH
36572003-06-02 Richard Henderson <rth@redhat.com>
3658
3659 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3660 regnum identifiers.
3661 (alpha_sigtramp_register_address): Likewise.
3662
98a8e1e5
RH
36632003-06-02 Richard Henderson <rth@redhat.com>
3664
3665 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3666 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3667 * alpha-tdep.h: Declare them.
3668
3669 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3670 Remove zerobuf. Don't error on UNIQUE.
3671 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3672 (ALPHA_REGSET_UNIQUE): Provide default.
3673 (supply_gregset): Use alpha_supply_int_regs.
3674 (fill_gregset): Use alpha_fill_int_regs.
3675 (supply_fpregset): Use alpha_supply_fp_regs.
3676 (fill_fpregset): Use alpha_fill_fp_regs.
3677 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3678 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3679 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3680 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3681 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3682 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3683
67dfac52
RH
36842003-06-02 Richard Henderson <rth@redhat.com>
3685
f75d70cc
RH
3686 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3687
67dfac52
RH
3688 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3689 (alpha_store_return_value): Likewise.
3690
0cf566ec
DC
36912003-06-02 David Carlton <carlton@math.stanford.edu>
3692
3693 * block.c (contained_in): Add 'const' to arguments.
3694 (block_function): Ditto.
3695 * block.h: Update declarations for block_function and
3696 contained_in.
3697
cdef89d0
DC
36982003-06-02 David Carlton <carlton@math.stanford.edu>
3699
3700 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3701 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3702 * p-valprint.c (pascal_val_print): Ditto.
3703 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3704
72667056
RH
37052003-06-02 Richard Henderson <rth@redhat.com>
3706
98a8e1e5
RH
3707 * alpha-tdep.c (alpha_push_dummy_call): Use
3708 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 3709
8ffd9b1b 3710 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
3711 sign-extension of 32-bit values.
3712 (alpha_store_return_value): Similarly.
0ede8eca 3713
98a8e1e5
RH
3714 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3715 (alpha_extract_return_value): Likewise.
3716 (alpha_store_return_value): Likewise.
7b5e1cb3 3717
98a8e1e5
RH
3718 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3719 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 3720
98a8e1e5
RH
3721 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3722 (alpha_extract_struct_value_address): Likewise.
3723 (alpha_store_return_value): Likewise.
3724 (alpha_store_struct_return): Remove.
3725 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 3726
98a8e1e5
RH
3727 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3728 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3729 macros where appropriate.
3730 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3731 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 3732
98a8e1e5
RH
3733 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3734 for SP, GP; void_func_ptr for PC; non-language-specific types
3735 for all others.
3736 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 3737
6dd77b81
RH
37382003-06-02 Richard Henderson <rth@redhat.com>
3739
3740 * top.h (lim_at_start): Declare.
3741 * main.c (captured_main): Set it.
3742 * top.c (lim_at_start): Define.
3743 (command_loop): Use it instead of &environ.
3744 * event-top.c (command_handler): Likewise.
3745
f4dbdb54
JT
37462003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3747
3748 * mipsnbsd-tdep.c: Update copyright years.
3749 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3750
8f285956
RH
37512003-06-01 Richard Henderson <rth@redhat.com>
3752
98a8e1e5
RH
3753 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3754 (alpha-linux-tdep.o): Update dependencies.
3755 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3756 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 3757
615967cb
RH
37582003-06-01 Richard Henderson <rth@redhat.com>
3759
98a8e1e5
RH
3760 * alpha-tdep.c (alpha_register_reggroup_p): New.
3761 (alpha_gdbarch_init): Register it.
615967cb 3762
b59661bd
AC
37632003-06-02 Andrew Cagney <cagney@redhat.com>
3764
3765 * dwarfread.c: Eliminate "register"
3766 (decode_die_type): Eliminate assignment within "if".
3767 (struct_type, decode_array_element_type): Ditto.
3768 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3769 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3770 (decode_modified_type, completedieinfo): Ditto.
3771 * block.c: Eliminate "register".
3772 (blockvector_for_pc_sect): Eliminate assignment within "if".
3773 * cp-support.h (struct symbol): Opaque declaration.
3774 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3775
5ef165c2
RH
37762003-06-01 Richard Henderson <rth@redhat.com>
3777
98a8e1e5
RH
3778 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3779 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 3780
143985b7
AF
37812003-06-01 Adam Fedor <fedor@gnu.org>
3782
3783 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3784 * gdbarch.[ch]: Regenerate.
3785 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3786 (hppa_gdbarch_init): Set it in the gdbarch vector.
3787 * i386-tdep.c (i386_fetch_pointer_argument): New
3788 (i386_gdbarch_init): Set it into gdbarch.
3789 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3790 (rs6000_gdbarch_init): Set it in gdbarch.
3791 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3792 (sparc_gdbarch_init): Set it in gdbarch.
3793
ae0167b9
AC
37942003-06-01 Andrew Cagney <cagney@redhat.com>
3795
7c0b4a20
AC
3796 * defs.h (extract_address): Delete declaration.
3797 * findvar.c (extract_address): Delete function.
3798 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3799 extract_address with the inline equivalent,
3800 extract_unsigned_integer.
3801 (xstormy16_extract_struct_value_address): Ditto.
3802 (xstormy16_pointer_to_address): Ditto.
3803 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3804 * v850-tdep.c (v850_push_arguments): Ditto.
3805 (v850_extract_return_value): Ditto.
3806 (v850_extract_struct_value_address): Ditto.
3807 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3808 (sparcnbsd_get_longjmp_target_64): Ditto.
3809 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3810 (get_longjmp_target): Ditto.
3811 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3812 (sh64_extract_struct_value_address): Ditto.
3813 (sh_push_arguments): Ditto.
3814 (sh64_push_arguments): Ditto.
3815 * remote-vxsparc.c (vx_read_register): Ditto.
3816 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
3817 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
3818 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
3819 * mipsv4-nat.c (get_longjmp_target): Ditto.
3820 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
3821 * mips-nat.c (get_longjmp_target): Ditto.
3822 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
3823 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
3824 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
3825 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
3826 * irix5-nat.c (get_longjmp_target): Ditto.
3827 * irix4-nat.c (get_longjmp_target): Ditto.
3828 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
3829 (ia64_push_arguments): Ditto.
3830 * hpux-thread.c (hpux_thread_store_registers): Ditto.
3831 * h8300-tdep.c (h8300_push_arguments): Ditto.
3832 (h8300_store_return_value): Ditto.
3833 (h8300_extract_struct_value_address): Ditto.
3834 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
3835 (frv_push_arguments): Ditto.
3836 * avr-tdep.c (avr_pointer_to_address): Ditto.
3837 (avr_push_arguments): Ditto.
3838 * arm-tdep.c (arm_push_dummy_call): Ditto.
3839 (arm_get_longjmp_target): Ditto.
3840 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3841 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
3842 (alpha_get_longjmp_target): Ditto.
3843
ae0167b9
AC
3844 * solib-irix.c (extract_mips_address): Inline extract_address,
3845 replacing it with extract_signed_integer.
3846 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3847 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
3848 (first_link_map_member, open_symbol_file_object): Ditto.
3849 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
3850 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3851 (LM_NEXT, LM_NAME): Ditto.
3852
44d88583
RH
38532003-06-01 Richard Henderson <rth@redhat.com>
3854
98a8e1e5
RH
3855 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
3856 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
3857 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
3858 (alpha_cannot_store_register): Likewise.
3859 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
3860 * alpha-nat.c (supply_gregset): Likewise.
3861 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 3862
310e9b6a
AC
38632003-06-01 Andrew Cagney <cagney@redhat.com>
3864
3865 * infcall.c (call_function_by_hand): Update comment on
3866 DEPRECATED_DUMMY_WRITE_SP.
3867
3868 * mips-tdep.c (mips_gdbarch_init): Do not set
3869 deprecated_dummy_write_sp.
3870 (mips_eabi_push_dummy_call): Set the SP register.
3871 (mips_o64_push_dummy_call): Set the SP register.
3872 (mips_o32_push_dummy_call): Set the SP register.
3873 (mips_n32n64_push_dummy_call): Set the SP register.
3874
5ab84872
RH
38752003-06-01 Richard Henderson <rth@redhat.com>
3876
98a8e1e5
RH
3877 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
3878 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
3879 (supply_gregset): Likewise.
3880 * alpha-tdep.c (alpha_store_return_value): Likewise.
3881 (alpha_get_longjmp_target): Likewise.
3882 (alpha_register_name): Constify array.
3883 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
3884 deprecated_register_size, deprecated_register_bytes,
3885 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
3886 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
3887 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 3888
09cc52fd
RH
38892003-06-01 Richard Henderson <rth@redhat.com>
3890
3891 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
3892 from arg_reg_buffer to regcache to avoid double conversion.
3893
c7f16359
MK
38942003-06-01 Mark Kettenis <kettenis@gnu.org>
3895
3896 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
3897 SP_REGNUM.
3898 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
3899 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
3900
7131cb6e
RH
39012003-06-01 Richard Henderson <rth@redhat.com>
3902
98a8e1e5
RH
3903 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
3904 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 3905
f3e0f90b
RH
39062003-06-01 Richard Henderson <rth@redhat.com>
3907
98a8e1e5
RH
3908 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
3909 not overlapping PC_REGNUM.
f3e0f90b 3910
c88e30c0
RH
39112003-06-01 Richard Henderson <rth@redhat.com>
3912
98a8e1e5
RH
3913 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
3914 alpha_push_arguments. Don't dump argument register data to
3915 the target stack. Fix float and 128-bit long double semantics.
3916 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
3917 (alpha_fix_call_dummy): Remove.
3918 (alpha_call_dummy_words): Remove.
3919 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 3920
f1a559ae
RH
39212003-06-01 Richard Henderson <rth@redhat.com>
3922
3923 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
3924
5e045346
AC
39252003-06-01 Andrew Cagney <cagney@redhat.com>
3926
95404a3e
AC
3927 * mips-tdep.c (is_mips16_addr): New function.
3928 (make_mips16_addr, unmake_mips16_addr): New functions.
3929 (pc_is_mips16, mips_fetch_instruction): Use.
3930 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
3931 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
3932 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
3933 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
3934 TARGET_MIPS.
3935 * config/mips/tm-mips.h: Update copyright.
3936 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
3937 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
3938 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
3939 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
3940 (TM_PRINT_INSN_MACH): Delete.
3941 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
3942
5e045346
AC
3943 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
3944 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
3945 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
3946 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
3947 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
3948 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
3949 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
3950 mips*-*-riscos* and mips*-*-sysv* onto mips.
3951 * config/mips/mips64.mt: New file.
3952 * config/mips/mips.mt: New file.
3953 * config/mips/littlemips.mt: Delete file.
3954 * config/mips/decstation.mt: Delete file.
3955 * config/mips/vr4300el.mt: Delete file.
3956 * config/mips/vr5000el.mt: Delete file.
3957 * config/mips/vr5000.mt: Delete file.
3958 * config/mips/vr4100.mt: Delete file.
3959 * config/mips/vr4xxxel.mt: Delete file.
3960 * config/mips/vr4300.mt: Delete file.
3961 * config/mips/vr4xxx.mt: Delete file.
3962 * config/mips/bigmips.mt: Delete file.
3963 * config/mips/bigmips64.mt: Delete file.
3964 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
3965 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
3966 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
3967 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
3968 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
3969 "tm-bigmips.h".
3970 * config/mips/tm-irix3.h: Ditto.
3971 * config/mips/tm-mipsv4.h: Ditto.
3972 * config/mips/tm-embed.h: Ditto.
3973 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
3974 "tm-bigmips64.h".
3975 * config/mips/tm-vr5000el.h: Delete file.
3976 * config/mips/tm-tx39l.h: Delete file.
3977 * config/mips/tm-vr4300el.h: Delete file.
3978 * config/mips/tm-vr4xxxel.h: Delete file.
3979 * config/mips/tm-vr4300.h: Delete file.
3980 * config/mips/tm-vr4100.h: Delete file.
3981 * config/mips/tm-vr4xxx.h: Delete file.
3982 * config/mips/tm-vr5000.h: Delete file.
3983 * config/mips/tm-embedl64.h: Delete file.
3984 * config/mips/tm-embedl.h: Delete file.
3985 * config/mips/tm-embed64.h: Delete file.
3986 * config/mips/tm-bigmips64.h: Delete file.
3987 * config/mips/tm-bigmips.h: Delete file.
3988
2473a4a9
MK
39892003-06-01 Mark Kettenis <kettenis@gnu.org>
3990
97a5b208
MK
3991 Fix gdb/1216.
3992 * shnbsd-nat.c: Include "sh-tdep.h".
3993
2473a4a9
MK
3994 From Richard Henderson <rth@redhat.com>:
3995 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
3996
e0f7ec59
AC
39972003-05-31 Andrew Cagney <cagney@redhat.com>
3998
3999 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4000 forward declaration.
4001 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4002 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4003 (mips_find_saved_regs): Use set_reg_offset.
4004 (mips_frame_init_saved_regs): Delete function.
4005 (mips_pop_frame): Call mips_find_saved_regs instead of
4006 DEPRECATED_FRAME_INIT_SAVED_REGS.
4007
68dcc709
AC
40082003-05-31 Andrew Cagney <cagney@redhat.com>
4009
4010 * mips-tdep.c (mips_gdbarch_init): Do not set
4011 deprecated_max_register_raw_size, register_virtual_size, and
4012 deprecated_max_register_virtual_size.
4013
cfc14b3a
MK
40142003-05-31 Mark Kettenis <kettenis@gnu.org>
4015
6405b0a6
MK
4016 * i386-tdep.c: Include "dwarf2-frame.h".
4017 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4018 * Makefile.in (i386-tdep.o): Update dependencies.
4019
cfc14b3a
MK
4020 * dwarf2-frame.c, dwarf2-frame.h: New files.
4021 * Makefile.in (SFILES): Add dwarf2-frame.c.
4022 (dwarf2_frame_h): Define.
4023 (COMMON_OBS): Add dwarf2-frame.o.
4024 (dwarf2-frame.o): Add dependencies.
4025
6a2751d2
AJ
40262003-05-31 Andreas Jaeger <aj@suse.de>
4027
4028 * x86-64-linux-nat.c: Fix comment.
4029
1c3545ae
MK
40302003-05-31 Mark Kettenis <kettenis@gnu.org>
4031
10f93086
MK
4032 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4033 function signature.
4034
1c3545ae
MK
4035 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4036 have a sigcontext_addr handler.
4037 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4038 sigcontext_addr handler.
4039
e11c53d2
AC
40402003-05-31 Andrew Cagney <cagney@redhat.com>
4041
4042 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4043 (print_fp_register_row): Replace do_fp_register_row.
4044 (mips_print_fp_register): Add "file" and "frame" parameters.
4045 (mips_print_register): Add "file" and "frame" parameters.
4046 (mips_print_registers_info): Replace mips_do_registers_info.
4047 (mips_gdbarch_init): Set print_registers_info instead of
4048 deprecated_do_registers_info.
4049 (mips_read_fp_register_single): Add "frame" parameter.
4050 (mips_read_fp_register_double): Add "frame" parameter.
4051
a3386186
MK
40522003-05-31 Mark Kettenis <kettenis@gnu.org>
4053
70913449
MK
4054 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4055 Fixes a bug where GDB would print the wrong register names for
4056 targets without SSE.
4057
2b5e0749
MK
4058 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4059 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4060 registers.
4061
4062 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4063 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4064 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4065 TDEP->sc_sp_offset.
4066
a3386186
MK
4067 From Michal Ludvig <mludvig@suse.cz>:
4068 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4069 and `sc_num_regs'.
4070 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4071 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4072 I386_ST0_REGNUM): Move here from...
4073 * i386-tdep.c: ... here.
4074 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4075 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4076 registers if possible.
4077 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4078 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4079 Remove variables.
4080 (i386bsd_sc_reg_offset): New variable.
4081 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4082 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4083 TDEP->sc_sp_offset.
4084 (i386fbsd_sc_reg_offset): New variable.
4085 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4086 TDEP->sc_num_regs.
4087 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4088 variables.
4089 (i386fbsd4_sc_reg_offset): New variable.
4090 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4091 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4092 TDEP->sc_sp_offset.
4093 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4094 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4095 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4096 Remove variables.
4097 (i386nbsd_sc_reg_offset): New variable.
4098 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4099 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4100 TDEP->sc_sp_offset.
4101 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4102 Remove variables.
4103 (i386obsd_sc_reg_offset): New variable.
4104 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4105 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4106 TDEP->sc_sp_offset.
4107 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4108 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4109 for frame pointer offset in `struct sigcontext'.
4110
25ab4790
AC
41112003-05-31 Andrew Cagney <cagney@redhat.com>
4112
4113 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4114 architecture methods call_dummy_words, sizeof_call_dummy_words,
4115 push_return_address, store_struct_return, and fix_call_dummy. Set
4116 push_dummy_call instead of deprecated_push_arguments.
4117 (mips_store_struct_return): Delete function.
4118 (mips_fix_call_dummy): Delete function.
4119 (mips_push_return_address): Delete function.
4120 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4121 RA_REGNUM and T9_REGNUM.
4122 (mips_n32n64_push_dummy_call): Ditto for
4123 mips_n32n64_push_arguments.
4124 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4125 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4126
6a65450a
AC
41272003-05-31 Andrew Cagney <cagney@redhat.com>
4128
4129 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4130 "dummy_addr" to "bp_addr".
4131 * infcall.c (call_function_by_hand): Pass "funaddr" to
4132 gdbarch_push_dummy_call.
4133 * gdbarch.h, gdbarch.c: Re-generate.
4134 * i386-tdep.c (i386_push_dummy_call): Update.
4135 * arm-tdep.c (arm_push_dummy_call): Update.
4136 * d10v-tdep.c (d10v_push_dummy_call): Update.
4137
c4f35dd8
MK
41382003-05-31 Mark Kettenis <kettenis@gnu.org>
4139
4140 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4141 variable declarations.
4142 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4143 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4144 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4145 x86_64_init_frame_pc, x86_64_init_frame_pc,
4146 x86_64_function_has_prologue): Remove prototypes.
4147 (X86_64_NUM_GREGS): New define.
4148 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4149 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4150 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4151 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4152 XMM1_REGNUM): Remove defines.
4153 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4154 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4155 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4156 X86_64_XMM1_REGNUM): New defines.
4157 (struct x86_64_register_info): Renamed from `struct
4158 register_info'. Remove `size' member.
4159 (x86_64_register_info_table): Remove variable.
4160 (x86_64_register_info): New variable.
4161 (X86_64_NUM_REGS): New define.
4162 (X86_64_NUM_GREGS): Remove define.
4163 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4164 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4165 Remove variables.
4166 (x86_54_dwarf2_reg_to_regnum): Remove function.
4167 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4168 (x86_64_dwarf_reg_to_regnum): New function.
4169 (x86_64_register_name): Rewrite.
4170 (x86_64_register_raw_size): Remove function.
4171 (x86_64_register_byte_table): Remove variable.
4172 (x86_64_register_byte): Remove function.
4173 (x86_64_register_virtual_type): Remove function.
4174 (x86_64_register_type): New function.
4175 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4176 x86_64_register_convert_to_raw): Remove functions.
4177 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4178 (x86_64_use_struct_convention): Make static. Adjust for renamed
4179 defines.
4180 (x86_64_frame_init_saved_regs): Remove function.
4181 (x86_64_push_arguments): Make static. Change to accept a regcache
4182 as argument.
4183 (x86_64_store_return_value, x86_64_extract_return_value): Make
4184 static. Rewrite based on i386 counterparts.
4185 (x86_64_push_dummy_call): New function.
4186 (X86_64_NUM_SAVED_REGS): New define.
4187 (x86_64_register_number): Remove function.
4188 (x86_64_store_struct_return): Remove function.
4189 (x86_64_frameless_function_invocation,
4190 x86_64_function_has_prologue): Remove functions.
4191 (PROLOG_BUFSIZE): Remove define.
4192 (struct x86_64_frame_cache): New structure.
4193 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4194 x86_64_frame_cache, x86_64_frame_this_id,
4195 x86_64_frame_prev_register, x86_64_frame_p,
4196 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4197 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4198 functions.
4199 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4200 variables.
4201 (x86_64_skip_prologue): Rewrite in terms of
4202 x86_64_analyze_prologue.
4203 (x86_64_frame_base_address): New function.
4204 (x86_64_frame_base): New variable.
4205 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4206 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4207 set deprecated_fp_regnum, deprecated_register_size,
4208 deprecated_register_bytes, register_raw_size, register_byte,
4209 register_virtual_type, register_convertiable,
4210 register_convert_to_virtual, convert_to_raw,
4211 deprecated_get_saved_register, deprecated_target_read_fp,
4212 deprecated_push_arguments, deprecated_push_return_address,
4213 deprecated_pop_frame, deprecated_store_struct_return,
4214 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4215 frameless_function_invocation, deprecated_frame_saved_pc,
4216 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4217 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4218 deprecated_init_frame_pc and virtual_frame_pointer. Call
4219 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4220 and x86_64_frame_p. Call frame_base_set_default to register
4221 x86_64_frame_base.
4222 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4223 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4224 (_initialize_x86_64_tdep): Remove function.
4225 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4226 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4227 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4228 define.
4229 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4230 (x86_64_linux_sigcontext_addr): Rewrite.
4231 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4232 x86_64_linux_frame_saved_pc): Remove functions.
4233 (x86_64_linux_pc_in_sigtramp): Renamed from
4234 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4235 trampoline.
4236 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4237 Remove_functions.
4238 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4239 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4240 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4241 (x86_64_regmap): Rename to regmap.
4242 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4243 x86_64_num_gregs.
4244 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4245 x86_64_regmap.
4246 (x86_64_fxsave_offset): Remove function.
4247 (supply_fpregset): Simply call x86_64_supply_fxsave.
4248 (fill_fpregset): Simply call x86_64_fill_fxsave.
4249 (fetch_inferior_registers, store_inferior_registers): Avoid
4250 asignment in if-statement.
4251 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4252 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4253 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4254 (fetch_core_registers): Remove function.
4255 (linux_elf_core_fns): Remove.
4256 (offsetoff): Don't define.
4257 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4258 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4259 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4260 add core-regset.o.
4261 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4262 protection against multiple includes instead of NM_X86_64_h. Add
4263 various comments. Include "config/nm-linux.h". Don't include
4264 <signal.h>.
4265 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4266 GET_THREAD_SIGNALS): Remove defines.
4267 (x86_64_register_u_addr, kernel_u_size,
4268 lin_thread_get_thread_signals): Remove prototypes.
4269 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4270 [HAVE_LINK_H]: Don't include "solib.h".
4271 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4272 * config/i386/tm-x86-64linux.h: Fix comments.
4273 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4274 x86-64-tdep.o): Update dependencies.
4275
c25083af
AC
42762003-05-30 Andrew Cagney <cagney@redhat.com>
4277
c8f55a7b
AC
4278 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4279 Change parameter type to a "struct regcache *".
4280
c25083af
AC
4281 * gdbarch.sh: Regardless of the multi-arch level, always define
4282 the macro when not already defined.
4283 * gdbarch.h, gdbarch.c: Re-generate.
4284
fbe586ae
RH
42852003-05-30 Richard Henderson <rth@redhat.com>
4286
4287 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4288 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4289 (alpha_mdebug_frame_this_id): Likewise.
4290 (alpha_mdebug_frame_prev_register): Likewise.
4291 (alpha_mdebug_frame_base_address): Likewise.
4292 (alpha_mdebug_frame_locals_address): Likewise.
4293 (alpha_mdebug_frame_args_address): Likewise.
4294 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4295 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4296 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4297 loop increment.
4298 (alpha_heuristic_frame_this_id): Make static.
4299 (alpha_heuristic_frame_prev_register): Likewise.
4300 (alpha_heuristic_frame_base_address): Likewise.
4301 * alpha-tdep.h: Update.
4302
acd5c798
MK
43032003-05-30 Mark Kettenis <kettenis@gnu.org>
4304
4305 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4306 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4307 defenitions.
4308 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4309 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4310 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4311 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4312 I386_ST0_REGNUM): New defines.
4313 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4314 codestream_get): Remove define.
4315 (codestream_next_addr, condestream_addr, condestream_buf,
4316 codestream_off, codestream_cnt): Remove variables.
4317 (codestream_fill, codestream_seek, codestream_read): Remove
4318 functions.
4319 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4320 functionality.
4321 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4322 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4323 i386_frame_saved_pc, i386_saved_pc_after_call,
4324 i386_frame_num_args, i386_frame_init_saved_regs,
4325 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4326 i386_push_arguments): Remove functions.
4327 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4328 functionality. Use i386_analyze_prologue instead of
4329 i386_get_frame_setup.
4330 (I386_NUM_SAVED_REGS): New define.
4331 (struct i386_frame_cache): New structure.
4332 (i386_alloc_frame_cache, i386_analyze_struct_return,
4333 i386_skip_probe, i386_analyze_frame_setup,
4334 i386_analyze_register_saves, i386_analyze_prologue,
4335 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4336 i386_frame_prev_register, i386_sigtramp_frame_cache,
4337 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4338 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4339 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4340 New functions.
4341 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4342 New variables.
4343 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4344 I386_EAX_REGNUM and I386_EDX_REGNUM.
4345 (i386_extract_return_value, i386_store_return_value): Use
4346 I386_ST0_REGNUM where appropriate.
4347 (i386_extract_struct_value_address): Rewrite to use extract_address.
4348 (i386_svr4_pc_in_sigtramp): Add comment.
4349 (i386_svr4_sigcontext_addr): Rewrite.
4350 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4351 TDEP->sc_sp_offset.
4352 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4353 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4354 of new defines. Set push_dummy_call, don't set
4355 deprecated_push_arguments, deprecated_push_return_address,
4356 deprecated_pop_frame. Don't set parm_boundary. Don't set
4357 deprecated_frame_chain, deprecated_frame_saved_pc,
4358 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4359 save_dummy_frame_tos, unwind_pc. Call
4360 frame_unwind_append_predicate and frame_base_set_default. Don't
4361 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4362 Don't set frameless_function_invocation. Don't set
4363 deprecated_register_bytes, deprecated_register_size,
4364 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4365 * i386-linux-tdep.c: Fix formatting in some comments.
4366 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4367 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4368 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4369 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4370 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4371 redundant parentheses.
4372 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4373 (i386_linux_sigcontext_addr): Use it. Rewrite.
4374 (find_minsym_and_objfile): Change name of second argument.
4375 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4376 changed. Use frame_pc_unwind instead of
4377 DEPRECATED_SAVED_PC_AFTER_CALL.
4378 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4379 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4380 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4381 unwinder.
4382 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4383 "dummy-frame.h".
4384 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4385 (_initialize_i386_cygwin_tdep): New prototype.
4386 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4387 deprecated_frame_chain_valid.
4388 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4389 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4390 Rely on the SVR4 defaults.
4391 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4392 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4393
c89b70f1
AC
43942003-05-30 Andrew Cagney <cagney@redhat.com>
4395
4396 * infcall.c (call_function_by_hand): Always call
4397 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4398
85b32d22
RH
43992003-05-30 Richard Henderson <rth@redhat.com>
4400
c89b70f1
AC
4401 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4402 increment.
85b32d22 4403
bfe51b1e
JB
44042003-05-29 Jim Blandy <jimb@redhat.com>
4405
4406 Use gdbarch methods for solib stuff on PowerPC Linux.
4407 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4408 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4409 show through.
4410 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4411 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4412 giving the same effect as the #definitions above.
4413
1abf022c
AF
44142003-05-29 Adam Fedor <fedor@gnu.org>
4415
4416 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4417 (find_implementation_from_class): Replace it with the standard
4418 case i.e. do nothing.
4419
d2427a71
RH
44202003-05-29 Richard Henderson <rth@redhat.com>
4421
4422 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4423 (alpha_linux_sigtramp_offset): Use it. Make static.
4424 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4425 update for new frame model.
4426 * alpha-mdebug-tdep.c: New file.
4427 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4428 (alpha_osf1_init_abi): Install it.
4429 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4430 (linked_proc_desc_table): Remove.
4431 (alpha_frame_past_sigtramp_frame): Remove.
4432 (alpha_dynamic_sigtramp_offset): Remove.
4433 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4434 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4435 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4436 (push_sigtramp_desc): Remove.
4437 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4438 (alpha_cannot_store_register): Likewise.
4439 (alpha_sigcontext_addr): Remove.
4440 (alpha_find_saved_regs): Remove.
4441 (alpha_frame_init_saved_regs): Remove.
4442 (alpha_init_frame_pc_first): Remove.
4443 (read_next_frame_reg): Remove.
4444 (alpha_frame_saved_pc): Remove.
4445 (alpha_saved_pc_after_call): Remove.
4446 (temp_proc_desc, temp_saved_regs): Remove.
4447 (alpha_about_to_return): Remove.
4448 (cached_proc_desc): Remove.
4449 (alpha_frame_chain): Remove.
4450 (alpha_print_extra_frame_info): Remove.
4451 (alpha_init_extra_frame_info): Remove.
4452 (alpha_frame_locals_address): Remove.
4453 (alpha_frame_args_address): Remove.
4454 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4455 (alpha_push_dummy_frame): Remove.
4456 (alpha_pop_frame): Remove.
4457 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4458 (alpha_read_insn): New.
4459 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4460 for different insn encodings.
4461 (alpha_in_lenient_prologue): Remove.
4462 (struct alpha_sigtramp_unwind_cache): New.
4463 (alpha_sigtramp_frame_unwind_cache): New.
4464 (alpha_sigtramp_register_address): New.
4465 (alpha_sigtramp_frame_this_id): New.
4466 (alpha_sigtramp_frame_prev_register): New.
4467 (alpha_sigtramp_frame_unwind): New.
4468 (alpha_sigtramp_frame_p): New.
4469 (struct alpha_heuristic_unwind_cache): New.
4470 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4471 don't count nop insns that occur between functions.
4472 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4473 heuristic_proc_desc, but without the mdebug wrapping.
4474 (alpha_heuristic_frame_this_id): New.
4475 (alpha_heuristic_frame_prev_register): New.
4476 (alpha_heuristic_frame_unwind): New.
4477 (alpha_heuristic_frame_p): New.
4478 (alpha_heuristic_frame_base_address): New.
4479 (alpha_heuristic_frame_base): New.
4480 (alpha_unwind_dummy_id): New.
4481 (alpha_unwind_pc): New.
4482 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4483 frame related deprecated initializations; install replacements.
4484 (alpha_dump_tdep): Remove.
4485 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4486 (alpha_read_insn, alpha_after_prologue,
4487 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4488 alpha_heuristic_frame_prev_register,
4489 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4490 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4491 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4492 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4493
93ec1121
AC
44942003-05-29 Andrew Cagney <cagney@redhat.com>
4495
4496 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4497 dependant on the availability of ASSERT_FUNCTION.
4498 (ASSERT_FUNCTION): Do not define when there is no function name.
4499
98f08d3d
KB
45002003-05-29 Kevin Buettner <kevinb@redhat.com>
4501
4502 From Jimi X <jimix@watson.ibm.com>:
4503 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4504
0897f59b
JB
45052003-05-28 Jim Blandy <jimb@redhat.com>
4506
4507 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4508 argument to ptrace to int; the system headers should give it the
4509 right type, and pointers don't fit in ints on powerpc64-*-*.
4510
14898363
L
45112003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4512
4513 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4514 DW_TAG_catch_block.
4515
a7a48797
EZ
45162003-05-26 Elena Zannoni <ezannoni@redhat.com>
4517
4518 * stabsread.c (dbx_lookup_type): Make static.
4519 (read_type): Ditto.
4520 (add_undefined_type): Ditto.
4521 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4522 not export.
4523
f5479e9c
EZ
45242003-05-26 Elena Zannoni <ezannoni@redhat.com>
4525
4526 * hpread.c (hpread_has_name): Make static.
4527 (hpread_psymtab_to_symtab): Ditto.
4528 (file_exists): Ditto.
4529 (hpread_call_pxdb): Ditto.
4530 (hpread_pxdb_needed): Ditto.
4531 (hpread_quick_traverse): Ditto.
4532 (hpread_get_header): Ditto.
4533 (hpread_get_lntt): Ditto.
4534 (hpread_get_slt): Ditto.
4535 (class_of): Ditto.
4536
eb2e12d7
AS
45372003-05-25 Andreas Schwab <schwab@suse.de>
4538
78bf922a
AS
4539 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4540 stack_align and deprecated_extra_stack_alignment_needed.
4541 (m68k_stack_align): Delete.
4542
eb2e12d7
AS
4543 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4544 (m68k_register_virtual_size): Likewise.
4545 (altos_skip_prologue): Remove obsolete function.
4546 (isi_frame_num_args): Likewise.
4547 (news_frame_num_args): Likewise.
4548 (m68k_fix_call_dummy): Make static.
4549 (m68k_push_dummy_frame): Likewise.
4550 (m68k_pop_frame): Likewise.
4551 (m68k_skip_prologue): Likewise.
4552 (m68k_frame_init_saved_regs): Likewise.
4553 (m68k_saved_pc_after_call): Likewise.
4554 (m68k_get_longjmp_target): Make multi-arch.
4555 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4556 structure. Register m68k_get_longjmp_target if enabled.
4557 * m68k-tdep.h (struct gdbarch_tdep): Define.
4558 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4559
4560 * Makefile.in (config.status): Also depend on configure.tgt
4561 and configure.host.
4562 (m68klinux-tdep.o): Update dependencies.
4563 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4564 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4565 (M68K_LINUX_JB_PC): Define.
4566 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4567 and take additional parameter.
4568 (m68k_linux_sigtramp_saved_pc): Update.
4569 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4570 m68k_linux_pc_in_sigtramp, in_plt_section,
4571 find_solib_trampoline_target.
4572 * config/m68k/tm-linux.h: Don't include any tm headers.
4573 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4574 (JB_ELEMENT_SIZE): Likewise.
4575 (JB_PC): Likewise.
4576 (GET_LONGJMP_TARGET): Likewise.
4577 (IN_SIGTRAMP): Likewise.
4578 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4579
eb2c22dc
MK
45802003-05-25 Mark Kettenis <kettenis@gnu.org>
4581
4582 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4583 (sparc32_push_arguments): Re-implement by calling
4584 sparc32_do_push_arguments.
4585
44b7b84e
MK
45862003-05-25 Mark Kettenis <kettenis@gnu.org>
4587
4588 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4589 SPARC_O1_REGNUM): New defines.
4590 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4591 (sparc32_store_return_value): New function.
4592 (sparc_extract_struct_value_address): Rewrite to operate on a
4593 regcache.
4594 (sparc_gdbarch_init): Don't set
4595 deprecated_extract_struct_value_address. Set
4596 extract_struct_value_address instead. Don't set
4597 deprecated_extract_return_value and deprecated_store_return_value
4598 for 32-bit targets. Set extract_return_value and
4599 store_return_value instead.
4600 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4601 DEPRECTAED_EXTRACT_RETURN_VALUE,
4602 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4603 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4604 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4605 (sparc_store_return_value): Remove prototype.
4606 (sparc32_store_return_value): New prototype.
4607 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4608 Adjust prototypes.
4609
f6ad61e3
MK
46102003-05-24 Mark Kettenis <kettenis@gnu.org>
4611
4612 * sparcnbsd-tdep.c: Include "gdb_string.h".
4613
b276f1bb
AC
46142003-05-23 Andrew Cagney <cagney@redhat.com>
4615
4616 * p-valprint.c (pascal_val_print): Replace extract_address with
4617 the inline equivalent extract_unsigned_integer.
4618 * jv-valprint.c (java_value_print): Ditto.
4619 * ada-valprint.c (ada_val_print_1): Ditto.
4620 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4621
e76c5fcc
TR
46222003-05-23 Theodore A. Roth <troth@openavr.org>
4623
4624 * blockframe.c (frameless_look_for_prologue): Remove unused
4625 after_prologue variable.
4626
2cdd89cb
MK
46272003-05-23 Mark Kettenis <kettenis@gnu.org>
4628
4629 * blockframe.c (get_pc_function_start): Rewrite to avoid
4630 asignments in if-statements.
4631
182d43bc
EZ
46322003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4633
4634 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 4635 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
4636 files, don't relocate absolute symbols (and do use mst_abs).
4637
e8f3fcdd
AC
46382003-05-23 Andrew Cagney <cagney@redhat.com>
4639
4640 * objc-lang.c: Include "gdb_assert.h".
4641 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4642 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4643 (gdb_check, gdb_check_fatal): Delete functions.
4644 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4645 gdb_assert.
4646 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4647 * Makefile.in (objc-lang.o): Update dependencies.
4648
3c23e6fb
ILT
46492003-05-22 Ian Lance Taylor <ian@airs.com>
4650
4651 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4652 with fprintf_filtered, not fprintf_unfiltered.
4653
af1342ab
AC
46542003-05-22 Andrew Cagney <cagney@redhat.com>
4655
4656 * stack.c (frame_info): Inline extract_address, replacing it with
4657 extract_unsigned_integer.
4658 * findvar.c (unsigned_pointer_to_address): Ditto.
4659 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4660 * dwarf2expr.c (dwarf2_read_address): Ditto.
4661 * frame.c (frame_pc_unwind): Update comment.
4662 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4663
47e242ec
JJ
46642003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4665
4666 * infptrace.c (detach): Call print_sys_errmsg rather than
4667 perror_with_name to issue warning message when errno is non-zero
4668 after calling ptrace detach.
4669
e2ac8128
JB
46702003-05-21 J. Brobecker <brobecker@gnat.com>
4671
4672 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4673 macro definitions from here...
4674 * hppa-tdep.c: ...to there.
4675
92b3541e
KB
46762003-05-20 Kevin Buettner <kevinb@redhat.com>
4677
4678 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4679 register_ptrace_addr(). Fix all callers.
4680
55809acb
AS
46812003-05-21 Andreas Schwab <schwab@suse.de>
4682
4683 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4684 dependencies.
4685 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4686 end.
4687 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4688 (_initialize_m68k_linux_tdep): New function.
4689 (m68k_linux_frame_saved_pc): Make static.
4690 (m68k_linux_extract_return_value): Likewise.
4691 (m68k_linux_store_return_value): Likewise.
4692 (m68k_linux_extract_struct_value_address): Likewise.
4693 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4694 Remove.
4695 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4696 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4697 (DEPRECATED_FRAME_SAVED_PC): Remove.
4698
0fbc10f7
KW
46992003-05-20 Kris Warkentin <kewarken@qnx.com>
4700
4701 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4702 regset numbering rather than our own.
4703
58da2eb2
DC
47042003-05-19 David Carlton <carlton@bactrian.org>
4705
4706 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4707
1fcb5155
DC
47082003-05-19 David Carlton <carlton@bactrian.org>
4709
4710 Partial fix for PR c++/827.
4711 * cp-support.h: Include symtab.h.
4712 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4713 * cp-namespace.c: Update contributors.
4714 (cp_lookup_symbol_nonlocal): New.
4715 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4716 (lookup_symbol_file): Ditto.
4717 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4718 * block.h: Declare block_scope, block_using, block_global_block.
4719 * block.c (block_scope): New.
4720 (block_using, block_global_block): Ditto.
4721 * Makefile.in (cp_support_h): Depend on symtab_h.
4722 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4723
5f9a71c3
DC
47242003-05-19 David Carlton <carlton@bactrian.org>
4725
4726 * language.h (struct language_defn): Add 'la_value_of_this'
4727 and 'la_lookup_symbol_nonlocal' members.
4728 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4729 lookup_symbol_static, lookup_symbol_global,
4730 lookup_symbol_aux_block.
4731 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4732 if we should search fields of this and how to do static/global
4733 lookup.
4734 (lookup_symbol_aux_block): Make extern.
4735 (basic_lookup_symbol_nonlocal): New.
4736 (lookup_symbol_static, lookup_symbol_global): Ditto.
4737 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4738 'la_lookup_symbol_nonlocal' members.
4739 * c-lang.c (c_language_defn, cplus_language_defn)
4740 (asm_language_defn, minimal_language_defn): Ditto.
4741 * jv-lang.c (java_language_defn): Ditto.
4742 * language.c (unknown_language_defn, auto_language_defn)
4743 (local_language_defn): Ditto.
4744 * m2-lang.c (m2_language_defn): Ditto.
4745 * objc-lang.c (objc_language_defn): Ditto.
4746 * scm-lang.c (scm_language_defn): Ditto.
4747 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4748 * p-lang.c (pascal_language_defn): Ditto for both.
4749 * Makefile.in (f-lang.o): Depend on value_h.
4750 (p-lang.o): Ditto.
4751
89a9d1b1
DC
47522003-05-19 David Carlton <carlton@bactrian.org>
4753
4754 * block.h: Declare block_static_block.
4755 * block.c (block_static_block): New.
4756 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4757 lookup_symbol_aux_local, calling block_static_block instead.
4758 (lookup_symbol_aux_local): Delete 'static_block' argument.
4759
eed3f8ab
DC
47602003-05-19 David Carlton <carlton@bactrian.org>
4761
4762 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4763
a09d8bda
ML
47642003-05-19 Michal Ludvig <mludvig@suse.cz>
4765
4766 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4767 register numbers mapping.
4768
69636828
AF
47692003-05-18 Adam Fedor <fedor@gnu.org>
4770
4771 * symtab.c (completion_list_objc_symbol): New function.
4772 (make_symbol_completion_list): Use it to add ObjC symbols
4773 when looking though the list.
4774 (language_search_unquoted_string): New function.
4775 (make_file_symbol_completion_list): Use it.
4776
55baeb84
AS
47772003-05-18 Andreas Schwab <schwab@suse.de>
4778
d0b45d99
AS
4779 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4780 dependencies.
4781 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4782 as m68k_linux_extract_return_value.
4783 (DEPRECATED_STORE_RETURN_VALUE): Define as
4784 m68k_linux_store_return_value.
4785 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4786 m68k_linux_extract_struct_value_address.
4787 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4788 get_next_frame, get_frame_base, get_frame_pc.
4789 (m68k_linux_frame_saved_pc): Use get_frame_base.
4790 (m68k_linux_extract_return_value): New function.
4791 (m68k_linux_store_return_value): New function.
4792 (m68k_linux_extract_struct_value_address): New function.
4793 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4794
55baeb84
AS
4795 * c-exp.y (typebase): Remove duplicate occurence of
4796 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 4797 of lookup_signed_typename.
55baeb84 4798
b6b08ebf
MK
47992003-05-18 Mark Kettenis <kettenis@gnu.org>
4800
4801 * dwarf2loc.c (find_location_expression): Change type of second
4802 argument to `size_t *'.
4803 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4804 for size variable.
4805
5ad1c190
DC
48062003-05-18 David Carlton <carlton@bactrian.org>
4807
4808 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4809 'linkage_name'. Add comment.
4810 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4811 'linkage_name'.
4812 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4813 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
4814 (lookup_block_symbol): Ditto.
4815
b8b527c5
AC
48162003-05-16 Andrew Cagney <cagney@redhat.com>
4817
4818 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
4819 * gdbarch.h, gdbarch.c: Re-generate.
4820 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
4821 * TODO (REGISTER_BYTES): Delete reference.
4822 * alpha-tdep.c (alpha_gdbarch_init): Update.
4823 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4824 * x86-64-tdep.c (x86_64_init_abi): Update.
4825 * vax-tdep.c (vax_gdbarch_init): Update.
4826 * v850-tdep.c (v850_gdbarch_init): Update.
4827 * sparc-tdep.c (sparc_gdbarch_init): Update.
4828 * sh-tdep.c (sh_gdbarch_init): Update.
4829 * s390-tdep.c (s390_gdbarch_init): Update.
4830 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4831 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4832 (ns32k_gdbarch_init_32382): Update.
4833 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4834 * mcore-tdep.c (mcore_gdbarch_init): Update.
4835 * m68k-tdep.c (m68k_gdbarch_init): Update.
4836 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4837 * ia64-tdep.c (ia64_gdbarch_init): Update.
4838 * i386-tdep.c (i386_gdbarch_init): Update.
4839 * i386-linux-tdep.c (i386_linux_init_abi): Update.
4840 * hppa-tdep.c (hppa_gdbarch_init): Update.
4841 * h8300-tdep.c (h8300_gdbarch_init): Update.
4842 * frv-tdep.c (frv_gdbarch_init): Update.
4843 * cris-tdep.c (cris_gdbarch_init): Update.
4844 * avr-tdep.c (avr_gdbarch_init): Update.
4845 * arm-tdep.c (arm_gdbarch_init): Update.
4846 * sparc-tdep.c (sparc_pop_frame): Update.
4847 * rs6000-tdep.c (rs6000_pop_frame): Update.
4848 * remote.c (init_remote_state): Update.
4849 (remote_prepare_to_store): Update.
4850 * remote-vx.c (vx_prepare_to_store): Update.
4851 * remote-sds.c (sds_fetch_registers): Update.
4852 (sds_prepare_to_store): Update.
4853 * remote-array.c: Update.
4854 * regcache.c (init_legacy_regcache_descr): Update.
4855 (init_regcache_descr): Update.
4856 * mips-tdep.c (mips_eabi_extract_return_value): Update.
4857 (mips_o64_extract_return_value): Update.
4858 * irix5-nat.c (fetch_core_registers): Update.
4859 * irix4-nat.c (fetch_core_registers): Update.
4860 * i386-tdep.h: Update.
4861 * hppa-tdep.c (pa_do_registers_info): Update.
4862 (pa_do_strcat_registers_info): Update.
4863 * cris-tdep.c (cris_register_bytes_ok): Update.
4864 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4865 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
4866 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
4867 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
4868 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
4869 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
4870 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
4871 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
4872 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
4873 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
4874 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
4875 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
4876 (REGISTER_BYTES_OK): Update.
4877 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
4878 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
4879
ee2842e2
ILT
48802003-05-16 Ian Lance Taylor <ian@airs.com>
4881
4882 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
4883 (vax_print_insn, print_insn_arg): Remove static functions.
4884 (vax_gdbarch_init): Call set_gdbarch_print_insn with
4885 print_insn_vax from opcodes library.
4886 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
4887
973177d3
AC
48882003-05-15 Andrew Cagney <cagney@redhat.com>
4889
aaab4dba
AC
4890 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
4891 * target.h (memory_breakpoint_from_pc): Delete declaration.
4892 * mem-break.c (memory_breakpoint_from_pc): Delete function.
4893 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
4894 * monitor.c (monitor_insert_breakpoint): Use
4895 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
4896 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
4897 * gdbarch.h, gdbarch.c: Re-generate.
4898 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
4899 (sparc_gdbarch_init): Set breakpoint_from_pc to
4900 sparc_breakpoint_from_pc.
4901 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
4902 (BREAKPOINT_FROM_PC): Define.
4903 (sparc_breakpoint_from_pc): Declare.
4904 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
4905 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
4906 (BREAKPOINT_FROM_PC): Define.
4907 (BREAKPOINT): Delete macro.
4908 * target.h: Update comment.
4909 * s390-tdep.c (s390_gdbarch_init): Update comments.
4910 * remote.c: Update comments.
4911 * remote-mips.c: Update comments.
4912 * proc-api.c (write_with_trace): Do not check for a breakpoint.
4913 * mem-break.c: Update comment.
4914 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
4915 (ia64_memory_insert_breakpoint): Update.
4916 * config/sparc/tm-sparc.h: Update comment.
4917 * config/pa/tm-hppa64.h: Update comment.
4918 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4919 (rs6000_breakpoint_from_pc): Update.
4920 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4921 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
4922 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
4923 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
4924 (mips_breakpoint_from_pc): Update.
4925 (mips_dump_tdep): Update.
4926
e06963ff
AC
4927 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
4928 * minsyms.c (lookup_minimal_symbol): Inline
4929 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
4930
973177d3
AC
4931 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
4932 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4933 * p-lang.c (pascal_printstr): Ditto.
4934 * objc-lang.c (objc_printstr): Ditto.
4935 * m2-lang.c (m2_printstr): Ditto.
4936 * jv-valprint.c (java_print_value_fields): Ditto.
4937 * f-lang.c (f_printstr): Ditto.
4938 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
4939 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
4940 for repeat_count_threshold.
4941 * Makefile.in (cp-valprint.o): Update dependencies.
4942
5ea2bd7f 49432003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 4944
5ea2bd7f
JJ
4945 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
4946 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
4947 they start with mov r2,r12. Support skipping over indirect stores
4948 of the input registers. Upon hitting a non-nop branch instruction
4949 or predicated instruction, bail out by setting lim_pc to the current
4950 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
4951 beyond our calculated value and we have trust_limit set,
4952 use the lim_pc value.
4953
cc8c88f3
AC
49542003-05-15 Andrew Cagney <cagney@redhat.com>
4955
4956 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
4957 generic_find_dummy_frame.
4958 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
4959 (deprecated_generic_find_dummy_frame): Update.
4960 (deprecated_read_register_dummy): Update.
4961 * frame.c (deprecated_generic_get_saved_register): Update.
4962
909cd28e
TR
49632003-05-15 Theodore A. Roth <troth@openavr.org>
4964
4965 * avr-tdep.c (avr_breakpoint_from_pc): New function.
4966 (avr_gdbarch_init): Set breakpoint_from_pc method.
4967
b923b08d
AC
49682003-05-15 Andrew Cagney <cagney@redhat.com>
4969
4970 * regcache.c (build_regcache): Set deprecated_register_valid
4971 directly.
4972 (deprecated_grub_regcache_for_register_valid): Delete function.
4973 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
4974 declaration.
4975
ae2f03ac 49762003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
4977
4978 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
4979 * symtab.c (lookup_symbol_aux): Delete calls to
4980 lookup_symbol_aux_minsyms.
4981 (lookup_symbol_aux_minsyms): Comment out function and
4982 prototype. Delete lookup by mangled name.
ae2f03ac 4983
18ec9831
KB
49842003-05-14 Kevin Buettner <kevinb@redhat.com>
4985
4986 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
4987 correctly indicate an empty stack and ``stack_allocated'' to the
4988 indicate the number of elements initially allocated.
4989 (dwarf_expr_grow_stack): Simplify method for computing new
4990 stack size. Don't loop infinitely if ``stack_len'' is zero.
4991 (execute_stack_op): Move ``ctx->in_reg'' initialization
4992 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
4993 be used in conjuction with DW_OP_piece. Revise error message
4994 accordingly.
4995
de18ac1f
TR
49962003-05-14 Theodore A. Roth <troth@openavr.org>
4997
4998 * MAINTAINERS: Update my email address.
4999 * avr-tdep.c: Ditto.
5000
176620f1
EZ
50012003-05-14 Elena Zannoni <ezannoni@redhat.com>
5002
5003 * symtab.h (enum domain_enum): Rename from namespace_enum.
5004 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5005 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5006 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5007 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5008 TYPES_NAMESPACE, METHODS_NAMESPACE.
5009 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5010 (struct symbol, struct partial_symbol): Rename field
5011 'namespace_enum namespace' to 'domain_enum domain'.
5012 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5013 Delete old define kludge for namespace.
5014
5015 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5016 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5017 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5018 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5019 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5020 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5021 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5022 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5023 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5024 occurrences of the above.
5025
b7f31508
ILT
50262003-05-14 Ian Lance Taylor <ian@airs.com>
5027
5028 * Makefile.in (install-only): Use $(SHELL) when running
5029 mkinstalldirs.
5030
2fdbdd39
ILT
50312003-05-13 Ian Lance Taylor <ian@airs.com>
5032
a208d82c
ILT
5033 * MAINTAINERS (write after approval): Add myself.
5034
2fdbdd39
ILT
5035 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5036 second and third arguments.
5037 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5038 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5039
fbd9dcd3
AC
50402003-05-13 Andrew Cagney <cagney@redhat.com>
5041
5042 * defs.h (store_address): Delete declaration.
5043 findvar.c (store_address): Delete function.
5044 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5045 store_unsigned_integer.
5046 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5047 * v850-tdep.c (v850_push_arguments): Ditto.
5048 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5049 * sh-tdep.c (sh64_get_saved_register): Ditto.
5050 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5051 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5052 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5053 (mips_get_saved_register): Ditto.
5054 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5055 (find_func_descr, ia64_push_arguments): Ditto.
5056 * i386-tdep.c (i386_push_arguments): Ditto.
5057 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5058 * frv-tdep.c (frv_push_arguments): Ditto.
5059 * frame.c (legacy_saved_regs_prev_register): Ditto.
5060 (deprecated_generic_get_saved_register): Ditto.
5061 * findvar.c (unsigned_address_to_pointer): Ditto.
5062 * dwarf2read.c (dwarf2_const_value): Ditto.
5063 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5064 * alpha-tdep.c (alpha_push_arguments): Ditto.
5065
6760f9e6
JB
50662003-05-12 J. Brobecker <brobecker@gnat.com>
5067
5068 * NEWS: Mention that the hppa-hpux port has been partially
5069 multiarched (32bit ABIT only, so far).
5070
30e221b4
AC
50712003-05-11 Andrew Cagney <cagney@redhat.com>
5072
5073 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5074 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5075 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5076 sim/testsuite/sim/arm/misaligned2.ms, and
5077 sim/testsuite/sim/arm/misaligned3.ms.
5078 * disasm.h (struct ui_file): Add opaque struct declaration.
5079 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5080 * frame.h (struct ui_file): Ditto.
5081
dea7f9ba
MK
50822003-05-11 Mark Kettenis <kettenis@gnu.org>
5083
5084 * value.h: Pretty print.
5085
01986c48
MK
50862003-05-10 Mark Kettenis <kettenis@gnu.org>
5087
5088 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5089
123a958e
AC
50902003-05-08 Andrew Cagney <cagney@redhat.com>
5091
5092 * regcache.h (max_register_size): Delete declaration.
5093 * regcache.c (max_register_size): Delete function.
5094 (struct regcache_descr): Delete field "max_register_size".
5095 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5096 registers fit in MAX_REGISTER_SIZE.
5097 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5098 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5099 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5100 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5101 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5102 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5103 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5104 * dve3900-rom.c, hppa-tdep.c: Ditto.
5105
eb294659
DC
51062003-05-08 David Carlton <carlton@math.stanford.edu>
5107
5108 * valops.c (push_word): Fix typo.
5109
d9d9c31f
AC
51102003-05-08 Andrew Cagney <cagney@redhat.com>
5111
5112 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5113 * gdbarch.h: Re-generate.
5114 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5115 (legacy_max_register_raw_size): Delete declaration.
5116 * regcache.c (legacy_max_register_raw_size): Delete function.
5117 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5118 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5119 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5120 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5121 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5122 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5123 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5124 * findvar.c, dwarf2cfi.c: Ditto.
5125
22540ece
AC
51262003-05-08 Andrew Cagney <cagney@redhat.com>
5127
5128 * mips-tdep.c (read_signed_register): New function, moved to here
5129 from "regcache.c".
5130 (read_signed_register_pid): Ditto.
5131 * regcache.c (read_signed_register_pid): Delete function, moved to
5132 "mips-tdep.c".
5133 (read_signed_register): Ditto.
5134 * regcache.h (read_signed_register): Delete declaration.
5135 (read_signed_register_pid): Delete declaration.
5136
0c92afe8
AC
51372003-05-08 Andrew Cagney <cagney@redhat.com>
5138
5139 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5140 * gdbarch.h: Re-generate.
5141 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5142 (legacy_max_register_virtual_size): Delete declaration.
5143 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5144 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5145 * tracepoint.c (memrange_sortmerge): Ditto.
5146 * sparc-tdep.c (sparc_print_registers): Ditto.
5147 * regcache.c (legacy_max_register_virtual_size): Delete function.
5148
6037b830
JB
51492002-05-08 J. Brobecker <brobecker@gnat.com>
5150
5151 * fork-child.c (escape_bang_in_quoted_argument): New function.
5152 (fork_inferior): Escape '!' characters in quoted arguments
5153 only when needed.
5154
5d62c8b1
JB
51552003-05-08 J. Brobecker <brobecker@gnat.com>
5156
5157 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5158 the language of the CU is not currently supported by GDB.
5159
20a0e81d
JB
51602003-05-08 J. Brobecker <brobecker@gnat.com>
5161
5162 * defs.h (language): Add language_minimal enum value.
5163 * c-lang.c (minimal_language_defn): New language definition.
5164 (_initialize_c_language): Add the new minimal language to the list
5165 of languages known to GDB.
5166
710ee10a
KB
51672003-05-08 Kevin Buettner <kevinb@redhat.com>
5168
5169 * frame.c (get_frame_type): Don't attempt to lazily initialize
5170 frame's unwinder for legacy frames.
5171
1750fa04
AC
51722003-05-07 Andrew Cagney <cagney@redhat.com>
5173
5174 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5175 and "regcache" parameters.
5176 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5177
ddf9f258 51782003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
5179
5180 * dwarf2read.c (dwarf_decode_lines): Only use output of
5181 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
5182 the current address.
5183
87767c29
AC
51842003-05-07 Andrew Cagney <cagney@redhat.com>
5185
5186 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5187 code.
5188
5e7b2f39
JB
51892003-05-07 Jim Blandy <jimb@redhat.com>
5190
5191 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5192 'maint info symtabs' and 'maint info psymtabs'.
5193 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5194 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5195 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5196 Declarations updated.
5197 * maint.c (maintenance_list_command): Delete.
5198 (_initialize_maint_cmds): Update calls to add_cmd.
5199 * gdbcmd.h (maintenancelistlist): Delete declaration.
5200 * cli/cli-cmds.c (maintenancelistlist): Delete.
5201 (init_cmd_lists): Don't initialize it.
5202 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5203
f6684c31
AC
52042003-05-07 Andrew Cagney <cagney@redhat.com>
5205
5206 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5207 "regcache".
5208 (d10v_print_registers_info): Update.
5209 (d10v_dmap_register, d10v_imap_register): Delete functions.
5210 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5211 and "imap_register".
5212 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5213 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5214 * arch-utils.c (generic_remote_translate_xfer_address): Add
5215 "regcache" and "gdbarch" parameters.
5216 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5217 parameter. Change class to multi-arch.
5218 * gdbarch.h, gdbarch.c: Re-generate.
5219 * remote.c (remote_xfer_memory): Use
5220 gdbarch_remote_translate_xfer_address.
8ffd9b1b 5221
e4846b08
JJ
52222003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5223
5224 * infrun.c (prev_pc): Move declaration ahead of proceed().
5225 (proceed): Refresh prev_pc value before resuming.
5226 (stop_stepping): Remove code to refresh prev_pc.
5227
6b71b8ac
KW
52282003-05-06 Kris Warkentin <kewarken@qnx.com>
5229
5230 * nto-tdep.c: Removed stray comment.
5231
47979a4b
KW
52322003-05-06 Kris Warkentin <kewarken@qnx.com>
5233
5234 * i386-nto-tdep.c: Fix old K&R function definitions.
5235 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5236 Also change add_show_from_set() call to add_setshow_cmd().
5237 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5238
00905d52
AC
52392003-05-05 Andrew Cagney <cagney@redhat.com>
5240
5241 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5242 (fprint_dummy_frames): New function.
5243 (maintenance_print_dummy_frames): New function.
5244 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5245 * frame.c (fprint_frame_id): Make global.
5246 * frame.h (fprint_frame_id): Declare.
5247 * Makefile.in (dummy-frame.o): Update dependencies.
5248
b1e29e33
AC
52492003-05-05 Andrew Cagney <cagney@redhat.com>
5250
5251 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5252 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5253 SIZEOF_CALL_DUMMY_WORDS.
5254 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5255 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5256 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5257 CALL_DUMMY_BREAKPOINT_OFFSET.
5258 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5259 CALL_DUMMY_START_OFFSET.
5260 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5261 * gdbarch.h, gdbarch.c: Re-generate.
5262 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5263 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5264 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5265 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5266 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5267 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5268 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5269 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5270 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5271 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5272 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5273 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5274 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5275 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5276 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
5277
52782003-05-05 Kris Warkentin <kewarken@qnx.com>
5279
5280 * configure.tgt: Add i[3456]86-*-nto*.
5281 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5282 * nto-tdep.c: New file. Neutrino target support routines.
5283 * nto-tdep.h: New file. Neutrino target header.
5284 * config/tm-qnxnto.h: New file.
5285 * config/i386/i386nto.mt: New file.
5286 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 5287
0ce3d317
AC
52882003-05-04 Andrew Cagney <cagney@redhat.com>
5289
5290 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5291 (load_infrun_state): Ditto.
5292 (struct thread_info): Drop "prev_func_name" field.
5293 * thread.c (load_infrun_state): Update.
5294 (save_infrun_state): Update.
5295 * infrun.c (prev_func_name): Delete variable.
5296 (init_wait_for_inferior): Do not clear prev_func_name.
5297 (stop_stepping, keep_going, context_switch): Do not swap
5298 prev_func_name.
5299 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5300 instead of PC_IN_SIGTRAMP.
5301
46654a5b
AC
53022003-05-04 Andrew Cagney <cagney@redhat.com>
5303
5304 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5305 REGISTER_BYTE with register_offset_hack.
5306 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5307 that REGISTER_BYTE is consistent with the regcache.
5308 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5309 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 5310
14b08c1b
MK
53112003-05-04 Mark Kettenis <kettenis@gnu.org>
5312
04c8243f
MK
5313 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5314 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5315
14b08c1b
MK
5316 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5317
c7a11e01
JB
53182003-05-03 J. Brobecker <brobecker@gnat.com>
5319
5320 From Thierry Schneider <tpschneider1@yahoo.com>
5321 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5322 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5323 (mi-cmd-symbol.o): Add rule.
5324
7043d8dc
AC
53252003-05-03 Andrew Cagney <cagney@redhat.com>
5326
5327 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5328 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5329 * gdbarch.h, gdbarch.c: Re-generate.
5330 * d10v-tdep.c (d10v_push_dummy_code): New function.
5331 (d10v_gdbarch_init): Set push_dummy_code.
5332 * infcall.c (legacy_push_dummy_code): New function.
5333 (generic_push_dummy_code): New function.
5334 (push_dummy_code): New function.
5335 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5336 instead of dummy_addr, to push_dummy_call. Move call to
5337 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5338 switch.
5339 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5340
92bf2b80
AC
53412003-05-03 Andrew Cagney <cagney@redhat.com>
5342
5343 * disasm.h (print_insn): Declare.
5344 * disasm.c (init_gdb_disassemble_info): New function.
5345 (gdb_disassembly): Call init_gdb_disassemble_info.
5346 (gdb_print_insn): New function.
5347 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5348 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5349 * mcore-tdep.c: Include "disasm.h"
5350 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5351 * d10v-tdep.c: Include "disasm.h".
5352 (display_trace): Call gdb_print_insn, instead of print_insn.
5353 (print_insn): Delete function.
5354 * printcmd.c: Include "disasm.h".
5355 (print_insn): Delete function.
5356 (print_formatted): Call gdb_print_insn, instead of print_insn.
5357 * Makefile.in (printcmd.o): Update dependencies.
5358 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 5359
27d94c49
AC
53602003-05-02 Andrew Cagney <cagney@redhat.com>
5361
82de1e5b
AC
5362 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5363 PC_REGNUM, re-indent.
5364 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5365 PC_REGNUM isn't set.
5366
27d94c49
AC
5367 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5368 * gdbarch.h, gdbarch.c: Re-generate.
5369 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5370 register_virtual_size, pc_regnum, or register_bytes.
5371 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5372 (d10v_register_type): Use D10V_PC_REGNUM.
5373 (d10v_print_registers_info, d10v_read_pc): Ditto.
5374 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5375 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5376
a9c0dc7f
DC
53772003-05-02 David Carlton <carlton@bactrian.org>
5378
5379 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5380 the name with mstrsave.
5381
e33d66ec
EZ
53822003-05-02 Elena Zannoni <ezannoni@redhat.com>
5383
5384 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5385 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5386 (host_charset_name, target_charset_name): New vars for use by
5387 set/show commands.
5388 (host_charset_enum, target_charset_enum): New enums for set/show
5389 commands.
5390 (set_charset_sfunc, set_host_charset_sfunc,
5391 set_target_charset_sfunc): New functions.
5392 (set_host_charset, set_target_charset): Make static.
5393 (list_charsets, set_host_charset_command,
5394 set_target_charset_command): Delete functions.
5395 (show_charset_command): Rewrite as....
5396 (show_charset): Hook this up with the set/show command mechanism.
5397 (_initialize_charset): Change names of charsets to match the
5398 set/show enums. Use host_charset_name and target_charset_name.
5399 Use set/show mechanism for charset, host-charset, target-charset
5400 commands. Do not make 'show host-charset' and 'show
5401 target-charset' be aliases of 'show charset'.
5402
5403 * charset.h (set_host_charset, set_target_charset): Don't export,
5404 they are not used outside the file.
5405
2b6fd0d8
AC
54062003-05-01 Andrew Cagney <cagney@redhat.com>
5407
5408 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5409 (gdb_disassembly): Make "di" non static, always initialize and
5410 cleanup. Always use dis_asm_read_memory.
5411 (gdb_dis_asm_read_memory): Delete function.
5412
6ae2f580
AC
54132003-05-01 Andrew Cagney <cagney@redhat.com>
5414
5415 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5416 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5417
810ecf9f
AC
54182003-04-30 Andrew Cagney <cagney@redhat.com>
5419
5420 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5421 "tm_print_insn_info".
5422 (TARGET_PRINT_INSN_INFO): Delete macro.
5423 (dis_asm_read_memory): Delete function declaration.
5424 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5425 (tm_print_insn_info): Delete variable definition.
5426 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5427 * gdbarch.h, gdbarch.c: Re-generate.
5428 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5429 "deprecated_tm_print_insn_info".
5430 * mcore-tdep.c (mcore_dump_insn): Ditto.
5431 * mips-tdep.c (mips_gdbarch_init): Ditto.
5432 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5433 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5434 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5435 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5436 instead of TARGET_PRINT_INSN_INFO, add comment.
5437 * s390-tdep.c (s390_get_frame_info): Instead of
5438 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5439 (s390_check_function_end, s390_is_sigreturn): Ditto.
5440 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5441 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5442 * disasm.c: Include "gdbcore.h".
5443 (_initialize_disasm): New function, initialize
5444 "deprecated_tm_print_insn_info".
5445 (deprecated_tm_print_insn_info): New variable.
5446 (dis_asm_read_memory): Moved from "corefile.c", made static.
5447 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5448 * Makefile.in (disasm.o): Update dependencies.
5449
07020390
AC
54502003-04-30 Andrew Cagney <cagney@redhat.com>
5451
5452 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5453
a9fa03de
AF
54542003-04-29 Adam Fedor <fedor@gnu.org>
5455
5456 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5457 * infcall.c (find_function_addr): Make non-static.
5458 * infcall.h (find_function_addr): Declare.
5459 * Makefile.in (eval.o): Update dependencies.
5460
1bae87b9
AF
54612003-04-28 Adam Fedor <fedor@gnu.org>
5462
5463 * symtab.c (symbol_find_demangled_name): Check for and demangle
5464 ObjC symbols.
5465 (symbol_init_demangled_name): Init for language_objc as well.
5466
0ba6dca9
AC
54672003-04-28 Andrew Cagney <cagney@redhat.com>
5468
5469 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5470 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5471 * gdbarch.h, gdbarch.c: Re-generate.
5472 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5473 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5474 * inferior.h (deprecated_read_fp): Rename read_fp.
5475 (generic_target_read_fp): Delete declaration.
5476 * regcache.c (generic_target_read_fp): Delete function.
5477 (deprecated_read_fp): Replace read_fp, use
5478 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5479 * d10v-tdep.c (d10v_read_fp): Delete function.
5480 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5481
5482 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5483 deprecated_target_read_fp to generic_target_read_fp.
5484 * sh-tdep.c (sh_gdbarch_init): Ditto.
5485 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5486 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5487 * frv-tdep.c (frv_gdbarch_init): Ditto.
5488
5489 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5490 deprecated_fp_regnum.
5491 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5492 * vax-tdep.c (vax_gdbarch_init): Ditto.
5493 * v850-tdep.c (v850_gdbarch_init): Ditto.
5494 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5495 * sh-tdep.c (sh_gdbarch_init): Ditto.
5496 * s390-tdep.c (s390_gdbarch_init): Ditto.
5497 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5498 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5499 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5500 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5501 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5502 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5503 * i386-tdep.c (i386_gdbarch_init): Ditto.
5504 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5505 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5506 * frv-tdep.c (frv_gdbarch_init): Ditto.
5507 * cris-tdep.c (cris_gdbarch_init): Ditto.
5508 * avr-tdep.c (avr_gdbarch_init): Ditto.
5509 * arm-tdep.c (arm_gdbarch_init): Ditto.
5510 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5511
5512 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5513 * v850-tdep.c (v850_gdbarch_init): Ditto.
5514 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5515 * sh-tdep.c (sh_gdbarch_init): Ditto.
5516 * s390-tdep.c (s390_gdbarch_init): Ditto.
5517 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5518 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5519 * mips-tdep.c (mips_gdbarch_init): Ditto.
5520 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5521 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5522 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5523 * frv-tdep.c (frv_gdbarch_init): Ditto.
5524 * avr-tdep.c (avr_gdbarch_init): Ditto.
5525 * arm-tdep.c (arm_gdbarch_init): Ditto.
5526
5527 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5528 DEPRECATED_FP_REGNUM.
5529 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5530 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5531 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5532 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5533 (sparc32_register_virtual_type): Ditto.
5534 * sh-tdep.c (sh64_frame_chain): Ditto.
5535 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5536 (sh_nofp_frame_init_saved_regs): Ditto.
5537 (sh64_nofp_frame_init_saved_regs): Ditto.
5538 (sh_fp_frame_init_saved_regs): Ditto.
5539 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5540 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5541 * procfs.c (procfs_fetch_registers): Ditto.
5542 (procfs_store_registers): Ditto.
5543 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5544 (store_inferior_registers, fetch_core_registers): Ditto.
5545 (fetch_kcore_registers, clear_regs): Ditto.
5546 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5547 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5548 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5549 * nlm/i386.c (do_status): Ditto.
5550 * mipsv4-nat.c (supply_gregset): Ditto.
5551 * mips-tdep.c: Ditto for comments.
5552 * mips-nat.c (fetch_inferior_registers): Ditto.
5553 (store_inferior_registers, fetch_core_registers): Ditto.
5554 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5555 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5556 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5557 (i386_do_pop_frame, i386_register_type): Ditto.
5558 * hppa-tdep.c (hppa_frame_chain): Ditto.
5559 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5560 (hppa_pop_frame, hppa_read_fp): Ditto.
5561 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5562 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5563 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5564 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5565 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5566 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5567 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5568 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5569 * blockframe.c: Ditto for comments.
5570 * arch-utils.h: Ditto for comments.
5571 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5572 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5573 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5574 * alpha-tdep.h: Ditto for comments.
5575 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5576 (alpha_cannot_store_register): Ditto.
5577 (alpha_push_dummy_frame): Ditto.
5578 * alpha-nat.c (supply_gregset): Ditto.
5579
5580 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5581 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5582 * config/sparc/tm-sparc.h: Update comment.
5583
5584 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5585 deprecated_read_fp instead of TARGET_READ_FP.
5586 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5587 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5588 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5589 deprecated_read_fp instead of read_fp.
5590 * s390-tdep.c (s390_push_arguments): Ditto.
5591 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5592 * frame.h: Ditto in comments.
5593 * frame.c (legacy_get_prev_frame): Ditto.
5594 * dummy-frame.c (dummy_frame_this_id): Ditto.
5595 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5596
d7a27068
AC
55972003-04-28 Andrew Cagney <cagney@redhat.com>
5598
5599 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5600 * gdbarch.h, gdbarch.c: Re-generate.
5601 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5602 * vax-tdep.c (_initialize_vax_tdep): Update.
5603 * v850-tdep.c (_initialize_v850_tdep): Update.
5604 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5605 * s390-tdep.c (_initialize_s390_tdep): Update.
5606 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5607 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5608 * mips-tdep.c (_initialize_mips_tdep): Update.
5609 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5610 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5611 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5612 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5613 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5614 * frv-tdep.c (_initialize_frv_tdep): Update.
5615 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5616 (_initialize_cris_tdep): Update.
5617 * arch-utils.c (legacy_print_insn): Update.
5618 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5619
d2630e69
AF
56202003-04-26 Adam Fedor <fedor@gnu.org>
5621
5622 * linespec.c (decode_objc): New function to decode ObjC calls
5623 (decode_line_1): Check for ObjC calls (using decode_objc)
5624 * Makefile (linespec.o): Update dependencies.
5625
3086aeae
DJ
56262003-04-26 Daniel Jacobowitz <drow@mvista.com>
5627
5628 * breakpoint.h (struct breakpoint_ops): New.
5629 (struct breakpoint): Add ops member.
5630
5631 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5632 (mention): Use new breakpoint ops member.
5633 (set_raw_breakpoint): Initialize ops field to NULL.
5634 (print_exception_catchpoint, print_one_exception_catchpoint)
5635 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5636 (gnu_v3_exception_catchpoint_ops): New.
5637 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5638
1fbec6c3
AF
56392003-04-25 Adam Fedor <fedor@gnu.org>
5640
5641 * Makefile.in (COMMON_OBS): Add objc-lang.o
5642
0ef21242
AC
56432003-04-25 Andrew Cagney <cagney@redhat.com>
5644
5645 * d10v-tdep.c (print_insn): Delete function.
5646 (display_trace): Use TARGET_PRINT_INSN.
5647 (_initialize_d10v_tdep): Do not set tm_print_insn.
5648 (d10v_gdbarch_init): Set print_insn.
5649
f75493ed
AC
56502003-04-25 Andrew Cagney <cagney@redhat.com>
5651
5652 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5653 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5654 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5655 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5656 (nr_dmap_regs, a0_regnum): ... new functions.
5657 (d10v_print_registers_info): Use a0_regnum, use register_size.
5658 (d10v_register_byte): Delete function.
5659 (d10v_register_raw_size): Delete function.
5660 (d10v_register_type): Use a0_regnum.
5661 (d10v_print_registers_info): Use a0_regnum.
5662 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5663 (d10v_gdbarch_init): Do not set register_byte or
5664 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5665 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5666 extract_address.
5667 (trace_command): Use XCALLOC.
5668 (print_insn): Delete reference to tm_print_insn.
5669 (saved_regs_unwinder): Use store_unsigned_integer instead of
5670 store_address.
5671 * frame.h (FRAME_OBSTACK_CALLOC): Define
5672
2202b100
DC
56732003-04-25 David Carlton <carlton@bactrian.org>
5674
5675 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5676
4e45ca2e
AF
56772003-04-24 Adam Fedor <fedor@gnu.org>
5678
5679 * objc-lang.c: Include "valprint.h"
5680 * Makefile.in (objc-lang.o): Update dependencies.
5681
93de3e7f
AF
56822003-04-24 Adam Fedor <fedor@gnu.org>
5683
8ffd9b1b 5684 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
5685 architecture dependant compilation and mark as unimplemented
5686 (until they get put in the gdbarch vector).
5687
0f20eeea
DC
56882003-04-23 David Carlton <carlton@bactrian.org>
5689
5690 * cp-support.c (cp_find_first_component): Accept 'operator' in
5691 more locations.
5692
74cfe982
AC
56932003-04-23 Andrew Cagney <cagney@redhat.com>
5694
5695 * infcall.c (call_function_by_hand): Eliminate redundant
5696 indentation. Move "saved_async" and "old_cleanups" to where they
5697 are needed.
8ffd9b1b 5698
52557533
AC
56992003-04-23 Andrew Cagney <cagney@redhat.com>
5700
5701 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5702 and "buffer". Move the "name" code to where it is needed.
5703
158775de
AC
57042003-04-23 Andrew Cagney <cagney@redhat.com>
5705
5706 * infcall.c (call_function_by_hand): Move variables "start_sp",
5707 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5708 code to ON_STACK switch branch.
8ffd9b1b 5709
ebc7896c
AC
57102003-04-23 Andrew Cagney <cagney@redhat.com>
5711
5712 * infcall.c (call_function_by_hand): Make declaration of "i",
5713 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5714 lint.
5715
d727590f
AC
57162003-04-23 Andrew Cagney <cagney@redhat.com>
5717
5718 * infcall.c (call_function_by_hand): Delete variable
5719 "n_method_args". Localize "param_type"'s declaration to the loop
5720 that it is used. Reinstate code assigning to said variable -
5721 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5722 Rationalize code using "param_type".
5723
d585e13a
AC
57242003-04-22 Andrew Cagney <cagney@redhat.com>
5725
5726 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5727 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5728 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5729 to DEPRECATED_PUSH_RETURN_ADDRESS.
5730
051caad9
KB
57312003-04-22 Kevin Buettner <kevinb@redhat.com>
5732
5733 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5734 on the DWARF2 register number prior to fetching a register.
5735
77296879
JB
57362003-04-22 J. Brobecker <brobecker@gnat.com>
5737
5738 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5739 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 5740 this macro was always set to 0.
77296879
JB
5741 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5742 considering the fact that this macro was always set to 0.
5743 * hppa-tdep.h (hppa_store_return_value): Likewise.
5744 (hppa_extract_return_value): Likewise.
5745
4252f1df
JB
57462003-04-22 J. Brobecker <brobecker@gnat.com>
5747
5748 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5749 the hppa-pro target only.
5750
14604c6b
JB
57512003-04-21 J. Brobecker <brobecker@gnat.com>
5752
5753 Ongoing multi-arch conversion effort for HP/UX:
5754 * config/pa/tm-hppa.h: Move all macro that are no longer
5755 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5756 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5757
77eb01d1
JB
57582003-04-21 J. Brobecker <brobecker@gnat.com>
5759
5760 * config/pa/tm-hppa.h: Obsolete a section that was only used
5761 for hppa-pro.
5762
61995b3b
JB
57632003-04-21 J. Brobecker <brobecker@gnat.com>
5764
5765 Ongoing multi-arch conversion for HP/UX.
5766 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5767 if already defined (allows hppa64 to stay non-multiarched for now).
5768 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5769
4aa79dcc
AC
57702003-04-21 Andrew Cagney <cagney@redhat.com>
5771
5772 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5773
0f751ff2
AC
57742003-04-21 Andrew Cagney <cagney@redhat.com>
5775
5776 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5777 "i386_num_mmx_regs".
5778
04714b91
AC
57792003-04-21 Andrew Cagney <cagney@redhat.com>
5780
5781 * infcall.c: New file.
5782 * infcall.h: New file.
5783 * valarith.c: Include "infcall.h".
5784 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5785 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5786 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5787 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5788 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5789 (SFILES): Add "infcall.c"
5790 (COMMON_OBS): Add "infcall.o".
5791 (infcall.o): Specify dependencies.
5792 * value.h (call_function_by_hand): Delete declaration.
5793 * inferior.h (run_stack_dummy): Delete declaration.
5794 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5795 (run_stack_dummy): Move to "infcall.c", merged into
5796 call_function_by_hand.
5797 * valops.c (call_function_by_hand): Moved to "infcall.c".
5798 (find_function_addr, value_arg_coerce): Ditto.
5799 (unwindonsignal_p, coerce_float_to_double): Ditto.
5800 (_initialize_valops): Move "set/show coerce-float-to-double", and
5801 "set/show unwindonsignal" commands to "infcall.c".
5802 * v850-tdep.c, target.h: Update comments.
5803 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5804 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5805 (sh64_init_extra_frame_info): Update comments.
5806 * mn10300-tdep.c: Update comments.
5807 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5808 * config/sparc/tm-sparc.h: Update comments.
5809 * breakpoint.h: Update comments.
5810 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5811 * arm-tdep.c: Update comment.
5812
f9d3c2a8
MK
58132003-04-19 Mark Kettenis <kettenis@gnu.org>
5814
c40e1eab
MK
5815 * i386-tdep.c (i386_num_register_names): New variable.
5816 (i386_num_mmx_regs): Renamed from mmx_num_regs.
5817 (MM0_REGNUM): Remove redundant parentheses in define.
5818 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
5819 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
5820 i386_mxcsr_regnum_p): Remove redundant parentheses.
5821 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 5822
94ea66b3
MK
5823 * i386-tdep.c (i386_extract_return_value,
5824 i386_store_return_value): Correct check for availability of
5825 floating-point registers.
5826
54299a1d
MK
5827 * i386-tdep.c (i386_frame_num_args): Remove function.
5828 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
5829
c86c27af
MK
5830 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
5831 mmx_regnum_to_fp_regnum. Adjust all callers.
5832
f9d3c2a8
MK
5833 * i386-tdep.c (i386_get_longjmp_target): Use
5834 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
5835 and TARGET_CHAR_BIT. Use extract_typed_address instead of
5836 extract_address.
5837
94ba74a9
MK
58382003-04-19 Mark Kettenis <kettenis@gnu.org>
5839
5840 * core-regset.c: Update comments to reflect reality. Re-order
5841 includes.
5842 (fetch_core_registers): Use switch instead of if. Remove
5843 redundant prototype.
5844
4074e13c
JB
58452003-04-18 Jim Blandy <jimb@redhat.com>
5846
5847 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 5848 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 5849
e3ab4aba
RH
58502003-04-17 Richard Henderson <rth@redhat.com>
5851
5852 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
5853
627bf7c1
EZ
58542003-04-17 Michael Snyder <msnyder@redhat.com>
5855 Karen Bennet <bennet@redhat.com>
5856
5857 Committed by Elena Zannoni <ezannoni@redhat.com>
5858 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 5859
514621a9
EZ
58602003-04-17 Elena Zannoni <ezannoni@redhat.com>
5861
5862 * values.c (value_being_returned): Don't fetch the return
fbe586ae 5863 value if the return type is void.
514621a9 5864
b4acd559
JJ
58652003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5866
5867 * thread-db.c: Reindented.
8ffd9b1b 5868
530b167e 58692003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
5870
5871 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
5872 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
5873 as types.
5874
0a48e7e8
MS
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
8ffd9b1b 5898
ab9fe00e
KB
58992003-04-16 Kevin Buettner <kevinb@redhat.com>
5900
610a3745 5901 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
5902 the size of ``long double'' to 16, instead of 8.
5903
e64a344c
MK
59042003-04-16 Mark Kettenis <kettenis@gnu.org>
5905
5906 * i386-linux-nat.c: Add some whitespace to make things more
5907 readable.
5908 (fetch_register, store_register, fetch_inferior_registers,
5909 store_inferior_registers): Get rid of assignment in if-statement.
5910 (store_register): Fix typo in error message.
5911
25d41031
AC
59122003-04-16 Andrew Cagney <cagney@redhat.com>
5913
5914 * utils.c (xmmalloc): Always allocate something, matches
5915 libiberty/xmalloc's semantics.
5916 (xmrealloc, xmcalloc): Ditto.
5917
c50901fd
AC
59182003-04-16 Andrew Cagney <cagney@redhat.com>
5919
5920 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5921 update comments.
5922 (get_frame_type): Initialize unwind and type when needed.
5923 (get_frame_id, frame_register_unwind): Ditto.
5924
f81824a9
AC
59252003-04-16 Andrew Cagney <cagney@redhat.com>
5926
5927 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
5928 obsolete.
5929 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
5930 * sparcl-stub.c: Obsolete file.
5931 * config/sparc/tm-sparclet.h: Obsolete file.
5932 * sparclet-stub.c: Obsolete file.
5933 * sparclet-rom.c: Obsolete file.
5934 * sparcl-tdep.c: Obsolete file.
5935 * config/sparc/tm-sparclite.h: Obsolete file.
5936 * config/sparc/sparclite.mt: Obsolete file.
5937 * config/sparc/sparclet.mt: Obsolete file.
5938 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
5939 sparc86x-*-* obsolete.
5940
9219021c
DC
59412003-04-15 David Carlton <carlton@math.stanford.edu>
5942
5943 * Makefile.in (SFILES): Add cp-namespace.c.
5944 (COMMON_OBS): Add cp-namespace.o.
5945 (block.o): Depend on gdb_obstack_h and cp_support_h.
5946 (buildsym.o): Depend on cp_support_h.
5947 (cp-namespace.o): New.
5948 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
5949 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
5950 (dwarf2read.o): Depend on cp_support_h.
5951 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
5952 * dwarf2read.c (process_die): Set processing_has_namespace_info,
5953 processing_current_namespace.
5954 (read_namespace): Update processing_current_namespace; check for
5955 anonymous namespaces.
5956 (dwarf2_name): New function.
5957 (dwarf2_extension): Ditto.
5958 * cp-support.h: Update copyright, contributors.
5959 Add inclusion guards.
5960 Add opaque declaration for structs obstack, block, symbol.
5961 (struct using_direct): New struct.
5962 Add declarations for cp_find_first_component,
5963 cp_entire_prefix_len, processing_has_namespace_info,
5964 processing_current_namespace, cp_is_anonymous,
5965 cp_add_using_directive, cp_initialize_namespace,
5966 cp_finalize_namespace, cp_set_block_scope,
5967 cp_scan_for_anonymous_namespaces.
5968 * cp-namespace.c: New file.
5969 * cp-support.c: Update copyright.
5970 Include ctype.h, gdb_assert.h, gdbcmd.h.
5971 New variable maint_cplus_cmd_list.
5972 (cp_find_first_component): New function.
5973 (cp_entire_prefix_len, maint_cplus_command)
5974 (first_component_command, _initialize_cp_support): Ditto.
5975 * buildsym.c: Include cp-support.h.
5976 New variable using_list.
5977 (add_symbol_to_list): Check for anonymous namespaces.
5978 (finish_block): Set block's scope.
5979 (start_symtab): Initialize C++ namespace support.
5980 (end_symtab): Finalize C++ namespace support.
5981 * block.h: Add opaque declarations for structs
5982 block_namespace_info, using_direct, and obstack.
5983 Add declarations for block_set_scope and block_set_using.
5984 (struct block): Add 'language_specific' member.
5985 (BLOCK_NAMESPACE): New macro.
5986 * block.c: Include gdb_obstack.h and cp-support.h.
5987 (struct block_namespace_info): New struct.
5988 (block_set_scope): New function.
5989 (block_set_using, block_initialize_namespace): Ditto.
5990
d5a921c9
KB
59912003-04-14 Kevin Buettner <kevinb@redhat.com>
5992
5993 * solib-svr4.c (svr4_have_link_map_offsets): New function.
5994 (locate_base): Return early if there aren't any link map offsets.
5995 (svr4_solib_create_inferior_hook): Warn if shared library support
5996 is unavailable.
5997
d2a52b27
DC
59982003-04-14 David Carlton <carlton@math.stanford.edu>
5999
6000 * symtab.c (symbol_set_names): Add prefix when storing Java names
6001 in hash table. Fix for PR java/1039.
6002
980cae7a
DC
60032003-04-14 David Carlton <carlton@math.stanford.edu>
6004
6005 * symtab.c (symbol_set_names): Rename 'name' arg to
6006 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6007 * symtab.h: Change 'name' argument in declaration of
6008 symbol_set_names to 'linkage_name'.
6009 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6010
e227b13c
AC
60112003-04-14 Andrew Cagney <cagney@redhat.com>
6012
6013 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6014 return the fully sign-extended register value.
6015 (get_frame_pointer): Ditto.
6016 (mips_pop_frame): Initialize "proc_desc" after checking for a
6017 dummy frame.
6018
36712a20
AC
60192003-04-14 Andrew Cagney <cagney@redhat.com>
6020
6021 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6022 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6023 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6024 (mips_push_register): Delete function.
6025 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6026 PUSH_FP_REGNUM.
6027
44ea7b70
JB
60282003-04-14 Jim Blandy <jimb@redhat.com>
6029
6030 * symmisc.c: #include "gdb_regex.h".
6031 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6032 functions.
6033 * maint.c (maintenance_list_command): New function.
6034 (_initialize_maint_cmds): Register the above as commands.
6035 * symtab.h (maintenance_list_symtabs,
6036 maintenance_list_psymtabs): New declarations.
6037 * cli/cli-cmds.c (maintenancelistlist): New variable.
6038 (init_cmd_lists): Initialize it.
6039 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6040 * gdbcmd.h (maintenancelistlist): New declaration.
6041 * Makefile.in (symmisc.o): Update dependencies.
6042
2d0c7962
EZ
60432003-04-14 Elena Zannoni <ezannoni@redhat.com>
6044
6045 * s390-nat.c: Include asm/types.h for addr_t.
6046
1947a811
CV
60472003-04-14 Corinna Vinschen <vinschen@redhat.com>
6048
6049 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6050 actually incoming type.
6051
adb616d7
AC
60522003-04-13 Andrew Cagney <cagney@redhat.com>
6053
6054 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6055 get_next_frame and get_frame_saved_regs.
6056
9b5e151c
AC
60572003-04-13 Andrew Cagney <cagney@redhat.com>
6058
6059 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6060 of gdbarch_num_regs.
6061
ef6e7e13
AC
60622003-04-13 Andrew Cagney <cagney@redhat.com>
6063
6064 * frame.h: Mention what replaced what in "struct frame_info".
6065 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6066 deprecated_update_frame_base_hack and
6067 deprecated_update_frame_pc_hack.
6068 * hppa-tdep.c: Ditto.
6069
61fbb938
DJ
60702003-04-13 Daniel Jacobowitz <drow@mvista.com>
6071
6072 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6073 to read_reg and update its comment. Remove regnum member.
6074 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6075 Don't call read_reg when setting in_reg. Call read_reg to get
6076 the frame base if it's in a register. Return the register number
6077 on the stack instead of in the context. Remove extra arguments
6078 to read_reg.
6079 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6080 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6081 the register number on the expression stack.
6082 (needs_frame_read_reg): Remove extra arguments.
6083
0d53c4c4
DJ
60842003-04-13 Daniel Jacobowitz <drow@mvista.com>
6085
6086 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6087 made non-static.
6088 (execute_stack_op): All callers updated.
6089 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6090 * dwarf2loc.c (find_location_expression): New function.
6091 (dwarf_expr_frame_base): Call it.
6092 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6093 (dwarf2_tracepoint_var_ref): New function, broken out from
6094 locexpr_tracepoint_var_ref.
6095 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6096 Make static.
6097 (loclist_read_variable, loclist_read_needs_frame): New functions.
6098 (loclist_describe_location, loclist_tracepoint_var_ref): New
6099 functions.
6100 (dwarf2_loclist_funcs): New struct location_funcs.
6101 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6102 (struct dwarf2_locexpr_baton): Add comments.
6103 (dwarf2_loclist_funcs): New extern.
6104 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6105 base_address and base_known.
6106 (dwarf_loc_buffer): New variable.
6107 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6108 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6109 (dwarf2_has_info): Initialize dwarf_loc_offset.
6110 (dwarf2_build_psymtabs): Read in .debug_loc.
6111 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6112 DWARF_LOC_SIZE.
6113 (psymtab_to_symtab_1): Likewise. Move base address calculation
6114 here, from...
6115 (dwarf2_get_pc_bounds): ... here. Use the base address from
6116 cu_header.
6117 (dwarf2_symbol_mark_computed): Handle location lists.
6118
6aca59a3
DJ
61192003-04-13 Daniel Jacobowitz <drow@mvista.com>
6120
6121 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6122 if the linkage name demangled successfully.
6123
aca1fcd0
MK
61242003-04-13 Mark Kettenis <kettenis@gnu.org>
6125
97095916
MK
6126 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6127 disassmbly_flavour): Removed.
6128
aca1fcd0
MK
6129 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6130
562a961f
MK
61312003-04-13 Mark Kettenis <kettenis@gnu.org>
6132
6133 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6134
bd013d54
AC
61352003-04-12 Andrew Cagney <cagney@redhat.com>
6136
6137 * frame.h (struct frame_info): Move definition from here ...
6138 * frame.c (struct frame_info): ... to here.
6139
167ef8b1
AC
61402003-04-12 Andrew Cagney <cagney@redhat.com>
6141
6142 * gdbthread.h (save_infrun_state): Delete parameter
6143 "prev_func_start".
6144 (struct thread_info): Delete field "prev_func_start".
6145 (load_infrun_state): Ditto.
6146 * thread.c (load_infrun_state, save_infrun_state): Update.
6147 * infrun.c (prev_func_start): Delete variable.
6148 (context_switch, init_wait_for_inferior): Update.
6149 (stop_stepping, keep_going): Update.
6150
da3331ec
AC
61512003-04-12 Andrew Cagney <cagney@redhat.com>
6152
6153 * gdbarch.sh: Add missing opaque declarations.
6154 * gdbarch.h: Regnerate.
6155 * symtab.h: Add missing opaque declarations.
6156 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6157 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6158 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6159 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6160 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6161 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6162 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6163 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6164 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6165 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6166 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6167 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6168 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6169
18adea3f
AC
61702003-04-11 Andrew Cagney <cagney@redhat.com>
6171
6172 * frame.c (get_frame_id): Return this frame's "id".
6173 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6174 function start.
6175 (legacy_saved_regs_this_id): Replace function body with
6176 internal-error.
6177 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6178 FRAME_OBSTACK_ZALLOC.
6179 (create_new_frame): Mark the frame ID as valid.
6180
2252e863
AO
61812003-04-11 Alexandre Oliva <aoliva@redhat.com>
6182
6183 * Makefile.in (libbfd_h): Added missing setting.
6184 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6185 according to the selected ABI.
6186
a8245ab8
JJ
61872003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6188
6189 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6190
6913c89a
AC
61912003-04-11 Andrew Cagney <cagney@redhat.com>
6192
6193 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6194 SAVED_PC_AFTER_CALL.
6195 * gdbarch.h, gdbarch.c: Regenerate.
6196 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6197 * x86-64-tdep.c (x86_64_init_abi): Update.
6198 * vax-tdep.c (vax_gdbarch_init): Update.
6199 * v850-tdep.c (v850_gdbarch_init): Update.
6200 * sparc-tdep.c (sparc_gdbarch_init): Update.
6201 * sh-tdep.c (sh_gdbarch_init): Update.
6202 * s390-tdep.c (s390_gdbarch_init): Update.
6203 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6204 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6205 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6206 * mips-tdep.c (mips_gdbarch_init): Update.
6207 * mcore-tdep.c (mcore_gdbarch_init): Update.
6208 * m68k-tdep.c (m68k_gdbarch_init): Update.
6209 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6210 * ia64-tdep.c (ia64_gdbarch_init): Update.
6211 (ia64_saved_pc_after_call): Update declaration.
6212 * i386ly-tdep.c (i386lynx_init_abi): Update.
6213 * i386-tdep.c (i386_gdbarch_init): Update.
6214 * hppa-tdep.c (hppa_gdbarch_init): Update.
6215 * h8300-tdep.c (h8300_gdbarch_init): Update.
6216 * frv-tdep.c (frv_gdbarch_init): Update.
6217 * cris-tdep.c (cris_gdbarch_init): Update.
6218 * avr-tdep.c (avr_gdbarch_init): Update.
6219 * arm-tdep.c (arm_gdbarch_init): Update.
6220 * alpha-tdep.c (alpha_gdbarch_init): Update.
6221 * ns32knbsd-nat.c (frame_num_args): Update.
6222 * ns32k-tdep.c (umax_frame_num_args): Update.
6223 * mips-tdep.c (mips_init_frame_pc_first): Update.
6224 * infrun.c (step_over_function): Update.
6225 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6226 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6227 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6228 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6229 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6230 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6231 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6232 * arch-utils.c (init_frame_pc_default): Update.
6233 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6234 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6235 declaration.
8ffd9b1b 6236
38edeab8
AC
62372003-04-11 Andrew Cagney <cagney@redhat.com>
6238
6239 * i387-tdep.c: Update copyright.
6240 (i387_to_double): Delete function.
6241 (double_to_i387): Delete function.
6242
81f8a206
AC
62432003-04-10 Andrew Cagney <cagney@redhat.com>
6244
6245 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6246 frame's function's address. Simplify.
6247 (d10v_frame_unwind_cache): Check that the frame's function is
6248 non-zero.
6249
6e691f7a
JB
62502003-04-10 Jim Blandy <jimb@redhat.com>
6251
6252 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6253 call to set_gdbarch_deprecated_push_arguments.
6254
7f78e237
AC
62552003-04-10 Andrew Cagney <cagney@redhat.com>
6256
6257 * frame.c (fprint_frame_id): New function.
6258 (fprint_frame_type, fprint_frame): New function.
6259 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6260 (create_sentinel_frame, get_frame_id): Ditto.
6261 (frame_id_p, frame_id_eq): Ditto.
6262 (frame_id_inner, create_new_frame): Ditto.
6263 (legacy_get_prev_frame, get_prev_frame): Ditto.
6264 (deprecated_update_frame_pc_hack): Ditto.
6265 (frame_register_unwind): Ditto.
6266 (deprecated_update_frame_base_hack): Ditto.
6267
f870b49b
CV
62682003-04-10 Corinna Vinschen <vinschen@redhat.com>
6269
6270 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6271 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6272 frame_chain function.
6273 * Makefile.in: Add dependencies due to above change.
6274
7c86889b
CV
62752003-04-10 Corinna Vinschen <vinschen@redhat.com>
6276
6277 * blockframe.c (legacy_frame_chain_valid): Move call to
6278 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6279 inside_entry_file.
6280
d0a55772
AC
62812003-04-09 Andrew Cagney <cagney@redhat.com>
6282
6283 * frame.h (struct frame_id): Replace "pc" and "base" with
6284 "stack_addr" and "code_addr". Update comments.
6285 (frame_id_build): Update parameter names and comment.
6286 (struct frame_info): Replace "id_p" and "id" with "this_id".
6287 * dummy-frame.c (dummy_frame_this_id): Update.
6288 * breakpoint.c (print_one_breakpoint): Update.
6289 * frame.c (get_frame_id): Update.
6290 (get_frame_base, frame_id_build): Update.
6291 (create_sentinel_frame, legacy_get_prev_frame): Update.
6292 (deprecated_update_frame_base_hack): Update.
6293 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6294 (frame_id_inner): Ditto.
6295
ac16bf07
AC
62962003-04-09 Andrew Cagney <cagney@redhat.com>
6297
6298 * defs.h (gdb_print_host_address): Make "addr" parameter a
6299 pointer constant.
6300 * utils.c (gdb_print_host_address): Update.
6301
366cfc9e
KB
63022003-04-09 Kevin Buettner <kevinb@redhat.com>
6303
6304 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6305 register number for R0 is 0.
6306
cd983b5c
JB
63072003-04-09 J. Brobecker <brobecker@gnat.com>
6308
6309 * frame.h (struct gdbarch): Add opaque structure definition
6310 to avoid a compilation warning on LynxOS 4.0.
6311
d1340264
AC
63122003-04-09 Andrew Cagney <cagney@redhat.com>
6313
6314 * frame.h (struct frame_info): Delete field "pc". Replace
6315 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6316 structure.
6317 * frame.c (frame_pc_unwind): Update.
6318 (create_sentinel_frame): Do not set "pc".
6319 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6320 (get_frame_pc): Call frame_pc_unwind.
6321 (deprecated_update_frame_pc_hack): Update.
6322 (create_new_frame): Use "pc" not "->pc".
6323
90a6fffb
AC
63242003-04-09 Andrew Cagney <cagney@redhat.com>
6325
6326 * frame.c (get_frame_id): Eliminate code updating "frame".
6327 (legacy_get_prev_frame): Ditto.
6328 (get_frame_base): Return id.base directly.
6329 (deprecated_update_frame_base_hack): Update "id.base".
6330 * frame.h (struct frame_info): Delete field "frame".
6331
2fbce691
AC
63322003-04-09 Andrew Cagney <cagney@redhat.com>
6333
6334 * NEWS: Mention that the "Sequent family" is obsolete.
6335 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6336 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6337 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6338 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6339 * config/i386/tm-ptx4.h: Obsolete file.
6340 * config/i386/tm-ptx.h: Obsolete file.
6341 * symm-tdep.c: Obsolete file.
6342 * config/i386/symmetry.mt: Obsolete file.
6343 * config/i386/tm-symmetry.h: Obsolete file.
6344 * symm-nat.c: Obsolete file.
6345 * config/i386/nm-symmetry.h: Obsolete file.
6346 * config/i386/xm-symmetry.h: Obsolete file.
6347 * config/i386/symmetry.mh: Obsolete file.
6348 * config/i386/nm-ptx4.h: Obsolete file.
6349 * config/i386/ptx4.mh: Obsolete file.
6350 * config/i386/ptx.mt: Obsolete file.
6351 * config/i386/ptx.mh: Obsolete file.
6352 * config/i386/xm-ptx4.h: Obsolete file.
6353 * config/i386/xm-ptx.h: Obsolete file.
6354
78c43945
AC
63552003-04-09 Andrew Cagney <cagney@redhat.com>
6356
6357 Obsolete mips*-*-mach3*.
6358 * NEWS: Mention that mips*-*-mach3* is obsolete.
6359 * m3-nat.c: Obsolete file.
6360 * config/nm-m3.h: Obsolete file.
6361 * config/mips/tm-mipsm3.h: Obsolete file.
6362 * config/mips/mipsm3.mt: Obsolete file.
6363 * config/mips/mipsm3.mh: Obsolete file.
6364 * config/mips/xm-mipsm3.h: Obsolete file.
6365 * mipsm3-nat.c: Obsolete file.
6366 * configure.host: Obsolete mips-dec-mach3*.
6367 * configure.tgt: Obsolete mips*-*-mach3*.
6368
f1908289
AC
63692003-04-09 Andrew Cagney <cagney@redhat.com>
6370
6371 * doublest.h: Update copyright.
6372 (deprecated_store_floating, deprecated_extract_floating): Rename
6373 store_floating and extract_floating. Update comments.
6374 * doublest.c: Update copyright.
6375 (extract_floating_by_length): Replace extract_floating.
6376 (store_floating_by_length): Replace store_floating.
6377 (deprecated_extract_floating): New function.
6378 (deprecated_store_floating): New function.
6379 (extract_typed_floating): Call extract_floating_by_length.
6380 (store_typed_floating): Call store_floating_by_length.
6381 * x86-64-tdep.c (x86_64_store_return_value): Update.
6382 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6383 (sh64_extract_return_value): Update.
6384 (sh_sh4_register_convert_to_virtual): Update.
6385 (sh_sh64_register_convert_to_virtual): Update.
6386 (sh_sh4_register_convert_to_raw): Update.
6387 (sh_sh64_register_convert_to_raw): Update.
6388 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6389 (rs6000_register_convert_to_raw): Update.
6390 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6391 (ia64_register_convert_to_raw): Update.
6392 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6393 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6394 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6395 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6396 (alpha_register_convert_to_raw): Update.
6397
4443bd83
AC
63982003-04-08 Andrew Cagney <cagney@redhat.com>
6399
6400 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6401 * gdbarch.h, gdbarch.c: Re-generate.
6402 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6403 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6404 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6405 conditionally, use frame_pc_unwind as an alternative. Add
6406 comments.
6407 * arch-utils.c (init_frame_pc_default): Only call
6408 SAVED_PC_AFTER_CALL when available.
6409
c0236d92
EZ
64102003-04-08 Elena Zannoni <ezannoni@redhat.com>
6411
fbe586ae 6412 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
6413 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6414 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6415 (start_remote): Ditto.
6416 (handle_inferior_event): Ditto.
6417 (save_inferior_status): Ditto.
6418 (restore_inferior_status): Ditto.
6419 * infcmd.c (attach_command): Ditto.
6420 * fork-child.c (startup_inferior): Ditto.
fbe586ae 6421 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
6422 * alpha-tdep.c (heuristic_proc_start): Ditto.
6423 * mips-tdep.c (heuristic_proc_start): Ditto.
6424 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6425 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6426 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6427 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6428 * remote-vx.c (vx_create_inferior): Ditto.
6429
64302003-04-08 Elena Zannoni <ezannoni@redhat.com>
6431
6432 * infrun.c (stop_soon_quietly): Make it an enum, to better
6433 override the default behavior of handle_inferior_event.
6434 (clear_proceed_status): Update uses of stop_soon_quietly to
6435 reflect that it is now an enum.
6436 (start_remote): Ditto.
6437 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6438 is set to handle the new GNU/Linux kernel behavior for
6439 attach/sigstop. Update uses of stop_soon_quietly.
6440 * inferior.h (enum stop_kind): New enum.
6441 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6442 Reset normal handle_inferior_event behavior, afterwards.
6443 * fork-child.c (startup_inferior): Update.
6444 * alpha-tdep.c (heuristic_proc_start): Update.
6445 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6446 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6447 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6448 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6449 * remote-vx.c (vx_create_inferior): Update.
6450 * mips-tdep.c (heuristic_proc_start): Update.
6451
1211bce3
EZ
64522003-04-07 Elena Zannoni <ezannoni@redhat.com>
6453
6454 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 6455 be freed more than once, causing wild memory corruptions.
1211bce3 6456 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 6457 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 6458 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 6459 with the "core" target.
1211bce3 6460
f0ef6b29
KB
64612003-04-07 Kevin Buettner <kevinb@redhat.com>
6462
6463 * mips-tdep.c (mips_print_fp_register): New function, created from
6464 do_fp_register_row(). Registers are now (also) printed as hex.
6465 Only one register is printed per row.
6466 (mips_print_register, do_fp_register_row): Print floating point
6467 registers with mips_print_fp_register().
6468
8cf71652
AC
64692003-04-06 Andrew Cagney <cagney@redhat.com>
6470
5e488a7b
AC
6471 * valprint.h (inspect_it): Add extern declaration.
6472 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6473 (selectors_info, classes_info): Ditto.
6474 (find_objc_msgcall): Fix indentation.
6475 (objc_printstr): Delete extern declarations.
6476
8cf71652
AC
6477 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6478
e6ba3bc9
AC
64792003-04-06 Andrew Cagney <cagney@redhat.com>
6480
6481 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6482 Update comment.
6483 * frame.c (legacy_saved_regs_this_id): Update.
6484 (legacy_get_prev_frame): Update.
6485 * xstormy16-tdep.c: Update comment.
6486 * sparc-tdep.c (sparc_frame_chain): Update comment.
6487 * blockframe.c (legacy_frame_chain_valid): Update.
6488
55e1d7e7
AC
64892003-04-06 Andrew Cagney <cagney@redhat.com>
6490
996179ee
AC
6491 * valprint.c (val_print_type_code_int): Delete #ifdef
6492 PRINT_TYPELESS_INTEGER code.
6493
55e1d7e7
AC
6494 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6495 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6496 multi-arch definition.
6497 * gdbarch.h: Re-generate.
6498
43bd9a9e
AC
64992003-04-05 Andrew Cagney <cagney@redhat.com>
6500
6501 Eliminate FRAME_FIND_SAVED_REGS.
6502 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6503 Change FSR parameter to a pointer.
6504 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6505 Assume FSR parameter is a pointer.
6506 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6507 Make fsr a pointer.
6508 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6509 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6510 saved_regs a pointer.
6511 (hppa_frame_saved_pc): Ditto.
6512 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6513 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6514 pointer.
6515 (restore_pc_queue): Make fsr a pointer.
6516 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6517 (hppa_frame_chain): Make saved_regs a pointer, call
6518 hppa_frame_init_saved_regs.
6519 * sparc-tdep.c: Include "gdb_assert.h".
6520 (sparc_frame_find_saved_regs): Replace internal_error with
6521 gdb_assert.
6522 * remote-vxsparc.c (vx_read_register): Delete reference to
6523 FRAME_FIND_SAVED_REGS.
6524 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6525 * gdbarch.h: Regenerate.
6526 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6527 (deprecated_get_frame_saved_regs): Delete declaration.
6528 (struct frame_saved_regs): Delete definition.
6529 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6530 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6531 (hppa_frame_find_saved_regs): Delete declaration.
6532 (FRAME_FIND_SAVED_REGS): Delete macro.
6533 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6534 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6535 FRAME_FIND_SAVED_REGS in comment.
6536
be41e9f4
AC
65372003-04-05 Andrew Cagney <cagney@redhat.com>
6538
6539 * frame.c (frame_func_unwind, get_frame_func): New functions.
6540 * frame.h (get_frame_func, frame_func_unwind): Declare.
6541 (struct frame_info): Add field "prev_func" for caching the
6542 previous frame's function address.
6543 * arm-tdep.c (arm_frameless_function_invocation): Combine
6544 get_pc_function_start and get_frame_pc into get_frame_func.
6545 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6546 (sh64_nofp_frame_init_saved_regs): Ditto.
6547 * s390-tdep.c (s390_function_start): Ditto.
6548 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6549 (rs6000_frameless_function_invocation): Ditto.
6550 (rs6000_frame_saved_pc): Ditto.
6551 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6552 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6553 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6554 (i386_frame_init_saved_regs): Ditto.
6555 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6556 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6557 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6558 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6559 * blockframe.c (frameless_look_for_prologue): Ditto.
6560
a01dd7cc
AC
65612003-04-05 Andrew Cagney <cagney@redhat.com>
6562
6563 * frame.c (legacy_get_prev_frame): Link prev to next at the
6564 function start. Update comments.
6565
5e5592e6
AC
65662003-04-05 Andrew Cagney <cagney@redhat.com>
6567
6568 * frame.c (get_frame_id): Update comment.
6569 (legacy_get_prev_frame): Update comment.
6570 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6571 * gdbarch.h: Regenerate.
6572 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6573 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6574
6fba5002
AC
65752003-04-05 Andrew Cagney <cagney@redhat.com>
6576
6577 * stack.c (print_frame_info): Use get_frame_pc.
6578
7df05f2b
AC
65792003-04-04 Andrew Cagney <cagney@redhat.com>
6580
6581 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6582 the frame's type from the unwinder.
6583 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6584 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6585 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6586 (get_frame_base_address): Use get_frame_type.
6587 (get_frame_locals_address, get_frame_args_address): Ditto.
6588 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6589 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6590 (struct frame_info): Add comment explaining why the frame contains
6591 a "type" field.
6592 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6593 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6594 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6595 NORMAL_FRAME.
6596 * frame-unwind.h: Include "frame.h".
6597 (struct frame_unwind): Add "type" field.
6598 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 6599
11889732
AC
66002003-04-04 Andrew Cagney <cagney@redhat.com>
6601
6602 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6603 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6604 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6605 get_frame_base.
6606 (d10v_unwind_dummy_id): Use frame_id_build.
6607 * frame.c (find_frame_sal): Use get_frame_pc.
6608 (create_new_frame): Use deprecated_update_frame_pc_hack and
6609 deprecated_update_frame_base_hack.
6610 (create_sentinel_frame): Add comment about ->pc going away.
6611 (get_prev_frame): Add comment about ->pc going away.
6612 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6613 frame_id_build, deprecated_update_frame_pc_hack and
6614 deprecated_update_frame_base_hack.
6615 (select_frame): Use get_frame_pc.
6616 (legacy_saved_regs_this_id): Use frame_id_build.
6617
50c46a0d
EZ
66182003-04-04 Elena Zannoni <ezannoni@redhat.com>
6619
fbe586ae
RH
6620 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6621 signed integer case.
6622 (classify_argument): Handle enumerations and references.
50c46a0d 6623
50bbdbd9
AC
66242003-04-04 Andrew Cagney <cagney@redhat.com>
6625
6626 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6627 ID to NULL.
6628
36018d2e
AF
66292003-04-01 Adam Fedor <fedor@gnu.org>
6630
6631 * gdb/objc-lang.c (selectors_info): Replace calls to
6632 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6633 SYMBOL_NATURAL_NAME.
6634 (classes_info, find_methods): Likewise.
6635
35cec841
KB
66362003-04-03 Kevin Buettner <kevinb@redhat.com>
6637
6638 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6639 ``mach'' to the value determined by bfd_default_set_arch_mach().
6640
43136899
BR
66412003-04-02 Bob Rossi <bob_rossi@cox.net>
6642
6643 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6644 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6645 (mi-cmd-file.o): Update dependencies.
6646
040b99fd
KB
66472003-04-01 Kevin Buettner <kevinb@redhat.com>
6648
6649 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6650 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6651
9a3d7dfd
AF
66522003-04-01 Adam Fedor <fedor@gnu.org>
6653
6654 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6655 * language.h (struct language_defn): Add la_demangle.
6656 (language_demangle): Declare.
6657 * language.c (language_demangle): New function.
6658 (unk_lang_demangle): Likewise.
6659 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 6660 Add ukn_lang_demangle.
9a3d7dfd 6661 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 6662 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
6663 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6664 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6665 * jv-lang.c (java_demangle): New function
6666 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
6667 * objc-lang.c (objc_demangle): Add options argument
6668 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
6669 * maint.c (maintenance_demangle): Replace switch with
6670 call to language_demangle.
6671 * utils.c (fprintf_symbol_filtered): Likewise.
6672
5e074003
AC
66732003-04-01 Andrew Cagney <cagney@redhat.com>
6674
6675 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6676 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6677 PRINT_TYPELESS_INTEGER.
6678 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6679 PUSH_RETURN_ADDRESS.
6680
270cb5d6
AC
66812003-04-01 Andrew Cagney <cagney@redhat.com>
6682
6683 * Makefile.in (d10v-tdep.o): Update dependencies.
6684 * d10v-tdep.c: Include "frame-base.h".
6685 (d10v_frame_unwind): Make constant.
6686 (d10v_frame_base_address): New function.
6687 (d10v_frame_base): New variable.
6688 (d10v_gdbarch_init): Set frame_base default.
6689 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6690 comment for base.
6691 (d10v_frame_unwind_cache): Set and use "prev_sp".
6692 (d10v_frame_this_id): Use the previous frame's inner most stack
6693 address and this frame's func address for the frame ID. Use
6694 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 6695
6bfb3e36
AC
66962003-04-01 Andrew Cagney <cagney@redhat.com>
6697
6698 * frame.h (get_frame_locals_address, get_frame_args_address):
6699 Refer to the base address, instead of the address of the first
6700 local or parameter.
8ffd9b1b 6701
da62e633
AC
67022003-04-01 Andrew Cagney <cagney@redhat.com>
6703
6704 Add frame debug info addresses:
6705 * frame-base.c: New file.
6706 * frame-base.h: New file.
6707 * frame.h (struct frame_base): Add opaque declaration.
6708 (get_frame_base): Update comment.
6709 (get_frame_base_address): Declare.
6710 (get_frame_locals_address): Declare.
6711 (get_frame_args_address): Declare.
6712 (struct frame_info): Add "base" and "base_cache". Update
6713 comments on the unwinder.
6714 * frame.c: Include "frame-base.h".
6715 (get_frame_locals_address): New function.
6716 (get_frame_base_address): New function.
6717 (get_frame_args_address): New function.
6718 * findvar.c (read_var_value): Use get_frame_locals_address and
6719 get_frame_args_address.
6720 * stack.c (frame_info): Use get_frame_locals_address and
6721 get_frame_args_address.
6722 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6723 moved to "frame-base.c".
6724 * printcmd.c (print_frame_nameless_args): Ditto.
6725 * symtab.h (address_class): Update comments.
6726 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6727 get_frame_base_address.
6728 * dwarf2expr.c (execute_stack_op): Ditto.
6729 * Makefile.in (frame_base_h): Define.
6730 (frame.o): Update dependencies.
6731 (frame-base.o): Add dependencies.
6732 (SFILES): Add frame-base.c.
6733 (COMMON_OBS): Add frame-base.o.
6734
3d30e9c2
AC
67352003-04-01 Andrew Cagney <cagney@redhat.com>
6736
6737 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6738 CALL_DUMMY_LENGTH): Ditto.
6739 * gdbarch.c: Re-generate.
6740 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6741 (CALL_DUMMY_LENGTH): Delete macro.
6742 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6743 * arm-tdep.c (arm_gdbarch_init): Ditto.
6744 * avr-tdep.c (avr_gdbarch_init): Ditto.
6745 * cris-tdep.c (cris_gdbarch_init): Ditto.
6746 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6747 * frv-tdep.c (frv_gdbarch_init): Ditto.
6748 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6749 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6750 * i386-tdep.c (i386_gdbarch_init): Ditto.
6751 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6752 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6753 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6754 * mips-tdep.c (mips_gdbarch_init): Ditto.
6755 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6756 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6757 * s390-tdep.c (s390_gdbarch_init): Ditto.
6758 * sh-tdep.c (sh_gdbarch_init): Ditto.
6759 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6760 * v850-tdep.c (v850_gdbarch_init): Ditto.
6761 * vax-tdep.c (vax_gdbarch_init): Ditto.
6762 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6763
ce0c7262
CV
67642003-04-01 Corinna Vinschen <vinschen@redhat.com>
6765
6766 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6767
73dd234f
AC
67682003-04-01 Andrew Cagney <cagney@redhat.com>
6769
6770 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6771 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6772 * gdbarch.h, gdbarch.c: Re-generate.
6773 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6774 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6775 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6776 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6777 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6778 * infcmd.c (run_stack_dummy): Simplify assuming
6779 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6780 * infrun.c (handle_inferior_event): Ditto.
6781 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6782 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6783 * arm-tdep.c (arm_gdbarch_init): Ditto.
6784 * avr-tdep.c (avr_gdbarch_init): Ditto.
6785 * cris-tdep.c (cris_gdbarch_init): Ditto.
6786 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6787 * frv-tdep.c (frv_gdbarch_init): Ditto.
6788 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6789 * i386-tdep.c (i386_gdbarch_init): Ditto.
6790 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6791 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6792 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6793 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6794 * mips-tdep.c (mips_gdbarch_init): Ditto.
6795 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6796 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6797 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6798 * s390-tdep.c (s390_gdbarch_init): Ditto.
6799 * sh-tdep.c (sh_gdbarch_init): Ditto.
6800 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6801 * v850-tdep.c (v850_gdbarch_init): Ditto.
6802 * vax-tdep.c (vax_gdbarch_init): Ditto.
6803 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6804
97606a13
DJ
68052003-04-01 Daniel Jacobowitz <drow@mvista.com>
6806
6807 * symfile.c (symfile_relocate_debug_section): Update call to
6808 bfd_simple_get_relocated_section_contents.
6809
e8ab51f7
AC
68102003-03-31 Andrew Cagney <cagney@redhat.com>
6811
6812 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6813 * gdbarch.h, gdbarch.c: Regenerate.
6814 * inferior.h (FIX_CALL_DUMMY): Delete macro.
6815 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
6816 available.
6817 * frame.h (generic_fix_call_dummy): Delete declaration.
6818 * dummy-frame.h: Update comment.
6819 * dummy-frame.c (generic_fix_call_dummy): Delete function.
6820 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6821 fix_call_dummy.
6822 * sh-tdep.c (sh_gdbarch_init): Ditto.
6823 * s390-tdep.c (s390_gdbarch_init): Ditto.
6824 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6825 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6826 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6827 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6828 * i386-tdep.c (i386_gdbarch_init): Ditto.
6829 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6830 * frv-tdep.c (frv_gdbarch_init): Ditto.
6831 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6832 * cris-tdep.c (cris_gdbarch_init): Ditto.
6833 * avr-tdep.c (avr_gdbarch_init): Ditto.
6834 * arm-tdep.c (arm_gdbarch_init): Ditto.
6835
018d1b48
JB
68362003-03-31 J. Brobecker <brobecker@gnat.com>
6837
6838 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
6839 (INIT_FRAME_AP): Likewise.
6840 (EXTRA_FRAME_INFO): Likewise.
6841
e9a2674e
AC
68422003-03-31 Andrew Cagney <cagney@redhat.com>
6843
6844 * gdbarch.sh: Include "symfile.h".
6845 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
6846 * gdbarch.h, gdbarch.c: Re-generate.
6847 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
6848 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6849 call_dummy_address, the default is at entry_point_address.
6850 * v850-tdep.c (v850_gdbarch_init): Ditto.
6851 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6852 * sh-tdep.c (sh_gdbarch_init): Ditto.
6853 * s390-tdep.c (s390_gdbarch_init): Ditto.
6854 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6855 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6856 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6857 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6858 * i386-tdep.c (i386_gdbarch_init): Ditto.
6859 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6860 * frv-tdep.c (frv_gdbarch_init): Ditto.
6861 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6862 * cris-tdep.c (cris_gdbarch_init): Ditto.
6863 * arm-tdep.c (arm_gdbarch_init): Ditto.
6864
e8a8712a
AC
68652003-03-31 Andrew Cagney <cagney@redhat.com>
6866
6867 * gdbarch.sh (CALL_DUMMY_P): Delete.
6868 * gdbarch.h, gdbarch.c: Re-generate.
6869 * inferior.h (CALL_DUMMY_P): Delete macro.
6870 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6871 * vax-tdep.c (vax_gdbarch_init): Update.
6872 * v850-tdep.c (v850_gdbarch_init): Update.
6873 * sparc-tdep.c (sparc_gdbarch_init): Update.
6874 * sh-tdep.c (sh_gdbarch_init): Update.
6875 * s390-tdep.c (s390_gdbarch_init): Update.
6876 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6877 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6878 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6879 * mips-tdep.c (mips_gdbarch_init): Update.
6880 * mcore-tdep.c (mcore_gdbarch_init): Update.
6881 * m68k-tdep.c (m68k_gdbarch_init): Update.
6882 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6883 * ia64-tdep.c (ia64_gdbarch_init): Update.
6884 * i386-tdep.c (i386_gdbarch_init): Update.
6885 * h8300-tdep.c (h8300_gdbarch_init): Update.
6886 * frv-tdep.c (frv_gdbarch_init): Update.
6887 * d10v-tdep.c (d10v_gdbarch_init): Update.
6888 * cris-tdep.c (cris_gdbarch_init): Update.
6889 * breakpoint.c (deprecated_frame_in_dummy): Update.
6890 * avr-tdep.c (avr_gdbarch_init): Update.
6891 * alpha-tdep.c (alpha_gdbarch_init): Update.
6892 * arm-tdep.c (arm_gdbarch_init): Update.
6893 * dummy-frame.c (dummy_frame_this_id): Update comments.
6894 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
6895 * frame.c (legacy_get_prev_frame): Ditto.
6896 * valops.c (call_function_by_hand): Delete function.
6897 (hand_function_call): Rename to call_function_by_hand
6898
ed234cf8
AC
68992003-03-30 Andrew Cagney <cagney@redhat.com>
6900
6901 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 6902 * value.h (struct value): Update comment.
ed234cf8 6903
06c77151
AC
69042003-03-30 Andrew Cagney <cagney@redhat.com>
6905
6c2b5168
AC
6906 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
6907 D10V_FP_REGNUM.
6908 (d10v_gdbarch_init): Do not set fp_regnum.
6909
06c77151
AC
6910 * frame.c (get_frame_base): Force ID initialization.
6911 (get_prev_frame): Move computation of the frame ID from here ...
6912 (get_frame_id): ... to here.
6913 (legacy_get_prev_frame): Mark the frame ID as valid.
6914 * frame.h (struct frame_info): Add field "id_p".
6915
97a1a11c
MK
69162003-03-30 Mark Kettenis <kettenis@gnu.org>
6917
6918 * i386-tdep.c (i386_store_struct_return): Removed.
6919 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
6920
6c0e89ed
AC
69212003-03-30 Andrew Cagney <cagney@redhat.com>
6922
6923 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
6924 * gdbarch.h, gdbarch.c: Regenerate.
6925 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
6926 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6927 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6928 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6929 * i386-tdep.c (i386_gdbarch_init): Ditto.
6930 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6931 * cris-tdep.c (cris_gdbarch_init): Ditto.
6932 * vax-tdep.c (vax_gdbarch_init): Ditto.
6933 * s390-tdep.c (s390_gdbarch_init): Ditto.
6934 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6935 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6936 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6937 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
6938 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6939 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
6940 * sparc-tdep.c (sparc_gdbarch_init): Update.
6941 * sh-tdep.c (sh_gdbarch_init): Update.
6942 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6943 * mips-tdep.c (mips_gdbarch_init): Update.
6944 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6945 * ia64-tdep.c (ia64_gdbarch_init): Update.
6946 * frv-tdep.c (frv_gdbarch_init): Update.
6947 * avr-tdep.c (avr_gdbarch_init): Update.
6948 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
6949 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
6950 instead of when push_dummy_call is not available.
8ffd9b1b 6951
f7dd6af2
AC
69522003-03-30 Andrew Cagney <cagney@redhat.com>
6953
6954 * infttrace.c: Include "gdbthread.h".
6955 (parent_attach_all): Fix function signature.
6956 (call_ptrace): Update call.
6957 * Makefile.in (infttrace.o): Update dependencies.
6958
28f617b3
AC
69592003-03-30 Andrew Cagney <cagney@redhat.com>
6960
6961 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
6962 PUSH_RETURN_ADDRESS.
6963 * gdbarch.h, gdbarch.c: Regenerate.
6964 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6965 * x86-64-tdep.c (x86_64_init_abi): Update.
6966 * v850-tdep.c (v850_gdbarch_init): Update.
6967 * sparc-tdep.c (sparc_gdbarch_init): Update.
6968 * sh-tdep.c (sh_gdbarch_init): Update.
6969 * s390-tdep.c (s390_gdbarch_init): Update.
6970 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6971 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6972 * mips-tdep.c (mips_gdbarch_init): Update.
6973 * mcore-tdep.c (mcore_gdbarch_init): Update.
6974 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6975 * ia64-tdep.c (ia64_gdbarch_init): Update.
6976 * i386-tdep.c (i386_gdbarch_init): Update.
6977 * h8300-tdep.c (h8300_gdbarch_init): Update.
6978 * frv-tdep.c (frv_gdbarch_init): Update.
6979 * cris-tdep.c (cris_gdbarch_init): Update.
6980 * avr-tdep.c (avr_gdbarch_init): Update.
6981 * arm-tdep.c (arm_gdbarch_init): Update.
6982 * valops.c (hand_function_call): Update.
6983
4d628cd7
AC
69842003-03-29 Andrew Cagney <cagney@redhat.com>
6985
6986 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
6987 sizeof_call_dummy_words.
6988 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
6989 define.
6990 * gdbarch.h: Regenerate.
8ffd9b1b 6991
65e82032
AC
69922003-03-29 Andrew Cagney <cagney@redhat.com>
6993
6994 * infttrace.h: New file.
6995 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
6996 (hpread_get_textlow): Detect an uninitialized dn_bufp.
6997 (hpread_read_doc_function_type): Detect an initialized type1.
6998 (hpread_quick_traverse): Initialize mod_name_string.
6999 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7000 (som_solib_get_solib_by_pc): Declare.
7001 (so_lib_thread_start_addr): Declare.
7002 (no_shared_libraries): Declare.
7003 * somread.c (init_import_symbols): Make static. Add forward
7004 declaration.
7005 * config/pa/nm-hppah.h: Include "infttrace.h" for
7006 parent_attach_all.
7007 (hppa_insert_hw_watchpoint): Declare.
7008 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7009 * hppah-nat.c: Include "gdb_string.h".
7010 (parent_attach_all): Delete extern declaration, moved to
7011 "infttrace.h".
7012 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7013 int.
7014 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7015 * Makefile.in (infttrace_h): Define.
7016 (hpread.o): Update dependencies.
7017 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7018 * hppa-hpux-tdep.c: Include "gdb_string.h".
7019 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7020 * infrun.c (handle_inferior_event): Always initialize
7021 stepped_after_stopped_by_watchpoint. Add default and remove
7022 fallthrough in switch statement.
7023 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7024 parameter to int.
7025 (hppa_remove_hw_watchpoint): Ditto.
7026
2c3bbe77
AC
70272003-03-29 Andrew Cagney <cagney@redhat.com>
7028
7029 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7030 offset.
7031
2dd604e7
RE
70322003-03-29 Richard Earnshaw <rearnsha@arm.com>
7033
7034 * arm-tdep.c (arm_push_arguments): Delete.
7035 (struct stack_item): New type.
7036 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7037 (arm_store_struct_return): Delte.
7038 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7039 arm_push_arguments or arm_store_struct_return.
7040
e8933a55
AC
70412003-03-28 Andrew Cagney <cagney@redhat.com>
7042
7043 * Makefile.in (d10v-tdep.o): Update dependencies.
7044 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7045 * d10v-tdep.c: Include "remote.h".
7046 (target_resume_hook): Delete extern declaration.
7047 (target_wait_loop_hook): Ditto.
7048 (tdisassemble_command): Eliminate assignment in "if" conditional.
7049 (d10v_ts2_register_sim_regno): Eliminate call to
7050 legacy_register_sim_regno.
7051 (d10v_ts3_register_sim_regno): Ditto.
7052
6949171e
JJ
70532003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7054
7055 * thread.c: Reindented.
7056 * lin-lwp.c: Ditto.
7057 * linux-proc.c: Ditto.
7058
98c7071f
BR
70592003-03-28 Bob Rossi <bob_rossi@cox.net>
7060
fbe586ae 7061 * MAINTAINERS (write after approval): Add myself.
98c7071f 7062
5edc9ca6
TR
70632003-03-27 Theodore A. Roth <troth@openavr.org>
7064
7065 * objc-exp.y: Add missing semi-colons.
7066
378bfd1b
AC
70672003-03-27 Andrew Cagney <cagney@redhat.com>
7068
7069 * regcache.c (write_sp): Delete function and references.
7070 * inferior.h (write_sp): Delete declaration.
7071 * valops.c (hand_function_call): Replace write_sp with
7072 TARGET_WRITE_SP.
7073 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7074 (sparc_pop_frame): Ditto.
8ffd9b1b 7075
56056df7
AC
70762003-03-27 Andrew Cagney <cagney@redhat.com>
7077
7078 * NEWS: Mention removal of support for hppa*-*-bsd* and
7079 hppa*-*-osf* natives, and hppa*-*-pro* target.
7080 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7081 * config/pa/xm-pa.h: Obsolete file.
7082 * config/pa/xm-hppab.h: Obsolete file.
7083 * config/pa/nm-hppab.h: Obsolete file.
7084 * config/pa/tm-hppab.h: Obsolete file.
7085 * config/pa/tm-hppao.h: Obsolete file.
7086 * config/pa/nm-hppao.h: Obsolete file.
7087 * config/pa/tm-pro.h: Obsolete file.
7088 * config/pa/hppaosf.mt: Obsolete file.
7089 * config/pa/hppaosf.mh: Obsolete file.
7090 * config/pa/hppapro.mt: Obsolete file.
7091 * config/pa/hppabsd.mt: Obsolete file.
7092 * config/pa/hppabsd.mh: Obsolete file.
7093 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7094 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7095 hppa*-*-osf*.
7096
5873a88d
AC
70972003-03-27 Andrew Cagney <cagney@redhat.com>
7098
7099 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7100 push_arguments. Don't set push_return_address or write_sp.
7101 (d10v_push_dummy_call): Replace d10v_push_arguments.
7102 (d10v_push_return_address, d10v_write_sp): Delete function,
7103 handled by push_dummy_call.
7104
b81774d8
AC
71052003-03-26 Andrew Cagney <cagney@redhat.com>
7106
7107 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7108 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7109 regcache and dummy_addr parameters.
7110 * gdbarch.h, gdbarch.c: Re-generate.
7111 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7112 available; assume it will handle stack alignment and return
7113 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7114 legacy_push_arguments.
7115 (legacy_push_arguments): Rename default_push_arguments.
7116 * value.h (legacy_push_arguments): Rename default_push_arguments.
7117 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7118 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7119 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7120 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7121 * config/i386/tm-symmetry.h: Update.
7122 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7123 * x86-64-tdep.c (x86_64_init_abi): Update.
7124 * v850-tdep.c (v850_gdbarch_init): Update.
7125 * sparc-tdep.c (sparc_gdbarch_init): Update.
7126 * sh-tdep.c (sh_gdbarch_init): Update.
7127 * s390-tdep.c (s390_gdbarch_init): Update.
7128 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7129 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7130 * mips-tdep.c (mips_gdbarch_init): Update.
7131 * mcore-tdep.c (mcore_gdbarch_init): Update.
7132 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7133 * ia64-tdep.c (ia64_gdbarch_init): Update.
7134 * i386-tdep.c (i386_gdbarch_init): Update.
7135 * hppa-tdep.c (hppa_gdbarch_init): Update.
7136 * h8300-tdep.c (h8300_gdbarch_init): Update.
7137 * frv-tdep.c (frv_gdbarch_init): Update.
7138 * d10v-tdep.c (d10v_gdbarch_init): Update.
7139 * cris-tdep.c (cris_gdbarch_init): Update.
7140 * avr-tdep.c (avr_gdbarch_init): Update.
7141 * arm-tdep.c (arm_gdbarch_init): Update.
7142 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7143 * alpha-tdep.c (alpha_gdbarch_init): Update.
7144
f541410f
DJ
71452003-03-26 Daniel Jacobowitz <drow@mvista.com>
7146
7147 * signals/signals.c (do_target_signal_to_host): Correct realtime
7148 signal range test.
7149
69f567ae
DJ
71502003-03-26 Daniel Jacobowitz <drow@mvista.com>
7151
7152 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7153 (struct sal_chain, map_catch_names): Remove.
7154 (catch_exception_command_1): Don't call
7155 handle_gnu_4_16_catch_command.
7156
d5d14a5a
DJ
71572003-03-26 Daniel Jacobowitz <drow@mvista.com>
7158
7159 From Mark Dettinger <dettinge@de.ibm.com>:
7160 * dwarf2cfi.c (read_2u): Increment pointer by two.
7161
bdd73e22
DJ
71622003-03-26 Daniel Jacobowitz <drow@mvista.com>
7163
7164 * signals/signals.c: Fix typos in last change.
7165
960cb555
DJ
71662003-03-26 Daniel Jacobowitz <drow@mvista.com>
7167
7168 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7169 not already defined. Use __SIGRTMIN if available.
7170 (target_signal_from_host): Remove SIGRTMIN block.
7171 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7172 the signal is within the realtime range.
7173
f636b87d
AF
71742003-03-25 Adam Fedor <fedor@gnu.org>
7175
7176 * Makefile.in (infrun.o): Add $(language_h)
7177 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7178 for language specific trampolines.
7179 * language.h (struct language_defn): Add skip_trampoline.
7180 (skip_language_trampoline): Declare.
7181 * language.c (unk_lang_trampoline, skip_language_trampoline):
7182 New functions.
7183 (unknown_language_defn, auto_language_defn, local_language_defn):
7184 Add ukn_lang_trampoline.
7185 * ada-lang.c (ada_language_defn): Add NULL for language
7186 specific skip_trampoline.
7187 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7188 scm-lang.c: Likewise.
7189 * objc-lang.c (objc_skip_trampoline): New function.
7190 (objc_language_defn): Add objc_skip_trampoline.
7191
28f617b3 71922003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
7193
7194 * frame.c (get_prev_frame): Delay validating a frame's ID -
7195 non-NULL, didn't go backwards - until an attempt to unwind it to
7196 the previous frame.
7197
f933a9c5
AC
71982003-03-25 Andrew Cagney <cagney@redhat.com>
7199
7200 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7201 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7202 * gdbarch.h, gdbarch.c: Re-generate.
7203 * config/sparc/tm-sparc.h
7204 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7205 * sparc-tdep.c (sparc_gdbarch_init): Set
7206 deprecated_extra_stack_alignment_needed.
7207 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7208 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7209 extra_stack_alignment_needed.
7210 * v850-tdep.c (v850_gdbarch_init): Ditto.
7211 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7212 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7213 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7214 * cris-tdep.c (cris_gdbarch_init): Ditto.
7215 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7216 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7217
4183d812
AC
72182003-03-25 Andrew Cagney <cagney@redhat.com>
7219
7220 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7221 STORE_STRUCT_RETURN.
7222 * gdbarch.h, gdbarch.c: Regenerate.
7223 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7224 (d10v_push_arguments): Set the struct return register.
7225 (d10v_gdbarch_init): Update.
7226 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7227 * x86-64-tdep.c (x86_64_init_abi): Update.
7228 * vax-tdep.c (vax_gdbarch_init): Update.
7229 * v850-tdep.c (v850_gdbarch_init): Update.
7230 * sparc-tdep.c (sparc_gdbarch_init): Update.
7231 * sh-tdep.c (sh_gdbarch_init): Update.
7232 * s390-tdep.c (s390_gdbarch_init): Update.
7233 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7234 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7235 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7236 * mips-tdep.c (mips_gdbarch_init): Update.
7237 * mcore-tdep.c (mcore_gdbarch_init): Update.
7238 * m68k-tdep.c (m68k_gdbarch_init): Update.
7239 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7240 * ia64-tdep.c (ia64_gdbarch_init): Update.
7241 * i386-tdep.c (i386_gdbarch_init): Update.
7242 * hppa-tdep.c (hppa_gdbarch_init): Update.
7243 * h8300-tdep.c (h8300_gdbarch_init): Update.
7244 * frv-tdep.c (frv_gdbarch_init): Update.
7245 * cris-tdep.c (cris_gdbarch_init): Update.
7246 * avr-tdep.c (avr_gdbarch_init): Update.
7247 * arm-tdep.c (arm_gdbarch_init): Update.
7248 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 7249
1bf6d5cc
AC
72502003-03-25 Andrew Cagney <cagney@redhat.com>
7251
7252 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7253 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7254 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7255 * gdbarch.h, gdbarch.c: Regenerate.
7256 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7257 call_dummy_stack_adjust_p.
7258 * vax-tdep.c (vax_gdbarch_init): Ditto.
7259 * v850-tdep.c (v850_gdbarch_init): Ditto.
7260 * sh-tdep.c (sh_gdbarch_init): Ditto.
7261 * s390-tdep.c (s390_gdbarch_init): Ditto.
7262 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7263 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7264 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7265 * mips-tdep.c (mips_gdbarch_init): Ditto.
7266 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7267 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7268 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7269 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7270 * i386-tdep.c (i386_gdbarch_init): Ditto.
7271 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7272 * frv-tdep.c (frv_gdbarch_init): Ditto.
7273 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7274 * cris-tdep.c (cris_gdbarch_init): Ditto.
7275 * avr-tdep.c (avr_gdbarch_init): Ditto.
7276 * arm-tdep.c (arm_gdbarch_init): Ditto.
7277 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7278 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7279 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7280 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7281 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7282 call_dummy_stack_adjust_p.
7283 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7284 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7285 * sparc-tdep.c (sparc32_push_arguments): Update.
7286 * valops.c (hand_function_call): Update.
7287
71c08af0
CV
72882003-03-25 Corinna Vinschen <vinschen@redhat.com>
7289
7290 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7291 set_gdbarch_char_signed.
7292
30757f90
RE
72932003-03-25 Richard Earnshaw <rearnsha@arm.com>
7294
7295 PR cli/548
7296 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7297
03d48a7d
RE
72982003-03-25 Richard Earnshaw <rearnsha@arm.com>
7299
7300 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7301 (_initialize_arm_tdep): Don't set tm_print_insn.
7302
2cf6873c
AF
73032003-03-24 Adam Fedor <fedor@gnu.org>
7304
7305 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7306 * objc-lang.h: Add multiple inclusion protection.
7307 (start_msglist, add_msglist, end_msglist): Additional declarations.
7308
17c0759e
RE
73092003-03-24 Richard Earnshaw <rearnsha@arm.com>
7310
7311 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7312 value was renamed to ARM_FLOAT_SOFT_FPA.
7313
618ce49f
AC
73142003-03-23 Andrew Cagney <cagney@redhat.com>
7315
7316 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7317 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7318 * gdbarch.h, gdbarch.c: Regenerate.
7319 * valops.c (hand_function_call): Update.
7320 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7321 * frame.c (legacy_saved_regs_this_id): Update.
7322 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7323 * dummy-frame.h: Update.
7324 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7325 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7326 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7327 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7328 * config/m68k/tm-sun3.h: Update.
7329 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7330 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7331 * x86-64-tdep.c (x86_64_init_abi): Update.
7332 * vax-tdep.c (vax_gdbarch_init): Update.
7333 * v850-tdep.c (v850_gdbarch_init): Update.
7334 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7335 * sh-tdep.c (sh_gdbarch_init): Update.
7336 * s390-tdep.c (s390_gdbarch_init): Update.
7337 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7338 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7339 (frame_get_saved_regs): Update.
7340 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7341 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7342 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7343 * mips-tdep.c (mips_gdbarch_init): Update.
7344 * mcore-tdep.c (mcore_gdbarch_init): Update.
7345 * m68k-tdep.c (m68k_gdbarch_init): Update.
7346 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7347 * ia64-tdep.c (ia64_gdbarch_init): Update.
7348 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7349 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7350 (i386_interix_back_one_frame): Update.
7351 * hppa-tdep.c (hppa_gdbarch_init): Update.
7352 (hppa_init_extra_frame_info): Update.
7353 * h8300-tdep.c (h8300_gdbarch_init): Update.
7354 * frv-tdep.c (frv_gdbarch_init): Update.
7355 * cris-tdep.c (cris_gdbarch_init): Update.
7356 * avr-tdep.c (avr_gdbarch_init): Update.
7357 * arm-tdep.c (arm_gdbarch_init): Update.
7358 * alpha-tdep.c (alpha_gdbarch_init): Update.
7359
fd50bc42
RE
73602003-03-22 Richard Earnshaw <rearnsha@arm.com>
7361
7362 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7363 (arm_get_fp_model): Declare.
7364 * arm-tdep.c (fp_model_strings): New string array.
7365 (arm_fp_model, current_fp_model): New variables.
7366 (arm_get_fp_model): New function.
7367 (arm_set_fp): New function.
7368 (set_fp_model_sfunc): New function.
7369 (show_fp_model): New function.
7370 (_initialize_arm_tdep): Add new command to set/show the FPU.
7371 (arm_extract_return_value): Use arm_get_fp_model.
7372 (arm_store_return_value): Likewise.
7373 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7374 to initialize the floating-point data types.
7375 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7376 model is FPA.
7377
26304000
RE
73782003-03-22 Richard Earnshaw <rearnsha@arm.com>
7379
7380 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7381 the current setting of each value.
7382 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 7383 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
7384 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7385 commands and add new version as subcommands of "set/show arm".
7386
afd7eef0
RE
73872003-03-22 Richard Earnshaw <rearnsha@arm.com>
7388
7389 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7390 (set_arm_command, show_arm_command): New functions.
7391 (_initialize_arm_tdep): Add them.
7392 (num_disassembly_options): Renamed from num_flavor_options.
7393 (valid_disassembly_styles): Renamed from valid_flavors.
7394 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 7395 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
7396 set_disassembly_flavor_sfunc.
7397 (set_disassembly_style): Renamed from set_disassembly_flavor.
7398 (arm_othernames): Updated.
7399 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7400 command. Add "set/show arm disassembly" commands. Deprecate
7401 "othernames" command.
7402
299a7944
RE
74032003-03-22 Richard Earnshaw <rearnsha@arm.com>
7404
7405 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7406 (arm-tdep.o): Depend on elf_arm_h.
7407
c1dac9e6
RE
74082003-03-22 Richard Earnshaw <rearnsha@arm.com>
7409
7410 * Makefile.in (coff_internal_h): Define.
7411 (arm-tdep.o): Update dependencies.
7412
2702d96c
RE
74132003-03-22 Richard Earnshaw <rearnsha@arm.com>
7414
7415 * arm-tdep.c (prologue_cache): Delete.
7416 (check_prologue_cache, save_prologue_cache): Delete.
7417 (arm_scan_prologue): Don't check or update the prologue_cache.
7418 (arm_gdb_arch_init): Don't initialize it.
7419 (_initialize_arm_tdep): Likewise.
7420
27d5d74b
SC
74212003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7422
7423 * MAINTAINERS (tui): Maintainer of tui code.
7424
1762d96d
CV
74252003-03-21 Corinna Vinschen <vinschen@redhat.com>
7426
7427 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7428 (i386-cygwin-tdep.o): Add dependencies.
7429 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7430 * i386-cygwin-tdep.c: New file.
7431 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7432 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7433
4c2e2391
AC
74342003-03-20 Andrew Cagney <cagney@redhat.com>
7435
f20d38b7
AC
7436 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7437 (handle_inferior_event): Remove code calling
7438 DYNAMIC_TRAMPOLINE_NEXTPC.
7439
0022b738
AC
7440 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7441 already has a full path.
7442
864dbc90
AC
7443 * main.c (gdb_main): Return 1.
7444 (captured_main): Call error to report an invalid interpreter.
7445
4c2e2391
AC
7446 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7447 * alpha-osf1-tdep.c: Include "gdb_string.h".
7448
5ef7553b
JB
74492003-03-19 J. Brobecker <brobecker@gnat.com>
7450
7451 Continuing work to convert the hppa targets to multiarch partial.
7452
7453 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7454 method, now that hppa_push_dummy_frame has a conformant prototype.
7455 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7456 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7457 for the switch to multiarch partial.
7458
7bde8967
KB
74592003-03-19 Kevin Buettner <kevinb@redhat.com>
7460
7461 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7462 when iss is issNull.
7463
b006a9e9
KB
74642003-03-18 Kevin Buettner <kevinb@redhat.com>
7465
7466 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7467 NUM_REGS bounds check.
7468
5e2e9765
KB
74692003-03-18 Kevin Buettner <kevinb@redhat.com>
7470
7471 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7472 * mips-tdep.c (gdb_assert.h): Include.
7473 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7474 (mips_register_name): Handle integer registers explicitly. Add
7475 bounds checking.
7476 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7477 (mips_lsi33k_reg_names): Don't list integer registers; they're
7478 handled by mips_register_name() now.
7479 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7480 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7481 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7482 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7483 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7484
a2867626
AC
74852003-03-18 Andrew Cagney <cagney@redhat.com>
7486
7487 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7488 a void pointer.
7489 * gdbtypes.h (print_scalar_formatted): Update declaration.
7490 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7491
06600e06
JB
74922003-03-18 J. Brobecker <brobecker@gnat.com>
7493
7494 * infrun.c (observer.h): Add #include.
7495 (normal_stop): Add call to observer_notify_normal_stop.
7496 * Makefile.in (infrun.o): Add dependency on observer.h.
7497
7daf4f5b
JB
74982003-03-18 J. Brobecker <brobecker@gnat.com>
7499
7500 Continuing work to convert the hppa targets to multiarch partial.
7501 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7502 parameter. Reformat comment.
7503 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7504 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7505 to match new profile.
7506
3371ccc0
JB
75072003-03-18 J. Brobecker <brobecker@gnat.com>
7508
7509 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7510 appear to be working in any case.
7511
4fbe891e
JB
75122003-03-18 J. Brobecker <brobecker@gnat.com>
7513
7514 * observer.c (observer_test_first_observer): New static variable.
7515 (observer_test_second_observer): Likewise.
7516 (observer_test_third_observer): Likewise.
7517 (observer_test_first_notification_function): New static function.
7518 (observer_test_second_notification_function): Likewise.
7519 (observer_test_third_notification_function): Likewise.
7520
a7ff40e7
JB
75212003-03-17 J. Brobecker <brobecker@gnat.com>
7522
7523 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7524 * somsolib.c (gdb_assert.h): Likewise.
7525 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7526 (somsolib.o): Likewise.
7527
26ca4152
AC
75282003-03-17 Andrew Cagney <cagney@redhat.com>
7529
7530 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7531 BFD. Simplify setting of di.endian.
7532
0a613259
AC
75332003-03-17 Andrew Cagney <cagney@redhat.com>
7534
7535 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7536 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7537
7538 From Elena Zannoni <ezannoni@redhat.com>
7539 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7540 vector and floating-point parameters.
7541 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7542 convention.
7543 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7544
1132738f
FN
75452003-03-17 Fernando Nasser <fnasser@redhat.com>
7546
7547 * MAINTAINERS: Remove my name from several maintainership roles.
7548
6dc42492
AC
75492003-03-17 Andrew Cagney <cagney@redhat.com>
7550
7551 Fix frame off-by-one bug.
7552 * frame-unwind.h (frame_this_id_ftype): Replace
7553 frame_unwind_id_ftype.
7554 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7555 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7556 with "prev_register".
7557 * frame-unwind.c (frame_unwind_find_by_pc): Return
7558 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7559 comment.
7560 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7561 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7562 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7563 (dummy_frame_unwind): Update.
7564 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7565 sentinel_frame_register_unwind.
7566 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7567 (sentinel_frame_unwinder): Update.
7568 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7569 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7570 * frame.c (create_sentinel_frame): Update. Initialize
7571 "prologue_cache" instead of "unwind_cache".
7572 (frame_register_unwind): Call this frame's prev_register with the
7573 next frame and this frame's prologue cache.
7574 (get_prev_frame): Simplify. Always call prev frame's this_id with
7575 this frame and prev frame's prologue cache. Document that this
7576 call is shifted one to the left when compared to the
7577 frame_register_unwind call.
7578 (legacy_saved_regs_prev_register): Replace
7579 frame_saved_regs_register_unwind.
7580 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7581 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7582 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7583 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7584 (d10v_frame_unwind): Update.
7585 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7586 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7587 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7588 "saved_regs" with "this_saved_regs".
7589
efd710d6
AC
75902003-03-16 Andrew Cagney <cagney@redhat.com>
7591
7592 * frame.c (frame_pop): Don't call target_store_registers. Fix
7593 problem reported by Mark Kettenis.
7594
4e259f09
MK
75952003-03-16 Mark Kettenis <kettenis@gnu.org>
7596
7597 * i386-tdep.c (i386_register_type): Renamed from
7598 i386_register_virtual_type. Adjust function signature.
7599 (i386_gdbarch_init): Set register_type instead of
7600 deprecated_max_register_raw_size,
7601 deprecated_max_register_virtual_size and register_virtual_type.
7602
055bb976
AC
76032003-03-14 Andrew Cagney <cagney@redhat.com>
7604
7605 * frame.c (get_prev_frame): When a legacy frame, always call
7606 legacy_get_prev_frame. Simplify unwind code using assumption that
7607 the unwinder is new.
7608 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7609 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7610 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7611
ac2adee5
AC
76122003-03-14 Andrew Cagney <cagney@redhat.com>
7613
7614 * frame.c (get_saved_register): Delete function.
7615 * frame.h (get_saved_register): Delete declaration.
7616 * xstormy16-tdep.c: Update comment.
7617 * regcache.h: Update comments.
7618 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7619 get_saved_register and extract_address, use
7620 frame_read_unsigned_register.
7621 (sparc_frame_saved_pc): Ditto.
7622 (sparc_get_saved_register): Instead of get_saved_register, use
7623 frame_register.
7624 (sparc_pop_frame): Ditto.
7625 * findvar.c: Update comments.
7626 (value_of_register): Call frame_register instead of
7627 get_saved_register.
7628 (value_from_register): Ditto.
7629 * config/sparc/tm-sparc.h: Update comment.
7630 * breakpoint.c: Update comment.
7631
129c1cd6
AC
76322003-03-14 Andrew Cagney <cagney@redhat.com>
7633
7634 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7635 GET_SAVED_REGISTER.
7636 * gdbarch.h, gdbarch.c: Re-generate.
7637 * frame.h: Update comments.
7638 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7639 * x86-64-tdep.c (x86_64_init_abi): Update.
7640 * sparc-tdep.c (sparc_gdbarch_init): Update.
7641 * sh-tdep.c (sh_gdbarch_init): Update.
7642 * mips-tdep.c (mips_gdbarch_init): Update.
7643 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7644 * cris-tdep.c (cris_gdbarch_init): Update.
7645 * ia64-tdep.c (ia64_gdbarch_init): Update.
7646 * frame.c (frame_register): Update.
7647 (get_saved_register): Update.
7648 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 7649
749b82f6
AC
76502003-03-13 Andrew Cagney <cagney@redhat.com>
7651
7652 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7653 * gdbarch.h, gdbarch.c: Regenerate.
7654 * valops.c (hand_function_call): Update comment.
7655 * stack.c (return_command): Update comment.
7656 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7657 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7658 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7659 * x86-64-tdep.c (x86_64_init_abi): Update.
7660 * vax-tdep.c (vax_gdbarch_init): Update.
7661 * v850-tdep.c (v850_gdbarch_init): Update.
7662 * sparc-tdep.c (sparc_gdbarch_init): Update.
7663 * sh-tdep.c (sh_gdbarch_init): Update.
7664 * s390-tdep.c (s390_gdbarch_init): Update.
7665 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7666 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7667 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7668 * mips-tdep.c (mips_gdbarch_init): Update.
7669 * mcore-tdep.c (mcore_gdbarch_init): Update.
7670 * m68k-tdep.c (m68k_gdbarch_init): Update.
7671 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7672 * ia64-tdep.c (ia64_gdbarch_init): Update.
7673 * i386-tdep.c (i386_gdbarch_init): Update.
7674 * hppa-tdep.c (hppa_gdbarch_init): Update.
7675 * h8300-tdep.c (h8300_gdbarch_init): Update.
7676 * frv-tdep.c (frv_gdbarch_init): Update.
7677 * cris-tdep.c (cris_gdbarch_init): Update.
7678 * avr-tdep.c (avr_gdbarch_init): Update.
7679 * arm-tdep.c (arm_gdbarch_init): Update.
7680 * alpha-tdep.c (alpha_gdbarch_init): Update.
7681
1594fa56
AC
76822003-03-13 Andrew Cagney <cagney@redhat.com>
7683
7684 * frame.c (legacy_frame_p): New function.
7685 (get_prev_frame): Use legacy_frame_p.
7686 * frame.h (legacy_frame_p): Declare.
7687
7717fda3
V
76882003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7689
fbe586ae 7690 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
7691 listing corrected.
7692
0c67cbe9
V
76932003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7694
fbe586ae 7695 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 7696
03febf99
AC
76972003-03-12 Andrew Cagney <cagney@redhat.com>
7698
7699 * frame.c (get_prev_frame): Rename the frame parameter to
7700 "this_frame".
7701 (get_next_frame, legacy_get_prev_frame): Ditto.
7702
0a1e1ca1
AC
77032003-03-12 Andrew Cagney <cagney@redhat.com>
7704
7705 * frame.c (get_current_frame): Check target_has_registers before
7706 checking target_has_stack.
7707 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7708 instead of deprecated_selected_frame.
7709 * findvar.c (value_of_register): Pass "frame", not
7710 deprecated_selected_frame, to value_of_builtin_reg.
7711
a66a9c23
AC
77122003-03-12 Andrew Cagney <cagney@redhat.com>
7713
7714 * regcache.c (regcache_cooked_write_signed): New function.
7715 (regcache_cooked_write_unsigned): New function.
7716 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7717 (regcache_cooked_read_signed): Fix regnum in range assertion.
7718 * regcache.h (regcache_cooked_write_signed): Declare.
7719 (regcache_cooked_write_unsigned): Declare.
7720
8bedc050
AC
77212003-03-12 Andrew Cagney <cagney@redhat.com>
7722
7723 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7724 * gdbarch.h, gdbarch.c: Re-generate.
7725 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7726 * x86-64-tdep.h: Update.
7727 * x86-64-tdep.c (x86_64_init_abi): Update.
7728 * v850-tdep.c (v850_gdbarch_init): Update.
7729 * sparc-tdep.c (sparc_gdbarch_init): Update.
7730 * sh-tdep.c (sh_gdbarch_init): Update.
7731 * s390-tdep.c (s390_gdbarch_init): Update.
7732 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7733 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7734 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7735 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7736 * mips-tdep.c (mips_gdbarch_init): Update.
7737 * mcore-tdep.c (mcore_gdbarch_init): Update.
7738 * m68k-tdep.c (m68k_gdbarch_init): Update.
7739 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7740 * ia64-tdep.c (ia64_gdbarch_init): Update.
7741 * i386-tdep.c (i386_gdbarch_init): Update.
7742 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7743 * hppa-tdep.c (hppa_gdbarch_init): Update.
7744 * h8300-tdep.c (h8300_gdbarch_init): Update.
7745 * frv-tdep.c (frv_gdbarch_init): Update.
7746 * cris-tdep.c (cris_gdbarch_init): Update.
7747 * avr-tdep.c (avr_gdbarch_init): Update.
7748 * arm-tdep.c (arm_gdbarch_init): Update.
7749 * alpha-tdep.c (alpha_gdbarch_init): Update.
7750 * sh-tdep.c (sh_init_extra_frame_info): Update.
7751 (sh64_init_extra_frame_info): Update.
7752 * ns32knbsd-nat.c (frame_num_args): Update.
7753 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7754 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7755 (xstormy16_frame_chain_valid): Update.
7756 * vax-tdep.c (vax_saved_pc_after_call): Update.
7757 * v850-tdep.c (v850_frame_chain): Update.
7758 (v850_pop_frame): Update.
7759 (v850_init_extra_frame_info): Update.
7760 * sparc-tdep.c (setup_arbitrary_frame): Update.
7761 * ns32k-tdep.c (umax_frame_num_args): Update.
7762 * s390-tdep.c (s390_pop_frame_regular): Update.
7763 * mn10300-tdep.c (mn10300_frame_chain): Update.
7764 (mn10300_pop_frame_regular): Update.
7765 (mn10300_init_extra_frame_info): Update.
7766 * mips-tdep.c (mips_init_frame_pc_first): Update.
7767 (mips_frame_chain): Update.
7768 (mips_pop_frame): Update.
7769 * mcore-tdep.c (mcore_frame_chain): Update.
7770 (mcore_pop_frame): Update.
7771 (mcore_init_extra_frame_info): Update.
7772 * arch-utils.c (init_frame_pc_default): Update.
7773 * m68k-tdep.c (isi_frame_num_args): Update.
7774 (delta68_frame_num_args): Update.
7775 (news_frame_num_args): Update.
7776 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7777 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7778 (alpha_frame_chain): Update.
7779 (alpha_pop_frame): Update.
7780 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7781 (hppa_init_extra_frame_info): Update.
7782 (hppa_frame_chain): Update.
7783 (hppa_frame_chain_valid): Update.
7784 * cris-tdep.c (cris_init_extra_frame_info): Update.
7785 * avr-tdep.c (avr_init_extra_frame_info): Update.
7786 * arm-tdep.c (arm_frame_chain_valid): Update.
7787 (arm_init_extra_frame_info): Update.
7788 (arm_pop_frame): Update.
7789 * frame.c (frame_pc_unwind): Update.
7790 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7791 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7792 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7793 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7794 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7795 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 7796
7a25a7c1
AC
77972003-03-12 Andrew Cagney <cagney@redhat.com>
7798
7799 Eliminate the need for POP_FRAME.
7800 * frame.c (do_frame_unwind_register): New function.
7801 (frame_pop): When no POP_FRAME, pop the frame using register
7802 unwind and a scratch regcache.
7803 (frame_saved_regs_pop): Delete function.
7804 (trad_frame_unwinder): Update.
7805 * d10v-tdep.c (d10v_frame_pop): Delete function.
7806 (d10v_frame_unwind): Update.
7807 * sentinel-frame.c (sentinel_frame_pop): Delete function.
7808 (sentinel_frame_unwinder): Update.
7809 * dummy-frame.c (dummy_frame_pop): Delete function.
7810 (dummy_frame_unwind): Update.
7811 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7812 (struct frame_unwind): Update.
7813
2f38ef89
KB
78142003-03-11 Kevin Buettner <kevinb@redhat.com>
7815
7816 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
7817 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
7818 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
7819 Do range checks on register number obtained from debugging info.
7820 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
7821 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
7822 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
7823 mapping function.
7824 (do_fp_register_row): Fix typo which caused double type to be
7825 used when attempting to unpack a float.
7826
552f4abf
JB
78272003-03-11 J. Brobecker <brobecker@gnat.com>
7828
7829 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
7830
e0d2ae16
AC
78312003-03-11 Andrew Cagney <cagney@redhat.com>
7832
7833 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
7834 frame. Problem found by Corinna Vinschen.
7835
ddbfdd06
PM
78362003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
7837
7838 * doublest.c (floatformat_from_length): Accept also
7839 the real size of 'long double' type.
7840
088b2ddc 78412003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 7842
088b2ddc 7843 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
7844 * breakpoint.c (bpstat_copy): Copy the command lines as well
7845 as the old value, to match what is freed in bpstat_clear.
7846
f56f77c1
DC
78472003-03-10 David Carlton <carlton@math.stanford.edu>
7848
7849 * minsyms.c (add_minsym_to_hash_table): Replace
7850 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7851 (compare_minimal_symbols, compact_minimal_symbols)
7852 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
7853 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
7854 of DEPRECATED_SYMBOL_MATCHES_NAME.
7855 (lookup_minimal_symbol_solib_trampoline): Ditto.
7856
5602984a
AC
78572003-03-10 Andrew Cagney <cagney@redhat.com>
7858
7859 * regcache.h (regcache_cooked_read_ftype): Define.
7860 (regcache_save, regcache_restore): Add a cooked_read parameter.
7861 * regcache.c (regcache_save, regcache_restore): Update.
7862 (do_cooked_read): New function.
7863 (regcache_cpy): Pass do_cooked_read to regcache_save and
7864 regcache_restore.
7865
8bedc050
AC
78662003-03-10 Andrew Cagney <cagney@redhat.com>
7867
7868 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7869 * gdbarch.h, gdbarch.c: Re-generate.
7870 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7871 * x86-64-tdep.h: Update.
7872 * x86-64-tdep.c (x86_64_init_abi): Update.
7873 * v850-tdep.c (v850_gdbarch_init): Update.
7874 * sparc-tdep.c (sparc_gdbarch_init): Update.
7875 * sh-tdep.c (sh_gdbarch_init): Update.
7876 * s390-tdep.c (s390_gdbarch_init): Update.
7877 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7878 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7879 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7880 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7881 * mips-tdep.c (mips_gdbarch_init): Update.
7882 * mcore-tdep.c (mcore_gdbarch_init): Update.
7883 * m68k-tdep.c (m68k_gdbarch_init): Update.
7884 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7885 * ia64-tdep.c (ia64_gdbarch_init): Update.
7886 * i386-tdep.c (i386_gdbarch_init): Update.
7887 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7888 * hppa-tdep.c (hppa_gdbarch_init): Update.
7889 * h8300-tdep.c (h8300_gdbarch_init): Update.
7890 * frv-tdep.c (frv_gdbarch_init): Update.
7891 * cris-tdep.c (cris_gdbarch_init): Update.
7892 * avr-tdep.c (avr_gdbarch_init): Update.
7893 * arm-tdep.c (arm_gdbarch_init): Update.
7894 * alpha-tdep.c (alpha_gdbarch_init): Update.
7895 * sh-tdep.c (sh_init_extra_frame_info): Update.
7896 (sh64_init_extra_frame_info): Update.
7897 * ns32knbsd-nat.c (frame_num_args): Update.
7898 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7899 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7900 (xstormy16_frame_chain_valid): Update.
7901 * vax-tdep.c (vax_saved_pc_after_call): Update.
7902 * v850-tdep.c (v850_frame_chain): Update.
7903 (v850_pop_frame): Update.
7904 (v850_init_extra_frame_info): Update.
7905 * sparc-tdep.c (setup_arbitrary_frame): Update.
7906 * ns32k-tdep.c (umax_frame_num_args): Update.
7907 * s390-tdep.c (s390_pop_frame_regular): Update.
7908 * mn10300-tdep.c (mn10300_frame_chain): Update.
7909 (mn10300_pop_frame_regular): Update.
7910 (mn10300_init_extra_frame_info): Update.
7911 * mips-tdep.c (mips_init_frame_pc_first): Update.
7912 (mips_frame_chain): Update.
7913 (mips_pop_frame): Update.
7914 * mcore-tdep.c (mcore_frame_chain): Update.
7915 (mcore_pop_frame): Update.
7916 (mcore_init_extra_frame_info): Update.
7917 * arch-utils.c (init_frame_pc_default): Update.
7918 * m68k-tdep.c (isi_frame_num_args): Update.
7919 (delta68_frame_num_args): Update.
7920 (news_frame_num_args): Update.
7921 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7922 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7923 (alpha_frame_chain): Update.
7924 (alpha_pop_frame): Update.
7925 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7926 (hppa_init_extra_frame_info): Update.
7927 (hppa_frame_chain): Update.
7928 (hppa_frame_chain_valid): Update.
7929 * cris-tdep.c (cris_init_extra_frame_info): Update.
7930 * avr-tdep.c (avr_init_extra_frame_info): Update.
7931 * arm-tdep.c (arm_frame_chain_valid): Update.
7932 (arm_init_extra_frame_info): Update.
7933 (arm_pop_frame): Update.
7934 * frame.c (frame_pc_unwind): Update.
7935 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7936 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7937 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7938 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7939 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7940 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 7941
12cc2063
AC
79422003-03-10 Andrew Cagney <cagney@redhat.com>
7943
7944 * gdbarch.sh (gdbarch_unwind_pc): New method.
7945 * gdbarch.h, gdbarch.c: Regenerate.
7946 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
7947 but use read_pc and FRAME_SAVED_PC as fall backs.
7948 (frame_saved_regs_pc_unwind): Delete function.
7949 (trad_frame_unwinder): Update.
7950 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
7951 (struct frame_unwind): Update.
7952 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
7953 (dummy_frame_unwind): Update.
7954 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
7955 (sentinel_frame_unwinder): Update.
7956 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
7957 (d10v_frame_unwind): Update.
7958 (d10v_unwind_pc): New function.
7959 (d10v_gdbarch_init): Set unwind_pc.
7960
ef840a37
AC
79612003-03-10 Andrew Cagney <cagney@redhat.com>
7962
a2ce2e56
AC
7963 * gdbarch.h: Re-generate.
7964
ef840a37
AC
7965 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
7966 PC.
7967 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
7968 the PC register.
7969
08f3424b
MK
79702003-03-08 Mark Kettenis <kettenis@gnu.org>
7971
7972 * gdbarch.sh (save_dummy_frame_tos): Add comment.
7973
1248ede2
AC
79742003-03-08 Andrew Cagney <cagney@redhat.com>
7975
7976 * cli-out.c: Update copyright.
7977 (cli_out_data): Define typedef. Use instead of ui_out_data.
7978
f49bacc8
AC
79792003-03-08 Andrew Cagney <cagney@redhat.com>
7980
7981 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
7982 the result.
7983
9b05f993
AC
79842003-03-07 Andrew Cagney <cagney@redhat.com>
7985
7986 * gdbarch.sh: Don't generate two macro definitions when an
7987 undefined macro taking no arguments.
7988 * gdbarch.h: Regenerate.
8ffd9b1b 7989
166f4c7b
ML
79902002-03-07 Michal Ludvig <mludvig@suse.cz>
7991
7992 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
7993 (x86_64_unwind_dummy_id): New functions.
7994 (x86_64_init_abi): Register these two new functions.
7995
6d686a84
ML
79962003-03-07 Michal Ludvig <mludvig@suse.cz>
7997
7998 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 7999 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
8000 separate function.
8001 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8002
6314f104
AC
80032003-03-05 Andrew Cagney <cagney@redhat.com>
8004
8005 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8006 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8007 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8008 to use unwind_dummy_id when a dummy frame.
8009 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8010 predicate.
8011 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 8012
ceea5145
AC
80132003-03-05 Andrew Cagney <cagney@redhat.com>
8014
8015 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8016 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8017 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8018 values.
8019
0d843116
AC
80202003-03-05 Andrew Cagney <cagney@redhat.com>
8021
8022 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8023 (struct d10v_unwind_cache): Delete field "frameless". Replace
8024 "next_addr" with "sp_offset". Add "r11_offset".
8025 (d10v_frame_unwind_cache): Update.
8026 (prologue_find_regs): Update. When "mv r11, sp", save the
8027 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8028 RN was saved in r11_offset.
8029
b2579786
AC
80302003-03-05 Andrew Cagney <cagney@redhat.com>
8031
8032 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8033 cached PC value in the next frame.
8034
218e5956
AC
80352003-03-05 Andrew Cagney <cagney@redhat.com>
8036
8037 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8038 "id_unwind_cache" with "id".
8039 (frame_id_unwind): Delete declaration.
8040 * frame.c (frame_id_unwind): Delete function.
8041 (get_prev_frame): Call the frame id unwind method directly. Store
8042 the returned next frame's ID value in NEXT_FRAME. Note that there
8043 is a problem with the wrong unwind ID being called with the wrong
8044 unwind cache.
8045
ed363b1b
DJ
80462003-03-05 Daniel Jacobowitz <drow@mvista.com>
8047
8048 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8049
fe1f4a5e
DJ
80502003-03-05 James Ingham <jingham@apple.com>
8051 Daniel Jacobowitz <drow@mvista.com>
8052
8053 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8054 (auto_cp_abi): New variable.
8055 (current_cp_abi, num_cp_abis): Make static.
8056 (CP_ABI_MAX): Define.
8057 (cp_abis): Turn into an array.
8058 (value_virtual_fn_field): Fix formatting.
8059 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8060 takes a pointer.
8061 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8062 (list_cp_abis, _initialize_cp_abi): New functions.
8063 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8064 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8065 switch_to_cp_abi. Update prototype for register_cp_abi.
8066 * Makefile.in (cp-abi.o): Update dependencies.
8067 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8068 instead of switch_to_cp_abi.
8069 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8070 register_cp_abi.
8071 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8072 register_cp_abi.
8073 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8074
e4adbba9
DJ
80752003-03-05 Daniel Jacobowitz <drow@mvista.com>
8076
8077 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8078 * dwarf2loc.c: Include "regcache.h".
8079 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8080 register_size.
8081 * Makefile.in (dwarf2loc.o): Update dependencies.
8082
91ccbfc1
TR
80832003-03-04 Theodore A. Roth <troth@openavr.org>
8084
8085 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8086 number of io registers reported by remote target is not a multiple of
8087 step.
8088
3d4e8fd2
DC
80892003-03-04 David Carlton <carlton@math.stanford.edu>
8090
8091 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8092 (lookup_symbol_aux_psymtabs): Update call to
8093 lookup_partial_symbol.
8094 (lookup_transparent_type, find_main_psymtab)
8095 (make_symbol_overload_list): Ditto.
8096
ed42d87b
KH
80972003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8098
8099 * MAINTAINERS (Write after approval): Update my email address.
8100
a0ed5532
AC
81012003-03-03 Andrew Cagney <cagney@redhat.com>
8102
8103 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8104 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8105 predicate. Replace MAX_REGISTER_RAW_SIZE.
8106 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8107 MAX_REGISTER_VIRTUAL_SIZE.
8108 * regcache.c (legacy_max_register_raw_size): New function.
8109 (legacy_max_register_virtual_size): New function.
8110 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8111 (MAX_REGISTER_RAW_SIZE): Define.
8112 (legacy_max_register_raw_size): Declare.
8113 (legacy_max_register_virtual_size): Declare.
8114 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8115 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8116 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8117 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8118 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8119 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8120 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8121 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8122 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8123 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8124 * vax-tdep.c (vax_gdbarch_init): Update.
8125 * v850-tdep.c (v850_gdbarch_init): Update.
8126 * sparc-tdep.c (sparc_gdbarch_init): Update.
8127 * sh-tdep.c (sh_gdbarch_init): Update.
8128 * s390-tdep.c (s390_gdbarch_init): Update.
8129 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8130 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8131 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8132 * mips-tdep.c (mips_gdbarch_init): Update.
8133 * mcore-tdep.c (mcore_gdbarch_init): Update.
8134 * m68k-tdep.c (m68k_gdbarch_init): Update.
8135 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8136 * ia64-tdep.c (ia64_gdbarch_init): Update.
8137 * i386-tdep.c (i386_gdbarch_init): Update.
8138 * hppa-tdep.c (hppa_gdbarch_init): Update.
8139 * h8300-tdep.c (h8300_gdbarch_init): Update.
8140 * frv-tdep.c (frv_gdbarch_init): Update.
8141 * cris-tdep.c (cris_gdbarch_init): Update.
8142 * avr-tdep.c (avr_gdbarch_init): Update.
8143 * arm-tdep.c (arm_gdbarch_init): Update.
8144 * alpha-tdep.c (alpha_gdbarch_init): Update.
8145 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8146 max_register_raw_size or max_register_virtual_size.
8147
8e437497
DC
81482003-03-03 David Carlton <carlton@math.stanford.edu>
8149
8150 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8151 SYMBOL_MATCHES_NAME, add comment.
8152 (SYMBOL_MATCHES_NATURAL_NAME): New.
8153 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8154 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8155 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8156 * symtab.c (lookup_partial_symbol): Use
8157 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8158 unhelpful comment.
8159 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8160 SYMBOL_MATCHES_NAME.
8161 Fix for PR c++/33.
8162
25120b0d
DC
81632003-03-03 David Carlton <carlton@math.stanford.edu>
8164
8165 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8166 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8167 by regexp matching against SYMBOL_NATURAL_NAME.
8168
78a11fb4
DC
81692003-03-03 David Carlton <carlton@math.stanford.edu>
8170
8171 * linespec.c (find_method): Extract code into collect_methods.
8172 (collect_methods): New.
8173
645dd519
MK
81742003-03-02 Mark Kettenis <kettenis@gnu.org>
8175
b4700d91
MK
8176 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8177 get_frame_base.
8178
645dd519
MK
8179 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8180 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8181
0aa7e1aa
SC
81822003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8183
8ffd9b1b 8184 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
8185 and not regnum when summing the size of all registers up to regnum.
8186
f30ee0bc
AC
81872003-03-01 Andrew Cagney <cagney@redhat.com>
8188
8189 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8190 FRAME_INIT_SAVED_REGS.
8191 * gdbarch.h, gdbarch.c: Regenerate.
8192 * stack.c (frame_info): Update.
8193 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8194 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8195 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8196 * ns32k-tdep.c (ns32k_pop_frame): Update.
8197 * mips-tdep.c (mips_pop_frame): Update.
8198 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8199 * ia64-tdep.c (ia64_frame_chain): Update.
8200 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8201 (ia64_frameless_function_invocation): Update.
8202 (ia64_init_extra_frame_info): Update.
8203 (ia64_pop_frame_regular): Update.
8204 * frame.h (struct frame_info): Update comment.
8205 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8206 * frame.c (frame_saved_regs_register_unwind): Update.
8207 (frame_saved_regs_register_unwind): Update.
8208 (deprecated_generic_get_saved_register): Update.
8209 * cris-tdep.c: Update comment.
8210 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8211 Rename macro.
8212 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8213 * x86-64-tdep.c (x86_64_init_abi): Update.
8214 * vax-tdep.c (vax_gdbarch_init): Update.
8215 * v850-tdep.c (v850_gdbarch_init): Update.
8216 * sparc-tdep.c (sparc_gdbarch_init): Update.
8217 * sh-tdep.c (sh_gdbarch_init): Update.
8218 * s390-tdep.c (s390_gdbarch_init): Update.
8219 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8220 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8221 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8222 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8223 * mips-tdep.c (mips_gdbarch_init): Update.
8224 * mcore-tdep.c (mcore_gdbarch_init): Update.
8225 * m68k-tdep.c (m68k_gdbarch_init): Update.
8226 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8227 * ia64-tdep.c (ia64_gdbarch_init): Update.
8228 * i386-tdep.c (i386_gdbarch_init): Update.
8229 * frv-tdep.c (frv_gdbarch_init): Update.
8230 * avr-tdep.c (avr_gdbarch_init): Update.
8231 * arm-tdep.c (arm_gdbarch_init): Update.
8232 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8233
42fa7c0f
AC
82342003-03-01 Andrew Cagney <cagney@redhat.com>
8235
8236 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8237 option enum and switch. When no windows, set the interpreter to
8238 INTERP_CONSOLE.
8ffd9b1b 8239
49c7e338
AC
82402003-03-01 Andrew Cagney <cagney@redhat.com>
8241
8242 * main.c (captured_main): Replace magic option characters with an
8243 enum.
8244
e9582e71
AC
82452003-03-01 Andrew Cagney <cagney@redhat.com>
8246
8247 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8248 INIT_EXTRA_FRAME_INFO.
8249 * gdbarch.h, gdbarch.c: Regenerate.
8250 * arm-tdep.c: Update comments.
8251 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8252 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8253 * frame.h, avr-tdep.c: Ditto.
8254 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8255 (create_new_frame, legacy_get_prev_frame): Ditto.
8256 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8257 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8258 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8259 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8260 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8261 * v850-tdep.c (v850_gdbarch_init): Ditto.
8262 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8263 * sh-tdep.c (sh_gdbarch_init): Ditto.
8264 * s390-tdep.c (s390_gdbarch_init): Ditto.
8265 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8266 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8267 * mips-tdep.c (mips_gdbarch_init): Ditto.
8268 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8269 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8270 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8271 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8272 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8273 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8274 * frv-tdep.c (frv_gdbarch_init): Ditto.
8275 * cris-tdep.c (cris_gdbarch_init): Ditto.
8276 * avr-tdep.c (avr_gdbarch_init): Ditto.
8277 * arm-tdep.c (arm_gdbarch_init): Ditto.
8278 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8279 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8280
35cac7cf
AC
82812003-03-01 Andrew Cagney <cagney@redhat.com>
8282
8283 * gdbarch.sh (register_type): New function with predicate.
8284 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8285 * gdbarch.h, gdbarch.c: Re-generate.
8286 * arch-utils.c (generic_register_byte): Use generic_register_size.
8287 (generic_register_size): When available, use
8288 gdbarch_register_type.
8289 * regcache.c (init_regcache_descr): When available, initialize the
8290 register type array using gdbarch_register_type. If the
8291 architecture supplies gdbarch_register_type, do not use the legacy
8292 regcache layout.
8293 * d10v-tdep.c (d10v_register_type): Replace
8294 d10v_register_virtual_type.
8295 (d10v_gdbarch_init): Set register_type instead of
8296 register_virtual_type.
8297
7b83296f
AC
82982003-03-01 Andrew Cagney <cagney@redhat.com>
8299
8300 * Makefile.in (ax-gdb.o): Update dependencies.
8301 * ax-gdb.c: Include "regcache.h".
8302 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8303 * findvar.c (value_of_register): Ditto.
8304 * infcmd.c (default_print_registers_info): Ditto.
8305
eadc1c87
MK
83062003-03-01 Mark Kettenis <kettenis@gnu.org>
8307
8308 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8309 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8310
14143612
MK
83112003-03-01 Mark Kettenis <kettenis@gnu.org>
8312
8313 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8314 of STREQ.
8315
a55cc764
DJ
83162003-02-28 Daniel Jacobowitz <drow@mvista.com>
8317
8318 * Makefile.in (dwarf2loc.o): Update dependencies.
8319 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8320 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8321 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8322 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8323 (locexpr_tracepoint_var_ref): New function.
8324 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8325
08a617da
AC
83262003-02-28 Andrew Cagney <cagney@redhat.com>
8327
8328 * regcache.c (register_size): New function.
8329 * regcache.h (register_size): Declare
8330 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8331 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8332
4224873a
DC
83332003-02-28 David Carlton <carlton@math.stanford.edu>
8334
8335 * linespec.c (decode_compound): Extract code into find_method.
8336 (find_method): New.
8337
ccdc5d7f
JB
83382003-02-28 J. Brobecker <brobecker@gnat.com>
8339
8340 * Makefile.in: Add rules to build and link in observer.o.
8341
974e8ced
JB
83422003-02-27 J. Brobecker <brobecker@gnat.com>
8343
8344 * observer.c: Minor comments edits.
8345
7a28f973
JB
83462003-02-27 J. Brobecker <brobecker@gnat.com>
8347
8348 * observer.h, observer.c: New file.
8349
27cddce2
AC
83502003-02-27 Andrew Cagney <cagney@redhat.com>
8351
8352 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8353
b94a41a1
SC
83542003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8355
8356 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8357 (M6812_OP_STS_EXT): Likewise.
8358 (m6811_prologue): Use the above to recognize prologue.
8359 (m6812_prologue): Likewise.
8360
c8be8951
DC
83612003-02-27 David Carlton <carlton@math.stanford.edu>
8362
8363 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8364 SYMBOL_PRINT_NAME.
8365 (compare_psymbols): Ditto.
8366 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8367
d05bb1fc
MS
83682003-02-27 Michael Snyder <msnyder@redhat.com>
8369
4e845cd3
MS
8370 * f-lang.c (build_fortran_types): New function.
8371 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
8372 * doublest.c (extract_floating): Fix warning text.
8373
f3824013
AC
83742003-02-27 Andrew Cagney <cagney@redhat.com>
8375
8376 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8377 predicate. Replaces PUSH_DUMMY_FRAME.
8378 * gdbarch.h, gdbarch.c: Regnerate.
8379 * valops.c (hand_function_call): Update. Call
8380 generic_push_dummy_frame directly.
8381 * vax-tdep.c (vax_gdbarch_init): Update.
8382 * sparc-tdep.c (sparc_gdbarch_init): Update.
8383 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8384 * m68k-tdep.c (m68k_gdbarch_init): Update.
8385 * hppa-tdep.c (hppa_gdbarch_init): Update.
8386 * alpha-tdep.c (alpha_gdbarch_init): Update.
8387 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8388 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8389 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8390 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8391 push_dummy_frame to generic_push_dummy_frame.
8392 * v850-tdep.c (v850_gdbarch_init): Ditto.
8393 * sh-tdep.c (sh_gdbarch_init): Ditto.
8394 * s390-tdep.c (s390_gdbarch_init): Ditto.
8395 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8396 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8397 * mips-tdep.c (mips_gdbarch_init): Ditto.
8398 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8399 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8400 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8401 * i386-tdep.c (i386_gdbarch_init): Ditto.
8402 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8403 * frv-tdep.c (frv_gdbarch_init): Ditto.
8404 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8405 * cris-tdep.c (cris_gdbarch_init): Ditto.
8406 * avr-tdep.c (avr_gdbarch_init): Ditto.
8407 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 8408
ad188201
KB
84092003-02-26 Kevin Buettner <kevinb@redhat.com>
8410
8411 * mips-tdep.c (show_mips_abi): New function.
8412 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8413 command ``show mips abi''.
8414
6b37567a 84152003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 8416
6b37567a 8417 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 8418 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
8419 more sline entries have been seen for the function.
8420
d3e0a5bf
MC
84212003-02-26 Michael Chastain <mec@shout.net>
8422
8423 * configure: Regenerate with autoconf 000227.
8424
18972eea
MC
84252003-02-26 Michael Chastain <mec@shout.net>
8426
8427 Close PR build/660.
8428 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8429 for old libc5/glibc.
8430 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8431
0bbde931
KW
84322003-02-26 Kris Warkentin <kewarken@qnx.com>
8433
8434 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8435 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8436
27ca5dad
MC
84372003-02-26 Michael Chastain <mec@shout.net>
8438
8439 * configure.in: New variable HAVE_UINTPTR_T.
8440 * configure, config.in: Regenerated.
8441
6f88d630
DJ
84422003-02-26 Daniel Jacobowitz <drow@mvista.com>
8443
8444 Fix PR build/1097.
8445 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8446
b14185ce
AC
84472003-02-25 Andrew Cagney <cagney@redhat.com>
8448
8449 * frame.c (get_prev_frame): Add comment on check for
8450 inside_entry_func. Only check for inside_entry_file when not a
8451 dummy and not a sentinel. Check that the new frame is not inner
8452 to the old frame.
8453
ac2bd0a9
AC
84542003-02-25 Andrew Cagney <cagney@redhat.com>
8455
8456 * frame.c (frame_debug): New variable.
8457 (_initialize_frame): Add "set/show debug frame" command.
8458 (get_prev_frame): When frame_debug, print reason why unwind
8459 failed.
8460
b18a0fd2
MC
84612003-02-25 Michael Chastain <mec@shout.net>
8462
8463 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8464 to avoid uintptr_t definition problems.
8465
22abf04a
DC
84662003-02-25 David Carlton <carlton@math.stanford.edu>
8467
8468 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8469 (SYMBOL_LINKAGE_NAME): Ditto.
8470 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8471 SYMBOL_LINKAGE_NAME.
8472 (struct general_symbol_info): Expand comment.
8473 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8474 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8475 (SYMBOL_MATCHES_REGEXP): Ditto.
8476 * symtab.c (symbol_natural_name): New function.
8477 * objfiles.h: Replace all uses of SYMBOL_NAME by
8478 DEPRECATED_SYMBOL_NAME.
8479 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8480 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8481 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8482 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8483 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8484 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8485 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8486 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8487 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8488 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8489 * ada-exp.y: Ditto.
8490 * ada-exp.y: Update copyright.
8491 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8492 * cp-valprint.c: Ditto.
8493
1a5848f6
JJ
84942003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8495
8496 * infptrace.c (detach): Do not flag error if ptrace detach fails
8497 and errno is set to ESRCH.
8498
7343d46a
AC
84992003-02-24 Andrew Cagney <cagney@redhat.com>
8500
8501 * infptrace.c (udot_info): Change type of udot_off to long. Use
8502 paddr when printing udot_off's value.
8503
49fa1dc2
DC
85042003-02-24 David Carlton <carlton@math.stanford.edu>
8505
8506 * symtab.c (make_symbol_overload_list): Only read in partial
8507 symtabs containing a matching partial symbol.
8508
0fe19209
DC
85092003-02-24 David Carlton <carlton@math.stanford.edu>
8510
8511 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8512 do the comparison, not strcmp.
8513 * symfile.c (compare_psymbols): Ditto.
8514 * defs.h: Declare strcmp_iw_ordered.
8515 * utils.c (strcmp_iw_ordered): New function.
8516
8e3ee7b5
JB
85172003-02-24 Jim Blandy <jimb@redhat.com>
8518
8519 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8520 support, shared libs): Remove my name from here, to better reflect
8521 reality.
8522
7df1a324
KW
85232003-02-24 Kris Warkentin <kewarken@qnx.com>
8524
8525 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8526 (target_ops): Add to_have_continuable_watchpoint.
8527 * target.c (update_current_target): Add INHERIT line for
8528 to_have_continuable_watchpoint.
8529 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8530 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8531 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8532 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8533
d1c76907
EZ
85342003-02-24 Elena Zannoni <ezannoni@redhat.com>
8535
8536 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8537 maintainership.
8538
2610b0bf
KW
85392003-02-24 Kris Warkentin <kewarken@qnx.com>
8540
f46169db
KW
8541 * solib.c (solib_open): Call target defined search function after
8542 failing with solib-search-path.
8543 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8544 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 8545
9a3c34fe
KW
85462003-02-24 Kris Warkentin <kewarken@qnx.com>
8547
f46169db 8548 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 8549
2417dd25
SC
85502003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8551
8552 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8553
b631436b
SC
85542003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8555
8556 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8557 (m68hc11_add_reggroups): New function.
8558 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8559 (m68hc11_gdbarch_init): Install the reggroups.
8560 (_initialize_m68hc11_tdep): Initialize them.
8561
0aa8c1e4
JW
85622003-02-21 James E Wilson <wilson@tuliptree.org>
8563
8564 * MAINTAINERS: Update my email address.
8565
50ceaba5
DC
85662003-02-21 David Carlton <carlton@math.stanford.edu>
8567
8568 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8569
4c2df51b
DJ
85702003-02-21 Daniel Jacobowitz <drow@mvista.com>
8571
8572 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8573 * symtab.h: Add opaque declarations of struct axs_value and
8574 struct agent_expr.
8575 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8576 (struct location_funcs): New type.
8577 (struct symbol): Add "loc" to aux_value.
8578 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8579 * dwarf2read.c: Include "dwarf2expr.h".
8580 (dwarf2_symbol_mark_computed): New function.
8581 (read_func_scope): Use it.
8582 (var_decode_location): New function.
8583 (new_symbol): Use it.
8584 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8585
8586 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8587 (dwarf2expr_h, dwarf2loc_h): New variables.
8588 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8589 (dwarf2expr.o, dwarf2loc.o): New rules.
8590 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8591 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8592 LOC_COMPUTED_ARG.
8593 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8594 * m2-exp.y (yylex): Likewise.
8595 * printcmd.c (address_info, print_frame_args): Likewise.
8596 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8597 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8598 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8599 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8600 * symtab.c (lookup_block_symbol): Likewise.
8601
5784d15e
AF
86022003-02-20 Adam Fedor <fedor@gnu.org>
8603
8604 * symtab.h: Remove objc_specific struct
8605 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8606 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8607 Have language_objc use cplus_specific struct.
8608
d4cad8db
TT
86092003-02-20 Tom Tromey <tromey@redhat.com>
8610
8611 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8612 TYPE_NAME, when printing a String value. PR java/1075.
8613
2f9a90b4
AF
86142003-02-20 Adam Fedor <fedor@gnu.org>
8615
d38074a8 8616 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 8617 * objc-lang.c (find_methods): Make static.
2f9a90b4 8618
6f17862b
CF
86192003-02-20 Christopher Faylor <cgf@redhat.com>
8620
8621 * win32-nat.c (get_image_name): Check return value from
8622 ReadProcessMemory.
8623 (child_xfer_memory): Ditto.
8624
715d1656
AO
86252003-02-20 Alexandre Oliva <aoliva@redhat.com>
8626
8627 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8628 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8629 '${exec_prefix}' (in addition to the expansion thereof) as
8630 relocatable.
8631 * configure: Rebuilt.
8632
b1262a02
DC
86332003-02-20 David Carlton <carlton@math.stanford.edu>
8634
8635 * symtab.c (search_symbols): Revert the search_symbols part of my
8636 2002-12-23 patch. Add comment.
8637
7134143f
DJ
86382002-02-20 Daniel Jacobowitz <drow@mvista.com>
8639
8640 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8641 * dbxread.c (elfstab_build_psymtabs): Don't call
8642 install_minimal_symbols.
8643 (stabsect_build_psymtabs): Likewise.
8644 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8645 earlier.
8646 * somread.c (som_symfile_read): Call install_minimal_symbols
8647 and do_cleanups earlier.
8648 * nlmread.c (nlm_symfile_read): Likewise.
8649 * mdebugread.c (elfmdebug_build_psymtabs): Call
8650 install_minimal_symbols and make appropriate cleanups.
8651
cf466558
KB
86522003-02-20 Kevin Buettner <kevinb@redhat.com>
8653
8654 * solib.c (reload_shared_libraries): New function.
8655 (_initialize_solib): Add callbacks for ``set solib-search-path''
8656 and ``set solib-absolute-prefix''.
8657
de5ad195
DC
86582003-02-20 David Carlton <carlton@math.stanford.edu>
8659
8660 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8661 expand comment.
8662 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8663 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8664 * ada-typeprint.c (ada_typedef_print): Ditto.
8665 * ax-gdb.c (gen_var_ref): Ditto.
8666 * breakpoint.c (print_one_breakpoint): Ditto.
8667 * buildsym.c (finish_block): Ditto.
8668 * c-valprint.c (c_val_print): Ditto.
8669 * expprint.c (print_subexp): Ditto.
8670 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
8671 * infcmd.c (jump_command): Ditto.
8672 * linespec.c (decode_line_2, decode_compound): Ditto.
8673 * maint.c (maintenance_translate_address): Ditto.
8674 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
8675 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8676 Ditto.
8ffd9b1b
AJ
8677 * p-valprint.c (pascal_val_print): Ditto.
8678 * stabsread.c (define_symbol): Ditto.
de5ad195 8679 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
8680 (print_frame_arg_vars, return_command): Ditto.
8681 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8682 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
8683 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8684 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
8685 (rbreak_command): Ditto.
8686 * tracepoint.c (tracepoints_info): Ditto.
8687 * typeprint.c (typedef_print): Ditto.
8688 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
8689 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8690 * ada-typeprint.c: Update Copyright.
8691 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8692 * tracepoint.c, cli/cli-cmds.c: Ditto.
8693
f796e4be
KB
86942003-02-20 Kevin Buettner <kevinb@redhat.com>
8695
8696 * frame.c (generic_unwind_get_saved_register): Make non-static.
8697 * frame.h (generic_unwind_get_saved_register): Declare.
8698 * mips-tdep.c (read_next_frame_reg): Fetch register from
8699 current regcache when frame is NULL.
8700 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8701 that must be NULL.
8702 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8703 instead of frame_register_unwind().
8704
836cc9f4
AC
87052003-02-20 Andrew Cagney <ac131313@redhat.com>
8706
8707 * remote-sim.c (gdbsim_insert_breakpoint)
8708 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8709 code.
8710
501eef12
AC
87112003-02-20 Andrew Cagney <ac131313@redhat.com>
8712
8713 * remote.c (_initialize_remote): Add commands "set/show remote
8714 hardware-watchpoint-limit" and "set/show remote
8715 hardware-breakpoint-limit".
8716 (remote_hw_watchpoint_limit): Initialize to -1.
8717 (remote_hw_breakpoint_limit): Ditto.
8718 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8719
1b6bc7e0
CF
87202003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8721
8722 * coff-pe-read.c: New file - support reading of minimal symbols from a
8723 portable executable using the export table.
8724 * coff-pe-read.h: New file.
8725 * coffread.c: Include coff-pe-read.h.
8726 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8727 debugging symbols found.
8728 * Makefile.in (SFILES): Add coff-pe-read.o.
8729 (coff_pe_read_h): Define.
8730 (COMMON_OBS): Add coff-pe-read.o.
8731 (coffread.o): Add coff_pe_read_h dependency.
8732 (coff-pe-read.o): New target.
8733
fe898f56
DC
87342003-02-19 David Carlton <carlton@math.stanford.edu>
8735
8736 * Makefile.in (SFILES): Add block.c.
8737 (block_h): New.
8738 (COMMON_OBS): Add block.o.
8739 (block.o): New.
8740 (x86-64-tdep.o): Add $(block_h).
8741 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8742 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8743 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8744 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8745 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8746 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8747 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8748 * value.h: Add opaque declaration for struct block.
8749 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8750 * ada-lang.h: Ditto.
8751 * x86-64-tdep.c: #include "block.h"
8752 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8753 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8754 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8755 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8756 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8757 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8758 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8759 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8760 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8761 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8762 * symtab.c (block_function): Ditto.
8763 (contained_in): Ditto.
8764 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8765 block.h. Add opaque declaration for struct block.
8766 * symtab.h: Move block_function and contained_in declarations to
8767 block.h. Add opaque declarations for struct block, struct
8768 blockvector.
8769 (struct block): Move to block.h.
8770 (struct blockvector): Ditto.
8771 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8772 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8773 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8774 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8775 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8776 Ditto.
8777 * block.c: New file.
8778 * block.h: New file.
8779
173345b5
TR
87802003-02-19 Theodore A. Roth <troth@openavr.org>
8781
8782 * avr-tdep.c (avr_extract_return_value): Remove function.
8783 (avr_store_return_value): Remove function.
8784 (avr_extract_struct_value_address): Remove function.
8785 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8786
338ef23d
AC
87872003-02-19 Andrew Cagney <ac131313@redhat.com>
8788
8789 * rs6000-tdep.c: Include "gdb_assert.h".
8790 (registers_e500): Add "acc" and "spefscr".
8791 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8792 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8793 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
8794 really is "r0".
8795 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8796
5412f5f3
KS
87972003-02-18 Keith Seitz <keiths@redhat.com>
8798
8799 * Makefile.in: Add gdbtk-interps.c.
8800
881324eb
KB
88012003-02-18 Kevin Buettner <kevinb@redhat.com>
8802
8803 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8804 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8805
6a2f5abf
AC
88062003-02-18 Andrew Cagney <cagney@redhat.com>
8807
8808 * symtab.h (struct objfile): Add opaque declaration.
8809
54c7009d
EZ
88102003-02-18 Elena Zannoni <ezannoni@redhat.com>
8811
8812 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
8813 * dbxread.c (process_one_symbol): Use last_function_start rather
8814 than function_start_offset to find the real beginning of the
8815 current function. The latter is just the text section offset on
8816 some systems, the former is always the real function start.
54c7009d 8817
7ee6d7eb
AC
88182003-02-17 Andrew Cagney <cagney@redhat.com>
8819
8820 * configure.in: Revert ${target} != ${host}.
8821
2846da9b
AC
88222003-02-17 Andrew Cagney <ac131313@redhat.com>
8823
8824 * configure.in (Makefile): Use the test ${target} != ${host},
8825 instead of the absence of the "nm.h" file, to determine of the
8826 configuration non-native.
8827 * configure: Regenerate.
8ffd9b1b 8828
3b27aeea
EZ
88292003-02-14 Elena Zannoni <ezannoni@redhat.com>
8830
fbe586ae 8831 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
8832
8833 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
8834 conditionalize tui_active test.
8835 (lookup_cmd_1): Ditto.
8836
b0b1c2c0
MK
88372003-02-14 Mark Kettenis <kettenis@gnu.org>
8838
8839 * configure.in: Add check for _etext.
8840 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
8841 available.
8842 * config.in, configure: regenerated.
8843
8f05cde5
DJ
88442003-02-14 Daniel Jacobowitz <drow@mvista.com>
8845
8846 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
8847
021e7609
AC
88482003-02-14 Andrew Cagney <ac131313@redhat.com>
8849
8850 * main.c (tui_version): Delete variable.
8851 (captured_main): When --tui, set interpreter_p to "tui" instead of
8852 enabling tui_version.
8853 * printcmd.c (display_command) [TUI]: Test tui_active instead of
8854 tui_version.
8855 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
8856 * cli/cli-cmds.c (disassemble_command): Ditto.
8857 * defs.h (tui_version): Delete declaration.
8858 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
8859 (tui-interp.o): Add rules.
8860 (SUBDIR_TUI_OBS): Add "tui-interp.o".
8861
e325dcec
CF
88622003-02-14 Christopher Faylor <cgf@redhat.com>
8863
36ffb041 8864 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
8865 just-loaded dll.
8866
c4f90d87
JM
88672003-02-12 Jason Molenda (jmolenda@apple.com)
8868
fbe586ae
RH
8869 * symmisc.c (print_objfile_statistics): Include information about
8870 the number of psymtabs and symtabs in each object file.
c4f90d87 8871
e46e5ccd
KS
88722003-02-13 Keith R Seitz <keiths@redhat.com>
8873
8874 * main.h (struct captured_main_args): Add interpreter_p.
8875 * main.c (captured_main): Initialize interpreter_p from context.
8876 * gdb.c (main): Set interpreter_p argument.
8877 * Makefile.in (gdb.o): Add dependency for interps.h.
8878
fe97fe9c
AC
88792003-02-12 Andrew Cagney <ac131313@redhat.com>
8880
8881 * event-top.c (cli_command_loop): Delete declaration.
8882 (_initialize_event_loop): Delete function setting event_loop_hook.
8883 * event-top.h (cli_command_loop): Declare. Update copyright.
8884 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
8885 * interps.c (current_interp_command_loop): When event_loop_p, call
8886 cli_command_loop.
8887
1cdac4ef
AC
88882003-02-12 Andrew Cagney <ac131313@redhat.com>
8889
8890 * interps.h (interp_command_loop_ftype): Change return type to
8891 void.
8892
48037ead
ML
88932003-02-12 Michal Ludvig <mludvig@suse.cz>
8894
8895 * x86-64-tdep.c (x86_64_extract_return_value)
8896 (x86_64_store_return_value): Use regcache instead of regbuf.
8897 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
8898 * x86-64-linux-nat.c (fill_gregset): Use regcache.
8899
033afc63
AC
89002003-02-11 Andrew Cagney <ac131313@redhat.com>
8901
8902 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
8903 * aclocal.m4: Regenerate.
8904 * configure: Regenerate.
8905
8906 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
8907 TCL_LD_SEARCH_FLAGS.
8908
40d02bca
ML
89092003-02-10 Michal Ludvig <mludvig@suse.cz>
8910
8911 * dwarf2cfi.c: Reindented.
8912
11308a41
AC
89132003-02-09 Andrew Cagney <ac131313@redhat.com>
8914
8915 * interps.c (clear_interpreter_hooks): Convert function definition
8916 to ISO C.
8917
e1c1c0f6
DC
89182003-02-07 David Carlton <carlton@math.stanford.edu>
8919
8920 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8921
ab5d3da6
KB
89222003-02-07 Kevin Buettner <kevinb@redhat.com>
8923
8924 * gdbtypes.h (struct main_type): Move ``length'' field from here...
8925 (struct type): ...to here.
8926 (TYPE_LENGTH): Adjust to reflect different location of ``length''
8927 field.
8928 * gdbtypes.c (make_qualified_type): Set length on newly created type.
8929 (replace_type): Set length on all type variants for a given type.
8930
b8a92b82
AC
89312003-02-07 Andrew Cagney <ac131313@redhat.com>
8932
8933 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
8934 <sys/stat.h>.
8935 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 8936
5cb316ef
AC
89372003-02-06 Andrew Cagney <ac131313@redhat.com>
8938
2555fe1a
AC
8939 * Makefile.in (symm-nat.o): Update dependencies.
8940 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
8941 (lynx-nat.o, ia64-linux-nat.): Ditto.
8942 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
8943 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
8944 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
8945
44270758
AC
8946 * Makefile.in (inflow_h): Define.
8947 (procfs.o, inflow.o, procfs.o): Update dependencies.
8948 * inftarg.c (child_stop): Delete extern declaration of
8949 inferior_process_group. Include "inflow.h".
8950 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
8951 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
8952 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
8953 (our_process_group, inferior_process_group): Extern declarations.
8954
df8f7274
AC
8955 * procfs.c: Include "gdb_assert.h".
8956
5cb316ef
AC
8957 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8958 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
8959 * jv-typeprint.c (java_type_print_base): Ditto.
8960 * typeprint.c (typedef_print): Eliminate STREQ.
8961 * cli/cli-script.c (define_command, define_command): Ditto.
8962 * main.c (captured_main): Ditto.
8963 * values.c (lookup_internalvar): Ditto.
8964 * utils.c (safe_strerror, parse_escape): Eliminate assignment
8965 within `if' conditional.
8966 * linespec.c (decode_line_2): Ditto.
8967 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
8968 (bfd_openw_with_cleanup): Ditto.
8969
2a28ccea
MK
89702003-02-07 Mark Kettenis <kettenis@gnu.org>
8971
8972 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
8973 legacy_extract_return_value and store_return_value to
8974 legacy_return_value.
8975
786b8124
CF
89762003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
8977
8978 * win32-nat.c (get_relocated_section_addrs): New function. Find
8979 section load addresses for symbol handling in relocated DLLs.
8980 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
8981
b871e4ec
FF
89822003-02-05 Fred Fish <fnf@intrinsity.com>
8983
8984 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
8985 '=' and '!='.
8986 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
8987 with '&' and '=='.
8988 (angel_RDI_info): Ditto.
8989 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
8990 with '&' and '!='.
8991 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 8992
4389a95a 89932003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
8994 Keith Seitz <keiths@redhat.com>
8995 Elena Zannoni <ezannoni@redhat.com>
8996 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
8997
8998 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
8999 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9000 (SUBDIR_MI_OBS): Add "mi-interp.o".
9001 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9002 (SFILES): Add "interps.c".
9003 (COMMON_OBS): Add "interps.o".
9004 (interps_h, mi_main_h): Define.
9005 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9006 (mi-main.o, main.o, event-top.o): Update dependencies.
9007 * cli/cli-interp.c: New file.
9008 * interps.h, interps.c: New files.
9009 * top.c: (gdb_init): Don't install the default interpreter, handed
9010 by captured_main.
9011 * main.c: Include "interps.h".
9012 (interpreter_p): Note that it should malloc'ed.
9013 (captured_command_loop): Call current_interp_command_loop.
9014 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9015 xfree and xstrdup when updating interpreter_p. Install the
9016 default interpreter. Add hack to stop mi1's copyright notice
9017 being encoded.
9018 * event-top.h (gdb_setup_readline): Declare.
9019 (gdb_disable_readline): Declare.
9020 * event-top.c: Include "interps.h".
9021 (display_gdb_prompt): Call current_interp_display_prompt_p.
9022 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9023 gdb_stdlog, and gdb_stdtarg.
9024 (_initialize_event_loop): Don't call gdb_setup_readline.
9025 * cli-out.c (cli_out_set_stream): New function.
9026 * cli-out.h (cli_out_set_stream): Declare.
9027
ff3b5810
MK
90282003-02-06 Mark Kettenis <kettenis@gnu.org>
9029
9030 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9031 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9032 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9033 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9034 config/i386/i386v42mp.mt: Removed.
9035
5b729aa5
MK
90362003-02-05 Mark Kettenis <kettenis@gnu.org>
9037
9038 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9039 GDB_OSABI_SOLARIS.
9040
8cc15142
MC
90412003-02-05 Michael Chastain <mec@shout.net>
9042
9043 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9044 2.12.1 and earlier versions.
9045
5aa5d4b9
AC
90462003-02-05 Andrew Cagney <ac131313@redhat.com>
9047
9048 Remove orphaned hosts, targets and files.
9049 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9050 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9051 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9052 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9053 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9054 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9055 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9056 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9057 * config/sparc/tm-sp64sim.h: Delete.
9058 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9059 hosts.
9060 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9061 mips*-dec-mach3* targets.
9062
b68767c1
MC
90632003-02-04 Michael Chastain <mec@shout.net>
9064
9065 * NEWS: Fix typo: sepcifying -> specifying.
9066
5ae7ca1d
MC
90672003-02-04 Michael Chastain <mec@shout.net>
9068
9069 * dwarfread.c: Add documentation on the state of dwarf-1,
9070 looking towards obsoletion.
9071
d08a4280
MC
90722003-02-03 Michael Chastain <mec@shout.net>
9073
9074 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9075 gdb/testsuite/gdb.c++/pr-1023.exp.
9076
e9be73e4
AC
90772003-02-04 Andrew Cagney <ac131313@redhat.com>
9078
9079 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9080 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9081
9082 * utils.c (init_page_info): Delete reference to MPW in comments.
9083 * main.c (captured_main): Delete #ifdef MPW.
9084
05d57f6f
AC
90852003-02-04 Andrew Cagney <ac131313@redhat.com>
9086
8ffd9b1b 9087 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
9088 * monitor.c (monitor_expect): Obsolete reference to m32r.
9089 * configure.tgt: Mark m32r-*-elf* as obsolete.
9090 * MAINTAINERS: Mark m32k as obsolete.
9091 * m32r-rom.c: Obsolete file.
9092 * config/m32r/m32r.mt: Obsolete file.
9093 * config/m32r/tm-m32r.h: Obsolete file.
9094 * m32r-stub.c: Obsolete file.
9095 * m32r-tdep.c: Obsolete file.
9096
8b0e5691
AC
90972003-02-04 Andrew Cagney <ac131313@redhat.com>
9098
9099 * NEWS: Mention that the z8k-zilog-none is obsolete.
9100 * MAINTAINERS: Mark z8k as obsolete.
9101 * configure.tgt: Obsolete the z8k-*-coff* target.
9102 * config/z8k/z8k.mt: Obsolete file.
9103 * config/z8k/tm-z8k.h: Obsolete file.
9104 * z8k-tdep.c: Obsolete file.
9105
67f16606
AC
91062003-02-04 Andrew Cagney <ac131313@redhat.com>
9107
9108 * NEWS: Mention that the mn10200-elf is obsolete.
9109 * configure.tgt: Obsolete mn10200-*-* target.
9110 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9111 mention that the mn10200 is obsolete.
9112 * breakpoint.h: Ditto.
9113 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9114 * config/mn10200/mn10200.mt: Obsolete file.
9115 * config/mn10200/tm-mn10200.h: Obsolete file.
9116 * mn10200-tdep.c: Obsolete file.
9117
fd2299bd
AC
91182003-02-04 Andrew Cagney <ac131313@redhat.com>
9119
9120 * MAINTAINERS: Mark h8500 as obsolete.
9121 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9122 * findvar.c (value_from_register): Ditto.
9123 * h8500-tdep.c: Mark file as obsolete.
9124 * config/h8500/h8500.mt: Ditto.
9125 * config/h8500/tm-h8500.h: Ditto.
9126 * NEWS: Mention that h8500 is obsolete.
9127
eb9a305d
DC
91282003-02-04 David Carlton <carlton@math.stanford.edu>
9129
9130 * objfiles.c (allocate_objfile): Always set name. Add comment at
9131 start of function.
9132 * jv-lang.c (get_dynamics_objfile): Add comment.
9133
406fc7fb
DC
91342003-02-04 David Carlton <carlton@math.stanford.edu>
9135
9136 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9137 * printcmd.c (build_address_symbolic): Replace uses of
9138 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9139 SYMBOL_NAME, and asm_demangle.
9140 Update copyright.
9141
93d91629
DC
91422003-02-04 David Carlton <carlton@math.stanford.edu>
9143
9144 * linespec.c (decode_compound): Extract code into
9145 lookup_prefix_sym.
9146 (lookup_prefix_sym): New function.
9147
1c5cb38e
DC
91482003-02-04 David Carlton <carlton@math.stanford.edu>
9149
9150 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9151 FLOAT_COERCION_BADNESS.
9152 * gdbtypes.c (rank_one_type): Replace all uses of
9153 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9154
0cf824c9
JB
91552003-02-04 Jim Blandy <jimb@redhat.com>
9156
9157 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9158 section, let dwarf_macinfo_section point to it, not
9159 dwarf_loc_section.
9160
a2d356b0
DJ
91612003-02-04 Daniel Jacobowitz <drow@mvista.com>
9162
9163 Pointed out by Anton Blanchard <anton@samba.org>.
9164 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9165 (ppc_linux_at_sigtramp_return_path): Use it.
9166
2de7ced7
DJ
91672003-02-04 Daniel Jacobowitz <drow@mvista.com>
9168
9169 * defs.h (streq): Add prototype.
9170 * utils.c (streq): New function.
9171
9172 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9173 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9174 * mdebugread.c (new_symbol): Likewise.
9175 * stabsread.c (define_symbol): Likewise.
9176 * coffread.c (process_coff_symbol): Likewise.
9177 * dwarfread.c (new_symbol): Likewise.
9178
9179 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9180 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9181 here.
9182 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9183 SYMBOL_INIT_DEMANGLED_NAME.
9184 * objfiles.c: Include "hashtab.h".
9185 (allocate_objfile): Call htab_set_functions_ex for the
9186 demangled_names_hash.
9187 (free_objfile): Call htab_delete for the demangled_names_hash.
9188 * objfiles.h (struct htab): Add declaration.
9189 (struct objfile): Add demangled_names_hash.
9190 * symfile.c: Include "hashtab.h".
9191 (reread_symbols): Call htab_delete for the demangled_names_hash.
9192 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9193 SYMBOL_NAME in the bcache.
9194 * symtab.c: Include "hashtab.h". Update comments.
9195 (create_demangled_names_hash, symbol_set_names): New functions.
9196 (symbol_find_demangled_name): New function, broken out from
9197 symbol_init_demangled_names.
9198 (symbol_init_demangled_names): Use it.
9199 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9200 (SYMBOL_SET_NAMES): New macro.
9201 (symbol_set_names): Add prototype.
9202
15831452
JB
92032003-02-03 Jim Blandy <jimb@redhat.com>
9204
9205 Use a single, consistent representation for an empty minimal
9206 symbol table in an objfile.
9207 * objfiles.c (terminate_minimal_symbol_table): New function.
9208 (allocate_objfile): Call it.
9209 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9210 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 9211 non-NULL.
15831452
JB
9212 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9213 objfile has minimal symbols, compare minimal_symbol_count to zero,
9214 instead of comparing msymbols with NULL.
9215 * objfiles.c (have_minimal_symbols): Same.
9216 * solib-sunos.c (solib_add_common_symbols): Call
9217 terminate_minimal_symbol_table.
9218 * symfile.c (reread_symbols): Same.
8ffd9b1b 9219
ffc65945
KB
92202003-02-03 Kevin Buettner <kevinb@redhat.com>
9221
9222 * s390-tdep.c (s390_address_class_type_flags)
9223 (s390_address_class_type_flags_to_name)
9224 (s390_address_class_name_to_type_flags): New functions.
9225 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9226 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9227
f211c6d4
MS
92282003-02-03 Michael Snyder <msnyder@redhat.com>
9229
9230 * arm-tdep.c: Fix spell-o in comment.
9231
659b0389
ML
92322003-02-03 Michal Ludvig <mludvig@suse.cz>
9233
9234 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9235 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 9236 error messages to contain BFD filename.
659b0389 9237
3b31d625
EZ
92382003-02-02 Elena Zannoni <ezannoni@redhat.com>
9239
997b089a 9240 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
9241 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9242 (do_mixed_source_and_assembly): Use
9243 make_cleanup_ui_out_tuple_begin_end and
9244 make_cleanup_ui_out_tuple_begin_end.
9245 (do_mixed_source_and_assembly): Ditto.
9246 * thread.c (do_captured_list_thread_ids): Ditto.
9247 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9248 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9249 ui_out_tuple_end): Delete prototypes.
9250 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9251 ui_out_list_end, ui_out_tuple_end): Delete.
9252
9253 From Kevin Buettner <kevinb@redhat.com>:
9254 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
9255 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9256 (do_cleanup_table_end): New functions.
9257 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9258 Use cleanups to invoke_ui_out_tuple_end().
9259 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
9260 * cli/cli-setshow.c (cmd_show_list): Use
9261 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 9262
5b181d62
AC
92632003-02-02 Andrew Cagney <ac131313@redhat.com>
9264
9265 * frame.c (frame_unwind_register): New function.
9266 (frame_unwind_unsigned_register): Use.
9267 (frame_unwind_signed_register): Use.
9268 (frame_read_register): New function.
9269 * frame.h (frame_unwind_register): Declare.
9270 (frame_read_register): Declare.
9271
9272 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9273 and frame_unwind_register instead of read_memory, write_register
9274 and deprecated_write_register_bytes.
9275
5f601589
AC
92762003-02-02 Andrew Cagney <ac131313@redhat.com>
9277
9278 * frame.h: Note that namelen can be negative.
9279 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9280 NAME's length.
9281
9282 * NEWS: Mention that the d10v's `regs' command is deprecated.
9283 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9284 (d10v_print_registers_info): New function.
9285 (show_regs): Call d10v_print_registers_info.
9286 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9287
6a3fe0a4
MK
92882003-02-02 Mark Kettenis <kettenis@gnu.org>
9289
9290 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9291 lost in the previous patch.
9292
075559bc
AC
92932003-02-01 Andrew Cagney <ac131313@redhat.com>
9294
9295 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
9296 * stack.c (print_frame_info_base): Output complete FRAME tuple
9297 for synthesized frames.
075559bc 9298
6789195b
AC
92992003-02-02 Andrew Cagney <ac131313@redhat.com>
9300
9301 * mips-nat.c (zerobuf): Delete.
9302 (fetch_inferior_registers): Alloc local zerobuf.
9303 (fetch_core_registers): Alloc local zerobuf.
9304 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9305 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9306 * thread-db.c (thread_db_store_registers): Ditto.
9307 * sh-tdep.c (sh_do_register): Ditto.
9308 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9309 * remote-sim.c (gdbsim_store_register): Ditto.
9310 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9311 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9312 * monitor.c (monitor_supply_register): Ditto.
9313 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9314 * mips-nat.c (fetch_inferior_registers): Ditto.
9315 * m68klinux-nat.c (fetch_register): Ditto.
9316 * lynx-nat.c (fetch_inferior_registers): Ditto.
9317 (fetch_inferior_registers): Ditto.
9318 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9319 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9320 (hpux_thread_store_registers): Ditto.
9321 * hppah-nat.c (fetch_register): Ditto.
9322 * hppab-nat.c (fetch_register): Ditto.
9323 * hppa-tdep.c (pa_register_look_aside): Ditto.
9324 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9325 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9326
e669114a
AC
93272003-02-01 Andrew Cagney <ac131313@redhat.com>
9328
9329 * gdbarch.sh: Explictly specify all method levels. When a
9330 variable with an empty level, provide a non-multi-arch default.
9331 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9332 * gdbarch.h: Re-generate.
9333 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9334 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9335
9a043c1d
AC
93362003-02-01 Andrew Cagney <ac131313@redhat.com>
9337
9338 * defs.h (host_pointer_to_address): Delete declaration.
9339 (address_to_host_pointer): Delete declaration.
9340 * utils.c (host_pointer_to_address): Delete function.
9341 (address_to_host_pointer): Delete function.
9342 * procfs.c (procfs_address_to_host_pointer): New function.
9343 * procfs.c (proc_set_watchpoint): Use.
9344 (procfs_can_use_hw_breakpoint): Update comments.
9345 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9346 (som_solib_add): Use.
9347 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9348 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 9349
7ca9f392
AC
93502003-02-01 Andrew Cagney <ac131313@redhat.com>
9351
94bbfd30
AC
9352 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9353 strlen d_name.
9354
7ca9f392
AC
9355 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9356 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9357 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9358 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9359 (define_symbol): Update.
9360 * symfile.c (generic_load): Remove references to nindy.
9361 * symtab.c: Remove references to nindy.
9362
31a85ea2
AC
93632003-02-01 Andrew Cagney <ac131313@redhat.com>
9364
9365 * infcmd.c (print_float_info): Delete code conditional on
9366 FLOAT_INFO.
9367 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9368 * config/m68k/nm-apollo68b.h: Ditto.
9369 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9370 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9371 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9372
f6e85fc8
MK
93732003-02-01 Mark Kettenis <kettenis@gnu.org>
9374
6015b6a0
MK
9375 * config/i386/tm-i386os9k.h: Removed.
9376
f7a30bdf
MK
9377 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9378 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9379 they're identical to i[3456]86-*-sysv* now.
9380 * config/i386/i386v32.mh: Removed.
9381 * config/i386/xm-i386v32.h: Removed.
9382 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9383
28d52111
MK
9384 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9385
4d3f6bce
MK
9386 * config/i386/i386dgux.mh: Removed.
9387 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9388
f6e85fc8
MK
9389 * configure.in: Fix typo.
9390 * configure: Regenerated.
9391
53955967
DC
93922003-01-31 David Carlton <carlton@math.stanford.edu>
9393
9394 * dwarf2read.c (dwarf2_locate_sections): Set
9395 dwarf_ranges_section.
9396
b1364885
AC
93972003-01-31 Andrew Cagney <ac131313@redhat.com>
9398
8dbb1c65
AC
9399 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9400 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 9401
8731e58e
AC
9402 * utils.c: Re-indent.
9403
b1364885
AC
9404 * config/djgpp/fnchange.lst: Delete nindy files.
9405 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9406 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9407 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9408 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9409 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9410 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9411 * Makefile.in (init.c): Remove nindy references.
9412 (saber_gdb): Delete rule.
9413 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9414 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9415 and a68v-nat.c.
9416 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9417 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9418 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9419 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9420 nindy-share/stop.h.
9421 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9422 * saber.suppress: Delete file.
9423
086df311
DJ
94242003-01-31 Daniel Jacobowitz <drow@mvista.com>
9425
9426 * dbxread.c (stabs_data): New static variable.
9427 (fill_symbuf): Support an in-memory buffer for stabs data.
9428 (stabs_seek): New function.
9429 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9430 (read_ofile_symtab): Use stabs_seek.
9431 (elfstab_build_psymtabs): Take an asection* instead of
9432 an offset and size. Relocate the stabs data if necessary.
9433 Save the section* for dbx_psymtab_to_symtab.
9434 * dwarf2read.c: Add section variables for each debug section.
9435 (dwarf2_locate_sections): Fill them in.
9436 (dwarf2_read_section): Take an asection* argument.
9437 Relocate the section contents if necessary.
9438 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9439 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9440 it to dwarf2_read_section.
9441 (dwarf2_build_frame_info): Update callers.
9442 * elfread.c (elf_symfile_read): Update call to
9443 elfstab_build_psymtabs.
9444 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9445 (DBX_STAB_SECTION): New macro.
8ffd9b1b 9446 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
9447 * symfile.c (symfile_dummy_outputs): New function.
9448 (symfile_relocate_debug_section): New function.
9449 * symfile.h (symfile_relocate_debug_section): Add prototype.
9450
87d1b352
RH
94512003-01-31 Richard Henderson <rth@redhat.com>
9452
9453 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9454 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9455 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9456 * alpha-tdep.c (alpha_register_name): Add "unique".
9457 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9458 (ALPHA_UNIQUE_REGNUM): New.
9459 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9460
c48861fb
AC
94612003-01-31 Andrew Cagney <ac131313@redhat.com>
9462
9463 * README: Remove reference to Ericsson 1800 monitor.
9464 * Makefile.in (remote-es.o): Delete rule.
9465 (ALLDEPFILES): Delete remote-es.c.
9466 * remote-es.c: Delete file.
9467 * config/m68k/es1800.mt: Delete file.
9468 * config/djgpp/fnchange.lst: Update.
9469 * configure.tgt: Delete m68*-ericsson-* target.
9470
d764a824
AF
94712003-01-31 Adam Fedor <fedor@gnu.org>
9472
9473 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9474 Remove duplicate/shadowing variable of same name.
9475
fe36c4f4
JB
94762003-01-30 Jim Blandy <jimb@redhat.com>
9477
9478 * symfile.c (find_separate_debug_file): Assert that the objfile's
9479 directory name we compute ends with a slash, and then assume that
9480 that's so everywhere we use it.
9481
cb741690
DJ
94822003-01-30 Daniel Jacobowitz <drow@mvista.com>
9483
9484 * valops.c (value_assign): Flush frame cache after stores to memory
9485 also.
9486
96ee5227
AC
94872003-01-30 Andrew Cagney <ac131313@redhat.com>
9488
9489 * Makefile.in (mon960-rom.o): Delete rule.
9490 * mon960-rom.c: Delete file.
9491
7f6104a9
AC
94922003-01-30 Andrew Cagney <ac131313@redhat.com>
9493
9494 * d10v-tdep.c: Include "frame-unwind.h".
9495 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9496 list.
9497 (next_addr, uses_frame): Delete.
9498 (struct d10v_unwind_cache): Define.
9499 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9500 Use info instead of next_addr and uses_frame globals.
9501 (d10v_frame_init_saved_regs): Delete function.
9502 (d10v_init_extra_frame_info): Delete function.
9503 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9504 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9505 init_frame_pc or frame_saved_pc.
9506 (d10v_pop_frame): Delete function.
9507 (do_d10v_pop_frame): Delete function.
9508 (d10v_frame_chain): Delete function.
9509 (d10v_frame_chain_valid): Delete function.
9510 (d10v_frame_pc_unwind): New function.
9511 (d10v_frame_id_unwind): New function.
9512 (saved_regs_unwinder): New function.
9513 (d10v_frame_register_unwind): New function.
9514 (d10v_frame_pop): New function.
9515 (d10v_frame_unwind): New variable.
9516 (d10v_frame_p): New function.
9517 (d10v_frame_saved_pc): Delete function.
9518 * Makefile.in (d10v-tdep.o): Update dependencies.
9519
cad2e848
JB
95202003-01-30 J. Brobecker <brobecker@gnat.com>
9521
9522 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9523 causing some regressions due to a change in the default value
9524 for this macro.
9525
af34e669
DJ
95262003-01-29 Richard Henderson <rth@redhat.com>
9527 Elena Zannoni <ezannoni@redhat.com>
9528 Daniel Jacobowitz <drow@mvista.com>
9529
9530 Fix PR gdb/961.
8ffd9b1b 9531 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
9532 variables.
9533 (RANGES_SECTION): New.
9534 (dwarf_ranges_buffer): New variable.
9535 (struct comp_unit_head): Add member "die".
9536 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9537 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9538 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9539 (dwarf2_locate_sections): Likewise.
9540 (dwarf2_build_psymtabs): Read .debug_ranges.
9541 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9542 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9543 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9544 Look for DW_AT_ranges and return the bounding box.
9545
baa93fa6
CF
95462003-01-29 Brian Ford <ford@vss.fsi.com>
9547
9548 * win32-nat.c (cygwin_pid): Removed as unused.
9549 (child_attach): Try fall back to Cygwin pid.
9550
c63f977f
JB
95512003-01-29 Jim Blandy <jimb@redhat.com>
9552
9553 * objfiles.h (struct objfile): Doc fix.
9554
d62d1979
AC
95552003-01-29 Andrew Cagney <ac131313@redhat.com>
9556
9557 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9558 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9559 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9560 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9561 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9562 (FRAME_SAVED_PC): Change to a function with predicate.
9563 * gdbarch.h, gdbarch.c: Re-generate.
9564
1ae18a04
AC
95652003-01-28 Andrew Cagney <ac131313@redhat.com>
9566
52287340
AC
9567 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9568
1ae18a04
AC
9569 * complaints.c (complain): Delete function.
9570 * complaints.h (struct deprecated_complaint): Delete definition.
9571 (complain): Delete declaration.
9572
f2c16bd6
KB
95732003-01-28 Kevin Buettner <kevinb@redhat.com>
9574
9575 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9576 dummy frames.
9577
a94dd1fd
AC
95782003-01-27 Andrew Cagney <ac131313@redhat.com>
9579
9580 * sentinel-frame.h, sentinel-frame.c: New files.
9581 * Makefile.in (frame.o): Update dependencies.
9582 (SFILES): Add sentinel-frame.c.
9583 (sentinel_frame_h): Define.
9584 (COMMON_OBS): Add sentinel-frame.o.
9585 (sentinel-frame.o): Specify dependencies.
9586 * frame.c: Include "sentinel-frame.h".
9587 (frame_register_unwind): Rewrite assuming that there is always a a
9588 ->next frame.
9589 (frame_register, generic_unwind_get_saved_register): Ditto.
9590 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9591 (create_sentinel_frame, unwind_to_current_frame): New functions.
9592 (get_current_frame): Rewrite using create_sentinel_frame and
9593 unwind_to_current_frame. When possible, always create a frame.
9594 (create_new_frame): Set next to the sentinel frame.
9595 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9596 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9597 ID cache when necessary.
9598 (frame_saved_regs_id_unwind): Use frame_relative_level.
9599 (deprecated_generic_get_saved_register): Use frame_relative_level,
9600 get_frame_saved_regs, get_frame_pc, get_frame_base and
9601 get_next_frame.
9602 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9603 frame_register.
9604
5378adc4
DJ
96052003-01-27 Daniel Jacobowitz <drow@mvista.com>
9606
9607 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9608
51ee2ddc
DJ
96092003-01-27 Daniel Jacobowitz <drow@mvista.com>
9610
9611 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9612 (maintenance_set_profile_cmd): Use error () instead of warning ().
9613
d9feb4e7
DJ
96142003-01-27 Daniel Jacobowitz <drow@mvista.com>
9615
9616 * configure.in: Check that -pg works if using --enable-profiling.
9617 Check for monstartup and _mcleanup regardless of --enable-profiling.
9618 * maint.c: Check for monstartup and _mcleanup before using them.
9619 * config.in: Regenerated.
9620 * configure: Regenerated.
9621
2d188dd3
NC
96222003-01-24 Nick Clifton <nickc@redhat.com>
9623
9624 * Add sh2e support:
9625
9626 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9627
9628 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9629 (sh2e_show_regs): New.
9630 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9631 * config/sh/tm-sh.h: Added sh2e to comments.
9632
cb3c37b2
JB
96332003-01-23 Jim Blandy <jimb@redhat.com>
9634
9635 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9636 symbols found)" message here; we haven't checked for a separate
9637 debug info file yet, so we don't know yet.
9638 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9639 we've looked everywhere. Also, there's no need to print a special
9640 message when we're loading the separate debug info file: the one
9641 symbol_file_add prints is fine.
9642
5b5d99cf
JB
96432003-01-23 Alexander Larsson <alexl@redhat.com>
9644 Jim Blandy <jimb@redhat.com>
9645
9646 Add support for executables whose debug info has been separated
9647 out into a separate file, leaving only a link behind.
9648 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9649 and separate_debug_objfile_backlink.
9650 (put_objfile_before): New declaration.
9651 * symfile.c: #include "filenames.h".
9652 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9653 debug info in a separate file, read that, too. Save the addrs
9654 argument, so we can use it again to read the separated debug info;
9655 syms_from_objfile modifies the table we pass it.
9656 (reread_symbols): After re-reading an objfile, call
9657 reread_separate_symbols to refresh its separate debug info
9658 objfile, if it has one.
9659 (reread_separate_symbols, find_separate_debug_file,
9660 get_debug_link_info, separate_debug_file_exists): New functions.
9661 (debug_file_directory): New global var.
9662 (_initialize_symfile): Initialize debug_file_directory, and
9663 provide the new `set debug-file-directory' command to let the user
9664 change it.
9665 * objfiles.c (free_objfile): If this objfile has its debug info in
9666 a separate objfile, free that one too. If this is itself a
9667 separate debug info objfile, clear our parent's backlink.
9668 (put_objfile_before): New function.
9669 * utils.c (gnu_debuglink_crc32): New function.
9670 * defs.h (gnu_debuglink_crc32): New declaration.
9671 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9672 * configure.in: Handle --with-separate-debug-dir config option.
9673 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9674 * acconfig.h (DEBUGDIR): New macro.
9675 * configure, aclocal.m4, config.in: Regenerated.
9676
7e8580c1
JB
96772003-01-22 Jim Blandy <jimb@redhat.com>
9678
7904e09f
JB
9679 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9680 like the old symbol_file_add, but taking new arguments: you can
9681 now pass in either a `struct section_addr_info' list to say where
9682 each section is loaded, or a `struct section_offsets' table. Pass
9683 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 9684 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
9685 with the appropriate quiescent values for the new arguments.
9686
7e8580c1
JB
9687 * symfile.c: #include "gdb_assert.h".
9688 (syms_from_objfile): Add the ability to pass in a section offset
9689 table directly, as an alternative to the section_addr_info table.
9690 Document arguments better.
9691 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9692 * symfile.h (syms_from_objfile): Update declaration.
9693 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9694 syms_from_objfile.
9695 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9696
d28f9cdf
DJ
96972003-01-22 Daniel Jacobowitz <drow@mvista.com>
9698
9699 Original patch by Tom Tromey <tromey@cygnus.com> and
9700 Jason Molenda <jmolenda@apple.com>.
9701 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9702 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9703 * NEWS: Mention profiling.
9704 * configure.in (--enable-gdbtk): Fix typo.
9705 (--enable-profiling): New. Set PROFILE_CFLAGS.
9706 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9707 Fill in function.
9708 (profiling_state): New variable.
9709 (mcleanup_wrapper): New function.
9710 (_initialize_maint): Remove NOTYET, fix call to
9711 add_setshow_boolean_cmd for "maint set profile".
9712 * configure: Regenerated.
9713
df21e465
MH
97142003-01-21 Martin M. Hunt <hunt@redhat.com>
9715
9716 * Makefile.in (install-gdbtk): Install PNG images too.
9717
73c1f219
AC
97182003-01-21 Andrew Cagney <ac131313@redhat.com>
9719
9720 * exec.c (text_start): Delete global variable.
9721 (exec_file_attach): Make text_start local to the function.
9722 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9723 * valops.c (hand_function_call): Delete code that handles
9724 BEFORE_TEXT_END and AFTER_TEXT_END.
9725 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9726 of CALL_DUMMY_LOCATION.
9727 * gdbarch.c: Regenerate.
9728 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9729 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9730 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9731 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9732 (text_end): Delete extern declaration.
9733
eb4f72c5
AC
97342003-01-21 Andrew Cagney <ac131313@redhat.com>
9735
9736 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9737 * blockframe.c (backtrace_below_main): Move to "frame.c".
9738 (frame_chain_valid): Delete check for backtrace_below_main.
9739 (_initialize_blockframe): Delete initialization, move ``set
9740 backtrace-below-main'' command to "frame.c".
9741 (do_flush_frames_sfunc): Delete function.
9742 * frame.c: Include "command.h" and "gdbcmd.h".
9743 (frame_type_from_pc): New function.
9744 (create_new_frame): Use frame_type_from_pc.
9745 (legacy_get_prev_frame): New function.
9746 (get_prev_frame): Rewrite. When an old style frame, call
9747 legacy_get_prev_frame. Otherwize, unwind the PC first.
9748 (_initialize_frame): Add ``set backtrace-below-main'' command.
9749 * Makefile.in (frame.o): Update dependencies.
9750
778ce8cc
AC
97512003-01-19 Andrew Cagney <ac131313@redhat.com>
9752
9753 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9754 DEPRECATED_REGISTERS_INFO.
9755
01c193c8
AC
97562003-01-19 Andrew Cagney <ac131313@redhat.com>
9757
9758 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9759 Maintainers'. Update `Various Maintainers'.
9760
dedc2a2b
AC
97612003-01-19 Andrew Cagney <ac131313@redhat.com>
9762
9763 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9764 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9765 Suppress actual parameters when `-'.
9766 * gdbarch.h, gdbarch.c: Regenerate.
9767
b7261c70
AC
97682003-01-19 Andrew Cagney <ac131313@redhat.com>
9769
9770 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9771 code handling dummy frames.
9772
dbe9fe58
AC
97732003-01-19 Andrew Cagney <ac131313@redhat.com>
9774
9775 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9776 (struct frame_unwind): Add field pop.
9777 * frame.h (frame_pop): Declare.
9778 * frame.c (frame_saved_regs_pop): New function.
9779 (trad_frame_unwinder): Add frame_saved_regs_pop.
9780 (frame_pop): New function.
9781 * dummy-frame.c (dummy_frame_pop): New function.
9782 (discard_innermost_dummy): New function.
9783 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9784 (dummy_frame_unwind): Add dummy_frame_pop.
9785 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9786 * valops.c (hand_function_call): Ditto.
9787 * stack.c (return_command): Ditto.
9788
570b8f7c
AC
97892003-01-18 Andrew Cagney <ac131313@redhat.com>
9790
9791 * cris-tdep.c: Fix function declaration indentation.
9792 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9793 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9794 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9795 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9796 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9797 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9798
97992003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
9800
9801 * README (Unpacking and Installation -- quick overview):
9802 Warn against ".../gdb-5.3/gdb/configure".
9803
494cca16
AC
98042003-01-18 Andrew Cagney <ac131313@redhat.com>
9805
9806 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9807 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9808 (struct frame_unwind): Declare opaque.
9809 (dummy_frame_p): Declare function.
9810 * dummy-frame.c (dummy_frame_id_unwind): Make static.
9811 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9812 * dummy-frame.c: Include "frame-unwind.h".
9813 (dummy_frame_p): New function.
9814 (dummy_frame_unwind): New variable.
9815 * frame.c: Include "frame-unwind.h".
9816 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
9817 to use the new unwind field.
9818 (set_unwind_by_pc): Delete function.
9819 (create_new_frame, get_prev_frame): Set unwind field using
9820 frame_unwind_find_by_pc.
9821 (trad_frame_unwind, trad_frame_unwinder): New variables.
9822 * frame.h (trad_frame_unwind): Declare variable.
9823 (frame_id_unwind_ftype): Delete declaration.
9824 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
9825 (struct frame_unwind): Declare opaque.
9826 (struct frame_info): Replace the fields id_unwind, pc_unwind and
9827 register_unwind with a single unwind pointer.
9828 * frame-unwind.h, frame-unwind.c: New files.
9829 * Makefile.in (SFILES): Add frame-unwind.c.
9830 (frame_unwind_h): Define.
9831 (COMMON_OBS): Add frame-unwind.o.
9832 (frame-unwind.o): Specify dependencies.
9833 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 9834
4efb68b1
AC
98352003-01-18 Andrew Cagney <ac131313@redhat.com>
9836
9837 * ada-valprint.c: Eliminate PTR.
9838 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
9839 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
9840 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
9841 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
9842 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
9843 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
9844 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 9845
a84d24ee
AC
98462003-01-17 Andrew Cagney <ac131313@redhat.com>
9847
762f08a3
AC
9848 * main.c (captured_main): Don't use PTR.
9849 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
9850 * gdbtypes.c (lookup_primitive_typename): Ditto.
9851 (lookup_struct_elt_type): Ditto.
9852 * f-valprint.c (info_common_command): Ditto.
9853 (list_all_visible_commons): Ditto.
9854 * jv-typeprint.c (java_type_print_base): Ditto.
9855
a84d24ee
AC
9856 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
9857 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
9858 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
9859 i386-interix-nat.c and i386-interix-tdep.c. Rename
9860 m68klinux-nat.c and m68klinux-tdep.c. Rename
9861 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
9862 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
9863 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
9864 * main.c (captured_main): Use xfree, not free.
9865
c170fb60
AC
98662003-01-16 Andrew Cagney <ac131313@redhat.com>
9867
9868 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
9869 ID back using a parameter.
9870 * frame.c (frame_id_unwind): Update call.
9871 (frame_saved_regs_id_unwind): Update.
9872 * dummy-frame.c (dummy_frame_id_unwind): Update function.
9873 * dummy-frame.h (struct frame_id): Add opaque declaration.
9874 (dummy_frame_id_unwind): Update declaration.
9875
867f3898
AC
98762003-01-15 Andrew Cagney <ac131313@redhat.com>
9877
9878 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
9879
40622be8 98802003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 9881
40622be8 9882 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 9883
ae66c1fc
EZ
98842003-01-14 Elena Zannoni <ezannoni@redhat.com>
9885
997b089a 9886 Fix PR gdb/898
ae66c1fc
EZ
9887 * breakpoint.c (until_break_command): Add new argument. Use it to
9888 decide whether to stop only at the current frame or not.
9889 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 9890 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
9891 call.
9892 (advance_command): New function.
9893 (_initialize_infcmd): Update help string for 'until' command.
9894 Add new 'advance' command.
9895
a04257e6
DC
98962003-01-14 David Carlton <carlton@math.stanford.edu>
9897
9898 * linespec.c (decode_line_1): Normalize comments.
9899 (set_flags): Ditto.
9900 (locate_first_half): Ditto.
9901 (decode_compound): Ditto.
9902 (symtab_from_filename): Ditto.
9903 (decode_all_digits): Ditto.
9904 (decode_dollar): Ditto.
9905 (find_methods): Ditto.
9906 (find_toplevel_char): Ditto.
9907
1bac305b
AC
99082003-01-13 Andrew Cagney <ac131313@redhat.com>
9909
9910 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
9911 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
9912 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
9913 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
9914 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
9915 * language.c, language.h, m32r-tdep.c: Update copyright.
9916 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
9917 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
9918 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
9919 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
9920 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9921 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
9922
25caa7a8
EZ
99232003-01-13 Elena Zannoni <ezannoni@redhat.com>
9924
9925 * stabsread.h (process_later, resolve_cfront_continuation):
9926 Obsolete.
9927 Update copyright years.
9928 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
9929 Update copyright year.
9930 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 9931 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
9932 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
9933 Update copyright year.
9934 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
9935 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
9936 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
9937 (parse_partial_symbols): Obsolete cfront support.
9938 * stabsread.c
9939 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
9940 macros.
9941 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
9942 read_cfront_baseclasses, read_cfront_member_functions,
9943 resolve_cfront_continuation,read_cfront_static_fields,
9944 copy_cfront_struct_fields): Obsolete functions.
9945 (define_symbol, read_one_struct_field): Obsolete cfront support.
9946 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
9947 Update Copyright year.
9948
7789c6f5
EZ
99492003-01-13 Elena Zannoni <ezannoni@redhat.com>
9950
9951 * stack.c (print_frame_info, print_stack_frame_base_stub,
9952 print_stack_frame_base, show_and_print_stack_frame_stub,
9953 show_and_print_stack_frame, print_only_stack_frame_stub,
9954 print_only_stack_frame): Delete functions.
9955 (print_stack_frame_stub): Call print_frame_info instead of
9956 print_frame_info_base.
9957 (print_frame_info_base): Rename to print_frame_info.
9958 (backtrace_command_1): Call print_frame_info, instead of
9959 print_frame_info_base.
9960 (current_frame_command): Call print_stack_frame, instead of
9961 print_only_stack_frame.
9962 (frame_command): Call print_stack_frame, instead of
9963 show_and_print_stack_frame.
9964 (up_command): Ditto.
9965 (down_command): Ditto.
9966 * frame.h (print_only_stack_frame): Delete prototype.
9967 * infrun.c (normal_stop): Call print_stack_frame, instead of
9968 show_and_print_stack_frame.
9969 * thread.c (info_threads_command): Call print_stack_frame, instead
9970 of print_only_stack_frame.
9971
3f5a3016
AC
99722003-01-13 Andrew Cagney <ac131313@redhat.com>
9973
d99ba314
AC
9974 * README (Graphical interface to GDB): Update URL. Point at
9975 gdb/links/.
9976
3f5a3016
AC
9977 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
9978 version match.
9979
083ae935
DJ
99802003-01-13 Daniel Jacobowitz <drow@mvista.com>
9981
9982 * symtab.c (find_pc_sect_line): Don't consider end-of-function
9983 lines.
9984
5365276c
DJ
99852003-01-13 Daniel Jacobowitz <drow@mvista.com>
9986
9987 * thread-db.c (attach_thread): Prototype.
9988 (struct private_thread_info): Remove lwpid. Add thread handle (th),
9989 thread information (ti), and valid flags (th_valid, ti_valid).
9990 (attach_thread): Move target_pid_to_str call to after the thread
9991 is added to GDB's list. Initialize the cache.
9992 (thread_get_info_callback, thread_db_map_id2thr)
9993 (thread_db_get_info): New functions.
9994 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
9995 (thread_db_store_registers, thread_db_thread_alive)
9996 (thread_db_get_thread_local_address): Use them.
9997 (thread_db_pid_to_str): Likewise. Return "Missing" instead
9998 of calling error() for threads in unknown state.
9999
10000 (clear_lwpid_callback): New function.
10001 (thread_db_resume): Use it to clear the cache.
10002
9fc30b6b
DJ
100032003-01-13 Daniel Jacobowitz <drow@mvista.com>
10004
10005 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10006 (resume_callback): Remove dead code.
10007
8f871025
AC
100082003-01-13 Andrew Cagney <ac131313@redhat.com>
10009
10010 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10011 predicate.
10012 * gdbarch.h, gdbarch.c: Regenerate.
10013 * stack.c (frame_info): Only initialize the saved registers when
10014 FRAME_INIT_SAVED_REGS_P.
10015 * frame.c (frame_saved_regs_register_unwind): Assert
10016 FRAME_INIT_SAVED_REGS_P.
10017 (deprecated_generic_get_saved_register): Ditto.
10018
3f565f1e
DJ
100192003-01-13 Daniel Jacobowitz <drow@mvista.com>
10020
10021 * source.c (openp): Squelch warning about "filename".
10022
072b1022
DJ
100232003-01-13 Daniel Jacobowitz <drow@mvista.com>
10024
10025 * source.c (openp): If the file does not exist don't necessarily
10026 search the path.
10027
973ccf8b
DJ
100282003-01-13 Daniel Jacobowitz <drow@mvista.com>
10029
10030 Fix PR gdb/872.
10031 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10032 (integer_types_same_name_p): New function.
10033 (rank_one_type): Use it.
10034 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10035
030292b7
DJ
100362003-01-13 Daniel Jacobowitz <drow@mvista.com>
10037
10038 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10039 variables.
10040 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10041 * configure.in: Add --with-sysroot.
10042 * configure: Regenerated.
10043 * main.c (gdb_sysroot): New variable.
10044 (captured_main): Initialize gdb_sysroot.
10045 * defs.h (gdb_sysroot): New extern declaration.
10046 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10047
afb5d334
MC
100482003-01-12 Michael Chastain <mec@shout.net>
10049
10050 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10051
751ceeb4
MC
100522003-01-12 Michael Chastain <mec@shout.net>
10053
10054 * top.c (print_gdb_version): Bump copyright year to 2003.
10055
94cd26f8
DC
100562003-01-12 David Carlton <carlton@bactrian.org>
10057
10058 * linespec.c (symtab_from_filename): Rename variable 's' to
10059 'file_symtab'.
10060
1ce79225
AC
100612003-01-12 Andrew Cagney <ac131313@redhat.com>
10062
10063 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10064 dummy frame.
10065 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10066
fa1fd571
AC
100672003-01-12 Andrew Cagney <ac131313@redhat.com>
10068
10069 * d10v-tdep.c: Include "gdb_assert.h".
10070 (d10v_store_return_value): Rewrite to match current interface.
10071 (d10v_extract_struct_value_address): Ditto.
10072 (d10v_extract_return_value): Ditto.
10073 (d10v_gdbarch_init): Set store_restore_value,
10074 extract_struct_value_address and extract_return_value.
10075
68b8d23e
JB
100762003-01-12 J. Brobecker <brobecker@gnat.com>
10077
10078 * hpread.c (set_namestring): New procedure replacing the
10079 SET_NAMESTRING macro.
10080 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10081 by calls to set_namestring.
10082
100832003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
10084
10085 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10086 a compilation warning.
10087 (hpread_process_one_debug_symbol): Likewise.
10088
88d262ca
DC
100892003-01-10 David Carlton <carlton@math.stanford.edu>
10090
10091 * linespec.c (decode_line_1): Rename variable 's' to
10092 'file_symtab'.
10093 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10094 (decode_dollar): Ditto.
10095 (decode_variable): Ditto.
10096 (symbol_found): Ditto.
10097
86669319
MC
100982003-01-09 Michael Chastain <mec@shout.net>
10099
10100 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10101
616a9dc4
CV
101022003-01-07 Corinna Vinschen <vinschen@redhat.com>
10103
10104 * win32-nat.c (set_process_privilege): New function.
10105 (child_attach): Call set_process_privilege() to enable the
10106 SE_DEBUG_NAME user privilege if available in process token.
10107
3269bcfa
JB
101082003-01-10 J. Brobecker <brobecker@gnat.com>
10109
10110 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10111 compilation error in the previous revision.
10112
2b0ee454
DC
101132003-01-09 David Carlton <carlton@math.stanford.edu>
10114
10115 * linespec.c: Update copyright.
10116
b3ba1b44
DJ
101172003-01-09 Daniel Jacobowitz <drow@mvista.com>
10118
10119 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10120 than inferior_ptid.
10121 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10122
4ef3f3be
AC
101232003-01-09 Andrew Cagney <ac131313@redhat.com>
10124
479ab5a0
AC
10125 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10126 Update comments.
10127 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10128 (frame_saved_regs_zalloc): Update.
10129 (frame_saved_regs_register_unwind): Update.
10130 (create_new_frame): Update.
10131 (get_prev_frame): Update.
10132 (frame_extra_info_zalloc): Update.
10133 (deprecated_get_frame_saved_regs): Update.
10134 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10135 * cris-tdep.c: Update comment.
10136
bde58177
AC
10137 * somsolib.h: Fix function indentation.
10138 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10139 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10140 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10141 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10142 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10143
4ef3f3be
AC
10144 * infrun.c (follow_fork): Use ISO C definition.
10145 * expprint.c (print_subexp): Use xfree instead of free.
10146 * charset.c: Include "gdb_string.h" instead of <string.h>.
10147 (register_iconv_charsets): Use ISO C definition.
10148 (host_charset, target_charset): Ditto.
10149 * Makefile.in (charset.o): Update dependencies.
10150 (mi-cmd-env.o): Update dependencies.
10151
1c615f7a
AC
101522003-01-08 Andrew Cagney <cagney@redhat.com>
10153
10154 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10155 get_frame_base.
10156
c9a1dc08
AC
101572003-01-08 Andrew Cagney <ac131313@redhat.com>
10158
10159 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10160 build directories. Save edited gdb output in Mbuild.log. If a
10161 build fails, remove any final GDB executable.
10162
dbad9d94
AC
101632003-01-08 Andrew Cagney <ac131313@redhat.com>
10164
10165 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10166 replacing hex constants with function names and stripping leading
10167 file name directory prefixes.
10168
8d357cca
AC
101692003-01-08 Andrew Cagney <cagney@redhat.com>
10170
10171 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10172 get_frame_base.
10173
bca02a8a
DC
101742003-01-08 David Carlton <carlton@math.stanford.edu>
10175
10176 * linespec.c (decode_line_1): Move code into decode_variable.
10177 (decode_variable): New function.
10178
7f8ab3a0
AC
101792003-01-08 Andrew Cagney <ac131313@redhat.com>
10180
10181 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10182
7b5849cc
AC
101832003-01-08 Andrew Cagney <cagney@redhat.com>
10184
10185 * cris-tdep.c (cris_frame_init_saved_regs): Use
10186 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10187 saved_regs buffer.
10188 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10189 (sh64_nofp_frame_init_saved_regs): Ditto.
10190 (sh_fp_frame_init_saved_regs): Ditto.
10191 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10192 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10193 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10194 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10195
72a5efb3
DJ
101962003-01-08 Daniel Jacobowitz <drow@mvista.com>
10197
10198 * minsyms.c (lookup_minimal_symbol): Update comment.
10199 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10200 (lookup_minimal_symbol_solib_trampoline): Likewise.
10201
11c02a10
AC
102022003-01-08 Andrew Cagney <cagney@redhat.com>
10203
aab3ea25
AC
10204 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10205 frame_relative_level.
10206
da50a4b7
AC
10207 * alpha-tdep.c: Use get_frame_extra_info.
10208 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10209 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10210 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10211 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10212
11c02a10
AC
10213 * alpha-tdep.c: Use get_next_frame.
10214 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10215 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10216 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10217 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10218 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10219 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10220 * xstormy16-tdep.c: Ditto.
8ffd9b1b 10221
1e2330ba
AC
102222003-01-07 Andrew Cagney <cagney@redhat.com>
10223
10224 * alpha-tdep.c: Use get_frame_base.
10225 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10226 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10227 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10228 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10229 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10230 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10231 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10232 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 10233
2d75187b
AC
102342003-01-07 Andrew Cagney <cagney@redhat.com>
10235
10236 * frame.c (deprecated_get_frame_context): New function.
10237 (deprecated_set_frame_context): New function.
10238 * frame.h (deprecated_get_frame_context): Declare.
10239 (deprecated_set_frame_context): Declare.
10240 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10241 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 10242
483d36b2
AC
102432003-01-07 Andrew Cagney <cagney@redhat.com>
10244
10245 * frame.c (deprecated_set_frame_next_hack): New function.
10246 (deprecated_set_frame_prev_hack): New function.
10247 * frame.h (deprecated_set_frame_next_hack): Declare.
10248 (deprecated_set_frame_prev_hack): Declare.
10249 * mcore-tdep.c (analyze_dummy_frame): Use
10250 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10251 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10252
14e91ac5
DC
102532003-01-07 David Carlton <carlton@math.stanford.edu>
10254
10255 * linespec.c (decode_line_1): Move code into decode_dollar.
10256 (decode_dollar): New function.
10257
b0c6b05c
AC
102582003-01-07 Andrew Cagney <cagney@redhat.com>
10259
10260 * arm-tdep.c (arm_init_extra_frame_info): Use
10261 deprecated_update_frame_base_hack.
10262 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10263 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10264 (fix_frame_pointer): Ditto.
10265 (mn10300_analyze_prologue): Ditto.
10266
a00a19e9
AC
102672003-01-07 Andrew Cagney <cagney@redhat.com>
10268
10269 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10270 extra_info using frame_extra_info_zalloc.
10271 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10272 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10273 (sh64_init_extra_frame_info): Ditto.
10274 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10275 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10276 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10277 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10278 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10279 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10280 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10281 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10282 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10283 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10284 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10285 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10286
10287 * mn10300-tdep.c (analyze_dummy_frame): Use
10288 deprecated_set_frame_extra_info_hack.
10289 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10290
1fb4c65b
JB
102912003-01-07 J. Brobecker <brobecker@gnat.com>
10292
10293 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10294 class is not scText. These do not define "real" procedures.
10295 (parse_partial_symbols): Likewise.
10296
9fe7d6bf
MS
102972003-01-06 Michael Snyder <msnyder@redhat.com>
10298
10299 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10300
f6c609c4
AC
103012003-01-06 Andrew Cagney <ac131313@redhat.com>
10302
10303 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10304 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10305 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10306 deprecated_frame_xmalloc_with_cleanup.
10307 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10308 deprecated_frame_xmalloc.
10309 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10310 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10311
d995ff4b
AC
103122003-01-06 Andrew Cagney <cagney@redhat.com>
10313
84dc46cb
AC
10314 * x86-64-linux-tdep.c: Include "osabi.h".
10315 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10316
d995ff4b
AC
10317 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10318
66140c26
AC
103192003-01-06 Andrew Cagney <cagney@redhat.com>
10320
10321 * MAINTAINERS (Target Instruction Set Architectures): Update
10322 arm-elf. Can be built with -Werror, has been multiarched.
10323
10324 * value.h (unpack_long): Make buffer parameter constant.
10325 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10326 * scm-lang.h (scm_parse): Ditto.
10327 * defs.h (extract_typed_address, extract_address): Ditto.
10328 (extract_long_unsigned_integer): Ditto.
10329 * inferior.h (unsigned_pointer_to_address): Ditto.
10330 (signed_pointer_to_address): Ditto.
10331 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10332 * gdbarch.h, gdbarch.c: Regenerate.
10333 * findvar.c (extract_long_unsigned_integer): Update.
10334 (extract_address): Update.
10335 (extract_typed_address): Update.
10336 (unsigned_pointer_to_address): Update.
10337 * values.c (unpack_long): Update.
10338 (unpack_double): Update.
10339 (unpack_pointer): Update.
10340 (unpack_field_as_long): Update.
10341 * d10v-tdep.c (d10v_pointer_to_address): Update.
10342 * avr-tdep.c (avr_pointer_to_address): Update.
10343 * scm-lang.c (scm_unpack): Update.
10344 * findvar.c (signed_pointer_to_address): Update.
10345
b089b3da
ML
103462003-01-06 Michal Ludvig <mludvig@suse.cz>
10347
8ffd9b1b 10348 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
10349 since it is in i386-tdep.c.
10350
aff87235
JB
103512003-01-06 J. Brobecker <brobecker@gnat.com>
10352
10353 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10354 failure introduced in the previous change.
10355
34f5e845
MC
103562003-01-05 Michael Chastain <mec@shout.net>
10357
10358 * README: Remove references to deleted remote-*.c files:
10359 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10360 remote-nrom.c, remote-os9k.c, remote-udi.c.
10361
28bcfd30
MK
103622003-01-05 Mark Kettenis <kettenis@gnu.org>
10363
10364 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10365 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10366 i386_get_longjmp_target.
10367
15a5b3ee
AC
103682003-01-05 Andrew Cagney <ac131313@redhat.com>
10369
10370 * arm-tdep.c (prologue_cache): Change to a pointer.
10371 (_initialize_arm_tdep): Allocate prologue_cache.
10372 (check_prologue_cache): Update.
10373 (save_prologue_cache): Update.
10374 (arm_gdbarch_init): Update.
10375
c263362b
DJ
103762003-01-04 Daniel Jacobowitz <drow@mvista.com>
10377
10378 * stabsread.c (update_method_name_from_physname): Call complaint()
10379 instead of error.
10380
51603483
DJ
103812003-01-04 Daniel Jacobowitz <drow@mvista.com>
10382
10383 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10384 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10385 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10386
10387 * blockframe.c: Include "gdbcmd.h" and "command.h".
10388 (backtrace_below_main): New variable.
10389 (file_frame_chain_valid, func_frame_chain_valid)
10390 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10391 (generic_func_frame_chain_valid): Remove functions.
10392 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10393 (_initialize_blockframe): New function.
10394 * Makefile.in (blockframe.o): Update dependencies.
10395 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10396 comment. Call frame_chain_valid ().
10397 * frame.h: Remove old prototypes. Add prototype for
10398 frame_chain_valid and update comments to match.
10399 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10400 Remove old comment.
10401 * gdbarch.h: Regenerated.
10402 * gdbarch.c: Regenerated.
10403
10404 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10405 set_gdbarch_frame_chain_valid.
10406 * avr-tdep.c (avr_gdbarch_init): Likewise.
10407 * cris-tdep.c (cris_gdbarch_init): Likewise.
10408 * frv-tdep.c (frv_gdbarch_init): Likewise.
10409 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10410 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10411 (i386_nw_init_abi): Likewise.
10412 (i386_gdbarch_init): Likewise.
10413 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10414 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10415 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10416 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10417 * mips-tdep.c (mips_gdbarch_init): Likewise.
10418 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10419 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10420 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10421 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10422 * s390-tdep.c (s390_gdbarch_init): Likewise.
10423 * sh-tdep.c (sh_gdbarch_init): Likewise.
10424 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10425 * v850-tdep.c (v850_gdbarch_init): Likewise.
10426 * vax-tdep.c (vax_gdbarch_init): Likewise.
10427 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10428
10429 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10430 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10431 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10432 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10433 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10434 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10435 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10436 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10437
b00a8037
DJ
104382002-01-04 Daniel Jacobowitz <drow@mvista.com>
10439
10440 * Makefile.in (acconfig_h): Remove incorrect macro.
10441 (config_h): Define.
10442 (osabi.o): Update dependencies.
10443 * configure.tgt: Set gdb_osabi based on target triplet.
10444 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10445 * configure: Regenerated.
10446 * config.in: Regenerated.
10447 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10448 (GDB_OSABI_DEFAULT): Define if not already defined.
10449 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10450 (set_osabi_string): New variables.
10451 (gdbarch_register_osabi): Add new OS ABI to
10452 gdb_osabi_available_names.
10453 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10454 (set_osabi, show_osabi): New functions.
10455 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10456
4be87837
DJ
104572003-01-04 Daniel Jacobowitz <drow@mvista.com>
10458
10459 * arch-utils.c (gdbarch_info_init): Set osabi to
10460 GDB_OSABI_UNINITIALIZED.
10461 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10462 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10463 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10464 * gdbarch.c: Regenerated.
10465 * gdbarch.h: Regenerated.
10466 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10467 there's no BFD.
10468 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10469 * osabi.h (enum gdb_osabi): Move to defs.h.
10470 (gdbarch_init_osabi): Update prototype.
10471 * defs.h (enum gdb_osabi): Moved here.
10472 * Makefile.in: Update dependencies.
10473
10474 * alpha-tdep.h: Don't include "osabi.h".
10475 (struct gdbarch_tdep): Remove osabi member.
10476 * alpha-tdep.c: Include "osabi.h".
10477 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10478 iterate over arches. Update call to gdbarch_init_osabi.
10479 (alpha_dump_tdep): Don't dump osabi.
10480 * alpha-linux-tdep.c: Include "osabi.h".
10481 * alpha-osf1-tdep.c: Include "osabi.h".
10482 * alphafbsd-tdep.c: Include "osabi.h".
10483 * alphanbsd-tdep.c: Include "osabi.h".
10484
10485 * arm-tdep.h: Don't include "osabi.h".
10486 (struct gdbarch_tdep): Remove osabi member.
10487 * arm-tdep.c: Include "osabi.h".
10488 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10489 iterate over arches. Update call to gdbarch_init_osabi.
10490 (arm_dump_tdep): Don't dump osabi.
10491 * arm-linux-tdep.c: Include "osabi.h".
10492 * armnbsd-tdep.c: Include "osabi.h".
10493
10494 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10495 Update call to gdbarch_init_osabi.
10496
10497 * i386-tdep.h: Don't include "osabi.h".
10498 (struct gdbarch_tdep): Remove osabi member.
10499 * i386-tdep.c: Include "osabi.h".
10500 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10501 iterate over arches. Update call to gdbarch_init_osabi.
10502 (i386_dump_tdep): Don't dump osabi.
10503 * i386-linux-tdep.c: Include "osabi.h".
10504 * i386-sol2-tdep.c: Include "osabi.h".
10505 * i386bsd-tdep.c: Include "osabi.h".
10506 * i386gnu-tdep.c: Include "osabi.h".
10507 * i386ly-tdep.c: Include "osabi.h".
10508 * i386nbsd-tdep.c: Include "osabi.h".
10509 * i386obsd-tdep.c: Include "osabi.h".
10510
10511 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10512 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10513 check osabi when iterating over arches. Update call to
10514 gdbarch_init_osabi.
10515 (mips_dump_tdep): Don't dump osabi.
10516
10517 * ns32k-tdep.h: Don't include "osabi.h".
10518 (struct gdbarch_tdep): Remove.
10519 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10520 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10521 allocate tdep. Update call to gdbarch_init_osabi.
10522 (ns32k_dump_tdep): Remove.
10523 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10524 * ns32knbsd-tdep.c: Include "osabi.h".
10525
10526 * ppc-tdep.h: Don't include "osabi.h".
10527 (struct gdbarch_tdep): Remove osabi member.
10528 * rs6000-tdep.c: Include "osabi.h".
10529 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10530 osabi when iterating over arches. Update call to
10531 gdbarch_init_osabi.
10532 (rs6000_dump_tdep): Don't dump osabi.
10533 * ppc-linux-tdep.c: Include "osabi.h".
10534 * ppcnbsd-tdep.c: Include "osabi.h".
10535
10536 * sh-tdep.h: Don't include "osabi.h".
10537 (struct gdbarch_tdep): Remove osabi member.
10538 * sh-tdep.c: Include "osabi.h".
10539 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10540 iterate over arches. Update call to gdbarch_init_osabi.
10541 (sh_dump_tdep): Don't dump osabi.
10542 * shnbsd-tdep.c: Include "osabi.h".
10543
10544 * sparc-tdep.c: Include "osabi.h".
10545 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10546 iterate over arches. Update call to gdbarch_init_osabi.
10547 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10548 tdep structure.
10549
10550 * vax-tdep.h: Don't include "osabi.h".
10551 (struct gdbarch_tdep): Remove.
10552 * vax-tdep.c: Include "osabi.h".
10553 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10554 iterate over arches. Don't allocate tdep. Update call
10555 to gdbarch_init_osabi.
10556 (vax_dump_tdep): Remove.
10557 (_initialize_vax_tdep): Update call to gdbarch_register.
10558
a881cf8e
DJ
105592003-01-04 Daniel Jacobowitz <drow@mvista.com>
10560
10561 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10562 entirely.
10563 (breakpoint_re_set_one): Don't fetch the value for a disabled
10564 watchpoint.
10565
1e698235
DJ
105662003-01-04 Daniel Jacobowitz <drow@mvista.com>
10567
10568 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10569 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10570 (COERCE_FLOAT_TO_DOUBLE): Remove.
10571 * gdbarch.c: Regenerate.
10572 * gdbarch.h: Regenerate.
10573 * Makefile.in: Remove value_h from gdbarch_h.
10574 * valops.c (coerce_float_to_double): New variable.
10575 (default_coerce_float_to_double): Remove.
10576 (standard_coerce_float_to_double): Remove.
10577 (value_arg_coerce): Use coerce_float_to_double.
10578 (_initialize_valops): Add "set coerce-float-to-double".
10579 * value.h (default_coerce_float_to_double): Remove prototype.
10580 (standard_coerce_float_to_double): Remove prototype.
10581
10582 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10583 prototyped.
10584 * mdebugread.c (parse_symbol): Likewise.
10585 * stabsread.c (define_symbol): Mark all functions as prototyped.
10586
10587 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10588 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10589 set_gdbarch_coerce_float_to_double.
10590 * arm-tdep.c (arm_gdbarch_init): Likewise.
10591 * frv-tdep.c (frv_gdbarch_init): Likewise.
10592 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10593 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10594 * mips-tdep.c (mips_gdbarch_init): Likewise.
10595 (mips_coerce_float_to_double): Remove.
10596 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10597 (rs6000_coerce_float_to_double): Remove.
10598 * s390-tdep.c (s390_gdbarch_init): Likewise.
10599 * sh-tdep.c (sh_gdbarch_init): Likewise.
10600 (sh_coerce_float_to_double): Remove.
10601 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10602 (sparc_coerce_float_to_double): Remove.
10603 * v850-tdep.c (v850_gdbarch_init): Likewise.
10604 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10605 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10606 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10607 (hppa_coerce_float_to_double): Remove prototype.
10608 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10609
f436a26a
DJ
106102003-01-04 Daniel Jacobowitz <drow@mvista.com>
10611
10612 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10613
248f8055
DJ
106142003-01-04 Daniel Jacobowitz <drow@mvista.com>
10615
10616 Suggested by Stewart Brown <sb24@avaya.com>:
10617 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10618 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10619 (c_type_print_varspec_suffix): Likewise.
10620
72cfdc76
MK
106212003-01-04 Mark Kettenis <kettenis@gnu.org>
10622
bfd260bb
MK
10623 * configure.in: Don't set and AC_SUBST SUBDIRS.
10624 * configure: Regenerated.
10625
72cfdc76
MK
10626 * configure.in: Remove code dealing with shared libraries.
10627 * Makefile.in: Remove HLDFLAGS and HLDENV.
10628 * configure: Regenerated.
10629
c8b8a898
AC
106302003-01-04 Andrew Cagney <ac131313@redhat.com>
10631
10632 * frame.c (deprecated_frame_xmalloc): New function.
10633 (deprecated_set_frame_saved_regs_hack): New function.
10634 (deprecated_set_frame_extra_info_hack): New function.
10635 * frame.h (deprecated_frame_xmalloc): Declare.
10636 (deprecated_set_frame_saved_regs_hack): Declare.
10637 (deprecated_set_frame_extra_info_hack): Declare.
10638
14abd0fb
MK
106392003-01-04 Mark Kettenis <kettenis@gnu.org>
10640
8ee53726
MK
10641 * configure.in: Move code that provides the --enable-gdbtk option
10642 right after the code that handles the --enable-tui option, and
10643 polish it somewhat.
10644 * configure: Regenerated.
10645
14abd0fb
MK
10646 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10647 AC_CHECK_FUNCS and remove the old check for pread64.
10648 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10649 * acconfig.h (_GNU_SOURCE): Add.
10650 (HAVE_PREAD64): Remove.
10651 * configure, aclocal.m4, config.in: Regenerated.
10652
b2fb4676
AC
106532003-01-03 Andrew Cagney <ac131313@redhat.com>
10654
10655 * alpha-tdep.c: Use get_frame_saved_regs.
10656 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10657 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10658 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10659 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10660 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10661
8dcde887
MK
106622003-01-03 Mark Kettenis <kettenis@gnu.org>
10663
10664 * configure.in: Remove all use of the SUBDIRS variable; add
10665 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10666 code providing the --enable-multi-ice option, and move it right in
10667 front of the code that checks whether gdbserver is supported.
10668 Polish that too.
10669 * configure: Regenerated.
10670 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10671 @SUBDIRS@.
10672
8ccd593b
AC
106732003-01-03 Andrew Cagney <cagney@redhat.com>
10674
10675 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10676 * avr-tdep.c, cris-tdep.c: Ditto.
10677 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10678 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 10679
91151a06
MK
106802003-01-03 Mark Kettenis <kettenis@gnu.org>
10681
10682 * configure.in: Remove --enable-netrom option.
10683 * configure: Regenerated.
10684
8fe84d01
MK
106852003-01-03 Mark Kettenis <kettenis@gnu.org>
10686
10687 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10688 declaration for `struct re_pattern_buffer' instead.
10689 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10690
f0394be6
JB
106912003-01-03 J. Brobecker <brobecker@gnat.com>
10692
10693 * mdebugread.c (parse_symbol): Count until the stEnd matching
10694 the structure name.
10695
27e9bf90
MK
106962003-01-02 Mark Kettenis <kettenis@gnu.org>
10697
93d331ba
MK
10698 * configure.in: Remove --with-cpu option.
10699 subscripts. Remove evil changequotes here.
10700 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10701 * config.in, configure: Regenerated.
8ffd9b1b 10702
27e9bf90
MK
10703 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10704 * configure.in: Cleanup section that sources GDB and BFD configure
10705 subscripts. Remove evil changequotes here.
10706 * config.in, configure: Regenerated.
10707
50abf9e5
AC
107082003-01-02 Andrew Cagney <ac131313@redhat.com>
10709
10710 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10711 frame accessor methods.
10712 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10713 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10714 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10715 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10716 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10717 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10718 * z8k-tdep.c: Ditto.
8ffd9b1b 10719
287c1a40
MK
107202003-01-02 Mark Kettenis <kettenis@gnu.org>
10721
f5dbc56d
MK
10722 * configure.in: Remove UI_OUT configuration code.
10723 * ada-lang.c: Update assuming UI_OUT is always true.
10724 * Makefile.in (UIOUT_CFLAGS): Remove.
10725 * configure: Regenerated.
10726 * TODO: Remove blurb about elimination of -DUI_OUT.
10727
627af7ea
MK
10728 * configure.in: Move code that provides the --enable-gdbcli,
10729 --enable-gdbmi options right before the code that handles the
10730 --enable-tui option. Polish a bit.
10731 * configure: Regenerated.
10732
06825bd1
MK
10733 * configure.in: Rewrite check for GNU regex and the
10734 --without-included regex option, and move it into the "Checks for
10735 library functions" section. This makes us use the system regex
10736 again by default on systems with version 2 of the GNU C library.
10737 This was apparently broken.
10738 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10739 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10740 * config.in, configure: Regenerated.
10741
287c1a40
MK
10742 * configure.in: Move code that provides the --enable-tui option
10743 before the "Checks for libraries" section. Polish the code
10744 somewhat and set need_curses to yes if we build the TUI. Rewrite
10745 code that looks for a library providing termcap functionality to
10746 match more closely what's done in the Readline library, and move
10747 it into to the "Checks for libraries" section.
10748 * configure: Regenerated.
10749 * Makefile.in (TERMCAP): Remove variable.
10750 * config/i386/go32.mh (TERMCAP): Remove variable.
10751
684e56bf
AC
107522003-01-02 Andrew Cagney <ac131313@redhat.com>
10753
10754 * MAINTAINERS: Mention gdb_mbuild.sh.
10755 * gdb_mbuild.sh: Rewrite.
10756
e1ea1d75
MK
107572003-01-02 Mark Kettenis <kettenis@gnu.org>
10758
10759 * configure.in: Fix typo in last change.
10760 * config.in, configure: Regenerated.
10761
1b831c93
AC
107622003-01-02 Andrew Cagney <ac131313@redhat.com>
10763
10764 * valarith.c (value_binop): Delete obsolete code and comments.
10765 * configure.host: Ditto.
10766 * buildsym.h (make_blockvector): Ditto.
10767 * buildsym.c (make_blockvector): Ditto.
10768 * defs.h (enum language): Ditto.
10769 (chill_demangle): Ditto.
10770 * elfread.c (elf_symtab_read): Ditto.
10771 * dwarfread.c (CHILL_PRODUCER): Ditto.
10772 (set_cu_language): Ditto.
10773 (handle_producer): Ditto.
10774 * expprint.c (print_subexp): Ditto.
10775 * gdbtypes.c (chill_varying_type): Ditto.
10776 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10777 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10778 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10779 (chill_varying_type): Ditto.
10780 * language.h (_LANG_chill): Ditto.
10781 * language.c (binop_result_type, integral_type): Ditto.
10782 (character_type, string_type, structured_type): Ditto.
10783 (lang_bool_type, binop_type_check): Ditto.
10784 * stabsread.h (os9k_stabs): Ditto.
10785 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10786 (define_symbol, read_type, read_struct_fields): Ditto.
10787 (read_array_type, read_enum_type, read_huge_number): Ditto.
10788 (read_range_type, start_stabs): Ditto.
10789 * symfile.c (init_filename_language_table): Ditto.
10790 (add_psymbol_with_dem_name_to_list): Ditto.
10791 * symtab.c (symbol_init_language_specific): Ditto.
10792 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10793 * symtab.h (struct general_symbol_info): Ditto.
10794 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10795 * typeprint.c (typedef_print): Ditto.
10796 * utils.c (fprintf_symbol_filtered): Ditto.
10797 * valops.c (value_cast, search_struct_field, value_slice): Delete
10798 obsolete code.
10799 (varying_to_slice): Delete function.
10800 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10801 (varying_to_slice): Delete declaration.
10802 * MAINTAINERS: Update.
10803
8bb2c122
MK
108042003-01-02 Mark Kettenis <kettenis@gnu.org>
10805
97bf5e38
MK
10806 * configure.in: Reorganize "Checks for library functions section"
10807 a bit. Remove check for `btowc' and `isascii' functions.
10808 * configure: Regenerated.
10809
5ee754fc
MK
10810 * acconfig.h (_MSE_INT_H): Remove.
10811 * configure.in: Create "Checks for header files" section, and move
10812 appropriate tests there. Don't check for objlist.h, wchar.h,
10813 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
10814 misdetection fix. Also add "Checks for types", "Checks for
10815 compiler characteristics" and "Checks for library functions"
10816 sections.
10817 * config.in, configure: Regenerated.
10818
8bb2c122
MK
10819 * configure.in: Create "Checks for programs" section, and move
10820 appropriate tests there.
10821
9a156167
MK
108222003-01-01 Mark Kettenis <kettenis@gnu.org>
10823
10824 * configure.in: Create "Checks for libraries" section, and move
10825 appropriate tests there. Cleanup check for wctype in libw. Use
10826 AC_SEARCH_LIBS to see whether we need libsocket.
10827 * configure: Regenerated.
10828
a80e2bcb 10829For older changes see ChangeLog-2002
c906108c
SS
10830\f
10831Local Variables:
10832mode: change-log
10833left-margin: 8
10834fill-column: 74
10835version-control: never
10836End:
This page took 0.922806 seconds and 4 git commands to generate.