2003-08-18 Michael Chastain <mec@shout.net>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-08-18 Michael Chastain <mec@shout.net>
2
3 * PROBLEMS: Document pr gdb/1322, the Java anonymous
4 objfile bug.
5
6 2003-08-24 Mark Kettenis <kettenis@gnu.org>
7
8 * i387-tdep.h: Update copyright date.
9 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
10
11 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
12 CFLAGS games to reflect reality.
13
14 2003-08-24 Andrew Cagney <cagney@redhat.com>
15
16 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
17 GDB_MULTI_ARCH is always non-zero.
18 * osabi.c (_initialize_gdb_osabi): Ditto.
19 (gdbarch_init_osabi): Ditto.
20 * sparc-tdep.c: Ditto for #if code.
21
22 2003-08-23 Mark Kettenis <kettenis@gnu.org>
23
24 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
25 Update comments.
26 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
27 comments.
28 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
29 x86_64_supply_fxsave.
30 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
31 x86_64_supply_fxsave.
32 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
33 x86_64_supply_fxsave.
34
35 2003-08-23 Andreas Jaeger <aj@suse.de>
36
37 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
38 i387_supply_fxsave.
39
40 2003-08-23 Mark Kettenis <kettenis@gnu.org>
41
42 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
43 i387_supply_register.
44 (go32_fetch_registers): Adjust call to i387_supply_fsave.
45 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
46 i387_supply_fsave.
47 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
48 i387_supply_fxsave.
49 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
50 i387_supply_fsave.
51 * i386bsd-nat.c (supply_fpregset): Adjust call to
52 i387_supply_fsave.
53 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
54 call to i387_supply_fxsave. Call i387_supply_fsave instead of
55 supply_fpregset.
56 (store_inferior_registers): Remove extraneous whitespace. Call
57 i387_fill_fsave instead of fill_fpregset.
58 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
59 (supply_fpregset): Likewise.
60 * i386v4-nat.c (supply_fpregset): Adjust call to
61 i387_supply_fsave.
62 * i386-interix-nat.c (supply_fpregset): Adjust call to
63 i387_supply_fsave.
64 * i386-linux-nat.c (supply_fpregset): Adjust call to
65 i387_supply_fsave.
66 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
67 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
68 i387supply_fsave and i387_supply_fxsave.
69 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
70 Incorporate code from `i387_supply_register.
71 (i387_supply_register): Remove.
72 (i387_supply_fxsave): Add `regnum' argument.
73 Update comments.
74 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
75 prototype.
76 (i387_supply_register): remove prototype.
77 Update comments.
78
79 2003-08-22 Michael Chastain <mec@shout.net>
80
81 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
82 Add lines for files in gdb/testsuite/gdb.cp/* that are
83 still not 8.3 unique.
84
85 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
86
87 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
88 TYPE_VPTR_FIELDNO is valid.
89
90 2003-08-19 Mark Kettenis <kettenis@gnu.org>
91
92 * utils.c (set_width_command): Remove prototypes.
93 (set_screen_size): New prototype.
94 (init_page_info): Simplify by fetching the screen size from
95 Readline. Call set_screen_size.
96 (set_screen_size): New function.
97 (set_width): Add missing whitespace in comment.
98 (set_width_command): Call set_screen_size.
99 (set_height_command): New function.
100 (initialize_utils): Fix formatting. Make "set height" command
101 call set_height_command. Remove redundant code that turns off
102 pagination if output isn't a terminal. Remove redundant call to
103 set_width_command.
104
105 2003-08-22 Mark Kettenis <kettenis@gnu.org>
106
107 * sparc64-tdep.h (sparc64_regnum): Fix comment.
108 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
109 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
110 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
111 `case' keyword.
112 (sparc64_register_info): Give the reister with number
113 SPARC64_STATE_REGNUM a name.
114 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
115 %asi and %ccr.
116 (sparc64_push_dummy_call): Take BIAS into account when checking
117 stcak alignment.
118 (sparc_software_single_step): Remove assertions that check whether
119 NPC and NNPC were zero.
120 (sparc_supply_rwindow): Make public. Merge functionality with
121 sparc64_supply_rwindow.
122 (sparc_fill_rwindow): Make public. Merge functionality with
123 sparc64_fill_rwindow.
124 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
125 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
126 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
127 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
128 sparc_supply_rwindow instead of sparc64_supply_rwindow.
129
130 * reggroups.c: Add whitespace after declarations of local
131 variables in functions.
132
133 2003-08-21 Michael Chastain <mec@shout.net>
134
135 * gdbtypes.h: Change array bound type from an int to enum.
136
137 2003-08-21 Andrew Cagney <cagney@redhat.com>
138
139 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
140 * config/sparc/tm-sparc.h: Ditto.
141 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
142 unconditionally.
143 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
144
145 2003-07-13 Mark Kettenis <kettenis@gnu.org>
146
147 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
148 (register_objfile_data, set_objfile_data, objfile_data): New
149 prototypes.
150 * objfiles.c (objfile_alloc_data, objfile_free_data): New
151 prototypes.
152 (allocate_objfile): Call objfile_alloc_data.
153 (free_objfile): Call objfile_free_data.
154 (struct objfile_data): New.
155 (struct objfile_data_registration): New.
156 (struct objfile_data_registry): New.
157 (objfile_data_registry): New variable.
158 (register_objfile_data): New function.
159 (objfile_alloc_data, objfile_free_data): New functions.
160 (set_objfile_data, objfile_data): New functions.
161 * dwarf2-frame.c (dwarf2_frame_data): New variable.
162 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
163 (_initialize_dwarf2_frame): New function and prototype.
164
165 2003-08-21 Andrew Cagney <cagney@redhat.com>
166
167 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
168 a specific architecture.
169 * arch-utils.h (set_architecture_from_arch_mach): Delete
170 declaration.
171 (target_architecture_hook): Delete declaration.
172 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
173 (default_float_format): Assume GDB_MULTI_ARCH.
174 (default_double_format): Assume GDB_MULTI_ARCH.
175 (set_endian_from_file): Delete function.
176 (arch_ok): Delete function.
177 (set_arch): Delete function.
178 (set_architecture_from_arch_mach): Delete function.
179 (set_architecture_from_file): Delete function.
180 (set_architecture): Assume GDB_MULTI_ARCH.
181 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
182
183 2003-08-21 Mark Kettenis <kettenis@gnu.org>
184
185 Rewrite FreeBSD/sparc64 native configuration.
186 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
187 * sparc64fbsd-nat.c: New file.
188 * sparc64fbsd-tdep.c: New file.
189 * sparc64-tdep.c sparc64-tdep.h: New files.
190 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
191 sparc64fbsd-tdep.o): New dependencies.
192 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
193 and sparc64fbsd-tdep.c.
194 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
195 * config/sparc/fbsd.mh: Remove copyright notice.
196 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
197 sparcbsd-nat.o.
198 * config/sparc/fbsd.mt: Remove copyright notice.
199 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
200 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
201 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
202 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
203 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
204 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
205 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
206 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
207 "sparc/tm-sp64.h".
208 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
209 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
210
211 2003-08-21 Michael Chastain <mec@shout.net>
212
213 * symtab.h: Add doco on the space critical structures and
214 some measurements of space usage.
215
216 2003-08-21 Michael Snyder <msnyder@redhat.com>
217
218 * tracepoint.c (trace_dump_command): Trace break address
219 is subject to DECR_PC_AFTER_BREAK.
220 (set_traceframe_context): Make "trace_line" an int.
221 Fixes suggested by Mark Newman <mark.newman@lmco.com>
222
223 2003-08-20 Michael Snyder <msnyder@redhat.com>
224
225 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
226 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
227 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
228 argument passing.
229 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
230 functions, replace sh_push_dummy_call.
231 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
232
233 2003-08-20 Michael Chastain <mec@shout.net>
234
235 * gdbtypes.h (struct main_type): Rearrange to save space.
236
237 2003-08-20 Michael Snyder <msnyder@redhat.com>
238
239 * trad-frame.c: Comment typo fix.
240
241 2003-08-20 Michael Snyder <msnyder@redhat.com>
242 Kevin Buettner <kevinb@redhat.com>
243
244 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
245 (frv_frame_init_saved_regs): Add declaration.
246 (frame_extra_info): Add new field ``saved_regs''.
247 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
248 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
249 Update frame related code.
250 (frv_extract_struct_value_address): Adjust formatting.
251 * Makefile.in (frv-tdep.o): Update dependencies.
252 * config/frv/tm-frv.h (target_insert_watchpoint)
253 (target_remove_watchpoint, target_insert_hw_breakpoint)
254 (target_remove_hw_breakpoint): Delete these macros.
255 (remote_insert_watchpoint, remote_remove_watchpoint)
256 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
257 these declarations.
258
259 2003-08-20 Michael Chastain <mec@shout.net>
260
261 * defs.h (ENUM_BITFIELD): New macro.
262 * symtab.h (ENUM_BITFIELD): Use it.
263 (BYTE_BITFIELD): Remove old macro, which was already disabled.
264
265 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
266
267 * MAINTAINERS (write after approval): Add myself.
268
269 2003-08-18 Andrew Cagney <cagney@redhat.com>
270
271 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
272 * gdbarch.h, gdbarch.c: Re-generate.
273 * infcall.c (call_function_by_hand): Adjust the SP by
274 frame_red_zone_size before allocating any stack space.
275 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
276 * x86-64-tdep.c (x86_64_frame_align): New function.
277 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
278
279 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
280 Remove code adjusting SP so that it skips over the Red Zone.
281
282 2003-08-18 Mark Kettenis <kettenis@gnu.org>
283
284 * NEWS (New native configurations): Mention FreeBSD/amd64.
285
286 2003-08-18 Andrew Cagney <cagney@redhat.com>
287
288 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
289 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
290 "m68k_frame_p".
291 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
292
293 2003-08-18 Mark Kettenis <kettenis@gnu.org>
294
295 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
296
297 2003-08-18 Michal Ludvig <mludvig@suse.cz>
298
299 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
300 Define.
301 * i386-linux-nat.c: Include "linux-nat.h".
302 (child_post_startup_inferior): New function.
303
304 2003-08-18 Mark Kettenis <kettenis@gnu.org>
305
306 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
307 at the start of a frameless function. This probably fixes PR
308 backtrace/1338.
309
310 2003-08-17 Michael Chastain <mec@shout.net>
311
312 * symfile.c (find_sym_fns): Remove special case for apollo target.
313
314 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
315
316 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
317 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
318 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
319 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
320 (linux_supports_tracevforkdone): New function.
321 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
322 TRACEVFORKDONE.
323 (child_follow_fork): Handle vfork.
324 (linux_handle_extended_wait): Likewise. Also handle exec.
325 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
326 * NEWS: Mention fork tracing.
327
328 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
329
330 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
331
332 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
333
334 * Makefile.in (i386-linux-nat.o): Update dependencies.
335 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
336 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
337 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
338 * i386-linux-nat.c: Include "linux-nat.h".
339 (child_post_startup_inferior): New function.
340 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
341 * infptrace.c (kill_inferior): Wrap in #ifdef.
342 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
343 attaching to each LWP.
344 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
345 (init_lin_lwp_ops): Fill in some more operations.
346 * linux-nat.h (linux_enable_event_reporting)
347 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
348 prototypes.
349 * linux-nat.c (linux_enable_event_reporting): New function.
350 (child_post_attach, linux_child_post_startup_inferior)
351 (child_post_startup_inferior, child_follow_fork)
352 (linux_handle_extended_wait, kill_inferior): New functions.
353
354 2003-08-16 Andrew Cagney <cagney@redhat.com>
355
356 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
357 * gdbarch.h, gdbarch.c: Re-generate.
358
359 2003-08-16 Mark Kettenis <kettenis@gnu.org>
360
361 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
362
363 2003-08-16 Andrew Cagney <cagney@redhat.com>
364
365 * NEWS: Mention that "set prompt-escape-char" was deleted.
366 * top.c (get_prompt_1): Delete function.
367 (gdb_prompt_escape):
368 (init_main): Do not clear "gdb_prompt_escape". Delete "set
369 prompt-escape-char" command.
370 (MAX_PROMPT_SIZE): Delete macro.
371 (get_prompt): Simplify, do not call get_prompt_1.
372
373 2003-08-16 Andrew Cagney <cagney@redhat.com>
374
375 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
376 -Werror. -Wformat-nonliteral problems.
377
378 2003-08-15 J. Brobecker <brobecker@gnat.com>
379
380 Further multiarching work mostly for hppa64-*-hpux11:
381 * hppa-tdep.h: New file.
382 * hppa-tdep.c: #include hppa-tdep.c.
383 (hppa32_num_regs): Renamed from hppa_num_regs.
384 (hppa64_num_regs): New constant.
385 (hppa64_call_dummy_breakpoint_offset): New constant.
386 (hppa32_call_dummy_length): New constant.
387 (hppa64_call_dummy_length): New constant.
388 (hppa32_stack_align): Make name 32bit explicit.
389 (hppa32_register_virtual_type): Likewise.
390 (hppa32_extract_return_value): Likewise.
391 (hppa32_use_struct_convention): Likewise.
392 (hppa32_store_return_value): Likewise.
393 (hppa64_register_virtual_type): New function.
394 (hppa64_extract_return_value): New function.
395 (hppa64_use_struct_convention): New function.
396 (hppa64_store_return_value): New function.
397 (hppa_frame_locals_address): Remove declaration, function does
398 not exist anymore.
399 (hppa_register_byte): Add support for PA64 ABI.
400 (hppa_gdbarch_init): Add support for PA64 ABI.
401 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
402 Make name 32bit explicit.
403 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
404 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
405 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
406 (hppa64_hpux_frame_base_before_sigtramp): New function.
407 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
408 * config/pa/tm-hppa64.h: Remove macros that are no longer
409 necessary now that the gdbarch vector is properly setup.
410 Transform some macros into function calls. Some minor cleanup.
411 * config/pa/tm-hppah.h: Update function calls in macros
412 following the function renaming in hppa-hpux-tdep.c.
413 * Makefile.in (hppa_tdep_h): New variable.
414 (hppa-tdep.o): Add dependency over hppa_tdep_h.
415
416 2003-08-14 Michael Snyder <msnyder@redhat.com>
417
418 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
419
420 2003-08-13 J. Brobecker <brobecker@gnat.com>
421
422 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
423 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
424 routine.
425
426 2003-08-13 Michael Snyder <msnyder@redhat.com>
427
428 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
429 (frv_saved_pc_after_call): Use deprecated ftype.
430 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
431 (frv_remote_translate_xfer_address): Remove.
432 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
433
434 2003-08-13 J. Brobecker <brobecker@gnat.com>
435
436 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
437 initialization after the common gdbarch initialization, not before.
438
439 2003-08-13 J. Brobecker <brobecker@gnat.com>
440
441 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
442 (ADDR_BITS_REMOVE): Remove, redundant.
443
444 2003-08-13 J. Brobecker <brobecker@gnat.com>
445
446 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
447 gdbarch method to clear the 2 low bits of text addresses.
448
449 2003-08-12 Andrew Cagney <cagney@redhat.com>
450
451 * Makefile.in (dsrec.o): Update dependencies.
452 * dsrec.c: Include "gdb_assert.h".
453 (make_srec): Use snprintf instead of sprintf, use a literal format
454 string.
455
456 2003-08-12 Andrew Cagney <cagney@redhat.com>
457
458 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
459 FRAME_OBSTACK_ZALLOC.
460
461 2003-08-12 Kevin Buettner <kevinb@redhat.com>
462
463 * i386-tdep.c (i386_gdbarch_init): Enable default support for
464 SSE registers.
465
466 2003-08-10 Mark Kettenis <kettenis@gnu.org>
467
468 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
469 amd64fbsd_sc_reg_offset): Add extern declarations.
470 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
471 declarations.
472
473 2003-08-11 Ben Elliston <bje@wasabisystems.com>
474
475 * MAINTAINERS (write after approval): Update my mail address.
476
477 2003-08-10 Andrew Cagney <cagney@redhat.com>
478
479 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
480
481 2003-08-10 Mark Kettenis <kettenis@gnu.org>
482
483 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
484 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
485 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
486 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
487 i386bsd_sc_reg_offset): Add extern declarations.
488 * i386obsd-nat.c: Include "i386-tdep.h"
489 (_initialize_i386obsd_nat): Remove extern declarations.
490 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
491 declarations.
492 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
493 declarations.
494
495 * i386-tdep.c (i386_register_to_value): Use get_frame_register
496 instead of frame_read_register.
497 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
498 instead of frame_read_register. Use I386_ESP_REGNUM instead of
499 SP_REGNUM.
500 (i386_frame_prev_register): Use frame_unwind_register_unsigned
501 instead of frame_unwind_unsigned_register. Use
502 I386_EFLAGS_REGISTER instead of PS_REGNUM.
503 (i386_get_longjmp_target): Use regcache_read_unsigned_register
504 instead of read_register. Use builtin_type_void_data_ptr instead
505 of builtin_type_void_func_ptr when extracting the address of the
506 jmp_buf.
507 (i386_extract_return_value, i386_store_return_value,
508 i386_pseudo_register_read, i386_pseudo_register_write): Use
509 register_size instead REGISTER_RAW_SIZE.
510
511 2003-08-10 Andrew Cagney <cagney@redhat.com>
512
513 * infcall.c (call_function_by_hand): Use xstrprintf instead of
514 sprintf. Make "name" constant.
515
516 2003-08-10 Mark Kettenis <kettenis@gnu.org>
517
518 * i387-tdep.c (i387_register_to_value): Use get_frame_register
519 instead of frame_read_register.
520 (i387_print_float_info): Use get_frame_register and
521 get_frame_register_unsigned instead of frame_register_read.
522
523 * i386fbsd-nat.c: Include "i386-tdep.h".
524 (child_resume): Make `eflags' an ULONGEST. Use
525 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
526 instead of register_read and register_write.
527
528 * i386bsd-nat.c (fetch_inferior_registers,
529 store_inferior_registers): Don't use && at the end of a line.
530 (_initialize_i386bsd_nat): Fix typo.
531
532 * frame.c (_initialize_frame): Add missing backslash.
533
534 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
535 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
536 and supply_register instead of manipulating the register buffer
537 directly.
538
539 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
540 * config/i386/nm-i386sol2.h
541 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
542
543 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
544 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
545 instructions that GCC likes to mingle into the prologue. Fixes
546 gdb/1253 and gdb/1255.
547
548 2003-08-09 Andrew Cagney <cagney@redhat.com>
549
550 Fix GDB PR cli/926.
551 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
552 * command.h (add_setshow_uinteger_cmd): Declare.
553 * frame.c (set_backtrace_cmd): New function.
554 (show_backtrace_cmd): New function.
555 * frame.c (_initialize_frame): Replace "set/show
556 backtrace-below-main" with "set/show backtrace past-main". Add
557 command "set/show backtrace limit".
558 (backtrace_past_main): Rename "backtrace_below_main".
559 (backtrace_limit): New variable.
560 (get_prev_frame): Update. Check the backtrace_limit.
561
562 2003-08-09 Andrew Cagney <cagney@redhat.com>
563
564 * defs.h (xstrprintf): Declare.
565 * utils.c (xstrprintf): New function.
566 * breakpoint.c (insert_breakpoints): Replace sprintf and
567 non-literal format strings, with xstrprintf and cleanups.
568 (delete_breakpoint,breakpoint_re_set): Ditto.
569 (commands_command, insert_breakpoints): Ditto.
570 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
571 (break_at_finish_command_1): Ditto.
572
573 2003-08-09 Andrew Cagney <cagney@redhat.com>
574
575 * MAINTAINERS (language support): List Adam Fedor as Objective C
576 maintainer.
577
578 2003-08-08 J. Brobecker <brobecker@gnat.com>
579
580 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
581 are now multiarched.
582
583 2003-08-08 J. Brobecker <brobecker@gnat.com>
584
585 * config/pa/tm-hppa64.h: Remove lots of macros that are no
586 longer necessary now that hppa64 is partially multiarch'ed.
587
588 2003-08-08 Andrew Cagney <cagney@redhat.com>
589
590 * interps.c (interp_set): Check for a NULL "old_interp".
591
592 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
593
594 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
595 (install-only): Support DESTDIR.
596 (uninstall): Likewise.
597 (install-gdbtk): Likewise.
598
599 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
600
601 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
602 contains something meaningful at all times.
603
604 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
605
606 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
607
608 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
609
610 * MAINTAINERS (write after approval): Added self.
611
612 2003-08-07 Andrew Cagney <cagney@redhat.com>
613
614 * inferior.h (AT_SYMBOL): Define.
615 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
616 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
617 * mips-tdep.c (mips_call_dummy_address): Delete function.
618 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
619 set call_dummy_address.
620
621 2003-08-07 Andrew Cagney <cagney@redhat.com>
622
623 * language.c (op_error): Delete function.
624 (binop_type_check): Delete function.
625 * language.h (type_op_error, range_op_error): Delete macros.
626 (op_error): Delete declaration.
627
628 2003-08-07 Andrew Cagney <cagney@redhat.com>
629
630 * interps.h (INTERP_MI2, INTERP_MI3): Define.
631
632 2003-08-07 Michal Ludvig <mludvig@suse.cz>
633
634 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
635 (x86_64_push_arguments): Skip the red zone.
636
637 2003-08-05 Andrew Cagney <cagney@redhat.com>
638
639 * reggroups.c (reggroup_next): Check for the final entry.
640
641 2003-08-04 Andrew Cagney <cagney@redhat.com>
642
643 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
644 * cli/cli-script.c (define_command): Call query directly, instead
645 of passing it a buffer.
646 * ocd.c (ocd_error): Pass error a constant format string.
647 * remote-mips.c (mips_error): Use fputs_filtered.
648
649 * solib-svr4.c (_initialize_svr4_solib): Update
650 register_gdbarch_data call.
651 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
652
653 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
654 (register_gdbarch_data): Delete "free" parameter. Update
655 comments.
656 * gdbarch.h, gdbarch.c: Re-generate.
657 * reggroups.c (_initialize_reggroup): Update.
658 * gnu-v3-abi.c (init_gnuv3_ops): Update.
659 * frame-base.c (_initialize_frame_base): Update.
660 * frame-unwind.c (_initialize_frame_unwind): Update.
661 * user-regs.c (_initialize_user_regs): Update.
662 * remote.c (_initialize_remote): Update.
663 * regcache.c (_initialize_regcache): Update.
664
665 * regcache.c (xfree_regcache_descr): Delete function.
666 (_initialize_regcache): Update call to register_gdbarch_data.
667 (init_regcache_descr, init_legacy_regcache_descr): Use
668 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
669
670 * remote.c (free_remote_state): Delete function.
671 (_initialize_remote): Update register_gdbarch_data.
672 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
673 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
674
675 2003-08-04 Andrew Cagney <cagney@redhat.com>
676
677 * reggroups.c (struct reggroup_el): Define.
678 (struct reggroups): Delete field "nr_group". Replace array
679 "group" with a "first" to "last" linked list.
680 (reggroups_init): Update. Allocate using gdbarch's obstack.
681 (reggroups_free): Delete function.
682 (add_group): Update. Add "el" parameter.
683 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
684 (default_groups): Update.
685 (reggroup_next): Replace reggroups.
686 (reggroups_dump): Update.
687 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
688 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
689 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
690
691 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
692
693 * Makefile.in (tui-interp.o): Update dependencies.
694
695 2003-08-04 David Carlton <carlton@kealia.com>
696
697 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
698 to internal_error call.
699 * source.c (forward_search_command): Add "%s" format argument.
700 (reverse_search_command): Ditto.
701 * top.c (quit_confirm): Ditto.
702 * cli/cli-setshow.c (do_setshow_command): Ditto.
703 * cp-valprint.c (cp_print_class_method): Replace
704 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
705 (cp_print_class_member): Ditto.
706 * event-top.c (command_line_handler): Ditto.
707 * linux-proc.c (linux_info_proc_cmd): Ditto.
708 * p-typeprint.c (pascal_type_print_base): Ditto.
709 * p-valprint.c (pascal_object_print_class_method): Ditto.
710 (pascal_object_print_class_member): Ditto.
711 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
712 * remote.c (remote_cisco_section_offsets): Ditto.
713 * top.c (command_line_input): Ditto.
714 * utils.c (vwarning,error_stream,quit): Ditto.
715 * valprint.c (print_floating,print_binary_chars)
716 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
717
718 2003-08-04 Andrew Cagney <cagney@redhat.com>
719
720 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
721
722 2003-08-02 Andrew Cagney <cagney@redhat.com>
723
724 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
725 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
726 amd64fbsd-nat.c.
727
728 2003-08-02 Andrew Cagney <cagney@redhat.com>
729
730 * Makefile.in: Update all dependencies and definitions.
731
732 2003-08-02 Adam Fedor <fedor@gnu.org>
733
734 * linespec.c (is_objc_method_format): New function
735 (decode_line_1, locate_first_half): Use it.
736 Fixes PR objc/1298
737
738 2003-08-01 Andrew Cagney <cagney@redhat.com>
739
740 * NEWS: Mention that m32r is multi-arch.
741 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
742 * configure.tgt: Recognize m32r-*-*.
743 * config/m32r/tm-m32r.h: Delete file.
744 * config/m32r/m32r.mt: New file.
745 * m32r-rom.c (m32r_upload_command): Use hostent only when
746 gethostname succeeds, in order to avoid a compilation
747 warning.
748 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
749 compiler warning.
750
751 2003-08-01 Michael Snyder <msnyder@redhat.com>
752
753 * sh-tdep.c (sh_frame_align): New gdbarch method.
754 (sh_gdbarch_init): Set up frame_align method.
755
756 2003-07-31 Michael Snyder <msnyder@redhat.com>
757
758 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
759 which is already covered by the new frames infrastructure.
760
761 2003-07-31 Andrew Cagney <cagney@redhat.com>
762
763 * user-regs.c (struct user_reg): Add "next" link.
764 (struct user_regs): Replace "user" with "first" and "last" links.
765 (append_user_reg): Add pre-allocated "reg" parameter.
766 (builtin_user_regs): Provide initial value for "last".
767 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
768 (user_regs_init): Allocate memory from the gdbarch obstack.
769 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
770 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
771 linked list.
772 (usernum_to_user_reg): New function.
773 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
774 (value_of_user_reg): Use usernum_to_user_reg.
775 (user_regs_free): Delete function.
776 (_initialize_user_regs): Update register_gdbarch_data call.
777
778 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
779
780 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
781
782 2003-07-30 Michael Snyder <msnyder@redhat.com>
783
784 * value.h (value_being_returned): Add a struct_addr argument.
785 * infcall.c (call_function_by_hand): Pass struct_addr to
786 value_being_returned.
787 * infcmd.c (print_return_value): Pass zero as struct_addr.
788 * values.c (value_being_returned): If struct_addr is passed,
789 use it instead of trying to recover it from the inferior.
790
791 2003-07-30 Kevin Buettner <kevinb@redhat.com>
792
793 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
794 the prologue analyzer won't need to attempt to extract the pc
795 value from the woefully incomplete dummy frame.
796 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
797 possible. Disable code which modifies the frame.
798
799 2003-07-28 Andrew Cagney <cagney@redhat.com>
800
801 * annotate.c (annotate_breakpoints_headers): Restrict annotation
802 to level 2.
803 (annotate_breakpoints_table, annotate_record): Ditto.
804 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
805 (annotate_field_name_end, annotate_field_value): Ditto.
806 (annotate_field_end, annotate_frame_source_begin): Ditto.
807 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
808 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
809 (annotate_frame_begin, annotate_frame_function_name): Ditto.
810 (annotate_frame_address_end, annotate_frame_address): Ditto.
811 (annotate_frame_args, annotate_frame_end): Ditto.
812 (annotate_frame_where, annotate_arg_begin): Ditto.
813 (annotate_arg_name_end, annotate_arg_value): Ditto.
814 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
815 (annotate_function_call, annotate_signal_name): Ditto.
816 (annotate_signal_string, annotate_signal_name_end): Ditto.
817 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
818 (annotate_value_begin, annotate_value_history_value): Ditto.
819 (annotate_value_history_end, annotate_value_end): Ditto.
820 (annotate_display_begin, annotate_display_number_end): Ditto.
821 (annotate_display_format, annotate_display_expression): Ditto.
822 (annotate_display_expression_end, annotate_display_value): Ditto.
823 (annotate_display_end, annotate_array_section_begin): Ditto.
824 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
825 (annotate_elt, annotate_array_section_end): Ditto.
826
827 2003-07-28 Andrew Cagney <cagney@redhat.com>
828
829 * regcache.c (struct regcache_descr): Update comments on
830 nr_raw_registers.
831 (init_legacy_regcache_descr): Don't set nr_raw_registers or
832 sizeof_raw_register_valid_p.
833 (init_regcache_descr): Set nr_raw_registers and
834 sizeof_raw_register_valid_p before calling
835 init_legacy_regcache_descr.
836
837 2003-07-28 Andrew Cagney <cagney@redhat.com>
838
839 * mips-tdep.c (print_gp_register_row): Print the GPR's register
840 MOD NUM_REGS.
841
842 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
843
844 * thread.c (info_threads_command): Use get_selected_frame ().
845 Check that there is at least one non-sentinel frame.
846
847 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
848
849 * m68hc11-tdep.c (struct frame_extra_info): Remove.
850 (m68hc11_pop_frame): Remove.
851 (m68hc11_frame_saved_pc): Remove.
852 (m68hc11_frame_chain): Remove.
853 (m68hc11_frame_init_saved_regs): Remove.
854 (m68hc11_init_extra_frame_info): Remove.
855 (m68hc11_store_struct_return): Remove.
856 (m68hc11_saved_pc_after_call): Remove.
857
858 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
859
860 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
861 frame unwind information.
862 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
863 and adapted for frame unwinding.
864 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
865 (m68hc11_unwind_pc): New function.
866 (m68hc11_frame_unwind_cache): New function to analyze frames.
867 (m68hc11_frame_this_id): New function to create new frame struct.
868 (m68hc11_frame_prev_register): New function to unwind a register from
869 the frame.
870 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
871 (m68hc11_frame_p): New function for the above.
872 (m68hc11_frame_base_address): New function to return fp of frame.
873 (m68hc11_frame_args_address): Update for frame.
874 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
875 (m68hc11_unwind_sp): New function.
876 (m68hc11_unwind_dummy_id): New function.
877 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
878 calls.
879
880 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
881
882 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
883 (m68hc11_guess_from_prologue): Advance the pc and frame size only
884 when we are beyond the current pc.
885
886 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
887
888 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
889 from m68hc11_push_arguments.
890 (m68hc11_push_arguments): Remove.
891 (m68hc11_push_return_address): Remove.
892 (m68hc11_gdbarch_init): Install the above; remove above deprecated
893 handlers; remove deprecated_extra_stack_alignment_needed.
894
895 2003-07-27 Andrew Cagney <cagney@redhat.com>
896
897 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
898 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
899 REAL_PC and not the pointer.
900 * hppa-hpux-tdep.c: Include frame.h
901
902 2003-07-27 Andrew Cagney <cagney@redhat.com>
903
904 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
905 GDB_MULTI_ACH_PARTIAL.
906
907 2003-07-27 Andrew Cagney <cagney@redhat.com>
908
909 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
910 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
911 operator at start and not end of line.
912 (decode_prologue): Ditto.
913 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
914 frame_unwind_register_unsigned instead of
915 frame_unwind_unsigned_register.
916 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
917 read_register.
918 (m32r_push_dummy_call): Use register_size instead of
919 REGISTER_RAW_SIZE.
920 (m32r_frame_sniffer): Replace m32r_frame_p.
921 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
922 * m32r-rom.c (report_transfer_performance): Delete extern
923 declaration.
924 (m32r_load, m32r_upload_command): Use print_transfer_performance
925 instead of report_transfer_performance.
926 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
927 / add_show_from_set.
928
929 2003-07-26 Andrew Cagney <cagney@redhat.com>
930
931 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
932 store_return_value and extract_struct_value_address.
933
934 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
935
936 PR c++/1267
937 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
938 NULL, default to the section containing PC.
939
940 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
941
942 * NEWS: Mention "regs" deprecated for m68hc11 too.
943
944 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
945 (m68hc11_print_register): New function to print out one register.
946 (m68hc11_print_registers_info): New function to print registers.
947 (show_regs): Deprecate and use the above.
948 (m68hc11_gdbarch_init): Install the print_registers_info.
949
950 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
951
952 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
953 that we have a SIGTRAP before returning non-zero.
954
955 2003-07-23 Michal Ludvig <mludvig@suse.cz>
956 Elena Zannoni <ezannoni@redhat.com>
957
958 * linespec.c (decode_line_2): Avoid crash if
959 find_function_start_sal() returns empty record.
960
961 2003-07-23 Andreas Schwab <schwab@suse.de>
962
963 * ia64-tdep.c (ia64_print_insn): New function.
964 (ia64_gdbarch_init): Set print_insn to it.
965 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
966 deprecated_tm_print_insn_info.
967
968 2003-07-22 Michael Snyder <msnyder@redhat.com>
969
970 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
971 handle 8-bit returns (long long).
972 (h8300h_extract_return_value): Ditto.
973 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
974
975 2003-07-22 Andrew Cagney <cagney@redhat.com>
976
977 * gdbarch.c Include "gdb_obstack.h".
978 (struct gdbarch): Add an "obstack".
979 (alloc_gdbarch_data): Allocate the gdbarch data using
980 GDBARCH_OBSTACK_CALLOC.
981 (free_gdbarch_data): Delete function.
982 (gdbarch_obstack_zalloc): New function.
983 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
984 Assert that the architecture is not initialized.
985 (gdbarch_alloc): Allocate an obstack, allocate the architecture
986 vector from the obstack.
987 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
988 architecture obstack.
989 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
990 (set_gdbarch_data): Assert that the data is not initialized.
991 (struct gdbarch_data): Delete member "free".
992 (register_gdbarch_data): Do not initialize "free".
993 * gdbarch.h, gdbarch.c: Re-generate.
994
995 2003-07-22 Andrew Cagney <cagney@redhat.com>
996
997 * configure.in (build_warnings): Add -Wformat-nonliteral.
998 * configure: Re-generate.
999
1000 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1001
1002 * dwarf2loc.c (locexpr_describe_location): Fix typos.
1003
1004 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1005
1006 * findvar.c (read_var_value): Remove case for thread local storage
1007 variables. It is now entirely handled by the dwarf2 location
1008 expression code.
1009 * printcmd.c (address_info): Ditto.
1010 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1011 enumeration value.
1012 (struct symbol): Remove objfile field, which was used by
1013 LOC_THREAD_LOCAL_STATIC only.
1014 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1015 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1016 usage of objfile pointer.
1017 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1018 thread local variables.
1019 Add include of objfiles.h.
1020 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1021 storage variables.
1022 * Makefile.in (dwarf2loc.o): Update dependencies.
1023
1024 2003-07-22 Andrew Cagney <cagney@redhat.com>
1025
1026 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1027 get_frame_base.
1028 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1029 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1030 (struct value): Add opaque declaration.
1031 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1032
1033 2003-07-21 Andrew Cagney <cagney@redhat.com>
1034
1035 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1036 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1037
1038 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1039
1040 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1041 regcache_cooked_read_unsigned instead of read_register.
1042 (m68hc11_saved_pc_after_call): Likewise.
1043 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1044 instead of write_register.
1045 (m68hc11_register_type): New function.
1046 (m68hc11_register_virtual_type): Remove.
1047 (m68hc11_store_return_value): Convert to use the regcache.
1048 (m68hc11_extract_struct_value_address): Likewise.
1049 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1050 m68hc11_register_type; undeprecate store_return_value and
1051 extract_struct_value_address.
1052
1053 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1054
1055 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1056 and translate to use regcache.
1057 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1058
1059 2003-07-18 Andrew Cagney <cagney@redhat.com>
1060
1061 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1062 * gdbarch.h, gdbarch.c: Re-generate.
1063 * i386-tdep.c (i386_gdbarch_init): Do not set
1064 DWARF2_BUILD_FRAME_INFO.
1065 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1066 unconditionally.
1067 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1068 DWARF2_BUILD_FRAME_INFO.
1069
1070 2003-07-18 Andrew Cagney <cagney@redhat.com>
1071
1072 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1073 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1074
1075 2003-07-18 Andrew Cagney <cagney@redhat.com>
1076
1077 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1078 frame_unwind_address_in_block, instead of frame_pc_unwind.
1079 (dwarf2_frame_cache): Ditto.
1080
1081 2003-07-18 Andrew Cagney <cagney@redhat.com>
1082
1083 * user-regs.h (struct gdbarch): Declare opaque.
1084 * ui-out.h (struct ui_file): Declare opaque.
1085 * dwarf2-frame.h (struct frame_info): Declare opaque.
1086
1087 2003-07-18 Kris Warkentin <kewarken@qnx.com>
1088
1089 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1090 #include "...".
1091 (procfs_meminfo): Change strerror to safe_strerror.
1092 (procfs_can_run): Remove K&R badness.
1093
1094 2003-07-17 Michael Snyder <msnyder@redhat.com>
1095
1096 * remote-sim.c: Comment typo fix.
1097
1098 2003-07-17 Andrew Cagney <cagney@redhat.com>
1099
1100 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1101 configure.
1102 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1103 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1104 GDB_MULTI_ARCH_PARTIAL.
1105
1106 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
1107
1108 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1109 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1110 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1111
1112 2003-07-16 Theodore A. Roth <troth@openavr.org>
1113
1114 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1115 found.
1116 (avr_frame_unwind_cache): Don't unwind FP for main.
1117 Update a comment.
1118 Save the computed prev_sp.
1119 (avr_saved_regs_unwinder): Remove function.
1120 (avr_frame_prev_register): Use PC unwind logic from
1121 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1122
1123 2003-07-16 Andrew Cagney <cagney@redhat.com>
1124
1125 * frame-base.h (frame_base_p_ftype): Delete definition.
1126 (frame_base_append_predicate): Delete declaration.
1127 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1128 (frame_unwind_append_predicate): Delete declaration.
1129 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1130 (append_predicate): Delete parameter "p".
1131 (frame_unwind_append_predicate): Delete function.
1132 (frame_unwind_append_sniffer): Update call to append_predicate.
1133 (frame_unwind_free): Delete function.
1134 (_initialize_frame_unwind): Pass NULL as "free" to
1135 register_gdbarch_data.
1136 (frame_unwind_init): Append the dummy_frame_sniffer.
1137 (frame_unwind_find_by_frame): Simplify.
1138 * frame-base.c (struct frame_base_table): Delete field "p".
1139 (append_predicate): Delete parameter "p".
1140 (frame_base_append_predicate): Delete function.
1141 (frame_base_append_sniffer): Update call to append_predicate.
1142 (frame_base_free): Delete function.
1143 (frame_base_find_by_frame): Simplify.
1144 (_initialize_frame_base): Pass NULL as "free" to
1145 register_gdbarch_data.
1146 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1147 (x86_64_sigtramp_frame_sniffer): Replace
1148 "x86_64_sigtramp_frame_p".
1149 (x86_64_init_abi): Set the frame unwind sniffers.
1150 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1151 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1152 (m68k_gdbarch_init): Set the frame unwind sniffers.
1153 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1154 "i386_sigtramp_frame_p".
1155 (i386_frame_sniffer): Replace "i386_frame_p".
1156 (i386_gdbarch_init): Set the frame unwind sniffers.
1157 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1158 (avr_gdbarch_init): Set the frame unwind sniffers.
1159 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1160 "alpha_sigtramp_frame_p"
1161 (alpha_heuristic_frame_sniffer): Replace
1162 "alpha_heuristic_frame_p".
1163 (alpha_gdbarch_init): Set the frame unwind sniffers.
1164 (alpha_dwarf2_init_abi): Ditto.
1165 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1166 "alpha_debug_frame_p".
1167 (alpha_mdebug_frame_base_sniffer): Replace
1168 "alpha_mdebug_frame_base_p".
1169 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1170 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1171 (d10v_gdbarch_init): Set the frame unwind sniffer.
1172 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1173 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1174 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1175 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1176 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1177 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1178
1179 2003-07-16 Michael Snyder <msnyder@redhat.com>
1180
1181 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1182 should go thru sh_dsp_register_sim_regno, else the dsp regs
1183 will not get the right values.
1184
1185 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1186
1187 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1188 deprecated_store_floating by call to store_typed_floating.
1189 (sh_sh4_register_convert_to_raw): Substitute call to
1190 deprecated_extract_floating by call to extract_typed_floating.
1191
1192 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1193
1194 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1195
1196 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1197
1198 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1199 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1200 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1201 as possible.
1202 (do_pseudo_register): Remove.
1203 (sh_push_dummy_code): New function.
1204 (sh64_store_struct_return): Rename from sh_store_struct_return.
1205 Only called for sh64 now.
1206 (sh_extract_struct_value_address): Regcache'ify.
1207 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1208 and accomodate new tasks.
1209 (sh64_push_return_address): Rename from sh_push_return_address.
1210 Only called for sh64 now.
1211 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1212 Regcache'ify.
1213 (sh3e_sh4_extract_return_value): Regcache'ify.
1214 (sh_default_store_return_value): Ditto.
1215 (sh3e_sh4_store_return_value): Ditto.
1216 (sh_default_register_byte): Remove.
1217 (sh_sh4_register_byte): Remove.
1218 (sh_default_register_raw_size): Remove.
1219 (sh_sh4_register_raw_size): Remove.
1220 (sh_register_virtual_size): Remove.
1221 (sh_sh3e_register_virtual_type): Remove.
1222 (sh_sh3e_register_type): New function.
1223 (sh_sh4_register_virtual_type): Remove.
1224 (sh_sh4_register_type): New function.
1225 (sh_default_register_virtual_type): Remove.
1226 (sh_default_register_type): New function.
1227 (do_fv_register_info): Add parameters to accomodate call from
1228 sh_print_registers_info.
1229 (do_dr_register_info): Ditto.
1230 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1231 Add parameters to accomodate call from sh_print_registers_info.
1232 (sh_do_fp_register): Ditto.
1233 (sh64_do_pseudo_register): Call do_dr_register_info,
1234 do_fv_register_info and sh_do_fp_register with default parameters.
1235 (sh_do_register): Add parameters to accomodate call from
1236 sh_print_registers_info.
1237 (sh_print_register): Ditto.
1238 (sh_print_registers_info): Rename from sh_do_registers_info.
1239 Add parameters to be used as gdbarch_print_registers_info
1240 implementation. Accomodate removed do_pseudo_register function
1241 pointer.
1242 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1243 function pointer. Call sh_print_register with default parameters.
1244 (sh64_do_registers_info): Call sh_print_registers_info instead of
1245 sh_do_registers_info.
1246 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1247 detection of deprecated vs. non-deprecated functionality.
1248 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1249 function pointer assignments by direct function calls.
1250
1251 2003-07-15 Andrew Cagney <cagney@redhat.com>
1252
1253 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1254 (frame_register_unwind, create_new_frame): Ditto.
1255 (legacy_get_prev_frame, get_frame_type): Ditto.
1256 (get_frame_base_address): Use frame_base_find_by_frame.
1257 (get_frame_locals_address): Use frame_base_find_by_frame.
1258 (get_frame_args_address): Use frame_base_find_by_frame.
1259 * frame-base.h (frame_base_sniffer_ftype): Declare.
1260 (frame_base_append_sniffer): Declare.
1261 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1262 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1263 (frame_base_append_sniffer): New function.
1264 (frame_base_append_predicate): Add a NULL sniffer.
1265 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1266 (struct frame_base_table): Add "sniffer".
1267 (frame_base_free): Free the "sniffer" table.
1268 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1269 (frame_unwind_append_sniffer): Declare.
1270 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1271 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1272 (struct frame_unwind_table): Add "sniffer", delete "middle".
1273 (append_predicate): Add "sniffer" parameter, append the sniffer.
1274 (frame_unwind_init): Update append_predicate call.
1275 (frame_unwind_append_sniffer): New function.
1276 (frame_unwind_append_predicate): Update append_predicate call.
1277 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1278
1279 2003-07-15 Andrew Cagney <cagney@redhat.com>
1280
1281 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1282 before code inhibiting repeated unwind attempts. Add to
1283 commentary on that test's problems.
1284 * blockframe.c (inside_main_func): Look for "main" in the minimal
1285 symbol table.
1286 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1287 identical.
1288
1289 2003-07-15 Andrew Cagney <cagney@redhat.com>
1290
1291 * complaints.c (struct explanation): Define.
1292 (struct complaints): Change type of "explanation" to "struct
1293 explanation".
1294 (symfile_explanations): Convert to a "struct explanation" table.
1295 (vcomplaint): Update.
1296
1297 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1298
1299 * x86-64-linux-nat.c (regmap): Removed.
1300 (supply_gregset, fill_gregset): Call
1301 x86_64_linux_(fill,supply)_gregset functions.
1302 * x86-64-linux-tdep.c (USER_*): New defines.
1303 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1304 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1305 New functions.
1306 (fetch_core_registers): Ditto.
1307 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1308 * x86-64-linux-tdep.h: New file.
1309 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1310 and core-regset.o.
1311 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1312
1313 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1314
1315 * x86-64-tdep.c (x86_64_store_return_value): Use
1316 regcache_cooked_write_part instead of regcache_cooked_write.
1317
1318 * configure.host: Add x86_64-*-freebsd*.
1319 * configure.tgt: Add x86_64-*-freebsd*.
1320 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1321 * amd64fbsd-nat.c: New file.
1322 * amd64fbsd-tdep.c: New file.
1323 * config/i386/nm-fbsd64.h: New file.
1324 * config/i386/fbsd64.mh: New file.
1325 * config/i386/fbsd64.mt: New file.
1326
1327 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1328
1329 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1330 `sc_regs_offset' and `sc_fpregs_offset'.
1331 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1332 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1333 (alpha_sigtramp_register_address): Rewrite to use new members of
1334 `struct gdbarch_tdep'.
1335 (alpha_gdbarch_init): Initialize new members of struct
1336 gdbarch_tdep'.
1337 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1338 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1339 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1340 (alphafbsd_pc_in_sigtramp): Implement.
1341 (alphafbsd_sigtramp_offset): New function.
1342 (alphafbsd_sigcontext_addr): New function.
1343 (alphafbsd_init_abi): Initialize signal trampoline related members
1344 of `struct gdbarch_tdep'.
1345 (_initialize_alphafbsd_tdep): Add prototype.
1346
1347 2003-07-11 Theodore A. Roth <troth@openavr.org>
1348
1349 * Makefile.in (install-only): Quote sed expression when generating
1350 transformed_name.
1351
1352 2003-07-11 Richard Henderson <rth@redhat.com>
1353
1354 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1355 * dwarf2-frame.c: Include complaints.h.
1356 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1357 variable initialization; return NULL on error.
1358 (decode_frame_entry): New.
1359
1360 2003-07-11 Andrew Cagney <cagney@redhat.com>
1361
1362 * frame.h (frame_address_in_block): Delete declaration.
1363 * blockframe.c (frame_address_in_block): Delete function.
1364 (get_frame_block): Use get_frame_address_in_block.
1365 (block_innermost_frame): Ditto.
1366 * stack.c (print_frame, backtrace_command_1): Ditto.
1367
1368 * frame.h (get_frame_address_in_block): Declare.
1369 (frame_unwind_address_in_block): Declare.
1370 * frame.c (frame_unwind_address_in_block): New function.
1371 (get_frame_address_in_block): New function.
1372
1373 2003-07-10 Andrew Cagney <cagney@redhat.com>
1374
1375 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1376 pre-default. Note: re-generate has no effect.
1377
1378 2003-07-10 Andrew Cagney <cagney@redhat.com>
1379
1380 * gdbarch.sh: When a variable, but not a function, compare against
1381 0. Fix problem in previous patch.
1382 * gdbarch.c: Re-generate.
1383
1384 2003-07-10 Andrew Cagney <cagney@redhat.com>
1385
1386 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1387 functions against NULL, not 0.
1388 * gdbarch.c: Re-generate.
1389
1390 2003-07-10 Fred Fish <fnf@ninemoons.com>
1391
1392 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1393 null string instead of a null pointer.
1394 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1395
1396 2003-07-09 Michael Snyder <msnyder@redhat.com>
1397
1398 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1399
1400 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1401
1402 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1403 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1404 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1405 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1406 * x86-64-tdep.c: ... from here.
1407
1408 2003-07-09 Andreas Schwab <schwab@suse.de>
1409
1410 * m68k-tdep.h (enum struct_return): Define.
1411 (struct gdbarch_tdep): Add struct_return.
1412 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1413 bytes are padded to the right, not to the left. Pass struct value
1414 address in register %a1, not on stack.
1415 (m68k_use_struct_convention): New function.
1416 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1417 struct_return in tdep to pcc_struct_return.
1418 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1419 reg_struct_return.
1420
1421 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1422
1423 * somread.c (som_symfile_offsets): Fix compilation error.
1424
1425 2003-07-09 Andrew Cagney <cagney@redhat.com>
1426
1427 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1428 Add comments about the checks.
1429
1430 2003-07-08 Andrew Cagney <cagney@redhat.com>
1431
1432 * Makefile.in: Make dependency section headers consistent.
1433 (config_h): Move to $BUILD headers section.
1434 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1435 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1436 (ada-exp.tab.c): Move to YACC/LEX section.
1437 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1438 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1439
1440 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1441
1442 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1443 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1444 of strerror with safe_strerror, use ISO C function definitions,
1445 and replace instances of sprintf with snprintf.
1446
1447 2003-07-07 Andrew Cagney <cagney@redhat.com>
1448
1449 * frame.c (get_prev_frame): Enable check for identical frames.
1450 Update comments. Update error messages.
1451
1452 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1453
1454 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1455
1456 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1457
1458 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1459 sort_symtab_syms, no longer necessary.
1460
1461 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1462
1463 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1464
1465 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1466
1467 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1468 (mips_register_byte): Likewise.
1469
1470 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1471
1472 * Makefile.in (sparc_tdep_h): New.
1473 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1474 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1475 * sparc-linux-nat.c: Include "sparc-tdep.h".
1476 * sparc-nat.c: Likewise.
1477 * sparc-tdep.c: Likewise.
1478 * sparc64nbsd-nat.c: Likewise.
1479 * sparcnbsd-nat.c: Likewise.
1480 * sparcnbsd-tdep.c: Likewise.
1481 * sparc-tdep.h: New file.
1482 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1483 and sparc_npc_regnum.
1484
1485 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1486
1487 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1488 (mips_linux_cannot_store_register): List supported instead of
1489 unsupported registers.
1490
1491 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1492
1493 * disasm.c (dump_insns): Separate instructions from addresses.
1494
1495 2003-07-07 Andreas Schwab <schwab@suse.de>
1496
1497 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1498 dependencies.
1499 * m68k-tdep.c (NUM_FREGS): Delete.
1500 (SIG_PC_FP_OFFSET): Delete.
1501 (TARGET_M68K): Delete.
1502 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1503 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1504 P_MOVEL_SP, P_MOVEML_SP): Define.
1505 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1506 P_TRAP): Delete.
1507 (m68k_register_raw_size): Delete.
1508 (m68k_register_virtual_size): Delete.
1509 (m68k_register_type): Renamed from m68k_register_virtual_type and
1510 add gdbarch argument.
1511 (m68k_store_struct_return): Delete.
1512 (m68k_deprecated_extract_return_value): Delete.
1513 (m68k_deprecated_extract_struct_value_address): Delete.
1514 (m68k_frame_chain): Delete.
1515 (m68k_frame_saved_pc): Delete.
1516 (m68k_fix_call_dummy): Delete.
1517 (m68k_push_dummy_frame): Delete.
1518 (m68k_pop_frame): Delete.
1519 (m68k_extract_return_value): New function.
1520 (m68k_store_return_value): Rewrite using regcache.
1521 (m68k_extract_struct_value_address): Rewrite using regcache.
1522 (m68k_push_dummy_call): New function.
1523 (struct m68k_frame_cache): Define.
1524 (m68k_alloc_frame_cache): New function.
1525 (m68k_analyze_frame_setup): New function.
1526 (m68k_analyze_register_saves): New function.
1527 (m68k_analyze_prologue): New function.
1528 (m68k_skip_prologue): Rewrite using above functions.
1529 (m68k_unwind_pc): New function.
1530 (m68k_frame_cache): New function.
1531 (m68k_frame_this_id): New function.
1532 (m68k_frame_prev_register): New function.
1533 (m68k_frame_unwind): New variable.
1534 (m68k_frame_p): New function.
1535 (m68k_sigtramp_frame_cache): New function.
1536 (m68k_sigtramp_frame_this_id): New function.
1537 (m68k_sigtramp_frame_prev_register): New function.
1538 (m68k_sigtramp_frame_unwind): New variable.
1539 (m68k_sigtramp_frame_p): New function.
1540 (m68k_frame_base_address): New function.
1541 (m68k_frame_base): New function.
1542 (m68k_unwind_dummy_id): New function.
1543 (fill_gregset): Use regcache_collect.
1544 (fill_fpregset): Likewise.
1545 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1546 defined.
1547 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1548 deprecated_init_frame_pc, deprecated_store_struct_return,
1549 deprecated_extract_return_value, deprecated_store_return_value,
1550 deprecated_frame_chain, deprecated_frame_saved_pc,
1551 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1552 deprecated_register_virtual_size,
1553 deprecated_max_register_raw_size,
1554 deprecated_max_register_virtual_size,
1555 deprecated_register_virtual_type, deprecated_register_size,
1556 deprecated_register_byte, deprecated_register_bytes,
1557 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1558 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1559 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1560 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1561 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1562 deprecated_push_dummy_frame, deprecated_pop_frame,
1563 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1564 only if SYSCALL_TRAP is defined. Set extract_return_value,
1565 store_return_value, extract_struct_value_address, register_type,
1566 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1567 predicates.
1568 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1569 M68K_MAX_REGISTER_SIZE): Define.
1570 (struct m68k_sigtramp_info): Define.
1571 (struct gdbarch_tdep): Add get_sigtramp_info.
1572 * m68klinux-nat.c (fetch_register): Use register_size instead of
1573 REGISTER_RAW_SIZE. Don't put assignment in if.
1574 (store_register): Likewise.
1575 (fetch_inferior_registers): Likewise.
1576 (store_inferior_registers): Likewise.
1577 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1578 (m68k_linux_frame_saved_pc): Delete.
1579 (m68k_linux_sigcontext_reg_offset,
1580 m68k_linux_ucontext_reg_offset): Define.
1581 (m68k_linux_get_sigtramp_info): New function.
1582 (m68k_linux_extract_return_value): Rewrite using regcache.
1583 (m68k_linux_store_return_value): Likewise.
1584 (m68k_linux_extract_struct_value_address): Likewise.
1585 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1586 Don't set deprecated_frame_saved_pc,
1587 deprecated_extract_return_value, deprecated_store_return_value,
1588 deprecated_extract_struct_value_address. Set
1589 extract_return_value, store_return_value,
1590 extract_struct_value_address.
1591
1592 2003-07-07 Andrew Cagney <cagney@redhat.com>
1593
1594 * expprint.c: Include "user-regs.h" instead of "frame.h".
1595 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1596 frame_map_regnum_to_name.
1597 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1598 (frame_map_name_to_regnum): Simplify, call
1599 user_reg_map_name_to_regnum.
1600 (frame_map_regnum_to_name): Simplify, call
1601 user_reg_map_regnum_to_name.
1602 (frame_register_unwind): Update.
1603 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1604 (_initialize_frame_reg): Call user_reg_add_builtin.
1605 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1606 (value_of_register): Use value_of_user_reg.
1607 * eval.c (evaluate_subexp_standard): Update.
1608 * parse.c (write_dollar_variable): Update.
1609 * d10v-tdep.c (d10v_print_registers_info): Update.
1610 * infcmd.c (registers_info): Update.
1611 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1612 (builtin_regs_h): Delete macro.
1613 (user_regs_h): Define.
1614 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1615 (builtin-regs.o): Delete target.
1616 (user-regs.o): Specify dependencies.
1617 (expprint.o): Update dependencies.
1618 (findvar.o): Update dependencies.
1619 (frame.o): Update dependencies.
1620 (std-regs.o): Update dependencies.
1621
1622 2003-07-06 Christopher Faylor <cgf@redhat.com>
1623
1624 * win32-nat.c (solib_symbols_add): Use one variable for all section
1625 address stuff. Pass variable rather than address of variable to
1626 safe_symbol_file_add.
1627
1628 2003-07-06 Andreas Schwab <schwab@suse.de>
1629
1630 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1631
1632 2003-07-04 Joel Brobecker <brobecker@gnat.com>
1633
1634 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1635
1636 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1637
1638 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1639
1640 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1641
1642 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1643 * config/i386/nto.mh: New file.
1644 * config/i386/nm-nto.h: New file.
1645 * configure.host: Add i[3456]86-*-nto*.
1646
1647 2003-07-03 Joel Brobecker <brobecker@gnat.com>
1648
1649 * remote-vx.c (vx_add_symbols): Fix compilation error.
1650
1651 2003-07-03 Andrew Cagney <cagney@redhat.com>
1652
1653 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1654 * gdbarch.h, gdbarch.c: Re-generate.
1655 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1656 (legacy_register_name): Declare.
1657 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1658 (REGISTER_NAME): Define.
1659 * sparc-tdep.c (legacy_register_name): New function.
1660 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1661 (REGISTER_NAME): Define.
1662 (hppa64_register_name): Declare.
1663 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1664 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1665 (hppa64_register_name): New function.
1666 (hppa_register_name): New function.
1667 * arch-utils.c (legacy_register_name): Delete.
1668 * arch-utils.h (legacy_register_name): Delete.
1669
1670 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
1671
1672 * cli/cli-interp.c (cli_interpreter_resume): Update the
1673 cli_uiout's stream to gdb_stdout.
1674
1675 2003-07-03 Andrew Cagney <cagney@redhat.com>
1676
1677 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1678 predicate.
1679 * gdbarch.h, gdbarch.c: Re-generate.
1680 * regcache.c (init_regcache_descr): Use legacy code when either
1681 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1682
1683 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1684
1685 * NEWS: Move "set logging" entry into GDB 6.0 section.
1686
1687 2003-07-02 Jim Blandy <jimb@redhat.com>
1688
1689 * s390-tdep.c (struct frame_extra_info): new member:
1690 'stack_bought_valid'.
1691 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1692 initialize fextra_info->stack_bought.
1693 (s390_frameless_function_invocation): Don't trust the value of
1694 fextra_info_ptr->stack_bought unless
1695 fextra_info->stack_bought_valid is set.
1696
1697 New S390 prologue analyzer.
1698 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1699 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1700 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1701 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1702 compute_x_addr, s390_on_stack, s390_store,
1703 s390_get_signal_frame_info): New functions.
1704 (S390_NUM_SPILL_SLOTS): New macro.
1705 (s390_get_frame_info): Rewritten.
1706 (is_arg_reg): Deleted.
1707
1708 Break out the decoding of S/390 instructions into separate
1709 functions, to make it more legible, and easier to check
1710 against the spec.
1711 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1712 is_rx, is_rxe): New functions.
1713 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1714 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1715 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1716 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1717 enums for opcode values. (Is this an improvement?)
1718
1719 2003-07-02 Andrew Cagney <cagney@redhat.com>
1720
1721 * i386-tdep.c: Revert change committed as part of trad-frame code
1722 below.
1723
1724 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1725
1726 * breakpoint.c (insert_catchpoint): Make static.
1727
1728 2003-07-02 Andreas Schwab <schwab@suse.de>
1729
1730 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1731 former ia64_push_arguments and ia64_push_return_address, and use
1732 regcache functions instead of read/write_register.
1733 (ia64_gdbarch_init): Set push_dummy_call instead of
1734 deprecated_push_arguments and deprecated_push_return_address.
1735
1736 2003-07-01 Andreas Jaeger <aj@suse.de>
1737
1738 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1739 before the call.
1740 Set %rax only to number of SSE registers used.
1741
1742 2003-07-01 Andrew Cagney <cagney@redhat.com>
1743
1744 * trad-frame.h: Update comments, a -1 .addr is reserved.
1745 (trad_frame_value_p, trad_frame_addr_p): Declare.
1746 (trad_frame_reg_p): Declare.
1747 (trad_frame_set_value): Rename trad_frame_register_value.
1748 (trad_frame_set_unknown): Declare.
1749 * trad-frame.c (trad_frame_realreg_p): New function.
1750 (trad_frame_addr_p, trad_frame_value_p): New function.
1751 (trad_frame_set_unknown): New function.
1752 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1753 (trad_frame_prev_register): Use trad_frame_realreg_p,
1754 trad_frame_addr_p and trad_frame_value_p.
1755 (trad_frame_set_value): Rename trad_frame_register_value.
1756 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1757 and trad_frame_set_value.
1758
1759 2003-06-30 Jim Blandy <jimb@redhat.com>
1760
1761 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1762 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1763 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1764 for 16 registers, and then 32 more bytes.
1765 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1766 New macros.
1767 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1768 Move up in the file, since it's now used by is_simple_arg.
1769 (is_simple_arg): Don't assume registers are four bytes long.
1770 Exclude all double arguments. Extended floats are not simple
1771 args.
1772 (is_power_of_two): New function.
1773 (pass_by_copy_ref): Call is_power_of_two, and check that the
1774 length fits in a register, rather than listing all the acceptable
1775 sizes. Extended floats are not passed by reference.
1776 (s390_push_arguments): Don't assume registers are four bytes long.
1777 Reserve an argument register to point to the buffer for structures
1778 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1779 S390_STACK_FRAME_OVERHEAD.
1780
1781 2003-06-30 Andreas Schwab <schwab@suse.de>
1782
1783 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1784 format error message.
1785
1786 2003-06-30 Joel Brobecker <brobecker@gnat.com>
1787
1788 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1789
1790 2003-06-30 David Carlton <carlton@kealia.com>
1791
1792 Band-aid for PR c++/1245.
1793 * Makefile.in (cp-support.o): Depend on complaints_h.
1794 * cp-support.c: Include complaints.h. Add declaration for
1795 find_last_component.
1796 (cp_find_first_component): Separate code into
1797 cp_find_first_component_aux.
1798 (cp_find_first_component_aux): Call demangled_name_complaint.
1799 (demangled_name_complaint): New.
1800
1801 2003-06-30 Andrew Cagney <cagney@redhat.com>
1802
1803 * remote.c (remote_write_bytes): Explicitly compute and then use
1804 the payload size. Update comments to reflect. Fixes problem of
1805 GDB not sending small packets as found by Fred Fish.
1806
1807 2003-06-30 Andrew Cagney <cagney@redhat.com>
1808
1809 * remote.c (remote_async_wait): Fix -Wformat problem.
1810
1811 2003-06-29 Andrew Cagney <cagney@redhat.com>
1812
1813 * remote.c (remote_wait): Call error, and not warning, when the
1814 packet is corrupt.
1815 (remote_async_wait): Ditto.
1816
1817 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1818
1819 * sparc-tdep.c (sparc_y_regnum): Make external again.
1820
1821 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1822
1823 * cli/cli-logging.c (pop_output_files): Add void to function
1824 definition.
1825
1826 2003-06-29 Andrew Cagney <cagney@redhat.com>
1827
1828 * frame.c (frame_register_unwind): Use unsigned char when dumping
1829 the buffer contents.
1830
1831 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1832
1833 * cli/cli-logging.c: New file.
1834 * cli-out.c (struct ui_out_data): Add original_stream.
1835 (cli_redirect): New function.
1836 (cli_ui_out_impl): Add cli_redirect.
1837 (cli_out_new): Initialize original_stream.
1838 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1839 (uo_redirect, ui_out_redirect): New.
1840 * ui-out.h (struct ui_out_impl): Add redirect member.
1841 (redirect_ftype): New.
1842 (ui_out_redirect): Add prototype.
1843 * Makefile.in: Add rules for cli-logging.c.
1844 * NEWS: Mention "set logging".
1845
1846 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1847
1848 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1849
1850 2003-06-27 Andrew Cagney <cagney@redhat.com>
1851
1852 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1853 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1854 * avr-tdep.c (avr_call_dummy_address): Delete function.
1855 (avr_gdbarch_init): Do not set call_dummy_address.
1856
1857 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1858
1859 * symfile.c (syms_from_objfile): Move variables to inner block.
1860 Move the checks for the non-mainline case a bit earlier to avoid
1861 doing some useless computations.
1862
1863 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1864
1865 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1866
1867 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
1868
1869 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1870 sections.
1871
1872 2003-06-26 Michael Chastain <mec@shout.net>
1873
1874 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1875 gdb/testsuite/gdb.c++/pr-1210.exp.
1876
1877 2003-06-26 Andrew Cagney <cagney@redhat.com>
1878
1879 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1880 altivec_expression.h and altivec_registers.h.
1881
1882 2003-06-26 Andrew Cagney <cagney@redhat.com>
1883
1884 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1885 info->mach when MIPS16. Patch suggested by Fred Fish.
1886
1887 2003-06-26 Andrew Cagney <cagney@redhat.com>
1888
1889 * utils.c (internal_vproblem): Print the problem to a reason
1890 buffer and then pass to query. Make the msg variable more local.
1891
1892 2003-06-26 Andrew Cagney <cagney@redhat.com>
1893
1894 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
1895 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
1896 * gdbarch.h, gdbarch.c: Re-generate.
1897 * frame-base.c (default_frame_args_address): Update. Use
1898 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
1899 not available.
1900 (default_frame_locals_address): Ditto for
1901 DEPRECATED_FRAME_LOCALS_ADDRESS.
1902 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
1903 (vax_frame_num_args): Update.
1904 (vax_gdbarch_init): Update.
1905 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1906 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1907 * mcore-tdep.c (mcore_gdbarch_init): Update.
1908 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1909 * ia64-tdep.c (ia64_gdbarch_init): Update.
1910 * symtab.h (address_class): Update comments.
1911 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
1912 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1913 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1914 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1915 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1916 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1917 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1918 * alpha-mdebug-tdep.c: Update.
1919 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
1920
1921 2003-06-26 Andreas Jaeger <aj@suse.de>
1922
1923 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
1924 of SSE registers so that varargs functions work. Rework handling
1925 of passing arguments on the stack.
1926 (x86_64_store_return_value): Return double and float values in SSE
1927 register.
1928
1929 2003-06-24 Michael Chastain <mec@shout.net>
1930
1931 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
1932 the "constructor breakpoints ignored" bug.
1933
1934 2003-06-25 David Carlton <carlton@kealia.com>
1935
1936 * MAINTAINERS: Update e-mail address.
1937
1938 2003-06-24 Jim Blandy <jimb@redhat.com>
1939
1940 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
1941
1942 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
1943 function.
1944 (ppc_linux_init_abi): Register it as the
1945 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
1946
1947 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
1948 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
1949 method.
1950
1951 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
1952 (ppc64_standard_linkage_target): Use it.
1953
1954 2003-06-23 Andrew Cagney <cagney@redhat.com>
1955
1956 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
1957 for 0 "int0" and 4 "int32" sized registers.
1958 * gdbtypes.c (builtin_type_int0): Define.
1959 (build_gdbtypes): Initialize builtin_type_int0.
1960 * gdbtypes.h (builtin_type_int0): Declare.
1961
1962 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
1963
1964 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
1965 as characters are unsigned.
1966
1967 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1968
1969 PR gdb/1179
1970 * dwarfread.c (struct_type): Skip static fields without crashing.
1971
1972 2003-06-22 Andrew Cagney <cagney@redhat.com>
1973
1974 GDB 6.0 branch created.
1975 * README: Update.
1976 * PROBLEMS: Update. Empty.
1977 * NEWS: Update.
1978
1979 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1980
1981 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
1982 Suggested by Nick Hibma <n_hibma@webweaving.org>.
1983
1984 2003-06-22 Andrew Cagney <cagney@redhat.com>
1985
1986 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
1987 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
1988 Velikov.
1989
1990 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1991
1992 * cli/cli-cmds.c (shell_escape): Silence warnings from old
1993 compilers.
1994
1995 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1996
1997 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
1998 argument of val_print.
1999 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2000 to the address argument of baseclass_offset or target_read_memory.
2001 Do add it to the argument of cp_print_value_fields.
2002
2003 2003-06-21 Andrew Cagney <cagney@redhat.com>
2004
2005 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2006 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2007 instead of 0..NUM_REGS.
2008 (mips_register_reggroup_p): New function.
2009 (mips_pseudo_register_write): New function.
2010 (mips_pseudo_register_read): New function.
2011 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2012 based on the register's type.
2013 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2014 cooked.
2015 (mips_get_saved_register): Simplify. Assert that REGNO is a
2016 pseudo / cooked.
2017 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2018 (mips_register_type): Replace mips_register_virtual_type. Map
2019 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2020 when available.
2021 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2022 that the register is cooked / virtual.
2023 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2024 Only get the extra info when needed.
2025 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2026 (mips32_heuristic_proc_desc): Fetch the cooked register.
2027 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2028 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2029 (mips_print_register): Use gdbarch_register_type, instead of
2030 REGISTER_VIRTUAL_TYPE.
2031 (print_gp_register_row): Use gdbarch_register_type, instead of
2032 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2033 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2034 Print the pseudo / cooked registers.
2035 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2036 Print the pseudo / cooked registers.
2037 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2038 REG_NUM is pseudo / cooked.
2039 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2040 (mips_n32n64_xfer_return_value): Ditto.
2041 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2042 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2043 (mips_register_sim_regno): New function.
2044 (mips_gdbarch_init): Set deprecated_register_byte,
2045 register_group_p, pseudo_register_write, pseudo_register_read,
2046 register_sim_regno, and num_pseudo_regs. Set register_type,
2047 instead of register_virtual_type.
2048 * Makefile.in (mips-tdep.o): Update dependencies.
2049 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2050 REGISTER_VIRTUAL_TYPE.
2051 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2052 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2053 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2054 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2055 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2056
2057 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2058
2059 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2060 * cli/cli-cmds.c: Include "gdb_vfork.h".
2061 (shell_escape): Use vfork.
2062
2063 2003-06-21 Andrew Cagney <cagney@redhat.com>
2064
2065 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2066 32 bit floating-point register saves.
2067
2068 * frame.h (deprecated_unwind_get_saved_register): Delete.
2069 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2070 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2071 and deprecated_get_next_frame_hack instead of
2072 deprecated_unwind_get_saved_register.
2073
2074 * mips-tdep.c (mips_dump_tdep): Do not print
2075 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2076
2077 * frame.c (get_frame_register): New function.
2078 (frame_unwind_register_signed): New function.
2079 (get_frame_register_signed): New function.
2080 (frame_unwind_register_unsigned): New function.
2081 (get_frame_register_unsigned): New function.
2082 * frame.h: Add comments on naming schema.
2083 (get_frame_register, frame_unwind_register_signed): Declare.
2084 (get_frame_register_signed, get_frame_register_signed): Declare.
2085 (frame_unwind_register_unsigned): Declare.
2086 (get_frame_register_unsigned): Declare.
2087
2088 2003-06-20 Theodore A. Roth <troth@openavr.org>
2089
2090 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2091
2092 2003-06-20 Theodore A. Roth <troth@openavr.org>
2093
2094 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2095 (avr_read_sp): Ditto.
2096
2097 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
2098
2099 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2100 * config/arm/nm-linux.h: Likewise.
2101 * config/arm/tm-linux.h: Likewise.
2102 * config/ia64/nm-linux.h: Likewise.
2103 * config/ia64/tm-ia64.h: Likewise.
2104 * config/s390/tm-linux.h: Likewise.
2105 * config/s390/tm-s390.h: Likewise.
2106 * s390-nat.c: Likewise.
2107 * s390-tdep.c: Likewise.
2108
2109 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2110 * config/ia64/linux.mt: Likewise.
2111 * config/m68k/linux.mh: Likewise.
2112 * config/mips/linux.mt: Likewise.
2113 * config/powerpc/linux.mh: Likewise.
2114 * config/sh/linux.mt: Likewise.
2115
2116 2003-06-19 Kris Warkentin <kewarken@qnx.com>
2117
2118 * solib.c (solib_open): Change tests for whether to search
2119 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2120 comments.
2121
2122 2003-06-19 Theodore A. Roth <troth@openavr.org>
2123
2124 * avr-tdep.c (avr_frame_address): Delete function.
2125 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2126 set_gdbarch_frame_args_address.
2127
2128 2003-06-19 Andrew Cagney <cagney@redhat.com>
2129
2130 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2131 (REGISTER_CONVERT_FROM_TYPE): Delete.
2132 (mips_register_convert_to_type): Delete declaration.
2133 (mips_register_convert_from_type): Delete declaration.
2134 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2135 kernel/.
2136
2137 2003-06-19 Michael Snyder <msnyder@redhat.com>
2138
2139 * linux-nat.h: New file.
2140 * linux-nat.c: Include linux-nat.h.
2141 * lin-lwp.c: Include linux-nat.h.
2142 Move struct lwp_info def to linux-nat.h.
2143 * linux-proc.c: Include linux-nat.h.
2144 (linux_make_note_section): Iterate over lwps instead of threads.
2145 (linux_do_thread_registers): Use lwp instead of merged pid.
2146 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2147 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2148 Add dependency on linux_nat_h.
2149
2150 2003-06-19 Theodore A. Roth <troth@openavr.org>
2151
2152 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2153
2154 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2155
2156 * varobj.c (get_type, get_target_type): Use check_typedef.
2157
2158 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2159
2160 * breakpoint.c (insert_catchpoint): Call internal_error.
2161
2162 2003-06-19 Theodore A. Roth <troth@openavr.org>
2163
2164 * avr-tdep.c (avr_push_dummy_code): Delete function.
2165 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2166
2167 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2168
2169 * arch-utils.c (default_prepare_to_proceed): Remove.
2170 (generic_prepare_to_proceed): Remove.
2171 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2172 (generic_prepare_to_proceed): Remove prototype.
2173 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2174 * gdbarch.c: Regenerate.
2175 * gdbarch.h: Regenerate.
2176 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2177 * hppah-nat.c (hppa_switched_threads): Remove.
2178 * infrun.c (prepare_to_proceed): New static function, copied from
2179 generic_prepare_to_proceed. Remove select_it argument.
2180 (proceed): Call prepare_to_proceed.
2181 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2182 variables.
2183 (ptrace_wait): Don't set the removed variables.
2184 (hppa_switched_threads): Remove.
2185 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2186 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2187 (lin_lwp_prepare_to_proceed): Remove prototype.
2188 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2189 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2190
2191 2003-06-18 Theodore A. Roth <troth@openavr.org>
2192
2193 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2194 trad-frame.h.
2195 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2196 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2197 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2198 (AVR_PROLOGUE_*): Enumerate prologue types.
2199 (struct frame_extra_info): Remove.
2200 (struct avr_unwind_cache): Define.
2201 (avr_write_sp): Delete function.
2202 (avr_read_fp): Ditto.
2203 (avr_init_extra_frame_info): Ditto.
2204 (avr_pop_frame): Ditto.
2205 (avr_frame_saved_pc): Ditto.
2206 (avr_saved_pc_after_call): Ditto.
2207 (avr_push_return_address): Ditto.
2208 (avr_frame_chain): Ditto.
2209 (avr_store_struct_return): Ditto.
2210 (avr_push_arguments): Ditto.
2211 (avr_scan_prologue): Update comments. Changed to set up the info for
2212 cache unwinding. Now returns end of prologue PC.
2213 (avr_skip_prologue): Better handling of functions lacking a prologue
2214 by using avr_scan_prologue.
2215 (avr_scan_arg_moves): New function.
2216 (avr_saved_regs_unwinder): Ditto.
2217 (avr_frame_unwind_cache): Ditto.
2218 (avr_unwind_pc): Ditto.
2219 (avr_frame_this_id): Ditto.
2220 (avr_frame_prev_register): Ditto.
2221 (avr_frame_p): Ditto.
2222 (avr_frame_base_address ): Ditto.
2223 (avr_unwind_dummy_id): Ditto.
2224 (avr_push_dummy_code): Ditto.
2225 (push_stack_item): Ditto.
2226 (pop_stack_item): Ditto.
2227 (avr_push_dummy_call): Ditto.
2228 (struct stack_item): Define.
2229 (avr_frame_unwind): Declare structure.
2230 (avr_frame_base): Ditto.
2231 (avr_gdbarch_init): Remove calls to
2232 set_gdbarch_deprecated_init_frame_pc,
2233 set_gdbarch_deprecated_target_read_fp,
2234 set_gdbarch_deprecated_dummy_write_sp,
2235 set_gdbarch_deprecated_fp_regnum,
2236 set_gdbarch_deprecated_push_arguments,
2237 set_gdbarch_deprecated_push_return_address,
2238 set_gdbarch_deprecated_pop_frame,
2239 set_gdbarch_deprecated_store_struct_return,
2240 set_gdbarch_deprecated_frame_init_saved_regs,
2241 set_gdbarch_deprecated_init_extra_frame_info,
2242 set_gdbarch_deprecated_frame_chain,
2243 set_gdbarch_deprecated_frame_saved_pc,
2244 set_gdbarch_deprecated_saved_pc_after_call.
2245 Add calls to set_gdbarch_push_dummy_call,
2246 set_gdbarch_push_dummy_code,
2247 frame_unwind_append_predicate,
2248 frame_base_set_default,
2249 set_gdbarch_unwind_dummy_id,
2250 set_gdbarch_unwind_pc.
2251 Wrap a long line.
2252
2253 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2254
2255 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2256 registers for H8/300S.
2257 (h8300_print_registers_info): Ditto.
2258 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2259
2260 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2261
2262 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2263 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2264 (lin_lwp_wait): Likewise. Update comments.
2265 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2266 (pull_pid_from_list, linux_record_stopped_pid): New.
2267
2268 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2269
2270 * ada-lang.c (scan_discrim_bound): Name first argument.
2271 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2272 declared by ALL_BLOCK_SYMBOLS.
2273
2274 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2275
2276 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2277 ("regcache.h"): Include it.
2278 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2279
2280 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2281
2282 * NEWS: Mention gdbserver detach change and "disconnect" command.
2283 * infcmd.c (disconnect_command): New function.
2284 (_initialize_infcmd): Add ``disconnect'' command.
2285 * remote.c (remote_async_detach): Delete.
2286 (remote_detach): Merge remote_async_detach.
2287 (remote_disconnect): New.
2288 (init_remote_ops): Set to_disconnect.
2289 (init_remote_cisco_ops): Likewise.
2290 (init_remote_async_ops): Likewise. Use remote_detach.
2291 * target.c (cleanup_target): Default to_disconnect.
2292 (update_current_target): Inherit to_disconnect.
2293 (target_disconnect, debug_to_disconnect): New functions.
2294 (setup_target_debug): Set to_disconnect.
2295 * target.h (struct target_ops): Add to_disconnect.
2296 (target_disconnect): Add prototype.
2297
2298 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2299
2300 * breakpoint.c (insert_catchpoint): New function.
2301 (insert_breakpoints): Use catch_exceptions to call
2302 insert_catchpoint. Disable catchpoints if they fail to insert.
2303
2304 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2305
2306 * symfile.c (reread_symbols): Clear sym_private.
2307
2308 2003-06-17 Andrew Cagney <cagney@redhat.com>
2309
2310 * trad-frame.h (struct frame_info): Add opaque declaration.
2311 * remote-fileio.h (struct cmd_list_element): Add opaque
2312 declaration.
2313 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2314 comments.
2315
2316 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2317
2318 * remote.c (remote_prepare_to_store): Replace call to
2319 deprecated_read_register_bytes with multiple regcache_raw_read
2320 calls.
2321
2322 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2323
2324 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2325 (nto_find_and_open_solib): Likewise.
2326 (nto_init_solib_absolute_prefix): Likewise.
2327 (_initialize_nto_tdep): Fix indentation.
2328
2329 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2330
2331 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2332
2333 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2334
2335 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2336
2337 2003-06-17 Jim Blandy <jimb@redhat.com>
2338
2339 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2340
2341 2003-06-16 Theodore A. Roth <troth@openavr.org>
2342
2343 * avr-tdep.c (avr_extract_return_value): New function.
2344 (avr_gdbarch_init): Set extract_return_value method.
2345
2346 2003-06-16 Andrew Cagney <cagney@redhat.com>
2347
2348 * frame.h (deprecated_get_next_frame_hack): Declare.
2349 * frame.c (legacy_saved_regs_prev_register): Only require
2350 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2351 there are always saved regs.
2352 (deprecated_generic_get_saved_register): Do not require
2353 DEPRECATED_FRAME_INIT_SAVED_REGS.
2354 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2355 use frame ID unwind instead.
2356 (deprecated_get_next_frame_hack): New function.
2357
2358 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2359
2360 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2361 (h8300_push_dummy_call): ...this function. Some minor optimization.
2362 (h8300_push_return_address): Remove.
2363 (h8300_gdbarch_init): Remove calls to
2364 set_gdbarch_deprecated_dummy_write_sp,
2365 set_gdbarch_deprecated_push_arguments and
2366 set_gdbarch_deprecated_push_return_address.
2367 Add call to set_gdbarch_push_dummy_call.
2368
2369 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2370
2371 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2372 (E_PSEUDO_EXR_REGNUM): Ditto.
2373 (h8300_is_argument_spill): Check for instructions moving argument
2374 registers into safe registers.
2375 (h8300_skip_prologue): Check for stm instruction to push registers
2376 used for register variables onto stack.
2377 (gdb_print_insn_h8300): Remove.
2378 (h8300_examine_prologue): Add a comment.
2379 (h8300_register_name): Take pseudo registers into account.
2380 (h8300s_register_name): Ditto.
2381 (h8300sx_register_name): Ditto.
2382 (h8300_print_register): Ditto.
2383 (h8300_print_registers_info): Define "nice" printing order.
2384 (h8300_saved_pc_after_call): Take pseudo registers into account.
2385 (h8300_register_type): Ditto. Return type used for remote connection
2386 when requesting real CCR or EXR register, return actual type when
2387 requesting pseudo CCR or EXR.
2388 (h8300_pseudo_register_read): New function.
2389 (h8300_pseudo_register_write): Ditto.
2390 (h8300_dbg_reg_to_regnum): Ditto.
2391 (h8300s_dbg_reg_to_regnum): Ditto.
2392 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2393 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2394 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2395 set_gdbarch_print_insn architecture dependent.
2396 Call set_gdbarch_pseudo_register_read and
2397 set_gdbarch_pseudo_register_write.
2398 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2399
2400 2003-06-16 Andrew Cagney <cagney@redhat.com>
2401
2402 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2403 * gdbarch.h, gdbarch.c: Re-generate.
2404 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2405 * s390-tdep.c (s390_gdbarch_init): Update.
2406 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2407 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2408 * mips-tdep.c (mips_gdbarch_init): Update.
2409 * mcore-tdep.c (mcore_gdbarch_init): Update.
2410 * cris-tdep.c (cris_gdbarch_init): Update.
2411 * infcall.c (call_function_by_hand): Update.
2412 * ia64-tdep.c (ia64_push_arguments): Update comment.
2413 * frame.c (legacy_get_prev_frame): Do not assume
2414 SAVE_DUMMY_FRAME_TOS_P.
2415 * dummy-frame.c (find_dummy_frame): Update comment.
2416
2417 2003-06-16 Andrew Cagney <cagney@redhat.com>
2418
2419 * regcache.c (do_cooked_read): Do not use register_valid_p.
2420
2421 2003-06-15 Theodore A. Roth <troth@openavr.org>
2422
2423 * avr-tdep.c (avr_register_type): Remove a blank line.
2424 (avr_scan_prologue): Correct some comments.
2425
2426 2003-06-15 Theodore A. Roth <troth@openavr.org>
2427
2428 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2429 prologue types.
2430 Properly scan prologues generated by gcc with the -mcall-prologues
2431 option.
2432 Add code to scan -mcall-prologues for mega devices.
2433
2434 2003-06-15 Theodore A. Roth <troth@openavr.org>
2435
2436 * avr-tdep.c (avr_register_byte): Delete function.
2437 (avr_register_raw_size): Delete function.
2438 (avr_register_virtual_size): Delete function.
2439 (avr_register_virtual_type): Delete function.
2440 (avr_register_type): New function.
2441 (avr_address_to_pointer): Remove unused code.
2442 (avr_read_fp): Need to read FP as two separate bytes due to change to
2443 avr_register_type() usage.
2444 (avr_gdbarch_init): Don't set deprecated_register_size.
2445 Don't set deprecated_register_bytes.
2446 Don't set deprecated_register_byte.
2447 Don't set deprecated_register_raw_size.
2448 Don't set deprecated_max_register_raw_size.
2449 Don't set deprecated_register_virtual_size.
2450 Don't set deprecated_max_register_virtual_size.
2451 Don't set deprecated_register_virtual_type.
2452 Set register_type method.
2453
2454 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2455
2456 * Makefile.in (linux-nat.o): Add rule.
2457 * linux-nat.c: New file.
2458 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2459 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2460 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2461 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2462 * config/arm/linux.mh (NATDEPFILES): Likewise.
2463 * config/i386/linux.mh (NATDEPFILES): Likewise.
2464 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2465 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2466 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2467 * config/mips/linux.mh (NATDEPFILES): Likewise.
2468 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2469 * config/s390/s390.mh (NATDEPFILES): Likewise.
2470 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2471
2472 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2473
2474 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2475 replace out-of-date comment.
2476
2477 2003-06-15 Andrew Cagney <cagney@redhat.com>
2478
2479 * rdi-share/host.h (Fail): Change to a varargs function.
2480 * remote-rdi.c (Fail): Update.
2481
2482 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2483
2484 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2485 (i386_convert_register_p, i386_register_to_value,
2486 i386_register_from_value): Handle types longer than 8 bytes.
2487
2488 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2489
2490 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2491 Move floating-point code to new function in i387-tdep.c.
2492 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2493 New functions containing code moved here from i386-tdep.c.
2494 * i387-tdep.h: Add opaque declaration for `struct type'.
2495 (i387_register_to_value, i387_value_to_register): New prototypes.
2496 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2497 (x86_64_init_abi): Set convert_register_p, register_to_value and
2498 value_to_register here.
2499
2500 2003-06-14 Andrew Cagney <cagney@redhat.com>
2501
2502 * mips-tdep.c (mips_register_to_value): Make static.
2503 (mips_value_to_register): Make static.
2504 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2505 * ia64-tdep.c (ia64_register_raw_size): Make static.
2506 (ia64_register_virtual_size): Make static.
2507 (ia64_register_byte): Make static.
2508 * i387-tdep.c: Include "i387-tdep.h".
2509 (print_387_control_word): Delete function.
2510 (print_387_status_word): Delete function.
2511 (print_387_status_bits): Delete function.
2512 (print_387_control_bits): Delete function.
2513 * Makefile.in (i387-tdep.o): Update dependencies.
2514 * rdi-share/host.h (Fail): Declare.
2515 * remote-rdi.c (Fail): Update to match declaration.
2516
2517 2003-06-14 Andrew Cagney <cagney@redhat.com>
2518
2519 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2520 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2521 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2522 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2523 * README: Delete reference to remote-array.
2524 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2525 (remote-array.o): Delete target.
2526 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2527 * remote-array.c: Delete file.
2528
2529 2003-06-14 Andrew Cagney <cagney@redhat.com>
2530 Mark Kettenis <kettenis@gnu.org>
2531
2532 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2533 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2534 parameter with "frame".
2535 * gdbarch.h, gdbarch.c: Re-generate.
2536 * frame.h (put_frame_register): Declare.
2537 * frame.c (put_frame_register): New function.
2538 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2539 (legacy_register_to_value): Rewrite, use "frame" to get the
2540 register value.
2541 (legacy_value_to_register): Rewrite, use "frame" to find the
2542 register's location before storing.
2543 * arch-utils.h (legacy_convert_register_p): Update.
2544 (legacy_register_to_value, legacy_value_to_register): Update.
2545 * findvar.c (value_from_register): Rewrite, eliminate use of
2546 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2547 "frame" to REGISTER_TO_VALUE.
2548 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2549 lval_reg_frame_relative + lval_register branch of the switch. Do
2550 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2551 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2552 I386_EDI_REGNUM): New defines.
2553 (i386_next_regnum, i386_convert_register_p,
2554 i386_register_to_value, i386_value_to_register): New functions.
2555 (i386_register_convertible, i386_register_convert_to_virtual,
2556 i386_convert_to_raw): Remove functions.
2557 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2558 value_to_register instead of register_convertible,
2559 register_convert_to_virtual and register_convert_to_raw.
2560 * mips-tdep.c (mips_convert_register_p): New function.
2561 (mips_value_to_register): Replace mips_register_convert_from_type.
2562 (mips_register_to_value): Replace mips_register_convert_to_type.
2563 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2564 register_to_value.
2565 * alpha-tdep.c (alpha_convert_register_p): Update.
2566 (alpha_value_to_register): Update, store the register.
2567 (alpha_register_to_value): Update, fetch the register.
2568
2569 2003-06-14 Theodore A. Roth <troth@openavr.org>
2570
2571 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2572 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2573 Don't set deprecated_call_dummy_words.
2574 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2575 Don't set remote_translate_xfer_address.
2576 (avr_io_reg_read_command): Remove commented out debug printf.
2577 Wrap a long line.
2578
2579 2003-06-14 Theodore A. Roth <troth@openavr.org>
2580
2581 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2582 causes gdb to seg fault.
2583
2584 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
2585
2586 * sparc-nat.c (fetch_inferior_registers): Correct
2587 a reference to "registers".
2588
2589 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2590
2591 * Makefile.in (exc_request_U_h): Define
2592 (exc_request_S_h): Likewise.
2593 (msg_reply_S_h): Likewise.
2594 (msg_U_h): Likewise.
2595 (notify_S_h): Likewise.
2596 (process_reply_S_h): Likewise.
2597 (gnu-nat.o): Depend on gdb_obstack_h
2598 * gnu-nat.c: Include "gdb_obstack.h".
2599
2600 2003-06-13 Andrew Cagney <cagney@redhat.com>
2601
2602 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2603 * gdbarch.h, gdbarch.c: Re-generate.
2604
2605 2003-06-13 Andrew Cagney <cagney@redhat.com>
2606
2607 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2608 when deprecated REGISTER macros can be deleted.
2609 * gdbarch.h, gdbarch.c: Re-generate.
2610
2611 2003-06-13 Jim Blandy <jimb@redhat.com>
2612
2613 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2614 Linux entry point symbols for _dl_debug_state, too.
2615
2616 2003-06-13 Andrew Cagney <cagney@redhat.com>
2617
2618 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2619 available, do not use the FP register, and always save the TOS.
2620 * dummy-frame.c (dummy_frame_this_id): Do not assert
2621 SAVE_DUMMY_FRAME_TOS.
2622 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2623 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2624 (i386_push_dummy_call): Add 8 to the returned SP.
2625 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2626 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2627 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2628 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2629 (x86_64_push_dummy_call): Return "sp + 16".
2630 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2631 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2632 save_dummy_frame_tos.
2633
2634 2003-06-13 Jim Blandy <jimb@redhat.com>
2635
2636 * frv-tdep.c (frv_use_struct_convention): Delete static
2637 declaration for function deleted in my change of 2003-06-12.
2638
2639 2003-06-13 Theodore A. Roth <troth@openavr.org>
2640
2641 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2642 (avr_pointer_to_address): Shift code addrs left 1 bit.
2643 (avr_convert_from_func_ptr_addr): Delete function since operation is
2644 better handled by avr_address_to_pointer and avr_pointer_to_address.
2645 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2646
2647 2003-06-13 Mark Kettenis <kettenis@gnu.org>
2648
2649 From Kelley Cook <kelleycook@wideopenwest.com>:
2650 * configure.host: Accept i[34567]86 variants.
2651 * configure.tgt: Likewise.
2652 * nlm/configure.in: Likewise.
2653 * nlm/configure: Regenerated.
2654
2655 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2656
2657 * arm-tdep.c (solib-svr4.h): Dont' include it.
2658 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2659 * arm-linux-tdep.c: ... here. Make static.
2660 (arm_linux_init_abi): Register it.
2661 (solib-svr4.h): Include it.
2662 * Makefile.in: Update dependencies.
2663 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2664 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2665
2666 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2667
2668 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2669 indicate registers used for return values.
2670 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2671 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2672 members.
2673 (h8300_init_extra_frame_info): Ditto.
2674 (h8300_frame_locals_address): Removed.
2675 (h8300_frame_args_address): Removed.
2676 (h8300_extract_return_value): Use new regcache structure. Only care
2677 for 16 bit CPUs.
2678 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2679 (h8300_store_return_value): Use new regcache structure. Only care
2680 for 16 bit CPUs.
2681 (h8300h_store_return_value): Same function for 32 bit CPUs.
2682 (h8300_store_struct_return): Removed.
2683 (h8300_extract_struct_value_address): Use new regcache structure.
2684 (h8300h_extract_struct_value_address): Removed.
2685 (h8300_push_dummy_code): New function.
2686 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2687 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2688 set_gdbarch_store_return_value architecture dependent.
2689 Call set_gdbarch_push_dummy_code and
2690 set_gdbarch_extract_struct_value_address.
2691 Remove calls to set_gdbarch_frame_args_address,
2692 set_gdbarch_frame_locals_address,
2693 set_gdbarch_deprecated_store_struct_return,
2694 set_gdbarch_deprecated_extract_return_value,
2695 set_gdbarch_deprecated_extract_struct_value_address,
2696 set_gdbarch_deprecated_call_dummy_words and
2697 set_gdbarch_deprecated_sizeof_call_dummy_words.
2698
2699 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2700
2701 * h8300-tdep.c (h8300_register_byte): Remove.
2702 (h8300h_register_byte): Remove.
2703 (h8300_register_virtual_type): Remove. Substitute by...
2704 (h8300_register_type): New function.
2705 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2706 (h8300h_extract_struct_value_address): Ditto.
2707 (h8300_gdbarch_init): Drop calls to
2708 set_gdbarch_deprecated_register_byte and
2709 set_gdbarch_deprecated_register_virtual_type.
2710 Add call to set_gdbarch_register_type.
2711
2712 2003-06-13 Andrew Cagney <cagney@redhat.com>
2713
2714 * gdbarch.sh: Update comments on registers.
2715 (deprecated_register_byte): Rename register_byte.
2716 (deprecated_register_raw_size): Rename register_raw_size.
2717 (deprecated_register_virtual_size): Rename register_virtual_size.
2718 (deprecated_register_virtual_type): Rename register_virtual_type.
2719 * gdbarch.h, gdbarch.c: Re-generate.
2720 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2721 * vax-tdep.c (vax_gdbarch_init): Update.
2722 * v850-tdep.c (v850_gdbarch_init): Update.
2723 * sparc-tdep.c (sparc_gdbarch_init): Update.
2724 * sh-tdep.c (sh_gdbarch_init): Update.
2725 * s390-tdep.c (s390_gdbarch_init): Update.
2726 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2727 * ns32k-tdep.c: Update.
2728 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2729 * mips-tdep.c (mips_gdbarch_init): Update.
2730 * mcore-tdep.c (mcore_gdbarch_init): Update.
2731 * m68k-tdep.c (m68k_gdbarch_init): Update.
2732 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2733 * ia64-tdep.c (ia64_gdbarch_init): Update.
2734 * hppa-tdep.c (hppa_gdbarch_init): Update.
2735 * h8300-tdep.c (h8300_gdbarch_init): Update.
2736 * frv-tdep.c (frv_gdbarch_init): Update.
2737 * cris-tdep.c (cris_gdbarch_init): Update.
2738 * avr-tdep.c (avr_gdbarch_init): Update.
2739 * alpha-tdep.c (alpha_gdbarch_init): Update.
2740 * arm-tdep.c (arm_gdbarch_init): Update.
2741
2742 2003-06-13 Andrew Cagney <cagney@redhat.com>
2743
2744 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2745 mips_o32_use_struct_convention with always_use_struct_convention.
2746
2747 2003-06-12 David Carlton <carlton@kealia.com>
2748
2749 * cp-namespace.c (cp_set_block_scope): Comment out
2750 processing_has_namespace_info branch.
2751
2752 2003-06-12 Jim Blandy <jimb@redhat.com>
2753
2754 Recognize and skip 64-bit PowerPC Linux linkage functions.
2755 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2756 insn_pattern, insns_match_pattern, d_field, ds_field): New
2757 functions, macros, and types for working with PPC instructions.
2758 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2759 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2760 ppc64_skip_trampoline_code): New functions, variables, and macros
2761 for recognizing and skipping linkage functions.
2762 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2763 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2764
2765 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2766 register offsets for both the 32- and 64-bit interfaces.
2767
2768 Actually finish the job started by my change of 2003-05-29.
2769 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2770 other #definition of this.
2771 (ppc_linux_skip_trampoline_code): Remove declaration.
2772 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2773 static.
2774 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2775 method for GDBARCH.
2776
2777 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2778 'long' on ppc64-*-linux*.
2779
2780 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2781 isn't #defined, assume the register doesn't exist: act as if
2782 tdep->ppc_mq_regnum were -1.
2783
2784 * configure.host, configure.tgt: Add entries for
2785 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2786 powerpc/linux.mt.
2787 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2788 New files.
2789
2790 * arch-utils.c (always_use_struct_convention): New function.
2791 * arch-utils.h (always_use_struct_convention): New prototype.
2792 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2793 (alpha_gdbarch_init): Register always_use_struct_convention,
2794 instead of alpha_use_struct_convention.
2795 * cris-tdep.c (cris_use_struct_convention): Delete.
2796 (cris_gdbarch_init): Register always_use_struct_convention,
2797 instead of cris_use_struct_convention.
2798 * frv-tdep.c (frv_use_struct_convention): Delete.
2799 (frv_gdbarch_init): Register always_use_struct_convention,
2800 instead of frv_use_struct_convention.
2801 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2802 (h8300_gdbarch_init): Register always_use_struct_convention,
2803 instead of h8300_use_struct_convention.
2804 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
2805 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2806 instead of mips_o32_use_struct_convention.
2807
2808 2003-06-12 Andrew Cagney <cagney@redhat.com>
2809
2810 * wince.c: Include "mips-tdep.h".
2811 * mips-tdep.h (mips_next_pc): Declare.
2812 * mcore-tdep.c: Make more local functions static.
2813 * Makefile.in (wince.o): Update dependencies.
2814
2815 2003-06-12 David Carlton <carlton@kealia.com>
2816
2817 * symtab.c (lookup_symbol_aux_minsyms): Replace
2818 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2819 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2820 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2821 SYMBOL_NATURAL_NAME.
2822
2823 2003-06-12 Andreas Schwab <schwab@suse.de>
2824
2825 * Makefile.in (tuiDisassem.o): Update dependencies.
2826
2827 2003-06-12 David Carlton <carlton@bactrian.org>
2828
2829 * symtab.h: Delete declaration of make_symbol_overload_list.
2830 Add declaration of lookup_partial_symbol.
2831 * symtab.c (remove_params): Move to cp-support.c.
2832 (overload_list_add_symbol, make_symbol_overload_list)
2833 (sym_return_val_size, sym_return_val_index): Ditto.
2834 (lookup_partial_symbol): Make extern.
2835 * cp-support.h: Add declaration of make_symbol_overload_list.
2836 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2837 symtab.h, and block.h.
2838 (remove_params): Move here from symtab.c.
2839 (overload_list_add_symbol, make_symbol_overload_list)
2840 (sym_return_val_size, sym_return_val_index): Ditto.
2841 * valops.c: Include cp-support.h.
2842 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2843 frame_h, and block_h.
2844 (valops.o): Depend on cp_support_h.
2845
2846 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
2847
2848 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2849 substitute by NUM_REGS throughout.
2850 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2851 (h8300s_register_name): New function for H8S registers.
2852 (h8300sx_register_name): Ditto for H8SX registers.
2853 (h8300_print_register): Revise register printing, avoid depending
2854 on 32 bit long.
2855 (h8300_register_byte): Only care for H8/300 registers.
2856 (h8300h_register_byte): New function for any other architecture.
2857 (h8300_register_raw_size): Remove.
2858 (h8300_register_virtual_type): Revise to return actually useful
2859 type.
2860 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2861 (h8300h_extract_struct_value_address): New function for any other
2862 architecture.
2863 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2864 set_gdbarch_register_name, set_gdbarch_register_byte,
2865 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2866 Remove calls to set_gdbarch_deprecated_register_size,
2867 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2868 set_gdbarch_deprecated_max_register_raw_size,
2869 set_gdbarch_register_virtual_size and
2870 set_gdbarch_deprecated_max_register_virtual_size entirely.
2871 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2872 set_gdbarch_long_double_bit.
2873
2874 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2875
2876 * doublest.c (convert_doublest_to_floatformat): When dealing
2877 with the implied integer bit, only alter mant_bits if we are
2878 processing a full 32 bits of mantissa.
2879
2880 2003-06-11 David Carlton <carlton@bactrian.org>
2881
2882 * dictionary.h: New.
2883 * dictionary.c: New.
2884 * block.h: Add opaque declaration for struct dictionary.
2885 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2886 'sym' members.
2887 (BLOCK_DICT): New macro.
2888 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2889 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2890 BLOCK_SHOULD_SORT.
2891 (ALL_BLOCK_SYMBOLS): Update definition.
2892 * Makefile.in (SFILES): Add dictionary.c.
2893 (dictionary_h): New.
2894 (COMMON_OBS): Add dictionary.o.
2895 (dictionary.o): New.
2896 (ada-lang.o): Depend on dictionary_h.
2897 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
2898 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
2899 (mi-cmd-stack.o): Ditto.
2900 (gdbtk-cmds.o): Update dependencies.
2901 (gdbtk-stack.o): Ditto.
2902 * ada-lang.c: Include dictionary.h.
2903 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
2904 (fill_in_ada_prototype, debug_print_block): Ditto.
2905 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
2906 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
2907 'is_sorted'.
2908 * mdebugread.c: Include dictionary.h.
2909 (struct parse_stack): Delete 'maxsyms' member.
2910 (parse_symbol): Update calls to new_block. Delete calls to
2911 shrink_block. Use dictionary methods.
2912 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
2913 Update calls to new_symtab. Don't maintain maxsyms data.
2914 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
2915 (add_symbol): Just call dict_add_symbol.
2916 (new_symtab): Delete 'maxsyms' argument.
2917 (new_symtab): Update calls to new_block.
2918 (new_block): Delete 'maxsyms' argument; add 'function' argument.
2919 (shrink_block): Delete function.
2920 (fixup_sigtramp): Update call to new_block. Add symbol via
2921 dict_add_symbol.
2922 * jv-lang.c: Include dictionary.h.
2923 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
2924 appropriately. Set class_symtab->free_func. Make sure the
2925 blockvector is big enough to hold two blocks.
2926 (add_class_symtab_symbol): Use dictionary methods.
2927 (free_class_block): New function.
2928 (type_from_class): Replace explicit iteration by
2929 ALL_BLOCK_SYMBOLS.
2930 * symtab.h (struct symtab): Replace 'free_ptr' method by
2931 'free_func'.
2932 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
2933 sort_symtab_syms.
2934 * dwarfread.c (psymtab_to_symtab_1): Delete call to
2935 sort_symtab_syms.
2936 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
2937 Include dictionary.h.
2938 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
2939 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
2940 sort_symtab_syms.
2941 * objfiles.c: Include dictionary.h.
2942 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
2943 * buildsym.c: Include dictionary.h.
2944 (finish_block): Use dictionary methods.
2945 (end_symtab): Set free_func to NULL, not free_ptr.
2946 * tracepoint.c: Include dictionary.h.
2947 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
2948 (scope_info): Ditto.
2949 * stack.c: Include dictionary.h.
2950 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
2951 (print_block_frame_labels, print_frame_arg_vars)
2952 (print_frame_args): Ditto.
2953 * symmisc.c (free_symtab_block): Use dictionary methods.
2954 (dump_symtab): Ditto.
2955 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
2956 Include dictionary.h.
2957 * symfile.h: Delete declarations of sort_block_syms,
2958 sort_symtab_syms.
2959 * symfile.c (sort_block_syms): Delete.
2960 (sort_symtab_syms): Delete.
2961 * symtab.c: Include dictionary.h.
2962 (lookup_block_symbol): Use dictionary iterators.
2963 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
2964 (search_symbols, make_symbol_completion_list): Ditto.
2965 (make_symbol_overload_list): Ditto.
2966 * valops.c (value_of_local): Use dict_empty.
2967 Include dictionary.h.
2968
2969 2003-06-11 J. Brobecker <brobecker@gnat.com>
2970
2971 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
2972
2973 2003-06-11 David Carlton <carlton@bactrian.org>
2974
2975 * block.h (BLOCK_SHOULD_SORT): Delete.
2976 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
2977 blocks.
2978 * ada-lang.c (ada_add_block_symbols): Ditto.
2979 * symfile.c (sort_block_syms): Delete.
2980 (sort_symtab_syms): Ditto.
2981 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
2982 declarations.
2983 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
2984 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
2985 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
2986 * dwarfread.c (psymtab_to_symtab_1): Ditto.
2987 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
2988 * mdebugread.c (psymtab_to_symtab_1): Ditto.
2989 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2990
2991 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2992
2993 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
2994 bits to 128.
2995
2996 2003-06-11 Andrew Cagney <cagney@redhat.com>
2997
2998 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2999 REGISTER_CONVERTIBLE.
3000 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3001 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3002 * gdbarch.h, gdbarch.c: Re-generate.
3003 * arch-utils.h (deprecated_register_convertible_not): Rename
3004 generic_register_convertible_not.
3005 * arch-utils.c (deprecated_register_convertible_not): Rename
3006 generic_register_convertible.
3007 (legacy_convert_register_p, legacy_register_to_value): Update.
3008 * sh-tdep.c (sh64_push_arguments): Update.
3009 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3010 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3011 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3012 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3013 * arch-utils.c (legacy_value_to_register): Update.
3014 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3015 (rs6000_register_convert_to_raw): Make parameter "from" const.
3016 * mips-tdep.c (mips_gdbarch_init): Update.
3017 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3018 * infcmd.c (default_print_registers_info): Update.
3019 * ia64-tdep.c (ia64_gdbarch_init): Update.
3020 (ia64_register_convert_to_raw): Make parameter "from" const.
3021 * i386-tdep.c (i386_gdbarch_init): Update.
3022 (i386_register_convert_to_raw): Update.
3023
3024 2003-06-11 Andrew Cagney <cagney@redhat.com>
3025
3026 * remote-fileio.c: Include "remote-fileio.h".
3027 * Makefile.in (remote-fileio.o): Update dependencies.
3028 (remote_fileio_h): Fix typo.
3029
3030 2003-06-11 Andrew Cagney <cagney@redhat.com>
3031
3032 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3033 (xstormy16_save_dummy_frame_tos): Make static.
3034 (_initialize_xstormy16_tdep): Add declaration.
3035 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3036 * v850-tdep.c: Make local functions static.
3037 (_initialize_v850_tdep): Add declaration.
3038 * sparc-tdep.c: Make local functions static.
3039 (_initialize_sparc_tdep): Add declaration.
3040 * sh-tdep.c: Make local functions static.
3041 (_initialize_sh_tdep): Add declaration.
3042 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3043 * s390-tdep.c: Make local functions static.
3044 (_initialize_s390_tdep): Add declaration.
3045 * dbxread.c (find_stab_function_addr): Make static.
3046 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3047 * ocd.c (_initialize_remote_ocd): Add declaration.
3048 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3049 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3050 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3051 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3052 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3053 * remote-array.c (_initialize_array): Add declaration.
3054 (_initialize_remote_monitors): Add declaration.
3055 * remote-mips.c: Make local functions static.
3056 (_initialize_remote_mips): Add declaration.
3057 * mcore-tdep.c: Make all local functions static.
3058 (_initialize_mcore_tdep): Add declaration.
3059 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3060 * abug-rom.c (_initialize_abug_rom): Add declaration.
3061 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3062 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3063 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3064 * remote-est.c (_initialize_est): Add declaration.
3065 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3066 (m68hc11_call_dummy_address): Make static.
3067 * ia64-tdep.c: Make local functions static.
3068 (_initialize_ia64_tdep): Add declaration.
3069 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3070 * monitor.c (monitor_wait_filter): Make static.
3071 (_initialize_remote_monitors): Add declaration.
3072 * remote-hms.c (_initialize_remote_hms): Add declaration.
3073 * remote-e7000.c (fetch_regs_from_dump): Make static.
3074 (expect_n): Make static.
3075 (_initialize_remote_e7000): Add declaration.
3076 * ser-e7kpc.c: Always include "defs.h".
3077 (_initialize_ser_e7000pc): Add declaration.
3078 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3079 * cris-tdep.c: Make all but one function static.
3080 (_initialize_cris_tdep): Add declaration.
3081 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3082 * solib.c (update_solib_list): Make static.
3083 (_initialize_solib): Add declaration.
3084 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3085 (_initialize_avr_tdep): Add declaration.
3086 * remote-rdi.c (voiddummy): Make static.
3087 (_initialize_remote_rdi): Add declaration.
3088 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3089 * remote-rdp.c (send_rdp): Make static.
3090 (_initialize_remote_rdp): Add declaration.
3091 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3092
3093 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
3094
3095 * remote-fileio.c: Make ari happy.
3096
3097 2003-06-10 J. Brobecker <brobecker@gnat.com>
3098
3099 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3100 fetching the trailing bytes of the buffer we are about to write.
3101
3102 2003-06-10 Andrew Cagney <cagney@redhat.com>
3103
3104 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3105 * Makefile.in (remote-fileio.o): Update dependencies.
3106 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3107 include <setjmp.h>, or <sys/types.h> conditional on USG.
3108 (remote_fio_jmp_buf): Delete global variable.
3109
3110 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
3111 Martin M. Hunt <hunt@redhat.com>
3112
3113 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3114 (SFILES): Add remote-fileio.c.
3115 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3116 dependencies for building remote.o.
3117 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3118 * remote-fileio.h: New header file defining remote File-I/O interface.
3119 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3120 static storage class.
3121 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3122 'F' packet.
3123 (_initialize_remote): Call initialize_remote_fileio().
3124 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3125 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3126 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3127 (captured_main): Initialize new ui_files.
3128 * ui-file.c: Add read and fgets input functions.
3129 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3130 (null_file_read): New function.
3131 (ui_file_read): New function.
3132 (set_ui_file_read): New function.
3133 (stdio_file_read): New function.
3134 * ui-file.h: New type ui_file_read_ftype.
3135 (set_ui_file_read): Declare.
3136 (ui_file_read): Declare.
3137
3138 2003-06-09 Andrew Cagney <cagney@redhat.com>
3139
3140 * frame.h (deprecated_unwind_get_saved_register): Rename
3141 generic_unwind_get_saved_register, update comments.
3142 * mips-tdep.c (mips_get_saved_register): Update.
3143 * frame.c (deprecated_unwind_get_saved_register): Update.
3144
3145 2003-06-09 Andrew Cagney <cagney@redhat.com>
3146
3147 * vax-tdep.c (vax_frame_locals_address): Delete function.
3148 (vax_gdbarch_init): Do not set frame_locals_address.
3149 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3150 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3151 * s390-tdep.c (s390_frame_args_address): Delete function.
3152 (s390_gdbarch_init): Do not set frame_args_address or
3153 frame_locals_address.
3154 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3155 (ns32k_gdbarch_init): Do not set frame_locals_address.
3156 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3157 (hppa_frame_locals_address): Delete function.
3158 (hppa_gdbarch_init): Do not set frame_args_address, or
3159 frame_locals_address.
3160 * arm-tdep.c (arm_frame_args_address): Delete.
3161 (arm_frame_locals_address): Delete.
3162 (arm_gdbarch_init): Do not set frame_args_address, or
3163 frame_locals_address.
3164
3165 2003-06-09 Andrew Cagney <cagney@redhat.com>
3166
3167 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3168 * gdbarch.h, gdbarch.c: Re-generate.
3169 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3170 * arch-utils.c (frame_num_args_unknown): Delete function.
3171 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3172 (frame_info): Use FRAME_NUM_ARGS_P.
3173 * arm-tdep.c (arm_frame_num_args): Delete function.
3174 (arm_gdbarch_init): Do not set frame_num_args.
3175 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3176 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3177 (hppa_gdbarch_init): Do not set frame_num_args.
3178 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3179 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3180 frame_num_args to default frame_num_args_unknown.
3181 * v850-tdep.c (v850_gdbarch_init): Ditto.
3182 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3183 * sh-tdep.c (sh_gdbarch_init): Ditto.
3184 * s390-tdep.c (s390_gdbarch_init): Ditto.
3185 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3186 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3187 * mips-tdep.c (mips_gdbarch_init): Ditto.
3188 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3189 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3190 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3191 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3192 * i386-tdep.c (i386_gdbarch_init): Ditto.
3193 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3194 * frv-tdep.c (frv_gdbarch_init): Ditto.
3195 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3196 * cris-tdep.c (cris_gdbarch_init): Ditto.
3197 * avr-tdep.c (avr_gdbarch_init): Ditto.
3198 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3199
3200 2003-06-09 Andrew Cagney <cagney@redhat.com>
3201
3202 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3203 (print_frame_args): Moved to "stack.c".
3204 * stack.c: Include "gdb_assert.h".
3205 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3206 (print_frame_args): Moved from "printcmd.c".
3207 * frame.h (print_frame_args): Delete declaration.
3208 * Makefile.in (stack.o): Update dependencies.
3209
3210 2003-06-08 Andrew Cagney <cagney@redhat.com>
3211
3212 * frame.c (get_prev_frame): Remove reference to
3213 frame_args_address_correct in comments.
3214 * frame-base.c (default_frame_args_address): Delete code
3215 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3216 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3217 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3218 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3219 (vax_frame_args_address_correct): Delete declaration.
3220
3221 2003-06-08 Andrew Cagney <cagney@redhat.com>
3222
3223 * gdbarch.sh (UNWIND_SP): Add.
3224 * gdbarch.h, gdbarch.c: Re-generate.
3225 * frame.c (frame_sp_unwind): New function.
3226 (get_frame_sp): New function.
3227 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3228 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3229 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3230 value.
3231 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3232 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3233
3234 2003-06-08 Andrew Cagney <cagney@redhat.com>
3235
3236 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3237 REMOTE_BREAKPOINT.
3238 * remote.c: Update.
3239 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3240 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3241 * config/m68k/tm-sun3.h: Update.
3242 * config/m68k/tm-m68klynx.h: Update.
3243 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3244
3245 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3246 trad_frame". Update comments.
3247 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3248 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3249 (trad_frame_register_value, trad_frame_prev_register): Update.
3250
3251 2003-06-08 Andrew Cagney <cagney@redhat.com>
3252
3253 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3254 from GCC's acinclude.m4.
3255 * configure.in: Check for getopt's delcaration.
3256 * aclocal.m4, config.in, configure: Re-generate.
3257 * main.c (error_init): Delete declaration.
3258 * defs.h (error_init): Declare.
3259 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3260 (rs6000_convert_from_func_ptr_addr): Make static.
3261 (_initialize_rs6000_tdep): Add declaration.
3262 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3263 (show_commands, set_verbose, show_history): Delete declaration.
3264 * top.h (set_verbose): Add declaration.
3265 (show_history, set_history, show_commands): Add declaration.
3266 (do_restore_instream_cleanup): Add declaration.
3267 * objc-lang.c (specialcmp): Make static.
3268 (print_object_command): Make static.
3269 (find_objc_msgsend): Make static.
3270 (find_objc_msgcall_submethod_helper): Make static.
3271 (find_objc_msgcall_submethod): Make static.
3272 (_initialize_objc_language): Add declaration.
3273 (find_implementation_from_class): Make static.
3274 (find_implementation): Make static.
3275 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3276 * objc-lang.h (lookup_struct_typedef): Add declaration.
3277 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3278 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3279 (do_restore_user_call_depth): Make static.
3280 (do_restore_instream_cleanup): Delete declaration.
3281 (dont_repeat): Delete declaration.
3282 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3283 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3284 * reggroups.c (_initialize_reggroup): Add declaration.
3285 * cp-support.c (_initialize_cp_support): Add declaration.
3286 * cp-abi.c (_initialize_cp_abi): Add declaration.
3287 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3288 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3289 (_initialize_gnu_v3_abi): Add declaration.
3290 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3291 (_initialize_gnu_v2_abi): Add declaration.
3292 * frame-base.c (_initialize_frame_base): Add declaration.
3293 * doublest.c (floatformat_from_length): Make static.
3294 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3295 * frame.c (create_sentinel_frame): Make static.
3296 (_initialize_frame): Add declaration.
3297 * top.c (do_catch_errors): Make static.
3298 (gdb_rl_operate_and_get_next_completion): Make static.
3299 * typeprint.c: Include "typeprint.h".
3300 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3301 (sentinel_frame_this_id): Make static.
3302 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3303 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3304 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3305 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3306 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3307 * maint.c (maintenance_print_architecture): Make static.
3308 * signals/signals.c (_initialize_signals): Add declaration.
3309 * std-regs.c (_initialize_frame_reg): Add declaration.
3310 * jv-exp.y (push_variable): ISO C definition.
3311 (push_qualified_expression_name): Ditto.
3312 * memattr.c (_initialize_mem): Add declaration.
3313 * remote.c (remote_check_watch_resources): Make static.
3314 (remote_stopped_by_watchpoint): Make static.
3315 (remote_stopped_data_address): Make static.
3316 * d10v-tdep.c (nr_dmap_regs): Make static.
3317 (a0_regnum): Make static.
3318 (d10v_frame_unwind_cache): Make static.
3319 (d10v_frame_p): Make static.
3320 * osabi.c (show_osabi): Make static.
3321 (_initialize_gdb_osabi): Add extern declaration.
3322 * gdbtypes.c (make_qualified_type): Make static.
3323 (safe_parse_type): Make static.
3324 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3325 * macrotab.c (macro_bcache_free): Make static.
3326 * interps.c (interp_set_quiet): Make static.
3327 (interpreter_exec_cmd): Make static.
3328 * stack.h (select_frame_command): New file.
3329 * stack.c: Include "stack.h".
3330 (select_frame_command_wrapper): Delete function.
3331 (select_frame_command): Make global.
3332 * infcall.c: Include "infcall.h".
3333 * linespec.c: Include "linespec.h".
3334 * symfile.c (sections_overlap): Make static.
3335 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3336 * charset.c (_initialize_charset): Add missing prototype.
3337 * regcache.c (init_legacy_regcache_descr): Make static.
3338 (do_regcache_xfree): Make static.
3339 (regcache_xfer_part): Make static.
3340 (_initialize_regcache): Add missing prototype.
3341 * breakpoint.c (parse_breakpoint_sals): Make static.
3342 (breakpoint_sals_to_pc): Make static.
3343 * interps.h (clear_interpreter_hooks): ISO C declaration.
3344 * Makefile.in (stack_h): Define.
3345 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3346 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3347
3348 2003-06-08 Andrew Cagney <cagney@redhat.com>
3349
3350 * Makefile.in (d10v-tdep.o): Update dependencies.
3351 (SFILES): Add trad-frame.c.
3352 (trad_frame_h): Define.
3353 (COMMON_OBS): Add trad-frame.o.
3354 (trad-frame.o): Specify dependencies.
3355 * d10v-tdep.c: Include "trad-frame.h".
3356 (saved_regs_unwinder): Delete function.
3357 (d10v_frame_prev_register): Use trad_frame_prev_register.
3358 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3359 trad_frame", delete "regs" and "prev_sp".
3360 (prologue_find_regs): Use trad-frame.
3361 * trad-frame.h, trad-frame.c: New files.
3362
3363 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3364
3365 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3366
3367 2003-06-07 Adam Fedor <fedor@gnu.org>
3368
3369 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3370 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3371 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3372 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3373 resolve_msgsend_super, resolve_msgsend_super_stret):
3374 Use it.
3375
3376 2003-06-07 Andrew Cagney <cagney@redhat.com>
3377
3378 * symfile.h: Re-indent, clean up comments.
3379
3380 2003-06-07 Andrew Cagney <cagney@redhat.com>
3381
3382 * inferior.h (deprecated_write_sp): Replace
3383 generic_target_write_sp.
3384 * regcache.c (deprecated_write_sp): Replace
3385 generic_target_write_sp.
3386 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3387 * vax-tdep.c (vax_gdbarch_init): Update.
3388 * v850-tdep.c (v850_gdbarch_init): Update.
3389 * sparc-tdep.c (sparc_gdbarch_init): Update.
3390 * sh-tdep.c (sh_gdbarch_init): Update.
3391 * s390-tdep.c (s390_gdbarch_init): Update.
3392 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3393 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3394 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3395 * mcore-tdep.c (mcore_gdbarch_init): Update.
3396 * m68k-tdep.c (m68k_gdbarch_init): Update.
3397 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3398 * ia64-tdep.c (ia64_gdbarch_init): Update.
3399 * h8300-tdep.c (h8300_gdbarch_init): Update.
3400 * frv-tdep.c (frv_gdbarch_init): Update.
3401 * cris-tdep.c (cris_gdbarch_init): Update.
3402 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3403
3404 2003-06-07 Andrew Cagney <cagney@redhat.com>
3405
3406 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3407 Assert that PC_REGNUM is valid.
3408 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3409
3410 2003-06-07 Andrew Cagney <cagney@redhat.com>
3411
3412 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3413 * gdbarch.h, gdbarch.c: Regenerate.
3414 * mn10300-tdep.c: Include "gdb_assert.h".
3415 (mn10300_read_fp): New function.
3416 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3417 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3418 * ia64-tdep.c: Include "gdb_assert.h".
3419 (ia64_read_fp): New function.
3420 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3421 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3422 * regcache.c (generic_target_read_sp): Delete function.
3423 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3424 * inferior.h (generic_target_read_sp): Delete declaration.
3425 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3426 generic_target_read_sp.
3427 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3428 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3429 * sh-tdep.c (sh_gdbarch_init): Ditto.
3430 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3431 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3432
3433 2003-06-07 Andrew Cagney <cagney@redhat.com>
3434
3435 * gdbarch.sh: Comment each field of startup_gdbarch.
3436 * gdbarch.h, gdbarch.c: Re-generate.
3437
3438 2003-06-07 Andrew Cagney <cagney@redhat.com>
3439
3440 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3441 * gdbarch.h, gdbarch.c: Re-generate.
3442 * regcache.c: Update comments on read_pc et.al.
3443 (generic_target_read_pc): Delete function.
3444 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3445 * inferior.h (generic_target_read_pc): Delete declaration.
3446 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3447 generic_target_read_pc.
3448 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3449 * sh-tdep.c (sh_gdbarch_init): Ditto.
3450 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3451 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3452
3453 2003-06-07 Andrew Cagney <cagney@redhat.com>
3454
3455 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3456 "index" with "special_local_sect". Use strcmp instead of STREQ.
3457 Append period to coments.
3458
3459 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3460
3461 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3462 (elfstab_offset_sections): Likewise.
3463 * gdb-stabs.h (stab_section_info): Likewise.
3464 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3465 * objfiles.c (objfile_relocate): Likewise.
3466 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3467 * remote.c (get_offsets): Likewise.
3468 (remote_cisco_objfile_relocate): Likewise.
3469 * somread.c (som_symfile_offsets): Likewise.
3470 * symfile.c (alloc_section_addr_info): New function.
3471 (build_section_addr_info_from_section_tab): Use it.
3472 (free_section_addr_info): Adjust.
3473 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3474 (syms_from_objfile): Allocate local_addr dynamically.
3475 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3476 dynamically.
3477 (add_symbol_file_command): Allocate sect_opts dynamically.
3478 (reread_symbols): Avoid use of SECT_OFF_MAX.
3479 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3480 (alloc_section_addr_info): Declare it.
3481 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3482 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3483 dynamically.
3484 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3485
3486 2003-06-06 Andrew Cagney <cagney@redhat.com>
3487
3488 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3489 (d10v_frame_unwind_cache): Do not set "return_pc".
3490
3491 2003-06-06 Michael Snyder <msnyder@redhat.com>
3492
3493 * h8300-tdep.c: Make tidy (long lines).
3494
3495 2003-06-06 Michal Ludvig <mludvig@suse.cz>
3496
3497 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3498 to regcache_collect().
3499
3500 2003-06-05 J. Brobecker <brobecker@gnat.com>
3501
3502 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3503 pc_in_sigtramp multiarch method.
3504 (hppa_hpux_som_init_abi): Use it.
3505 (hppa_hpux_elf_init_abi): Likewise.
3506 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3507 macro has been multiarched.
3508 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3509 macro here, as hppa64 isn't multiarched yet.
3510
3511 2003-06-05 Andrew Cagney <cagney@redhat.com>
3512
3513 * Makefile.in (value_h): Add $(frame_h).
3514 * value.h: Include "frame.h".
3515 (struct value): Replace "frame_addr" with "frame_id".
3516 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3517 * values.c (allocate_value): Use VALUE_FRAME_ID.
3518 (value_copy): Use VALUE_FRAME_ID.
3519 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3520 * valops.c (value_assign): Update. Use frame_find_by_id.
3521
3522 2003-06-05 Michal Ludvig <mludvig@suse.cz>
3523
3524 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3525 in each pass.
3526
3527 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3528
3529 * thread-db.c (check_event): For create/death event breakpoints,
3530 loop through all messages to ensure that we read the message
3531 corresponding to the breakpoint we are at.
3532
3533 2003-06-04 Michael Snyder <msnyder@redhat.com>
3534
3535 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3536
3537 2003-06-04 Mark Kettenis <kettenis@gnu.org>
3538
3539 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3540 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3541 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3542 when handling .eh_frame sections.
3543
3544 2003-06-04 J. Brobecker <brobecker@gnat.com>
3545
3546 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3547 prepare_to_proceed procedure instead of the hppa-specific one.
3548 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3549
3550 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
3551
3552 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3553 * config.in: Regenerated.
3554 * configure.in: Add test for syscall function and check for
3555 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3556 * configure: Regenerated.
3557 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3558 <sys/syscall.h>.
3559 (kill_lwp): New function that uses tkill syscall or
3560 uses kill, depending on whether threading model is nptl or not.
3561 All callers of kill() changed to use kill_lwp().
3562 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3563 see if all threads have already exited in the nptl model.
3564 (stop_and_resume_callback): New callback function used by the
3565 lin_lwp_wait thread exit handling code.
3566 (stop_wait_callback): Check for threads already having exited and
3567 delete such threads fromt the lwp list when discovered.
3568 (stop_callback): Don't assert retcode of kill call.
3569
3570 Roland McGrath <roland@redhat.com>
3571 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3572 nptl libthread_db.
3573
3574 2003-06-03 Richard Henderson <rth@redhat.com>
3575
3576 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3577 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3578 (alpha_sigtramp_frame_prev_register): Likewise.
3579 (alpha_heuristic_frame_prev_register): Likewise.
3580 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3581
3582 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3583 alpha-specific register id names.
3584 (alpha_mdebug_frame_unwind_cache): Likewise.
3585 (alpha_mdebug_frame_prev_register): Likewise.
3586
3587 2003-06-03 Richard Henderson <rth@redhat.com>
3588
3589 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3590 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3591 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3592 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3593 unwind routines.
3594 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3595 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3596 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3597
3598 * alpha-linux-tdep.c: Remove unnecessary includes.
3599 * Makefile.in (alpha-linux-tdep.o): Update.
3600
3601 2003-06-03 Richard Henderson <rth@redhat.com>
3602
3603 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3604 (alphabsd_fill_fpreg): Likewise.
3605
3606 2003-06-03 J. Brobecker <brobecker@gnat.com>
3607
3608 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3609 references to struct frame_info fields by calls to the equivalent
3610 accessors. Necessary now that frame_info is opaque.
3611
3612 2003-06-03 J. Brobecker <brobecker@gnat.com>
3613
3614 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3615 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3616 structure, field no longer exists.
3617
3618 2003-06-03 J. Brobecker <brobecker@gnat.com>
3619
3620 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3621 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3622
3623 2003-06-03 J. Brobecker <brobecker@gnat.com>
3624
3625 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3626 references to struct frame_info fields by calls to the equivalent
3627 accessors. Necessary now that frame_info is opaque.
3628
3629 2003-06-03 J. Brobecker <brobecker@gnat.com>
3630
3631 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3632 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3633 structure, field no longer exists.
3634
3635 2003-06-03 Theodore A. Roth <troth@openavr.org>
3636
3637 * remote.c (init_remote_state): Compute sizeof_g_packet by
3638 accumulation of the size of all registers instead of blindly using
3639 DEPRECATED_REGISTER_BYTES.
3640
3641 2003-06-03 Michael Snyder <msnyder@redhat.com>
3642
3643 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3644 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3645 for h8300sx.
3646
3647 2003-06-03 J. Brobecker <brobecker@gnat.com>
3648
3649 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3650 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3651
3652 2003-06-03 Andrew Cagney <cagney@redhat.com>
3653
3654 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3655 (sparc_convert_to_raw): Delete function.
3656 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3657 register_convert_to_virtual.
3658
3659 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3660
3661 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3662 layer if not dealing with a statically-linked threaded program.
3663
3664 2003-06-03 Kris Warkentin <kewarken@qnx.com>
3665
3666 * solib.c (solib_open): Update comment to reflect actual search order.
3667
3668 2003-06-03 Andrew Cagney <cagney@redhat.com>
3669
3670 * frame.c (get_frame_memory_signed): New function.
3671 (get_frame_memory, get_frame_memory_unsigned): New function.
3672 (get_frame_arch): New function.
3673 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3674 (get_frame_memory, get_frame_unsigned_memory): Declare.
3675 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3676 get_frame_memory_unsigned and get_frame_arch.
3677 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3678
3679 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3680
3681 * MAINTAINERS (write after approval): Add myself.
3682
3683 2003-06-03 Jim Blandy <jimb@redhat.com>
3684
3685 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3686 elements of gregset_t are 64 bits each, but access registers
3687 are still 32 bits, so they're packed two per gregset_t
3688 element. Unpack/pack them properly.
3689
3690 2003-06-02 David Carlton <carlton@bactrian.org>
3691
3692 * linespec.c (find_methods): Break out code into
3693 add_matching_methods and add_constructors.
3694 (add_matching_methods): New.
3695 (add_constructors): Ditto.
3696
3697 2003-06-02 Andrew Cagney <cagney@redhat.com>
3698
3699 * sparc-tdep.c (sparc_print_registers): Delete call to
3700 REGISTER_CONVERTIBLE.
3701 (sparc_gdbarch_init): Do not set register_convertible.
3702 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3703 * frv-tdep.c (frv_gdbarch_init): Ditto.
3704 * cris-tdep.c (cris_gdbarch_init): Ditto.
3705
3706 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
3707
3708 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3709 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3710 (syms_from_objfile): Ditto.
3711
3712 2003-06-03 Andreas Schwab <schwab@suse.de>
3713
3714 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3715 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3716
3717 2003-06-02 Richard Henderson <rth@redhat.com>
3718
3719 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3720 a member of all_reggroup.
3721
3722 2003-06-02 Richard Henderson <rth@redhat.com>
3723
3724 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3725 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3726 (alpha_lds, alpha_sts): New.
3727 (alpha_convert_register_p): Change from _register_convertible.
3728 (alpha_register_to_value): Change from _convert_to_virtual;
3729 restructure and fail for type sizes other than 4 or 8.
3730 (alpha_value_to_register): Similarly.
3731 (alpha_extract_return_value): Use alpha_sts.
3732 (alpha_store_return_value): Use alpha_lds.
3733 (alpha_gdbarch_init): Update hooks.
3734
3735 2003-06-02 Richard Henderson <rth@redhat.com>
3736
3737 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3738 regnum identifiers.
3739 (alpha_sigtramp_register_address): Likewise.
3740
3741 2003-06-02 Richard Henderson <rth@redhat.com>
3742
3743 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3744 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3745 * alpha-tdep.h: Declare them.
3746
3747 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3748 Remove zerobuf. Don't error on UNIQUE.
3749 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3750 (ALPHA_REGSET_UNIQUE): Provide default.
3751 (supply_gregset): Use alpha_supply_int_regs.
3752 (fill_gregset): Use alpha_fill_int_regs.
3753 (supply_fpregset): Use alpha_supply_fp_regs.
3754 (fill_fpregset): Use alpha_fill_fp_regs.
3755 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3756 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3757 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3758 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3759 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3760 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3761
3762 2003-06-02 Richard Henderson <rth@redhat.com>
3763
3764 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3765
3766 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3767 (alpha_store_return_value): Likewise.
3768
3769 2003-06-02 David Carlton <carlton@math.stanford.edu>
3770
3771 * block.c (contained_in): Add 'const' to arguments.
3772 (block_function): Ditto.
3773 * block.h: Update declarations for block_function and
3774 contained_in.
3775
3776 2003-06-02 David Carlton <carlton@math.stanford.edu>
3777
3778 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3779 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3780 * p-valprint.c (pascal_val_print): Ditto.
3781 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3782
3783 2003-06-02 Richard Henderson <rth@redhat.com>
3784
3785 * alpha-tdep.c (alpha_push_dummy_call): Use
3786 builtin_type_ieee_double_little instead of builtin_type_double.
3787
3788 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
3789 sign-extension of 32-bit values.
3790 (alpha_store_return_value): Similarly.
3791
3792 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3793 (alpha_extract_return_value): Likewise.
3794 (alpha_store_return_value): Likewise.
3795
3796 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3797 (alpha_store_return_value): Error on IEEE Quad floats.
3798
3799 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3800 (alpha_extract_struct_value_address): Likewise.
3801 (alpha_store_return_value): Likewise.
3802 (alpha_store_struct_return): Remove.
3803 (alpha_gdbarch_init): Update hook registration to match.
3804
3805 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3806 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3807 macros where appropriate.
3808 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3809 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
3810
3811 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3812 for SP, GP; void_func_ptr for PC; non-language-specific types
3813 for all others.
3814 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
3815
3816 2003-06-02 Richard Henderson <rth@redhat.com>
3817
3818 * top.h (lim_at_start): Declare.
3819 * main.c (captured_main): Set it.
3820 * top.c (lim_at_start): Define.
3821 (command_loop): Use it instead of &environ.
3822 * event-top.c (command_handler): Likewise.
3823
3824 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3825
3826 * mipsnbsd-tdep.c: Update copyright years.
3827 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3828
3829 2003-06-01 Richard Henderson <rth@redhat.com>
3830
3831 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3832 (alpha-linux-tdep.o): Update dependencies.
3833 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3834 * alpha-mdebug-tdep.c: Remove unneeded includes.
3835
3836 2003-06-01 Richard Henderson <rth@redhat.com>
3837
3838 * alpha-tdep.c (alpha_register_reggroup_p): New.
3839 (alpha_gdbarch_init): Register it.
3840
3841 2003-06-02 Andrew Cagney <cagney@redhat.com>
3842
3843 * dwarfread.c: Eliminate "register"
3844 (decode_die_type): Eliminate assignment within "if".
3845 (struct_type, decode_array_element_type): Ditto.
3846 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3847 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3848 (decode_modified_type, completedieinfo): Ditto.
3849 * block.c: Eliminate "register".
3850 (blockvector_for_pc_sect): Eliminate assignment within "if".
3851 * cp-support.h (struct symbol): Opaque declaration.
3852 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3853
3854 2003-06-01 Richard Henderson <rth@redhat.com>
3855
3856 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3857 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
3858
3859 2003-06-01 Adam Fedor <fedor@gnu.org>
3860
3861 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3862 * gdbarch.[ch]: Regenerate.
3863 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3864 (hppa_gdbarch_init): Set it in the gdbarch vector.
3865 * i386-tdep.c (i386_fetch_pointer_argument): New
3866 (i386_gdbarch_init): Set it into gdbarch.
3867 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3868 (rs6000_gdbarch_init): Set it in gdbarch.
3869 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3870 (sparc_gdbarch_init): Set it in gdbarch.
3871
3872 2003-06-01 Andrew Cagney <cagney@redhat.com>
3873
3874 * defs.h (extract_address): Delete declaration.
3875 * findvar.c (extract_address): Delete function.
3876 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3877 extract_address with the inline equivalent,
3878 extract_unsigned_integer.
3879 (xstormy16_extract_struct_value_address): Ditto.
3880 (xstormy16_pointer_to_address): Ditto.
3881 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3882 * v850-tdep.c (v850_push_arguments): Ditto.
3883 (v850_extract_return_value): Ditto.
3884 (v850_extract_struct_value_address): Ditto.
3885 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3886 (sparcnbsd_get_longjmp_target_64): Ditto.
3887 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3888 (get_longjmp_target): Ditto.
3889 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3890 (sh64_extract_struct_value_address): Ditto.
3891 (sh_push_arguments): Ditto.
3892 (sh64_push_arguments): Ditto.
3893 * remote-vxsparc.c (vx_read_register): Ditto.
3894 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
3895 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
3896 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
3897 * mipsv4-nat.c (get_longjmp_target): Ditto.
3898 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
3899 * mips-nat.c (get_longjmp_target): Ditto.
3900 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
3901 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
3902 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
3903 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
3904 * irix5-nat.c (get_longjmp_target): Ditto.
3905 * irix4-nat.c (get_longjmp_target): Ditto.
3906 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
3907 (ia64_push_arguments): Ditto.
3908 * hpux-thread.c (hpux_thread_store_registers): Ditto.
3909 * h8300-tdep.c (h8300_push_arguments): Ditto.
3910 (h8300_store_return_value): Ditto.
3911 (h8300_extract_struct_value_address): Ditto.
3912 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
3913 (frv_push_arguments): Ditto.
3914 * avr-tdep.c (avr_pointer_to_address): Ditto.
3915 (avr_push_arguments): Ditto.
3916 * arm-tdep.c (arm_push_dummy_call): Ditto.
3917 (arm_get_longjmp_target): Ditto.
3918 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3919 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
3920 (alpha_get_longjmp_target): Ditto.
3921
3922 * solib-irix.c (extract_mips_address): Inline extract_address,
3923 replacing it with extract_signed_integer.
3924 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3925 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
3926 (first_link_map_member, open_symbol_file_object): Ditto.
3927 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
3928 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3929 (LM_NEXT, LM_NAME): Ditto.
3930
3931 2003-06-01 Richard Henderson <rth@redhat.com>
3932
3933 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
3934 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
3935 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
3936 (alpha_cannot_store_register): Likewise.
3937 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
3938 * alpha-nat.c (supply_gregset): Likewise.
3939 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
3940
3941 2003-06-01 Andrew Cagney <cagney@redhat.com>
3942
3943 * infcall.c (call_function_by_hand): Update comment on
3944 DEPRECATED_DUMMY_WRITE_SP.
3945
3946 * mips-tdep.c (mips_gdbarch_init): Do not set
3947 deprecated_dummy_write_sp.
3948 (mips_eabi_push_dummy_call): Set the SP register.
3949 (mips_o64_push_dummy_call): Set the SP register.
3950 (mips_o32_push_dummy_call): Set the SP register.
3951 (mips_n32n64_push_dummy_call): Set the SP register.
3952
3953 2003-06-01 Richard Henderson <rth@redhat.com>
3954
3955 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
3956 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
3957 (supply_gregset): Likewise.
3958 * alpha-tdep.c (alpha_store_return_value): Likewise.
3959 (alpha_get_longjmp_target): Likewise.
3960 (alpha_register_name): Constify array.
3961 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
3962 deprecated_register_size, deprecated_register_bytes,
3963 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
3964 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
3965 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
3966
3967 2003-06-01 Richard Henderson <rth@redhat.com>
3968
3969 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
3970 from arg_reg_buffer to regcache to avoid double conversion.
3971
3972 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3973
3974 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
3975 SP_REGNUM.
3976 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
3977 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
3978
3979 2003-06-01 Richard Henderson <rth@redhat.com>
3980
3981 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
3982 (decode_frame_entry): Set it. Skip FDE augmentation.
3983
3984 2003-06-01 Richard Henderson <rth@redhat.com>
3985
3986 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
3987 not overlapping PC_REGNUM.
3988
3989 2003-06-01 Richard Henderson <rth@redhat.com>
3990
3991 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
3992 alpha_push_arguments. Don't dump argument register data to
3993 the target stack. Fix float and 128-bit long double semantics.
3994 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
3995 (alpha_fix_call_dummy): Remove.
3996 (alpha_call_dummy_words): Remove.
3997 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
3998
3999 2003-06-01 Richard Henderson <rth@redhat.com>
4000
4001 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4002
4003 2003-06-01 Andrew Cagney <cagney@redhat.com>
4004
4005 * mips-tdep.c (is_mips16_addr): New function.
4006 (make_mips16_addr, unmake_mips16_addr): New functions.
4007 (pc_is_mips16, mips_fetch_instruction): Use.
4008 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4009 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4010 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4011 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4012 TARGET_MIPS.
4013 * config/mips/tm-mips.h: Update copyright.
4014 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4015 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4016 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4017 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4018 (TM_PRINT_INSN_MACH): Delete.
4019 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4020
4021 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4022 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4023 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4024 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4025 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4026 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4027 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4028 mips*-*-riscos* and mips*-*-sysv* onto mips.
4029 * config/mips/mips64.mt: New file.
4030 * config/mips/mips.mt: New file.
4031 * config/mips/littlemips.mt: Delete file.
4032 * config/mips/decstation.mt: Delete file.
4033 * config/mips/vr4300el.mt: Delete file.
4034 * config/mips/vr5000el.mt: Delete file.
4035 * config/mips/vr5000.mt: Delete file.
4036 * config/mips/vr4100.mt: Delete file.
4037 * config/mips/vr4xxxel.mt: Delete file.
4038 * config/mips/vr4300.mt: Delete file.
4039 * config/mips/vr4xxx.mt: Delete file.
4040 * config/mips/bigmips.mt: Delete file.
4041 * config/mips/bigmips64.mt: Delete file.
4042 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4043 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4044 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4045 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4046 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4047 "tm-bigmips.h".
4048 * config/mips/tm-irix3.h: Ditto.
4049 * config/mips/tm-mipsv4.h: Ditto.
4050 * config/mips/tm-embed.h: Ditto.
4051 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4052 "tm-bigmips64.h".
4053 * config/mips/tm-vr5000el.h: Delete file.
4054 * config/mips/tm-tx39l.h: Delete file.
4055 * config/mips/tm-vr4300el.h: Delete file.
4056 * config/mips/tm-vr4xxxel.h: Delete file.
4057 * config/mips/tm-vr4300.h: Delete file.
4058 * config/mips/tm-vr4100.h: Delete file.
4059 * config/mips/tm-vr4xxx.h: Delete file.
4060 * config/mips/tm-vr5000.h: Delete file.
4061 * config/mips/tm-embedl64.h: Delete file.
4062 * config/mips/tm-embedl.h: Delete file.
4063 * config/mips/tm-embed64.h: Delete file.
4064 * config/mips/tm-bigmips64.h: Delete file.
4065 * config/mips/tm-bigmips.h: Delete file.
4066
4067 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4068
4069 Fix gdb/1216.
4070 * shnbsd-nat.c: Include "sh-tdep.h".
4071
4072 From Richard Henderson <rth@redhat.com>:
4073 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4074
4075 2003-05-31 Andrew Cagney <cagney@redhat.com>
4076
4077 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4078 forward declaration.
4079 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4080 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4081 (mips_find_saved_regs): Use set_reg_offset.
4082 (mips_frame_init_saved_regs): Delete function.
4083 (mips_pop_frame): Call mips_find_saved_regs instead of
4084 DEPRECATED_FRAME_INIT_SAVED_REGS.
4085
4086 2003-05-31 Andrew Cagney <cagney@redhat.com>
4087
4088 * mips-tdep.c (mips_gdbarch_init): Do not set
4089 deprecated_max_register_raw_size, register_virtual_size, and
4090 deprecated_max_register_virtual_size.
4091
4092 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4093
4094 * i386-tdep.c: Include "dwarf2-frame.h".
4095 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4096 * Makefile.in (i386-tdep.o): Update dependencies.
4097
4098 * dwarf2-frame.c, dwarf2-frame.h: New files.
4099 * Makefile.in (SFILES): Add dwarf2-frame.c.
4100 (dwarf2_frame_h): Define.
4101 (COMMON_OBS): Add dwarf2-frame.o.
4102 (dwarf2-frame.o): Add dependencies.
4103
4104 2003-05-31 Andreas Jaeger <aj@suse.de>
4105
4106 * x86-64-linux-nat.c: Fix comment.
4107
4108 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4109
4110 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4111 function signature.
4112
4113 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4114 have a sigcontext_addr handler.
4115 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4116 sigcontext_addr handler.
4117
4118 2003-05-31 Andrew Cagney <cagney@redhat.com>
4119
4120 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4121 (print_fp_register_row): Replace do_fp_register_row.
4122 (mips_print_fp_register): Add "file" and "frame" parameters.
4123 (mips_print_register): Add "file" and "frame" parameters.
4124 (mips_print_registers_info): Replace mips_do_registers_info.
4125 (mips_gdbarch_init): Set print_registers_info instead of
4126 deprecated_do_registers_info.
4127 (mips_read_fp_register_single): Add "frame" parameter.
4128 (mips_read_fp_register_double): Add "frame" parameter.
4129
4130 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4131
4132 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4133 Fixes a bug where GDB would print the wrong register names for
4134 targets without SSE.
4135
4136 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4137 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4138 registers.
4139
4140 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4141 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4142 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4143 TDEP->sc_sp_offset.
4144
4145 From Michal Ludvig <mludvig@suse.cz>:
4146 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4147 and `sc_num_regs'.
4148 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4149 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4150 I386_ST0_REGNUM): Move here from...
4151 * i386-tdep.c: ... here.
4152 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4153 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4154 registers if possible.
4155 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4156 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4157 Remove variables.
4158 (i386bsd_sc_reg_offset): New variable.
4159 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4160 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4161 TDEP->sc_sp_offset.
4162 (i386fbsd_sc_reg_offset): New variable.
4163 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4164 TDEP->sc_num_regs.
4165 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4166 variables.
4167 (i386fbsd4_sc_reg_offset): New variable.
4168 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4169 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4170 TDEP->sc_sp_offset.
4171 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4172 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4173 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4174 Remove variables.
4175 (i386nbsd_sc_reg_offset): New variable.
4176 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4177 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4178 TDEP->sc_sp_offset.
4179 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4180 Remove variables.
4181 (i386obsd_sc_reg_offset): New variable.
4182 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4183 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4184 TDEP->sc_sp_offset.
4185 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4186 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4187 for frame pointer offset in `struct sigcontext'.
4188
4189 2003-05-31 Andrew Cagney <cagney@redhat.com>
4190
4191 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4192 architecture methods call_dummy_words, sizeof_call_dummy_words,
4193 push_return_address, store_struct_return, and fix_call_dummy. Set
4194 push_dummy_call instead of deprecated_push_arguments.
4195 (mips_store_struct_return): Delete function.
4196 (mips_fix_call_dummy): Delete function.
4197 (mips_push_return_address): Delete function.
4198 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4199 RA_REGNUM and T9_REGNUM.
4200 (mips_n32n64_push_dummy_call): Ditto for
4201 mips_n32n64_push_arguments.
4202 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4203 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4204
4205 2003-05-31 Andrew Cagney <cagney@redhat.com>
4206
4207 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4208 "dummy_addr" to "bp_addr".
4209 * infcall.c (call_function_by_hand): Pass "funaddr" to
4210 gdbarch_push_dummy_call.
4211 * gdbarch.h, gdbarch.c: Re-generate.
4212 * i386-tdep.c (i386_push_dummy_call): Update.
4213 * arm-tdep.c (arm_push_dummy_call): Update.
4214 * d10v-tdep.c (d10v_push_dummy_call): Update.
4215
4216 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4217
4218 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4219 variable declarations.
4220 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4221 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4222 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4223 x86_64_init_frame_pc, x86_64_init_frame_pc,
4224 x86_64_function_has_prologue): Remove prototypes.
4225 (X86_64_NUM_GREGS): New define.
4226 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4227 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4228 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4229 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4230 XMM1_REGNUM): Remove defines.
4231 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4232 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4233 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4234 X86_64_XMM1_REGNUM): New defines.
4235 (struct x86_64_register_info): Renamed from `struct
4236 register_info'. Remove `size' member.
4237 (x86_64_register_info_table): Remove variable.
4238 (x86_64_register_info): New variable.
4239 (X86_64_NUM_REGS): New define.
4240 (X86_64_NUM_GREGS): Remove define.
4241 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4242 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4243 Remove variables.
4244 (x86_54_dwarf2_reg_to_regnum): Remove function.
4245 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4246 (x86_64_dwarf_reg_to_regnum): New function.
4247 (x86_64_register_name): Rewrite.
4248 (x86_64_register_raw_size): Remove function.
4249 (x86_64_register_byte_table): Remove variable.
4250 (x86_64_register_byte): Remove function.
4251 (x86_64_register_virtual_type): Remove function.
4252 (x86_64_register_type): New function.
4253 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4254 x86_64_register_convert_to_raw): Remove functions.
4255 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4256 (x86_64_use_struct_convention): Make static. Adjust for renamed
4257 defines.
4258 (x86_64_frame_init_saved_regs): Remove function.
4259 (x86_64_push_arguments): Make static. Change to accept a regcache
4260 as argument.
4261 (x86_64_store_return_value, x86_64_extract_return_value): Make
4262 static. Rewrite based on i386 counterparts.
4263 (x86_64_push_dummy_call): New function.
4264 (X86_64_NUM_SAVED_REGS): New define.
4265 (x86_64_register_number): Remove function.
4266 (x86_64_store_struct_return): Remove function.
4267 (x86_64_frameless_function_invocation,
4268 x86_64_function_has_prologue): Remove functions.
4269 (PROLOG_BUFSIZE): Remove define.
4270 (struct x86_64_frame_cache): New structure.
4271 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4272 x86_64_frame_cache, x86_64_frame_this_id,
4273 x86_64_frame_prev_register, x86_64_frame_p,
4274 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4275 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4276 functions.
4277 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4278 variables.
4279 (x86_64_skip_prologue): Rewrite in terms of
4280 x86_64_analyze_prologue.
4281 (x86_64_frame_base_address): New function.
4282 (x86_64_frame_base): New variable.
4283 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4284 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4285 set deprecated_fp_regnum, deprecated_register_size,
4286 deprecated_register_bytes, register_raw_size, register_byte,
4287 register_virtual_type, register_convertiable,
4288 register_convert_to_virtual, convert_to_raw,
4289 deprecated_get_saved_register, deprecated_target_read_fp,
4290 deprecated_push_arguments, deprecated_push_return_address,
4291 deprecated_pop_frame, deprecated_store_struct_return,
4292 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4293 frameless_function_invocation, deprecated_frame_saved_pc,
4294 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4295 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4296 deprecated_init_frame_pc and virtual_frame_pointer. Call
4297 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4298 and x86_64_frame_p. Call frame_base_set_default to register
4299 x86_64_frame_base.
4300 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4301 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4302 (_initialize_x86_64_tdep): Remove function.
4303 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4304 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4305 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4306 define.
4307 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4308 (x86_64_linux_sigcontext_addr): Rewrite.
4309 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4310 x86_64_linux_frame_saved_pc): Remove functions.
4311 (x86_64_linux_pc_in_sigtramp): Renamed from
4312 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4313 trampoline.
4314 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4315 Remove_functions.
4316 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4317 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4318 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4319 (x86_64_regmap): Rename to regmap.
4320 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4321 x86_64_num_gregs.
4322 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4323 x86_64_regmap.
4324 (x86_64_fxsave_offset): Remove function.
4325 (supply_fpregset): Simply call x86_64_supply_fxsave.
4326 (fill_fpregset): Simply call x86_64_fill_fxsave.
4327 (fetch_inferior_registers, store_inferior_registers): Avoid
4328 asignment in if-statement.
4329 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4330 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4331 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4332 (fetch_core_registers): Remove function.
4333 (linux_elf_core_fns): Remove.
4334 (offsetoff): Don't define.
4335 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4336 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4337 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4338 add core-regset.o.
4339 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4340 protection against multiple includes instead of NM_X86_64_h. Add
4341 various comments. Include "config/nm-linux.h". Don't include
4342 <signal.h>.
4343 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4344 GET_THREAD_SIGNALS): Remove defines.
4345 (x86_64_register_u_addr, kernel_u_size,
4346 lin_thread_get_thread_signals): Remove prototypes.
4347 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4348 [HAVE_LINK_H]: Don't include "solib.h".
4349 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4350 * config/i386/tm-x86-64linux.h: Fix comments.
4351 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4352 x86-64-tdep.o): Update dependencies.
4353
4354 2003-05-30 Andrew Cagney <cagney@redhat.com>
4355
4356 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4357 Change parameter type to a "struct regcache *".
4358
4359 * gdbarch.sh: Regardless of the multi-arch level, always define
4360 the macro when not already defined.
4361 * gdbarch.h, gdbarch.c: Re-generate.
4362
4363 2003-05-30 Richard Henderson <rth@redhat.com>
4364
4365 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4366 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4367 (alpha_mdebug_frame_this_id): Likewise.
4368 (alpha_mdebug_frame_prev_register): Likewise.
4369 (alpha_mdebug_frame_base_address): Likewise.
4370 (alpha_mdebug_frame_locals_address): Likewise.
4371 (alpha_mdebug_frame_args_address): Likewise.
4372 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4373 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4374 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4375 loop increment.
4376 (alpha_heuristic_frame_this_id): Make static.
4377 (alpha_heuristic_frame_prev_register): Likewise.
4378 (alpha_heuristic_frame_base_address): Likewise.
4379 * alpha-tdep.h: Update.
4380
4381 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4382
4383 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4384 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4385 defenitions.
4386 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4387 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4388 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4389 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4390 I386_ST0_REGNUM): New defines.
4391 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4392 codestream_get): Remove define.
4393 (codestream_next_addr, condestream_addr, condestream_buf,
4394 codestream_off, codestream_cnt): Remove variables.
4395 (codestream_fill, codestream_seek, codestream_read): Remove
4396 functions.
4397 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4398 functionality.
4399 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4400 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4401 i386_frame_saved_pc, i386_saved_pc_after_call,
4402 i386_frame_num_args, i386_frame_init_saved_regs,
4403 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4404 i386_push_arguments): Remove functions.
4405 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4406 functionality. Use i386_analyze_prologue instead of
4407 i386_get_frame_setup.
4408 (I386_NUM_SAVED_REGS): New define.
4409 (struct i386_frame_cache): New structure.
4410 (i386_alloc_frame_cache, i386_analyze_struct_return,
4411 i386_skip_probe, i386_analyze_frame_setup,
4412 i386_analyze_register_saves, i386_analyze_prologue,
4413 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4414 i386_frame_prev_register, i386_sigtramp_frame_cache,
4415 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4416 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4417 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4418 New functions.
4419 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4420 New variables.
4421 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4422 I386_EAX_REGNUM and I386_EDX_REGNUM.
4423 (i386_extract_return_value, i386_store_return_value): Use
4424 I386_ST0_REGNUM where appropriate.
4425 (i386_extract_struct_value_address): Rewrite to use extract_address.
4426 (i386_svr4_pc_in_sigtramp): Add comment.
4427 (i386_svr4_sigcontext_addr): Rewrite.
4428 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4429 TDEP->sc_sp_offset.
4430 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4431 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4432 of new defines. Set push_dummy_call, don't set
4433 deprecated_push_arguments, deprecated_push_return_address,
4434 deprecated_pop_frame. Don't set parm_boundary. Don't set
4435 deprecated_frame_chain, deprecated_frame_saved_pc,
4436 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4437 save_dummy_frame_tos, unwind_pc. Call
4438 frame_unwind_append_predicate and frame_base_set_default. Don't
4439 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4440 Don't set frameless_function_invocation. Don't set
4441 deprecated_register_bytes, deprecated_register_size,
4442 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4443 * i386-linux-tdep.c: Fix formatting in some comments.
4444 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4445 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4446 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4447 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4448 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4449 redundant parentheses.
4450 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4451 (i386_linux_sigcontext_addr): Use it. Rewrite.
4452 (find_minsym_and_objfile): Change name of second argument.
4453 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4454 changed. Use frame_pc_unwind instead of
4455 DEPRECATED_SAVED_PC_AFTER_CALL.
4456 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4457 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4458 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4459 unwinder.
4460 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4461 "dummy-frame.h".
4462 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4463 (_initialize_i386_cygwin_tdep): New prototype.
4464 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4465 deprecated_frame_chain_valid.
4466 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4467 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4468 Rely on the SVR4 defaults.
4469 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4470 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4471
4472 2003-05-30 Andrew Cagney <cagney@redhat.com>
4473
4474 * infcall.c (call_function_by_hand): Always call
4475 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4476
4477 2003-05-30 Richard Henderson <rth@redhat.com>
4478
4479 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4480 increment.
4481
4482 2003-05-29 Jim Blandy <jimb@redhat.com>
4483
4484 Use gdbarch methods for solib stuff on PowerPC Linux.
4485 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4486 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4487 show through.
4488 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4489 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4490 giving the same effect as the #definitions above.
4491
4492 2003-05-29 Adam Fedor <fedor@gnu.org>
4493
4494 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4495 (find_implementation_from_class): Replace it with the standard
4496 case i.e. do nothing.
4497
4498 2003-05-29 Richard Henderson <rth@redhat.com>
4499
4500 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4501 (alpha_linux_sigtramp_offset): Use it. Make static.
4502 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4503 update for new frame model.
4504 * alpha-mdebug-tdep.c: New file.
4505 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4506 (alpha_osf1_init_abi): Install it.
4507 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4508 (linked_proc_desc_table): Remove.
4509 (alpha_frame_past_sigtramp_frame): Remove.
4510 (alpha_dynamic_sigtramp_offset): Remove.
4511 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4512 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4513 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4514 (push_sigtramp_desc): Remove.
4515 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4516 (alpha_cannot_store_register): Likewise.
4517 (alpha_sigcontext_addr): Remove.
4518 (alpha_find_saved_regs): Remove.
4519 (alpha_frame_init_saved_regs): Remove.
4520 (alpha_init_frame_pc_first): Remove.
4521 (read_next_frame_reg): Remove.
4522 (alpha_frame_saved_pc): Remove.
4523 (alpha_saved_pc_after_call): Remove.
4524 (temp_proc_desc, temp_saved_regs): Remove.
4525 (alpha_about_to_return): Remove.
4526 (cached_proc_desc): Remove.
4527 (alpha_frame_chain): Remove.
4528 (alpha_print_extra_frame_info): Remove.
4529 (alpha_init_extra_frame_info): Remove.
4530 (alpha_frame_locals_address): Remove.
4531 (alpha_frame_args_address): Remove.
4532 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4533 (alpha_push_dummy_frame): Remove.
4534 (alpha_pop_frame): Remove.
4535 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4536 (alpha_read_insn): New.
4537 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4538 for different insn encodings.
4539 (alpha_in_lenient_prologue): Remove.
4540 (struct alpha_sigtramp_unwind_cache): New.
4541 (alpha_sigtramp_frame_unwind_cache): New.
4542 (alpha_sigtramp_register_address): New.
4543 (alpha_sigtramp_frame_this_id): New.
4544 (alpha_sigtramp_frame_prev_register): New.
4545 (alpha_sigtramp_frame_unwind): New.
4546 (alpha_sigtramp_frame_p): New.
4547 (struct alpha_heuristic_unwind_cache): New.
4548 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4549 don't count nop insns that occur between functions.
4550 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4551 heuristic_proc_desc, but without the mdebug wrapping.
4552 (alpha_heuristic_frame_this_id): New.
4553 (alpha_heuristic_frame_prev_register): New.
4554 (alpha_heuristic_frame_unwind): New.
4555 (alpha_heuristic_frame_p): New.
4556 (alpha_heuristic_frame_base_address): New.
4557 (alpha_heuristic_frame_base): New.
4558 (alpha_unwind_dummy_id): New.
4559 (alpha_unwind_pc): New.
4560 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4561 frame related deprecated initializations; install replacements.
4562 (alpha_dump_tdep): Remove.
4563 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4564 (alpha_read_insn, alpha_after_prologue,
4565 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4566 alpha_heuristic_frame_prev_register,
4567 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4568 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4569 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4570 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4571
4572 2003-05-29 Andrew Cagney <cagney@redhat.com>
4573
4574 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4575 dependant on the availability of ASSERT_FUNCTION.
4576 (ASSERT_FUNCTION): Do not define when there is no function name.
4577
4578 2003-05-29 Kevin Buettner <kevinb@redhat.com>
4579
4580 From Jimi X <jimix@watson.ibm.com>:
4581 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4582
4583 2003-05-28 Jim Blandy <jimb@redhat.com>
4584
4585 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4586 argument to ptrace to int; the system headers should give it the
4587 right type, and pointers don't fit in ints on powerpc64-*-*.
4588
4589 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4590
4591 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4592 DW_TAG_catch_block.
4593
4594 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4595
4596 * stabsread.c (dbx_lookup_type): Make static.
4597 (read_type): Ditto.
4598 (add_undefined_type): Ditto.
4599 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4600 not export.
4601
4602 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4603
4604 * hpread.c (hpread_has_name): Make static.
4605 (hpread_psymtab_to_symtab): Ditto.
4606 (file_exists): Ditto.
4607 (hpread_call_pxdb): Ditto.
4608 (hpread_pxdb_needed): Ditto.
4609 (hpread_quick_traverse): Ditto.
4610 (hpread_get_header): Ditto.
4611 (hpread_get_lntt): Ditto.
4612 (hpread_get_slt): Ditto.
4613 (class_of): Ditto.
4614
4615 2003-05-25 Andreas Schwab <schwab@suse.de>
4616
4617 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4618 stack_align and deprecated_extra_stack_alignment_needed.
4619 (m68k_stack_align): Delete.
4620
4621 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4622 (m68k_register_virtual_size): Likewise.
4623 (altos_skip_prologue): Remove obsolete function.
4624 (isi_frame_num_args): Likewise.
4625 (news_frame_num_args): Likewise.
4626 (m68k_fix_call_dummy): Make static.
4627 (m68k_push_dummy_frame): Likewise.
4628 (m68k_pop_frame): Likewise.
4629 (m68k_skip_prologue): Likewise.
4630 (m68k_frame_init_saved_regs): Likewise.
4631 (m68k_saved_pc_after_call): Likewise.
4632 (m68k_get_longjmp_target): Make multi-arch.
4633 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4634 structure. Register m68k_get_longjmp_target if enabled.
4635 * m68k-tdep.h (struct gdbarch_tdep): Define.
4636 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4637
4638 * Makefile.in (config.status): Also depend on configure.tgt
4639 and configure.host.
4640 (m68klinux-tdep.o): Update dependencies.
4641 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4642 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4643 (M68K_LINUX_JB_PC): Define.
4644 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4645 and take additional parameter.
4646 (m68k_linux_sigtramp_saved_pc): Update.
4647 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4648 m68k_linux_pc_in_sigtramp, in_plt_section,
4649 find_solib_trampoline_target.
4650 * config/m68k/tm-linux.h: Don't include any tm headers.
4651 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4652 (JB_ELEMENT_SIZE): Likewise.
4653 (JB_PC): Likewise.
4654 (GET_LONGJMP_TARGET): Likewise.
4655 (IN_SIGTRAMP): Likewise.
4656 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4657
4658 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4659
4660 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4661 (sparc32_push_arguments): Re-implement by calling
4662 sparc32_do_push_arguments.
4663
4664 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4665
4666 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4667 SPARC_O1_REGNUM): New defines.
4668 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4669 (sparc32_store_return_value): New function.
4670 (sparc_extract_struct_value_address): Rewrite to operate on a
4671 regcache.
4672 (sparc_gdbarch_init): Don't set
4673 deprecated_extract_struct_value_address. Set
4674 extract_struct_value_address instead. Don't set
4675 deprecated_extract_return_value and deprecated_store_return_value
4676 for 32-bit targets. Set extract_return_value and
4677 store_return_value instead.
4678 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4679 DEPRECTAED_EXTRACT_RETURN_VALUE,
4680 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4681 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4682 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4683 (sparc_store_return_value): Remove prototype.
4684 (sparc32_store_return_value): New prototype.
4685 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4686 Adjust prototypes.
4687
4688 2003-05-24 Mark Kettenis <kettenis@gnu.org>
4689
4690 * sparcnbsd-tdep.c: Include "gdb_string.h".
4691
4692 2003-05-23 Andrew Cagney <cagney@redhat.com>
4693
4694 * p-valprint.c (pascal_val_print): Replace extract_address with
4695 the inline equivalent extract_unsigned_integer.
4696 * jv-valprint.c (java_value_print): Ditto.
4697 * ada-valprint.c (ada_val_print_1): Ditto.
4698 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4699
4700 2003-05-23 Theodore A. Roth <troth@openavr.org>
4701
4702 * blockframe.c (frameless_look_for_prologue): Remove unused
4703 after_prologue variable.
4704
4705 2003-05-23 Mark Kettenis <kettenis@gnu.org>
4706
4707 * blockframe.c (get_pc_function_start): Rewrite to avoid
4708 asignments in if-statements.
4709
4710 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4711
4712 Committed by Elena Zannoni <ezannoni@redhat.com>.
4713 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4714 files, don't relocate absolute symbols (and do use mst_abs).
4715
4716 2003-05-23 Andrew Cagney <cagney@redhat.com>
4717
4718 * objc-lang.c: Include "gdb_assert.h".
4719 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4720 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4721 (gdb_check, gdb_check_fatal): Delete functions.
4722 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4723 gdb_assert.
4724 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4725 * Makefile.in (objc-lang.o): Update dependencies.
4726
4727 2003-05-22 Ian Lance Taylor <ian@airs.com>
4728
4729 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4730 with fprintf_filtered, not fprintf_unfiltered.
4731
4732 2003-05-22 Andrew Cagney <cagney@redhat.com>
4733
4734 * stack.c (frame_info): Inline extract_address, replacing it with
4735 extract_unsigned_integer.
4736 * findvar.c (unsigned_pointer_to_address): Ditto.
4737 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4738 * dwarf2expr.c (dwarf2_read_address): Ditto.
4739 * frame.c (frame_pc_unwind): Update comment.
4740 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4741
4742 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4743
4744 * infptrace.c (detach): Call print_sys_errmsg rather than
4745 perror_with_name to issue warning message when errno is non-zero
4746 after calling ptrace detach.
4747
4748 2003-05-21 J. Brobecker <brobecker@gnat.com>
4749
4750 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4751 macro definitions from here...
4752 * hppa-tdep.c: ...to there.
4753
4754 2003-05-20 Kevin Buettner <kevinb@redhat.com>
4755
4756 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4757 register_ptrace_addr(). Fix all callers.
4758
4759 2003-05-21 Andreas Schwab <schwab@suse.de>
4760
4761 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4762 dependencies.
4763 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4764 end.
4765 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4766 (_initialize_m68k_linux_tdep): New function.
4767 (m68k_linux_frame_saved_pc): Make static.
4768 (m68k_linux_extract_return_value): Likewise.
4769 (m68k_linux_store_return_value): Likewise.
4770 (m68k_linux_extract_struct_value_address): Likewise.
4771 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4772 Remove.
4773 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4774 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4775 (DEPRECATED_FRAME_SAVED_PC): Remove.
4776
4777 2003-05-20 Kris Warkentin <kewarken@qnx.com>
4778
4779 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4780 regset numbering rather than our own.
4781
4782 2003-05-19 David Carlton <carlton@bactrian.org>
4783
4784 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4785
4786 2003-05-19 David Carlton <carlton@bactrian.org>
4787
4788 Partial fix for PR c++/827.
4789 * cp-support.h: Include symtab.h.
4790 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4791 * cp-namespace.c: Update contributors.
4792 (cp_lookup_symbol_nonlocal): New.
4793 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4794 (lookup_symbol_file): Ditto.
4795 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4796 * block.h: Declare block_scope, block_using, block_global_block.
4797 * block.c (block_scope): New.
4798 (block_using, block_global_block): Ditto.
4799 * Makefile.in (cp_support_h): Depend on symtab_h.
4800 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4801
4802 2003-05-19 David Carlton <carlton@bactrian.org>
4803
4804 * language.h (struct language_defn): Add 'la_value_of_this'
4805 and 'la_lookup_symbol_nonlocal' members.
4806 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4807 lookup_symbol_static, lookup_symbol_global,
4808 lookup_symbol_aux_block.
4809 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4810 if we should search fields of this and how to do static/global
4811 lookup.
4812 (lookup_symbol_aux_block): Make extern.
4813 (basic_lookup_symbol_nonlocal): New.
4814 (lookup_symbol_static, lookup_symbol_global): Ditto.
4815 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4816 'la_lookup_symbol_nonlocal' members.
4817 * c-lang.c (c_language_defn, cplus_language_defn)
4818 (asm_language_defn, minimal_language_defn): Ditto.
4819 * jv-lang.c (java_language_defn): Ditto.
4820 * language.c (unknown_language_defn, auto_language_defn)
4821 (local_language_defn): Ditto.
4822 * m2-lang.c (m2_language_defn): Ditto.
4823 * objc-lang.c (objc_language_defn): Ditto.
4824 * scm-lang.c (scm_language_defn): Ditto.
4825 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4826 * p-lang.c (pascal_language_defn): Ditto for both.
4827 * Makefile.in (f-lang.o): Depend on value_h.
4828 (p-lang.o): Ditto.
4829
4830 2003-05-19 David Carlton <carlton@bactrian.org>
4831
4832 * block.h: Declare block_static_block.
4833 * block.c (block_static_block): New.
4834 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4835 lookup_symbol_aux_local, calling block_static_block instead.
4836 (lookup_symbol_aux_local): Delete 'static_block' argument.
4837
4838 2003-05-19 David Carlton <carlton@bactrian.org>
4839
4840 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4841
4842 2003-05-19 Michal Ludvig <mludvig@suse.cz>
4843
4844 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4845 register numbers mapping.
4846
4847 2003-05-18 Adam Fedor <fedor@gnu.org>
4848
4849 * symtab.c (completion_list_objc_symbol): New function.
4850 (make_symbol_completion_list): Use it to add ObjC symbols
4851 when looking though the list.
4852 (language_search_unquoted_string): New function.
4853 (make_file_symbol_completion_list): Use it.
4854
4855 2003-05-18 Andreas Schwab <schwab@suse.de>
4856
4857 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4858 dependencies.
4859 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4860 as m68k_linux_extract_return_value.
4861 (DEPRECATED_STORE_RETURN_VALUE): Define as
4862 m68k_linux_store_return_value.
4863 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4864 m68k_linux_extract_struct_value_address.
4865 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4866 get_next_frame, get_frame_base, get_frame_pc.
4867 (m68k_linux_frame_saved_pc): Use get_frame_base.
4868 (m68k_linux_extract_return_value): New function.
4869 (m68k_linux_store_return_value): New function.
4870 (m68k_linux_extract_struct_value_address): New function.
4871 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4872
4873 * c-exp.y (typebase): Remove duplicate occurence of
4874 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
4875 of lookup_signed_typename.
4876
4877 2003-05-18 Mark Kettenis <kettenis@gnu.org>
4878
4879 * dwarf2loc.c (find_location_expression): Change type of second
4880 argument to `size_t *'.
4881 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4882 for size variable.
4883
4884 2003-05-18 David Carlton <carlton@bactrian.org>
4885
4886 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4887 'linkage_name'. Add comment.
4888 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4889 'linkage_name'.
4890 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4891 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
4892 (lookup_block_symbol): Ditto.
4893
4894 2003-05-16 Andrew Cagney <cagney@redhat.com>
4895
4896 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
4897 * gdbarch.h, gdbarch.c: Re-generate.
4898 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
4899 * TODO (REGISTER_BYTES): Delete reference.
4900 * alpha-tdep.c (alpha_gdbarch_init): Update.
4901 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4902 * x86-64-tdep.c (x86_64_init_abi): Update.
4903 * vax-tdep.c (vax_gdbarch_init): Update.
4904 * v850-tdep.c (v850_gdbarch_init): Update.
4905 * sparc-tdep.c (sparc_gdbarch_init): Update.
4906 * sh-tdep.c (sh_gdbarch_init): Update.
4907 * s390-tdep.c (s390_gdbarch_init): Update.
4908 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4909 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4910 (ns32k_gdbarch_init_32382): Update.
4911 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4912 * mcore-tdep.c (mcore_gdbarch_init): Update.
4913 * m68k-tdep.c (m68k_gdbarch_init): Update.
4914 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4915 * ia64-tdep.c (ia64_gdbarch_init): Update.
4916 * i386-tdep.c (i386_gdbarch_init): Update.
4917 * i386-linux-tdep.c (i386_linux_init_abi): Update.
4918 * hppa-tdep.c (hppa_gdbarch_init): Update.
4919 * h8300-tdep.c (h8300_gdbarch_init): Update.
4920 * frv-tdep.c (frv_gdbarch_init): Update.
4921 * cris-tdep.c (cris_gdbarch_init): Update.
4922 * avr-tdep.c (avr_gdbarch_init): Update.
4923 * arm-tdep.c (arm_gdbarch_init): Update.
4924 * sparc-tdep.c (sparc_pop_frame): Update.
4925 * rs6000-tdep.c (rs6000_pop_frame): Update.
4926 * remote.c (init_remote_state): Update.
4927 (remote_prepare_to_store): Update.
4928 * remote-vx.c (vx_prepare_to_store): Update.
4929 * remote-sds.c (sds_fetch_registers): Update.
4930 (sds_prepare_to_store): Update.
4931 * remote-array.c: Update.
4932 * regcache.c (init_legacy_regcache_descr): Update.
4933 (init_regcache_descr): Update.
4934 * mips-tdep.c (mips_eabi_extract_return_value): Update.
4935 (mips_o64_extract_return_value): Update.
4936 * irix5-nat.c (fetch_core_registers): Update.
4937 * irix4-nat.c (fetch_core_registers): Update.
4938 * i386-tdep.h: Update.
4939 * hppa-tdep.c (pa_do_registers_info): Update.
4940 (pa_do_strcat_registers_info): Update.
4941 * cris-tdep.c (cris_register_bytes_ok): Update.
4942 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4943 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
4944 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
4945 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
4946 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
4947 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
4948 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
4949 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
4950 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
4951 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
4952 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
4953 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
4954 (REGISTER_BYTES_OK): Update.
4955 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
4956 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
4957
4958 2003-05-16 Ian Lance Taylor <ian@airs.com>
4959
4960 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
4961 (vax_print_insn, print_insn_arg): Remove static functions.
4962 (vax_gdbarch_init): Call set_gdbarch_print_insn with
4963 print_insn_vax from opcodes library.
4964 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
4965
4966 2003-05-15 Andrew Cagney <cagney@redhat.com>
4967
4968 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
4969 * target.h (memory_breakpoint_from_pc): Delete declaration.
4970 * mem-break.c (memory_breakpoint_from_pc): Delete function.
4971 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
4972 * monitor.c (monitor_insert_breakpoint): Use
4973 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
4974 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
4975 * gdbarch.h, gdbarch.c: Re-generate.
4976 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
4977 (sparc_gdbarch_init): Set breakpoint_from_pc to
4978 sparc_breakpoint_from_pc.
4979 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
4980 (BREAKPOINT_FROM_PC): Define.
4981 (sparc_breakpoint_from_pc): Declare.
4982 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
4983 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
4984 (BREAKPOINT_FROM_PC): Define.
4985 (BREAKPOINT): Delete macro.
4986 * target.h: Update comment.
4987 * s390-tdep.c (s390_gdbarch_init): Update comments.
4988 * remote.c: Update comments.
4989 * remote-mips.c: Update comments.
4990 * proc-api.c (write_with_trace): Do not check for a breakpoint.
4991 * mem-break.c: Update comment.
4992 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
4993 (ia64_memory_insert_breakpoint): Update.
4994 * config/sparc/tm-sparc.h: Update comment.
4995 * config/pa/tm-hppa64.h: Update comment.
4996 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4997 (rs6000_breakpoint_from_pc): Update.
4998 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4999 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5000 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5001 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5002 (mips_breakpoint_from_pc): Update.
5003 (mips_dump_tdep): Update.
5004
5005 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5006 * minsyms.c (lookup_minimal_symbol): Inline
5007 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5008
5009 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5010 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5011 * p-lang.c (pascal_printstr): Ditto.
5012 * objc-lang.c (objc_printstr): Ditto.
5013 * m2-lang.c (m2_printstr): Ditto.
5014 * jv-valprint.c (java_print_value_fields): Ditto.
5015 * f-lang.c (f_printstr): Ditto.
5016 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5017 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5018 for repeat_count_threshold.
5019 * Makefile.in (cp-valprint.o): Update dependencies.
5020
5021 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
5022
5023 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5024 (examine_prologue): Support looking through leaf functions, knowing
5025 they start with mov r2,r12. Support skipping over indirect stores
5026 of the input registers. Upon hitting a non-nop branch instruction
5027 or predicated instruction, bail out by setting lim_pc to the current
5028 pc value in the loop. At the end, if the lim_pc value is still
5029 beyond our calculated value and we have trust_limit set,
5030 use the lim_pc value.
5031
5032 2003-05-15 Andrew Cagney <cagney@redhat.com>
5033
5034 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5035 generic_find_dummy_frame.
5036 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5037 (deprecated_generic_find_dummy_frame): Update.
5038 (deprecated_read_register_dummy): Update.
5039 * frame.c (deprecated_generic_get_saved_register): Update.
5040
5041 2003-05-15 Theodore A. Roth <troth@openavr.org>
5042
5043 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5044 (avr_gdbarch_init): Set breakpoint_from_pc method.
5045
5046 2003-05-15 Andrew Cagney <cagney@redhat.com>
5047
5048 * regcache.c (build_regcache): Set deprecated_register_valid
5049 directly.
5050 (deprecated_grub_regcache_for_register_valid): Delete function.
5051 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5052 declaration.
5053
5054 2003-05-15 David Carlton <carlton@bactrian.org>
5055
5056 Committed by Elena Zannoni <ezannoni@redhat.com>
5057 * symtab.c (lookup_symbol_aux): Delete calls to
5058 lookup_symbol_aux_minsyms.
5059 (lookup_symbol_aux_minsyms): Comment out function and
5060 prototype. Delete lookup by mangled name.
5061
5062 2003-05-14 Kevin Buettner <kevinb@redhat.com>
5063
5064 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5065 correctly indicate an empty stack and ``stack_allocated'' to the
5066 indicate the number of elements initially allocated.
5067 (dwarf_expr_grow_stack): Simplify method for computing new
5068 stack size. Don't loop infinitely if ``stack_len'' is zero.
5069 (execute_stack_op): Move ``ctx->in_reg'' initialization
5070 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5071 be used in conjuction with DW_OP_piece. Revise error message
5072 accordingly.
5073
5074 2003-05-14 Theodore A. Roth <troth@openavr.org>
5075
5076 * MAINTAINERS: Update my email address.
5077 * avr-tdep.c: Ditto.
5078
5079 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
5080
5081 * symtab.h (enum domain_enum): Rename from namespace_enum.
5082 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5083 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5084 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5085 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5086 TYPES_NAMESPACE, METHODS_NAMESPACE.
5087 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5088 (struct symbol, struct partial_symbol): Rename field
5089 'namespace_enum namespace' to 'domain_enum domain'.
5090 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5091 Delete old define kludge for namespace.
5092
5093 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5094 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5095 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5096 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5097 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5098 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5099 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5100 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5101 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5102 occurrences of the above.
5103
5104 2003-05-14 Ian Lance Taylor <ian@airs.com>
5105
5106 * Makefile.in (install-only): Use $(SHELL) when running
5107 mkinstalldirs.
5108
5109 2003-05-13 Ian Lance Taylor <ian@airs.com>
5110
5111 * MAINTAINERS (write after approval): Add myself.
5112
5113 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5114 second and third arguments.
5115 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5116 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5117
5118 2003-05-13 Andrew Cagney <cagney@redhat.com>
5119
5120 * defs.h (store_address): Delete declaration.
5121 findvar.c (store_address): Delete function.
5122 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5123 store_unsigned_integer.
5124 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5125 * v850-tdep.c (v850_push_arguments): Ditto.
5126 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5127 * sh-tdep.c (sh64_get_saved_register): Ditto.
5128 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5129 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5130 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5131 (mips_get_saved_register): Ditto.
5132 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5133 (find_func_descr, ia64_push_arguments): Ditto.
5134 * i386-tdep.c (i386_push_arguments): Ditto.
5135 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5136 * frv-tdep.c (frv_push_arguments): Ditto.
5137 * frame.c (legacy_saved_regs_prev_register): Ditto.
5138 (deprecated_generic_get_saved_register): Ditto.
5139 * findvar.c (unsigned_address_to_pointer): Ditto.
5140 * dwarf2read.c (dwarf2_const_value): Ditto.
5141 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5142 * alpha-tdep.c (alpha_push_arguments): Ditto.
5143
5144 2003-05-12 J. Brobecker <brobecker@gnat.com>
5145
5146 * NEWS: Mention that the hppa-hpux port has been partially
5147 multiarched (32bit ABIT only, so far).
5148
5149 2003-05-11 Andrew Cagney <cagney@redhat.com>
5150
5151 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5152 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5153 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5154 sim/testsuite/sim/arm/misaligned2.ms, and
5155 sim/testsuite/sim/arm/misaligned3.ms.
5156 * disasm.h (struct ui_file): Add opaque struct declaration.
5157 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5158 * frame.h (struct ui_file): Ditto.
5159
5160 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5161
5162 * value.h: Pretty print.
5163
5164 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5165
5166 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5167
5168 2003-05-08 Andrew Cagney <cagney@redhat.com>
5169
5170 * regcache.h (max_register_size): Delete declaration.
5171 * regcache.c (max_register_size): Delete function.
5172 (struct regcache_descr): Delete field "max_register_size".
5173 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5174 registers fit in MAX_REGISTER_SIZE.
5175 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5176 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5177 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5178 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5179 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5180 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5181 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5182 * dve3900-rom.c, hppa-tdep.c: Ditto.
5183
5184 2003-05-08 David Carlton <carlton@math.stanford.edu>
5185
5186 * valops.c (push_word): Fix typo.
5187
5188 2003-05-08 Andrew Cagney <cagney@redhat.com>
5189
5190 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5191 * gdbarch.h: Re-generate.
5192 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5193 (legacy_max_register_raw_size): Delete declaration.
5194 * regcache.c (legacy_max_register_raw_size): Delete function.
5195 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5196 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5197 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5198 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5199 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5200 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5201 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5202 * findvar.c, dwarf2cfi.c: Ditto.
5203
5204 2003-05-08 Andrew Cagney <cagney@redhat.com>
5205
5206 * mips-tdep.c (read_signed_register): New function, moved to here
5207 from "regcache.c".
5208 (read_signed_register_pid): Ditto.
5209 * regcache.c (read_signed_register_pid): Delete function, moved to
5210 "mips-tdep.c".
5211 (read_signed_register): Ditto.
5212 * regcache.h (read_signed_register): Delete declaration.
5213 (read_signed_register_pid): Delete declaration.
5214
5215 2003-05-08 Andrew Cagney <cagney@redhat.com>
5216
5217 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5218 * gdbarch.h: Re-generate.
5219 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5220 (legacy_max_register_virtual_size): Delete declaration.
5221 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5222 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5223 * tracepoint.c (memrange_sortmerge): Ditto.
5224 * sparc-tdep.c (sparc_print_registers): Ditto.
5225 * regcache.c (legacy_max_register_virtual_size): Delete function.
5226
5227 2002-05-08 J. Brobecker <brobecker@gnat.com>
5228
5229 * fork-child.c (escape_bang_in_quoted_argument): New function.
5230 (fork_inferior): Escape '!' characters in quoted arguments
5231 only when needed.
5232
5233 2003-05-08 J. Brobecker <brobecker@gnat.com>
5234
5235 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5236 the language of the CU is not currently supported by GDB.
5237
5238 2003-05-08 J. Brobecker <brobecker@gnat.com>
5239
5240 * defs.h (language): Add language_minimal enum value.
5241 * c-lang.c (minimal_language_defn): New language definition.
5242 (_initialize_c_language): Add the new minimal language to the list
5243 of languages known to GDB.
5244
5245 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5246
5247 * frame.c (get_frame_type): Don't attempt to lazily initialize
5248 frame's unwinder for legacy frames.
5249
5250 2003-05-07 Andrew Cagney <cagney@redhat.com>
5251
5252 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5253 and "regcache" parameters.
5254 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5255
5256 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5257
5258 * dwarf2read.c (dwarf_decode_lines): Only use output of
5259 check_cu_functions() when calling record_line(). Do not update
5260 the current address.
5261
5262 2003-05-07 Andrew Cagney <cagney@redhat.com>
5263
5264 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5265 code.
5266
5267 2003-05-07 Jim Blandy <jimb@redhat.com>
5268
5269 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5270 'maint info symtabs' and 'maint info psymtabs'.
5271 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5272 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5273 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5274 Declarations updated.
5275 * maint.c (maintenance_list_command): Delete.
5276 (_initialize_maint_cmds): Update calls to add_cmd.
5277 * gdbcmd.h (maintenancelistlist): Delete declaration.
5278 * cli/cli-cmds.c (maintenancelistlist): Delete.
5279 (init_cmd_lists): Don't initialize it.
5280 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5281
5282 2003-05-07 Andrew Cagney <cagney@redhat.com>
5283
5284 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5285 "regcache".
5286 (d10v_print_registers_info): Update.
5287 (d10v_dmap_register, d10v_imap_register): Delete functions.
5288 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5289 and "imap_register".
5290 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5291 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5292 * arch-utils.c (generic_remote_translate_xfer_address): Add
5293 "regcache" and "gdbarch" parameters.
5294 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5295 parameter. Change class to multi-arch.
5296 * gdbarch.h, gdbarch.c: Re-generate.
5297 * remote.c (remote_xfer_memory): Use
5298 gdbarch_remote_translate_xfer_address.
5299
5300 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5301
5302 * infrun.c (prev_pc): Move declaration ahead of proceed().
5303 (proceed): Refresh prev_pc value before resuming.
5304 (stop_stepping): Remove code to refresh prev_pc.
5305
5306 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5307
5308 * nto-tdep.c: Removed stray comment.
5309
5310 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5311
5312 * i386-nto-tdep.c: Fix old K&R function definitions.
5313 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5314 Also change add_show_from_set() call to add_setshow_cmd().
5315 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5316
5317 2003-05-05 Andrew Cagney <cagney@redhat.com>
5318
5319 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5320 (fprint_dummy_frames): New function.
5321 (maintenance_print_dummy_frames): New function.
5322 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5323 * frame.c (fprint_frame_id): Make global.
5324 * frame.h (fprint_frame_id): Declare.
5325 * Makefile.in (dummy-frame.o): Update dependencies.
5326
5327 2003-05-05 Andrew Cagney <cagney@redhat.com>
5328
5329 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5330 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5331 SIZEOF_CALL_DUMMY_WORDS.
5332 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5333 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5334 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5335 CALL_DUMMY_BREAKPOINT_OFFSET.
5336 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5337 CALL_DUMMY_START_OFFSET.
5338 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5339 * gdbarch.h, gdbarch.c: Re-generate.
5340 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5341 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5342 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5343 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5344 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5345 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5346 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5347 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5348 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5349 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5350 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5351 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5352 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5353 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5354 * config/sparc/tm-sparc.h: Update.
5355
5356 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5357
5358 * configure.tgt: Add i[3456]86-*-nto*.
5359 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5360 * nto-tdep.c: New file. Neutrino target support routines.
5361 * nto-tdep.h: New file. Neutrino target header.
5362 * config/tm-qnxnto.h: New file.
5363 * config/i386/i386nto.mt: New file.
5364 * config/i386/tm-i386nto.h: New file.
5365
5366 2003-05-04 Andrew Cagney <cagney@redhat.com>
5367
5368 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5369 (load_infrun_state): Ditto.
5370 (struct thread_info): Drop "prev_func_name" field.
5371 * thread.c (load_infrun_state): Update.
5372 (save_infrun_state): Update.
5373 * infrun.c (prev_func_name): Delete variable.
5374 (init_wait_for_inferior): Do not clear prev_func_name.
5375 (stop_stepping, keep_going, context_switch): Do not swap
5376 prev_func_name.
5377 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5378 instead of PC_IN_SIGTRAMP.
5379
5380 2003-05-04 Andrew Cagney <cagney@redhat.com>
5381
5382 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5383 REGISTER_BYTE with register_offset_hack.
5384 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5385 that REGISTER_BYTE is consistent with the regcache.
5386 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5387 * gdbarch.h, gdbarch.c: Regenerate.
5388
5389 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5390
5391 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5392 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5393
5394 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5395
5396 2003-05-03 J. Brobecker <brobecker@gnat.com>
5397
5398 From Thierry Schneider <tpschneider1@yahoo.com>
5399 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5400 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5401 (mi-cmd-symbol.o): Add rule.
5402
5403 2003-05-03 Andrew Cagney <cagney@redhat.com>
5404
5405 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5406 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5407 * gdbarch.h, gdbarch.c: Re-generate.
5408 * d10v-tdep.c (d10v_push_dummy_code): New function.
5409 (d10v_gdbarch_init): Set push_dummy_code.
5410 * infcall.c (legacy_push_dummy_code): New function.
5411 (generic_push_dummy_code): New function.
5412 (push_dummy_code): New function.
5413 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5414 instead of dummy_addr, to push_dummy_call. Move call to
5415 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5416 switch.
5417 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5418
5419 2003-05-03 Andrew Cagney <cagney@redhat.com>
5420
5421 * disasm.h (print_insn): Declare.
5422 * disasm.c (init_gdb_disassemble_info): New function.
5423 (gdb_disassembly): Call init_gdb_disassemble_info.
5424 (gdb_print_insn): New function.
5425 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5426 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5427 * mcore-tdep.c: Include "disasm.h"
5428 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5429 * d10v-tdep.c: Include "disasm.h".
5430 (display_trace): Call gdb_print_insn, instead of print_insn.
5431 (print_insn): Delete function.
5432 * printcmd.c: Include "disasm.h".
5433 (print_insn): Delete function.
5434 (print_formatted): Call gdb_print_insn, instead of print_insn.
5435 * Makefile.in (printcmd.o): Update dependencies.
5436 (mcore-tdep.o, d10v-tdep.o): Ditto.
5437
5438 2003-05-02 Andrew Cagney <cagney@redhat.com>
5439
5440 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5441 PC_REGNUM, re-indent.
5442 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5443 PC_REGNUM isn't set.
5444
5445 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5446 * gdbarch.h, gdbarch.c: Re-generate.
5447 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5448 register_virtual_size, pc_regnum, or register_bytes.
5449 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5450 (d10v_register_type): Use D10V_PC_REGNUM.
5451 (d10v_print_registers_info, d10v_read_pc): Ditto.
5452 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5453 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5454
5455 2003-05-02 David Carlton <carlton@bactrian.org>
5456
5457 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5458 the name with mstrsave.
5459
5460 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5461
5462 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5463 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5464 (host_charset_name, target_charset_name): New vars for use by
5465 set/show commands.
5466 (host_charset_enum, target_charset_enum): New enums for set/show
5467 commands.
5468 (set_charset_sfunc, set_host_charset_sfunc,
5469 set_target_charset_sfunc): New functions.
5470 (set_host_charset, set_target_charset): Make static.
5471 (list_charsets, set_host_charset_command,
5472 set_target_charset_command): Delete functions.
5473 (show_charset_command): Rewrite as....
5474 (show_charset): Hook this up with the set/show command mechanism.
5475 (_initialize_charset): Change names of charsets to match the
5476 set/show enums. Use host_charset_name and target_charset_name.
5477 Use set/show mechanism for charset, host-charset, target-charset
5478 commands. Do not make 'show host-charset' and 'show
5479 target-charset' be aliases of 'show charset'.
5480
5481 * charset.h (set_host_charset, set_target_charset): Don't export,
5482 they are not used outside the file.
5483
5484 2003-05-01 Andrew Cagney <cagney@redhat.com>
5485
5486 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5487 (gdb_disassembly): Make "di" non static, always initialize and
5488 cleanup. Always use dis_asm_read_memory.
5489 (gdb_dis_asm_read_memory): Delete function.
5490
5491 2003-05-01 Andrew Cagney <cagney@redhat.com>
5492
5493 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5494 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5495
5496 2003-04-30 Andrew Cagney <cagney@redhat.com>
5497
5498 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5499 "tm_print_insn_info".
5500 (TARGET_PRINT_INSN_INFO): Delete macro.
5501 (dis_asm_read_memory): Delete function declaration.
5502 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5503 (tm_print_insn_info): Delete variable definition.
5504 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5505 * gdbarch.h, gdbarch.c: Re-generate.
5506 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5507 "deprecated_tm_print_insn_info".
5508 * mcore-tdep.c (mcore_dump_insn): Ditto.
5509 * mips-tdep.c (mips_gdbarch_init): Ditto.
5510 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5511 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5512 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5513 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5514 instead of TARGET_PRINT_INSN_INFO, add comment.
5515 * s390-tdep.c (s390_get_frame_info): Instead of
5516 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5517 (s390_check_function_end, s390_is_sigreturn): Ditto.
5518 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5519 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5520 * disasm.c: Include "gdbcore.h".
5521 (_initialize_disasm): New function, initialize
5522 "deprecated_tm_print_insn_info".
5523 (deprecated_tm_print_insn_info): New variable.
5524 (dis_asm_read_memory): Moved from "corefile.c", made static.
5525 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5526 * Makefile.in (disasm.o): Update dependencies.
5527
5528 2003-04-30 Andrew Cagney <cagney@redhat.com>
5529
5530 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5531
5532 2003-04-29 Adam Fedor <fedor@gnu.org>
5533
5534 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5535 * infcall.c (find_function_addr): Make non-static.
5536 * infcall.h (find_function_addr): Declare.
5537 * Makefile.in (eval.o): Update dependencies.
5538
5539 2003-04-28 Adam Fedor <fedor@gnu.org>
5540
5541 * symtab.c (symbol_find_demangled_name): Check for and demangle
5542 ObjC symbols.
5543 (symbol_init_demangled_name): Init for language_objc as well.
5544
5545 2003-04-28 Andrew Cagney <cagney@redhat.com>
5546
5547 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5548 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5549 * gdbarch.h, gdbarch.c: Re-generate.
5550 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5551 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5552 * inferior.h (deprecated_read_fp): Rename read_fp.
5553 (generic_target_read_fp): Delete declaration.
5554 * regcache.c (generic_target_read_fp): Delete function.
5555 (deprecated_read_fp): Replace read_fp, use
5556 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5557 * d10v-tdep.c (d10v_read_fp): Delete function.
5558 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5559
5560 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5561 deprecated_target_read_fp to generic_target_read_fp.
5562 * sh-tdep.c (sh_gdbarch_init): Ditto.
5563 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5564 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5565 * frv-tdep.c (frv_gdbarch_init): Ditto.
5566
5567 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5568 deprecated_fp_regnum.
5569 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5570 * vax-tdep.c (vax_gdbarch_init): Ditto.
5571 * v850-tdep.c (v850_gdbarch_init): Ditto.
5572 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5573 * sh-tdep.c (sh_gdbarch_init): Ditto.
5574 * s390-tdep.c (s390_gdbarch_init): Ditto.
5575 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5576 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5577 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5578 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5579 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5580 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5581 * i386-tdep.c (i386_gdbarch_init): Ditto.
5582 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5583 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5584 * frv-tdep.c (frv_gdbarch_init): Ditto.
5585 * cris-tdep.c (cris_gdbarch_init): Ditto.
5586 * avr-tdep.c (avr_gdbarch_init): Ditto.
5587 * arm-tdep.c (arm_gdbarch_init): Ditto.
5588 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5589
5590 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5591 * v850-tdep.c (v850_gdbarch_init): Ditto.
5592 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5593 * sh-tdep.c (sh_gdbarch_init): Ditto.
5594 * s390-tdep.c (s390_gdbarch_init): Ditto.
5595 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5596 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5597 * mips-tdep.c (mips_gdbarch_init): Ditto.
5598 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5599 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5600 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5601 * frv-tdep.c (frv_gdbarch_init): Ditto.
5602 * avr-tdep.c (avr_gdbarch_init): Ditto.
5603 * arm-tdep.c (arm_gdbarch_init): Ditto.
5604
5605 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5606 DEPRECATED_FP_REGNUM.
5607 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5608 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5609 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5610 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5611 (sparc32_register_virtual_type): Ditto.
5612 * sh-tdep.c (sh64_frame_chain): Ditto.
5613 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5614 (sh_nofp_frame_init_saved_regs): Ditto.
5615 (sh64_nofp_frame_init_saved_regs): Ditto.
5616 (sh_fp_frame_init_saved_regs): Ditto.
5617 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5618 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5619 * procfs.c (procfs_fetch_registers): Ditto.
5620 (procfs_store_registers): Ditto.
5621 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5622 (store_inferior_registers, fetch_core_registers): Ditto.
5623 (fetch_kcore_registers, clear_regs): Ditto.
5624 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5625 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5626 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5627 * nlm/i386.c (do_status): Ditto.
5628 * mipsv4-nat.c (supply_gregset): Ditto.
5629 * mips-tdep.c: Ditto for comments.
5630 * mips-nat.c (fetch_inferior_registers): Ditto.
5631 (store_inferior_registers, fetch_core_registers): Ditto.
5632 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5633 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5634 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5635 (i386_do_pop_frame, i386_register_type): Ditto.
5636 * hppa-tdep.c (hppa_frame_chain): Ditto.
5637 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5638 (hppa_pop_frame, hppa_read_fp): Ditto.
5639 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5640 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5641 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5642 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5643 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5644 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5645 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5646 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5647 * blockframe.c: Ditto for comments.
5648 * arch-utils.h: Ditto for comments.
5649 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5650 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5651 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5652 * alpha-tdep.h: Ditto for comments.
5653 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5654 (alpha_cannot_store_register): Ditto.
5655 (alpha_push_dummy_frame): Ditto.
5656 * alpha-nat.c (supply_gregset): Ditto.
5657
5658 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5659 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5660 * config/sparc/tm-sparc.h: Update comment.
5661
5662 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5663 deprecated_read_fp instead of TARGET_READ_FP.
5664 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5665 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5666 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5667 deprecated_read_fp instead of read_fp.
5668 * s390-tdep.c (s390_push_arguments): Ditto.
5669 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5670 * frame.h: Ditto in comments.
5671 * frame.c (legacy_get_prev_frame): Ditto.
5672 * dummy-frame.c (dummy_frame_this_id): Ditto.
5673 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5674
5675 2003-04-28 Andrew Cagney <cagney@redhat.com>
5676
5677 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5678 * gdbarch.h, gdbarch.c: Re-generate.
5679 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5680 * vax-tdep.c (_initialize_vax_tdep): Update.
5681 * v850-tdep.c (_initialize_v850_tdep): Update.
5682 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5683 * s390-tdep.c (_initialize_s390_tdep): Update.
5684 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5685 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5686 * mips-tdep.c (_initialize_mips_tdep): Update.
5687 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5688 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5689 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5690 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5691 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5692 * frv-tdep.c (_initialize_frv_tdep): Update.
5693 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5694 (_initialize_cris_tdep): Update.
5695 * arch-utils.c (legacy_print_insn): Update.
5696 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5697
5698 2003-04-26 Adam Fedor <fedor@gnu.org>
5699
5700 * linespec.c (decode_objc): New function to decode ObjC calls
5701 (decode_line_1): Check for ObjC calls (using decode_objc)
5702 * Makefile (linespec.o): Update dependencies.
5703
5704 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
5705
5706 * breakpoint.h (struct breakpoint_ops): New.
5707 (struct breakpoint): Add ops member.
5708
5709 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5710 (mention): Use new breakpoint ops member.
5711 (set_raw_breakpoint): Initialize ops field to NULL.
5712 (print_exception_catchpoint, print_one_exception_catchpoint)
5713 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5714 (gnu_v3_exception_catchpoint_ops): New.
5715 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5716
5717 2003-04-25 Adam Fedor <fedor@gnu.org>
5718
5719 * Makefile.in (COMMON_OBS): Add objc-lang.o
5720
5721 2003-04-25 Andrew Cagney <cagney@redhat.com>
5722
5723 * d10v-tdep.c (print_insn): Delete function.
5724 (display_trace): Use TARGET_PRINT_INSN.
5725 (_initialize_d10v_tdep): Do not set tm_print_insn.
5726 (d10v_gdbarch_init): Set print_insn.
5727
5728 2003-04-25 Andrew Cagney <cagney@redhat.com>
5729
5730 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5731 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5732 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5733 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5734 (nr_dmap_regs, a0_regnum): ... new functions.
5735 (d10v_print_registers_info): Use a0_regnum, use register_size.
5736 (d10v_register_byte): Delete function.
5737 (d10v_register_raw_size): Delete function.
5738 (d10v_register_type): Use a0_regnum.
5739 (d10v_print_registers_info): Use a0_regnum.
5740 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5741 (d10v_gdbarch_init): Do not set register_byte or
5742 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5743 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5744 extract_address.
5745 (trace_command): Use XCALLOC.
5746 (print_insn): Delete reference to tm_print_insn.
5747 (saved_regs_unwinder): Use store_unsigned_integer instead of
5748 store_address.
5749 * frame.h (FRAME_OBSTACK_CALLOC): Define
5750
5751 2003-04-25 David Carlton <carlton@bactrian.org>
5752
5753 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5754
5755 2003-04-24 Adam Fedor <fedor@gnu.org>
5756
5757 * objc-lang.c: Include "valprint.h"
5758 * Makefile.in (objc-lang.o): Update dependencies.
5759
5760 2003-04-24 Adam Fedor <fedor@gnu.org>
5761
5762 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5763 architecture dependant compilation and mark as unimplemented
5764 (until they get put in the gdbarch vector).
5765
5766 2003-04-23 David Carlton <carlton@bactrian.org>
5767
5768 * cp-support.c (cp_find_first_component): Accept 'operator' in
5769 more locations.
5770
5771 2003-04-23 Andrew Cagney <cagney@redhat.com>
5772
5773 * infcall.c (call_function_by_hand): Eliminate redundant
5774 indentation. Move "saved_async" and "old_cleanups" to where they
5775 are needed.
5776
5777 2003-04-23 Andrew Cagney <cagney@redhat.com>
5778
5779 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5780 and "buffer". Move the "name" code to where it is needed.
5781
5782 2003-04-23 Andrew Cagney <cagney@redhat.com>
5783
5784 * infcall.c (call_function_by_hand): Move variables "start_sp",
5785 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5786 code to ON_STACK switch branch.
5787
5788 2003-04-23 Andrew Cagney <cagney@redhat.com>
5789
5790 * infcall.c (call_function_by_hand): Make declaration of "i",
5791 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5792 lint.
5793
5794 2003-04-23 Andrew Cagney <cagney@redhat.com>
5795
5796 * infcall.c (call_function_by_hand): Delete variable
5797 "n_method_args". Localize "param_type"'s declaration to the loop
5798 that it is used. Reinstate code assigning to said variable -
5799 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5800 Rationalize code using "param_type".
5801
5802 2003-04-22 Andrew Cagney <cagney@redhat.com>
5803
5804 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5805 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5806 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5807 to DEPRECATED_PUSH_RETURN_ADDRESS.
5808
5809 2003-04-22 Kevin Buettner <kevinb@redhat.com>
5810
5811 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5812 on the DWARF2 register number prior to fetching a register.
5813
5814 2003-04-22 J. Brobecker <brobecker@gnat.com>
5815
5816 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5817 Update all the tests using SOFT_FLOAT considering the fact that
5818 this macro was always set to 0.
5819 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5820 considering the fact that this macro was always set to 0.
5821 * hppa-tdep.h (hppa_store_return_value): Likewise.
5822 (hppa_extract_return_value): Likewise.
5823
5824 2003-04-22 J. Brobecker <brobecker@gnat.com>
5825
5826 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5827 the hppa-pro target only.
5828
5829 2003-04-21 J. Brobecker <brobecker@gnat.com>
5830
5831 Ongoing multi-arch conversion effort for HP/UX:
5832 * config/pa/tm-hppa.h: Move all macro that are no longer
5833 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5834 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5835
5836 2003-04-21 J. Brobecker <brobecker@gnat.com>
5837
5838 * config/pa/tm-hppa.h: Obsolete a section that was only used
5839 for hppa-pro.
5840
5841 2003-04-21 J. Brobecker <brobecker@gnat.com>
5842
5843 Ongoing multi-arch conversion for HP/UX.
5844 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5845 if already defined (allows hppa64 to stay non-multiarched for now).
5846 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5847
5848 2003-04-21 Andrew Cagney <cagney@redhat.com>
5849
5850 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5851
5852 2003-04-21 Andrew Cagney <cagney@redhat.com>
5853
5854 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5855 "i386_num_mmx_regs".
5856
5857 2003-04-21 Andrew Cagney <cagney@redhat.com>
5858
5859 * infcall.c: New file.
5860 * infcall.h: New file.
5861 * valarith.c: Include "infcall.h".
5862 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5863 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5864 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5865 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5866 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5867 (SFILES): Add "infcall.c"
5868 (COMMON_OBS): Add "infcall.o".
5869 (infcall.o): Specify dependencies.
5870 * value.h (call_function_by_hand): Delete declaration.
5871 * inferior.h (run_stack_dummy): Delete declaration.
5872 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5873 (run_stack_dummy): Move to "infcall.c", merged into
5874 call_function_by_hand.
5875 * valops.c (call_function_by_hand): Moved to "infcall.c".
5876 (find_function_addr, value_arg_coerce): Ditto.
5877 (unwindonsignal_p, coerce_float_to_double): Ditto.
5878 (_initialize_valops): Move "set/show coerce-float-to-double", and
5879 "set/show unwindonsignal" commands to "infcall.c".
5880 * v850-tdep.c, target.h: Update comments.
5881 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5882 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5883 (sh64_init_extra_frame_info): Update comments.
5884 * mn10300-tdep.c: Update comments.
5885 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5886 * config/sparc/tm-sparc.h: Update comments.
5887 * breakpoint.h: Update comments.
5888 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5889 * arm-tdep.c: Update comment.
5890
5891 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5892
5893 * i386-tdep.c (i386_num_register_names): New variable.
5894 (i386_num_mmx_regs): Renamed from mmx_num_regs.
5895 (MM0_REGNUM): Remove redundant parentheses in define.
5896 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
5897 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
5898 i386_mxcsr_regnum_p): Remove redundant parentheses.
5899 (i386_register_name): Use i386_num_register_names.
5900
5901 * i386-tdep.c (i386_extract_return_value,
5902 i386_store_return_value): Correct check for availability of
5903 floating-point registers.
5904
5905 * i386-tdep.c (i386_frame_num_args): Remove function.
5906 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
5907
5908 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
5909 mmx_regnum_to_fp_regnum. Adjust all callers.
5910
5911 * i386-tdep.c (i386_get_longjmp_target): Use
5912 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
5913 and TARGET_CHAR_BIT. Use extract_typed_address instead of
5914 extract_address.
5915
5916 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5917
5918 * core-regset.c: Update comments to reflect reality. Re-order
5919 includes.
5920 (fetch_core_registers): Use switch instead of if. Remove
5921 redundant prototype.
5922
5923 2003-04-18 Jim Blandy <jimb@redhat.com>
5924
5925 * s390-tdep.c (s390_frame_align): New function.
5926 (s390_gdbarch_init): Register it with the gdbarch object.
5927
5928 2003-04-17 Richard Henderson <rth@redhat.com>
5929
5930 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
5931
5932 2003-04-17 Michael Snyder <msnyder@redhat.com>
5933 Karen Bennet <bennet@redhat.com>
5934
5935 Committed by Elena Zannoni <ezannoni@redhat.com>
5936 * gdb_gcore.sh: New script to create a core dump of a process.
5937
5938 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
5939
5940 * values.c (value_being_returned): Don't fetch the return
5941 value if the return type is void.
5942
5943 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5944
5945 * thread-db.c: Reindented.
5946
5947 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5948
5949 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
5950 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
5951 as types.
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977 2003-04-16 Kevin Buettner <kevinb@redhat.com>
5978
5979 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
5980 the size of ``long double'' to 16, instead of 8.
5981
5982 2003-04-16 Mark Kettenis <kettenis@gnu.org>
5983
5984 * i386-linux-nat.c: Add some whitespace to make things more
5985 readable.
5986 (fetch_register, store_register, fetch_inferior_registers,
5987 store_inferior_registers): Get rid of assignment in if-statement.
5988 (store_register): Fix typo in error message.
5989
5990 2003-04-16 Andrew Cagney <cagney@redhat.com>
5991
5992 * utils.c (xmmalloc): Always allocate something, matches
5993 libiberty/xmalloc's semantics.
5994 (xmrealloc, xmcalloc): Ditto.
5995
5996 2003-04-16 Andrew Cagney <cagney@redhat.com>
5997
5998 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5999 update comments.
6000 (get_frame_type): Initialize unwind and type when needed.
6001 (get_frame_id, frame_register_unwind): Ditto.
6002
6003 2003-04-16 Andrew Cagney <cagney@redhat.com>
6004
6005 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6006 obsolete.
6007 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6008 * sparcl-stub.c: Obsolete file.
6009 * config/sparc/tm-sparclet.h: Obsolete file.
6010 * sparclet-stub.c: Obsolete file.
6011 * sparclet-rom.c: Obsolete file.
6012 * sparcl-tdep.c: Obsolete file.
6013 * config/sparc/tm-sparclite.h: Obsolete file.
6014 * config/sparc/sparclite.mt: Obsolete file.
6015 * config/sparc/sparclet.mt: Obsolete file.
6016 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6017 sparc86x-*-* obsolete.
6018
6019 2003-04-15 David Carlton <carlton@math.stanford.edu>
6020
6021 * Makefile.in (SFILES): Add cp-namespace.c.
6022 (COMMON_OBS): Add cp-namespace.o.
6023 (block.o): Depend on gdb_obstack_h and cp_support_h.
6024 (buildsym.o): Depend on cp_support_h.
6025 (cp-namespace.o): New.
6026 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6027 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6028 (dwarf2read.o): Depend on cp_support_h.
6029 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6030 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6031 processing_current_namespace.
6032 (read_namespace): Update processing_current_namespace; check for
6033 anonymous namespaces.
6034 (dwarf2_name): New function.
6035 (dwarf2_extension): Ditto.
6036 * cp-support.h: Update copyright, contributors.
6037 Add inclusion guards.
6038 Add opaque declaration for structs obstack, block, symbol.
6039 (struct using_direct): New struct.
6040 Add declarations for cp_find_first_component,
6041 cp_entire_prefix_len, processing_has_namespace_info,
6042 processing_current_namespace, cp_is_anonymous,
6043 cp_add_using_directive, cp_initialize_namespace,
6044 cp_finalize_namespace, cp_set_block_scope,
6045 cp_scan_for_anonymous_namespaces.
6046 * cp-namespace.c: New file.
6047 * cp-support.c: Update copyright.
6048 Include ctype.h, gdb_assert.h, gdbcmd.h.
6049 New variable maint_cplus_cmd_list.
6050 (cp_find_first_component): New function.
6051 (cp_entire_prefix_len, maint_cplus_command)
6052 (first_component_command, _initialize_cp_support): Ditto.
6053 * buildsym.c: Include cp-support.h.
6054 New variable using_list.
6055 (add_symbol_to_list): Check for anonymous namespaces.
6056 (finish_block): Set block's scope.
6057 (start_symtab): Initialize C++ namespace support.
6058 (end_symtab): Finalize C++ namespace support.
6059 * block.h: Add opaque declarations for structs
6060 block_namespace_info, using_direct, and obstack.
6061 Add declarations for block_set_scope and block_set_using.
6062 (struct block): Add 'language_specific' member.
6063 (BLOCK_NAMESPACE): New macro.
6064 * block.c: Include gdb_obstack.h and cp-support.h.
6065 (struct block_namespace_info): New struct.
6066 (block_set_scope): New function.
6067 (block_set_using, block_initialize_namespace): Ditto.
6068
6069 2003-04-14 Kevin Buettner <kevinb@redhat.com>
6070
6071 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6072 (locate_base): Return early if there aren't any link map offsets.
6073 (svr4_solib_create_inferior_hook): Warn if shared library support
6074 is unavailable.
6075
6076 2003-04-14 David Carlton <carlton@math.stanford.edu>
6077
6078 * symtab.c (symbol_set_names): Add prefix when storing Java names
6079 in hash table. Fix for PR java/1039.
6080
6081 2003-04-14 David Carlton <carlton@math.stanford.edu>
6082
6083 * symtab.c (symbol_set_names): Rename 'name' arg to
6084 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6085 * symtab.h: Change 'name' argument in declaration of
6086 symbol_set_names to 'linkage_name'.
6087 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6088
6089 2003-04-14 Andrew Cagney <cagney@redhat.com>
6090
6091 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6092 return the fully sign-extended register value.
6093 (get_frame_pointer): Ditto.
6094 (mips_pop_frame): Initialize "proc_desc" after checking for a
6095 dummy frame.
6096
6097 2003-04-14 Andrew Cagney <cagney@redhat.com>
6098
6099 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6100 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6101 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6102 (mips_push_register): Delete function.
6103 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6104 PUSH_FP_REGNUM.
6105
6106 2003-04-14 Jim Blandy <jimb@redhat.com>
6107
6108 * symmisc.c: #include "gdb_regex.h".
6109 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6110 functions.
6111 * maint.c (maintenance_list_command): New function.
6112 (_initialize_maint_cmds): Register the above as commands.
6113 * symtab.h (maintenance_list_symtabs,
6114 maintenance_list_psymtabs): New declarations.
6115 * cli/cli-cmds.c (maintenancelistlist): New variable.
6116 (init_cmd_lists): Initialize it.
6117 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6118 * gdbcmd.h (maintenancelistlist): New declaration.
6119 * Makefile.in (symmisc.o): Update dependencies.
6120
6121 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
6122
6123 * s390-nat.c: Include asm/types.h for addr_t.
6124
6125 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
6126
6127 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6128 actually incoming type.
6129
6130 2003-04-13 Andrew Cagney <cagney@redhat.com>
6131
6132 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6133 get_next_frame and get_frame_saved_regs.
6134
6135 2003-04-13 Andrew Cagney <cagney@redhat.com>
6136
6137 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6138 of gdbarch_num_regs.
6139
6140 2003-04-13 Andrew Cagney <cagney@redhat.com>
6141
6142 * frame.h: Mention what replaced what in "struct frame_info".
6143 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6144 deprecated_update_frame_base_hack and
6145 deprecated_update_frame_pc_hack.
6146 * hppa-tdep.c: Ditto.
6147
6148 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6149
6150 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6151 to read_reg and update its comment. Remove regnum member.
6152 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6153 Don't call read_reg when setting in_reg. Call read_reg to get
6154 the frame base if it's in a register. Return the register number
6155 on the stack instead of in the context. Remove extra arguments
6156 to read_reg.
6157 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6158 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6159 the register number on the expression stack.
6160 (needs_frame_read_reg): Remove extra arguments.
6161
6162 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6163
6164 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6165 made non-static.
6166 (execute_stack_op): All callers updated.
6167 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6168 * dwarf2loc.c (find_location_expression): New function.
6169 (dwarf_expr_frame_base): Call it.
6170 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6171 (dwarf2_tracepoint_var_ref): New function, broken out from
6172 locexpr_tracepoint_var_ref.
6173 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6174 Make static.
6175 (loclist_read_variable, loclist_read_needs_frame): New functions.
6176 (loclist_describe_location, loclist_tracepoint_var_ref): New
6177 functions.
6178 (dwarf2_loclist_funcs): New struct location_funcs.
6179 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6180 (struct dwarf2_locexpr_baton): Add comments.
6181 (dwarf2_loclist_funcs): New extern.
6182 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6183 base_address and base_known.
6184 (dwarf_loc_buffer): New variable.
6185 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6186 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6187 (dwarf2_has_info): Initialize dwarf_loc_offset.
6188 (dwarf2_build_psymtabs): Read in .debug_loc.
6189 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6190 DWARF_LOC_SIZE.
6191 (psymtab_to_symtab_1): Likewise. Move base address calculation
6192 here, from...
6193 (dwarf2_get_pc_bounds): ... here. Use the base address from
6194 cu_header.
6195 (dwarf2_symbol_mark_computed): Handle location lists.
6196
6197 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6198
6199 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6200 if the linkage name demangled successfully.
6201
6202 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6203
6204 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6205 disassmbly_flavour): Removed.
6206
6207 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6208
6209 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6210
6211 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6212
6213 2003-04-12 Andrew Cagney <cagney@redhat.com>
6214
6215 * frame.h (struct frame_info): Move definition from here ...
6216 * frame.c (struct frame_info): ... to here.
6217
6218 2003-04-12 Andrew Cagney <cagney@redhat.com>
6219
6220 * gdbthread.h (save_infrun_state): Delete parameter
6221 "prev_func_start".
6222 (struct thread_info): Delete field "prev_func_start".
6223 (load_infrun_state): Ditto.
6224 * thread.c (load_infrun_state, save_infrun_state): Update.
6225 * infrun.c (prev_func_start): Delete variable.
6226 (context_switch, init_wait_for_inferior): Update.
6227 (stop_stepping, keep_going): Update.
6228
6229 2003-04-12 Andrew Cagney <cagney@redhat.com>
6230
6231 * gdbarch.sh: Add missing opaque declarations.
6232 * gdbarch.h: Regnerate.
6233 * symtab.h: Add missing opaque declarations.
6234 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6235 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6236 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6237 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6238 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6239 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6240 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6241 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6242 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6243 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6244 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6245 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6246 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6247
6248 2003-04-11 Andrew Cagney <cagney@redhat.com>
6249
6250 * frame.c (get_frame_id): Return this frame's "id".
6251 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6252 function start.
6253 (legacy_saved_regs_this_id): Replace function body with
6254 internal-error.
6255 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6256 FRAME_OBSTACK_ZALLOC.
6257 (create_new_frame): Mark the frame ID as valid.
6258
6259 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6260
6261 * Makefile.in (libbfd_h): Added missing setting.
6262 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6263 according to the selected ABI.
6264
6265 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6266
6267 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6268
6269 2003-04-11 Andrew Cagney <cagney@redhat.com>
6270
6271 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6272 SAVED_PC_AFTER_CALL.
6273 * gdbarch.h, gdbarch.c: Regenerate.
6274 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6275 * x86-64-tdep.c (x86_64_init_abi): Update.
6276 * vax-tdep.c (vax_gdbarch_init): Update.
6277 * v850-tdep.c (v850_gdbarch_init): Update.
6278 * sparc-tdep.c (sparc_gdbarch_init): Update.
6279 * sh-tdep.c (sh_gdbarch_init): Update.
6280 * s390-tdep.c (s390_gdbarch_init): Update.
6281 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6282 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6283 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6284 * mips-tdep.c (mips_gdbarch_init): Update.
6285 * mcore-tdep.c (mcore_gdbarch_init): Update.
6286 * m68k-tdep.c (m68k_gdbarch_init): Update.
6287 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6288 * ia64-tdep.c (ia64_gdbarch_init): Update.
6289 (ia64_saved_pc_after_call): Update declaration.
6290 * i386ly-tdep.c (i386lynx_init_abi): Update.
6291 * i386-tdep.c (i386_gdbarch_init): Update.
6292 * hppa-tdep.c (hppa_gdbarch_init): Update.
6293 * h8300-tdep.c (h8300_gdbarch_init): Update.
6294 * frv-tdep.c (frv_gdbarch_init): Update.
6295 * cris-tdep.c (cris_gdbarch_init): Update.
6296 * avr-tdep.c (avr_gdbarch_init): Update.
6297 * arm-tdep.c (arm_gdbarch_init): Update.
6298 * alpha-tdep.c (alpha_gdbarch_init): Update.
6299 * ns32knbsd-nat.c (frame_num_args): Update.
6300 * ns32k-tdep.c (umax_frame_num_args): Update.
6301 * mips-tdep.c (mips_init_frame_pc_first): Update.
6302 * infrun.c (step_over_function): Update.
6303 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6304 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6305 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6306 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6307 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6308 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6309 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6310 * arch-utils.c (init_frame_pc_default): Update.
6311 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6312 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6313 declaration.
6314
6315 2003-04-11 Andrew Cagney <cagney@redhat.com>
6316
6317 * i387-tdep.c: Update copyright.
6318 (i387_to_double): Delete function.
6319 (double_to_i387): Delete function.
6320
6321 2003-04-10 Andrew Cagney <cagney@redhat.com>
6322
6323 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6324 frame's function's address. Simplify.
6325 (d10v_frame_unwind_cache): Check that the frame's function is
6326 non-zero.
6327
6328 2003-04-10 Jim Blandy <jimb@redhat.com>
6329
6330 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6331 call to set_gdbarch_deprecated_push_arguments.
6332
6333 2003-04-10 Andrew Cagney <cagney@redhat.com>
6334
6335 * frame.c (fprint_frame_id): New function.
6336 (fprint_frame_type, fprint_frame): New function.
6337 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6338 (create_sentinel_frame, get_frame_id): Ditto.
6339 (frame_id_p, frame_id_eq): Ditto.
6340 (frame_id_inner, create_new_frame): Ditto.
6341 (legacy_get_prev_frame, get_prev_frame): Ditto.
6342 (deprecated_update_frame_pc_hack): Ditto.
6343 (frame_register_unwind): Ditto.
6344 (deprecated_update_frame_base_hack): Ditto.
6345
6346 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6347
6348 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6349 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6350 frame_chain function.
6351 * Makefile.in: Add dependencies due to above change.
6352
6353 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6354
6355 * blockframe.c (legacy_frame_chain_valid): Move call to
6356 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6357 inside_entry_file.
6358
6359 2003-04-09 Andrew Cagney <cagney@redhat.com>
6360
6361 * frame.h (struct frame_id): Replace "pc" and "base" with
6362 "stack_addr" and "code_addr". Update comments.
6363 (frame_id_build): Update parameter names and comment.
6364 (struct frame_info): Replace "id_p" and "id" with "this_id".
6365 * dummy-frame.c (dummy_frame_this_id): Update.
6366 * breakpoint.c (print_one_breakpoint): Update.
6367 * frame.c (get_frame_id): Update.
6368 (get_frame_base, frame_id_build): Update.
6369 (create_sentinel_frame, legacy_get_prev_frame): Update.
6370 (deprecated_update_frame_base_hack): Update.
6371 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6372 (frame_id_inner): Ditto.
6373
6374 2003-04-09 Andrew Cagney <cagney@redhat.com>
6375
6376 * defs.h (gdb_print_host_address): Make "addr" parameter a
6377 pointer constant.
6378 * utils.c (gdb_print_host_address): Update.
6379
6380 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6381
6382 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6383 register number for R0 is 0.
6384
6385 2003-04-09 J. Brobecker <brobecker@gnat.com>
6386
6387 * frame.h (struct gdbarch): Add opaque structure definition
6388 to avoid a compilation warning on LynxOS 4.0.
6389
6390 2003-04-09 Andrew Cagney <cagney@redhat.com>
6391
6392 * frame.h (struct frame_info): Delete field "pc". Replace
6393 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6394 structure.
6395 * frame.c (frame_pc_unwind): Update.
6396 (create_sentinel_frame): Do not set "pc".
6397 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6398 (get_frame_pc): Call frame_pc_unwind.
6399 (deprecated_update_frame_pc_hack): Update.
6400 (create_new_frame): Use "pc" not "->pc".
6401
6402 2003-04-09 Andrew Cagney <cagney@redhat.com>
6403
6404 * frame.c (get_frame_id): Eliminate code updating "frame".
6405 (legacy_get_prev_frame): Ditto.
6406 (get_frame_base): Return id.base directly.
6407 (deprecated_update_frame_base_hack): Update "id.base".
6408 * frame.h (struct frame_info): Delete field "frame".
6409
6410 2003-04-09 Andrew Cagney <cagney@redhat.com>
6411
6412 * NEWS: Mention that the "Sequent family" is obsolete.
6413 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6414 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6415 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6416 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6417 * config/i386/tm-ptx4.h: Obsolete file.
6418 * config/i386/tm-ptx.h: Obsolete file.
6419 * symm-tdep.c: Obsolete file.
6420 * config/i386/symmetry.mt: Obsolete file.
6421 * config/i386/tm-symmetry.h: Obsolete file.
6422 * symm-nat.c: Obsolete file.
6423 * config/i386/nm-symmetry.h: Obsolete file.
6424 * config/i386/xm-symmetry.h: Obsolete file.
6425 * config/i386/symmetry.mh: Obsolete file.
6426 * config/i386/nm-ptx4.h: Obsolete file.
6427 * config/i386/ptx4.mh: Obsolete file.
6428 * config/i386/ptx.mt: Obsolete file.
6429 * config/i386/ptx.mh: Obsolete file.
6430 * config/i386/xm-ptx4.h: Obsolete file.
6431 * config/i386/xm-ptx.h: Obsolete file.
6432
6433 2003-04-09 Andrew Cagney <cagney@redhat.com>
6434
6435 Obsolete mips*-*-mach3*.
6436 * NEWS: Mention that mips*-*-mach3* is obsolete.
6437 * m3-nat.c: Obsolete file.
6438 * config/nm-m3.h: Obsolete file.
6439 * config/mips/tm-mipsm3.h: Obsolete file.
6440 * config/mips/mipsm3.mt: Obsolete file.
6441 * config/mips/mipsm3.mh: Obsolete file.
6442 * config/mips/xm-mipsm3.h: Obsolete file.
6443 * mipsm3-nat.c: Obsolete file.
6444 * configure.host: Obsolete mips-dec-mach3*.
6445 * configure.tgt: Obsolete mips*-*-mach3*.
6446
6447 2003-04-09 Andrew Cagney <cagney@redhat.com>
6448
6449 * doublest.h: Update copyright.
6450 (deprecated_store_floating, deprecated_extract_floating): Rename
6451 store_floating and extract_floating. Update comments.
6452 * doublest.c: Update copyright.
6453 (extract_floating_by_length): Replace extract_floating.
6454 (store_floating_by_length): Replace store_floating.
6455 (deprecated_extract_floating): New function.
6456 (deprecated_store_floating): New function.
6457 (extract_typed_floating): Call extract_floating_by_length.
6458 (store_typed_floating): Call store_floating_by_length.
6459 * x86-64-tdep.c (x86_64_store_return_value): Update.
6460 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6461 (sh64_extract_return_value): Update.
6462 (sh_sh4_register_convert_to_virtual): Update.
6463 (sh_sh64_register_convert_to_virtual): Update.
6464 (sh_sh4_register_convert_to_raw): Update.
6465 (sh_sh64_register_convert_to_raw): Update.
6466 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6467 (rs6000_register_convert_to_raw): Update.
6468 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6469 (ia64_register_convert_to_raw): Update.
6470 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6471 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6472 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6473 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6474 (alpha_register_convert_to_raw): Update.
6475
6476 2003-04-08 Andrew Cagney <cagney@redhat.com>
6477
6478 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6479 * gdbarch.h, gdbarch.c: Re-generate.
6480 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6481 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6482 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6483 conditionally, use frame_pc_unwind as an alternative. Add
6484 comments.
6485 * arch-utils.c (init_frame_pc_default): Only call
6486 SAVED_PC_AFTER_CALL when available.
6487
6488 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6489
6490 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6491 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6492 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6493 (start_remote): Ditto.
6494 (handle_inferior_event): Ditto.
6495 (save_inferior_status): Ditto.
6496 (restore_inferior_status): Ditto.
6497 * infcmd.c (attach_command): Ditto.
6498 * fork-child.c (startup_inferior): Ditto.
6499 * inferior.h (stop_soon): Rename from stop_soon_quietly.
6500 * alpha-tdep.c (heuristic_proc_start): Ditto.
6501 * mips-tdep.c (heuristic_proc_start): Ditto.
6502 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6503 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6504 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6505 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6506 * remote-vx.c (vx_create_inferior): Ditto.
6507
6508 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6509
6510 * infrun.c (stop_soon_quietly): Make it an enum, to better
6511 override the default behavior of handle_inferior_event.
6512 (clear_proceed_status): Update uses of stop_soon_quietly to
6513 reflect that it is now an enum.
6514 (start_remote): Ditto.
6515 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6516 is set to handle the new GNU/Linux kernel behavior for
6517 attach/sigstop. Update uses of stop_soon_quietly.
6518 * inferior.h (enum stop_kind): New enum.
6519 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6520 Reset normal handle_inferior_event behavior, afterwards.
6521 * fork-child.c (startup_inferior): Update.
6522 * alpha-tdep.c (heuristic_proc_start): Update.
6523 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6524 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6525 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6526 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6527 * remote-vx.c (vx_create_inferior): Update.
6528 * mips-tdep.c (heuristic_proc_start): Update.
6529
6530 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
6531
6532 * disasm.c (dump_insns): Move variables inside loop, or they will
6533 be freed more than once, causing wild memory corruptions.
6534 (gdb_disassembly): Look for the substring "-thread",
6535 instead of "-threads" in the target name, to make sure to find
6536 the 'multi-thread' target. Also, make sure we do the right thing
6537 with the "core" target.
6538
6539 2003-04-07 Kevin Buettner <kevinb@redhat.com>
6540
6541 * mips-tdep.c (mips_print_fp_register): New function, created from
6542 do_fp_register_row(). Registers are now (also) printed as hex.
6543 Only one register is printed per row.
6544 (mips_print_register, do_fp_register_row): Print floating point
6545 registers with mips_print_fp_register().
6546
6547 2003-04-06 Andrew Cagney <cagney@redhat.com>
6548
6549 * valprint.h (inspect_it): Add extern declaration.
6550 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6551 (selectors_info, classes_info): Ditto.
6552 (find_objc_msgcall): Fix indentation.
6553 (objc_printstr): Delete extern declarations.
6554
6555 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6556
6557 2003-04-06 Andrew Cagney <cagney@redhat.com>
6558
6559 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6560 Update comment.
6561 * frame.c (legacy_saved_regs_this_id): Update.
6562 (legacy_get_prev_frame): Update.
6563 * xstormy16-tdep.c: Update comment.
6564 * sparc-tdep.c (sparc_frame_chain): Update comment.
6565 * blockframe.c (legacy_frame_chain_valid): Update.
6566
6567 2003-04-06 Andrew Cagney <cagney@redhat.com>
6568
6569 * valprint.c (val_print_type_code_int): Delete #ifdef
6570 PRINT_TYPELESS_INTEGER code.
6571
6572 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6573 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6574 multi-arch definition.
6575 * gdbarch.h: Re-generate.
6576
6577 2003-04-05 Andrew Cagney <cagney@redhat.com>
6578
6579 Eliminate FRAME_FIND_SAVED_REGS.
6580 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6581 Change FSR parameter to a pointer.
6582 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6583 Assume FSR parameter is a pointer.
6584 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6585 Make fsr a pointer.
6586 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6587 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6588 saved_regs a pointer.
6589 (hppa_frame_saved_pc): Ditto.
6590 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6591 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6592 pointer.
6593 (restore_pc_queue): Make fsr a pointer.
6594 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6595 (hppa_frame_chain): Make saved_regs a pointer, call
6596 hppa_frame_init_saved_regs.
6597 * sparc-tdep.c: Include "gdb_assert.h".
6598 (sparc_frame_find_saved_regs): Replace internal_error with
6599 gdb_assert.
6600 * remote-vxsparc.c (vx_read_register): Delete reference to
6601 FRAME_FIND_SAVED_REGS.
6602 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6603 * gdbarch.h: Regenerate.
6604 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6605 (deprecated_get_frame_saved_regs): Delete declaration.
6606 (struct frame_saved_regs): Delete definition.
6607 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6608 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6609 (hppa_frame_find_saved_regs): Delete declaration.
6610 (FRAME_FIND_SAVED_REGS): Delete macro.
6611 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6612 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6613 FRAME_FIND_SAVED_REGS in comment.
6614
6615 2003-04-05 Andrew Cagney <cagney@redhat.com>
6616
6617 * frame.c (frame_func_unwind, get_frame_func): New functions.
6618 * frame.h (get_frame_func, frame_func_unwind): Declare.
6619 (struct frame_info): Add field "prev_func" for caching the
6620 previous frame's function address.
6621 * arm-tdep.c (arm_frameless_function_invocation): Combine
6622 get_pc_function_start and get_frame_pc into get_frame_func.
6623 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6624 (sh64_nofp_frame_init_saved_regs): Ditto.
6625 * s390-tdep.c (s390_function_start): Ditto.
6626 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6627 (rs6000_frameless_function_invocation): Ditto.
6628 (rs6000_frame_saved_pc): Ditto.
6629 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6630 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6631 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6632 (i386_frame_init_saved_regs): Ditto.
6633 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6634 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6635 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6636 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6637 * blockframe.c (frameless_look_for_prologue): Ditto.
6638
6639 2003-04-05 Andrew Cagney <cagney@redhat.com>
6640
6641 * frame.c (legacy_get_prev_frame): Link prev to next at the
6642 function start. Update comments.
6643
6644 2003-04-05 Andrew Cagney <cagney@redhat.com>
6645
6646 * frame.c (get_frame_id): Update comment.
6647 (legacy_get_prev_frame): Update comment.
6648 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6649 * gdbarch.h: Regenerate.
6650 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6651 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6652
6653 2003-04-05 Andrew Cagney <cagney@redhat.com>
6654
6655 * stack.c (print_frame_info): Use get_frame_pc.
6656
6657 2003-04-04 Andrew Cagney <cagney@redhat.com>
6658
6659 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6660 the frame's type from the unwinder.
6661 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6662 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6663 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6664 (get_frame_base_address): Use get_frame_type.
6665 (get_frame_locals_address, get_frame_args_address): Ditto.
6666 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6667 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6668 (struct frame_info): Add comment explaining why the frame contains
6669 a "type" field.
6670 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6671 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6672 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6673 NORMAL_FRAME.
6674 * frame-unwind.h: Include "frame.h".
6675 (struct frame_unwind): Add "type" field.
6676 * Makefile.in (frame_unwind_h): Add $(frame_h).
6677
6678 2003-04-04 Andrew Cagney <cagney@redhat.com>
6679
6680 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6681 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6682 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6683 get_frame_base.
6684 (d10v_unwind_dummy_id): Use frame_id_build.
6685 * frame.c (find_frame_sal): Use get_frame_pc.
6686 (create_new_frame): Use deprecated_update_frame_pc_hack and
6687 deprecated_update_frame_base_hack.
6688 (create_sentinel_frame): Add comment about ->pc going away.
6689 (get_prev_frame): Add comment about ->pc going away.
6690 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6691 frame_id_build, deprecated_update_frame_pc_hack and
6692 deprecated_update_frame_base_hack.
6693 (select_frame): Use get_frame_pc.
6694 (legacy_saved_regs_this_id): Use frame_id_build.
6695
6696 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
6697
6698 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6699 signed integer case.
6700 (classify_argument): Handle enumerations and references.
6701
6702 2003-04-04 Andrew Cagney <cagney@redhat.com>
6703
6704 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6705 ID to NULL.
6706
6707 2003-04-01 Adam Fedor <fedor@gnu.org>
6708
6709 * gdb/objc-lang.c (selectors_info): Replace calls to
6710 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6711 SYMBOL_NATURAL_NAME.
6712 (classes_info, find_methods): Likewise.
6713
6714 2003-04-03 Kevin Buettner <kevinb@redhat.com>
6715
6716 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6717 ``mach'' to the value determined by bfd_default_set_arch_mach().
6718
6719 2003-04-02 Bob Rossi <bob_rossi@cox.net>
6720
6721 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6722 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6723 (mi-cmd-file.o): Update dependencies.
6724
6725 2003-04-01 Kevin Buettner <kevinb@redhat.com>
6726
6727 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6728 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6729
6730 2003-04-01 Adam Fedor <fedor@gnu.org>
6731
6732 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6733 * language.h (struct language_defn): Add la_demangle.
6734 (language_demangle): Declare.
6735 * language.c (language_demangle): New function.
6736 (unk_lang_demangle): Likewise.
6737 (unknown_language_defn, auto_language_defn, local_language_defn):
6738 Add ukn_lang_demangle.
6739 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6740 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6741 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6742 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6743 * jv-lang.c (java_demangle): New function
6744 (java_language_defn): Use it for la_demangle element.
6745 * objc-lang.c (objc_demangle): Add options argument
6746 (objc_language_defn): Use objc_demangle for la_demangle element.
6747 * maint.c (maintenance_demangle): Replace switch with
6748 call to language_demangle.
6749 * utils.c (fprintf_symbol_filtered): Likewise.
6750
6751 2003-04-01 Andrew Cagney <cagney@redhat.com>
6752
6753 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6754 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6755 PRINT_TYPELESS_INTEGER.
6756 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6757 PUSH_RETURN_ADDRESS.
6758
6759 2003-04-01 Andrew Cagney <cagney@redhat.com>
6760
6761 * Makefile.in (d10v-tdep.o): Update dependencies.
6762 * d10v-tdep.c: Include "frame-base.h".
6763 (d10v_frame_unwind): Make constant.
6764 (d10v_frame_base_address): New function.
6765 (d10v_frame_base): New variable.
6766 (d10v_gdbarch_init): Set frame_base default.
6767 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6768 comment for base.
6769 (d10v_frame_unwind_cache): Set and use "prev_sp".
6770 (d10v_frame_this_id): Use the previous frame's inner most stack
6771 address and this frame's func address for the frame ID. Use
6772 frame_id_build. Don't analyze beyond the current instruction.
6773
6774 2003-04-01 Andrew Cagney <cagney@redhat.com>
6775
6776 * frame.h (get_frame_locals_address, get_frame_args_address):
6777 Refer to the base address, instead of the address of the first
6778 local or parameter.
6779
6780 2003-04-01 Andrew Cagney <cagney@redhat.com>
6781
6782 Add frame debug info addresses:
6783 * frame-base.c: New file.
6784 * frame-base.h: New file.
6785 * frame.h (struct frame_base): Add opaque declaration.
6786 (get_frame_base): Update comment.
6787 (get_frame_base_address): Declare.
6788 (get_frame_locals_address): Declare.
6789 (get_frame_args_address): Declare.
6790 (struct frame_info): Add "base" and "base_cache". Update
6791 comments on the unwinder.
6792 * frame.c: Include "frame-base.h".
6793 (get_frame_locals_address): New function.
6794 (get_frame_base_address): New function.
6795 (get_frame_args_address): New function.
6796 * findvar.c (read_var_value): Use get_frame_locals_address and
6797 get_frame_args_address.
6798 * stack.c (frame_info): Use get_frame_locals_address and
6799 get_frame_args_address.
6800 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6801 moved to "frame-base.c".
6802 * printcmd.c (print_frame_nameless_args): Ditto.
6803 * symtab.h (address_class): Update comments.
6804 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6805 get_frame_base_address.
6806 * dwarf2expr.c (execute_stack_op): Ditto.
6807 * Makefile.in (frame_base_h): Define.
6808 (frame.o): Update dependencies.
6809 (frame-base.o): Add dependencies.
6810 (SFILES): Add frame-base.c.
6811 (COMMON_OBS): Add frame-base.o.
6812
6813 2003-04-01 Andrew Cagney <cagney@redhat.com>
6814
6815 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6816 CALL_DUMMY_LENGTH): Ditto.
6817 * gdbarch.c: Re-generate.
6818 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6819 (CALL_DUMMY_LENGTH): Delete macro.
6820 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6821 * arm-tdep.c (arm_gdbarch_init): Ditto.
6822 * avr-tdep.c (avr_gdbarch_init): Ditto.
6823 * cris-tdep.c (cris_gdbarch_init): Ditto.
6824 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6825 * frv-tdep.c (frv_gdbarch_init): Ditto.
6826 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6827 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6828 * i386-tdep.c (i386_gdbarch_init): Ditto.
6829 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6830 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6831 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6832 * mips-tdep.c (mips_gdbarch_init): Ditto.
6833 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6834 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6835 * s390-tdep.c (s390_gdbarch_init): Ditto.
6836 * sh-tdep.c (sh_gdbarch_init): Ditto.
6837 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6838 * v850-tdep.c (v850_gdbarch_init): Ditto.
6839 * vax-tdep.c (vax_gdbarch_init): Ditto.
6840 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6841
6842 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
6843
6844 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6845
6846 2003-04-01 Andrew Cagney <cagney@redhat.com>
6847
6848 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6849 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6850 * gdbarch.h, gdbarch.c: Re-generate.
6851 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6852 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6853 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6854 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6855 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6856 * infcmd.c (run_stack_dummy): Simplify assuming
6857 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6858 * infrun.c (handle_inferior_event): Ditto.
6859 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6860 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6861 * arm-tdep.c (arm_gdbarch_init): Ditto.
6862 * avr-tdep.c (avr_gdbarch_init): Ditto.
6863 * cris-tdep.c (cris_gdbarch_init): Ditto.
6864 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6865 * frv-tdep.c (frv_gdbarch_init): Ditto.
6866 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6867 * i386-tdep.c (i386_gdbarch_init): Ditto.
6868 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6869 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6870 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6871 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6872 * mips-tdep.c (mips_gdbarch_init): Ditto.
6873 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6874 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6875 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6876 * s390-tdep.c (s390_gdbarch_init): Ditto.
6877 * sh-tdep.c (sh_gdbarch_init): Ditto.
6878 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6879 * v850-tdep.c (v850_gdbarch_init): Ditto.
6880 * vax-tdep.c (vax_gdbarch_init): Ditto.
6881 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6882
6883 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
6884
6885 * symfile.c (symfile_relocate_debug_section): Update call to
6886 bfd_simple_get_relocated_section_contents.
6887
6888 2003-03-31 Andrew Cagney <cagney@redhat.com>
6889
6890 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6891 * gdbarch.h, gdbarch.c: Regenerate.
6892 * inferior.h (FIX_CALL_DUMMY): Delete macro.
6893 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
6894 available.
6895 * frame.h (generic_fix_call_dummy): Delete declaration.
6896 * dummy-frame.h: Update comment.
6897 * dummy-frame.c (generic_fix_call_dummy): Delete function.
6898 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6899 fix_call_dummy.
6900 * sh-tdep.c (sh_gdbarch_init): Ditto.
6901 * s390-tdep.c (s390_gdbarch_init): Ditto.
6902 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6903 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6904 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6905 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6906 * i386-tdep.c (i386_gdbarch_init): Ditto.
6907 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6908 * frv-tdep.c (frv_gdbarch_init): Ditto.
6909 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6910 * cris-tdep.c (cris_gdbarch_init): Ditto.
6911 * avr-tdep.c (avr_gdbarch_init): Ditto.
6912 * arm-tdep.c (arm_gdbarch_init): Ditto.
6913
6914 2003-03-31 J. Brobecker <brobecker@gnat.com>
6915
6916 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
6917 (INIT_FRAME_AP): Likewise.
6918 (EXTRA_FRAME_INFO): Likewise.
6919
6920 2003-03-31 Andrew Cagney <cagney@redhat.com>
6921
6922 * gdbarch.sh: Include "symfile.h".
6923 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
6924 * gdbarch.h, gdbarch.c: Re-generate.
6925 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
6926 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6927 call_dummy_address, the default is at entry_point_address.
6928 * v850-tdep.c (v850_gdbarch_init): Ditto.
6929 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6930 * sh-tdep.c (sh_gdbarch_init): Ditto.
6931 * s390-tdep.c (s390_gdbarch_init): Ditto.
6932 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6933 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6934 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6935 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6936 * i386-tdep.c (i386_gdbarch_init): Ditto.
6937 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6938 * frv-tdep.c (frv_gdbarch_init): Ditto.
6939 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6940 * cris-tdep.c (cris_gdbarch_init): Ditto.
6941 * arm-tdep.c (arm_gdbarch_init): Ditto.
6942
6943 2003-03-31 Andrew Cagney <cagney@redhat.com>
6944
6945 * gdbarch.sh (CALL_DUMMY_P): Delete.
6946 * gdbarch.h, gdbarch.c: Re-generate.
6947 * inferior.h (CALL_DUMMY_P): Delete macro.
6948 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6949 * vax-tdep.c (vax_gdbarch_init): Update.
6950 * v850-tdep.c (v850_gdbarch_init): Update.
6951 * sparc-tdep.c (sparc_gdbarch_init): Update.
6952 * sh-tdep.c (sh_gdbarch_init): Update.
6953 * s390-tdep.c (s390_gdbarch_init): Update.
6954 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6955 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6956 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6957 * mips-tdep.c (mips_gdbarch_init): Update.
6958 * mcore-tdep.c (mcore_gdbarch_init): Update.
6959 * m68k-tdep.c (m68k_gdbarch_init): Update.
6960 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6961 * ia64-tdep.c (ia64_gdbarch_init): Update.
6962 * i386-tdep.c (i386_gdbarch_init): Update.
6963 * h8300-tdep.c (h8300_gdbarch_init): Update.
6964 * frv-tdep.c (frv_gdbarch_init): Update.
6965 * d10v-tdep.c (d10v_gdbarch_init): Update.
6966 * cris-tdep.c (cris_gdbarch_init): Update.
6967 * breakpoint.c (deprecated_frame_in_dummy): Update.
6968 * avr-tdep.c (avr_gdbarch_init): Update.
6969 * alpha-tdep.c (alpha_gdbarch_init): Update.
6970 * arm-tdep.c (arm_gdbarch_init): Update.
6971 * dummy-frame.c (dummy_frame_this_id): Update comments.
6972 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
6973 * frame.c (legacy_get_prev_frame): Ditto.
6974 * valops.c (call_function_by_hand): Delete function.
6975 (hand_function_call): Rename to call_function_by_hand
6976
6977 2003-03-30 Andrew Cagney <cagney@redhat.com>
6978
6979 2002-11-10 Klee Dienes <kdienes@apple.com>
6980 * value.h (struct value): Update comment.
6981
6982 2003-03-30 Andrew Cagney <cagney@redhat.com>
6983
6984 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
6985 D10V_FP_REGNUM.
6986 (d10v_gdbarch_init): Do not set fp_regnum.
6987
6988 * frame.c (get_frame_base): Force ID initialization.
6989 (get_prev_frame): Move computation of the frame ID from here ...
6990 (get_frame_id): ... to here.
6991 (legacy_get_prev_frame): Mark the frame ID as valid.
6992 * frame.h (struct frame_info): Add field "id_p".
6993
6994 2003-03-30 Mark Kettenis <kettenis@gnu.org>
6995
6996 * i386-tdep.c (i386_store_struct_return): Removed.
6997 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
6998
6999 2003-03-30 Andrew Cagney <cagney@redhat.com>
7000
7001 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7002 * gdbarch.h, gdbarch.c: Regenerate.
7003 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7004 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7005 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7006 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7007 * i386-tdep.c (i386_gdbarch_init): Ditto.
7008 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7009 * cris-tdep.c (cris_gdbarch_init): Ditto.
7010 * vax-tdep.c (vax_gdbarch_init): Ditto.
7011 * s390-tdep.c (s390_gdbarch_init): Ditto.
7012 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7013 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7014 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7015 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7016 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7017 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7018 * sparc-tdep.c (sparc_gdbarch_init): Update.
7019 * sh-tdep.c (sh_gdbarch_init): Update.
7020 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7021 * mips-tdep.c (mips_gdbarch_init): Update.
7022 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7023 * ia64-tdep.c (ia64_gdbarch_init): Update.
7024 * frv-tdep.c (frv_gdbarch_init): Update.
7025 * avr-tdep.c (avr_gdbarch_init): Update.
7026 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7027 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7028 instead of when push_dummy_call is not available.
7029
7030 2003-03-30 Andrew Cagney <cagney@redhat.com>
7031
7032 * infttrace.c: Include "gdbthread.h".
7033 (parent_attach_all): Fix function signature.
7034 (call_ptrace): Update call.
7035 * Makefile.in (infttrace.o): Update dependencies.
7036
7037 2003-03-30 Andrew Cagney <cagney@redhat.com>
7038
7039 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7040 PUSH_RETURN_ADDRESS.
7041 * gdbarch.h, gdbarch.c: Regenerate.
7042 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7043 * x86-64-tdep.c (x86_64_init_abi): Update.
7044 * v850-tdep.c (v850_gdbarch_init): Update.
7045 * sparc-tdep.c (sparc_gdbarch_init): Update.
7046 * sh-tdep.c (sh_gdbarch_init): Update.
7047 * s390-tdep.c (s390_gdbarch_init): Update.
7048 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7049 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7050 * mips-tdep.c (mips_gdbarch_init): Update.
7051 * mcore-tdep.c (mcore_gdbarch_init): Update.
7052 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7053 * ia64-tdep.c (ia64_gdbarch_init): Update.
7054 * i386-tdep.c (i386_gdbarch_init): Update.
7055 * h8300-tdep.c (h8300_gdbarch_init): Update.
7056 * frv-tdep.c (frv_gdbarch_init): Update.
7057 * cris-tdep.c (cris_gdbarch_init): Update.
7058 * avr-tdep.c (avr_gdbarch_init): Update.
7059 * arm-tdep.c (arm_gdbarch_init): Update.
7060 * valops.c (hand_function_call): Update.
7061
7062 2003-03-29 Andrew Cagney <cagney@redhat.com>
7063
7064 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7065 sizeof_call_dummy_words.
7066 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7067 define.
7068 * gdbarch.h: Regenerate.
7069
7070 2003-03-29 Andrew Cagney <cagney@redhat.com>
7071
7072 * infttrace.h: New file.
7073 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7074 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7075 (hpread_read_doc_function_type): Detect an initialized type1.
7076 (hpread_quick_traverse): Initialize mod_name_string.
7077 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7078 (som_solib_get_solib_by_pc): Declare.
7079 (so_lib_thread_start_addr): Declare.
7080 (no_shared_libraries): Declare.
7081 * somread.c (init_import_symbols): Make static. Add forward
7082 declaration.
7083 * config/pa/nm-hppah.h: Include "infttrace.h" for
7084 parent_attach_all.
7085 (hppa_insert_hw_watchpoint): Declare.
7086 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7087 * hppah-nat.c: Include "gdb_string.h".
7088 (parent_attach_all): Delete extern declaration, moved to
7089 "infttrace.h".
7090 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7091 int.
7092 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7093 * Makefile.in (infttrace_h): Define.
7094 (hpread.o): Update dependencies.
7095 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7096 * hppa-hpux-tdep.c: Include "gdb_string.h".
7097 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7098 * infrun.c (handle_inferior_event): Always initialize
7099 stepped_after_stopped_by_watchpoint. Add default and remove
7100 fallthrough in switch statement.
7101 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7102 parameter to int.
7103 (hppa_remove_hw_watchpoint): Ditto.
7104
7105 2003-03-29 Andrew Cagney <cagney@redhat.com>
7106
7107 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7108 offset.
7109
7110 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
7111
7112 * arm-tdep.c (arm_push_arguments): Delete.
7113 (struct stack_item): New type.
7114 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7115 (arm_store_struct_return): Delte.
7116 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7117 arm_push_arguments or arm_store_struct_return.
7118
7119 2003-03-28 Andrew Cagney <cagney@redhat.com>
7120
7121 * Makefile.in (d10v-tdep.o): Update dependencies.
7122 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7123 * d10v-tdep.c: Include "remote.h".
7124 (target_resume_hook): Delete extern declaration.
7125 (target_wait_loop_hook): Ditto.
7126 (tdisassemble_command): Eliminate assignment in "if" conditional.
7127 (d10v_ts2_register_sim_regno): Eliminate call to
7128 legacy_register_sim_regno.
7129 (d10v_ts3_register_sim_regno): Ditto.
7130
7131 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7132
7133 * thread.c: Reindented.
7134 * lin-lwp.c: Ditto.
7135 * linux-proc.c: Ditto.
7136
7137 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7138
7139 * MAINTAINERS (write after approval): Add myself.
7140
7141 2003-03-27 Theodore A. Roth <troth@openavr.org>
7142
7143 * objc-exp.y: Add missing semi-colons.
7144
7145 2003-03-27 Andrew Cagney <cagney@redhat.com>
7146
7147 * regcache.c (write_sp): Delete function and references.
7148 * inferior.h (write_sp): Delete declaration.
7149 * valops.c (hand_function_call): Replace write_sp with
7150 TARGET_WRITE_SP.
7151 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7152 (sparc_pop_frame): Ditto.
7153
7154 2003-03-27 Andrew Cagney <cagney@redhat.com>
7155
7156 * NEWS: Mention removal of support for hppa*-*-bsd* and
7157 hppa*-*-osf* natives, and hppa*-*-pro* target.
7158 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7159 * config/pa/xm-pa.h: Obsolete file.
7160 * config/pa/xm-hppab.h: Obsolete file.
7161 * config/pa/nm-hppab.h: Obsolete file.
7162 * config/pa/tm-hppab.h: Obsolete file.
7163 * config/pa/tm-hppao.h: Obsolete file.
7164 * config/pa/nm-hppao.h: Obsolete file.
7165 * config/pa/tm-pro.h: Obsolete file.
7166 * config/pa/hppaosf.mt: Obsolete file.
7167 * config/pa/hppaosf.mh: Obsolete file.
7168 * config/pa/hppapro.mt: Obsolete file.
7169 * config/pa/hppabsd.mt: Obsolete file.
7170 * config/pa/hppabsd.mh: Obsolete file.
7171 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7172 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7173 hppa*-*-osf*.
7174
7175 2003-03-27 Andrew Cagney <cagney@redhat.com>
7176
7177 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7178 push_arguments. Don't set push_return_address or write_sp.
7179 (d10v_push_dummy_call): Replace d10v_push_arguments.
7180 (d10v_push_return_address, d10v_write_sp): Delete function,
7181 handled by push_dummy_call.
7182
7183 2003-03-26 Andrew Cagney <cagney@redhat.com>
7184
7185 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7186 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7187 regcache and dummy_addr parameters.
7188 * gdbarch.h, gdbarch.c: Re-generate.
7189 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7190 available; assume it will handle stack alignment and return
7191 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7192 legacy_push_arguments.
7193 (legacy_push_arguments): Rename default_push_arguments.
7194 * value.h (legacy_push_arguments): Rename default_push_arguments.
7195 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7196 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7197 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7198 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7199 * config/i386/tm-symmetry.h: Update.
7200 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7201 * x86-64-tdep.c (x86_64_init_abi): Update.
7202 * v850-tdep.c (v850_gdbarch_init): Update.
7203 * sparc-tdep.c (sparc_gdbarch_init): Update.
7204 * sh-tdep.c (sh_gdbarch_init): Update.
7205 * s390-tdep.c (s390_gdbarch_init): Update.
7206 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7207 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7208 * mips-tdep.c (mips_gdbarch_init): Update.
7209 * mcore-tdep.c (mcore_gdbarch_init): Update.
7210 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7211 * ia64-tdep.c (ia64_gdbarch_init): Update.
7212 * i386-tdep.c (i386_gdbarch_init): Update.
7213 * hppa-tdep.c (hppa_gdbarch_init): Update.
7214 * h8300-tdep.c (h8300_gdbarch_init): Update.
7215 * frv-tdep.c (frv_gdbarch_init): Update.
7216 * d10v-tdep.c (d10v_gdbarch_init): Update.
7217 * cris-tdep.c (cris_gdbarch_init): Update.
7218 * avr-tdep.c (avr_gdbarch_init): Update.
7219 * arm-tdep.c (arm_gdbarch_init): Update.
7220 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7221 * alpha-tdep.c (alpha_gdbarch_init): Update.
7222
7223 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7224
7225 * signals/signals.c (do_target_signal_to_host): Correct realtime
7226 signal range test.
7227
7228 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7229
7230 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7231 (struct sal_chain, map_catch_names): Remove.
7232 (catch_exception_command_1): Don't call
7233 handle_gnu_4_16_catch_command.
7234
7235 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7236
7237 From Mark Dettinger <dettinge@de.ibm.com>:
7238 * dwarf2cfi.c (read_2u): Increment pointer by two.
7239
7240 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7241
7242 * signals/signals.c: Fix typos in last change.
7243
7244 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7245
7246 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7247 not already defined. Use __SIGRTMIN if available.
7248 (target_signal_from_host): Remove SIGRTMIN block.
7249 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7250 the signal is within the realtime range.
7251
7252 2003-03-25 Adam Fedor <fedor@gnu.org>
7253
7254 * Makefile.in (infrun.o): Add $(language_h)
7255 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7256 for language specific trampolines.
7257 * language.h (struct language_defn): Add skip_trampoline.
7258 (skip_language_trampoline): Declare.
7259 * language.c (unk_lang_trampoline, skip_language_trampoline):
7260 New functions.
7261 (unknown_language_defn, auto_language_defn, local_language_defn):
7262 Add ukn_lang_trampoline.
7263 * ada-lang.c (ada_language_defn): Add NULL for language
7264 specific skip_trampoline.
7265 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7266 scm-lang.c: Likewise.
7267 * objc-lang.c (objc_skip_trampoline): New function.
7268 (objc_language_defn): Add objc_skip_trampoline.
7269
7270 2003-03-25 Andrew Cagney <cagney@redhat.com>
7271
7272 * frame.c (get_prev_frame): Delay validating a frame's ID -
7273 non-NULL, didn't go backwards - until an attempt to unwind it to
7274 the previous frame.
7275
7276 2003-03-25 Andrew Cagney <cagney@redhat.com>
7277
7278 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7279 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7280 * gdbarch.h, gdbarch.c: Re-generate.
7281 * config/sparc/tm-sparc.h
7282 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7283 * sparc-tdep.c (sparc_gdbarch_init): Set
7284 deprecated_extra_stack_alignment_needed.
7285 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7286 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7287 extra_stack_alignment_needed.
7288 * v850-tdep.c (v850_gdbarch_init): Ditto.
7289 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7290 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7291 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7292 * cris-tdep.c (cris_gdbarch_init): Ditto.
7293 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7294 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7295
7296 2003-03-25 Andrew Cagney <cagney@redhat.com>
7297
7298 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7299 STORE_STRUCT_RETURN.
7300 * gdbarch.h, gdbarch.c: Regenerate.
7301 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7302 (d10v_push_arguments): Set the struct return register.
7303 (d10v_gdbarch_init): Update.
7304 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7305 * x86-64-tdep.c (x86_64_init_abi): Update.
7306 * vax-tdep.c (vax_gdbarch_init): Update.
7307 * v850-tdep.c (v850_gdbarch_init): Update.
7308 * sparc-tdep.c (sparc_gdbarch_init): Update.
7309 * sh-tdep.c (sh_gdbarch_init): Update.
7310 * s390-tdep.c (s390_gdbarch_init): Update.
7311 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7312 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7313 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7314 * mips-tdep.c (mips_gdbarch_init): Update.
7315 * mcore-tdep.c (mcore_gdbarch_init): Update.
7316 * m68k-tdep.c (m68k_gdbarch_init): Update.
7317 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7318 * ia64-tdep.c (ia64_gdbarch_init): Update.
7319 * i386-tdep.c (i386_gdbarch_init): Update.
7320 * hppa-tdep.c (hppa_gdbarch_init): Update.
7321 * h8300-tdep.c (h8300_gdbarch_init): Update.
7322 * frv-tdep.c (frv_gdbarch_init): Update.
7323 * cris-tdep.c (cris_gdbarch_init): Update.
7324 * avr-tdep.c (avr_gdbarch_init): Update.
7325 * arm-tdep.c (arm_gdbarch_init): Update.
7326 * alpha-tdep.c (alpha_gdbarch_init): Update.
7327
7328 2003-03-25 Andrew Cagney <cagney@redhat.com>
7329
7330 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7331 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7332 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7333 * gdbarch.h, gdbarch.c: Regenerate.
7334 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7335 call_dummy_stack_adjust_p.
7336 * vax-tdep.c (vax_gdbarch_init): Ditto.
7337 * v850-tdep.c (v850_gdbarch_init): Ditto.
7338 * sh-tdep.c (sh_gdbarch_init): Ditto.
7339 * s390-tdep.c (s390_gdbarch_init): Ditto.
7340 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7341 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7342 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7343 * mips-tdep.c (mips_gdbarch_init): Ditto.
7344 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7345 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7346 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7347 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7348 * i386-tdep.c (i386_gdbarch_init): Ditto.
7349 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7350 * frv-tdep.c (frv_gdbarch_init): Ditto.
7351 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7352 * cris-tdep.c (cris_gdbarch_init): Ditto.
7353 * avr-tdep.c (avr_gdbarch_init): Ditto.
7354 * arm-tdep.c (arm_gdbarch_init): Ditto.
7355 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7356 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7357 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7358 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7359 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7360 call_dummy_stack_adjust_p.
7361 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7362 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7363 * sparc-tdep.c (sparc32_push_arguments): Update.
7364 * valops.c (hand_function_call): Update.
7365
7366 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7367
7368 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7369 set_gdbarch_char_signed.
7370
7371 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7372
7373 PR cli/548
7374 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7375
7376 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7377
7378 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7379 (_initialize_arm_tdep): Don't set tm_print_insn.
7380
7381 2003-03-24 Adam Fedor <fedor@gnu.org>
7382
7383 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7384 * objc-lang.h: Add multiple inclusion protection.
7385 (start_msglist, add_msglist, end_msglist): Additional declarations.
7386
7387 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7388
7389 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7390 value was renamed to ARM_FLOAT_SOFT_FPA.
7391
7392 2003-03-23 Andrew Cagney <cagney@redhat.com>
7393
7394 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7395 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7396 * gdbarch.h, gdbarch.c: Regenerate.
7397 * valops.c (hand_function_call): Update.
7398 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7399 * frame.c (legacy_saved_regs_this_id): Update.
7400 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7401 * dummy-frame.h: Update.
7402 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7403 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7404 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7405 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7406 * config/m68k/tm-sun3.h: Update.
7407 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7408 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7409 * x86-64-tdep.c (x86_64_init_abi): Update.
7410 * vax-tdep.c (vax_gdbarch_init): Update.
7411 * v850-tdep.c (v850_gdbarch_init): Update.
7412 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7413 * sh-tdep.c (sh_gdbarch_init): Update.
7414 * s390-tdep.c (s390_gdbarch_init): Update.
7415 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7416 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7417 (frame_get_saved_regs): Update.
7418 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7419 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7420 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7421 * mips-tdep.c (mips_gdbarch_init): Update.
7422 * mcore-tdep.c (mcore_gdbarch_init): Update.
7423 * m68k-tdep.c (m68k_gdbarch_init): Update.
7424 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7425 * ia64-tdep.c (ia64_gdbarch_init): Update.
7426 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7427 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7428 (i386_interix_back_one_frame): Update.
7429 * hppa-tdep.c (hppa_gdbarch_init): Update.
7430 (hppa_init_extra_frame_info): Update.
7431 * h8300-tdep.c (h8300_gdbarch_init): Update.
7432 * frv-tdep.c (frv_gdbarch_init): Update.
7433 * cris-tdep.c (cris_gdbarch_init): Update.
7434 * avr-tdep.c (avr_gdbarch_init): Update.
7435 * arm-tdep.c (arm_gdbarch_init): Update.
7436 * alpha-tdep.c (alpha_gdbarch_init): Update.
7437
7438 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7439
7440 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7441 (arm_get_fp_model): Declare.
7442 * arm-tdep.c (fp_model_strings): New string array.
7443 (arm_fp_model, current_fp_model): New variables.
7444 (arm_get_fp_model): New function.
7445 (arm_set_fp): New function.
7446 (set_fp_model_sfunc): New function.
7447 (show_fp_model): New function.
7448 (_initialize_arm_tdep): Add new command to set/show the FPU.
7449 (arm_extract_return_value): Use arm_get_fp_model.
7450 (arm_store_return_value): Likewise.
7451 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7452 to initialize the floating-point data types.
7453 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7454 model is FPA.
7455
7456 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7457
7458 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7459 the current setting of each value.
7460 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7461 new_set and new_show. Use add_setshow_cmd_full and
7462 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7463 commands and add new version as subcommands of "set/show arm".
7464
7465 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7466
7467 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7468 (set_arm_command, show_arm_command): New functions.
7469 (_initialize_arm_tdep): Add them.
7470 (num_disassembly_options): Renamed from num_flavor_options.
7471 (valid_disassembly_styles): Renamed from valid_flavors.
7472 (disassembly_style): Renamed from disassembly_flavor.
7473 (set_disassembly_style_sfunc): Renamed from
7474 set_disassembly_flavor_sfunc.
7475 (set_disassembly_style): Renamed from set_disassembly_flavor.
7476 (arm_othernames): Updated.
7477 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7478 command. Add "set/show arm disassembly" commands. Deprecate
7479 "othernames" command.
7480
7481 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7482
7483 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7484 (arm-tdep.o): Depend on elf_arm_h.
7485
7486 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7487
7488 * Makefile.in (coff_internal_h): Define.
7489 (arm-tdep.o): Update dependencies.
7490
7491 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7492
7493 * arm-tdep.c (prologue_cache): Delete.
7494 (check_prologue_cache, save_prologue_cache): Delete.
7495 (arm_scan_prologue): Don't check or update the prologue_cache.
7496 (arm_gdb_arch_init): Don't initialize it.
7497 (_initialize_arm_tdep): Likewise.
7498
7499 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7500
7501 * MAINTAINERS (tui): Maintainer of tui code.
7502
7503 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
7504
7505 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7506 (i386-cygwin-tdep.o): Add dependencies.
7507 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7508 * i386-cygwin-tdep.c: New file.
7509 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7510 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7511
7512 2003-03-20 Andrew Cagney <cagney@redhat.com>
7513
7514 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7515 (handle_inferior_event): Remove code calling
7516 DYNAMIC_TRAMPOLINE_NEXTPC.
7517
7518 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7519 already has a full path.
7520
7521 * main.c (gdb_main): Return 1.
7522 (captured_main): Call error to report an invalid interpreter.
7523
7524 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7525 * alpha-osf1-tdep.c: Include "gdb_string.h".
7526
7527 2003-03-19 J. Brobecker <brobecker@gnat.com>
7528
7529 Continuing work to convert the hppa targets to multiarch partial.
7530
7531 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7532 method, now that hppa_push_dummy_frame has a conformant prototype.
7533 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7534 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7535 for the switch to multiarch partial.
7536
7537 2003-03-19 Kevin Buettner <kevinb@redhat.com>
7538
7539 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7540 when iss is issNull.
7541
7542 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7543
7544 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7545 NUM_REGS bounds check.
7546
7547 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7548
7549 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7550 * mips-tdep.c (gdb_assert.h): Include.
7551 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7552 (mips_register_name): Handle integer registers explicitly. Add
7553 bounds checking.
7554 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7555 (mips_lsi33k_reg_names): Don't list integer registers; they're
7556 handled by mips_register_name() now.
7557 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7558 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7559 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7560 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7561 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7562
7563 2003-03-18 Andrew Cagney <cagney@redhat.com>
7564
7565 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7566 a void pointer.
7567 * gdbtypes.h (print_scalar_formatted): Update declaration.
7568 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7569
7570 2003-03-18 J. Brobecker <brobecker@gnat.com>
7571
7572 * infrun.c (observer.h): Add #include.
7573 (normal_stop): Add call to observer_notify_normal_stop.
7574 * Makefile.in (infrun.o): Add dependency on observer.h.
7575
7576 2003-03-18 J. Brobecker <brobecker@gnat.com>
7577
7578 Continuing work to convert the hppa targets to multiarch partial.
7579 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7580 parameter. Reformat comment.
7581 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7582 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7583 to match new profile.
7584
7585 2003-03-18 J. Brobecker <brobecker@gnat.com>
7586
7587 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7588 appear to be working in any case.
7589
7590 2003-03-18 J. Brobecker <brobecker@gnat.com>
7591
7592 * observer.c (observer_test_first_observer): New static variable.
7593 (observer_test_second_observer): Likewise.
7594 (observer_test_third_observer): Likewise.
7595 (observer_test_first_notification_function): New static function.
7596 (observer_test_second_notification_function): Likewise.
7597 (observer_test_third_notification_function): Likewise.
7598
7599 2003-03-17 J. Brobecker <brobecker@gnat.com>
7600
7601 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7602 * somsolib.c (gdb_assert.h): Likewise.
7603 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7604 (somsolib.o): Likewise.
7605
7606 2003-03-17 Andrew Cagney <cagney@redhat.com>
7607
7608 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7609 BFD. Simplify setting of di.endian.
7610
7611 2003-03-17 Andrew Cagney <cagney@redhat.com>
7612
7613 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7614 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7615
7616 From Elena Zannoni <ezannoni@redhat.com>
7617 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7618 vector and floating-point parameters.
7619 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7620 convention.
7621 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7622
7623 2003-03-17 Fernando Nasser <fnasser@redhat.com>
7624
7625 * MAINTAINERS: Remove my name from several maintainership roles.
7626
7627 2003-03-17 Andrew Cagney <cagney@redhat.com>
7628
7629 Fix frame off-by-one bug.
7630 * frame-unwind.h (frame_this_id_ftype): Replace
7631 frame_unwind_id_ftype.
7632 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7633 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7634 with "prev_register".
7635 * frame-unwind.c (frame_unwind_find_by_pc): Return
7636 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7637 comment.
7638 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7639 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7640 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7641 (dummy_frame_unwind): Update.
7642 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7643 sentinel_frame_register_unwind.
7644 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7645 (sentinel_frame_unwinder): Update.
7646 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7647 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7648 * frame.c (create_sentinel_frame): Update. Initialize
7649 "prologue_cache" instead of "unwind_cache".
7650 (frame_register_unwind): Call this frame's prev_register with the
7651 next frame and this frame's prologue cache.
7652 (get_prev_frame): Simplify. Always call prev frame's this_id with
7653 this frame and prev frame's prologue cache. Document that this
7654 call is shifted one to the left when compared to the
7655 frame_register_unwind call.
7656 (legacy_saved_regs_prev_register): Replace
7657 frame_saved_regs_register_unwind.
7658 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7659 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7660 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7661 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7662 (d10v_frame_unwind): Update.
7663 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7664 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7665 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7666 "saved_regs" with "this_saved_regs".
7667
7668 2003-03-16 Andrew Cagney <cagney@redhat.com>
7669
7670 * frame.c (frame_pop): Don't call target_store_registers. Fix
7671 problem reported by Mark Kettenis.
7672
7673 2003-03-16 Mark Kettenis <kettenis@gnu.org>
7674
7675 * i386-tdep.c (i386_register_type): Renamed from
7676 i386_register_virtual_type. Adjust function signature.
7677 (i386_gdbarch_init): Set register_type instead of
7678 deprecated_max_register_raw_size,
7679 deprecated_max_register_virtual_size and register_virtual_type.
7680
7681 2003-03-14 Andrew Cagney <cagney@redhat.com>
7682
7683 * frame.c (get_prev_frame): When a legacy frame, always call
7684 legacy_get_prev_frame. Simplify unwind code using assumption that
7685 the unwinder is new.
7686 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7687 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7688 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7689
7690 2003-03-14 Andrew Cagney <cagney@redhat.com>
7691
7692 * frame.c (get_saved_register): Delete function.
7693 * frame.h (get_saved_register): Delete declaration.
7694 * xstormy16-tdep.c: Update comment.
7695 * regcache.h: Update comments.
7696 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7697 get_saved_register and extract_address, use
7698 frame_read_unsigned_register.
7699 (sparc_frame_saved_pc): Ditto.
7700 (sparc_get_saved_register): Instead of get_saved_register, use
7701 frame_register.
7702 (sparc_pop_frame): Ditto.
7703 * findvar.c: Update comments.
7704 (value_of_register): Call frame_register instead of
7705 get_saved_register.
7706 (value_from_register): Ditto.
7707 * config/sparc/tm-sparc.h: Update comment.
7708 * breakpoint.c: Update comment.
7709
7710 2003-03-14 Andrew Cagney <cagney@redhat.com>
7711
7712 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7713 GET_SAVED_REGISTER.
7714 * gdbarch.h, gdbarch.c: Re-generate.
7715 * frame.h: Update comments.
7716 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7717 * x86-64-tdep.c (x86_64_init_abi): Update.
7718 * sparc-tdep.c (sparc_gdbarch_init): Update.
7719 * sh-tdep.c (sh_gdbarch_init): Update.
7720 * mips-tdep.c (mips_gdbarch_init): Update.
7721 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7722 * cris-tdep.c (cris_gdbarch_init): Update.
7723 * ia64-tdep.c (ia64_gdbarch_init): Update.
7724 * frame.c (frame_register): Update.
7725 (get_saved_register): Update.
7726 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7727
7728 2003-03-13 Andrew Cagney <cagney@redhat.com>
7729
7730 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7731 * gdbarch.h, gdbarch.c: Regenerate.
7732 * valops.c (hand_function_call): Update comment.
7733 * stack.c (return_command): Update comment.
7734 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7735 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7736 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7737 * x86-64-tdep.c (x86_64_init_abi): Update.
7738 * vax-tdep.c (vax_gdbarch_init): Update.
7739 * v850-tdep.c (v850_gdbarch_init): Update.
7740 * sparc-tdep.c (sparc_gdbarch_init): Update.
7741 * sh-tdep.c (sh_gdbarch_init): Update.
7742 * s390-tdep.c (s390_gdbarch_init): Update.
7743 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7744 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7745 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7746 * mips-tdep.c (mips_gdbarch_init): Update.
7747 * mcore-tdep.c (mcore_gdbarch_init): Update.
7748 * m68k-tdep.c (m68k_gdbarch_init): Update.
7749 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7750 * ia64-tdep.c (ia64_gdbarch_init): Update.
7751 * i386-tdep.c (i386_gdbarch_init): Update.
7752 * hppa-tdep.c (hppa_gdbarch_init): Update.
7753 * h8300-tdep.c (h8300_gdbarch_init): Update.
7754 * frv-tdep.c (frv_gdbarch_init): Update.
7755 * cris-tdep.c (cris_gdbarch_init): Update.
7756 * avr-tdep.c (avr_gdbarch_init): Update.
7757 * arm-tdep.c (arm_gdbarch_init): Update.
7758 * alpha-tdep.c (alpha_gdbarch_init): Update.
7759
7760 2003-03-13 Andrew Cagney <cagney@redhat.com>
7761
7762 * frame.c (legacy_frame_p): New function.
7763 (get_prev_frame): Use legacy_frame_p.
7764 * frame.h (legacy_frame_p): Declare.
7765
7766 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7767
7768 * MAINTAINERS (write after approval): Alphabetically
7769 listing corrected.
7770
7771 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7772
7773 * MAINTAINERS (write after approval): Add myself.
7774
7775 2003-03-12 Andrew Cagney <cagney@redhat.com>
7776
7777 * frame.c (get_prev_frame): Rename the frame parameter to
7778 "this_frame".
7779 (get_next_frame, legacy_get_prev_frame): Ditto.
7780
7781 2003-03-12 Andrew Cagney <cagney@redhat.com>
7782
7783 * frame.c (get_current_frame): Check target_has_registers before
7784 checking target_has_stack.
7785 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7786 instead of deprecated_selected_frame.
7787 * findvar.c (value_of_register): Pass "frame", not
7788 deprecated_selected_frame, to value_of_builtin_reg.
7789
7790 2003-03-12 Andrew Cagney <cagney@redhat.com>
7791
7792 * regcache.c (regcache_cooked_write_signed): New function.
7793 (regcache_cooked_write_unsigned): New function.
7794 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7795 (regcache_cooked_read_signed): Fix regnum in range assertion.
7796 * regcache.h (regcache_cooked_write_signed): Declare.
7797 (regcache_cooked_write_unsigned): Declare.
7798
7799 2003-03-12 Andrew Cagney <cagney@redhat.com>
7800
7801 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7802 * gdbarch.h, gdbarch.c: Re-generate.
7803 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7804 * x86-64-tdep.h: Update.
7805 * x86-64-tdep.c (x86_64_init_abi): Update.
7806 * v850-tdep.c (v850_gdbarch_init): Update.
7807 * sparc-tdep.c (sparc_gdbarch_init): Update.
7808 * sh-tdep.c (sh_gdbarch_init): Update.
7809 * s390-tdep.c (s390_gdbarch_init): Update.
7810 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7811 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7812 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7813 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7814 * mips-tdep.c (mips_gdbarch_init): Update.
7815 * mcore-tdep.c (mcore_gdbarch_init): Update.
7816 * m68k-tdep.c (m68k_gdbarch_init): Update.
7817 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7818 * ia64-tdep.c (ia64_gdbarch_init): Update.
7819 * i386-tdep.c (i386_gdbarch_init): Update.
7820 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7821 * hppa-tdep.c (hppa_gdbarch_init): Update.
7822 * h8300-tdep.c (h8300_gdbarch_init): Update.
7823 * frv-tdep.c (frv_gdbarch_init): Update.
7824 * cris-tdep.c (cris_gdbarch_init): Update.
7825 * avr-tdep.c (avr_gdbarch_init): Update.
7826 * arm-tdep.c (arm_gdbarch_init): Update.
7827 * alpha-tdep.c (alpha_gdbarch_init): Update.
7828 * sh-tdep.c (sh_init_extra_frame_info): Update.
7829 (sh64_init_extra_frame_info): Update.
7830 * ns32knbsd-nat.c (frame_num_args): Update.
7831 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7832 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7833 (xstormy16_frame_chain_valid): Update.
7834 * vax-tdep.c (vax_saved_pc_after_call): Update.
7835 * v850-tdep.c (v850_frame_chain): Update.
7836 (v850_pop_frame): Update.
7837 (v850_init_extra_frame_info): Update.
7838 * sparc-tdep.c (setup_arbitrary_frame): Update.
7839 * ns32k-tdep.c (umax_frame_num_args): Update.
7840 * s390-tdep.c (s390_pop_frame_regular): Update.
7841 * mn10300-tdep.c (mn10300_frame_chain): Update.
7842 (mn10300_pop_frame_regular): Update.
7843 (mn10300_init_extra_frame_info): Update.
7844 * mips-tdep.c (mips_init_frame_pc_first): Update.
7845 (mips_frame_chain): Update.
7846 (mips_pop_frame): Update.
7847 * mcore-tdep.c (mcore_frame_chain): Update.
7848 (mcore_pop_frame): Update.
7849 (mcore_init_extra_frame_info): Update.
7850 * arch-utils.c (init_frame_pc_default): Update.
7851 * m68k-tdep.c (isi_frame_num_args): Update.
7852 (delta68_frame_num_args): Update.
7853 (news_frame_num_args): Update.
7854 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7855 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7856 (alpha_frame_chain): Update.
7857 (alpha_pop_frame): Update.
7858 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7859 (hppa_init_extra_frame_info): Update.
7860 (hppa_frame_chain): Update.
7861 (hppa_frame_chain_valid): Update.
7862 * cris-tdep.c (cris_init_extra_frame_info): Update.
7863 * avr-tdep.c (avr_init_extra_frame_info): Update.
7864 * arm-tdep.c (arm_frame_chain_valid): Update.
7865 (arm_init_extra_frame_info): Update.
7866 (arm_pop_frame): Update.
7867 * frame.c (frame_pc_unwind): Update.
7868 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7869 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7870 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7871 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7872 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7873 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7874
7875 2003-03-12 Andrew Cagney <cagney@redhat.com>
7876
7877 Eliminate the need for POP_FRAME.
7878 * frame.c (do_frame_unwind_register): New function.
7879 (frame_pop): When no POP_FRAME, pop the frame using register
7880 unwind and a scratch regcache.
7881 (frame_saved_regs_pop): Delete function.
7882 (trad_frame_unwinder): Update.
7883 * d10v-tdep.c (d10v_frame_pop): Delete function.
7884 (d10v_frame_unwind): Update.
7885 * sentinel-frame.c (sentinel_frame_pop): Delete function.
7886 (sentinel_frame_unwinder): Update.
7887 * dummy-frame.c (dummy_frame_pop): Delete function.
7888 (dummy_frame_unwind): Update.
7889 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7890 (struct frame_unwind): Update.
7891
7892 2003-03-11 Kevin Buettner <kevinb@redhat.com>
7893
7894 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
7895 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
7896 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
7897 Do range checks on register number obtained from debugging info.
7898 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
7899 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
7900 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
7901 mapping function.
7902 (do_fp_register_row): Fix typo which caused double type to be
7903 used when attempting to unpack a float.
7904
7905 2003-03-11 J. Brobecker <brobecker@gnat.com>
7906
7907 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
7908
7909 2003-03-11 Andrew Cagney <cagney@redhat.com>
7910
7911 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
7912 frame. Problem found by Corinna Vinschen.
7913
7914 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
7915
7916 * doublest.c (floatformat_from_length): Accept also
7917 the real size of 'long double' type.
7918
7919 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
7920
7921 From Klee Dienes <kdienes@apple.com>:
7922 * breakpoint.c (bpstat_copy): Copy the command lines as well
7923 as the old value, to match what is freed in bpstat_clear.
7924
7925 2003-03-10 David Carlton <carlton@math.stanford.edu>
7926
7927 * minsyms.c (add_minsym_to_hash_table): Replace
7928 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7929 (compare_minimal_symbols, compact_minimal_symbols)
7930 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
7931 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
7932 of DEPRECATED_SYMBOL_MATCHES_NAME.
7933 (lookup_minimal_symbol_solib_trampoline): Ditto.
7934
7935 2003-03-10 Andrew Cagney <cagney@redhat.com>
7936
7937 * regcache.h (regcache_cooked_read_ftype): Define.
7938 (regcache_save, regcache_restore): Add a cooked_read parameter.
7939 * regcache.c (regcache_save, regcache_restore): Update.
7940 (do_cooked_read): New function.
7941 (regcache_cpy): Pass do_cooked_read to regcache_save and
7942 regcache_restore.
7943
7944 2003-03-10 Andrew Cagney <cagney@redhat.com>
7945
7946 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7947 * gdbarch.h, gdbarch.c: Re-generate.
7948 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7949 * x86-64-tdep.h: Update.
7950 * x86-64-tdep.c (x86_64_init_abi): Update.
7951 * v850-tdep.c (v850_gdbarch_init): Update.
7952 * sparc-tdep.c (sparc_gdbarch_init): Update.
7953 * sh-tdep.c (sh_gdbarch_init): Update.
7954 * s390-tdep.c (s390_gdbarch_init): Update.
7955 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7956 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7957 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7958 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7959 * mips-tdep.c (mips_gdbarch_init): Update.
7960 * mcore-tdep.c (mcore_gdbarch_init): Update.
7961 * m68k-tdep.c (m68k_gdbarch_init): Update.
7962 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7963 * ia64-tdep.c (ia64_gdbarch_init): Update.
7964 * i386-tdep.c (i386_gdbarch_init): Update.
7965 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7966 * hppa-tdep.c (hppa_gdbarch_init): Update.
7967 * h8300-tdep.c (h8300_gdbarch_init): Update.
7968 * frv-tdep.c (frv_gdbarch_init): Update.
7969 * cris-tdep.c (cris_gdbarch_init): Update.
7970 * avr-tdep.c (avr_gdbarch_init): Update.
7971 * arm-tdep.c (arm_gdbarch_init): Update.
7972 * alpha-tdep.c (alpha_gdbarch_init): Update.
7973 * sh-tdep.c (sh_init_extra_frame_info): Update.
7974 (sh64_init_extra_frame_info): Update.
7975 * ns32knbsd-nat.c (frame_num_args): Update.
7976 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7977 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7978 (xstormy16_frame_chain_valid): Update.
7979 * vax-tdep.c (vax_saved_pc_after_call): Update.
7980 * v850-tdep.c (v850_frame_chain): Update.
7981 (v850_pop_frame): Update.
7982 (v850_init_extra_frame_info): Update.
7983 * sparc-tdep.c (setup_arbitrary_frame): Update.
7984 * ns32k-tdep.c (umax_frame_num_args): Update.
7985 * s390-tdep.c (s390_pop_frame_regular): Update.
7986 * mn10300-tdep.c (mn10300_frame_chain): Update.
7987 (mn10300_pop_frame_regular): Update.
7988 (mn10300_init_extra_frame_info): Update.
7989 * mips-tdep.c (mips_init_frame_pc_first): Update.
7990 (mips_frame_chain): Update.
7991 (mips_pop_frame): Update.
7992 * mcore-tdep.c (mcore_frame_chain): Update.
7993 (mcore_pop_frame): Update.
7994 (mcore_init_extra_frame_info): Update.
7995 * arch-utils.c (init_frame_pc_default): Update.
7996 * m68k-tdep.c (isi_frame_num_args): Update.
7997 (delta68_frame_num_args): Update.
7998 (news_frame_num_args): Update.
7999 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8000 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8001 (alpha_frame_chain): Update.
8002 (alpha_pop_frame): Update.
8003 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8004 (hppa_init_extra_frame_info): Update.
8005 (hppa_frame_chain): Update.
8006 (hppa_frame_chain_valid): Update.
8007 * cris-tdep.c (cris_init_extra_frame_info): Update.
8008 * avr-tdep.c (avr_init_extra_frame_info): Update.
8009 * arm-tdep.c (arm_frame_chain_valid): Update.
8010 (arm_init_extra_frame_info): Update.
8011 (arm_pop_frame): Update.
8012 * frame.c (frame_pc_unwind): Update.
8013 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8014 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8015 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8016 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8017 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8018 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8019
8020 2003-03-10 Andrew Cagney <cagney@redhat.com>
8021
8022 * gdbarch.sh (gdbarch_unwind_pc): New method.
8023 * gdbarch.h, gdbarch.c: Regenerate.
8024 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8025 but use read_pc and FRAME_SAVED_PC as fall backs.
8026 (frame_saved_regs_pc_unwind): Delete function.
8027 (trad_frame_unwinder): Update.
8028 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8029 (struct frame_unwind): Update.
8030 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8031 (dummy_frame_unwind): Update.
8032 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8033 (sentinel_frame_unwinder): Update.
8034 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8035 (d10v_frame_unwind): Update.
8036 (d10v_unwind_pc): New function.
8037 (d10v_gdbarch_init): Set unwind_pc.
8038
8039 2003-03-10 Andrew Cagney <cagney@redhat.com>
8040
8041 * gdbarch.h: Re-generate.
8042
8043 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8044 PC.
8045 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8046 the PC register.
8047
8048 2003-03-08 Mark Kettenis <kettenis@gnu.org>
8049
8050 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8051
8052 2003-03-08 Andrew Cagney <cagney@redhat.com>
8053
8054 * cli-out.c: Update copyright.
8055 (cli_out_data): Define typedef. Use instead of ui_out_data.
8056
8057 2003-03-08 Andrew Cagney <cagney@redhat.com>
8058
8059 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8060 the result.
8061
8062 2003-03-07 Andrew Cagney <cagney@redhat.com>
8063
8064 * gdbarch.sh: Don't generate two macro definitions when an
8065 undefined macro taking no arguments.
8066 * gdbarch.h: Regenerate.
8067
8068 2002-03-07 Michal Ludvig <mludvig@suse.cz>
8069
8070 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8071 (x86_64_unwind_dummy_id): New functions.
8072 (x86_64_init_abi): Register these two new functions.
8073
8074 2003-03-07 Michal Ludvig <mludvig@suse.cz>
8075
8076 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8077 (x86_64_skip_prologue): Move prologue detection to
8078 separate function.
8079 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8080
8081 2003-03-05 Andrew Cagney <cagney@redhat.com>
8082
8083 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8084 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8085 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8086 to use unwind_dummy_id when a dummy frame.
8087 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8088 predicate.
8089 * gdbarch.h, gdbarch.c: Regneerate.
8090
8091 2003-03-05 Andrew Cagney <cagney@redhat.com>
8092
8093 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8094 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8095 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8096 values.
8097
8098 2003-03-05 Andrew Cagney <cagney@redhat.com>
8099
8100 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8101 (struct d10v_unwind_cache): Delete field "frameless". Replace
8102 "next_addr" with "sp_offset". Add "r11_offset".
8103 (d10v_frame_unwind_cache): Update.
8104 (prologue_find_regs): Update. When "mv r11, sp", save the
8105 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8106 RN was saved in r11_offset.
8107
8108 2003-03-05 Andrew Cagney <cagney@redhat.com>
8109
8110 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8111 cached PC value in the next frame.
8112
8113 2003-03-05 Andrew Cagney <cagney@redhat.com>
8114
8115 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8116 "id_unwind_cache" with "id".
8117 (frame_id_unwind): Delete declaration.
8118 * frame.c (frame_id_unwind): Delete function.
8119 (get_prev_frame): Call the frame id unwind method directly. Store
8120 the returned next frame's ID value in NEXT_FRAME. Note that there
8121 is a problem with the wrong unwind ID being called with the wrong
8122 unwind cache.
8123
8124 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8125
8126 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8127
8128 2003-03-05 James Ingham <jingham@apple.com>
8129 Daniel Jacobowitz <drow@mvista.com>
8130
8131 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8132 (auto_cp_abi): New variable.
8133 (current_cp_abi, num_cp_abis): Make static.
8134 (CP_ABI_MAX): Define.
8135 (cp_abis): Turn into an array.
8136 (value_virtual_fn_field): Fix formatting.
8137 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8138 takes a pointer.
8139 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8140 (list_cp_abis, _initialize_cp_abi): New functions.
8141 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8142 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8143 switch_to_cp_abi. Update prototype for register_cp_abi.
8144 * Makefile.in (cp-abi.o): Update dependencies.
8145 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8146 instead of switch_to_cp_abi.
8147 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8148 register_cp_abi.
8149 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8150 register_cp_abi.
8151 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8152
8153 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8154
8155 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8156 * dwarf2loc.c: Include "regcache.h".
8157 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8158 register_size.
8159 * Makefile.in (dwarf2loc.o): Update dependencies.
8160
8161 2003-03-04 Theodore A. Roth <troth@openavr.org>
8162
8163 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8164 number of io registers reported by remote target is not a multiple of
8165 step.
8166
8167 2003-03-04 David Carlton <carlton@math.stanford.edu>
8168
8169 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8170 (lookup_symbol_aux_psymtabs): Update call to
8171 lookup_partial_symbol.
8172 (lookup_transparent_type, find_main_psymtab)
8173 (make_symbol_overload_list): Ditto.
8174
8175 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8176
8177 * MAINTAINERS (Write after approval): Update my email address.
8178
8179 2003-03-03 Andrew Cagney <cagney@redhat.com>
8180
8181 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8182 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8183 predicate. Replace MAX_REGISTER_RAW_SIZE.
8184 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8185 MAX_REGISTER_VIRTUAL_SIZE.
8186 * regcache.c (legacy_max_register_raw_size): New function.
8187 (legacy_max_register_virtual_size): New function.
8188 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8189 (MAX_REGISTER_RAW_SIZE): Define.
8190 (legacy_max_register_raw_size): Declare.
8191 (legacy_max_register_virtual_size): Declare.
8192 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8193 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8194 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8195 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8196 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8197 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8198 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8199 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8200 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8201 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8202 * vax-tdep.c (vax_gdbarch_init): Update.
8203 * v850-tdep.c (v850_gdbarch_init): Update.
8204 * sparc-tdep.c (sparc_gdbarch_init): Update.
8205 * sh-tdep.c (sh_gdbarch_init): Update.
8206 * s390-tdep.c (s390_gdbarch_init): Update.
8207 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8208 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8209 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8210 * mips-tdep.c (mips_gdbarch_init): Update.
8211 * mcore-tdep.c (mcore_gdbarch_init): Update.
8212 * m68k-tdep.c (m68k_gdbarch_init): Update.
8213 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8214 * ia64-tdep.c (ia64_gdbarch_init): Update.
8215 * i386-tdep.c (i386_gdbarch_init): Update.
8216 * hppa-tdep.c (hppa_gdbarch_init): Update.
8217 * h8300-tdep.c (h8300_gdbarch_init): Update.
8218 * frv-tdep.c (frv_gdbarch_init): Update.
8219 * cris-tdep.c (cris_gdbarch_init): Update.
8220 * avr-tdep.c (avr_gdbarch_init): Update.
8221 * arm-tdep.c (arm_gdbarch_init): Update.
8222 * alpha-tdep.c (alpha_gdbarch_init): Update.
8223 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8224 max_register_raw_size or max_register_virtual_size.
8225
8226 2003-03-03 David Carlton <carlton@math.stanford.edu>
8227
8228 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8229 SYMBOL_MATCHES_NAME, add comment.
8230 (SYMBOL_MATCHES_NATURAL_NAME): New.
8231 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8232 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8233 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8234 * symtab.c (lookup_partial_symbol): Use
8235 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8236 unhelpful comment.
8237 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8238 SYMBOL_MATCHES_NAME.
8239 Fix for PR c++/33.
8240
8241 2003-03-03 David Carlton <carlton@math.stanford.edu>
8242
8243 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8244 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8245 by regexp matching against SYMBOL_NATURAL_NAME.
8246
8247 2003-03-03 David Carlton <carlton@math.stanford.edu>
8248
8249 * linespec.c (find_method): Extract code into collect_methods.
8250 (collect_methods): New.
8251
8252 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8253
8254 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8255 get_frame_base.
8256
8257 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8258 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8259
8260 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8261
8262 * arch-utils.c (generic_register_byte): Fix to use the loop index
8263 and not regnum when summing the size of all registers up to regnum.
8264
8265 2003-03-01 Andrew Cagney <cagney@redhat.com>
8266
8267 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8268 FRAME_INIT_SAVED_REGS.
8269 * gdbarch.h, gdbarch.c: Regenerate.
8270 * stack.c (frame_info): Update.
8271 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8272 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8273 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8274 * ns32k-tdep.c (ns32k_pop_frame): Update.
8275 * mips-tdep.c (mips_pop_frame): Update.
8276 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8277 * ia64-tdep.c (ia64_frame_chain): Update.
8278 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8279 (ia64_frameless_function_invocation): Update.
8280 (ia64_init_extra_frame_info): Update.
8281 (ia64_pop_frame_regular): Update.
8282 * frame.h (struct frame_info): Update comment.
8283 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8284 * frame.c (frame_saved_regs_register_unwind): Update.
8285 (frame_saved_regs_register_unwind): Update.
8286 (deprecated_generic_get_saved_register): Update.
8287 * cris-tdep.c: Update comment.
8288 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8289 Rename macro.
8290 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8291 * x86-64-tdep.c (x86_64_init_abi): Update.
8292 * vax-tdep.c (vax_gdbarch_init): Update.
8293 * v850-tdep.c (v850_gdbarch_init): Update.
8294 * sparc-tdep.c (sparc_gdbarch_init): Update.
8295 * sh-tdep.c (sh_gdbarch_init): Update.
8296 * s390-tdep.c (s390_gdbarch_init): Update.
8297 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8298 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8299 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8300 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8301 * mips-tdep.c (mips_gdbarch_init): Update.
8302 * mcore-tdep.c (mcore_gdbarch_init): Update.
8303 * m68k-tdep.c (m68k_gdbarch_init): Update.
8304 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8305 * ia64-tdep.c (ia64_gdbarch_init): Update.
8306 * i386-tdep.c (i386_gdbarch_init): Update.
8307 * frv-tdep.c (frv_gdbarch_init): Update.
8308 * avr-tdep.c (avr_gdbarch_init): Update.
8309 * arm-tdep.c (arm_gdbarch_init): Update.
8310 * alpha-tdep.c (alpha_gdbarch_init): Update.
8311
8312 2003-03-01 Andrew Cagney <cagney@redhat.com>
8313
8314 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8315 option enum and switch. When no windows, set the interpreter to
8316 INTERP_CONSOLE.
8317
8318 2003-03-01 Andrew Cagney <cagney@redhat.com>
8319
8320 * main.c (captured_main): Replace magic option characters with an
8321 enum.
8322
8323 2003-03-01 Andrew Cagney <cagney@redhat.com>
8324
8325 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8326 INIT_EXTRA_FRAME_INFO.
8327 * gdbarch.h, gdbarch.c: Regenerate.
8328 * arm-tdep.c: Update comments.
8329 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8330 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8331 * frame.h, avr-tdep.c: Ditto.
8332 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8333 (create_new_frame, legacy_get_prev_frame): Ditto.
8334 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8335 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8336 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8337 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8338 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8339 * v850-tdep.c (v850_gdbarch_init): Ditto.
8340 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8341 * sh-tdep.c (sh_gdbarch_init): Ditto.
8342 * s390-tdep.c (s390_gdbarch_init): Ditto.
8343 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8344 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8345 * mips-tdep.c (mips_gdbarch_init): Ditto.
8346 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8347 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8348 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8349 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8350 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8351 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8352 * frv-tdep.c (frv_gdbarch_init): Ditto.
8353 * cris-tdep.c (cris_gdbarch_init): Ditto.
8354 * avr-tdep.c (avr_gdbarch_init): Ditto.
8355 * arm-tdep.c (arm_gdbarch_init): Ditto.
8356 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8357 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8358
8359 2003-03-01 Andrew Cagney <cagney@redhat.com>
8360
8361 * gdbarch.sh (register_type): New function with predicate.
8362 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8363 * gdbarch.h, gdbarch.c: Re-generate.
8364 * arch-utils.c (generic_register_byte): Use generic_register_size.
8365 (generic_register_size): When available, use
8366 gdbarch_register_type.
8367 * regcache.c (init_regcache_descr): When available, initialize the
8368 register type array using gdbarch_register_type. If the
8369 architecture supplies gdbarch_register_type, do not use the legacy
8370 regcache layout.
8371 * d10v-tdep.c (d10v_register_type): Replace
8372 d10v_register_virtual_type.
8373 (d10v_gdbarch_init): Set register_type instead of
8374 register_virtual_type.
8375
8376 2003-03-01 Andrew Cagney <cagney@redhat.com>
8377
8378 * Makefile.in (ax-gdb.o): Update dependencies.
8379 * ax-gdb.c: Include "regcache.h".
8380 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8381 * findvar.c (value_of_register): Ditto.
8382 * infcmd.c (default_print_registers_info): Ditto.
8383
8384 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8385
8386 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8387 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8388
8389 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8390
8391 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8392 of STREQ.
8393
8394 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8395
8396 * Makefile.in (dwarf2loc.o): Update dependencies.
8397 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8398 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8399 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8400 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8401 (locexpr_tracepoint_var_ref): New function.
8402 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8403
8404 2003-02-28 Andrew Cagney <cagney@redhat.com>
8405
8406 * regcache.c (register_size): New function.
8407 * regcache.h (register_size): Declare
8408 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8409 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8410
8411 2003-02-28 David Carlton <carlton@math.stanford.edu>
8412
8413 * linespec.c (decode_compound): Extract code into find_method.
8414 (find_method): New.
8415
8416 2003-02-28 J. Brobecker <brobecker@gnat.com>
8417
8418 * Makefile.in: Add rules to build and link in observer.o.
8419
8420 2003-02-27 J. Brobecker <brobecker@gnat.com>
8421
8422 * observer.c: Minor comments edits.
8423
8424 2003-02-27 J. Brobecker <brobecker@gnat.com>
8425
8426 * observer.h, observer.c: New file.
8427
8428 2003-02-27 Andrew Cagney <cagney@redhat.com>
8429
8430 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8431
8432 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8433
8434 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8435 (M6812_OP_STS_EXT): Likewise.
8436 (m6811_prologue): Use the above to recognize prologue.
8437 (m6812_prologue): Likewise.
8438
8439 2003-02-27 David Carlton <carlton@math.stanford.edu>
8440
8441 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8442 SYMBOL_PRINT_NAME.
8443 (compare_psymbols): Ditto.
8444 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8445
8446 2003-02-27 Michael Snyder <msnyder@redhat.com>
8447
8448 * f-lang.c (build_fortran_types): New function.
8449 (_initialize_f_language): Gdbarch-register built-in fortran types.
8450 * doublest.c (extract_floating): Fix warning text.
8451
8452 2003-02-27 Andrew Cagney <cagney@redhat.com>
8453
8454 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8455 predicate. Replaces PUSH_DUMMY_FRAME.
8456 * gdbarch.h, gdbarch.c: Regnerate.
8457 * valops.c (hand_function_call): Update. Call
8458 generic_push_dummy_frame directly.
8459 * vax-tdep.c (vax_gdbarch_init): Update.
8460 * sparc-tdep.c (sparc_gdbarch_init): Update.
8461 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8462 * m68k-tdep.c (m68k_gdbarch_init): Update.
8463 * hppa-tdep.c (hppa_gdbarch_init): Update.
8464 * alpha-tdep.c (alpha_gdbarch_init): Update.
8465 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8466 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8467 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8468 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8469 push_dummy_frame to generic_push_dummy_frame.
8470 * v850-tdep.c (v850_gdbarch_init): Ditto.
8471 * sh-tdep.c (sh_gdbarch_init): Ditto.
8472 * s390-tdep.c (s390_gdbarch_init): Ditto.
8473 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8474 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8475 * mips-tdep.c (mips_gdbarch_init): Ditto.
8476 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8477 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8478 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8479 * i386-tdep.c (i386_gdbarch_init): Ditto.
8480 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8481 * frv-tdep.c (frv_gdbarch_init): Ditto.
8482 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8483 * cris-tdep.c (cris_gdbarch_init): Ditto.
8484 * avr-tdep.c (avr_gdbarch_init): Ditto.
8485 * arm-tdep.c (arm_gdbarch_init): Ditto.
8486
8487 2003-02-26 Kevin Buettner <kevinb@redhat.com>
8488
8489 * mips-tdep.c (show_mips_abi): New function.
8490 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8491 command ``show mips abi''.
8492
8493 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8494
8495 From Elena Zannoni <ezannoni@redhat.com>
8496 * dbxread.c (process_one_symbol): Only record line 0 if one or
8497 more sline entries have been seen for the function.
8498
8499 2003-02-26 Michael Chastain <mec@shout.net>
8500
8501 * configure: Regenerate with autoconf 000227.
8502
8503 2003-02-26 Michael Chastain <mec@shout.net>
8504
8505 Close PR build/660.
8506 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8507 for old libc5/glibc.
8508 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8509
8510 2003-02-26 Kris Warkentin <kewarken@qnx.com>
8511
8512 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8513 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8514
8515 2003-02-26 Michael Chastain <mec@shout.net>
8516
8517 * configure.in: New variable HAVE_UINTPTR_T.
8518 * configure, config.in: Regenerated.
8519
8520 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
8521
8522 Fix PR build/1097.
8523 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8524
8525 2003-02-25 Andrew Cagney <cagney@redhat.com>
8526
8527 * frame.c (get_prev_frame): Add comment on check for
8528 inside_entry_func. Only check for inside_entry_file when not a
8529 dummy and not a sentinel. Check that the new frame is not inner
8530 to the old frame.
8531
8532 2003-02-25 Andrew Cagney <cagney@redhat.com>
8533
8534 * frame.c (frame_debug): New variable.
8535 (_initialize_frame): Add "set/show debug frame" command.
8536 (get_prev_frame): When frame_debug, print reason why unwind
8537 failed.
8538
8539 2003-02-25 Michael Chastain <mec@shout.net>
8540
8541 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8542 to avoid uintptr_t definition problems.
8543
8544 2003-02-25 David Carlton <carlton@math.stanford.edu>
8545
8546 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8547 (SYMBOL_LINKAGE_NAME): Ditto.
8548 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8549 SYMBOL_LINKAGE_NAME.
8550 (struct general_symbol_info): Expand comment.
8551 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8552 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8553 (SYMBOL_MATCHES_REGEXP): Ditto.
8554 * symtab.c (symbol_natural_name): New function.
8555 * objfiles.h: Replace all uses of SYMBOL_NAME by
8556 DEPRECATED_SYMBOL_NAME.
8557 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8558 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8559 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8560 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8561 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8562 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8563 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8564 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8565 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8566 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8567 * ada-exp.y: Ditto.
8568 * ada-exp.y: Update copyright.
8569 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8570 * cp-valprint.c: Ditto.
8571
8572 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8573
8574 * infptrace.c (detach): Do not flag error if ptrace detach fails
8575 and errno is set to ESRCH.
8576
8577 2003-02-24 Andrew Cagney <cagney@redhat.com>
8578
8579 * infptrace.c (udot_info): Change type of udot_off to long. Use
8580 paddr when printing udot_off's value.
8581
8582 2003-02-24 David Carlton <carlton@math.stanford.edu>
8583
8584 * symtab.c (make_symbol_overload_list): Only read in partial
8585 symtabs containing a matching partial symbol.
8586
8587 2003-02-24 David Carlton <carlton@math.stanford.edu>
8588
8589 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8590 do the comparison, not strcmp.
8591 * symfile.c (compare_psymbols): Ditto.
8592 * defs.h: Declare strcmp_iw_ordered.
8593 * utils.c (strcmp_iw_ordered): New function.
8594
8595 2003-02-24 Jim Blandy <jimb@redhat.com>
8596
8597 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8598 support, shared libs): Remove my name from here, to better reflect
8599 reality.
8600
8601 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8602
8603 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8604 (target_ops): Add to_have_continuable_watchpoint.
8605 * target.c (update_current_target): Add INHERIT line for
8606 to_have_continuable_watchpoint.
8607 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8608 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8609 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8610 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8611
8612 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
8613
8614 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8615 maintainership.
8616
8617 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8618
8619 * solib.c (solib_open): Call target defined search function after
8620 failing with solib-search-path.
8621 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8622 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8623
8624 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8625
8626 * MAINTAINERS: Add myself to Write After section.
8627
8628 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8629
8630 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8631
8632 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8633
8634 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8635 (m68hc11_add_reggroups): New function.
8636 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8637 (m68hc11_gdbarch_init): Install the reggroups.
8638 (_initialize_m68hc11_tdep): Initialize them.
8639
8640 2003-02-21 James E Wilson <wilson@tuliptree.org>
8641
8642 * MAINTAINERS: Update my email address.
8643
8644 2003-02-21 David Carlton <carlton@math.stanford.edu>
8645
8646 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8647
8648 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
8649
8650 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8651 * symtab.h: Add opaque declarations of struct axs_value and
8652 struct agent_expr.
8653 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8654 (struct location_funcs): New type.
8655 (struct symbol): Add "loc" to aux_value.
8656 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8657 * dwarf2read.c: Include "dwarf2expr.h".
8658 (dwarf2_symbol_mark_computed): New function.
8659 (read_func_scope): Use it.
8660 (var_decode_location): New function.
8661 (new_symbol): Use it.
8662 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8663
8664 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8665 (dwarf2expr_h, dwarf2loc_h): New variables.
8666 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8667 (dwarf2expr.o, dwarf2loc.o): New rules.
8668 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8669 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8670 LOC_COMPUTED_ARG.
8671 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8672 * m2-exp.y (yylex): Likewise.
8673 * printcmd.c (address_info, print_frame_args): Likewise.
8674 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8675 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8676 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8677 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8678 * symtab.c (lookup_block_symbol): Likewise.
8679
8680 2003-02-20 Adam Fedor <fedor@gnu.org>
8681
8682 * symtab.h: Remove objc_specific struct
8683 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8684 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8685 Have language_objc use cplus_specific struct.
8686
8687 2003-02-20 Tom Tromey <tromey@redhat.com>
8688
8689 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8690 TYPE_NAME, when printing a String value. PR java/1075.
8691
8692 2003-02-20 Adam Fedor <fedor@gnu.org>
8693
8694 * objc-lang.h (find_methods): Remove declaration.
8695 * objc-lang.c (find_methods): Make static.
8696
8697 2003-02-20 Christopher Faylor <cgf@redhat.com>
8698
8699 * win32-nat.c (get_image_name): Check return value from
8700 ReadProcessMemory.
8701 (child_xfer_memory): Ditto.
8702
8703 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
8704
8705 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8706 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8707 '${exec_prefix}' (in addition to the expansion thereof) as
8708 relocatable.
8709 * configure: Rebuilt.
8710
8711 2003-02-20 David Carlton <carlton@math.stanford.edu>
8712
8713 * symtab.c (search_symbols): Revert the search_symbols part of my
8714 2002-12-23 patch. Add comment.
8715
8716 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8717
8718 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8719 * dbxread.c (elfstab_build_psymtabs): Don't call
8720 install_minimal_symbols.
8721 (stabsect_build_psymtabs): Likewise.
8722 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8723 earlier.
8724 * somread.c (som_symfile_read): Call install_minimal_symbols
8725 and do_cleanups earlier.
8726 * nlmread.c (nlm_symfile_read): Likewise.
8727 * mdebugread.c (elfmdebug_build_psymtabs): Call
8728 install_minimal_symbols and make appropriate cleanups.
8729
8730 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8731
8732 * solib.c (reload_shared_libraries): New function.
8733 (_initialize_solib): Add callbacks for ``set solib-search-path''
8734 and ``set solib-absolute-prefix''.
8735
8736 2003-02-20 David Carlton <carlton@math.stanford.edu>
8737
8738 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8739 expand comment.
8740 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8741 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8742 * ada-typeprint.c (ada_typedef_print): Ditto.
8743 * ax-gdb.c (gen_var_ref): Ditto.
8744 * breakpoint.c (print_one_breakpoint): Ditto.
8745 * buildsym.c (finish_block): Ditto.
8746 * c-valprint.c (c_val_print): Ditto.
8747 * expprint.c (print_subexp): Ditto.
8748 * findvar.c (locate_var_value): Ditto.
8749 * infcmd.c (jump_command): Ditto.
8750 * linespec.c (decode_line_2, decode_compound): Ditto.
8751 * maint.c (maintenance_translate_address): Ditto.
8752 * objc-lang.c (compare_selectors, compare_classes): Ditto.
8753 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8754 Ditto.
8755 * p-valprint.c (pascal_val_print): Ditto.
8756 * stabsread.c (define_symbol): Ditto.
8757 * stack.c (print_frame, frame_info, print_block_frame_locals)
8758 (print_frame_arg_vars, return_command): Ditto.
8759 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8760 * symmisc.c (print_symbol): Ditto.
8761 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8762 (compare_search_syms, print_symbol_info, print_msymbol_info)
8763 (rbreak_command): Ditto.
8764 * tracepoint.c (tracepoints_info): Ditto.
8765 * typeprint.c (typedef_print): Ditto.
8766 * valops.c (value_of_variable, hand_function_call): Ditto.
8767 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8768 * ada-typeprint.c: Update Copyright.
8769 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8770 * tracepoint.c, cli/cli-cmds.c: Ditto.
8771
8772 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8773
8774 * frame.c (generic_unwind_get_saved_register): Make non-static.
8775 * frame.h (generic_unwind_get_saved_register): Declare.
8776 * mips-tdep.c (read_next_frame_reg): Fetch register from
8777 current regcache when frame is NULL.
8778 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8779 that must be NULL.
8780 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8781 instead of frame_register_unwind().
8782
8783 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8784
8785 * remote-sim.c (gdbsim_insert_breakpoint)
8786 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8787 code.
8788
8789 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8790
8791 * remote.c (_initialize_remote): Add commands "set/show remote
8792 hardware-watchpoint-limit" and "set/show remote
8793 hardware-breakpoint-limit".
8794 (remote_hw_watchpoint_limit): Initialize to -1.
8795 (remote_hw_breakpoint_limit): Ditto.
8796 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8797
8798 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8799
8800 * coff-pe-read.c: New file - support reading of minimal symbols from a
8801 portable executable using the export table.
8802 * coff-pe-read.h: New file.
8803 * coffread.c: Include coff-pe-read.h.
8804 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8805 debugging symbols found.
8806 * Makefile.in (SFILES): Add coff-pe-read.o.
8807 (coff_pe_read_h): Define.
8808 (COMMON_OBS): Add coff-pe-read.o.
8809 (coffread.o): Add coff_pe_read_h dependency.
8810 (coff-pe-read.o): New target.
8811
8812 2003-02-19 David Carlton <carlton@math.stanford.edu>
8813
8814 * Makefile.in (SFILES): Add block.c.
8815 (block_h): New.
8816 (COMMON_OBS): Add block.o.
8817 (block.o): New.
8818 (x86-64-tdep.o): Add $(block_h).
8819 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8820 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8821 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8822 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8823 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8824 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8825 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8826 * value.h: Add opaque declaration for struct block.
8827 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8828 * ada-lang.h: Ditto.
8829 * x86-64-tdep.c: #include "block.h"
8830 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8831 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8832 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8833 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8834 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8835 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8836 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8837 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8838 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8839 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8840 * symtab.c (block_function): Ditto.
8841 (contained_in): Ditto.
8842 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8843 block.h. Add opaque declaration for struct block.
8844 * symtab.h: Move block_function and contained_in declarations to
8845 block.h. Add opaque declarations for struct block, struct
8846 blockvector.
8847 (struct block): Move to block.h.
8848 (struct blockvector): Ditto.
8849 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8850 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8851 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8852 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8853 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8854 Ditto.
8855 * block.c: New file.
8856 * block.h: New file.
8857
8858 2003-02-19 Theodore A. Roth <troth@openavr.org>
8859
8860 * avr-tdep.c (avr_extract_return_value): Remove function.
8861 (avr_store_return_value): Remove function.
8862 (avr_extract_struct_value_address): Remove function.
8863 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8864
8865 2003-02-19 Andrew Cagney <ac131313@redhat.com>
8866
8867 * rs6000-tdep.c: Include "gdb_assert.h".
8868 (registers_e500): Add "acc" and "spefscr".
8869 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8870 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8871 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
8872 really is "r0".
8873 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8874
8875 2003-02-18 Keith Seitz <keiths@redhat.com>
8876
8877 * Makefile.in: Add gdbtk-interps.c.
8878
8879 2003-02-18 Kevin Buettner <kevinb@redhat.com>
8880
8881 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8882 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8883
8884 2003-02-18 Andrew Cagney <cagney@redhat.com>
8885
8886 * symtab.h (struct objfile): Add opaque declaration.
8887
8888 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
8889
8890 From Jim Ingham <jingham@apple.com>:
8891 * dbxread.c (process_one_symbol): Use last_function_start rather
8892 than function_start_offset to find the real beginning of the
8893 current function. The latter is just the text section offset on
8894 some systems, the former is always the real function start.
8895
8896 2003-02-17 Andrew Cagney <cagney@redhat.com>
8897
8898 * configure.in: Revert ${target} != ${host}.
8899
8900 2003-02-17 Andrew Cagney <ac131313@redhat.com>
8901
8902 * configure.in (Makefile): Use the test ${target} != ${host},
8903 instead of the absence of the "nm.h" file, to determine of the
8904 configuration non-native.
8905 * configure: Regenerate.
8906
8907 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
8908
8909 From Brian Ford <ford@vss.fsi.com>
8910
8911 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
8912 conditionalize tui_active test.
8913 (lookup_cmd_1): Ditto.
8914
8915 2003-02-14 Mark Kettenis <kettenis@gnu.org>
8916
8917 * configure.in: Add check for _etext.
8918 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
8919 available.
8920 * config.in, configure: regenerated.
8921
8922 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
8923
8924 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
8925
8926 2003-02-14 Andrew Cagney <ac131313@redhat.com>
8927
8928 * main.c (tui_version): Delete variable.
8929 (captured_main): When --tui, set interpreter_p to "tui" instead of
8930 enabling tui_version.
8931 * printcmd.c (display_command) [TUI]: Test tui_active instead of
8932 tui_version.
8933 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
8934 * cli/cli-cmds.c (disassemble_command): Ditto.
8935 * defs.h (tui_version): Delete declaration.
8936 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
8937 (tui-interp.o): Add rules.
8938 (SUBDIR_TUI_OBS): Add "tui-interp.o".
8939
8940 2003-02-14 Christopher Faylor <cgf@redhat.com>
8941
8942 * win32-nat.c (register_loaded_dll): Correctly set address range for
8943 just-loaded dll.
8944
8945 2003-02-12 Jason Molenda (jmolenda@apple.com)
8946
8947 * symmisc.c (print_objfile_statistics): Include information about
8948 the number of psymtabs and symtabs in each object file.
8949
8950 2003-02-13 Keith R Seitz <keiths@redhat.com>
8951
8952 * main.h (struct captured_main_args): Add interpreter_p.
8953 * main.c (captured_main): Initialize interpreter_p from context.
8954 * gdb.c (main): Set interpreter_p argument.
8955 * Makefile.in (gdb.o): Add dependency for interps.h.
8956
8957 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8958
8959 * event-top.c (cli_command_loop): Delete declaration.
8960 (_initialize_event_loop): Delete function setting event_loop_hook.
8961 * event-top.h (cli_command_loop): Declare. Update copyright.
8962 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
8963 * interps.c (current_interp_command_loop): When event_loop_p, call
8964 cli_command_loop.
8965
8966 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8967
8968 * interps.h (interp_command_loop_ftype): Change return type to
8969 void.
8970
8971 2003-02-12 Michal Ludvig <mludvig@suse.cz>
8972
8973 * x86-64-tdep.c (x86_64_extract_return_value)
8974 (x86_64_store_return_value): Use regcache instead of regbuf.
8975 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
8976 * x86-64-linux-nat.c (fill_gregset): Use regcache.
8977
8978 2003-02-11 Andrew Cagney <ac131313@redhat.com>
8979
8980 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
8981 * aclocal.m4: Regenerate.
8982 * configure: Regenerate.
8983
8984 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
8985 TCL_LD_SEARCH_FLAGS.
8986
8987 2003-02-10 Michal Ludvig <mludvig@suse.cz>
8988
8989 * dwarf2cfi.c: Reindented.
8990
8991 2003-02-09 Andrew Cagney <ac131313@redhat.com>
8992
8993 * interps.c (clear_interpreter_hooks): Convert function definition
8994 to ISO C.
8995
8996 2003-02-07 David Carlton <carlton@math.stanford.edu>
8997
8998 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8999
9000 2003-02-07 Kevin Buettner <kevinb@redhat.com>
9001
9002 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9003 (struct type): ...to here.
9004 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9005 field.
9006 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9007 (replace_type): Set length on all type variants for a given type.
9008
9009 2003-02-07 Andrew Cagney <ac131313@redhat.com>
9010
9011 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9012 <sys/stat.h>.
9013 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9014
9015 2003-02-06 Andrew Cagney <ac131313@redhat.com>
9016
9017 * Makefile.in (symm-nat.o): Update dependencies.
9018 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9019 (lynx-nat.o, ia64-linux-nat.): Ditto.
9020 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9021 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9022 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9023
9024 * Makefile.in (inflow_h): Define.
9025 (procfs.o, inflow.o, procfs.o): Update dependencies.
9026 * inftarg.c (child_stop): Delete extern declaration of
9027 inferior_process_group. Include "inflow.h".
9028 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9029 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9030 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9031 (our_process_group, inferior_process_group): Extern declarations.
9032
9033 * procfs.c: Include "gdb_assert.h".
9034
9035 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9036 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9037 * jv-typeprint.c (java_type_print_base): Ditto.
9038 * typeprint.c (typedef_print): Eliminate STREQ.
9039 * cli/cli-script.c (define_command, define_command): Ditto.
9040 * main.c (captured_main): Ditto.
9041 * values.c (lookup_internalvar): Ditto.
9042 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9043 within `if' conditional.
9044 * linespec.c (decode_line_2): Ditto.
9045 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9046 (bfd_openw_with_cleanup): Ditto.
9047
9048 2003-02-07 Mark Kettenis <kettenis@gnu.org>
9049
9050 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9051 legacy_extract_return_value and store_return_value to
9052 legacy_return_value.
9053
9054 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9055
9056 * win32-nat.c (get_relocated_section_addrs): New function. Find
9057 section load addresses for symbol handling in relocated DLLs.
9058 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9059
9060 2003-02-05 Fred Fish <fnf@intrinsity.com>
9061
9062 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9063 '=' and '!='.
9064 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9065 with '&' and '=='.
9066 (angel_RDI_info): Ditto.
9067 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9068 with '&' and '!='.
9069 (threads_continue_all_with_signals): Ditto.
9070
9071 2003-02-05 Jim Ingham <jingham@apple.com>
9072 Keith Seitz <keiths@redhat.com>
9073 Elena Zannoni <ezannoni@redhat.com>
9074 Andrew Cagney <ac131313@redhat.com>
9075
9076 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9077 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9078 (SUBDIR_MI_OBS): Add "mi-interp.o".
9079 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9080 (SFILES): Add "interps.c".
9081 (COMMON_OBS): Add "interps.o".
9082 (interps_h, mi_main_h): Define.
9083 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9084 (mi-main.o, main.o, event-top.o): Update dependencies.
9085 * cli/cli-interp.c: New file.
9086 * interps.h, interps.c: New files.
9087 * top.c: (gdb_init): Don't install the default interpreter, handed
9088 by captured_main.
9089 * main.c: Include "interps.h".
9090 (interpreter_p): Note that it should malloc'ed.
9091 (captured_command_loop): Call current_interp_command_loop.
9092 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9093 xfree and xstrdup when updating interpreter_p. Install the
9094 default interpreter. Add hack to stop mi1's copyright notice
9095 being encoded.
9096 * event-top.h (gdb_setup_readline): Declare.
9097 (gdb_disable_readline): Declare.
9098 * event-top.c: Include "interps.h".
9099 (display_gdb_prompt): Call current_interp_display_prompt_p.
9100 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9101 gdb_stdlog, and gdb_stdtarg.
9102 (_initialize_event_loop): Don't call gdb_setup_readline.
9103 * cli-out.c (cli_out_set_stream): New function.
9104 * cli-out.h (cli_out_set_stream): Declare.
9105
9106 2003-02-06 Mark Kettenis <kettenis@gnu.org>
9107
9108 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9109 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9110 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9111 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9112 config/i386/i386v42mp.mt: Removed.
9113
9114 2003-02-05 Mark Kettenis <kettenis@gnu.org>
9115
9116 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9117 GDB_OSABI_SOLARIS.
9118
9119 2003-02-05 Michael Chastain <mec@shout.net>
9120
9121 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9122 2.12.1 and earlier versions.
9123
9124 2003-02-05 Andrew Cagney <ac131313@redhat.com>
9125
9126 Remove orphaned hosts, targets and files.
9127 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9128 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9129 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9130 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9131 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9132 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9133 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9134 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9135 * config/sparc/tm-sp64sim.h: Delete.
9136 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9137 hosts.
9138 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9139 mips*-dec-mach3* targets.
9140
9141 2003-02-04 Michael Chastain <mec@shout.net>
9142
9143 * NEWS: Fix typo: sepcifying -> specifying.
9144
9145 2003-02-04 Michael Chastain <mec@shout.net>
9146
9147 * dwarfread.c: Add documentation on the state of dwarf-1,
9148 looking towards obsoletion.
9149
9150 2003-02-03 Michael Chastain <mec@shout.net>
9151
9152 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9153 gdb/testsuite/gdb.c++/pr-1023.exp.
9154
9155 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9156
9157 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9158 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9159
9160 * utils.c (init_page_info): Delete reference to MPW in comments.
9161 * main.c (captured_main): Delete #ifdef MPW.
9162
9163 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9164
9165 * NEWS: Note that the m32r-*-elf* is obsolete.
9166 * monitor.c (monitor_expect): Obsolete reference to m32r.
9167 * configure.tgt: Mark m32r-*-elf* as obsolete.
9168 * MAINTAINERS: Mark m32k as obsolete.
9169 * m32r-rom.c: Obsolete file.
9170 * config/m32r/m32r.mt: Obsolete file.
9171 * config/m32r/tm-m32r.h: Obsolete file.
9172 * m32r-stub.c: Obsolete file.
9173 * m32r-tdep.c: Obsolete file.
9174
9175 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9176
9177 * NEWS: Mention that the z8k-zilog-none is obsolete.
9178 * MAINTAINERS: Mark z8k as obsolete.
9179 * configure.tgt: Obsolete the z8k-*-coff* target.
9180 * config/z8k/z8k.mt: Obsolete file.
9181 * config/z8k/tm-z8k.h: Obsolete file.
9182 * z8k-tdep.c: Obsolete file.
9183
9184 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9185
9186 * NEWS: Mention that the mn10200-elf is obsolete.
9187 * configure.tgt: Obsolete mn10200-*-* target.
9188 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9189 mention that the mn10200 is obsolete.
9190 * breakpoint.h: Ditto.
9191 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9192 * config/mn10200/mn10200.mt: Obsolete file.
9193 * config/mn10200/tm-mn10200.h: Obsolete file.
9194 * mn10200-tdep.c: Obsolete file.
9195
9196 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9197
9198 * MAINTAINERS: Mark h8500 as obsolete.
9199 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9200 * findvar.c (value_from_register): Ditto.
9201 * h8500-tdep.c: Mark file as obsolete.
9202 * config/h8500/h8500.mt: Ditto.
9203 * config/h8500/tm-h8500.h: Ditto.
9204 * NEWS: Mention that h8500 is obsolete.
9205
9206 2003-02-04 David Carlton <carlton@math.stanford.edu>
9207
9208 * objfiles.c (allocate_objfile): Always set name. Add comment at
9209 start of function.
9210 * jv-lang.c (get_dynamics_objfile): Add comment.
9211
9212 2003-02-04 David Carlton <carlton@math.stanford.edu>
9213
9214 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9215 * printcmd.c (build_address_symbolic): Replace uses of
9216 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9217 SYMBOL_NAME, and asm_demangle.
9218 Update copyright.
9219
9220 2003-02-04 David Carlton <carlton@math.stanford.edu>
9221
9222 * linespec.c (decode_compound): Extract code into
9223 lookup_prefix_sym.
9224 (lookup_prefix_sym): New function.
9225
9226 2003-02-04 David Carlton <carlton@math.stanford.edu>
9227
9228 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9229 FLOAT_COERCION_BADNESS.
9230 * gdbtypes.c (rank_one_type): Replace all uses of
9231 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9232
9233 2003-02-04 Jim Blandy <jimb@redhat.com>
9234
9235 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9236 section, let dwarf_macinfo_section point to it, not
9237 dwarf_loc_section.
9238
9239 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9240
9241 Pointed out by Anton Blanchard <anton@samba.org>.
9242 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9243 (ppc_linux_at_sigtramp_return_path): Use it.
9244
9245 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9246
9247 * defs.h (streq): Add prototype.
9248 * utils.c (streq): New function.
9249
9250 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9251 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9252 * mdebugread.c (new_symbol): Likewise.
9253 * stabsread.c (define_symbol): Likewise.
9254 * coffread.c (process_coff_symbol): Likewise.
9255 * dwarfread.c (new_symbol): Likewise.
9256
9257 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9258 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9259 here.
9260 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9261 SYMBOL_INIT_DEMANGLED_NAME.
9262 * objfiles.c: Include "hashtab.h".
9263 (allocate_objfile): Call htab_set_functions_ex for the
9264 demangled_names_hash.
9265 (free_objfile): Call htab_delete for the demangled_names_hash.
9266 * objfiles.h (struct htab): Add declaration.
9267 (struct objfile): Add demangled_names_hash.
9268 * symfile.c: Include "hashtab.h".
9269 (reread_symbols): Call htab_delete for the demangled_names_hash.
9270 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9271 SYMBOL_NAME in the bcache.
9272 * symtab.c: Include "hashtab.h". Update comments.
9273 (create_demangled_names_hash, symbol_set_names): New functions.
9274 (symbol_find_demangled_name): New function, broken out from
9275 symbol_init_demangled_names.
9276 (symbol_init_demangled_names): Use it.
9277 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9278 (SYMBOL_SET_NAMES): New macro.
9279 (symbol_set_names): Add prototype.
9280
9281 2003-02-03 Jim Blandy <jimb@redhat.com>
9282
9283 Use a single, consistent representation for an empty minimal
9284 symbol table in an objfile.
9285 * objfiles.c (terminate_minimal_symbol_table): New function.
9286 (allocate_objfile): Call it.
9287 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9288 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9289 non-NULL.
9290 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9291 objfile has minimal symbols, compare minimal_symbol_count to zero,
9292 instead of comparing msymbols with NULL.
9293 * objfiles.c (have_minimal_symbols): Same.
9294 * solib-sunos.c (solib_add_common_symbols): Call
9295 terminate_minimal_symbol_table.
9296 * symfile.c (reread_symbols): Same.
9297
9298 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9299
9300 * s390-tdep.c (s390_address_class_type_flags)
9301 (s390_address_class_type_flags_to_name)
9302 (s390_address_class_name_to_type_flags): New functions.
9303 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9304 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9305
9306 2003-02-03 Michael Snyder <msnyder@redhat.com>
9307
9308 * arm-tdep.c: Fix spell-o in comment.
9309
9310 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9311
9312 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9313 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9314 error messages to contain BFD filename.
9315
9316 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9317
9318 Fix PR gdb/742 gdb/743 gdb/877
9319 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9320 (do_mixed_source_and_assembly): Use
9321 make_cleanup_ui_out_tuple_begin_end and
9322 make_cleanup_ui_out_tuple_begin_end.
9323 (do_mixed_source_and_assembly): Ditto.
9324 * thread.c (do_captured_list_thread_ids): Ditto.
9325 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9326 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9327 ui_out_tuple_end): Delete prototypes.
9328 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9329 ui_out_list_end, ui_out_tuple_end): Delete.
9330
9331 From Kevin Buettner <kevinb@redhat.com>:
9332 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9333 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9334 (do_cleanup_table_end): New functions.
9335 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9336 Use cleanups to invoke_ui_out_tuple_end().
9337 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9338 * cli/cli-setshow.c (cmd_show_list): Use
9339 make_cleanup_ui_out_tuple_begin_end.
9340
9341 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9342
9343 * frame.c (frame_unwind_register): New function.
9344 (frame_unwind_unsigned_register): Use.
9345 (frame_unwind_signed_register): Use.
9346 (frame_read_register): New function.
9347 * frame.h (frame_unwind_register): Declare.
9348 (frame_read_register): Declare.
9349
9350 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9351 and frame_unwind_register instead of read_memory, write_register
9352 and deprecated_write_register_bytes.
9353
9354 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9355
9356 * frame.h: Note that namelen can be negative.
9357 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9358 NAME's length.
9359
9360 * NEWS: Mention that the d10v's `regs' command is deprecated.
9361 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9362 (d10v_print_registers_info): New function.
9363 (show_regs): Call d10v_print_registers_info.
9364 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9365
9366 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9367
9368 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9369 lost in the previous patch.
9370
9371 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9372
9373 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9374 * stack.c (print_frame_info_base): Output complete FRAME tuple
9375 for synthesized frames.
9376
9377 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9378
9379 * mips-nat.c (zerobuf): Delete.
9380 (fetch_inferior_registers): Alloc local zerobuf.
9381 (fetch_core_registers): Alloc local zerobuf.
9382 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9383 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9384 * thread-db.c (thread_db_store_registers): Ditto.
9385 * sh-tdep.c (sh_do_register): Ditto.
9386 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9387 * remote-sim.c (gdbsim_store_register): Ditto.
9388 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9389 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9390 * monitor.c (monitor_supply_register): Ditto.
9391 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9392 * mips-nat.c (fetch_inferior_registers): Ditto.
9393 * m68klinux-nat.c (fetch_register): Ditto.
9394 * lynx-nat.c (fetch_inferior_registers): Ditto.
9395 (fetch_inferior_registers): Ditto.
9396 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9397 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9398 (hpux_thread_store_registers): Ditto.
9399 * hppah-nat.c (fetch_register): Ditto.
9400 * hppab-nat.c (fetch_register): Ditto.
9401 * hppa-tdep.c (pa_register_look_aside): Ditto.
9402 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9403 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9404
9405 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9406
9407 * gdbarch.sh: Explictly specify all method levels. When a
9408 variable with an empty level, provide a non-multi-arch default.
9409 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9410 * gdbarch.h: Re-generate.
9411 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9412 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9413
9414 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9415
9416 * defs.h (host_pointer_to_address): Delete declaration.
9417 (address_to_host_pointer): Delete declaration.
9418 * utils.c (host_pointer_to_address): Delete function.
9419 (address_to_host_pointer): Delete function.
9420 * procfs.c (procfs_address_to_host_pointer): New function.
9421 * procfs.c (proc_set_watchpoint): Use.
9422 (procfs_can_use_hw_breakpoint): Update comments.
9423 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9424 (som_solib_add): Use.
9425 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9426 * hppa-tdep.c (unwind_command): Use.
9427
9428 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9429
9430 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9431 strlen d_name.
9432
9433 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9434 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9435 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9436 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9437 (define_symbol): Update.
9438 * symfile.c (generic_load): Remove references to nindy.
9439 * symtab.c: Remove references to nindy.
9440
9441 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9442
9443 * infcmd.c (print_float_info): Delete code conditional on
9444 FLOAT_INFO.
9445 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9446 * config/m68k/nm-apollo68b.h: Ditto.
9447 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9448 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9449 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9450
9451 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9452
9453 * config/i386/tm-i386os9k.h: Removed.
9454
9455 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9456 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9457 they're identical to i[3456]86-*-sysv* now.
9458 * config/i386/i386v32.mh: Removed.
9459 * config/i386/xm-i386v32.h: Removed.
9460 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9461
9462 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9463
9464 * config/i386/i386dgux.mh: Removed.
9465 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9466
9467 * configure.in: Fix typo.
9468 * configure: Regenerated.
9469
9470 2003-01-31 David Carlton <carlton@math.stanford.edu>
9471
9472 * dwarf2read.c (dwarf2_locate_sections): Set
9473 dwarf_ranges_section.
9474
9475 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9476
9477 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9478 * utils.c: Update comments documenting legitimate uses of PTR.
9479
9480 * utils.c: Re-indent.
9481
9482 * config/djgpp/fnchange.lst: Delete nindy files.
9483 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9484 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9485 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9486 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9487 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9488 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9489 * Makefile.in (init.c): Remove nindy references.
9490 (saber_gdb): Delete rule.
9491 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9492 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9493 and a68v-nat.c.
9494 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9495 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9496 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9497 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9498 nindy-share/stop.h.
9499 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9500 * saber.suppress: Delete file.
9501
9502 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
9503
9504 * dbxread.c (stabs_data): New static variable.
9505 (fill_symbuf): Support an in-memory buffer for stabs data.
9506 (stabs_seek): New function.
9507 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9508 (read_ofile_symtab): Use stabs_seek.
9509 (elfstab_build_psymtabs): Take an asection* instead of
9510 an offset and size. Relocate the stabs data if necessary.
9511 Save the section* for dbx_psymtab_to_symtab.
9512 * dwarf2read.c: Add section variables for each debug section.
9513 (dwarf2_locate_sections): Fill them in.
9514 (dwarf2_read_section): Take an asection* argument.
9515 Relocate the section contents if necessary.
9516 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9517 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9518 it to dwarf2_read_section.
9519 (dwarf2_build_frame_info): Update callers.
9520 * elfread.c (elf_symfile_read): Update call to
9521 elfstab_build_psymtabs.
9522 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9523 (DBX_STAB_SECTION): New macro.
9524 * stabsread.h (elfstab_build_psymtabs): Update prototype.
9525 * symfile.c (symfile_dummy_outputs): New function.
9526 (symfile_relocate_debug_section): New function.
9527 * symfile.h (symfile_relocate_debug_section): Add prototype.
9528
9529 2003-01-31 Richard Henderson <rth@redhat.com>
9530
9531 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9532 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9533 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9534 * alpha-tdep.c (alpha_register_name): Add "unique".
9535 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9536 (ALPHA_UNIQUE_REGNUM): New.
9537 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9538
9539 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9540
9541 * README: Remove reference to Ericsson 1800 monitor.
9542 * Makefile.in (remote-es.o): Delete rule.
9543 (ALLDEPFILES): Delete remote-es.c.
9544 * remote-es.c: Delete file.
9545 * config/m68k/es1800.mt: Delete file.
9546 * config/djgpp/fnchange.lst: Update.
9547 * configure.tgt: Delete m68*-ericsson-* target.
9548
9549 2003-01-31 Adam Fedor <fedor@gnu.org>
9550
9551 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9552 Remove duplicate/shadowing variable of same name.
9553
9554 2003-01-30 Jim Blandy <jimb@redhat.com>
9555
9556 * symfile.c (find_separate_debug_file): Assert that the objfile's
9557 directory name we compute ends with a slash, and then assume that
9558 that's so everywhere we use it.
9559
9560 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
9561
9562 * valops.c (value_assign): Flush frame cache after stores to memory
9563 also.
9564
9565 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9566
9567 * Makefile.in (mon960-rom.o): Delete rule.
9568 * mon960-rom.c: Delete file.
9569
9570 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9571
9572 * d10v-tdep.c: Include "frame-unwind.h".
9573 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9574 list.
9575 (next_addr, uses_frame): Delete.
9576 (struct d10v_unwind_cache): Define.
9577 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9578 Use info instead of next_addr and uses_frame globals.
9579 (d10v_frame_init_saved_regs): Delete function.
9580 (d10v_init_extra_frame_info): Delete function.
9581 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9582 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9583 init_frame_pc or frame_saved_pc.
9584 (d10v_pop_frame): Delete function.
9585 (do_d10v_pop_frame): Delete function.
9586 (d10v_frame_chain): Delete function.
9587 (d10v_frame_chain_valid): Delete function.
9588 (d10v_frame_pc_unwind): New function.
9589 (d10v_frame_id_unwind): New function.
9590 (saved_regs_unwinder): New function.
9591 (d10v_frame_register_unwind): New function.
9592 (d10v_frame_pop): New function.
9593 (d10v_frame_unwind): New variable.
9594 (d10v_frame_p): New function.
9595 (d10v_frame_saved_pc): Delete function.
9596 * Makefile.in (d10v-tdep.o): Update dependencies.
9597
9598 2003-01-30 J. Brobecker <brobecker@gnat.com>
9599
9600 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9601 causing some regressions due to a change in the default value
9602 for this macro.
9603
9604 2003-01-29 Richard Henderson <rth@redhat.com>
9605 Elena Zannoni <ezannoni@redhat.com>
9606 Daniel Jacobowitz <drow@mvista.com>
9607
9608 Fix PR gdb/961.
9609 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
9610 variables.
9611 (RANGES_SECTION): New.
9612 (dwarf_ranges_buffer): New variable.
9613 (struct comp_unit_head): Add member "die".
9614 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9615 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9616 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9617 (dwarf2_locate_sections): Likewise.
9618 (dwarf2_build_psymtabs): Read .debug_ranges.
9619 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9620 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9621 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9622 Look for DW_AT_ranges and return the bounding box.
9623
9624 2003-01-29 Brian Ford <ford@vss.fsi.com>
9625
9626 * win32-nat.c (cygwin_pid): Removed as unused.
9627 (child_attach): Try fall back to Cygwin pid.
9628
9629 2003-01-29 Jim Blandy <jimb@redhat.com>
9630
9631 * objfiles.h (struct objfile): Doc fix.
9632
9633 2003-01-29 Andrew Cagney <ac131313@redhat.com>
9634
9635 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9636 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9637 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9638 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9639 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9640 (FRAME_SAVED_PC): Change to a function with predicate.
9641 * gdbarch.h, gdbarch.c: Re-generate.
9642
9643 2003-01-28 Andrew Cagney <ac131313@redhat.com>
9644
9645 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9646
9647 * complaints.c (complain): Delete function.
9648 * complaints.h (struct deprecated_complaint): Delete definition.
9649 (complain): Delete declaration.
9650
9651 2003-01-28 Kevin Buettner <kevinb@redhat.com>
9652
9653 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9654 dummy frames.
9655
9656 2003-01-27 Andrew Cagney <ac131313@redhat.com>
9657
9658 * sentinel-frame.h, sentinel-frame.c: New files.
9659 * Makefile.in (frame.o): Update dependencies.
9660 (SFILES): Add sentinel-frame.c.
9661 (sentinel_frame_h): Define.
9662 (COMMON_OBS): Add sentinel-frame.o.
9663 (sentinel-frame.o): Specify dependencies.
9664 * frame.c: Include "sentinel-frame.h".
9665 (frame_register_unwind): Rewrite assuming that there is always a a
9666 ->next frame.
9667 (frame_register, generic_unwind_get_saved_register): Ditto.
9668 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9669 (create_sentinel_frame, unwind_to_current_frame): New functions.
9670 (get_current_frame): Rewrite using create_sentinel_frame and
9671 unwind_to_current_frame. When possible, always create a frame.
9672 (create_new_frame): Set next to the sentinel frame.
9673 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9674 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9675 ID cache when necessary.
9676 (frame_saved_regs_id_unwind): Use frame_relative_level.
9677 (deprecated_generic_get_saved_register): Use frame_relative_level,
9678 get_frame_saved_regs, get_frame_pc, get_frame_base and
9679 get_next_frame.
9680 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9681 frame_register.
9682
9683 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9684
9685 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9686
9687 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9688
9689 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9690 (maintenance_set_profile_cmd): Use error () instead of warning ().
9691
9692 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9693
9694 * configure.in: Check that -pg works if using --enable-profiling.
9695 Check for monstartup and _mcleanup regardless of --enable-profiling.
9696 * maint.c: Check for monstartup and _mcleanup before using them.
9697 * config.in: Regenerated.
9698 * configure: Regenerated.
9699
9700 2003-01-24 Nick Clifton <nickc@redhat.com>
9701
9702 * Add sh2e support:
9703
9704 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9705
9706 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9707 (sh2e_show_regs): New.
9708 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9709 * config/sh/tm-sh.h: Added sh2e to comments.
9710
9711 2003-01-23 Jim Blandy <jimb@redhat.com>
9712
9713 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9714 symbols found)" message here; we haven't checked for a separate
9715 debug info file yet, so we don't know yet.
9716 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9717 we've looked everywhere. Also, there's no need to print a special
9718 message when we're loading the separate debug info file: the one
9719 symbol_file_add prints is fine.
9720
9721 2003-01-23 Alexander Larsson <alexl@redhat.com>
9722 Jim Blandy <jimb@redhat.com>
9723
9724 Add support for executables whose debug info has been separated
9725 out into a separate file, leaving only a link behind.
9726 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9727 and separate_debug_objfile_backlink.
9728 (put_objfile_before): New declaration.
9729 * symfile.c: #include "filenames.h".
9730 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9731 debug info in a separate file, read that, too. Save the addrs
9732 argument, so we can use it again to read the separated debug info;
9733 syms_from_objfile modifies the table we pass it.
9734 (reread_symbols): After re-reading an objfile, call
9735 reread_separate_symbols to refresh its separate debug info
9736 objfile, if it has one.
9737 (reread_separate_symbols, find_separate_debug_file,
9738 get_debug_link_info, separate_debug_file_exists): New functions.
9739 (debug_file_directory): New global var.
9740 (_initialize_symfile): Initialize debug_file_directory, and
9741 provide the new `set debug-file-directory' command to let the user
9742 change it.
9743 * objfiles.c (free_objfile): If this objfile has its debug info in
9744 a separate objfile, free that one too. If this is itself a
9745 separate debug info objfile, clear our parent's backlink.
9746 (put_objfile_before): New function.
9747 * utils.c (gnu_debuglink_crc32): New function.
9748 * defs.h (gnu_debuglink_crc32): New declaration.
9749 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9750 * configure.in: Handle --with-separate-debug-dir config option.
9751 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9752 * acconfig.h (DEBUGDIR): New macro.
9753 * configure, aclocal.m4, config.in: Regenerated.
9754
9755 2003-01-22 Jim Blandy <jimb@redhat.com>
9756
9757 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9758 like the old symbol_file_add, but taking new arguments: you can
9759 now pass in either a `struct section_addr_info' list to say where
9760 each section is loaded, or a `struct section_offsets' table. Pass
9761 these new arguments through to syms_from_objfile as appropriate.
9762 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9763 with the appropriate quiescent values for the new arguments.
9764
9765 * symfile.c: #include "gdb_assert.h".
9766 (syms_from_objfile): Add the ability to pass in a section offset
9767 table directly, as an alternative to the section_addr_info table.
9768 Document arguments better.
9769 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9770 * symfile.h (syms_from_objfile): Update declaration.
9771 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9772 syms_from_objfile.
9773 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9774
9775 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
9776
9777 Original patch by Tom Tromey <tromey@cygnus.com> and
9778 Jason Molenda <jmolenda@apple.com>.
9779 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9780 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9781 * NEWS: Mention profiling.
9782 * configure.in (--enable-gdbtk): Fix typo.
9783 (--enable-profiling): New. Set PROFILE_CFLAGS.
9784 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9785 Fill in function.
9786 (profiling_state): New variable.
9787 (mcleanup_wrapper): New function.
9788 (_initialize_maint): Remove NOTYET, fix call to
9789 add_setshow_boolean_cmd for "maint set profile".
9790 * configure: Regenerated.
9791
9792 2003-01-21 Martin M. Hunt <hunt@redhat.com>
9793
9794 * Makefile.in (install-gdbtk): Install PNG images too.
9795
9796 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9797
9798 * exec.c (text_start): Delete global variable.
9799 (exec_file_attach): Make text_start local to the function.
9800 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9801 * valops.c (hand_function_call): Delete code that handles
9802 BEFORE_TEXT_END and AFTER_TEXT_END.
9803 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9804 of CALL_DUMMY_LOCATION.
9805 * gdbarch.c: Regenerate.
9806 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9807 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9808 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9809 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9810 (text_end): Delete extern declaration.
9811
9812 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9813
9814 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9815 * blockframe.c (backtrace_below_main): Move to "frame.c".
9816 (frame_chain_valid): Delete check for backtrace_below_main.
9817 (_initialize_blockframe): Delete initialization, move ``set
9818 backtrace-below-main'' command to "frame.c".
9819 (do_flush_frames_sfunc): Delete function.
9820 * frame.c: Include "command.h" and "gdbcmd.h".
9821 (frame_type_from_pc): New function.
9822 (create_new_frame): Use frame_type_from_pc.
9823 (legacy_get_prev_frame): New function.
9824 (get_prev_frame): Rewrite. When an old style frame, call
9825 legacy_get_prev_frame. Otherwize, unwind the PC first.
9826 (_initialize_frame): Add ``set backtrace-below-main'' command.
9827 * Makefile.in (frame.o): Update dependencies.
9828
9829 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9830
9831 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9832 DEPRECATED_REGISTERS_INFO.
9833
9834 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9835
9836 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9837 Maintainers'. Update `Various Maintainers'.
9838
9839 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9840
9841 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9842 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9843 Suppress actual parameters when `-'.
9844 * gdbarch.h, gdbarch.c: Regenerate.
9845
9846 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9847
9848 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9849 code handling dummy frames.
9850
9851 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9852
9853 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9854 (struct frame_unwind): Add field pop.
9855 * frame.h (frame_pop): Declare.
9856 * frame.c (frame_saved_regs_pop): New function.
9857 (trad_frame_unwinder): Add frame_saved_regs_pop.
9858 (frame_pop): New function.
9859 * dummy-frame.c (dummy_frame_pop): New function.
9860 (discard_innermost_dummy): New function.
9861 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9862 (dummy_frame_unwind): Add dummy_frame_pop.
9863 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9864 * valops.c (hand_function_call): Ditto.
9865 * stack.c (return_command): Ditto.
9866
9867 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9868
9869 * cris-tdep.c: Fix function declaration indentation.
9870 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9871 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9872 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9873 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9874 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9875 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9876
9877 2003-01-18 Michael Chastain <mec@shout.net>
9878
9879 * README (Unpacking and Installation -- quick overview):
9880 Warn against ".../gdb-5.3/gdb/configure".
9881
9882 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9883
9884 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9885 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9886 (struct frame_unwind): Declare opaque.
9887 (dummy_frame_p): Declare function.
9888 * dummy-frame.c (dummy_frame_id_unwind): Make static.
9889 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9890 * dummy-frame.c: Include "frame-unwind.h".
9891 (dummy_frame_p): New function.
9892 (dummy_frame_unwind): New variable.
9893 * frame.c: Include "frame-unwind.h".
9894 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
9895 to use the new unwind field.
9896 (set_unwind_by_pc): Delete function.
9897 (create_new_frame, get_prev_frame): Set unwind field using
9898 frame_unwind_find_by_pc.
9899 (trad_frame_unwind, trad_frame_unwinder): New variables.
9900 * frame.h (trad_frame_unwind): Declare variable.
9901 (frame_id_unwind_ftype): Delete declaration.
9902 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
9903 (struct frame_unwind): Declare opaque.
9904 (struct frame_info): Replace the fields id_unwind, pc_unwind and
9905 register_unwind with a single unwind pointer.
9906 * frame-unwind.h, frame-unwind.c: New files.
9907 * Makefile.in (SFILES): Add frame-unwind.c.
9908 (frame_unwind_h): Define.
9909 (COMMON_OBS): Add frame-unwind.o.
9910 (frame-unwind.o): Specify dependencies.
9911 (frame.o, dummy-frame.o): Update dependencies.
9912
9913 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9914
9915 * ada-valprint.c: Eliminate PTR.
9916 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
9917 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
9918 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
9919 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
9920 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
9921 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
9922 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
9923
9924 2003-01-17 Andrew Cagney <ac131313@redhat.com>
9925
9926 * main.c (captured_main): Don't use PTR.
9927 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
9928 * gdbtypes.c (lookup_primitive_typename): Ditto.
9929 (lookup_struct_elt_type): Ditto.
9930 * f-valprint.c (info_common_command): Ditto.
9931 (list_all_visible_commons): Ditto.
9932 * jv-typeprint.c (java_type_print_base): Ditto.
9933
9934 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
9935 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
9936 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
9937 i386-interix-nat.c and i386-interix-tdep.c. Rename
9938 m68klinux-nat.c and m68klinux-tdep.c. Rename
9939 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
9940 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
9941 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
9942 * main.c (captured_main): Use xfree, not free.
9943
9944 2003-01-16 Andrew Cagney <ac131313@redhat.com>
9945
9946 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
9947 ID back using a parameter.
9948 * frame.c (frame_id_unwind): Update call.
9949 (frame_saved_regs_id_unwind): Update.
9950 * dummy-frame.c (dummy_frame_id_unwind): Update function.
9951 * dummy-frame.h (struct frame_id): Add opaque declaration.
9952 (dummy_frame_id_unwind): Update declaration.
9953
9954 2003-01-15 Andrew Cagney <ac131313@redhat.com>
9955
9956 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
9957
9958 2003-01-15 Stephen P. Smith <ischis2@cox.net>
9959
9960 * MAINTAINERS (Stephen P. Smith): Updated email address.
9961
9962 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
9963
9964 Fix PR gdb/898
9965 * breakpoint.c (until_break_command): Add new argument. Use it to
9966 decide whether to stop only at the current frame or not.
9967 * breakpoint.h (until_break_command): Update prototype.
9968 * infcmd.c (until_command): Add new argument to until_break_command
9969 call.
9970 (advance_command): New function.
9971 (_initialize_infcmd): Update help string for 'until' command.
9972 Add new 'advance' command.
9973
9974 2003-01-14 David Carlton <carlton@math.stanford.edu>
9975
9976 * linespec.c (decode_line_1): Normalize comments.
9977 (set_flags): Ditto.
9978 (locate_first_half): Ditto.
9979 (decode_compound): Ditto.
9980 (symtab_from_filename): Ditto.
9981 (decode_all_digits): Ditto.
9982 (decode_dollar): Ditto.
9983 (find_methods): Ditto.
9984 (find_toplevel_char): Ditto.
9985
9986 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9987
9988 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
9989 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
9990 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
9991 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
9992 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
9993 * language.c, language.h, m32r-tdep.c: Update copyright.
9994 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
9995 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
9996 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
9997 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
9998 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9999 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10000
10001 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10002
10003 * stabsread.h (process_later, resolve_cfront_continuation):
10004 Obsolete.
10005 Update copyright years.
10006 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10007 Update copyright year.
10008 * dbxread.c(struct cont_elem): Obsolete.
10009 (process_later, process_now): Obsolete functions.
10010 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10011 Update copyright year.
10012 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10013 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10014 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10015 (parse_partial_symbols): Obsolete cfront support.
10016 * stabsread.c
10017 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10018 macros.
10019 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10020 read_cfront_baseclasses, read_cfront_member_functions,
10021 resolve_cfront_continuation,read_cfront_static_fields,
10022 copy_cfront_struct_fields): Obsolete functions.
10023 (define_symbol, read_one_struct_field): Obsolete cfront support.
10024 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10025 Update Copyright year.
10026
10027 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10028
10029 * stack.c (print_frame_info, print_stack_frame_base_stub,
10030 print_stack_frame_base, show_and_print_stack_frame_stub,
10031 show_and_print_stack_frame, print_only_stack_frame_stub,
10032 print_only_stack_frame): Delete functions.
10033 (print_stack_frame_stub): Call print_frame_info instead of
10034 print_frame_info_base.
10035 (print_frame_info_base): Rename to print_frame_info.
10036 (backtrace_command_1): Call print_frame_info, instead of
10037 print_frame_info_base.
10038 (current_frame_command): Call print_stack_frame, instead of
10039 print_only_stack_frame.
10040 (frame_command): Call print_stack_frame, instead of
10041 show_and_print_stack_frame.
10042 (up_command): Ditto.
10043 (down_command): Ditto.
10044 * frame.h (print_only_stack_frame): Delete prototype.
10045 * infrun.c (normal_stop): Call print_stack_frame, instead of
10046 show_and_print_stack_frame.
10047 * thread.c (info_threads_command): Call print_stack_frame, instead
10048 of print_only_stack_frame.
10049
10050 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10051
10052 * README (Graphical interface to GDB): Update URL. Point at
10053 gdb/links/.
10054
10055 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10056 version match.
10057
10058 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10059
10060 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10061 lines.
10062
10063 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10064
10065 * thread-db.c (attach_thread): Prototype.
10066 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10067 thread information (ti), and valid flags (th_valid, ti_valid).
10068 (attach_thread): Move target_pid_to_str call to after the thread
10069 is added to GDB's list. Initialize the cache.
10070 (thread_get_info_callback, thread_db_map_id2thr)
10071 (thread_db_get_info): New functions.
10072 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10073 (thread_db_store_registers, thread_db_thread_alive)
10074 (thread_db_get_thread_local_address): Use them.
10075 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10076 of calling error() for threads in unknown state.
10077
10078 (clear_lwpid_callback): New function.
10079 (thread_db_resume): Use it to clear the cache.
10080
10081 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10082
10083 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10084 (resume_callback): Remove dead code.
10085
10086 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10087
10088 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10089 predicate.
10090 * gdbarch.h, gdbarch.c: Regenerate.
10091 * stack.c (frame_info): Only initialize the saved registers when
10092 FRAME_INIT_SAVED_REGS_P.
10093 * frame.c (frame_saved_regs_register_unwind): Assert
10094 FRAME_INIT_SAVED_REGS_P.
10095 (deprecated_generic_get_saved_register): Ditto.
10096
10097 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10098
10099 * source.c (openp): Squelch warning about "filename".
10100
10101 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10102
10103 * source.c (openp): If the file does not exist don't necessarily
10104 search the path.
10105
10106 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10107
10108 Fix PR gdb/872.
10109 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10110 (integer_types_same_name_p): New function.
10111 (rank_one_type): Use it.
10112 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10113
10114 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10115
10116 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10117 variables.
10118 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10119 * configure.in: Add --with-sysroot.
10120 * configure: Regenerated.
10121 * main.c (gdb_sysroot): New variable.
10122 (captured_main): Initialize gdb_sysroot.
10123 * defs.h (gdb_sysroot): New extern declaration.
10124 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10125
10126 2003-01-12 Michael Chastain <mec@shout.net>
10127
10128 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10129
10130 2003-01-12 Michael Chastain <mec@shout.net>
10131
10132 * top.c (print_gdb_version): Bump copyright year to 2003.
10133
10134 2003-01-12 David Carlton <carlton@bactrian.org>
10135
10136 * linespec.c (symtab_from_filename): Rename variable 's' to
10137 'file_symtab'.
10138
10139 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10140
10141 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10142 dummy frame.
10143 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10144
10145 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10146
10147 * d10v-tdep.c: Include "gdb_assert.h".
10148 (d10v_store_return_value): Rewrite to match current interface.
10149 (d10v_extract_struct_value_address): Ditto.
10150 (d10v_extract_return_value): Ditto.
10151 (d10v_gdbarch_init): Set store_restore_value,
10152 extract_struct_value_address and extract_return_value.
10153
10154 2003-01-12 J. Brobecker <brobecker@gnat.com>
10155
10156 * hpread.c (set_namestring): New procedure replacing the
10157 SET_NAMESTRING macro.
10158 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10159 by calls to set_namestring.
10160
10161 2003-01-11 J. Brobecker <brobecker@gnat.com>
10162
10163 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10164 a compilation warning.
10165 (hpread_process_one_debug_symbol): Likewise.
10166
10167 2003-01-10 David Carlton <carlton@math.stanford.edu>
10168
10169 * linespec.c (decode_line_1): Rename variable 's' to
10170 'file_symtab'.
10171 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10172 (decode_dollar): Ditto.
10173 (decode_variable): Ditto.
10174 (symbol_found): Ditto.
10175
10176 2003-01-09 Michael Chastain <mec@shout.net>
10177
10178 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10179
10180 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10181
10182 * win32-nat.c (set_process_privilege): New function.
10183 (child_attach): Call set_process_privilege() to enable the
10184 SE_DEBUG_NAME user privilege if available in process token.
10185
10186 2003-01-10 J. Brobecker <brobecker@gnat.com>
10187
10188 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10189 compilation error in the previous revision.
10190
10191 2003-01-09 David Carlton <carlton@math.stanford.edu>
10192
10193 * linespec.c: Update copyright.
10194
10195 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10196
10197 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10198 than inferior_ptid.
10199 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10200
10201 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10202
10203 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10204 Update comments.
10205 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10206 (frame_saved_regs_zalloc): Update.
10207 (frame_saved_regs_register_unwind): Update.
10208 (create_new_frame): Update.
10209 (get_prev_frame): Update.
10210 (frame_extra_info_zalloc): Update.
10211 (deprecated_get_frame_saved_regs): Update.
10212 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10213 * cris-tdep.c: Update comment.
10214
10215 * somsolib.h: Fix function indentation.
10216 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10217 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10218 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10219 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10220 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10221
10222 * infrun.c (follow_fork): Use ISO C definition.
10223 * expprint.c (print_subexp): Use xfree instead of free.
10224 * charset.c: Include "gdb_string.h" instead of <string.h>.
10225 (register_iconv_charsets): Use ISO C definition.
10226 (host_charset, target_charset): Ditto.
10227 * Makefile.in (charset.o): Update dependencies.
10228 (mi-cmd-env.o): Update dependencies.
10229
10230 2003-01-08 Andrew Cagney <cagney@redhat.com>
10231
10232 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10233 get_frame_base.
10234
10235 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10236
10237 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10238 build directories. Save edited gdb output in Mbuild.log. If a
10239 build fails, remove any final GDB executable.
10240
10241 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10242
10243 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10244 replacing hex constants with function names and stripping leading
10245 file name directory prefixes.
10246
10247 2003-01-08 Andrew Cagney <cagney@redhat.com>
10248
10249 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10250 get_frame_base.
10251
10252 2003-01-08 David Carlton <carlton@math.stanford.edu>
10253
10254 * linespec.c (decode_line_1): Move code into decode_variable.
10255 (decode_variable): New function.
10256
10257 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10258
10259 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10260
10261 2003-01-08 Andrew Cagney <cagney@redhat.com>
10262
10263 * cris-tdep.c (cris_frame_init_saved_regs): Use
10264 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10265 saved_regs buffer.
10266 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10267 (sh64_nofp_frame_init_saved_regs): Ditto.
10268 (sh_fp_frame_init_saved_regs): Ditto.
10269 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10270 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10271 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10272 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10273
10274 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10275
10276 * minsyms.c (lookup_minimal_symbol): Update comment.
10277 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10278 (lookup_minimal_symbol_solib_trampoline): Likewise.
10279
10280 2003-01-08 Andrew Cagney <cagney@redhat.com>
10281
10282 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10283 frame_relative_level.
10284
10285 * alpha-tdep.c: Use get_frame_extra_info.
10286 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10287 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10288 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10289 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10290
10291 * alpha-tdep.c: Use get_next_frame.
10292 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10293 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10294 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10295 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10296 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10297 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10298 * xstormy16-tdep.c: Ditto.
10299
10300 2003-01-07 Andrew Cagney <cagney@redhat.com>
10301
10302 * alpha-tdep.c: Use get_frame_base.
10303 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10304 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10305 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10306 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10307 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10308 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10309 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10310 * config/sparc/tm-sparc.h: Ditto.
10311
10312 2003-01-07 Andrew Cagney <cagney@redhat.com>
10313
10314 * frame.c (deprecated_get_frame_context): New function.
10315 (deprecated_set_frame_context): New function.
10316 * frame.h (deprecated_get_frame_context): Declare.
10317 (deprecated_set_frame_context): Declare.
10318 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10319 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10320
10321 2003-01-07 Andrew Cagney <cagney@redhat.com>
10322
10323 * frame.c (deprecated_set_frame_next_hack): New function.
10324 (deprecated_set_frame_prev_hack): New function.
10325 * frame.h (deprecated_set_frame_next_hack): Declare.
10326 (deprecated_set_frame_prev_hack): Declare.
10327 * mcore-tdep.c (analyze_dummy_frame): Use
10328 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10329 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10330
10331 2003-01-07 David Carlton <carlton@math.stanford.edu>
10332
10333 * linespec.c (decode_line_1): Move code into decode_dollar.
10334 (decode_dollar): New function.
10335
10336 2003-01-07 Andrew Cagney <cagney@redhat.com>
10337
10338 * arm-tdep.c (arm_init_extra_frame_info): Use
10339 deprecated_update_frame_base_hack.
10340 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10341 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10342 (fix_frame_pointer): Ditto.
10343 (mn10300_analyze_prologue): Ditto.
10344
10345 2003-01-07 Andrew Cagney <cagney@redhat.com>
10346
10347 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10348 extra_info using frame_extra_info_zalloc.
10349 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10350 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10351 (sh64_init_extra_frame_info): Ditto.
10352 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10353 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10354 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10355 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10356 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10357 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10358 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10359 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10360 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10361 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10362 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10363 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10364
10365 * mn10300-tdep.c (analyze_dummy_frame): Use
10366 deprecated_set_frame_extra_info_hack.
10367 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10368
10369 2003-01-07 J. Brobecker <brobecker@gnat.com>
10370
10371 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10372 class is not scText. These do not define "real" procedures.
10373 (parse_partial_symbols): Likewise.
10374
10375 2003-01-06 Michael Snyder <msnyder@redhat.com>
10376
10377 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10378
10379 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10380
10381 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10382 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10383 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10384 deprecated_frame_xmalloc_with_cleanup.
10385 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10386 deprecated_frame_xmalloc.
10387 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10388 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10389
10390 2003-01-06 Andrew Cagney <cagney@redhat.com>
10391
10392 * x86-64-linux-tdep.c: Include "osabi.h".
10393 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10394
10395 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10396
10397 2003-01-06 Andrew Cagney <cagney@redhat.com>
10398
10399 * MAINTAINERS (Target Instruction Set Architectures): Update
10400 arm-elf. Can be built with -Werror, has been multiarched.
10401
10402 * value.h (unpack_long): Make buffer parameter constant.
10403 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10404 * scm-lang.h (scm_parse): Ditto.
10405 * defs.h (extract_typed_address, extract_address): Ditto.
10406 (extract_long_unsigned_integer): Ditto.
10407 * inferior.h (unsigned_pointer_to_address): Ditto.
10408 (signed_pointer_to_address): Ditto.
10409 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10410 * gdbarch.h, gdbarch.c: Regenerate.
10411 * findvar.c (extract_long_unsigned_integer): Update.
10412 (extract_address): Update.
10413 (extract_typed_address): Update.
10414 (unsigned_pointer_to_address): Update.
10415 * values.c (unpack_long): Update.
10416 (unpack_double): Update.
10417 (unpack_pointer): Update.
10418 (unpack_field_as_long): Update.
10419 * d10v-tdep.c (d10v_pointer_to_address): Update.
10420 * avr-tdep.c (avr_pointer_to_address): Update.
10421 * scm-lang.c (scm_unpack): Update.
10422 * findvar.c (signed_pointer_to_address): Update.
10423
10424 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10425
10426 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10427 since it is in i386-tdep.c.
10428
10429 2003-01-06 J. Brobecker <brobecker@gnat.com>
10430
10431 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10432 failure introduced in the previous change.
10433
10434 2003-01-05 Michael Chastain <mec@shout.net>
10435
10436 * README: Remove references to deleted remote-*.c files:
10437 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10438 remote-nrom.c, remote-os9k.c, remote-udi.c.
10439
10440 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10441
10442 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10443 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10444 i386_get_longjmp_target.
10445
10446 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10447
10448 * arm-tdep.c (prologue_cache): Change to a pointer.
10449 (_initialize_arm_tdep): Allocate prologue_cache.
10450 (check_prologue_cache): Update.
10451 (save_prologue_cache): Update.
10452 (arm_gdbarch_init): Update.
10453
10454 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10455
10456 * stabsread.c (update_method_name_from_physname): Call complaint()
10457 instead of error.
10458
10459 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10460
10461 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10462 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10463 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10464
10465 * blockframe.c: Include "gdbcmd.h" and "command.h".
10466 (backtrace_below_main): New variable.
10467 (file_frame_chain_valid, func_frame_chain_valid)
10468 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10469 (generic_func_frame_chain_valid): Remove functions.
10470 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10471 (_initialize_blockframe): New function.
10472 * Makefile.in (blockframe.o): Update dependencies.
10473 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10474 comment. Call frame_chain_valid ().
10475 * frame.h: Remove old prototypes. Add prototype for
10476 frame_chain_valid and update comments to match.
10477 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10478 Remove old comment.
10479 * gdbarch.h: Regenerated.
10480 * gdbarch.c: Regenerated.
10481
10482 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10483 set_gdbarch_frame_chain_valid.
10484 * avr-tdep.c (avr_gdbarch_init): Likewise.
10485 * cris-tdep.c (cris_gdbarch_init): Likewise.
10486 * frv-tdep.c (frv_gdbarch_init): Likewise.
10487 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10488 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10489 (i386_nw_init_abi): Likewise.
10490 (i386_gdbarch_init): Likewise.
10491 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10492 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10493 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10494 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10495 * mips-tdep.c (mips_gdbarch_init): Likewise.
10496 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10497 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10498 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10499 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10500 * s390-tdep.c (s390_gdbarch_init): Likewise.
10501 * sh-tdep.c (sh_gdbarch_init): Likewise.
10502 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10503 * v850-tdep.c (v850_gdbarch_init): Likewise.
10504 * vax-tdep.c (vax_gdbarch_init): Likewise.
10505 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10506
10507 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10508 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10509 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10510 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10511 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10512 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10513 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10514 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10515
10516 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10517
10518 * Makefile.in (acconfig_h): Remove incorrect macro.
10519 (config_h): Define.
10520 (osabi.o): Update dependencies.
10521 * configure.tgt: Set gdb_osabi based on target triplet.
10522 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10523 * configure: Regenerated.
10524 * config.in: Regenerated.
10525 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10526 (GDB_OSABI_DEFAULT): Define if not already defined.
10527 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10528 (set_osabi_string): New variables.
10529 (gdbarch_register_osabi): Add new OS ABI to
10530 gdb_osabi_available_names.
10531 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10532 (set_osabi, show_osabi): New functions.
10533 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10534
10535 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10536
10537 * arch-utils.c (gdbarch_info_init): Set osabi to
10538 GDB_OSABI_UNINITIALIZED.
10539 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10540 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10541 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10542 * gdbarch.c: Regenerated.
10543 * gdbarch.h: Regenerated.
10544 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10545 there's no BFD.
10546 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10547 * osabi.h (enum gdb_osabi): Move to defs.h.
10548 (gdbarch_init_osabi): Update prototype.
10549 * defs.h (enum gdb_osabi): Moved here.
10550 * Makefile.in: Update dependencies.
10551
10552 * alpha-tdep.h: Don't include "osabi.h".
10553 (struct gdbarch_tdep): Remove osabi member.
10554 * alpha-tdep.c: Include "osabi.h".
10555 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10556 iterate over arches. Update call to gdbarch_init_osabi.
10557 (alpha_dump_tdep): Don't dump osabi.
10558 * alpha-linux-tdep.c: Include "osabi.h".
10559 * alpha-osf1-tdep.c: Include "osabi.h".
10560 * alphafbsd-tdep.c: Include "osabi.h".
10561 * alphanbsd-tdep.c: Include "osabi.h".
10562
10563 * arm-tdep.h: Don't include "osabi.h".
10564 (struct gdbarch_tdep): Remove osabi member.
10565 * arm-tdep.c: Include "osabi.h".
10566 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10567 iterate over arches. Update call to gdbarch_init_osabi.
10568 (arm_dump_tdep): Don't dump osabi.
10569 * arm-linux-tdep.c: Include "osabi.h".
10570 * armnbsd-tdep.c: Include "osabi.h".
10571
10572 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10573 Update call to gdbarch_init_osabi.
10574
10575 * i386-tdep.h: Don't include "osabi.h".
10576 (struct gdbarch_tdep): Remove osabi member.
10577 * i386-tdep.c: Include "osabi.h".
10578 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10579 iterate over arches. Update call to gdbarch_init_osabi.
10580 (i386_dump_tdep): Don't dump osabi.
10581 * i386-linux-tdep.c: Include "osabi.h".
10582 * i386-sol2-tdep.c: Include "osabi.h".
10583 * i386bsd-tdep.c: Include "osabi.h".
10584 * i386gnu-tdep.c: Include "osabi.h".
10585 * i386ly-tdep.c: Include "osabi.h".
10586 * i386nbsd-tdep.c: Include "osabi.h".
10587 * i386obsd-tdep.c: Include "osabi.h".
10588
10589 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10590 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10591 check osabi when iterating over arches. Update call to
10592 gdbarch_init_osabi.
10593 (mips_dump_tdep): Don't dump osabi.
10594
10595 * ns32k-tdep.h: Don't include "osabi.h".
10596 (struct gdbarch_tdep): Remove.
10597 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10598 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10599 allocate tdep. Update call to gdbarch_init_osabi.
10600 (ns32k_dump_tdep): Remove.
10601 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10602 * ns32knbsd-tdep.c: Include "osabi.h".
10603
10604 * ppc-tdep.h: Don't include "osabi.h".
10605 (struct gdbarch_tdep): Remove osabi member.
10606 * rs6000-tdep.c: Include "osabi.h".
10607 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10608 osabi when iterating over arches. Update call to
10609 gdbarch_init_osabi.
10610 (rs6000_dump_tdep): Don't dump osabi.
10611 * ppc-linux-tdep.c: Include "osabi.h".
10612 * ppcnbsd-tdep.c: Include "osabi.h".
10613
10614 * sh-tdep.h: Don't include "osabi.h".
10615 (struct gdbarch_tdep): Remove osabi member.
10616 * sh-tdep.c: Include "osabi.h".
10617 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10618 iterate over arches. Update call to gdbarch_init_osabi.
10619 (sh_dump_tdep): Don't dump osabi.
10620 * shnbsd-tdep.c: Include "osabi.h".
10621
10622 * sparc-tdep.c: Include "osabi.h".
10623 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10624 iterate over arches. Update call to gdbarch_init_osabi.
10625 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10626 tdep structure.
10627
10628 * vax-tdep.h: Don't include "osabi.h".
10629 (struct gdbarch_tdep): Remove.
10630 * vax-tdep.c: Include "osabi.h".
10631 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10632 iterate over arches. Don't allocate tdep. Update call
10633 to gdbarch_init_osabi.
10634 (vax_dump_tdep): Remove.
10635 (_initialize_vax_tdep): Update call to gdbarch_register.
10636
10637 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10638
10639 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10640 entirely.
10641 (breakpoint_re_set_one): Don't fetch the value for a disabled
10642 watchpoint.
10643
10644 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10645
10646 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10647 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10648 (COERCE_FLOAT_TO_DOUBLE): Remove.
10649 * gdbarch.c: Regenerate.
10650 * gdbarch.h: Regenerate.
10651 * Makefile.in: Remove value_h from gdbarch_h.
10652 * valops.c (coerce_float_to_double): New variable.
10653 (default_coerce_float_to_double): Remove.
10654 (standard_coerce_float_to_double): Remove.
10655 (value_arg_coerce): Use coerce_float_to_double.
10656 (_initialize_valops): Add "set coerce-float-to-double".
10657 * value.h (default_coerce_float_to_double): Remove prototype.
10658 (standard_coerce_float_to_double): Remove prototype.
10659
10660 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10661 prototyped.
10662 * mdebugread.c (parse_symbol): Likewise.
10663 * stabsread.c (define_symbol): Mark all functions as prototyped.
10664
10665 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10666 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10667 set_gdbarch_coerce_float_to_double.
10668 * arm-tdep.c (arm_gdbarch_init): Likewise.
10669 * frv-tdep.c (frv_gdbarch_init): Likewise.
10670 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10671 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10672 * mips-tdep.c (mips_gdbarch_init): Likewise.
10673 (mips_coerce_float_to_double): Remove.
10674 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10675 (rs6000_coerce_float_to_double): Remove.
10676 * s390-tdep.c (s390_gdbarch_init): Likewise.
10677 * sh-tdep.c (sh_gdbarch_init): Likewise.
10678 (sh_coerce_float_to_double): Remove.
10679 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10680 (sparc_coerce_float_to_double): Remove.
10681 * v850-tdep.c (v850_gdbarch_init): Likewise.
10682 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10683 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10684 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10685 (hppa_coerce_float_to_double): Remove prototype.
10686 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10687
10688 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10689
10690 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10691
10692 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10693
10694 Suggested by Stewart Brown <sb24@avaya.com>:
10695 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10696 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10697 (c_type_print_varspec_suffix): Likewise.
10698
10699 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10700
10701 * configure.in: Don't set and AC_SUBST SUBDIRS.
10702 * configure: Regenerated.
10703
10704 * configure.in: Remove code dealing with shared libraries.
10705 * Makefile.in: Remove HLDFLAGS and HLDENV.
10706 * configure: Regenerated.
10707
10708 2003-01-04 Andrew Cagney <ac131313@redhat.com>
10709
10710 * frame.c (deprecated_frame_xmalloc): New function.
10711 (deprecated_set_frame_saved_regs_hack): New function.
10712 (deprecated_set_frame_extra_info_hack): New function.
10713 * frame.h (deprecated_frame_xmalloc): Declare.
10714 (deprecated_set_frame_saved_regs_hack): Declare.
10715 (deprecated_set_frame_extra_info_hack): Declare.
10716
10717 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10718
10719 * configure.in: Move code that provides the --enable-gdbtk option
10720 right after the code that handles the --enable-tui option, and
10721 polish it somewhat.
10722 * configure: Regenerated.
10723
10724 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10725 AC_CHECK_FUNCS and remove the old check for pread64.
10726 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10727 * acconfig.h (_GNU_SOURCE): Add.
10728 (HAVE_PREAD64): Remove.
10729 * configure, aclocal.m4, config.in: Regenerated.
10730
10731 2003-01-03 Andrew Cagney <ac131313@redhat.com>
10732
10733 * alpha-tdep.c: Use get_frame_saved_regs.
10734 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10735 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10736 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10737 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10738 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10739
10740 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10741
10742 * configure.in: Remove all use of the SUBDIRS variable; add
10743 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10744 code providing the --enable-multi-ice option, and move it right in
10745 front of the code that checks whether gdbserver is supported.
10746 Polish that too.
10747 * configure: Regenerated.
10748 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10749 @SUBDIRS@.
10750
10751 2003-01-03 Andrew Cagney <cagney@redhat.com>
10752
10753 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10754 * avr-tdep.c, cris-tdep.c: Ditto.
10755 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10756 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10757
10758 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10759
10760 * configure.in: Remove --enable-netrom option.
10761 * configure: Regenerated.
10762
10763 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10764
10765 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10766 declaration for `struct re_pattern_buffer' instead.
10767 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10768
10769 2003-01-03 J. Brobecker <brobecker@gnat.com>
10770
10771 * mdebugread.c (parse_symbol): Count until the stEnd matching
10772 the structure name.
10773
10774 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10775
10776 * configure.in: Remove --with-cpu option.
10777 subscripts. Remove evil changequotes here.
10778 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10779 * config.in, configure: Regenerated.
10780
10781 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10782 * configure.in: Cleanup section that sources GDB and BFD configure
10783 subscripts. Remove evil changequotes here.
10784 * config.in, configure: Regenerated.
10785
10786 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10787
10788 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10789 frame accessor methods.
10790 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10791 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10792 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10793 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10794 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10795 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10796 * z8k-tdep.c: Ditto.
10797
10798 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10799
10800 * configure.in: Remove UI_OUT configuration code.
10801 * ada-lang.c: Update assuming UI_OUT is always true.
10802 * Makefile.in (UIOUT_CFLAGS): Remove.
10803 * configure: Regenerated.
10804 * TODO: Remove blurb about elimination of -DUI_OUT.
10805
10806 * configure.in: Move code that provides the --enable-gdbcli,
10807 --enable-gdbmi options right before the code that handles the
10808 --enable-tui option. Polish a bit.
10809 * configure: Regenerated.
10810
10811 * configure.in: Rewrite check for GNU regex and the
10812 --without-included regex option, and move it into the "Checks for
10813 library functions" section. This makes us use the system regex
10814 again by default on systems with version 2 of the GNU C library.
10815 This was apparently broken.
10816 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10817 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10818 * config.in, configure: Regenerated.
10819
10820 * configure.in: Move code that provides the --enable-tui option
10821 before the "Checks for libraries" section. Polish the code
10822 somewhat and set need_curses to yes if we build the TUI. Rewrite
10823 code that looks for a library providing termcap functionality to
10824 match more closely what's done in the Readline library, and move
10825 it into to the "Checks for libraries" section.
10826 * configure: Regenerated.
10827 * Makefile.in (TERMCAP): Remove variable.
10828 * config/i386/go32.mh (TERMCAP): Remove variable.
10829
10830 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10831
10832 * MAINTAINERS: Mention gdb_mbuild.sh.
10833 * gdb_mbuild.sh: Rewrite.
10834
10835 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10836
10837 * configure.in: Fix typo in last change.
10838 * config.in, configure: Regenerated.
10839
10840 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10841
10842 * valarith.c (value_binop): Delete obsolete code and comments.
10843 * configure.host: Ditto.
10844 * buildsym.h (make_blockvector): Ditto.
10845 * buildsym.c (make_blockvector): Ditto.
10846 * defs.h (enum language): Ditto.
10847 (chill_demangle): Ditto.
10848 * elfread.c (elf_symtab_read): Ditto.
10849 * dwarfread.c (CHILL_PRODUCER): Ditto.
10850 (set_cu_language): Ditto.
10851 (handle_producer): Ditto.
10852 * expprint.c (print_subexp): Ditto.
10853 * gdbtypes.c (chill_varying_type): Ditto.
10854 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10855 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10856 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10857 (chill_varying_type): Ditto.
10858 * language.h (_LANG_chill): Ditto.
10859 * language.c (binop_result_type, integral_type): Ditto.
10860 (character_type, string_type, structured_type): Ditto.
10861 (lang_bool_type, binop_type_check): Ditto.
10862 * stabsread.h (os9k_stabs): Ditto.
10863 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10864 (define_symbol, read_type, read_struct_fields): Ditto.
10865 (read_array_type, read_enum_type, read_huge_number): Ditto.
10866 (read_range_type, start_stabs): Ditto.
10867 * symfile.c (init_filename_language_table): Ditto.
10868 (add_psymbol_with_dem_name_to_list): Ditto.
10869 * symtab.c (symbol_init_language_specific): Ditto.
10870 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10871 * symtab.h (struct general_symbol_info): Ditto.
10872 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10873 * typeprint.c (typedef_print): Ditto.
10874 * utils.c (fprintf_symbol_filtered): Ditto.
10875 * valops.c (value_cast, search_struct_field, value_slice): Delete
10876 obsolete code.
10877 (varying_to_slice): Delete function.
10878 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10879 (varying_to_slice): Delete declaration.
10880 * MAINTAINERS: Update.
10881
10882 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10883
10884 * configure.in: Reorganize "Checks for library functions section"
10885 a bit. Remove check for `btowc' and `isascii' functions.
10886 * configure: Regenerated.
10887
10888 * acconfig.h (_MSE_INT_H): Remove.
10889 * configure.in: Create "Checks for header files" section, and move
10890 appropriate tests there. Don't check for objlist.h, wchar.h,
10891 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
10892 misdetection fix. Also add "Checks for types", "Checks for
10893 compiler characteristics" and "Checks for library functions"
10894 sections.
10895 * config.in, configure: Regenerated.
10896
10897 * configure.in: Create "Checks for programs" section, and move
10898 appropriate tests there.
10899
10900 2003-01-01 Mark Kettenis <kettenis@gnu.org>
10901
10902 * configure.in: Create "Checks for libraries" section, and move
10903 appropriate tests there. Cleanup check for wctype in libw. Use
10904 AC_SEARCH_LIBS to see whether we need libsocket.
10905 * configure: Regenerated.
10906
10907 For older changes see ChangeLog-2002
10908 \f
10909 Local Variables:
10910 mode: change-log
10911 left-margin: 8
10912 fill-column: 74
10913 version-control: never
10914 End:
This page took 0.628918 seconds and 5 git commands to generate.