* utils.c (set_width_command): Remove prototypes.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-08-19 Mark Kettenis <kettenis@gnu.org>
2
3 * utils.c (set_width_command): Remove prototypes.
4 (set_screen_size): New prototype.
5 (init_page_info): Simplify by fetching the screen size from
6 Readline. Call set_screen_size.
7 (set_screen_size): New function.
8 (set_width): Add missing whitespace in comment.
9 (set_width_command): Call set_screen_size.
10 (set_height_command): New function.
11 (initialize_utils): Fix formatting. Make "set height" command
12 call set_height_command. Remove redundant code that turns off
13 pagination if output isn't a terminal. Remove redundant call to
14 set_width_command.
15
16 2003-08-22 Mark Kettenis <kettenis@gnu.org>
17
18 * sparc64-tdep.h (sparc64_regnum): Fix comment.
19 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
20 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
21 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
22 `case' keyword.
23 (sparc64_register_info): Give the reister with number
24 SPARC64_STATE_REGNUM a name.
25 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
26 %asi and %ccr.
27 (sparc64_push_dummy_call): Take BIAS into account when checking
28 stcak alignment.
29 (sparc_software_single_step): Remove assertions that check whether
30 NPC and NNPC were zero.
31 (sparc_supply_rwindow): Make public. Merge functionality with
32 sparc64_supply_rwindow.
33 (sparc_fill_rwindow): Make public. Merge functionality with
34 sparc64_fill_rwindow.
35 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
36 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
37 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
38 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
39 sparc_supply_rwindow instead of sparc64_supply_rwindow.
40
41 * reggroups.c: Add whitespace after declarations of local
42 variables in functions.
43
44 2003-08-21 Michael Chastain <mec@shout.net>
45
46 * gdbtypes.h: Change array bound type from an int to enum.
47
48 2003-08-21 Andrew Cagney <cagney@redhat.com>
49
50 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
51 * config/sparc/tm-sparc.h: Ditto.
52 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
53 unconditionally.
54 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
55
56 2003-07-13 Mark Kettenis <kettenis@gnu.org>
57
58 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
59 (register_objfile_data, set_objfile_data, objfile_data): New
60 prototypes.
61 * objfiles.c (objfile_alloc_data, objfile_free_data): New
62 prototypes.
63 (allocate_objfile): Call objfile_alloc_data.
64 (free_objfile): Call objfile_free_data.
65 (struct objfile_data): New.
66 (struct objfile_data_registration): New.
67 (struct objfile_data_registry): New.
68 (objfile_data_registry): New variable.
69 (register_objfile_data): New function.
70 (objfile_alloc_data, objfile_free_data): New functions.
71 (set_objfile_data, objfile_data): New functions.
72 * dwarf2-frame.c (dwarf2_frame_data): New variable.
73 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
74 (_initialize_dwarf2_frame): New function and prototype.
75
76 2003-08-21 Andrew Cagney <cagney@redhat.com>
77
78 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
79 a specific architecture.
80 * arch-utils.h (set_architecture_from_arch_mach): Delete
81 declaration.
82 (target_architecture_hook): Delete declaration.
83 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
84 (default_float_format): Assume GDB_MULTI_ARCH.
85 (default_double_format): Assume GDB_MULTI_ARCH.
86 (set_endian_from_file): Delete function.
87 (arch_ok): Delete function.
88 (set_arch): Delete function.
89 (set_architecture_from_arch_mach): Delete function.
90 (set_architecture_from_file): Delete function.
91 (set_architecture): Assume GDB_MULTI_ARCH.
92 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
93
94 2003-08-21 Mark Kettenis <kettenis@gnu.org>
95
96 Rewrite FreeBSD/sparc64 native configuration.
97 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
98 * sparc64fbsd-nat.c: New file.
99 * sparc64fbsd-tdep.c: New file.
100 * sparc64-tdep.c sparc64-tdep.h: New files.
101 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
102 sparc64fbsd-tdep.o): New dependencies.
103 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
104 and sparc64fbsd-tdep.c.
105 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
106 * config/sparc/fbsd.mh: Remove copyright notice.
107 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
108 sparcbsd-nat.o.
109 * config/sparc/fbsd.mt: Remove copyright notice.
110 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
111 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
112 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
113 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
114 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
115 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
116 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
117 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
118 "sparc/tm-sp64.h".
119 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
120 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
121
122 2003-08-21 Michael Chastain <mec@shout.net>
123
124 * symtab.h: Add doco on the space critical structures and
125 some measurements of space usage.
126
127 2003-08-21 Michael Snyder <msnyder@redhat.com>
128
129 * tracepoint.c (trace_dump_command): Trace break address
130 is subject to DECR_PC_AFTER_BREAK.
131 (set_traceframe_context): Make "trace_line" an int.
132 Fixes suggested by Mark Newman <mark.newman@lmco.com>
133
134 2003-08-20 Michael Snyder <msnyder@redhat.com>
135
136 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
137 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
138 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
139 argument passing.
140 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
141 functions, replace sh_push_dummy_call.
142 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
143
144 2003-08-20 Michael Chastain <mec@shout.net>
145
146 * gdbtypes.h (struct main_type): Rearrange to save space.
147
148 2003-08-20 Michael Snyder <msnyder@redhat.com>
149
150 * trad-frame.c: Comment typo fix.
151
152 2003-08-20 Michael Snyder <msnyder@redhat.com>
153 Kevin Buettner <kevinb@redhat.com>
154
155 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
156 (frv_frame_init_saved_regs): Add declaration.
157 (frame_extra_info): Add new field ``saved_regs''.
158 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
159 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
160 Update frame related code.
161 (frv_extract_struct_value_address): Adjust formatting.
162 * Makefile.in (frv-tdep.o): Update dependencies.
163 * config/frv/tm-frv.h (target_insert_watchpoint)
164 (target_remove_watchpoint, target_insert_hw_breakpoint)
165 (target_remove_hw_breakpoint): Delete these macros.
166 (remote_insert_watchpoint, remote_remove_watchpoint)
167 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
168 these declarations.
169
170 2003-08-20 Michael Chastain <mec@shout.net>
171
172 * defs.h (ENUM_BITFIELD): New macro.
173 * symtab.h (ENUM_BITFIELD): Use it.
174 (BYTE_BITFIELD): Remove old macro, which was already disabled.
175
176 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
177
178 * MAINTAINERS (write after approval): Add myself.
179
180 2003-08-18 Andrew Cagney <cagney@redhat.com>
181
182 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
183 * gdbarch.h, gdbarch.c: Re-generate.
184 * infcall.c (call_function_by_hand): Adjust the SP by
185 frame_red_zone_size before allocating any stack space.
186 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
187 * x86-64-tdep.c (x86_64_frame_align): New function.
188 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
189
190 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
191 Remove code adjusting SP so that it skips over the Red Zone.
192
193 2003-08-18 Mark Kettenis <kettenis@gnu.org>
194
195 * NEWS (New native configurations): Mention FreeBSD/amd64.
196
197 2003-08-18 Andrew Cagney <cagney@redhat.com>
198
199 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
200 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
201 "m68k_frame_p".
202 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
203
204 2003-08-18 Mark Kettenis <kettenis@gnu.org>
205
206 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
207
208 2003-08-18 Michal Ludvig <mludvig@suse.cz>
209
210 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
211 Define.
212 * i386-linux-nat.c: Include "linux-nat.h".
213 (child_post_startup_inferior): New function.
214
215 2003-08-18 Mark Kettenis <kettenis@gnu.org>
216
217 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
218 at the start of a frameless function. This probably fixes PR
219 backtrace/1338.
220
221 2003-08-17 Michael Chastain <mec@shout.net>
222
223 * symfile.c (find_sym_fns): Remove special case for apollo target.
224
225 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
226
227 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
228 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
229 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
230 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
231 (linux_supports_tracevforkdone): New function.
232 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
233 TRACEVFORKDONE.
234 (child_follow_fork): Handle vfork.
235 (linux_handle_extended_wait): Likewise. Also handle exec.
236 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
237 * NEWS: Mention fork tracing.
238
239 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
240
241 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
242
243 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
244
245 * Makefile.in (i386-linux-nat.o): Update dependencies.
246 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
247 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
248 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
249 * i386-linux-nat.c: Include "linux-nat.h".
250 (child_post_startup_inferior): New function.
251 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
252 * infptrace.c (kill_inferior): Wrap in #ifdef.
253 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
254 attaching to each LWP.
255 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
256 (init_lin_lwp_ops): Fill in some more operations.
257 * linux-nat.h (linux_enable_event_reporting)
258 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
259 prototypes.
260 * linux-nat.c (linux_enable_event_reporting): New function.
261 (child_post_attach, linux_child_post_startup_inferior)
262 (child_post_startup_inferior, child_follow_fork)
263 (linux_handle_extended_wait, kill_inferior): New functions.
264
265 2003-08-16 Andrew Cagney <cagney@redhat.com>
266
267 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
268 * gdbarch.h, gdbarch.c: Re-generate.
269
270 2003-08-16 Mark Kettenis <kettenis@gnu.org>
271
272 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
273
274 2003-08-16 Andrew Cagney <cagney@redhat.com>
275
276 * NEWS: Mention that "set prompt-escape-char" was deleted.
277 * top.c (get_prompt_1): Delete function.
278 (gdb_prompt_escape):
279 (init_main): Do not clear "gdb_prompt_escape". Delete "set
280 prompt-escape-char" command.
281 (MAX_PROMPT_SIZE): Delete macro.
282 (get_prompt): Simplify, do not call get_prompt_1.
283
284 2003-08-16 Andrew Cagney <cagney@redhat.com>
285
286 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
287 -Werror. -Wformat-nonliteral problems.
288
289 2003-08-15 J. Brobecker <brobecker@gnat.com>
290
291 Further multiarching work mostly for hppa64-*-hpux11:
292 * hppa-tdep.h: New file.
293 * hppa-tdep.c: #include hppa-tdep.c.
294 (hppa32_num_regs): Renamed from hppa_num_regs.
295 (hppa64_num_regs): New constant.
296 (hppa64_call_dummy_breakpoint_offset): New constant.
297 (hppa32_call_dummy_length): New constant.
298 (hppa64_call_dummy_length): New constant.
299 (hppa32_stack_align): Make name 32bit explicit.
300 (hppa32_register_virtual_type): Likewise.
301 (hppa32_extract_return_value): Likewise.
302 (hppa32_use_struct_convention): Likewise.
303 (hppa32_store_return_value): Likewise.
304 (hppa64_register_virtual_type): New function.
305 (hppa64_extract_return_value): New function.
306 (hppa64_use_struct_convention): New function.
307 (hppa64_store_return_value): New function.
308 (hppa_frame_locals_address): Remove declaration, function does
309 not exist anymore.
310 (hppa_register_byte): Add support for PA64 ABI.
311 (hppa_gdbarch_init): Add support for PA64 ABI.
312 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
313 Make name 32bit explicit.
314 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
315 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
316 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
317 (hppa64_hpux_frame_base_before_sigtramp): New function.
318 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
319 * config/pa/tm-hppa64.h: Remove macros that are no longer
320 necessary now that the gdbarch vector is properly setup.
321 Transform some macros into function calls. Some minor cleanup.
322 * config/pa/tm-hppah.h: Update function calls in macros
323 following the function renaming in hppa-hpux-tdep.c.
324 * Makefile.in (hppa_tdep_h): New variable.
325 (hppa-tdep.o): Add dependency over hppa_tdep_h.
326
327 2003-08-14 Michael Snyder <msnyder@redhat.com>
328
329 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
330
331 2003-08-13 J. Brobecker <brobecker@gnat.com>
332
333 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
334 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
335 routine.
336
337 2003-08-13 Michael Snyder <msnyder@redhat.com>
338
339 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
340 (frv_saved_pc_after_call): Use deprecated ftype.
341 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
342 (frv_remote_translate_xfer_address): Remove.
343 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
344
345 2003-08-13 J. Brobecker <brobecker@gnat.com>
346
347 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
348 initialization after the common gdbarch initialization, not before.
349
350 2003-08-13 J. Brobecker <brobecker@gnat.com>
351
352 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
353 (ADDR_BITS_REMOVE): Remove, redundant.
354
355 2003-08-13 J. Brobecker <brobecker@gnat.com>
356
357 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
358 gdbarch method to clear the 2 low bits of text addresses.
359
360 2003-08-12 Andrew Cagney <cagney@redhat.com>
361
362 * Makefile.in (dsrec.o): Update dependencies.
363 * dsrec.c: Include "gdb_assert.h".
364 (make_srec): Use snprintf instead of sprintf, use a literal format
365 string.
366
367 2003-08-12 Andrew Cagney <cagney@redhat.com>
368
369 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
370 FRAME_OBSTACK_ZALLOC.
371
372 2003-08-12 Kevin Buettner <kevinb@redhat.com>
373
374 * i386-tdep.c (i386_gdbarch_init): Enable default support for
375 SSE registers.
376
377 2003-08-10 Mark Kettenis <kettenis@gnu.org>
378
379 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
380 amd64fbsd_sc_reg_offset): Add extern declarations.
381 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
382 declarations.
383
384 2003-08-11 Ben Elliston <bje@wasabisystems.com>
385
386 * MAINTAINERS (write after approval): Update my mail address.
387
388 2003-08-10 Andrew Cagney <cagney@redhat.com>
389
390 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
391
392 2003-08-10 Mark Kettenis <kettenis@gnu.org>
393
394 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
395 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
396 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
397 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
398 i386bsd_sc_reg_offset): Add extern declarations.
399 * i386obsd-nat.c: Include "i386-tdep.h"
400 (_initialize_i386obsd_nat): Remove extern declarations.
401 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
402 declarations.
403 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
404 declarations.
405
406 * i386-tdep.c (i386_register_to_value): Use get_frame_register
407 instead of frame_read_register.
408 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
409 instead of frame_read_register. Use I386_ESP_REGNUM instead of
410 SP_REGNUM.
411 (i386_frame_prev_register): Use frame_unwind_register_unsigned
412 instead of frame_unwind_unsigned_register. Use
413 I386_EFLAGS_REGISTER instead of PS_REGNUM.
414 (i386_get_longjmp_target): Use regcache_read_unsigned_register
415 instead of read_register. Use builtin_type_void_data_ptr instead
416 of builtin_type_void_func_ptr when extracting the address of the
417 jmp_buf.
418 (i386_extract_return_value, i386_store_return_value,
419 i386_pseudo_register_read, i386_pseudo_register_write): Use
420 register_size instead REGISTER_RAW_SIZE.
421
422 2003-08-10 Andrew Cagney <cagney@redhat.com>
423
424 * infcall.c (call_function_by_hand): Use xstrprintf instead of
425 sprintf. Make "name" constant.
426
427 2003-08-10 Mark Kettenis <kettenis@gnu.org>
428
429 * i387-tdep.c (i387_register_to_value): Use get_frame_register
430 instead of frame_read_register.
431 (i387_print_float_info): Use get_frame_register and
432 get_frame_register_unsigned instead of frame_register_read.
433
434 * i386fbsd-nat.c: Include "i386-tdep.h".
435 (child_resume): Make `eflags' an ULONGEST. Use
436 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
437 instead of register_read and register_write.
438
439 * i386bsd-nat.c (fetch_inferior_registers,
440 store_inferior_registers): Don't use && at the end of a line.
441 (_initialize_i386bsd_nat): Fix typo.
442
443 * frame.c (_initialize_frame): Add missing backslash.
444
445 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
446 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
447 and supply_register instead of manipulating the register buffer
448 directly.
449
450 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
451 * config/i386/nm-i386sol2.h
452 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
453
454 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
455 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
456 instructions that GCC likes to mingle into the prologue. Fixes
457 gdb/1253 and gdb/1255.
458
459 2003-08-09 Andrew Cagney <cagney@redhat.com>
460
461 Fix GDB PR cli/926.
462 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
463 * command.h (add_setshow_uinteger_cmd): Declare.
464 * frame.c (set_backtrace_cmd): New function.
465 (show_backtrace_cmd): New function.
466 * frame.c (_initialize_frame): Replace "set/show
467 backtrace-below-main" with "set/show backtrace past-main". Add
468 command "set/show backtrace limit".
469 (backtrace_past_main): Rename "backtrace_below_main".
470 (backtrace_limit): New variable.
471 (get_prev_frame): Update. Check the backtrace_limit.
472
473 2003-08-09 Andrew Cagney <cagney@redhat.com>
474
475 * defs.h (xstrprintf): Declare.
476 * utils.c (xstrprintf): New function.
477 * breakpoint.c (insert_breakpoints): Replace sprintf and
478 non-literal format strings, with xstrprintf and cleanups.
479 (delete_breakpoint,breakpoint_re_set): Ditto.
480 (commands_command, insert_breakpoints): Ditto.
481 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
482 (break_at_finish_command_1): Ditto.
483
484 2003-08-09 Andrew Cagney <cagney@redhat.com>
485
486 * MAINTAINERS (language support): List Adam Fedor as Objective C
487 maintainer.
488
489 2003-08-08 J. Brobecker <brobecker@gnat.com>
490
491 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
492 are now multiarched.
493
494 2003-08-08 J. Brobecker <brobecker@gnat.com>
495
496 * config/pa/tm-hppa64.h: Remove lots of macros that are no
497 longer necessary now that hppa64 is partially multiarch'ed.
498
499 2003-08-08 Andrew Cagney <cagney@redhat.com>
500
501 * interps.c (interp_set): Check for a NULL "old_interp".
502
503 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
504
505 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
506 (install-only): Support DESTDIR.
507 (uninstall): Likewise.
508 (install-gdbtk): Likewise.
509
510 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
511
512 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
513 contains something meaningful at all times.
514
515 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
516
517 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
518
519 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
520
521 * MAINTAINERS (write after approval): Added self.
522
523 2003-08-07 Andrew Cagney <cagney@redhat.com>
524
525 * inferior.h (AT_SYMBOL): Define.
526 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
527 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
528 * mips-tdep.c (mips_call_dummy_address): Delete function.
529 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
530 set call_dummy_address.
531
532 2003-08-07 Andrew Cagney <cagney@redhat.com>
533
534 * language.c (op_error): Delete function.
535 (binop_type_check): Delete function.
536 * language.h (type_op_error, range_op_error): Delete macros.
537 (op_error): Delete declaration.
538
539 2003-08-07 Andrew Cagney <cagney@redhat.com>
540
541 * interps.h (INTERP_MI2, INTERP_MI3): Define.
542
543 2003-08-07 Michal Ludvig <mludvig@suse.cz>
544
545 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
546 (x86_64_push_arguments): Skip the red zone.
547
548 2003-08-05 Andrew Cagney <cagney@redhat.com>
549
550 * reggroups.c (reggroup_next): Check for the final entry.
551
552 2003-08-04 Andrew Cagney <cagney@redhat.com>
553
554 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
555 * cli/cli-script.c (define_command): Call query directly, instead
556 of passing it a buffer.
557 * ocd.c (ocd_error): Pass error a constant format string.
558 * remote-mips.c (mips_error): Use fputs_filtered.
559
560 * solib-svr4.c (_initialize_svr4_solib): Update
561 register_gdbarch_data call.
562 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
563
564 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
565 (register_gdbarch_data): Delete "free" parameter. Update
566 comments.
567 * gdbarch.h, gdbarch.c: Re-generate.
568 * reggroups.c (_initialize_reggroup): Update.
569 * gnu-v3-abi.c (init_gnuv3_ops): Update.
570 * frame-base.c (_initialize_frame_base): Update.
571 * frame-unwind.c (_initialize_frame_unwind): Update.
572 * user-regs.c (_initialize_user_regs): Update.
573 * remote.c (_initialize_remote): Update.
574 * regcache.c (_initialize_regcache): Update.
575
576 * regcache.c (xfree_regcache_descr): Delete function.
577 (_initialize_regcache): Update call to register_gdbarch_data.
578 (init_regcache_descr, init_legacy_regcache_descr): Use
579 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
580
581 * remote.c (free_remote_state): Delete function.
582 (_initialize_remote): Update register_gdbarch_data.
583 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
584 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
585
586 2003-08-04 Andrew Cagney <cagney@redhat.com>
587
588 * reggroups.c (struct reggroup_el): Define.
589 (struct reggroups): Delete field "nr_group". Replace array
590 "group" with a "first" to "last" linked list.
591 (reggroups_init): Update. Allocate using gdbarch's obstack.
592 (reggroups_free): Delete function.
593 (add_group): Update. Add "el" parameter.
594 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
595 (default_groups): Update.
596 (reggroup_next): Replace reggroups.
597 (reggroups_dump): Update.
598 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
599 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
600 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
601
602 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
603
604 * Makefile.in (tui-interp.o): Update dependencies.
605
606 2003-08-04 David Carlton <carlton@kealia.com>
607
608 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
609 to internal_error call.
610 * source.c (forward_search_command): Add "%s" format argument.
611 (reverse_search_command): Ditto.
612 * top.c (quit_confirm): Ditto.
613 * cli/cli-setshow.c (do_setshow_command): Ditto.
614 * cp-valprint.c (cp_print_class_method): Replace
615 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
616 (cp_print_class_member): Ditto.
617 * event-top.c (command_line_handler): Ditto.
618 * linux-proc.c (linux_info_proc_cmd): Ditto.
619 * p-typeprint.c (pascal_type_print_base): Ditto.
620 * p-valprint.c (pascal_object_print_class_method): Ditto.
621 (pascal_object_print_class_member): Ditto.
622 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
623 * remote.c (remote_cisco_section_offsets): Ditto.
624 * top.c (command_line_input): Ditto.
625 * utils.c (vwarning,error_stream,quit): Ditto.
626 * valprint.c (print_floating,print_binary_chars)
627 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
628
629 2003-08-04 Andrew Cagney <cagney@redhat.com>
630
631 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
632
633 2003-08-02 Andrew Cagney <cagney@redhat.com>
634
635 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
636 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
637 amd64fbsd-nat.c.
638
639 2003-08-02 Andrew Cagney <cagney@redhat.com>
640
641 * Makefile.in: Update all dependencies and definitions.
642
643 2003-08-02 Adam Fedor <fedor@gnu.org>
644
645 * linespec.c (is_objc_method_format): New function
646 (decode_line_1, locate_first_half): Use it.
647 Fixes PR objc/1298
648
649 2003-08-01 Andrew Cagney <cagney@redhat.com>
650
651 * NEWS: Mention that m32r is multi-arch.
652 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
653 * configure.tgt: Recognize m32r-*-*.
654 * config/m32r/tm-m32r.h: Delete file.
655 * config/m32r/m32r.mt: New file.
656 * m32r-rom.c (m32r_upload_command): Use hostent only when
657 gethostname succeeds, in order to avoid a compilation
658 warning.
659 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
660 compiler warning.
661
662 2003-08-01 Michael Snyder <msnyder@redhat.com>
663
664 * sh-tdep.c (sh_frame_align): New gdbarch method.
665 (sh_gdbarch_init): Set up frame_align method.
666
667 2003-07-31 Michael Snyder <msnyder@redhat.com>
668
669 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
670 which is already covered by the new frames infrastructure.
671
672 2003-07-31 Andrew Cagney <cagney@redhat.com>
673
674 * user-regs.c (struct user_reg): Add "next" link.
675 (struct user_regs): Replace "user" with "first" and "last" links.
676 (append_user_reg): Add pre-allocated "reg" parameter.
677 (builtin_user_regs): Provide initial value for "last".
678 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
679 (user_regs_init): Allocate memory from the gdbarch obstack.
680 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
681 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
682 linked list.
683 (usernum_to_user_reg): New function.
684 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
685 (value_of_user_reg): Use usernum_to_user_reg.
686 (user_regs_free): Delete function.
687 (_initialize_user_regs): Update register_gdbarch_data call.
688
689 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
690
691 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
692
693 2003-07-30 Michael Snyder <msnyder@redhat.com>
694
695 * value.h (value_being_returned): Add a struct_addr argument.
696 * infcall.c (call_function_by_hand): Pass struct_addr to
697 value_being_returned.
698 * infcmd.c (print_return_value): Pass zero as struct_addr.
699 * values.c (value_being_returned): If struct_addr is passed,
700 use it instead of trying to recover it from the inferior.
701
702 2003-07-30 Kevin Buettner <kevinb@redhat.com>
703
704 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
705 the prologue analyzer won't need to attempt to extract the pc
706 value from the woefully incomplete dummy frame.
707 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
708 possible. Disable code which modifies the frame.
709
710 2003-07-28 Andrew Cagney <cagney@redhat.com>
711
712 * annotate.c (annotate_breakpoints_headers): Restrict annotation
713 to level 2.
714 (annotate_breakpoints_table, annotate_record): Ditto.
715 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
716 (annotate_field_name_end, annotate_field_value): Ditto.
717 (annotate_field_end, annotate_frame_source_begin): Ditto.
718 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
719 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
720 (annotate_frame_begin, annotate_frame_function_name): Ditto.
721 (annotate_frame_address_end, annotate_frame_address): Ditto.
722 (annotate_frame_args, annotate_frame_end): Ditto.
723 (annotate_frame_where, annotate_arg_begin): Ditto.
724 (annotate_arg_name_end, annotate_arg_value): Ditto.
725 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
726 (annotate_function_call, annotate_signal_name): Ditto.
727 (annotate_signal_string, annotate_signal_name_end): Ditto.
728 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
729 (annotate_value_begin, annotate_value_history_value): Ditto.
730 (annotate_value_history_end, annotate_value_end): Ditto.
731 (annotate_display_begin, annotate_display_number_end): Ditto.
732 (annotate_display_format, annotate_display_expression): Ditto.
733 (annotate_display_expression_end, annotate_display_value): Ditto.
734 (annotate_display_end, annotate_array_section_begin): Ditto.
735 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
736 (annotate_elt, annotate_array_section_end): Ditto.
737
738 2003-07-28 Andrew Cagney <cagney@redhat.com>
739
740 * regcache.c (struct regcache_descr): Update comments on
741 nr_raw_registers.
742 (init_legacy_regcache_descr): Don't set nr_raw_registers or
743 sizeof_raw_register_valid_p.
744 (init_regcache_descr): Set nr_raw_registers and
745 sizeof_raw_register_valid_p before calling
746 init_legacy_regcache_descr.
747
748 2003-07-28 Andrew Cagney <cagney@redhat.com>
749
750 * mips-tdep.c (print_gp_register_row): Print the GPR's register
751 MOD NUM_REGS.
752
753 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
754
755 * thread.c (info_threads_command): Use get_selected_frame ().
756 Check that there is at least one non-sentinel frame.
757
758 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
759
760 * m68hc11-tdep.c (struct frame_extra_info): Remove.
761 (m68hc11_pop_frame): Remove.
762 (m68hc11_frame_saved_pc): Remove.
763 (m68hc11_frame_chain): Remove.
764 (m68hc11_frame_init_saved_regs): Remove.
765 (m68hc11_init_extra_frame_info): Remove.
766 (m68hc11_store_struct_return): Remove.
767 (m68hc11_saved_pc_after_call): Remove.
768
769 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
770
771 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
772 frame unwind information.
773 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
774 and adapted for frame unwinding.
775 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
776 (m68hc11_unwind_pc): New function.
777 (m68hc11_frame_unwind_cache): New function to analyze frames.
778 (m68hc11_frame_this_id): New function to create new frame struct.
779 (m68hc11_frame_prev_register): New function to unwind a register from
780 the frame.
781 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
782 (m68hc11_frame_p): New function for the above.
783 (m68hc11_frame_base_address): New function to return fp of frame.
784 (m68hc11_frame_args_address): Update for frame.
785 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
786 (m68hc11_unwind_sp): New function.
787 (m68hc11_unwind_dummy_id): New function.
788 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
789 calls.
790
791 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
792
793 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
794 (m68hc11_guess_from_prologue): Advance the pc and frame size only
795 when we are beyond the current pc.
796
797 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
798
799 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
800 from m68hc11_push_arguments.
801 (m68hc11_push_arguments): Remove.
802 (m68hc11_push_return_address): Remove.
803 (m68hc11_gdbarch_init): Install the above; remove above deprecated
804 handlers; remove deprecated_extra_stack_alignment_needed.
805
806 2003-07-27 Andrew Cagney <cagney@redhat.com>
807
808 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
809 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
810 REAL_PC and not the pointer.
811 * hppa-hpux-tdep.c: Include frame.h
812
813 2003-07-27 Andrew Cagney <cagney@redhat.com>
814
815 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
816 GDB_MULTI_ACH_PARTIAL.
817
818 2003-07-27 Andrew Cagney <cagney@redhat.com>
819
820 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
821 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
822 operator at start and not end of line.
823 (decode_prologue): Ditto.
824 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
825 frame_unwind_register_unsigned instead of
826 frame_unwind_unsigned_register.
827 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
828 read_register.
829 (m32r_push_dummy_call): Use register_size instead of
830 REGISTER_RAW_SIZE.
831 (m32r_frame_sniffer): Replace m32r_frame_p.
832 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
833 * m32r-rom.c (report_transfer_performance): Delete extern
834 declaration.
835 (m32r_load, m32r_upload_command): Use print_transfer_performance
836 instead of report_transfer_performance.
837 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
838 / add_show_from_set.
839
840 2003-07-26 Andrew Cagney <cagney@redhat.com>
841
842 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
843 store_return_value and extract_struct_value_address.
844
845 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
846
847 PR c++/1267
848 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
849 NULL, default to the section containing PC.
850
851 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
852
853 * NEWS: Mention "regs" deprecated for m68hc11 too.
854
855 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
856 (m68hc11_print_register): New function to print out one register.
857 (m68hc11_print_registers_info): New function to print registers.
858 (show_regs): Deprecate and use the above.
859 (m68hc11_gdbarch_init): Install the print_registers_info.
860
861 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
862
863 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
864 that we have a SIGTRAP before returning non-zero.
865
866 2003-07-23 Michal Ludvig <mludvig@suse.cz>
867 Elena Zannoni <ezannoni@redhat.com>
868
869 * linespec.c (decode_line_2): Avoid crash if
870 find_function_start_sal() returns empty record.
871
872 2003-07-23 Andreas Schwab <schwab@suse.de>
873
874 * ia64-tdep.c (ia64_print_insn): New function.
875 (ia64_gdbarch_init): Set print_insn to it.
876 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
877 deprecated_tm_print_insn_info.
878
879 2003-07-22 Michael Snyder <msnyder@redhat.com>
880
881 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
882 handle 8-bit returns (long long).
883 (h8300h_extract_return_value): Ditto.
884 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
885
886 2003-07-22 Andrew Cagney <cagney@redhat.com>
887
888 * gdbarch.c Include "gdb_obstack.h".
889 (struct gdbarch): Add an "obstack".
890 (alloc_gdbarch_data): Allocate the gdbarch data using
891 GDBARCH_OBSTACK_CALLOC.
892 (free_gdbarch_data): Delete function.
893 (gdbarch_obstack_zalloc): New function.
894 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
895 Assert that the architecture is not initialized.
896 (gdbarch_alloc): Allocate an obstack, allocate the architecture
897 vector from the obstack.
898 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
899 architecture obstack.
900 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
901 (set_gdbarch_data): Assert that the data is not initialized.
902 (struct gdbarch_data): Delete member "free".
903 (register_gdbarch_data): Do not initialize "free".
904 * gdbarch.h, gdbarch.c: Re-generate.
905
906 2003-07-22 Andrew Cagney <cagney@redhat.com>
907
908 * configure.in (build_warnings): Add -Wformat-nonliteral.
909 * configure: Re-generate.
910
911 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
912
913 * dwarf2loc.c (locexpr_describe_location): Fix typos.
914
915 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
916
917 * findvar.c (read_var_value): Remove case for thread local storage
918 variables. It is now entirely handled by the dwarf2 location
919 expression code.
920 * printcmd.c (address_info): Ditto.
921 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
922 enumeration value.
923 (struct symbol): Remove objfile field, which was used by
924 LOC_THREAD_LOCAL_STATIC only.
925 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
926 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
927 usage of objfile pointer.
928 * dwarf2loc.c (locexpr_describe_location): Add case to handle
929 thread local variables.
930 Add include of objfiles.h.
931 * dwarf2expr.c (execute_stack_op): Add comments about thread local
932 storage variables.
933 * Makefile.in (dwarf2loc.o): Update dependencies.
934
935 2003-07-22 Andrew Cagney <cagney@redhat.com>
936
937 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
938 get_frame_base.
939 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
940 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
941 (struct value): Add opaque declaration.
942 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
943
944 2003-07-21 Andrew Cagney <cagney@redhat.com>
945
946 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
947 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
948
949 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
950
951 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
952 regcache_cooked_read_unsigned instead of read_register.
953 (m68hc11_saved_pc_after_call): Likewise.
954 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
955 instead of write_register.
956 (m68hc11_register_type): New function.
957 (m68hc11_register_virtual_type): Remove.
958 (m68hc11_store_return_value): Convert to use the regcache.
959 (m68hc11_extract_struct_value_address): Likewise.
960 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
961 m68hc11_register_type; undeprecate store_return_value and
962 extract_struct_value_address.
963
964 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
965
966 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
967 and translate to use regcache.
968 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
969
970 2003-07-18 Andrew Cagney <cagney@redhat.com>
971
972 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
973 * gdbarch.h, gdbarch.c: Re-generate.
974 * i386-tdep.c (i386_gdbarch_init): Do not set
975 DWARF2_BUILD_FRAME_INFO.
976 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
977 unconditionally.
978 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
979 DWARF2_BUILD_FRAME_INFO.
980
981 2003-07-18 Andrew Cagney <cagney@redhat.com>
982
983 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
984 * disasm.c (gdb_disassemble_info): Initilize di.arch.
985
986 2003-07-18 Andrew Cagney <cagney@redhat.com>
987
988 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
989 frame_unwind_address_in_block, instead of frame_pc_unwind.
990 (dwarf2_frame_cache): Ditto.
991
992 2003-07-18 Andrew Cagney <cagney@redhat.com>
993
994 * user-regs.h (struct gdbarch): Declare opaque.
995 * ui-out.h (struct ui_file): Declare opaque.
996 * dwarf2-frame.h (struct frame_info): Declare opaque.
997
998 2003-07-18 Kris Warkentin <kewarken@qnx.com>
999
1000 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1001 #include "...".
1002 (procfs_meminfo): Change strerror to safe_strerror.
1003 (procfs_can_run): Remove K&R badness.
1004
1005 2003-07-17 Michael Snyder <msnyder@redhat.com>
1006
1007 * remote-sim.c: Comment typo fix.
1008
1009 2003-07-17 Andrew Cagney <cagney@redhat.com>
1010
1011 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1012 configure.
1013 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1014 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1015 GDB_MULTI_ARCH_PARTIAL.
1016
1017 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
1018
1019 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1020 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1021 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1022
1023 2003-07-16 Theodore A. Roth <troth@openavr.org>
1024
1025 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1026 found.
1027 (avr_frame_unwind_cache): Don't unwind FP for main.
1028 Update a comment.
1029 Save the computed prev_sp.
1030 (avr_saved_regs_unwinder): Remove function.
1031 (avr_frame_prev_register): Use PC unwind logic from
1032 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1033
1034 2003-07-16 Andrew Cagney <cagney@redhat.com>
1035
1036 * frame-base.h (frame_base_p_ftype): Delete definition.
1037 (frame_base_append_predicate): Delete declaration.
1038 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1039 (frame_unwind_append_predicate): Delete declaration.
1040 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1041 (append_predicate): Delete parameter "p".
1042 (frame_unwind_append_predicate): Delete function.
1043 (frame_unwind_append_sniffer): Update call to append_predicate.
1044 (frame_unwind_free): Delete function.
1045 (_initialize_frame_unwind): Pass NULL as "free" to
1046 register_gdbarch_data.
1047 (frame_unwind_init): Append the dummy_frame_sniffer.
1048 (frame_unwind_find_by_frame): Simplify.
1049 * frame-base.c (struct frame_base_table): Delete field "p".
1050 (append_predicate): Delete parameter "p".
1051 (frame_base_append_predicate): Delete function.
1052 (frame_base_append_sniffer): Update call to append_predicate.
1053 (frame_base_free): Delete function.
1054 (frame_base_find_by_frame): Simplify.
1055 (_initialize_frame_base): Pass NULL as "free" to
1056 register_gdbarch_data.
1057 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1058 (x86_64_sigtramp_frame_sniffer): Replace
1059 "x86_64_sigtramp_frame_p".
1060 (x86_64_init_abi): Set the frame unwind sniffers.
1061 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1062 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1063 (m68k_gdbarch_init): Set the frame unwind sniffers.
1064 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1065 "i386_sigtramp_frame_p".
1066 (i386_frame_sniffer): Replace "i386_frame_p".
1067 (i386_gdbarch_init): Set the frame unwind sniffers.
1068 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1069 (avr_gdbarch_init): Set the frame unwind sniffers.
1070 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1071 "alpha_sigtramp_frame_p"
1072 (alpha_heuristic_frame_sniffer): Replace
1073 "alpha_heuristic_frame_p".
1074 (alpha_gdbarch_init): Set the frame unwind sniffers.
1075 (alpha_dwarf2_init_abi): Ditto.
1076 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1077 "alpha_debug_frame_p".
1078 (alpha_mdebug_frame_base_sniffer): Replace
1079 "alpha_mdebug_frame_base_p".
1080 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1081 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1082 (d10v_gdbarch_init): Set the frame unwind sniffer.
1083 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1084 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1085 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1086 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1087 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1088 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1089
1090 2003-07-16 Michael Snyder <msnyder@redhat.com>
1091
1092 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1093 should go thru sh_dsp_register_sim_regno, else the dsp regs
1094 will not get the right values.
1095
1096 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1097
1098 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1099 deprecated_store_floating by call to store_typed_floating.
1100 (sh_sh4_register_convert_to_raw): Substitute call to
1101 deprecated_extract_floating by call to extract_typed_floating.
1102
1103 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1104
1105 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1106
1107 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1108
1109 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1110 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1111 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1112 as possible.
1113 (do_pseudo_register): Remove.
1114 (sh_push_dummy_code): New function.
1115 (sh64_store_struct_return): Rename from sh_store_struct_return.
1116 Only called for sh64 now.
1117 (sh_extract_struct_value_address): Regcache'ify.
1118 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1119 and accomodate new tasks.
1120 (sh64_push_return_address): Rename from sh_push_return_address.
1121 Only called for sh64 now.
1122 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1123 Regcache'ify.
1124 (sh3e_sh4_extract_return_value): Regcache'ify.
1125 (sh_default_store_return_value): Ditto.
1126 (sh3e_sh4_store_return_value): Ditto.
1127 (sh_default_register_byte): Remove.
1128 (sh_sh4_register_byte): Remove.
1129 (sh_default_register_raw_size): Remove.
1130 (sh_sh4_register_raw_size): Remove.
1131 (sh_register_virtual_size): Remove.
1132 (sh_sh3e_register_virtual_type): Remove.
1133 (sh_sh3e_register_type): New function.
1134 (sh_sh4_register_virtual_type): Remove.
1135 (sh_sh4_register_type): New function.
1136 (sh_default_register_virtual_type): Remove.
1137 (sh_default_register_type): New function.
1138 (do_fv_register_info): Add parameters to accomodate call from
1139 sh_print_registers_info.
1140 (do_dr_register_info): Ditto.
1141 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1142 Add parameters to accomodate call from sh_print_registers_info.
1143 (sh_do_fp_register): Ditto.
1144 (sh64_do_pseudo_register): Call do_dr_register_info,
1145 do_fv_register_info and sh_do_fp_register with default parameters.
1146 (sh_do_register): Add parameters to accomodate call from
1147 sh_print_registers_info.
1148 (sh_print_register): Ditto.
1149 (sh_print_registers_info): Rename from sh_do_registers_info.
1150 Add parameters to be used as gdbarch_print_registers_info
1151 implementation. Accomodate removed do_pseudo_register function
1152 pointer.
1153 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1154 function pointer. Call sh_print_register with default parameters.
1155 (sh64_do_registers_info): Call sh_print_registers_info instead of
1156 sh_do_registers_info.
1157 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1158 detection of deprecated vs. non-deprecated functionality.
1159 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1160 function pointer assignments by direct function calls.
1161
1162 2003-07-15 Andrew Cagney <cagney@redhat.com>
1163
1164 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1165 (frame_register_unwind, create_new_frame): Ditto.
1166 (legacy_get_prev_frame, get_frame_type): Ditto.
1167 (get_frame_base_address): Use frame_base_find_by_frame.
1168 (get_frame_locals_address): Use frame_base_find_by_frame.
1169 (get_frame_args_address): Use frame_base_find_by_frame.
1170 * frame-base.h (frame_base_sniffer_ftype): Declare.
1171 (frame_base_append_sniffer): Declare.
1172 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1173 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1174 (frame_base_append_sniffer): New function.
1175 (frame_base_append_predicate): Add a NULL sniffer.
1176 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1177 (struct frame_base_table): Add "sniffer".
1178 (frame_base_free): Free the "sniffer" table.
1179 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1180 (frame_unwind_append_sniffer): Declare.
1181 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1182 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1183 (struct frame_unwind_table): Add "sniffer", delete "middle".
1184 (append_predicate): Add "sniffer" parameter, append the sniffer.
1185 (frame_unwind_init): Update append_predicate call.
1186 (frame_unwind_append_sniffer): New function.
1187 (frame_unwind_append_predicate): Update append_predicate call.
1188 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1189
1190 2003-07-15 Andrew Cagney <cagney@redhat.com>
1191
1192 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1193 before code inhibiting repeated unwind attempts. Add to
1194 commentary on that test's problems.
1195 * blockframe.c (inside_main_func): Look for "main" in the minimal
1196 symbol table.
1197 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1198 identical.
1199
1200 2003-07-15 Andrew Cagney <cagney@redhat.com>
1201
1202 * complaints.c (struct explanation): Define.
1203 (struct complaints): Change type of "explanation" to "struct
1204 explanation".
1205 (symfile_explanations): Convert to a "struct explanation" table.
1206 (vcomplaint): Update.
1207
1208 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1209
1210 * x86-64-linux-nat.c (regmap): Removed.
1211 (supply_gregset, fill_gregset): Call
1212 x86_64_linux_(fill,supply)_gregset functions.
1213 * x86-64-linux-tdep.c (USER_*): New defines.
1214 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1215 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1216 New functions.
1217 (fetch_core_registers): Ditto.
1218 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1219 * x86-64-linux-tdep.h: New file.
1220 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1221 and core-regset.o.
1222 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1223
1224 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1225
1226 * x86-64-tdep.c (x86_64_store_return_value): Use
1227 regcache_cooked_write_part instead of regcache_cooked_write.
1228
1229 * configure.host: Add x86_64-*-freebsd*.
1230 * configure.tgt: Add x86_64-*-freebsd*.
1231 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1232 * amd64fbsd-nat.c: New file.
1233 * amd64fbsd-tdep.c: New file.
1234 * config/i386/nm-fbsd64.h: New file.
1235 * config/i386/fbsd64.mh: New file.
1236 * config/i386/fbsd64.mt: New file.
1237
1238 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1239
1240 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1241 `sc_regs_offset' and `sc_fpregs_offset'.
1242 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1243 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1244 (alpha_sigtramp_register_address): Rewrite to use new members of
1245 `struct gdbarch_tdep'.
1246 (alpha_gdbarch_init): Initialize new members of struct
1247 gdbarch_tdep'.
1248 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1249 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1250 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1251 (alphafbsd_pc_in_sigtramp): Implement.
1252 (alphafbsd_sigtramp_offset): New function.
1253 (alphafbsd_sigcontext_addr): New function.
1254 (alphafbsd_init_abi): Initialize signal trampoline related members
1255 of `struct gdbarch_tdep'.
1256 (_initialize_alphafbsd_tdep): Add prototype.
1257
1258 2003-07-11 Theodore A. Roth <troth@openavr.org>
1259
1260 * Makefile.in (install-only): Quote sed expression when generating
1261 transformed_name.
1262
1263 2003-07-11 Richard Henderson <rth@redhat.com>
1264
1265 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1266 * dwarf2-frame.c: Include complaints.h.
1267 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1268 variable initialization; return NULL on error.
1269 (decode_frame_entry): New.
1270
1271 2003-07-11 Andrew Cagney <cagney@redhat.com>
1272
1273 * frame.h (frame_address_in_block): Delete declaration.
1274 * blockframe.c (frame_address_in_block): Delete function.
1275 (get_frame_block): Use get_frame_address_in_block.
1276 (block_innermost_frame): Ditto.
1277 * stack.c (print_frame, backtrace_command_1): Ditto.
1278
1279 * frame.h (get_frame_address_in_block): Declare.
1280 (frame_unwind_address_in_block): Declare.
1281 * frame.c (frame_unwind_address_in_block): New function.
1282 (get_frame_address_in_block): New function.
1283
1284 2003-07-10 Andrew Cagney <cagney@redhat.com>
1285
1286 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1287 pre-default. Note: re-generate has no effect.
1288
1289 2003-07-10 Andrew Cagney <cagney@redhat.com>
1290
1291 * gdbarch.sh: When a variable, but not a function, compare against
1292 0. Fix problem in previous patch.
1293 * gdbarch.c: Re-generate.
1294
1295 2003-07-10 Andrew Cagney <cagney@redhat.com>
1296
1297 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1298 functions against NULL, not 0.
1299 * gdbarch.c: Re-generate.
1300
1301 2003-07-10 Fred Fish <fnf@ninemoons.com>
1302
1303 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1304 null string instead of a null pointer.
1305 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1306
1307 2003-07-09 Michael Snyder <msnyder@redhat.com>
1308
1309 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1310
1311 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1312
1313 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1314 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1315 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1316 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1317 * x86-64-tdep.c: ... from here.
1318
1319 2003-07-09 Andreas Schwab <schwab@suse.de>
1320
1321 * m68k-tdep.h (enum struct_return): Define.
1322 (struct gdbarch_tdep): Add struct_return.
1323 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1324 bytes are padded to the right, not to the left. Pass struct value
1325 address in register %a1, not on stack.
1326 (m68k_use_struct_convention): New function.
1327 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1328 struct_return in tdep to pcc_struct_return.
1329 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1330 reg_struct_return.
1331
1332 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1333
1334 * somread.c (som_symfile_offsets): Fix compilation error.
1335
1336 2003-07-09 Andrew Cagney <cagney@redhat.com>
1337
1338 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1339 Add comments about the checks.
1340
1341 2003-07-08 Andrew Cagney <cagney@redhat.com>
1342
1343 * Makefile.in: Make dependency section headers consistent.
1344 (config_h): Move to $BUILD headers section.
1345 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1346 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1347 (ada-exp.tab.c): Move to YACC/LEX section.
1348 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1349 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1350
1351 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1352
1353 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1354 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1355 of strerror with safe_strerror, use ISO C function definitions,
1356 and replace instances of sprintf with snprintf.
1357
1358 2003-07-07 Andrew Cagney <cagney@redhat.com>
1359
1360 * frame.c (get_prev_frame): Enable check for identical frames.
1361 Update comments. Update error messages.
1362
1363 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1364
1365 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1366
1367 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1368
1369 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1370 sort_symtab_syms, no longer necessary.
1371
1372 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1373
1374 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1375
1376 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1377
1378 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1379 (mips_register_byte): Likewise.
1380
1381 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1382
1383 * Makefile.in (sparc_tdep_h): New.
1384 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1385 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1386 * sparc-linux-nat.c: Include "sparc-tdep.h".
1387 * sparc-nat.c: Likewise.
1388 * sparc-tdep.c: Likewise.
1389 * sparc64nbsd-nat.c: Likewise.
1390 * sparcnbsd-nat.c: Likewise.
1391 * sparcnbsd-tdep.c: Likewise.
1392 * sparc-tdep.h: New file.
1393 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1394 and sparc_npc_regnum.
1395
1396 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1397
1398 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1399 (mips_linux_cannot_store_register): List supported instead of
1400 unsupported registers.
1401
1402 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1403
1404 * disasm.c (dump_insns): Separate instructions from addresses.
1405
1406 2003-07-07 Andreas Schwab <schwab@suse.de>
1407
1408 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1409 dependencies.
1410 * m68k-tdep.c (NUM_FREGS): Delete.
1411 (SIG_PC_FP_OFFSET): Delete.
1412 (TARGET_M68K): Delete.
1413 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1414 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1415 P_MOVEL_SP, P_MOVEML_SP): Define.
1416 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1417 P_TRAP): Delete.
1418 (m68k_register_raw_size): Delete.
1419 (m68k_register_virtual_size): Delete.
1420 (m68k_register_type): Renamed from m68k_register_virtual_type and
1421 add gdbarch argument.
1422 (m68k_store_struct_return): Delete.
1423 (m68k_deprecated_extract_return_value): Delete.
1424 (m68k_deprecated_extract_struct_value_address): Delete.
1425 (m68k_frame_chain): Delete.
1426 (m68k_frame_saved_pc): Delete.
1427 (m68k_fix_call_dummy): Delete.
1428 (m68k_push_dummy_frame): Delete.
1429 (m68k_pop_frame): Delete.
1430 (m68k_extract_return_value): New function.
1431 (m68k_store_return_value): Rewrite using regcache.
1432 (m68k_extract_struct_value_address): Rewrite using regcache.
1433 (m68k_push_dummy_call): New function.
1434 (struct m68k_frame_cache): Define.
1435 (m68k_alloc_frame_cache): New function.
1436 (m68k_analyze_frame_setup): New function.
1437 (m68k_analyze_register_saves): New function.
1438 (m68k_analyze_prologue): New function.
1439 (m68k_skip_prologue): Rewrite using above functions.
1440 (m68k_unwind_pc): New function.
1441 (m68k_frame_cache): New function.
1442 (m68k_frame_this_id): New function.
1443 (m68k_frame_prev_register): New function.
1444 (m68k_frame_unwind): New variable.
1445 (m68k_frame_p): New function.
1446 (m68k_sigtramp_frame_cache): New function.
1447 (m68k_sigtramp_frame_this_id): New function.
1448 (m68k_sigtramp_frame_prev_register): New function.
1449 (m68k_sigtramp_frame_unwind): New variable.
1450 (m68k_sigtramp_frame_p): New function.
1451 (m68k_frame_base_address): New function.
1452 (m68k_frame_base): New function.
1453 (m68k_unwind_dummy_id): New function.
1454 (fill_gregset): Use regcache_collect.
1455 (fill_fpregset): Likewise.
1456 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1457 defined.
1458 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1459 deprecated_init_frame_pc, deprecated_store_struct_return,
1460 deprecated_extract_return_value, deprecated_store_return_value,
1461 deprecated_frame_chain, deprecated_frame_saved_pc,
1462 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1463 deprecated_register_virtual_size,
1464 deprecated_max_register_raw_size,
1465 deprecated_max_register_virtual_size,
1466 deprecated_register_virtual_type, deprecated_register_size,
1467 deprecated_register_byte, deprecated_register_bytes,
1468 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1469 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1470 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1471 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1472 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1473 deprecated_push_dummy_frame, deprecated_pop_frame,
1474 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1475 only if SYSCALL_TRAP is defined. Set extract_return_value,
1476 store_return_value, extract_struct_value_address, register_type,
1477 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1478 predicates.
1479 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1480 M68K_MAX_REGISTER_SIZE): Define.
1481 (struct m68k_sigtramp_info): Define.
1482 (struct gdbarch_tdep): Add get_sigtramp_info.
1483 * m68klinux-nat.c (fetch_register): Use register_size instead of
1484 REGISTER_RAW_SIZE. Don't put assignment in if.
1485 (store_register): Likewise.
1486 (fetch_inferior_registers): Likewise.
1487 (store_inferior_registers): Likewise.
1488 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1489 (m68k_linux_frame_saved_pc): Delete.
1490 (m68k_linux_sigcontext_reg_offset,
1491 m68k_linux_ucontext_reg_offset): Define.
1492 (m68k_linux_get_sigtramp_info): New function.
1493 (m68k_linux_extract_return_value): Rewrite using regcache.
1494 (m68k_linux_store_return_value): Likewise.
1495 (m68k_linux_extract_struct_value_address): Likewise.
1496 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1497 Don't set deprecated_frame_saved_pc,
1498 deprecated_extract_return_value, deprecated_store_return_value,
1499 deprecated_extract_struct_value_address. Set
1500 extract_return_value, store_return_value,
1501 extract_struct_value_address.
1502
1503 2003-07-07 Andrew Cagney <cagney@redhat.com>
1504
1505 * expprint.c: Include "user-regs.h" instead of "frame.h".
1506 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1507 frame_map_regnum_to_name.
1508 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1509 (frame_map_name_to_regnum): Simplify, call
1510 user_reg_map_name_to_regnum.
1511 (frame_map_regnum_to_name): Simplify, call
1512 user_reg_map_regnum_to_name.
1513 (frame_register_unwind): Update.
1514 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1515 (_initialize_frame_reg): Call user_reg_add_builtin.
1516 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1517 (value_of_register): Use value_of_user_reg.
1518 * eval.c (evaluate_subexp_standard): Update.
1519 * parse.c (write_dollar_variable): Update.
1520 * d10v-tdep.c (d10v_print_registers_info): Update.
1521 * infcmd.c (registers_info): Update.
1522 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1523 (builtin_regs_h): Delete macro.
1524 (user_regs_h): Define.
1525 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1526 (builtin-regs.o): Delete target.
1527 (user-regs.o): Specify dependencies.
1528 (expprint.o): Update dependencies.
1529 (findvar.o): Update dependencies.
1530 (frame.o): Update dependencies.
1531 (std-regs.o): Update dependencies.
1532
1533 2003-07-06 Christopher Faylor <cgf@redhat.com>
1534
1535 * win32-nat.c (solib_symbols_add): Use one variable for all section
1536 address stuff. Pass variable rather than address of variable to
1537 safe_symbol_file_add.
1538
1539 2003-07-06 Andreas Schwab <schwab@suse.de>
1540
1541 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1542
1543 2003-07-04 Joel Brobecker <brobecker@gnat.com>
1544
1545 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1546
1547 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1548
1549 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1550
1551 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1552
1553 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1554 * config/i386/nto.mh: New file.
1555 * config/i386/nm-nto.h: New file.
1556 * configure.host: Add i[3456]86-*-nto*.
1557
1558 2003-07-03 Joel Brobecker <brobecker@gnat.com>
1559
1560 * remote-vx.c (vx_add_symbols): Fix compilation error.
1561
1562 2003-07-03 Andrew Cagney <cagney@redhat.com>
1563
1564 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1565 * gdbarch.h, gdbarch.c: Re-generate.
1566 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1567 (legacy_register_name): Declare.
1568 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1569 (REGISTER_NAME): Define.
1570 * sparc-tdep.c (legacy_register_name): New function.
1571 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1572 (REGISTER_NAME): Define.
1573 (hppa64_register_name): Declare.
1574 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1575 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1576 (hppa64_register_name): New function.
1577 (hppa_register_name): New function.
1578 * arch-utils.c (legacy_register_name): Delete.
1579 * arch-utils.h (legacy_register_name): Delete.
1580
1581 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
1582
1583 * cli/cli-interp.c (cli_interpreter_resume): Update the
1584 cli_uiout's stream to gdb_stdout.
1585
1586 2003-07-03 Andrew Cagney <cagney@redhat.com>
1587
1588 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1589 predicate.
1590 * gdbarch.h, gdbarch.c: Re-generate.
1591 * regcache.c (init_regcache_descr): Use legacy code when either
1592 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1593
1594 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1595
1596 * NEWS: Move "set logging" entry into GDB 6.0 section.
1597
1598 2003-07-02 Jim Blandy <jimb@redhat.com>
1599
1600 * s390-tdep.c (struct frame_extra_info): new member:
1601 'stack_bought_valid'.
1602 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1603 initialize fextra_info->stack_bought.
1604 (s390_frameless_function_invocation): Don't trust the value of
1605 fextra_info_ptr->stack_bought unless
1606 fextra_info->stack_bought_valid is set.
1607
1608 New S390 prologue analyzer.
1609 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1610 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1611 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1612 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1613 compute_x_addr, s390_on_stack, s390_store,
1614 s390_get_signal_frame_info): New functions.
1615 (S390_NUM_SPILL_SLOTS): New macro.
1616 (s390_get_frame_info): Rewritten.
1617 (is_arg_reg): Deleted.
1618
1619 Break out the decoding of S/390 instructions into separate
1620 functions, to make it more legible, and easier to check
1621 against the spec.
1622 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1623 is_rx, is_rxe): New functions.
1624 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1625 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1626 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1627 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1628 enums for opcode values. (Is this an improvement?)
1629
1630 2003-07-02 Andrew Cagney <cagney@redhat.com>
1631
1632 * i386-tdep.c: Revert change committed as part of trad-frame code
1633 below.
1634
1635 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1636
1637 * breakpoint.c (insert_catchpoint): Make static.
1638
1639 2003-07-02 Andreas Schwab <schwab@suse.de>
1640
1641 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1642 former ia64_push_arguments and ia64_push_return_address, and use
1643 regcache functions instead of read/write_register.
1644 (ia64_gdbarch_init): Set push_dummy_call instead of
1645 deprecated_push_arguments and deprecated_push_return_address.
1646
1647 2003-07-01 Andreas Jaeger <aj@suse.de>
1648
1649 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1650 before the call.
1651 Set %rax only to number of SSE registers used.
1652
1653 2003-07-01 Andrew Cagney <cagney@redhat.com>
1654
1655 * trad-frame.h: Update comments, a -1 .addr is reserved.
1656 (trad_frame_value_p, trad_frame_addr_p): Declare.
1657 (trad_frame_reg_p): Declare.
1658 (trad_frame_set_value): Rename trad_frame_register_value.
1659 (trad_frame_set_unknown): Declare.
1660 * trad-frame.c (trad_frame_realreg_p): New function.
1661 (trad_frame_addr_p, trad_frame_value_p): New function.
1662 (trad_frame_set_unknown): New function.
1663 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1664 (trad_frame_prev_register): Use trad_frame_realreg_p,
1665 trad_frame_addr_p and trad_frame_value_p.
1666 (trad_frame_set_value): Rename trad_frame_register_value.
1667 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1668 and trad_frame_set_value.
1669
1670 2003-06-30 Jim Blandy <jimb@redhat.com>
1671
1672 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1673 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1674 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1675 for 16 registers, and then 32 more bytes.
1676 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1677 New macros.
1678 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1679 Move up in the file, since it's now used by is_simple_arg.
1680 (is_simple_arg): Don't assume registers are four bytes long.
1681 Exclude all double arguments. Extended floats are not simple
1682 args.
1683 (is_power_of_two): New function.
1684 (pass_by_copy_ref): Call is_power_of_two, and check that the
1685 length fits in a register, rather than listing all the acceptable
1686 sizes. Extended floats are not passed by reference.
1687 (s390_push_arguments): Don't assume registers are four bytes long.
1688 Reserve an argument register to point to the buffer for structures
1689 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1690 S390_STACK_FRAME_OVERHEAD.
1691
1692 2003-06-30 Andreas Schwab <schwab@suse.de>
1693
1694 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1695 format error message.
1696
1697 2003-06-30 Joel Brobecker <brobecker@gnat.com>
1698
1699 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1700
1701 2003-06-30 David Carlton <carlton@kealia.com>
1702
1703 Band-aid for PR c++/1245.
1704 * Makefile.in (cp-support.o): Depend on complaints_h.
1705 * cp-support.c: Include complaints.h. Add declaration for
1706 find_last_component.
1707 (cp_find_first_component): Separate code into
1708 cp_find_first_component_aux.
1709 (cp_find_first_component_aux): Call demangled_name_complaint.
1710 (demangled_name_complaint): New.
1711
1712 2003-06-30 Andrew Cagney <cagney@redhat.com>
1713
1714 * remote.c (remote_write_bytes): Explicitly compute and then use
1715 the payload size. Update comments to reflect. Fixes problem of
1716 GDB not sending small packets as found by Fred Fish.
1717
1718 2003-06-30 Andrew Cagney <cagney@redhat.com>
1719
1720 * remote.c (remote_async_wait): Fix -Wformat problem.
1721
1722 2003-06-29 Andrew Cagney <cagney@redhat.com>
1723
1724 * remote.c (remote_wait): Call error, and not warning, when the
1725 packet is corrupt.
1726 (remote_async_wait): Ditto.
1727
1728 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1729
1730 * sparc-tdep.c (sparc_y_regnum): Make external again.
1731
1732 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1733
1734 * cli/cli-logging.c (pop_output_files): Add void to function
1735 definition.
1736
1737 2003-06-29 Andrew Cagney <cagney@redhat.com>
1738
1739 * frame.c (frame_register_unwind): Use unsigned char when dumping
1740 the buffer contents.
1741
1742 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1743
1744 * cli/cli-logging.c: New file.
1745 * cli-out.c (struct ui_out_data): Add original_stream.
1746 (cli_redirect): New function.
1747 (cli_ui_out_impl): Add cli_redirect.
1748 (cli_out_new): Initialize original_stream.
1749 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1750 (uo_redirect, ui_out_redirect): New.
1751 * ui-out.h (struct ui_out_impl): Add redirect member.
1752 (redirect_ftype): New.
1753 (ui_out_redirect): Add prototype.
1754 * Makefile.in: Add rules for cli-logging.c.
1755 * NEWS: Mention "set logging".
1756
1757 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1758
1759 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1760
1761 2003-06-27 Andrew Cagney <cagney@redhat.com>
1762
1763 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1764 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1765 * avr-tdep.c (avr_call_dummy_address): Delete function.
1766 (avr_gdbarch_init): Do not set call_dummy_address.
1767
1768 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1769
1770 * symfile.c (syms_from_objfile): Move variables to inner block.
1771 Move the checks for the non-mainline case a bit earlier to avoid
1772 doing some useless computations.
1773
1774 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1775
1776 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1777
1778 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
1779
1780 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1781 sections.
1782
1783 2003-06-26 Michael Chastain <mec@shout.net>
1784
1785 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1786 gdb/testsuite/gdb.c++/pr-1210.exp.
1787
1788 2003-06-26 Andrew Cagney <cagney@redhat.com>
1789
1790 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1791 altivec_expression.h and altivec_registers.h.
1792
1793 2003-06-26 Andrew Cagney <cagney@redhat.com>
1794
1795 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1796 info->mach when MIPS16. Patch suggested by Fred Fish.
1797
1798 2003-06-26 Andrew Cagney <cagney@redhat.com>
1799
1800 * utils.c (internal_vproblem): Print the problem to a reason
1801 buffer and then pass to query. Make the msg variable more local.
1802
1803 2003-06-26 Andrew Cagney <cagney@redhat.com>
1804
1805 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
1806 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
1807 * gdbarch.h, gdbarch.c: Re-generate.
1808 * frame-base.c (default_frame_args_address): Update. Use
1809 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
1810 not available.
1811 (default_frame_locals_address): Ditto for
1812 DEPRECATED_FRAME_LOCALS_ADDRESS.
1813 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
1814 (vax_frame_num_args): Update.
1815 (vax_gdbarch_init): Update.
1816 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1817 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1818 * mcore-tdep.c (mcore_gdbarch_init): Update.
1819 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1820 * ia64-tdep.c (ia64_gdbarch_init): Update.
1821 * symtab.h (address_class): Update comments.
1822 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
1823 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1824 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1825 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1826 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1827 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1828 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1829 * alpha-mdebug-tdep.c: Update.
1830 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
1831
1832 2003-06-26 Andreas Jaeger <aj@suse.de>
1833
1834 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
1835 of SSE registers so that varargs functions work. Rework handling
1836 of passing arguments on the stack.
1837 (x86_64_store_return_value): Return double and float values in SSE
1838 register.
1839
1840 2003-06-24 Michael Chastain <mec@shout.net>
1841
1842 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
1843 the "constructor breakpoints ignored" bug.
1844
1845 2003-06-25 David Carlton <carlton@kealia.com>
1846
1847 * MAINTAINERS: Update e-mail address.
1848
1849 2003-06-24 Jim Blandy <jimb@redhat.com>
1850
1851 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
1852
1853 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
1854 function.
1855 (ppc_linux_init_abi): Register it as the
1856 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
1857
1858 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
1859 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
1860 method.
1861
1862 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
1863 (ppc64_standard_linkage_target): Use it.
1864
1865 2003-06-23 Andrew Cagney <cagney@redhat.com>
1866
1867 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
1868 for 0 "int0" and 4 "int32" sized registers.
1869 * gdbtypes.c (builtin_type_int0): Define.
1870 (build_gdbtypes): Initialize builtin_type_int0.
1871 * gdbtypes.h (builtin_type_int0): Declare.
1872
1873 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
1874
1875 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
1876 as characters are unsigned.
1877
1878 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1879
1880 PR gdb/1179
1881 * dwarfread.c (struct_type): Skip static fields without crashing.
1882
1883 2003-06-22 Andrew Cagney <cagney@redhat.com>
1884
1885 GDB 6.0 branch created.
1886 * README: Update.
1887 * PROBLEMS: Update. Empty.
1888 * NEWS: Update.
1889
1890 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1891
1892 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
1893 Suggested by Nick Hibma <n_hibma@webweaving.org>.
1894
1895 2003-06-22 Andrew Cagney <cagney@redhat.com>
1896
1897 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
1898 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
1899 Velikov.
1900
1901 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1902
1903 * cli/cli-cmds.c (shell_escape): Silence warnings from old
1904 compilers.
1905
1906 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1907
1908 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
1909 argument of val_print.
1910 * cp-valprint.c (cp_print_value): Don't add the offset parameter
1911 to the address argument of baseclass_offset or target_read_memory.
1912 Do add it to the argument of cp_print_value_fields.
1913
1914 2003-06-21 Andrew Cagney <cagney@redhat.com>
1915
1916 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
1917 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
1918 instead of 0..NUM_REGS.
1919 (mips_register_reggroup_p): New function.
1920 (mips_pseudo_register_write): New function.
1921 (mips_pseudo_register_read): New function.
1922 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
1923 based on the register's type.
1924 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
1925 cooked.
1926 (mips_get_saved_register): Simplify. Assert that REGNO is a
1927 pseudo / cooked.
1928 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
1929 (mips_register_type): Replace mips_register_virtual_type. Map
1930 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
1931 when available.
1932 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
1933 that the register is cooked / virtual.
1934 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
1935 Only get the extra info when needed.
1936 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
1937 (mips32_heuristic_proc_desc): Fetch the cooked register.
1938 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
1939 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
1940 (mips_print_register): Use gdbarch_register_type, instead of
1941 REGISTER_VIRTUAL_TYPE.
1942 (print_gp_register_row): Use gdbarch_register_type, instead of
1943 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
1944 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1945 Print the pseudo / cooked registers.
1946 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1947 Print the pseudo / cooked registers.
1948 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
1949 REG_NUM is pseudo / cooked.
1950 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
1951 (mips_n32n64_xfer_return_value): Ditto.
1952 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
1953 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
1954 (mips_register_sim_regno): New function.
1955 (mips_gdbarch_init): Set deprecated_register_byte,
1956 register_group_p, pseudo_register_write, pseudo_register_read,
1957 register_sim_regno, and num_pseudo_regs. Set register_type,
1958 instead of register_virtual_type.
1959 * Makefile.in (mips-tdep.o): Update dependencies.
1960 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
1961 REGISTER_VIRTUAL_TYPE.
1962 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
1963 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
1964 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
1965 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
1966 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
1967
1968 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1969
1970 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
1971 * cli/cli-cmds.c: Include "gdb_vfork.h".
1972 (shell_escape): Use vfork.
1973
1974 2003-06-21 Andrew Cagney <cagney@redhat.com>
1975
1976 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
1977 32 bit floating-point register saves.
1978
1979 * frame.h (deprecated_unwind_get_saved_register): Delete.
1980 * frame.c (deprecated_unwind_get_saved_register): Delete function.
1981 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
1982 and deprecated_get_next_frame_hack instead of
1983 deprecated_unwind_get_saved_register.
1984
1985 * mips-tdep.c (mips_dump_tdep): Do not print
1986 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
1987
1988 * frame.c (get_frame_register): New function.
1989 (frame_unwind_register_signed): New function.
1990 (get_frame_register_signed): New function.
1991 (frame_unwind_register_unsigned): New function.
1992 (get_frame_register_unsigned): New function.
1993 * frame.h: Add comments on naming schema.
1994 (get_frame_register, frame_unwind_register_signed): Declare.
1995 (get_frame_register_signed, get_frame_register_signed): Declare.
1996 (frame_unwind_register_unsigned): Declare.
1997 (get_frame_register_unsigned): Declare.
1998
1999 2003-06-20 Theodore A. Roth <troth@openavr.org>
2000
2001 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2002
2003 2003-06-20 Theodore A. Roth <troth@openavr.org>
2004
2005 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2006 (avr_read_sp): Ditto.
2007
2008 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
2009
2010 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2011 * config/arm/nm-linux.h: Likewise.
2012 * config/arm/tm-linux.h: Likewise.
2013 * config/ia64/nm-linux.h: Likewise.
2014 * config/ia64/tm-ia64.h: Likewise.
2015 * config/s390/tm-linux.h: Likewise.
2016 * config/s390/tm-s390.h: Likewise.
2017 * s390-nat.c: Likewise.
2018 * s390-tdep.c: Likewise.
2019
2020 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2021 * config/ia64/linux.mt: Likewise.
2022 * config/m68k/linux.mh: Likewise.
2023 * config/mips/linux.mt: Likewise.
2024 * config/powerpc/linux.mh: Likewise.
2025 * config/sh/linux.mt: Likewise.
2026
2027 2003-06-19 Kris Warkentin <kewarken@qnx.com>
2028
2029 * solib.c (solib_open): Change tests for whether to search
2030 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2031 comments.
2032
2033 2003-06-19 Theodore A. Roth <troth@openavr.org>
2034
2035 * avr-tdep.c (avr_frame_address): Delete function.
2036 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2037 set_gdbarch_frame_args_address.
2038
2039 2003-06-19 Andrew Cagney <cagney@redhat.com>
2040
2041 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2042 (REGISTER_CONVERT_FROM_TYPE): Delete.
2043 (mips_register_convert_to_type): Delete declaration.
2044 (mips_register_convert_from_type): Delete declaration.
2045 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2046 kernel/.
2047
2048 2003-06-19 Michael Snyder <msnyder@redhat.com>
2049
2050 * linux-nat.h: New file.
2051 * linux-nat.c: Include linux-nat.h.
2052 * lin-lwp.c: Include linux-nat.h.
2053 Move struct lwp_info def to linux-nat.h.
2054 * linux-proc.c: Include linux-nat.h.
2055 (linux_make_note_section): Iterate over lwps instead of threads.
2056 (linux_do_thread_registers): Use lwp instead of merged pid.
2057 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2058 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2059 Add dependency on linux_nat_h.
2060
2061 2003-06-19 Theodore A. Roth <troth@openavr.org>
2062
2063 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2064
2065 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2066
2067 * varobj.c (get_type, get_target_type): Use check_typedef.
2068
2069 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2070
2071 * breakpoint.c (insert_catchpoint): Call internal_error.
2072
2073 2003-06-19 Theodore A. Roth <troth@openavr.org>
2074
2075 * avr-tdep.c (avr_push_dummy_code): Delete function.
2076 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2077
2078 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2079
2080 * arch-utils.c (default_prepare_to_proceed): Remove.
2081 (generic_prepare_to_proceed): Remove.
2082 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2083 (generic_prepare_to_proceed): Remove prototype.
2084 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2085 * gdbarch.c: Regenerate.
2086 * gdbarch.h: Regenerate.
2087 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2088 * hppah-nat.c (hppa_switched_threads): Remove.
2089 * infrun.c (prepare_to_proceed): New static function, copied from
2090 generic_prepare_to_proceed. Remove select_it argument.
2091 (proceed): Call prepare_to_proceed.
2092 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2093 variables.
2094 (ptrace_wait): Don't set the removed variables.
2095 (hppa_switched_threads): Remove.
2096 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2097 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2098 (lin_lwp_prepare_to_proceed): Remove prototype.
2099 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2100 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2101
2102 2003-06-18 Theodore A. Roth <troth@openavr.org>
2103
2104 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2105 trad-frame.h.
2106 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2107 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2108 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2109 (AVR_PROLOGUE_*): Enumerate prologue types.
2110 (struct frame_extra_info): Remove.
2111 (struct avr_unwind_cache): Define.
2112 (avr_write_sp): Delete function.
2113 (avr_read_fp): Ditto.
2114 (avr_init_extra_frame_info): Ditto.
2115 (avr_pop_frame): Ditto.
2116 (avr_frame_saved_pc): Ditto.
2117 (avr_saved_pc_after_call): Ditto.
2118 (avr_push_return_address): Ditto.
2119 (avr_frame_chain): Ditto.
2120 (avr_store_struct_return): Ditto.
2121 (avr_push_arguments): Ditto.
2122 (avr_scan_prologue): Update comments. Changed to set up the info for
2123 cache unwinding. Now returns end of prologue PC.
2124 (avr_skip_prologue): Better handling of functions lacking a prologue
2125 by using avr_scan_prologue.
2126 (avr_scan_arg_moves): New function.
2127 (avr_saved_regs_unwinder): Ditto.
2128 (avr_frame_unwind_cache): Ditto.
2129 (avr_unwind_pc): Ditto.
2130 (avr_frame_this_id): Ditto.
2131 (avr_frame_prev_register): Ditto.
2132 (avr_frame_p): Ditto.
2133 (avr_frame_base_address ): Ditto.
2134 (avr_unwind_dummy_id): Ditto.
2135 (avr_push_dummy_code): Ditto.
2136 (push_stack_item): Ditto.
2137 (pop_stack_item): Ditto.
2138 (avr_push_dummy_call): Ditto.
2139 (struct stack_item): Define.
2140 (avr_frame_unwind): Declare structure.
2141 (avr_frame_base): Ditto.
2142 (avr_gdbarch_init): Remove calls to
2143 set_gdbarch_deprecated_init_frame_pc,
2144 set_gdbarch_deprecated_target_read_fp,
2145 set_gdbarch_deprecated_dummy_write_sp,
2146 set_gdbarch_deprecated_fp_regnum,
2147 set_gdbarch_deprecated_push_arguments,
2148 set_gdbarch_deprecated_push_return_address,
2149 set_gdbarch_deprecated_pop_frame,
2150 set_gdbarch_deprecated_store_struct_return,
2151 set_gdbarch_deprecated_frame_init_saved_regs,
2152 set_gdbarch_deprecated_init_extra_frame_info,
2153 set_gdbarch_deprecated_frame_chain,
2154 set_gdbarch_deprecated_frame_saved_pc,
2155 set_gdbarch_deprecated_saved_pc_after_call.
2156 Add calls to set_gdbarch_push_dummy_call,
2157 set_gdbarch_push_dummy_code,
2158 frame_unwind_append_predicate,
2159 frame_base_set_default,
2160 set_gdbarch_unwind_dummy_id,
2161 set_gdbarch_unwind_pc.
2162 Wrap a long line.
2163
2164 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2165
2166 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2167 registers for H8/300S.
2168 (h8300_print_registers_info): Ditto.
2169 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2170
2171 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2172
2173 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2174 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2175 (lin_lwp_wait): Likewise. Update comments.
2176 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2177 (pull_pid_from_list, linux_record_stopped_pid): New.
2178
2179 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2180
2181 * ada-lang.c (scan_discrim_bound): Name first argument.
2182 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2183 declared by ALL_BLOCK_SYMBOLS.
2184
2185 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2186
2187 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2188 ("regcache.h"): Include it.
2189 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2190
2191 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2192
2193 * NEWS: Mention gdbserver detach change and "disconnect" command.
2194 * infcmd.c (disconnect_command): New function.
2195 (_initialize_infcmd): Add ``disconnect'' command.
2196 * remote.c (remote_async_detach): Delete.
2197 (remote_detach): Merge remote_async_detach.
2198 (remote_disconnect): New.
2199 (init_remote_ops): Set to_disconnect.
2200 (init_remote_cisco_ops): Likewise.
2201 (init_remote_async_ops): Likewise. Use remote_detach.
2202 * target.c (cleanup_target): Default to_disconnect.
2203 (update_current_target): Inherit to_disconnect.
2204 (target_disconnect, debug_to_disconnect): New functions.
2205 (setup_target_debug): Set to_disconnect.
2206 * target.h (struct target_ops): Add to_disconnect.
2207 (target_disconnect): Add prototype.
2208
2209 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2210
2211 * breakpoint.c (insert_catchpoint): New function.
2212 (insert_breakpoints): Use catch_exceptions to call
2213 insert_catchpoint. Disable catchpoints if they fail to insert.
2214
2215 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2216
2217 * symfile.c (reread_symbols): Clear sym_private.
2218
2219 2003-06-17 Andrew Cagney <cagney@redhat.com>
2220
2221 * trad-frame.h (struct frame_info): Add opaque declaration.
2222 * remote-fileio.h (struct cmd_list_element): Add opaque
2223 declaration.
2224 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2225 comments.
2226
2227 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2228
2229 * remote.c (remote_prepare_to_store): Replace call to
2230 deprecated_read_register_bytes with multiple regcache_raw_read
2231 calls.
2232
2233 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2234
2235 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2236 (nto_find_and_open_solib): Likewise.
2237 (nto_init_solib_absolute_prefix): Likewise.
2238 (_initialize_nto_tdep): Fix indentation.
2239
2240 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2241
2242 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2243
2244 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2245
2246 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2247
2248 2003-06-17 Jim Blandy <jimb@redhat.com>
2249
2250 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2251
2252 2003-06-16 Theodore A. Roth <troth@openavr.org>
2253
2254 * avr-tdep.c (avr_extract_return_value): New function.
2255 (avr_gdbarch_init): Set extract_return_value method.
2256
2257 2003-06-16 Andrew Cagney <cagney@redhat.com>
2258
2259 * frame.h (deprecated_get_next_frame_hack): Declare.
2260 * frame.c (legacy_saved_regs_prev_register): Only require
2261 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2262 there are always saved regs.
2263 (deprecated_generic_get_saved_register): Do not require
2264 DEPRECATED_FRAME_INIT_SAVED_REGS.
2265 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2266 use frame ID unwind instead.
2267 (deprecated_get_next_frame_hack): New function.
2268
2269 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2270
2271 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2272 (h8300_push_dummy_call): ...this function. Some minor optimization.
2273 (h8300_push_return_address): Remove.
2274 (h8300_gdbarch_init): Remove calls to
2275 set_gdbarch_deprecated_dummy_write_sp,
2276 set_gdbarch_deprecated_push_arguments and
2277 set_gdbarch_deprecated_push_return_address.
2278 Add call to set_gdbarch_push_dummy_call.
2279
2280 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2281
2282 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2283 (E_PSEUDO_EXR_REGNUM): Ditto.
2284 (h8300_is_argument_spill): Check for instructions moving argument
2285 registers into safe registers.
2286 (h8300_skip_prologue): Check for stm instruction to push registers
2287 used for register variables onto stack.
2288 (gdb_print_insn_h8300): Remove.
2289 (h8300_examine_prologue): Add a comment.
2290 (h8300_register_name): Take pseudo registers into account.
2291 (h8300s_register_name): Ditto.
2292 (h8300sx_register_name): Ditto.
2293 (h8300_print_register): Ditto.
2294 (h8300_print_registers_info): Define "nice" printing order.
2295 (h8300_saved_pc_after_call): Take pseudo registers into account.
2296 (h8300_register_type): Ditto. Return type used for remote connection
2297 when requesting real CCR or EXR register, return actual type when
2298 requesting pseudo CCR or EXR.
2299 (h8300_pseudo_register_read): New function.
2300 (h8300_pseudo_register_write): Ditto.
2301 (h8300_dbg_reg_to_regnum): Ditto.
2302 (h8300s_dbg_reg_to_regnum): Ditto.
2303 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2304 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2305 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2306 set_gdbarch_print_insn architecture dependent.
2307 Call set_gdbarch_pseudo_register_read and
2308 set_gdbarch_pseudo_register_write.
2309 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2310
2311 2003-06-16 Andrew Cagney <cagney@redhat.com>
2312
2313 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2314 * gdbarch.h, gdbarch.c: Re-generate.
2315 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2316 * s390-tdep.c (s390_gdbarch_init): Update.
2317 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2318 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2319 * mips-tdep.c (mips_gdbarch_init): Update.
2320 * mcore-tdep.c (mcore_gdbarch_init): Update.
2321 * cris-tdep.c (cris_gdbarch_init): Update.
2322 * infcall.c (call_function_by_hand): Update.
2323 * ia64-tdep.c (ia64_push_arguments): Update comment.
2324 * frame.c (legacy_get_prev_frame): Do not assume
2325 SAVE_DUMMY_FRAME_TOS_P.
2326 * dummy-frame.c (find_dummy_frame): Update comment.
2327
2328 2003-06-16 Andrew Cagney <cagney@redhat.com>
2329
2330 * regcache.c (do_cooked_read): Do not use register_valid_p.
2331
2332 2003-06-15 Theodore A. Roth <troth@openavr.org>
2333
2334 * avr-tdep.c (avr_register_type): Remove a blank line.
2335 (avr_scan_prologue): Correct some comments.
2336
2337 2003-06-15 Theodore A. Roth <troth@openavr.org>
2338
2339 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2340 prologue types.
2341 Properly scan prologues generated by gcc with the -mcall-prologues
2342 option.
2343 Add code to scan -mcall-prologues for mega devices.
2344
2345 2003-06-15 Theodore A. Roth <troth@openavr.org>
2346
2347 * avr-tdep.c (avr_register_byte): Delete function.
2348 (avr_register_raw_size): Delete function.
2349 (avr_register_virtual_size): Delete function.
2350 (avr_register_virtual_type): Delete function.
2351 (avr_register_type): New function.
2352 (avr_address_to_pointer): Remove unused code.
2353 (avr_read_fp): Need to read FP as two separate bytes due to change to
2354 avr_register_type() usage.
2355 (avr_gdbarch_init): Don't set deprecated_register_size.
2356 Don't set deprecated_register_bytes.
2357 Don't set deprecated_register_byte.
2358 Don't set deprecated_register_raw_size.
2359 Don't set deprecated_max_register_raw_size.
2360 Don't set deprecated_register_virtual_size.
2361 Don't set deprecated_max_register_virtual_size.
2362 Don't set deprecated_register_virtual_type.
2363 Set register_type method.
2364
2365 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2366
2367 * Makefile.in (linux-nat.o): Add rule.
2368 * linux-nat.c: New file.
2369 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2370 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2371 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2372 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2373 * config/arm/linux.mh (NATDEPFILES): Likewise.
2374 * config/i386/linux.mh (NATDEPFILES): Likewise.
2375 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2376 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2377 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2378 * config/mips/linux.mh (NATDEPFILES): Likewise.
2379 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2380 * config/s390/s390.mh (NATDEPFILES): Likewise.
2381 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2382
2383 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2384
2385 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2386 replace out-of-date comment.
2387
2388 2003-06-15 Andrew Cagney <cagney@redhat.com>
2389
2390 * rdi-share/host.h (Fail): Change to a varargs function.
2391 * remote-rdi.c (Fail): Update.
2392
2393 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2394
2395 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2396 (i386_convert_register_p, i386_register_to_value,
2397 i386_register_from_value): Handle types longer than 8 bytes.
2398
2399 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2400
2401 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2402 Move floating-point code to new function in i387-tdep.c.
2403 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2404 New functions containing code moved here from i386-tdep.c.
2405 * i387-tdep.h: Add opaque declaration for `struct type'.
2406 (i387_register_to_value, i387_value_to_register): New prototypes.
2407 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2408 (x86_64_init_abi): Set convert_register_p, register_to_value and
2409 value_to_register here.
2410
2411 2003-06-14 Andrew Cagney <cagney@redhat.com>
2412
2413 * mips-tdep.c (mips_register_to_value): Make static.
2414 (mips_value_to_register): Make static.
2415 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2416 * ia64-tdep.c (ia64_register_raw_size): Make static.
2417 (ia64_register_virtual_size): Make static.
2418 (ia64_register_byte): Make static.
2419 * i387-tdep.c: Include "i387-tdep.h".
2420 (print_387_control_word): Delete function.
2421 (print_387_status_word): Delete function.
2422 (print_387_status_bits): Delete function.
2423 (print_387_control_bits): Delete function.
2424 * Makefile.in (i387-tdep.o): Update dependencies.
2425 * rdi-share/host.h (Fail): Declare.
2426 * remote-rdi.c (Fail): Update to match declaration.
2427
2428 2003-06-14 Andrew Cagney <cagney@redhat.com>
2429
2430 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2431 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2432 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2433 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2434 * README: Delete reference to remote-array.
2435 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2436 (remote-array.o): Delete target.
2437 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2438 * remote-array.c: Delete file.
2439
2440 2003-06-14 Andrew Cagney <cagney@redhat.com>
2441 Mark Kettenis <kettenis@gnu.org>
2442
2443 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2444 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2445 parameter with "frame".
2446 * gdbarch.h, gdbarch.c: Re-generate.
2447 * frame.h (put_frame_register): Declare.
2448 * frame.c (put_frame_register): New function.
2449 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2450 (legacy_register_to_value): Rewrite, use "frame" to get the
2451 register value.
2452 (legacy_value_to_register): Rewrite, use "frame" to find the
2453 register's location before storing.
2454 * arch-utils.h (legacy_convert_register_p): Update.
2455 (legacy_register_to_value, legacy_value_to_register): Update.
2456 * findvar.c (value_from_register): Rewrite, eliminate use of
2457 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2458 "frame" to REGISTER_TO_VALUE.
2459 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2460 lval_reg_frame_relative + lval_register branch of the switch. Do
2461 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2462 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2463 I386_EDI_REGNUM): New defines.
2464 (i386_next_regnum, i386_convert_register_p,
2465 i386_register_to_value, i386_value_to_register): New functions.
2466 (i386_register_convertible, i386_register_convert_to_virtual,
2467 i386_convert_to_raw): Remove functions.
2468 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2469 value_to_register instead of register_convertible,
2470 register_convert_to_virtual and register_convert_to_raw.
2471 * mips-tdep.c (mips_convert_register_p): New function.
2472 (mips_value_to_register): Replace mips_register_convert_from_type.
2473 (mips_register_to_value): Replace mips_register_convert_to_type.
2474 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2475 register_to_value.
2476 * alpha-tdep.c (alpha_convert_register_p): Update.
2477 (alpha_value_to_register): Update, store the register.
2478 (alpha_register_to_value): Update, fetch the register.
2479
2480 2003-06-14 Theodore A. Roth <troth@openavr.org>
2481
2482 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2483 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2484 Don't set deprecated_call_dummy_words.
2485 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2486 Don't set remote_translate_xfer_address.
2487 (avr_io_reg_read_command): Remove commented out debug printf.
2488 Wrap a long line.
2489
2490 2003-06-14 Theodore A. Roth <troth@openavr.org>
2491
2492 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2493 causes gdb to seg fault.
2494
2495 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
2496
2497 * sparc-nat.c (fetch_inferior_registers): Correct
2498 a reference to "registers".
2499
2500 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2501
2502 * Makefile.in (exc_request_U_h): Define
2503 (exc_request_S_h): Likewise.
2504 (msg_reply_S_h): Likewise.
2505 (msg_U_h): Likewise.
2506 (notify_S_h): Likewise.
2507 (process_reply_S_h): Likewise.
2508 (gnu-nat.o): Depend on gdb_obstack_h
2509 * gnu-nat.c: Include "gdb_obstack.h".
2510
2511 2003-06-13 Andrew Cagney <cagney@redhat.com>
2512
2513 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2514 * gdbarch.h, gdbarch.c: Re-generate.
2515
2516 2003-06-13 Andrew Cagney <cagney@redhat.com>
2517
2518 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2519 when deprecated REGISTER macros can be deleted.
2520 * gdbarch.h, gdbarch.c: Re-generate.
2521
2522 2003-06-13 Jim Blandy <jimb@redhat.com>
2523
2524 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2525 Linux entry point symbols for _dl_debug_state, too.
2526
2527 2003-06-13 Andrew Cagney <cagney@redhat.com>
2528
2529 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2530 available, do not use the FP register, and always save the TOS.
2531 * dummy-frame.c (dummy_frame_this_id): Do not assert
2532 SAVE_DUMMY_FRAME_TOS.
2533 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2534 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2535 (i386_push_dummy_call): Add 8 to the returned SP.
2536 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2537 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2538 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2539 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2540 (x86_64_push_dummy_call): Return "sp + 16".
2541 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2542 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2543 save_dummy_frame_tos.
2544
2545 2003-06-13 Jim Blandy <jimb@redhat.com>
2546
2547 * frv-tdep.c (frv_use_struct_convention): Delete static
2548 declaration for function deleted in my change of 2003-06-12.
2549
2550 2003-06-13 Theodore A. Roth <troth@openavr.org>
2551
2552 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2553 (avr_pointer_to_address): Shift code addrs left 1 bit.
2554 (avr_convert_from_func_ptr_addr): Delete function since operation is
2555 better handled by avr_address_to_pointer and avr_pointer_to_address.
2556 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2557
2558 2003-06-13 Mark Kettenis <kettenis@gnu.org>
2559
2560 From Kelley Cook <kelleycook@wideopenwest.com>:
2561 * configure.host: Accept i[34567]86 variants.
2562 * configure.tgt: Likewise.
2563 * nlm/configure.in: Likewise.
2564 * nlm/configure: Regenerated.
2565
2566 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2567
2568 * arm-tdep.c (solib-svr4.h): Dont' include it.
2569 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2570 * arm-linux-tdep.c: ... here. Make static.
2571 (arm_linux_init_abi): Register it.
2572 (solib-svr4.h): Include it.
2573 * Makefile.in: Update dependencies.
2574 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2575 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2576
2577 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2578
2579 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2580 indicate registers used for return values.
2581 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2582 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2583 members.
2584 (h8300_init_extra_frame_info): Ditto.
2585 (h8300_frame_locals_address): Removed.
2586 (h8300_frame_args_address): Removed.
2587 (h8300_extract_return_value): Use new regcache structure. Only care
2588 for 16 bit CPUs.
2589 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2590 (h8300_store_return_value): Use new regcache structure. Only care
2591 for 16 bit CPUs.
2592 (h8300h_store_return_value): Same function for 32 bit CPUs.
2593 (h8300_store_struct_return): Removed.
2594 (h8300_extract_struct_value_address): Use new regcache structure.
2595 (h8300h_extract_struct_value_address): Removed.
2596 (h8300_push_dummy_code): New function.
2597 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2598 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2599 set_gdbarch_store_return_value architecture dependent.
2600 Call set_gdbarch_push_dummy_code and
2601 set_gdbarch_extract_struct_value_address.
2602 Remove calls to set_gdbarch_frame_args_address,
2603 set_gdbarch_frame_locals_address,
2604 set_gdbarch_deprecated_store_struct_return,
2605 set_gdbarch_deprecated_extract_return_value,
2606 set_gdbarch_deprecated_extract_struct_value_address,
2607 set_gdbarch_deprecated_call_dummy_words and
2608 set_gdbarch_deprecated_sizeof_call_dummy_words.
2609
2610 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2611
2612 * h8300-tdep.c (h8300_register_byte): Remove.
2613 (h8300h_register_byte): Remove.
2614 (h8300_register_virtual_type): Remove. Substitute by...
2615 (h8300_register_type): New function.
2616 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2617 (h8300h_extract_struct_value_address): Ditto.
2618 (h8300_gdbarch_init): Drop calls to
2619 set_gdbarch_deprecated_register_byte and
2620 set_gdbarch_deprecated_register_virtual_type.
2621 Add call to set_gdbarch_register_type.
2622
2623 2003-06-13 Andrew Cagney <cagney@redhat.com>
2624
2625 * gdbarch.sh: Update comments on registers.
2626 (deprecated_register_byte): Rename register_byte.
2627 (deprecated_register_raw_size): Rename register_raw_size.
2628 (deprecated_register_virtual_size): Rename register_virtual_size.
2629 (deprecated_register_virtual_type): Rename register_virtual_type.
2630 * gdbarch.h, gdbarch.c: Re-generate.
2631 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2632 * vax-tdep.c (vax_gdbarch_init): Update.
2633 * v850-tdep.c (v850_gdbarch_init): Update.
2634 * sparc-tdep.c (sparc_gdbarch_init): Update.
2635 * sh-tdep.c (sh_gdbarch_init): Update.
2636 * s390-tdep.c (s390_gdbarch_init): Update.
2637 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2638 * ns32k-tdep.c: Update.
2639 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2640 * mips-tdep.c (mips_gdbarch_init): Update.
2641 * mcore-tdep.c (mcore_gdbarch_init): Update.
2642 * m68k-tdep.c (m68k_gdbarch_init): Update.
2643 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2644 * ia64-tdep.c (ia64_gdbarch_init): Update.
2645 * hppa-tdep.c (hppa_gdbarch_init): Update.
2646 * h8300-tdep.c (h8300_gdbarch_init): Update.
2647 * frv-tdep.c (frv_gdbarch_init): Update.
2648 * cris-tdep.c (cris_gdbarch_init): Update.
2649 * avr-tdep.c (avr_gdbarch_init): Update.
2650 * alpha-tdep.c (alpha_gdbarch_init): Update.
2651 * arm-tdep.c (arm_gdbarch_init): Update.
2652
2653 2003-06-13 Andrew Cagney <cagney@redhat.com>
2654
2655 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2656 mips_o32_use_struct_convention with always_use_struct_convention.
2657
2658 2003-06-12 David Carlton <carlton@kealia.com>
2659
2660 * cp-namespace.c (cp_set_block_scope): Comment out
2661 processing_has_namespace_info branch.
2662
2663 2003-06-12 Jim Blandy <jimb@redhat.com>
2664
2665 Recognize and skip 64-bit PowerPC Linux linkage functions.
2666 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2667 insn_pattern, insns_match_pattern, d_field, ds_field): New
2668 functions, macros, and types for working with PPC instructions.
2669 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2670 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2671 ppc64_skip_trampoline_code): New functions, variables, and macros
2672 for recognizing and skipping linkage functions.
2673 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2674 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2675
2676 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2677 register offsets for both the 32- and 64-bit interfaces.
2678
2679 Actually finish the job started by my change of 2003-05-29.
2680 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2681 other #definition of this.
2682 (ppc_linux_skip_trampoline_code): Remove declaration.
2683 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2684 static.
2685 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2686 method for GDBARCH.
2687
2688 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2689 'long' on ppc64-*-linux*.
2690
2691 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2692 isn't #defined, assume the register doesn't exist: act as if
2693 tdep->ppc_mq_regnum were -1.
2694
2695 * configure.host, configure.tgt: Add entries for
2696 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2697 powerpc/linux.mt.
2698 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2699 New files.
2700
2701 * arch-utils.c (always_use_struct_convention): New function.
2702 * arch-utils.h (always_use_struct_convention): New prototype.
2703 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2704 (alpha_gdbarch_init): Register always_use_struct_convention,
2705 instead of alpha_use_struct_convention.
2706 * cris-tdep.c (cris_use_struct_convention): Delete.
2707 (cris_gdbarch_init): Register always_use_struct_convention,
2708 instead of cris_use_struct_convention.
2709 * frv-tdep.c (frv_use_struct_convention): Delete.
2710 (frv_gdbarch_init): Register always_use_struct_convention,
2711 instead of frv_use_struct_convention.
2712 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2713 (h8300_gdbarch_init): Register always_use_struct_convention,
2714 instead of h8300_use_struct_convention.
2715 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
2716 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2717 instead of mips_o32_use_struct_convention.
2718
2719 2003-06-12 Andrew Cagney <cagney@redhat.com>
2720
2721 * wince.c: Include "mips-tdep.h".
2722 * mips-tdep.h (mips_next_pc): Declare.
2723 * mcore-tdep.c: Make more local functions static.
2724 * Makefile.in (wince.o): Update dependencies.
2725
2726 2003-06-12 David Carlton <carlton@kealia.com>
2727
2728 * symtab.c (lookup_symbol_aux_minsyms): Replace
2729 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2730 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2731 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2732 SYMBOL_NATURAL_NAME.
2733
2734 2003-06-12 Andreas Schwab <schwab@suse.de>
2735
2736 * Makefile.in (tuiDisassem.o): Update dependencies.
2737
2738 2003-06-12 David Carlton <carlton@bactrian.org>
2739
2740 * symtab.h: Delete declaration of make_symbol_overload_list.
2741 Add declaration of lookup_partial_symbol.
2742 * symtab.c (remove_params): Move to cp-support.c.
2743 (overload_list_add_symbol, make_symbol_overload_list)
2744 (sym_return_val_size, sym_return_val_index): Ditto.
2745 (lookup_partial_symbol): Make extern.
2746 * cp-support.h: Add declaration of make_symbol_overload_list.
2747 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2748 symtab.h, and block.h.
2749 (remove_params): Move here from symtab.c.
2750 (overload_list_add_symbol, make_symbol_overload_list)
2751 (sym_return_val_size, sym_return_val_index): Ditto.
2752 * valops.c: Include cp-support.h.
2753 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2754 frame_h, and block_h.
2755 (valops.o): Depend on cp_support_h.
2756
2757 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
2758
2759 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2760 substitute by NUM_REGS throughout.
2761 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2762 (h8300s_register_name): New function for H8S registers.
2763 (h8300sx_register_name): Ditto for H8SX registers.
2764 (h8300_print_register): Revise register printing, avoid depending
2765 on 32 bit long.
2766 (h8300_register_byte): Only care for H8/300 registers.
2767 (h8300h_register_byte): New function for any other architecture.
2768 (h8300_register_raw_size): Remove.
2769 (h8300_register_virtual_type): Revise to return actually useful
2770 type.
2771 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2772 (h8300h_extract_struct_value_address): New function for any other
2773 architecture.
2774 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2775 set_gdbarch_register_name, set_gdbarch_register_byte,
2776 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2777 Remove calls to set_gdbarch_deprecated_register_size,
2778 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2779 set_gdbarch_deprecated_max_register_raw_size,
2780 set_gdbarch_register_virtual_size and
2781 set_gdbarch_deprecated_max_register_virtual_size entirely.
2782 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2783 set_gdbarch_long_double_bit.
2784
2785 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2786
2787 * doublest.c (convert_doublest_to_floatformat): When dealing
2788 with the implied integer bit, only alter mant_bits if we are
2789 processing a full 32 bits of mantissa.
2790
2791 2003-06-11 David Carlton <carlton@bactrian.org>
2792
2793 * dictionary.h: New.
2794 * dictionary.c: New.
2795 * block.h: Add opaque declaration for struct dictionary.
2796 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2797 'sym' members.
2798 (BLOCK_DICT): New macro.
2799 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2800 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2801 BLOCK_SHOULD_SORT.
2802 (ALL_BLOCK_SYMBOLS): Update definition.
2803 * Makefile.in (SFILES): Add dictionary.c.
2804 (dictionary_h): New.
2805 (COMMON_OBS): Add dictionary.o.
2806 (dictionary.o): New.
2807 (ada-lang.o): Depend on dictionary_h.
2808 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
2809 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
2810 (mi-cmd-stack.o): Ditto.
2811 (gdbtk-cmds.o): Update dependencies.
2812 (gdbtk-stack.o): Ditto.
2813 * ada-lang.c: Include dictionary.h.
2814 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
2815 (fill_in_ada_prototype, debug_print_block): Ditto.
2816 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
2817 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
2818 'is_sorted'.
2819 * mdebugread.c: Include dictionary.h.
2820 (struct parse_stack): Delete 'maxsyms' member.
2821 (parse_symbol): Update calls to new_block. Delete calls to
2822 shrink_block. Use dictionary methods.
2823 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
2824 Update calls to new_symtab. Don't maintain maxsyms data.
2825 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
2826 (add_symbol): Just call dict_add_symbol.
2827 (new_symtab): Delete 'maxsyms' argument.
2828 (new_symtab): Update calls to new_block.
2829 (new_block): Delete 'maxsyms' argument; add 'function' argument.
2830 (shrink_block): Delete function.
2831 (fixup_sigtramp): Update call to new_block. Add symbol via
2832 dict_add_symbol.
2833 * jv-lang.c: Include dictionary.h.
2834 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
2835 appropriately. Set class_symtab->free_func. Make sure the
2836 blockvector is big enough to hold two blocks.
2837 (add_class_symtab_symbol): Use dictionary methods.
2838 (free_class_block): New function.
2839 (type_from_class): Replace explicit iteration by
2840 ALL_BLOCK_SYMBOLS.
2841 * symtab.h (struct symtab): Replace 'free_ptr' method by
2842 'free_func'.
2843 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
2844 sort_symtab_syms.
2845 * dwarfread.c (psymtab_to_symtab_1): Delete call to
2846 sort_symtab_syms.
2847 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
2848 Include dictionary.h.
2849 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
2850 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
2851 sort_symtab_syms.
2852 * objfiles.c: Include dictionary.h.
2853 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
2854 * buildsym.c: Include dictionary.h.
2855 (finish_block): Use dictionary methods.
2856 (end_symtab): Set free_func to NULL, not free_ptr.
2857 * tracepoint.c: Include dictionary.h.
2858 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
2859 (scope_info): Ditto.
2860 * stack.c: Include dictionary.h.
2861 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
2862 (print_block_frame_labels, print_frame_arg_vars)
2863 (print_frame_args): Ditto.
2864 * symmisc.c (free_symtab_block): Use dictionary methods.
2865 (dump_symtab): Ditto.
2866 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
2867 Include dictionary.h.
2868 * symfile.h: Delete declarations of sort_block_syms,
2869 sort_symtab_syms.
2870 * symfile.c (sort_block_syms): Delete.
2871 (sort_symtab_syms): Delete.
2872 * symtab.c: Include dictionary.h.
2873 (lookup_block_symbol): Use dictionary iterators.
2874 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
2875 (search_symbols, make_symbol_completion_list): Ditto.
2876 (make_symbol_overload_list): Ditto.
2877 * valops.c (value_of_local): Use dict_empty.
2878 Include dictionary.h.
2879
2880 2003-06-11 J. Brobecker <brobecker@gnat.com>
2881
2882 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
2883
2884 2003-06-11 David Carlton <carlton@bactrian.org>
2885
2886 * block.h (BLOCK_SHOULD_SORT): Delete.
2887 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
2888 blocks.
2889 * ada-lang.c (ada_add_block_symbols): Ditto.
2890 * symfile.c (sort_block_syms): Delete.
2891 (sort_symtab_syms): Ditto.
2892 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
2893 declarations.
2894 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
2895 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
2896 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
2897 * dwarfread.c (psymtab_to_symtab_1): Ditto.
2898 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
2899 * mdebugread.c (psymtab_to_symtab_1): Ditto.
2900 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2901
2902 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2903
2904 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
2905 bits to 128.
2906
2907 2003-06-11 Andrew Cagney <cagney@redhat.com>
2908
2909 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2910 REGISTER_CONVERTIBLE.
2911 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
2912 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
2913 * gdbarch.h, gdbarch.c: Re-generate.
2914 * arch-utils.h (deprecated_register_convertible_not): Rename
2915 generic_register_convertible_not.
2916 * arch-utils.c (deprecated_register_convertible_not): Rename
2917 generic_register_convertible.
2918 (legacy_convert_register_p, legacy_register_to_value): Update.
2919 * sh-tdep.c (sh64_push_arguments): Update.
2920 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
2921 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
2922 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
2923 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
2924 * arch-utils.c (legacy_value_to_register): Update.
2925 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2926 (rs6000_register_convert_to_raw): Make parameter "from" const.
2927 * mips-tdep.c (mips_gdbarch_init): Update.
2928 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
2929 * infcmd.c (default_print_registers_info): Update.
2930 * ia64-tdep.c (ia64_gdbarch_init): Update.
2931 (ia64_register_convert_to_raw): Make parameter "from" const.
2932 * i386-tdep.c (i386_gdbarch_init): Update.
2933 (i386_register_convert_to_raw): Update.
2934
2935 2003-06-11 Andrew Cagney <cagney@redhat.com>
2936
2937 * remote-fileio.c: Include "remote-fileio.h".
2938 * Makefile.in (remote-fileio.o): Update dependencies.
2939 (remote_fileio_h): Fix typo.
2940
2941 2003-06-11 Andrew Cagney <cagney@redhat.com>
2942
2943 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
2944 (xstormy16_save_dummy_frame_tos): Make static.
2945 (_initialize_xstormy16_tdep): Add declaration.
2946 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
2947 * v850-tdep.c: Make local functions static.
2948 (_initialize_v850_tdep): Add declaration.
2949 * sparc-tdep.c: Make local functions static.
2950 (_initialize_sparc_tdep): Add declaration.
2951 * sh-tdep.c: Make local functions static.
2952 (_initialize_sh_tdep): Add declaration.
2953 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
2954 * s390-tdep.c: Make local functions static.
2955 (_initialize_s390_tdep): Add declaration.
2956 * dbxread.c (find_stab_function_addr): Make static.
2957 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
2958 * ocd.c (_initialize_remote_ocd): Add declaration.
2959 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
2960 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
2961 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
2962 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
2963 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
2964 * remote-array.c (_initialize_array): Add declaration.
2965 (_initialize_remote_monitors): Add declaration.
2966 * remote-mips.c: Make local functions static.
2967 (_initialize_remote_mips): Add declaration.
2968 * mcore-tdep.c: Make all local functions static.
2969 (_initialize_mcore_tdep): Add declaration.
2970 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
2971 * abug-rom.c (_initialize_abug_rom): Add declaration.
2972 * rom68k-rom.c (_initialize_rom68k): Add declaration.
2973 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
2974 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
2975 * remote-est.c (_initialize_est): Add declaration.
2976 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
2977 (m68hc11_call_dummy_address): Make static.
2978 * ia64-tdep.c: Make local functions static.
2979 (_initialize_ia64_tdep): Add declaration.
2980 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
2981 * monitor.c (monitor_wait_filter): Make static.
2982 (_initialize_remote_monitors): Add declaration.
2983 * remote-hms.c (_initialize_remote_hms): Add declaration.
2984 * remote-e7000.c (fetch_regs_from_dump): Make static.
2985 (expect_n): Make static.
2986 (_initialize_remote_e7000): Add declaration.
2987 * ser-e7kpc.c: Always include "defs.h".
2988 (_initialize_ser_e7000pc): Add declaration.
2989 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
2990 * cris-tdep.c: Make all but one function static.
2991 (_initialize_cris_tdep): Add declaration.
2992 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
2993 * solib.c (update_solib_list): Make static.
2994 (_initialize_solib): Add declaration.
2995 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
2996 (_initialize_avr_tdep): Add declaration.
2997 * remote-rdi.c (voiddummy): Make static.
2998 (_initialize_remote_rdi): Add declaration.
2999 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3000 * remote-rdp.c (send_rdp): Make static.
3001 (_initialize_remote_rdp): Add declaration.
3002 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3003
3004 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
3005
3006 * remote-fileio.c: Make ari happy.
3007
3008 2003-06-10 J. Brobecker <brobecker@gnat.com>
3009
3010 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3011 fetching the trailing bytes of the buffer we are about to write.
3012
3013 2003-06-10 Andrew Cagney <cagney@redhat.com>
3014
3015 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3016 * Makefile.in (remote-fileio.o): Update dependencies.
3017 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3018 include <setjmp.h>, or <sys/types.h> conditional on USG.
3019 (remote_fio_jmp_buf): Delete global variable.
3020
3021 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
3022 Martin M. Hunt <hunt@redhat.com>
3023
3024 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3025 (SFILES): Add remote-fileio.c.
3026 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3027 dependencies for building remote.o.
3028 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3029 * remote-fileio.h: New header file defining remote File-I/O interface.
3030 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3031 static storage class.
3032 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3033 'F' packet.
3034 (_initialize_remote): Call initialize_remote_fileio().
3035 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3036 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3037 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3038 (captured_main): Initialize new ui_files.
3039 * ui-file.c: Add read and fgets input functions.
3040 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3041 (null_file_read): New function.
3042 (ui_file_read): New function.
3043 (set_ui_file_read): New function.
3044 (stdio_file_read): New function.
3045 * ui-file.h: New type ui_file_read_ftype.
3046 (set_ui_file_read): Declare.
3047 (ui_file_read): Declare.
3048
3049 2003-06-09 Andrew Cagney <cagney@redhat.com>
3050
3051 * frame.h (deprecated_unwind_get_saved_register): Rename
3052 generic_unwind_get_saved_register, update comments.
3053 * mips-tdep.c (mips_get_saved_register): Update.
3054 * frame.c (deprecated_unwind_get_saved_register): Update.
3055
3056 2003-06-09 Andrew Cagney <cagney@redhat.com>
3057
3058 * vax-tdep.c (vax_frame_locals_address): Delete function.
3059 (vax_gdbarch_init): Do not set frame_locals_address.
3060 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3061 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3062 * s390-tdep.c (s390_frame_args_address): Delete function.
3063 (s390_gdbarch_init): Do not set frame_args_address or
3064 frame_locals_address.
3065 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3066 (ns32k_gdbarch_init): Do not set frame_locals_address.
3067 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3068 (hppa_frame_locals_address): Delete function.
3069 (hppa_gdbarch_init): Do not set frame_args_address, or
3070 frame_locals_address.
3071 * arm-tdep.c (arm_frame_args_address): Delete.
3072 (arm_frame_locals_address): Delete.
3073 (arm_gdbarch_init): Do not set frame_args_address, or
3074 frame_locals_address.
3075
3076 2003-06-09 Andrew Cagney <cagney@redhat.com>
3077
3078 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3079 * gdbarch.h, gdbarch.c: Re-generate.
3080 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3081 * arch-utils.c (frame_num_args_unknown): Delete function.
3082 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3083 (frame_info): Use FRAME_NUM_ARGS_P.
3084 * arm-tdep.c (arm_frame_num_args): Delete function.
3085 (arm_gdbarch_init): Do not set frame_num_args.
3086 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3087 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3088 (hppa_gdbarch_init): Do not set frame_num_args.
3089 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3090 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3091 frame_num_args to default frame_num_args_unknown.
3092 * v850-tdep.c (v850_gdbarch_init): Ditto.
3093 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3094 * sh-tdep.c (sh_gdbarch_init): Ditto.
3095 * s390-tdep.c (s390_gdbarch_init): Ditto.
3096 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3097 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3098 * mips-tdep.c (mips_gdbarch_init): Ditto.
3099 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3100 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3101 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3102 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3103 * i386-tdep.c (i386_gdbarch_init): Ditto.
3104 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3105 * frv-tdep.c (frv_gdbarch_init): Ditto.
3106 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3107 * cris-tdep.c (cris_gdbarch_init): Ditto.
3108 * avr-tdep.c (avr_gdbarch_init): Ditto.
3109 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3110
3111 2003-06-09 Andrew Cagney <cagney@redhat.com>
3112
3113 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3114 (print_frame_args): Moved to "stack.c".
3115 * stack.c: Include "gdb_assert.h".
3116 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3117 (print_frame_args): Moved from "printcmd.c".
3118 * frame.h (print_frame_args): Delete declaration.
3119 * Makefile.in (stack.o): Update dependencies.
3120
3121 2003-06-08 Andrew Cagney <cagney@redhat.com>
3122
3123 * frame.c (get_prev_frame): Remove reference to
3124 frame_args_address_correct in comments.
3125 * frame-base.c (default_frame_args_address): Delete code
3126 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3127 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3128 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3129 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3130 (vax_frame_args_address_correct): Delete declaration.
3131
3132 2003-06-08 Andrew Cagney <cagney@redhat.com>
3133
3134 * gdbarch.sh (UNWIND_SP): Add.
3135 * gdbarch.h, gdbarch.c: Re-generate.
3136 * frame.c (frame_sp_unwind): New function.
3137 (get_frame_sp): New function.
3138 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3139 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3140 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3141 value.
3142 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3143 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3144
3145 2003-06-08 Andrew Cagney <cagney@redhat.com>
3146
3147 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3148 REMOTE_BREAKPOINT.
3149 * remote.c: Update.
3150 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3151 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3152 * config/m68k/tm-sun3.h: Update.
3153 * config/m68k/tm-m68klynx.h: Update.
3154 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3155
3156 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3157 trad_frame". Update comments.
3158 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3159 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3160 (trad_frame_register_value, trad_frame_prev_register): Update.
3161
3162 2003-06-08 Andrew Cagney <cagney@redhat.com>
3163
3164 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3165 from GCC's acinclude.m4.
3166 * configure.in: Check for getopt's delcaration.
3167 * aclocal.m4, config.in, configure: Re-generate.
3168 * main.c (error_init): Delete declaration.
3169 * defs.h (error_init): Declare.
3170 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3171 (rs6000_convert_from_func_ptr_addr): Make static.
3172 (_initialize_rs6000_tdep): Add declaration.
3173 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3174 (show_commands, set_verbose, show_history): Delete declaration.
3175 * top.h (set_verbose): Add declaration.
3176 (show_history, set_history, show_commands): Add declaration.
3177 (do_restore_instream_cleanup): Add declaration.
3178 * objc-lang.c (specialcmp): Make static.
3179 (print_object_command): Make static.
3180 (find_objc_msgsend): Make static.
3181 (find_objc_msgcall_submethod_helper): Make static.
3182 (find_objc_msgcall_submethod): Make static.
3183 (_initialize_objc_language): Add declaration.
3184 (find_implementation_from_class): Make static.
3185 (find_implementation): Make static.
3186 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3187 * objc-lang.h (lookup_struct_typedef): Add declaration.
3188 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3189 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3190 (do_restore_user_call_depth): Make static.
3191 (do_restore_instream_cleanup): Delete declaration.
3192 (dont_repeat): Delete declaration.
3193 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3194 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3195 * reggroups.c (_initialize_reggroup): Add declaration.
3196 * cp-support.c (_initialize_cp_support): Add declaration.
3197 * cp-abi.c (_initialize_cp_abi): Add declaration.
3198 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3199 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3200 (_initialize_gnu_v3_abi): Add declaration.
3201 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3202 (_initialize_gnu_v2_abi): Add declaration.
3203 * frame-base.c (_initialize_frame_base): Add declaration.
3204 * doublest.c (floatformat_from_length): Make static.
3205 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3206 * frame.c (create_sentinel_frame): Make static.
3207 (_initialize_frame): Add declaration.
3208 * top.c (do_catch_errors): Make static.
3209 (gdb_rl_operate_and_get_next_completion): Make static.
3210 * typeprint.c: Include "typeprint.h".
3211 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3212 (sentinel_frame_this_id): Make static.
3213 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3214 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3215 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3216 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3217 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3218 * maint.c (maintenance_print_architecture): Make static.
3219 * signals/signals.c (_initialize_signals): Add declaration.
3220 * std-regs.c (_initialize_frame_reg): Add declaration.
3221 * jv-exp.y (push_variable): ISO C definition.
3222 (push_qualified_expression_name): Ditto.
3223 * memattr.c (_initialize_mem): Add declaration.
3224 * remote.c (remote_check_watch_resources): Make static.
3225 (remote_stopped_by_watchpoint): Make static.
3226 (remote_stopped_data_address): Make static.
3227 * d10v-tdep.c (nr_dmap_regs): Make static.
3228 (a0_regnum): Make static.
3229 (d10v_frame_unwind_cache): Make static.
3230 (d10v_frame_p): Make static.
3231 * osabi.c (show_osabi): Make static.
3232 (_initialize_gdb_osabi): Add extern declaration.
3233 * gdbtypes.c (make_qualified_type): Make static.
3234 (safe_parse_type): Make static.
3235 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3236 * macrotab.c (macro_bcache_free): Make static.
3237 * interps.c (interp_set_quiet): Make static.
3238 (interpreter_exec_cmd): Make static.
3239 * stack.h (select_frame_command): New file.
3240 * stack.c: Include "stack.h".
3241 (select_frame_command_wrapper): Delete function.
3242 (select_frame_command): Make global.
3243 * infcall.c: Include "infcall.h".
3244 * linespec.c: Include "linespec.h".
3245 * symfile.c (sections_overlap): Make static.
3246 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3247 * charset.c (_initialize_charset): Add missing prototype.
3248 * regcache.c (init_legacy_regcache_descr): Make static.
3249 (do_regcache_xfree): Make static.
3250 (regcache_xfer_part): Make static.
3251 (_initialize_regcache): Add missing prototype.
3252 * breakpoint.c (parse_breakpoint_sals): Make static.
3253 (breakpoint_sals_to_pc): Make static.
3254 * interps.h (clear_interpreter_hooks): ISO C declaration.
3255 * Makefile.in (stack_h): Define.
3256 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3257 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3258
3259 2003-06-08 Andrew Cagney <cagney@redhat.com>
3260
3261 * Makefile.in (d10v-tdep.o): Update dependencies.
3262 (SFILES): Add trad-frame.c.
3263 (trad_frame_h): Define.
3264 (COMMON_OBS): Add trad-frame.o.
3265 (trad-frame.o): Specify dependencies.
3266 * d10v-tdep.c: Include "trad-frame.h".
3267 (saved_regs_unwinder): Delete function.
3268 (d10v_frame_prev_register): Use trad_frame_prev_register.
3269 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3270 trad_frame", delete "regs" and "prev_sp".
3271 (prologue_find_regs): Use trad-frame.
3272 * trad-frame.h, trad-frame.c: New files.
3273
3274 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3275
3276 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3277
3278 2003-06-07 Adam Fedor <fedor@gnu.org>
3279
3280 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3281 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3282 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3283 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3284 resolve_msgsend_super, resolve_msgsend_super_stret):
3285 Use it.
3286
3287 2003-06-07 Andrew Cagney <cagney@redhat.com>
3288
3289 * symfile.h: Re-indent, clean up comments.
3290
3291 2003-06-07 Andrew Cagney <cagney@redhat.com>
3292
3293 * inferior.h (deprecated_write_sp): Replace
3294 generic_target_write_sp.
3295 * regcache.c (deprecated_write_sp): Replace
3296 generic_target_write_sp.
3297 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3298 * vax-tdep.c (vax_gdbarch_init): Update.
3299 * v850-tdep.c (v850_gdbarch_init): Update.
3300 * sparc-tdep.c (sparc_gdbarch_init): Update.
3301 * sh-tdep.c (sh_gdbarch_init): Update.
3302 * s390-tdep.c (s390_gdbarch_init): Update.
3303 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3304 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3305 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3306 * mcore-tdep.c (mcore_gdbarch_init): Update.
3307 * m68k-tdep.c (m68k_gdbarch_init): Update.
3308 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3309 * ia64-tdep.c (ia64_gdbarch_init): Update.
3310 * h8300-tdep.c (h8300_gdbarch_init): Update.
3311 * frv-tdep.c (frv_gdbarch_init): Update.
3312 * cris-tdep.c (cris_gdbarch_init): Update.
3313 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3314
3315 2003-06-07 Andrew Cagney <cagney@redhat.com>
3316
3317 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3318 Assert that PC_REGNUM is valid.
3319 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3320
3321 2003-06-07 Andrew Cagney <cagney@redhat.com>
3322
3323 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3324 * gdbarch.h, gdbarch.c: Regenerate.
3325 * mn10300-tdep.c: Include "gdb_assert.h".
3326 (mn10300_read_fp): New function.
3327 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3328 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3329 * ia64-tdep.c: Include "gdb_assert.h".
3330 (ia64_read_fp): New function.
3331 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3332 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3333 * regcache.c (generic_target_read_sp): Delete function.
3334 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3335 * inferior.h (generic_target_read_sp): Delete declaration.
3336 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3337 generic_target_read_sp.
3338 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3339 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3340 * sh-tdep.c (sh_gdbarch_init): Ditto.
3341 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3342 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3343
3344 2003-06-07 Andrew Cagney <cagney@redhat.com>
3345
3346 * gdbarch.sh: Comment each field of startup_gdbarch.
3347 * gdbarch.h, gdbarch.c: Re-generate.
3348
3349 2003-06-07 Andrew Cagney <cagney@redhat.com>
3350
3351 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3352 * gdbarch.h, gdbarch.c: Re-generate.
3353 * regcache.c: Update comments on read_pc et.al.
3354 (generic_target_read_pc): Delete function.
3355 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3356 * inferior.h (generic_target_read_pc): Delete declaration.
3357 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3358 generic_target_read_pc.
3359 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3360 * sh-tdep.c (sh_gdbarch_init): Ditto.
3361 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3362 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3363
3364 2003-06-07 Andrew Cagney <cagney@redhat.com>
3365
3366 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3367 "index" with "special_local_sect". Use strcmp instead of STREQ.
3368 Append period to coments.
3369
3370 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3371
3372 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3373 (elfstab_offset_sections): Likewise.
3374 * gdb-stabs.h (stab_section_info): Likewise.
3375 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3376 * objfiles.c (objfile_relocate): Likewise.
3377 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3378 * remote.c (get_offsets): Likewise.
3379 (remote_cisco_objfile_relocate): Likewise.
3380 * somread.c (som_symfile_offsets): Likewise.
3381 * symfile.c (alloc_section_addr_info): New function.
3382 (build_section_addr_info_from_section_tab): Use it.
3383 (free_section_addr_info): Adjust.
3384 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3385 (syms_from_objfile): Allocate local_addr dynamically.
3386 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3387 dynamically.
3388 (add_symbol_file_command): Allocate sect_opts dynamically.
3389 (reread_symbols): Avoid use of SECT_OFF_MAX.
3390 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3391 (alloc_section_addr_info): Declare it.
3392 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3393 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3394 dynamically.
3395 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3396
3397 2003-06-06 Andrew Cagney <cagney@redhat.com>
3398
3399 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3400 (d10v_frame_unwind_cache): Do not set "return_pc".
3401
3402 2003-06-06 Michael Snyder <msnyder@redhat.com>
3403
3404 * h8300-tdep.c: Make tidy (long lines).
3405
3406 2003-06-06 Michal Ludvig <mludvig@suse.cz>
3407
3408 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3409 to regcache_collect().
3410
3411 2003-06-05 J. Brobecker <brobecker@gnat.com>
3412
3413 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3414 pc_in_sigtramp multiarch method.
3415 (hppa_hpux_som_init_abi): Use it.
3416 (hppa_hpux_elf_init_abi): Likewise.
3417 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3418 macro has been multiarched.
3419 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3420 macro here, as hppa64 isn't multiarched yet.
3421
3422 2003-06-05 Andrew Cagney <cagney@redhat.com>
3423
3424 * Makefile.in (value_h): Add $(frame_h).
3425 * value.h: Include "frame.h".
3426 (struct value): Replace "frame_addr" with "frame_id".
3427 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3428 * values.c (allocate_value): Use VALUE_FRAME_ID.
3429 (value_copy): Use VALUE_FRAME_ID.
3430 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3431 * valops.c (value_assign): Update. Use frame_find_by_id.
3432
3433 2003-06-05 Michal Ludvig <mludvig@suse.cz>
3434
3435 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3436 in each pass.
3437
3438 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3439
3440 * thread-db.c (check_event): For create/death event breakpoints,
3441 loop through all messages to ensure that we read the message
3442 corresponding to the breakpoint we are at.
3443
3444 2003-06-04 Michael Snyder <msnyder@redhat.com>
3445
3446 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3447
3448 2003-06-04 Mark Kettenis <kettenis@gnu.org>
3449
3450 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3451 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3452 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3453 when handling .eh_frame sections.
3454
3455 2003-06-04 J. Brobecker <brobecker@gnat.com>
3456
3457 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3458 prepare_to_proceed procedure instead of the hppa-specific one.
3459 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3460
3461 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
3462
3463 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3464 * config.in: Regenerated.
3465 * configure.in: Add test for syscall function and check for
3466 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3467 * configure: Regenerated.
3468 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3469 <sys/syscall.h>.
3470 (kill_lwp): New function that uses tkill syscall or
3471 uses kill, depending on whether threading model is nptl or not.
3472 All callers of kill() changed to use kill_lwp().
3473 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3474 see if all threads have already exited in the nptl model.
3475 (stop_and_resume_callback): New callback function used by the
3476 lin_lwp_wait thread exit handling code.
3477 (stop_wait_callback): Check for threads already having exited and
3478 delete such threads fromt the lwp list when discovered.
3479 (stop_callback): Don't assert retcode of kill call.
3480
3481 Roland McGrath <roland@redhat.com>
3482 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3483 nptl libthread_db.
3484
3485 2003-06-03 Richard Henderson <rth@redhat.com>
3486
3487 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3488 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3489 (alpha_sigtramp_frame_prev_register): Likewise.
3490 (alpha_heuristic_frame_prev_register): Likewise.
3491 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3492
3493 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3494 alpha-specific register id names.
3495 (alpha_mdebug_frame_unwind_cache): Likewise.
3496 (alpha_mdebug_frame_prev_register): Likewise.
3497
3498 2003-06-03 Richard Henderson <rth@redhat.com>
3499
3500 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3501 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3502 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3503 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3504 unwind routines.
3505 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3506 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3507 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3508
3509 * alpha-linux-tdep.c: Remove unnecessary includes.
3510 * Makefile.in (alpha-linux-tdep.o): Update.
3511
3512 2003-06-03 Richard Henderson <rth@redhat.com>
3513
3514 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3515 (alphabsd_fill_fpreg): Likewise.
3516
3517 2003-06-03 J. Brobecker <brobecker@gnat.com>
3518
3519 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3520 references to struct frame_info fields by calls to the equivalent
3521 accessors. Necessary now that frame_info is opaque.
3522
3523 2003-06-03 J. Brobecker <brobecker@gnat.com>
3524
3525 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3526 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3527 structure, field no longer exists.
3528
3529 2003-06-03 J. Brobecker <brobecker@gnat.com>
3530
3531 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3532 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3533
3534 2003-06-03 J. Brobecker <brobecker@gnat.com>
3535
3536 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3537 references to struct frame_info fields by calls to the equivalent
3538 accessors. Necessary now that frame_info is opaque.
3539
3540 2003-06-03 J. Brobecker <brobecker@gnat.com>
3541
3542 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3543 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3544 structure, field no longer exists.
3545
3546 2003-06-03 Theodore A. Roth <troth@openavr.org>
3547
3548 * remote.c (init_remote_state): Compute sizeof_g_packet by
3549 accumulation of the size of all registers instead of blindly using
3550 DEPRECATED_REGISTER_BYTES.
3551
3552 2003-06-03 Michael Snyder <msnyder@redhat.com>
3553
3554 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3555 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3556 for h8300sx.
3557
3558 2003-06-03 J. Brobecker <brobecker@gnat.com>
3559
3560 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3561 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3562
3563 2003-06-03 Andrew Cagney <cagney@redhat.com>
3564
3565 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3566 (sparc_convert_to_raw): Delete function.
3567 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3568 register_convert_to_virtual.
3569
3570 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3571
3572 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3573 layer if not dealing with a statically-linked threaded program.
3574
3575 2003-06-03 Kris Warkentin <kewarken@qnx.com>
3576
3577 * solib.c (solib_open): Update comment to reflect actual search order.
3578
3579 2003-06-03 Andrew Cagney <cagney@redhat.com>
3580
3581 * frame.c (get_frame_memory_signed): New function.
3582 (get_frame_memory, get_frame_memory_unsigned): New function.
3583 (get_frame_arch): New function.
3584 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3585 (get_frame_memory, get_frame_unsigned_memory): Declare.
3586 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3587 get_frame_memory_unsigned and get_frame_arch.
3588 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3589
3590 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3591
3592 * MAINTAINERS (write after approval): Add myself.
3593
3594 2003-06-03 Jim Blandy <jimb@redhat.com>
3595
3596 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3597 elements of gregset_t are 64 bits each, but access registers
3598 are still 32 bits, so they're packed two per gregset_t
3599 element. Unpack/pack them properly.
3600
3601 2003-06-02 David Carlton <carlton@bactrian.org>
3602
3603 * linespec.c (find_methods): Break out code into
3604 add_matching_methods and add_constructors.
3605 (add_matching_methods): New.
3606 (add_constructors): Ditto.
3607
3608 2003-06-02 Andrew Cagney <cagney@redhat.com>
3609
3610 * sparc-tdep.c (sparc_print_registers): Delete call to
3611 REGISTER_CONVERTIBLE.
3612 (sparc_gdbarch_init): Do not set register_convertible.
3613 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3614 * frv-tdep.c (frv_gdbarch_init): Ditto.
3615 * cris-tdep.c (cris_gdbarch_init): Ditto.
3616
3617 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
3618
3619 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3620 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3621 (syms_from_objfile): Ditto.
3622
3623 2003-06-03 Andreas Schwab <schwab@suse.de>
3624
3625 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3626 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3627
3628 2003-06-02 Richard Henderson <rth@redhat.com>
3629
3630 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3631 a member of all_reggroup.
3632
3633 2003-06-02 Richard Henderson <rth@redhat.com>
3634
3635 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3636 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3637 (alpha_lds, alpha_sts): New.
3638 (alpha_convert_register_p): Change from _register_convertible.
3639 (alpha_register_to_value): Change from _convert_to_virtual;
3640 restructure and fail for type sizes other than 4 or 8.
3641 (alpha_value_to_register): Similarly.
3642 (alpha_extract_return_value): Use alpha_sts.
3643 (alpha_store_return_value): Use alpha_lds.
3644 (alpha_gdbarch_init): Update hooks.
3645
3646 2003-06-02 Richard Henderson <rth@redhat.com>
3647
3648 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3649 regnum identifiers.
3650 (alpha_sigtramp_register_address): Likewise.
3651
3652 2003-06-02 Richard Henderson <rth@redhat.com>
3653
3654 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3655 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3656 * alpha-tdep.h: Declare them.
3657
3658 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3659 Remove zerobuf. Don't error on UNIQUE.
3660 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3661 (ALPHA_REGSET_UNIQUE): Provide default.
3662 (supply_gregset): Use alpha_supply_int_regs.
3663 (fill_gregset): Use alpha_fill_int_regs.
3664 (supply_fpregset): Use alpha_supply_fp_regs.
3665 (fill_fpregset): Use alpha_fill_fp_regs.
3666 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3667 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3668 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3669 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3670 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3671 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3672
3673 2003-06-02 Richard Henderson <rth@redhat.com>
3674
3675 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3676
3677 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3678 (alpha_store_return_value): Likewise.
3679
3680 2003-06-02 David Carlton <carlton@math.stanford.edu>
3681
3682 * block.c (contained_in): Add 'const' to arguments.
3683 (block_function): Ditto.
3684 * block.h: Update declarations for block_function and
3685 contained_in.
3686
3687 2003-06-02 David Carlton <carlton@math.stanford.edu>
3688
3689 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3690 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3691 * p-valprint.c (pascal_val_print): Ditto.
3692 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3693
3694 2003-06-02 Richard Henderson <rth@redhat.com>
3695
3696 * alpha-tdep.c (alpha_push_dummy_call): Use
3697 builtin_type_ieee_double_little instead of builtin_type_double.
3698
3699 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
3700 sign-extension of 32-bit values.
3701 (alpha_store_return_value): Similarly.
3702
3703 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3704 (alpha_extract_return_value): Likewise.
3705 (alpha_store_return_value): Likewise.
3706
3707 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3708 (alpha_store_return_value): Error on IEEE Quad floats.
3709
3710 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3711 (alpha_extract_struct_value_address): Likewise.
3712 (alpha_store_return_value): Likewise.
3713 (alpha_store_struct_return): Remove.
3714 (alpha_gdbarch_init): Update hook registration to match.
3715
3716 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3717 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3718 macros where appropriate.
3719 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3720 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
3721
3722 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3723 for SP, GP; void_func_ptr for PC; non-language-specific types
3724 for all others.
3725 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
3726
3727 2003-06-02 Richard Henderson <rth@redhat.com>
3728
3729 * top.h (lim_at_start): Declare.
3730 * main.c (captured_main): Set it.
3731 * top.c (lim_at_start): Define.
3732 (command_loop): Use it instead of &environ.
3733 * event-top.c (command_handler): Likewise.
3734
3735 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3736
3737 * mipsnbsd-tdep.c: Update copyright years.
3738 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3739
3740 2003-06-01 Richard Henderson <rth@redhat.com>
3741
3742 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3743 (alpha-linux-tdep.o): Update dependencies.
3744 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3745 * alpha-mdebug-tdep.c: Remove unneeded includes.
3746
3747 2003-06-01 Richard Henderson <rth@redhat.com>
3748
3749 * alpha-tdep.c (alpha_register_reggroup_p): New.
3750 (alpha_gdbarch_init): Register it.
3751
3752 2003-06-02 Andrew Cagney <cagney@redhat.com>
3753
3754 * dwarfread.c: Eliminate "register"
3755 (decode_die_type): Eliminate assignment within "if".
3756 (struct_type, decode_array_element_type): Ditto.
3757 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3758 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3759 (decode_modified_type, completedieinfo): Ditto.
3760 * block.c: Eliminate "register".
3761 (blockvector_for_pc_sect): Eliminate assignment within "if".
3762 * cp-support.h (struct symbol): Opaque declaration.
3763 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3764
3765 2003-06-01 Richard Henderson <rth@redhat.com>
3766
3767 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3768 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
3769
3770 2003-06-01 Adam Fedor <fedor@gnu.org>
3771
3772 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3773 * gdbarch.[ch]: Regenerate.
3774 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3775 (hppa_gdbarch_init): Set it in the gdbarch vector.
3776 * i386-tdep.c (i386_fetch_pointer_argument): New
3777 (i386_gdbarch_init): Set it into gdbarch.
3778 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3779 (rs6000_gdbarch_init): Set it in gdbarch.
3780 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3781 (sparc_gdbarch_init): Set it in gdbarch.
3782
3783 2003-06-01 Andrew Cagney <cagney@redhat.com>
3784
3785 * defs.h (extract_address): Delete declaration.
3786 * findvar.c (extract_address): Delete function.
3787 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3788 extract_address with the inline equivalent,
3789 extract_unsigned_integer.
3790 (xstormy16_extract_struct_value_address): Ditto.
3791 (xstormy16_pointer_to_address): Ditto.
3792 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3793 * v850-tdep.c (v850_push_arguments): Ditto.
3794 (v850_extract_return_value): Ditto.
3795 (v850_extract_struct_value_address): Ditto.
3796 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3797 (sparcnbsd_get_longjmp_target_64): Ditto.
3798 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3799 (get_longjmp_target): Ditto.
3800 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3801 (sh64_extract_struct_value_address): Ditto.
3802 (sh_push_arguments): Ditto.
3803 (sh64_push_arguments): Ditto.
3804 * remote-vxsparc.c (vx_read_register): Ditto.
3805 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
3806 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
3807 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
3808 * mipsv4-nat.c (get_longjmp_target): Ditto.
3809 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
3810 * mips-nat.c (get_longjmp_target): Ditto.
3811 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
3812 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
3813 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
3814 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
3815 * irix5-nat.c (get_longjmp_target): Ditto.
3816 * irix4-nat.c (get_longjmp_target): Ditto.
3817 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
3818 (ia64_push_arguments): Ditto.
3819 * hpux-thread.c (hpux_thread_store_registers): Ditto.
3820 * h8300-tdep.c (h8300_push_arguments): Ditto.
3821 (h8300_store_return_value): Ditto.
3822 (h8300_extract_struct_value_address): Ditto.
3823 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
3824 (frv_push_arguments): Ditto.
3825 * avr-tdep.c (avr_pointer_to_address): Ditto.
3826 (avr_push_arguments): Ditto.
3827 * arm-tdep.c (arm_push_dummy_call): Ditto.
3828 (arm_get_longjmp_target): Ditto.
3829 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3830 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
3831 (alpha_get_longjmp_target): Ditto.
3832
3833 * solib-irix.c (extract_mips_address): Inline extract_address,
3834 replacing it with extract_signed_integer.
3835 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3836 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
3837 (first_link_map_member, open_symbol_file_object): Ditto.
3838 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
3839 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3840 (LM_NEXT, LM_NAME): Ditto.
3841
3842 2003-06-01 Richard Henderson <rth@redhat.com>
3843
3844 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
3845 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
3846 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
3847 (alpha_cannot_store_register): Likewise.
3848 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
3849 * alpha-nat.c (supply_gregset): Likewise.
3850 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
3851
3852 2003-06-01 Andrew Cagney <cagney@redhat.com>
3853
3854 * infcall.c (call_function_by_hand): Update comment on
3855 DEPRECATED_DUMMY_WRITE_SP.
3856
3857 * mips-tdep.c (mips_gdbarch_init): Do not set
3858 deprecated_dummy_write_sp.
3859 (mips_eabi_push_dummy_call): Set the SP register.
3860 (mips_o64_push_dummy_call): Set the SP register.
3861 (mips_o32_push_dummy_call): Set the SP register.
3862 (mips_n32n64_push_dummy_call): Set the SP register.
3863
3864 2003-06-01 Richard Henderson <rth@redhat.com>
3865
3866 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
3867 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
3868 (supply_gregset): Likewise.
3869 * alpha-tdep.c (alpha_store_return_value): Likewise.
3870 (alpha_get_longjmp_target): Likewise.
3871 (alpha_register_name): Constify array.
3872 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
3873 deprecated_register_size, deprecated_register_bytes,
3874 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
3875 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
3876 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
3877
3878 2003-06-01 Richard Henderson <rth@redhat.com>
3879
3880 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
3881 from arg_reg_buffer to regcache to avoid double conversion.
3882
3883 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3884
3885 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
3886 SP_REGNUM.
3887 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
3888 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
3889
3890 2003-06-01 Richard Henderson <rth@redhat.com>
3891
3892 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
3893 (decode_frame_entry): Set it. Skip FDE augmentation.
3894
3895 2003-06-01 Richard Henderson <rth@redhat.com>
3896
3897 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
3898 not overlapping PC_REGNUM.
3899
3900 2003-06-01 Richard Henderson <rth@redhat.com>
3901
3902 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
3903 alpha_push_arguments. Don't dump argument register data to
3904 the target stack. Fix float and 128-bit long double semantics.
3905 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
3906 (alpha_fix_call_dummy): Remove.
3907 (alpha_call_dummy_words): Remove.
3908 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
3909
3910 2003-06-01 Richard Henderson <rth@redhat.com>
3911
3912 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
3913
3914 2003-06-01 Andrew Cagney <cagney@redhat.com>
3915
3916 * mips-tdep.c (is_mips16_addr): New function.
3917 (make_mips16_addr, unmake_mips16_addr): New functions.
3918 (pc_is_mips16, mips_fetch_instruction): Use.
3919 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
3920 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
3921 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
3922 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
3923 TARGET_MIPS.
3924 * config/mips/tm-mips.h: Update copyright.
3925 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
3926 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
3927 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
3928 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
3929 (TM_PRINT_INSN_MACH): Delete.
3930 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
3931
3932 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
3933 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
3934 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
3935 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
3936 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
3937 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
3938 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
3939 mips*-*-riscos* and mips*-*-sysv* onto mips.
3940 * config/mips/mips64.mt: New file.
3941 * config/mips/mips.mt: New file.
3942 * config/mips/littlemips.mt: Delete file.
3943 * config/mips/decstation.mt: Delete file.
3944 * config/mips/vr4300el.mt: Delete file.
3945 * config/mips/vr5000el.mt: Delete file.
3946 * config/mips/vr5000.mt: Delete file.
3947 * config/mips/vr4100.mt: Delete file.
3948 * config/mips/vr4xxxel.mt: Delete file.
3949 * config/mips/vr4300.mt: Delete file.
3950 * config/mips/vr4xxx.mt: Delete file.
3951 * config/mips/bigmips.mt: Delete file.
3952 * config/mips/bigmips64.mt: Delete file.
3953 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
3954 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
3955 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
3956 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
3957 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
3958 "tm-bigmips.h".
3959 * config/mips/tm-irix3.h: Ditto.
3960 * config/mips/tm-mipsv4.h: Ditto.
3961 * config/mips/tm-embed.h: Ditto.
3962 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
3963 "tm-bigmips64.h".
3964 * config/mips/tm-vr5000el.h: Delete file.
3965 * config/mips/tm-tx39l.h: Delete file.
3966 * config/mips/tm-vr4300el.h: Delete file.
3967 * config/mips/tm-vr4xxxel.h: Delete file.
3968 * config/mips/tm-vr4300.h: Delete file.
3969 * config/mips/tm-vr4100.h: Delete file.
3970 * config/mips/tm-vr4xxx.h: Delete file.
3971 * config/mips/tm-vr5000.h: Delete file.
3972 * config/mips/tm-embedl64.h: Delete file.
3973 * config/mips/tm-embedl.h: Delete file.
3974 * config/mips/tm-embed64.h: Delete file.
3975 * config/mips/tm-bigmips64.h: Delete file.
3976 * config/mips/tm-bigmips.h: Delete file.
3977
3978 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3979
3980 Fix gdb/1216.
3981 * shnbsd-nat.c: Include "sh-tdep.h".
3982
3983 From Richard Henderson <rth@redhat.com>:
3984 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
3985
3986 2003-05-31 Andrew Cagney <cagney@redhat.com>
3987
3988 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
3989 forward declaration.
3990 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3991 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3992 (mips_find_saved_regs): Use set_reg_offset.
3993 (mips_frame_init_saved_regs): Delete function.
3994 (mips_pop_frame): Call mips_find_saved_regs instead of
3995 DEPRECATED_FRAME_INIT_SAVED_REGS.
3996
3997 2003-05-31 Andrew Cagney <cagney@redhat.com>
3998
3999 * mips-tdep.c (mips_gdbarch_init): Do not set
4000 deprecated_max_register_raw_size, register_virtual_size, and
4001 deprecated_max_register_virtual_size.
4002
4003 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4004
4005 * i386-tdep.c: Include "dwarf2-frame.h".
4006 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4007 * Makefile.in (i386-tdep.o): Update dependencies.
4008
4009 * dwarf2-frame.c, dwarf2-frame.h: New files.
4010 * Makefile.in (SFILES): Add dwarf2-frame.c.
4011 (dwarf2_frame_h): Define.
4012 (COMMON_OBS): Add dwarf2-frame.o.
4013 (dwarf2-frame.o): Add dependencies.
4014
4015 2003-05-31 Andreas Jaeger <aj@suse.de>
4016
4017 * x86-64-linux-nat.c: Fix comment.
4018
4019 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4020
4021 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4022 function signature.
4023
4024 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4025 have a sigcontext_addr handler.
4026 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4027 sigcontext_addr handler.
4028
4029 2003-05-31 Andrew Cagney <cagney@redhat.com>
4030
4031 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4032 (print_fp_register_row): Replace do_fp_register_row.
4033 (mips_print_fp_register): Add "file" and "frame" parameters.
4034 (mips_print_register): Add "file" and "frame" parameters.
4035 (mips_print_registers_info): Replace mips_do_registers_info.
4036 (mips_gdbarch_init): Set print_registers_info instead of
4037 deprecated_do_registers_info.
4038 (mips_read_fp_register_single): Add "frame" parameter.
4039 (mips_read_fp_register_double): Add "frame" parameter.
4040
4041 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4042
4043 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4044 Fixes a bug where GDB would print the wrong register names for
4045 targets without SSE.
4046
4047 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4048 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4049 registers.
4050
4051 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4052 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4053 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4054 TDEP->sc_sp_offset.
4055
4056 From Michal Ludvig <mludvig@suse.cz>:
4057 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4058 and `sc_num_regs'.
4059 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4060 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4061 I386_ST0_REGNUM): Move here from...
4062 * i386-tdep.c: ... here.
4063 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4064 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4065 registers if possible.
4066 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4067 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4068 Remove variables.
4069 (i386bsd_sc_reg_offset): New variable.
4070 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4071 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4072 TDEP->sc_sp_offset.
4073 (i386fbsd_sc_reg_offset): New variable.
4074 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4075 TDEP->sc_num_regs.
4076 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4077 variables.
4078 (i386fbsd4_sc_reg_offset): New variable.
4079 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4080 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4081 TDEP->sc_sp_offset.
4082 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4083 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4084 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4085 Remove variables.
4086 (i386nbsd_sc_reg_offset): New variable.
4087 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4088 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4089 TDEP->sc_sp_offset.
4090 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4091 Remove variables.
4092 (i386obsd_sc_reg_offset): New variable.
4093 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4094 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4095 TDEP->sc_sp_offset.
4096 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4097 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4098 for frame pointer offset in `struct sigcontext'.
4099
4100 2003-05-31 Andrew Cagney <cagney@redhat.com>
4101
4102 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4103 architecture methods call_dummy_words, sizeof_call_dummy_words,
4104 push_return_address, store_struct_return, and fix_call_dummy. Set
4105 push_dummy_call instead of deprecated_push_arguments.
4106 (mips_store_struct_return): Delete function.
4107 (mips_fix_call_dummy): Delete function.
4108 (mips_push_return_address): Delete function.
4109 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4110 RA_REGNUM and T9_REGNUM.
4111 (mips_n32n64_push_dummy_call): Ditto for
4112 mips_n32n64_push_arguments.
4113 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4114 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4115
4116 2003-05-31 Andrew Cagney <cagney@redhat.com>
4117
4118 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4119 "dummy_addr" to "bp_addr".
4120 * infcall.c (call_function_by_hand): Pass "funaddr" to
4121 gdbarch_push_dummy_call.
4122 * gdbarch.h, gdbarch.c: Re-generate.
4123 * i386-tdep.c (i386_push_dummy_call): Update.
4124 * arm-tdep.c (arm_push_dummy_call): Update.
4125 * d10v-tdep.c (d10v_push_dummy_call): Update.
4126
4127 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4128
4129 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4130 variable declarations.
4131 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4132 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4133 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4134 x86_64_init_frame_pc, x86_64_init_frame_pc,
4135 x86_64_function_has_prologue): Remove prototypes.
4136 (X86_64_NUM_GREGS): New define.
4137 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4138 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4139 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4140 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4141 XMM1_REGNUM): Remove defines.
4142 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4143 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4144 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4145 X86_64_XMM1_REGNUM): New defines.
4146 (struct x86_64_register_info): Renamed from `struct
4147 register_info'. Remove `size' member.
4148 (x86_64_register_info_table): Remove variable.
4149 (x86_64_register_info): New variable.
4150 (X86_64_NUM_REGS): New define.
4151 (X86_64_NUM_GREGS): Remove define.
4152 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4153 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4154 Remove variables.
4155 (x86_54_dwarf2_reg_to_regnum): Remove function.
4156 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4157 (x86_64_dwarf_reg_to_regnum): New function.
4158 (x86_64_register_name): Rewrite.
4159 (x86_64_register_raw_size): Remove function.
4160 (x86_64_register_byte_table): Remove variable.
4161 (x86_64_register_byte): Remove function.
4162 (x86_64_register_virtual_type): Remove function.
4163 (x86_64_register_type): New function.
4164 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4165 x86_64_register_convert_to_raw): Remove functions.
4166 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4167 (x86_64_use_struct_convention): Make static. Adjust for renamed
4168 defines.
4169 (x86_64_frame_init_saved_regs): Remove function.
4170 (x86_64_push_arguments): Make static. Change to accept a regcache
4171 as argument.
4172 (x86_64_store_return_value, x86_64_extract_return_value): Make
4173 static. Rewrite based on i386 counterparts.
4174 (x86_64_push_dummy_call): New function.
4175 (X86_64_NUM_SAVED_REGS): New define.
4176 (x86_64_register_number): Remove function.
4177 (x86_64_store_struct_return): Remove function.
4178 (x86_64_frameless_function_invocation,
4179 x86_64_function_has_prologue): Remove functions.
4180 (PROLOG_BUFSIZE): Remove define.
4181 (struct x86_64_frame_cache): New structure.
4182 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4183 x86_64_frame_cache, x86_64_frame_this_id,
4184 x86_64_frame_prev_register, x86_64_frame_p,
4185 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4186 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4187 functions.
4188 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4189 variables.
4190 (x86_64_skip_prologue): Rewrite in terms of
4191 x86_64_analyze_prologue.
4192 (x86_64_frame_base_address): New function.
4193 (x86_64_frame_base): New variable.
4194 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4195 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4196 set deprecated_fp_regnum, deprecated_register_size,
4197 deprecated_register_bytes, register_raw_size, register_byte,
4198 register_virtual_type, register_convertiable,
4199 register_convert_to_virtual, convert_to_raw,
4200 deprecated_get_saved_register, deprecated_target_read_fp,
4201 deprecated_push_arguments, deprecated_push_return_address,
4202 deprecated_pop_frame, deprecated_store_struct_return,
4203 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4204 frameless_function_invocation, deprecated_frame_saved_pc,
4205 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4206 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4207 deprecated_init_frame_pc and virtual_frame_pointer. Call
4208 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4209 and x86_64_frame_p. Call frame_base_set_default to register
4210 x86_64_frame_base.
4211 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4212 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4213 (_initialize_x86_64_tdep): Remove function.
4214 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4215 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4216 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4217 define.
4218 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4219 (x86_64_linux_sigcontext_addr): Rewrite.
4220 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4221 x86_64_linux_frame_saved_pc): Remove functions.
4222 (x86_64_linux_pc_in_sigtramp): Renamed from
4223 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4224 trampoline.
4225 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4226 Remove_functions.
4227 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4228 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4229 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4230 (x86_64_regmap): Rename to regmap.
4231 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4232 x86_64_num_gregs.
4233 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4234 x86_64_regmap.
4235 (x86_64_fxsave_offset): Remove function.
4236 (supply_fpregset): Simply call x86_64_supply_fxsave.
4237 (fill_fpregset): Simply call x86_64_fill_fxsave.
4238 (fetch_inferior_registers, store_inferior_registers): Avoid
4239 asignment in if-statement.
4240 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4241 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4242 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4243 (fetch_core_registers): Remove function.
4244 (linux_elf_core_fns): Remove.
4245 (offsetoff): Don't define.
4246 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4247 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4248 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4249 add core-regset.o.
4250 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4251 protection against multiple includes instead of NM_X86_64_h. Add
4252 various comments. Include "config/nm-linux.h". Don't include
4253 <signal.h>.
4254 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4255 GET_THREAD_SIGNALS): Remove defines.
4256 (x86_64_register_u_addr, kernel_u_size,
4257 lin_thread_get_thread_signals): Remove prototypes.
4258 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4259 [HAVE_LINK_H]: Don't include "solib.h".
4260 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4261 * config/i386/tm-x86-64linux.h: Fix comments.
4262 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4263 x86-64-tdep.o): Update dependencies.
4264
4265 2003-05-30 Andrew Cagney <cagney@redhat.com>
4266
4267 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4268 Change parameter type to a "struct regcache *".
4269
4270 * gdbarch.sh: Regardless of the multi-arch level, always define
4271 the macro when not already defined.
4272 * gdbarch.h, gdbarch.c: Re-generate.
4273
4274 2003-05-30 Richard Henderson <rth@redhat.com>
4275
4276 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4277 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4278 (alpha_mdebug_frame_this_id): Likewise.
4279 (alpha_mdebug_frame_prev_register): Likewise.
4280 (alpha_mdebug_frame_base_address): Likewise.
4281 (alpha_mdebug_frame_locals_address): Likewise.
4282 (alpha_mdebug_frame_args_address): Likewise.
4283 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4284 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4285 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4286 loop increment.
4287 (alpha_heuristic_frame_this_id): Make static.
4288 (alpha_heuristic_frame_prev_register): Likewise.
4289 (alpha_heuristic_frame_base_address): Likewise.
4290 * alpha-tdep.h: Update.
4291
4292 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4293
4294 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4295 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4296 defenitions.
4297 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4298 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4299 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4300 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4301 I386_ST0_REGNUM): New defines.
4302 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4303 codestream_get): Remove define.
4304 (codestream_next_addr, condestream_addr, condestream_buf,
4305 codestream_off, codestream_cnt): Remove variables.
4306 (codestream_fill, codestream_seek, codestream_read): Remove
4307 functions.
4308 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4309 functionality.
4310 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4311 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4312 i386_frame_saved_pc, i386_saved_pc_after_call,
4313 i386_frame_num_args, i386_frame_init_saved_regs,
4314 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4315 i386_push_arguments): Remove functions.
4316 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4317 functionality. Use i386_analyze_prologue instead of
4318 i386_get_frame_setup.
4319 (I386_NUM_SAVED_REGS): New define.
4320 (struct i386_frame_cache): New structure.
4321 (i386_alloc_frame_cache, i386_analyze_struct_return,
4322 i386_skip_probe, i386_analyze_frame_setup,
4323 i386_analyze_register_saves, i386_analyze_prologue,
4324 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4325 i386_frame_prev_register, i386_sigtramp_frame_cache,
4326 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4327 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4328 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4329 New functions.
4330 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4331 New variables.
4332 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4333 I386_EAX_REGNUM and I386_EDX_REGNUM.
4334 (i386_extract_return_value, i386_store_return_value): Use
4335 I386_ST0_REGNUM where appropriate.
4336 (i386_extract_struct_value_address): Rewrite to use extract_address.
4337 (i386_svr4_pc_in_sigtramp): Add comment.
4338 (i386_svr4_sigcontext_addr): Rewrite.
4339 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4340 TDEP->sc_sp_offset.
4341 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4342 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4343 of new defines. Set push_dummy_call, don't set
4344 deprecated_push_arguments, deprecated_push_return_address,
4345 deprecated_pop_frame. Don't set parm_boundary. Don't set
4346 deprecated_frame_chain, deprecated_frame_saved_pc,
4347 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4348 save_dummy_frame_tos, unwind_pc. Call
4349 frame_unwind_append_predicate and frame_base_set_default. Don't
4350 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4351 Don't set frameless_function_invocation. Don't set
4352 deprecated_register_bytes, deprecated_register_size,
4353 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4354 * i386-linux-tdep.c: Fix formatting in some comments.
4355 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4356 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4357 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4358 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4359 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4360 redundant parentheses.
4361 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4362 (i386_linux_sigcontext_addr): Use it. Rewrite.
4363 (find_minsym_and_objfile): Change name of second argument.
4364 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4365 changed. Use frame_pc_unwind instead of
4366 DEPRECATED_SAVED_PC_AFTER_CALL.
4367 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4368 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4369 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4370 unwinder.
4371 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4372 "dummy-frame.h".
4373 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4374 (_initialize_i386_cygwin_tdep): New prototype.
4375 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4376 deprecated_frame_chain_valid.
4377 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4378 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4379 Rely on the SVR4 defaults.
4380 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4381 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4382
4383 2003-05-30 Andrew Cagney <cagney@redhat.com>
4384
4385 * infcall.c (call_function_by_hand): Always call
4386 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4387
4388 2003-05-30 Richard Henderson <rth@redhat.com>
4389
4390 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4391 increment.
4392
4393 2003-05-29 Jim Blandy <jimb@redhat.com>
4394
4395 Use gdbarch methods for solib stuff on PowerPC Linux.
4396 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4397 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4398 show through.
4399 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4400 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4401 giving the same effect as the #definitions above.
4402
4403 2003-05-29 Adam Fedor <fedor@gnu.org>
4404
4405 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4406 (find_implementation_from_class): Replace it with the standard
4407 case i.e. do nothing.
4408
4409 2003-05-29 Richard Henderson <rth@redhat.com>
4410
4411 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4412 (alpha_linux_sigtramp_offset): Use it. Make static.
4413 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4414 update for new frame model.
4415 * alpha-mdebug-tdep.c: New file.
4416 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4417 (alpha_osf1_init_abi): Install it.
4418 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4419 (linked_proc_desc_table): Remove.
4420 (alpha_frame_past_sigtramp_frame): Remove.
4421 (alpha_dynamic_sigtramp_offset): Remove.
4422 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4423 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4424 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4425 (push_sigtramp_desc): Remove.
4426 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4427 (alpha_cannot_store_register): Likewise.
4428 (alpha_sigcontext_addr): Remove.
4429 (alpha_find_saved_regs): Remove.
4430 (alpha_frame_init_saved_regs): Remove.
4431 (alpha_init_frame_pc_first): Remove.
4432 (read_next_frame_reg): Remove.
4433 (alpha_frame_saved_pc): Remove.
4434 (alpha_saved_pc_after_call): Remove.
4435 (temp_proc_desc, temp_saved_regs): Remove.
4436 (alpha_about_to_return): Remove.
4437 (cached_proc_desc): Remove.
4438 (alpha_frame_chain): Remove.
4439 (alpha_print_extra_frame_info): Remove.
4440 (alpha_init_extra_frame_info): Remove.
4441 (alpha_frame_locals_address): Remove.
4442 (alpha_frame_args_address): Remove.
4443 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4444 (alpha_push_dummy_frame): Remove.
4445 (alpha_pop_frame): Remove.
4446 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4447 (alpha_read_insn): New.
4448 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4449 for different insn encodings.
4450 (alpha_in_lenient_prologue): Remove.
4451 (struct alpha_sigtramp_unwind_cache): New.
4452 (alpha_sigtramp_frame_unwind_cache): New.
4453 (alpha_sigtramp_register_address): New.
4454 (alpha_sigtramp_frame_this_id): New.
4455 (alpha_sigtramp_frame_prev_register): New.
4456 (alpha_sigtramp_frame_unwind): New.
4457 (alpha_sigtramp_frame_p): New.
4458 (struct alpha_heuristic_unwind_cache): New.
4459 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4460 don't count nop insns that occur between functions.
4461 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4462 heuristic_proc_desc, but without the mdebug wrapping.
4463 (alpha_heuristic_frame_this_id): New.
4464 (alpha_heuristic_frame_prev_register): New.
4465 (alpha_heuristic_frame_unwind): New.
4466 (alpha_heuristic_frame_p): New.
4467 (alpha_heuristic_frame_base_address): New.
4468 (alpha_heuristic_frame_base): New.
4469 (alpha_unwind_dummy_id): New.
4470 (alpha_unwind_pc): New.
4471 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4472 frame related deprecated initializations; install replacements.
4473 (alpha_dump_tdep): Remove.
4474 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4475 (alpha_read_insn, alpha_after_prologue,
4476 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4477 alpha_heuristic_frame_prev_register,
4478 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4479 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4480 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4481 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4482
4483 2003-05-29 Andrew Cagney <cagney@redhat.com>
4484
4485 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4486 dependant on the availability of ASSERT_FUNCTION.
4487 (ASSERT_FUNCTION): Do not define when there is no function name.
4488
4489 2003-05-29 Kevin Buettner <kevinb@redhat.com>
4490
4491 From Jimi X <jimix@watson.ibm.com>:
4492 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4493
4494 2003-05-28 Jim Blandy <jimb@redhat.com>
4495
4496 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4497 argument to ptrace to int; the system headers should give it the
4498 right type, and pointers don't fit in ints on powerpc64-*-*.
4499
4500 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4501
4502 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4503 DW_TAG_catch_block.
4504
4505 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4506
4507 * stabsread.c (dbx_lookup_type): Make static.
4508 (read_type): Ditto.
4509 (add_undefined_type): Ditto.
4510 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4511 not export.
4512
4513 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4514
4515 * hpread.c (hpread_has_name): Make static.
4516 (hpread_psymtab_to_symtab): Ditto.
4517 (file_exists): Ditto.
4518 (hpread_call_pxdb): Ditto.
4519 (hpread_pxdb_needed): Ditto.
4520 (hpread_quick_traverse): Ditto.
4521 (hpread_get_header): Ditto.
4522 (hpread_get_lntt): Ditto.
4523 (hpread_get_slt): Ditto.
4524 (class_of): Ditto.
4525
4526 2003-05-25 Andreas Schwab <schwab@suse.de>
4527
4528 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4529 stack_align and deprecated_extra_stack_alignment_needed.
4530 (m68k_stack_align): Delete.
4531
4532 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4533 (m68k_register_virtual_size): Likewise.
4534 (altos_skip_prologue): Remove obsolete function.
4535 (isi_frame_num_args): Likewise.
4536 (news_frame_num_args): Likewise.
4537 (m68k_fix_call_dummy): Make static.
4538 (m68k_push_dummy_frame): Likewise.
4539 (m68k_pop_frame): Likewise.
4540 (m68k_skip_prologue): Likewise.
4541 (m68k_frame_init_saved_regs): Likewise.
4542 (m68k_saved_pc_after_call): Likewise.
4543 (m68k_get_longjmp_target): Make multi-arch.
4544 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4545 structure. Register m68k_get_longjmp_target if enabled.
4546 * m68k-tdep.h (struct gdbarch_tdep): Define.
4547 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4548
4549 * Makefile.in (config.status): Also depend on configure.tgt
4550 and configure.host.
4551 (m68klinux-tdep.o): Update dependencies.
4552 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4553 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4554 (M68K_LINUX_JB_PC): Define.
4555 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4556 and take additional parameter.
4557 (m68k_linux_sigtramp_saved_pc): Update.
4558 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4559 m68k_linux_pc_in_sigtramp, in_plt_section,
4560 find_solib_trampoline_target.
4561 * config/m68k/tm-linux.h: Don't include any tm headers.
4562 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4563 (JB_ELEMENT_SIZE): Likewise.
4564 (JB_PC): Likewise.
4565 (GET_LONGJMP_TARGET): Likewise.
4566 (IN_SIGTRAMP): Likewise.
4567 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4568
4569 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4570
4571 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4572 (sparc32_push_arguments): Re-implement by calling
4573 sparc32_do_push_arguments.
4574
4575 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4576
4577 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4578 SPARC_O1_REGNUM): New defines.
4579 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4580 (sparc32_store_return_value): New function.
4581 (sparc_extract_struct_value_address): Rewrite to operate on a
4582 regcache.
4583 (sparc_gdbarch_init): Don't set
4584 deprecated_extract_struct_value_address. Set
4585 extract_struct_value_address instead. Don't set
4586 deprecated_extract_return_value and deprecated_store_return_value
4587 for 32-bit targets. Set extract_return_value and
4588 store_return_value instead.
4589 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4590 DEPRECTAED_EXTRACT_RETURN_VALUE,
4591 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4592 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4593 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4594 (sparc_store_return_value): Remove prototype.
4595 (sparc32_store_return_value): New prototype.
4596 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4597 Adjust prototypes.
4598
4599 2003-05-24 Mark Kettenis <kettenis@gnu.org>
4600
4601 * sparcnbsd-tdep.c: Include "gdb_string.h".
4602
4603 2003-05-23 Andrew Cagney <cagney@redhat.com>
4604
4605 * p-valprint.c (pascal_val_print): Replace extract_address with
4606 the inline equivalent extract_unsigned_integer.
4607 * jv-valprint.c (java_value_print): Ditto.
4608 * ada-valprint.c (ada_val_print_1): Ditto.
4609 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4610
4611 2003-05-23 Theodore A. Roth <troth@openavr.org>
4612
4613 * blockframe.c (frameless_look_for_prologue): Remove unused
4614 after_prologue variable.
4615
4616 2003-05-23 Mark Kettenis <kettenis@gnu.org>
4617
4618 * blockframe.c (get_pc_function_start): Rewrite to avoid
4619 asignments in if-statements.
4620
4621 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4622
4623 Committed by Elena Zannoni <ezannoni@redhat.com>.
4624 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4625 files, don't relocate absolute symbols (and do use mst_abs).
4626
4627 2003-05-23 Andrew Cagney <cagney@redhat.com>
4628
4629 * objc-lang.c: Include "gdb_assert.h".
4630 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4631 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4632 (gdb_check, gdb_check_fatal): Delete functions.
4633 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4634 gdb_assert.
4635 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4636 * Makefile.in (objc-lang.o): Update dependencies.
4637
4638 2003-05-22 Ian Lance Taylor <ian@airs.com>
4639
4640 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4641 with fprintf_filtered, not fprintf_unfiltered.
4642
4643 2003-05-22 Andrew Cagney <cagney@redhat.com>
4644
4645 * stack.c (frame_info): Inline extract_address, replacing it with
4646 extract_unsigned_integer.
4647 * findvar.c (unsigned_pointer_to_address): Ditto.
4648 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4649 * dwarf2expr.c (dwarf2_read_address): Ditto.
4650 * frame.c (frame_pc_unwind): Update comment.
4651 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4652
4653 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4654
4655 * infptrace.c (detach): Call print_sys_errmsg rather than
4656 perror_with_name to issue warning message when errno is non-zero
4657 after calling ptrace detach.
4658
4659 2003-05-21 J. Brobecker <brobecker@gnat.com>
4660
4661 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4662 macro definitions from here...
4663 * hppa-tdep.c: ...to there.
4664
4665 2003-05-20 Kevin Buettner <kevinb@redhat.com>
4666
4667 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4668 register_ptrace_addr(). Fix all callers.
4669
4670 2003-05-21 Andreas Schwab <schwab@suse.de>
4671
4672 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4673 dependencies.
4674 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4675 end.
4676 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4677 (_initialize_m68k_linux_tdep): New function.
4678 (m68k_linux_frame_saved_pc): Make static.
4679 (m68k_linux_extract_return_value): Likewise.
4680 (m68k_linux_store_return_value): Likewise.
4681 (m68k_linux_extract_struct_value_address): Likewise.
4682 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4683 Remove.
4684 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4685 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4686 (DEPRECATED_FRAME_SAVED_PC): Remove.
4687
4688 2003-05-20 Kris Warkentin <kewarken@qnx.com>
4689
4690 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4691 regset numbering rather than our own.
4692
4693 2003-05-19 David Carlton <carlton@bactrian.org>
4694
4695 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4696
4697 2003-05-19 David Carlton <carlton@bactrian.org>
4698
4699 Partial fix for PR c++/827.
4700 * cp-support.h: Include symtab.h.
4701 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4702 * cp-namespace.c: Update contributors.
4703 (cp_lookup_symbol_nonlocal): New.
4704 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4705 (lookup_symbol_file): Ditto.
4706 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4707 * block.h: Declare block_scope, block_using, block_global_block.
4708 * block.c (block_scope): New.
4709 (block_using, block_global_block): Ditto.
4710 * Makefile.in (cp_support_h): Depend on symtab_h.
4711 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4712
4713 2003-05-19 David Carlton <carlton@bactrian.org>
4714
4715 * language.h (struct language_defn): Add 'la_value_of_this'
4716 and 'la_lookup_symbol_nonlocal' members.
4717 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4718 lookup_symbol_static, lookup_symbol_global,
4719 lookup_symbol_aux_block.
4720 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4721 if we should search fields of this and how to do static/global
4722 lookup.
4723 (lookup_symbol_aux_block): Make extern.
4724 (basic_lookup_symbol_nonlocal): New.
4725 (lookup_symbol_static, lookup_symbol_global): Ditto.
4726 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4727 'la_lookup_symbol_nonlocal' members.
4728 * c-lang.c (c_language_defn, cplus_language_defn)
4729 (asm_language_defn, minimal_language_defn): Ditto.
4730 * jv-lang.c (java_language_defn): Ditto.
4731 * language.c (unknown_language_defn, auto_language_defn)
4732 (local_language_defn): Ditto.
4733 * m2-lang.c (m2_language_defn): Ditto.
4734 * objc-lang.c (objc_language_defn): Ditto.
4735 * scm-lang.c (scm_language_defn): Ditto.
4736 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4737 * p-lang.c (pascal_language_defn): Ditto for both.
4738 * Makefile.in (f-lang.o): Depend on value_h.
4739 (p-lang.o): Ditto.
4740
4741 2003-05-19 David Carlton <carlton@bactrian.org>
4742
4743 * block.h: Declare block_static_block.
4744 * block.c (block_static_block): New.
4745 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4746 lookup_symbol_aux_local, calling block_static_block instead.
4747 (lookup_symbol_aux_local): Delete 'static_block' argument.
4748
4749 2003-05-19 David Carlton <carlton@bactrian.org>
4750
4751 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4752
4753 2003-05-19 Michal Ludvig <mludvig@suse.cz>
4754
4755 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4756 register numbers mapping.
4757
4758 2003-05-18 Adam Fedor <fedor@gnu.org>
4759
4760 * symtab.c (completion_list_objc_symbol): New function.
4761 (make_symbol_completion_list): Use it to add ObjC symbols
4762 when looking though the list.
4763 (language_search_unquoted_string): New function.
4764 (make_file_symbol_completion_list): Use it.
4765
4766 2003-05-18 Andreas Schwab <schwab@suse.de>
4767
4768 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4769 dependencies.
4770 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4771 as m68k_linux_extract_return_value.
4772 (DEPRECATED_STORE_RETURN_VALUE): Define as
4773 m68k_linux_store_return_value.
4774 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4775 m68k_linux_extract_struct_value_address.
4776 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4777 get_next_frame, get_frame_base, get_frame_pc.
4778 (m68k_linux_frame_saved_pc): Use get_frame_base.
4779 (m68k_linux_extract_return_value): New function.
4780 (m68k_linux_store_return_value): New function.
4781 (m68k_linux_extract_struct_value_address): New function.
4782 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4783
4784 * c-exp.y (typebase): Remove duplicate occurence of
4785 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
4786 of lookup_signed_typename.
4787
4788 2003-05-18 Mark Kettenis <kettenis@gnu.org>
4789
4790 * dwarf2loc.c (find_location_expression): Change type of second
4791 argument to `size_t *'.
4792 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4793 for size variable.
4794
4795 2003-05-18 David Carlton <carlton@bactrian.org>
4796
4797 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4798 'linkage_name'. Add comment.
4799 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4800 'linkage_name'.
4801 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4802 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
4803 (lookup_block_symbol): Ditto.
4804
4805 2003-05-16 Andrew Cagney <cagney@redhat.com>
4806
4807 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
4808 * gdbarch.h, gdbarch.c: Re-generate.
4809 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
4810 * TODO (REGISTER_BYTES): Delete reference.
4811 * alpha-tdep.c (alpha_gdbarch_init): Update.
4812 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4813 * x86-64-tdep.c (x86_64_init_abi): Update.
4814 * vax-tdep.c (vax_gdbarch_init): Update.
4815 * v850-tdep.c (v850_gdbarch_init): Update.
4816 * sparc-tdep.c (sparc_gdbarch_init): Update.
4817 * sh-tdep.c (sh_gdbarch_init): Update.
4818 * s390-tdep.c (s390_gdbarch_init): Update.
4819 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4820 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4821 (ns32k_gdbarch_init_32382): Update.
4822 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4823 * mcore-tdep.c (mcore_gdbarch_init): Update.
4824 * m68k-tdep.c (m68k_gdbarch_init): Update.
4825 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4826 * ia64-tdep.c (ia64_gdbarch_init): Update.
4827 * i386-tdep.c (i386_gdbarch_init): Update.
4828 * i386-linux-tdep.c (i386_linux_init_abi): Update.
4829 * hppa-tdep.c (hppa_gdbarch_init): Update.
4830 * h8300-tdep.c (h8300_gdbarch_init): Update.
4831 * frv-tdep.c (frv_gdbarch_init): Update.
4832 * cris-tdep.c (cris_gdbarch_init): Update.
4833 * avr-tdep.c (avr_gdbarch_init): Update.
4834 * arm-tdep.c (arm_gdbarch_init): Update.
4835 * sparc-tdep.c (sparc_pop_frame): Update.
4836 * rs6000-tdep.c (rs6000_pop_frame): Update.
4837 * remote.c (init_remote_state): Update.
4838 (remote_prepare_to_store): Update.
4839 * remote-vx.c (vx_prepare_to_store): Update.
4840 * remote-sds.c (sds_fetch_registers): Update.
4841 (sds_prepare_to_store): Update.
4842 * remote-array.c: Update.
4843 * regcache.c (init_legacy_regcache_descr): Update.
4844 (init_regcache_descr): Update.
4845 * mips-tdep.c (mips_eabi_extract_return_value): Update.
4846 (mips_o64_extract_return_value): Update.
4847 * irix5-nat.c (fetch_core_registers): Update.
4848 * irix4-nat.c (fetch_core_registers): Update.
4849 * i386-tdep.h: Update.
4850 * hppa-tdep.c (pa_do_registers_info): Update.
4851 (pa_do_strcat_registers_info): Update.
4852 * cris-tdep.c (cris_register_bytes_ok): Update.
4853 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4854 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
4855 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
4856 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
4857 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
4858 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
4859 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
4860 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
4861 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
4862 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
4863 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
4864 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
4865 (REGISTER_BYTES_OK): Update.
4866 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
4867 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
4868
4869 2003-05-16 Ian Lance Taylor <ian@airs.com>
4870
4871 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
4872 (vax_print_insn, print_insn_arg): Remove static functions.
4873 (vax_gdbarch_init): Call set_gdbarch_print_insn with
4874 print_insn_vax from opcodes library.
4875 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
4876
4877 2003-05-15 Andrew Cagney <cagney@redhat.com>
4878
4879 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
4880 * target.h (memory_breakpoint_from_pc): Delete declaration.
4881 * mem-break.c (memory_breakpoint_from_pc): Delete function.
4882 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
4883 * monitor.c (monitor_insert_breakpoint): Use
4884 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
4885 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
4886 * gdbarch.h, gdbarch.c: Re-generate.
4887 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
4888 (sparc_gdbarch_init): Set breakpoint_from_pc to
4889 sparc_breakpoint_from_pc.
4890 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
4891 (BREAKPOINT_FROM_PC): Define.
4892 (sparc_breakpoint_from_pc): Declare.
4893 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
4894 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
4895 (BREAKPOINT_FROM_PC): Define.
4896 (BREAKPOINT): Delete macro.
4897 * target.h: Update comment.
4898 * s390-tdep.c (s390_gdbarch_init): Update comments.
4899 * remote.c: Update comments.
4900 * remote-mips.c: Update comments.
4901 * proc-api.c (write_with_trace): Do not check for a breakpoint.
4902 * mem-break.c: Update comment.
4903 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
4904 (ia64_memory_insert_breakpoint): Update.
4905 * config/sparc/tm-sparc.h: Update comment.
4906 * config/pa/tm-hppa64.h: Update comment.
4907 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4908 (rs6000_breakpoint_from_pc): Update.
4909 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4910 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
4911 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
4912 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
4913 (mips_breakpoint_from_pc): Update.
4914 (mips_dump_tdep): Update.
4915
4916 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
4917 * minsyms.c (lookup_minimal_symbol): Inline
4918 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
4919
4920 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
4921 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4922 * p-lang.c (pascal_printstr): Ditto.
4923 * objc-lang.c (objc_printstr): Ditto.
4924 * m2-lang.c (m2_printstr): Ditto.
4925 * jv-valprint.c (java_print_value_fields): Ditto.
4926 * f-lang.c (f_printstr): Ditto.
4927 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
4928 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
4929 for repeat_count_threshold.
4930 * Makefile.in (cp-valprint.o): Update dependencies.
4931
4932 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
4933
4934 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
4935 (examine_prologue): Support looking through leaf functions, knowing
4936 they start with mov r2,r12. Support skipping over indirect stores
4937 of the input registers. Upon hitting a non-nop branch instruction
4938 or predicated instruction, bail out by setting lim_pc to the current
4939 pc value in the loop. At the end, if the lim_pc value is still
4940 beyond our calculated value and we have trust_limit set,
4941 use the lim_pc value.
4942
4943 2003-05-15 Andrew Cagney <cagney@redhat.com>
4944
4945 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
4946 generic_find_dummy_frame.
4947 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
4948 (deprecated_generic_find_dummy_frame): Update.
4949 (deprecated_read_register_dummy): Update.
4950 * frame.c (deprecated_generic_get_saved_register): Update.
4951
4952 2003-05-15 Theodore A. Roth <troth@openavr.org>
4953
4954 * avr-tdep.c (avr_breakpoint_from_pc): New function.
4955 (avr_gdbarch_init): Set breakpoint_from_pc method.
4956
4957 2003-05-15 Andrew Cagney <cagney@redhat.com>
4958
4959 * regcache.c (build_regcache): Set deprecated_register_valid
4960 directly.
4961 (deprecated_grub_regcache_for_register_valid): Delete function.
4962 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
4963 declaration.
4964
4965 2003-05-15 David Carlton <carlton@bactrian.org>
4966
4967 Committed by Elena Zannoni <ezannoni@redhat.com>
4968 * symtab.c (lookup_symbol_aux): Delete calls to
4969 lookup_symbol_aux_minsyms.
4970 (lookup_symbol_aux_minsyms): Comment out function and
4971 prototype. Delete lookup by mangled name.
4972
4973 2003-05-14 Kevin Buettner <kevinb@redhat.com>
4974
4975 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
4976 correctly indicate an empty stack and ``stack_allocated'' to the
4977 indicate the number of elements initially allocated.
4978 (dwarf_expr_grow_stack): Simplify method for computing new
4979 stack size. Don't loop infinitely if ``stack_len'' is zero.
4980 (execute_stack_op): Move ``ctx->in_reg'' initialization
4981 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
4982 be used in conjuction with DW_OP_piece. Revise error message
4983 accordingly.
4984
4985 2003-05-14 Theodore A. Roth <troth@openavr.org>
4986
4987 * MAINTAINERS: Update my email address.
4988 * avr-tdep.c: Ditto.
4989
4990 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
4991
4992 * symtab.h (enum domain_enum): Rename from namespace_enum.
4993 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
4994 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
4995 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
4996 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
4997 TYPES_NAMESPACE, METHODS_NAMESPACE.
4998 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
4999 (struct symbol, struct partial_symbol): Rename field
5000 'namespace_enum namespace' to 'domain_enum domain'.
5001 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5002 Delete old define kludge for namespace.
5003
5004 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5005 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5006 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5007 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5008 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5009 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5010 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5011 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5012 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5013 occurrences of the above.
5014
5015 2003-05-14 Ian Lance Taylor <ian@airs.com>
5016
5017 * Makefile.in (install-only): Use $(SHELL) when running
5018 mkinstalldirs.
5019
5020 2003-05-13 Ian Lance Taylor <ian@airs.com>
5021
5022 * MAINTAINERS (write after approval): Add myself.
5023
5024 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5025 second and third arguments.
5026 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5027 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5028
5029 2003-05-13 Andrew Cagney <cagney@redhat.com>
5030
5031 * defs.h (store_address): Delete declaration.
5032 findvar.c (store_address): Delete function.
5033 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5034 store_unsigned_integer.
5035 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5036 * v850-tdep.c (v850_push_arguments): Ditto.
5037 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5038 * sh-tdep.c (sh64_get_saved_register): Ditto.
5039 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5040 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5041 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5042 (mips_get_saved_register): Ditto.
5043 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5044 (find_func_descr, ia64_push_arguments): Ditto.
5045 * i386-tdep.c (i386_push_arguments): Ditto.
5046 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5047 * frv-tdep.c (frv_push_arguments): Ditto.
5048 * frame.c (legacy_saved_regs_prev_register): Ditto.
5049 (deprecated_generic_get_saved_register): Ditto.
5050 * findvar.c (unsigned_address_to_pointer): Ditto.
5051 * dwarf2read.c (dwarf2_const_value): Ditto.
5052 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5053 * alpha-tdep.c (alpha_push_arguments): Ditto.
5054
5055 2003-05-12 J. Brobecker <brobecker@gnat.com>
5056
5057 * NEWS: Mention that the hppa-hpux port has been partially
5058 multiarched (32bit ABIT only, so far).
5059
5060 2003-05-11 Andrew Cagney <cagney@redhat.com>
5061
5062 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5063 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5064 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5065 sim/testsuite/sim/arm/misaligned2.ms, and
5066 sim/testsuite/sim/arm/misaligned3.ms.
5067 * disasm.h (struct ui_file): Add opaque struct declaration.
5068 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5069 * frame.h (struct ui_file): Ditto.
5070
5071 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5072
5073 * value.h: Pretty print.
5074
5075 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5076
5077 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5078
5079 2003-05-08 Andrew Cagney <cagney@redhat.com>
5080
5081 * regcache.h (max_register_size): Delete declaration.
5082 * regcache.c (max_register_size): Delete function.
5083 (struct regcache_descr): Delete field "max_register_size".
5084 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5085 registers fit in MAX_REGISTER_SIZE.
5086 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5087 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5088 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5089 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5090 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5091 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5092 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5093 * dve3900-rom.c, hppa-tdep.c: Ditto.
5094
5095 2003-05-08 David Carlton <carlton@math.stanford.edu>
5096
5097 * valops.c (push_word): Fix typo.
5098
5099 2003-05-08 Andrew Cagney <cagney@redhat.com>
5100
5101 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5102 * gdbarch.h: Re-generate.
5103 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5104 (legacy_max_register_raw_size): Delete declaration.
5105 * regcache.c (legacy_max_register_raw_size): Delete function.
5106 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5107 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5108 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5109 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5110 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5111 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5112 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5113 * findvar.c, dwarf2cfi.c: Ditto.
5114
5115 2003-05-08 Andrew Cagney <cagney@redhat.com>
5116
5117 * mips-tdep.c (read_signed_register): New function, moved to here
5118 from "regcache.c".
5119 (read_signed_register_pid): Ditto.
5120 * regcache.c (read_signed_register_pid): Delete function, moved to
5121 "mips-tdep.c".
5122 (read_signed_register): Ditto.
5123 * regcache.h (read_signed_register): Delete declaration.
5124 (read_signed_register_pid): Delete declaration.
5125
5126 2003-05-08 Andrew Cagney <cagney@redhat.com>
5127
5128 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5129 * gdbarch.h: Re-generate.
5130 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5131 (legacy_max_register_virtual_size): Delete declaration.
5132 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5133 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5134 * tracepoint.c (memrange_sortmerge): Ditto.
5135 * sparc-tdep.c (sparc_print_registers): Ditto.
5136 * regcache.c (legacy_max_register_virtual_size): Delete function.
5137
5138 2002-05-08 J. Brobecker <brobecker@gnat.com>
5139
5140 * fork-child.c (escape_bang_in_quoted_argument): New function.
5141 (fork_inferior): Escape '!' characters in quoted arguments
5142 only when needed.
5143
5144 2003-05-08 J. Brobecker <brobecker@gnat.com>
5145
5146 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5147 the language of the CU is not currently supported by GDB.
5148
5149 2003-05-08 J. Brobecker <brobecker@gnat.com>
5150
5151 * defs.h (language): Add language_minimal enum value.
5152 * c-lang.c (minimal_language_defn): New language definition.
5153 (_initialize_c_language): Add the new minimal language to the list
5154 of languages known to GDB.
5155
5156 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5157
5158 * frame.c (get_frame_type): Don't attempt to lazily initialize
5159 frame's unwinder for legacy frames.
5160
5161 2003-05-07 Andrew Cagney <cagney@redhat.com>
5162
5163 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5164 and "regcache" parameters.
5165 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5166
5167 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5168
5169 * dwarf2read.c (dwarf_decode_lines): Only use output of
5170 check_cu_functions() when calling record_line(). Do not update
5171 the current address.
5172
5173 2003-05-07 Andrew Cagney <cagney@redhat.com>
5174
5175 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5176 code.
5177
5178 2003-05-07 Jim Blandy <jimb@redhat.com>
5179
5180 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5181 'maint info symtabs' and 'maint info psymtabs'.
5182 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5183 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5184 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5185 Declarations updated.
5186 * maint.c (maintenance_list_command): Delete.
5187 (_initialize_maint_cmds): Update calls to add_cmd.
5188 * gdbcmd.h (maintenancelistlist): Delete declaration.
5189 * cli/cli-cmds.c (maintenancelistlist): Delete.
5190 (init_cmd_lists): Don't initialize it.
5191 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5192
5193 2003-05-07 Andrew Cagney <cagney@redhat.com>
5194
5195 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5196 "regcache".
5197 (d10v_print_registers_info): Update.
5198 (d10v_dmap_register, d10v_imap_register): Delete functions.
5199 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5200 and "imap_register".
5201 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5202 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5203 * arch-utils.c (generic_remote_translate_xfer_address): Add
5204 "regcache" and "gdbarch" parameters.
5205 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5206 parameter. Change class to multi-arch.
5207 * gdbarch.h, gdbarch.c: Re-generate.
5208 * remote.c (remote_xfer_memory): Use
5209 gdbarch_remote_translate_xfer_address.
5210
5211 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5212
5213 * infrun.c (prev_pc): Move declaration ahead of proceed().
5214 (proceed): Refresh prev_pc value before resuming.
5215 (stop_stepping): Remove code to refresh prev_pc.
5216
5217 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5218
5219 * nto-tdep.c: Removed stray comment.
5220
5221 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5222
5223 * i386-nto-tdep.c: Fix old K&R function definitions.
5224 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5225 Also change add_show_from_set() call to add_setshow_cmd().
5226 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5227
5228 2003-05-05 Andrew Cagney <cagney@redhat.com>
5229
5230 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5231 (fprint_dummy_frames): New function.
5232 (maintenance_print_dummy_frames): New function.
5233 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5234 * frame.c (fprint_frame_id): Make global.
5235 * frame.h (fprint_frame_id): Declare.
5236 * Makefile.in (dummy-frame.o): Update dependencies.
5237
5238 2003-05-05 Andrew Cagney <cagney@redhat.com>
5239
5240 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5241 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5242 SIZEOF_CALL_DUMMY_WORDS.
5243 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5244 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5245 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5246 CALL_DUMMY_BREAKPOINT_OFFSET.
5247 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5248 CALL_DUMMY_START_OFFSET.
5249 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5250 * gdbarch.h, gdbarch.c: Re-generate.
5251 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5252 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5253 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5254 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5255 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5256 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5257 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5258 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5259 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5260 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5261 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5262 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5263 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5264 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5265 * config/sparc/tm-sparc.h: Update.
5266
5267 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5268
5269 * configure.tgt: Add i[3456]86-*-nto*.
5270 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5271 * nto-tdep.c: New file. Neutrino target support routines.
5272 * nto-tdep.h: New file. Neutrino target header.
5273 * config/tm-qnxnto.h: New file.
5274 * config/i386/i386nto.mt: New file.
5275 * config/i386/tm-i386nto.h: New file.
5276
5277 2003-05-04 Andrew Cagney <cagney@redhat.com>
5278
5279 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5280 (load_infrun_state): Ditto.
5281 (struct thread_info): Drop "prev_func_name" field.
5282 * thread.c (load_infrun_state): Update.
5283 (save_infrun_state): Update.
5284 * infrun.c (prev_func_name): Delete variable.
5285 (init_wait_for_inferior): Do not clear prev_func_name.
5286 (stop_stepping, keep_going, context_switch): Do not swap
5287 prev_func_name.
5288 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5289 instead of PC_IN_SIGTRAMP.
5290
5291 2003-05-04 Andrew Cagney <cagney@redhat.com>
5292
5293 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5294 REGISTER_BYTE with register_offset_hack.
5295 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5296 that REGISTER_BYTE is consistent with the regcache.
5297 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5298 * gdbarch.h, gdbarch.c: Regenerate.
5299
5300 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5301
5302 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5303 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5304
5305 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5306
5307 2003-05-03 J. Brobecker <brobecker@gnat.com>
5308
5309 From Thierry Schneider <tpschneider1@yahoo.com>
5310 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5311 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5312 (mi-cmd-symbol.o): Add rule.
5313
5314 2003-05-03 Andrew Cagney <cagney@redhat.com>
5315
5316 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5317 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5318 * gdbarch.h, gdbarch.c: Re-generate.
5319 * d10v-tdep.c (d10v_push_dummy_code): New function.
5320 (d10v_gdbarch_init): Set push_dummy_code.
5321 * infcall.c (legacy_push_dummy_code): New function.
5322 (generic_push_dummy_code): New function.
5323 (push_dummy_code): New function.
5324 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5325 instead of dummy_addr, to push_dummy_call. Move call to
5326 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5327 switch.
5328 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5329
5330 2003-05-03 Andrew Cagney <cagney@redhat.com>
5331
5332 * disasm.h (print_insn): Declare.
5333 * disasm.c (init_gdb_disassemble_info): New function.
5334 (gdb_disassembly): Call init_gdb_disassemble_info.
5335 (gdb_print_insn): New function.
5336 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5337 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5338 * mcore-tdep.c: Include "disasm.h"
5339 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5340 * d10v-tdep.c: Include "disasm.h".
5341 (display_trace): Call gdb_print_insn, instead of print_insn.
5342 (print_insn): Delete function.
5343 * printcmd.c: Include "disasm.h".
5344 (print_insn): Delete function.
5345 (print_formatted): Call gdb_print_insn, instead of print_insn.
5346 * Makefile.in (printcmd.o): Update dependencies.
5347 (mcore-tdep.o, d10v-tdep.o): Ditto.
5348
5349 2003-05-02 Andrew Cagney <cagney@redhat.com>
5350
5351 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5352 PC_REGNUM, re-indent.
5353 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5354 PC_REGNUM isn't set.
5355
5356 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5357 * gdbarch.h, gdbarch.c: Re-generate.
5358 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5359 register_virtual_size, pc_regnum, or register_bytes.
5360 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5361 (d10v_register_type): Use D10V_PC_REGNUM.
5362 (d10v_print_registers_info, d10v_read_pc): Ditto.
5363 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5364 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5365
5366 2003-05-02 David Carlton <carlton@bactrian.org>
5367
5368 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5369 the name with mstrsave.
5370
5371 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5372
5373 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5374 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5375 (host_charset_name, target_charset_name): New vars for use by
5376 set/show commands.
5377 (host_charset_enum, target_charset_enum): New enums for set/show
5378 commands.
5379 (set_charset_sfunc, set_host_charset_sfunc,
5380 set_target_charset_sfunc): New functions.
5381 (set_host_charset, set_target_charset): Make static.
5382 (list_charsets, set_host_charset_command,
5383 set_target_charset_command): Delete functions.
5384 (show_charset_command): Rewrite as....
5385 (show_charset): Hook this up with the set/show command mechanism.
5386 (_initialize_charset): Change names of charsets to match the
5387 set/show enums. Use host_charset_name and target_charset_name.
5388 Use set/show mechanism for charset, host-charset, target-charset
5389 commands. Do not make 'show host-charset' and 'show
5390 target-charset' be aliases of 'show charset'.
5391
5392 * charset.h (set_host_charset, set_target_charset): Don't export,
5393 they are not used outside the file.
5394
5395 2003-05-01 Andrew Cagney <cagney@redhat.com>
5396
5397 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5398 (gdb_disassembly): Make "di" non static, always initialize and
5399 cleanup. Always use dis_asm_read_memory.
5400 (gdb_dis_asm_read_memory): Delete function.
5401
5402 2003-05-01 Andrew Cagney <cagney@redhat.com>
5403
5404 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5405 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5406
5407 2003-04-30 Andrew Cagney <cagney@redhat.com>
5408
5409 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5410 "tm_print_insn_info".
5411 (TARGET_PRINT_INSN_INFO): Delete macro.
5412 (dis_asm_read_memory): Delete function declaration.
5413 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5414 (tm_print_insn_info): Delete variable definition.
5415 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5416 * gdbarch.h, gdbarch.c: Re-generate.
5417 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5418 "deprecated_tm_print_insn_info".
5419 * mcore-tdep.c (mcore_dump_insn): Ditto.
5420 * mips-tdep.c (mips_gdbarch_init): Ditto.
5421 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5422 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5423 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5424 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5425 instead of TARGET_PRINT_INSN_INFO, add comment.
5426 * s390-tdep.c (s390_get_frame_info): Instead of
5427 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5428 (s390_check_function_end, s390_is_sigreturn): Ditto.
5429 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5430 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5431 * disasm.c: Include "gdbcore.h".
5432 (_initialize_disasm): New function, initialize
5433 "deprecated_tm_print_insn_info".
5434 (deprecated_tm_print_insn_info): New variable.
5435 (dis_asm_read_memory): Moved from "corefile.c", made static.
5436 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5437 * Makefile.in (disasm.o): Update dependencies.
5438
5439 2003-04-30 Andrew Cagney <cagney@redhat.com>
5440
5441 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5442
5443 2003-04-29 Adam Fedor <fedor@gnu.org>
5444
5445 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5446 * infcall.c (find_function_addr): Make non-static.
5447 * infcall.h (find_function_addr): Declare.
5448 * Makefile.in (eval.o): Update dependencies.
5449
5450 2003-04-28 Adam Fedor <fedor@gnu.org>
5451
5452 * symtab.c (symbol_find_demangled_name): Check for and demangle
5453 ObjC symbols.
5454 (symbol_init_demangled_name): Init for language_objc as well.
5455
5456 2003-04-28 Andrew Cagney <cagney@redhat.com>
5457
5458 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5459 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5460 * gdbarch.h, gdbarch.c: Re-generate.
5461 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5462 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5463 * inferior.h (deprecated_read_fp): Rename read_fp.
5464 (generic_target_read_fp): Delete declaration.
5465 * regcache.c (generic_target_read_fp): Delete function.
5466 (deprecated_read_fp): Replace read_fp, use
5467 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5468 * d10v-tdep.c (d10v_read_fp): Delete function.
5469 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5470
5471 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5472 deprecated_target_read_fp to generic_target_read_fp.
5473 * sh-tdep.c (sh_gdbarch_init): Ditto.
5474 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5475 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5476 * frv-tdep.c (frv_gdbarch_init): Ditto.
5477
5478 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5479 deprecated_fp_regnum.
5480 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5481 * vax-tdep.c (vax_gdbarch_init): Ditto.
5482 * v850-tdep.c (v850_gdbarch_init): Ditto.
5483 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5484 * sh-tdep.c (sh_gdbarch_init): Ditto.
5485 * s390-tdep.c (s390_gdbarch_init): Ditto.
5486 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5487 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5488 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5489 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5490 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5491 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5492 * i386-tdep.c (i386_gdbarch_init): Ditto.
5493 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5494 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5495 * frv-tdep.c (frv_gdbarch_init): Ditto.
5496 * cris-tdep.c (cris_gdbarch_init): Ditto.
5497 * avr-tdep.c (avr_gdbarch_init): Ditto.
5498 * arm-tdep.c (arm_gdbarch_init): Ditto.
5499 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5500
5501 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5502 * v850-tdep.c (v850_gdbarch_init): Ditto.
5503 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5504 * sh-tdep.c (sh_gdbarch_init): Ditto.
5505 * s390-tdep.c (s390_gdbarch_init): Ditto.
5506 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5507 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5508 * mips-tdep.c (mips_gdbarch_init): Ditto.
5509 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5510 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5511 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5512 * frv-tdep.c (frv_gdbarch_init): Ditto.
5513 * avr-tdep.c (avr_gdbarch_init): Ditto.
5514 * arm-tdep.c (arm_gdbarch_init): Ditto.
5515
5516 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5517 DEPRECATED_FP_REGNUM.
5518 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5519 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5520 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5521 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5522 (sparc32_register_virtual_type): Ditto.
5523 * sh-tdep.c (sh64_frame_chain): Ditto.
5524 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5525 (sh_nofp_frame_init_saved_regs): Ditto.
5526 (sh64_nofp_frame_init_saved_regs): Ditto.
5527 (sh_fp_frame_init_saved_regs): Ditto.
5528 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5529 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5530 * procfs.c (procfs_fetch_registers): Ditto.
5531 (procfs_store_registers): Ditto.
5532 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5533 (store_inferior_registers, fetch_core_registers): Ditto.
5534 (fetch_kcore_registers, clear_regs): Ditto.
5535 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5536 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5537 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5538 * nlm/i386.c (do_status): Ditto.
5539 * mipsv4-nat.c (supply_gregset): Ditto.
5540 * mips-tdep.c: Ditto for comments.
5541 * mips-nat.c (fetch_inferior_registers): Ditto.
5542 (store_inferior_registers, fetch_core_registers): Ditto.
5543 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5544 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5545 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5546 (i386_do_pop_frame, i386_register_type): Ditto.
5547 * hppa-tdep.c (hppa_frame_chain): Ditto.
5548 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5549 (hppa_pop_frame, hppa_read_fp): Ditto.
5550 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5551 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5552 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5553 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5554 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5555 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5556 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5557 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5558 * blockframe.c: Ditto for comments.
5559 * arch-utils.h: Ditto for comments.
5560 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5561 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5562 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5563 * alpha-tdep.h: Ditto for comments.
5564 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5565 (alpha_cannot_store_register): Ditto.
5566 (alpha_push_dummy_frame): Ditto.
5567 * alpha-nat.c (supply_gregset): Ditto.
5568
5569 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5570 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5571 * config/sparc/tm-sparc.h: Update comment.
5572
5573 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5574 deprecated_read_fp instead of TARGET_READ_FP.
5575 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5576 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5577 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5578 deprecated_read_fp instead of read_fp.
5579 * s390-tdep.c (s390_push_arguments): Ditto.
5580 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5581 * frame.h: Ditto in comments.
5582 * frame.c (legacy_get_prev_frame): Ditto.
5583 * dummy-frame.c (dummy_frame_this_id): Ditto.
5584 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5585
5586 2003-04-28 Andrew Cagney <cagney@redhat.com>
5587
5588 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5589 * gdbarch.h, gdbarch.c: Re-generate.
5590 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5591 * vax-tdep.c (_initialize_vax_tdep): Update.
5592 * v850-tdep.c (_initialize_v850_tdep): Update.
5593 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5594 * s390-tdep.c (_initialize_s390_tdep): Update.
5595 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5596 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5597 * mips-tdep.c (_initialize_mips_tdep): Update.
5598 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5599 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5600 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5601 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5602 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5603 * frv-tdep.c (_initialize_frv_tdep): Update.
5604 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5605 (_initialize_cris_tdep): Update.
5606 * arch-utils.c (legacy_print_insn): Update.
5607 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5608
5609 2003-04-26 Adam Fedor <fedor@gnu.org>
5610
5611 * linespec.c (decode_objc): New function to decode ObjC calls
5612 (decode_line_1): Check for ObjC calls (using decode_objc)
5613 * Makefile (linespec.o): Update dependencies.
5614
5615 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
5616
5617 * breakpoint.h (struct breakpoint_ops): New.
5618 (struct breakpoint): Add ops member.
5619
5620 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5621 (mention): Use new breakpoint ops member.
5622 (set_raw_breakpoint): Initialize ops field to NULL.
5623 (print_exception_catchpoint, print_one_exception_catchpoint)
5624 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5625 (gnu_v3_exception_catchpoint_ops): New.
5626 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5627
5628 2003-04-25 Adam Fedor <fedor@gnu.org>
5629
5630 * Makefile.in (COMMON_OBS): Add objc-lang.o
5631
5632 2003-04-25 Andrew Cagney <cagney@redhat.com>
5633
5634 * d10v-tdep.c (print_insn): Delete function.
5635 (display_trace): Use TARGET_PRINT_INSN.
5636 (_initialize_d10v_tdep): Do not set tm_print_insn.
5637 (d10v_gdbarch_init): Set print_insn.
5638
5639 2003-04-25 Andrew Cagney <cagney@redhat.com>
5640
5641 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5642 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5643 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5644 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5645 (nr_dmap_regs, a0_regnum): ... new functions.
5646 (d10v_print_registers_info): Use a0_regnum, use register_size.
5647 (d10v_register_byte): Delete function.
5648 (d10v_register_raw_size): Delete function.
5649 (d10v_register_type): Use a0_regnum.
5650 (d10v_print_registers_info): Use a0_regnum.
5651 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5652 (d10v_gdbarch_init): Do not set register_byte or
5653 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5654 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5655 extract_address.
5656 (trace_command): Use XCALLOC.
5657 (print_insn): Delete reference to tm_print_insn.
5658 (saved_regs_unwinder): Use store_unsigned_integer instead of
5659 store_address.
5660 * frame.h (FRAME_OBSTACK_CALLOC): Define
5661
5662 2003-04-25 David Carlton <carlton@bactrian.org>
5663
5664 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5665
5666 2003-04-24 Adam Fedor <fedor@gnu.org>
5667
5668 * objc-lang.c: Include "valprint.h"
5669 * Makefile.in (objc-lang.o): Update dependencies.
5670
5671 2003-04-24 Adam Fedor <fedor@gnu.org>
5672
5673 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5674 architecture dependant compilation and mark as unimplemented
5675 (until they get put in the gdbarch vector).
5676
5677 2003-04-23 David Carlton <carlton@bactrian.org>
5678
5679 * cp-support.c (cp_find_first_component): Accept 'operator' in
5680 more locations.
5681
5682 2003-04-23 Andrew Cagney <cagney@redhat.com>
5683
5684 * infcall.c (call_function_by_hand): Eliminate redundant
5685 indentation. Move "saved_async" and "old_cleanups" to where they
5686 are needed.
5687
5688 2003-04-23 Andrew Cagney <cagney@redhat.com>
5689
5690 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5691 and "buffer". Move the "name" code to where it is needed.
5692
5693 2003-04-23 Andrew Cagney <cagney@redhat.com>
5694
5695 * infcall.c (call_function_by_hand): Move variables "start_sp",
5696 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5697 code to ON_STACK switch branch.
5698
5699 2003-04-23 Andrew Cagney <cagney@redhat.com>
5700
5701 * infcall.c (call_function_by_hand): Make declaration of "i",
5702 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5703 lint.
5704
5705 2003-04-23 Andrew Cagney <cagney@redhat.com>
5706
5707 * infcall.c (call_function_by_hand): Delete variable
5708 "n_method_args". Localize "param_type"'s declaration to the loop
5709 that it is used. Reinstate code assigning to said variable -
5710 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5711 Rationalize code using "param_type".
5712
5713 2003-04-22 Andrew Cagney <cagney@redhat.com>
5714
5715 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5716 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5717 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5718 to DEPRECATED_PUSH_RETURN_ADDRESS.
5719
5720 2003-04-22 Kevin Buettner <kevinb@redhat.com>
5721
5722 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5723 on the DWARF2 register number prior to fetching a register.
5724
5725 2003-04-22 J. Brobecker <brobecker@gnat.com>
5726
5727 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5728 Update all the tests using SOFT_FLOAT considering the fact that
5729 this macro was always set to 0.
5730 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5731 considering the fact that this macro was always set to 0.
5732 * hppa-tdep.h (hppa_store_return_value): Likewise.
5733 (hppa_extract_return_value): Likewise.
5734
5735 2003-04-22 J. Brobecker <brobecker@gnat.com>
5736
5737 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5738 the hppa-pro target only.
5739
5740 2003-04-21 J. Brobecker <brobecker@gnat.com>
5741
5742 Ongoing multi-arch conversion effort for HP/UX:
5743 * config/pa/tm-hppa.h: Move all macro that are no longer
5744 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5745 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5746
5747 2003-04-21 J. Brobecker <brobecker@gnat.com>
5748
5749 * config/pa/tm-hppa.h: Obsolete a section that was only used
5750 for hppa-pro.
5751
5752 2003-04-21 J. Brobecker <brobecker@gnat.com>
5753
5754 Ongoing multi-arch conversion for HP/UX.
5755 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5756 if already defined (allows hppa64 to stay non-multiarched for now).
5757 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5758
5759 2003-04-21 Andrew Cagney <cagney@redhat.com>
5760
5761 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5762
5763 2003-04-21 Andrew Cagney <cagney@redhat.com>
5764
5765 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5766 "i386_num_mmx_regs".
5767
5768 2003-04-21 Andrew Cagney <cagney@redhat.com>
5769
5770 * infcall.c: New file.
5771 * infcall.h: New file.
5772 * valarith.c: Include "infcall.h".
5773 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5774 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5775 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5776 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5777 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5778 (SFILES): Add "infcall.c"
5779 (COMMON_OBS): Add "infcall.o".
5780 (infcall.o): Specify dependencies.
5781 * value.h (call_function_by_hand): Delete declaration.
5782 * inferior.h (run_stack_dummy): Delete declaration.
5783 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5784 (run_stack_dummy): Move to "infcall.c", merged into
5785 call_function_by_hand.
5786 * valops.c (call_function_by_hand): Moved to "infcall.c".
5787 (find_function_addr, value_arg_coerce): Ditto.
5788 (unwindonsignal_p, coerce_float_to_double): Ditto.
5789 (_initialize_valops): Move "set/show coerce-float-to-double", and
5790 "set/show unwindonsignal" commands to "infcall.c".
5791 * v850-tdep.c, target.h: Update comments.
5792 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5793 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5794 (sh64_init_extra_frame_info): Update comments.
5795 * mn10300-tdep.c: Update comments.
5796 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5797 * config/sparc/tm-sparc.h: Update comments.
5798 * breakpoint.h: Update comments.
5799 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5800 * arm-tdep.c: Update comment.
5801
5802 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5803
5804 * i386-tdep.c (i386_num_register_names): New variable.
5805 (i386_num_mmx_regs): Renamed from mmx_num_regs.
5806 (MM0_REGNUM): Remove redundant parentheses in define.
5807 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
5808 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
5809 i386_mxcsr_regnum_p): Remove redundant parentheses.
5810 (i386_register_name): Use i386_num_register_names.
5811
5812 * i386-tdep.c (i386_extract_return_value,
5813 i386_store_return_value): Correct check for availability of
5814 floating-point registers.
5815
5816 * i386-tdep.c (i386_frame_num_args): Remove function.
5817 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
5818
5819 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
5820 mmx_regnum_to_fp_regnum. Adjust all callers.
5821
5822 * i386-tdep.c (i386_get_longjmp_target): Use
5823 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
5824 and TARGET_CHAR_BIT. Use extract_typed_address instead of
5825 extract_address.
5826
5827 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5828
5829 * core-regset.c: Update comments to reflect reality. Re-order
5830 includes.
5831 (fetch_core_registers): Use switch instead of if. Remove
5832 redundant prototype.
5833
5834 2003-04-18 Jim Blandy <jimb@redhat.com>
5835
5836 * s390-tdep.c (s390_frame_align): New function.
5837 (s390_gdbarch_init): Register it with the gdbarch object.
5838
5839 2003-04-17 Richard Henderson <rth@redhat.com>
5840
5841 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
5842
5843 2003-04-17 Michael Snyder <msnyder@redhat.com>
5844 Karen Bennet <bennet@redhat.com>
5845
5846 Committed by Elena Zannoni <ezannoni@redhat.com>
5847 * gdb_gcore.sh: New script to create a core dump of a process.
5848
5849 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
5850
5851 * values.c (value_being_returned): Don't fetch the return
5852 value if the return type is void.
5853
5854 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5855
5856 * thread-db.c: Reindented.
5857
5858 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5859
5860 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
5861 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
5862 as types.
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888 2003-04-16 Kevin Buettner <kevinb@redhat.com>
5889
5890 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
5891 the size of ``long double'' to 16, instead of 8.
5892
5893 2003-04-16 Mark Kettenis <kettenis@gnu.org>
5894
5895 * i386-linux-nat.c: Add some whitespace to make things more
5896 readable.
5897 (fetch_register, store_register, fetch_inferior_registers,
5898 store_inferior_registers): Get rid of assignment in if-statement.
5899 (store_register): Fix typo in error message.
5900
5901 2003-04-16 Andrew Cagney <cagney@redhat.com>
5902
5903 * utils.c (xmmalloc): Always allocate something, matches
5904 libiberty/xmalloc's semantics.
5905 (xmrealloc, xmcalloc): Ditto.
5906
5907 2003-04-16 Andrew Cagney <cagney@redhat.com>
5908
5909 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5910 update comments.
5911 (get_frame_type): Initialize unwind and type when needed.
5912 (get_frame_id, frame_register_unwind): Ditto.
5913
5914 2003-04-16 Andrew Cagney <cagney@redhat.com>
5915
5916 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
5917 obsolete.
5918 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
5919 * sparcl-stub.c: Obsolete file.
5920 * config/sparc/tm-sparclet.h: Obsolete file.
5921 * sparclet-stub.c: Obsolete file.
5922 * sparclet-rom.c: Obsolete file.
5923 * sparcl-tdep.c: Obsolete file.
5924 * config/sparc/tm-sparclite.h: Obsolete file.
5925 * config/sparc/sparclite.mt: Obsolete file.
5926 * config/sparc/sparclet.mt: Obsolete file.
5927 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
5928 sparc86x-*-* obsolete.
5929
5930 2003-04-15 David Carlton <carlton@math.stanford.edu>
5931
5932 * Makefile.in (SFILES): Add cp-namespace.c.
5933 (COMMON_OBS): Add cp-namespace.o.
5934 (block.o): Depend on gdb_obstack_h and cp_support_h.
5935 (buildsym.o): Depend on cp_support_h.
5936 (cp-namespace.o): New.
5937 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
5938 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
5939 (dwarf2read.o): Depend on cp_support_h.
5940 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
5941 * dwarf2read.c (process_die): Set processing_has_namespace_info,
5942 processing_current_namespace.
5943 (read_namespace): Update processing_current_namespace; check for
5944 anonymous namespaces.
5945 (dwarf2_name): New function.
5946 (dwarf2_extension): Ditto.
5947 * cp-support.h: Update copyright, contributors.
5948 Add inclusion guards.
5949 Add opaque declaration for structs obstack, block, symbol.
5950 (struct using_direct): New struct.
5951 Add declarations for cp_find_first_component,
5952 cp_entire_prefix_len, processing_has_namespace_info,
5953 processing_current_namespace, cp_is_anonymous,
5954 cp_add_using_directive, cp_initialize_namespace,
5955 cp_finalize_namespace, cp_set_block_scope,
5956 cp_scan_for_anonymous_namespaces.
5957 * cp-namespace.c: New file.
5958 * cp-support.c: Update copyright.
5959 Include ctype.h, gdb_assert.h, gdbcmd.h.
5960 New variable maint_cplus_cmd_list.
5961 (cp_find_first_component): New function.
5962 (cp_entire_prefix_len, maint_cplus_command)
5963 (first_component_command, _initialize_cp_support): Ditto.
5964 * buildsym.c: Include cp-support.h.
5965 New variable using_list.
5966 (add_symbol_to_list): Check for anonymous namespaces.
5967 (finish_block): Set block's scope.
5968 (start_symtab): Initialize C++ namespace support.
5969 (end_symtab): Finalize C++ namespace support.
5970 * block.h: Add opaque declarations for structs
5971 block_namespace_info, using_direct, and obstack.
5972 Add declarations for block_set_scope and block_set_using.
5973 (struct block): Add 'language_specific' member.
5974 (BLOCK_NAMESPACE): New macro.
5975 * block.c: Include gdb_obstack.h and cp-support.h.
5976 (struct block_namespace_info): New struct.
5977 (block_set_scope): New function.
5978 (block_set_using, block_initialize_namespace): Ditto.
5979
5980 2003-04-14 Kevin Buettner <kevinb@redhat.com>
5981
5982 * solib-svr4.c (svr4_have_link_map_offsets): New function.
5983 (locate_base): Return early if there aren't any link map offsets.
5984 (svr4_solib_create_inferior_hook): Warn if shared library support
5985 is unavailable.
5986
5987 2003-04-14 David Carlton <carlton@math.stanford.edu>
5988
5989 * symtab.c (symbol_set_names): Add prefix when storing Java names
5990 in hash table. Fix for PR java/1039.
5991
5992 2003-04-14 David Carlton <carlton@math.stanford.edu>
5993
5994 * symtab.c (symbol_set_names): Rename 'name' arg to
5995 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
5996 * symtab.h: Change 'name' argument in declaration of
5997 symbol_set_names to 'linkage_name'.
5998 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
5999
6000 2003-04-14 Andrew Cagney <cagney@redhat.com>
6001
6002 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6003 return the fully sign-extended register value.
6004 (get_frame_pointer): Ditto.
6005 (mips_pop_frame): Initialize "proc_desc" after checking for a
6006 dummy frame.
6007
6008 2003-04-14 Andrew Cagney <cagney@redhat.com>
6009
6010 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6011 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6012 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6013 (mips_push_register): Delete function.
6014 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6015 PUSH_FP_REGNUM.
6016
6017 2003-04-14 Jim Blandy <jimb@redhat.com>
6018
6019 * symmisc.c: #include "gdb_regex.h".
6020 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6021 functions.
6022 * maint.c (maintenance_list_command): New function.
6023 (_initialize_maint_cmds): Register the above as commands.
6024 * symtab.h (maintenance_list_symtabs,
6025 maintenance_list_psymtabs): New declarations.
6026 * cli/cli-cmds.c (maintenancelistlist): New variable.
6027 (init_cmd_lists): Initialize it.
6028 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6029 * gdbcmd.h (maintenancelistlist): New declaration.
6030 * Makefile.in (symmisc.o): Update dependencies.
6031
6032 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
6033
6034 * s390-nat.c: Include asm/types.h for addr_t.
6035
6036 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
6037
6038 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6039 actually incoming type.
6040
6041 2003-04-13 Andrew Cagney <cagney@redhat.com>
6042
6043 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6044 get_next_frame and get_frame_saved_regs.
6045
6046 2003-04-13 Andrew Cagney <cagney@redhat.com>
6047
6048 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6049 of gdbarch_num_regs.
6050
6051 2003-04-13 Andrew Cagney <cagney@redhat.com>
6052
6053 * frame.h: Mention what replaced what in "struct frame_info".
6054 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6055 deprecated_update_frame_base_hack and
6056 deprecated_update_frame_pc_hack.
6057 * hppa-tdep.c: Ditto.
6058
6059 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6060
6061 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6062 to read_reg and update its comment. Remove regnum member.
6063 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6064 Don't call read_reg when setting in_reg. Call read_reg to get
6065 the frame base if it's in a register. Return the register number
6066 on the stack instead of in the context. Remove extra arguments
6067 to read_reg.
6068 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6069 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6070 the register number on the expression stack.
6071 (needs_frame_read_reg): Remove extra arguments.
6072
6073 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6074
6075 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6076 made non-static.
6077 (execute_stack_op): All callers updated.
6078 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6079 * dwarf2loc.c (find_location_expression): New function.
6080 (dwarf_expr_frame_base): Call it.
6081 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6082 (dwarf2_tracepoint_var_ref): New function, broken out from
6083 locexpr_tracepoint_var_ref.
6084 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6085 Make static.
6086 (loclist_read_variable, loclist_read_needs_frame): New functions.
6087 (loclist_describe_location, loclist_tracepoint_var_ref): New
6088 functions.
6089 (dwarf2_loclist_funcs): New struct location_funcs.
6090 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6091 (struct dwarf2_locexpr_baton): Add comments.
6092 (dwarf2_loclist_funcs): New extern.
6093 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6094 base_address and base_known.
6095 (dwarf_loc_buffer): New variable.
6096 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6097 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6098 (dwarf2_has_info): Initialize dwarf_loc_offset.
6099 (dwarf2_build_psymtabs): Read in .debug_loc.
6100 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6101 DWARF_LOC_SIZE.
6102 (psymtab_to_symtab_1): Likewise. Move base address calculation
6103 here, from...
6104 (dwarf2_get_pc_bounds): ... here. Use the base address from
6105 cu_header.
6106 (dwarf2_symbol_mark_computed): Handle location lists.
6107
6108 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6109
6110 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6111 if the linkage name demangled successfully.
6112
6113 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6114
6115 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6116 disassmbly_flavour): Removed.
6117
6118 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6119
6120 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6121
6122 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6123
6124 2003-04-12 Andrew Cagney <cagney@redhat.com>
6125
6126 * frame.h (struct frame_info): Move definition from here ...
6127 * frame.c (struct frame_info): ... to here.
6128
6129 2003-04-12 Andrew Cagney <cagney@redhat.com>
6130
6131 * gdbthread.h (save_infrun_state): Delete parameter
6132 "prev_func_start".
6133 (struct thread_info): Delete field "prev_func_start".
6134 (load_infrun_state): Ditto.
6135 * thread.c (load_infrun_state, save_infrun_state): Update.
6136 * infrun.c (prev_func_start): Delete variable.
6137 (context_switch, init_wait_for_inferior): Update.
6138 (stop_stepping, keep_going): Update.
6139
6140 2003-04-12 Andrew Cagney <cagney@redhat.com>
6141
6142 * gdbarch.sh: Add missing opaque declarations.
6143 * gdbarch.h: Regnerate.
6144 * symtab.h: Add missing opaque declarations.
6145 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6146 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6147 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6148 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6149 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6150 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6151 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6152 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6153 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6154 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6155 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6156 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6157 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6158
6159 2003-04-11 Andrew Cagney <cagney@redhat.com>
6160
6161 * frame.c (get_frame_id): Return this frame's "id".
6162 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6163 function start.
6164 (legacy_saved_regs_this_id): Replace function body with
6165 internal-error.
6166 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6167 FRAME_OBSTACK_ZALLOC.
6168 (create_new_frame): Mark the frame ID as valid.
6169
6170 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6171
6172 * Makefile.in (libbfd_h): Added missing setting.
6173 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6174 according to the selected ABI.
6175
6176 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6177
6178 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6179
6180 2003-04-11 Andrew Cagney <cagney@redhat.com>
6181
6182 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6183 SAVED_PC_AFTER_CALL.
6184 * gdbarch.h, gdbarch.c: Regenerate.
6185 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6186 * x86-64-tdep.c (x86_64_init_abi): Update.
6187 * vax-tdep.c (vax_gdbarch_init): Update.
6188 * v850-tdep.c (v850_gdbarch_init): Update.
6189 * sparc-tdep.c (sparc_gdbarch_init): Update.
6190 * sh-tdep.c (sh_gdbarch_init): Update.
6191 * s390-tdep.c (s390_gdbarch_init): Update.
6192 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6193 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6194 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6195 * mips-tdep.c (mips_gdbarch_init): Update.
6196 * mcore-tdep.c (mcore_gdbarch_init): Update.
6197 * m68k-tdep.c (m68k_gdbarch_init): Update.
6198 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6199 * ia64-tdep.c (ia64_gdbarch_init): Update.
6200 (ia64_saved_pc_after_call): Update declaration.
6201 * i386ly-tdep.c (i386lynx_init_abi): Update.
6202 * i386-tdep.c (i386_gdbarch_init): Update.
6203 * hppa-tdep.c (hppa_gdbarch_init): Update.
6204 * h8300-tdep.c (h8300_gdbarch_init): Update.
6205 * frv-tdep.c (frv_gdbarch_init): Update.
6206 * cris-tdep.c (cris_gdbarch_init): Update.
6207 * avr-tdep.c (avr_gdbarch_init): Update.
6208 * arm-tdep.c (arm_gdbarch_init): Update.
6209 * alpha-tdep.c (alpha_gdbarch_init): Update.
6210 * ns32knbsd-nat.c (frame_num_args): Update.
6211 * ns32k-tdep.c (umax_frame_num_args): Update.
6212 * mips-tdep.c (mips_init_frame_pc_first): Update.
6213 * infrun.c (step_over_function): Update.
6214 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6215 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6216 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6217 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6218 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6219 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6220 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6221 * arch-utils.c (init_frame_pc_default): Update.
6222 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6223 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6224 declaration.
6225
6226 2003-04-11 Andrew Cagney <cagney@redhat.com>
6227
6228 * i387-tdep.c: Update copyright.
6229 (i387_to_double): Delete function.
6230 (double_to_i387): Delete function.
6231
6232 2003-04-10 Andrew Cagney <cagney@redhat.com>
6233
6234 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6235 frame's function's address. Simplify.
6236 (d10v_frame_unwind_cache): Check that the frame's function is
6237 non-zero.
6238
6239 2003-04-10 Jim Blandy <jimb@redhat.com>
6240
6241 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6242 call to set_gdbarch_deprecated_push_arguments.
6243
6244 2003-04-10 Andrew Cagney <cagney@redhat.com>
6245
6246 * frame.c (fprint_frame_id): New function.
6247 (fprint_frame_type, fprint_frame): New function.
6248 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6249 (create_sentinel_frame, get_frame_id): Ditto.
6250 (frame_id_p, frame_id_eq): Ditto.
6251 (frame_id_inner, create_new_frame): Ditto.
6252 (legacy_get_prev_frame, get_prev_frame): Ditto.
6253 (deprecated_update_frame_pc_hack): Ditto.
6254 (frame_register_unwind): Ditto.
6255 (deprecated_update_frame_base_hack): Ditto.
6256
6257 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6258
6259 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6260 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6261 frame_chain function.
6262 * Makefile.in: Add dependencies due to above change.
6263
6264 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6265
6266 * blockframe.c (legacy_frame_chain_valid): Move call to
6267 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6268 inside_entry_file.
6269
6270 2003-04-09 Andrew Cagney <cagney@redhat.com>
6271
6272 * frame.h (struct frame_id): Replace "pc" and "base" with
6273 "stack_addr" and "code_addr". Update comments.
6274 (frame_id_build): Update parameter names and comment.
6275 (struct frame_info): Replace "id_p" and "id" with "this_id".
6276 * dummy-frame.c (dummy_frame_this_id): Update.
6277 * breakpoint.c (print_one_breakpoint): Update.
6278 * frame.c (get_frame_id): Update.
6279 (get_frame_base, frame_id_build): Update.
6280 (create_sentinel_frame, legacy_get_prev_frame): Update.
6281 (deprecated_update_frame_base_hack): Update.
6282 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6283 (frame_id_inner): Ditto.
6284
6285 2003-04-09 Andrew Cagney <cagney@redhat.com>
6286
6287 * defs.h (gdb_print_host_address): Make "addr" parameter a
6288 pointer constant.
6289 * utils.c (gdb_print_host_address): Update.
6290
6291 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6292
6293 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6294 register number for R0 is 0.
6295
6296 2003-04-09 J. Brobecker <brobecker@gnat.com>
6297
6298 * frame.h (struct gdbarch): Add opaque structure definition
6299 to avoid a compilation warning on LynxOS 4.0.
6300
6301 2003-04-09 Andrew Cagney <cagney@redhat.com>
6302
6303 * frame.h (struct frame_info): Delete field "pc". Replace
6304 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6305 structure.
6306 * frame.c (frame_pc_unwind): Update.
6307 (create_sentinel_frame): Do not set "pc".
6308 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6309 (get_frame_pc): Call frame_pc_unwind.
6310 (deprecated_update_frame_pc_hack): Update.
6311 (create_new_frame): Use "pc" not "->pc".
6312
6313 2003-04-09 Andrew Cagney <cagney@redhat.com>
6314
6315 * frame.c (get_frame_id): Eliminate code updating "frame".
6316 (legacy_get_prev_frame): Ditto.
6317 (get_frame_base): Return id.base directly.
6318 (deprecated_update_frame_base_hack): Update "id.base".
6319 * frame.h (struct frame_info): Delete field "frame".
6320
6321 2003-04-09 Andrew Cagney <cagney@redhat.com>
6322
6323 * NEWS: Mention that the "Sequent family" is obsolete.
6324 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6325 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6326 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6327 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6328 * config/i386/tm-ptx4.h: Obsolete file.
6329 * config/i386/tm-ptx.h: Obsolete file.
6330 * symm-tdep.c: Obsolete file.
6331 * config/i386/symmetry.mt: Obsolete file.
6332 * config/i386/tm-symmetry.h: Obsolete file.
6333 * symm-nat.c: Obsolete file.
6334 * config/i386/nm-symmetry.h: Obsolete file.
6335 * config/i386/xm-symmetry.h: Obsolete file.
6336 * config/i386/symmetry.mh: Obsolete file.
6337 * config/i386/nm-ptx4.h: Obsolete file.
6338 * config/i386/ptx4.mh: Obsolete file.
6339 * config/i386/ptx.mt: Obsolete file.
6340 * config/i386/ptx.mh: Obsolete file.
6341 * config/i386/xm-ptx4.h: Obsolete file.
6342 * config/i386/xm-ptx.h: Obsolete file.
6343
6344 2003-04-09 Andrew Cagney <cagney@redhat.com>
6345
6346 Obsolete mips*-*-mach3*.
6347 * NEWS: Mention that mips*-*-mach3* is obsolete.
6348 * m3-nat.c: Obsolete file.
6349 * config/nm-m3.h: Obsolete file.
6350 * config/mips/tm-mipsm3.h: Obsolete file.
6351 * config/mips/mipsm3.mt: Obsolete file.
6352 * config/mips/mipsm3.mh: Obsolete file.
6353 * config/mips/xm-mipsm3.h: Obsolete file.
6354 * mipsm3-nat.c: Obsolete file.
6355 * configure.host: Obsolete mips-dec-mach3*.
6356 * configure.tgt: Obsolete mips*-*-mach3*.
6357
6358 2003-04-09 Andrew Cagney <cagney@redhat.com>
6359
6360 * doublest.h: Update copyright.
6361 (deprecated_store_floating, deprecated_extract_floating): Rename
6362 store_floating and extract_floating. Update comments.
6363 * doublest.c: Update copyright.
6364 (extract_floating_by_length): Replace extract_floating.
6365 (store_floating_by_length): Replace store_floating.
6366 (deprecated_extract_floating): New function.
6367 (deprecated_store_floating): New function.
6368 (extract_typed_floating): Call extract_floating_by_length.
6369 (store_typed_floating): Call store_floating_by_length.
6370 * x86-64-tdep.c (x86_64_store_return_value): Update.
6371 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6372 (sh64_extract_return_value): Update.
6373 (sh_sh4_register_convert_to_virtual): Update.
6374 (sh_sh64_register_convert_to_virtual): Update.
6375 (sh_sh4_register_convert_to_raw): Update.
6376 (sh_sh64_register_convert_to_raw): Update.
6377 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6378 (rs6000_register_convert_to_raw): Update.
6379 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6380 (ia64_register_convert_to_raw): Update.
6381 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6382 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6383 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6384 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6385 (alpha_register_convert_to_raw): Update.
6386
6387 2003-04-08 Andrew Cagney <cagney@redhat.com>
6388
6389 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6390 * gdbarch.h, gdbarch.c: Re-generate.
6391 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6392 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6393 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6394 conditionally, use frame_pc_unwind as an alternative. Add
6395 comments.
6396 * arch-utils.c (init_frame_pc_default): Only call
6397 SAVED_PC_AFTER_CALL when available.
6398
6399 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6400
6401 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6402 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6403 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6404 (start_remote): Ditto.
6405 (handle_inferior_event): Ditto.
6406 (save_inferior_status): Ditto.
6407 (restore_inferior_status): Ditto.
6408 * infcmd.c (attach_command): Ditto.
6409 * fork-child.c (startup_inferior): Ditto.
6410 * inferior.h (stop_soon): Rename from stop_soon_quietly.
6411 * alpha-tdep.c (heuristic_proc_start): Ditto.
6412 * mips-tdep.c (heuristic_proc_start): Ditto.
6413 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6414 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6415 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6416 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6417 * remote-vx.c (vx_create_inferior): Ditto.
6418
6419 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6420
6421 * infrun.c (stop_soon_quietly): Make it an enum, to better
6422 override the default behavior of handle_inferior_event.
6423 (clear_proceed_status): Update uses of stop_soon_quietly to
6424 reflect that it is now an enum.
6425 (start_remote): Ditto.
6426 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6427 is set to handle the new GNU/Linux kernel behavior for
6428 attach/sigstop. Update uses of stop_soon_quietly.
6429 * inferior.h (enum stop_kind): New enum.
6430 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6431 Reset normal handle_inferior_event behavior, afterwards.
6432 * fork-child.c (startup_inferior): Update.
6433 * alpha-tdep.c (heuristic_proc_start): Update.
6434 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6435 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6436 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6437 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6438 * remote-vx.c (vx_create_inferior): Update.
6439 * mips-tdep.c (heuristic_proc_start): Update.
6440
6441 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
6442
6443 * disasm.c (dump_insns): Move variables inside loop, or they will
6444 be freed more than once, causing wild memory corruptions.
6445 (gdb_disassembly): Look for the substring "-thread",
6446 instead of "-threads" in the target name, to make sure to find
6447 the 'multi-thread' target. Also, make sure we do the right thing
6448 with the "core" target.
6449
6450 2003-04-07 Kevin Buettner <kevinb@redhat.com>
6451
6452 * mips-tdep.c (mips_print_fp_register): New function, created from
6453 do_fp_register_row(). Registers are now (also) printed as hex.
6454 Only one register is printed per row.
6455 (mips_print_register, do_fp_register_row): Print floating point
6456 registers with mips_print_fp_register().
6457
6458 2003-04-06 Andrew Cagney <cagney@redhat.com>
6459
6460 * valprint.h (inspect_it): Add extern declaration.
6461 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6462 (selectors_info, classes_info): Ditto.
6463 (find_objc_msgcall): Fix indentation.
6464 (objc_printstr): Delete extern declarations.
6465
6466 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6467
6468 2003-04-06 Andrew Cagney <cagney@redhat.com>
6469
6470 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6471 Update comment.
6472 * frame.c (legacy_saved_regs_this_id): Update.
6473 (legacy_get_prev_frame): Update.
6474 * xstormy16-tdep.c: Update comment.
6475 * sparc-tdep.c (sparc_frame_chain): Update comment.
6476 * blockframe.c (legacy_frame_chain_valid): Update.
6477
6478 2003-04-06 Andrew Cagney <cagney@redhat.com>
6479
6480 * valprint.c (val_print_type_code_int): Delete #ifdef
6481 PRINT_TYPELESS_INTEGER code.
6482
6483 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6484 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6485 multi-arch definition.
6486 * gdbarch.h: Re-generate.
6487
6488 2003-04-05 Andrew Cagney <cagney@redhat.com>
6489
6490 Eliminate FRAME_FIND_SAVED_REGS.
6491 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6492 Change FSR parameter to a pointer.
6493 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6494 Assume FSR parameter is a pointer.
6495 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6496 Make fsr a pointer.
6497 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6498 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6499 saved_regs a pointer.
6500 (hppa_frame_saved_pc): Ditto.
6501 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6502 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6503 pointer.
6504 (restore_pc_queue): Make fsr a pointer.
6505 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6506 (hppa_frame_chain): Make saved_regs a pointer, call
6507 hppa_frame_init_saved_regs.
6508 * sparc-tdep.c: Include "gdb_assert.h".
6509 (sparc_frame_find_saved_regs): Replace internal_error with
6510 gdb_assert.
6511 * remote-vxsparc.c (vx_read_register): Delete reference to
6512 FRAME_FIND_SAVED_REGS.
6513 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6514 * gdbarch.h: Regenerate.
6515 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6516 (deprecated_get_frame_saved_regs): Delete declaration.
6517 (struct frame_saved_regs): Delete definition.
6518 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6519 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6520 (hppa_frame_find_saved_regs): Delete declaration.
6521 (FRAME_FIND_SAVED_REGS): Delete macro.
6522 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6523 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6524 FRAME_FIND_SAVED_REGS in comment.
6525
6526 2003-04-05 Andrew Cagney <cagney@redhat.com>
6527
6528 * frame.c (frame_func_unwind, get_frame_func): New functions.
6529 * frame.h (get_frame_func, frame_func_unwind): Declare.
6530 (struct frame_info): Add field "prev_func" for caching the
6531 previous frame's function address.
6532 * arm-tdep.c (arm_frameless_function_invocation): Combine
6533 get_pc_function_start and get_frame_pc into get_frame_func.
6534 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6535 (sh64_nofp_frame_init_saved_regs): Ditto.
6536 * s390-tdep.c (s390_function_start): Ditto.
6537 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6538 (rs6000_frameless_function_invocation): Ditto.
6539 (rs6000_frame_saved_pc): Ditto.
6540 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6541 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6542 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6543 (i386_frame_init_saved_regs): Ditto.
6544 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6545 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6546 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6547 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6548 * blockframe.c (frameless_look_for_prologue): Ditto.
6549
6550 2003-04-05 Andrew Cagney <cagney@redhat.com>
6551
6552 * frame.c (legacy_get_prev_frame): Link prev to next at the
6553 function start. Update comments.
6554
6555 2003-04-05 Andrew Cagney <cagney@redhat.com>
6556
6557 * frame.c (get_frame_id): Update comment.
6558 (legacy_get_prev_frame): Update comment.
6559 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6560 * gdbarch.h: Regenerate.
6561 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6562 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6563
6564 2003-04-05 Andrew Cagney <cagney@redhat.com>
6565
6566 * stack.c (print_frame_info): Use get_frame_pc.
6567
6568 2003-04-04 Andrew Cagney <cagney@redhat.com>
6569
6570 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6571 the frame's type from the unwinder.
6572 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6573 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6574 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6575 (get_frame_base_address): Use get_frame_type.
6576 (get_frame_locals_address, get_frame_args_address): Ditto.
6577 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6578 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6579 (struct frame_info): Add comment explaining why the frame contains
6580 a "type" field.
6581 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6582 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6583 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6584 NORMAL_FRAME.
6585 * frame-unwind.h: Include "frame.h".
6586 (struct frame_unwind): Add "type" field.
6587 * Makefile.in (frame_unwind_h): Add $(frame_h).
6588
6589 2003-04-04 Andrew Cagney <cagney@redhat.com>
6590
6591 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6592 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6593 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6594 get_frame_base.
6595 (d10v_unwind_dummy_id): Use frame_id_build.
6596 * frame.c (find_frame_sal): Use get_frame_pc.
6597 (create_new_frame): Use deprecated_update_frame_pc_hack and
6598 deprecated_update_frame_base_hack.
6599 (create_sentinel_frame): Add comment about ->pc going away.
6600 (get_prev_frame): Add comment about ->pc going away.
6601 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6602 frame_id_build, deprecated_update_frame_pc_hack and
6603 deprecated_update_frame_base_hack.
6604 (select_frame): Use get_frame_pc.
6605 (legacy_saved_regs_this_id): Use frame_id_build.
6606
6607 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
6608
6609 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6610 signed integer case.
6611 (classify_argument): Handle enumerations and references.
6612
6613 2003-04-04 Andrew Cagney <cagney@redhat.com>
6614
6615 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6616 ID to NULL.
6617
6618 2003-04-01 Adam Fedor <fedor@gnu.org>
6619
6620 * gdb/objc-lang.c (selectors_info): Replace calls to
6621 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6622 SYMBOL_NATURAL_NAME.
6623 (classes_info, find_methods): Likewise.
6624
6625 2003-04-03 Kevin Buettner <kevinb@redhat.com>
6626
6627 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6628 ``mach'' to the value determined by bfd_default_set_arch_mach().
6629
6630 2003-04-02 Bob Rossi <bob_rossi@cox.net>
6631
6632 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6633 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6634 (mi-cmd-file.o): Update dependencies.
6635
6636 2003-04-01 Kevin Buettner <kevinb@redhat.com>
6637
6638 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6639 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6640
6641 2003-04-01 Adam Fedor <fedor@gnu.org>
6642
6643 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6644 * language.h (struct language_defn): Add la_demangle.
6645 (language_demangle): Declare.
6646 * language.c (language_demangle): New function.
6647 (unk_lang_demangle): Likewise.
6648 (unknown_language_defn, auto_language_defn, local_language_defn):
6649 Add ukn_lang_demangle.
6650 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6651 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6652 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6653 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6654 * jv-lang.c (java_demangle): New function
6655 (java_language_defn): Use it for la_demangle element.
6656 * objc-lang.c (objc_demangle): Add options argument
6657 (objc_language_defn): Use objc_demangle for la_demangle element.
6658 * maint.c (maintenance_demangle): Replace switch with
6659 call to language_demangle.
6660 * utils.c (fprintf_symbol_filtered): Likewise.
6661
6662 2003-04-01 Andrew Cagney <cagney@redhat.com>
6663
6664 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6665 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6666 PRINT_TYPELESS_INTEGER.
6667 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6668 PUSH_RETURN_ADDRESS.
6669
6670 2003-04-01 Andrew Cagney <cagney@redhat.com>
6671
6672 * Makefile.in (d10v-tdep.o): Update dependencies.
6673 * d10v-tdep.c: Include "frame-base.h".
6674 (d10v_frame_unwind): Make constant.
6675 (d10v_frame_base_address): New function.
6676 (d10v_frame_base): New variable.
6677 (d10v_gdbarch_init): Set frame_base default.
6678 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6679 comment for base.
6680 (d10v_frame_unwind_cache): Set and use "prev_sp".
6681 (d10v_frame_this_id): Use the previous frame's inner most stack
6682 address and this frame's func address for the frame ID. Use
6683 frame_id_build. Don't analyze beyond the current instruction.
6684
6685 2003-04-01 Andrew Cagney <cagney@redhat.com>
6686
6687 * frame.h (get_frame_locals_address, get_frame_args_address):
6688 Refer to the base address, instead of the address of the first
6689 local or parameter.
6690
6691 2003-04-01 Andrew Cagney <cagney@redhat.com>
6692
6693 Add frame debug info addresses:
6694 * frame-base.c: New file.
6695 * frame-base.h: New file.
6696 * frame.h (struct frame_base): Add opaque declaration.
6697 (get_frame_base): Update comment.
6698 (get_frame_base_address): Declare.
6699 (get_frame_locals_address): Declare.
6700 (get_frame_args_address): Declare.
6701 (struct frame_info): Add "base" and "base_cache". Update
6702 comments on the unwinder.
6703 * frame.c: Include "frame-base.h".
6704 (get_frame_locals_address): New function.
6705 (get_frame_base_address): New function.
6706 (get_frame_args_address): New function.
6707 * findvar.c (read_var_value): Use get_frame_locals_address and
6708 get_frame_args_address.
6709 * stack.c (frame_info): Use get_frame_locals_address and
6710 get_frame_args_address.
6711 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6712 moved to "frame-base.c".
6713 * printcmd.c (print_frame_nameless_args): Ditto.
6714 * symtab.h (address_class): Update comments.
6715 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6716 get_frame_base_address.
6717 * dwarf2expr.c (execute_stack_op): Ditto.
6718 * Makefile.in (frame_base_h): Define.
6719 (frame.o): Update dependencies.
6720 (frame-base.o): Add dependencies.
6721 (SFILES): Add frame-base.c.
6722 (COMMON_OBS): Add frame-base.o.
6723
6724 2003-04-01 Andrew Cagney <cagney@redhat.com>
6725
6726 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6727 CALL_DUMMY_LENGTH): Ditto.
6728 * gdbarch.c: Re-generate.
6729 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6730 (CALL_DUMMY_LENGTH): Delete macro.
6731 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6732 * arm-tdep.c (arm_gdbarch_init): Ditto.
6733 * avr-tdep.c (avr_gdbarch_init): Ditto.
6734 * cris-tdep.c (cris_gdbarch_init): Ditto.
6735 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6736 * frv-tdep.c (frv_gdbarch_init): Ditto.
6737 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6738 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6739 * i386-tdep.c (i386_gdbarch_init): Ditto.
6740 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6741 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6742 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6743 * mips-tdep.c (mips_gdbarch_init): Ditto.
6744 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6745 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6746 * s390-tdep.c (s390_gdbarch_init): Ditto.
6747 * sh-tdep.c (sh_gdbarch_init): Ditto.
6748 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6749 * v850-tdep.c (v850_gdbarch_init): Ditto.
6750 * vax-tdep.c (vax_gdbarch_init): Ditto.
6751 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6752
6753 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
6754
6755 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6756
6757 2003-04-01 Andrew Cagney <cagney@redhat.com>
6758
6759 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6760 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6761 * gdbarch.h, gdbarch.c: Re-generate.
6762 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6763 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6764 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6765 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6766 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6767 * infcmd.c (run_stack_dummy): Simplify assuming
6768 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6769 * infrun.c (handle_inferior_event): Ditto.
6770 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6771 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6772 * arm-tdep.c (arm_gdbarch_init): Ditto.
6773 * avr-tdep.c (avr_gdbarch_init): Ditto.
6774 * cris-tdep.c (cris_gdbarch_init): Ditto.
6775 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6776 * frv-tdep.c (frv_gdbarch_init): Ditto.
6777 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6778 * i386-tdep.c (i386_gdbarch_init): Ditto.
6779 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6780 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6781 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6782 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6783 * mips-tdep.c (mips_gdbarch_init): Ditto.
6784 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6785 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6786 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6787 * s390-tdep.c (s390_gdbarch_init): Ditto.
6788 * sh-tdep.c (sh_gdbarch_init): Ditto.
6789 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6790 * v850-tdep.c (v850_gdbarch_init): Ditto.
6791 * vax-tdep.c (vax_gdbarch_init): Ditto.
6792 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6793
6794 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
6795
6796 * symfile.c (symfile_relocate_debug_section): Update call to
6797 bfd_simple_get_relocated_section_contents.
6798
6799 2003-03-31 Andrew Cagney <cagney@redhat.com>
6800
6801 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6802 * gdbarch.h, gdbarch.c: Regenerate.
6803 * inferior.h (FIX_CALL_DUMMY): Delete macro.
6804 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
6805 available.
6806 * frame.h (generic_fix_call_dummy): Delete declaration.
6807 * dummy-frame.h: Update comment.
6808 * dummy-frame.c (generic_fix_call_dummy): Delete function.
6809 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6810 fix_call_dummy.
6811 * sh-tdep.c (sh_gdbarch_init): Ditto.
6812 * s390-tdep.c (s390_gdbarch_init): Ditto.
6813 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6814 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6815 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6816 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6817 * i386-tdep.c (i386_gdbarch_init): Ditto.
6818 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6819 * frv-tdep.c (frv_gdbarch_init): Ditto.
6820 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6821 * cris-tdep.c (cris_gdbarch_init): Ditto.
6822 * avr-tdep.c (avr_gdbarch_init): Ditto.
6823 * arm-tdep.c (arm_gdbarch_init): Ditto.
6824
6825 2003-03-31 J. Brobecker <brobecker@gnat.com>
6826
6827 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
6828 (INIT_FRAME_AP): Likewise.
6829 (EXTRA_FRAME_INFO): Likewise.
6830
6831 2003-03-31 Andrew Cagney <cagney@redhat.com>
6832
6833 * gdbarch.sh: Include "symfile.h".
6834 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
6835 * gdbarch.h, gdbarch.c: Re-generate.
6836 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
6837 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6838 call_dummy_address, the default is at entry_point_address.
6839 * v850-tdep.c (v850_gdbarch_init): Ditto.
6840 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6841 * sh-tdep.c (sh_gdbarch_init): Ditto.
6842 * s390-tdep.c (s390_gdbarch_init): Ditto.
6843 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6844 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6845 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6846 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6847 * i386-tdep.c (i386_gdbarch_init): Ditto.
6848 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6849 * frv-tdep.c (frv_gdbarch_init): Ditto.
6850 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6851 * cris-tdep.c (cris_gdbarch_init): Ditto.
6852 * arm-tdep.c (arm_gdbarch_init): Ditto.
6853
6854 2003-03-31 Andrew Cagney <cagney@redhat.com>
6855
6856 * gdbarch.sh (CALL_DUMMY_P): Delete.
6857 * gdbarch.h, gdbarch.c: Re-generate.
6858 * inferior.h (CALL_DUMMY_P): Delete macro.
6859 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6860 * vax-tdep.c (vax_gdbarch_init): Update.
6861 * v850-tdep.c (v850_gdbarch_init): Update.
6862 * sparc-tdep.c (sparc_gdbarch_init): Update.
6863 * sh-tdep.c (sh_gdbarch_init): Update.
6864 * s390-tdep.c (s390_gdbarch_init): Update.
6865 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6866 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6867 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6868 * mips-tdep.c (mips_gdbarch_init): Update.
6869 * mcore-tdep.c (mcore_gdbarch_init): Update.
6870 * m68k-tdep.c (m68k_gdbarch_init): Update.
6871 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6872 * ia64-tdep.c (ia64_gdbarch_init): Update.
6873 * i386-tdep.c (i386_gdbarch_init): Update.
6874 * h8300-tdep.c (h8300_gdbarch_init): Update.
6875 * frv-tdep.c (frv_gdbarch_init): Update.
6876 * d10v-tdep.c (d10v_gdbarch_init): Update.
6877 * cris-tdep.c (cris_gdbarch_init): Update.
6878 * breakpoint.c (deprecated_frame_in_dummy): Update.
6879 * avr-tdep.c (avr_gdbarch_init): Update.
6880 * alpha-tdep.c (alpha_gdbarch_init): Update.
6881 * arm-tdep.c (arm_gdbarch_init): Update.
6882 * dummy-frame.c (dummy_frame_this_id): Update comments.
6883 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
6884 * frame.c (legacy_get_prev_frame): Ditto.
6885 * valops.c (call_function_by_hand): Delete function.
6886 (hand_function_call): Rename to call_function_by_hand
6887
6888 2003-03-30 Andrew Cagney <cagney@redhat.com>
6889
6890 2002-11-10 Klee Dienes <kdienes@apple.com>
6891 * value.h (struct value): Update comment.
6892
6893 2003-03-30 Andrew Cagney <cagney@redhat.com>
6894
6895 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
6896 D10V_FP_REGNUM.
6897 (d10v_gdbarch_init): Do not set fp_regnum.
6898
6899 * frame.c (get_frame_base): Force ID initialization.
6900 (get_prev_frame): Move computation of the frame ID from here ...
6901 (get_frame_id): ... to here.
6902 (legacy_get_prev_frame): Mark the frame ID as valid.
6903 * frame.h (struct frame_info): Add field "id_p".
6904
6905 2003-03-30 Mark Kettenis <kettenis@gnu.org>
6906
6907 * i386-tdep.c (i386_store_struct_return): Removed.
6908 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
6909
6910 2003-03-30 Andrew Cagney <cagney@redhat.com>
6911
6912 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
6913 * gdbarch.h, gdbarch.c: Regenerate.
6914 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
6915 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6916 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6917 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6918 * i386-tdep.c (i386_gdbarch_init): Ditto.
6919 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6920 * cris-tdep.c (cris_gdbarch_init): Ditto.
6921 * vax-tdep.c (vax_gdbarch_init): Ditto.
6922 * s390-tdep.c (s390_gdbarch_init): Ditto.
6923 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6924 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6925 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6926 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
6927 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6928 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
6929 * sparc-tdep.c (sparc_gdbarch_init): Update.
6930 * sh-tdep.c (sh_gdbarch_init): Update.
6931 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6932 * mips-tdep.c (mips_gdbarch_init): Update.
6933 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6934 * ia64-tdep.c (ia64_gdbarch_init): Update.
6935 * frv-tdep.c (frv_gdbarch_init): Update.
6936 * avr-tdep.c (avr_gdbarch_init): Update.
6937 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
6938 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
6939 instead of when push_dummy_call is not available.
6940
6941 2003-03-30 Andrew Cagney <cagney@redhat.com>
6942
6943 * infttrace.c: Include "gdbthread.h".
6944 (parent_attach_all): Fix function signature.
6945 (call_ptrace): Update call.
6946 * Makefile.in (infttrace.o): Update dependencies.
6947
6948 2003-03-30 Andrew Cagney <cagney@redhat.com>
6949
6950 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
6951 PUSH_RETURN_ADDRESS.
6952 * gdbarch.h, gdbarch.c: Regenerate.
6953 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6954 * x86-64-tdep.c (x86_64_init_abi): Update.
6955 * v850-tdep.c (v850_gdbarch_init): Update.
6956 * sparc-tdep.c (sparc_gdbarch_init): Update.
6957 * sh-tdep.c (sh_gdbarch_init): Update.
6958 * s390-tdep.c (s390_gdbarch_init): Update.
6959 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6960 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6961 * mips-tdep.c (mips_gdbarch_init): Update.
6962 * mcore-tdep.c (mcore_gdbarch_init): Update.
6963 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6964 * ia64-tdep.c (ia64_gdbarch_init): Update.
6965 * i386-tdep.c (i386_gdbarch_init): Update.
6966 * h8300-tdep.c (h8300_gdbarch_init): Update.
6967 * frv-tdep.c (frv_gdbarch_init): Update.
6968 * cris-tdep.c (cris_gdbarch_init): Update.
6969 * avr-tdep.c (avr_gdbarch_init): Update.
6970 * arm-tdep.c (arm_gdbarch_init): Update.
6971 * valops.c (hand_function_call): Update.
6972
6973 2003-03-29 Andrew Cagney <cagney@redhat.com>
6974
6975 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
6976 sizeof_call_dummy_words.
6977 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
6978 define.
6979 * gdbarch.h: Regenerate.
6980
6981 2003-03-29 Andrew Cagney <cagney@redhat.com>
6982
6983 * infttrace.h: New file.
6984 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
6985 (hpread_get_textlow): Detect an uninitialized dn_bufp.
6986 (hpread_read_doc_function_type): Detect an initialized type1.
6987 (hpread_quick_traverse): Initialize mod_name_string.
6988 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
6989 (som_solib_get_solib_by_pc): Declare.
6990 (so_lib_thread_start_addr): Declare.
6991 (no_shared_libraries): Declare.
6992 * somread.c (init_import_symbols): Make static. Add forward
6993 declaration.
6994 * config/pa/nm-hppah.h: Include "infttrace.h" for
6995 parent_attach_all.
6996 (hppa_insert_hw_watchpoint): Declare.
6997 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
6998 * hppah-nat.c: Include "gdb_string.h".
6999 (parent_attach_all): Delete extern declaration, moved to
7000 "infttrace.h".
7001 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7002 int.
7003 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7004 * Makefile.in (infttrace_h): Define.
7005 (hpread.o): Update dependencies.
7006 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7007 * hppa-hpux-tdep.c: Include "gdb_string.h".
7008 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7009 * infrun.c (handle_inferior_event): Always initialize
7010 stepped_after_stopped_by_watchpoint. Add default and remove
7011 fallthrough in switch statement.
7012 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7013 parameter to int.
7014 (hppa_remove_hw_watchpoint): Ditto.
7015
7016 2003-03-29 Andrew Cagney <cagney@redhat.com>
7017
7018 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7019 offset.
7020
7021 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
7022
7023 * arm-tdep.c (arm_push_arguments): Delete.
7024 (struct stack_item): New type.
7025 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7026 (arm_store_struct_return): Delte.
7027 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7028 arm_push_arguments or arm_store_struct_return.
7029
7030 2003-03-28 Andrew Cagney <cagney@redhat.com>
7031
7032 * Makefile.in (d10v-tdep.o): Update dependencies.
7033 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7034 * d10v-tdep.c: Include "remote.h".
7035 (target_resume_hook): Delete extern declaration.
7036 (target_wait_loop_hook): Ditto.
7037 (tdisassemble_command): Eliminate assignment in "if" conditional.
7038 (d10v_ts2_register_sim_regno): Eliminate call to
7039 legacy_register_sim_regno.
7040 (d10v_ts3_register_sim_regno): Ditto.
7041
7042 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7043
7044 * thread.c: Reindented.
7045 * lin-lwp.c: Ditto.
7046 * linux-proc.c: Ditto.
7047
7048 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7049
7050 * MAINTAINERS (write after approval): Add myself.
7051
7052 2003-03-27 Theodore A. Roth <troth@openavr.org>
7053
7054 * objc-exp.y: Add missing semi-colons.
7055
7056 2003-03-27 Andrew Cagney <cagney@redhat.com>
7057
7058 * regcache.c (write_sp): Delete function and references.
7059 * inferior.h (write_sp): Delete declaration.
7060 * valops.c (hand_function_call): Replace write_sp with
7061 TARGET_WRITE_SP.
7062 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7063 (sparc_pop_frame): Ditto.
7064
7065 2003-03-27 Andrew Cagney <cagney@redhat.com>
7066
7067 * NEWS: Mention removal of support for hppa*-*-bsd* and
7068 hppa*-*-osf* natives, and hppa*-*-pro* target.
7069 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7070 * config/pa/xm-pa.h: Obsolete file.
7071 * config/pa/xm-hppab.h: Obsolete file.
7072 * config/pa/nm-hppab.h: Obsolete file.
7073 * config/pa/tm-hppab.h: Obsolete file.
7074 * config/pa/tm-hppao.h: Obsolete file.
7075 * config/pa/nm-hppao.h: Obsolete file.
7076 * config/pa/tm-pro.h: Obsolete file.
7077 * config/pa/hppaosf.mt: Obsolete file.
7078 * config/pa/hppaosf.mh: Obsolete file.
7079 * config/pa/hppapro.mt: Obsolete file.
7080 * config/pa/hppabsd.mt: Obsolete file.
7081 * config/pa/hppabsd.mh: Obsolete file.
7082 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7083 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7084 hppa*-*-osf*.
7085
7086 2003-03-27 Andrew Cagney <cagney@redhat.com>
7087
7088 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7089 push_arguments. Don't set push_return_address or write_sp.
7090 (d10v_push_dummy_call): Replace d10v_push_arguments.
7091 (d10v_push_return_address, d10v_write_sp): Delete function,
7092 handled by push_dummy_call.
7093
7094 2003-03-26 Andrew Cagney <cagney@redhat.com>
7095
7096 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7097 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7098 regcache and dummy_addr parameters.
7099 * gdbarch.h, gdbarch.c: Re-generate.
7100 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7101 available; assume it will handle stack alignment and return
7102 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7103 legacy_push_arguments.
7104 (legacy_push_arguments): Rename default_push_arguments.
7105 * value.h (legacy_push_arguments): Rename default_push_arguments.
7106 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7107 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7108 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7109 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7110 * config/i386/tm-symmetry.h: Update.
7111 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7112 * x86-64-tdep.c (x86_64_init_abi): Update.
7113 * v850-tdep.c (v850_gdbarch_init): Update.
7114 * sparc-tdep.c (sparc_gdbarch_init): Update.
7115 * sh-tdep.c (sh_gdbarch_init): Update.
7116 * s390-tdep.c (s390_gdbarch_init): Update.
7117 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7118 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7119 * mips-tdep.c (mips_gdbarch_init): Update.
7120 * mcore-tdep.c (mcore_gdbarch_init): Update.
7121 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7122 * ia64-tdep.c (ia64_gdbarch_init): Update.
7123 * i386-tdep.c (i386_gdbarch_init): Update.
7124 * hppa-tdep.c (hppa_gdbarch_init): Update.
7125 * h8300-tdep.c (h8300_gdbarch_init): Update.
7126 * frv-tdep.c (frv_gdbarch_init): Update.
7127 * d10v-tdep.c (d10v_gdbarch_init): Update.
7128 * cris-tdep.c (cris_gdbarch_init): Update.
7129 * avr-tdep.c (avr_gdbarch_init): Update.
7130 * arm-tdep.c (arm_gdbarch_init): Update.
7131 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7132 * alpha-tdep.c (alpha_gdbarch_init): Update.
7133
7134 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7135
7136 * signals/signals.c (do_target_signal_to_host): Correct realtime
7137 signal range test.
7138
7139 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7140
7141 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7142 (struct sal_chain, map_catch_names): Remove.
7143 (catch_exception_command_1): Don't call
7144 handle_gnu_4_16_catch_command.
7145
7146 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7147
7148 From Mark Dettinger <dettinge@de.ibm.com>:
7149 * dwarf2cfi.c (read_2u): Increment pointer by two.
7150
7151 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7152
7153 * signals/signals.c: Fix typos in last change.
7154
7155 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7156
7157 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7158 not already defined. Use __SIGRTMIN if available.
7159 (target_signal_from_host): Remove SIGRTMIN block.
7160 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7161 the signal is within the realtime range.
7162
7163 2003-03-25 Adam Fedor <fedor@gnu.org>
7164
7165 * Makefile.in (infrun.o): Add $(language_h)
7166 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7167 for language specific trampolines.
7168 * language.h (struct language_defn): Add skip_trampoline.
7169 (skip_language_trampoline): Declare.
7170 * language.c (unk_lang_trampoline, skip_language_trampoline):
7171 New functions.
7172 (unknown_language_defn, auto_language_defn, local_language_defn):
7173 Add ukn_lang_trampoline.
7174 * ada-lang.c (ada_language_defn): Add NULL for language
7175 specific skip_trampoline.
7176 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7177 scm-lang.c: Likewise.
7178 * objc-lang.c (objc_skip_trampoline): New function.
7179 (objc_language_defn): Add objc_skip_trampoline.
7180
7181 2003-03-25 Andrew Cagney <cagney@redhat.com>
7182
7183 * frame.c (get_prev_frame): Delay validating a frame's ID -
7184 non-NULL, didn't go backwards - until an attempt to unwind it to
7185 the previous frame.
7186
7187 2003-03-25 Andrew Cagney <cagney@redhat.com>
7188
7189 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7190 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7191 * gdbarch.h, gdbarch.c: Re-generate.
7192 * config/sparc/tm-sparc.h
7193 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7194 * sparc-tdep.c (sparc_gdbarch_init): Set
7195 deprecated_extra_stack_alignment_needed.
7196 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7197 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7198 extra_stack_alignment_needed.
7199 * v850-tdep.c (v850_gdbarch_init): Ditto.
7200 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7201 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7202 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7203 * cris-tdep.c (cris_gdbarch_init): Ditto.
7204 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7205 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7206
7207 2003-03-25 Andrew Cagney <cagney@redhat.com>
7208
7209 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7210 STORE_STRUCT_RETURN.
7211 * gdbarch.h, gdbarch.c: Regenerate.
7212 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7213 (d10v_push_arguments): Set the struct return register.
7214 (d10v_gdbarch_init): Update.
7215 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7216 * x86-64-tdep.c (x86_64_init_abi): Update.
7217 * vax-tdep.c (vax_gdbarch_init): Update.
7218 * v850-tdep.c (v850_gdbarch_init): Update.
7219 * sparc-tdep.c (sparc_gdbarch_init): Update.
7220 * sh-tdep.c (sh_gdbarch_init): Update.
7221 * s390-tdep.c (s390_gdbarch_init): Update.
7222 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7223 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7224 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7225 * mips-tdep.c (mips_gdbarch_init): Update.
7226 * mcore-tdep.c (mcore_gdbarch_init): Update.
7227 * m68k-tdep.c (m68k_gdbarch_init): Update.
7228 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7229 * ia64-tdep.c (ia64_gdbarch_init): Update.
7230 * i386-tdep.c (i386_gdbarch_init): Update.
7231 * hppa-tdep.c (hppa_gdbarch_init): Update.
7232 * h8300-tdep.c (h8300_gdbarch_init): Update.
7233 * frv-tdep.c (frv_gdbarch_init): Update.
7234 * cris-tdep.c (cris_gdbarch_init): Update.
7235 * avr-tdep.c (avr_gdbarch_init): Update.
7236 * arm-tdep.c (arm_gdbarch_init): Update.
7237 * alpha-tdep.c (alpha_gdbarch_init): Update.
7238
7239 2003-03-25 Andrew Cagney <cagney@redhat.com>
7240
7241 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7242 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7243 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7244 * gdbarch.h, gdbarch.c: Regenerate.
7245 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7246 call_dummy_stack_adjust_p.
7247 * vax-tdep.c (vax_gdbarch_init): Ditto.
7248 * v850-tdep.c (v850_gdbarch_init): Ditto.
7249 * sh-tdep.c (sh_gdbarch_init): Ditto.
7250 * s390-tdep.c (s390_gdbarch_init): Ditto.
7251 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7252 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7253 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7254 * mips-tdep.c (mips_gdbarch_init): Ditto.
7255 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7256 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7257 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7258 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7259 * i386-tdep.c (i386_gdbarch_init): Ditto.
7260 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7261 * frv-tdep.c (frv_gdbarch_init): Ditto.
7262 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7263 * cris-tdep.c (cris_gdbarch_init): Ditto.
7264 * avr-tdep.c (avr_gdbarch_init): Ditto.
7265 * arm-tdep.c (arm_gdbarch_init): Ditto.
7266 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7267 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7268 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7269 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7270 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7271 call_dummy_stack_adjust_p.
7272 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7273 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7274 * sparc-tdep.c (sparc32_push_arguments): Update.
7275 * valops.c (hand_function_call): Update.
7276
7277 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7278
7279 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7280 set_gdbarch_char_signed.
7281
7282 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7283
7284 PR cli/548
7285 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7286
7287 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7288
7289 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7290 (_initialize_arm_tdep): Don't set tm_print_insn.
7291
7292 2003-03-24 Adam Fedor <fedor@gnu.org>
7293
7294 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7295 * objc-lang.h: Add multiple inclusion protection.
7296 (start_msglist, add_msglist, end_msglist): Additional declarations.
7297
7298 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7299
7300 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7301 value was renamed to ARM_FLOAT_SOFT_FPA.
7302
7303 2003-03-23 Andrew Cagney <cagney@redhat.com>
7304
7305 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7306 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7307 * gdbarch.h, gdbarch.c: Regenerate.
7308 * valops.c (hand_function_call): Update.
7309 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7310 * frame.c (legacy_saved_regs_this_id): Update.
7311 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7312 * dummy-frame.h: Update.
7313 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7314 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7315 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7316 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7317 * config/m68k/tm-sun3.h: Update.
7318 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7319 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7320 * x86-64-tdep.c (x86_64_init_abi): Update.
7321 * vax-tdep.c (vax_gdbarch_init): Update.
7322 * v850-tdep.c (v850_gdbarch_init): Update.
7323 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7324 * sh-tdep.c (sh_gdbarch_init): Update.
7325 * s390-tdep.c (s390_gdbarch_init): Update.
7326 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7327 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7328 (frame_get_saved_regs): Update.
7329 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7330 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7331 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7332 * mips-tdep.c (mips_gdbarch_init): Update.
7333 * mcore-tdep.c (mcore_gdbarch_init): Update.
7334 * m68k-tdep.c (m68k_gdbarch_init): Update.
7335 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7336 * ia64-tdep.c (ia64_gdbarch_init): Update.
7337 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7338 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7339 (i386_interix_back_one_frame): Update.
7340 * hppa-tdep.c (hppa_gdbarch_init): Update.
7341 (hppa_init_extra_frame_info): Update.
7342 * h8300-tdep.c (h8300_gdbarch_init): Update.
7343 * frv-tdep.c (frv_gdbarch_init): Update.
7344 * cris-tdep.c (cris_gdbarch_init): Update.
7345 * avr-tdep.c (avr_gdbarch_init): Update.
7346 * arm-tdep.c (arm_gdbarch_init): Update.
7347 * alpha-tdep.c (alpha_gdbarch_init): Update.
7348
7349 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7350
7351 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7352 (arm_get_fp_model): Declare.
7353 * arm-tdep.c (fp_model_strings): New string array.
7354 (arm_fp_model, current_fp_model): New variables.
7355 (arm_get_fp_model): New function.
7356 (arm_set_fp): New function.
7357 (set_fp_model_sfunc): New function.
7358 (show_fp_model): New function.
7359 (_initialize_arm_tdep): Add new command to set/show the FPU.
7360 (arm_extract_return_value): Use arm_get_fp_model.
7361 (arm_store_return_value): Likewise.
7362 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7363 to initialize the floating-point data types.
7364 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7365 model is FPA.
7366
7367 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7368
7369 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7370 the current setting of each value.
7371 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7372 new_set and new_show. Use add_setshow_cmd_full and
7373 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7374 commands and add new version as subcommands of "set/show arm".
7375
7376 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7377
7378 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7379 (set_arm_command, show_arm_command): New functions.
7380 (_initialize_arm_tdep): Add them.
7381 (num_disassembly_options): Renamed from num_flavor_options.
7382 (valid_disassembly_styles): Renamed from valid_flavors.
7383 (disassembly_style): Renamed from disassembly_flavor.
7384 (set_disassembly_style_sfunc): Renamed from
7385 set_disassembly_flavor_sfunc.
7386 (set_disassembly_style): Renamed from set_disassembly_flavor.
7387 (arm_othernames): Updated.
7388 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7389 command. Add "set/show arm disassembly" commands. Deprecate
7390 "othernames" command.
7391
7392 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7393
7394 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7395 (arm-tdep.o): Depend on elf_arm_h.
7396
7397 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7398
7399 * Makefile.in (coff_internal_h): Define.
7400 (arm-tdep.o): Update dependencies.
7401
7402 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7403
7404 * arm-tdep.c (prologue_cache): Delete.
7405 (check_prologue_cache, save_prologue_cache): Delete.
7406 (arm_scan_prologue): Don't check or update the prologue_cache.
7407 (arm_gdb_arch_init): Don't initialize it.
7408 (_initialize_arm_tdep): Likewise.
7409
7410 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7411
7412 * MAINTAINERS (tui): Maintainer of tui code.
7413
7414 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
7415
7416 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7417 (i386-cygwin-tdep.o): Add dependencies.
7418 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7419 * i386-cygwin-tdep.c: New file.
7420 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7421 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7422
7423 2003-03-20 Andrew Cagney <cagney@redhat.com>
7424
7425 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7426 (handle_inferior_event): Remove code calling
7427 DYNAMIC_TRAMPOLINE_NEXTPC.
7428
7429 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7430 already has a full path.
7431
7432 * main.c (gdb_main): Return 1.
7433 (captured_main): Call error to report an invalid interpreter.
7434
7435 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7436 * alpha-osf1-tdep.c: Include "gdb_string.h".
7437
7438 2003-03-19 J. Brobecker <brobecker@gnat.com>
7439
7440 Continuing work to convert the hppa targets to multiarch partial.
7441
7442 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7443 method, now that hppa_push_dummy_frame has a conformant prototype.
7444 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7445 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7446 for the switch to multiarch partial.
7447
7448 2003-03-19 Kevin Buettner <kevinb@redhat.com>
7449
7450 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7451 when iss is issNull.
7452
7453 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7454
7455 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7456 NUM_REGS bounds check.
7457
7458 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7459
7460 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7461 * mips-tdep.c (gdb_assert.h): Include.
7462 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7463 (mips_register_name): Handle integer registers explicitly. Add
7464 bounds checking.
7465 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7466 (mips_lsi33k_reg_names): Don't list integer registers; they're
7467 handled by mips_register_name() now.
7468 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7469 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7470 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7471 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7472 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7473
7474 2003-03-18 Andrew Cagney <cagney@redhat.com>
7475
7476 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7477 a void pointer.
7478 * gdbtypes.h (print_scalar_formatted): Update declaration.
7479 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7480
7481 2003-03-18 J. Brobecker <brobecker@gnat.com>
7482
7483 * infrun.c (observer.h): Add #include.
7484 (normal_stop): Add call to observer_notify_normal_stop.
7485 * Makefile.in (infrun.o): Add dependency on observer.h.
7486
7487 2003-03-18 J. Brobecker <brobecker@gnat.com>
7488
7489 Continuing work to convert the hppa targets to multiarch partial.
7490 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7491 parameter. Reformat comment.
7492 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7493 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7494 to match new profile.
7495
7496 2003-03-18 J. Brobecker <brobecker@gnat.com>
7497
7498 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7499 appear to be working in any case.
7500
7501 2003-03-18 J. Brobecker <brobecker@gnat.com>
7502
7503 * observer.c (observer_test_first_observer): New static variable.
7504 (observer_test_second_observer): Likewise.
7505 (observer_test_third_observer): Likewise.
7506 (observer_test_first_notification_function): New static function.
7507 (observer_test_second_notification_function): Likewise.
7508 (observer_test_third_notification_function): Likewise.
7509
7510 2003-03-17 J. Brobecker <brobecker@gnat.com>
7511
7512 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7513 * somsolib.c (gdb_assert.h): Likewise.
7514 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7515 (somsolib.o): Likewise.
7516
7517 2003-03-17 Andrew Cagney <cagney@redhat.com>
7518
7519 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7520 BFD. Simplify setting of di.endian.
7521
7522 2003-03-17 Andrew Cagney <cagney@redhat.com>
7523
7524 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7525 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7526
7527 From Elena Zannoni <ezannoni@redhat.com>
7528 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7529 vector and floating-point parameters.
7530 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7531 convention.
7532 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7533
7534 2003-03-17 Fernando Nasser <fnasser@redhat.com>
7535
7536 * MAINTAINERS: Remove my name from several maintainership roles.
7537
7538 2003-03-17 Andrew Cagney <cagney@redhat.com>
7539
7540 Fix frame off-by-one bug.
7541 * frame-unwind.h (frame_this_id_ftype): Replace
7542 frame_unwind_id_ftype.
7543 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7544 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7545 with "prev_register".
7546 * frame-unwind.c (frame_unwind_find_by_pc): Return
7547 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7548 comment.
7549 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7550 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7551 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7552 (dummy_frame_unwind): Update.
7553 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7554 sentinel_frame_register_unwind.
7555 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7556 (sentinel_frame_unwinder): Update.
7557 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7558 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7559 * frame.c (create_sentinel_frame): Update. Initialize
7560 "prologue_cache" instead of "unwind_cache".
7561 (frame_register_unwind): Call this frame's prev_register with the
7562 next frame and this frame's prologue cache.
7563 (get_prev_frame): Simplify. Always call prev frame's this_id with
7564 this frame and prev frame's prologue cache. Document that this
7565 call is shifted one to the left when compared to the
7566 frame_register_unwind call.
7567 (legacy_saved_regs_prev_register): Replace
7568 frame_saved_regs_register_unwind.
7569 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7570 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7571 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7572 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7573 (d10v_frame_unwind): Update.
7574 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7575 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7576 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7577 "saved_regs" with "this_saved_regs".
7578
7579 2003-03-16 Andrew Cagney <cagney@redhat.com>
7580
7581 * frame.c (frame_pop): Don't call target_store_registers. Fix
7582 problem reported by Mark Kettenis.
7583
7584 2003-03-16 Mark Kettenis <kettenis@gnu.org>
7585
7586 * i386-tdep.c (i386_register_type): Renamed from
7587 i386_register_virtual_type. Adjust function signature.
7588 (i386_gdbarch_init): Set register_type instead of
7589 deprecated_max_register_raw_size,
7590 deprecated_max_register_virtual_size and register_virtual_type.
7591
7592 2003-03-14 Andrew Cagney <cagney@redhat.com>
7593
7594 * frame.c (get_prev_frame): When a legacy frame, always call
7595 legacy_get_prev_frame. Simplify unwind code using assumption that
7596 the unwinder is new.
7597 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7598 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7599 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7600
7601 2003-03-14 Andrew Cagney <cagney@redhat.com>
7602
7603 * frame.c (get_saved_register): Delete function.
7604 * frame.h (get_saved_register): Delete declaration.
7605 * xstormy16-tdep.c: Update comment.
7606 * regcache.h: Update comments.
7607 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7608 get_saved_register and extract_address, use
7609 frame_read_unsigned_register.
7610 (sparc_frame_saved_pc): Ditto.
7611 (sparc_get_saved_register): Instead of get_saved_register, use
7612 frame_register.
7613 (sparc_pop_frame): Ditto.
7614 * findvar.c: Update comments.
7615 (value_of_register): Call frame_register instead of
7616 get_saved_register.
7617 (value_from_register): Ditto.
7618 * config/sparc/tm-sparc.h: Update comment.
7619 * breakpoint.c: Update comment.
7620
7621 2003-03-14 Andrew Cagney <cagney@redhat.com>
7622
7623 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7624 GET_SAVED_REGISTER.
7625 * gdbarch.h, gdbarch.c: Re-generate.
7626 * frame.h: Update comments.
7627 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7628 * x86-64-tdep.c (x86_64_init_abi): Update.
7629 * sparc-tdep.c (sparc_gdbarch_init): Update.
7630 * sh-tdep.c (sh_gdbarch_init): Update.
7631 * mips-tdep.c (mips_gdbarch_init): Update.
7632 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7633 * cris-tdep.c (cris_gdbarch_init): Update.
7634 * ia64-tdep.c (ia64_gdbarch_init): Update.
7635 * frame.c (frame_register): Update.
7636 (get_saved_register): Update.
7637 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7638
7639 2003-03-13 Andrew Cagney <cagney@redhat.com>
7640
7641 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7642 * gdbarch.h, gdbarch.c: Regenerate.
7643 * valops.c (hand_function_call): Update comment.
7644 * stack.c (return_command): Update comment.
7645 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7646 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7647 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7648 * x86-64-tdep.c (x86_64_init_abi): Update.
7649 * vax-tdep.c (vax_gdbarch_init): Update.
7650 * v850-tdep.c (v850_gdbarch_init): Update.
7651 * sparc-tdep.c (sparc_gdbarch_init): Update.
7652 * sh-tdep.c (sh_gdbarch_init): Update.
7653 * s390-tdep.c (s390_gdbarch_init): Update.
7654 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7655 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7656 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7657 * mips-tdep.c (mips_gdbarch_init): Update.
7658 * mcore-tdep.c (mcore_gdbarch_init): Update.
7659 * m68k-tdep.c (m68k_gdbarch_init): Update.
7660 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7661 * ia64-tdep.c (ia64_gdbarch_init): Update.
7662 * i386-tdep.c (i386_gdbarch_init): Update.
7663 * hppa-tdep.c (hppa_gdbarch_init): Update.
7664 * h8300-tdep.c (h8300_gdbarch_init): Update.
7665 * frv-tdep.c (frv_gdbarch_init): Update.
7666 * cris-tdep.c (cris_gdbarch_init): Update.
7667 * avr-tdep.c (avr_gdbarch_init): Update.
7668 * arm-tdep.c (arm_gdbarch_init): Update.
7669 * alpha-tdep.c (alpha_gdbarch_init): Update.
7670
7671 2003-03-13 Andrew Cagney <cagney@redhat.com>
7672
7673 * frame.c (legacy_frame_p): New function.
7674 (get_prev_frame): Use legacy_frame_p.
7675 * frame.h (legacy_frame_p): Declare.
7676
7677 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7678
7679 * MAINTAINERS (write after approval): Alphabetically
7680 listing corrected.
7681
7682 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7683
7684 * MAINTAINERS (write after approval): Add myself.
7685
7686 2003-03-12 Andrew Cagney <cagney@redhat.com>
7687
7688 * frame.c (get_prev_frame): Rename the frame parameter to
7689 "this_frame".
7690 (get_next_frame, legacy_get_prev_frame): Ditto.
7691
7692 2003-03-12 Andrew Cagney <cagney@redhat.com>
7693
7694 * frame.c (get_current_frame): Check target_has_registers before
7695 checking target_has_stack.
7696 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7697 instead of deprecated_selected_frame.
7698 * findvar.c (value_of_register): Pass "frame", not
7699 deprecated_selected_frame, to value_of_builtin_reg.
7700
7701 2003-03-12 Andrew Cagney <cagney@redhat.com>
7702
7703 * regcache.c (regcache_cooked_write_signed): New function.
7704 (regcache_cooked_write_unsigned): New function.
7705 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7706 (regcache_cooked_read_signed): Fix regnum in range assertion.
7707 * regcache.h (regcache_cooked_write_signed): Declare.
7708 (regcache_cooked_write_unsigned): Declare.
7709
7710 2003-03-12 Andrew Cagney <cagney@redhat.com>
7711
7712 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7713 * gdbarch.h, gdbarch.c: Re-generate.
7714 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7715 * x86-64-tdep.h: Update.
7716 * x86-64-tdep.c (x86_64_init_abi): Update.
7717 * v850-tdep.c (v850_gdbarch_init): Update.
7718 * sparc-tdep.c (sparc_gdbarch_init): Update.
7719 * sh-tdep.c (sh_gdbarch_init): Update.
7720 * s390-tdep.c (s390_gdbarch_init): Update.
7721 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7722 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7723 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7724 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7725 * mips-tdep.c (mips_gdbarch_init): Update.
7726 * mcore-tdep.c (mcore_gdbarch_init): Update.
7727 * m68k-tdep.c (m68k_gdbarch_init): Update.
7728 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7729 * ia64-tdep.c (ia64_gdbarch_init): Update.
7730 * i386-tdep.c (i386_gdbarch_init): Update.
7731 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7732 * hppa-tdep.c (hppa_gdbarch_init): Update.
7733 * h8300-tdep.c (h8300_gdbarch_init): Update.
7734 * frv-tdep.c (frv_gdbarch_init): Update.
7735 * cris-tdep.c (cris_gdbarch_init): Update.
7736 * avr-tdep.c (avr_gdbarch_init): Update.
7737 * arm-tdep.c (arm_gdbarch_init): Update.
7738 * alpha-tdep.c (alpha_gdbarch_init): Update.
7739 * sh-tdep.c (sh_init_extra_frame_info): Update.
7740 (sh64_init_extra_frame_info): Update.
7741 * ns32knbsd-nat.c (frame_num_args): Update.
7742 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7743 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7744 (xstormy16_frame_chain_valid): Update.
7745 * vax-tdep.c (vax_saved_pc_after_call): Update.
7746 * v850-tdep.c (v850_frame_chain): Update.
7747 (v850_pop_frame): Update.
7748 (v850_init_extra_frame_info): Update.
7749 * sparc-tdep.c (setup_arbitrary_frame): Update.
7750 * ns32k-tdep.c (umax_frame_num_args): Update.
7751 * s390-tdep.c (s390_pop_frame_regular): Update.
7752 * mn10300-tdep.c (mn10300_frame_chain): Update.
7753 (mn10300_pop_frame_regular): Update.
7754 (mn10300_init_extra_frame_info): Update.
7755 * mips-tdep.c (mips_init_frame_pc_first): Update.
7756 (mips_frame_chain): Update.
7757 (mips_pop_frame): Update.
7758 * mcore-tdep.c (mcore_frame_chain): Update.
7759 (mcore_pop_frame): Update.
7760 (mcore_init_extra_frame_info): Update.
7761 * arch-utils.c (init_frame_pc_default): Update.
7762 * m68k-tdep.c (isi_frame_num_args): Update.
7763 (delta68_frame_num_args): Update.
7764 (news_frame_num_args): Update.
7765 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7766 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7767 (alpha_frame_chain): Update.
7768 (alpha_pop_frame): Update.
7769 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7770 (hppa_init_extra_frame_info): Update.
7771 (hppa_frame_chain): Update.
7772 (hppa_frame_chain_valid): Update.
7773 * cris-tdep.c (cris_init_extra_frame_info): Update.
7774 * avr-tdep.c (avr_init_extra_frame_info): Update.
7775 * arm-tdep.c (arm_frame_chain_valid): Update.
7776 (arm_init_extra_frame_info): Update.
7777 (arm_pop_frame): Update.
7778 * frame.c (frame_pc_unwind): Update.
7779 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7780 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7781 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7782 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7783 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7784 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7785
7786 2003-03-12 Andrew Cagney <cagney@redhat.com>
7787
7788 Eliminate the need for POP_FRAME.
7789 * frame.c (do_frame_unwind_register): New function.
7790 (frame_pop): When no POP_FRAME, pop the frame using register
7791 unwind and a scratch regcache.
7792 (frame_saved_regs_pop): Delete function.
7793 (trad_frame_unwinder): Update.
7794 * d10v-tdep.c (d10v_frame_pop): Delete function.
7795 (d10v_frame_unwind): Update.
7796 * sentinel-frame.c (sentinel_frame_pop): Delete function.
7797 (sentinel_frame_unwinder): Update.
7798 * dummy-frame.c (dummy_frame_pop): Delete function.
7799 (dummy_frame_unwind): Update.
7800 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7801 (struct frame_unwind): Update.
7802
7803 2003-03-11 Kevin Buettner <kevinb@redhat.com>
7804
7805 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
7806 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
7807 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
7808 Do range checks on register number obtained from debugging info.
7809 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
7810 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
7811 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
7812 mapping function.
7813 (do_fp_register_row): Fix typo which caused double type to be
7814 used when attempting to unpack a float.
7815
7816 2003-03-11 J. Brobecker <brobecker@gnat.com>
7817
7818 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
7819
7820 2003-03-11 Andrew Cagney <cagney@redhat.com>
7821
7822 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
7823 frame. Problem found by Corinna Vinschen.
7824
7825 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
7826
7827 * doublest.c (floatformat_from_length): Accept also
7828 the real size of 'long double' type.
7829
7830 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
7831
7832 From Klee Dienes <kdienes@apple.com>:
7833 * breakpoint.c (bpstat_copy): Copy the command lines as well
7834 as the old value, to match what is freed in bpstat_clear.
7835
7836 2003-03-10 David Carlton <carlton@math.stanford.edu>
7837
7838 * minsyms.c (add_minsym_to_hash_table): Replace
7839 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7840 (compare_minimal_symbols, compact_minimal_symbols)
7841 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
7842 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
7843 of DEPRECATED_SYMBOL_MATCHES_NAME.
7844 (lookup_minimal_symbol_solib_trampoline): Ditto.
7845
7846 2003-03-10 Andrew Cagney <cagney@redhat.com>
7847
7848 * regcache.h (regcache_cooked_read_ftype): Define.
7849 (regcache_save, regcache_restore): Add a cooked_read parameter.
7850 * regcache.c (regcache_save, regcache_restore): Update.
7851 (do_cooked_read): New function.
7852 (regcache_cpy): Pass do_cooked_read to regcache_save and
7853 regcache_restore.
7854
7855 2003-03-10 Andrew Cagney <cagney@redhat.com>
7856
7857 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7858 * gdbarch.h, gdbarch.c: Re-generate.
7859 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7860 * x86-64-tdep.h: Update.
7861 * x86-64-tdep.c (x86_64_init_abi): Update.
7862 * v850-tdep.c (v850_gdbarch_init): Update.
7863 * sparc-tdep.c (sparc_gdbarch_init): Update.
7864 * sh-tdep.c (sh_gdbarch_init): Update.
7865 * s390-tdep.c (s390_gdbarch_init): Update.
7866 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7867 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7868 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7869 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7870 * mips-tdep.c (mips_gdbarch_init): Update.
7871 * mcore-tdep.c (mcore_gdbarch_init): Update.
7872 * m68k-tdep.c (m68k_gdbarch_init): Update.
7873 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7874 * ia64-tdep.c (ia64_gdbarch_init): Update.
7875 * i386-tdep.c (i386_gdbarch_init): Update.
7876 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7877 * hppa-tdep.c (hppa_gdbarch_init): Update.
7878 * h8300-tdep.c (h8300_gdbarch_init): Update.
7879 * frv-tdep.c (frv_gdbarch_init): Update.
7880 * cris-tdep.c (cris_gdbarch_init): Update.
7881 * avr-tdep.c (avr_gdbarch_init): Update.
7882 * arm-tdep.c (arm_gdbarch_init): Update.
7883 * alpha-tdep.c (alpha_gdbarch_init): Update.
7884 * sh-tdep.c (sh_init_extra_frame_info): Update.
7885 (sh64_init_extra_frame_info): Update.
7886 * ns32knbsd-nat.c (frame_num_args): Update.
7887 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7888 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7889 (xstormy16_frame_chain_valid): Update.
7890 * vax-tdep.c (vax_saved_pc_after_call): Update.
7891 * v850-tdep.c (v850_frame_chain): Update.
7892 (v850_pop_frame): Update.
7893 (v850_init_extra_frame_info): Update.
7894 * sparc-tdep.c (setup_arbitrary_frame): Update.
7895 * ns32k-tdep.c (umax_frame_num_args): Update.
7896 * s390-tdep.c (s390_pop_frame_regular): Update.
7897 * mn10300-tdep.c (mn10300_frame_chain): Update.
7898 (mn10300_pop_frame_regular): Update.
7899 (mn10300_init_extra_frame_info): Update.
7900 * mips-tdep.c (mips_init_frame_pc_first): Update.
7901 (mips_frame_chain): Update.
7902 (mips_pop_frame): Update.
7903 * mcore-tdep.c (mcore_frame_chain): Update.
7904 (mcore_pop_frame): Update.
7905 (mcore_init_extra_frame_info): Update.
7906 * arch-utils.c (init_frame_pc_default): Update.
7907 * m68k-tdep.c (isi_frame_num_args): Update.
7908 (delta68_frame_num_args): Update.
7909 (news_frame_num_args): Update.
7910 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7911 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7912 (alpha_frame_chain): Update.
7913 (alpha_pop_frame): Update.
7914 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7915 (hppa_init_extra_frame_info): Update.
7916 (hppa_frame_chain): Update.
7917 (hppa_frame_chain_valid): Update.
7918 * cris-tdep.c (cris_init_extra_frame_info): Update.
7919 * avr-tdep.c (avr_init_extra_frame_info): Update.
7920 * arm-tdep.c (arm_frame_chain_valid): Update.
7921 (arm_init_extra_frame_info): Update.
7922 (arm_pop_frame): Update.
7923 * frame.c (frame_pc_unwind): Update.
7924 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7925 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7926 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7927 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7928 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7929 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7930
7931 2003-03-10 Andrew Cagney <cagney@redhat.com>
7932
7933 * gdbarch.sh (gdbarch_unwind_pc): New method.
7934 * gdbarch.h, gdbarch.c: Regenerate.
7935 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
7936 but use read_pc and FRAME_SAVED_PC as fall backs.
7937 (frame_saved_regs_pc_unwind): Delete function.
7938 (trad_frame_unwinder): Update.
7939 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
7940 (struct frame_unwind): Update.
7941 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
7942 (dummy_frame_unwind): Update.
7943 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
7944 (sentinel_frame_unwinder): Update.
7945 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
7946 (d10v_frame_unwind): Update.
7947 (d10v_unwind_pc): New function.
7948 (d10v_gdbarch_init): Set unwind_pc.
7949
7950 2003-03-10 Andrew Cagney <cagney@redhat.com>
7951
7952 * gdbarch.h: Re-generate.
7953
7954 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
7955 PC.
7956 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
7957 the PC register.
7958
7959 2003-03-08 Mark Kettenis <kettenis@gnu.org>
7960
7961 * gdbarch.sh (save_dummy_frame_tos): Add comment.
7962
7963 2003-03-08 Andrew Cagney <cagney@redhat.com>
7964
7965 * cli-out.c: Update copyright.
7966 (cli_out_data): Define typedef. Use instead of ui_out_data.
7967
7968 2003-03-08 Andrew Cagney <cagney@redhat.com>
7969
7970 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
7971 the result.
7972
7973 2003-03-07 Andrew Cagney <cagney@redhat.com>
7974
7975 * gdbarch.sh: Don't generate two macro definitions when an
7976 undefined macro taking no arguments.
7977 * gdbarch.h: Regenerate.
7978
7979 2002-03-07 Michal Ludvig <mludvig@suse.cz>
7980
7981 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
7982 (x86_64_unwind_dummy_id): New functions.
7983 (x86_64_init_abi): Register these two new functions.
7984
7985 2003-03-07 Michal Ludvig <mludvig@suse.cz>
7986
7987 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
7988 (x86_64_skip_prologue): Move prologue detection to
7989 separate function.
7990 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
7991
7992 2003-03-05 Andrew Cagney <cagney@redhat.com>
7993
7994 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
7995 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
7996 * frame.c (get_prev_frame): Restructure the frame ID unwind code
7997 to use unwind_dummy_id when a dummy frame.
7998 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
7999 predicate.
8000 * gdbarch.h, gdbarch.c: Regneerate.
8001
8002 2003-03-05 Andrew Cagney <cagney@redhat.com>
8003
8004 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8005 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8006 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8007 values.
8008
8009 2003-03-05 Andrew Cagney <cagney@redhat.com>
8010
8011 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8012 (struct d10v_unwind_cache): Delete field "frameless". Replace
8013 "next_addr" with "sp_offset". Add "r11_offset".
8014 (d10v_frame_unwind_cache): Update.
8015 (prologue_find_regs): Update. When "mv r11, sp", save the
8016 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8017 RN was saved in r11_offset.
8018
8019 2003-03-05 Andrew Cagney <cagney@redhat.com>
8020
8021 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8022 cached PC value in the next frame.
8023
8024 2003-03-05 Andrew Cagney <cagney@redhat.com>
8025
8026 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8027 "id_unwind_cache" with "id".
8028 (frame_id_unwind): Delete declaration.
8029 * frame.c (frame_id_unwind): Delete function.
8030 (get_prev_frame): Call the frame id unwind method directly. Store
8031 the returned next frame's ID value in NEXT_FRAME. Note that there
8032 is a problem with the wrong unwind ID being called with the wrong
8033 unwind cache.
8034
8035 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8036
8037 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8038
8039 2003-03-05 James Ingham <jingham@apple.com>
8040 Daniel Jacobowitz <drow@mvista.com>
8041
8042 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8043 (auto_cp_abi): New variable.
8044 (current_cp_abi, num_cp_abis): Make static.
8045 (CP_ABI_MAX): Define.
8046 (cp_abis): Turn into an array.
8047 (value_virtual_fn_field): Fix formatting.
8048 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8049 takes a pointer.
8050 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8051 (list_cp_abis, _initialize_cp_abi): New functions.
8052 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8053 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8054 switch_to_cp_abi. Update prototype for register_cp_abi.
8055 * Makefile.in (cp-abi.o): Update dependencies.
8056 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8057 instead of switch_to_cp_abi.
8058 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8059 register_cp_abi.
8060 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8061 register_cp_abi.
8062 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8063
8064 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8065
8066 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8067 * dwarf2loc.c: Include "regcache.h".
8068 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8069 register_size.
8070 * Makefile.in (dwarf2loc.o): Update dependencies.
8071
8072 2003-03-04 Theodore A. Roth <troth@openavr.org>
8073
8074 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8075 number of io registers reported by remote target is not a multiple of
8076 step.
8077
8078 2003-03-04 David Carlton <carlton@math.stanford.edu>
8079
8080 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8081 (lookup_symbol_aux_psymtabs): Update call to
8082 lookup_partial_symbol.
8083 (lookup_transparent_type, find_main_psymtab)
8084 (make_symbol_overload_list): Ditto.
8085
8086 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8087
8088 * MAINTAINERS (Write after approval): Update my email address.
8089
8090 2003-03-03 Andrew Cagney <cagney@redhat.com>
8091
8092 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8093 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8094 predicate. Replace MAX_REGISTER_RAW_SIZE.
8095 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8096 MAX_REGISTER_VIRTUAL_SIZE.
8097 * regcache.c (legacy_max_register_raw_size): New function.
8098 (legacy_max_register_virtual_size): New function.
8099 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8100 (MAX_REGISTER_RAW_SIZE): Define.
8101 (legacy_max_register_raw_size): Declare.
8102 (legacy_max_register_virtual_size): Declare.
8103 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8104 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8105 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8106 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8107 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8108 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8109 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8110 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8111 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8112 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8113 * vax-tdep.c (vax_gdbarch_init): Update.
8114 * v850-tdep.c (v850_gdbarch_init): Update.
8115 * sparc-tdep.c (sparc_gdbarch_init): Update.
8116 * sh-tdep.c (sh_gdbarch_init): Update.
8117 * s390-tdep.c (s390_gdbarch_init): Update.
8118 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8119 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8120 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8121 * mips-tdep.c (mips_gdbarch_init): Update.
8122 * mcore-tdep.c (mcore_gdbarch_init): Update.
8123 * m68k-tdep.c (m68k_gdbarch_init): Update.
8124 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8125 * ia64-tdep.c (ia64_gdbarch_init): Update.
8126 * i386-tdep.c (i386_gdbarch_init): Update.
8127 * hppa-tdep.c (hppa_gdbarch_init): Update.
8128 * h8300-tdep.c (h8300_gdbarch_init): Update.
8129 * frv-tdep.c (frv_gdbarch_init): Update.
8130 * cris-tdep.c (cris_gdbarch_init): Update.
8131 * avr-tdep.c (avr_gdbarch_init): Update.
8132 * arm-tdep.c (arm_gdbarch_init): Update.
8133 * alpha-tdep.c (alpha_gdbarch_init): Update.
8134 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8135 max_register_raw_size or max_register_virtual_size.
8136
8137 2003-03-03 David Carlton <carlton@math.stanford.edu>
8138
8139 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8140 SYMBOL_MATCHES_NAME, add comment.
8141 (SYMBOL_MATCHES_NATURAL_NAME): New.
8142 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8143 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8144 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8145 * symtab.c (lookup_partial_symbol): Use
8146 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8147 unhelpful comment.
8148 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8149 SYMBOL_MATCHES_NAME.
8150 Fix for PR c++/33.
8151
8152 2003-03-03 David Carlton <carlton@math.stanford.edu>
8153
8154 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8155 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8156 by regexp matching against SYMBOL_NATURAL_NAME.
8157
8158 2003-03-03 David Carlton <carlton@math.stanford.edu>
8159
8160 * linespec.c (find_method): Extract code into collect_methods.
8161 (collect_methods): New.
8162
8163 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8164
8165 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8166 get_frame_base.
8167
8168 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8169 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8170
8171 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8172
8173 * arch-utils.c (generic_register_byte): Fix to use the loop index
8174 and not regnum when summing the size of all registers up to regnum.
8175
8176 2003-03-01 Andrew Cagney <cagney@redhat.com>
8177
8178 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8179 FRAME_INIT_SAVED_REGS.
8180 * gdbarch.h, gdbarch.c: Regenerate.
8181 * stack.c (frame_info): Update.
8182 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8183 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8184 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8185 * ns32k-tdep.c (ns32k_pop_frame): Update.
8186 * mips-tdep.c (mips_pop_frame): Update.
8187 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8188 * ia64-tdep.c (ia64_frame_chain): Update.
8189 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8190 (ia64_frameless_function_invocation): Update.
8191 (ia64_init_extra_frame_info): Update.
8192 (ia64_pop_frame_regular): Update.
8193 * frame.h (struct frame_info): Update comment.
8194 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8195 * frame.c (frame_saved_regs_register_unwind): Update.
8196 (frame_saved_regs_register_unwind): Update.
8197 (deprecated_generic_get_saved_register): Update.
8198 * cris-tdep.c: Update comment.
8199 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8200 Rename macro.
8201 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8202 * x86-64-tdep.c (x86_64_init_abi): Update.
8203 * vax-tdep.c (vax_gdbarch_init): Update.
8204 * v850-tdep.c (v850_gdbarch_init): Update.
8205 * sparc-tdep.c (sparc_gdbarch_init): Update.
8206 * sh-tdep.c (sh_gdbarch_init): Update.
8207 * s390-tdep.c (s390_gdbarch_init): Update.
8208 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8209 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8210 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8211 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8212 * mips-tdep.c (mips_gdbarch_init): Update.
8213 * mcore-tdep.c (mcore_gdbarch_init): Update.
8214 * m68k-tdep.c (m68k_gdbarch_init): Update.
8215 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8216 * ia64-tdep.c (ia64_gdbarch_init): Update.
8217 * i386-tdep.c (i386_gdbarch_init): Update.
8218 * frv-tdep.c (frv_gdbarch_init): Update.
8219 * avr-tdep.c (avr_gdbarch_init): Update.
8220 * arm-tdep.c (arm_gdbarch_init): Update.
8221 * alpha-tdep.c (alpha_gdbarch_init): Update.
8222
8223 2003-03-01 Andrew Cagney <cagney@redhat.com>
8224
8225 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8226 option enum and switch. When no windows, set the interpreter to
8227 INTERP_CONSOLE.
8228
8229 2003-03-01 Andrew Cagney <cagney@redhat.com>
8230
8231 * main.c (captured_main): Replace magic option characters with an
8232 enum.
8233
8234 2003-03-01 Andrew Cagney <cagney@redhat.com>
8235
8236 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8237 INIT_EXTRA_FRAME_INFO.
8238 * gdbarch.h, gdbarch.c: Regenerate.
8239 * arm-tdep.c: Update comments.
8240 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8241 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8242 * frame.h, avr-tdep.c: Ditto.
8243 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8244 (create_new_frame, legacy_get_prev_frame): Ditto.
8245 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8246 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8247 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8248 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8249 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8250 * v850-tdep.c (v850_gdbarch_init): Ditto.
8251 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8252 * sh-tdep.c (sh_gdbarch_init): Ditto.
8253 * s390-tdep.c (s390_gdbarch_init): Ditto.
8254 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8255 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8256 * mips-tdep.c (mips_gdbarch_init): Ditto.
8257 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8258 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8259 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8260 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8261 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8262 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8263 * frv-tdep.c (frv_gdbarch_init): Ditto.
8264 * cris-tdep.c (cris_gdbarch_init): Ditto.
8265 * avr-tdep.c (avr_gdbarch_init): Ditto.
8266 * arm-tdep.c (arm_gdbarch_init): Ditto.
8267 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8268 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8269
8270 2003-03-01 Andrew Cagney <cagney@redhat.com>
8271
8272 * gdbarch.sh (register_type): New function with predicate.
8273 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8274 * gdbarch.h, gdbarch.c: Re-generate.
8275 * arch-utils.c (generic_register_byte): Use generic_register_size.
8276 (generic_register_size): When available, use
8277 gdbarch_register_type.
8278 * regcache.c (init_regcache_descr): When available, initialize the
8279 register type array using gdbarch_register_type. If the
8280 architecture supplies gdbarch_register_type, do not use the legacy
8281 regcache layout.
8282 * d10v-tdep.c (d10v_register_type): Replace
8283 d10v_register_virtual_type.
8284 (d10v_gdbarch_init): Set register_type instead of
8285 register_virtual_type.
8286
8287 2003-03-01 Andrew Cagney <cagney@redhat.com>
8288
8289 * Makefile.in (ax-gdb.o): Update dependencies.
8290 * ax-gdb.c: Include "regcache.h".
8291 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8292 * findvar.c (value_of_register): Ditto.
8293 * infcmd.c (default_print_registers_info): Ditto.
8294
8295 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8296
8297 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8298 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8299
8300 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8301
8302 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8303 of STREQ.
8304
8305 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8306
8307 * Makefile.in (dwarf2loc.o): Update dependencies.
8308 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8309 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8310 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8311 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8312 (locexpr_tracepoint_var_ref): New function.
8313 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8314
8315 2003-02-28 Andrew Cagney <cagney@redhat.com>
8316
8317 * regcache.c (register_size): New function.
8318 * regcache.h (register_size): Declare
8319 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8320 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8321
8322 2003-02-28 David Carlton <carlton@math.stanford.edu>
8323
8324 * linespec.c (decode_compound): Extract code into find_method.
8325 (find_method): New.
8326
8327 2003-02-28 J. Brobecker <brobecker@gnat.com>
8328
8329 * Makefile.in: Add rules to build and link in observer.o.
8330
8331 2003-02-27 J. Brobecker <brobecker@gnat.com>
8332
8333 * observer.c: Minor comments edits.
8334
8335 2003-02-27 J. Brobecker <brobecker@gnat.com>
8336
8337 * observer.h, observer.c: New file.
8338
8339 2003-02-27 Andrew Cagney <cagney@redhat.com>
8340
8341 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8342
8343 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8344
8345 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8346 (M6812_OP_STS_EXT): Likewise.
8347 (m6811_prologue): Use the above to recognize prologue.
8348 (m6812_prologue): Likewise.
8349
8350 2003-02-27 David Carlton <carlton@math.stanford.edu>
8351
8352 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8353 SYMBOL_PRINT_NAME.
8354 (compare_psymbols): Ditto.
8355 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8356
8357 2003-02-27 Michael Snyder <msnyder@redhat.com>
8358
8359 * f-lang.c (build_fortran_types): New function.
8360 (_initialize_f_language): Gdbarch-register built-in fortran types.
8361 * doublest.c (extract_floating): Fix warning text.
8362
8363 2003-02-27 Andrew Cagney <cagney@redhat.com>
8364
8365 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8366 predicate. Replaces PUSH_DUMMY_FRAME.
8367 * gdbarch.h, gdbarch.c: Regnerate.
8368 * valops.c (hand_function_call): Update. Call
8369 generic_push_dummy_frame directly.
8370 * vax-tdep.c (vax_gdbarch_init): Update.
8371 * sparc-tdep.c (sparc_gdbarch_init): Update.
8372 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8373 * m68k-tdep.c (m68k_gdbarch_init): Update.
8374 * hppa-tdep.c (hppa_gdbarch_init): Update.
8375 * alpha-tdep.c (alpha_gdbarch_init): Update.
8376 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8377 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8378 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8379 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8380 push_dummy_frame to generic_push_dummy_frame.
8381 * v850-tdep.c (v850_gdbarch_init): Ditto.
8382 * sh-tdep.c (sh_gdbarch_init): Ditto.
8383 * s390-tdep.c (s390_gdbarch_init): Ditto.
8384 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8385 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8386 * mips-tdep.c (mips_gdbarch_init): Ditto.
8387 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8388 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8389 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8390 * i386-tdep.c (i386_gdbarch_init): Ditto.
8391 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8392 * frv-tdep.c (frv_gdbarch_init): Ditto.
8393 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8394 * cris-tdep.c (cris_gdbarch_init): Ditto.
8395 * avr-tdep.c (avr_gdbarch_init): Ditto.
8396 * arm-tdep.c (arm_gdbarch_init): Ditto.
8397
8398 2003-02-26 Kevin Buettner <kevinb@redhat.com>
8399
8400 * mips-tdep.c (show_mips_abi): New function.
8401 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8402 command ``show mips abi''.
8403
8404 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8405
8406 From Elena Zannoni <ezannoni@redhat.com>
8407 * dbxread.c (process_one_symbol): Only record line 0 if one or
8408 more sline entries have been seen for the function.
8409
8410 2003-02-26 Michael Chastain <mec@shout.net>
8411
8412 * configure: Regenerate with autoconf 000227.
8413
8414 2003-02-26 Michael Chastain <mec@shout.net>
8415
8416 Close PR build/660.
8417 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8418 for old libc5/glibc.
8419 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8420
8421 2003-02-26 Kris Warkentin <kewarken@qnx.com>
8422
8423 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8424 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8425
8426 2003-02-26 Michael Chastain <mec@shout.net>
8427
8428 * configure.in: New variable HAVE_UINTPTR_T.
8429 * configure, config.in: Regenerated.
8430
8431 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
8432
8433 Fix PR build/1097.
8434 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8435
8436 2003-02-25 Andrew Cagney <cagney@redhat.com>
8437
8438 * frame.c (get_prev_frame): Add comment on check for
8439 inside_entry_func. Only check for inside_entry_file when not a
8440 dummy and not a sentinel. Check that the new frame is not inner
8441 to the old frame.
8442
8443 2003-02-25 Andrew Cagney <cagney@redhat.com>
8444
8445 * frame.c (frame_debug): New variable.
8446 (_initialize_frame): Add "set/show debug frame" command.
8447 (get_prev_frame): When frame_debug, print reason why unwind
8448 failed.
8449
8450 2003-02-25 Michael Chastain <mec@shout.net>
8451
8452 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8453 to avoid uintptr_t definition problems.
8454
8455 2003-02-25 David Carlton <carlton@math.stanford.edu>
8456
8457 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8458 (SYMBOL_LINKAGE_NAME): Ditto.
8459 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8460 SYMBOL_LINKAGE_NAME.
8461 (struct general_symbol_info): Expand comment.
8462 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8463 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8464 (SYMBOL_MATCHES_REGEXP): Ditto.
8465 * symtab.c (symbol_natural_name): New function.
8466 * objfiles.h: Replace all uses of SYMBOL_NAME by
8467 DEPRECATED_SYMBOL_NAME.
8468 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8469 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8470 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8471 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8472 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8473 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8474 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8475 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8476 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8477 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8478 * ada-exp.y: Ditto.
8479 * ada-exp.y: Update copyright.
8480 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8481 * cp-valprint.c: Ditto.
8482
8483 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8484
8485 * infptrace.c (detach): Do not flag error if ptrace detach fails
8486 and errno is set to ESRCH.
8487
8488 2003-02-24 Andrew Cagney <cagney@redhat.com>
8489
8490 * infptrace.c (udot_info): Change type of udot_off to long. Use
8491 paddr when printing udot_off's value.
8492
8493 2003-02-24 David Carlton <carlton@math.stanford.edu>
8494
8495 * symtab.c (make_symbol_overload_list): Only read in partial
8496 symtabs containing a matching partial symbol.
8497
8498 2003-02-24 David Carlton <carlton@math.stanford.edu>
8499
8500 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8501 do the comparison, not strcmp.
8502 * symfile.c (compare_psymbols): Ditto.
8503 * defs.h: Declare strcmp_iw_ordered.
8504 * utils.c (strcmp_iw_ordered): New function.
8505
8506 2003-02-24 Jim Blandy <jimb@redhat.com>
8507
8508 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8509 support, shared libs): Remove my name from here, to better reflect
8510 reality.
8511
8512 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8513
8514 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8515 (target_ops): Add to_have_continuable_watchpoint.
8516 * target.c (update_current_target): Add INHERIT line for
8517 to_have_continuable_watchpoint.
8518 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8519 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8520 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8521 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8522
8523 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
8524
8525 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8526 maintainership.
8527
8528 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8529
8530 * solib.c (solib_open): Call target defined search function after
8531 failing with solib-search-path.
8532 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8533 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8534
8535 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8536
8537 * MAINTAINERS: Add myself to Write After section.
8538
8539 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8540
8541 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8542
8543 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8544
8545 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8546 (m68hc11_add_reggroups): New function.
8547 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8548 (m68hc11_gdbarch_init): Install the reggroups.
8549 (_initialize_m68hc11_tdep): Initialize them.
8550
8551 2003-02-21 James E Wilson <wilson@tuliptree.org>
8552
8553 * MAINTAINERS: Update my email address.
8554
8555 2003-02-21 David Carlton <carlton@math.stanford.edu>
8556
8557 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8558
8559 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
8560
8561 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8562 * symtab.h: Add opaque declarations of struct axs_value and
8563 struct agent_expr.
8564 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8565 (struct location_funcs): New type.
8566 (struct symbol): Add "loc" to aux_value.
8567 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8568 * dwarf2read.c: Include "dwarf2expr.h".
8569 (dwarf2_symbol_mark_computed): New function.
8570 (read_func_scope): Use it.
8571 (var_decode_location): New function.
8572 (new_symbol): Use it.
8573 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8574
8575 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8576 (dwarf2expr_h, dwarf2loc_h): New variables.
8577 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8578 (dwarf2expr.o, dwarf2loc.o): New rules.
8579 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8580 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8581 LOC_COMPUTED_ARG.
8582 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8583 * m2-exp.y (yylex): Likewise.
8584 * printcmd.c (address_info, print_frame_args): Likewise.
8585 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8586 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8587 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8588 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8589 * symtab.c (lookup_block_symbol): Likewise.
8590
8591 2003-02-20 Adam Fedor <fedor@gnu.org>
8592
8593 * symtab.h: Remove objc_specific struct
8594 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8595 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8596 Have language_objc use cplus_specific struct.
8597
8598 2003-02-20 Tom Tromey <tromey@redhat.com>
8599
8600 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8601 TYPE_NAME, when printing a String value. PR java/1075.
8602
8603 2003-02-20 Adam Fedor <fedor@gnu.org>
8604
8605 * objc-lang.h (find_methods): Remove declaration.
8606 * objc-lang.c (find_methods): Make static.
8607
8608 2003-02-20 Christopher Faylor <cgf@redhat.com>
8609
8610 * win32-nat.c (get_image_name): Check return value from
8611 ReadProcessMemory.
8612 (child_xfer_memory): Ditto.
8613
8614 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
8615
8616 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8617 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8618 '${exec_prefix}' (in addition to the expansion thereof) as
8619 relocatable.
8620 * configure: Rebuilt.
8621
8622 2003-02-20 David Carlton <carlton@math.stanford.edu>
8623
8624 * symtab.c (search_symbols): Revert the search_symbols part of my
8625 2002-12-23 patch. Add comment.
8626
8627 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8628
8629 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8630 * dbxread.c (elfstab_build_psymtabs): Don't call
8631 install_minimal_symbols.
8632 (stabsect_build_psymtabs): Likewise.
8633 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8634 earlier.
8635 * somread.c (som_symfile_read): Call install_minimal_symbols
8636 and do_cleanups earlier.
8637 * nlmread.c (nlm_symfile_read): Likewise.
8638 * mdebugread.c (elfmdebug_build_psymtabs): Call
8639 install_minimal_symbols and make appropriate cleanups.
8640
8641 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8642
8643 * solib.c (reload_shared_libraries): New function.
8644 (_initialize_solib): Add callbacks for ``set solib-search-path''
8645 and ``set solib-absolute-prefix''.
8646
8647 2003-02-20 David Carlton <carlton@math.stanford.edu>
8648
8649 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8650 expand comment.
8651 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8652 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8653 * ada-typeprint.c (ada_typedef_print): Ditto.
8654 * ax-gdb.c (gen_var_ref): Ditto.
8655 * breakpoint.c (print_one_breakpoint): Ditto.
8656 * buildsym.c (finish_block): Ditto.
8657 * c-valprint.c (c_val_print): Ditto.
8658 * expprint.c (print_subexp): Ditto.
8659 * findvar.c (locate_var_value): Ditto.
8660 * infcmd.c (jump_command): Ditto.
8661 * linespec.c (decode_line_2, decode_compound): Ditto.
8662 * maint.c (maintenance_translate_address): Ditto.
8663 * objc-lang.c (compare_selectors, compare_classes): Ditto.
8664 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8665 Ditto.
8666 * p-valprint.c (pascal_val_print): Ditto.
8667 * stabsread.c (define_symbol): Ditto.
8668 * stack.c (print_frame, frame_info, print_block_frame_locals)
8669 (print_frame_arg_vars, return_command): Ditto.
8670 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8671 * symmisc.c (print_symbol): Ditto.
8672 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8673 (compare_search_syms, print_symbol_info, print_msymbol_info)
8674 (rbreak_command): Ditto.
8675 * tracepoint.c (tracepoints_info): Ditto.
8676 * typeprint.c (typedef_print): Ditto.
8677 * valops.c (value_of_variable, hand_function_call): Ditto.
8678 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8679 * ada-typeprint.c: Update Copyright.
8680 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8681 * tracepoint.c, cli/cli-cmds.c: Ditto.
8682
8683 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8684
8685 * frame.c (generic_unwind_get_saved_register): Make non-static.
8686 * frame.h (generic_unwind_get_saved_register): Declare.
8687 * mips-tdep.c (read_next_frame_reg): Fetch register from
8688 current regcache when frame is NULL.
8689 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8690 that must be NULL.
8691 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8692 instead of frame_register_unwind().
8693
8694 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8695
8696 * remote-sim.c (gdbsim_insert_breakpoint)
8697 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8698 code.
8699
8700 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8701
8702 * remote.c (_initialize_remote): Add commands "set/show remote
8703 hardware-watchpoint-limit" and "set/show remote
8704 hardware-breakpoint-limit".
8705 (remote_hw_watchpoint_limit): Initialize to -1.
8706 (remote_hw_breakpoint_limit): Ditto.
8707 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8708
8709 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8710
8711 * coff-pe-read.c: New file - support reading of minimal symbols from a
8712 portable executable using the export table.
8713 * coff-pe-read.h: New file.
8714 * coffread.c: Include coff-pe-read.h.
8715 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8716 debugging symbols found.
8717 * Makefile.in (SFILES): Add coff-pe-read.o.
8718 (coff_pe_read_h): Define.
8719 (COMMON_OBS): Add coff-pe-read.o.
8720 (coffread.o): Add coff_pe_read_h dependency.
8721 (coff-pe-read.o): New target.
8722
8723 2003-02-19 David Carlton <carlton@math.stanford.edu>
8724
8725 * Makefile.in (SFILES): Add block.c.
8726 (block_h): New.
8727 (COMMON_OBS): Add block.o.
8728 (block.o): New.
8729 (x86-64-tdep.o): Add $(block_h).
8730 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8731 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8732 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8733 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8734 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8735 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8736 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8737 * value.h: Add opaque declaration for struct block.
8738 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8739 * ada-lang.h: Ditto.
8740 * x86-64-tdep.c: #include "block.h"
8741 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8742 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8743 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8744 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8745 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8746 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8747 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8748 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8749 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8750 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8751 * symtab.c (block_function): Ditto.
8752 (contained_in): Ditto.
8753 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8754 block.h. Add opaque declaration for struct block.
8755 * symtab.h: Move block_function and contained_in declarations to
8756 block.h. Add opaque declarations for struct block, struct
8757 blockvector.
8758 (struct block): Move to block.h.
8759 (struct blockvector): Ditto.
8760 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8761 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8762 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8763 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8764 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8765 Ditto.
8766 * block.c: New file.
8767 * block.h: New file.
8768
8769 2003-02-19 Theodore A. Roth <troth@openavr.org>
8770
8771 * avr-tdep.c (avr_extract_return_value): Remove function.
8772 (avr_store_return_value): Remove function.
8773 (avr_extract_struct_value_address): Remove function.
8774 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8775
8776 2003-02-19 Andrew Cagney <ac131313@redhat.com>
8777
8778 * rs6000-tdep.c: Include "gdb_assert.h".
8779 (registers_e500): Add "acc" and "spefscr".
8780 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8781 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8782 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
8783 really is "r0".
8784 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8785
8786 2003-02-18 Keith Seitz <keiths@redhat.com>
8787
8788 * Makefile.in: Add gdbtk-interps.c.
8789
8790 2003-02-18 Kevin Buettner <kevinb@redhat.com>
8791
8792 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8793 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8794
8795 2003-02-18 Andrew Cagney <cagney@redhat.com>
8796
8797 * symtab.h (struct objfile): Add opaque declaration.
8798
8799 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
8800
8801 From Jim Ingham <jingham@apple.com>:
8802 * dbxread.c (process_one_symbol): Use last_function_start rather
8803 than function_start_offset to find the real beginning of the
8804 current function. The latter is just the text section offset on
8805 some systems, the former is always the real function start.
8806
8807 2003-02-17 Andrew Cagney <cagney@redhat.com>
8808
8809 * configure.in: Revert ${target} != ${host}.
8810
8811 2003-02-17 Andrew Cagney <ac131313@redhat.com>
8812
8813 * configure.in (Makefile): Use the test ${target} != ${host},
8814 instead of the absence of the "nm.h" file, to determine of the
8815 configuration non-native.
8816 * configure: Regenerate.
8817
8818 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
8819
8820 From Brian Ford <ford@vss.fsi.com>
8821
8822 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
8823 conditionalize tui_active test.
8824 (lookup_cmd_1): Ditto.
8825
8826 2003-02-14 Mark Kettenis <kettenis@gnu.org>
8827
8828 * configure.in: Add check for _etext.
8829 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
8830 available.
8831 * config.in, configure: regenerated.
8832
8833 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
8834
8835 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
8836
8837 2003-02-14 Andrew Cagney <ac131313@redhat.com>
8838
8839 * main.c (tui_version): Delete variable.
8840 (captured_main): When --tui, set interpreter_p to "tui" instead of
8841 enabling tui_version.
8842 * printcmd.c (display_command) [TUI]: Test tui_active instead of
8843 tui_version.
8844 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
8845 * cli/cli-cmds.c (disassemble_command): Ditto.
8846 * defs.h (tui_version): Delete declaration.
8847 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
8848 (tui-interp.o): Add rules.
8849 (SUBDIR_TUI_OBS): Add "tui-interp.o".
8850
8851 2003-02-14 Christopher Faylor <cgf@redhat.com>
8852
8853 * win32-nat.c (register_loaded_dll): Correctly set address range for
8854 just-loaded dll.
8855
8856 2003-02-12 Jason Molenda (jmolenda@apple.com)
8857
8858 * symmisc.c (print_objfile_statistics): Include information about
8859 the number of psymtabs and symtabs in each object file.
8860
8861 2003-02-13 Keith R Seitz <keiths@redhat.com>
8862
8863 * main.h (struct captured_main_args): Add interpreter_p.
8864 * main.c (captured_main): Initialize interpreter_p from context.
8865 * gdb.c (main): Set interpreter_p argument.
8866 * Makefile.in (gdb.o): Add dependency for interps.h.
8867
8868 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8869
8870 * event-top.c (cli_command_loop): Delete declaration.
8871 (_initialize_event_loop): Delete function setting event_loop_hook.
8872 * event-top.h (cli_command_loop): Declare. Update copyright.
8873 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
8874 * interps.c (current_interp_command_loop): When event_loop_p, call
8875 cli_command_loop.
8876
8877 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8878
8879 * interps.h (interp_command_loop_ftype): Change return type to
8880 void.
8881
8882 2003-02-12 Michal Ludvig <mludvig@suse.cz>
8883
8884 * x86-64-tdep.c (x86_64_extract_return_value)
8885 (x86_64_store_return_value): Use regcache instead of regbuf.
8886 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
8887 * x86-64-linux-nat.c (fill_gregset): Use regcache.
8888
8889 2003-02-11 Andrew Cagney <ac131313@redhat.com>
8890
8891 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
8892 * aclocal.m4: Regenerate.
8893 * configure: Regenerate.
8894
8895 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
8896 TCL_LD_SEARCH_FLAGS.
8897
8898 2003-02-10 Michal Ludvig <mludvig@suse.cz>
8899
8900 * dwarf2cfi.c: Reindented.
8901
8902 2003-02-09 Andrew Cagney <ac131313@redhat.com>
8903
8904 * interps.c (clear_interpreter_hooks): Convert function definition
8905 to ISO C.
8906
8907 2003-02-07 David Carlton <carlton@math.stanford.edu>
8908
8909 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8910
8911 2003-02-07 Kevin Buettner <kevinb@redhat.com>
8912
8913 * gdbtypes.h (struct main_type): Move ``length'' field from here...
8914 (struct type): ...to here.
8915 (TYPE_LENGTH): Adjust to reflect different location of ``length''
8916 field.
8917 * gdbtypes.c (make_qualified_type): Set length on newly created type.
8918 (replace_type): Set length on all type variants for a given type.
8919
8920 2003-02-07 Andrew Cagney <ac131313@redhat.com>
8921
8922 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
8923 <sys/stat.h>.
8924 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8925
8926 2003-02-06 Andrew Cagney <ac131313@redhat.com>
8927
8928 * Makefile.in (symm-nat.o): Update dependencies.
8929 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
8930 (lynx-nat.o, ia64-linux-nat.): Ditto.
8931 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
8932 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
8933 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
8934
8935 * Makefile.in (inflow_h): Define.
8936 (procfs.o, inflow.o, procfs.o): Update dependencies.
8937 * inftarg.c (child_stop): Delete extern declaration of
8938 inferior_process_group. Include "inflow.h".
8939 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
8940 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
8941 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
8942 (our_process_group, inferior_process_group): Extern declarations.
8943
8944 * procfs.c: Include "gdb_assert.h".
8945
8946 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8947 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
8948 * jv-typeprint.c (java_type_print_base): Ditto.
8949 * typeprint.c (typedef_print): Eliminate STREQ.
8950 * cli/cli-script.c (define_command, define_command): Ditto.
8951 * main.c (captured_main): Ditto.
8952 * values.c (lookup_internalvar): Ditto.
8953 * utils.c (safe_strerror, parse_escape): Eliminate assignment
8954 within `if' conditional.
8955 * linespec.c (decode_line_2): Ditto.
8956 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
8957 (bfd_openw_with_cleanup): Ditto.
8958
8959 2003-02-07 Mark Kettenis <kettenis@gnu.org>
8960
8961 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
8962 legacy_extract_return_value and store_return_value to
8963 legacy_return_value.
8964
8965 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
8966
8967 * win32-nat.c (get_relocated_section_addrs): New function. Find
8968 section load addresses for symbol handling in relocated DLLs.
8969 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
8970
8971 2003-02-05 Fred Fish <fnf@intrinsity.com>
8972
8973 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
8974 '=' and '!='.
8975 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
8976 with '&' and '=='.
8977 (angel_RDI_info): Ditto.
8978 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
8979 with '&' and '!='.
8980 (threads_continue_all_with_signals): Ditto.
8981
8982 2003-02-05 Jim Ingham <jingham@apple.com>
8983 Keith Seitz <keiths@redhat.com>
8984 Elena Zannoni <ezannoni@redhat.com>
8985 Andrew Cagney <ac131313@redhat.com>
8986
8987 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
8988 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
8989 (SUBDIR_MI_OBS): Add "mi-interp.o".
8990 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
8991 (SFILES): Add "interps.c".
8992 (COMMON_OBS): Add "interps.o".
8993 (interps_h, mi_main_h): Define.
8994 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
8995 (mi-main.o, main.o, event-top.o): Update dependencies.
8996 * cli/cli-interp.c: New file.
8997 * interps.h, interps.c: New files.
8998 * top.c: (gdb_init): Don't install the default interpreter, handed
8999 by captured_main.
9000 * main.c: Include "interps.h".
9001 (interpreter_p): Note that it should malloc'ed.
9002 (captured_command_loop): Call current_interp_command_loop.
9003 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9004 xfree and xstrdup when updating interpreter_p. Install the
9005 default interpreter. Add hack to stop mi1's copyright notice
9006 being encoded.
9007 * event-top.h (gdb_setup_readline): Declare.
9008 (gdb_disable_readline): Declare.
9009 * event-top.c: Include "interps.h".
9010 (display_gdb_prompt): Call current_interp_display_prompt_p.
9011 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9012 gdb_stdlog, and gdb_stdtarg.
9013 (_initialize_event_loop): Don't call gdb_setup_readline.
9014 * cli-out.c (cli_out_set_stream): New function.
9015 * cli-out.h (cli_out_set_stream): Declare.
9016
9017 2003-02-06 Mark Kettenis <kettenis@gnu.org>
9018
9019 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9020 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9021 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9022 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9023 config/i386/i386v42mp.mt: Removed.
9024
9025 2003-02-05 Mark Kettenis <kettenis@gnu.org>
9026
9027 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9028 GDB_OSABI_SOLARIS.
9029
9030 2003-02-05 Michael Chastain <mec@shout.net>
9031
9032 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9033 2.12.1 and earlier versions.
9034
9035 2003-02-05 Andrew Cagney <ac131313@redhat.com>
9036
9037 Remove orphaned hosts, targets and files.
9038 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9039 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9040 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9041 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9042 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9043 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9044 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9045 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9046 * config/sparc/tm-sp64sim.h: Delete.
9047 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9048 hosts.
9049 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9050 mips*-dec-mach3* targets.
9051
9052 2003-02-04 Michael Chastain <mec@shout.net>
9053
9054 * NEWS: Fix typo: sepcifying -> specifying.
9055
9056 2003-02-04 Michael Chastain <mec@shout.net>
9057
9058 * dwarfread.c: Add documentation on the state of dwarf-1,
9059 looking towards obsoletion.
9060
9061 2003-02-03 Michael Chastain <mec@shout.net>
9062
9063 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9064 gdb/testsuite/gdb.c++/pr-1023.exp.
9065
9066 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9067
9068 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9069 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9070
9071 * utils.c (init_page_info): Delete reference to MPW in comments.
9072 * main.c (captured_main): Delete #ifdef MPW.
9073
9074 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9075
9076 * NEWS: Note that the m32r-*-elf* is obsolete.
9077 * monitor.c (monitor_expect): Obsolete reference to m32r.
9078 * configure.tgt: Mark m32r-*-elf* as obsolete.
9079 * MAINTAINERS: Mark m32k as obsolete.
9080 * m32r-rom.c: Obsolete file.
9081 * config/m32r/m32r.mt: Obsolete file.
9082 * config/m32r/tm-m32r.h: Obsolete file.
9083 * m32r-stub.c: Obsolete file.
9084 * m32r-tdep.c: Obsolete file.
9085
9086 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9087
9088 * NEWS: Mention that the z8k-zilog-none is obsolete.
9089 * MAINTAINERS: Mark z8k as obsolete.
9090 * configure.tgt: Obsolete the z8k-*-coff* target.
9091 * config/z8k/z8k.mt: Obsolete file.
9092 * config/z8k/tm-z8k.h: Obsolete file.
9093 * z8k-tdep.c: Obsolete file.
9094
9095 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9096
9097 * NEWS: Mention that the mn10200-elf is obsolete.
9098 * configure.tgt: Obsolete mn10200-*-* target.
9099 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9100 mention that the mn10200 is obsolete.
9101 * breakpoint.h: Ditto.
9102 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9103 * config/mn10200/mn10200.mt: Obsolete file.
9104 * config/mn10200/tm-mn10200.h: Obsolete file.
9105 * mn10200-tdep.c: Obsolete file.
9106
9107 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9108
9109 * MAINTAINERS: Mark h8500 as obsolete.
9110 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9111 * findvar.c (value_from_register): Ditto.
9112 * h8500-tdep.c: Mark file as obsolete.
9113 * config/h8500/h8500.mt: Ditto.
9114 * config/h8500/tm-h8500.h: Ditto.
9115 * NEWS: Mention that h8500 is obsolete.
9116
9117 2003-02-04 David Carlton <carlton@math.stanford.edu>
9118
9119 * objfiles.c (allocate_objfile): Always set name. Add comment at
9120 start of function.
9121 * jv-lang.c (get_dynamics_objfile): Add comment.
9122
9123 2003-02-04 David Carlton <carlton@math.stanford.edu>
9124
9125 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9126 * printcmd.c (build_address_symbolic): Replace uses of
9127 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9128 SYMBOL_NAME, and asm_demangle.
9129 Update copyright.
9130
9131 2003-02-04 David Carlton <carlton@math.stanford.edu>
9132
9133 * linespec.c (decode_compound): Extract code into
9134 lookup_prefix_sym.
9135 (lookup_prefix_sym): New function.
9136
9137 2003-02-04 David Carlton <carlton@math.stanford.edu>
9138
9139 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9140 FLOAT_COERCION_BADNESS.
9141 * gdbtypes.c (rank_one_type): Replace all uses of
9142 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9143
9144 2003-02-04 Jim Blandy <jimb@redhat.com>
9145
9146 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9147 section, let dwarf_macinfo_section point to it, not
9148 dwarf_loc_section.
9149
9150 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9151
9152 Pointed out by Anton Blanchard <anton@samba.org>.
9153 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9154 (ppc_linux_at_sigtramp_return_path): Use it.
9155
9156 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9157
9158 * defs.h (streq): Add prototype.
9159 * utils.c (streq): New function.
9160
9161 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9162 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9163 * mdebugread.c (new_symbol): Likewise.
9164 * stabsread.c (define_symbol): Likewise.
9165 * coffread.c (process_coff_symbol): Likewise.
9166 * dwarfread.c (new_symbol): Likewise.
9167
9168 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9169 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9170 here.
9171 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9172 SYMBOL_INIT_DEMANGLED_NAME.
9173 * objfiles.c: Include "hashtab.h".
9174 (allocate_objfile): Call htab_set_functions_ex for the
9175 demangled_names_hash.
9176 (free_objfile): Call htab_delete for the demangled_names_hash.
9177 * objfiles.h (struct htab): Add declaration.
9178 (struct objfile): Add demangled_names_hash.
9179 * symfile.c: Include "hashtab.h".
9180 (reread_symbols): Call htab_delete for the demangled_names_hash.
9181 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9182 SYMBOL_NAME in the bcache.
9183 * symtab.c: Include "hashtab.h". Update comments.
9184 (create_demangled_names_hash, symbol_set_names): New functions.
9185 (symbol_find_demangled_name): New function, broken out from
9186 symbol_init_demangled_names.
9187 (symbol_init_demangled_names): Use it.
9188 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9189 (SYMBOL_SET_NAMES): New macro.
9190 (symbol_set_names): Add prototype.
9191
9192 2003-02-03 Jim Blandy <jimb@redhat.com>
9193
9194 Use a single, consistent representation for an empty minimal
9195 symbol table in an objfile.
9196 * objfiles.c (terminate_minimal_symbol_table): New function.
9197 (allocate_objfile): Call it.
9198 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9199 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9200 non-NULL.
9201 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9202 objfile has minimal symbols, compare minimal_symbol_count to zero,
9203 instead of comparing msymbols with NULL.
9204 * objfiles.c (have_minimal_symbols): Same.
9205 * solib-sunos.c (solib_add_common_symbols): Call
9206 terminate_minimal_symbol_table.
9207 * symfile.c (reread_symbols): Same.
9208
9209 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9210
9211 * s390-tdep.c (s390_address_class_type_flags)
9212 (s390_address_class_type_flags_to_name)
9213 (s390_address_class_name_to_type_flags): New functions.
9214 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9215 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9216
9217 2003-02-03 Michael Snyder <msnyder@redhat.com>
9218
9219 * arm-tdep.c: Fix spell-o in comment.
9220
9221 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9222
9223 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9224 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9225 error messages to contain BFD filename.
9226
9227 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9228
9229 Fix PR gdb/742 gdb/743 gdb/877
9230 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9231 (do_mixed_source_and_assembly): Use
9232 make_cleanup_ui_out_tuple_begin_end and
9233 make_cleanup_ui_out_tuple_begin_end.
9234 (do_mixed_source_and_assembly): Ditto.
9235 * thread.c (do_captured_list_thread_ids): Ditto.
9236 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9237 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9238 ui_out_tuple_end): Delete prototypes.
9239 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9240 ui_out_list_end, ui_out_tuple_end): Delete.
9241
9242 From Kevin Buettner <kevinb@redhat.com>:
9243 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9244 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9245 (do_cleanup_table_end): New functions.
9246 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9247 Use cleanups to invoke_ui_out_tuple_end().
9248 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9249 * cli/cli-setshow.c (cmd_show_list): Use
9250 make_cleanup_ui_out_tuple_begin_end.
9251
9252 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9253
9254 * frame.c (frame_unwind_register): New function.
9255 (frame_unwind_unsigned_register): Use.
9256 (frame_unwind_signed_register): Use.
9257 (frame_read_register): New function.
9258 * frame.h (frame_unwind_register): Declare.
9259 (frame_read_register): Declare.
9260
9261 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9262 and frame_unwind_register instead of read_memory, write_register
9263 and deprecated_write_register_bytes.
9264
9265 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9266
9267 * frame.h: Note that namelen can be negative.
9268 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9269 NAME's length.
9270
9271 * NEWS: Mention that the d10v's `regs' command is deprecated.
9272 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9273 (d10v_print_registers_info): New function.
9274 (show_regs): Call d10v_print_registers_info.
9275 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9276
9277 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9278
9279 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9280 lost in the previous patch.
9281
9282 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9283
9284 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9285 * stack.c (print_frame_info_base): Output complete FRAME tuple
9286 for synthesized frames.
9287
9288 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9289
9290 * mips-nat.c (zerobuf): Delete.
9291 (fetch_inferior_registers): Alloc local zerobuf.
9292 (fetch_core_registers): Alloc local zerobuf.
9293 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9294 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9295 * thread-db.c (thread_db_store_registers): Ditto.
9296 * sh-tdep.c (sh_do_register): Ditto.
9297 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9298 * remote-sim.c (gdbsim_store_register): Ditto.
9299 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9300 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9301 * monitor.c (monitor_supply_register): Ditto.
9302 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9303 * mips-nat.c (fetch_inferior_registers): Ditto.
9304 * m68klinux-nat.c (fetch_register): Ditto.
9305 * lynx-nat.c (fetch_inferior_registers): Ditto.
9306 (fetch_inferior_registers): Ditto.
9307 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9308 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9309 (hpux_thread_store_registers): Ditto.
9310 * hppah-nat.c (fetch_register): Ditto.
9311 * hppab-nat.c (fetch_register): Ditto.
9312 * hppa-tdep.c (pa_register_look_aside): Ditto.
9313 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9314 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9315
9316 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9317
9318 * gdbarch.sh: Explictly specify all method levels. When a
9319 variable with an empty level, provide a non-multi-arch default.
9320 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9321 * gdbarch.h: Re-generate.
9322 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9323 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9324
9325 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9326
9327 * defs.h (host_pointer_to_address): Delete declaration.
9328 (address_to_host_pointer): Delete declaration.
9329 * utils.c (host_pointer_to_address): Delete function.
9330 (address_to_host_pointer): Delete function.
9331 * procfs.c (procfs_address_to_host_pointer): New function.
9332 * procfs.c (proc_set_watchpoint): Use.
9333 (procfs_can_use_hw_breakpoint): Update comments.
9334 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9335 (som_solib_add): Use.
9336 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9337 * hppa-tdep.c (unwind_command): Use.
9338
9339 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9340
9341 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9342 strlen d_name.
9343
9344 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9345 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9346 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9347 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9348 (define_symbol): Update.
9349 * symfile.c (generic_load): Remove references to nindy.
9350 * symtab.c: Remove references to nindy.
9351
9352 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9353
9354 * infcmd.c (print_float_info): Delete code conditional on
9355 FLOAT_INFO.
9356 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9357 * config/m68k/nm-apollo68b.h: Ditto.
9358 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9359 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9360 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9361
9362 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9363
9364 * config/i386/tm-i386os9k.h: Removed.
9365
9366 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9367 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9368 they're identical to i[3456]86-*-sysv* now.
9369 * config/i386/i386v32.mh: Removed.
9370 * config/i386/xm-i386v32.h: Removed.
9371 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9372
9373 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9374
9375 * config/i386/i386dgux.mh: Removed.
9376 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9377
9378 * configure.in: Fix typo.
9379 * configure: Regenerated.
9380
9381 2003-01-31 David Carlton <carlton@math.stanford.edu>
9382
9383 * dwarf2read.c (dwarf2_locate_sections): Set
9384 dwarf_ranges_section.
9385
9386 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9387
9388 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9389 * utils.c: Update comments documenting legitimate uses of PTR.
9390
9391 * utils.c: Re-indent.
9392
9393 * config/djgpp/fnchange.lst: Delete nindy files.
9394 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9395 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9396 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9397 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9398 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9399 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9400 * Makefile.in (init.c): Remove nindy references.
9401 (saber_gdb): Delete rule.
9402 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9403 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9404 and a68v-nat.c.
9405 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9406 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9407 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9408 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9409 nindy-share/stop.h.
9410 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9411 * saber.suppress: Delete file.
9412
9413 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
9414
9415 * dbxread.c (stabs_data): New static variable.
9416 (fill_symbuf): Support an in-memory buffer for stabs data.
9417 (stabs_seek): New function.
9418 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9419 (read_ofile_symtab): Use stabs_seek.
9420 (elfstab_build_psymtabs): Take an asection* instead of
9421 an offset and size. Relocate the stabs data if necessary.
9422 Save the section* for dbx_psymtab_to_symtab.
9423 * dwarf2read.c: Add section variables for each debug section.
9424 (dwarf2_locate_sections): Fill them in.
9425 (dwarf2_read_section): Take an asection* argument.
9426 Relocate the section contents if necessary.
9427 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9428 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9429 it to dwarf2_read_section.
9430 (dwarf2_build_frame_info): Update callers.
9431 * elfread.c (elf_symfile_read): Update call to
9432 elfstab_build_psymtabs.
9433 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9434 (DBX_STAB_SECTION): New macro.
9435 * stabsread.h (elfstab_build_psymtabs): Update prototype.
9436 * symfile.c (symfile_dummy_outputs): New function.
9437 (symfile_relocate_debug_section): New function.
9438 * symfile.h (symfile_relocate_debug_section): Add prototype.
9439
9440 2003-01-31 Richard Henderson <rth@redhat.com>
9441
9442 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9443 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9444 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9445 * alpha-tdep.c (alpha_register_name): Add "unique".
9446 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9447 (ALPHA_UNIQUE_REGNUM): New.
9448 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9449
9450 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9451
9452 * README: Remove reference to Ericsson 1800 monitor.
9453 * Makefile.in (remote-es.o): Delete rule.
9454 (ALLDEPFILES): Delete remote-es.c.
9455 * remote-es.c: Delete file.
9456 * config/m68k/es1800.mt: Delete file.
9457 * config/djgpp/fnchange.lst: Update.
9458 * configure.tgt: Delete m68*-ericsson-* target.
9459
9460 2003-01-31 Adam Fedor <fedor@gnu.org>
9461
9462 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9463 Remove duplicate/shadowing variable of same name.
9464
9465 2003-01-30 Jim Blandy <jimb@redhat.com>
9466
9467 * symfile.c (find_separate_debug_file): Assert that the objfile's
9468 directory name we compute ends with a slash, and then assume that
9469 that's so everywhere we use it.
9470
9471 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
9472
9473 * valops.c (value_assign): Flush frame cache after stores to memory
9474 also.
9475
9476 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9477
9478 * Makefile.in (mon960-rom.o): Delete rule.
9479 * mon960-rom.c: Delete file.
9480
9481 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9482
9483 * d10v-tdep.c: Include "frame-unwind.h".
9484 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9485 list.
9486 (next_addr, uses_frame): Delete.
9487 (struct d10v_unwind_cache): Define.
9488 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9489 Use info instead of next_addr and uses_frame globals.
9490 (d10v_frame_init_saved_regs): Delete function.
9491 (d10v_init_extra_frame_info): Delete function.
9492 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9493 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9494 init_frame_pc or frame_saved_pc.
9495 (d10v_pop_frame): Delete function.
9496 (do_d10v_pop_frame): Delete function.
9497 (d10v_frame_chain): Delete function.
9498 (d10v_frame_chain_valid): Delete function.
9499 (d10v_frame_pc_unwind): New function.
9500 (d10v_frame_id_unwind): New function.
9501 (saved_regs_unwinder): New function.
9502 (d10v_frame_register_unwind): New function.
9503 (d10v_frame_pop): New function.
9504 (d10v_frame_unwind): New variable.
9505 (d10v_frame_p): New function.
9506 (d10v_frame_saved_pc): Delete function.
9507 * Makefile.in (d10v-tdep.o): Update dependencies.
9508
9509 2003-01-30 J. Brobecker <brobecker@gnat.com>
9510
9511 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9512 causing some regressions due to a change in the default value
9513 for this macro.
9514
9515 2003-01-29 Richard Henderson <rth@redhat.com>
9516 Elena Zannoni <ezannoni@redhat.com>
9517 Daniel Jacobowitz <drow@mvista.com>
9518
9519 Fix PR gdb/961.
9520 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
9521 variables.
9522 (RANGES_SECTION): New.
9523 (dwarf_ranges_buffer): New variable.
9524 (struct comp_unit_head): Add member "die".
9525 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9526 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9527 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9528 (dwarf2_locate_sections): Likewise.
9529 (dwarf2_build_psymtabs): Read .debug_ranges.
9530 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9531 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9532 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9533 Look for DW_AT_ranges and return the bounding box.
9534
9535 2003-01-29 Brian Ford <ford@vss.fsi.com>
9536
9537 * win32-nat.c (cygwin_pid): Removed as unused.
9538 (child_attach): Try fall back to Cygwin pid.
9539
9540 2003-01-29 Jim Blandy <jimb@redhat.com>
9541
9542 * objfiles.h (struct objfile): Doc fix.
9543
9544 2003-01-29 Andrew Cagney <ac131313@redhat.com>
9545
9546 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9547 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9548 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9549 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9550 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9551 (FRAME_SAVED_PC): Change to a function with predicate.
9552 * gdbarch.h, gdbarch.c: Re-generate.
9553
9554 2003-01-28 Andrew Cagney <ac131313@redhat.com>
9555
9556 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9557
9558 * complaints.c (complain): Delete function.
9559 * complaints.h (struct deprecated_complaint): Delete definition.
9560 (complain): Delete declaration.
9561
9562 2003-01-28 Kevin Buettner <kevinb@redhat.com>
9563
9564 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9565 dummy frames.
9566
9567 2003-01-27 Andrew Cagney <ac131313@redhat.com>
9568
9569 * sentinel-frame.h, sentinel-frame.c: New files.
9570 * Makefile.in (frame.o): Update dependencies.
9571 (SFILES): Add sentinel-frame.c.
9572 (sentinel_frame_h): Define.
9573 (COMMON_OBS): Add sentinel-frame.o.
9574 (sentinel-frame.o): Specify dependencies.
9575 * frame.c: Include "sentinel-frame.h".
9576 (frame_register_unwind): Rewrite assuming that there is always a a
9577 ->next frame.
9578 (frame_register, generic_unwind_get_saved_register): Ditto.
9579 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9580 (create_sentinel_frame, unwind_to_current_frame): New functions.
9581 (get_current_frame): Rewrite using create_sentinel_frame and
9582 unwind_to_current_frame. When possible, always create a frame.
9583 (create_new_frame): Set next to the sentinel frame.
9584 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9585 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9586 ID cache when necessary.
9587 (frame_saved_regs_id_unwind): Use frame_relative_level.
9588 (deprecated_generic_get_saved_register): Use frame_relative_level,
9589 get_frame_saved_regs, get_frame_pc, get_frame_base and
9590 get_next_frame.
9591 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9592 frame_register.
9593
9594 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9595
9596 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9597
9598 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9599
9600 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9601 (maintenance_set_profile_cmd): Use error () instead of warning ().
9602
9603 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9604
9605 * configure.in: Check that -pg works if using --enable-profiling.
9606 Check for monstartup and _mcleanup regardless of --enable-profiling.
9607 * maint.c: Check for monstartup and _mcleanup before using them.
9608 * config.in: Regenerated.
9609 * configure: Regenerated.
9610
9611 2003-01-24 Nick Clifton <nickc@redhat.com>
9612
9613 * Add sh2e support:
9614
9615 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9616
9617 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9618 (sh2e_show_regs): New.
9619 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9620 * config/sh/tm-sh.h: Added sh2e to comments.
9621
9622 2003-01-23 Jim Blandy <jimb@redhat.com>
9623
9624 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9625 symbols found)" message here; we haven't checked for a separate
9626 debug info file yet, so we don't know yet.
9627 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9628 we've looked everywhere. Also, there's no need to print a special
9629 message when we're loading the separate debug info file: the one
9630 symbol_file_add prints is fine.
9631
9632 2003-01-23 Alexander Larsson <alexl@redhat.com>
9633 Jim Blandy <jimb@redhat.com>
9634
9635 Add support for executables whose debug info has been separated
9636 out into a separate file, leaving only a link behind.
9637 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9638 and separate_debug_objfile_backlink.
9639 (put_objfile_before): New declaration.
9640 * symfile.c: #include "filenames.h".
9641 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9642 debug info in a separate file, read that, too. Save the addrs
9643 argument, so we can use it again to read the separated debug info;
9644 syms_from_objfile modifies the table we pass it.
9645 (reread_symbols): After re-reading an objfile, call
9646 reread_separate_symbols to refresh its separate debug info
9647 objfile, if it has one.
9648 (reread_separate_symbols, find_separate_debug_file,
9649 get_debug_link_info, separate_debug_file_exists): New functions.
9650 (debug_file_directory): New global var.
9651 (_initialize_symfile): Initialize debug_file_directory, and
9652 provide the new `set debug-file-directory' command to let the user
9653 change it.
9654 * objfiles.c (free_objfile): If this objfile has its debug info in
9655 a separate objfile, free that one too. If this is itself a
9656 separate debug info objfile, clear our parent's backlink.
9657 (put_objfile_before): New function.
9658 * utils.c (gnu_debuglink_crc32): New function.
9659 * defs.h (gnu_debuglink_crc32): New declaration.
9660 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9661 * configure.in: Handle --with-separate-debug-dir config option.
9662 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9663 * acconfig.h (DEBUGDIR): New macro.
9664 * configure, aclocal.m4, config.in: Regenerated.
9665
9666 2003-01-22 Jim Blandy <jimb@redhat.com>
9667
9668 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9669 like the old symbol_file_add, but taking new arguments: you can
9670 now pass in either a `struct section_addr_info' list to say where
9671 each section is loaded, or a `struct section_offsets' table. Pass
9672 these new arguments through to syms_from_objfile as appropriate.
9673 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9674 with the appropriate quiescent values for the new arguments.
9675
9676 * symfile.c: #include "gdb_assert.h".
9677 (syms_from_objfile): Add the ability to pass in a section offset
9678 table directly, as an alternative to the section_addr_info table.
9679 Document arguments better.
9680 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9681 * symfile.h (syms_from_objfile): Update declaration.
9682 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9683 syms_from_objfile.
9684 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9685
9686 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
9687
9688 Original patch by Tom Tromey <tromey@cygnus.com> and
9689 Jason Molenda <jmolenda@apple.com>.
9690 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9691 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9692 * NEWS: Mention profiling.
9693 * configure.in (--enable-gdbtk): Fix typo.
9694 (--enable-profiling): New. Set PROFILE_CFLAGS.
9695 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9696 Fill in function.
9697 (profiling_state): New variable.
9698 (mcleanup_wrapper): New function.
9699 (_initialize_maint): Remove NOTYET, fix call to
9700 add_setshow_boolean_cmd for "maint set profile".
9701 * configure: Regenerated.
9702
9703 2003-01-21 Martin M. Hunt <hunt@redhat.com>
9704
9705 * Makefile.in (install-gdbtk): Install PNG images too.
9706
9707 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9708
9709 * exec.c (text_start): Delete global variable.
9710 (exec_file_attach): Make text_start local to the function.
9711 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9712 * valops.c (hand_function_call): Delete code that handles
9713 BEFORE_TEXT_END and AFTER_TEXT_END.
9714 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9715 of CALL_DUMMY_LOCATION.
9716 * gdbarch.c: Regenerate.
9717 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9718 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9719 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9720 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9721 (text_end): Delete extern declaration.
9722
9723 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9724
9725 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9726 * blockframe.c (backtrace_below_main): Move to "frame.c".
9727 (frame_chain_valid): Delete check for backtrace_below_main.
9728 (_initialize_blockframe): Delete initialization, move ``set
9729 backtrace-below-main'' command to "frame.c".
9730 (do_flush_frames_sfunc): Delete function.
9731 * frame.c: Include "command.h" and "gdbcmd.h".
9732 (frame_type_from_pc): New function.
9733 (create_new_frame): Use frame_type_from_pc.
9734 (legacy_get_prev_frame): New function.
9735 (get_prev_frame): Rewrite. When an old style frame, call
9736 legacy_get_prev_frame. Otherwize, unwind the PC first.
9737 (_initialize_frame): Add ``set backtrace-below-main'' command.
9738 * Makefile.in (frame.o): Update dependencies.
9739
9740 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9741
9742 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9743 DEPRECATED_REGISTERS_INFO.
9744
9745 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9746
9747 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9748 Maintainers'. Update `Various Maintainers'.
9749
9750 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9751
9752 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9753 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9754 Suppress actual parameters when `-'.
9755 * gdbarch.h, gdbarch.c: Regenerate.
9756
9757 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9758
9759 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9760 code handling dummy frames.
9761
9762 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9763
9764 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9765 (struct frame_unwind): Add field pop.
9766 * frame.h (frame_pop): Declare.
9767 * frame.c (frame_saved_regs_pop): New function.
9768 (trad_frame_unwinder): Add frame_saved_regs_pop.
9769 (frame_pop): New function.
9770 * dummy-frame.c (dummy_frame_pop): New function.
9771 (discard_innermost_dummy): New function.
9772 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9773 (dummy_frame_unwind): Add dummy_frame_pop.
9774 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9775 * valops.c (hand_function_call): Ditto.
9776 * stack.c (return_command): Ditto.
9777
9778 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9779
9780 * cris-tdep.c: Fix function declaration indentation.
9781 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9782 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9783 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9784 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9785 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9786 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9787
9788 2003-01-18 Michael Chastain <mec@shout.net>
9789
9790 * README (Unpacking and Installation -- quick overview):
9791 Warn against ".../gdb-5.3/gdb/configure".
9792
9793 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9794
9795 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9796 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9797 (struct frame_unwind): Declare opaque.
9798 (dummy_frame_p): Declare function.
9799 * dummy-frame.c (dummy_frame_id_unwind): Make static.
9800 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9801 * dummy-frame.c: Include "frame-unwind.h".
9802 (dummy_frame_p): New function.
9803 (dummy_frame_unwind): New variable.
9804 * frame.c: Include "frame-unwind.h".
9805 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
9806 to use the new unwind field.
9807 (set_unwind_by_pc): Delete function.
9808 (create_new_frame, get_prev_frame): Set unwind field using
9809 frame_unwind_find_by_pc.
9810 (trad_frame_unwind, trad_frame_unwinder): New variables.
9811 * frame.h (trad_frame_unwind): Declare variable.
9812 (frame_id_unwind_ftype): Delete declaration.
9813 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
9814 (struct frame_unwind): Declare opaque.
9815 (struct frame_info): Replace the fields id_unwind, pc_unwind and
9816 register_unwind with a single unwind pointer.
9817 * frame-unwind.h, frame-unwind.c: New files.
9818 * Makefile.in (SFILES): Add frame-unwind.c.
9819 (frame_unwind_h): Define.
9820 (COMMON_OBS): Add frame-unwind.o.
9821 (frame-unwind.o): Specify dependencies.
9822 (frame.o, dummy-frame.o): Update dependencies.
9823
9824 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9825
9826 * ada-valprint.c: Eliminate PTR.
9827 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
9828 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
9829 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
9830 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
9831 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
9832 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
9833 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
9834
9835 2003-01-17 Andrew Cagney <ac131313@redhat.com>
9836
9837 * main.c (captured_main): Don't use PTR.
9838 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
9839 * gdbtypes.c (lookup_primitive_typename): Ditto.
9840 (lookup_struct_elt_type): Ditto.
9841 * f-valprint.c (info_common_command): Ditto.
9842 (list_all_visible_commons): Ditto.
9843 * jv-typeprint.c (java_type_print_base): Ditto.
9844
9845 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
9846 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
9847 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
9848 i386-interix-nat.c and i386-interix-tdep.c. Rename
9849 m68klinux-nat.c and m68klinux-tdep.c. Rename
9850 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
9851 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
9852 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
9853 * main.c (captured_main): Use xfree, not free.
9854
9855 2003-01-16 Andrew Cagney <ac131313@redhat.com>
9856
9857 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
9858 ID back using a parameter.
9859 * frame.c (frame_id_unwind): Update call.
9860 (frame_saved_regs_id_unwind): Update.
9861 * dummy-frame.c (dummy_frame_id_unwind): Update function.
9862 * dummy-frame.h (struct frame_id): Add opaque declaration.
9863 (dummy_frame_id_unwind): Update declaration.
9864
9865 2003-01-15 Andrew Cagney <ac131313@redhat.com>
9866
9867 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
9868
9869 2003-01-15 Stephen P. Smith <ischis2@cox.net>
9870
9871 * MAINTAINERS (Stephen P. Smith): Updated email address.
9872
9873 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
9874
9875 Fix PR gdb/898
9876 * breakpoint.c (until_break_command): Add new argument. Use it to
9877 decide whether to stop only at the current frame or not.
9878 * breakpoint.h (until_break_command): Update prototype.
9879 * infcmd.c (until_command): Add new argument to until_break_command
9880 call.
9881 (advance_command): New function.
9882 (_initialize_infcmd): Update help string for 'until' command.
9883 Add new 'advance' command.
9884
9885 2003-01-14 David Carlton <carlton@math.stanford.edu>
9886
9887 * linespec.c (decode_line_1): Normalize comments.
9888 (set_flags): Ditto.
9889 (locate_first_half): Ditto.
9890 (decode_compound): Ditto.
9891 (symtab_from_filename): Ditto.
9892 (decode_all_digits): Ditto.
9893 (decode_dollar): Ditto.
9894 (find_methods): Ditto.
9895 (find_toplevel_char): Ditto.
9896
9897 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9898
9899 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
9900 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
9901 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
9902 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
9903 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
9904 * language.c, language.h, m32r-tdep.c: Update copyright.
9905 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
9906 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
9907 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
9908 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
9909 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9910 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
9911
9912 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9913
9914 * stabsread.h (process_later, resolve_cfront_continuation):
9915 Obsolete.
9916 Update copyright years.
9917 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
9918 Update copyright year.
9919 * dbxread.c(struct cont_elem): Obsolete.
9920 (process_later, process_now): Obsolete functions.
9921 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
9922 Update copyright year.
9923 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
9924 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
9925 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
9926 (parse_partial_symbols): Obsolete cfront support.
9927 * stabsread.c
9928 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
9929 macros.
9930 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
9931 read_cfront_baseclasses, read_cfront_member_functions,
9932 resolve_cfront_continuation,read_cfront_static_fields,
9933 copy_cfront_struct_fields): Obsolete functions.
9934 (define_symbol, read_one_struct_field): Obsolete cfront support.
9935 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
9936 Update Copyright year.
9937
9938 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9939
9940 * stack.c (print_frame_info, print_stack_frame_base_stub,
9941 print_stack_frame_base, show_and_print_stack_frame_stub,
9942 show_and_print_stack_frame, print_only_stack_frame_stub,
9943 print_only_stack_frame): Delete functions.
9944 (print_stack_frame_stub): Call print_frame_info instead of
9945 print_frame_info_base.
9946 (print_frame_info_base): Rename to print_frame_info.
9947 (backtrace_command_1): Call print_frame_info, instead of
9948 print_frame_info_base.
9949 (current_frame_command): Call print_stack_frame, instead of
9950 print_only_stack_frame.
9951 (frame_command): Call print_stack_frame, instead of
9952 show_and_print_stack_frame.
9953 (up_command): Ditto.
9954 (down_command): Ditto.
9955 * frame.h (print_only_stack_frame): Delete prototype.
9956 * infrun.c (normal_stop): Call print_stack_frame, instead of
9957 show_and_print_stack_frame.
9958 * thread.c (info_threads_command): Call print_stack_frame, instead
9959 of print_only_stack_frame.
9960
9961 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9962
9963 * README (Graphical interface to GDB): Update URL. Point at
9964 gdb/links/.
9965
9966 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
9967 version match.
9968
9969 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9970
9971 * symtab.c (find_pc_sect_line): Don't consider end-of-function
9972 lines.
9973
9974 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9975
9976 * thread-db.c (attach_thread): Prototype.
9977 (struct private_thread_info): Remove lwpid. Add thread handle (th),
9978 thread information (ti), and valid flags (th_valid, ti_valid).
9979 (attach_thread): Move target_pid_to_str call to after the thread
9980 is added to GDB's list. Initialize the cache.
9981 (thread_get_info_callback, thread_db_map_id2thr)
9982 (thread_db_get_info): New functions.
9983 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
9984 (thread_db_store_registers, thread_db_thread_alive)
9985 (thread_db_get_thread_local_address): Use them.
9986 (thread_db_pid_to_str): Likewise. Return "Missing" instead
9987 of calling error() for threads in unknown state.
9988
9989 (clear_lwpid_callback): New function.
9990 (thread_db_resume): Use it to clear the cache.
9991
9992 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9993
9994 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
9995 (resume_callback): Remove dead code.
9996
9997 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9998
9999 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10000 predicate.
10001 * gdbarch.h, gdbarch.c: Regenerate.
10002 * stack.c (frame_info): Only initialize the saved registers when
10003 FRAME_INIT_SAVED_REGS_P.
10004 * frame.c (frame_saved_regs_register_unwind): Assert
10005 FRAME_INIT_SAVED_REGS_P.
10006 (deprecated_generic_get_saved_register): Ditto.
10007
10008 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10009
10010 * source.c (openp): Squelch warning about "filename".
10011
10012 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10013
10014 * source.c (openp): If the file does not exist don't necessarily
10015 search the path.
10016
10017 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10018
10019 Fix PR gdb/872.
10020 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10021 (integer_types_same_name_p): New function.
10022 (rank_one_type): Use it.
10023 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10024
10025 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10026
10027 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10028 variables.
10029 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10030 * configure.in: Add --with-sysroot.
10031 * configure: Regenerated.
10032 * main.c (gdb_sysroot): New variable.
10033 (captured_main): Initialize gdb_sysroot.
10034 * defs.h (gdb_sysroot): New extern declaration.
10035 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10036
10037 2003-01-12 Michael Chastain <mec@shout.net>
10038
10039 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10040
10041 2003-01-12 Michael Chastain <mec@shout.net>
10042
10043 * top.c (print_gdb_version): Bump copyright year to 2003.
10044
10045 2003-01-12 David Carlton <carlton@bactrian.org>
10046
10047 * linespec.c (symtab_from_filename): Rename variable 's' to
10048 'file_symtab'.
10049
10050 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10051
10052 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10053 dummy frame.
10054 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10055
10056 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10057
10058 * d10v-tdep.c: Include "gdb_assert.h".
10059 (d10v_store_return_value): Rewrite to match current interface.
10060 (d10v_extract_struct_value_address): Ditto.
10061 (d10v_extract_return_value): Ditto.
10062 (d10v_gdbarch_init): Set store_restore_value,
10063 extract_struct_value_address and extract_return_value.
10064
10065 2003-01-12 J. Brobecker <brobecker@gnat.com>
10066
10067 * hpread.c (set_namestring): New procedure replacing the
10068 SET_NAMESTRING macro.
10069 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10070 by calls to set_namestring.
10071
10072 2003-01-11 J. Brobecker <brobecker@gnat.com>
10073
10074 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10075 a compilation warning.
10076 (hpread_process_one_debug_symbol): Likewise.
10077
10078 2003-01-10 David Carlton <carlton@math.stanford.edu>
10079
10080 * linespec.c (decode_line_1): Rename variable 's' to
10081 'file_symtab'.
10082 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10083 (decode_dollar): Ditto.
10084 (decode_variable): Ditto.
10085 (symbol_found): Ditto.
10086
10087 2003-01-09 Michael Chastain <mec@shout.net>
10088
10089 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10090
10091 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10092
10093 * win32-nat.c (set_process_privilege): New function.
10094 (child_attach): Call set_process_privilege() to enable the
10095 SE_DEBUG_NAME user privilege if available in process token.
10096
10097 2003-01-10 J. Brobecker <brobecker@gnat.com>
10098
10099 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10100 compilation error in the previous revision.
10101
10102 2003-01-09 David Carlton <carlton@math.stanford.edu>
10103
10104 * linespec.c: Update copyright.
10105
10106 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10107
10108 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10109 than inferior_ptid.
10110 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10111
10112 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10113
10114 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10115 Update comments.
10116 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10117 (frame_saved_regs_zalloc): Update.
10118 (frame_saved_regs_register_unwind): Update.
10119 (create_new_frame): Update.
10120 (get_prev_frame): Update.
10121 (frame_extra_info_zalloc): Update.
10122 (deprecated_get_frame_saved_regs): Update.
10123 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10124 * cris-tdep.c: Update comment.
10125
10126 * somsolib.h: Fix function indentation.
10127 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10128 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10129 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10130 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10131 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10132
10133 * infrun.c (follow_fork): Use ISO C definition.
10134 * expprint.c (print_subexp): Use xfree instead of free.
10135 * charset.c: Include "gdb_string.h" instead of <string.h>.
10136 (register_iconv_charsets): Use ISO C definition.
10137 (host_charset, target_charset): Ditto.
10138 * Makefile.in (charset.o): Update dependencies.
10139 (mi-cmd-env.o): Update dependencies.
10140
10141 2003-01-08 Andrew Cagney <cagney@redhat.com>
10142
10143 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10144 get_frame_base.
10145
10146 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10147
10148 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10149 build directories. Save edited gdb output in Mbuild.log. If a
10150 build fails, remove any final GDB executable.
10151
10152 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10153
10154 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10155 replacing hex constants with function names and stripping leading
10156 file name directory prefixes.
10157
10158 2003-01-08 Andrew Cagney <cagney@redhat.com>
10159
10160 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10161 get_frame_base.
10162
10163 2003-01-08 David Carlton <carlton@math.stanford.edu>
10164
10165 * linespec.c (decode_line_1): Move code into decode_variable.
10166 (decode_variable): New function.
10167
10168 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10169
10170 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10171
10172 2003-01-08 Andrew Cagney <cagney@redhat.com>
10173
10174 * cris-tdep.c (cris_frame_init_saved_regs): Use
10175 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10176 saved_regs buffer.
10177 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10178 (sh64_nofp_frame_init_saved_regs): Ditto.
10179 (sh_fp_frame_init_saved_regs): Ditto.
10180 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10181 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10182 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10183 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10184
10185 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10186
10187 * minsyms.c (lookup_minimal_symbol): Update comment.
10188 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10189 (lookup_minimal_symbol_solib_trampoline): Likewise.
10190
10191 2003-01-08 Andrew Cagney <cagney@redhat.com>
10192
10193 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10194 frame_relative_level.
10195
10196 * alpha-tdep.c: Use get_frame_extra_info.
10197 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10198 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10199 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10200 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10201
10202 * alpha-tdep.c: Use get_next_frame.
10203 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10204 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10205 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10206 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10207 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10208 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10209 * xstormy16-tdep.c: Ditto.
10210
10211 2003-01-07 Andrew Cagney <cagney@redhat.com>
10212
10213 * alpha-tdep.c: Use get_frame_base.
10214 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10215 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10216 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10217 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10218 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10219 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10220 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10221 * config/sparc/tm-sparc.h: Ditto.
10222
10223 2003-01-07 Andrew Cagney <cagney@redhat.com>
10224
10225 * frame.c (deprecated_get_frame_context): New function.
10226 (deprecated_set_frame_context): New function.
10227 * frame.h (deprecated_get_frame_context): Declare.
10228 (deprecated_set_frame_context): Declare.
10229 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10230 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10231
10232 2003-01-07 Andrew Cagney <cagney@redhat.com>
10233
10234 * frame.c (deprecated_set_frame_next_hack): New function.
10235 (deprecated_set_frame_prev_hack): New function.
10236 * frame.h (deprecated_set_frame_next_hack): Declare.
10237 (deprecated_set_frame_prev_hack): Declare.
10238 * mcore-tdep.c (analyze_dummy_frame): Use
10239 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10240 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10241
10242 2003-01-07 David Carlton <carlton@math.stanford.edu>
10243
10244 * linespec.c (decode_line_1): Move code into decode_dollar.
10245 (decode_dollar): New function.
10246
10247 2003-01-07 Andrew Cagney <cagney@redhat.com>
10248
10249 * arm-tdep.c (arm_init_extra_frame_info): Use
10250 deprecated_update_frame_base_hack.
10251 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10252 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10253 (fix_frame_pointer): Ditto.
10254 (mn10300_analyze_prologue): Ditto.
10255
10256 2003-01-07 Andrew Cagney <cagney@redhat.com>
10257
10258 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10259 extra_info using frame_extra_info_zalloc.
10260 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10261 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10262 (sh64_init_extra_frame_info): Ditto.
10263 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10264 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10265 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10266 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10267 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10268 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10269 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10270 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10271 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10272 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10273 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10274 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10275
10276 * mn10300-tdep.c (analyze_dummy_frame): Use
10277 deprecated_set_frame_extra_info_hack.
10278 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10279
10280 2003-01-07 J. Brobecker <brobecker@gnat.com>
10281
10282 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10283 class is not scText. These do not define "real" procedures.
10284 (parse_partial_symbols): Likewise.
10285
10286 2003-01-06 Michael Snyder <msnyder@redhat.com>
10287
10288 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10289
10290 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10291
10292 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10293 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10294 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10295 deprecated_frame_xmalloc_with_cleanup.
10296 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10297 deprecated_frame_xmalloc.
10298 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10299 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10300
10301 2003-01-06 Andrew Cagney <cagney@redhat.com>
10302
10303 * x86-64-linux-tdep.c: Include "osabi.h".
10304 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10305
10306 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10307
10308 2003-01-06 Andrew Cagney <cagney@redhat.com>
10309
10310 * MAINTAINERS (Target Instruction Set Architectures): Update
10311 arm-elf. Can be built with -Werror, has been multiarched.
10312
10313 * value.h (unpack_long): Make buffer parameter constant.
10314 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10315 * scm-lang.h (scm_parse): Ditto.
10316 * defs.h (extract_typed_address, extract_address): Ditto.
10317 (extract_long_unsigned_integer): Ditto.
10318 * inferior.h (unsigned_pointer_to_address): Ditto.
10319 (signed_pointer_to_address): Ditto.
10320 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10321 * gdbarch.h, gdbarch.c: Regenerate.
10322 * findvar.c (extract_long_unsigned_integer): Update.
10323 (extract_address): Update.
10324 (extract_typed_address): Update.
10325 (unsigned_pointer_to_address): Update.
10326 * values.c (unpack_long): Update.
10327 (unpack_double): Update.
10328 (unpack_pointer): Update.
10329 (unpack_field_as_long): Update.
10330 * d10v-tdep.c (d10v_pointer_to_address): Update.
10331 * avr-tdep.c (avr_pointer_to_address): Update.
10332 * scm-lang.c (scm_unpack): Update.
10333 * findvar.c (signed_pointer_to_address): Update.
10334
10335 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10336
10337 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10338 since it is in i386-tdep.c.
10339
10340 2003-01-06 J. Brobecker <brobecker@gnat.com>
10341
10342 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10343 failure introduced in the previous change.
10344
10345 2003-01-05 Michael Chastain <mec@shout.net>
10346
10347 * README: Remove references to deleted remote-*.c files:
10348 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10349 remote-nrom.c, remote-os9k.c, remote-udi.c.
10350
10351 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10352
10353 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10354 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10355 i386_get_longjmp_target.
10356
10357 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10358
10359 * arm-tdep.c (prologue_cache): Change to a pointer.
10360 (_initialize_arm_tdep): Allocate prologue_cache.
10361 (check_prologue_cache): Update.
10362 (save_prologue_cache): Update.
10363 (arm_gdbarch_init): Update.
10364
10365 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10366
10367 * stabsread.c (update_method_name_from_physname): Call complaint()
10368 instead of error.
10369
10370 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10371
10372 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10373 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10374 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10375
10376 * blockframe.c: Include "gdbcmd.h" and "command.h".
10377 (backtrace_below_main): New variable.
10378 (file_frame_chain_valid, func_frame_chain_valid)
10379 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10380 (generic_func_frame_chain_valid): Remove functions.
10381 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10382 (_initialize_blockframe): New function.
10383 * Makefile.in (blockframe.o): Update dependencies.
10384 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10385 comment. Call frame_chain_valid ().
10386 * frame.h: Remove old prototypes. Add prototype for
10387 frame_chain_valid and update comments to match.
10388 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10389 Remove old comment.
10390 * gdbarch.h: Regenerated.
10391 * gdbarch.c: Regenerated.
10392
10393 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10394 set_gdbarch_frame_chain_valid.
10395 * avr-tdep.c (avr_gdbarch_init): Likewise.
10396 * cris-tdep.c (cris_gdbarch_init): Likewise.
10397 * frv-tdep.c (frv_gdbarch_init): Likewise.
10398 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10399 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10400 (i386_nw_init_abi): Likewise.
10401 (i386_gdbarch_init): Likewise.
10402 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10403 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10404 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10405 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10406 * mips-tdep.c (mips_gdbarch_init): Likewise.
10407 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10408 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10409 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10410 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10411 * s390-tdep.c (s390_gdbarch_init): Likewise.
10412 * sh-tdep.c (sh_gdbarch_init): Likewise.
10413 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10414 * v850-tdep.c (v850_gdbarch_init): Likewise.
10415 * vax-tdep.c (vax_gdbarch_init): Likewise.
10416 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10417
10418 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10419 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10420 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10421 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10422 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10423 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10424 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10425 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10426
10427 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10428
10429 * Makefile.in (acconfig_h): Remove incorrect macro.
10430 (config_h): Define.
10431 (osabi.o): Update dependencies.
10432 * configure.tgt: Set gdb_osabi based on target triplet.
10433 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10434 * configure: Regenerated.
10435 * config.in: Regenerated.
10436 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10437 (GDB_OSABI_DEFAULT): Define if not already defined.
10438 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10439 (set_osabi_string): New variables.
10440 (gdbarch_register_osabi): Add new OS ABI to
10441 gdb_osabi_available_names.
10442 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10443 (set_osabi, show_osabi): New functions.
10444 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10445
10446 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10447
10448 * arch-utils.c (gdbarch_info_init): Set osabi to
10449 GDB_OSABI_UNINITIALIZED.
10450 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10451 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10452 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10453 * gdbarch.c: Regenerated.
10454 * gdbarch.h: Regenerated.
10455 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10456 there's no BFD.
10457 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10458 * osabi.h (enum gdb_osabi): Move to defs.h.
10459 (gdbarch_init_osabi): Update prototype.
10460 * defs.h (enum gdb_osabi): Moved here.
10461 * Makefile.in: Update dependencies.
10462
10463 * alpha-tdep.h: Don't include "osabi.h".
10464 (struct gdbarch_tdep): Remove osabi member.
10465 * alpha-tdep.c: Include "osabi.h".
10466 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10467 iterate over arches. Update call to gdbarch_init_osabi.
10468 (alpha_dump_tdep): Don't dump osabi.
10469 * alpha-linux-tdep.c: Include "osabi.h".
10470 * alpha-osf1-tdep.c: Include "osabi.h".
10471 * alphafbsd-tdep.c: Include "osabi.h".
10472 * alphanbsd-tdep.c: Include "osabi.h".
10473
10474 * arm-tdep.h: Don't include "osabi.h".
10475 (struct gdbarch_tdep): Remove osabi member.
10476 * arm-tdep.c: Include "osabi.h".
10477 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10478 iterate over arches. Update call to gdbarch_init_osabi.
10479 (arm_dump_tdep): Don't dump osabi.
10480 * arm-linux-tdep.c: Include "osabi.h".
10481 * armnbsd-tdep.c: Include "osabi.h".
10482
10483 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10484 Update call to gdbarch_init_osabi.
10485
10486 * i386-tdep.h: Don't include "osabi.h".
10487 (struct gdbarch_tdep): Remove osabi member.
10488 * i386-tdep.c: Include "osabi.h".
10489 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10490 iterate over arches. Update call to gdbarch_init_osabi.
10491 (i386_dump_tdep): Don't dump osabi.
10492 * i386-linux-tdep.c: Include "osabi.h".
10493 * i386-sol2-tdep.c: Include "osabi.h".
10494 * i386bsd-tdep.c: Include "osabi.h".
10495 * i386gnu-tdep.c: Include "osabi.h".
10496 * i386ly-tdep.c: Include "osabi.h".
10497 * i386nbsd-tdep.c: Include "osabi.h".
10498 * i386obsd-tdep.c: Include "osabi.h".
10499
10500 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10501 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10502 check osabi when iterating over arches. Update call to
10503 gdbarch_init_osabi.
10504 (mips_dump_tdep): Don't dump osabi.
10505
10506 * ns32k-tdep.h: Don't include "osabi.h".
10507 (struct gdbarch_tdep): Remove.
10508 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10509 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10510 allocate tdep. Update call to gdbarch_init_osabi.
10511 (ns32k_dump_tdep): Remove.
10512 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10513 * ns32knbsd-tdep.c: Include "osabi.h".
10514
10515 * ppc-tdep.h: Don't include "osabi.h".
10516 (struct gdbarch_tdep): Remove osabi member.
10517 * rs6000-tdep.c: Include "osabi.h".
10518 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10519 osabi when iterating over arches. Update call to
10520 gdbarch_init_osabi.
10521 (rs6000_dump_tdep): Don't dump osabi.
10522 * ppc-linux-tdep.c: Include "osabi.h".
10523 * ppcnbsd-tdep.c: Include "osabi.h".
10524
10525 * sh-tdep.h: Don't include "osabi.h".
10526 (struct gdbarch_tdep): Remove osabi member.
10527 * sh-tdep.c: Include "osabi.h".
10528 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10529 iterate over arches. Update call to gdbarch_init_osabi.
10530 (sh_dump_tdep): Don't dump osabi.
10531 * shnbsd-tdep.c: Include "osabi.h".
10532
10533 * sparc-tdep.c: Include "osabi.h".
10534 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10535 iterate over arches. Update call to gdbarch_init_osabi.
10536 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10537 tdep structure.
10538
10539 * vax-tdep.h: Don't include "osabi.h".
10540 (struct gdbarch_tdep): Remove.
10541 * vax-tdep.c: Include "osabi.h".
10542 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10543 iterate over arches. Don't allocate tdep. Update call
10544 to gdbarch_init_osabi.
10545 (vax_dump_tdep): Remove.
10546 (_initialize_vax_tdep): Update call to gdbarch_register.
10547
10548 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10549
10550 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10551 entirely.
10552 (breakpoint_re_set_one): Don't fetch the value for a disabled
10553 watchpoint.
10554
10555 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10556
10557 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10558 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10559 (COERCE_FLOAT_TO_DOUBLE): Remove.
10560 * gdbarch.c: Regenerate.
10561 * gdbarch.h: Regenerate.
10562 * Makefile.in: Remove value_h from gdbarch_h.
10563 * valops.c (coerce_float_to_double): New variable.
10564 (default_coerce_float_to_double): Remove.
10565 (standard_coerce_float_to_double): Remove.
10566 (value_arg_coerce): Use coerce_float_to_double.
10567 (_initialize_valops): Add "set coerce-float-to-double".
10568 * value.h (default_coerce_float_to_double): Remove prototype.
10569 (standard_coerce_float_to_double): Remove prototype.
10570
10571 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10572 prototyped.
10573 * mdebugread.c (parse_symbol): Likewise.
10574 * stabsread.c (define_symbol): Mark all functions as prototyped.
10575
10576 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10577 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10578 set_gdbarch_coerce_float_to_double.
10579 * arm-tdep.c (arm_gdbarch_init): Likewise.
10580 * frv-tdep.c (frv_gdbarch_init): Likewise.
10581 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10582 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10583 * mips-tdep.c (mips_gdbarch_init): Likewise.
10584 (mips_coerce_float_to_double): Remove.
10585 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10586 (rs6000_coerce_float_to_double): Remove.
10587 * s390-tdep.c (s390_gdbarch_init): Likewise.
10588 * sh-tdep.c (sh_gdbarch_init): Likewise.
10589 (sh_coerce_float_to_double): Remove.
10590 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10591 (sparc_coerce_float_to_double): Remove.
10592 * v850-tdep.c (v850_gdbarch_init): Likewise.
10593 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10594 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10595 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10596 (hppa_coerce_float_to_double): Remove prototype.
10597 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10598
10599 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10600
10601 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10602
10603 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10604
10605 Suggested by Stewart Brown <sb24@avaya.com>:
10606 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10607 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10608 (c_type_print_varspec_suffix): Likewise.
10609
10610 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10611
10612 * configure.in: Don't set and AC_SUBST SUBDIRS.
10613 * configure: Regenerated.
10614
10615 * configure.in: Remove code dealing with shared libraries.
10616 * Makefile.in: Remove HLDFLAGS and HLDENV.
10617 * configure: Regenerated.
10618
10619 2003-01-04 Andrew Cagney <ac131313@redhat.com>
10620
10621 * frame.c (deprecated_frame_xmalloc): New function.
10622 (deprecated_set_frame_saved_regs_hack): New function.
10623 (deprecated_set_frame_extra_info_hack): New function.
10624 * frame.h (deprecated_frame_xmalloc): Declare.
10625 (deprecated_set_frame_saved_regs_hack): Declare.
10626 (deprecated_set_frame_extra_info_hack): Declare.
10627
10628 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10629
10630 * configure.in: Move code that provides the --enable-gdbtk option
10631 right after the code that handles the --enable-tui option, and
10632 polish it somewhat.
10633 * configure: Regenerated.
10634
10635 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10636 AC_CHECK_FUNCS and remove the old check for pread64.
10637 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10638 * acconfig.h (_GNU_SOURCE): Add.
10639 (HAVE_PREAD64): Remove.
10640 * configure, aclocal.m4, config.in: Regenerated.
10641
10642 2003-01-03 Andrew Cagney <ac131313@redhat.com>
10643
10644 * alpha-tdep.c: Use get_frame_saved_regs.
10645 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10646 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10647 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10648 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10649 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10650
10651 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10652
10653 * configure.in: Remove all use of the SUBDIRS variable; add
10654 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10655 code providing the --enable-multi-ice option, and move it right in
10656 front of the code that checks whether gdbserver is supported.
10657 Polish that too.
10658 * configure: Regenerated.
10659 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10660 @SUBDIRS@.
10661
10662 2003-01-03 Andrew Cagney <cagney@redhat.com>
10663
10664 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10665 * avr-tdep.c, cris-tdep.c: Ditto.
10666 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10667 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10668
10669 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10670
10671 * configure.in: Remove --enable-netrom option.
10672 * configure: Regenerated.
10673
10674 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10675
10676 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10677 declaration for `struct re_pattern_buffer' instead.
10678 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10679
10680 2003-01-03 J. Brobecker <brobecker@gnat.com>
10681
10682 * mdebugread.c (parse_symbol): Count until the stEnd matching
10683 the structure name.
10684
10685 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10686
10687 * configure.in: Remove --with-cpu option.
10688 subscripts. Remove evil changequotes here.
10689 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10690 * config.in, configure: Regenerated.
10691
10692 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10693 * configure.in: Cleanup section that sources GDB and BFD configure
10694 subscripts. Remove evil changequotes here.
10695 * config.in, configure: Regenerated.
10696
10697 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10698
10699 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10700 frame accessor methods.
10701 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10702 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10703 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10704 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10705 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10706 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10707 * z8k-tdep.c: Ditto.
10708
10709 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10710
10711 * configure.in: Remove UI_OUT configuration code.
10712 * ada-lang.c: Update assuming UI_OUT is always true.
10713 * Makefile.in (UIOUT_CFLAGS): Remove.
10714 * configure: Regenerated.
10715 * TODO: Remove blurb about elimination of -DUI_OUT.
10716
10717 * configure.in: Move code that provides the --enable-gdbcli,
10718 --enable-gdbmi options right before the code that handles the
10719 --enable-tui option. Polish a bit.
10720 * configure: Regenerated.
10721
10722 * configure.in: Rewrite check for GNU regex and the
10723 --without-included regex option, and move it into the "Checks for
10724 library functions" section. This makes us use the system regex
10725 again by default on systems with version 2 of the GNU C library.
10726 This was apparently broken.
10727 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10728 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10729 * config.in, configure: Regenerated.
10730
10731 * configure.in: Move code that provides the --enable-tui option
10732 before the "Checks for libraries" section. Polish the code
10733 somewhat and set need_curses to yes if we build the TUI. Rewrite
10734 code that looks for a library providing termcap functionality to
10735 match more closely what's done in the Readline library, and move
10736 it into to the "Checks for libraries" section.
10737 * configure: Regenerated.
10738 * Makefile.in (TERMCAP): Remove variable.
10739 * config/i386/go32.mh (TERMCAP): Remove variable.
10740
10741 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10742
10743 * MAINTAINERS: Mention gdb_mbuild.sh.
10744 * gdb_mbuild.sh: Rewrite.
10745
10746 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10747
10748 * configure.in: Fix typo in last change.
10749 * config.in, configure: Regenerated.
10750
10751 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10752
10753 * valarith.c (value_binop): Delete obsolete code and comments.
10754 * configure.host: Ditto.
10755 * buildsym.h (make_blockvector): Ditto.
10756 * buildsym.c (make_blockvector): Ditto.
10757 * defs.h (enum language): Ditto.
10758 (chill_demangle): Ditto.
10759 * elfread.c (elf_symtab_read): Ditto.
10760 * dwarfread.c (CHILL_PRODUCER): Ditto.
10761 (set_cu_language): Ditto.
10762 (handle_producer): Ditto.
10763 * expprint.c (print_subexp): Ditto.
10764 * gdbtypes.c (chill_varying_type): Ditto.
10765 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10766 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10767 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10768 (chill_varying_type): Ditto.
10769 * language.h (_LANG_chill): Ditto.
10770 * language.c (binop_result_type, integral_type): Ditto.
10771 (character_type, string_type, structured_type): Ditto.
10772 (lang_bool_type, binop_type_check): Ditto.
10773 * stabsread.h (os9k_stabs): Ditto.
10774 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10775 (define_symbol, read_type, read_struct_fields): Ditto.
10776 (read_array_type, read_enum_type, read_huge_number): Ditto.
10777 (read_range_type, start_stabs): Ditto.
10778 * symfile.c (init_filename_language_table): Ditto.
10779 (add_psymbol_with_dem_name_to_list): Ditto.
10780 * symtab.c (symbol_init_language_specific): Ditto.
10781 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10782 * symtab.h (struct general_symbol_info): Ditto.
10783 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10784 * typeprint.c (typedef_print): Ditto.
10785 * utils.c (fprintf_symbol_filtered): Ditto.
10786 * valops.c (value_cast, search_struct_field, value_slice): Delete
10787 obsolete code.
10788 (varying_to_slice): Delete function.
10789 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10790 (varying_to_slice): Delete declaration.
10791 * MAINTAINERS: Update.
10792
10793 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10794
10795 * configure.in: Reorganize "Checks for library functions section"
10796 a bit. Remove check for `btowc' and `isascii' functions.
10797 * configure: Regenerated.
10798
10799 * acconfig.h (_MSE_INT_H): Remove.
10800 * configure.in: Create "Checks for header files" section, and move
10801 appropriate tests there. Don't check for objlist.h, wchar.h,
10802 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
10803 misdetection fix. Also add "Checks for types", "Checks for
10804 compiler characteristics" and "Checks for library functions"
10805 sections.
10806 * config.in, configure: Regenerated.
10807
10808 * configure.in: Create "Checks for programs" section, and move
10809 appropriate tests there.
10810
10811 2003-01-01 Mark Kettenis <kettenis@gnu.org>
10812
10813 * configure.in: Create "Checks for libraries" section, and move
10814 appropriate tests there. Cleanup check for wctype in libw. Use
10815 AC_SEARCH_LIBS to see whether we need libsocket.
10816 * configure: Regenerated.
10817
10818 For older changes see ChangeLog-2002
10819 \f
10820 Local Variables:
10821 mode: change-log
10822 left-margin: 8
10823 fill-column: 74
10824 version-control: never
10825 End:
This page took 0.248525 seconds and 5 git commands to generate.