2003-08-24 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-08-24 Andrew Cagney <cagney@redhat.com>
2
3 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
4 GDB_MULTI_ARCH is always non-zero.
5 * osabi.c (_initialize_gdb_osabi): Ditto.
6 (gdbarch_init_osabi): Ditto.
7 * sparc-tdep.c: Ditto for #if code.
8
9 2003-08-23 Mark Kettenis <kettenis@gnu.org>
10
11 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
12 Update comments.
13 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
14 comments.
15 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
16 x86_64_supply_fxsave.
17 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
18 x86_64_supply_fxsave.
19 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
20 x86_64_supply_fxsave.
21
22 2003-08-23 Andreas Jaeger <aj@suse.de>
23
24 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
25 i387_supply_fxsave.
26
27 2003-08-23 Mark Kettenis <kettenis@gnu.org>
28
29 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
30 i387_supply_register.
31 (go32_fetch_registers): Adjust call to i387_supply_fsave.
32 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
33 i387_supply_fsave.
34 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
35 i387_supply_fxsave.
36 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
37 i387_supply_fsave.
38 * i386bsd-nat.c (supply_fpregset): Adjust call to
39 i387_supply_fsave.
40 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
41 call to i387_supply_fxsave. Call i387_supply_fsave instead of
42 supply_fpregset.
43 (store_inferior_registers): Remove extraneous whitespace. Call
44 i387_fill_fsave instead of fill_fpregset.
45 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
46 (supply_fpregset): Likewise.
47 * i386v4-nat.c (supply_fpregset): Adjust call to
48 i387_supply_fsave.
49 * i386-interix-nat.c (supply_fpregset): Adjust call to
50 i387_supply_fsave.
51 * i386-linux-nat.c (supply_fpregset): Adjust call to
52 i387_supply_fsave.
53 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
54 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
55 i387supply_fsave and i387_supply_fxsave.
56 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
57 Incorporate code from `i387_supply_register.
58 (i387_supply_register): Remove.
59 (i387_supply_fxsave): Add `regnum' argument.
60 Update comments.
61 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
62 prototype.
63 (i387_supply_register): remove prototype.
64 Update comments.
65
66 2003-08-22 Michael Chastain <mec@shout.net>
67
68 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
69 Add lines for files in gdb/testsuite/gdb.cp/* that are
70 still not 8.3 unique.
71
72 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
73
74 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
75 TYPE_VPTR_FIELDNO is valid.
76
77 2003-08-19 Mark Kettenis <kettenis@gnu.org>
78
79 * utils.c (set_width_command): Remove prototypes.
80 (set_screen_size): New prototype.
81 (init_page_info): Simplify by fetching the screen size from
82 Readline. Call set_screen_size.
83 (set_screen_size): New function.
84 (set_width): Add missing whitespace in comment.
85 (set_width_command): Call set_screen_size.
86 (set_height_command): New function.
87 (initialize_utils): Fix formatting. Make "set height" command
88 call set_height_command. Remove redundant code that turns off
89 pagination if output isn't a terminal. Remove redundant call to
90 set_width_command.
91
92 2003-08-22 Mark Kettenis <kettenis@gnu.org>
93
94 * sparc64-tdep.h (sparc64_regnum): Fix comment.
95 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
96 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
97 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
98 `case' keyword.
99 (sparc64_register_info): Give the reister with number
100 SPARC64_STATE_REGNUM a name.
101 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
102 %asi and %ccr.
103 (sparc64_push_dummy_call): Take BIAS into account when checking
104 stcak alignment.
105 (sparc_software_single_step): Remove assertions that check whether
106 NPC and NNPC were zero.
107 (sparc_supply_rwindow): Make public. Merge functionality with
108 sparc64_supply_rwindow.
109 (sparc_fill_rwindow): Make public. Merge functionality with
110 sparc64_fill_rwindow.
111 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
112 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
113 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
114 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
115 sparc_supply_rwindow instead of sparc64_supply_rwindow.
116
117 * reggroups.c: Add whitespace after declarations of local
118 variables in functions.
119
120 2003-08-21 Michael Chastain <mec@shout.net>
121
122 * gdbtypes.h: Change array bound type from an int to enum.
123
124 2003-08-21 Andrew Cagney <cagney@redhat.com>
125
126 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
127 * config/sparc/tm-sparc.h: Ditto.
128 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
129 unconditionally.
130 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
131
132 2003-07-13 Mark Kettenis <kettenis@gnu.org>
133
134 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
135 (register_objfile_data, set_objfile_data, objfile_data): New
136 prototypes.
137 * objfiles.c (objfile_alloc_data, objfile_free_data): New
138 prototypes.
139 (allocate_objfile): Call objfile_alloc_data.
140 (free_objfile): Call objfile_free_data.
141 (struct objfile_data): New.
142 (struct objfile_data_registration): New.
143 (struct objfile_data_registry): New.
144 (objfile_data_registry): New variable.
145 (register_objfile_data): New function.
146 (objfile_alloc_data, objfile_free_data): New functions.
147 (set_objfile_data, objfile_data): New functions.
148 * dwarf2-frame.c (dwarf2_frame_data): New variable.
149 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
150 (_initialize_dwarf2_frame): New function and prototype.
151
152 2003-08-21 Andrew Cagney <cagney@redhat.com>
153
154 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
155 a specific architecture.
156 * arch-utils.h (set_architecture_from_arch_mach): Delete
157 declaration.
158 (target_architecture_hook): Delete declaration.
159 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
160 (default_float_format): Assume GDB_MULTI_ARCH.
161 (default_double_format): Assume GDB_MULTI_ARCH.
162 (set_endian_from_file): Delete function.
163 (arch_ok): Delete function.
164 (set_arch): Delete function.
165 (set_architecture_from_arch_mach): Delete function.
166 (set_architecture_from_file): Delete function.
167 (set_architecture): Assume GDB_MULTI_ARCH.
168 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
169
170 2003-08-21 Mark Kettenis <kettenis@gnu.org>
171
172 Rewrite FreeBSD/sparc64 native configuration.
173 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
174 * sparc64fbsd-nat.c: New file.
175 * sparc64fbsd-tdep.c: New file.
176 * sparc64-tdep.c sparc64-tdep.h: New files.
177 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
178 sparc64fbsd-tdep.o): New dependencies.
179 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
180 and sparc64fbsd-tdep.c.
181 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
182 * config/sparc/fbsd.mh: Remove copyright notice.
183 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
184 sparcbsd-nat.o.
185 * config/sparc/fbsd.mt: Remove copyright notice.
186 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
187 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
188 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
189 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
190 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
191 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
192 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
193 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
194 "sparc/tm-sp64.h".
195 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
196 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
197
198 2003-08-21 Michael Chastain <mec@shout.net>
199
200 * symtab.h: Add doco on the space critical structures and
201 some measurements of space usage.
202
203 2003-08-21 Michael Snyder <msnyder@redhat.com>
204
205 * tracepoint.c (trace_dump_command): Trace break address
206 is subject to DECR_PC_AFTER_BREAK.
207 (set_traceframe_context): Make "trace_line" an int.
208 Fixes suggested by Mark Newman <mark.newman@lmco.com>
209
210 2003-08-20 Michael Snyder <msnyder@redhat.com>
211
212 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
213 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
214 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
215 argument passing.
216 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
217 functions, replace sh_push_dummy_call.
218 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
219
220 2003-08-20 Michael Chastain <mec@shout.net>
221
222 * gdbtypes.h (struct main_type): Rearrange to save space.
223
224 2003-08-20 Michael Snyder <msnyder@redhat.com>
225
226 * trad-frame.c: Comment typo fix.
227
228 2003-08-20 Michael Snyder <msnyder@redhat.com>
229 Kevin Buettner <kevinb@redhat.com>
230
231 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
232 (frv_frame_init_saved_regs): Add declaration.
233 (frame_extra_info): Add new field ``saved_regs''.
234 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
235 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
236 Update frame related code.
237 (frv_extract_struct_value_address): Adjust formatting.
238 * Makefile.in (frv-tdep.o): Update dependencies.
239 * config/frv/tm-frv.h (target_insert_watchpoint)
240 (target_remove_watchpoint, target_insert_hw_breakpoint)
241 (target_remove_hw_breakpoint): Delete these macros.
242 (remote_insert_watchpoint, remote_remove_watchpoint)
243 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
244 these declarations.
245
246 2003-08-20 Michael Chastain <mec@shout.net>
247
248 * defs.h (ENUM_BITFIELD): New macro.
249 * symtab.h (ENUM_BITFIELD): Use it.
250 (BYTE_BITFIELD): Remove old macro, which was already disabled.
251
252 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
253
254 * MAINTAINERS (write after approval): Add myself.
255
256 2003-08-18 Andrew Cagney <cagney@redhat.com>
257
258 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
259 * gdbarch.h, gdbarch.c: Re-generate.
260 * infcall.c (call_function_by_hand): Adjust the SP by
261 frame_red_zone_size before allocating any stack space.
262 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
263 * x86-64-tdep.c (x86_64_frame_align): New function.
264 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
265
266 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
267 Remove code adjusting SP so that it skips over the Red Zone.
268
269 2003-08-18 Mark Kettenis <kettenis@gnu.org>
270
271 * NEWS (New native configurations): Mention FreeBSD/amd64.
272
273 2003-08-18 Andrew Cagney <cagney@redhat.com>
274
275 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
276 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
277 "m68k_frame_p".
278 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
279
280 2003-08-18 Mark Kettenis <kettenis@gnu.org>
281
282 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
283
284 2003-08-18 Michal Ludvig <mludvig@suse.cz>
285
286 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
287 Define.
288 * i386-linux-nat.c: Include "linux-nat.h".
289 (child_post_startup_inferior): New function.
290
291 2003-08-18 Mark Kettenis <kettenis@gnu.org>
292
293 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
294 at the start of a frameless function. This probably fixes PR
295 backtrace/1338.
296
297 2003-08-17 Michael Chastain <mec@shout.net>
298
299 * symfile.c (find_sym_fns): Remove special case for apollo target.
300
301 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
302
303 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
304 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
305 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
306 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
307 (linux_supports_tracevforkdone): New function.
308 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
309 TRACEVFORKDONE.
310 (child_follow_fork): Handle vfork.
311 (linux_handle_extended_wait): Likewise. Also handle exec.
312 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
313 * NEWS: Mention fork tracing.
314
315 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
316
317 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
318
319 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
320
321 * Makefile.in (i386-linux-nat.o): Update dependencies.
322 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
323 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
324 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
325 * i386-linux-nat.c: Include "linux-nat.h".
326 (child_post_startup_inferior): New function.
327 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
328 * infptrace.c (kill_inferior): Wrap in #ifdef.
329 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
330 attaching to each LWP.
331 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
332 (init_lin_lwp_ops): Fill in some more operations.
333 * linux-nat.h (linux_enable_event_reporting)
334 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
335 prototypes.
336 * linux-nat.c (linux_enable_event_reporting): New function.
337 (child_post_attach, linux_child_post_startup_inferior)
338 (child_post_startup_inferior, child_follow_fork)
339 (linux_handle_extended_wait, kill_inferior): New functions.
340
341 2003-08-16 Andrew Cagney <cagney@redhat.com>
342
343 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
344 * gdbarch.h, gdbarch.c: Re-generate.
345
346 2003-08-16 Mark Kettenis <kettenis@gnu.org>
347
348 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
349
350 2003-08-16 Andrew Cagney <cagney@redhat.com>
351
352 * NEWS: Mention that "set prompt-escape-char" was deleted.
353 * top.c (get_prompt_1): Delete function.
354 (gdb_prompt_escape):
355 (init_main): Do not clear "gdb_prompt_escape". Delete "set
356 prompt-escape-char" command.
357 (MAX_PROMPT_SIZE): Delete macro.
358 (get_prompt): Simplify, do not call get_prompt_1.
359
360 2003-08-16 Andrew Cagney <cagney@redhat.com>
361
362 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
363 -Werror. -Wformat-nonliteral problems.
364
365 2003-08-15 J. Brobecker <brobecker@gnat.com>
366
367 Further multiarching work mostly for hppa64-*-hpux11:
368 * hppa-tdep.h: New file.
369 * hppa-tdep.c: #include hppa-tdep.c.
370 (hppa32_num_regs): Renamed from hppa_num_regs.
371 (hppa64_num_regs): New constant.
372 (hppa64_call_dummy_breakpoint_offset): New constant.
373 (hppa32_call_dummy_length): New constant.
374 (hppa64_call_dummy_length): New constant.
375 (hppa32_stack_align): Make name 32bit explicit.
376 (hppa32_register_virtual_type): Likewise.
377 (hppa32_extract_return_value): Likewise.
378 (hppa32_use_struct_convention): Likewise.
379 (hppa32_store_return_value): Likewise.
380 (hppa64_register_virtual_type): New function.
381 (hppa64_extract_return_value): New function.
382 (hppa64_use_struct_convention): New function.
383 (hppa64_store_return_value): New function.
384 (hppa_frame_locals_address): Remove declaration, function does
385 not exist anymore.
386 (hppa_register_byte): Add support for PA64 ABI.
387 (hppa_gdbarch_init): Add support for PA64 ABI.
388 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
389 Make name 32bit explicit.
390 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
391 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
392 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
393 (hppa64_hpux_frame_base_before_sigtramp): New function.
394 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
395 * config/pa/tm-hppa64.h: Remove macros that are no longer
396 necessary now that the gdbarch vector is properly setup.
397 Transform some macros into function calls. Some minor cleanup.
398 * config/pa/tm-hppah.h: Update function calls in macros
399 following the function renaming in hppa-hpux-tdep.c.
400 * Makefile.in (hppa_tdep_h): New variable.
401 (hppa-tdep.o): Add dependency over hppa_tdep_h.
402
403 2003-08-14 Michael Snyder <msnyder@redhat.com>
404
405 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
406
407 2003-08-13 J. Brobecker <brobecker@gnat.com>
408
409 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
410 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
411 routine.
412
413 2003-08-13 Michael Snyder <msnyder@redhat.com>
414
415 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
416 (frv_saved_pc_after_call): Use deprecated ftype.
417 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
418 (frv_remote_translate_xfer_address): Remove.
419 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
420
421 2003-08-13 J. Brobecker <brobecker@gnat.com>
422
423 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
424 initialization after the common gdbarch initialization, not before.
425
426 2003-08-13 J. Brobecker <brobecker@gnat.com>
427
428 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
429 (ADDR_BITS_REMOVE): Remove, redundant.
430
431 2003-08-13 J. Brobecker <brobecker@gnat.com>
432
433 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
434 gdbarch method to clear the 2 low bits of text addresses.
435
436 2003-08-12 Andrew Cagney <cagney@redhat.com>
437
438 * Makefile.in (dsrec.o): Update dependencies.
439 * dsrec.c: Include "gdb_assert.h".
440 (make_srec): Use snprintf instead of sprintf, use a literal format
441 string.
442
443 2003-08-12 Andrew Cagney <cagney@redhat.com>
444
445 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
446 FRAME_OBSTACK_ZALLOC.
447
448 2003-08-12 Kevin Buettner <kevinb@redhat.com>
449
450 * i386-tdep.c (i386_gdbarch_init): Enable default support for
451 SSE registers.
452
453 2003-08-10 Mark Kettenis <kettenis@gnu.org>
454
455 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
456 amd64fbsd_sc_reg_offset): Add extern declarations.
457 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
458 declarations.
459
460 2003-08-11 Ben Elliston <bje@wasabisystems.com>
461
462 * MAINTAINERS (write after approval): Update my mail address.
463
464 2003-08-10 Andrew Cagney <cagney@redhat.com>
465
466 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
467
468 2003-08-10 Mark Kettenis <kettenis@gnu.org>
469
470 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
471 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
472 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
473 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
474 i386bsd_sc_reg_offset): Add extern declarations.
475 * i386obsd-nat.c: Include "i386-tdep.h"
476 (_initialize_i386obsd_nat): Remove extern declarations.
477 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
478 declarations.
479 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
480 declarations.
481
482 * i386-tdep.c (i386_register_to_value): Use get_frame_register
483 instead of frame_read_register.
484 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
485 instead of frame_read_register. Use I386_ESP_REGNUM instead of
486 SP_REGNUM.
487 (i386_frame_prev_register): Use frame_unwind_register_unsigned
488 instead of frame_unwind_unsigned_register. Use
489 I386_EFLAGS_REGISTER instead of PS_REGNUM.
490 (i386_get_longjmp_target): Use regcache_read_unsigned_register
491 instead of read_register. Use builtin_type_void_data_ptr instead
492 of builtin_type_void_func_ptr when extracting the address of the
493 jmp_buf.
494 (i386_extract_return_value, i386_store_return_value,
495 i386_pseudo_register_read, i386_pseudo_register_write): Use
496 register_size instead REGISTER_RAW_SIZE.
497
498 2003-08-10 Andrew Cagney <cagney@redhat.com>
499
500 * infcall.c (call_function_by_hand): Use xstrprintf instead of
501 sprintf. Make "name" constant.
502
503 2003-08-10 Mark Kettenis <kettenis@gnu.org>
504
505 * i387-tdep.c (i387_register_to_value): Use get_frame_register
506 instead of frame_read_register.
507 (i387_print_float_info): Use get_frame_register and
508 get_frame_register_unsigned instead of frame_register_read.
509
510 * i386fbsd-nat.c: Include "i386-tdep.h".
511 (child_resume): Make `eflags' an ULONGEST. Use
512 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
513 instead of register_read and register_write.
514
515 * i386bsd-nat.c (fetch_inferior_registers,
516 store_inferior_registers): Don't use && at the end of a line.
517 (_initialize_i386bsd_nat): Fix typo.
518
519 * frame.c (_initialize_frame): Add missing backslash.
520
521 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
522 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
523 and supply_register instead of manipulating the register buffer
524 directly.
525
526 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
527 * config/i386/nm-i386sol2.h
528 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
529
530 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
531 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
532 instructions that GCC likes to mingle into the prologue. Fixes
533 gdb/1253 and gdb/1255.
534
535 2003-08-09 Andrew Cagney <cagney@redhat.com>
536
537 Fix GDB PR cli/926.
538 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
539 * command.h (add_setshow_uinteger_cmd): Declare.
540 * frame.c (set_backtrace_cmd): New function.
541 (show_backtrace_cmd): New function.
542 * frame.c (_initialize_frame): Replace "set/show
543 backtrace-below-main" with "set/show backtrace past-main". Add
544 command "set/show backtrace limit".
545 (backtrace_past_main): Rename "backtrace_below_main".
546 (backtrace_limit): New variable.
547 (get_prev_frame): Update. Check the backtrace_limit.
548
549 2003-08-09 Andrew Cagney <cagney@redhat.com>
550
551 * defs.h (xstrprintf): Declare.
552 * utils.c (xstrprintf): New function.
553 * breakpoint.c (insert_breakpoints): Replace sprintf and
554 non-literal format strings, with xstrprintf and cleanups.
555 (delete_breakpoint,breakpoint_re_set): Ditto.
556 (commands_command, insert_breakpoints): Ditto.
557 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
558 (break_at_finish_command_1): Ditto.
559
560 2003-08-09 Andrew Cagney <cagney@redhat.com>
561
562 * MAINTAINERS (language support): List Adam Fedor as Objective C
563 maintainer.
564
565 2003-08-08 J. Brobecker <brobecker@gnat.com>
566
567 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
568 are now multiarched.
569
570 2003-08-08 J. Brobecker <brobecker@gnat.com>
571
572 * config/pa/tm-hppa64.h: Remove lots of macros that are no
573 longer necessary now that hppa64 is partially multiarch'ed.
574
575 2003-08-08 Andrew Cagney <cagney@redhat.com>
576
577 * interps.c (interp_set): Check for a NULL "old_interp".
578
579 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
580
581 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
582 (install-only): Support DESTDIR.
583 (uninstall): Likewise.
584 (install-gdbtk): Likewise.
585
586 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
587
588 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
589 contains something meaningful at all times.
590
591 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
592
593 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
594
595 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
596
597 * MAINTAINERS (write after approval): Added self.
598
599 2003-08-07 Andrew Cagney <cagney@redhat.com>
600
601 * inferior.h (AT_SYMBOL): Define.
602 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
603 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
604 * mips-tdep.c (mips_call_dummy_address): Delete function.
605 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
606 set call_dummy_address.
607
608 2003-08-07 Andrew Cagney <cagney@redhat.com>
609
610 * language.c (op_error): Delete function.
611 (binop_type_check): Delete function.
612 * language.h (type_op_error, range_op_error): Delete macros.
613 (op_error): Delete declaration.
614
615 2003-08-07 Andrew Cagney <cagney@redhat.com>
616
617 * interps.h (INTERP_MI2, INTERP_MI3): Define.
618
619 2003-08-07 Michal Ludvig <mludvig@suse.cz>
620
621 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
622 (x86_64_push_arguments): Skip the red zone.
623
624 2003-08-05 Andrew Cagney <cagney@redhat.com>
625
626 * reggroups.c (reggroup_next): Check for the final entry.
627
628 2003-08-04 Andrew Cagney <cagney@redhat.com>
629
630 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
631 * cli/cli-script.c (define_command): Call query directly, instead
632 of passing it a buffer.
633 * ocd.c (ocd_error): Pass error a constant format string.
634 * remote-mips.c (mips_error): Use fputs_filtered.
635
636 * solib-svr4.c (_initialize_svr4_solib): Update
637 register_gdbarch_data call.
638 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
639
640 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
641 (register_gdbarch_data): Delete "free" parameter. Update
642 comments.
643 * gdbarch.h, gdbarch.c: Re-generate.
644 * reggroups.c (_initialize_reggroup): Update.
645 * gnu-v3-abi.c (init_gnuv3_ops): Update.
646 * frame-base.c (_initialize_frame_base): Update.
647 * frame-unwind.c (_initialize_frame_unwind): Update.
648 * user-regs.c (_initialize_user_regs): Update.
649 * remote.c (_initialize_remote): Update.
650 * regcache.c (_initialize_regcache): Update.
651
652 * regcache.c (xfree_regcache_descr): Delete function.
653 (_initialize_regcache): Update call to register_gdbarch_data.
654 (init_regcache_descr, init_legacy_regcache_descr): Use
655 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
656
657 * remote.c (free_remote_state): Delete function.
658 (_initialize_remote): Update register_gdbarch_data.
659 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
660 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
661
662 2003-08-04 Andrew Cagney <cagney@redhat.com>
663
664 * reggroups.c (struct reggroup_el): Define.
665 (struct reggroups): Delete field "nr_group". Replace array
666 "group" with a "first" to "last" linked list.
667 (reggroups_init): Update. Allocate using gdbarch's obstack.
668 (reggroups_free): Delete function.
669 (add_group): Update. Add "el" parameter.
670 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
671 (default_groups): Update.
672 (reggroup_next): Replace reggroups.
673 (reggroups_dump): Update.
674 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
675 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
676 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
677
678 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
679
680 * Makefile.in (tui-interp.o): Update dependencies.
681
682 2003-08-04 David Carlton <carlton@kealia.com>
683
684 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
685 to internal_error call.
686 * source.c (forward_search_command): Add "%s" format argument.
687 (reverse_search_command): Ditto.
688 * top.c (quit_confirm): Ditto.
689 * cli/cli-setshow.c (do_setshow_command): Ditto.
690 * cp-valprint.c (cp_print_class_method): Replace
691 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
692 (cp_print_class_member): Ditto.
693 * event-top.c (command_line_handler): Ditto.
694 * linux-proc.c (linux_info_proc_cmd): Ditto.
695 * p-typeprint.c (pascal_type_print_base): Ditto.
696 * p-valprint.c (pascal_object_print_class_method): Ditto.
697 (pascal_object_print_class_member): Ditto.
698 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
699 * remote.c (remote_cisco_section_offsets): Ditto.
700 * top.c (command_line_input): Ditto.
701 * utils.c (vwarning,error_stream,quit): Ditto.
702 * valprint.c (print_floating,print_binary_chars)
703 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
704
705 2003-08-04 Andrew Cagney <cagney@redhat.com>
706
707 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
708
709 2003-08-02 Andrew Cagney <cagney@redhat.com>
710
711 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
712 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
713 amd64fbsd-nat.c.
714
715 2003-08-02 Andrew Cagney <cagney@redhat.com>
716
717 * Makefile.in: Update all dependencies and definitions.
718
719 2003-08-02 Adam Fedor <fedor@gnu.org>
720
721 * linespec.c (is_objc_method_format): New function
722 (decode_line_1, locate_first_half): Use it.
723 Fixes PR objc/1298
724
725 2003-08-01 Andrew Cagney <cagney@redhat.com>
726
727 * NEWS: Mention that m32r is multi-arch.
728 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
729 * configure.tgt: Recognize m32r-*-*.
730 * config/m32r/tm-m32r.h: Delete file.
731 * config/m32r/m32r.mt: New file.
732 * m32r-rom.c (m32r_upload_command): Use hostent only when
733 gethostname succeeds, in order to avoid a compilation
734 warning.
735 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
736 compiler warning.
737
738 2003-08-01 Michael Snyder <msnyder@redhat.com>
739
740 * sh-tdep.c (sh_frame_align): New gdbarch method.
741 (sh_gdbarch_init): Set up frame_align method.
742
743 2003-07-31 Michael Snyder <msnyder@redhat.com>
744
745 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
746 which is already covered by the new frames infrastructure.
747
748 2003-07-31 Andrew Cagney <cagney@redhat.com>
749
750 * user-regs.c (struct user_reg): Add "next" link.
751 (struct user_regs): Replace "user" with "first" and "last" links.
752 (append_user_reg): Add pre-allocated "reg" parameter.
753 (builtin_user_regs): Provide initial value for "last".
754 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
755 (user_regs_init): Allocate memory from the gdbarch obstack.
756 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
757 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
758 linked list.
759 (usernum_to_user_reg): New function.
760 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
761 (value_of_user_reg): Use usernum_to_user_reg.
762 (user_regs_free): Delete function.
763 (_initialize_user_regs): Update register_gdbarch_data call.
764
765 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
766
767 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
768
769 2003-07-30 Michael Snyder <msnyder@redhat.com>
770
771 * value.h (value_being_returned): Add a struct_addr argument.
772 * infcall.c (call_function_by_hand): Pass struct_addr to
773 value_being_returned.
774 * infcmd.c (print_return_value): Pass zero as struct_addr.
775 * values.c (value_being_returned): If struct_addr is passed,
776 use it instead of trying to recover it from the inferior.
777
778 2003-07-30 Kevin Buettner <kevinb@redhat.com>
779
780 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
781 the prologue analyzer won't need to attempt to extract the pc
782 value from the woefully incomplete dummy frame.
783 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
784 possible. Disable code which modifies the frame.
785
786 2003-07-28 Andrew Cagney <cagney@redhat.com>
787
788 * annotate.c (annotate_breakpoints_headers): Restrict annotation
789 to level 2.
790 (annotate_breakpoints_table, annotate_record): Ditto.
791 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
792 (annotate_field_name_end, annotate_field_value): Ditto.
793 (annotate_field_end, annotate_frame_source_begin): Ditto.
794 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
795 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
796 (annotate_frame_begin, annotate_frame_function_name): Ditto.
797 (annotate_frame_address_end, annotate_frame_address): Ditto.
798 (annotate_frame_args, annotate_frame_end): Ditto.
799 (annotate_frame_where, annotate_arg_begin): Ditto.
800 (annotate_arg_name_end, annotate_arg_value): Ditto.
801 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
802 (annotate_function_call, annotate_signal_name): Ditto.
803 (annotate_signal_string, annotate_signal_name_end): Ditto.
804 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
805 (annotate_value_begin, annotate_value_history_value): Ditto.
806 (annotate_value_history_end, annotate_value_end): Ditto.
807 (annotate_display_begin, annotate_display_number_end): Ditto.
808 (annotate_display_format, annotate_display_expression): Ditto.
809 (annotate_display_expression_end, annotate_display_value): Ditto.
810 (annotate_display_end, annotate_array_section_begin): Ditto.
811 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
812 (annotate_elt, annotate_array_section_end): Ditto.
813
814 2003-07-28 Andrew Cagney <cagney@redhat.com>
815
816 * regcache.c (struct regcache_descr): Update comments on
817 nr_raw_registers.
818 (init_legacy_regcache_descr): Don't set nr_raw_registers or
819 sizeof_raw_register_valid_p.
820 (init_regcache_descr): Set nr_raw_registers and
821 sizeof_raw_register_valid_p before calling
822 init_legacy_regcache_descr.
823
824 2003-07-28 Andrew Cagney <cagney@redhat.com>
825
826 * mips-tdep.c (print_gp_register_row): Print the GPR's register
827 MOD NUM_REGS.
828
829 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
830
831 * thread.c (info_threads_command): Use get_selected_frame ().
832 Check that there is at least one non-sentinel frame.
833
834 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
835
836 * m68hc11-tdep.c (struct frame_extra_info): Remove.
837 (m68hc11_pop_frame): Remove.
838 (m68hc11_frame_saved_pc): Remove.
839 (m68hc11_frame_chain): Remove.
840 (m68hc11_frame_init_saved_regs): Remove.
841 (m68hc11_init_extra_frame_info): Remove.
842 (m68hc11_store_struct_return): Remove.
843 (m68hc11_saved_pc_after_call): Remove.
844
845 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
846
847 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
848 frame unwind information.
849 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
850 and adapted for frame unwinding.
851 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
852 (m68hc11_unwind_pc): New function.
853 (m68hc11_frame_unwind_cache): New function to analyze frames.
854 (m68hc11_frame_this_id): New function to create new frame struct.
855 (m68hc11_frame_prev_register): New function to unwind a register from
856 the frame.
857 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
858 (m68hc11_frame_p): New function for the above.
859 (m68hc11_frame_base_address): New function to return fp of frame.
860 (m68hc11_frame_args_address): Update for frame.
861 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
862 (m68hc11_unwind_sp): New function.
863 (m68hc11_unwind_dummy_id): New function.
864 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
865 calls.
866
867 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
868
869 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
870 (m68hc11_guess_from_prologue): Advance the pc and frame size only
871 when we are beyond the current pc.
872
873 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
874
875 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
876 from m68hc11_push_arguments.
877 (m68hc11_push_arguments): Remove.
878 (m68hc11_push_return_address): Remove.
879 (m68hc11_gdbarch_init): Install the above; remove above deprecated
880 handlers; remove deprecated_extra_stack_alignment_needed.
881
882 2003-07-27 Andrew Cagney <cagney@redhat.com>
883
884 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
885 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
886 REAL_PC and not the pointer.
887 * hppa-hpux-tdep.c: Include frame.h
888
889 2003-07-27 Andrew Cagney <cagney@redhat.com>
890
891 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
892 GDB_MULTI_ACH_PARTIAL.
893
894 2003-07-27 Andrew Cagney <cagney@redhat.com>
895
896 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
897 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
898 operator at start and not end of line.
899 (decode_prologue): Ditto.
900 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
901 frame_unwind_register_unsigned instead of
902 frame_unwind_unsigned_register.
903 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
904 read_register.
905 (m32r_push_dummy_call): Use register_size instead of
906 REGISTER_RAW_SIZE.
907 (m32r_frame_sniffer): Replace m32r_frame_p.
908 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
909 * m32r-rom.c (report_transfer_performance): Delete extern
910 declaration.
911 (m32r_load, m32r_upload_command): Use print_transfer_performance
912 instead of report_transfer_performance.
913 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
914 / add_show_from_set.
915
916 2003-07-26 Andrew Cagney <cagney@redhat.com>
917
918 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
919 store_return_value and extract_struct_value_address.
920
921 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
922
923 PR c++/1267
924 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
925 NULL, default to the section containing PC.
926
927 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
928
929 * NEWS: Mention "regs" deprecated for m68hc11 too.
930
931 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
932 (m68hc11_print_register): New function to print out one register.
933 (m68hc11_print_registers_info): New function to print registers.
934 (show_regs): Deprecate and use the above.
935 (m68hc11_gdbarch_init): Install the print_registers_info.
936
937 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
938
939 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
940 that we have a SIGTRAP before returning non-zero.
941
942 2003-07-23 Michal Ludvig <mludvig@suse.cz>
943 Elena Zannoni <ezannoni@redhat.com>
944
945 * linespec.c (decode_line_2): Avoid crash if
946 find_function_start_sal() returns empty record.
947
948 2003-07-23 Andreas Schwab <schwab@suse.de>
949
950 * ia64-tdep.c (ia64_print_insn): New function.
951 (ia64_gdbarch_init): Set print_insn to it.
952 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
953 deprecated_tm_print_insn_info.
954
955 2003-07-22 Michael Snyder <msnyder@redhat.com>
956
957 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
958 handle 8-bit returns (long long).
959 (h8300h_extract_return_value): Ditto.
960 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
961
962 2003-07-22 Andrew Cagney <cagney@redhat.com>
963
964 * gdbarch.c Include "gdb_obstack.h".
965 (struct gdbarch): Add an "obstack".
966 (alloc_gdbarch_data): Allocate the gdbarch data using
967 GDBARCH_OBSTACK_CALLOC.
968 (free_gdbarch_data): Delete function.
969 (gdbarch_obstack_zalloc): New function.
970 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
971 Assert that the architecture is not initialized.
972 (gdbarch_alloc): Allocate an obstack, allocate the architecture
973 vector from the obstack.
974 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
975 architecture obstack.
976 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
977 (set_gdbarch_data): Assert that the data is not initialized.
978 (struct gdbarch_data): Delete member "free".
979 (register_gdbarch_data): Do not initialize "free".
980 * gdbarch.h, gdbarch.c: Re-generate.
981
982 2003-07-22 Andrew Cagney <cagney@redhat.com>
983
984 * configure.in (build_warnings): Add -Wformat-nonliteral.
985 * configure: Re-generate.
986
987 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
988
989 * dwarf2loc.c (locexpr_describe_location): Fix typos.
990
991 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
992
993 * findvar.c (read_var_value): Remove case for thread local storage
994 variables. It is now entirely handled by the dwarf2 location
995 expression code.
996 * printcmd.c (address_info): Ditto.
997 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
998 enumeration value.
999 (struct symbol): Remove objfile field, which was used by
1000 LOC_THREAD_LOCAL_STATIC only.
1001 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1002 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1003 usage of objfile pointer.
1004 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1005 thread local variables.
1006 Add include of objfiles.h.
1007 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1008 storage variables.
1009 * Makefile.in (dwarf2loc.o): Update dependencies.
1010
1011 2003-07-22 Andrew Cagney <cagney@redhat.com>
1012
1013 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1014 get_frame_base.
1015 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1016 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1017 (struct value): Add opaque declaration.
1018 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1019
1020 2003-07-21 Andrew Cagney <cagney@redhat.com>
1021
1022 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1023 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1024
1025 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1026
1027 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1028 regcache_cooked_read_unsigned instead of read_register.
1029 (m68hc11_saved_pc_after_call): Likewise.
1030 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1031 instead of write_register.
1032 (m68hc11_register_type): New function.
1033 (m68hc11_register_virtual_type): Remove.
1034 (m68hc11_store_return_value): Convert to use the regcache.
1035 (m68hc11_extract_struct_value_address): Likewise.
1036 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1037 m68hc11_register_type; undeprecate store_return_value and
1038 extract_struct_value_address.
1039
1040 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1041
1042 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1043 and translate to use regcache.
1044 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1045
1046 2003-07-18 Andrew Cagney <cagney@redhat.com>
1047
1048 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1049 * gdbarch.h, gdbarch.c: Re-generate.
1050 * i386-tdep.c (i386_gdbarch_init): Do not set
1051 DWARF2_BUILD_FRAME_INFO.
1052 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1053 unconditionally.
1054 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1055 DWARF2_BUILD_FRAME_INFO.
1056
1057 2003-07-18 Andrew Cagney <cagney@redhat.com>
1058
1059 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1060 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1061
1062 2003-07-18 Andrew Cagney <cagney@redhat.com>
1063
1064 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1065 frame_unwind_address_in_block, instead of frame_pc_unwind.
1066 (dwarf2_frame_cache): Ditto.
1067
1068 2003-07-18 Andrew Cagney <cagney@redhat.com>
1069
1070 * user-regs.h (struct gdbarch): Declare opaque.
1071 * ui-out.h (struct ui_file): Declare opaque.
1072 * dwarf2-frame.h (struct frame_info): Declare opaque.
1073
1074 2003-07-18 Kris Warkentin <kewarken@qnx.com>
1075
1076 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1077 #include "...".
1078 (procfs_meminfo): Change strerror to safe_strerror.
1079 (procfs_can_run): Remove K&R badness.
1080
1081 2003-07-17 Michael Snyder <msnyder@redhat.com>
1082
1083 * remote-sim.c: Comment typo fix.
1084
1085 2003-07-17 Andrew Cagney <cagney@redhat.com>
1086
1087 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1088 configure.
1089 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1090 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1091 GDB_MULTI_ARCH_PARTIAL.
1092
1093 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
1094
1095 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1096 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1097 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1098
1099 2003-07-16 Theodore A. Roth <troth@openavr.org>
1100
1101 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1102 found.
1103 (avr_frame_unwind_cache): Don't unwind FP for main.
1104 Update a comment.
1105 Save the computed prev_sp.
1106 (avr_saved_regs_unwinder): Remove function.
1107 (avr_frame_prev_register): Use PC unwind logic from
1108 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1109
1110 2003-07-16 Andrew Cagney <cagney@redhat.com>
1111
1112 * frame-base.h (frame_base_p_ftype): Delete definition.
1113 (frame_base_append_predicate): Delete declaration.
1114 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1115 (frame_unwind_append_predicate): Delete declaration.
1116 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1117 (append_predicate): Delete parameter "p".
1118 (frame_unwind_append_predicate): Delete function.
1119 (frame_unwind_append_sniffer): Update call to append_predicate.
1120 (frame_unwind_free): Delete function.
1121 (_initialize_frame_unwind): Pass NULL as "free" to
1122 register_gdbarch_data.
1123 (frame_unwind_init): Append the dummy_frame_sniffer.
1124 (frame_unwind_find_by_frame): Simplify.
1125 * frame-base.c (struct frame_base_table): Delete field "p".
1126 (append_predicate): Delete parameter "p".
1127 (frame_base_append_predicate): Delete function.
1128 (frame_base_append_sniffer): Update call to append_predicate.
1129 (frame_base_free): Delete function.
1130 (frame_base_find_by_frame): Simplify.
1131 (_initialize_frame_base): Pass NULL as "free" to
1132 register_gdbarch_data.
1133 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1134 (x86_64_sigtramp_frame_sniffer): Replace
1135 "x86_64_sigtramp_frame_p".
1136 (x86_64_init_abi): Set the frame unwind sniffers.
1137 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1138 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1139 (m68k_gdbarch_init): Set the frame unwind sniffers.
1140 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1141 "i386_sigtramp_frame_p".
1142 (i386_frame_sniffer): Replace "i386_frame_p".
1143 (i386_gdbarch_init): Set the frame unwind sniffers.
1144 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1145 (avr_gdbarch_init): Set the frame unwind sniffers.
1146 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1147 "alpha_sigtramp_frame_p"
1148 (alpha_heuristic_frame_sniffer): Replace
1149 "alpha_heuristic_frame_p".
1150 (alpha_gdbarch_init): Set the frame unwind sniffers.
1151 (alpha_dwarf2_init_abi): Ditto.
1152 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1153 "alpha_debug_frame_p".
1154 (alpha_mdebug_frame_base_sniffer): Replace
1155 "alpha_mdebug_frame_base_p".
1156 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1157 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1158 (d10v_gdbarch_init): Set the frame unwind sniffer.
1159 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1160 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1161 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1162 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1163 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1164 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1165
1166 2003-07-16 Michael Snyder <msnyder@redhat.com>
1167
1168 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1169 should go thru sh_dsp_register_sim_regno, else the dsp regs
1170 will not get the right values.
1171
1172 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1173
1174 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1175 deprecated_store_floating by call to store_typed_floating.
1176 (sh_sh4_register_convert_to_raw): Substitute call to
1177 deprecated_extract_floating by call to extract_typed_floating.
1178
1179 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1180
1181 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1182
1183 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1184
1185 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1186 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1187 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1188 as possible.
1189 (do_pseudo_register): Remove.
1190 (sh_push_dummy_code): New function.
1191 (sh64_store_struct_return): Rename from sh_store_struct_return.
1192 Only called for sh64 now.
1193 (sh_extract_struct_value_address): Regcache'ify.
1194 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1195 and accomodate new tasks.
1196 (sh64_push_return_address): Rename from sh_push_return_address.
1197 Only called for sh64 now.
1198 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1199 Regcache'ify.
1200 (sh3e_sh4_extract_return_value): Regcache'ify.
1201 (sh_default_store_return_value): Ditto.
1202 (sh3e_sh4_store_return_value): Ditto.
1203 (sh_default_register_byte): Remove.
1204 (sh_sh4_register_byte): Remove.
1205 (sh_default_register_raw_size): Remove.
1206 (sh_sh4_register_raw_size): Remove.
1207 (sh_register_virtual_size): Remove.
1208 (sh_sh3e_register_virtual_type): Remove.
1209 (sh_sh3e_register_type): New function.
1210 (sh_sh4_register_virtual_type): Remove.
1211 (sh_sh4_register_type): New function.
1212 (sh_default_register_virtual_type): Remove.
1213 (sh_default_register_type): New function.
1214 (do_fv_register_info): Add parameters to accomodate call from
1215 sh_print_registers_info.
1216 (do_dr_register_info): Ditto.
1217 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1218 Add parameters to accomodate call from sh_print_registers_info.
1219 (sh_do_fp_register): Ditto.
1220 (sh64_do_pseudo_register): Call do_dr_register_info,
1221 do_fv_register_info and sh_do_fp_register with default parameters.
1222 (sh_do_register): Add parameters to accomodate call from
1223 sh_print_registers_info.
1224 (sh_print_register): Ditto.
1225 (sh_print_registers_info): Rename from sh_do_registers_info.
1226 Add parameters to be used as gdbarch_print_registers_info
1227 implementation. Accomodate removed do_pseudo_register function
1228 pointer.
1229 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1230 function pointer. Call sh_print_register with default parameters.
1231 (sh64_do_registers_info): Call sh_print_registers_info instead of
1232 sh_do_registers_info.
1233 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1234 detection of deprecated vs. non-deprecated functionality.
1235 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1236 function pointer assignments by direct function calls.
1237
1238 2003-07-15 Andrew Cagney <cagney@redhat.com>
1239
1240 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1241 (frame_register_unwind, create_new_frame): Ditto.
1242 (legacy_get_prev_frame, get_frame_type): Ditto.
1243 (get_frame_base_address): Use frame_base_find_by_frame.
1244 (get_frame_locals_address): Use frame_base_find_by_frame.
1245 (get_frame_args_address): Use frame_base_find_by_frame.
1246 * frame-base.h (frame_base_sniffer_ftype): Declare.
1247 (frame_base_append_sniffer): Declare.
1248 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1249 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1250 (frame_base_append_sniffer): New function.
1251 (frame_base_append_predicate): Add a NULL sniffer.
1252 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1253 (struct frame_base_table): Add "sniffer".
1254 (frame_base_free): Free the "sniffer" table.
1255 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1256 (frame_unwind_append_sniffer): Declare.
1257 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1258 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1259 (struct frame_unwind_table): Add "sniffer", delete "middle".
1260 (append_predicate): Add "sniffer" parameter, append the sniffer.
1261 (frame_unwind_init): Update append_predicate call.
1262 (frame_unwind_append_sniffer): New function.
1263 (frame_unwind_append_predicate): Update append_predicate call.
1264 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1265
1266 2003-07-15 Andrew Cagney <cagney@redhat.com>
1267
1268 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1269 before code inhibiting repeated unwind attempts. Add to
1270 commentary on that test's problems.
1271 * blockframe.c (inside_main_func): Look for "main" in the minimal
1272 symbol table.
1273 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1274 identical.
1275
1276 2003-07-15 Andrew Cagney <cagney@redhat.com>
1277
1278 * complaints.c (struct explanation): Define.
1279 (struct complaints): Change type of "explanation" to "struct
1280 explanation".
1281 (symfile_explanations): Convert to a "struct explanation" table.
1282 (vcomplaint): Update.
1283
1284 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1285
1286 * x86-64-linux-nat.c (regmap): Removed.
1287 (supply_gregset, fill_gregset): Call
1288 x86_64_linux_(fill,supply)_gregset functions.
1289 * x86-64-linux-tdep.c (USER_*): New defines.
1290 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1291 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1292 New functions.
1293 (fetch_core_registers): Ditto.
1294 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1295 * x86-64-linux-tdep.h: New file.
1296 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1297 and core-regset.o.
1298 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1299
1300 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1301
1302 * x86-64-tdep.c (x86_64_store_return_value): Use
1303 regcache_cooked_write_part instead of regcache_cooked_write.
1304
1305 * configure.host: Add x86_64-*-freebsd*.
1306 * configure.tgt: Add x86_64-*-freebsd*.
1307 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1308 * amd64fbsd-nat.c: New file.
1309 * amd64fbsd-tdep.c: New file.
1310 * config/i386/nm-fbsd64.h: New file.
1311 * config/i386/fbsd64.mh: New file.
1312 * config/i386/fbsd64.mt: New file.
1313
1314 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1315
1316 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1317 `sc_regs_offset' and `sc_fpregs_offset'.
1318 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1319 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1320 (alpha_sigtramp_register_address): Rewrite to use new members of
1321 `struct gdbarch_tdep'.
1322 (alpha_gdbarch_init): Initialize new members of struct
1323 gdbarch_tdep'.
1324 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1325 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1326 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1327 (alphafbsd_pc_in_sigtramp): Implement.
1328 (alphafbsd_sigtramp_offset): New function.
1329 (alphafbsd_sigcontext_addr): New function.
1330 (alphafbsd_init_abi): Initialize signal trampoline related members
1331 of `struct gdbarch_tdep'.
1332 (_initialize_alphafbsd_tdep): Add prototype.
1333
1334 2003-07-11 Theodore A. Roth <troth@openavr.org>
1335
1336 * Makefile.in (install-only): Quote sed expression when generating
1337 transformed_name.
1338
1339 2003-07-11 Richard Henderson <rth@redhat.com>
1340
1341 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1342 * dwarf2-frame.c: Include complaints.h.
1343 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1344 variable initialization; return NULL on error.
1345 (decode_frame_entry): New.
1346
1347 2003-07-11 Andrew Cagney <cagney@redhat.com>
1348
1349 * frame.h (frame_address_in_block): Delete declaration.
1350 * blockframe.c (frame_address_in_block): Delete function.
1351 (get_frame_block): Use get_frame_address_in_block.
1352 (block_innermost_frame): Ditto.
1353 * stack.c (print_frame, backtrace_command_1): Ditto.
1354
1355 * frame.h (get_frame_address_in_block): Declare.
1356 (frame_unwind_address_in_block): Declare.
1357 * frame.c (frame_unwind_address_in_block): New function.
1358 (get_frame_address_in_block): New function.
1359
1360 2003-07-10 Andrew Cagney <cagney@redhat.com>
1361
1362 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1363 pre-default. Note: re-generate has no effect.
1364
1365 2003-07-10 Andrew Cagney <cagney@redhat.com>
1366
1367 * gdbarch.sh: When a variable, but not a function, compare against
1368 0. Fix problem in previous patch.
1369 * gdbarch.c: Re-generate.
1370
1371 2003-07-10 Andrew Cagney <cagney@redhat.com>
1372
1373 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1374 functions against NULL, not 0.
1375 * gdbarch.c: Re-generate.
1376
1377 2003-07-10 Fred Fish <fnf@ninemoons.com>
1378
1379 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1380 null string instead of a null pointer.
1381 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1382
1383 2003-07-09 Michael Snyder <msnyder@redhat.com>
1384
1385 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1386
1387 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1388
1389 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1390 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1391 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1392 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1393 * x86-64-tdep.c: ... from here.
1394
1395 2003-07-09 Andreas Schwab <schwab@suse.de>
1396
1397 * m68k-tdep.h (enum struct_return): Define.
1398 (struct gdbarch_tdep): Add struct_return.
1399 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1400 bytes are padded to the right, not to the left. Pass struct value
1401 address in register %a1, not on stack.
1402 (m68k_use_struct_convention): New function.
1403 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1404 struct_return in tdep to pcc_struct_return.
1405 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1406 reg_struct_return.
1407
1408 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1409
1410 * somread.c (som_symfile_offsets): Fix compilation error.
1411
1412 2003-07-09 Andrew Cagney <cagney@redhat.com>
1413
1414 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1415 Add comments about the checks.
1416
1417 2003-07-08 Andrew Cagney <cagney@redhat.com>
1418
1419 * Makefile.in: Make dependency section headers consistent.
1420 (config_h): Move to $BUILD headers section.
1421 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1422 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1423 (ada-exp.tab.c): Move to YACC/LEX section.
1424 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1425 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1426
1427 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1428
1429 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1430 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1431 of strerror with safe_strerror, use ISO C function definitions,
1432 and replace instances of sprintf with snprintf.
1433
1434 2003-07-07 Andrew Cagney <cagney@redhat.com>
1435
1436 * frame.c (get_prev_frame): Enable check for identical frames.
1437 Update comments. Update error messages.
1438
1439 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1440
1441 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1442
1443 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1444
1445 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1446 sort_symtab_syms, no longer necessary.
1447
1448 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1449
1450 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1451
1452 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1453
1454 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1455 (mips_register_byte): Likewise.
1456
1457 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1458
1459 * Makefile.in (sparc_tdep_h): New.
1460 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1461 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1462 * sparc-linux-nat.c: Include "sparc-tdep.h".
1463 * sparc-nat.c: Likewise.
1464 * sparc-tdep.c: Likewise.
1465 * sparc64nbsd-nat.c: Likewise.
1466 * sparcnbsd-nat.c: Likewise.
1467 * sparcnbsd-tdep.c: Likewise.
1468 * sparc-tdep.h: New file.
1469 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1470 and sparc_npc_regnum.
1471
1472 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1473
1474 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1475 (mips_linux_cannot_store_register): List supported instead of
1476 unsupported registers.
1477
1478 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1479
1480 * disasm.c (dump_insns): Separate instructions from addresses.
1481
1482 2003-07-07 Andreas Schwab <schwab@suse.de>
1483
1484 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1485 dependencies.
1486 * m68k-tdep.c (NUM_FREGS): Delete.
1487 (SIG_PC_FP_OFFSET): Delete.
1488 (TARGET_M68K): Delete.
1489 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1490 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1491 P_MOVEL_SP, P_MOVEML_SP): Define.
1492 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1493 P_TRAP): Delete.
1494 (m68k_register_raw_size): Delete.
1495 (m68k_register_virtual_size): Delete.
1496 (m68k_register_type): Renamed from m68k_register_virtual_type and
1497 add gdbarch argument.
1498 (m68k_store_struct_return): Delete.
1499 (m68k_deprecated_extract_return_value): Delete.
1500 (m68k_deprecated_extract_struct_value_address): Delete.
1501 (m68k_frame_chain): Delete.
1502 (m68k_frame_saved_pc): Delete.
1503 (m68k_fix_call_dummy): Delete.
1504 (m68k_push_dummy_frame): Delete.
1505 (m68k_pop_frame): Delete.
1506 (m68k_extract_return_value): New function.
1507 (m68k_store_return_value): Rewrite using regcache.
1508 (m68k_extract_struct_value_address): Rewrite using regcache.
1509 (m68k_push_dummy_call): New function.
1510 (struct m68k_frame_cache): Define.
1511 (m68k_alloc_frame_cache): New function.
1512 (m68k_analyze_frame_setup): New function.
1513 (m68k_analyze_register_saves): New function.
1514 (m68k_analyze_prologue): New function.
1515 (m68k_skip_prologue): Rewrite using above functions.
1516 (m68k_unwind_pc): New function.
1517 (m68k_frame_cache): New function.
1518 (m68k_frame_this_id): New function.
1519 (m68k_frame_prev_register): New function.
1520 (m68k_frame_unwind): New variable.
1521 (m68k_frame_p): New function.
1522 (m68k_sigtramp_frame_cache): New function.
1523 (m68k_sigtramp_frame_this_id): New function.
1524 (m68k_sigtramp_frame_prev_register): New function.
1525 (m68k_sigtramp_frame_unwind): New variable.
1526 (m68k_sigtramp_frame_p): New function.
1527 (m68k_frame_base_address): New function.
1528 (m68k_frame_base): New function.
1529 (m68k_unwind_dummy_id): New function.
1530 (fill_gregset): Use regcache_collect.
1531 (fill_fpregset): Likewise.
1532 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1533 defined.
1534 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1535 deprecated_init_frame_pc, deprecated_store_struct_return,
1536 deprecated_extract_return_value, deprecated_store_return_value,
1537 deprecated_frame_chain, deprecated_frame_saved_pc,
1538 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1539 deprecated_register_virtual_size,
1540 deprecated_max_register_raw_size,
1541 deprecated_max_register_virtual_size,
1542 deprecated_register_virtual_type, deprecated_register_size,
1543 deprecated_register_byte, deprecated_register_bytes,
1544 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1545 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1546 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1547 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1548 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1549 deprecated_push_dummy_frame, deprecated_pop_frame,
1550 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1551 only if SYSCALL_TRAP is defined. Set extract_return_value,
1552 store_return_value, extract_struct_value_address, register_type,
1553 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1554 predicates.
1555 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1556 M68K_MAX_REGISTER_SIZE): Define.
1557 (struct m68k_sigtramp_info): Define.
1558 (struct gdbarch_tdep): Add get_sigtramp_info.
1559 * m68klinux-nat.c (fetch_register): Use register_size instead of
1560 REGISTER_RAW_SIZE. Don't put assignment in if.
1561 (store_register): Likewise.
1562 (fetch_inferior_registers): Likewise.
1563 (store_inferior_registers): Likewise.
1564 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1565 (m68k_linux_frame_saved_pc): Delete.
1566 (m68k_linux_sigcontext_reg_offset,
1567 m68k_linux_ucontext_reg_offset): Define.
1568 (m68k_linux_get_sigtramp_info): New function.
1569 (m68k_linux_extract_return_value): Rewrite using regcache.
1570 (m68k_linux_store_return_value): Likewise.
1571 (m68k_linux_extract_struct_value_address): Likewise.
1572 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1573 Don't set deprecated_frame_saved_pc,
1574 deprecated_extract_return_value, deprecated_store_return_value,
1575 deprecated_extract_struct_value_address. Set
1576 extract_return_value, store_return_value,
1577 extract_struct_value_address.
1578
1579 2003-07-07 Andrew Cagney <cagney@redhat.com>
1580
1581 * expprint.c: Include "user-regs.h" instead of "frame.h".
1582 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1583 frame_map_regnum_to_name.
1584 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1585 (frame_map_name_to_regnum): Simplify, call
1586 user_reg_map_name_to_regnum.
1587 (frame_map_regnum_to_name): Simplify, call
1588 user_reg_map_regnum_to_name.
1589 (frame_register_unwind): Update.
1590 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1591 (_initialize_frame_reg): Call user_reg_add_builtin.
1592 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1593 (value_of_register): Use value_of_user_reg.
1594 * eval.c (evaluate_subexp_standard): Update.
1595 * parse.c (write_dollar_variable): Update.
1596 * d10v-tdep.c (d10v_print_registers_info): Update.
1597 * infcmd.c (registers_info): Update.
1598 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1599 (builtin_regs_h): Delete macro.
1600 (user_regs_h): Define.
1601 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1602 (builtin-regs.o): Delete target.
1603 (user-regs.o): Specify dependencies.
1604 (expprint.o): Update dependencies.
1605 (findvar.o): Update dependencies.
1606 (frame.o): Update dependencies.
1607 (std-regs.o): Update dependencies.
1608
1609 2003-07-06 Christopher Faylor <cgf@redhat.com>
1610
1611 * win32-nat.c (solib_symbols_add): Use one variable for all section
1612 address stuff. Pass variable rather than address of variable to
1613 safe_symbol_file_add.
1614
1615 2003-07-06 Andreas Schwab <schwab@suse.de>
1616
1617 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1618
1619 2003-07-04 Joel Brobecker <brobecker@gnat.com>
1620
1621 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1622
1623 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1624
1625 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1626
1627 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1628
1629 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1630 * config/i386/nto.mh: New file.
1631 * config/i386/nm-nto.h: New file.
1632 * configure.host: Add i[3456]86-*-nto*.
1633
1634 2003-07-03 Joel Brobecker <brobecker@gnat.com>
1635
1636 * remote-vx.c (vx_add_symbols): Fix compilation error.
1637
1638 2003-07-03 Andrew Cagney <cagney@redhat.com>
1639
1640 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1641 * gdbarch.h, gdbarch.c: Re-generate.
1642 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1643 (legacy_register_name): Declare.
1644 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1645 (REGISTER_NAME): Define.
1646 * sparc-tdep.c (legacy_register_name): New function.
1647 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1648 (REGISTER_NAME): Define.
1649 (hppa64_register_name): Declare.
1650 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1651 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1652 (hppa64_register_name): New function.
1653 (hppa_register_name): New function.
1654 * arch-utils.c (legacy_register_name): Delete.
1655 * arch-utils.h (legacy_register_name): Delete.
1656
1657 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
1658
1659 * cli/cli-interp.c (cli_interpreter_resume): Update the
1660 cli_uiout's stream to gdb_stdout.
1661
1662 2003-07-03 Andrew Cagney <cagney@redhat.com>
1663
1664 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1665 predicate.
1666 * gdbarch.h, gdbarch.c: Re-generate.
1667 * regcache.c (init_regcache_descr): Use legacy code when either
1668 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1669
1670 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1671
1672 * NEWS: Move "set logging" entry into GDB 6.0 section.
1673
1674 2003-07-02 Jim Blandy <jimb@redhat.com>
1675
1676 * s390-tdep.c (struct frame_extra_info): new member:
1677 'stack_bought_valid'.
1678 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1679 initialize fextra_info->stack_bought.
1680 (s390_frameless_function_invocation): Don't trust the value of
1681 fextra_info_ptr->stack_bought unless
1682 fextra_info->stack_bought_valid is set.
1683
1684 New S390 prologue analyzer.
1685 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1686 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1687 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1688 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1689 compute_x_addr, s390_on_stack, s390_store,
1690 s390_get_signal_frame_info): New functions.
1691 (S390_NUM_SPILL_SLOTS): New macro.
1692 (s390_get_frame_info): Rewritten.
1693 (is_arg_reg): Deleted.
1694
1695 Break out the decoding of S/390 instructions into separate
1696 functions, to make it more legible, and easier to check
1697 against the spec.
1698 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1699 is_rx, is_rxe): New functions.
1700 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1701 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1702 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1703 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1704 enums for opcode values. (Is this an improvement?)
1705
1706 2003-07-02 Andrew Cagney <cagney@redhat.com>
1707
1708 * i386-tdep.c: Revert change committed as part of trad-frame code
1709 below.
1710
1711 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1712
1713 * breakpoint.c (insert_catchpoint): Make static.
1714
1715 2003-07-02 Andreas Schwab <schwab@suse.de>
1716
1717 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1718 former ia64_push_arguments and ia64_push_return_address, and use
1719 regcache functions instead of read/write_register.
1720 (ia64_gdbarch_init): Set push_dummy_call instead of
1721 deprecated_push_arguments and deprecated_push_return_address.
1722
1723 2003-07-01 Andreas Jaeger <aj@suse.de>
1724
1725 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1726 before the call.
1727 Set %rax only to number of SSE registers used.
1728
1729 2003-07-01 Andrew Cagney <cagney@redhat.com>
1730
1731 * trad-frame.h: Update comments, a -1 .addr is reserved.
1732 (trad_frame_value_p, trad_frame_addr_p): Declare.
1733 (trad_frame_reg_p): Declare.
1734 (trad_frame_set_value): Rename trad_frame_register_value.
1735 (trad_frame_set_unknown): Declare.
1736 * trad-frame.c (trad_frame_realreg_p): New function.
1737 (trad_frame_addr_p, trad_frame_value_p): New function.
1738 (trad_frame_set_unknown): New function.
1739 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1740 (trad_frame_prev_register): Use trad_frame_realreg_p,
1741 trad_frame_addr_p and trad_frame_value_p.
1742 (trad_frame_set_value): Rename trad_frame_register_value.
1743 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1744 and trad_frame_set_value.
1745
1746 2003-06-30 Jim Blandy <jimb@redhat.com>
1747
1748 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1749 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1750 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1751 for 16 registers, and then 32 more bytes.
1752 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1753 New macros.
1754 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1755 Move up in the file, since it's now used by is_simple_arg.
1756 (is_simple_arg): Don't assume registers are four bytes long.
1757 Exclude all double arguments. Extended floats are not simple
1758 args.
1759 (is_power_of_two): New function.
1760 (pass_by_copy_ref): Call is_power_of_two, and check that the
1761 length fits in a register, rather than listing all the acceptable
1762 sizes. Extended floats are not passed by reference.
1763 (s390_push_arguments): Don't assume registers are four bytes long.
1764 Reserve an argument register to point to the buffer for structures
1765 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1766 S390_STACK_FRAME_OVERHEAD.
1767
1768 2003-06-30 Andreas Schwab <schwab@suse.de>
1769
1770 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1771 format error message.
1772
1773 2003-06-30 Joel Brobecker <brobecker@gnat.com>
1774
1775 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1776
1777 2003-06-30 David Carlton <carlton@kealia.com>
1778
1779 Band-aid for PR c++/1245.
1780 * Makefile.in (cp-support.o): Depend on complaints_h.
1781 * cp-support.c: Include complaints.h. Add declaration for
1782 find_last_component.
1783 (cp_find_first_component): Separate code into
1784 cp_find_first_component_aux.
1785 (cp_find_first_component_aux): Call demangled_name_complaint.
1786 (demangled_name_complaint): New.
1787
1788 2003-06-30 Andrew Cagney <cagney@redhat.com>
1789
1790 * remote.c (remote_write_bytes): Explicitly compute and then use
1791 the payload size. Update comments to reflect. Fixes problem of
1792 GDB not sending small packets as found by Fred Fish.
1793
1794 2003-06-30 Andrew Cagney <cagney@redhat.com>
1795
1796 * remote.c (remote_async_wait): Fix -Wformat problem.
1797
1798 2003-06-29 Andrew Cagney <cagney@redhat.com>
1799
1800 * remote.c (remote_wait): Call error, and not warning, when the
1801 packet is corrupt.
1802 (remote_async_wait): Ditto.
1803
1804 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1805
1806 * sparc-tdep.c (sparc_y_regnum): Make external again.
1807
1808 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1809
1810 * cli/cli-logging.c (pop_output_files): Add void to function
1811 definition.
1812
1813 2003-06-29 Andrew Cagney <cagney@redhat.com>
1814
1815 * frame.c (frame_register_unwind): Use unsigned char when dumping
1816 the buffer contents.
1817
1818 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1819
1820 * cli/cli-logging.c: New file.
1821 * cli-out.c (struct ui_out_data): Add original_stream.
1822 (cli_redirect): New function.
1823 (cli_ui_out_impl): Add cli_redirect.
1824 (cli_out_new): Initialize original_stream.
1825 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1826 (uo_redirect, ui_out_redirect): New.
1827 * ui-out.h (struct ui_out_impl): Add redirect member.
1828 (redirect_ftype): New.
1829 (ui_out_redirect): Add prototype.
1830 * Makefile.in: Add rules for cli-logging.c.
1831 * NEWS: Mention "set logging".
1832
1833 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1834
1835 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1836
1837 2003-06-27 Andrew Cagney <cagney@redhat.com>
1838
1839 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1840 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1841 * avr-tdep.c (avr_call_dummy_address): Delete function.
1842 (avr_gdbarch_init): Do not set call_dummy_address.
1843
1844 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1845
1846 * symfile.c (syms_from_objfile): Move variables to inner block.
1847 Move the checks for the non-mainline case a bit earlier to avoid
1848 doing some useless computations.
1849
1850 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1851
1852 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1853
1854 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
1855
1856 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1857 sections.
1858
1859 2003-06-26 Michael Chastain <mec@shout.net>
1860
1861 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1862 gdb/testsuite/gdb.c++/pr-1210.exp.
1863
1864 2003-06-26 Andrew Cagney <cagney@redhat.com>
1865
1866 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1867 altivec_expression.h and altivec_registers.h.
1868
1869 2003-06-26 Andrew Cagney <cagney@redhat.com>
1870
1871 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1872 info->mach when MIPS16. Patch suggested by Fred Fish.
1873
1874 2003-06-26 Andrew Cagney <cagney@redhat.com>
1875
1876 * utils.c (internal_vproblem): Print the problem to a reason
1877 buffer and then pass to query. Make the msg variable more local.
1878
1879 2003-06-26 Andrew Cagney <cagney@redhat.com>
1880
1881 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
1882 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
1883 * gdbarch.h, gdbarch.c: Re-generate.
1884 * frame-base.c (default_frame_args_address): Update. Use
1885 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
1886 not available.
1887 (default_frame_locals_address): Ditto for
1888 DEPRECATED_FRAME_LOCALS_ADDRESS.
1889 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
1890 (vax_frame_num_args): Update.
1891 (vax_gdbarch_init): Update.
1892 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1893 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1894 * mcore-tdep.c (mcore_gdbarch_init): Update.
1895 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1896 * ia64-tdep.c (ia64_gdbarch_init): Update.
1897 * symtab.h (address_class): Update comments.
1898 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
1899 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1900 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1901 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1902 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1903 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1904 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1905 * alpha-mdebug-tdep.c: Update.
1906 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
1907
1908 2003-06-26 Andreas Jaeger <aj@suse.de>
1909
1910 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
1911 of SSE registers so that varargs functions work. Rework handling
1912 of passing arguments on the stack.
1913 (x86_64_store_return_value): Return double and float values in SSE
1914 register.
1915
1916 2003-06-24 Michael Chastain <mec@shout.net>
1917
1918 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
1919 the "constructor breakpoints ignored" bug.
1920
1921 2003-06-25 David Carlton <carlton@kealia.com>
1922
1923 * MAINTAINERS: Update e-mail address.
1924
1925 2003-06-24 Jim Blandy <jimb@redhat.com>
1926
1927 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
1928
1929 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
1930 function.
1931 (ppc_linux_init_abi): Register it as the
1932 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
1933
1934 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
1935 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
1936 method.
1937
1938 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
1939 (ppc64_standard_linkage_target): Use it.
1940
1941 2003-06-23 Andrew Cagney <cagney@redhat.com>
1942
1943 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
1944 for 0 "int0" and 4 "int32" sized registers.
1945 * gdbtypes.c (builtin_type_int0): Define.
1946 (build_gdbtypes): Initialize builtin_type_int0.
1947 * gdbtypes.h (builtin_type_int0): Declare.
1948
1949 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
1950
1951 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
1952 as characters are unsigned.
1953
1954 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1955
1956 PR gdb/1179
1957 * dwarfread.c (struct_type): Skip static fields without crashing.
1958
1959 2003-06-22 Andrew Cagney <cagney@redhat.com>
1960
1961 GDB 6.0 branch created.
1962 * README: Update.
1963 * PROBLEMS: Update. Empty.
1964 * NEWS: Update.
1965
1966 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1967
1968 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
1969 Suggested by Nick Hibma <n_hibma@webweaving.org>.
1970
1971 2003-06-22 Andrew Cagney <cagney@redhat.com>
1972
1973 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
1974 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
1975 Velikov.
1976
1977 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1978
1979 * cli/cli-cmds.c (shell_escape): Silence warnings from old
1980 compilers.
1981
1982 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1983
1984 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
1985 argument of val_print.
1986 * cp-valprint.c (cp_print_value): Don't add the offset parameter
1987 to the address argument of baseclass_offset or target_read_memory.
1988 Do add it to the argument of cp_print_value_fields.
1989
1990 2003-06-21 Andrew Cagney <cagney@redhat.com>
1991
1992 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
1993 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
1994 instead of 0..NUM_REGS.
1995 (mips_register_reggroup_p): New function.
1996 (mips_pseudo_register_write): New function.
1997 (mips_pseudo_register_read): New function.
1998 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
1999 based on the register's type.
2000 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2001 cooked.
2002 (mips_get_saved_register): Simplify. Assert that REGNO is a
2003 pseudo / cooked.
2004 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2005 (mips_register_type): Replace mips_register_virtual_type. Map
2006 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2007 when available.
2008 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2009 that the register is cooked / virtual.
2010 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2011 Only get the extra info when needed.
2012 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2013 (mips32_heuristic_proc_desc): Fetch the cooked register.
2014 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2015 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2016 (mips_print_register): Use gdbarch_register_type, instead of
2017 REGISTER_VIRTUAL_TYPE.
2018 (print_gp_register_row): Use gdbarch_register_type, instead of
2019 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2020 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2021 Print the pseudo / cooked registers.
2022 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2023 Print the pseudo / cooked registers.
2024 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2025 REG_NUM is pseudo / cooked.
2026 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2027 (mips_n32n64_xfer_return_value): Ditto.
2028 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2029 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2030 (mips_register_sim_regno): New function.
2031 (mips_gdbarch_init): Set deprecated_register_byte,
2032 register_group_p, pseudo_register_write, pseudo_register_read,
2033 register_sim_regno, and num_pseudo_regs. Set register_type,
2034 instead of register_virtual_type.
2035 * Makefile.in (mips-tdep.o): Update dependencies.
2036 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2037 REGISTER_VIRTUAL_TYPE.
2038 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2039 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2040 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2041 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2042 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2043
2044 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2045
2046 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2047 * cli/cli-cmds.c: Include "gdb_vfork.h".
2048 (shell_escape): Use vfork.
2049
2050 2003-06-21 Andrew Cagney <cagney@redhat.com>
2051
2052 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2053 32 bit floating-point register saves.
2054
2055 * frame.h (deprecated_unwind_get_saved_register): Delete.
2056 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2057 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2058 and deprecated_get_next_frame_hack instead of
2059 deprecated_unwind_get_saved_register.
2060
2061 * mips-tdep.c (mips_dump_tdep): Do not print
2062 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2063
2064 * frame.c (get_frame_register): New function.
2065 (frame_unwind_register_signed): New function.
2066 (get_frame_register_signed): New function.
2067 (frame_unwind_register_unsigned): New function.
2068 (get_frame_register_unsigned): New function.
2069 * frame.h: Add comments on naming schema.
2070 (get_frame_register, frame_unwind_register_signed): Declare.
2071 (get_frame_register_signed, get_frame_register_signed): Declare.
2072 (frame_unwind_register_unsigned): Declare.
2073 (get_frame_register_unsigned): Declare.
2074
2075 2003-06-20 Theodore A. Roth <troth@openavr.org>
2076
2077 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2078
2079 2003-06-20 Theodore A. Roth <troth@openavr.org>
2080
2081 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2082 (avr_read_sp): Ditto.
2083
2084 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
2085
2086 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2087 * config/arm/nm-linux.h: Likewise.
2088 * config/arm/tm-linux.h: Likewise.
2089 * config/ia64/nm-linux.h: Likewise.
2090 * config/ia64/tm-ia64.h: Likewise.
2091 * config/s390/tm-linux.h: Likewise.
2092 * config/s390/tm-s390.h: Likewise.
2093 * s390-nat.c: Likewise.
2094 * s390-tdep.c: Likewise.
2095
2096 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2097 * config/ia64/linux.mt: Likewise.
2098 * config/m68k/linux.mh: Likewise.
2099 * config/mips/linux.mt: Likewise.
2100 * config/powerpc/linux.mh: Likewise.
2101 * config/sh/linux.mt: Likewise.
2102
2103 2003-06-19 Kris Warkentin <kewarken@qnx.com>
2104
2105 * solib.c (solib_open): Change tests for whether to search
2106 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2107 comments.
2108
2109 2003-06-19 Theodore A. Roth <troth@openavr.org>
2110
2111 * avr-tdep.c (avr_frame_address): Delete function.
2112 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2113 set_gdbarch_frame_args_address.
2114
2115 2003-06-19 Andrew Cagney <cagney@redhat.com>
2116
2117 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2118 (REGISTER_CONVERT_FROM_TYPE): Delete.
2119 (mips_register_convert_to_type): Delete declaration.
2120 (mips_register_convert_from_type): Delete declaration.
2121 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2122 kernel/.
2123
2124 2003-06-19 Michael Snyder <msnyder@redhat.com>
2125
2126 * linux-nat.h: New file.
2127 * linux-nat.c: Include linux-nat.h.
2128 * lin-lwp.c: Include linux-nat.h.
2129 Move struct lwp_info def to linux-nat.h.
2130 * linux-proc.c: Include linux-nat.h.
2131 (linux_make_note_section): Iterate over lwps instead of threads.
2132 (linux_do_thread_registers): Use lwp instead of merged pid.
2133 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2134 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2135 Add dependency on linux_nat_h.
2136
2137 2003-06-19 Theodore A. Roth <troth@openavr.org>
2138
2139 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2140
2141 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2142
2143 * varobj.c (get_type, get_target_type): Use check_typedef.
2144
2145 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2146
2147 * breakpoint.c (insert_catchpoint): Call internal_error.
2148
2149 2003-06-19 Theodore A. Roth <troth@openavr.org>
2150
2151 * avr-tdep.c (avr_push_dummy_code): Delete function.
2152 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2153
2154 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2155
2156 * arch-utils.c (default_prepare_to_proceed): Remove.
2157 (generic_prepare_to_proceed): Remove.
2158 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2159 (generic_prepare_to_proceed): Remove prototype.
2160 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2161 * gdbarch.c: Regenerate.
2162 * gdbarch.h: Regenerate.
2163 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2164 * hppah-nat.c (hppa_switched_threads): Remove.
2165 * infrun.c (prepare_to_proceed): New static function, copied from
2166 generic_prepare_to_proceed. Remove select_it argument.
2167 (proceed): Call prepare_to_proceed.
2168 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2169 variables.
2170 (ptrace_wait): Don't set the removed variables.
2171 (hppa_switched_threads): Remove.
2172 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2173 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2174 (lin_lwp_prepare_to_proceed): Remove prototype.
2175 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2176 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2177
2178 2003-06-18 Theodore A. Roth <troth@openavr.org>
2179
2180 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2181 trad-frame.h.
2182 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2183 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2184 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2185 (AVR_PROLOGUE_*): Enumerate prologue types.
2186 (struct frame_extra_info): Remove.
2187 (struct avr_unwind_cache): Define.
2188 (avr_write_sp): Delete function.
2189 (avr_read_fp): Ditto.
2190 (avr_init_extra_frame_info): Ditto.
2191 (avr_pop_frame): Ditto.
2192 (avr_frame_saved_pc): Ditto.
2193 (avr_saved_pc_after_call): Ditto.
2194 (avr_push_return_address): Ditto.
2195 (avr_frame_chain): Ditto.
2196 (avr_store_struct_return): Ditto.
2197 (avr_push_arguments): Ditto.
2198 (avr_scan_prologue): Update comments. Changed to set up the info for
2199 cache unwinding. Now returns end of prologue PC.
2200 (avr_skip_prologue): Better handling of functions lacking a prologue
2201 by using avr_scan_prologue.
2202 (avr_scan_arg_moves): New function.
2203 (avr_saved_regs_unwinder): Ditto.
2204 (avr_frame_unwind_cache): Ditto.
2205 (avr_unwind_pc): Ditto.
2206 (avr_frame_this_id): Ditto.
2207 (avr_frame_prev_register): Ditto.
2208 (avr_frame_p): Ditto.
2209 (avr_frame_base_address ): Ditto.
2210 (avr_unwind_dummy_id): Ditto.
2211 (avr_push_dummy_code): Ditto.
2212 (push_stack_item): Ditto.
2213 (pop_stack_item): Ditto.
2214 (avr_push_dummy_call): Ditto.
2215 (struct stack_item): Define.
2216 (avr_frame_unwind): Declare structure.
2217 (avr_frame_base): Ditto.
2218 (avr_gdbarch_init): Remove calls to
2219 set_gdbarch_deprecated_init_frame_pc,
2220 set_gdbarch_deprecated_target_read_fp,
2221 set_gdbarch_deprecated_dummy_write_sp,
2222 set_gdbarch_deprecated_fp_regnum,
2223 set_gdbarch_deprecated_push_arguments,
2224 set_gdbarch_deprecated_push_return_address,
2225 set_gdbarch_deprecated_pop_frame,
2226 set_gdbarch_deprecated_store_struct_return,
2227 set_gdbarch_deprecated_frame_init_saved_regs,
2228 set_gdbarch_deprecated_init_extra_frame_info,
2229 set_gdbarch_deprecated_frame_chain,
2230 set_gdbarch_deprecated_frame_saved_pc,
2231 set_gdbarch_deprecated_saved_pc_after_call.
2232 Add calls to set_gdbarch_push_dummy_call,
2233 set_gdbarch_push_dummy_code,
2234 frame_unwind_append_predicate,
2235 frame_base_set_default,
2236 set_gdbarch_unwind_dummy_id,
2237 set_gdbarch_unwind_pc.
2238 Wrap a long line.
2239
2240 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2241
2242 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2243 registers for H8/300S.
2244 (h8300_print_registers_info): Ditto.
2245 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2246
2247 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2248
2249 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2250 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2251 (lin_lwp_wait): Likewise. Update comments.
2252 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2253 (pull_pid_from_list, linux_record_stopped_pid): New.
2254
2255 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2256
2257 * ada-lang.c (scan_discrim_bound): Name first argument.
2258 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2259 declared by ALL_BLOCK_SYMBOLS.
2260
2261 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2262
2263 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2264 ("regcache.h"): Include it.
2265 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2266
2267 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2268
2269 * NEWS: Mention gdbserver detach change and "disconnect" command.
2270 * infcmd.c (disconnect_command): New function.
2271 (_initialize_infcmd): Add ``disconnect'' command.
2272 * remote.c (remote_async_detach): Delete.
2273 (remote_detach): Merge remote_async_detach.
2274 (remote_disconnect): New.
2275 (init_remote_ops): Set to_disconnect.
2276 (init_remote_cisco_ops): Likewise.
2277 (init_remote_async_ops): Likewise. Use remote_detach.
2278 * target.c (cleanup_target): Default to_disconnect.
2279 (update_current_target): Inherit to_disconnect.
2280 (target_disconnect, debug_to_disconnect): New functions.
2281 (setup_target_debug): Set to_disconnect.
2282 * target.h (struct target_ops): Add to_disconnect.
2283 (target_disconnect): Add prototype.
2284
2285 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2286
2287 * breakpoint.c (insert_catchpoint): New function.
2288 (insert_breakpoints): Use catch_exceptions to call
2289 insert_catchpoint. Disable catchpoints if they fail to insert.
2290
2291 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2292
2293 * symfile.c (reread_symbols): Clear sym_private.
2294
2295 2003-06-17 Andrew Cagney <cagney@redhat.com>
2296
2297 * trad-frame.h (struct frame_info): Add opaque declaration.
2298 * remote-fileio.h (struct cmd_list_element): Add opaque
2299 declaration.
2300 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2301 comments.
2302
2303 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2304
2305 * remote.c (remote_prepare_to_store): Replace call to
2306 deprecated_read_register_bytes with multiple regcache_raw_read
2307 calls.
2308
2309 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2310
2311 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2312 (nto_find_and_open_solib): Likewise.
2313 (nto_init_solib_absolute_prefix): Likewise.
2314 (_initialize_nto_tdep): Fix indentation.
2315
2316 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2317
2318 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2319
2320 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2321
2322 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2323
2324 2003-06-17 Jim Blandy <jimb@redhat.com>
2325
2326 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2327
2328 2003-06-16 Theodore A. Roth <troth@openavr.org>
2329
2330 * avr-tdep.c (avr_extract_return_value): New function.
2331 (avr_gdbarch_init): Set extract_return_value method.
2332
2333 2003-06-16 Andrew Cagney <cagney@redhat.com>
2334
2335 * frame.h (deprecated_get_next_frame_hack): Declare.
2336 * frame.c (legacy_saved_regs_prev_register): Only require
2337 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2338 there are always saved regs.
2339 (deprecated_generic_get_saved_register): Do not require
2340 DEPRECATED_FRAME_INIT_SAVED_REGS.
2341 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2342 use frame ID unwind instead.
2343 (deprecated_get_next_frame_hack): New function.
2344
2345 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2346
2347 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2348 (h8300_push_dummy_call): ...this function. Some minor optimization.
2349 (h8300_push_return_address): Remove.
2350 (h8300_gdbarch_init): Remove calls to
2351 set_gdbarch_deprecated_dummy_write_sp,
2352 set_gdbarch_deprecated_push_arguments and
2353 set_gdbarch_deprecated_push_return_address.
2354 Add call to set_gdbarch_push_dummy_call.
2355
2356 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2357
2358 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2359 (E_PSEUDO_EXR_REGNUM): Ditto.
2360 (h8300_is_argument_spill): Check for instructions moving argument
2361 registers into safe registers.
2362 (h8300_skip_prologue): Check for stm instruction to push registers
2363 used for register variables onto stack.
2364 (gdb_print_insn_h8300): Remove.
2365 (h8300_examine_prologue): Add a comment.
2366 (h8300_register_name): Take pseudo registers into account.
2367 (h8300s_register_name): Ditto.
2368 (h8300sx_register_name): Ditto.
2369 (h8300_print_register): Ditto.
2370 (h8300_print_registers_info): Define "nice" printing order.
2371 (h8300_saved_pc_after_call): Take pseudo registers into account.
2372 (h8300_register_type): Ditto. Return type used for remote connection
2373 when requesting real CCR or EXR register, return actual type when
2374 requesting pseudo CCR or EXR.
2375 (h8300_pseudo_register_read): New function.
2376 (h8300_pseudo_register_write): Ditto.
2377 (h8300_dbg_reg_to_regnum): Ditto.
2378 (h8300s_dbg_reg_to_regnum): Ditto.
2379 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2380 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2381 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2382 set_gdbarch_print_insn architecture dependent.
2383 Call set_gdbarch_pseudo_register_read and
2384 set_gdbarch_pseudo_register_write.
2385 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2386
2387 2003-06-16 Andrew Cagney <cagney@redhat.com>
2388
2389 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2390 * gdbarch.h, gdbarch.c: Re-generate.
2391 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2392 * s390-tdep.c (s390_gdbarch_init): Update.
2393 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2394 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2395 * mips-tdep.c (mips_gdbarch_init): Update.
2396 * mcore-tdep.c (mcore_gdbarch_init): Update.
2397 * cris-tdep.c (cris_gdbarch_init): Update.
2398 * infcall.c (call_function_by_hand): Update.
2399 * ia64-tdep.c (ia64_push_arguments): Update comment.
2400 * frame.c (legacy_get_prev_frame): Do not assume
2401 SAVE_DUMMY_FRAME_TOS_P.
2402 * dummy-frame.c (find_dummy_frame): Update comment.
2403
2404 2003-06-16 Andrew Cagney <cagney@redhat.com>
2405
2406 * regcache.c (do_cooked_read): Do not use register_valid_p.
2407
2408 2003-06-15 Theodore A. Roth <troth@openavr.org>
2409
2410 * avr-tdep.c (avr_register_type): Remove a blank line.
2411 (avr_scan_prologue): Correct some comments.
2412
2413 2003-06-15 Theodore A. Roth <troth@openavr.org>
2414
2415 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2416 prologue types.
2417 Properly scan prologues generated by gcc with the -mcall-prologues
2418 option.
2419 Add code to scan -mcall-prologues for mega devices.
2420
2421 2003-06-15 Theodore A. Roth <troth@openavr.org>
2422
2423 * avr-tdep.c (avr_register_byte): Delete function.
2424 (avr_register_raw_size): Delete function.
2425 (avr_register_virtual_size): Delete function.
2426 (avr_register_virtual_type): Delete function.
2427 (avr_register_type): New function.
2428 (avr_address_to_pointer): Remove unused code.
2429 (avr_read_fp): Need to read FP as two separate bytes due to change to
2430 avr_register_type() usage.
2431 (avr_gdbarch_init): Don't set deprecated_register_size.
2432 Don't set deprecated_register_bytes.
2433 Don't set deprecated_register_byte.
2434 Don't set deprecated_register_raw_size.
2435 Don't set deprecated_max_register_raw_size.
2436 Don't set deprecated_register_virtual_size.
2437 Don't set deprecated_max_register_virtual_size.
2438 Don't set deprecated_register_virtual_type.
2439 Set register_type method.
2440
2441 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2442
2443 * Makefile.in (linux-nat.o): Add rule.
2444 * linux-nat.c: New file.
2445 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2446 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2447 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2448 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2449 * config/arm/linux.mh (NATDEPFILES): Likewise.
2450 * config/i386/linux.mh (NATDEPFILES): Likewise.
2451 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2452 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2453 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2454 * config/mips/linux.mh (NATDEPFILES): Likewise.
2455 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2456 * config/s390/s390.mh (NATDEPFILES): Likewise.
2457 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2458
2459 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2460
2461 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2462 replace out-of-date comment.
2463
2464 2003-06-15 Andrew Cagney <cagney@redhat.com>
2465
2466 * rdi-share/host.h (Fail): Change to a varargs function.
2467 * remote-rdi.c (Fail): Update.
2468
2469 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2470
2471 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2472 (i386_convert_register_p, i386_register_to_value,
2473 i386_register_from_value): Handle types longer than 8 bytes.
2474
2475 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2476
2477 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2478 Move floating-point code to new function in i387-tdep.c.
2479 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2480 New functions containing code moved here from i386-tdep.c.
2481 * i387-tdep.h: Add opaque declaration for `struct type'.
2482 (i387_register_to_value, i387_value_to_register): New prototypes.
2483 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2484 (x86_64_init_abi): Set convert_register_p, register_to_value and
2485 value_to_register here.
2486
2487 2003-06-14 Andrew Cagney <cagney@redhat.com>
2488
2489 * mips-tdep.c (mips_register_to_value): Make static.
2490 (mips_value_to_register): Make static.
2491 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2492 * ia64-tdep.c (ia64_register_raw_size): Make static.
2493 (ia64_register_virtual_size): Make static.
2494 (ia64_register_byte): Make static.
2495 * i387-tdep.c: Include "i387-tdep.h".
2496 (print_387_control_word): Delete function.
2497 (print_387_status_word): Delete function.
2498 (print_387_status_bits): Delete function.
2499 (print_387_control_bits): Delete function.
2500 * Makefile.in (i387-tdep.o): Update dependencies.
2501 * rdi-share/host.h (Fail): Declare.
2502 * remote-rdi.c (Fail): Update to match declaration.
2503
2504 2003-06-14 Andrew Cagney <cagney@redhat.com>
2505
2506 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2507 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2508 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2509 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2510 * README: Delete reference to remote-array.
2511 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2512 (remote-array.o): Delete target.
2513 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2514 * remote-array.c: Delete file.
2515
2516 2003-06-14 Andrew Cagney <cagney@redhat.com>
2517 Mark Kettenis <kettenis@gnu.org>
2518
2519 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2520 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2521 parameter with "frame".
2522 * gdbarch.h, gdbarch.c: Re-generate.
2523 * frame.h (put_frame_register): Declare.
2524 * frame.c (put_frame_register): New function.
2525 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2526 (legacy_register_to_value): Rewrite, use "frame" to get the
2527 register value.
2528 (legacy_value_to_register): Rewrite, use "frame" to find the
2529 register's location before storing.
2530 * arch-utils.h (legacy_convert_register_p): Update.
2531 (legacy_register_to_value, legacy_value_to_register): Update.
2532 * findvar.c (value_from_register): Rewrite, eliminate use of
2533 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2534 "frame" to REGISTER_TO_VALUE.
2535 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2536 lval_reg_frame_relative + lval_register branch of the switch. Do
2537 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2538 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2539 I386_EDI_REGNUM): New defines.
2540 (i386_next_regnum, i386_convert_register_p,
2541 i386_register_to_value, i386_value_to_register): New functions.
2542 (i386_register_convertible, i386_register_convert_to_virtual,
2543 i386_convert_to_raw): Remove functions.
2544 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2545 value_to_register instead of register_convertible,
2546 register_convert_to_virtual and register_convert_to_raw.
2547 * mips-tdep.c (mips_convert_register_p): New function.
2548 (mips_value_to_register): Replace mips_register_convert_from_type.
2549 (mips_register_to_value): Replace mips_register_convert_to_type.
2550 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2551 register_to_value.
2552 * alpha-tdep.c (alpha_convert_register_p): Update.
2553 (alpha_value_to_register): Update, store the register.
2554 (alpha_register_to_value): Update, fetch the register.
2555
2556 2003-06-14 Theodore A. Roth <troth@openavr.org>
2557
2558 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2559 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2560 Don't set deprecated_call_dummy_words.
2561 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2562 Don't set remote_translate_xfer_address.
2563 (avr_io_reg_read_command): Remove commented out debug printf.
2564 Wrap a long line.
2565
2566 2003-06-14 Theodore A. Roth <troth@openavr.org>
2567
2568 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2569 causes gdb to seg fault.
2570
2571 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
2572
2573 * sparc-nat.c (fetch_inferior_registers): Correct
2574 a reference to "registers".
2575
2576 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2577
2578 * Makefile.in (exc_request_U_h): Define
2579 (exc_request_S_h): Likewise.
2580 (msg_reply_S_h): Likewise.
2581 (msg_U_h): Likewise.
2582 (notify_S_h): Likewise.
2583 (process_reply_S_h): Likewise.
2584 (gnu-nat.o): Depend on gdb_obstack_h
2585 * gnu-nat.c: Include "gdb_obstack.h".
2586
2587 2003-06-13 Andrew Cagney <cagney@redhat.com>
2588
2589 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2590 * gdbarch.h, gdbarch.c: Re-generate.
2591
2592 2003-06-13 Andrew Cagney <cagney@redhat.com>
2593
2594 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2595 when deprecated REGISTER macros can be deleted.
2596 * gdbarch.h, gdbarch.c: Re-generate.
2597
2598 2003-06-13 Jim Blandy <jimb@redhat.com>
2599
2600 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2601 Linux entry point symbols for _dl_debug_state, too.
2602
2603 2003-06-13 Andrew Cagney <cagney@redhat.com>
2604
2605 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2606 available, do not use the FP register, and always save the TOS.
2607 * dummy-frame.c (dummy_frame_this_id): Do not assert
2608 SAVE_DUMMY_FRAME_TOS.
2609 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2610 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2611 (i386_push_dummy_call): Add 8 to the returned SP.
2612 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2613 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2614 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2615 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2616 (x86_64_push_dummy_call): Return "sp + 16".
2617 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2618 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2619 save_dummy_frame_tos.
2620
2621 2003-06-13 Jim Blandy <jimb@redhat.com>
2622
2623 * frv-tdep.c (frv_use_struct_convention): Delete static
2624 declaration for function deleted in my change of 2003-06-12.
2625
2626 2003-06-13 Theodore A. Roth <troth@openavr.org>
2627
2628 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2629 (avr_pointer_to_address): Shift code addrs left 1 bit.
2630 (avr_convert_from_func_ptr_addr): Delete function since operation is
2631 better handled by avr_address_to_pointer and avr_pointer_to_address.
2632 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2633
2634 2003-06-13 Mark Kettenis <kettenis@gnu.org>
2635
2636 From Kelley Cook <kelleycook@wideopenwest.com>:
2637 * configure.host: Accept i[34567]86 variants.
2638 * configure.tgt: Likewise.
2639 * nlm/configure.in: Likewise.
2640 * nlm/configure: Regenerated.
2641
2642 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2643
2644 * arm-tdep.c (solib-svr4.h): Dont' include it.
2645 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2646 * arm-linux-tdep.c: ... here. Make static.
2647 (arm_linux_init_abi): Register it.
2648 (solib-svr4.h): Include it.
2649 * Makefile.in: Update dependencies.
2650 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2651 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2652
2653 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2654
2655 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2656 indicate registers used for return values.
2657 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2658 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2659 members.
2660 (h8300_init_extra_frame_info): Ditto.
2661 (h8300_frame_locals_address): Removed.
2662 (h8300_frame_args_address): Removed.
2663 (h8300_extract_return_value): Use new regcache structure. Only care
2664 for 16 bit CPUs.
2665 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2666 (h8300_store_return_value): Use new regcache structure. Only care
2667 for 16 bit CPUs.
2668 (h8300h_store_return_value): Same function for 32 bit CPUs.
2669 (h8300_store_struct_return): Removed.
2670 (h8300_extract_struct_value_address): Use new regcache structure.
2671 (h8300h_extract_struct_value_address): Removed.
2672 (h8300_push_dummy_code): New function.
2673 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2674 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2675 set_gdbarch_store_return_value architecture dependent.
2676 Call set_gdbarch_push_dummy_code and
2677 set_gdbarch_extract_struct_value_address.
2678 Remove calls to set_gdbarch_frame_args_address,
2679 set_gdbarch_frame_locals_address,
2680 set_gdbarch_deprecated_store_struct_return,
2681 set_gdbarch_deprecated_extract_return_value,
2682 set_gdbarch_deprecated_extract_struct_value_address,
2683 set_gdbarch_deprecated_call_dummy_words and
2684 set_gdbarch_deprecated_sizeof_call_dummy_words.
2685
2686 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2687
2688 * h8300-tdep.c (h8300_register_byte): Remove.
2689 (h8300h_register_byte): Remove.
2690 (h8300_register_virtual_type): Remove. Substitute by...
2691 (h8300_register_type): New function.
2692 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2693 (h8300h_extract_struct_value_address): Ditto.
2694 (h8300_gdbarch_init): Drop calls to
2695 set_gdbarch_deprecated_register_byte and
2696 set_gdbarch_deprecated_register_virtual_type.
2697 Add call to set_gdbarch_register_type.
2698
2699 2003-06-13 Andrew Cagney <cagney@redhat.com>
2700
2701 * gdbarch.sh: Update comments on registers.
2702 (deprecated_register_byte): Rename register_byte.
2703 (deprecated_register_raw_size): Rename register_raw_size.
2704 (deprecated_register_virtual_size): Rename register_virtual_size.
2705 (deprecated_register_virtual_type): Rename register_virtual_type.
2706 * gdbarch.h, gdbarch.c: Re-generate.
2707 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2708 * vax-tdep.c (vax_gdbarch_init): Update.
2709 * v850-tdep.c (v850_gdbarch_init): Update.
2710 * sparc-tdep.c (sparc_gdbarch_init): Update.
2711 * sh-tdep.c (sh_gdbarch_init): Update.
2712 * s390-tdep.c (s390_gdbarch_init): Update.
2713 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2714 * ns32k-tdep.c: Update.
2715 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2716 * mips-tdep.c (mips_gdbarch_init): Update.
2717 * mcore-tdep.c (mcore_gdbarch_init): Update.
2718 * m68k-tdep.c (m68k_gdbarch_init): Update.
2719 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2720 * ia64-tdep.c (ia64_gdbarch_init): Update.
2721 * hppa-tdep.c (hppa_gdbarch_init): Update.
2722 * h8300-tdep.c (h8300_gdbarch_init): Update.
2723 * frv-tdep.c (frv_gdbarch_init): Update.
2724 * cris-tdep.c (cris_gdbarch_init): Update.
2725 * avr-tdep.c (avr_gdbarch_init): Update.
2726 * alpha-tdep.c (alpha_gdbarch_init): Update.
2727 * arm-tdep.c (arm_gdbarch_init): Update.
2728
2729 2003-06-13 Andrew Cagney <cagney@redhat.com>
2730
2731 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2732 mips_o32_use_struct_convention with always_use_struct_convention.
2733
2734 2003-06-12 David Carlton <carlton@kealia.com>
2735
2736 * cp-namespace.c (cp_set_block_scope): Comment out
2737 processing_has_namespace_info branch.
2738
2739 2003-06-12 Jim Blandy <jimb@redhat.com>
2740
2741 Recognize and skip 64-bit PowerPC Linux linkage functions.
2742 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2743 insn_pattern, insns_match_pattern, d_field, ds_field): New
2744 functions, macros, and types for working with PPC instructions.
2745 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2746 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2747 ppc64_skip_trampoline_code): New functions, variables, and macros
2748 for recognizing and skipping linkage functions.
2749 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2750 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2751
2752 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2753 register offsets for both the 32- and 64-bit interfaces.
2754
2755 Actually finish the job started by my change of 2003-05-29.
2756 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2757 other #definition of this.
2758 (ppc_linux_skip_trampoline_code): Remove declaration.
2759 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2760 static.
2761 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2762 method for GDBARCH.
2763
2764 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2765 'long' on ppc64-*-linux*.
2766
2767 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2768 isn't #defined, assume the register doesn't exist: act as if
2769 tdep->ppc_mq_regnum were -1.
2770
2771 * configure.host, configure.tgt: Add entries for
2772 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2773 powerpc/linux.mt.
2774 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2775 New files.
2776
2777 * arch-utils.c (always_use_struct_convention): New function.
2778 * arch-utils.h (always_use_struct_convention): New prototype.
2779 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2780 (alpha_gdbarch_init): Register always_use_struct_convention,
2781 instead of alpha_use_struct_convention.
2782 * cris-tdep.c (cris_use_struct_convention): Delete.
2783 (cris_gdbarch_init): Register always_use_struct_convention,
2784 instead of cris_use_struct_convention.
2785 * frv-tdep.c (frv_use_struct_convention): Delete.
2786 (frv_gdbarch_init): Register always_use_struct_convention,
2787 instead of frv_use_struct_convention.
2788 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2789 (h8300_gdbarch_init): Register always_use_struct_convention,
2790 instead of h8300_use_struct_convention.
2791 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
2792 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2793 instead of mips_o32_use_struct_convention.
2794
2795 2003-06-12 Andrew Cagney <cagney@redhat.com>
2796
2797 * wince.c: Include "mips-tdep.h".
2798 * mips-tdep.h (mips_next_pc): Declare.
2799 * mcore-tdep.c: Make more local functions static.
2800 * Makefile.in (wince.o): Update dependencies.
2801
2802 2003-06-12 David Carlton <carlton@kealia.com>
2803
2804 * symtab.c (lookup_symbol_aux_minsyms): Replace
2805 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2806 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2807 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2808 SYMBOL_NATURAL_NAME.
2809
2810 2003-06-12 Andreas Schwab <schwab@suse.de>
2811
2812 * Makefile.in (tuiDisassem.o): Update dependencies.
2813
2814 2003-06-12 David Carlton <carlton@bactrian.org>
2815
2816 * symtab.h: Delete declaration of make_symbol_overload_list.
2817 Add declaration of lookup_partial_symbol.
2818 * symtab.c (remove_params): Move to cp-support.c.
2819 (overload_list_add_symbol, make_symbol_overload_list)
2820 (sym_return_val_size, sym_return_val_index): Ditto.
2821 (lookup_partial_symbol): Make extern.
2822 * cp-support.h: Add declaration of make_symbol_overload_list.
2823 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2824 symtab.h, and block.h.
2825 (remove_params): Move here from symtab.c.
2826 (overload_list_add_symbol, make_symbol_overload_list)
2827 (sym_return_val_size, sym_return_val_index): Ditto.
2828 * valops.c: Include cp-support.h.
2829 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2830 frame_h, and block_h.
2831 (valops.o): Depend on cp_support_h.
2832
2833 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
2834
2835 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2836 substitute by NUM_REGS throughout.
2837 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2838 (h8300s_register_name): New function for H8S registers.
2839 (h8300sx_register_name): Ditto for H8SX registers.
2840 (h8300_print_register): Revise register printing, avoid depending
2841 on 32 bit long.
2842 (h8300_register_byte): Only care for H8/300 registers.
2843 (h8300h_register_byte): New function for any other architecture.
2844 (h8300_register_raw_size): Remove.
2845 (h8300_register_virtual_type): Revise to return actually useful
2846 type.
2847 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2848 (h8300h_extract_struct_value_address): New function for any other
2849 architecture.
2850 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2851 set_gdbarch_register_name, set_gdbarch_register_byte,
2852 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2853 Remove calls to set_gdbarch_deprecated_register_size,
2854 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2855 set_gdbarch_deprecated_max_register_raw_size,
2856 set_gdbarch_register_virtual_size and
2857 set_gdbarch_deprecated_max_register_virtual_size entirely.
2858 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2859 set_gdbarch_long_double_bit.
2860
2861 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2862
2863 * doublest.c (convert_doublest_to_floatformat): When dealing
2864 with the implied integer bit, only alter mant_bits if we are
2865 processing a full 32 bits of mantissa.
2866
2867 2003-06-11 David Carlton <carlton@bactrian.org>
2868
2869 * dictionary.h: New.
2870 * dictionary.c: New.
2871 * block.h: Add opaque declaration for struct dictionary.
2872 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2873 'sym' members.
2874 (BLOCK_DICT): New macro.
2875 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2876 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2877 BLOCK_SHOULD_SORT.
2878 (ALL_BLOCK_SYMBOLS): Update definition.
2879 * Makefile.in (SFILES): Add dictionary.c.
2880 (dictionary_h): New.
2881 (COMMON_OBS): Add dictionary.o.
2882 (dictionary.o): New.
2883 (ada-lang.o): Depend on dictionary_h.
2884 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
2885 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
2886 (mi-cmd-stack.o): Ditto.
2887 (gdbtk-cmds.o): Update dependencies.
2888 (gdbtk-stack.o): Ditto.
2889 * ada-lang.c: Include dictionary.h.
2890 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
2891 (fill_in_ada_prototype, debug_print_block): Ditto.
2892 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
2893 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
2894 'is_sorted'.
2895 * mdebugread.c: Include dictionary.h.
2896 (struct parse_stack): Delete 'maxsyms' member.
2897 (parse_symbol): Update calls to new_block. Delete calls to
2898 shrink_block. Use dictionary methods.
2899 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
2900 Update calls to new_symtab. Don't maintain maxsyms data.
2901 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
2902 (add_symbol): Just call dict_add_symbol.
2903 (new_symtab): Delete 'maxsyms' argument.
2904 (new_symtab): Update calls to new_block.
2905 (new_block): Delete 'maxsyms' argument; add 'function' argument.
2906 (shrink_block): Delete function.
2907 (fixup_sigtramp): Update call to new_block. Add symbol via
2908 dict_add_symbol.
2909 * jv-lang.c: Include dictionary.h.
2910 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
2911 appropriately. Set class_symtab->free_func. Make sure the
2912 blockvector is big enough to hold two blocks.
2913 (add_class_symtab_symbol): Use dictionary methods.
2914 (free_class_block): New function.
2915 (type_from_class): Replace explicit iteration by
2916 ALL_BLOCK_SYMBOLS.
2917 * symtab.h (struct symtab): Replace 'free_ptr' method by
2918 'free_func'.
2919 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
2920 sort_symtab_syms.
2921 * dwarfread.c (psymtab_to_symtab_1): Delete call to
2922 sort_symtab_syms.
2923 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
2924 Include dictionary.h.
2925 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
2926 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
2927 sort_symtab_syms.
2928 * objfiles.c: Include dictionary.h.
2929 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
2930 * buildsym.c: Include dictionary.h.
2931 (finish_block): Use dictionary methods.
2932 (end_symtab): Set free_func to NULL, not free_ptr.
2933 * tracepoint.c: Include dictionary.h.
2934 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
2935 (scope_info): Ditto.
2936 * stack.c: Include dictionary.h.
2937 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
2938 (print_block_frame_labels, print_frame_arg_vars)
2939 (print_frame_args): Ditto.
2940 * symmisc.c (free_symtab_block): Use dictionary methods.
2941 (dump_symtab): Ditto.
2942 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
2943 Include dictionary.h.
2944 * symfile.h: Delete declarations of sort_block_syms,
2945 sort_symtab_syms.
2946 * symfile.c (sort_block_syms): Delete.
2947 (sort_symtab_syms): Delete.
2948 * symtab.c: Include dictionary.h.
2949 (lookup_block_symbol): Use dictionary iterators.
2950 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
2951 (search_symbols, make_symbol_completion_list): Ditto.
2952 (make_symbol_overload_list): Ditto.
2953 * valops.c (value_of_local): Use dict_empty.
2954 Include dictionary.h.
2955
2956 2003-06-11 J. Brobecker <brobecker@gnat.com>
2957
2958 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
2959
2960 2003-06-11 David Carlton <carlton@bactrian.org>
2961
2962 * block.h (BLOCK_SHOULD_SORT): Delete.
2963 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
2964 blocks.
2965 * ada-lang.c (ada_add_block_symbols): Ditto.
2966 * symfile.c (sort_block_syms): Delete.
2967 (sort_symtab_syms): Ditto.
2968 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
2969 declarations.
2970 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
2971 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
2972 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
2973 * dwarfread.c (psymtab_to_symtab_1): Ditto.
2974 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
2975 * mdebugread.c (psymtab_to_symtab_1): Ditto.
2976 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2977
2978 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2979
2980 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
2981 bits to 128.
2982
2983 2003-06-11 Andrew Cagney <cagney@redhat.com>
2984
2985 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2986 REGISTER_CONVERTIBLE.
2987 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
2988 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
2989 * gdbarch.h, gdbarch.c: Re-generate.
2990 * arch-utils.h (deprecated_register_convertible_not): Rename
2991 generic_register_convertible_not.
2992 * arch-utils.c (deprecated_register_convertible_not): Rename
2993 generic_register_convertible.
2994 (legacy_convert_register_p, legacy_register_to_value): Update.
2995 * sh-tdep.c (sh64_push_arguments): Update.
2996 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
2997 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
2998 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
2999 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3000 * arch-utils.c (legacy_value_to_register): Update.
3001 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3002 (rs6000_register_convert_to_raw): Make parameter "from" const.
3003 * mips-tdep.c (mips_gdbarch_init): Update.
3004 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3005 * infcmd.c (default_print_registers_info): Update.
3006 * ia64-tdep.c (ia64_gdbarch_init): Update.
3007 (ia64_register_convert_to_raw): Make parameter "from" const.
3008 * i386-tdep.c (i386_gdbarch_init): Update.
3009 (i386_register_convert_to_raw): Update.
3010
3011 2003-06-11 Andrew Cagney <cagney@redhat.com>
3012
3013 * remote-fileio.c: Include "remote-fileio.h".
3014 * Makefile.in (remote-fileio.o): Update dependencies.
3015 (remote_fileio_h): Fix typo.
3016
3017 2003-06-11 Andrew Cagney <cagney@redhat.com>
3018
3019 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3020 (xstormy16_save_dummy_frame_tos): Make static.
3021 (_initialize_xstormy16_tdep): Add declaration.
3022 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3023 * v850-tdep.c: Make local functions static.
3024 (_initialize_v850_tdep): Add declaration.
3025 * sparc-tdep.c: Make local functions static.
3026 (_initialize_sparc_tdep): Add declaration.
3027 * sh-tdep.c: Make local functions static.
3028 (_initialize_sh_tdep): Add declaration.
3029 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3030 * s390-tdep.c: Make local functions static.
3031 (_initialize_s390_tdep): Add declaration.
3032 * dbxread.c (find_stab_function_addr): Make static.
3033 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3034 * ocd.c (_initialize_remote_ocd): Add declaration.
3035 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3036 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3037 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3038 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3039 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3040 * remote-array.c (_initialize_array): Add declaration.
3041 (_initialize_remote_monitors): Add declaration.
3042 * remote-mips.c: Make local functions static.
3043 (_initialize_remote_mips): Add declaration.
3044 * mcore-tdep.c: Make all local functions static.
3045 (_initialize_mcore_tdep): Add declaration.
3046 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3047 * abug-rom.c (_initialize_abug_rom): Add declaration.
3048 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3049 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3050 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3051 * remote-est.c (_initialize_est): Add declaration.
3052 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3053 (m68hc11_call_dummy_address): Make static.
3054 * ia64-tdep.c: Make local functions static.
3055 (_initialize_ia64_tdep): Add declaration.
3056 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3057 * monitor.c (monitor_wait_filter): Make static.
3058 (_initialize_remote_monitors): Add declaration.
3059 * remote-hms.c (_initialize_remote_hms): Add declaration.
3060 * remote-e7000.c (fetch_regs_from_dump): Make static.
3061 (expect_n): Make static.
3062 (_initialize_remote_e7000): Add declaration.
3063 * ser-e7kpc.c: Always include "defs.h".
3064 (_initialize_ser_e7000pc): Add declaration.
3065 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3066 * cris-tdep.c: Make all but one function static.
3067 (_initialize_cris_tdep): Add declaration.
3068 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3069 * solib.c (update_solib_list): Make static.
3070 (_initialize_solib): Add declaration.
3071 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3072 (_initialize_avr_tdep): Add declaration.
3073 * remote-rdi.c (voiddummy): Make static.
3074 (_initialize_remote_rdi): Add declaration.
3075 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3076 * remote-rdp.c (send_rdp): Make static.
3077 (_initialize_remote_rdp): Add declaration.
3078 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3079
3080 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
3081
3082 * remote-fileio.c: Make ari happy.
3083
3084 2003-06-10 J. Brobecker <brobecker@gnat.com>
3085
3086 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3087 fetching the trailing bytes of the buffer we are about to write.
3088
3089 2003-06-10 Andrew Cagney <cagney@redhat.com>
3090
3091 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3092 * Makefile.in (remote-fileio.o): Update dependencies.
3093 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3094 include <setjmp.h>, or <sys/types.h> conditional on USG.
3095 (remote_fio_jmp_buf): Delete global variable.
3096
3097 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
3098 Martin M. Hunt <hunt@redhat.com>
3099
3100 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3101 (SFILES): Add remote-fileio.c.
3102 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3103 dependencies for building remote.o.
3104 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3105 * remote-fileio.h: New header file defining remote File-I/O interface.
3106 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3107 static storage class.
3108 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3109 'F' packet.
3110 (_initialize_remote): Call initialize_remote_fileio().
3111 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3112 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3113 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3114 (captured_main): Initialize new ui_files.
3115 * ui-file.c: Add read and fgets input functions.
3116 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3117 (null_file_read): New function.
3118 (ui_file_read): New function.
3119 (set_ui_file_read): New function.
3120 (stdio_file_read): New function.
3121 * ui-file.h: New type ui_file_read_ftype.
3122 (set_ui_file_read): Declare.
3123 (ui_file_read): Declare.
3124
3125 2003-06-09 Andrew Cagney <cagney@redhat.com>
3126
3127 * frame.h (deprecated_unwind_get_saved_register): Rename
3128 generic_unwind_get_saved_register, update comments.
3129 * mips-tdep.c (mips_get_saved_register): Update.
3130 * frame.c (deprecated_unwind_get_saved_register): Update.
3131
3132 2003-06-09 Andrew Cagney <cagney@redhat.com>
3133
3134 * vax-tdep.c (vax_frame_locals_address): Delete function.
3135 (vax_gdbarch_init): Do not set frame_locals_address.
3136 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3137 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3138 * s390-tdep.c (s390_frame_args_address): Delete function.
3139 (s390_gdbarch_init): Do not set frame_args_address or
3140 frame_locals_address.
3141 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3142 (ns32k_gdbarch_init): Do not set frame_locals_address.
3143 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3144 (hppa_frame_locals_address): Delete function.
3145 (hppa_gdbarch_init): Do not set frame_args_address, or
3146 frame_locals_address.
3147 * arm-tdep.c (arm_frame_args_address): Delete.
3148 (arm_frame_locals_address): Delete.
3149 (arm_gdbarch_init): Do not set frame_args_address, or
3150 frame_locals_address.
3151
3152 2003-06-09 Andrew Cagney <cagney@redhat.com>
3153
3154 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3155 * gdbarch.h, gdbarch.c: Re-generate.
3156 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3157 * arch-utils.c (frame_num_args_unknown): Delete function.
3158 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3159 (frame_info): Use FRAME_NUM_ARGS_P.
3160 * arm-tdep.c (arm_frame_num_args): Delete function.
3161 (arm_gdbarch_init): Do not set frame_num_args.
3162 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3163 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3164 (hppa_gdbarch_init): Do not set frame_num_args.
3165 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3166 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3167 frame_num_args to default frame_num_args_unknown.
3168 * v850-tdep.c (v850_gdbarch_init): Ditto.
3169 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3170 * sh-tdep.c (sh_gdbarch_init): Ditto.
3171 * s390-tdep.c (s390_gdbarch_init): Ditto.
3172 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3173 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3174 * mips-tdep.c (mips_gdbarch_init): Ditto.
3175 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3176 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3177 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3178 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3179 * i386-tdep.c (i386_gdbarch_init): Ditto.
3180 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3181 * frv-tdep.c (frv_gdbarch_init): Ditto.
3182 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3183 * cris-tdep.c (cris_gdbarch_init): Ditto.
3184 * avr-tdep.c (avr_gdbarch_init): Ditto.
3185 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3186
3187 2003-06-09 Andrew Cagney <cagney@redhat.com>
3188
3189 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3190 (print_frame_args): Moved to "stack.c".
3191 * stack.c: Include "gdb_assert.h".
3192 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3193 (print_frame_args): Moved from "printcmd.c".
3194 * frame.h (print_frame_args): Delete declaration.
3195 * Makefile.in (stack.o): Update dependencies.
3196
3197 2003-06-08 Andrew Cagney <cagney@redhat.com>
3198
3199 * frame.c (get_prev_frame): Remove reference to
3200 frame_args_address_correct in comments.
3201 * frame-base.c (default_frame_args_address): Delete code
3202 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3203 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3204 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3205 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3206 (vax_frame_args_address_correct): Delete declaration.
3207
3208 2003-06-08 Andrew Cagney <cagney@redhat.com>
3209
3210 * gdbarch.sh (UNWIND_SP): Add.
3211 * gdbarch.h, gdbarch.c: Re-generate.
3212 * frame.c (frame_sp_unwind): New function.
3213 (get_frame_sp): New function.
3214 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3215 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3216 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3217 value.
3218 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3219 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3220
3221 2003-06-08 Andrew Cagney <cagney@redhat.com>
3222
3223 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3224 REMOTE_BREAKPOINT.
3225 * remote.c: Update.
3226 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3227 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3228 * config/m68k/tm-sun3.h: Update.
3229 * config/m68k/tm-m68klynx.h: Update.
3230 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3231
3232 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3233 trad_frame". Update comments.
3234 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3235 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3236 (trad_frame_register_value, trad_frame_prev_register): Update.
3237
3238 2003-06-08 Andrew Cagney <cagney@redhat.com>
3239
3240 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3241 from GCC's acinclude.m4.
3242 * configure.in: Check for getopt's delcaration.
3243 * aclocal.m4, config.in, configure: Re-generate.
3244 * main.c (error_init): Delete declaration.
3245 * defs.h (error_init): Declare.
3246 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3247 (rs6000_convert_from_func_ptr_addr): Make static.
3248 (_initialize_rs6000_tdep): Add declaration.
3249 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3250 (show_commands, set_verbose, show_history): Delete declaration.
3251 * top.h (set_verbose): Add declaration.
3252 (show_history, set_history, show_commands): Add declaration.
3253 (do_restore_instream_cleanup): Add declaration.
3254 * objc-lang.c (specialcmp): Make static.
3255 (print_object_command): Make static.
3256 (find_objc_msgsend): Make static.
3257 (find_objc_msgcall_submethod_helper): Make static.
3258 (find_objc_msgcall_submethod): Make static.
3259 (_initialize_objc_language): Add declaration.
3260 (find_implementation_from_class): Make static.
3261 (find_implementation): Make static.
3262 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3263 * objc-lang.h (lookup_struct_typedef): Add declaration.
3264 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3265 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3266 (do_restore_user_call_depth): Make static.
3267 (do_restore_instream_cleanup): Delete declaration.
3268 (dont_repeat): Delete declaration.
3269 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3270 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3271 * reggroups.c (_initialize_reggroup): Add declaration.
3272 * cp-support.c (_initialize_cp_support): Add declaration.
3273 * cp-abi.c (_initialize_cp_abi): Add declaration.
3274 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3275 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3276 (_initialize_gnu_v3_abi): Add declaration.
3277 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3278 (_initialize_gnu_v2_abi): Add declaration.
3279 * frame-base.c (_initialize_frame_base): Add declaration.
3280 * doublest.c (floatformat_from_length): Make static.
3281 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3282 * frame.c (create_sentinel_frame): Make static.
3283 (_initialize_frame): Add declaration.
3284 * top.c (do_catch_errors): Make static.
3285 (gdb_rl_operate_and_get_next_completion): Make static.
3286 * typeprint.c: Include "typeprint.h".
3287 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3288 (sentinel_frame_this_id): Make static.
3289 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3290 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3291 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3292 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3293 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3294 * maint.c (maintenance_print_architecture): Make static.
3295 * signals/signals.c (_initialize_signals): Add declaration.
3296 * std-regs.c (_initialize_frame_reg): Add declaration.
3297 * jv-exp.y (push_variable): ISO C definition.
3298 (push_qualified_expression_name): Ditto.
3299 * memattr.c (_initialize_mem): Add declaration.
3300 * remote.c (remote_check_watch_resources): Make static.
3301 (remote_stopped_by_watchpoint): Make static.
3302 (remote_stopped_data_address): Make static.
3303 * d10v-tdep.c (nr_dmap_regs): Make static.
3304 (a0_regnum): Make static.
3305 (d10v_frame_unwind_cache): Make static.
3306 (d10v_frame_p): Make static.
3307 * osabi.c (show_osabi): Make static.
3308 (_initialize_gdb_osabi): Add extern declaration.
3309 * gdbtypes.c (make_qualified_type): Make static.
3310 (safe_parse_type): Make static.
3311 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3312 * macrotab.c (macro_bcache_free): Make static.
3313 * interps.c (interp_set_quiet): Make static.
3314 (interpreter_exec_cmd): Make static.
3315 * stack.h (select_frame_command): New file.
3316 * stack.c: Include "stack.h".
3317 (select_frame_command_wrapper): Delete function.
3318 (select_frame_command): Make global.
3319 * infcall.c: Include "infcall.h".
3320 * linespec.c: Include "linespec.h".
3321 * symfile.c (sections_overlap): Make static.
3322 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3323 * charset.c (_initialize_charset): Add missing prototype.
3324 * regcache.c (init_legacy_regcache_descr): Make static.
3325 (do_regcache_xfree): Make static.
3326 (regcache_xfer_part): Make static.
3327 (_initialize_regcache): Add missing prototype.
3328 * breakpoint.c (parse_breakpoint_sals): Make static.
3329 (breakpoint_sals_to_pc): Make static.
3330 * interps.h (clear_interpreter_hooks): ISO C declaration.
3331 * Makefile.in (stack_h): Define.
3332 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3333 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3334
3335 2003-06-08 Andrew Cagney <cagney@redhat.com>
3336
3337 * Makefile.in (d10v-tdep.o): Update dependencies.
3338 (SFILES): Add trad-frame.c.
3339 (trad_frame_h): Define.
3340 (COMMON_OBS): Add trad-frame.o.
3341 (trad-frame.o): Specify dependencies.
3342 * d10v-tdep.c: Include "trad-frame.h".
3343 (saved_regs_unwinder): Delete function.
3344 (d10v_frame_prev_register): Use trad_frame_prev_register.
3345 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3346 trad_frame", delete "regs" and "prev_sp".
3347 (prologue_find_regs): Use trad-frame.
3348 * trad-frame.h, trad-frame.c: New files.
3349
3350 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3351
3352 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3353
3354 2003-06-07 Adam Fedor <fedor@gnu.org>
3355
3356 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3357 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3358 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3359 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3360 resolve_msgsend_super, resolve_msgsend_super_stret):
3361 Use it.
3362
3363 2003-06-07 Andrew Cagney <cagney@redhat.com>
3364
3365 * symfile.h: Re-indent, clean up comments.
3366
3367 2003-06-07 Andrew Cagney <cagney@redhat.com>
3368
3369 * inferior.h (deprecated_write_sp): Replace
3370 generic_target_write_sp.
3371 * regcache.c (deprecated_write_sp): Replace
3372 generic_target_write_sp.
3373 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3374 * vax-tdep.c (vax_gdbarch_init): Update.
3375 * v850-tdep.c (v850_gdbarch_init): Update.
3376 * sparc-tdep.c (sparc_gdbarch_init): Update.
3377 * sh-tdep.c (sh_gdbarch_init): Update.
3378 * s390-tdep.c (s390_gdbarch_init): Update.
3379 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3380 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3381 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3382 * mcore-tdep.c (mcore_gdbarch_init): Update.
3383 * m68k-tdep.c (m68k_gdbarch_init): Update.
3384 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3385 * ia64-tdep.c (ia64_gdbarch_init): Update.
3386 * h8300-tdep.c (h8300_gdbarch_init): Update.
3387 * frv-tdep.c (frv_gdbarch_init): Update.
3388 * cris-tdep.c (cris_gdbarch_init): Update.
3389 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3390
3391 2003-06-07 Andrew Cagney <cagney@redhat.com>
3392
3393 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3394 Assert that PC_REGNUM is valid.
3395 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3396
3397 2003-06-07 Andrew Cagney <cagney@redhat.com>
3398
3399 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3400 * gdbarch.h, gdbarch.c: Regenerate.
3401 * mn10300-tdep.c: Include "gdb_assert.h".
3402 (mn10300_read_fp): New function.
3403 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3404 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3405 * ia64-tdep.c: Include "gdb_assert.h".
3406 (ia64_read_fp): New function.
3407 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3408 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3409 * regcache.c (generic_target_read_sp): Delete function.
3410 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3411 * inferior.h (generic_target_read_sp): Delete declaration.
3412 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3413 generic_target_read_sp.
3414 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3415 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3416 * sh-tdep.c (sh_gdbarch_init): Ditto.
3417 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3418 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3419
3420 2003-06-07 Andrew Cagney <cagney@redhat.com>
3421
3422 * gdbarch.sh: Comment each field of startup_gdbarch.
3423 * gdbarch.h, gdbarch.c: Re-generate.
3424
3425 2003-06-07 Andrew Cagney <cagney@redhat.com>
3426
3427 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3428 * gdbarch.h, gdbarch.c: Re-generate.
3429 * regcache.c: Update comments on read_pc et.al.
3430 (generic_target_read_pc): Delete function.
3431 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3432 * inferior.h (generic_target_read_pc): Delete declaration.
3433 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3434 generic_target_read_pc.
3435 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3436 * sh-tdep.c (sh_gdbarch_init): Ditto.
3437 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3438 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3439
3440 2003-06-07 Andrew Cagney <cagney@redhat.com>
3441
3442 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3443 "index" with "special_local_sect". Use strcmp instead of STREQ.
3444 Append period to coments.
3445
3446 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3447
3448 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3449 (elfstab_offset_sections): Likewise.
3450 * gdb-stabs.h (stab_section_info): Likewise.
3451 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3452 * objfiles.c (objfile_relocate): Likewise.
3453 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3454 * remote.c (get_offsets): Likewise.
3455 (remote_cisco_objfile_relocate): Likewise.
3456 * somread.c (som_symfile_offsets): Likewise.
3457 * symfile.c (alloc_section_addr_info): New function.
3458 (build_section_addr_info_from_section_tab): Use it.
3459 (free_section_addr_info): Adjust.
3460 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3461 (syms_from_objfile): Allocate local_addr dynamically.
3462 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3463 dynamically.
3464 (add_symbol_file_command): Allocate sect_opts dynamically.
3465 (reread_symbols): Avoid use of SECT_OFF_MAX.
3466 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3467 (alloc_section_addr_info): Declare it.
3468 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3469 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3470 dynamically.
3471 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3472
3473 2003-06-06 Andrew Cagney <cagney@redhat.com>
3474
3475 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3476 (d10v_frame_unwind_cache): Do not set "return_pc".
3477
3478 2003-06-06 Michael Snyder <msnyder@redhat.com>
3479
3480 * h8300-tdep.c: Make tidy (long lines).
3481
3482 2003-06-06 Michal Ludvig <mludvig@suse.cz>
3483
3484 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3485 to regcache_collect().
3486
3487 2003-06-05 J. Brobecker <brobecker@gnat.com>
3488
3489 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3490 pc_in_sigtramp multiarch method.
3491 (hppa_hpux_som_init_abi): Use it.
3492 (hppa_hpux_elf_init_abi): Likewise.
3493 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3494 macro has been multiarched.
3495 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3496 macro here, as hppa64 isn't multiarched yet.
3497
3498 2003-06-05 Andrew Cagney <cagney@redhat.com>
3499
3500 * Makefile.in (value_h): Add $(frame_h).
3501 * value.h: Include "frame.h".
3502 (struct value): Replace "frame_addr" with "frame_id".
3503 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3504 * values.c (allocate_value): Use VALUE_FRAME_ID.
3505 (value_copy): Use VALUE_FRAME_ID.
3506 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3507 * valops.c (value_assign): Update. Use frame_find_by_id.
3508
3509 2003-06-05 Michal Ludvig <mludvig@suse.cz>
3510
3511 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3512 in each pass.
3513
3514 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3515
3516 * thread-db.c (check_event): For create/death event breakpoints,
3517 loop through all messages to ensure that we read the message
3518 corresponding to the breakpoint we are at.
3519
3520 2003-06-04 Michael Snyder <msnyder@redhat.com>
3521
3522 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3523
3524 2003-06-04 Mark Kettenis <kettenis@gnu.org>
3525
3526 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3527 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3528 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3529 when handling .eh_frame sections.
3530
3531 2003-06-04 J. Brobecker <brobecker@gnat.com>
3532
3533 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3534 prepare_to_proceed procedure instead of the hppa-specific one.
3535 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3536
3537 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
3538
3539 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3540 * config.in: Regenerated.
3541 * configure.in: Add test for syscall function and check for
3542 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3543 * configure: Regenerated.
3544 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3545 <sys/syscall.h>.
3546 (kill_lwp): New function that uses tkill syscall or
3547 uses kill, depending on whether threading model is nptl or not.
3548 All callers of kill() changed to use kill_lwp().
3549 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3550 see if all threads have already exited in the nptl model.
3551 (stop_and_resume_callback): New callback function used by the
3552 lin_lwp_wait thread exit handling code.
3553 (stop_wait_callback): Check for threads already having exited and
3554 delete such threads fromt the lwp list when discovered.
3555 (stop_callback): Don't assert retcode of kill call.
3556
3557 Roland McGrath <roland@redhat.com>
3558 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3559 nptl libthread_db.
3560
3561 2003-06-03 Richard Henderson <rth@redhat.com>
3562
3563 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3564 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3565 (alpha_sigtramp_frame_prev_register): Likewise.
3566 (alpha_heuristic_frame_prev_register): Likewise.
3567 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3568
3569 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3570 alpha-specific register id names.
3571 (alpha_mdebug_frame_unwind_cache): Likewise.
3572 (alpha_mdebug_frame_prev_register): Likewise.
3573
3574 2003-06-03 Richard Henderson <rth@redhat.com>
3575
3576 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3577 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3578 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3579 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3580 unwind routines.
3581 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3582 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3583 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3584
3585 * alpha-linux-tdep.c: Remove unnecessary includes.
3586 * Makefile.in (alpha-linux-tdep.o): Update.
3587
3588 2003-06-03 Richard Henderson <rth@redhat.com>
3589
3590 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3591 (alphabsd_fill_fpreg): Likewise.
3592
3593 2003-06-03 J. Brobecker <brobecker@gnat.com>
3594
3595 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3596 references to struct frame_info fields by calls to the equivalent
3597 accessors. Necessary now that frame_info is opaque.
3598
3599 2003-06-03 J. Brobecker <brobecker@gnat.com>
3600
3601 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3602 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3603 structure, field no longer exists.
3604
3605 2003-06-03 J. Brobecker <brobecker@gnat.com>
3606
3607 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3608 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3609
3610 2003-06-03 J. Brobecker <brobecker@gnat.com>
3611
3612 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3613 references to struct frame_info fields by calls to the equivalent
3614 accessors. Necessary now that frame_info is opaque.
3615
3616 2003-06-03 J. Brobecker <brobecker@gnat.com>
3617
3618 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3619 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3620 structure, field no longer exists.
3621
3622 2003-06-03 Theodore A. Roth <troth@openavr.org>
3623
3624 * remote.c (init_remote_state): Compute sizeof_g_packet by
3625 accumulation of the size of all registers instead of blindly using
3626 DEPRECATED_REGISTER_BYTES.
3627
3628 2003-06-03 Michael Snyder <msnyder@redhat.com>
3629
3630 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3631 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3632 for h8300sx.
3633
3634 2003-06-03 J. Brobecker <brobecker@gnat.com>
3635
3636 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3637 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3638
3639 2003-06-03 Andrew Cagney <cagney@redhat.com>
3640
3641 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3642 (sparc_convert_to_raw): Delete function.
3643 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3644 register_convert_to_virtual.
3645
3646 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3647
3648 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3649 layer if not dealing with a statically-linked threaded program.
3650
3651 2003-06-03 Kris Warkentin <kewarken@qnx.com>
3652
3653 * solib.c (solib_open): Update comment to reflect actual search order.
3654
3655 2003-06-03 Andrew Cagney <cagney@redhat.com>
3656
3657 * frame.c (get_frame_memory_signed): New function.
3658 (get_frame_memory, get_frame_memory_unsigned): New function.
3659 (get_frame_arch): New function.
3660 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3661 (get_frame_memory, get_frame_unsigned_memory): Declare.
3662 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3663 get_frame_memory_unsigned and get_frame_arch.
3664 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3665
3666 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3667
3668 * MAINTAINERS (write after approval): Add myself.
3669
3670 2003-06-03 Jim Blandy <jimb@redhat.com>
3671
3672 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3673 elements of gregset_t are 64 bits each, but access registers
3674 are still 32 bits, so they're packed two per gregset_t
3675 element. Unpack/pack them properly.
3676
3677 2003-06-02 David Carlton <carlton@bactrian.org>
3678
3679 * linespec.c (find_methods): Break out code into
3680 add_matching_methods and add_constructors.
3681 (add_matching_methods): New.
3682 (add_constructors): Ditto.
3683
3684 2003-06-02 Andrew Cagney <cagney@redhat.com>
3685
3686 * sparc-tdep.c (sparc_print_registers): Delete call to
3687 REGISTER_CONVERTIBLE.
3688 (sparc_gdbarch_init): Do not set register_convertible.
3689 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3690 * frv-tdep.c (frv_gdbarch_init): Ditto.
3691 * cris-tdep.c (cris_gdbarch_init): Ditto.
3692
3693 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
3694
3695 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3696 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3697 (syms_from_objfile): Ditto.
3698
3699 2003-06-03 Andreas Schwab <schwab@suse.de>
3700
3701 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3702 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3703
3704 2003-06-02 Richard Henderson <rth@redhat.com>
3705
3706 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3707 a member of all_reggroup.
3708
3709 2003-06-02 Richard Henderson <rth@redhat.com>
3710
3711 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3712 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3713 (alpha_lds, alpha_sts): New.
3714 (alpha_convert_register_p): Change from _register_convertible.
3715 (alpha_register_to_value): Change from _convert_to_virtual;
3716 restructure and fail for type sizes other than 4 or 8.
3717 (alpha_value_to_register): Similarly.
3718 (alpha_extract_return_value): Use alpha_sts.
3719 (alpha_store_return_value): Use alpha_lds.
3720 (alpha_gdbarch_init): Update hooks.
3721
3722 2003-06-02 Richard Henderson <rth@redhat.com>
3723
3724 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3725 regnum identifiers.
3726 (alpha_sigtramp_register_address): Likewise.
3727
3728 2003-06-02 Richard Henderson <rth@redhat.com>
3729
3730 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3731 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3732 * alpha-tdep.h: Declare them.
3733
3734 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3735 Remove zerobuf. Don't error on UNIQUE.
3736 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3737 (ALPHA_REGSET_UNIQUE): Provide default.
3738 (supply_gregset): Use alpha_supply_int_regs.
3739 (fill_gregset): Use alpha_fill_int_regs.
3740 (supply_fpregset): Use alpha_supply_fp_regs.
3741 (fill_fpregset): Use alpha_fill_fp_regs.
3742 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3743 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3744 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3745 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3746 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3747 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3748
3749 2003-06-02 Richard Henderson <rth@redhat.com>
3750
3751 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3752
3753 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3754 (alpha_store_return_value): Likewise.
3755
3756 2003-06-02 David Carlton <carlton@math.stanford.edu>
3757
3758 * block.c (contained_in): Add 'const' to arguments.
3759 (block_function): Ditto.
3760 * block.h: Update declarations for block_function and
3761 contained_in.
3762
3763 2003-06-02 David Carlton <carlton@math.stanford.edu>
3764
3765 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3766 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3767 * p-valprint.c (pascal_val_print): Ditto.
3768 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3769
3770 2003-06-02 Richard Henderson <rth@redhat.com>
3771
3772 * alpha-tdep.c (alpha_push_dummy_call): Use
3773 builtin_type_ieee_double_little instead of builtin_type_double.
3774
3775 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
3776 sign-extension of 32-bit values.
3777 (alpha_store_return_value): Similarly.
3778
3779 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3780 (alpha_extract_return_value): Likewise.
3781 (alpha_store_return_value): Likewise.
3782
3783 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3784 (alpha_store_return_value): Error on IEEE Quad floats.
3785
3786 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3787 (alpha_extract_struct_value_address): Likewise.
3788 (alpha_store_return_value): Likewise.
3789 (alpha_store_struct_return): Remove.
3790 (alpha_gdbarch_init): Update hook registration to match.
3791
3792 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3793 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3794 macros where appropriate.
3795 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3796 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
3797
3798 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3799 for SP, GP; void_func_ptr for PC; non-language-specific types
3800 for all others.
3801 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
3802
3803 2003-06-02 Richard Henderson <rth@redhat.com>
3804
3805 * top.h (lim_at_start): Declare.
3806 * main.c (captured_main): Set it.
3807 * top.c (lim_at_start): Define.
3808 (command_loop): Use it instead of &environ.
3809 * event-top.c (command_handler): Likewise.
3810
3811 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3812
3813 * mipsnbsd-tdep.c: Update copyright years.
3814 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3815
3816 2003-06-01 Richard Henderson <rth@redhat.com>
3817
3818 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3819 (alpha-linux-tdep.o): Update dependencies.
3820 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3821 * alpha-mdebug-tdep.c: Remove unneeded includes.
3822
3823 2003-06-01 Richard Henderson <rth@redhat.com>
3824
3825 * alpha-tdep.c (alpha_register_reggroup_p): New.
3826 (alpha_gdbarch_init): Register it.
3827
3828 2003-06-02 Andrew Cagney <cagney@redhat.com>
3829
3830 * dwarfread.c: Eliminate "register"
3831 (decode_die_type): Eliminate assignment within "if".
3832 (struct_type, decode_array_element_type): Ditto.
3833 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3834 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3835 (decode_modified_type, completedieinfo): Ditto.
3836 * block.c: Eliminate "register".
3837 (blockvector_for_pc_sect): Eliminate assignment within "if".
3838 * cp-support.h (struct symbol): Opaque declaration.
3839 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3840
3841 2003-06-01 Richard Henderson <rth@redhat.com>
3842
3843 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3844 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
3845
3846 2003-06-01 Adam Fedor <fedor@gnu.org>
3847
3848 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3849 * gdbarch.[ch]: Regenerate.
3850 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3851 (hppa_gdbarch_init): Set it in the gdbarch vector.
3852 * i386-tdep.c (i386_fetch_pointer_argument): New
3853 (i386_gdbarch_init): Set it into gdbarch.
3854 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3855 (rs6000_gdbarch_init): Set it in gdbarch.
3856 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3857 (sparc_gdbarch_init): Set it in gdbarch.
3858
3859 2003-06-01 Andrew Cagney <cagney@redhat.com>
3860
3861 * defs.h (extract_address): Delete declaration.
3862 * findvar.c (extract_address): Delete function.
3863 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3864 extract_address with the inline equivalent,
3865 extract_unsigned_integer.
3866 (xstormy16_extract_struct_value_address): Ditto.
3867 (xstormy16_pointer_to_address): Ditto.
3868 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3869 * v850-tdep.c (v850_push_arguments): Ditto.
3870 (v850_extract_return_value): Ditto.
3871 (v850_extract_struct_value_address): Ditto.
3872 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3873 (sparcnbsd_get_longjmp_target_64): Ditto.
3874 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3875 (get_longjmp_target): Ditto.
3876 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3877 (sh64_extract_struct_value_address): Ditto.
3878 (sh_push_arguments): Ditto.
3879 (sh64_push_arguments): Ditto.
3880 * remote-vxsparc.c (vx_read_register): Ditto.
3881 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
3882 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
3883 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
3884 * mipsv4-nat.c (get_longjmp_target): Ditto.
3885 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
3886 * mips-nat.c (get_longjmp_target): Ditto.
3887 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
3888 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
3889 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
3890 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
3891 * irix5-nat.c (get_longjmp_target): Ditto.
3892 * irix4-nat.c (get_longjmp_target): Ditto.
3893 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
3894 (ia64_push_arguments): Ditto.
3895 * hpux-thread.c (hpux_thread_store_registers): Ditto.
3896 * h8300-tdep.c (h8300_push_arguments): Ditto.
3897 (h8300_store_return_value): Ditto.
3898 (h8300_extract_struct_value_address): Ditto.
3899 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
3900 (frv_push_arguments): Ditto.
3901 * avr-tdep.c (avr_pointer_to_address): Ditto.
3902 (avr_push_arguments): Ditto.
3903 * arm-tdep.c (arm_push_dummy_call): Ditto.
3904 (arm_get_longjmp_target): Ditto.
3905 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3906 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
3907 (alpha_get_longjmp_target): Ditto.
3908
3909 * solib-irix.c (extract_mips_address): Inline extract_address,
3910 replacing it with extract_signed_integer.
3911 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3912 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
3913 (first_link_map_member, open_symbol_file_object): Ditto.
3914 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
3915 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3916 (LM_NEXT, LM_NAME): Ditto.
3917
3918 2003-06-01 Richard Henderson <rth@redhat.com>
3919
3920 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
3921 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
3922 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
3923 (alpha_cannot_store_register): Likewise.
3924 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
3925 * alpha-nat.c (supply_gregset): Likewise.
3926 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
3927
3928 2003-06-01 Andrew Cagney <cagney@redhat.com>
3929
3930 * infcall.c (call_function_by_hand): Update comment on
3931 DEPRECATED_DUMMY_WRITE_SP.
3932
3933 * mips-tdep.c (mips_gdbarch_init): Do not set
3934 deprecated_dummy_write_sp.
3935 (mips_eabi_push_dummy_call): Set the SP register.
3936 (mips_o64_push_dummy_call): Set the SP register.
3937 (mips_o32_push_dummy_call): Set the SP register.
3938 (mips_n32n64_push_dummy_call): Set the SP register.
3939
3940 2003-06-01 Richard Henderson <rth@redhat.com>
3941
3942 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
3943 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
3944 (supply_gregset): Likewise.
3945 * alpha-tdep.c (alpha_store_return_value): Likewise.
3946 (alpha_get_longjmp_target): Likewise.
3947 (alpha_register_name): Constify array.
3948 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
3949 deprecated_register_size, deprecated_register_bytes,
3950 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
3951 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
3952 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
3953
3954 2003-06-01 Richard Henderson <rth@redhat.com>
3955
3956 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
3957 from arg_reg_buffer to regcache to avoid double conversion.
3958
3959 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3960
3961 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
3962 SP_REGNUM.
3963 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
3964 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
3965
3966 2003-06-01 Richard Henderson <rth@redhat.com>
3967
3968 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
3969 (decode_frame_entry): Set it. Skip FDE augmentation.
3970
3971 2003-06-01 Richard Henderson <rth@redhat.com>
3972
3973 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
3974 not overlapping PC_REGNUM.
3975
3976 2003-06-01 Richard Henderson <rth@redhat.com>
3977
3978 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
3979 alpha_push_arguments. Don't dump argument register data to
3980 the target stack. Fix float and 128-bit long double semantics.
3981 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
3982 (alpha_fix_call_dummy): Remove.
3983 (alpha_call_dummy_words): Remove.
3984 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
3985
3986 2003-06-01 Richard Henderson <rth@redhat.com>
3987
3988 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
3989
3990 2003-06-01 Andrew Cagney <cagney@redhat.com>
3991
3992 * mips-tdep.c (is_mips16_addr): New function.
3993 (make_mips16_addr, unmake_mips16_addr): New functions.
3994 (pc_is_mips16, mips_fetch_instruction): Use.
3995 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
3996 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
3997 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
3998 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
3999 TARGET_MIPS.
4000 * config/mips/tm-mips.h: Update copyright.
4001 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4002 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4003 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4004 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4005 (TM_PRINT_INSN_MACH): Delete.
4006 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4007
4008 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4009 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4010 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4011 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4012 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4013 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4014 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4015 mips*-*-riscos* and mips*-*-sysv* onto mips.
4016 * config/mips/mips64.mt: New file.
4017 * config/mips/mips.mt: New file.
4018 * config/mips/littlemips.mt: Delete file.
4019 * config/mips/decstation.mt: Delete file.
4020 * config/mips/vr4300el.mt: Delete file.
4021 * config/mips/vr5000el.mt: Delete file.
4022 * config/mips/vr5000.mt: Delete file.
4023 * config/mips/vr4100.mt: Delete file.
4024 * config/mips/vr4xxxel.mt: Delete file.
4025 * config/mips/vr4300.mt: Delete file.
4026 * config/mips/vr4xxx.mt: Delete file.
4027 * config/mips/bigmips.mt: Delete file.
4028 * config/mips/bigmips64.mt: Delete file.
4029 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4030 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4031 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4032 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4033 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4034 "tm-bigmips.h".
4035 * config/mips/tm-irix3.h: Ditto.
4036 * config/mips/tm-mipsv4.h: Ditto.
4037 * config/mips/tm-embed.h: Ditto.
4038 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4039 "tm-bigmips64.h".
4040 * config/mips/tm-vr5000el.h: Delete file.
4041 * config/mips/tm-tx39l.h: Delete file.
4042 * config/mips/tm-vr4300el.h: Delete file.
4043 * config/mips/tm-vr4xxxel.h: Delete file.
4044 * config/mips/tm-vr4300.h: Delete file.
4045 * config/mips/tm-vr4100.h: Delete file.
4046 * config/mips/tm-vr4xxx.h: Delete file.
4047 * config/mips/tm-vr5000.h: Delete file.
4048 * config/mips/tm-embedl64.h: Delete file.
4049 * config/mips/tm-embedl.h: Delete file.
4050 * config/mips/tm-embed64.h: Delete file.
4051 * config/mips/tm-bigmips64.h: Delete file.
4052 * config/mips/tm-bigmips.h: Delete file.
4053
4054 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4055
4056 Fix gdb/1216.
4057 * shnbsd-nat.c: Include "sh-tdep.h".
4058
4059 From Richard Henderson <rth@redhat.com>:
4060 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4061
4062 2003-05-31 Andrew Cagney <cagney@redhat.com>
4063
4064 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4065 forward declaration.
4066 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4067 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4068 (mips_find_saved_regs): Use set_reg_offset.
4069 (mips_frame_init_saved_regs): Delete function.
4070 (mips_pop_frame): Call mips_find_saved_regs instead of
4071 DEPRECATED_FRAME_INIT_SAVED_REGS.
4072
4073 2003-05-31 Andrew Cagney <cagney@redhat.com>
4074
4075 * mips-tdep.c (mips_gdbarch_init): Do not set
4076 deprecated_max_register_raw_size, register_virtual_size, and
4077 deprecated_max_register_virtual_size.
4078
4079 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4080
4081 * i386-tdep.c: Include "dwarf2-frame.h".
4082 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4083 * Makefile.in (i386-tdep.o): Update dependencies.
4084
4085 * dwarf2-frame.c, dwarf2-frame.h: New files.
4086 * Makefile.in (SFILES): Add dwarf2-frame.c.
4087 (dwarf2_frame_h): Define.
4088 (COMMON_OBS): Add dwarf2-frame.o.
4089 (dwarf2-frame.o): Add dependencies.
4090
4091 2003-05-31 Andreas Jaeger <aj@suse.de>
4092
4093 * x86-64-linux-nat.c: Fix comment.
4094
4095 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4096
4097 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4098 function signature.
4099
4100 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4101 have a sigcontext_addr handler.
4102 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4103 sigcontext_addr handler.
4104
4105 2003-05-31 Andrew Cagney <cagney@redhat.com>
4106
4107 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4108 (print_fp_register_row): Replace do_fp_register_row.
4109 (mips_print_fp_register): Add "file" and "frame" parameters.
4110 (mips_print_register): Add "file" and "frame" parameters.
4111 (mips_print_registers_info): Replace mips_do_registers_info.
4112 (mips_gdbarch_init): Set print_registers_info instead of
4113 deprecated_do_registers_info.
4114 (mips_read_fp_register_single): Add "frame" parameter.
4115 (mips_read_fp_register_double): Add "frame" parameter.
4116
4117 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4118
4119 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4120 Fixes a bug where GDB would print the wrong register names for
4121 targets without SSE.
4122
4123 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4124 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4125 registers.
4126
4127 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4128 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4129 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4130 TDEP->sc_sp_offset.
4131
4132 From Michal Ludvig <mludvig@suse.cz>:
4133 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4134 and `sc_num_regs'.
4135 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4136 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4137 I386_ST0_REGNUM): Move here from...
4138 * i386-tdep.c: ... here.
4139 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4140 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4141 registers if possible.
4142 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4143 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4144 Remove variables.
4145 (i386bsd_sc_reg_offset): New variable.
4146 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4147 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4148 TDEP->sc_sp_offset.
4149 (i386fbsd_sc_reg_offset): New variable.
4150 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4151 TDEP->sc_num_regs.
4152 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4153 variables.
4154 (i386fbsd4_sc_reg_offset): New variable.
4155 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4156 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4157 TDEP->sc_sp_offset.
4158 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4159 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4160 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4161 Remove variables.
4162 (i386nbsd_sc_reg_offset): New variable.
4163 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4164 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4165 TDEP->sc_sp_offset.
4166 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4167 Remove variables.
4168 (i386obsd_sc_reg_offset): New variable.
4169 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4170 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4171 TDEP->sc_sp_offset.
4172 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4173 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4174 for frame pointer offset in `struct sigcontext'.
4175
4176 2003-05-31 Andrew Cagney <cagney@redhat.com>
4177
4178 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4179 architecture methods call_dummy_words, sizeof_call_dummy_words,
4180 push_return_address, store_struct_return, and fix_call_dummy. Set
4181 push_dummy_call instead of deprecated_push_arguments.
4182 (mips_store_struct_return): Delete function.
4183 (mips_fix_call_dummy): Delete function.
4184 (mips_push_return_address): Delete function.
4185 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4186 RA_REGNUM and T9_REGNUM.
4187 (mips_n32n64_push_dummy_call): Ditto for
4188 mips_n32n64_push_arguments.
4189 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4190 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4191
4192 2003-05-31 Andrew Cagney <cagney@redhat.com>
4193
4194 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4195 "dummy_addr" to "bp_addr".
4196 * infcall.c (call_function_by_hand): Pass "funaddr" to
4197 gdbarch_push_dummy_call.
4198 * gdbarch.h, gdbarch.c: Re-generate.
4199 * i386-tdep.c (i386_push_dummy_call): Update.
4200 * arm-tdep.c (arm_push_dummy_call): Update.
4201 * d10v-tdep.c (d10v_push_dummy_call): Update.
4202
4203 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4204
4205 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4206 variable declarations.
4207 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4208 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4209 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4210 x86_64_init_frame_pc, x86_64_init_frame_pc,
4211 x86_64_function_has_prologue): Remove prototypes.
4212 (X86_64_NUM_GREGS): New define.
4213 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4214 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4215 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4216 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4217 XMM1_REGNUM): Remove defines.
4218 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4219 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4220 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4221 X86_64_XMM1_REGNUM): New defines.
4222 (struct x86_64_register_info): Renamed from `struct
4223 register_info'. Remove `size' member.
4224 (x86_64_register_info_table): Remove variable.
4225 (x86_64_register_info): New variable.
4226 (X86_64_NUM_REGS): New define.
4227 (X86_64_NUM_GREGS): Remove define.
4228 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4229 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4230 Remove variables.
4231 (x86_54_dwarf2_reg_to_regnum): Remove function.
4232 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4233 (x86_64_dwarf_reg_to_regnum): New function.
4234 (x86_64_register_name): Rewrite.
4235 (x86_64_register_raw_size): Remove function.
4236 (x86_64_register_byte_table): Remove variable.
4237 (x86_64_register_byte): Remove function.
4238 (x86_64_register_virtual_type): Remove function.
4239 (x86_64_register_type): New function.
4240 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4241 x86_64_register_convert_to_raw): Remove functions.
4242 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4243 (x86_64_use_struct_convention): Make static. Adjust for renamed
4244 defines.
4245 (x86_64_frame_init_saved_regs): Remove function.
4246 (x86_64_push_arguments): Make static. Change to accept a regcache
4247 as argument.
4248 (x86_64_store_return_value, x86_64_extract_return_value): Make
4249 static. Rewrite based on i386 counterparts.
4250 (x86_64_push_dummy_call): New function.
4251 (X86_64_NUM_SAVED_REGS): New define.
4252 (x86_64_register_number): Remove function.
4253 (x86_64_store_struct_return): Remove function.
4254 (x86_64_frameless_function_invocation,
4255 x86_64_function_has_prologue): Remove functions.
4256 (PROLOG_BUFSIZE): Remove define.
4257 (struct x86_64_frame_cache): New structure.
4258 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4259 x86_64_frame_cache, x86_64_frame_this_id,
4260 x86_64_frame_prev_register, x86_64_frame_p,
4261 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4262 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4263 functions.
4264 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4265 variables.
4266 (x86_64_skip_prologue): Rewrite in terms of
4267 x86_64_analyze_prologue.
4268 (x86_64_frame_base_address): New function.
4269 (x86_64_frame_base): New variable.
4270 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4271 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4272 set deprecated_fp_regnum, deprecated_register_size,
4273 deprecated_register_bytes, register_raw_size, register_byte,
4274 register_virtual_type, register_convertiable,
4275 register_convert_to_virtual, convert_to_raw,
4276 deprecated_get_saved_register, deprecated_target_read_fp,
4277 deprecated_push_arguments, deprecated_push_return_address,
4278 deprecated_pop_frame, deprecated_store_struct_return,
4279 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4280 frameless_function_invocation, deprecated_frame_saved_pc,
4281 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4282 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4283 deprecated_init_frame_pc and virtual_frame_pointer. Call
4284 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4285 and x86_64_frame_p. Call frame_base_set_default to register
4286 x86_64_frame_base.
4287 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4288 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4289 (_initialize_x86_64_tdep): Remove function.
4290 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4291 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4292 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4293 define.
4294 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4295 (x86_64_linux_sigcontext_addr): Rewrite.
4296 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4297 x86_64_linux_frame_saved_pc): Remove functions.
4298 (x86_64_linux_pc_in_sigtramp): Renamed from
4299 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4300 trampoline.
4301 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4302 Remove_functions.
4303 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4304 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4305 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4306 (x86_64_regmap): Rename to regmap.
4307 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4308 x86_64_num_gregs.
4309 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4310 x86_64_regmap.
4311 (x86_64_fxsave_offset): Remove function.
4312 (supply_fpregset): Simply call x86_64_supply_fxsave.
4313 (fill_fpregset): Simply call x86_64_fill_fxsave.
4314 (fetch_inferior_registers, store_inferior_registers): Avoid
4315 asignment in if-statement.
4316 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4317 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4318 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4319 (fetch_core_registers): Remove function.
4320 (linux_elf_core_fns): Remove.
4321 (offsetoff): Don't define.
4322 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4323 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4324 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4325 add core-regset.o.
4326 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4327 protection against multiple includes instead of NM_X86_64_h. Add
4328 various comments. Include "config/nm-linux.h". Don't include
4329 <signal.h>.
4330 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4331 GET_THREAD_SIGNALS): Remove defines.
4332 (x86_64_register_u_addr, kernel_u_size,
4333 lin_thread_get_thread_signals): Remove prototypes.
4334 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4335 [HAVE_LINK_H]: Don't include "solib.h".
4336 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4337 * config/i386/tm-x86-64linux.h: Fix comments.
4338 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4339 x86-64-tdep.o): Update dependencies.
4340
4341 2003-05-30 Andrew Cagney <cagney@redhat.com>
4342
4343 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4344 Change parameter type to a "struct regcache *".
4345
4346 * gdbarch.sh: Regardless of the multi-arch level, always define
4347 the macro when not already defined.
4348 * gdbarch.h, gdbarch.c: Re-generate.
4349
4350 2003-05-30 Richard Henderson <rth@redhat.com>
4351
4352 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4353 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4354 (alpha_mdebug_frame_this_id): Likewise.
4355 (alpha_mdebug_frame_prev_register): Likewise.
4356 (alpha_mdebug_frame_base_address): Likewise.
4357 (alpha_mdebug_frame_locals_address): Likewise.
4358 (alpha_mdebug_frame_args_address): Likewise.
4359 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4360 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4361 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4362 loop increment.
4363 (alpha_heuristic_frame_this_id): Make static.
4364 (alpha_heuristic_frame_prev_register): Likewise.
4365 (alpha_heuristic_frame_base_address): Likewise.
4366 * alpha-tdep.h: Update.
4367
4368 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4369
4370 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4371 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4372 defenitions.
4373 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4374 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4375 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4376 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4377 I386_ST0_REGNUM): New defines.
4378 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4379 codestream_get): Remove define.
4380 (codestream_next_addr, condestream_addr, condestream_buf,
4381 codestream_off, codestream_cnt): Remove variables.
4382 (codestream_fill, codestream_seek, codestream_read): Remove
4383 functions.
4384 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4385 functionality.
4386 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4387 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4388 i386_frame_saved_pc, i386_saved_pc_after_call,
4389 i386_frame_num_args, i386_frame_init_saved_regs,
4390 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4391 i386_push_arguments): Remove functions.
4392 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4393 functionality. Use i386_analyze_prologue instead of
4394 i386_get_frame_setup.
4395 (I386_NUM_SAVED_REGS): New define.
4396 (struct i386_frame_cache): New structure.
4397 (i386_alloc_frame_cache, i386_analyze_struct_return,
4398 i386_skip_probe, i386_analyze_frame_setup,
4399 i386_analyze_register_saves, i386_analyze_prologue,
4400 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4401 i386_frame_prev_register, i386_sigtramp_frame_cache,
4402 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4403 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4404 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4405 New functions.
4406 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4407 New variables.
4408 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4409 I386_EAX_REGNUM and I386_EDX_REGNUM.
4410 (i386_extract_return_value, i386_store_return_value): Use
4411 I386_ST0_REGNUM where appropriate.
4412 (i386_extract_struct_value_address): Rewrite to use extract_address.
4413 (i386_svr4_pc_in_sigtramp): Add comment.
4414 (i386_svr4_sigcontext_addr): Rewrite.
4415 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4416 TDEP->sc_sp_offset.
4417 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4418 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4419 of new defines. Set push_dummy_call, don't set
4420 deprecated_push_arguments, deprecated_push_return_address,
4421 deprecated_pop_frame. Don't set parm_boundary. Don't set
4422 deprecated_frame_chain, deprecated_frame_saved_pc,
4423 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4424 save_dummy_frame_tos, unwind_pc. Call
4425 frame_unwind_append_predicate and frame_base_set_default. Don't
4426 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4427 Don't set frameless_function_invocation. Don't set
4428 deprecated_register_bytes, deprecated_register_size,
4429 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4430 * i386-linux-tdep.c: Fix formatting in some comments.
4431 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4432 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4433 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4434 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4435 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4436 redundant parentheses.
4437 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4438 (i386_linux_sigcontext_addr): Use it. Rewrite.
4439 (find_minsym_and_objfile): Change name of second argument.
4440 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4441 changed. Use frame_pc_unwind instead of
4442 DEPRECATED_SAVED_PC_AFTER_CALL.
4443 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4444 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4445 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4446 unwinder.
4447 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4448 "dummy-frame.h".
4449 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4450 (_initialize_i386_cygwin_tdep): New prototype.
4451 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4452 deprecated_frame_chain_valid.
4453 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4454 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4455 Rely on the SVR4 defaults.
4456 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4457 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4458
4459 2003-05-30 Andrew Cagney <cagney@redhat.com>
4460
4461 * infcall.c (call_function_by_hand): Always call
4462 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4463
4464 2003-05-30 Richard Henderson <rth@redhat.com>
4465
4466 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4467 increment.
4468
4469 2003-05-29 Jim Blandy <jimb@redhat.com>
4470
4471 Use gdbarch methods for solib stuff on PowerPC Linux.
4472 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4473 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4474 show through.
4475 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4476 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4477 giving the same effect as the #definitions above.
4478
4479 2003-05-29 Adam Fedor <fedor@gnu.org>
4480
4481 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4482 (find_implementation_from_class): Replace it with the standard
4483 case i.e. do nothing.
4484
4485 2003-05-29 Richard Henderson <rth@redhat.com>
4486
4487 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4488 (alpha_linux_sigtramp_offset): Use it. Make static.
4489 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4490 update for new frame model.
4491 * alpha-mdebug-tdep.c: New file.
4492 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4493 (alpha_osf1_init_abi): Install it.
4494 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4495 (linked_proc_desc_table): Remove.
4496 (alpha_frame_past_sigtramp_frame): Remove.
4497 (alpha_dynamic_sigtramp_offset): Remove.
4498 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4499 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4500 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4501 (push_sigtramp_desc): Remove.
4502 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4503 (alpha_cannot_store_register): Likewise.
4504 (alpha_sigcontext_addr): Remove.
4505 (alpha_find_saved_regs): Remove.
4506 (alpha_frame_init_saved_regs): Remove.
4507 (alpha_init_frame_pc_first): Remove.
4508 (read_next_frame_reg): Remove.
4509 (alpha_frame_saved_pc): Remove.
4510 (alpha_saved_pc_after_call): Remove.
4511 (temp_proc_desc, temp_saved_regs): Remove.
4512 (alpha_about_to_return): Remove.
4513 (cached_proc_desc): Remove.
4514 (alpha_frame_chain): Remove.
4515 (alpha_print_extra_frame_info): Remove.
4516 (alpha_init_extra_frame_info): Remove.
4517 (alpha_frame_locals_address): Remove.
4518 (alpha_frame_args_address): Remove.
4519 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4520 (alpha_push_dummy_frame): Remove.
4521 (alpha_pop_frame): Remove.
4522 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4523 (alpha_read_insn): New.
4524 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4525 for different insn encodings.
4526 (alpha_in_lenient_prologue): Remove.
4527 (struct alpha_sigtramp_unwind_cache): New.
4528 (alpha_sigtramp_frame_unwind_cache): New.
4529 (alpha_sigtramp_register_address): New.
4530 (alpha_sigtramp_frame_this_id): New.
4531 (alpha_sigtramp_frame_prev_register): New.
4532 (alpha_sigtramp_frame_unwind): New.
4533 (alpha_sigtramp_frame_p): New.
4534 (struct alpha_heuristic_unwind_cache): New.
4535 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4536 don't count nop insns that occur between functions.
4537 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4538 heuristic_proc_desc, but without the mdebug wrapping.
4539 (alpha_heuristic_frame_this_id): New.
4540 (alpha_heuristic_frame_prev_register): New.
4541 (alpha_heuristic_frame_unwind): New.
4542 (alpha_heuristic_frame_p): New.
4543 (alpha_heuristic_frame_base_address): New.
4544 (alpha_heuristic_frame_base): New.
4545 (alpha_unwind_dummy_id): New.
4546 (alpha_unwind_pc): New.
4547 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4548 frame related deprecated initializations; install replacements.
4549 (alpha_dump_tdep): Remove.
4550 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4551 (alpha_read_insn, alpha_after_prologue,
4552 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4553 alpha_heuristic_frame_prev_register,
4554 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4555 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4556 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4557 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4558
4559 2003-05-29 Andrew Cagney <cagney@redhat.com>
4560
4561 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4562 dependant on the availability of ASSERT_FUNCTION.
4563 (ASSERT_FUNCTION): Do not define when there is no function name.
4564
4565 2003-05-29 Kevin Buettner <kevinb@redhat.com>
4566
4567 From Jimi X <jimix@watson.ibm.com>:
4568 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4569
4570 2003-05-28 Jim Blandy <jimb@redhat.com>
4571
4572 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4573 argument to ptrace to int; the system headers should give it the
4574 right type, and pointers don't fit in ints on powerpc64-*-*.
4575
4576 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4577
4578 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4579 DW_TAG_catch_block.
4580
4581 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4582
4583 * stabsread.c (dbx_lookup_type): Make static.
4584 (read_type): Ditto.
4585 (add_undefined_type): Ditto.
4586 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4587 not export.
4588
4589 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4590
4591 * hpread.c (hpread_has_name): Make static.
4592 (hpread_psymtab_to_symtab): Ditto.
4593 (file_exists): Ditto.
4594 (hpread_call_pxdb): Ditto.
4595 (hpread_pxdb_needed): Ditto.
4596 (hpread_quick_traverse): Ditto.
4597 (hpread_get_header): Ditto.
4598 (hpread_get_lntt): Ditto.
4599 (hpread_get_slt): Ditto.
4600 (class_of): Ditto.
4601
4602 2003-05-25 Andreas Schwab <schwab@suse.de>
4603
4604 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4605 stack_align and deprecated_extra_stack_alignment_needed.
4606 (m68k_stack_align): Delete.
4607
4608 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4609 (m68k_register_virtual_size): Likewise.
4610 (altos_skip_prologue): Remove obsolete function.
4611 (isi_frame_num_args): Likewise.
4612 (news_frame_num_args): Likewise.
4613 (m68k_fix_call_dummy): Make static.
4614 (m68k_push_dummy_frame): Likewise.
4615 (m68k_pop_frame): Likewise.
4616 (m68k_skip_prologue): Likewise.
4617 (m68k_frame_init_saved_regs): Likewise.
4618 (m68k_saved_pc_after_call): Likewise.
4619 (m68k_get_longjmp_target): Make multi-arch.
4620 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4621 structure. Register m68k_get_longjmp_target if enabled.
4622 * m68k-tdep.h (struct gdbarch_tdep): Define.
4623 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4624
4625 * Makefile.in (config.status): Also depend on configure.tgt
4626 and configure.host.
4627 (m68klinux-tdep.o): Update dependencies.
4628 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4629 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4630 (M68K_LINUX_JB_PC): Define.
4631 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4632 and take additional parameter.
4633 (m68k_linux_sigtramp_saved_pc): Update.
4634 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4635 m68k_linux_pc_in_sigtramp, in_plt_section,
4636 find_solib_trampoline_target.
4637 * config/m68k/tm-linux.h: Don't include any tm headers.
4638 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4639 (JB_ELEMENT_SIZE): Likewise.
4640 (JB_PC): Likewise.
4641 (GET_LONGJMP_TARGET): Likewise.
4642 (IN_SIGTRAMP): Likewise.
4643 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4644
4645 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4646
4647 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4648 (sparc32_push_arguments): Re-implement by calling
4649 sparc32_do_push_arguments.
4650
4651 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4652
4653 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4654 SPARC_O1_REGNUM): New defines.
4655 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4656 (sparc32_store_return_value): New function.
4657 (sparc_extract_struct_value_address): Rewrite to operate on a
4658 regcache.
4659 (sparc_gdbarch_init): Don't set
4660 deprecated_extract_struct_value_address. Set
4661 extract_struct_value_address instead. Don't set
4662 deprecated_extract_return_value and deprecated_store_return_value
4663 for 32-bit targets. Set extract_return_value and
4664 store_return_value instead.
4665 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4666 DEPRECTAED_EXTRACT_RETURN_VALUE,
4667 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4668 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4669 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4670 (sparc_store_return_value): Remove prototype.
4671 (sparc32_store_return_value): New prototype.
4672 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4673 Adjust prototypes.
4674
4675 2003-05-24 Mark Kettenis <kettenis@gnu.org>
4676
4677 * sparcnbsd-tdep.c: Include "gdb_string.h".
4678
4679 2003-05-23 Andrew Cagney <cagney@redhat.com>
4680
4681 * p-valprint.c (pascal_val_print): Replace extract_address with
4682 the inline equivalent extract_unsigned_integer.
4683 * jv-valprint.c (java_value_print): Ditto.
4684 * ada-valprint.c (ada_val_print_1): Ditto.
4685 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4686
4687 2003-05-23 Theodore A. Roth <troth@openavr.org>
4688
4689 * blockframe.c (frameless_look_for_prologue): Remove unused
4690 after_prologue variable.
4691
4692 2003-05-23 Mark Kettenis <kettenis@gnu.org>
4693
4694 * blockframe.c (get_pc_function_start): Rewrite to avoid
4695 asignments in if-statements.
4696
4697 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4698
4699 Committed by Elena Zannoni <ezannoni@redhat.com>.
4700 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4701 files, don't relocate absolute symbols (and do use mst_abs).
4702
4703 2003-05-23 Andrew Cagney <cagney@redhat.com>
4704
4705 * objc-lang.c: Include "gdb_assert.h".
4706 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4707 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4708 (gdb_check, gdb_check_fatal): Delete functions.
4709 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4710 gdb_assert.
4711 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4712 * Makefile.in (objc-lang.o): Update dependencies.
4713
4714 2003-05-22 Ian Lance Taylor <ian@airs.com>
4715
4716 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4717 with fprintf_filtered, not fprintf_unfiltered.
4718
4719 2003-05-22 Andrew Cagney <cagney@redhat.com>
4720
4721 * stack.c (frame_info): Inline extract_address, replacing it with
4722 extract_unsigned_integer.
4723 * findvar.c (unsigned_pointer_to_address): Ditto.
4724 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4725 * dwarf2expr.c (dwarf2_read_address): Ditto.
4726 * frame.c (frame_pc_unwind): Update comment.
4727 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4728
4729 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4730
4731 * infptrace.c (detach): Call print_sys_errmsg rather than
4732 perror_with_name to issue warning message when errno is non-zero
4733 after calling ptrace detach.
4734
4735 2003-05-21 J. Brobecker <brobecker@gnat.com>
4736
4737 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4738 macro definitions from here...
4739 * hppa-tdep.c: ...to there.
4740
4741 2003-05-20 Kevin Buettner <kevinb@redhat.com>
4742
4743 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4744 register_ptrace_addr(). Fix all callers.
4745
4746 2003-05-21 Andreas Schwab <schwab@suse.de>
4747
4748 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4749 dependencies.
4750 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4751 end.
4752 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4753 (_initialize_m68k_linux_tdep): New function.
4754 (m68k_linux_frame_saved_pc): Make static.
4755 (m68k_linux_extract_return_value): Likewise.
4756 (m68k_linux_store_return_value): Likewise.
4757 (m68k_linux_extract_struct_value_address): Likewise.
4758 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4759 Remove.
4760 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4761 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4762 (DEPRECATED_FRAME_SAVED_PC): Remove.
4763
4764 2003-05-20 Kris Warkentin <kewarken@qnx.com>
4765
4766 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4767 regset numbering rather than our own.
4768
4769 2003-05-19 David Carlton <carlton@bactrian.org>
4770
4771 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4772
4773 2003-05-19 David Carlton <carlton@bactrian.org>
4774
4775 Partial fix for PR c++/827.
4776 * cp-support.h: Include symtab.h.
4777 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4778 * cp-namespace.c: Update contributors.
4779 (cp_lookup_symbol_nonlocal): New.
4780 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4781 (lookup_symbol_file): Ditto.
4782 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4783 * block.h: Declare block_scope, block_using, block_global_block.
4784 * block.c (block_scope): New.
4785 (block_using, block_global_block): Ditto.
4786 * Makefile.in (cp_support_h): Depend on symtab_h.
4787 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4788
4789 2003-05-19 David Carlton <carlton@bactrian.org>
4790
4791 * language.h (struct language_defn): Add 'la_value_of_this'
4792 and 'la_lookup_symbol_nonlocal' members.
4793 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4794 lookup_symbol_static, lookup_symbol_global,
4795 lookup_symbol_aux_block.
4796 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4797 if we should search fields of this and how to do static/global
4798 lookup.
4799 (lookup_symbol_aux_block): Make extern.
4800 (basic_lookup_symbol_nonlocal): New.
4801 (lookup_symbol_static, lookup_symbol_global): Ditto.
4802 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4803 'la_lookup_symbol_nonlocal' members.
4804 * c-lang.c (c_language_defn, cplus_language_defn)
4805 (asm_language_defn, minimal_language_defn): Ditto.
4806 * jv-lang.c (java_language_defn): Ditto.
4807 * language.c (unknown_language_defn, auto_language_defn)
4808 (local_language_defn): Ditto.
4809 * m2-lang.c (m2_language_defn): Ditto.
4810 * objc-lang.c (objc_language_defn): Ditto.
4811 * scm-lang.c (scm_language_defn): Ditto.
4812 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4813 * p-lang.c (pascal_language_defn): Ditto for both.
4814 * Makefile.in (f-lang.o): Depend on value_h.
4815 (p-lang.o): Ditto.
4816
4817 2003-05-19 David Carlton <carlton@bactrian.org>
4818
4819 * block.h: Declare block_static_block.
4820 * block.c (block_static_block): New.
4821 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4822 lookup_symbol_aux_local, calling block_static_block instead.
4823 (lookup_symbol_aux_local): Delete 'static_block' argument.
4824
4825 2003-05-19 David Carlton <carlton@bactrian.org>
4826
4827 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4828
4829 2003-05-19 Michal Ludvig <mludvig@suse.cz>
4830
4831 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4832 register numbers mapping.
4833
4834 2003-05-18 Adam Fedor <fedor@gnu.org>
4835
4836 * symtab.c (completion_list_objc_symbol): New function.
4837 (make_symbol_completion_list): Use it to add ObjC symbols
4838 when looking though the list.
4839 (language_search_unquoted_string): New function.
4840 (make_file_symbol_completion_list): Use it.
4841
4842 2003-05-18 Andreas Schwab <schwab@suse.de>
4843
4844 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4845 dependencies.
4846 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4847 as m68k_linux_extract_return_value.
4848 (DEPRECATED_STORE_RETURN_VALUE): Define as
4849 m68k_linux_store_return_value.
4850 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4851 m68k_linux_extract_struct_value_address.
4852 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4853 get_next_frame, get_frame_base, get_frame_pc.
4854 (m68k_linux_frame_saved_pc): Use get_frame_base.
4855 (m68k_linux_extract_return_value): New function.
4856 (m68k_linux_store_return_value): New function.
4857 (m68k_linux_extract_struct_value_address): New function.
4858 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4859
4860 * c-exp.y (typebase): Remove duplicate occurence of
4861 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
4862 of lookup_signed_typename.
4863
4864 2003-05-18 Mark Kettenis <kettenis@gnu.org>
4865
4866 * dwarf2loc.c (find_location_expression): Change type of second
4867 argument to `size_t *'.
4868 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4869 for size variable.
4870
4871 2003-05-18 David Carlton <carlton@bactrian.org>
4872
4873 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4874 'linkage_name'. Add comment.
4875 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4876 'linkage_name'.
4877 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4878 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
4879 (lookup_block_symbol): Ditto.
4880
4881 2003-05-16 Andrew Cagney <cagney@redhat.com>
4882
4883 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
4884 * gdbarch.h, gdbarch.c: Re-generate.
4885 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
4886 * TODO (REGISTER_BYTES): Delete reference.
4887 * alpha-tdep.c (alpha_gdbarch_init): Update.
4888 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4889 * x86-64-tdep.c (x86_64_init_abi): Update.
4890 * vax-tdep.c (vax_gdbarch_init): Update.
4891 * v850-tdep.c (v850_gdbarch_init): Update.
4892 * sparc-tdep.c (sparc_gdbarch_init): Update.
4893 * sh-tdep.c (sh_gdbarch_init): Update.
4894 * s390-tdep.c (s390_gdbarch_init): Update.
4895 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4896 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4897 (ns32k_gdbarch_init_32382): Update.
4898 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4899 * mcore-tdep.c (mcore_gdbarch_init): Update.
4900 * m68k-tdep.c (m68k_gdbarch_init): Update.
4901 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4902 * ia64-tdep.c (ia64_gdbarch_init): Update.
4903 * i386-tdep.c (i386_gdbarch_init): Update.
4904 * i386-linux-tdep.c (i386_linux_init_abi): Update.
4905 * hppa-tdep.c (hppa_gdbarch_init): Update.
4906 * h8300-tdep.c (h8300_gdbarch_init): Update.
4907 * frv-tdep.c (frv_gdbarch_init): Update.
4908 * cris-tdep.c (cris_gdbarch_init): Update.
4909 * avr-tdep.c (avr_gdbarch_init): Update.
4910 * arm-tdep.c (arm_gdbarch_init): Update.
4911 * sparc-tdep.c (sparc_pop_frame): Update.
4912 * rs6000-tdep.c (rs6000_pop_frame): Update.
4913 * remote.c (init_remote_state): Update.
4914 (remote_prepare_to_store): Update.
4915 * remote-vx.c (vx_prepare_to_store): Update.
4916 * remote-sds.c (sds_fetch_registers): Update.
4917 (sds_prepare_to_store): Update.
4918 * remote-array.c: Update.
4919 * regcache.c (init_legacy_regcache_descr): Update.
4920 (init_regcache_descr): Update.
4921 * mips-tdep.c (mips_eabi_extract_return_value): Update.
4922 (mips_o64_extract_return_value): Update.
4923 * irix5-nat.c (fetch_core_registers): Update.
4924 * irix4-nat.c (fetch_core_registers): Update.
4925 * i386-tdep.h: Update.
4926 * hppa-tdep.c (pa_do_registers_info): Update.
4927 (pa_do_strcat_registers_info): Update.
4928 * cris-tdep.c (cris_register_bytes_ok): Update.
4929 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4930 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
4931 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
4932 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
4933 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
4934 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
4935 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
4936 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
4937 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
4938 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
4939 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
4940 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
4941 (REGISTER_BYTES_OK): Update.
4942 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
4943 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
4944
4945 2003-05-16 Ian Lance Taylor <ian@airs.com>
4946
4947 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
4948 (vax_print_insn, print_insn_arg): Remove static functions.
4949 (vax_gdbarch_init): Call set_gdbarch_print_insn with
4950 print_insn_vax from opcodes library.
4951 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
4952
4953 2003-05-15 Andrew Cagney <cagney@redhat.com>
4954
4955 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
4956 * target.h (memory_breakpoint_from_pc): Delete declaration.
4957 * mem-break.c (memory_breakpoint_from_pc): Delete function.
4958 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
4959 * monitor.c (monitor_insert_breakpoint): Use
4960 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
4961 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
4962 * gdbarch.h, gdbarch.c: Re-generate.
4963 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
4964 (sparc_gdbarch_init): Set breakpoint_from_pc to
4965 sparc_breakpoint_from_pc.
4966 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
4967 (BREAKPOINT_FROM_PC): Define.
4968 (sparc_breakpoint_from_pc): Declare.
4969 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
4970 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
4971 (BREAKPOINT_FROM_PC): Define.
4972 (BREAKPOINT): Delete macro.
4973 * target.h: Update comment.
4974 * s390-tdep.c (s390_gdbarch_init): Update comments.
4975 * remote.c: Update comments.
4976 * remote-mips.c: Update comments.
4977 * proc-api.c (write_with_trace): Do not check for a breakpoint.
4978 * mem-break.c: Update comment.
4979 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
4980 (ia64_memory_insert_breakpoint): Update.
4981 * config/sparc/tm-sparc.h: Update comment.
4982 * config/pa/tm-hppa64.h: Update comment.
4983 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4984 (rs6000_breakpoint_from_pc): Update.
4985 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4986 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
4987 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
4988 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
4989 (mips_breakpoint_from_pc): Update.
4990 (mips_dump_tdep): Update.
4991
4992 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
4993 * minsyms.c (lookup_minimal_symbol): Inline
4994 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
4995
4996 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
4997 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4998 * p-lang.c (pascal_printstr): Ditto.
4999 * objc-lang.c (objc_printstr): Ditto.
5000 * m2-lang.c (m2_printstr): Ditto.
5001 * jv-valprint.c (java_print_value_fields): Ditto.
5002 * f-lang.c (f_printstr): Ditto.
5003 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5004 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5005 for repeat_count_threshold.
5006 * Makefile.in (cp-valprint.o): Update dependencies.
5007
5008 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
5009
5010 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5011 (examine_prologue): Support looking through leaf functions, knowing
5012 they start with mov r2,r12. Support skipping over indirect stores
5013 of the input registers. Upon hitting a non-nop branch instruction
5014 or predicated instruction, bail out by setting lim_pc to the current
5015 pc value in the loop. At the end, if the lim_pc value is still
5016 beyond our calculated value and we have trust_limit set,
5017 use the lim_pc value.
5018
5019 2003-05-15 Andrew Cagney <cagney@redhat.com>
5020
5021 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5022 generic_find_dummy_frame.
5023 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5024 (deprecated_generic_find_dummy_frame): Update.
5025 (deprecated_read_register_dummy): Update.
5026 * frame.c (deprecated_generic_get_saved_register): Update.
5027
5028 2003-05-15 Theodore A. Roth <troth@openavr.org>
5029
5030 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5031 (avr_gdbarch_init): Set breakpoint_from_pc method.
5032
5033 2003-05-15 Andrew Cagney <cagney@redhat.com>
5034
5035 * regcache.c (build_regcache): Set deprecated_register_valid
5036 directly.
5037 (deprecated_grub_regcache_for_register_valid): Delete function.
5038 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5039 declaration.
5040
5041 2003-05-15 David Carlton <carlton@bactrian.org>
5042
5043 Committed by Elena Zannoni <ezannoni@redhat.com>
5044 * symtab.c (lookup_symbol_aux): Delete calls to
5045 lookup_symbol_aux_minsyms.
5046 (lookup_symbol_aux_minsyms): Comment out function and
5047 prototype. Delete lookup by mangled name.
5048
5049 2003-05-14 Kevin Buettner <kevinb@redhat.com>
5050
5051 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5052 correctly indicate an empty stack and ``stack_allocated'' to the
5053 indicate the number of elements initially allocated.
5054 (dwarf_expr_grow_stack): Simplify method for computing new
5055 stack size. Don't loop infinitely if ``stack_len'' is zero.
5056 (execute_stack_op): Move ``ctx->in_reg'' initialization
5057 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5058 be used in conjuction with DW_OP_piece. Revise error message
5059 accordingly.
5060
5061 2003-05-14 Theodore A. Roth <troth@openavr.org>
5062
5063 * MAINTAINERS: Update my email address.
5064 * avr-tdep.c: Ditto.
5065
5066 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
5067
5068 * symtab.h (enum domain_enum): Rename from namespace_enum.
5069 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5070 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5071 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5072 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5073 TYPES_NAMESPACE, METHODS_NAMESPACE.
5074 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5075 (struct symbol, struct partial_symbol): Rename field
5076 'namespace_enum namespace' to 'domain_enum domain'.
5077 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5078 Delete old define kludge for namespace.
5079
5080 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5081 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5082 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5083 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5084 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5085 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5086 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5087 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5088 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5089 occurrences of the above.
5090
5091 2003-05-14 Ian Lance Taylor <ian@airs.com>
5092
5093 * Makefile.in (install-only): Use $(SHELL) when running
5094 mkinstalldirs.
5095
5096 2003-05-13 Ian Lance Taylor <ian@airs.com>
5097
5098 * MAINTAINERS (write after approval): Add myself.
5099
5100 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5101 second and third arguments.
5102 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5103 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5104
5105 2003-05-13 Andrew Cagney <cagney@redhat.com>
5106
5107 * defs.h (store_address): Delete declaration.
5108 findvar.c (store_address): Delete function.
5109 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5110 store_unsigned_integer.
5111 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5112 * v850-tdep.c (v850_push_arguments): Ditto.
5113 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5114 * sh-tdep.c (sh64_get_saved_register): Ditto.
5115 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5116 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5117 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5118 (mips_get_saved_register): Ditto.
5119 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5120 (find_func_descr, ia64_push_arguments): Ditto.
5121 * i386-tdep.c (i386_push_arguments): Ditto.
5122 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5123 * frv-tdep.c (frv_push_arguments): Ditto.
5124 * frame.c (legacy_saved_regs_prev_register): Ditto.
5125 (deprecated_generic_get_saved_register): Ditto.
5126 * findvar.c (unsigned_address_to_pointer): Ditto.
5127 * dwarf2read.c (dwarf2_const_value): Ditto.
5128 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5129 * alpha-tdep.c (alpha_push_arguments): Ditto.
5130
5131 2003-05-12 J. Brobecker <brobecker@gnat.com>
5132
5133 * NEWS: Mention that the hppa-hpux port has been partially
5134 multiarched (32bit ABIT only, so far).
5135
5136 2003-05-11 Andrew Cagney <cagney@redhat.com>
5137
5138 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5139 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5140 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5141 sim/testsuite/sim/arm/misaligned2.ms, and
5142 sim/testsuite/sim/arm/misaligned3.ms.
5143 * disasm.h (struct ui_file): Add opaque struct declaration.
5144 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5145 * frame.h (struct ui_file): Ditto.
5146
5147 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5148
5149 * value.h: Pretty print.
5150
5151 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5152
5153 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5154
5155 2003-05-08 Andrew Cagney <cagney@redhat.com>
5156
5157 * regcache.h (max_register_size): Delete declaration.
5158 * regcache.c (max_register_size): Delete function.
5159 (struct regcache_descr): Delete field "max_register_size".
5160 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5161 registers fit in MAX_REGISTER_SIZE.
5162 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5163 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5164 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5165 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5166 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5167 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5168 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5169 * dve3900-rom.c, hppa-tdep.c: Ditto.
5170
5171 2003-05-08 David Carlton <carlton@math.stanford.edu>
5172
5173 * valops.c (push_word): Fix typo.
5174
5175 2003-05-08 Andrew Cagney <cagney@redhat.com>
5176
5177 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5178 * gdbarch.h: Re-generate.
5179 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5180 (legacy_max_register_raw_size): Delete declaration.
5181 * regcache.c (legacy_max_register_raw_size): Delete function.
5182 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5183 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5184 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5185 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5186 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5187 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5188 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5189 * findvar.c, dwarf2cfi.c: Ditto.
5190
5191 2003-05-08 Andrew Cagney <cagney@redhat.com>
5192
5193 * mips-tdep.c (read_signed_register): New function, moved to here
5194 from "regcache.c".
5195 (read_signed_register_pid): Ditto.
5196 * regcache.c (read_signed_register_pid): Delete function, moved to
5197 "mips-tdep.c".
5198 (read_signed_register): Ditto.
5199 * regcache.h (read_signed_register): Delete declaration.
5200 (read_signed_register_pid): Delete declaration.
5201
5202 2003-05-08 Andrew Cagney <cagney@redhat.com>
5203
5204 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5205 * gdbarch.h: Re-generate.
5206 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5207 (legacy_max_register_virtual_size): Delete declaration.
5208 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5209 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5210 * tracepoint.c (memrange_sortmerge): Ditto.
5211 * sparc-tdep.c (sparc_print_registers): Ditto.
5212 * regcache.c (legacy_max_register_virtual_size): Delete function.
5213
5214 2002-05-08 J. Brobecker <brobecker@gnat.com>
5215
5216 * fork-child.c (escape_bang_in_quoted_argument): New function.
5217 (fork_inferior): Escape '!' characters in quoted arguments
5218 only when needed.
5219
5220 2003-05-08 J. Brobecker <brobecker@gnat.com>
5221
5222 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5223 the language of the CU is not currently supported by GDB.
5224
5225 2003-05-08 J. Brobecker <brobecker@gnat.com>
5226
5227 * defs.h (language): Add language_minimal enum value.
5228 * c-lang.c (minimal_language_defn): New language definition.
5229 (_initialize_c_language): Add the new minimal language to the list
5230 of languages known to GDB.
5231
5232 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5233
5234 * frame.c (get_frame_type): Don't attempt to lazily initialize
5235 frame's unwinder for legacy frames.
5236
5237 2003-05-07 Andrew Cagney <cagney@redhat.com>
5238
5239 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5240 and "regcache" parameters.
5241 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5242
5243 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5244
5245 * dwarf2read.c (dwarf_decode_lines): Only use output of
5246 check_cu_functions() when calling record_line(). Do not update
5247 the current address.
5248
5249 2003-05-07 Andrew Cagney <cagney@redhat.com>
5250
5251 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5252 code.
5253
5254 2003-05-07 Jim Blandy <jimb@redhat.com>
5255
5256 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5257 'maint info symtabs' and 'maint info psymtabs'.
5258 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5259 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5260 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5261 Declarations updated.
5262 * maint.c (maintenance_list_command): Delete.
5263 (_initialize_maint_cmds): Update calls to add_cmd.
5264 * gdbcmd.h (maintenancelistlist): Delete declaration.
5265 * cli/cli-cmds.c (maintenancelistlist): Delete.
5266 (init_cmd_lists): Don't initialize it.
5267 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5268
5269 2003-05-07 Andrew Cagney <cagney@redhat.com>
5270
5271 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5272 "regcache".
5273 (d10v_print_registers_info): Update.
5274 (d10v_dmap_register, d10v_imap_register): Delete functions.
5275 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5276 and "imap_register".
5277 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5278 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5279 * arch-utils.c (generic_remote_translate_xfer_address): Add
5280 "regcache" and "gdbarch" parameters.
5281 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5282 parameter. Change class to multi-arch.
5283 * gdbarch.h, gdbarch.c: Re-generate.
5284 * remote.c (remote_xfer_memory): Use
5285 gdbarch_remote_translate_xfer_address.
5286
5287 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5288
5289 * infrun.c (prev_pc): Move declaration ahead of proceed().
5290 (proceed): Refresh prev_pc value before resuming.
5291 (stop_stepping): Remove code to refresh prev_pc.
5292
5293 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5294
5295 * nto-tdep.c: Removed stray comment.
5296
5297 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5298
5299 * i386-nto-tdep.c: Fix old K&R function definitions.
5300 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5301 Also change add_show_from_set() call to add_setshow_cmd().
5302 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5303
5304 2003-05-05 Andrew Cagney <cagney@redhat.com>
5305
5306 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5307 (fprint_dummy_frames): New function.
5308 (maintenance_print_dummy_frames): New function.
5309 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5310 * frame.c (fprint_frame_id): Make global.
5311 * frame.h (fprint_frame_id): Declare.
5312 * Makefile.in (dummy-frame.o): Update dependencies.
5313
5314 2003-05-05 Andrew Cagney <cagney@redhat.com>
5315
5316 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5317 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5318 SIZEOF_CALL_DUMMY_WORDS.
5319 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5320 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5321 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5322 CALL_DUMMY_BREAKPOINT_OFFSET.
5323 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5324 CALL_DUMMY_START_OFFSET.
5325 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5326 * gdbarch.h, gdbarch.c: Re-generate.
5327 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5328 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5329 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5330 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5331 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5332 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5333 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5334 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5335 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5336 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5337 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5338 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5339 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5340 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5341 * config/sparc/tm-sparc.h: Update.
5342
5343 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5344
5345 * configure.tgt: Add i[3456]86-*-nto*.
5346 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5347 * nto-tdep.c: New file. Neutrino target support routines.
5348 * nto-tdep.h: New file. Neutrino target header.
5349 * config/tm-qnxnto.h: New file.
5350 * config/i386/i386nto.mt: New file.
5351 * config/i386/tm-i386nto.h: New file.
5352
5353 2003-05-04 Andrew Cagney <cagney@redhat.com>
5354
5355 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5356 (load_infrun_state): Ditto.
5357 (struct thread_info): Drop "prev_func_name" field.
5358 * thread.c (load_infrun_state): Update.
5359 (save_infrun_state): Update.
5360 * infrun.c (prev_func_name): Delete variable.
5361 (init_wait_for_inferior): Do not clear prev_func_name.
5362 (stop_stepping, keep_going, context_switch): Do not swap
5363 prev_func_name.
5364 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5365 instead of PC_IN_SIGTRAMP.
5366
5367 2003-05-04 Andrew Cagney <cagney@redhat.com>
5368
5369 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5370 REGISTER_BYTE with register_offset_hack.
5371 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5372 that REGISTER_BYTE is consistent with the regcache.
5373 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5374 * gdbarch.h, gdbarch.c: Regenerate.
5375
5376 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5377
5378 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5379 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5380
5381 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5382
5383 2003-05-03 J. Brobecker <brobecker@gnat.com>
5384
5385 From Thierry Schneider <tpschneider1@yahoo.com>
5386 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5387 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5388 (mi-cmd-symbol.o): Add rule.
5389
5390 2003-05-03 Andrew Cagney <cagney@redhat.com>
5391
5392 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5393 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5394 * gdbarch.h, gdbarch.c: Re-generate.
5395 * d10v-tdep.c (d10v_push_dummy_code): New function.
5396 (d10v_gdbarch_init): Set push_dummy_code.
5397 * infcall.c (legacy_push_dummy_code): New function.
5398 (generic_push_dummy_code): New function.
5399 (push_dummy_code): New function.
5400 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5401 instead of dummy_addr, to push_dummy_call. Move call to
5402 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5403 switch.
5404 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5405
5406 2003-05-03 Andrew Cagney <cagney@redhat.com>
5407
5408 * disasm.h (print_insn): Declare.
5409 * disasm.c (init_gdb_disassemble_info): New function.
5410 (gdb_disassembly): Call init_gdb_disassemble_info.
5411 (gdb_print_insn): New function.
5412 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5413 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5414 * mcore-tdep.c: Include "disasm.h"
5415 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5416 * d10v-tdep.c: Include "disasm.h".
5417 (display_trace): Call gdb_print_insn, instead of print_insn.
5418 (print_insn): Delete function.
5419 * printcmd.c: Include "disasm.h".
5420 (print_insn): Delete function.
5421 (print_formatted): Call gdb_print_insn, instead of print_insn.
5422 * Makefile.in (printcmd.o): Update dependencies.
5423 (mcore-tdep.o, d10v-tdep.o): Ditto.
5424
5425 2003-05-02 Andrew Cagney <cagney@redhat.com>
5426
5427 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5428 PC_REGNUM, re-indent.
5429 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5430 PC_REGNUM isn't set.
5431
5432 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5433 * gdbarch.h, gdbarch.c: Re-generate.
5434 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5435 register_virtual_size, pc_regnum, or register_bytes.
5436 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5437 (d10v_register_type): Use D10V_PC_REGNUM.
5438 (d10v_print_registers_info, d10v_read_pc): Ditto.
5439 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5440 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5441
5442 2003-05-02 David Carlton <carlton@bactrian.org>
5443
5444 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5445 the name with mstrsave.
5446
5447 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5448
5449 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5450 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5451 (host_charset_name, target_charset_name): New vars for use by
5452 set/show commands.
5453 (host_charset_enum, target_charset_enum): New enums for set/show
5454 commands.
5455 (set_charset_sfunc, set_host_charset_sfunc,
5456 set_target_charset_sfunc): New functions.
5457 (set_host_charset, set_target_charset): Make static.
5458 (list_charsets, set_host_charset_command,
5459 set_target_charset_command): Delete functions.
5460 (show_charset_command): Rewrite as....
5461 (show_charset): Hook this up with the set/show command mechanism.
5462 (_initialize_charset): Change names of charsets to match the
5463 set/show enums. Use host_charset_name and target_charset_name.
5464 Use set/show mechanism for charset, host-charset, target-charset
5465 commands. Do not make 'show host-charset' and 'show
5466 target-charset' be aliases of 'show charset'.
5467
5468 * charset.h (set_host_charset, set_target_charset): Don't export,
5469 they are not used outside the file.
5470
5471 2003-05-01 Andrew Cagney <cagney@redhat.com>
5472
5473 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5474 (gdb_disassembly): Make "di" non static, always initialize and
5475 cleanup. Always use dis_asm_read_memory.
5476 (gdb_dis_asm_read_memory): Delete function.
5477
5478 2003-05-01 Andrew Cagney <cagney@redhat.com>
5479
5480 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5481 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5482
5483 2003-04-30 Andrew Cagney <cagney@redhat.com>
5484
5485 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5486 "tm_print_insn_info".
5487 (TARGET_PRINT_INSN_INFO): Delete macro.
5488 (dis_asm_read_memory): Delete function declaration.
5489 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5490 (tm_print_insn_info): Delete variable definition.
5491 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5492 * gdbarch.h, gdbarch.c: Re-generate.
5493 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5494 "deprecated_tm_print_insn_info".
5495 * mcore-tdep.c (mcore_dump_insn): Ditto.
5496 * mips-tdep.c (mips_gdbarch_init): Ditto.
5497 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5498 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5499 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5500 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5501 instead of TARGET_PRINT_INSN_INFO, add comment.
5502 * s390-tdep.c (s390_get_frame_info): Instead of
5503 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5504 (s390_check_function_end, s390_is_sigreturn): Ditto.
5505 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5506 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5507 * disasm.c: Include "gdbcore.h".
5508 (_initialize_disasm): New function, initialize
5509 "deprecated_tm_print_insn_info".
5510 (deprecated_tm_print_insn_info): New variable.
5511 (dis_asm_read_memory): Moved from "corefile.c", made static.
5512 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5513 * Makefile.in (disasm.o): Update dependencies.
5514
5515 2003-04-30 Andrew Cagney <cagney@redhat.com>
5516
5517 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5518
5519 2003-04-29 Adam Fedor <fedor@gnu.org>
5520
5521 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5522 * infcall.c (find_function_addr): Make non-static.
5523 * infcall.h (find_function_addr): Declare.
5524 * Makefile.in (eval.o): Update dependencies.
5525
5526 2003-04-28 Adam Fedor <fedor@gnu.org>
5527
5528 * symtab.c (symbol_find_demangled_name): Check for and demangle
5529 ObjC symbols.
5530 (symbol_init_demangled_name): Init for language_objc as well.
5531
5532 2003-04-28 Andrew Cagney <cagney@redhat.com>
5533
5534 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5535 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5536 * gdbarch.h, gdbarch.c: Re-generate.
5537 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5538 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5539 * inferior.h (deprecated_read_fp): Rename read_fp.
5540 (generic_target_read_fp): Delete declaration.
5541 * regcache.c (generic_target_read_fp): Delete function.
5542 (deprecated_read_fp): Replace read_fp, use
5543 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5544 * d10v-tdep.c (d10v_read_fp): Delete function.
5545 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5546
5547 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5548 deprecated_target_read_fp to generic_target_read_fp.
5549 * sh-tdep.c (sh_gdbarch_init): Ditto.
5550 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5551 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5552 * frv-tdep.c (frv_gdbarch_init): Ditto.
5553
5554 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5555 deprecated_fp_regnum.
5556 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5557 * vax-tdep.c (vax_gdbarch_init): Ditto.
5558 * v850-tdep.c (v850_gdbarch_init): Ditto.
5559 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5560 * sh-tdep.c (sh_gdbarch_init): Ditto.
5561 * s390-tdep.c (s390_gdbarch_init): Ditto.
5562 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5563 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5564 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5565 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5566 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5567 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5568 * i386-tdep.c (i386_gdbarch_init): Ditto.
5569 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5570 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5571 * frv-tdep.c (frv_gdbarch_init): Ditto.
5572 * cris-tdep.c (cris_gdbarch_init): Ditto.
5573 * avr-tdep.c (avr_gdbarch_init): Ditto.
5574 * arm-tdep.c (arm_gdbarch_init): Ditto.
5575 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5576
5577 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5578 * v850-tdep.c (v850_gdbarch_init): Ditto.
5579 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5580 * sh-tdep.c (sh_gdbarch_init): Ditto.
5581 * s390-tdep.c (s390_gdbarch_init): Ditto.
5582 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5583 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5584 * mips-tdep.c (mips_gdbarch_init): Ditto.
5585 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5586 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5587 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5588 * frv-tdep.c (frv_gdbarch_init): Ditto.
5589 * avr-tdep.c (avr_gdbarch_init): Ditto.
5590 * arm-tdep.c (arm_gdbarch_init): Ditto.
5591
5592 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5593 DEPRECATED_FP_REGNUM.
5594 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5595 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5596 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5597 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5598 (sparc32_register_virtual_type): Ditto.
5599 * sh-tdep.c (sh64_frame_chain): Ditto.
5600 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5601 (sh_nofp_frame_init_saved_regs): Ditto.
5602 (sh64_nofp_frame_init_saved_regs): Ditto.
5603 (sh_fp_frame_init_saved_regs): Ditto.
5604 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5605 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5606 * procfs.c (procfs_fetch_registers): Ditto.
5607 (procfs_store_registers): Ditto.
5608 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5609 (store_inferior_registers, fetch_core_registers): Ditto.
5610 (fetch_kcore_registers, clear_regs): Ditto.
5611 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5612 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5613 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5614 * nlm/i386.c (do_status): Ditto.
5615 * mipsv4-nat.c (supply_gregset): Ditto.
5616 * mips-tdep.c: Ditto for comments.
5617 * mips-nat.c (fetch_inferior_registers): Ditto.
5618 (store_inferior_registers, fetch_core_registers): Ditto.
5619 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5620 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5621 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5622 (i386_do_pop_frame, i386_register_type): Ditto.
5623 * hppa-tdep.c (hppa_frame_chain): Ditto.
5624 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5625 (hppa_pop_frame, hppa_read_fp): Ditto.
5626 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5627 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5628 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5629 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5630 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5631 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5632 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5633 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5634 * blockframe.c: Ditto for comments.
5635 * arch-utils.h: Ditto for comments.
5636 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5637 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5638 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5639 * alpha-tdep.h: Ditto for comments.
5640 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5641 (alpha_cannot_store_register): Ditto.
5642 (alpha_push_dummy_frame): Ditto.
5643 * alpha-nat.c (supply_gregset): Ditto.
5644
5645 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5646 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5647 * config/sparc/tm-sparc.h: Update comment.
5648
5649 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5650 deprecated_read_fp instead of TARGET_READ_FP.
5651 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5652 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5653 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5654 deprecated_read_fp instead of read_fp.
5655 * s390-tdep.c (s390_push_arguments): Ditto.
5656 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5657 * frame.h: Ditto in comments.
5658 * frame.c (legacy_get_prev_frame): Ditto.
5659 * dummy-frame.c (dummy_frame_this_id): Ditto.
5660 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5661
5662 2003-04-28 Andrew Cagney <cagney@redhat.com>
5663
5664 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5665 * gdbarch.h, gdbarch.c: Re-generate.
5666 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5667 * vax-tdep.c (_initialize_vax_tdep): Update.
5668 * v850-tdep.c (_initialize_v850_tdep): Update.
5669 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5670 * s390-tdep.c (_initialize_s390_tdep): Update.
5671 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5672 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5673 * mips-tdep.c (_initialize_mips_tdep): Update.
5674 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5675 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5676 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5677 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5678 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5679 * frv-tdep.c (_initialize_frv_tdep): Update.
5680 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5681 (_initialize_cris_tdep): Update.
5682 * arch-utils.c (legacy_print_insn): Update.
5683 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5684
5685 2003-04-26 Adam Fedor <fedor@gnu.org>
5686
5687 * linespec.c (decode_objc): New function to decode ObjC calls
5688 (decode_line_1): Check for ObjC calls (using decode_objc)
5689 * Makefile (linespec.o): Update dependencies.
5690
5691 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
5692
5693 * breakpoint.h (struct breakpoint_ops): New.
5694 (struct breakpoint): Add ops member.
5695
5696 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5697 (mention): Use new breakpoint ops member.
5698 (set_raw_breakpoint): Initialize ops field to NULL.
5699 (print_exception_catchpoint, print_one_exception_catchpoint)
5700 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5701 (gnu_v3_exception_catchpoint_ops): New.
5702 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5703
5704 2003-04-25 Adam Fedor <fedor@gnu.org>
5705
5706 * Makefile.in (COMMON_OBS): Add objc-lang.o
5707
5708 2003-04-25 Andrew Cagney <cagney@redhat.com>
5709
5710 * d10v-tdep.c (print_insn): Delete function.
5711 (display_trace): Use TARGET_PRINT_INSN.
5712 (_initialize_d10v_tdep): Do not set tm_print_insn.
5713 (d10v_gdbarch_init): Set print_insn.
5714
5715 2003-04-25 Andrew Cagney <cagney@redhat.com>
5716
5717 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5718 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5719 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5720 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5721 (nr_dmap_regs, a0_regnum): ... new functions.
5722 (d10v_print_registers_info): Use a0_regnum, use register_size.
5723 (d10v_register_byte): Delete function.
5724 (d10v_register_raw_size): Delete function.
5725 (d10v_register_type): Use a0_regnum.
5726 (d10v_print_registers_info): Use a0_regnum.
5727 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5728 (d10v_gdbarch_init): Do not set register_byte or
5729 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5730 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5731 extract_address.
5732 (trace_command): Use XCALLOC.
5733 (print_insn): Delete reference to tm_print_insn.
5734 (saved_regs_unwinder): Use store_unsigned_integer instead of
5735 store_address.
5736 * frame.h (FRAME_OBSTACK_CALLOC): Define
5737
5738 2003-04-25 David Carlton <carlton@bactrian.org>
5739
5740 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5741
5742 2003-04-24 Adam Fedor <fedor@gnu.org>
5743
5744 * objc-lang.c: Include "valprint.h"
5745 * Makefile.in (objc-lang.o): Update dependencies.
5746
5747 2003-04-24 Adam Fedor <fedor@gnu.org>
5748
5749 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5750 architecture dependant compilation and mark as unimplemented
5751 (until they get put in the gdbarch vector).
5752
5753 2003-04-23 David Carlton <carlton@bactrian.org>
5754
5755 * cp-support.c (cp_find_first_component): Accept 'operator' in
5756 more locations.
5757
5758 2003-04-23 Andrew Cagney <cagney@redhat.com>
5759
5760 * infcall.c (call_function_by_hand): Eliminate redundant
5761 indentation. Move "saved_async" and "old_cleanups" to where they
5762 are needed.
5763
5764 2003-04-23 Andrew Cagney <cagney@redhat.com>
5765
5766 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5767 and "buffer". Move the "name" code to where it is needed.
5768
5769 2003-04-23 Andrew Cagney <cagney@redhat.com>
5770
5771 * infcall.c (call_function_by_hand): Move variables "start_sp",
5772 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5773 code to ON_STACK switch branch.
5774
5775 2003-04-23 Andrew Cagney <cagney@redhat.com>
5776
5777 * infcall.c (call_function_by_hand): Make declaration of "i",
5778 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5779 lint.
5780
5781 2003-04-23 Andrew Cagney <cagney@redhat.com>
5782
5783 * infcall.c (call_function_by_hand): Delete variable
5784 "n_method_args". Localize "param_type"'s declaration to the loop
5785 that it is used. Reinstate code assigning to said variable -
5786 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5787 Rationalize code using "param_type".
5788
5789 2003-04-22 Andrew Cagney <cagney@redhat.com>
5790
5791 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5792 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5793 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5794 to DEPRECATED_PUSH_RETURN_ADDRESS.
5795
5796 2003-04-22 Kevin Buettner <kevinb@redhat.com>
5797
5798 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5799 on the DWARF2 register number prior to fetching a register.
5800
5801 2003-04-22 J. Brobecker <brobecker@gnat.com>
5802
5803 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5804 Update all the tests using SOFT_FLOAT considering the fact that
5805 this macro was always set to 0.
5806 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5807 considering the fact that this macro was always set to 0.
5808 * hppa-tdep.h (hppa_store_return_value): Likewise.
5809 (hppa_extract_return_value): Likewise.
5810
5811 2003-04-22 J. Brobecker <brobecker@gnat.com>
5812
5813 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5814 the hppa-pro target only.
5815
5816 2003-04-21 J. Brobecker <brobecker@gnat.com>
5817
5818 Ongoing multi-arch conversion effort for HP/UX:
5819 * config/pa/tm-hppa.h: Move all macro that are no longer
5820 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5821 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5822
5823 2003-04-21 J. Brobecker <brobecker@gnat.com>
5824
5825 * config/pa/tm-hppa.h: Obsolete a section that was only used
5826 for hppa-pro.
5827
5828 2003-04-21 J. Brobecker <brobecker@gnat.com>
5829
5830 Ongoing multi-arch conversion for HP/UX.
5831 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5832 if already defined (allows hppa64 to stay non-multiarched for now).
5833 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5834
5835 2003-04-21 Andrew Cagney <cagney@redhat.com>
5836
5837 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5838
5839 2003-04-21 Andrew Cagney <cagney@redhat.com>
5840
5841 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5842 "i386_num_mmx_regs".
5843
5844 2003-04-21 Andrew Cagney <cagney@redhat.com>
5845
5846 * infcall.c: New file.
5847 * infcall.h: New file.
5848 * valarith.c: Include "infcall.h".
5849 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5850 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5851 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5852 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5853 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5854 (SFILES): Add "infcall.c"
5855 (COMMON_OBS): Add "infcall.o".
5856 (infcall.o): Specify dependencies.
5857 * value.h (call_function_by_hand): Delete declaration.
5858 * inferior.h (run_stack_dummy): Delete declaration.
5859 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5860 (run_stack_dummy): Move to "infcall.c", merged into
5861 call_function_by_hand.
5862 * valops.c (call_function_by_hand): Moved to "infcall.c".
5863 (find_function_addr, value_arg_coerce): Ditto.
5864 (unwindonsignal_p, coerce_float_to_double): Ditto.
5865 (_initialize_valops): Move "set/show coerce-float-to-double", and
5866 "set/show unwindonsignal" commands to "infcall.c".
5867 * v850-tdep.c, target.h: Update comments.
5868 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5869 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5870 (sh64_init_extra_frame_info): Update comments.
5871 * mn10300-tdep.c: Update comments.
5872 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5873 * config/sparc/tm-sparc.h: Update comments.
5874 * breakpoint.h: Update comments.
5875 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5876 * arm-tdep.c: Update comment.
5877
5878 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5879
5880 * i386-tdep.c (i386_num_register_names): New variable.
5881 (i386_num_mmx_regs): Renamed from mmx_num_regs.
5882 (MM0_REGNUM): Remove redundant parentheses in define.
5883 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
5884 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
5885 i386_mxcsr_regnum_p): Remove redundant parentheses.
5886 (i386_register_name): Use i386_num_register_names.
5887
5888 * i386-tdep.c (i386_extract_return_value,
5889 i386_store_return_value): Correct check for availability of
5890 floating-point registers.
5891
5892 * i386-tdep.c (i386_frame_num_args): Remove function.
5893 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
5894
5895 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
5896 mmx_regnum_to_fp_regnum. Adjust all callers.
5897
5898 * i386-tdep.c (i386_get_longjmp_target): Use
5899 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
5900 and TARGET_CHAR_BIT. Use extract_typed_address instead of
5901 extract_address.
5902
5903 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5904
5905 * core-regset.c: Update comments to reflect reality. Re-order
5906 includes.
5907 (fetch_core_registers): Use switch instead of if. Remove
5908 redundant prototype.
5909
5910 2003-04-18 Jim Blandy <jimb@redhat.com>
5911
5912 * s390-tdep.c (s390_frame_align): New function.
5913 (s390_gdbarch_init): Register it with the gdbarch object.
5914
5915 2003-04-17 Richard Henderson <rth@redhat.com>
5916
5917 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
5918
5919 2003-04-17 Michael Snyder <msnyder@redhat.com>
5920 Karen Bennet <bennet@redhat.com>
5921
5922 Committed by Elena Zannoni <ezannoni@redhat.com>
5923 * gdb_gcore.sh: New script to create a core dump of a process.
5924
5925 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
5926
5927 * values.c (value_being_returned): Don't fetch the return
5928 value if the return type is void.
5929
5930 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5931
5932 * thread-db.c: Reindented.
5933
5934 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5935
5936 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
5937 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
5938 as types.
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964 2003-04-16 Kevin Buettner <kevinb@redhat.com>
5965
5966 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
5967 the size of ``long double'' to 16, instead of 8.
5968
5969 2003-04-16 Mark Kettenis <kettenis@gnu.org>
5970
5971 * i386-linux-nat.c: Add some whitespace to make things more
5972 readable.
5973 (fetch_register, store_register, fetch_inferior_registers,
5974 store_inferior_registers): Get rid of assignment in if-statement.
5975 (store_register): Fix typo in error message.
5976
5977 2003-04-16 Andrew Cagney <cagney@redhat.com>
5978
5979 * utils.c (xmmalloc): Always allocate something, matches
5980 libiberty/xmalloc's semantics.
5981 (xmrealloc, xmcalloc): Ditto.
5982
5983 2003-04-16 Andrew Cagney <cagney@redhat.com>
5984
5985 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5986 update comments.
5987 (get_frame_type): Initialize unwind and type when needed.
5988 (get_frame_id, frame_register_unwind): Ditto.
5989
5990 2003-04-16 Andrew Cagney <cagney@redhat.com>
5991
5992 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
5993 obsolete.
5994 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
5995 * sparcl-stub.c: Obsolete file.
5996 * config/sparc/tm-sparclet.h: Obsolete file.
5997 * sparclet-stub.c: Obsolete file.
5998 * sparclet-rom.c: Obsolete file.
5999 * sparcl-tdep.c: Obsolete file.
6000 * config/sparc/tm-sparclite.h: Obsolete file.
6001 * config/sparc/sparclite.mt: Obsolete file.
6002 * config/sparc/sparclet.mt: Obsolete file.
6003 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6004 sparc86x-*-* obsolete.
6005
6006 2003-04-15 David Carlton <carlton@math.stanford.edu>
6007
6008 * Makefile.in (SFILES): Add cp-namespace.c.
6009 (COMMON_OBS): Add cp-namespace.o.
6010 (block.o): Depend on gdb_obstack_h and cp_support_h.
6011 (buildsym.o): Depend on cp_support_h.
6012 (cp-namespace.o): New.
6013 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6014 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6015 (dwarf2read.o): Depend on cp_support_h.
6016 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6017 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6018 processing_current_namespace.
6019 (read_namespace): Update processing_current_namespace; check for
6020 anonymous namespaces.
6021 (dwarf2_name): New function.
6022 (dwarf2_extension): Ditto.
6023 * cp-support.h: Update copyright, contributors.
6024 Add inclusion guards.
6025 Add opaque declaration for structs obstack, block, symbol.
6026 (struct using_direct): New struct.
6027 Add declarations for cp_find_first_component,
6028 cp_entire_prefix_len, processing_has_namespace_info,
6029 processing_current_namespace, cp_is_anonymous,
6030 cp_add_using_directive, cp_initialize_namespace,
6031 cp_finalize_namespace, cp_set_block_scope,
6032 cp_scan_for_anonymous_namespaces.
6033 * cp-namespace.c: New file.
6034 * cp-support.c: Update copyright.
6035 Include ctype.h, gdb_assert.h, gdbcmd.h.
6036 New variable maint_cplus_cmd_list.
6037 (cp_find_first_component): New function.
6038 (cp_entire_prefix_len, maint_cplus_command)
6039 (first_component_command, _initialize_cp_support): Ditto.
6040 * buildsym.c: Include cp-support.h.
6041 New variable using_list.
6042 (add_symbol_to_list): Check for anonymous namespaces.
6043 (finish_block): Set block's scope.
6044 (start_symtab): Initialize C++ namespace support.
6045 (end_symtab): Finalize C++ namespace support.
6046 * block.h: Add opaque declarations for structs
6047 block_namespace_info, using_direct, and obstack.
6048 Add declarations for block_set_scope and block_set_using.
6049 (struct block): Add 'language_specific' member.
6050 (BLOCK_NAMESPACE): New macro.
6051 * block.c: Include gdb_obstack.h and cp-support.h.
6052 (struct block_namespace_info): New struct.
6053 (block_set_scope): New function.
6054 (block_set_using, block_initialize_namespace): Ditto.
6055
6056 2003-04-14 Kevin Buettner <kevinb@redhat.com>
6057
6058 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6059 (locate_base): Return early if there aren't any link map offsets.
6060 (svr4_solib_create_inferior_hook): Warn if shared library support
6061 is unavailable.
6062
6063 2003-04-14 David Carlton <carlton@math.stanford.edu>
6064
6065 * symtab.c (symbol_set_names): Add prefix when storing Java names
6066 in hash table. Fix for PR java/1039.
6067
6068 2003-04-14 David Carlton <carlton@math.stanford.edu>
6069
6070 * symtab.c (symbol_set_names): Rename 'name' arg to
6071 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6072 * symtab.h: Change 'name' argument in declaration of
6073 symbol_set_names to 'linkage_name'.
6074 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6075
6076 2003-04-14 Andrew Cagney <cagney@redhat.com>
6077
6078 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6079 return the fully sign-extended register value.
6080 (get_frame_pointer): Ditto.
6081 (mips_pop_frame): Initialize "proc_desc" after checking for a
6082 dummy frame.
6083
6084 2003-04-14 Andrew Cagney <cagney@redhat.com>
6085
6086 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6087 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6088 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6089 (mips_push_register): Delete function.
6090 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6091 PUSH_FP_REGNUM.
6092
6093 2003-04-14 Jim Blandy <jimb@redhat.com>
6094
6095 * symmisc.c: #include "gdb_regex.h".
6096 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6097 functions.
6098 * maint.c (maintenance_list_command): New function.
6099 (_initialize_maint_cmds): Register the above as commands.
6100 * symtab.h (maintenance_list_symtabs,
6101 maintenance_list_psymtabs): New declarations.
6102 * cli/cli-cmds.c (maintenancelistlist): New variable.
6103 (init_cmd_lists): Initialize it.
6104 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6105 * gdbcmd.h (maintenancelistlist): New declaration.
6106 * Makefile.in (symmisc.o): Update dependencies.
6107
6108 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
6109
6110 * s390-nat.c: Include asm/types.h for addr_t.
6111
6112 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
6113
6114 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6115 actually incoming type.
6116
6117 2003-04-13 Andrew Cagney <cagney@redhat.com>
6118
6119 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6120 get_next_frame and get_frame_saved_regs.
6121
6122 2003-04-13 Andrew Cagney <cagney@redhat.com>
6123
6124 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6125 of gdbarch_num_regs.
6126
6127 2003-04-13 Andrew Cagney <cagney@redhat.com>
6128
6129 * frame.h: Mention what replaced what in "struct frame_info".
6130 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6131 deprecated_update_frame_base_hack and
6132 deprecated_update_frame_pc_hack.
6133 * hppa-tdep.c: Ditto.
6134
6135 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6136
6137 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6138 to read_reg and update its comment. Remove regnum member.
6139 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6140 Don't call read_reg when setting in_reg. Call read_reg to get
6141 the frame base if it's in a register. Return the register number
6142 on the stack instead of in the context. Remove extra arguments
6143 to read_reg.
6144 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6145 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6146 the register number on the expression stack.
6147 (needs_frame_read_reg): Remove extra arguments.
6148
6149 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6150
6151 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6152 made non-static.
6153 (execute_stack_op): All callers updated.
6154 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6155 * dwarf2loc.c (find_location_expression): New function.
6156 (dwarf_expr_frame_base): Call it.
6157 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6158 (dwarf2_tracepoint_var_ref): New function, broken out from
6159 locexpr_tracepoint_var_ref.
6160 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6161 Make static.
6162 (loclist_read_variable, loclist_read_needs_frame): New functions.
6163 (loclist_describe_location, loclist_tracepoint_var_ref): New
6164 functions.
6165 (dwarf2_loclist_funcs): New struct location_funcs.
6166 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6167 (struct dwarf2_locexpr_baton): Add comments.
6168 (dwarf2_loclist_funcs): New extern.
6169 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6170 base_address and base_known.
6171 (dwarf_loc_buffer): New variable.
6172 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6173 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6174 (dwarf2_has_info): Initialize dwarf_loc_offset.
6175 (dwarf2_build_psymtabs): Read in .debug_loc.
6176 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6177 DWARF_LOC_SIZE.
6178 (psymtab_to_symtab_1): Likewise. Move base address calculation
6179 here, from...
6180 (dwarf2_get_pc_bounds): ... here. Use the base address from
6181 cu_header.
6182 (dwarf2_symbol_mark_computed): Handle location lists.
6183
6184 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6185
6186 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6187 if the linkage name demangled successfully.
6188
6189 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6190
6191 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6192 disassmbly_flavour): Removed.
6193
6194 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6195
6196 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6197
6198 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6199
6200 2003-04-12 Andrew Cagney <cagney@redhat.com>
6201
6202 * frame.h (struct frame_info): Move definition from here ...
6203 * frame.c (struct frame_info): ... to here.
6204
6205 2003-04-12 Andrew Cagney <cagney@redhat.com>
6206
6207 * gdbthread.h (save_infrun_state): Delete parameter
6208 "prev_func_start".
6209 (struct thread_info): Delete field "prev_func_start".
6210 (load_infrun_state): Ditto.
6211 * thread.c (load_infrun_state, save_infrun_state): Update.
6212 * infrun.c (prev_func_start): Delete variable.
6213 (context_switch, init_wait_for_inferior): Update.
6214 (stop_stepping, keep_going): Update.
6215
6216 2003-04-12 Andrew Cagney <cagney@redhat.com>
6217
6218 * gdbarch.sh: Add missing opaque declarations.
6219 * gdbarch.h: Regnerate.
6220 * symtab.h: Add missing opaque declarations.
6221 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6222 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6223 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6224 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6225 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6226 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6227 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6228 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6229 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6230 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6231 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6232 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6233 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6234
6235 2003-04-11 Andrew Cagney <cagney@redhat.com>
6236
6237 * frame.c (get_frame_id): Return this frame's "id".
6238 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6239 function start.
6240 (legacy_saved_regs_this_id): Replace function body with
6241 internal-error.
6242 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6243 FRAME_OBSTACK_ZALLOC.
6244 (create_new_frame): Mark the frame ID as valid.
6245
6246 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6247
6248 * Makefile.in (libbfd_h): Added missing setting.
6249 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6250 according to the selected ABI.
6251
6252 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6253
6254 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6255
6256 2003-04-11 Andrew Cagney <cagney@redhat.com>
6257
6258 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6259 SAVED_PC_AFTER_CALL.
6260 * gdbarch.h, gdbarch.c: Regenerate.
6261 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6262 * x86-64-tdep.c (x86_64_init_abi): Update.
6263 * vax-tdep.c (vax_gdbarch_init): Update.
6264 * v850-tdep.c (v850_gdbarch_init): Update.
6265 * sparc-tdep.c (sparc_gdbarch_init): Update.
6266 * sh-tdep.c (sh_gdbarch_init): Update.
6267 * s390-tdep.c (s390_gdbarch_init): Update.
6268 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6269 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6270 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6271 * mips-tdep.c (mips_gdbarch_init): Update.
6272 * mcore-tdep.c (mcore_gdbarch_init): Update.
6273 * m68k-tdep.c (m68k_gdbarch_init): Update.
6274 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6275 * ia64-tdep.c (ia64_gdbarch_init): Update.
6276 (ia64_saved_pc_after_call): Update declaration.
6277 * i386ly-tdep.c (i386lynx_init_abi): Update.
6278 * i386-tdep.c (i386_gdbarch_init): Update.
6279 * hppa-tdep.c (hppa_gdbarch_init): Update.
6280 * h8300-tdep.c (h8300_gdbarch_init): Update.
6281 * frv-tdep.c (frv_gdbarch_init): Update.
6282 * cris-tdep.c (cris_gdbarch_init): Update.
6283 * avr-tdep.c (avr_gdbarch_init): Update.
6284 * arm-tdep.c (arm_gdbarch_init): Update.
6285 * alpha-tdep.c (alpha_gdbarch_init): Update.
6286 * ns32knbsd-nat.c (frame_num_args): Update.
6287 * ns32k-tdep.c (umax_frame_num_args): Update.
6288 * mips-tdep.c (mips_init_frame_pc_first): Update.
6289 * infrun.c (step_over_function): Update.
6290 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6291 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6292 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6293 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6294 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6295 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6296 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6297 * arch-utils.c (init_frame_pc_default): Update.
6298 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6299 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6300 declaration.
6301
6302 2003-04-11 Andrew Cagney <cagney@redhat.com>
6303
6304 * i387-tdep.c: Update copyright.
6305 (i387_to_double): Delete function.
6306 (double_to_i387): Delete function.
6307
6308 2003-04-10 Andrew Cagney <cagney@redhat.com>
6309
6310 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6311 frame's function's address. Simplify.
6312 (d10v_frame_unwind_cache): Check that the frame's function is
6313 non-zero.
6314
6315 2003-04-10 Jim Blandy <jimb@redhat.com>
6316
6317 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6318 call to set_gdbarch_deprecated_push_arguments.
6319
6320 2003-04-10 Andrew Cagney <cagney@redhat.com>
6321
6322 * frame.c (fprint_frame_id): New function.
6323 (fprint_frame_type, fprint_frame): New function.
6324 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6325 (create_sentinel_frame, get_frame_id): Ditto.
6326 (frame_id_p, frame_id_eq): Ditto.
6327 (frame_id_inner, create_new_frame): Ditto.
6328 (legacy_get_prev_frame, get_prev_frame): Ditto.
6329 (deprecated_update_frame_pc_hack): Ditto.
6330 (frame_register_unwind): Ditto.
6331 (deprecated_update_frame_base_hack): Ditto.
6332
6333 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6334
6335 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6336 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6337 frame_chain function.
6338 * Makefile.in: Add dependencies due to above change.
6339
6340 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6341
6342 * blockframe.c (legacy_frame_chain_valid): Move call to
6343 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6344 inside_entry_file.
6345
6346 2003-04-09 Andrew Cagney <cagney@redhat.com>
6347
6348 * frame.h (struct frame_id): Replace "pc" and "base" with
6349 "stack_addr" and "code_addr". Update comments.
6350 (frame_id_build): Update parameter names and comment.
6351 (struct frame_info): Replace "id_p" and "id" with "this_id".
6352 * dummy-frame.c (dummy_frame_this_id): Update.
6353 * breakpoint.c (print_one_breakpoint): Update.
6354 * frame.c (get_frame_id): Update.
6355 (get_frame_base, frame_id_build): Update.
6356 (create_sentinel_frame, legacy_get_prev_frame): Update.
6357 (deprecated_update_frame_base_hack): Update.
6358 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6359 (frame_id_inner): Ditto.
6360
6361 2003-04-09 Andrew Cagney <cagney@redhat.com>
6362
6363 * defs.h (gdb_print_host_address): Make "addr" parameter a
6364 pointer constant.
6365 * utils.c (gdb_print_host_address): Update.
6366
6367 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6368
6369 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6370 register number for R0 is 0.
6371
6372 2003-04-09 J. Brobecker <brobecker@gnat.com>
6373
6374 * frame.h (struct gdbarch): Add opaque structure definition
6375 to avoid a compilation warning on LynxOS 4.0.
6376
6377 2003-04-09 Andrew Cagney <cagney@redhat.com>
6378
6379 * frame.h (struct frame_info): Delete field "pc". Replace
6380 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6381 structure.
6382 * frame.c (frame_pc_unwind): Update.
6383 (create_sentinel_frame): Do not set "pc".
6384 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6385 (get_frame_pc): Call frame_pc_unwind.
6386 (deprecated_update_frame_pc_hack): Update.
6387 (create_new_frame): Use "pc" not "->pc".
6388
6389 2003-04-09 Andrew Cagney <cagney@redhat.com>
6390
6391 * frame.c (get_frame_id): Eliminate code updating "frame".
6392 (legacy_get_prev_frame): Ditto.
6393 (get_frame_base): Return id.base directly.
6394 (deprecated_update_frame_base_hack): Update "id.base".
6395 * frame.h (struct frame_info): Delete field "frame".
6396
6397 2003-04-09 Andrew Cagney <cagney@redhat.com>
6398
6399 * NEWS: Mention that the "Sequent family" is obsolete.
6400 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6401 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6402 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6403 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6404 * config/i386/tm-ptx4.h: Obsolete file.
6405 * config/i386/tm-ptx.h: Obsolete file.
6406 * symm-tdep.c: Obsolete file.
6407 * config/i386/symmetry.mt: Obsolete file.
6408 * config/i386/tm-symmetry.h: Obsolete file.
6409 * symm-nat.c: Obsolete file.
6410 * config/i386/nm-symmetry.h: Obsolete file.
6411 * config/i386/xm-symmetry.h: Obsolete file.
6412 * config/i386/symmetry.mh: Obsolete file.
6413 * config/i386/nm-ptx4.h: Obsolete file.
6414 * config/i386/ptx4.mh: Obsolete file.
6415 * config/i386/ptx.mt: Obsolete file.
6416 * config/i386/ptx.mh: Obsolete file.
6417 * config/i386/xm-ptx4.h: Obsolete file.
6418 * config/i386/xm-ptx.h: Obsolete file.
6419
6420 2003-04-09 Andrew Cagney <cagney@redhat.com>
6421
6422 Obsolete mips*-*-mach3*.
6423 * NEWS: Mention that mips*-*-mach3* is obsolete.
6424 * m3-nat.c: Obsolete file.
6425 * config/nm-m3.h: Obsolete file.
6426 * config/mips/tm-mipsm3.h: Obsolete file.
6427 * config/mips/mipsm3.mt: Obsolete file.
6428 * config/mips/mipsm3.mh: Obsolete file.
6429 * config/mips/xm-mipsm3.h: Obsolete file.
6430 * mipsm3-nat.c: Obsolete file.
6431 * configure.host: Obsolete mips-dec-mach3*.
6432 * configure.tgt: Obsolete mips*-*-mach3*.
6433
6434 2003-04-09 Andrew Cagney <cagney@redhat.com>
6435
6436 * doublest.h: Update copyright.
6437 (deprecated_store_floating, deprecated_extract_floating): Rename
6438 store_floating and extract_floating. Update comments.
6439 * doublest.c: Update copyright.
6440 (extract_floating_by_length): Replace extract_floating.
6441 (store_floating_by_length): Replace store_floating.
6442 (deprecated_extract_floating): New function.
6443 (deprecated_store_floating): New function.
6444 (extract_typed_floating): Call extract_floating_by_length.
6445 (store_typed_floating): Call store_floating_by_length.
6446 * x86-64-tdep.c (x86_64_store_return_value): Update.
6447 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6448 (sh64_extract_return_value): Update.
6449 (sh_sh4_register_convert_to_virtual): Update.
6450 (sh_sh64_register_convert_to_virtual): Update.
6451 (sh_sh4_register_convert_to_raw): Update.
6452 (sh_sh64_register_convert_to_raw): Update.
6453 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6454 (rs6000_register_convert_to_raw): Update.
6455 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6456 (ia64_register_convert_to_raw): Update.
6457 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6458 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6459 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6460 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6461 (alpha_register_convert_to_raw): Update.
6462
6463 2003-04-08 Andrew Cagney <cagney@redhat.com>
6464
6465 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6466 * gdbarch.h, gdbarch.c: Re-generate.
6467 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6468 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6469 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6470 conditionally, use frame_pc_unwind as an alternative. Add
6471 comments.
6472 * arch-utils.c (init_frame_pc_default): Only call
6473 SAVED_PC_AFTER_CALL when available.
6474
6475 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6476
6477 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6478 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6479 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6480 (start_remote): Ditto.
6481 (handle_inferior_event): Ditto.
6482 (save_inferior_status): Ditto.
6483 (restore_inferior_status): Ditto.
6484 * infcmd.c (attach_command): Ditto.
6485 * fork-child.c (startup_inferior): Ditto.
6486 * inferior.h (stop_soon): Rename from stop_soon_quietly.
6487 * alpha-tdep.c (heuristic_proc_start): Ditto.
6488 * mips-tdep.c (heuristic_proc_start): Ditto.
6489 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6490 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6491 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6492 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6493 * remote-vx.c (vx_create_inferior): Ditto.
6494
6495 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6496
6497 * infrun.c (stop_soon_quietly): Make it an enum, to better
6498 override the default behavior of handle_inferior_event.
6499 (clear_proceed_status): Update uses of stop_soon_quietly to
6500 reflect that it is now an enum.
6501 (start_remote): Ditto.
6502 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6503 is set to handle the new GNU/Linux kernel behavior for
6504 attach/sigstop. Update uses of stop_soon_quietly.
6505 * inferior.h (enum stop_kind): New enum.
6506 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6507 Reset normal handle_inferior_event behavior, afterwards.
6508 * fork-child.c (startup_inferior): Update.
6509 * alpha-tdep.c (heuristic_proc_start): Update.
6510 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6511 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6512 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6513 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6514 * remote-vx.c (vx_create_inferior): Update.
6515 * mips-tdep.c (heuristic_proc_start): Update.
6516
6517 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
6518
6519 * disasm.c (dump_insns): Move variables inside loop, or they will
6520 be freed more than once, causing wild memory corruptions.
6521 (gdb_disassembly): Look for the substring "-thread",
6522 instead of "-threads" in the target name, to make sure to find
6523 the 'multi-thread' target. Also, make sure we do the right thing
6524 with the "core" target.
6525
6526 2003-04-07 Kevin Buettner <kevinb@redhat.com>
6527
6528 * mips-tdep.c (mips_print_fp_register): New function, created from
6529 do_fp_register_row(). Registers are now (also) printed as hex.
6530 Only one register is printed per row.
6531 (mips_print_register, do_fp_register_row): Print floating point
6532 registers with mips_print_fp_register().
6533
6534 2003-04-06 Andrew Cagney <cagney@redhat.com>
6535
6536 * valprint.h (inspect_it): Add extern declaration.
6537 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6538 (selectors_info, classes_info): Ditto.
6539 (find_objc_msgcall): Fix indentation.
6540 (objc_printstr): Delete extern declarations.
6541
6542 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6543
6544 2003-04-06 Andrew Cagney <cagney@redhat.com>
6545
6546 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6547 Update comment.
6548 * frame.c (legacy_saved_regs_this_id): Update.
6549 (legacy_get_prev_frame): Update.
6550 * xstormy16-tdep.c: Update comment.
6551 * sparc-tdep.c (sparc_frame_chain): Update comment.
6552 * blockframe.c (legacy_frame_chain_valid): Update.
6553
6554 2003-04-06 Andrew Cagney <cagney@redhat.com>
6555
6556 * valprint.c (val_print_type_code_int): Delete #ifdef
6557 PRINT_TYPELESS_INTEGER code.
6558
6559 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6560 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6561 multi-arch definition.
6562 * gdbarch.h: Re-generate.
6563
6564 2003-04-05 Andrew Cagney <cagney@redhat.com>
6565
6566 Eliminate FRAME_FIND_SAVED_REGS.
6567 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6568 Change FSR parameter to a pointer.
6569 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6570 Assume FSR parameter is a pointer.
6571 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6572 Make fsr a pointer.
6573 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6574 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6575 saved_regs a pointer.
6576 (hppa_frame_saved_pc): Ditto.
6577 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6578 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6579 pointer.
6580 (restore_pc_queue): Make fsr a pointer.
6581 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6582 (hppa_frame_chain): Make saved_regs a pointer, call
6583 hppa_frame_init_saved_regs.
6584 * sparc-tdep.c: Include "gdb_assert.h".
6585 (sparc_frame_find_saved_regs): Replace internal_error with
6586 gdb_assert.
6587 * remote-vxsparc.c (vx_read_register): Delete reference to
6588 FRAME_FIND_SAVED_REGS.
6589 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6590 * gdbarch.h: Regenerate.
6591 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6592 (deprecated_get_frame_saved_regs): Delete declaration.
6593 (struct frame_saved_regs): Delete definition.
6594 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6595 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6596 (hppa_frame_find_saved_regs): Delete declaration.
6597 (FRAME_FIND_SAVED_REGS): Delete macro.
6598 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6599 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6600 FRAME_FIND_SAVED_REGS in comment.
6601
6602 2003-04-05 Andrew Cagney <cagney@redhat.com>
6603
6604 * frame.c (frame_func_unwind, get_frame_func): New functions.
6605 * frame.h (get_frame_func, frame_func_unwind): Declare.
6606 (struct frame_info): Add field "prev_func" for caching the
6607 previous frame's function address.
6608 * arm-tdep.c (arm_frameless_function_invocation): Combine
6609 get_pc_function_start and get_frame_pc into get_frame_func.
6610 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6611 (sh64_nofp_frame_init_saved_regs): Ditto.
6612 * s390-tdep.c (s390_function_start): Ditto.
6613 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6614 (rs6000_frameless_function_invocation): Ditto.
6615 (rs6000_frame_saved_pc): Ditto.
6616 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6617 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6618 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6619 (i386_frame_init_saved_regs): Ditto.
6620 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6621 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6622 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6623 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6624 * blockframe.c (frameless_look_for_prologue): Ditto.
6625
6626 2003-04-05 Andrew Cagney <cagney@redhat.com>
6627
6628 * frame.c (legacy_get_prev_frame): Link prev to next at the
6629 function start. Update comments.
6630
6631 2003-04-05 Andrew Cagney <cagney@redhat.com>
6632
6633 * frame.c (get_frame_id): Update comment.
6634 (legacy_get_prev_frame): Update comment.
6635 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6636 * gdbarch.h: Regenerate.
6637 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6638 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6639
6640 2003-04-05 Andrew Cagney <cagney@redhat.com>
6641
6642 * stack.c (print_frame_info): Use get_frame_pc.
6643
6644 2003-04-04 Andrew Cagney <cagney@redhat.com>
6645
6646 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6647 the frame's type from the unwinder.
6648 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6649 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6650 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6651 (get_frame_base_address): Use get_frame_type.
6652 (get_frame_locals_address, get_frame_args_address): Ditto.
6653 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6654 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6655 (struct frame_info): Add comment explaining why the frame contains
6656 a "type" field.
6657 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6658 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6659 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6660 NORMAL_FRAME.
6661 * frame-unwind.h: Include "frame.h".
6662 (struct frame_unwind): Add "type" field.
6663 * Makefile.in (frame_unwind_h): Add $(frame_h).
6664
6665 2003-04-04 Andrew Cagney <cagney@redhat.com>
6666
6667 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6668 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6669 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6670 get_frame_base.
6671 (d10v_unwind_dummy_id): Use frame_id_build.
6672 * frame.c (find_frame_sal): Use get_frame_pc.
6673 (create_new_frame): Use deprecated_update_frame_pc_hack and
6674 deprecated_update_frame_base_hack.
6675 (create_sentinel_frame): Add comment about ->pc going away.
6676 (get_prev_frame): Add comment about ->pc going away.
6677 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6678 frame_id_build, deprecated_update_frame_pc_hack and
6679 deprecated_update_frame_base_hack.
6680 (select_frame): Use get_frame_pc.
6681 (legacy_saved_regs_this_id): Use frame_id_build.
6682
6683 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
6684
6685 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6686 signed integer case.
6687 (classify_argument): Handle enumerations and references.
6688
6689 2003-04-04 Andrew Cagney <cagney@redhat.com>
6690
6691 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6692 ID to NULL.
6693
6694 2003-04-01 Adam Fedor <fedor@gnu.org>
6695
6696 * gdb/objc-lang.c (selectors_info): Replace calls to
6697 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6698 SYMBOL_NATURAL_NAME.
6699 (classes_info, find_methods): Likewise.
6700
6701 2003-04-03 Kevin Buettner <kevinb@redhat.com>
6702
6703 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6704 ``mach'' to the value determined by bfd_default_set_arch_mach().
6705
6706 2003-04-02 Bob Rossi <bob_rossi@cox.net>
6707
6708 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6709 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6710 (mi-cmd-file.o): Update dependencies.
6711
6712 2003-04-01 Kevin Buettner <kevinb@redhat.com>
6713
6714 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6715 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6716
6717 2003-04-01 Adam Fedor <fedor@gnu.org>
6718
6719 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6720 * language.h (struct language_defn): Add la_demangle.
6721 (language_demangle): Declare.
6722 * language.c (language_demangle): New function.
6723 (unk_lang_demangle): Likewise.
6724 (unknown_language_defn, auto_language_defn, local_language_defn):
6725 Add ukn_lang_demangle.
6726 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6727 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6728 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6729 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6730 * jv-lang.c (java_demangle): New function
6731 (java_language_defn): Use it for la_demangle element.
6732 * objc-lang.c (objc_demangle): Add options argument
6733 (objc_language_defn): Use objc_demangle for la_demangle element.
6734 * maint.c (maintenance_demangle): Replace switch with
6735 call to language_demangle.
6736 * utils.c (fprintf_symbol_filtered): Likewise.
6737
6738 2003-04-01 Andrew Cagney <cagney@redhat.com>
6739
6740 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6741 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6742 PRINT_TYPELESS_INTEGER.
6743 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6744 PUSH_RETURN_ADDRESS.
6745
6746 2003-04-01 Andrew Cagney <cagney@redhat.com>
6747
6748 * Makefile.in (d10v-tdep.o): Update dependencies.
6749 * d10v-tdep.c: Include "frame-base.h".
6750 (d10v_frame_unwind): Make constant.
6751 (d10v_frame_base_address): New function.
6752 (d10v_frame_base): New variable.
6753 (d10v_gdbarch_init): Set frame_base default.
6754 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6755 comment for base.
6756 (d10v_frame_unwind_cache): Set and use "prev_sp".
6757 (d10v_frame_this_id): Use the previous frame's inner most stack
6758 address and this frame's func address for the frame ID. Use
6759 frame_id_build. Don't analyze beyond the current instruction.
6760
6761 2003-04-01 Andrew Cagney <cagney@redhat.com>
6762
6763 * frame.h (get_frame_locals_address, get_frame_args_address):
6764 Refer to the base address, instead of the address of the first
6765 local or parameter.
6766
6767 2003-04-01 Andrew Cagney <cagney@redhat.com>
6768
6769 Add frame debug info addresses:
6770 * frame-base.c: New file.
6771 * frame-base.h: New file.
6772 * frame.h (struct frame_base): Add opaque declaration.
6773 (get_frame_base): Update comment.
6774 (get_frame_base_address): Declare.
6775 (get_frame_locals_address): Declare.
6776 (get_frame_args_address): Declare.
6777 (struct frame_info): Add "base" and "base_cache". Update
6778 comments on the unwinder.
6779 * frame.c: Include "frame-base.h".
6780 (get_frame_locals_address): New function.
6781 (get_frame_base_address): New function.
6782 (get_frame_args_address): New function.
6783 * findvar.c (read_var_value): Use get_frame_locals_address and
6784 get_frame_args_address.
6785 * stack.c (frame_info): Use get_frame_locals_address and
6786 get_frame_args_address.
6787 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6788 moved to "frame-base.c".
6789 * printcmd.c (print_frame_nameless_args): Ditto.
6790 * symtab.h (address_class): Update comments.
6791 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6792 get_frame_base_address.
6793 * dwarf2expr.c (execute_stack_op): Ditto.
6794 * Makefile.in (frame_base_h): Define.
6795 (frame.o): Update dependencies.
6796 (frame-base.o): Add dependencies.
6797 (SFILES): Add frame-base.c.
6798 (COMMON_OBS): Add frame-base.o.
6799
6800 2003-04-01 Andrew Cagney <cagney@redhat.com>
6801
6802 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6803 CALL_DUMMY_LENGTH): Ditto.
6804 * gdbarch.c: Re-generate.
6805 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6806 (CALL_DUMMY_LENGTH): Delete macro.
6807 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6808 * arm-tdep.c (arm_gdbarch_init): Ditto.
6809 * avr-tdep.c (avr_gdbarch_init): Ditto.
6810 * cris-tdep.c (cris_gdbarch_init): Ditto.
6811 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6812 * frv-tdep.c (frv_gdbarch_init): Ditto.
6813 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6814 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6815 * i386-tdep.c (i386_gdbarch_init): Ditto.
6816 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6817 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6818 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6819 * mips-tdep.c (mips_gdbarch_init): Ditto.
6820 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6821 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6822 * s390-tdep.c (s390_gdbarch_init): Ditto.
6823 * sh-tdep.c (sh_gdbarch_init): Ditto.
6824 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6825 * v850-tdep.c (v850_gdbarch_init): Ditto.
6826 * vax-tdep.c (vax_gdbarch_init): Ditto.
6827 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6828
6829 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
6830
6831 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6832
6833 2003-04-01 Andrew Cagney <cagney@redhat.com>
6834
6835 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6836 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6837 * gdbarch.h, gdbarch.c: Re-generate.
6838 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6839 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6840 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6841 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6842 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6843 * infcmd.c (run_stack_dummy): Simplify assuming
6844 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6845 * infrun.c (handle_inferior_event): Ditto.
6846 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6847 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6848 * arm-tdep.c (arm_gdbarch_init): Ditto.
6849 * avr-tdep.c (avr_gdbarch_init): Ditto.
6850 * cris-tdep.c (cris_gdbarch_init): Ditto.
6851 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6852 * frv-tdep.c (frv_gdbarch_init): Ditto.
6853 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6854 * i386-tdep.c (i386_gdbarch_init): Ditto.
6855 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6856 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6857 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6858 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6859 * mips-tdep.c (mips_gdbarch_init): Ditto.
6860 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6861 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6862 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6863 * s390-tdep.c (s390_gdbarch_init): Ditto.
6864 * sh-tdep.c (sh_gdbarch_init): Ditto.
6865 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6866 * v850-tdep.c (v850_gdbarch_init): Ditto.
6867 * vax-tdep.c (vax_gdbarch_init): Ditto.
6868 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6869
6870 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
6871
6872 * symfile.c (symfile_relocate_debug_section): Update call to
6873 bfd_simple_get_relocated_section_contents.
6874
6875 2003-03-31 Andrew Cagney <cagney@redhat.com>
6876
6877 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6878 * gdbarch.h, gdbarch.c: Regenerate.
6879 * inferior.h (FIX_CALL_DUMMY): Delete macro.
6880 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
6881 available.
6882 * frame.h (generic_fix_call_dummy): Delete declaration.
6883 * dummy-frame.h: Update comment.
6884 * dummy-frame.c (generic_fix_call_dummy): Delete function.
6885 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6886 fix_call_dummy.
6887 * sh-tdep.c (sh_gdbarch_init): Ditto.
6888 * s390-tdep.c (s390_gdbarch_init): Ditto.
6889 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6890 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6891 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6892 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6893 * i386-tdep.c (i386_gdbarch_init): Ditto.
6894 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6895 * frv-tdep.c (frv_gdbarch_init): Ditto.
6896 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6897 * cris-tdep.c (cris_gdbarch_init): Ditto.
6898 * avr-tdep.c (avr_gdbarch_init): Ditto.
6899 * arm-tdep.c (arm_gdbarch_init): Ditto.
6900
6901 2003-03-31 J. Brobecker <brobecker@gnat.com>
6902
6903 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
6904 (INIT_FRAME_AP): Likewise.
6905 (EXTRA_FRAME_INFO): Likewise.
6906
6907 2003-03-31 Andrew Cagney <cagney@redhat.com>
6908
6909 * gdbarch.sh: Include "symfile.h".
6910 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
6911 * gdbarch.h, gdbarch.c: Re-generate.
6912 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
6913 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6914 call_dummy_address, the default is at entry_point_address.
6915 * v850-tdep.c (v850_gdbarch_init): Ditto.
6916 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6917 * sh-tdep.c (sh_gdbarch_init): Ditto.
6918 * s390-tdep.c (s390_gdbarch_init): Ditto.
6919 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6920 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6921 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6922 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6923 * i386-tdep.c (i386_gdbarch_init): Ditto.
6924 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6925 * frv-tdep.c (frv_gdbarch_init): Ditto.
6926 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6927 * cris-tdep.c (cris_gdbarch_init): Ditto.
6928 * arm-tdep.c (arm_gdbarch_init): Ditto.
6929
6930 2003-03-31 Andrew Cagney <cagney@redhat.com>
6931
6932 * gdbarch.sh (CALL_DUMMY_P): Delete.
6933 * gdbarch.h, gdbarch.c: Re-generate.
6934 * inferior.h (CALL_DUMMY_P): Delete macro.
6935 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6936 * vax-tdep.c (vax_gdbarch_init): Update.
6937 * v850-tdep.c (v850_gdbarch_init): Update.
6938 * sparc-tdep.c (sparc_gdbarch_init): Update.
6939 * sh-tdep.c (sh_gdbarch_init): Update.
6940 * s390-tdep.c (s390_gdbarch_init): Update.
6941 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6942 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6943 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6944 * mips-tdep.c (mips_gdbarch_init): Update.
6945 * mcore-tdep.c (mcore_gdbarch_init): Update.
6946 * m68k-tdep.c (m68k_gdbarch_init): Update.
6947 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6948 * ia64-tdep.c (ia64_gdbarch_init): Update.
6949 * i386-tdep.c (i386_gdbarch_init): Update.
6950 * h8300-tdep.c (h8300_gdbarch_init): Update.
6951 * frv-tdep.c (frv_gdbarch_init): Update.
6952 * d10v-tdep.c (d10v_gdbarch_init): Update.
6953 * cris-tdep.c (cris_gdbarch_init): Update.
6954 * breakpoint.c (deprecated_frame_in_dummy): Update.
6955 * avr-tdep.c (avr_gdbarch_init): Update.
6956 * alpha-tdep.c (alpha_gdbarch_init): Update.
6957 * arm-tdep.c (arm_gdbarch_init): Update.
6958 * dummy-frame.c (dummy_frame_this_id): Update comments.
6959 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
6960 * frame.c (legacy_get_prev_frame): Ditto.
6961 * valops.c (call_function_by_hand): Delete function.
6962 (hand_function_call): Rename to call_function_by_hand
6963
6964 2003-03-30 Andrew Cagney <cagney@redhat.com>
6965
6966 2002-11-10 Klee Dienes <kdienes@apple.com>
6967 * value.h (struct value): Update comment.
6968
6969 2003-03-30 Andrew Cagney <cagney@redhat.com>
6970
6971 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
6972 D10V_FP_REGNUM.
6973 (d10v_gdbarch_init): Do not set fp_regnum.
6974
6975 * frame.c (get_frame_base): Force ID initialization.
6976 (get_prev_frame): Move computation of the frame ID from here ...
6977 (get_frame_id): ... to here.
6978 (legacy_get_prev_frame): Mark the frame ID as valid.
6979 * frame.h (struct frame_info): Add field "id_p".
6980
6981 2003-03-30 Mark Kettenis <kettenis@gnu.org>
6982
6983 * i386-tdep.c (i386_store_struct_return): Removed.
6984 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
6985
6986 2003-03-30 Andrew Cagney <cagney@redhat.com>
6987
6988 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
6989 * gdbarch.h, gdbarch.c: Regenerate.
6990 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
6991 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6992 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6993 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6994 * i386-tdep.c (i386_gdbarch_init): Ditto.
6995 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6996 * cris-tdep.c (cris_gdbarch_init): Ditto.
6997 * vax-tdep.c (vax_gdbarch_init): Ditto.
6998 * s390-tdep.c (s390_gdbarch_init): Ditto.
6999 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7000 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7001 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7002 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7003 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7004 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7005 * sparc-tdep.c (sparc_gdbarch_init): Update.
7006 * sh-tdep.c (sh_gdbarch_init): Update.
7007 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7008 * mips-tdep.c (mips_gdbarch_init): Update.
7009 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7010 * ia64-tdep.c (ia64_gdbarch_init): Update.
7011 * frv-tdep.c (frv_gdbarch_init): Update.
7012 * avr-tdep.c (avr_gdbarch_init): Update.
7013 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7014 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7015 instead of when push_dummy_call is not available.
7016
7017 2003-03-30 Andrew Cagney <cagney@redhat.com>
7018
7019 * infttrace.c: Include "gdbthread.h".
7020 (parent_attach_all): Fix function signature.
7021 (call_ptrace): Update call.
7022 * Makefile.in (infttrace.o): Update dependencies.
7023
7024 2003-03-30 Andrew Cagney <cagney@redhat.com>
7025
7026 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7027 PUSH_RETURN_ADDRESS.
7028 * gdbarch.h, gdbarch.c: Regenerate.
7029 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7030 * x86-64-tdep.c (x86_64_init_abi): Update.
7031 * v850-tdep.c (v850_gdbarch_init): Update.
7032 * sparc-tdep.c (sparc_gdbarch_init): Update.
7033 * sh-tdep.c (sh_gdbarch_init): Update.
7034 * s390-tdep.c (s390_gdbarch_init): Update.
7035 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7036 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7037 * mips-tdep.c (mips_gdbarch_init): Update.
7038 * mcore-tdep.c (mcore_gdbarch_init): Update.
7039 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7040 * ia64-tdep.c (ia64_gdbarch_init): Update.
7041 * i386-tdep.c (i386_gdbarch_init): Update.
7042 * h8300-tdep.c (h8300_gdbarch_init): Update.
7043 * frv-tdep.c (frv_gdbarch_init): Update.
7044 * cris-tdep.c (cris_gdbarch_init): Update.
7045 * avr-tdep.c (avr_gdbarch_init): Update.
7046 * arm-tdep.c (arm_gdbarch_init): Update.
7047 * valops.c (hand_function_call): Update.
7048
7049 2003-03-29 Andrew Cagney <cagney@redhat.com>
7050
7051 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7052 sizeof_call_dummy_words.
7053 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7054 define.
7055 * gdbarch.h: Regenerate.
7056
7057 2003-03-29 Andrew Cagney <cagney@redhat.com>
7058
7059 * infttrace.h: New file.
7060 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7061 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7062 (hpread_read_doc_function_type): Detect an initialized type1.
7063 (hpread_quick_traverse): Initialize mod_name_string.
7064 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7065 (som_solib_get_solib_by_pc): Declare.
7066 (so_lib_thread_start_addr): Declare.
7067 (no_shared_libraries): Declare.
7068 * somread.c (init_import_symbols): Make static. Add forward
7069 declaration.
7070 * config/pa/nm-hppah.h: Include "infttrace.h" for
7071 parent_attach_all.
7072 (hppa_insert_hw_watchpoint): Declare.
7073 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7074 * hppah-nat.c: Include "gdb_string.h".
7075 (parent_attach_all): Delete extern declaration, moved to
7076 "infttrace.h".
7077 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7078 int.
7079 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7080 * Makefile.in (infttrace_h): Define.
7081 (hpread.o): Update dependencies.
7082 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7083 * hppa-hpux-tdep.c: Include "gdb_string.h".
7084 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7085 * infrun.c (handle_inferior_event): Always initialize
7086 stepped_after_stopped_by_watchpoint. Add default and remove
7087 fallthrough in switch statement.
7088 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7089 parameter to int.
7090 (hppa_remove_hw_watchpoint): Ditto.
7091
7092 2003-03-29 Andrew Cagney <cagney@redhat.com>
7093
7094 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7095 offset.
7096
7097 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
7098
7099 * arm-tdep.c (arm_push_arguments): Delete.
7100 (struct stack_item): New type.
7101 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7102 (arm_store_struct_return): Delte.
7103 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7104 arm_push_arguments or arm_store_struct_return.
7105
7106 2003-03-28 Andrew Cagney <cagney@redhat.com>
7107
7108 * Makefile.in (d10v-tdep.o): Update dependencies.
7109 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7110 * d10v-tdep.c: Include "remote.h".
7111 (target_resume_hook): Delete extern declaration.
7112 (target_wait_loop_hook): Ditto.
7113 (tdisassemble_command): Eliminate assignment in "if" conditional.
7114 (d10v_ts2_register_sim_regno): Eliminate call to
7115 legacy_register_sim_regno.
7116 (d10v_ts3_register_sim_regno): Ditto.
7117
7118 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7119
7120 * thread.c: Reindented.
7121 * lin-lwp.c: Ditto.
7122 * linux-proc.c: Ditto.
7123
7124 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7125
7126 * MAINTAINERS (write after approval): Add myself.
7127
7128 2003-03-27 Theodore A. Roth <troth@openavr.org>
7129
7130 * objc-exp.y: Add missing semi-colons.
7131
7132 2003-03-27 Andrew Cagney <cagney@redhat.com>
7133
7134 * regcache.c (write_sp): Delete function and references.
7135 * inferior.h (write_sp): Delete declaration.
7136 * valops.c (hand_function_call): Replace write_sp with
7137 TARGET_WRITE_SP.
7138 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7139 (sparc_pop_frame): Ditto.
7140
7141 2003-03-27 Andrew Cagney <cagney@redhat.com>
7142
7143 * NEWS: Mention removal of support for hppa*-*-bsd* and
7144 hppa*-*-osf* natives, and hppa*-*-pro* target.
7145 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7146 * config/pa/xm-pa.h: Obsolete file.
7147 * config/pa/xm-hppab.h: Obsolete file.
7148 * config/pa/nm-hppab.h: Obsolete file.
7149 * config/pa/tm-hppab.h: Obsolete file.
7150 * config/pa/tm-hppao.h: Obsolete file.
7151 * config/pa/nm-hppao.h: Obsolete file.
7152 * config/pa/tm-pro.h: Obsolete file.
7153 * config/pa/hppaosf.mt: Obsolete file.
7154 * config/pa/hppaosf.mh: Obsolete file.
7155 * config/pa/hppapro.mt: Obsolete file.
7156 * config/pa/hppabsd.mt: Obsolete file.
7157 * config/pa/hppabsd.mh: Obsolete file.
7158 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7159 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7160 hppa*-*-osf*.
7161
7162 2003-03-27 Andrew Cagney <cagney@redhat.com>
7163
7164 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7165 push_arguments. Don't set push_return_address or write_sp.
7166 (d10v_push_dummy_call): Replace d10v_push_arguments.
7167 (d10v_push_return_address, d10v_write_sp): Delete function,
7168 handled by push_dummy_call.
7169
7170 2003-03-26 Andrew Cagney <cagney@redhat.com>
7171
7172 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7173 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7174 regcache and dummy_addr parameters.
7175 * gdbarch.h, gdbarch.c: Re-generate.
7176 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7177 available; assume it will handle stack alignment and return
7178 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7179 legacy_push_arguments.
7180 (legacy_push_arguments): Rename default_push_arguments.
7181 * value.h (legacy_push_arguments): Rename default_push_arguments.
7182 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7183 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7184 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7185 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7186 * config/i386/tm-symmetry.h: Update.
7187 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7188 * x86-64-tdep.c (x86_64_init_abi): Update.
7189 * v850-tdep.c (v850_gdbarch_init): Update.
7190 * sparc-tdep.c (sparc_gdbarch_init): Update.
7191 * sh-tdep.c (sh_gdbarch_init): Update.
7192 * s390-tdep.c (s390_gdbarch_init): Update.
7193 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7194 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7195 * mips-tdep.c (mips_gdbarch_init): Update.
7196 * mcore-tdep.c (mcore_gdbarch_init): Update.
7197 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7198 * ia64-tdep.c (ia64_gdbarch_init): Update.
7199 * i386-tdep.c (i386_gdbarch_init): Update.
7200 * hppa-tdep.c (hppa_gdbarch_init): Update.
7201 * h8300-tdep.c (h8300_gdbarch_init): Update.
7202 * frv-tdep.c (frv_gdbarch_init): Update.
7203 * d10v-tdep.c (d10v_gdbarch_init): Update.
7204 * cris-tdep.c (cris_gdbarch_init): Update.
7205 * avr-tdep.c (avr_gdbarch_init): Update.
7206 * arm-tdep.c (arm_gdbarch_init): Update.
7207 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7208 * alpha-tdep.c (alpha_gdbarch_init): Update.
7209
7210 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7211
7212 * signals/signals.c (do_target_signal_to_host): Correct realtime
7213 signal range test.
7214
7215 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7216
7217 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7218 (struct sal_chain, map_catch_names): Remove.
7219 (catch_exception_command_1): Don't call
7220 handle_gnu_4_16_catch_command.
7221
7222 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7223
7224 From Mark Dettinger <dettinge@de.ibm.com>:
7225 * dwarf2cfi.c (read_2u): Increment pointer by two.
7226
7227 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7228
7229 * signals/signals.c: Fix typos in last change.
7230
7231 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7232
7233 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7234 not already defined. Use __SIGRTMIN if available.
7235 (target_signal_from_host): Remove SIGRTMIN block.
7236 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7237 the signal is within the realtime range.
7238
7239 2003-03-25 Adam Fedor <fedor@gnu.org>
7240
7241 * Makefile.in (infrun.o): Add $(language_h)
7242 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7243 for language specific trampolines.
7244 * language.h (struct language_defn): Add skip_trampoline.
7245 (skip_language_trampoline): Declare.
7246 * language.c (unk_lang_trampoline, skip_language_trampoline):
7247 New functions.
7248 (unknown_language_defn, auto_language_defn, local_language_defn):
7249 Add ukn_lang_trampoline.
7250 * ada-lang.c (ada_language_defn): Add NULL for language
7251 specific skip_trampoline.
7252 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7253 scm-lang.c: Likewise.
7254 * objc-lang.c (objc_skip_trampoline): New function.
7255 (objc_language_defn): Add objc_skip_trampoline.
7256
7257 2003-03-25 Andrew Cagney <cagney@redhat.com>
7258
7259 * frame.c (get_prev_frame): Delay validating a frame's ID -
7260 non-NULL, didn't go backwards - until an attempt to unwind it to
7261 the previous frame.
7262
7263 2003-03-25 Andrew Cagney <cagney@redhat.com>
7264
7265 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7266 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7267 * gdbarch.h, gdbarch.c: Re-generate.
7268 * config/sparc/tm-sparc.h
7269 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7270 * sparc-tdep.c (sparc_gdbarch_init): Set
7271 deprecated_extra_stack_alignment_needed.
7272 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7273 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7274 extra_stack_alignment_needed.
7275 * v850-tdep.c (v850_gdbarch_init): Ditto.
7276 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7277 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7278 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7279 * cris-tdep.c (cris_gdbarch_init): Ditto.
7280 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7281 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7282
7283 2003-03-25 Andrew Cagney <cagney@redhat.com>
7284
7285 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7286 STORE_STRUCT_RETURN.
7287 * gdbarch.h, gdbarch.c: Regenerate.
7288 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7289 (d10v_push_arguments): Set the struct return register.
7290 (d10v_gdbarch_init): Update.
7291 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7292 * x86-64-tdep.c (x86_64_init_abi): Update.
7293 * vax-tdep.c (vax_gdbarch_init): Update.
7294 * v850-tdep.c (v850_gdbarch_init): Update.
7295 * sparc-tdep.c (sparc_gdbarch_init): Update.
7296 * sh-tdep.c (sh_gdbarch_init): Update.
7297 * s390-tdep.c (s390_gdbarch_init): Update.
7298 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7299 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7300 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7301 * mips-tdep.c (mips_gdbarch_init): Update.
7302 * mcore-tdep.c (mcore_gdbarch_init): Update.
7303 * m68k-tdep.c (m68k_gdbarch_init): Update.
7304 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7305 * ia64-tdep.c (ia64_gdbarch_init): Update.
7306 * i386-tdep.c (i386_gdbarch_init): Update.
7307 * hppa-tdep.c (hppa_gdbarch_init): Update.
7308 * h8300-tdep.c (h8300_gdbarch_init): Update.
7309 * frv-tdep.c (frv_gdbarch_init): Update.
7310 * cris-tdep.c (cris_gdbarch_init): Update.
7311 * avr-tdep.c (avr_gdbarch_init): Update.
7312 * arm-tdep.c (arm_gdbarch_init): Update.
7313 * alpha-tdep.c (alpha_gdbarch_init): Update.
7314
7315 2003-03-25 Andrew Cagney <cagney@redhat.com>
7316
7317 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7318 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7319 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7320 * gdbarch.h, gdbarch.c: Regenerate.
7321 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7322 call_dummy_stack_adjust_p.
7323 * vax-tdep.c (vax_gdbarch_init): Ditto.
7324 * v850-tdep.c (v850_gdbarch_init): Ditto.
7325 * sh-tdep.c (sh_gdbarch_init): Ditto.
7326 * s390-tdep.c (s390_gdbarch_init): Ditto.
7327 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7328 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7329 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7330 * mips-tdep.c (mips_gdbarch_init): Ditto.
7331 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7332 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7333 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7334 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7335 * i386-tdep.c (i386_gdbarch_init): Ditto.
7336 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7337 * frv-tdep.c (frv_gdbarch_init): Ditto.
7338 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7339 * cris-tdep.c (cris_gdbarch_init): Ditto.
7340 * avr-tdep.c (avr_gdbarch_init): Ditto.
7341 * arm-tdep.c (arm_gdbarch_init): Ditto.
7342 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7343 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7344 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7345 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7346 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7347 call_dummy_stack_adjust_p.
7348 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7349 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7350 * sparc-tdep.c (sparc32_push_arguments): Update.
7351 * valops.c (hand_function_call): Update.
7352
7353 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7354
7355 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7356 set_gdbarch_char_signed.
7357
7358 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7359
7360 PR cli/548
7361 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7362
7363 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7364
7365 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7366 (_initialize_arm_tdep): Don't set tm_print_insn.
7367
7368 2003-03-24 Adam Fedor <fedor@gnu.org>
7369
7370 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7371 * objc-lang.h: Add multiple inclusion protection.
7372 (start_msglist, add_msglist, end_msglist): Additional declarations.
7373
7374 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7375
7376 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7377 value was renamed to ARM_FLOAT_SOFT_FPA.
7378
7379 2003-03-23 Andrew Cagney <cagney@redhat.com>
7380
7381 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7382 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7383 * gdbarch.h, gdbarch.c: Regenerate.
7384 * valops.c (hand_function_call): Update.
7385 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7386 * frame.c (legacy_saved_regs_this_id): Update.
7387 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7388 * dummy-frame.h: Update.
7389 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7390 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7391 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7392 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7393 * config/m68k/tm-sun3.h: Update.
7394 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7395 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7396 * x86-64-tdep.c (x86_64_init_abi): Update.
7397 * vax-tdep.c (vax_gdbarch_init): Update.
7398 * v850-tdep.c (v850_gdbarch_init): Update.
7399 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7400 * sh-tdep.c (sh_gdbarch_init): Update.
7401 * s390-tdep.c (s390_gdbarch_init): Update.
7402 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7403 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7404 (frame_get_saved_regs): Update.
7405 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7406 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7407 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7408 * mips-tdep.c (mips_gdbarch_init): Update.
7409 * mcore-tdep.c (mcore_gdbarch_init): Update.
7410 * m68k-tdep.c (m68k_gdbarch_init): Update.
7411 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7412 * ia64-tdep.c (ia64_gdbarch_init): Update.
7413 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7414 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7415 (i386_interix_back_one_frame): Update.
7416 * hppa-tdep.c (hppa_gdbarch_init): Update.
7417 (hppa_init_extra_frame_info): Update.
7418 * h8300-tdep.c (h8300_gdbarch_init): Update.
7419 * frv-tdep.c (frv_gdbarch_init): Update.
7420 * cris-tdep.c (cris_gdbarch_init): Update.
7421 * avr-tdep.c (avr_gdbarch_init): Update.
7422 * arm-tdep.c (arm_gdbarch_init): Update.
7423 * alpha-tdep.c (alpha_gdbarch_init): Update.
7424
7425 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7426
7427 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7428 (arm_get_fp_model): Declare.
7429 * arm-tdep.c (fp_model_strings): New string array.
7430 (arm_fp_model, current_fp_model): New variables.
7431 (arm_get_fp_model): New function.
7432 (arm_set_fp): New function.
7433 (set_fp_model_sfunc): New function.
7434 (show_fp_model): New function.
7435 (_initialize_arm_tdep): Add new command to set/show the FPU.
7436 (arm_extract_return_value): Use arm_get_fp_model.
7437 (arm_store_return_value): Likewise.
7438 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7439 to initialize the floating-point data types.
7440 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7441 model is FPA.
7442
7443 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7444
7445 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7446 the current setting of each value.
7447 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7448 new_set and new_show. Use add_setshow_cmd_full and
7449 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7450 commands and add new version as subcommands of "set/show arm".
7451
7452 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7453
7454 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7455 (set_arm_command, show_arm_command): New functions.
7456 (_initialize_arm_tdep): Add them.
7457 (num_disassembly_options): Renamed from num_flavor_options.
7458 (valid_disassembly_styles): Renamed from valid_flavors.
7459 (disassembly_style): Renamed from disassembly_flavor.
7460 (set_disassembly_style_sfunc): Renamed from
7461 set_disassembly_flavor_sfunc.
7462 (set_disassembly_style): Renamed from set_disassembly_flavor.
7463 (arm_othernames): Updated.
7464 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7465 command. Add "set/show arm disassembly" commands. Deprecate
7466 "othernames" command.
7467
7468 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7469
7470 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7471 (arm-tdep.o): Depend on elf_arm_h.
7472
7473 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7474
7475 * Makefile.in (coff_internal_h): Define.
7476 (arm-tdep.o): Update dependencies.
7477
7478 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7479
7480 * arm-tdep.c (prologue_cache): Delete.
7481 (check_prologue_cache, save_prologue_cache): Delete.
7482 (arm_scan_prologue): Don't check or update the prologue_cache.
7483 (arm_gdb_arch_init): Don't initialize it.
7484 (_initialize_arm_tdep): Likewise.
7485
7486 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7487
7488 * MAINTAINERS (tui): Maintainer of tui code.
7489
7490 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
7491
7492 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7493 (i386-cygwin-tdep.o): Add dependencies.
7494 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7495 * i386-cygwin-tdep.c: New file.
7496 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7497 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7498
7499 2003-03-20 Andrew Cagney <cagney@redhat.com>
7500
7501 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7502 (handle_inferior_event): Remove code calling
7503 DYNAMIC_TRAMPOLINE_NEXTPC.
7504
7505 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7506 already has a full path.
7507
7508 * main.c (gdb_main): Return 1.
7509 (captured_main): Call error to report an invalid interpreter.
7510
7511 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7512 * alpha-osf1-tdep.c: Include "gdb_string.h".
7513
7514 2003-03-19 J. Brobecker <brobecker@gnat.com>
7515
7516 Continuing work to convert the hppa targets to multiarch partial.
7517
7518 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7519 method, now that hppa_push_dummy_frame has a conformant prototype.
7520 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7521 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7522 for the switch to multiarch partial.
7523
7524 2003-03-19 Kevin Buettner <kevinb@redhat.com>
7525
7526 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7527 when iss is issNull.
7528
7529 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7530
7531 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7532 NUM_REGS bounds check.
7533
7534 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7535
7536 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7537 * mips-tdep.c (gdb_assert.h): Include.
7538 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7539 (mips_register_name): Handle integer registers explicitly. Add
7540 bounds checking.
7541 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7542 (mips_lsi33k_reg_names): Don't list integer registers; they're
7543 handled by mips_register_name() now.
7544 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7545 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7546 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7547 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7548 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7549
7550 2003-03-18 Andrew Cagney <cagney@redhat.com>
7551
7552 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7553 a void pointer.
7554 * gdbtypes.h (print_scalar_formatted): Update declaration.
7555 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7556
7557 2003-03-18 J. Brobecker <brobecker@gnat.com>
7558
7559 * infrun.c (observer.h): Add #include.
7560 (normal_stop): Add call to observer_notify_normal_stop.
7561 * Makefile.in (infrun.o): Add dependency on observer.h.
7562
7563 2003-03-18 J. Brobecker <brobecker@gnat.com>
7564
7565 Continuing work to convert the hppa targets to multiarch partial.
7566 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7567 parameter. Reformat comment.
7568 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7569 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7570 to match new profile.
7571
7572 2003-03-18 J. Brobecker <brobecker@gnat.com>
7573
7574 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7575 appear to be working in any case.
7576
7577 2003-03-18 J. Brobecker <brobecker@gnat.com>
7578
7579 * observer.c (observer_test_first_observer): New static variable.
7580 (observer_test_second_observer): Likewise.
7581 (observer_test_third_observer): Likewise.
7582 (observer_test_first_notification_function): New static function.
7583 (observer_test_second_notification_function): Likewise.
7584 (observer_test_third_notification_function): Likewise.
7585
7586 2003-03-17 J. Brobecker <brobecker@gnat.com>
7587
7588 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7589 * somsolib.c (gdb_assert.h): Likewise.
7590 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7591 (somsolib.o): Likewise.
7592
7593 2003-03-17 Andrew Cagney <cagney@redhat.com>
7594
7595 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7596 BFD. Simplify setting of di.endian.
7597
7598 2003-03-17 Andrew Cagney <cagney@redhat.com>
7599
7600 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7601 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7602
7603 From Elena Zannoni <ezannoni@redhat.com>
7604 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7605 vector and floating-point parameters.
7606 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7607 convention.
7608 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7609
7610 2003-03-17 Fernando Nasser <fnasser@redhat.com>
7611
7612 * MAINTAINERS: Remove my name from several maintainership roles.
7613
7614 2003-03-17 Andrew Cagney <cagney@redhat.com>
7615
7616 Fix frame off-by-one bug.
7617 * frame-unwind.h (frame_this_id_ftype): Replace
7618 frame_unwind_id_ftype.
7619 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7620 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7621 with "prev_register".
7622 * frame-unwind.c (frame_unwind_find_by_pc): Return
7623 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7624 comment.
7625 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7626 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7627 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7628 (dummy_frame_unwind): Update.
7629 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7630 sentinel_frame_register_unwind.
7631 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7632 (sentinel_frame_unwinder): Update.
7633 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7634 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7635 * frame.c (create_sentinel_frame): Update. Initialize
7636 "prologue_cache" instead of "unwind_cache".
7637 (frame_register_unwind): Call this frame's prev_register with the
7638 next frame and this frame's prologue cache.
7639 (get_prev_frame): Simplify. Always call prev frame's this_id with
7640 this frame and prev frame's prologue cache. Document that this
7641 call is shifted one to the left when compared to the
7642 frame_register_unwind call.
7643 (legacy_saved_regs_prev_register): Replace
7644 frame_saved_regs_register_unwind.
7645 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7646 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7647 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7648 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7649 (d10v_frame_unwind): Update.
7650 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7651 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7652 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7653 "saved_regs" with "this_saved_regs".
7654
7655 2003-03-16 Andrew Cagney <cagney@redhat.com>
7656
7657 * frame.c (frame_pop): Don't call target_store_registers. Fix
7658 problem reported by Mark Kettenis.
7659
7660 2003-03-16 Mark Kettenis <kettenis@gnu.org>
7661
7662 * i386-tdep.c (i386_register_type): Renamed from
7663 i386_register_virtual_type. Adjust function signature.
7664 (i386_gdbarch_init): Set register_type instead of
7665 deprecated_max_register_raw_size,
7666 deprecated_max_register_virtual_size and register_virtual_type.
7667
7668 2003-03-14 Andrew Cagney <cagney@redhat.com>
7669
7670 * frame.c (get_prev_frame): When a legacy frame, always call
7671 legacy_get_prev_frame. Simplify unwind code using assumption that
7672 the unwinder is new.
7673 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7674 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7675 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7676
7677 2003-03-14 Andrew Cagney <cagney@redhat.com>
7678
7679 * frame.c (get_saved_register): Delete function.
7680 * frame.h (get_saved_register): Delete declaration.
7681 * xstormy16-tdep.c: Update comment.
7682 * regcache.h: Update comments.
7683 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7684 get_saved_register and extract_address, use
7685 frame_read_unsigned_register.
7686 (sparc_frame_saved_pc): Ditto.
7687 (sparc_get_saved_register): Instead of get_saved_register, use
7688 frame_register.
7689 (sparc_pop_frame): Ditto.
7690 * findvar.c: Update comments.
7691 (value_of_register): Call frame_register instead of
7692 get_saved_register.
7693 (value_from_register): Ditto.
7694 * config/sparc/tm-sparc.h: Update comment.
7695 * breakpoint.c: Update comment.
7696
7697 2003-03-14 Andrew Cagney <cagney@redhat.com>
7698
7699 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7700 GET_SAVED_REGISTER.
7701 * gdbarch.h, gdbarch.c: Re-generate.
7702 * frame.h: Update comments.
7703 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7704 * x86-64-tdep.c (x86_64_init_abi): Update.
7705 * sparc-tdep.c (sparc_gdbarch_init): Update.
7706 * sh-tdep.c (sh_gdbarch_init): Update.
7707 * mips-tdep.c (mips_gdbarch_init): Update.
7708 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7709 * cris-tdep.c (cris_gdbarch_init): Update.
7710 * ia64-tdep.c (ia64_gdbarch_init): Update.
7711 * frame.c (frame_register): Update.
7712 (get_saved_register): Update.
7713 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7714
7715 2003-03-13 Andrew Cagney <cagney@redhat.com>
7716
7717 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7718 * gdbarch.h, gdbarch.c: Regenerate.
7719 * valops.c (hand_function_call): Update comment.
7720 * stack.c (return_command): Update comment.
7721 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7722 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7723 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7724 * x86-64-tdep.c (x86_64_init_abi): Update.
7725 * vax-tdep.c (vax_gdbarch_init): Update.
7726 * v850-tdep.c (v850_gdbarch_init): Update.
7727 * sparc-tdep.c (sparc_gdbarch_init): Update.
7728 * sh-tdep.c (sh_gdbarch_init): Update.
7729 * s390-tdep.c (s390_gdbarch_init): Update.
7730 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7731 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7732 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7733 * mips-tdep.c (mips_gdbarch_init): Update.
7734 * mcore-tdep.c (mcore_gdbarch_init): Update.
7735 * m68k-tdep.c (m68k_gdbarch_init): Update.
7736 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7737 * ia64-tdep.c (ia64_gdbarch_init): Update.
7738 * i386-tdep.c (i386_gdbarch_init): Update.
7739 * hppa-tdep.c (hppa_gdbarch_init): Update.
7740 * h8300-tdep.c (h8300_gdbarch_init): Update.
7741 * frv-tdep.c (frv_gdbarch_init): Update.
7742 * cris-tdep.c (cris_gdbarch_init): Update.
7743 * avr-tdep.c (avr_gdbarch_init): Update.
7744 * arm-tdep.c (arm_gdbarch_init): Update.
7745 * alpha-tdep.c (alpha_gdbarch_init): Update.
7746
7747 2003-03-13 Andrew Cagney <cagney@redhat.com>
7748
7749 * frame.c (legacy_frame_p): New function.
7750 (get_prev_frame): Use legacy_frame_p.
7751 * frame.h (legacy_frame_p): Declare.
7752
7753 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7754
7755 * MAINTAINERS (write after approval): Alphabetically
7756 listing corrected.
7757
7758 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7759
7760 * MAINTAINERS (write after approval): Add myself.
7761
7762 2003-03-12 Andrew Cagney <cagney@redhat.com>
7763
7764 * frame.c (get_prev_frame): Rename the frame parameter to
7765 "this_frame".
7766 (get_next_frame, legacy_get_prev_frame): Ditto.
7767
7768 2003-03-12 Andrew Cagney <cagney@redhat.com>
7769
7770 * frame.c (get_current_frame): Check target_has_registers before
7771 checking target_has_stack.
7772 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7773 instead of deprecated_selected_frame.
7774 * findvar.c (value_of_register): Pass "frame", not
7775 deprecated_selected_frame, to value_of_builtin_reg.
7776
7777 2003-03-12 Andrew Cagney <cagney@redhat.com>
7778
7779 * regcache.c (regcache_cooked_write_signed): New function.
7780 (regcache_cooked_write_unsigned): New function.
7781 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7782 (regcache_cooked_read_signed): Fix regnum in range assertion.
7783 * regcache.h (regcache_cooked_write_signed): Declare.
7784 (regcache_cooked_write_unsigned): Declare.
7785
7786 2003-03-12 Andrew Cagney <cagney@redhat.com>
7787
7788 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7789 * gdbarch.h, gdbarch.c: Re-generate.
7790 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7791 * x86-64-tdep.h: Update.
7792 * x86-64-tdep.c (x86_64_init_abi): Update.
7793 * v850-tdep.c (v850_gdbarch_init): Update.
7794 * sparc-tdep.c (sparc_gdbarch_init): Update.
7795 * sh-tdep.c (sh_gdbarch_init): Update.
7796 * s390-tdep.c (s390_gdbarch_init): Update.
7797 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7798 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7799 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7800 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7801 * mips-tdep.c (mips_gdbarch_init): Update.
7802 * mcore-tdep.c (mcore_gdbarch_init): Update.
7803 * m68k-tdep.c (m68k_gdbarch_init): Update.
7804 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7805 * ia64-tdep.c (ia64_gdbarch_init): Update.
7806 * i386-tdep.c (i386_gdbarch_init): Update.
7807 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7808 * hppa-tdep.c (hppa_gdbarch_init): Update.
7809 * h8300-tdep.c (h8300_gdbarch_init): Update.
7810 * frv-tdep.c (frv_gdbarch_init): Update.
7811 * cris-tdep.c (cris_gdbarch_init): Update.
7812 * avr-tdep.c (avr_gdbarch_init): Update.
7813 * arm-tdep.c (arm_gdbarch_init): Update.
7814 * alpha-tdep.c (alpha_gdbarch_init): Update.
7815 * sh-tdep.c (sh_init_extra_frame_info): Update.
7816 (sh64_init_extra_frame_info): Update.
7817 * ns32knbsd-nat.c (frame_num_args): Update.
7818 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7819 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7820 (xstormy16_frame_chain_valid): Update.
7821 * vax-tdep.c (vax_saved_pc_after_call): Update.
7822 * v850-tdep.c (v850_frame_chain): Update.
7823 (v850_pop_frame): Update.
7824 (v850_init_extra_frame_info): Update.
7825 * sparc-tdep.c (setup_arbitrary_frame): Update.
7826 * ns32k-tdep.c (umax_frame_num_args): Update.
7827 * s390-tdep.c (s390_pop_frame_regular): Update.
7828 * mn10300-tdep.c (mn10300_frame_chain): Update.
7829 (mn10300_pop_frame_regular): Update.
7830 (mn10300_init_extra_frame_info): Update.
7831 * mips-tdep.c (mips_init_frame_pc_first): Update.
7832 (mips_frame_chain): Update.
7833 (mips_pop_frame): Update.
7834 * mcore-tdep.c (mcore_frame_chain): Update.
7835 (mcore_pop_frame): Update.
7836 (mcore_init_extra_frame_info): Update.
7837 * arch-utils.c (init_frame_pc_default): Update.
7838 * m68k-tdep.c (isi_frame_num_args): Update.
7839 (delta68_frame_num_args): Update.
7840 (news_frame_num_args): Update.
7841 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7842 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7843 (alpha_frame_chain): Update.
7844 (alpha_pop_frame): Update.
7845 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7846 (hppa_init_extra_frame_info): Update.
7847 (hppa_frame_chain): Update.
7848 (hppa_frame_chain_valid): Update.
7849 * cris-tdep.c (cris_init_extra_frame_info): Update.
7850 * avr-tdep.c (avr_init_extra_frame_info): Update.
7851 * arm-tdep.c (arm_frame_chain_valid): Update.
7852 (arm_init_extra_frame_info): Update.
7853 (arm_pop_frame): Update.
7854 * frame.c (frame_pc_unwind): Update.
7855 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7856 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7857 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7858 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7859 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7860 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7861
7862 2003-03-12 Andrew Cagney <cagney@redhat.com>
7863
7864 Eliminate the need for POP_FRAME.
7865 * frame.c (do_frame_unwind_register): New function.
7866 (frame_pop): When no POP_FRAME, pop the frame using register
7867 unwind and a scratch regcache.
7868 (frame_saved_regs_pop): Delete function.
7869 (trad_frame_unwinder): Update.
7870 * d10v-tdep.c (d10v_frame_pop): Delete function.
7871 (d10v_frame_unwind): Update.
7872 * sentinel-frame.c (sentinel_frame_pop): Delete function.
7873 (sentinel_frame_unwinder): Update.
7874 * dummy-frame.c (dummy_frame_pop): Delete function.
7875 (dummy_frame_unwind): Update.
7876 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7877 (struct frame_unwind): Update.
7878
7879 2003-03-11 Kevin Buettner <kevinb@redhat.com>
7880
7881 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
7882 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
7883 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
7884 Do range checks on register number obtained from debugging info.
7885 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
7886 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
7887 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
7888 mapping function.
7889 (do_fp_register_row): Fix typo which caused double type to be
7890 used when attempting to unpack a float.
7891
7892 2003-03-11 J. Brobecker <brobecker@gnat.com>
7893
7894 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
7895
7896 2003-03-11 Andrew Cagney <cagney@redhat.com>
7897
7898 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
7899 frame. Problem found by Corinna Vinschen.
7900
7901 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
7902
7903 * doublest.c (floatformat_from_length): Accept also
7904 the real size of 'long double' type.
7905
7906 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
7907
7908 From Klee Dienes <kdienes@apple.com>:
7909 * breakpoint.c (bpstat_copy): Copy the command lines as well
7910 as the old value, to match what is freed in bpstat_clear.
7911
7912 2003-03-10 David Carlton <carlton@math.stanford.edu>
7913
7914 * minsyms.c (add_minsym_to_hash_table): Replace
7915 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7916 (compare_minimal_symbols, compact_minimal_symbols)
7917 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
7918 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
7919 of DEPRECATED_SYMBOL_MATCHES_NAME.
7920 (lookup_minimal_symbol_solib_trampoline): Ditto.
7921
7922 2003-03-10 Andrew Cagney <cagney@redhat.com>
7923
7924 * regcache.h (regcache_cooked_read_ftype): Define.
7925 (regcache_save, regcache_restore): Add a cooked_read parameter.
7926 * regcache.c (regcache_save, regcache_restore): Update.
7927 (do_cooked_read): New function.
7928 (regcache_cpy): Pass do_cooked_read to regcache_save and
7929 regcache_restore.
7930
7931 2003-03-10 Andrew Cagney <cagney@redhat.com>
7932
7933 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7934 * gdbarch.h, gdbarch.c: Re-generate.
7935 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7936 * x86-64-tdep.h: Update.
7937 * x86-64-tdep.c (x86_64_init_abi): Update.
7938 * v850-tdep.c (v850_gdbarch_init): Update.
7939 * sparc-tdep.c (sparc_gdbarch_init): Update.
7940 * sh-tdep.c (sh_gdbarch_init): Update.
7941 * s390-tdep.c (s390_gdbarch_init): Update.
7942 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7943 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7944 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7945 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7946 * mips-tdep.c (mips_gdbarch_init): Update.
7947 * mcore-tdep.c (mcore_gdbarch_init): Update.
7948 * m68k-tdep.c (m68k_gdbarch_init): Update.
7949 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7950 * ia64-tdep.c (ia64_gdbarch_init): Update.
7951 * i386-tdep.c (i386_gdbarch_init): Update.
7952 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7953 * hppa-tdep.c (hppa_gdbarch_init): Update.
7954 * h8300-tdep.c (h8300_gdbarch_init): Update.
7955 * frv-tdep.c (frv_gdbarch_init): Update.
7956 * cris-tdep.c (cris_gdbarch_init): Update.
7957 * avr-tdep.c (avr_gdbarch_init): Update.
7958 * arm-tdep.c (arm_gdbarch_init): Update.
7959 * alpha-tdep.c (alpha_gdbarch_init): Update.
7960 * sh-tdep.c (sh_init_extra_frame_info): Update.
7961 (sh64_init_extra_frame_info): Update.
7962 * ns32knbsd-nat.c (frame_num_args): Update.
7963 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7964 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7965 (xstormy16_frame_chain_valid): Update.
7966 * vax-tdep.c (vax_saved_pc_after_call): Update.
7967 * v850-tdep.c (v850_frame_chain): Update.
7968 (v850_pop_frame): Update.
7969 (v850_init_extra_frame_info): Update.
7970 * sparc-tdep.c (setup_arbitrary_frame): Update.
7971 * ns32k-tdep.c (umax_frame_num_args): Update.
7972 * s390-tdep.c (s390_pop_frame_regular): Update.
7973 * mn10300-tdep.c (mn10300_frame_chain): Update.
7974 (mn10300_pop_frame_regular): Update.
7975 (mn10300_init_extra_frame_info): Update.
7976 * mips-tdep.c (mips_init_frame_pc_first): Update.
7977 (mips_frame_chain): Update.
7978 (mips_pop_frame): Update.
7979 * mcore-tdep.c (mcore_frame_chain): Update.
7980 (mcore_pop_frame): Update.
7981 (mcore_init_extra_frame_info): Update.
7982 * arch-utils.c (init_frame_pc_default): Update.
7983 * m68k-tdep.c (isi_frame_num_args): Update.
7984 (delta68_frame_num_args): Update.
7985 (news_frame_num_args): Update.
7986 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7987 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7988 (alpha_frame_chain): Update.
7989 (alpha_pop_frame): Update.
7990 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7991 (hppa_init_extra_frame_info): Update.
7992 (hppa_frame_chain): Update.
7993 (hppa_frame_chain_valid): Update.
7994 * cris-tdep.c (cris_init_extra_frame_info): Update.
7995 * avr-tdep.c (avr_init_extra_frame_info): Update.
7996 * arm-tdep.c (arm_frame_chain_valid): Update.
7997 (arm_init_extra_frame_info): Update.
7998 (arm_pop_frame): Update.
7999 * frame.c (frame_pc_unwind): Update.
8000 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8001 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8002 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8003 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8004 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8005 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8006
8007 2003-03-10 Andrew Cagney <cagney@redhat.com>
8008
8009 * gdbarch.sh (gdbarch_unwind_pc): New method.
8010 * gdbarch.h, gdbarch.c: Regenerate.
8011 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8012 but use read_pc and FRAME_SAVED_PC as fall backs.
8013 (frame_saved_regs_pc_unwind): Delete function.
8014 (trad_frame_unwinder): Update.
8015 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8016 (struct frame_unwind): Update.
8017 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8018 (dummy_frame_unwind): Update.
8019 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8020 (sentinel_frame_unwinder): Update.
8021 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8022 (d10v_frame_unwind): Update.
8023 (d10v_unwind_pc): New function.
8024 (d10v_gdbarch_init): Set unwind_pc.
8025
8026 2003-03-10 Andrew Cagney <cagney@redhat.com>
8027
8028 * gdbarch.h: Re-generate.
8029
8030 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8031 PC.
8032 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8033 the PC register.
8034
8035 2003-03-08 Mark Kettenis <kettenis@gnu.org>
8036
8037 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8038
8039 2003-03-08 Andrew Cagney <cagney@redhat.com>
8040
8041 * cli-out.c: Update copyright.
8042 (cli_out_data): Define typedef. Use instead of ui_out_data.
8043
8044 2003-03-08 Andrew Cagney <cagney@redhat.com>
8045
8046 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8047 the result.
8048
8049 2003-03-07 Andrew Cagney <cagney@redhat.com>
8050
8051 * gdbarch.sh: Don't generate two macro definitions when an
8052 undefined macro taking no arguments.
8053 * gdbarch.h: Regenerate.
8054
8055 2002-03-07 Michal Ludvig <mludvig@suse.cz>
8056
8057 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8058 (x86_64_unwind_dummy_id): New functions.
8059 (x86_64_init_abi): Register these two new functions.
8060
8061 2003-03-07 Michal Ludvig <mludvig@suse.cz>
8062
8063 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8064 (x86_64_skip_prologue): Move prologue detection to
8065 separate function.
8066 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8067
8068 2003-03-05 Andrew Cagney <cagney@redhat.com>
8069
8070 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8071 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8072 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8073 to use unwind_dummy_id when a dummy frame.
8074 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8075 predicate.
8076 * gdbarch.h, gdbarch.c: Regneerate.
8077
8078 2003-03-05 Andrew Cagney <cagney@redhat.com>
8079
8080 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8081 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8082 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8083 values.
8084
8085 2003-03-05 Andrew Cagney <cagney@redhat.com>
8086
8087 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8088 (struct d10v_unwind_cache): Delete field "frameless". Replace
8089 "next_addr" with "sp_offset". Add "r11_offset".
8090 (d10v_frame_unwind_cache): Update.
8091 (prologue_find_regs): Update. When "mv r11, sp", save the
8092 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8093 RN was saved in r11_offset.
8094
8095 2003-03-05 Andrew Cagney <cagney@redhat.com>
8096
8097 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8098 cached PC value in the next frame.
8099
8100 2003-03-05 Andrew Cagney <cagney@redhat.com>
8101
8102 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8103 "id_unwind_cache" with "id".
8104 (frame_id_unwind): Delete declaration.
8105 * frame.c (frame_id_unwind): Delete function.
8106 (get_prev_frame): Call the frame id unwind method directly. Store
8107 the returned next frame's ID value in NEXT_FRAME. Note that there
8108 is a problem with the wrong unwind ID being called with the wrong
8109 unwind cache.
8110
8111 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8112
8113 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8114
8115 2003-03-05 James Ingham <jingham@apple.com>
8116 Daniel Jacobowitz <drow@mvista.com>
8117
8118 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8119 (auto_cp_abi): New variable.
8120 (current_cp_abi, num_cp_abis): Make static.
8121 (CP_ABI_MAX): Define.
8122 (cp_abis): Turn into an array.
8123 (value_virtual_fn_field): Fix formatting.
8124 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8125 takes a pointer.
8126 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8127 (list_cp_abis, _initialize_cp_abi): New functions.
8128 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8129 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8130 switch_to_cp_abi. Update prototype for register_cp_abi.
8131 * Makefile.in (cp-abi.o): Update dependencies.
8132 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8133 instead of switch_to_cp_abi.
8134 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8135 register_cp_abi.
8136 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8137 register_cp_abi.
8138 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8139
8140 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8141
8142 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8143 * dwarf2loc.c: Include "regcache.h".
8144 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8145 register_size.
8146 * Makefile.in (dwarf2loc.o): Update dependencies.
8147
8148 2003-03-04 Theodore A. Roth <troth@openavr.org>
8149
8150 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8151 number of io registers reported by remote target is not a multiple of
8152 step.
8153
8154 2003-03-04 David Carlton <carlton@math.stanford.edu>
8155
8156 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8157 (lookup_symbol_aux_psymtabs): Update call to
8158 lookup_partial_symbol.
8159 (lookup_transparent_type, find_main_psymtab)
8160 (make_symbol_overload_list): Ditto.
8161
8162 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8163
8164 * MAINTAINERS (Write after approval): Update my email address.
8165
8166 2003-03-03 Andrew Cagney <cagney@redhat.com>
8167
8168 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8169 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8170 predicate. Replace MAX_REGISTER_RAW_SIZE.
8171 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8172 MAX_REGISTER_VIRTUAL_SIZE.
8173 * regcache.c (legacy_max_register_raw_size): New function.
8174 (legacy_max_register_virtual_size): New function.
8175 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8176 (MAX_REGISTER_RAW_SIZE): Define.
8177 (legacy_max_register_raw_size): Declare.
8178 (legacy_max_register_virtual_size): Declare.
8179 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8180 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8181 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8182 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8183 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8184 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8185 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8186 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8187 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8188 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8189 * vax-tdep.c (vax_gdbarch_init): Update.
8190 * v850-tdep.c (v850_gdbarch_init): Update.
8191 * sparc-tdep.c (sparc_gdbarch_init): Update.
8192 * sh-tdep.c (sh_gdbarch_init): Update.
8193 * s390-tdep.c (s390_gdbarch_init): Update.
8194 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8195 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8196 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8197 * mips-tdep.c (mips_gdbarch_init): Update.
8198 * mcore-tdep.c (mcore_gdbarch_init): Update.
8199 * m68k-tdep.c (m68k_gdbarch_init): Update.
8200 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8201 * ia64-tdep.c (ia64_gdbarch_init): Update.
8202 * i386-tdep.c (i386_gdbarch_init): Update.
8203 * hppa-tdep.c (hppa_gdbarch_init): Update.
8204 * h8300-tdep.c (h8300_gdbarch_init): Update.
8205 * frv-tdep.c (frv_gdbarch_init): Update.
8206 * cris-tdep.c (cris_gdbarch_init): Update.
8207 * avr-tdep.c (avr_gdbarch_init): Update.
8208 * arm-tdep.c (arm_gdbarch_init): Update.
8209 * alpha-tdep.c (alpha_gdbarch_init): Update.
8210 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8211 max_register_raw_size or max_register_virtual_size.
8212
8213 2003-03-03 David Carlton <carlton@math.stanford.edu>
8214
8215 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8216 SYMBOL_MATCHES_NAME, add comment.
8217 (SYMBOL_MATCHES_NATURAL_NAME): New.
8218 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8219 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8220 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8221 * symtab.c (lookup_partial_symbol): Use
8222 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8223 unhelpful comment.
8224 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8225 SYMBOL_MATCHES_NAME.
8226 Fix for PR c++/33.
8227
8228 2003-03-03 David Carlton <carlton@math.stanford.edu>
8229
8230 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8231 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8232 by regexp matching against SYMBOL_NATURAL_NAME.
8233
8234 2003-03-03 David Carlton <carlton@math.stanford.edu>
8235
8236 * linespec.c (find_method): Extract code into collect_methods.
8237 (collect_methods): New.
8238
8239 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8240
8241 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8242 get_frame_base.
8243
8244 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8245 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8246
8247 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8248
8249 * arch-utils.c (generic_register_byte): Fix to use the loop index
8250 and not regnum when summing the size of all registers up to regnum.
8251
8252 2003-03-01 Andrew Cagney <cagney@redhat.com>
8253
8254 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8255 FRAME_INIT_SAVED_REGS.
8256 * gdbarch.h, gdbarch.c: Regenerate.
8257 * stack.c (frame_info): Update.
8258 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8259 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8260 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8261 * ns32k-tdep.c (ns32k_pop_frame): Update.
8262 * mips-tdep.c (mips_pop_frame): Update.
8263 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8264 * ia64-tdep.c (ia64_frame_chain): Update.
8265 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8266 (ia64_frameless_function_invocation): Update.
8267 (ia64_init_extra_frame_info): Update.
8268 (ia64_pop_frame_regular): Update.
8269 * frame.h (struct frame_info): Update comment.
8270 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8271 * frame.c (frame_saved_regs_register_unwind): Update.
8272 (frame_saved_regs_register_unwind): Update.
8273 (deprecated_generic_get_saved_register): Update.
8274 * cris-tdep.c: Update comment.
8275 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8276 Rename macro.
8277 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8278 * x86-64-tdep.c (x86_64_init_abi): Update.
8279 * vax-tdep.c (vax_gdbarch_init): Update.
8280 * v850-tdep.c (v850_gdbarch_init): Update.
8281 * sparc-tdep.c (sparc_gdbarch_init): Update.
8282 * sh-tdep.c (sh_gdbarch_init): Update.
8283 * s390-tdep.c (s390_gdbarch_init): Update.
8284 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8285 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8286 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8287 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8288 * mips-tdep.c (mips_gdbarch_init): Update.
8289 * mcore-tdep.c (mcore_gdbarch_init): Update.
8290 * m68k-tdep.c (m68k_gdbarch_init): Update.
8291 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8292 * ia64-tdep.c (ia64_gdbarch_init): Update.
8293 * i386-tdep.c (i386_gdbarch_init): Update.
8294 * frv-tdep.c (frv_gdbarch_init): Update.
8295 * avr-tdep.c (avr_gdbarch_init): Update.
8296 * arm-tdep.c (arm_gdbarch_init): Update.
8297 * alpha-tdep.c (alpha_gdbarch_init): Update.
8298
8299 2003-03-01 Andrew Cagney <cagney@redhat.com>
8300
8301 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8302 option enum and switch. When no windows, set the interpreter to
8303 INTERP_CONSOLE.
8304
8305 2003-03-01 Andrew Cagney <cagney@redhat.com>
8306
8307 * main.c (captured_main): Replace magic option characters with an
8308 enum.
8309
8310 2003-03-01 Andrew Cagney <cagney@redhat.com>
8311
8312 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8313 INIT_EXTRA_FRAME_INFO.
8314 * gdbarch.h, gdbarch.c: Regenerate.
8315 * arm-tdep.c: Update comments.
8316 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8317 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8318 * frame.h, avr-tdep.c: Ditto.
8319 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8320 (create_new_frame, legacy_get_prev_frame): Ditto.
8321 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8322 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8323 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8324 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8325 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8326 * v850-tdep.c (v850_gdbarch_init): Ditto.
8327 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8328 * sh-tdep.c (sh_gdbarch_init): Ditto.
8329 * s390-tdep.c (s390_gdbarch_init): Ditto.
8330 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8331 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8332 * mips-tdep.c (mips_gdbarch_init): Ditto.
8333 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8334 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8335 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8336 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8337 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8338 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8339 * frv-tdep.c (frv_gdbarch_init): Ditto.
8340 * cris-tdep.c (cris_gdbarch_init): Ditto.
8341 * avr-tdep.c (avr_gdbarch_init): Ditto.
8342 * arm-tdep.c (arm_gdbarch_init): Ditto.
8343 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8344 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8345
8346 2003-03-01 Andrew Cagney <cagney@redhat.com>
8347
8348 * gdbarch.sh (register_type): New function with predicate.
8349 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8350 * gdbarch.h, gdbarch.c: Re-generate.
8351 * arch-utils.c (generic_register_byte): Use generic_register_size.
8352 (generic_register_size): When available, use
8353 gdbarch_register_type.
8354 * regcache.c (init_regcache_descr): When available, initialize the
8355 register type array using gdbarch_register_type. If the
8356 architecture supplies gdbarch_register_type, do not use the legacy
8357 regcache layout.
8358 * d10v-tdep.c (d10v_register_type): Replace
8359 d10v_register_virtual_type.
8360 (d10v_gdbarch_init): Set register_type instead of
8361 register_virtual_type.
8362
8363 2003-03-01 Andrew Cagney <cagney@redhat.com>
8364
8365 * Makefile.in (ax-gdb.o): Update dependencies.
8366 * ax-gdb.c: Include "regcache.h".
8367 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8368 * findvar.c (value_of_register): Ditto.
8369 * infcmd.c (default_print_registers_info): Ditto.
8370
8371 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8372
8373 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8374 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8375
8376 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8377
8378 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8379 of STREQ.
8380
8381 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8382
8383 * Makefile.in (dwarf2loc.o): Update dependencies.
8384 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8385 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8386 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8387 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8388 (locexpr_tracepoint_var_ref): New function.
8389 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8390
8391 2003-02-28 Andrew Cagney <cagney@redhat.com>
8392
8393 * regcache.c (register_size): New function.
8394 * regcache.h (register_size): Declare
8395 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8396 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8397
8398 2003-02-28 David Carlton <carlton@math.stanford.edu>
8399
8400 * linespec.c (decode_compound): Extract code into find_method.
8401 (find_method): New.
8402
8403 2003-02-28 J. Brobecker <brobecker@gnat.com>
8404
8405 * Makefile.in: Add rules to build and link in observer.o.
8406
8407 2003-02-27 J. Brobecker <brobecker@gnat.com>
8408
8409 * observer.c: Minor comments edits.
8410
8411 2003-02-27 J. Brobecker <brobecker@gnat.com>
8412
8413 * observer.h, observer.c: New file.
8414
8415 2003-02-27 Andrew Cagney <cagney@redhat.com>
8416
8417 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8418
8419 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8420
8421 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8422 (M6812_OP_STS_EXT): Likewise.
8423 (m6811_prologue): Use the above to recognize prologue.
8424 (m6812_prologue): Likewise.
8425
8426 2003-02-27 David Carlton <carlton@math.stanford.edu>
8427
8428 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8429 SYMBOL_PRINT_NAME.
8430 (compare_psymbols): Ditto.
8431 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8432
8433 2003-02-27 Michael Snyder <msnyder@redhat.com>
8434
8435 * f-lang.c (build_fortran_types): New function.
8436 (_initialize_f_language): Gdbarch-register built-in fortran types.
8437 * doublest.c (extract_floating): Fix warning text.
8438
8439 2003-02-27 Andrew Cagney <cagney@redhat.com>
8440
8441 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8442 predicate. Replaces PUSH_DUMMY_FRAME.
8443 * gdbarch.h, gdbarch.c: Regnerate.
8444 * valops.c (hand_function_call): Update. Call
8445 generic_push_dummy_frame directly.
8446 * vax-tdep.c (vax_gdbarch_init): Update.
8447 * sparc-tdep.c (sparc_gdbarch_init): Update.
8448 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8449 * m68k-tdep.c (m68k_gdbarch_init): Update.
8450 * hppa-tdep.c (hppa_gdbarch_init): Update.
8451 * alpha-tdep.c (alpha_gdbarch_init): Update.
8452 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8453 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8454 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8455 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8456 push_dummy_frame to generic_push_dummy_frame.
8457 * v850-tdep.c (v850_gdbarch_init): Ditto.
8458 * sh-tdep.c (sh_gdbarch_init): Ditto.
8459 * s390-tdep.c (s390_gdbarch_init): Ditto.
8460 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8461 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8462 * mips-tdep.c (mips_gdbarch_init): Ditto.
8463 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8464 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8465 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8466 * i386-tdep.c (i386_gdbarch_init): Ditto.
8467 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8468 * frv-tdep.c (frv_gdbarch_init): Ditto.
8469 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8470 * cris-tdep.c (cris_gdbarch_init): Ditto.
8471 * avr-tdep.c (avr_gdbarch_init): Ditto.
8472 * arm-tdep.c (arm_gdbarch_init): Ditto.
8473
8474 2003-02-26 Kevin Buettner <kevinb@redhat.com>
8475
8476 * mips-tdep.c (show_mips_abi): New function.
8477 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8478 command ``show mips abi''.
8479
8480 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8481
8482 From Elena Zannoni <ezannoni@redhat.com>
8483 * dbxread.c (process_one_symbol): Only record line 0 if one or
8484 more sline entries have been seen for the function.
8485
8486 2003-02-26 Michael Chastain <mec@shout.net>
8487
8488 * configure: Regenerate with autoconf 000227.
8489
8490 2003-02-26 Michael Chastain <mec@shout.net>
8491
8492 Close PR build/660.
8493 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8494 for old libc5/glibc.
8495 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8496
8497 2003-02-26 Kris Warkentin <kewarken@qnx.com>
8498
8499 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8500 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8501
8502 2003-02-26 Michael Chastain <mec@shout.net>
8503
8504 * configure.in: New variable HAVE_UINTPTR_T.
8505 * configure, config.in: Regenerated.
8506
8507 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
8508
8509 Fix PR build/1097.
8510 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8511
8512 2003-02-25 Andrew Cagney <cagney@redhat.com>
8513
8514 * frame.c (get_prev_frame): Add comment on check for
8515 inside_entry_func. Only check for inside_entry_file when not a
8516 dummy and not a sentinel. Check that the new frame is not inner
8517 to the old frame.
8518
8519 2003-02-25 Andrew Cagney <cagney@redhat.com>
8520
8521 * frame.c (frame_debug): New variable.
8522 (_initialize_frame): Add "set/show debug frame" command.
8523 (get_prev_frame): When frame_debug, print reason why unwind
8524 failed.
8525
8526 2003-02-25 Michael Chastain <mec@shout.net>
8527
8528 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8529 to avoid uintptr_t definition problems.
8530
8531 2003-02-25 David Carlton <carlton@math.stanford.edu>
8532
8533 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8534 (SYMBOL_LINKAGE_NAME): Ditto.
8535 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8536 SYMBOL_LINKAGE_NAME.
8537 (struct general_symbol_info): Expand comment.
8538 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8539 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8540 (SYMBOL_MATCHES_REGEXP): Ditto.
8541 * symtab.c (symbol_natural_name): New function.
8542 * objfiles.h: Replace all uses of SYMBOL_NAME by
8543 DEPRECATED_SYMBOL_NAME.
8544 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8545 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8546 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8547 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8548 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8549 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8550 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8551 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8552 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8553 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8554 * ada-exp.y: Ditto.
8555 * ada-exp.y: Update copyright.
8556 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8557 * cp-valprint.c: Ditto.
8558
8559 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8560
8561 * infptrace.c (detach): Do not flag error if ptrace detach fails
8562 and errno is set to ESRCH.
8563
8564 2003-02-24 Andrew Cagney <cagney@redhat.com>
8565
8566 * infptrace.c (udot_info): Change type of udot_off to long. Use
8567 paddr when printing udot_off's value.
8568
8569 2003-02-24 David Carlton <carlton@math.stanford.edu>
8570
8571 * symtab.c (make_symbol_overload_list): Only read in partial
8572 symtabs containing a matching partial symbol.
8573
8574 2003-02-24 David Carlton <carlton@math.stanford.edu>
8575
8576 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8577 do the comparison, not strcmp.
8578 * symfile.c (compare_psymbols): Ditto.
8579 * defs.h: Declare strcmp_iw_ordered.
8580 * utils.c (strcmp_iw_ordered): New function.
8581
8582 2003-02-24 Jim Blandy <jimb@redhat.com>
8583
8584 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8585 support, shared libs): Remove my name from here, to better reflect
8586 reality.
8587
8588 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8589
8590 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8591 (target_ops): Add to_have_continuable_watchpoint.
8592 * target.c (update_current_target): Add INHERIT line for
8593 to_have_continuable_watchpoint.
8594 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8595 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8596 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8597 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8598
8599 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
8600
8601 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8602 maintainership.
8603
8604 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8605
8606 * solib.c (solib_open): Call target defined search function after
8607 failing with solib-search-path.
8608 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8609 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8610
8611 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8612
8613 * MAINTAINERS: Add myself to Write After section.
8614
8615 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8616
8617 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8618
8619 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8620
8621 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8622 (m68hc11_add_reggroups): New function.
8623 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8624 (m68hc11_gdbarch_init): Install the reggroups.
8625 (_initialize_m68hc11_tdep): Initialize them.
8626
8627 2003-02-21 James E Wilson <wilson@tuliptree.org>
8628
8629 * MAINTAINERS: Update my email address.
8630
8631 2003-02-21 David Carlton <carlton@math.stanford.edu>
8632
8633 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8634
8635 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
8636
8637 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8638 * symtab.h: Add opaque declarations of struct axs_value and
8639 struct agent_expr.
8640 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8641 (struct location_funcs): New type.
8642 (struct symbol): Add "loc" to aux_value.
8643 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8644 * dwarf2read.c: Include "dwarf2expr.h".
8645 (dwarf2_symbol_mark_computed): New function.
8646 (read_func_scope): Use it.
8647 (var_decode_location): New function.
8648 (new_symbol): Use it.
8649 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8650
8651 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8652 (dwarf2expr_h, dwarf2loc_h): New variables.
8653 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8654 (dwarf2expr.o, dwarf2loc.o): New rules.
8655 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8656 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8657 LOC_COMPUTED_ARG.
8658 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8659 * m2-exp.y (yylex): Likewise.
8660 * printcmd.c (address_info, print_frame_args): Likewise.
8661 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8662 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8663 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8664 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8665 * symtab.c (lookup_block_symbol): Likewise.
8666
8667 2003-02-20 Adam Fedor <fedor@gnu.org>
8668
8669 * symtab.h: Remove objc_specific struct
8670 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8671 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8672 Have language_objc use cplus_specific struct.
8673
8674 2003-02-20 Tom Tromey <tromey@redhat.com>
8675
8676 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8677 TYPE_NAME, when printing a String value. PR java/1075.
8678
8679 2003-02-20 Adam Fedor <fedor@gnu.org>
8680
8681 * objc-lang.h (find_methods): Remove declaration.
8682 * objc-lang.c (find_methods): Make static.
8683
8684 2003-02-20 Christopher Faylor <cgf@redhat.com>
8685
8686 * win32-nat.c (get_image_name): Check return value from
8687 ReadProcessMemory.
8688 (child_xfer_memory): Ditto.
8689
8690 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
8691
8692 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8693 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8694 '${exec_prefix}' (in addition to the expansion thereof) as
8695 relocatable.
8696 * configure: Rebuilt.
8697
8698 2003-02-20 David Carlton <carlton@math.stanford.edu>
8699
8700 * symtab.c (search_symbols): Revert the search_symbols part of my
8701 2002-12-23 patch. Add comment.
8702
8703 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8704
8705 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8706 * dbxread.c (elfstab_build_psymtabs): Don't call
8707 install_minimal_symbols.
8708 (stabsect_build_psymtabs): Likewise.
8709 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8710 earlier.
8711 * somread.c (som_symfile_read): Call install_minimal_symbols
8712 and do_cleanups earlier.
8713 * nlmread.c (nlm_symfile_read): Likewise.
8714 * mdebugread.c (elfmdebug_build_psymtabs): Call
8715 install_minimal_symbols and make appropriate cleanups.
8716
8717 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8718
8719 * solib.c (reload_shared_libraries): New function.
8720 (_initialize_solib): Add callbacks for ``set solib-search-path''
8721 and ``set solib-absolute-prefix''.
8722
8723 2003-02-20 David Carlton <carlton@math.stanford.edu>
8724
8725 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8726 expand comment.
8727 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8728 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8729 * ada-typeprint.c (ada_typedef_print): Ditto.
8730 * ax-gdb.c (gen_var_ref): Ditto.
8731 * breakpoint.c (print_one_breakpoint): Ditto.
8732 * buildsym.c (finish_block): Ditto.
8733 * c-valprint.c (c_val_print): Ditto.
8734 * expprint.c (print_subexp): Ditto.
8735 * findvar.c (locate_var_value): Ditto.
8736 * infcmd.c (jump_command): Ditto.
8737 * linespec.c (decode_line_2, decode_compound): Ditto.
8738 * maint.c (maintenance_translate_address): Ditto.
8739 * objc-lang.c (compare_selectors, compare_classes): Ditto.
8740 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8741 Ditto.
8742 * p-valprint.c (pascal_val_print): Ditto.
8743 * stabsread.c (define_symbol): Ditto.
8744 * stack.c (print_frame, frame_info, print_block_frame_locals)
8745 (print_frame_arg_vars, return_command): Ditto.
8746 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8747 * symmisc.c (print_symbol): Ditto.
8748 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8749 (compare_search_syms, print_symbol_info, print_msymbol_info)
8750 (rbreak_command): Ditto.
8751 * tracepoint.c (tracepoints_info): Ditto.
8752 * typeprint.c (typedef_print): Ditto.
8753 * valops.c (value_of_variable, hand_function_call): Ditto.
8754 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8755 * ada-typeprint.c: Update Copyright.
8756 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8757 * tracepoint.c, cli/cli-cmds.c: Ditto.
8758
8759 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8760
8761 * frame.c (generic_unwind_get_saved_register): Make non-static.
8762 * frame.h (generic_unwind_get_saved_register): Declare.
8763 * mips-tdep.c (read_next_frame_reg): Fetch register from
8764 current regcache when frame is NULL.
8765 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8766 that must be NULL.
8767 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8768 instead of frame_register_unwind().
8769
8770 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8771
8772 * remote-sim.c (gdbsim_insert_breakpoint)
8773 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8774 code.
8775
8776 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8777
8778 * remote.c (_initialize_remote): Add commands "set/show remote
8779 hardware-watchpoint-limit" and "set/show remote
8780 hardware-breakpoint-limit".
8781 (remote_hw_watchpoint_limit): Initialize to -1.
8782 (remote_hw_breakpoint_limit): Ditto.
8783 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8784
8785 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8786
8787 * coff-pe-read.c: New file - support reading of minimal symbols from a
8788 portable executable using the export table.
8789 * coff-pe-read.h: New file.
8790 * coffread.c: Include coff-pe-read.h.
8791 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8792 debugging symbols found.
8793 * Makefile.in (SFILES): Add coff-pe-read.o.
8794 (coff_pe_read_h): Define.
8795 (COMMON_OBS): Add coff-pe-read.o.
8796 (coffread.o): Add coff_pe_read_h dependency.
8797 (coff-pe-read.o): New target.
8798
8799 2003-02-19 David Carlton <carlton@math.stanford.edu>
8800
8801 * Makefile.in (SFILES): Add block.c.
8802 (block_h): New.
8803 (COMMON_OBS): Add block.o.
8804 (block.o): New.
8805 (x86-64-tdep.o): Add $(block_h).
8806 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8807 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8808 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8809 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8810 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8811 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8812 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8813 * value.h: Add opaque declaration for struct block.
8814 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8815 * ada-lang.h: Ditto.
8816 * x86-64-tdep.c: #include "block.h"
8817 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8818 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8819 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8820 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8821 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8822 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8823 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8824 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8825 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8826 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8827 * symtab.c (block_function): Ditto.
8828 (contained_in): Ditto.
8829 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8830 block.h. Add opaque declaration for struct block.
8831 * symtab.h: Move block_function and contained_in declarations to
8832 block.h. Add opaque declarations for struct block, struct
8833 blockvector.
8834 (struct block): Move to block.h.
8835 (struct blockvector): Ditto.
8836 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8837 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8838 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8839 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8840 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8841 Ditto.
8842 * block.c: New file.
8843 * block.h: New file.
8844
8845 2003-02-19 Theodore A. Roth <troth@openavr.org>
8846
8847 * avr-tdep.c (avr_extract_return_value): Remove function.
8848 (avr_store_return_value): Remove function.
8849 (avr_extract_struct_value_address): Remove function.
8850 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8851
8852 2003-02-19 Andrew Cagney <ac131313@redhat.com>
8853
8854 * rs6000-tdep.c: Include "gdb_assert.h".
8855 (registers_e500): Add "acc" and "spefscr".
8856 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8857 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8858 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
8859 really is "r0".
8860 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8861
8862 2003-02-18 Keith Seitz <keiths@redhat.com>
8863
8864 * Makefile.in: Add gdbtk-interps.c.
8865
8866 2003-02-18 Kevin Buettner <kevinb@redhat.com>
8867
8868 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8869 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8870
8871 2003-02-18 Andrew Cagney <cagney@redhat.com>
8872
8873 * symtab.h (struct objfile): Add opaque declaration.
8874
8875 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
8876
8877 From Jim Ingham <jingham@apple.com>:
8878 * dbxread.c (process_one_symbol): Use last_function_start rather
8879 than function_start_offset to find the real beginning of the
8880 current function. The latter is just the text section offset on
8881 some systems, the former is always the real function start.
8882
8883 2003-02-17 Andrew Cagney <cagney@redhat.com>
8884
8885 * configure.in: Revert ${target} != ${host}.
8886
8887 2003-02-17 Andrew Cagney <ac131313@redhat.com>
8888
8889 * configure.in (Makefile): Use the test ${target} != ${host},
8890 instead of the absence of the "nm.h" file, to determine of the
8891 configuration non-native.
8892 * configure: Regenerate.
8893
8894 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
8895
8896 From Brian Ford <ford@vss.fsi.com>
8897
8898 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
8899 conditionalize tui_active test.
8900 (lookup_cmd_1): Ditto.
8901
8902 2003-02-14 Mark Kettenis <kettenis@gnu.org>
8903
8904 * configure.in: Add check for _etext.
8905 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
8906 available.
8907 * config.in, configure: regenerated.
8908
8909 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
8910
8911 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
8912
8913 2003-02-14 Andrew Cagney <ac131313@redhat.com>
8914
8915 * main.c (tui_version): Delete variable.
8916 (captured_main): When --tui, set interpreter_p to "tui" instead of
8917 enabling tui_version.
8918 * printcmd.c (display_command) [TUI]: Test tui_active instead of
8919 tui_version.
8920 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
8921 * cli/cli-cmds.c (disassemble_command): Ditto.
8922 * defs.h (tui_version): Delete declaration.
8923 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
8924 (tui-interp.o): Add rules.
8925 (SUBDIR_TUI_OBS): Add "tui-interp.o".
8926
8927 2003-02-14 Christopher Faylor <cgf@redhat.com>
8928
8929 * win32-nat.c (register_loaded_dll): Correctly set address range for
8930 just-loaded dll.
8931
8932 2003-02-12 Jason Molenda (jmolenda@apple.com)
8933
8934 * symmisc.c (print_objfile_statistics): Include information about
8935 the number of psymtabs and symtabs in each object file.
8936
8937 2003-02-13 Keith R Seitz <keiths@redhat.com>
8938
8939 * main.h (struct captured_main_args): Add interpreter_p.
8940 * main.c (captured_main): Initialize interpreter_p from context.
8941 * gdb.c (main): Set interpreter_p argument.
8942 * Makefile.in (gdb.o): Add dependency for interps.h.
8943
8944 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8945
8946 * event-top.c (cli_command_loop): Delete declaration.
8947 (_initialize_event_loop): Delete function setting event_loop_hook.
8948 * event-top.h (cli_command_loop): Declare. Update copyright.
8949 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
8950 * interps.c (current_interp_command_loop): When event_loop_p, call
8951 cli_command_loop.
8952
8953 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8954
8955 * interps.h (interp_command_loop_ftype): Change return type to
8956 void.
8957
8958 2003-02-12 Michal Ludvig <mludvig@suse.cz>
8959
8960 * x86-64-tdep.c (x86_64_extract_return_value)
8961 (x86_64_store_return_value): Use regcache instead of regbuf.
8962 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
8963 * x86-64-linux-nat.c (fill_gregset): Use regcache.
8964
8965 2003-02-11 Andrew Cagney <ac131313@redhat.com>
8966
8967 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
8968 * aclocal.m4: Regenerate.
8969 * configure: Regenerate.
8970
8971 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
8972 TCL_LD_SEARCH_FLAGS.
8973
8974 2003-02-10 Michal Ludvig <mludvig@suse.cz>
8975
8976 * dwarf2cfi.c: Reindented.
8977
8978 2003-02-09 Andrew Cagney <ac131313@redhat.com>
8979
8980 * interps.c (clear_interpreter_hooks): Convert function definition
8981 to ISO C.
8982
8983 2003-02-07 David Carlton <carlton@math.stanford.edu>
8984
8985 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8986
8987 2003-02-07 Kevin Buettner <kevinb@redhat.com>
8988
8989 * gdbtypes.h (struct main_type): Move ``length'' field from here...
8990 (struct type): ...to here.
8991 (TYPE_LENGTH): Adjust to reflect different location of ``length''
8992 field.
8993 * gdbtypes.c (make_qualified_type): Set length on newly created type.
8994 (replace_type): Set length on all type variants for a given type.
8995
8996 2003-02-07 Andrew Cagney <ac131313@redhat.com>
8997
8998 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
8999 <sys/stat.h>.
9000 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9001
9002 2003-02-06 Andrew Cagney <ac131313@redhat.com>
9003
9004 * Makefile.in (symm-nat.o): Update dependencies.
9005 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9006 (lynx-nat.o, ia64-linux-nat.): Ditto.
9007 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9008 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9009 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9010
9011 * Makefile.in (inflow_h): Define.
9012 (procfs.o, inflow.o, procfs.o): Update dependencies.
9013 * inftarg.c (child_stop): Delete extern declaration of
9014 inferior_process_group. Include "inflow.h".
9015 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9016 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9017 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9018 (our_process_group, inferior_process_group): Extern declarations.
9019
9020 * procfs.c: Include "gdb_assert.h".
9021
9022 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9023 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9024 * jv-typeprint.c (java_type_print_base): Ditto.
9025 * typeprint.c (typedef_print): Eliminate STREQ.
9026 * cli/cli-script.c (define_command, define_command): Ditto.
9027 * main.c (captured_main): Ditto.
9028 * values.c (lookup_internalvar): Ditto.
9029 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9030 within `if' conditional.
9031 * linespec.c (decode_line_2): Ditto.
9032 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9033 (bfd_openw_with_cleanup): Ditto.
9034
9035 2003-02-07 Mark Kettenis <kettenis@gnu.org>
9036
9037 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9038 legacy_extract_return_value and store_return_value to
9039 legacy_return_value.
9040
9041 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9042
9043 * win32-nat.c (get_relocated_section_addrs): New function. Find
9044 section load addresses for symbol handling in relocated DLLs.
9045 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9046
9047 2003-02-05 Fred Fish <fnf@intrinsity.com>
9048
9049 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9050 '=' and '!='.
9051 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9052 with '&' and '=='.
9053 (angel_RDI_info): Ditto.
9054 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9055 with '&' and '!='.
9056 (threads_continue_all_with_signals): Ditto.
9057
9058 2003-02-05 Jim Ingham <jingham@apple.com>
9059 Keith Seitz <keiths@redhat.com>
9060 Elena Zannoni <ezannoni@redhat.com>
9061 Andrew Cagney <ac131313@redhat.com>
9062
9063 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9064 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9065 (SUBDIR_MI_OBS): Add "mi-interp.o".
9066 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9067 (SFILES): Add "interps.c".
9068 (COMMON_OBS): Add "interps.o".
9069 (interps_h, mi_main_h): Define.
9070 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9071 (mi-main.o, main.o, event-top.o): Update dependencies.
9072 * cli/cli-interp.c: New file.
9073 * interps.h, interps.c: New files.
9074 * top.c: (gdb_init): Don't install the default interpreter, handed
9075 by captured_main.
9076 * main.c: Include "interps.h".
9077 (interpreter_p): Note that it should malloc'ed.
9078 (captured_command_loop): Call current_interp_command_loop.
9079 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9080 xfree and xstrdup when updating interpreter_p. Install the
9081 default interpreter. Add hack to stop mi1's copyright notice
9082 being encoded.
9083 * event-top.h (gdb_setup_readline): Declare.
9084 (gdb_disable_readline): Declare.
9085 * event-top.c: Include "interps.h".
9086 (display_gdb_prompt): Call current_interp_display_prompt_p.
9087 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9088 gdb_stdlog, and gdb_stdtarg.
9089 (_initialize_event_loop): Don't call gdb_setup_readline.
9090 * cli-out.c (cli_out_set_stream): New function.
9091 * cli-out.h (cli_out_set_stream): Declare.
9092
9093 2003-02-06 Mark Kettenis <kettenis@gnu.org>
9094
9095 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9096 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9097 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9098 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9099 config/i386/i386v42mp.mt: Removed.
9100
9101 2003-02-05 Mark Kettenis <kettenis@gnu.org>
9102
9103 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9104 GDB_OSABI_SOLARIS.
9105
9106 2003-02-05 Michael Chastain <mec@shout.net>
9107
9108 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9109 2.12.1 and earlier versions.
9110
9111 2003-02-05 Andrew Cagney <ac131313@redhat.com>
9112
9113 Remove orphaned hosts, targets and files.
9114 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9115 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9116 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9117 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9118 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9119 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9120 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9121 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9122 * config/sparc/tm-sp64sim.h: Delete.
9123 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9124 hosts.
9125 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9126 mips*-dec-mach3* targets.
9127
9128 2003-02-04 Michael Chastain <mec@shout.net>
9129
9130 * NEWS: Fix typo: sepcifying -> specifying.
9131
9132 2003-02-04 Michael Chastain <mec@shout.net>
9133
9134 * dwarfread.c: Add documentation on the state of dwarf-1,
9135 looking towards obsoletion.
9136
9137 2003-02-03 Michael Chastain <mec@shout.net>
9138
9139 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9140 gdb/testsuite/gdb.c++/pr-1023.exp.
9141
9142 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9143
9144 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9145 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9146
9147 * utils.c (init_page_info): Delete reference to MPW in comments.
9148 * main.c (captured_main): Delete #ifdef MPW.
9149
9150 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9151
9152 * NEWS: Note that the m32r-*-elf* is obsolete.
9153 * monitor.c (monitor_expect): Obsolete reference to m32r.
9154 * configure.tgt: Mark m32r-*-elf* as obsolete.
9155 * MAINTAINERS: Mark m32k as obsolete.
9156 * m32r-rom.c: Obsolete file.
9157 * config/m32r/m32r.mt: Obsolete file.
9158 * config/m32r/tm-m32r.h: Obsolete file.
9159 * m32r-stub.c: Obsolete file.
9160 * m32r-tdep.c: Obsolete file.
9161
9162 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9163
9164 * NEWS: Mention that the z8k-zilog-none is obsolete.
9165 * MAINTAINERS: Mark z8k as obsolete.
9166 * configure.tgt: Obsolete the z8k-*-coff* target.
9167 * config/z8k/z8k.mt: Obsolete file.
9168 * config/z8k/tm-z8k.h: Obsolete file.
9169 * z8k-tdep.c: Obsolete file.
9170
9171 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9172
9173 * NEWS: Mention that the mn10200-elf is obsolete.
9174 * configure.tgt: Obsolete mn10200-*-* target.
9175 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9176 mention that the mn10200 is obsolete.
9177 * breakpoint.h: Ditto.
9178 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9179 * config/mn10200/mn10200.mt: Obsolete file.
9180 * config/mn10200/tm-mn10200.h: Obsolete file.
9181 * mn10200-tdep.c: Obsolete file.
9182
9183 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9184
9185 * MAINTAINERS: Mark h8500 as obsolete.
9186 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9187 * findvar.c (value_from_register): Ditto.
9188 * h8500-tdep.c: Mark file as obsolete.
9189 * config/h8500/h8500.mt: Ditto.
9190 * config/h8500/tm-h8500.h: Ditto.
9191 * NEWS: Mention that h8500 is obsolete.
9192
9193 2003-02-04 David Carlton <carlton@math.stanford.edu>
9194
9195 * objfiles.c (allocate_objfile): Always set name. Add comment at
9196 start of function.
9197 * jv-lang.c (get_dynamics_objfile): Add comment.
9198
9199 2003-02-04 David Carlton <carlton@math.stanford.edu>
9200
9201 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9202 * printcmd.c (build_address_symbolic): Replace uses of
9203 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9204 SYMBOL_NAME, and asm_demangle.
9205 Update copyright.
9206
9207 2003-02-04 David Carlton <carlton@math.stanford.edu>
9208
9209 * linespec.c (decode_compound): Extract code into
9210 lookup_prefix_sym.
9211 (lookup_prefix_sym): New function.
9212
9213 2003-02-04 David Carlton <carlton@math.stanford.edu>
9214
9215 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9216 FLOAT_COERCION_BADNESS.
9217 * gdbtypes.c (rank_one_type): Replace all uses of
9218 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9219
9220 2003-02-04 Jim Blandy <jimb@redhat.com>
9221
9222 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9223 section, let dwarf_macinfo_section point to it, not
9224 dwarf_loc_section.
9225
9226 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9227
9228 Pointed out by Anton Blanchard <anton@samba.org>.
9229 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9230 (ppc_linux_at_sigtramp_return_path): Use it.
9231
9232 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9233
9234 * defs.h (streq): Add prototype.
9235 * utils.c (streq): New function.
9236
9237 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9238 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9239 * mdebugread.c (new_symbol): Likewise.
9240 * stabsread.c (define_symbol): Likewise.
9241 * coffread.c (process_coff_symbol): Likewise.
9242 * dwarfread.c (new_symbol): Likewise.
9243
9244 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9245 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9246 here.
9247 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9248 SYMBOL_INIT_DEMANGLED_NAME.
9249 * objfiles.c: Include "hashtab.h".
9250 (allocate_objfile): Call htab_set_functions_ex for the
9251 demangled_names_hash.
9252 (free_objfile): Call htab_delete for the demangled_names_hash.
9253 * objfiles.h (struct htab): Add declaration.
9254 (struct objfile): Add demangled_names_hash.
9255 * symfile.c: Include "hashtab.h".
9256 (reread_symbols): Call htab_delete for the demangled_names_hash.
9257 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9258 SYMBOL_NAME in the bcache.
9259 * symtab.c: Include "hashtab.h". Update comments.
9260 (create_demangled_names_hash, symbol_set_names): New functions.
9261 (symbol_find_demangled_name): New function, broken out from
9262 symbol_init_demangled_names.
9263 (symbol_init_demangled_names): Use it.
9264 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9265 (SYMBOL_SET_NAMES): New macro.
9266 (symbol_set_names): Add prototype.
9267
9268 2003-02-03 Jim Blandy <jimb@redhat.com>
9269
9270 Use a single, consistent representation for an empty minimal
9271 symbol table in an objfile.
9272 * objfiles.c (terminate_minimal_symbol_table): New function.
9273 (allocate_objfile): Call it.
9274 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9275 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9276 non-NULL.
9277 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9278 objfile has minimal symbols, compare minimal_symbol_count to zero,
9279 instead of comparing msymbols with NULL.
9280 * objfiles.c (have_minimal_symbols): Same.
9281 * solib-sunos.c (solib_add_common_symbols): Call
9282 terminate_minimal_symbol_table.
9283 * symfile.c (reread_symbols): Same.
9284
9285 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9286
9287 * s390-tdep.c (s390_address_class_type_flags)
9288 (s390_address_class_type_flags_to_name)
9289 (s390_address_class_name_to_type_flags): New functions.
9290 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9291 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9292
9293 2003-02-03 Michael Snyder <msnyder@redhat.com>
9294
9295 * arm-tdep.c: Fix spell-o in comment.
9296
9297 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9298
9299 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9300 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9301 error messages to contain BFD filename.
9302
9303 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9304
9305 Fix PR gdb/742 gdb/743 gdb/877
9306 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9307 (do_mixed_source_and_assembly): Use
9308 make_cleanup_ui_out_tuple_begin_end and
9309 make_cleanup_ui_out_tuple_begin_end.
9310 (do_mixed_source_and_assembly): Ditto.
9311 * thread.c (do_captured_list_thread_ids): Ditto.
9312 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9313 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9314 ui_out_tuple_end): Delete prototypes.
9315 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9316 ui_out_list_end, ui_out_tuple_end): Delete.
9317
9318 From Kevin Buettner <kevinb@redhat.com>:
9319 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9320 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9321 (do_cleanup_table_end): New functions.
9322 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9323 Use cleanups to invoke_ui_out_tuple_end().
9324 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9325 * cli/cli-setshow.c (cmd_show_list): Use
9326 make_cleanup_ui_out_tuple_begin_end.
9327
9328 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9329
9330 * frame.c (frame_unwind_register): New function.
9331 (frame_unwind_unsigned_register): Use.
9332 (frame_unwind_signed_register): Use.
9333 (frame_read_register): New function.
9334 * frame.h (frame_unwind_register): Declare.
9335 (frame_read_register): Declare.
9336
9337 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9338 and frame_unwind_register instead of read_memory, write_register
9339 and deprecated_write_register_bytes.
9340
9341 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9342
9343 * frame.h: Note that namelen can be negative.
9344 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9345 NAME's length.
9346
9347 * NEWS: Mention that the d10v's `regs' command is deprecated.
9348 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9349 (d10v_print_registers_info): New function.
9350 (show_regs): Call d10v_print_registers_info.
9351 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9352
9353 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9354
9355 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9356 lost in the previous patch.
9357
9358 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9359
9360 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9361 * stack.c (print_frame_info_base): Output complete FRAME tuple
9362 for synthesized frames.
9363
9364 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9365
9366 * mips-nat.c (zerobuf): Delete.
9367 (fetch_inferior_registers): Alloc local zerobuf.
9368 (fetch_core_registers): Alloc local zerobuf.
9369 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9370 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9371 * thread-db.c (thread_db_store_registers): Ditto.
9372 * sh-tdep.c (sh_do_register): Ditto.
9373 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9374 * remote-sim.c (gdbsim_store_register): Ditto.
9375 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9376 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9377 * monitor.c (monitor_supply_register): Ditto.
9378 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9379 * mips-nat.c (fetch_inferior_registers): Ditto.
9380 * m68klinux-nat.c (fetch_register): Ditto.
9381 * lynx-nat.c (fetch_inferior_registers): Ditto.
9382 (fetch_inferior_registers): Ditto.
9383 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9384 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9385 (hpux_thread_store_registers): Ditto.
9386 * hppah-nat.c (fetch_register): Ditto.
9387 * hppab-nat.c (fetch_register): Ditto.
9388 * hppa-tdep.c (pa_register_look_aside): Ditto.
9389 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9390 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9391
9392 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9393
9394 * gdbarch.sh: Explictly specify all method levels. When a
9395 variable with an empty level, provide a non-multi-arch default.
9396 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9397 * gdbarch.h: Re-generate.
9398 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9399 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9400
9401 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9402
9403 * defs.h (host_pointer_to_address): Delete declaration.
9404 (address_to_host_pointer): Delete declaration.
9405 * utils.c (host_pointer_to_address): Delete function.
9406 (address_to_host_pointer): Delete function.
9407 * procfs.c (procfs_address_to_host_pointer): New function.
9408 * procfs.c (proc_set_watchpoint): Use.
9409 (procfs_can_use_hw_breakpoint): Update comments.
9410 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9411 (som_solib_add): Use.
9412 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9413 * hppa-tdep.c (unwind_command): Use.
9414
9415 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9416
9417 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9418 strlen d_name.
9419
9420 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9421 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9422 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9423 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9424 (define_symbol): Update.
9425 * symfile.c (generic_load): Remove references to nindy.
9426 * symtab.c: Remove references to nindy.
9427
9428 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9429
9430 * infcmd.c (print_float_info): Delete code conditional on
9431 FLOAT_INFO.
9432 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9433 * config/m68k/nm-apollo68b.h: Ditto.
9434 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9435 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9436 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9437
9438 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9439
9440 * config/i386/tm-i386os9k.h: Removed.
9441
9442 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9443 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9444 they're identical to i[3456]86-*-sysv* now.
9445 * config/i386/i386v32.mh: Removed.
9446 * config/i386/xm-i386v32.h: Removed.
9447 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9448
9449 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9450
9451 * config/i386/i386dgux.mh: Removed.
9452 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9453
9454 * configure.in: Fix typo.
9455 * configure: Regenerated.
9456
9457 2003-01-31 David Carlton <carlton@math.stanford.edu>
9458
9459 * dwarf2read.c (dwarf2_locate_sections): Set
9460 dwarf_ranges_section.
9461
9462 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9463
9464 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9465 * utils.c: Update comments documenting legitimate uses of PTR.
9466
9467 * utils.c: Re-indent.
9468
9469 * config/djgpp/fnchange.lst: Delete nindy files.
9470 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9471 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9472 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9473 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9474 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9475 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9476 * Makefile.in (init.c): Remove nindy references.
9477 (saber_gdb): Delete rule.
9478 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9479 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9480 and a68v-nat.c.
9481 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9482 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9483 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9484 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9485 nindy-share/stop.h.
9486 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9487 * saber.suppress: Delete file.
9488
9489 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
9490
9491 * dbxread.c (stabs_data): New static variable.
9492 (fill_symbuf): Support an in-memory buffer for stabs data.
9493 (stabs_seek): New function.
9494 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9495 (read_ofile_symtab): Use stabs_seek.
9496 (elfstab_build_psymtabs): Take an asection* instead of
9497 an offset and size. Relocate the stabs data if necessary.
9498 Save the section* for dbx_psymtab_to_symtab.
9499 * dwarf2read.c: Add section variables for each debug section.
9500 (dwarf2_locate_sections): Fill them in.
9501 (dwarf2_read_section): Take an asection* argument.
9502 Relocate the section contents if necessary.
9503 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9504 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9505 it to dwarf2_read_section.
9506 (dwarf2_build_frame_info): Update callers.
9507 * elfread.c (elf_symfile_read): Update call to
9508 elfstab_build_psymtabs.
9509 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9510 (DBX_STAB_SECTION): New macro.
9511 * stabsread.h (elfstab_build_psymtabs): Update prototype.
9512 * symfile.c (symfile_dummy_outputs): New function.
9513 (symfile_relocate_debug_section): New function.
9514 * symfile.h (symfile_relocate_debug_section): Add prototype.
9515
9516 2003-01-31 Richard Henderson <rth@redhat.com>
9517
9518 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9519 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9520 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9521 * alpha-tdep.c (alpha_register_name): Add "unique".
9522 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9523 (ALPHA_UNIQUE_REGNUM): New.
9524 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9525
9526 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9527
9528 * README: Remove reference to Ericsson 1800 monitor.
9529 * Makefile.in (remote-es.o): Delete rule.
9530 (ALLDEPFILES): Delete remote-es.c.
9531 * remote-es.c: Delete file.
9532 * config/m68k/es1800.mt: Delete file.
9533 * config/djgpp/fnchange.lst: Update.
9534 * configure.tgt: Delete m68*-ericsson-* target.
9535
9536 2003-01-31 Adam Fedor <fedor@gnu.org>
9537
9538 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9539 Remove duplicate/shadowing variable of same name.
9540
9541 2003-01-30 Jim Blandy <jimb@redhat.com>
9542
9543 * symfile.c (find_separate_debug_file): Assert that the objfile's
9544 directory name we compute ends with a slash, and then assume that
9545 that's so everywhere we use it.
9546
9547 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
9548
9549 * valops.c (value_assign): Flush frame cache after stores to memory
9550 also.
9551
9552 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9553
9554 * Makefile.in (mon960-rom.o): Delete rule.
9555 * mon960-rom.c: Delete file.
9556
9557 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9558
9559 * d10v-tdep.c: Include "frame-unwind.h".
9560 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9561 list.
9562 (next_addr, uses_frame): Delete.
9563 (struct d10v_unwind_cache): Define.
9564 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9565 Use info instead of next_addr and uses_frame globals.
9566 (d10v_frame_init_saved_regs): Delete function.
9567 (d10v_init_extra_frame_info): Delete function.
9568 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9569 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9570 init_frame_pc or frame_saved_pc.
9571 (d10v_pop_frame): Delete function.
9572 (do_d10v_pop_frame): Delete function.
9573 (d10v_frame_chain): Delete function.
9574 (d10v_frame_chain_valid): Delete function.
9575 (d10v_frame_pc_unwind): New function.
9576 (d10v_frame_id_unwind): New function.
9577 (saved_regs_unwinder): New function.
9578 (d10v_frame_register_unwind): New function.
9579 (d10v_frame_pop): New function.
9580 (d10v_frame_unwind): New variable.
9581 (d10v_frame_p): New function.
9582 (d10v_frame_saved_pc): Delete function.
9583 * Makefile.in (d10v-tdep.o): Update dependencies.
9584
9585 2003-01-30 J. Brobecker <brobecker@gnat.com>
9586
9587 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9588 causing some regressions due to a change in the default value
9589 for this macro.
9590
9591 2003-01-29 Richard Henderson <rth@redhat.com>
9592 Elena Zannoni <ezannoni@redhat.com>
9593 Daniel Jacobowitz <drow@mvista.com>
9594
9595 Fix PR gdb/961.
9596 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
9597 variables.
9598 (RANGES_SECTION): New.
9599 (dwarf_ranges_buffer): New variable.
9600 (struct comp_unit_head): Add member "die".
9601 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9602 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9603 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9604 (dwarf2_locate_sections): Likewise.
9605 (dwarf2_build_psymtabs): Read .debug_ranges.
9606 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9607 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9608 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9609 Look for DW_AT_ranges and return the bounding box.
9610
9611 2003-01-29 Brian Ford <ford@vss.fsi.com>
9612
9613 * win32-nat.c (cygwin_pid): Removed as unused.
9614 (child_attach): Try fall back to Cygwin pid.
9615
9616 2003-01-29 Jim Blandy <jimb@redhat.com>
9617
9618 * objfiles.h (struct objfile): Doc fix.
9619
9620 2003-01-29 Andrew Cagney <ac131313@redhat.com>
9621
9622 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9623 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9624 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9625 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9626 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9627 (FRAME_SAVED_PC): Change to a function with predicate.
9628 * gdbarch.h, gdbarch.c: Re-generate.
9629
9630 2003-01-28 Andrew Cagney <ac131313@redhat.com>
9631
9632 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9633
9634 * complaints.c (complain): Delete function.
9635 * complaints.h (struct deprecated_complaint): Delete definition.
9636 (complain): Delete declaration.
9637
9638 2003-01-28 Kevin Buettner <kevinb@redhat.com>
9639
9640 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9641 dummy frames.
9642
9643 2003-01-27 Andrew Cagney <ac131313@redhat.com>
9644
9645 * sentinel-frame.h, sentinel-frame.c: New files.
9646 * Makefile.in (frame.o): Update dependencies.
9647 (SFILES): Add sentinel-frame.c.
9648 (sentinel_frame_h): Define.
9649 (COMMON_OBS): Add sentinel-frame.o.
9650 (sentinel-frame.o): Specify dependencies.
9651 * frame.c: Include "sentinel-frame.h".
9652 (frame_register_unwind): Rewrite assuming that there is always a a
9653 ->next frame.
9654 (frame_register, generic_unwind_get_saved_register): Ditto.
9655 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9656 (create_sentinel_frame, unwind_to_current_frame): New functions.
9657 (get_current_frame): Rewrite using create_sentinel_frame and
9658 unwind_to_current_frame. When possible, always create a frame.
9659 (create_new_frame): Set next to the sentinel frame.
9660 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9661 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9662 ID cache when necessary.
9663 (frame_saved_regs_id_unwind): Use frame_relative_level.
9664 (deprecated_generic_get_saved_register): Use frame_relative_level,
9665 get_frame_saved_regs, get_frame_pc, get_frame_base and
9666 get_next_frame.
9667 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9668 frame_register.
9669
9670 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9671
9672 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9673
9674 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9675
9676 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9677 (maintenance_set_profile_cmd): Use error () instead of warning ().
9678
9679 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9680
9681 * configure.in: Check that -pg works if using --enable-profiling.
9682 Check for monstartup and _mcleanup regardless of --enable-profiling.
9683 * maint.c: Check for monstartup and _mcleanup before using them.
9684 * config.in: Regenerated.
9685 * configure: Regenerated.
9686
9687 2003-01-24 Nick Clifton <nickc@redhat.com>
9688
9689 * Add sh2e support:
9690
9691 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9692
9693 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9694 (sh2e_show_regs): New.
9695 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9696 * config/sh/tm-sh.h: Added sh2e to comments.
9697
9698 2003-01-23 Jim Blandy <jimb@redhat.com>
9699
9700 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9701 symbols found)" message here; we haven't checked for a separate
9702 debug info file yet, so we don't know yet.
9703 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9704 we've looked everywhere. Also, there's no need to print a special
9705 message when we're loading the separate debug info file: the one
9706 symbol_file_add prints is fine.
9707
9708 2003-01-23 Alexander Larsson <alexl@redhat.com>
9709 Jim Blandy <jimb@redhat.com>
9710
9711 Add support for executables whose debug info has been separated
9712 out into a separate file, leaving only a link behind.
9713 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9714 and separate_debug_objfile_backlink.
9715 (put_objfile_before): New declaration.
9716 * symfile.c: #include "filenames.h".
9717 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9718 debug info in a separate file, read that, too. Save the addrs
9719 argument, so we can use it again to read the separated debug info;
9720 syms_from_objfile modifies the table we pass it.
9721 (reread_symbols): After re-reading an objfile, call
9722 reread_separate_symbols to refresh its separate debug info
9723 objfile, if it has one.
9724 (reread_separate_symbols, find_separate_debug_file,
9725 get_debug_link_info, separate_debug_file_exists): New functions.
9726 (debug_file_directory): New global var.
9727 (_initialize_symfile): Initialize debug_file_directory, and
9728 provide the new `set debug-file-directory' command to let the user
9729 change it.
9730 * objfiles.c (free_objfile): If this objfile has its debug info in
9731 a separate objfile, free that one too. If this is itself a
9732 separate debug info objfile, clear our parent's backlink.
9733 (put_objfile_before): New function.
9734 * utils.c (gnu_debuglink_crc32): New function.
9735 * defs.h (gnu_debuglink_crc32): New declaration.
9736 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9737 * configure.in: Handle --with-separate-debug-dir config option.
9738 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9739 * acconfig.h (DEBUGDIR): New macro.
9740 * configure, aclocal.m4, config.in: Regenerated.
9741
9742 2003-01-22 Jim Blandy <jimb@redhat.com>
9743
9744 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9745 like the old symbol_file_add, but taking new arguments: you can
9746 now pass in either a `struct section_addr_info' list to say where
9747 each section is loaded, or a `struct section_offsets' table. Pass
9748 these new arguments through to syms_from_objfile as appropriate.
9749 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9750 with the appropriate quiescent values for the new arguments.
9751
9752 * symfile.c: #include "gdb_assert.h".
9753 (syms_from_objfile): Add the ability to pass in a section offset
9754 table directly, as an alternative to the section_addr_info table.
9755 Document arguments better.
9756 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9757 * symfile.h (syms_from_objfile): Update declaration.
9758 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9759 syms_from_objfile.
9760 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9761
9762 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
9763
9764 Original patch by Tom Tromey <tromey@cygnus.com> and
9765 Jason Molenda <jmolenda@apple.com>.
9766 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9767 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9768 * NEWS: Mention profiling.
9769 * configure.in (--enable-gdbtk): Fix typo.
9770 (--enable-profiling): New. Set PROFILE_CFLAGS.
9771 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9772 Fill in function.
9773 (profiling_state): New variable.
9774 (mcleanup_wrapper): New function.
9775 (_initialize_maint): Remove NOTYET, fix call to
9776 add_setshow_boolean_cmd for "maint set profile".
9777 * configure: Regenerated.
9778
9779 2003-01-21 Martin M. Hunt <hunt@redhat.com>
9780
9781 * Makefile.in (install-gdbtk): Install PNG images too.
9782
9783 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9784
9785 * exec.c (text_start): Delete global variable.
9786 (exec_file_attach): Make text_start local to the function.
9787 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9788 * valops.c (hand_function_call): Delete code that handles
9789 BEFORE_TEXT_END and AFTER_TEXT_END.
9790 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9791 of CALL_DUMMY_LOCATION.
9792 * gdbarch.c: Regenerate.
9793 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9794 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9795 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9796 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9797 (text_end): Delete extern declaration.
9798
9799 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9800
9801 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9802 * blockframe.c (backtrace_below_main): Move to "frame.c".
9803 (frame_chain_valid): Delete check for backtrace_below_main.
9804 (_initialize_blockframe): Delete initialization, move ``set
9805 backtrace-below-main'' command to "frame.c".
9806 (do_flush_frames_sfunc): Delete function.
9807 * frame.c: Include "command.h" and "gdbcmd.h".
9808 (frame_type_from_pc): New function.
9809 (create_new_frame): Use frame_type_from_pc.
9810 (legacy_get_prev_frame): New function.
9811 (get_prev_frame): Rewrite. When an old style frame, call
9812 legacy_get_prev_frame. Otherwize, unwind the PC first.
9813 (_initialize_frame): Add ``set backtrace-below-main'' command.
9814 * Makefile.in (frame.o): Update dependencies.
9815
9816 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9817
9818 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9819 DEPRECATED_REGISTERS_INFO.
9820
9821 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9822
9823 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9824 Maintainers'. Update `Various Maintainers'.
9825
9826 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9827
9828 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9829 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9830 Suppress actual parameters when `-'.
9831 * gdbarch.h, gdbarch.c: Regenerate.
9832
9833 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9834
9835 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9836 code handling dummy frames.
9837
9838 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9839
9840 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9841 (struct frame_unwind): Add field pop.
9842 * frame.h (frame_pop): Declare.
9843 * frame.c (frame_saved_regs_pop): New function.
9844 (trad_frame_unwinder): Add frame_saved_regs_pop.
9845 (frame_pop): New function.
9846 * dummy-frame.c (dummy_frame_pop): New function.
9847 (discard_innermost_dummy): New function.
9848 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9849 (dummy_frame_unwind): Add dummy_frame_pop.
9850 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9851 * valops.c (hand_function_call): Ditto.
9852 * stack.c (return_command): Ditto.
9853
9854 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9855
9856 * cris-tdep.c: Fix function declaration indentation.
9857 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9858 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9859 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9860 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9861 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9862 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9863
9864 2003-01-18 Michael Chastain <mec@shout.net>
9865
9866 * README (Unpacking and Installation -- quick overview):
9867 Warn against ".../gdb-5.3/gdb/configure".
9868
9869 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9870
9871 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9872 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9873 (struct frame_unwind): Declare opaque.
9874 (dummy_frame_p): Declare function.
9875 * dummy-frame.c (dummy_frame_id_unwind): Make static.
9876 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9877 * dummy-frame.c: Include "frame-unwind.h".
9878 (dummy_frame_p): New function.
9879 (dummy_frame_unwind): New variable.
9880 * frame.c: Include "frame-unwind.h".
9881 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
9882 to use the new unwind field.
9883 (set_unwind_by_pc): Delete function.
9884 (create_new_frame, get_prev_frame): Set unwind field using
9885 frame_unwind_find_by_pc.
9886 (trad_frame_unwind, trad_frame_unwinder): New variables.
9887 * frame.h (trad_frame_unwind): Declare variable.
9888 (frame_id_unwind_ftype): Delete declaration.
9889 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
9890 (struct frame_unwind): Declare opaque.
9891 (struct frame_info): Replace the fields id_unwind, pc_unwind and
9892 register_unwind with a single unwind pointer.
9893 * frame-unwind.h, frame-unwind.c: New files.
9894 * Makefile.in (SFILES): Add frame-unwind.c.
9895 (frame_unwind_h): Define.
9896 (COMMON_OBS): Add frame-unwind.o.
9897 (frame-unwind.o): Specify dependencies.
9898 (frame.o, dummy-frame.o): Update dependencies.
9899
9900 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9901
9902 * ada-valprint.c: Eliminate PTR.
9903 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
9904 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
9905 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
9906 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
9907 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
9908 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
9909 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
9910
9911 2003-01-17 Andrew Cagney <ac131313@redhat.com>
9912
9913 * main.c (captured_main): Don't use PTR.
9914 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
9915 * gdbtypes.c (lookup_primitive_typename): Ditto.
9916 (lookup_struct_elt_type): Ditto.
9917 * f-valprint.c (info_common_command): Ditto.
9918 (list_all_visible_commons): Ditto.
9919 * jv-typeprint.c (java_type_print_base): Ditto.
9920
9921 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
9922 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
9923 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
9924 i386-interix-nat.c and i386-interix-tdep.c. Rename
9925 m68klinux-nat.c and m68klinux-tdep.c. Rename
9926 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
9927 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
9928 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
9929 * main.c (captured_main): Use xfree, not free.
9930
9931 2003-01-16 Andrew Cagney <ac131313@redhat.com>
9932
9933 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
9934 ID back using a parameter.
9935 * frame.c (frame_id_unwind): Update call.
9936 (frame_saved_regs_id_unwind): Update.
9937 * dummy-frame.c (dummy_frame_id_unwind): Update function.
9938 * dummy-frame.h (struct frame_id): Add opaque declaration.
9939 (dummy_frame_id_unwind): Update declaration.
9940
9941 2003-01-15 Andrew Cagney <ac131313@redhat.com>
9942
9943 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
9944
9945 2003-01-15 Stephen P. Smith <ischis2@cox.net>
9946
9947 * MAINTAINERS (Stephen P. Smith): Updated email address.
9948
9949 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
9950
9951 Fix PR gdb/898
9952 * breakpoint.c (until_break_command): Add new argument. Use it to
9953 decide whether to stop only at the current frame or not.
9954 * breakpoint.h (until_break_command): Update prototype.
9955 * infcmd.c (until_command): Add new argument to until_break_command
9956 call.
9957 (advance_command): New function.
9958 (_initialize_infcmd): Update help string for 'until' command.
9959 Add new 'advance' command.
9960
9961 2003-01-14 David Carlton <carlton@math.stanford.edu>
9962
9963 * linespec.c (decode_line_1): Normalize comments.
9964 (set_flags): Ditto.
9965 (locate_first_half): Ditto.
9966 (decode_compound): Ditto.
9967 (symtab_from_filename): Ditto.
9968 (decode_all_digits): Ditto.
9969 (decode_dollar): Ditto.
9970 (find_methods): Ditto.
9971 (find_toplevel_char): Ditto.
9972
9973 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9974
9975 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
9976 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
9977 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
9978 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
9979 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
9980 * language.c, language.h, m32r-tdep.c: Update copyright.
9981 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
9982 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
9983 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
9984 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
9985 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9986 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
9987
9988 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9989
9990 * stabsread.h (process_later, resolve_cfront_continuation):
9991 Obsolete.
9992 Update copyright years.
9993 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
9994 Update copyright year.
9995 * dbxread.c(struct cont_elem): Obsolete.
9996 (process_later, process_now): Obsolete functions.
9997 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
9998 Update copyright year.
9999 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10000 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10001 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10002 (parse_partial_symbols): Obsolete cfront support.
10003 * stabsread.c
10004 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10005 macros.
10006 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10007 read_cfront_baseclasses, read_cfront_member_functions,
10008 resolve_cfront_continuation,read_cfront_static_fields,
10009 copy_cfront_struct_fields): Obsolete functions.
10010 (define_symbol, read_one_struct_field): Obsolete cfront support.
10011 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10012 Update Copyright year.
10013
10014 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10015
10016 * stack.c (print_frame_info, print_stack_frame_base_stub,
10017 print_stack_frame_base, show_and_print_stack_frame_stub,
10018 show_and_print_stack_frame, print_only_stack_frame_stub,
10019 print_only_stack_frame): Delete functions.
10020 (print_stack_frame_stub): Call print_frame_info instead of
10021 print_frame_info_base.
10022 (print_frame_info_base): Rename to print_frame_info.
10023 (backtrace_command_1): Call print_frame_info, instead of
10024 print_frame_info_base.
10025 (current_frame_command): Call print_stack_frame, instead of
10026 print_only_stack_frame.
10027 (frame_command): Call print_stack_frame, instead of
10028 show_and_print_stack_frame.
10029 (up_command): Ditto.
10030 (down_command): Ditto.
10031 * frame.h (print_only_stack_frame): Delete prototype.
10032 * infrun.c (normal_stop): Call print_stack_frame, instead of
10033 show_and_print_stack_frame.
10034 * thread.c (info_threads_command): Call print_stack_frame, instead
10035 of print_only_stack_frame.
10036
10037 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10038
10039 * README (Graphical interface to GDB): Update URL. Point at
10040 gdb/links/.
10041
10042 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10043 version match.
10044
10045 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10046
10047 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10048 lines.
10049
10050 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10051
10052 * thread-db.c (attach_thread): Prototype.
10053 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10054 thread information (ti), and valid flags (th_valid, ti_valid).
10055 (attach_thread): Move target_pid_to_str call to after the thread
10056 is added to GDB's list. Initialize the cache.
10057 (thread_get_info_callback, thread_db_map_id2thr)
10058 (thread_db_get_info): New functions.
10059 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10060 (thread_db_store_registers, thread_db_thread_alive)
10061 (thread_db_get_thread_local_address): Use them.
10062 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10063 of calling error() for threads in unknown state.
10064
10065 (clear_lwpid_callback): New function.
10066 (thread_db_resume): Use it to clear the cache.
10067
10068 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10069
10070 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10071 (resume_callback): Remove dead code.
10072
10073 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10074
10075 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10076 predicate.
10077 * gdbarch.h, gdbarch.c: Regenerate.
10078 * stack.c (frame_info): Only initialize the saved registers when
10079 FRAME_INIT_SAVED_REGS_P.
10080 * frame.c (frame_saved_regs_register_unwind): Assert
10081 FRAME_INIT_SAVED_REGS_P.
10082 (deprecated_generic_get_saved_register): Ditto.
10083
10084 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10085
10086 * source.c (openp): Squelch warning about "filename".
10087
10088 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10089
10090 * source.c (openp): If the file does not exist don't necessarily
10091 search the path.
10092
10093 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10094
10095 Fix PR gdb/872.
10096 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10097 (integer_types_same_name_p): New function.
10098 (rank_one_type): Use it.
10099 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10100
10101 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10102
10103 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10104 variables.
10105 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10106 * configure.in: Add --with-sysroot.
10107 * configure: Regenerated.
10108 * main.c (gdb_sysroot): New variable.
10109 (captured_main): Initialize gdb_sysroot.
10110 * defs.h (gdb_sysroot): New extern declaration.
10111 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10112
10113 2003-01-12 Michael Chastain <mec@shout.net>
10114
10115 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10116
10117 2003-01-12 Michael Chastain <mec@shout.net>
10118
10119 * top.c (print_gdb_version): Bump copyright year to 2003.
10120
10121 2003-01-12 David Carlton <carlton@bactrian.org>
10122
10123 * linespec.c (symtab_from_filename): Rename variable 's' to
10124 'file_symtab'.
10125
10126 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10127
10128 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10129 dummy frame.
10130 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10131
10132 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10133
10134 * d10v-tdep.c: Include "gdb_assert.h".
10135 (d10v_store_return_value): Rewrite to match current interface.
10136 (d10v_extract_struct_value_address): Ditto.
10137 (d10v_extract_return_value): Ditto.
10138 (d10v_gdbarch_init): Set store_restore_value,
10139 extract_struct_value_address and extract_return_value.
10140
10141 2003-01-12 J. Brobecker <brobecker@gnat.com>
10142
10143 * hpread.c (set_namestring): New procedure replacing the
10144 SET_NAMESTRING macro.
10145 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10146 by calls to set_namestring.
10147
10148 2003-01-11 J. Brobecker <brobecker@gnat.com>
10149
10150 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10151 a compilation warning.
10152 (hpread_process_one_debug_symbol): Likewise.
10153
10154 2003-01-10 David Carlton <carlton@math.stanford.edu>
10155
10156 * linespec.c (decode_line_1): Rename variable 's' to
10157 'file_symtab'.
10158 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10159 (decode_dollar): Ditto.
10160 (decode_variable): Ditto.
10161 (symbol_found): Ditto.
10162
10163 2003-01-09 Michael Chastain <mec@shout.net>
10164
10165 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10166
10167 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10168
10169 * win32-nat.c (set_process_privilege): New function.
10170 (child_attach): Call set_process_privilege() to enable the
10171 SE_DEBUG_NAME user privilege if available in process token.
10172
10173 2003-01-10 J. Brobecker <brobecker@gnat.com>
10174
10175 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10176 compilation error in the previous revision.
10177
10178 2003-01-09 David Carlton <carlton@math.stanford.edu>
10179
10180 * linespec.c: Update copyright.
10181
10182 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10183
10184 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10185 than inferior_ptid.
10186 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10187
10188 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10189
10190 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10191 Update comments.
10192 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10193 (frame_saved_regs_zalloc): Update.
10194 (frame_saved_regs_register_unwind): Update.
10195 (create_new_frame): Update.
10196 (get_prev_frame): Update.
10197 (frame_extra_info_zalloc): Update.
10198 (deprecated_get_frame_saved_regs): Update.
10199 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10200 * cris-tdep.c: Update comment.
10201
10202 * somsolib.h: Fix function indentation.
10203 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10204 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10205 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10206 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10207 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10208
10209 * infrun.c (follow_fork): Use ISO C definition.
10210 * expprint.c (print_subexp): Use xfree instead of free.
10211 * charset.c: Include "gdb_string.h" instead of <string.h>.
10212 (register_iconv_charsets): Use ISO C definition.
10213 (host_charset, target_charset): Ditto.
10214 * Makefile.in (charset.o): Update dependencies.
10215 (mi-cmd-env.o): Update dependencies.
10216
10217 2003-01-08 Andrew Cagney <cagney@redhat.com>
10218
10219 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10220 get_frame_base.
10221
10222 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10223
10224 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10225 build directories. Save edited gdb output in Mbuild.log. If a
10226 build fails, remove any final GDB executable.
10227
10228 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10229
10230 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10231 replacing hex constants with function names and stripping leading
10232 file name directory prefixes.
10233
10234 2003-01-08 Andrew Cagney <cagney@redhat.com>
10235
10236 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10237 get_frame_base.
10238
10239 2003-01-08 David Carlton <carlton@math.stanford.edu>
10240
10241 * linespec.c (decode_line_1): Move code into decode_variable.
10242 (decode_variable): New function.
10243
10244 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10245
10246 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10247
10248 2003-01-08 Andrew Cagney <cagney@redhat.com>
10249
10250 * cris-tdep.c (cris_frame_init_saved_regs): Use
10251 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10252 saved_regs buffer.
10253 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10254 (sh64_nofp_frame_init_saved_regs): Ditto.
10255 (sh_fp_frame_init_saved_regs): Ditto.
10256 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10257 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10258 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10259 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10260
10261 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10262
10263 * minsyms.c (lookup_minimal_symbol): Update comment.
10264 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10265 (lookup_minimal_symbol_solib_trampoline): Likewise.
10266
10267 2003-01-08 Andrew Cagney <cagney@redhat.com>
10268
10269 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10270 frame_relative_level.
10271
10272 * alpha-tdep.c: Use get_frame_extra_info.
10273 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10274 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10275 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10276 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10277
10278 * alpha-tdep.c: Use get_next_frame.
10279 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10280 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10281 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10282 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10283 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10284 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10285 * xstormy16-tdep.c: Ditto.
10286
10287 2003-01-07 Andrew Cagney <cagney@redhat.com>
10288
10289 * alpha-tdep.c: Use get_frame_base.
10290 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10291 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10292 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10293 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10294 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10295 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10296 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10297 * config/sparc/tm-sparc.h: Ditto.
10298
10299 2003-01-07 Andrew Cagney <cagney@redhat.com>
10300
10301 * frame.c (deprecated_get_frame_context): New function.
10302 (deprecated_set_frame_context): New function.
10303 * frame.h (deprecated_get_frame_context): Declare.
10304 (deprecated_set_frame_context): Declare.
10305 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10306 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10307
10308 2003-01-07 Andrew Cagney <cagney@redhat.com>
10309
10310 * frame.c (deprecated_set_frame_next_hack): New function.
10311 (deprecated_set_frame_prev_hack): New function.
10312 * frame.h (deprecated_set_frame_next_hack): Declare.
10313 (deprecated_set_frame_prev_hack): Declare.
10314 * mcore-tdep.c (analyze_dummy_frame): Use
10315 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10316 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10317
10318 2003-01-07 David Carlton <carlton@math.stanford.edu>
10319
10320 * linespec.c (decode_line_1): Move code into decode_dollar.
10321 (decode_dollar): New function.
10322
10323 2003-01-07 Andrew Cagney <cagney@redhat.com>
10324
10325 * arm-tdep.c (arm_init_extra_frame_info): Use
10326 deprecated_update_frame_base_hack.
10327 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10328 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10329 (fix_frame_pointer): Ditto.
10330 (mn10300_analyze_prologue): Ditto.
10331
10332 2003-01-07 Andrew Cagney <cagney@redhat.com>
10333
10334 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10335 extra_info using frame_extra_info_zalloc.
10336 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10337 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10338 (sh64_init_extra_frame_info): Ditto.
10339 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10340 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10341 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10342 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10343 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10344 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10345 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10346 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10347 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10348 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10349 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10350 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10351
10352 * mn10300-tdep.c (analyze_dummy_frame): Use
10353 deprecated_set_frame_extra_info_hack.
10354 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10355
10356 2003-01-07 J. Brobecker <brobecker@gnat.com>
10357
10358 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10359 class is not scText. These do not define "real" procedures.
10360 (parse_partial_symbols): Likewise.
10361
10362 2003-01-06 Michael Snyder <msnyder@redhat.com>
10363
10364 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10365
10366 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10367
10368 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10369 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10370 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10371 deprecated_frame_xmalloc_with_cleanup.
10372 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10373 deprecated_frame_xmalloc.
10374 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10375 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10376
10377 2003-01-06 Andrew Cagney <cagney@redhat.com>
10378
10379 * x86-64-linux-tdep.c: Include "osabi.h".
10380 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10381
10382 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10383
10384 2003-01-06 Andrew Cagney <cagney@redhat.com>
10385
10386 * MAINTAINERS (Target Instruction Set Architectures): Update
10387 arm-elf. Can be built with -Werror, has been multiarched.
10388
10389 * value.h (unpack_long): Make buffer parameter constant.
10390 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10391 * scm-lang.h (scm_parse): Ditto.
10392 * defs.h (extract_typed_address, extract_address): Ditto.
10393 (extract_long_unsigned_integer): Ditto.
10394 * inferior.h (unsigned_pointer_to_address): Ditto.
10395 (signed_pointer_to_address): Ditto.
10396 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10397 * gdbarch.h, gdbarch.c: Regenerate.
10398 * findvar.c (extract_long_unsigned_integer): Update.
10399 (extract_address): Update.
10400 (extract_typed_address): Update.
10401 (unsigned_pointer_to_address): Update.
10402 * values.c (unpack_long): Update.
10403 (unpack_double): Update.
10404 (unpack_pointer): Update.
10405 (unpack_field_as_long): Update.
10406 * d10v-tdep.c (d10v_pointer_to_address): Update.
10407 * avr-tdep.c (avr_pointer_to_address): Update.
10408 * scm-lang.c (scm_unpack): Update.
10409 * findvar.c (signed_pointer_to_address): Update.
10410
10411 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10412
10413 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10414 since it is in i386-tdep.c.
10415
10416 2003-01-06 J. Brobecker <brobecker@gnat.com>
10417
10418 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10419 failure introduced in the previous change.
10420
10421 2003-01-05 Michael Chastain <mec@shout.net>
10422
10423 * README: Remove references to deleted remote-*.c files:
10424 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10425 remote-nrom.c, remote-os9k.c, remote-udi.c.
10426
10427 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10428
10429 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10430 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10431 i386_get_longjmp_target.
10432
10433 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10434
10435 * arm-tdep.c (prologue_cache): Change to a pointer.
10436 (_initialize_arm_tdep): Allocate prologue_cache.
10437 (check_prologue_cache): Update.
10438 (save_prologue_cache): Update.
10439 (arm_gdbarch_init): Update.
10440
10441 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10442
10443 * stabsread.c (update_method_name_from_physname): Call complaint()
10444 instead of error.
10445
10446 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10447
10448 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10449 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10450 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10451
10452 * blockframe.c: Include "gdbcmd.h" and "command.h".
10453 (backtrace_below_main): New variable.
10454 (file_frame_chain_valid, func_frame_chain_valid)
10455 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10456 (generic_func_frame_chain_valid): Remove functions.
10457 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10458 (_initialize_blockframe): New function.
10459 * Makefile.in (blockframe.o): Update dependencies.
10460 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10461 comment. Call frame_chain_valid ().
10462 * frame.h: Remove old prototypes. Add prototype for
10463 frame_chain_valid and update comments to match.
10464 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10465 Remove old comment.
10466 * gdbarch.h: Regenerated.
10467 * gdbarch.c: Regenerated.
10468
10469 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10470 set_gdbarch_frame_chain_valid.
10471 * avr-tdep.c (avr_gdbarch_init): Likewise.
10472 * cris-tdep.c (cris_gdbarch_init): Likewise.
10473 * frv-tdep.c (frv_gdbarch_init): Likewise.
10474 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10475 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10476 (i386_nw_init_abi): Likewise.
10477 (i386_gdbarch_init): Likewise.
10478 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10479 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10480 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10481 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10482 * mips-tdep.c (mips_gdbarch_init): Likewise.
10483 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10484 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10485 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10486 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10487 * s390-tdep.c (s390_gdbarch_init): Likewise.
10488 * sh-tdep.c (sh_gdbarch_init): Likewise.
10489 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10490 * v850-tdep.c (v850_gdbarch_init): Likewise.
10491 * vax-tdep.c (vax_gdbarch_init): Likewise.
10492 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10493
10494 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10495 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10496 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10497 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10498 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10499 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10500 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10501 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10502
10503 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10504
10505 * Makefile.in (acconfig_h): Remove incorrect macro.
10506 (config_h): Define.
10507 (osabi.o): Update dependencies.
10508 * configure.tgt: Set gdb_osabi based on target triplet.
10509 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10510 * configure: Regenerated.
10511 * config.in: Regenerated.
10512 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10513 (GDB_OSABI_DEFAULT): Define if not already defined.
10514 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10515 (set_osabi_string): New variables.
10516 (gdbarch_register_osabi): Add new OS ABI to
10517 gdb_osabi_available_names.
10518 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10519 (set_osabi, show_osabi): New functions.
10520 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10521
10522 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10523
10524 * arch-utils.c (gdbarch_info_init): Set osabi to
10525 GDB_OSABI_UNINITIALIZED.
10526 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10527 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10528 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10529 * gdbarch.c: Regenerated.
10530 * gdbarch.h: Regenerated.
10531 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10532 there's no BFD.
10533 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10534 * osabi.h (enum gdb_osabi): Move to defs.h.
10535 (gdbarch_init_osabi): Update prototype.
10536 * defs.h (enum gdb_osabi): Moved here.
10537 * Makefile.in: Update dependencies.
10538
10539 * alpha-tdep.h: Don't include "osabi.h".
10540 (struct gdbarch_tdep): Remove osabi member.
10541 * alpha-tdep.c: Include "osabi.h".
10542 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10543 iterate over arches. Update call to gdbarch_init_osabi.
10544 (alpha_dump_tdep): Don't dump osabi.
10545 * alpha-linux-tdep.c: Include "osabi.h".
10546 * alpha-osf1-tdep.c: Include "osabi.h".
10547 * alphafbsd-tdep.c: Include "osabi.h".
10548 * alphanbsd-tdep.c: Include "osabi.h".
10549
10550 * arm-tdep.h: Don't include "osabi.h".
10551 (struct gdbarch_tdep): Remove osabi member.
10552 * arm-tdep.c: Include "osabi.h".
10553 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10554 iterate over arches. Update call to gdbarch_init_osabi.
10555 (arm_dump_tdep): Don't dump osabi.
10556 * arm-linux-tdep.c: Include "osabi.h".
10557 * armnbsd-tdep.c: Include "osabi.h".
10558
10559 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10560 Update call to gdbarch_init_osabi.
10561
10562 * i386-tdep.h: Don't include "osabi.h".
10563 (struct gdbarch_tdep): Remove osabi member.
10564 * i386-tdep.c: Include "osabi.h".
10565 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10566 iterate over arches. Update call to gdbarch_init_osabi.
10567 (i386_dump_tdep): Don't dump osabi.
10568 * i386-linux-tdep.c: Include "osabi.h".
10569 * i386-sol2-tdep.c: Include "osabi.h".
10570 * i386bsd-tdep.c: Include "osabi.h".
10571 * i386gnu-tdep.c: Include "osabi.h".
10572 * i386ly-tdep.c: Include "osabi.h".
10573 * i386nbsd-tdep.c: Include "osabi.h".
10574 * i386obsd-tdep.c: Include "osabi.h".
10575
10576 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10577 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10578 check osabi when iterating over arches. Update call to
10579 gdbarch_init_osabi.
10580 (mips_dump_tdep): Don't dump osabi.
10581
10582 * ns32k-tdep.h: Don't include "osabi.h".
10583 (struct gdbarch_tdep): Remove.
10584 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10585 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10586 allocate tdep. Update call to gdbarch_init_osabi.
10587 (ns32k_dump_tdep): Remove.
10588 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10589 * ns32knbsd-tdep.c: Include "osabi.h".
10590
10591 * ppc-tdep.h: Don't include "osabi.h".
10592 (struct gdbarch_tdep): Remove osabi member.
10593 * rs6000-tdep.c: Include "osabi.h".
10594 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10595 osabi when iterating over arches. Update call to
10596 gdbarch_init_osabi.
10597 (rs6000_dump_tdep): Don't dump osabi.
10598 * ppc-linux-tdep.c: Include "osabi.h".
10599 * ppcnbsd-tdep.c: Include "osabi.h".
10600
10601 * sh-tdep.h: Don't include "osabi.h".
10602 (struct gdbarch_tdep): Remove osabi member.
10603 * sh-tdep.c: Include "osabi.h".
10604 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10605 iterate over arches. Update call to gdbarch_init_osabi.
10606 (sh_dump_tdep): Don't dump osabi.
10607 * shnbsd-tdep.c: Include "osabi.h".
10608
10609 * sparc-tdep.c: Include "osabi.h".
10610 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10611 iterate over arches. Update call to gdbarch_init_osabi.
10612 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10613 tdep structure.
10614
10615 * vax-tdep.h: Don't include "osabi.h".
10616 (struct gdbarch_tdep): Remove.
10617 * vax-tdep.c: Include "osabi.h".
10618 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10619 iterate over arches. Don't allocate tdep. Update call
10620 to gdbarch_init_osabi.
10621 (vax_dump_tdep): Remove.
10622 (_initialize_vax_tdep): Update call to gdbarch_register.
10623
10624 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10625
10626 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10627 entirely.
10628 (breakpoint_re_set_one): Don't fetch the value for a disabled
10629 watchpoint.
10630
10631 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10632
10633 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10634 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10635 (COERCE_FLOAT_TO_DOUBLE): Remove.
10636 * gdbarch.c: Regenerate.
10637 * gdbarch.h: Regenerate.
10638 * Makefile.in: Remove value_h from gdbarch_h.
10639 * valops.c (coerce_float_to_double): New variable.
10640 (default_coerce_float_to_double): Remove.
10641 (standard_coerce_float_to_double): Remove.
10642 (value_arg_coerce): Use coerce_float_to_double.
10643 (_initialize_valops): Add "set coerce-float-to-double".
10644 * value.h (default_coerce_float_to_double): Remove prototype.
10645 (standard_coerce_float_to_double): Remove prototype.
10646
10647 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10648 prototyped.
10649 * mdebugread.c (parse_symbol): Likewise.
10650 * stabsread.c (define_symbol): Mark all functions as prototyped.
10651
10652 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10653 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10654 set_gdbarch_coerce_float_to_double.
10655 * arm-tdep.c (arm_gdbarch_init): Likewise.
10656 * frv-tdep.c (frv_gdbarch_init): Likewise.
10657 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10658 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10659 * mips-tdep.c (mips_gdbarch_init): Likewise.
10660 (mips_coerce_float_to_double): Remove.
10661 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10662 (rs6000_coerce_float_to_double): Remove.
10663 * s390-tdep.c (s390_gdbarch_init): Likewise.
10664 * sh-tdep.c (sh_gdbarch_init): Likewise.
10665 (sh_coerce_float_to_double): Remove.
10666 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10667 (sparc_coerce_float_to_double): Remove.
10668 * v850-tdep.c (v850_gdbarch_init): Likewise.
10669 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10670 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10671 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10672 (hppa_coerce_float_to_double): Remove prototype.
10673 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10674
10675 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10676
10677 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10678
10679 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10680
10681 Suggested by Stewart Brown <sb24@avaya.com>:
10682 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10683 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10684 (c_type_print_varspec_suffix): Likewise.
10685
10686 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10687
10688 * configure.in: Don't set and AC_SUBST SUBDIRS.
10689 * configure: Regenerated.
10690
10691 * configure.in: Remove code dealing with shared libraries.
10692 * Makefile.in: Remove HLDFLAGS and HLDENV.
10693 * configure: Regenerated.
10694
10695 2003-01-04 Andrew Cagney <ac131313@redhat.com>
10696
10697 * frame.c (deprecated_frame_xmalloc): New function.
10698 (deprecated_set_frame_saved_regs_hack): New function.
10699 (deprecated_set_frame_extra_info_hack): New function.
10700 * frame.h (deprecated_frame_xmalloc): Declare.
10701 (deprecated_set_frame_saved_regs_hack): Declare.
10702 (deprecated_set_frame_extra_info_hack): Declare.
10703
10704 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10705
10706 * configure.in: Move code that provides the --enable-gdbtk option
10707 right after the code that handles the --enable-tui option, and
10708 polish it somewhat.
10709 * configure: Regenerated.
10710
10711 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10712 AC_CHECK_FUNCS and remove the old check for pread64.
10713 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10714 * acconfig.h (_GNU_SOURCE): Add.
10715 (HAVE_PREAD64): Remove.
10716 * configure, aclocal.m4, config.in: Regenerated.
10717
10718 2003-01-03 Andrew Cagney <ac131313@redhat.com>
10719
10720 * alpha-tdep.c: Use get_frame_saved_regs.
10721 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10722 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10723 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10724 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10725 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10726
10727 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10728
10729 * configure.in: Remove all use of the SUBDIRS variable; add
10730 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10731 code providing the --enable-multi-ice option, and move it right in
10732 front of the code that checks whether gdbserver is supported.
10733 Polish that too.
10734 * configure: Regenerated.
10735 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10736 @SUBDIRS@.
10737
10738 2003-01-03 Andrew Cagney <cagney@redhat.com>
10739
10740 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10741 * avr-tdep.c, cris-tdep.c: Ditto.
10742 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10743 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10744
10745 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10746
10747 * configure.in: Remove --enable-netrom option.
10748 * configure: Regenerated.
10749
10750 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10751
10752 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10753 declaration for `struct re_pattern_buffer' instead.
10754 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10755
10756 2003-01-03 J. Brobecker <brobecker@gnat.com>
10757
10758 * mdebugread.c (parse_symbol): Count until the stEnd matching
10759 the structure name.
10760
10761 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10762
10763 * configure.in: Remove --with-cpu option.
10764 subscripts. Remove evil changequotes here.
10765 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10766 * config.in, configure: Regenerated.
10767
10768 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10769 * configure.in: Cleanup section that sources GDB and BFD configure
10770 subscripts. Remove evil changequotes here.
10771 * config.in, configure: Regenerated.
10772
10773 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10774
10775 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10776 frame accessor methods.
10777 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10778 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10779 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10780 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10781 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10782 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10783 * z8k-tdep.c: Ditto.
10784
10785 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10786
10787 * configure.in: Remove UI_OUT configuration code.
10788 * ada-lang.c: Update assuming UI_OUT is always true.
10789 * Makefile.in (UIOUT_CFLAGS): Remove.
10790 * configure: Regenerated.
10791 * TODO: Remove blurb about elimination of -DUI_OUT.
10792
10793 * configure.in: Move code that provides the --enable-gdbcli,
10794 --enable-gdbmi options right before the code that handles the
10795 --enable-tui option. Polish a bit.
10796 * configure: Regenerated.
10797
10798 * configure.in: Rewrite check for GNU regex and the
10799 --without-included regex option, and move it into the "Checks for
10800 library functions" section. This makes us use the system regex
10801 again by default on systems with version 2 of the GNU C library.
10802 This was apparently broken.
10803 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10804 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10805 * config.in, configure: Regenerated.
10806
10807 * configure.in: Move code that provides the --enable-tui option
10808 before the "Checks for libraries" section. Polish the code
10809 somewhat and set need_curses to yes if we build the TUI. Rewrite
10810 code that looks for a library providing termcap functionality to
10811 match more closely what's done in the Readline library, and move
10812 it into to the "Checks for libraries" section.
10813 * configure: Regenerated.
10814 * Makefile.in (TERMCAP): Remove variable.
10815 * config/i386/go32.mh (TERMCAP): Remove variable.
10816
10817 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10818
10819 * MAINTAINERS: Mention gdb_mbuild.sh.
10820 * gdb_mbuild.sh: Rewrite.
10821
10822 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10823
10824 * configure.in: Fix typo in last change.
10825 * config.in, configure: Regenerated.
10826
10827 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10828
10829 * valarith.c (value_binop): Delete obsolete code and comments.
10830 * configure.host: Ditto.
10831 * buildsym.h (make_blockvector): Ditto.
10832 * buildsym.c (make_blockvector): Ditto.
10833 * defs.h (enum language): Ditto.
10834 (chill_demangle): Ditto.
10835 * elfread.c (elf_symtab_read): Ditto.
10836 * dwarfread.c (CHILL_PRODUCER): Ditto.
10837 (set_cu_language): Ditto.
10838 (handle_producer): Ditto.
10839 * expprint.c (print_subexp): Ditto.
10840 * gdbtypes.c (chill_varying_type): Ditto.
10841 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10842 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10843 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10844 (chill_varying_type): Ditto.
10845 * language.h (_LANG_chill): Ditto.
10846 * language.c (binop_result_type, integral_type): Ditto.
10847 (character_type, string_type, structured_type): Ditto.
10848 (lang_bool_type, binop_type_check): Ditto.
10849 * stabsread.h (os9k_stabs): Ditto.
10850 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10851 (define_symbol, read_type, read_struct_fields): Ditto.
10852 (read_array_type, read_enum_type, read_huge_number): Ditto.
10853 (read_range_type, start_stabs): Ditto.
10854 * symfile.c (init_filename_language_table): Ditto.
10855 (add_psymbol_with_dem_name_to_list): Ditto.
10856 * symtab.c (symbol_init_language_specific): Ditto.
10857 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10858 * symtab.h (struct general_symbol_info): Ditto.
10859 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10860 * typeprint.c (typedef_print): Ditto.
10861 * utils.c (fprintf_symbol_filtered): Ditto.
10862 * valops.c (value_cast, search_struct_field, value_slice): Delete
10863 obsolete code.
10864 (varying_to_slice): Delete function.
10865 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10866 (varying_to_slice): Delete declaration.
10867 * MAINTAINERS: Update.
10868
10869 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10870
10871 * configure.in: Reorganize "Checks for library functions section"
10872 a bit. Remove check for `btowc' and `isascii' functions.
10873 * configure: Regenerated.
10874
10875 * acconfig.h (_MSE_INT_H): Remove.
10876 * configure.in: Create "Checks for header files" section, and move
10877 appropriate tests there. Don't check for objlist.h, wchar.h,
10878 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
10879 misdetection fix. Also add "Checks for types", "Checks for
10880 compiler characteristics" and "Checks for library functions"
10881 sections.
10882 * config.in, configure: Regenerated.
10883
10884 * configure.in: Create "Checks for programs" section, and move
10885 appropriate tests there.
10886
10887 2003-01-01 Mark Kettenis <kettenis@gnu.org>
10888
10889 * configure.in: Create "Checks for libraries" section, and move
10890 appropriate tests there. Cleanup check for wctype in libw. Use
10891 AC_SEARCH_LIBS to see whether we need libsocket.
10892 * configure: Regenerated.
10893
10894 For older changes see ChangeLog-2002
10895 \f
10896 Local Variables:
10897 mode: change-log
10898 left-margin: 8
10899 fill-column: 74
10900 version-control: never
10901 End:
This page took 0.425748 seconds and 5 git commands to generate.