85786b653a4ae3fd218dfcc4d33fd2e5f0343b99
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-08-22 Mark Kettenis <kettenis@gnu.org>
2
3 * reggroups.c: Add whitespace after declarations of local
4 variables in functions.
5
6 2003-08-21 Michael Chastain <mec@shout.net>
7
8 * gdbtypes.h: Change array bound type from an int to enum.
9
10 2003-08-21 Andrew Cagney <cagney@redhat.com>
11
12 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
13 * config/sparc/tm-sparc.h: Ditto.
14 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
15 unconditionally.
16 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
17
18 2003-07-13 Mark Kettenis <kettenis@gnu.org>
19
20 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
21 (register_objfile_data, set_objfile_data, objfile_data): New
22 prototypes.
23 * objfiles.c (objfile_alloc_data, objfile_free_data): New
24 prototypes.
25 (allocate_objfile): Call objfile_alloc_data.
26 (free_objfile): Call objfile_free_data.
27 (struct objfile_data): New.
28 (struct objfile_data_registration): New.
29 (struct objfile_data_registry): New.
30 (objfile_data_registry): New variable.
31 (register_objfile_data): New function.
32 (objfile_alloc_data, objfile_free_data): New functions.
33 (set_objfile_data, objfile_data): New functions.
34 * dwarf2-frame.c (dwarf2_frame_data): New variable.
35 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
36 (_initialize_dwarf2_frame): New function and prototype.
37
38 2003-08-21 Andrew Cagney <cagney@redhat.com>
39
40 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
41 a specific architecture.
42 * arch-utils.h (set_architecture_from_arch_mach): Delete
43 declaration.
44 (target_architecture_hook): Delete declaration.
45 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
46 (default_float_format): Assume GDB_MULTI_ARCH.
47 (default_double_format): Assume GDB_MULTI_ARCH.
48 (set_endian_from_file): Delete function.
49 (arch_ok): Delete function.
50 (set_arch): Delete function.
51 (set_architecture_from_arch_mach): Delete function.
52 (set_architecture_from_file): Delete function.
53 (set_architecture): Assume GDB_MULTI_ARCH.
54 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
55
56 2003-08-21 Mark Kettenis <kettenis@gnu.org>
57
58 Rewrite FreeBSD/sparc64 native configuration.
59 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
60 * sparc64fbsd-nat.c: New file.
61 * sparc64fbsd-tdep.c: New file.
62 * sparc64-tdep.c sparc64-tdep.h: New files.
63 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
64 sparc64fbsd-tdep.o): New dependencies.
65 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
66 and sparc64fbsd-tdep.c.
67 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
68 * config/sparc/fbsd.mh: Remove copyright notice.
69 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
70 sparcbsd-nat.o.
71 * config/sparc/fbsd.mt: Remove copyright notice.
72 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
73 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
74 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
75 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
76 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
77 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
78 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
79 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
80 "sparc/tm-sp64.h".
81 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
82 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
83
84 2003-08-21 Michael Chastain <mec@shout.net>
85
86 * symtab.h: Add doco on the space critical structures and
87 some measurements of space usage.
88
89 2003-08-21 Michael Snyder <msnyder@redhat.com>
90
91 * tracepoint.c (trace_dump_command): Trace break address
92 is subject to DECR_PC_AFTER_BREAK.
93 (set_traceframe_context): Make "trace_line" an int.
94 Fixes suggested by Mark Newman <mark.newman@lmco.com>
95
96 2003-08-20 Michael Snyder <msnyder@redhat.com>
97
98 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
99 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
100 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
101 argument passing.
102 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
103 functions, replace sh_push_dummy_call.
104 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
105
106 2003-08-20 Michael Chastain <mec@shout.net>
107
108 * gdbtypes.h (struct main_type): Rearrange to save space.
109
110 2003-08-20 Michael Snyder <msnyder@redhat.com>
111
112 * trad-frame.c: Comment typo fix.
113
114 2003-08-20 Michael Snyder <msnyder@redhat.com>
115 Kevin Buettner <kevinb@redhat.com>
116
117 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
118 (frv_frame_init_saved_regs): Add declaration.
119 (frame_extra_info): Add new field ``saved_regs''.
120 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
121 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
122 Update frame related code.
123 (frv_extract_struct_value_address): Adjust formatting.
124 * Makefile.in (frv-tdep.o): Update dependencies.
125 * config/frv/tm-frv.h (target_insert_watchpoint)
126 (target_remove_watchpoint, target_insert_hw_breakpoint)
127 (target_remove_hw_breakpoint): Delete these macros.
128 (remote_insert_watchpoint, remote_remove_watchpoint)
129 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
130 these declarations.
131
132 2003-08-20 Michael Chastain <mec@shout.net>
133
134 * defs.h (ENUM_BITFIELD): New macro.
135 * symtab.h (ENUM_BITFIELD): Use it.
136 (BYTE_BITFIELD): Remove old macro, which was already disabled.
137
138 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
139
140 * MAINTAINERS (write after approval): Add myself.
141
142 2003-08-18 Andrew Cagney <cagney@redhat.com>
143
144 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
145 * gdbarch.h, gdbarch.c: Re-generate.
146 * infcall.c (call_function_by_hand): Adjust the SP by
147 frame_red_zone_size before allocating any stack space.
148 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
149 * x86-64-tdep.c (x86_64_frame_align): New function.
150 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
151
152 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
153 Remove code adjusting SP so that it skips over the Red Zone.
154
155 2003-08-18 Mark Kettenis <kettenis@gnu.org>
156
157 * NEWS (New native configurations): Mention FreeBSD/amd64.
158
159 2003-08-18 Andrew Cagney <cagney@redhat.com>
160
161 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
162 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
163 "m68k_frame_p".
164 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
165
166 2003-08-18 Mark Kettenis <kettenis@gnu.org>
167
168 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
169
170 2003-08-18 Michal Ludvig <mludvig@suse.cz>
171
172 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
173 Define.
174 * i386-linux-nat.c: Include "linux-nat.h".
175 (child_post_startup_inferior): New function.
176
177 2003-08-18 Mark Kettenis <kettenis@gnu.org>
178
179 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
180 at the start of a frameless function. This probably fixes PR
181 backtrace/1338.
182
183 2003-08-17 Michael Chastain <mec@shout.net>
184
185 * symfile.c (find_sym_fns): Remove special case for apollo target.
186
187 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
188
189 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
190 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
191 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
192 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
193 (linux_supports_tracevforkdone): New function.
194 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
195 TRACEVFORKDONE.
196 (child_follow_fork): Handle vfork.
197 (linux_handle_extended_wait): Likewise. Also handle exec.
198 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
199 * NEWS: Mention fork tracing.
200
201 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
202
203 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
204
205 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
206
207 * Makefile.in (i386-linux-nat.o): Update dependencies.
208 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
209 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
210 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
211 * i386-linux-nat.c: Include "linux-nat.h".
212 (child_post_startup_inferior): New function.
213 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
214 * infptrace.c (kill_inferior): Wrap in #ifdef.
215 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
216 attaching to each LWP.
217 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
218 (init_lin_lwp_ops): Fill in some more operations.
219 * linux-nat.h (linux_enable_event_reporting)
220 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
221 prototypes.
222 * linux-nat.c (linux_enable_event_reporting): New function.
223 (child_post_attach, linux_child_post_startup_inferior)
224 (child_post_startup_inferior, child_follow_fork)
225 (linux_handle_extended_wait, kill_inferior): New functions.
226
227 2003-08-16 Andrew Cagney <cagney@redhat.com>
228
229 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
230 * gdbarch.h, gdbarch.c: Re-generate.
231
232 2003-08-16 Mark Kettenis <kettenis@gnu.org>
233
234 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
235
236 2003-08-16 Andrew Cagney <cagney@redhat.com>
237
238 * NEWS: Mention that "set prompt-escape-char" was deleted.
239 * top.c (get_prompt_1): Delete function.
240 (gdb_prompt_escape):
241 (init_main): Do not clear "gdb_prompt_escape". Delete "set
242 prompt-escape-char" command.
243 (MAX_PROMPT_SIZE): Delete macro.
244 (get_prompt): Simplify, do not call get_prompt_1.
245
246 2003-08-16 Andrew Cagney <cagney@redhat.com>
247
248 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
249 -Werror. -Wformat-nonliteral problems.
250
251 2003-08-15 J. Brobecker <brobecker@gnat.com>
252
253 Further multiarching work mostly for hppa64-*-hpux11:
254 * hppa-tdep.h: New file.
255 * hppa-tdep.c: #include hppa-tdep.c.
256 (hppa32_num_regs): Renamed from hppa_num_regs.
257 (hppa64_num_regs): New constant.
258 (hppa64_call_dummy_breakpoint_offset): New constant.
259 (hppa32_call_dummy_length): New constant.
260 (hppa64_call_dummy_length): New constant.
261 (hppa32_stack_align): Make name 32bit explicit.
262 (hppa32_register_virtual_type): Likewise.
263 (hppa32_extract_return_value): Likewise.
264 (hppa32_use_struct_convention): Likewise.
265 (hppa32_store_return_value): Likewise.
266 (hppa64_register_virtual_type): New function.
267 (hppa64_extract_return_value): New function.
268 (hppa64_use_struct_convention): New function.
269 (hppa64_store_return_value): New function.
270 (hppa_frame_locals_address): Remove declaration, function does
271 not exist anymore.
272 (hppa_register_byte): Add support for PA64 ABI.
273 (hppa_gdbarch_init): Add support for PA64 ABI.
274 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
275 Make name 32bit explicit.
276 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
277 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
278 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
279 (hppa64_hpux_frame_base_before_sigtramp): New function.
280 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
281 * config/pa/tm-hppa64.h: Remove macros that are no longer
282 necessary now that the gdbarch vector is properly setup.
283 Transform some macros into function calls. Some minor cleanup.
284 * config/pa/tm-hppah.h: Update function calls in macros
285 following the function renaming in hppa-hpux-tdep.c.
286 * Makefile.in (hppa_tdep_h): New variable.
287 (hppa-tdep.o): Add dependency over hppa_tdep_h.
288
289 2003-08-14 Michael Snyder <msnyder@redhat.com>
290
291 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
292
293 2003-08-13 J. Brobecker <brobecker@gnat.com>
294
295 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
296 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
297 routine.
298
299 2003-08-13 Michael Snyder <msnyder@redhat.com>
300
301 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
302 (frv_saved_pc_after_call): Use deprecated ftype.
303 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
304 (frv_remote_translate_xfer_address): Remove.
305 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
306
307 2003-08-13 J. Brobecker <brobecker@gnat.com>
308
309 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
310 initialization after the common gdbarch initialization, not before.
311
312 2003-08-13 J. Brobecker <brobecker@gnat.com>
313
314 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
315 (ADDR_BITS_REMOVE): Remove, redundant.
316
317 2003-08-13 J. Brobecker <brobecker@gnat.com>
318
319 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
320 gdbarch method to clear the 2 low bits of text addresses.
321
322 2003-08-12 Andrew Cagney <cagney@redhat.com>
323
324 * Makefile.in (dsrec.o): Update dependencies.
325 * dsrec.c: Include "gdb_assert.h".
326 (make_srec): Use snprintf instead of sprintf, use a literal format
327 string.
328
329 2003-08-12 Andrew Cagney <cagney@redhat.com>
330
331 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
332 FRAME_OBSTACK_ZALLOC.
333
334 2003-08-12 Kevin Buettner <kevinb@redhat.com>
335
336 * i386-tdep.c (i386_gdbarch_init): Enable default support for
337 SSE registers.
338
339 2003-08-10 Mark Kettenis <kettenis@gnu.org>
340
341 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
342 amd64fbsd_sc_reg_offset): Add extern declarations.
343 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
344 declarations.
345
346 2003-08-11 Ben Elliston <bje@wasabisystems.com>
347
348 * MAINTAINERS (write after approval): Update my mail address.
349
350 2003-08-10 Andrew Cagney <cagney@redhat.com>
351
352 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
353
354 2003-08-10 Mark Kettenis <kettenis@gnu.org>
355
356 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
357 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
358 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
359 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
360 i386bsd_sc_reg_offset): Add extern declarations.
361 * i386obsd-nat.c: Include "i386-tdep.h"
362 (_initialize_i386obsd_nat): Remove extern declarations.
363 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
364 declarations.
365 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
366 declarations.
367
368 * i386-tdep.c (i386_register_to_value): Use get_frame_register
369 instead of frame_read_register.
370 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
371 instead of frame_read_register. Use I386_ESP_REGNUM instead of
372 SP_REGNUM.
373 (i386_frame_prev_register): Use frame_unwind_register_unsigned
374 instead of frame_unwind_unsigned_register. Use
375 I386_EFLAGS_REGISTER instead of PS_REGNUM.
376 (i386_get_longjmp_target): Use regcache_read_unsigned_register
377 instead of read_register. Use builtin_type_void_data_ptr instead
378 of builtin_type_void_func_ptr when extracting the address of the
379 jmp_buf.
380 (i386_extract_return_value, i386_store_return_value,
381 i386_pseudo_register_read, i386_pseudo_register_write): Use
382 register_size instead REGISTER_RAW_SIZE.
383
384 2003-08-10 Andrew Cagney <cagney@redhat.com>
385
386 * infcall.c (call_function_by_hand): Use xstrprintf instead of
387 sprintf. Make "name" constant.
388
389 2003-08-10 Mark Kettenis <kettenis@gnu.org>
390
391 * i387-tdep.c (i387_register_to_value): Use get_frame_register
392 instead of frame_read_register.
393 (i387_print_float_info): Use get_frame_register and
394 get_frame_register_unsigned instead of frame_register_read.
395
396 * i386fbsd-nat.c: Include "i386-tdep.h".
397 (child_resume): Make `eflags' an ULONGEST. Use
398 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
399 instead of register_read and register_write.
400
401 * i386bsd-nat.c (fetch_inferior_registers,
402 store_inferior_registers): Don't use && at the end of a line.
403 (_initialize_i386bsd_nat): Fix typo.
404
405 * frame.c (_initialize_frame): Add missing backslash.
406
407 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
408 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
409 and supply_register instead of manipulating the register buffer
410 directly.
411
412 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
413 * config/i386/nm-i386sol2.h
414 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
415
416 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
417 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
418 instructions that GCC likes to mingle into the prologue. Fixes
419 gdb/1253 and gdb/1255.
420
421 2003-08-09 Andrew Cagney <cagney@redhat.com>
422
423 Fix GDB PR cli/926.
424 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
425 * command.h (add_setshow_uinteger_cmd): Declare.
426 * frame.c (set_backtrace_cmd): New function.
427 (show_backtrace_cmd): New function.
428 * frame.c (_initialize_frame): Replace "set/show
429 backtrace-below-main" with "set/show backtrace past-main". Add
430 command "set/show backtrace limit".
431 (backtrace_past_main): Rename "backtrace_below_main".
432 (backtrace_limit): New variable.
433 (get_prev_frame): Update. Check the backtrace_limit.
434
435 2003-08-09 Andrew Cagney <cagney@redhat.com>
436
437 * defs.h (xstrprintf): Declare.
438 * utils.c (xstrprintf): New function.
439 * breakpoint.c (insert_breakpoints): Replace sprintf and
440 non-literal format strings, with xstrprintf and cleanups.
441 (delete_breakpoint,breakpoint_re_set): Ditto.
442 (commands_command, insert_breakpoints): Ditto.
443 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
444 (break_at_finish_command_1): Ditto.
445
446 2003-08-09 Andrew Cagney <cagney@redhat.com>
447
448 * MAINTAINERS (language support): List Adam Fedor as Objective C
449 maintainer.
450
451 2003-08-08 J. Brobecker <brobecker@gnat.com>
452
453 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
454 are now multiarched.
455
456 2003-08-08 J. Brobecker <brobecker@gnat.com>
457
458 * config/pa/tm-hppa64.h: Remove lots of macros that are no
459 longer necessary now that hppa64 is partially multiarch'ed.
460
461 2003-08-08 Andrew Cagney <cagney@redhat.com>
462
463 * interps.c (interp_set): Check for a NULL "old_interp".
464
465 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
466
467 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
468 (install-only): Support DESTDIR.
469 (uninstall): Likewise.
470 (install-gdbtk): Likewise.
471
472 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
473
474 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
475 contains something meaningful at all times.
476
477 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
478
479 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
480
481 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
482
483 * MAINTAINERS (write after approval): Added self.
484
485 2003-08-07 Andrew Cagney <cagney@redhat.com>
486
487 * inferior.h (AT_SYMBOL): Define.
488 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
489 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
490 * mips-tdep.c (mips_call_dummy_address): Delete function.
491 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
492 set call_dummy_address.
493
494 2003-08-07 Andrew Cagney <cagney@redhat.com>
495
496 * language.c (op_error): Delete function.
497 (binop_type_check): Delete function.
498 * language.h (type_op_error, range_op_error): Delete macros.
499 (op_error): Delete declaration.
500
501 2003-08-07 Andrew Cagney <cagney@redhat.com>
502
503 * interps.h (INTERP_MI2, INTERP_MI3): Define.
504
505 2003-08-07 Michal Ludvig <mludvig@suse.cz>
506
507 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
508 (x86_64_push_arguments): Skip the red zone.
509
510 2003-08-05 Andrew Cagney <cagney@redhat.com>
511
512 * reggroups.c (reggroup_next): Check for the final entry.
513
514 2003-08-04 Andrew Cagney <cagney@redhat.com>
515
516 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
517 * cli/cli-script.c (define_command): Call query directly, instead
518 of passing it a buffer.
519 * ocd.c (ocd_error): Pass error a constant format string.
520 * remote-mips.c (mips_error): Use fputs_filtered.
521
522 * solib-svr4.c (_initialize_svr4_solib): Update
523 register_gdbarch_data call.
524 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
525
526 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
527 (register_gdbarch_data): Delete "free" parameter. Update
528 comments.
529 * gdbarch.h, gdbarch.c: Re-generate.
530 * reggroups.c (_initialize_reggroup): Update.
531 * gnu-v3-abi.c (init_gnuv3_ops): Update.
532 * frame-base.c (_initialize_frame_base): Update.
533 * frame-unwind.c (_initialize_frame_unwind): Update.
534 * user-regs.c (_initialize_user_regs): Update.
535 * remote.c (_initialize_remote): Update.
536 * regcache.c (_initialize_regcache): Update.
537
538 * regcache.c (xfree_regcache_descr): Delete function.
539 (_initialize_regcache): Update call to register_gdbarch_data.
540 (init_regcache_descr, init_legacy_regcache_descr): Use
541 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
542
543 * remote.c (free_remote_state): Delete function.
544 (_initialize_remote): Update register_gdbarch_data.
545 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
546 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
547
548 2003-08-04 Andrew Cagney <cagney@redhat.com>
549
550 * reggroups.c (struct reggroup_el): Define.
551 (struct reggroups): Delete field "nr_group". Replace array
552 "group" with a "first" to "last" linked list.
553 (reggroups_init): Update. Allocate using gdbarch's obstack.
554 (reggroups_free): Delete function.
555 (add_group): Update. Add "el" parameter.
556 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
557 (default_groups): Update.
558 (reggroup_next): Replace reggroups.
559 (reggroups_dump): Update.
560 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
561 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
562 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
563
564 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
565
566 * Makefile.in (tui-interp.o): Update dependencies.
567
568 2003-08-04 David Carlton <carlton@kealia.com>
569
570 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
571 to internal_error call.
572 * source.c (forward_search_command): Add "%s" format argument.
573 (reverse_search_command): Ditto.
574 * top.c (quit_confirm): Ditto.
575 * cli/cli-setshow.c (do_setshow_command): Ditto.
576 * cp-valprint.c (cp_print_class_method): Replace
577 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
578 (cp_print_class_member): Ditto.
579 * event-top.c (command_line_handler): Ditto.
580 * linux-proc.c (linux_info_proc_cmd): Ditto.
581 * p-typeprint.c (pascal_type_print_base): Ditto.
582 * p-valprint.c (pascal_object_print_class_method): Ditto.
583 (pascal_object_print_class_member): Ditto.
584 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
585 * remote.c (remote_cisco_section_offsets): Ditto.
586 * top.c (command_line_input): Ditto.
587 * utils.c (vwarning,error_stream,quit): Ditto.
588 * valprint.c (print_floating,print_binary_chars)
589 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
590
591 2003-08-04 Andrew Cagney <cagney@redhat.com>
592
593 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
594
595 2003-08-02 Andrew Cagney <cagney@redhat.com>
596
597 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
598 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
599 amd64fbsd-nat.c.
600
601 2003-08-02 Andrew Cagney <cagney@redhat.com>
602
603 * Makefile.in: Update all dependencies and definitions.
604
605 2003-08-02 Adam Fedor <fedor@gnu.org>
606
607 * linespec.c (is_objc_method_format): New function
608 (decode_line_1, locate_first_half): Use it.
609 Fixes PR objc/1298
610
611 2003-08-01 Andrew Cagney <cagney@redhat.com>
612
613 * NEWS: Mention that m32r is multi-arch.
614 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
615 * configure.tgt: Recognize m32r-*-*.
616 * config/m32r/tm-m32r.h: Delete file.
617 * config/m32r/m32r.mt: New file.
618 * m32r-rom.c (m32r_upload_command): Use hostent only when
619 gethostname succeeds, in order to avoid a compilation
620 warning.
621 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
622 compiler warning.
623
624 2003-08-01 Michael Snyder <msnyder@redhat.com>
625
626 * sh-tdep.c (sh_frame_align): New gdbarch method.
627 (sh_gdbarch_init): Set up frame_align method.
628
629 2003-07-31 Michael Snyder <msnyder@redhat.com>
630
631 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
632 which is already covered by the new frames infrastructure.
633
634 2003-07-31 Andrew Cagney <cagney@redhat.com>
635
636 * user-regs.c (struct user_reg): Add "next" link.
637 (struct user_regs): Replace "user" with "first" and "last" links.
638 (append_user_reg): Add pre-allocated "reg" parameter.
639 (builtin_user_regs): Provide initial value for "last".
640 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
641 (user_regs_init): Allocate memory from the gdbarch obstack.
642 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
643 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
644 linked list.
645 (usernum_to_user_reg): New function.
646 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
647 (value_of_user_reg): Use usernum_to_user_reg.
648 (user_regs_free): Delete function.
649 (_initialize_user_regs): Update register_gdbarch_data call.
650
651 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
652
653 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
654
655 2003-07-30 Michael Snyder <msnyder@redhat.com>
656
657 * value.h (value_being_returned): Add a struct_addr argument.
658 * infcall.c (call_function_by_hand): Pass struct_addr to
659 value_being_returned.
660 * infcmd.c (print_return_value): Pass zero as struct_addr.
661 * values.c (value_being_returned): If struct_addr is passed,
662 use it instead of trying to recover it from the inferior.
663
664 2003-07-30 Kevin Buettner <kevinb@redhat.com>
665
666 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
667 the prologue analyzer won't need to attempt to extract the pc
668 value from the woefully incomplete dummy frame.
669 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
670 possible. Disable code which modifies the frame.
671
672 2003-07-28 Andrew Cagney <cagney@redhat.com>
673
674 * annotate.c (annotate_breakpoints_headers): Restrict annotation
675 to level 2.
676 (annotate_breakpoints_table, annotate_record): Ditto.
677 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
678 (annotate_field_name_end, annotate_field_value): Ditto.
679 (annotate_field_end, annotate_frame_source_begin): Ditto.
680 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
681 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
682 (annotate_frame_begin, annotate_frame_function_name): Ditto.
683 (annotate_frame_address_end, annotate_frame_address): Ditto.
684 (annotate_frame_args, annotate_frame_end): Ditto.
685 (annotate_frame_where, annotate_arg_begin): Ditto.
686 (annotate_arg_name_end, annotate_arg_value): Ditto.
687 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
688 (annotate_function_call, annotate_signal_name): Ditto.
689 (annotate_signal_string, annotate_signal_name_end): Ditto.
690 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
691 (annotate_value_begin, annotate_value_history_value): Ditto.
692 (annotate_value_history_end, annotate_value_end): Ditto.
693 (annotate_display_begin, annotate_display_number_end): Ditto.
694 (annotate_display_format, annotate_display_expression): Ditto.
695 (annotate_display_expression_end, annotate_display_value): Ditto.
696 (annotate_display_end, annotate_array_section_begin): Ditto.
697 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
698 (annotate_elt, annotate_array_section_end): Ditto.
699
700 2003-07-28 Andrew Cagney <cagney@redhat.com>
701
702 * regcache.c (struct regcache_descr): Update comments on
703 nr_raw_registers.
704 (init_legacy_regcache_descr): Don't set nr_raw_registers or
705 sizeof_raw_register_valid_p.
706 (init_regcache_descr): Set nr_raw_registers and
707 sizeof_raw_register_valid_p before calling
708 init_legacy_regcache_descr.
709
710 2003-07-28 Andrew Cagney <cagney@redhat.com>
711
712 * mips-tdep.c (print_gp_register_row): Print the GPR's register
713 MOD NUM_REGS.
714
715 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
716
717 * thread.c (info_threads_command): Use get_selected_frame ().
718 Check that there is at least one non-sentinel frame.
719
720 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
721
722 * m68hc11-tdep.c (struct frame_extra_info): Remove.
723 (m68hc11_pop_frame): Remove.
724 (m68hc11_frame_saved_pc): Remove.
725 (m68hc11_frame_chain): Remove.
726 (m68hc11_frame_init_saved_regs): Remove.
727 (m68hc11_init_extra_frame_info): Remove.
728 (m68hc11_store_struct_return): Remove.
729 (m68hc11_saved_pc_after_call): Remove.
730
731 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
732
733 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
734 frame unwind information.
735 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
736 and adapted for frame unwinding.
737 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
738 (m68hc11_unwind_pc): New function.
739 (m68hc11_frame_unwind_cache): New function to analyze frames.
740 (m68hc11_frame_this_id): New function to create new frame struct.
741 (m68hc11_frame_prev_register): New function to unwind a register from
742 the frame.
743 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
744 (m68hc11_frame_p): New function for the above.
745 (m68hc11_frame_base_address): New function to return fp of frame.
746 (m68hc11_frame_args_address): Update for frame.
747 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
748 (m68hc11_unwind_sp): New function.
749 (m68hc11_unwind_dummy_id): New function.
750 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
751 calls.
752
753 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
754
755 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
756 (m68hc11_guess_from_prologue): Advance the pc and frame size only
757 when we are beyond the current pc.
758
759 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
760
761 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
762 from m68hc11_push_arguments.
763 (m68hc11_push_arguments): Remove.
764 (m68hc11_push_return_address): Remove.
765 (m68hc11_gdbarch_init): Install the above; remove above deprecated
766 handlers; remove deprecated_extra_stack_alignment_needed.
767
768 2003-07-27 Andrew Cagney <cagney@redhat.com>
769
770 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
771 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
772 REAL_PC and not the pointer.
773 * hppa-hpux-tdep.c: Include frame.h
774
775 2003-07-27 Andrew Cagney <cagney@redhat.com>
776
777 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
778 GDB_MULTI_ACH_PARTIAL.
779
780 2003-07-27 Andrew Cagney <cagney@redhat.com>
781
782 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
783 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
784 operator at start and not end of line.
785 (decode_prologue): Ditto.
786 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
787 frame_unwind_register_unsigned instead of
788 frame_unwind_unsigned_register.
789 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
790 read_register.
791 (m32r_push_dummy_call): Use register_size instead of
792 REGISTER_RAW_SIZE.
793 (m32r_frame_sniffer): Replace m32r_frame_p.
794 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
795 * m32r-rom.c (report_transfer_performance): Delete extern
796 declaration.
797 (m32r_load, m32r_upload_command): Use print_transfer_performance
798 instead of report_transfer_performance.
799 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
800 / add_show_from_set.
801
802 2003-07-26 Andrew Cagney <cagney@redhat.com>
803
804 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
805 store_return_value and extract_struct_value_address.
806
807 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
808
809 PR c++/1267
810 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
811 NULL, default to the section containing PC.
812
813 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
814
815 * NEWS: Mention "regs" deprecated for m68hc11 too.
816
817 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
818 (m68hc11_print_register): New function to print out one register.
819 (m68hc11_print_registers_info): New function to print registers.
820 (show_regs): Deprecate and use the above.
821 (m68hc11_gdbarch_init): Install the print_registers_info.
822
823 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
824
825 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
826 that we have a SIGTRAP before returning non-zero.
827
828 2003-07-23 Michal Ludvig <mludvig@suse.cz>
829 Elena Zannoni <ezannoni@redhat.com>
830
831 * linespec.c (decode_line_2): Avoid crash if
832 find_function_start_sal() returns empty record.
833
834 2003-07-23 Andreas Schwab <schwab@suse.de>
835
836 * ia64-tdep.c (ia64_print_insn): New function.
837 (ia64_gdbarch_init): Set print_insn to it.
838 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
839 deprecated_tm_print_insn_info.
840
841 2003-07-22 Michael Snyder <msnyder@redhat.com>
842
843 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
844 handle 8-bit returns (long long).
845 (h8300h_extract_return_value): Ditto.
846 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
847
848 2003-07-22 Andrew Cagney <cagney@redhat.com>
849
850 * gdbarch.c Include "gdb_obstack.h".
851 (struct gdbarch): Add an "obstack".
852 (alloc_gdbarch_data): Allocate the gdbarch data using
853 GDBARCH_OBSTACK_CALLOC.
854 (free_gdbarch_data): Delete function.
855 (gdbarch_obstack_zalloc): New function.
856 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
857 Assert that the architecture is not initialized.
858 (gdbarch_alloc): Allocate an obstack, allocate the architecture
859 vector from the obstack.
860 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
861 architecture obstack.
862 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
863 (set_gdbarch_data): Assert that the data is not initialized.
864 (struct gdbarch_data): Delete member "free".
865 (register_gdbarch_data): Do not initialize "free".
866 * gdbarch.h, gdbarch.c: Re-generate.
867
868 2003-07-22 Andrew Cagney <cagney@redhat.com>
869
870 * configure.in (build_warnings): Add -Wformat-nonliteral.
871 * configure: Re-generate.
872
873 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
874
875 * dwarf2loc.c (locexpr_describe_location): Fix typos.
876
877 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
878
879 * findvar.c (read_var_value): Remove case for thread local storage
880 variables. It is now entirely handled by the dwarf2 location
881 expression code.
882 * printcmd.c (address_info): Ditto.
883 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
884 enumeration value.
885 (struct symbol): Remove objfile field, which was used by
886 LOC_THREAD_LOCAL_STATIC only.
887 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
888 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
889 usage of objfile pointer.
890 * dwarf2loc.c (locexpr_describe_location): Add case to handle
891 thread local variables.
892 Add include of objfiles.h.
893 * dwarf2expr.c (execute_stack_op): Add comments about thread local
894 storage variables.
895 * Makefile.in (dwarf2loc.o): Update dependencies.
896
897 2003-07-22 Andrew Cagney <cagney@redhat.com>
898
899 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
900 get_frame_base.
901 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
902 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
903 (struct value): Add opaque declaration.
904 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
905
906 2003-07-21 Andrew Cagney <cagney@redhat.com>
907
908 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
909 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
910
911 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
912
913 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
914 regcache_cooked_read_unsigned instead of read_register.
915 (m68hc11_saved_pc_after_call): Likewise.
916 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
917 instead of write_register.
918 (m68hc11_register_type): New function.
919 (m68hc11_register_virtual_type): Remove.
920 (m68hc11_store_return_value): Convert to use the regcache.
921 (m68hc11_extract_struct_value_address): Likewise.
922 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
923 m68hc11_register_type; undeprecate store_return_value and
924 extract_struct_value_address.
925
926 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
927
928 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
929 and translate to use regcache.
930 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
931
932 2003-07-18 Andrew Cagney <cagney@redhat.com>
933
934 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
935 * gdbarch.h, gdbarch.c: Re-generate.
936 * i386-tdep.c (i386_gdbarch_init): Do not set
937 DWARF2_BUILD_FRAME_INFO.
938 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
939 unconditionally.
940 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
941 DWARF2_BUILD_FRAME_INFO.
942
943 2003-07-18 Andrew Cagney <cagney@redhat.com>
944
945 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
946 * disasm.c (gdb_disassemble_info): Initilize di.arch.
947
948 2003-07-18 Andrew Cagney <cagney@redhat.com>
949
950 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
951 frame_unwind_address_in_block, instead of frame_pc_unwind.
952 (dwarf2_frame_cache): Ditto.
953
954 2003-07-18 Andrew Cagney <cagney@redhat.com>
955
956 * user-regs.h (struct gdbarch): Declare opaque.
957 * ui-out.h (struct ui_file): Declare opaque.
958 * dwarf2-frame.h (struct frame_info): Declare opaque.
959
960 2003-07-18 Kris Warkentin <kewarken@qnx.com>
961
962 * nto-procfs.c: Clean ARI hits. Change #include <..> to
963 #include "...".
964 (procfs_meminfo): Change strerror to safe_strerror.
965 (procfs_can_run): Remove K&R badness.
966
967 2003-07-17 Michael Snyder <msnyder@redhat.com>
968
969 * remote-sim.c: Comment typo fix.
970
971 2003-07-17 Andrew Cagney <cagney@redhat.com>
972
973 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
974 configure.
975 * sparc-tdep.c (sparc_intreg_size): Make non-static.
976 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
977 GDB_MULTI_ARCH_PARTIAL.
978
979 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
980
981 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
982 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
983 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
984
985 2003-07-16 Theodore A. Roth <troth@openavr.org>
986
987 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
988 found.
989 (avr_frame_unwind_cache): Don't unwind FP for main.
990 Update a comment.
991 Save the computed prev_sp.
992 (avr_saved_regs_unwinder): Remove function.
993 (avr_frame_prev_register): Use PC unwind logic from
994 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
995
996 2003-07-16 Andrew Cagney <cagney@redhat.com>
997
998 * frame-base.h (frame_base_p_ftype): Delete definition.
999 (frame_base_append_predicate): Delete declaration.
1000 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1001 (frame_unwind_append_predicate): Delete declaration.
1002 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1003 (append_predicate): Delete parameter "p".
1004 (frame_unwind_append_predicate): Delete function.
1005 (frame_unwind_append_sniffer): Update call to append_predicate.
1006 (frame_unwind_free): Delete function.
1007 (_initialize_frame_unwind): Pass NULL as "free" to
1008 register_gdbarch_data.
1009 (frame_unwind_init): Append the dummy_frame_sniffer.
1010 (frame_unwind_find_by_frame): Simplify.
1011 * frame-base.c (struct frame_base_table): Delete field "p".
1012 (append_predicate): Delete parameter "p".
1013 (frame_base_append_predicate): Delete function.
1014 (frame_base_append_sniffer): Update call to append_predicate.
1015 (frame_base_free): Delete function.
1016 (frame_base_find_by_frame): Simplify.
1017 (_initialize_frame_base): Pass NULL as "free" to
1018 register_gdbarch_data.
1019 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1020 (x86_64_sigtramp_frame_sniffer): Replace
1021 "x86_64_sigtramp_frame_p".
1022 (x86_64_init_abi): Set the frame unwind sniffers.
1023 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1024 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1025 (m68k_gdbarch_init): Set the frame unwind sniffers.
1026 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1027 "i386_sigtramp_frame_p".
1028 (i386_frame_sniffer): Replace "i386_frame_p".
1029 (i386_gdbarch_init): Set the frame unwind sniffers.
1030 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1031 (avr_gdbarch_init): Set the frame unwind sniffers.
1032 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1033 "alpha_sigtramp_frame_p"
1034 (alpha_heuristic_frame_sniffer): Replace
1035 "alpha_heuristic_frame_p".
1036 (alpha_gdbarch_init): Set the frame unwind sniffers.
1037 (alpha_dwarf2_init_abi): Ditto.
1038 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1039 "alpha_debug_frame_p".
1040 (alpha_mdebug_frame_base_sniffer): Replace
1041 "alpha_mdebug_frame_base_p".
1042 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1043 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1044 (d10v_gdbarch_init): Set the frame unwind sniffer.
1045 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1046 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1047 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1048 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1049 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1050 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1051
1052 2003-07-16 Michael Snyder <msnyder@redhat.com>
1053
1054 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1055 should go thru sh_dsp_register_sim_regno, else the dsp regs
1056 will not get the right values.
1057
1058 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1059
1060 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1061 deprecated_store_floating by call to store_typed_floating.
1062 (sh_sh4_register_convert_to_raw): Substitute call to
1063 deprecated_extract_floating by call to extract_typed_floating.
1064
1065 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1066
1067 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1068
1069 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1070
1071 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1072 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1073 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1074 as possible.
1075 (do_pseudo_register): Remove.
1076 (sh_push_dummy_code): New function.
1077 (sh64_store_struct_return): Rename from sh_store_struct_return.
1078 Only called for sh64 now.
1079 (sh_extract_struct_value_address): Regcache'ify.
1080 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1081 and accomodate new tasks.
1082 (sh64_push_return_address): Rename from sh_push_return_address.
1083 Only called for sh64 now.
1084 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1085 Regcache'ify.
1086 (sh3e_sh4_extract_return_value): Regcache'ify.
1087 (sh_default_store_return_value): Ditto.
1088 (sh3e_sh4_store_return_value): Ditto.
1089 (sh_default_register_byte): Remove.
1090 (sh_sh4_register_byte): Remove.
1091 (sh_default_register_raw_size): Remove.
1092 (sh_sh4_register_raw_size): Remove.
1093 (sh_register_virtual_size): Remove.
1094 (sh_sh3e_register_virtual_type): Remove.
1095 (sh_sh3e_register_type): New function.
1096 (sh_sh4_register_virtual_type): Remove.
1097 (sh_sh4_register_type): New function.
1098 (sh_default_register_virtual_type): Remove.
1099 (sh_default_register_type): New function.
1100 (do_fv_register_info): Add parameters to accomodate call from
1101 sh_print_registers_info.
1102 (do_dr_register_info): Ditto.
1103 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1104 Add parameters to accomodate call from sh_print_registers_info.
1105 (sh_do_fp_register): Ditto.
1106 (sh64_do_pseudo_register): Call do_dr_register_info,
1107 do_fv_register_info and sh_do_fp_register with default parameters.
1108 (sh_do_register): Add parameters to accomodate call from
1109 sh_print_registers_info.
1110 (sh_print_register): Ditto.
1111 (sh_print_registers_info): Rename from sh_do_registers_info.
1112 Add parameters to be used as gdbarch_print_registers_info
1113 implementation. Accomodate removed do_pseudo_register function
1114 pointer.
1115 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1116 function pointer. Call sh_print_register with default parameters.
1117 (sh64_do_registers_info): Call sh_print_registers_info instead of
1118 sh_do_registers_info.
1119 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1120 detection of deprecated vs. non-deprecated functionality.
1121 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1122 function pointer assignments by direct function calls.
1123
1124 2003-07-15 Andrew Cagney <cagney@redhat.com>
1125
1126 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1127 (frame_register_unwind, create_new_frame): Ditto.
1128 (legacy_get_prev_frame, get_frame_type): Ditto.
1129 (get_frame_base_address): Use frame_base_find_by_frame.
1130 (get_frame_locals_address): Use frame_base_find_by_frame.
1131 (get_frame_args_address): Use frame_base_find_by_frame.
1132 * frame-base.h (frame_base_sniffer_ftype): Declare.
1133 (frame_base_append_sniffer): Declare.
1134 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1135 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1136 (frame_base_append_sniffer): New function.
1137 (frame_base_append_predicate): Add a NULL sniffer.
1138 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1139 (struct frame_base_table): Add "sniffer".
1140 (frame_base_free): Free the "sniffer" table.
1141 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1142 (frame_unwind_append_sniffer): Declare.
1143 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1144 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1145 (struct frame_unwind_table): Add "sniffer", delete "middle".
1146 (append_predicate): Add "sniffer" parameter, append the sniffer.
1147 (frame_unwind_init): Update append_predicate call.
1148 (frame_unwind_append_sniffer): New function.
1149 (frame_unwind_append_predicate): Update append_predicate call.
1150 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1151
1152 2003-07-15 Andrew Cagney <cagney@redhat.com>
1153
1154 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1155 before code inhibiting repeated unwind attempts. Add to
1156 commentary on that test's problems.
1157 * blockframe.c (inside_main_func): Look for "main" in the minimal
1158 symbol table.
1159 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1160 identical.
1161
1162 2003-07-15 Andrew Cagney <cagney@redhat.com>
1163
1164 * complaints.c (struct explanation): Define.
1165 (struct complaints): Change type of "explanation" to "struct
1166 explanation".
1167 (symfile_explanations): Convert to a "struct explanation" table.
1168 (vcomplaint): Update.
1169
1170 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1171
1172 * x86-64-linux-nat.c (regmap): Removed.
1173 (supply_gregset, fill_gregset): Call
1174 x86_64_linux_(fill,supply)_gregset functions.
1175 * x86-64-linux-tdep.c (USER_*): New defines.
1176 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1177 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1178 New functions.
1179 (fetch_core_registers): Ditto.
1180 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1181 * x86-64-linux-tdep.h: New file.
1182 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1183 and core-regset.o.
1184 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1185
1186 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1187
1188 * x86-64-tdep.c (x86_64_store_return_value): Use
1189 regcache_cooked_write_part instead of regcache_cooked_write.
1190
1191 * configure.host: Add x86_64-*-freebsd*.
1192 * configure.tgt: Add x86_64-*-freebsd*.
1193 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1194 * amd64fbsd-nat.c: New file.
1195 * amd64fbsd-tdep.c: New file.
1196 * config/i386/nm-fbsd64.h: New file.
1197 * config/i386/fbsd64.mh: New file.
1198 * config/i386/fbsd64.mt: New file.
1199
1200 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1201
1202 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1203 `sc_regs_offset' and `sc_fpregs_offset'.
1204 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1205 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1206 (alpha_sigtramp_register_address): Rewrite to use new members of
1207 `struct gdbarch_tdep'.
1208 (alpha_gdbarch_init): Initialize new members of struct
1209 gdbarch_tdep'.
1210 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1211 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1212 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1213 (alphafbsd_pc_in_sigtramp): Implement.
1214 (alphafbsd_sigtramp_offset): New function.
1215 (alphafbsd_sigcontext_addr): New function.
1216 (alphafbsd_init_abi): Initialize signal trampoline related members
1217 of `struct gdbarch_tdep'.
1218 (_initialize_alphafbsd_tdep): Add prototype.
1219
1220 2003-07-11 Theodore A. Roth <troth@openavr.org>
1221
1222 * Makefile.in (install-only): Quote sed expression when generating
1223 transformed_name.
1224
1225 2003-07-11 Richard Henderson <rth@redhat.com>
1226
1227 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1228 * dwarf2-frame.c: Include complaints.h.
1229 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1230 variable initialization; return NULL on error.
1231 (decode_frame_entry): New.
1232
1233 2003-07-11 Andrew Cagney <cagney@redhat.com>
1234
1235 * frame.h (frame_address_in_block): Delete declaration.
1236 * blockframe.c (frame_address_in_block): Delete function.
1237 (get_frame_block): Use get_frame_address_in_block.
1238 (block_innermost_frame): Ditto.
1239 * stack.c (print_frame, backtrace_command_1): Ditto.
1240
1241 * frame.h (get_frame_address_in_block): Declare.
1242 (frame_unwind_address_in_block): Declare.
1243 * frame.c (frame_unwind_address_in_block): New function.
1244 (get_frame_address_in_block): New function.
1245
1246 2003-07-10 Andrew Cagney <cagney@redhat.com>
1247
1248 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1249 pre-default. Note: re-generate has no effect.
1250
1251 2003-07-10 Andrew Cagney <cagney@redhat.com>
1252
1253 * gdbarch.sh: When a variable, but not a function, compare against
1254 0. Fix problem in previous patch.
1255 * gdbarch.c: Re-generate.
1256
1257 2003-07-10 Andrew Cagney <cagney@redhat.com>
1258
1259 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1260 functions against NULL, not 0.
1261 * gdbarch.c: Re-generate.
1262
1263 2003-07-10 Fred Fish <fnf@ninemoons.com>
1264
1265 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1266 null string instead of a null pointer.
1267 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1268
1269 2003-07-09 Michael Snyder <msnyder@redhat.com>
1270
1271 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1272
1273 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1274
1275 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1276 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1277 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1278 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1279 * x86-64-tdep.c: ... from here.
1280
1281 2003-07-09 Andreas Schwab <schwab@suse.de>
1282
1283 * m68k-tdep.h (enum struct_return): Define.
1284 (struct gdbarch_tdep): Add struct_return.
1285 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1286 bytes are padded to the right, not to the left. Pass struct value
1287 address in register %a1, not on stack.
1288 (m68k_use_struct_convention): New function.
1289 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1290 struct_return in tdep to pcc_struct_return.
1291 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1292 reg_struct_return.
1293
1294 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1295
1296 * somread.c (som_symfile_offsets): Fix compilation error.
1297
1298 2003-07-09 Andrew Cagney <cagney@redhat.com>
1299
1300 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1301 Add comments about the checks.
1302
1303 2003-07-08 Andrew Cagney <cagney@redhat.com>
1304
1305 * Makefile.in: Make dependency section headers consistent.
1306 (config_h): Move to $BUILD headers section.
1307 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1308 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1309 (ada-exp.tab.c): Move to YACC/LEX section.
1310 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1311 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1312
1313 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1314
1315 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1316 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1317 of strerror with safe_strerror, use ISO C function definitions,
1318 and replace instances of sprintf with snprintf.
1319
1320 2003-07-07 Andrew Cagney <cagney@redhat.com>
1321
1322 * frame.c (get_prev_frame): Enable check for identical frames.
1323 Update comments. Update error messages.
1324
1325 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1326
1327 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1328
1329 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1330
1331 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1332 sort_symtab_syms, no longer necessary.
1333
1334 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1335
1336 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1337
1338 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1339
1340 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1341 (mips_register_byte): Likewise.
1342
1343 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1344
1345 * Makefile.in (sparc_tdep_h): New.
1346 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1347 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1348 * sparc-linux-nat.c: Include "sparc-tdep.h".
1349 * sparc-nat.c: Likewise.
1350 * sparc-tdep.c: Likewise.
1351 * sparc64nbsd-nat.c: Likewise.
1352 * sparcnbsd-nat.c: Likewise.
1353 * sparcnbsd-tdep.c: Likewise.
1354 * sparc-tdep.h: New file.
1355 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1356 and sparc_npc_regnum.
1357
1358 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1359
1360 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1361 (mips_linux_cannot_store_register): List supported instead of
1362 unsupported registers.
1363
1364 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1365
1366 * disasm.c (dump_insns): Separate instructions from addresses.
1367
1368 2003-07-07 Andreas Schwab <schwab@suse.de>
1369
1370 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1371 dependencies.
1372 * m68k-tdep.c (NUM_FREGS): Delete.
1373 (SIG_PC_FP_OFFSET): Delete.
1374 (TARGET_M68K): Delete.
1375 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1376 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1377 P_MOVEL_SP, P_MOVEML_SP): Define.
1378 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1379 P_TRAP): Delete.
1380 (m68k_register_raw_size): Delete.
1381 (m68k_register_virtual_size): Delete.
1382 (m68k_register_type): Renamed from m68k_register_virtual_type and
1383 add gdbarch argument.
1384 (m68k_store_struct_return): Delete.
1385 (m68k_deprecated_extract_return_value): Delete.
1386 (m68k_deprecated_extract_struct_value_address): Delete.
1387 (m68k_frame_chain): Delete.
1388 (m68k_frame_saved_pc): Delete.
1389 (m68k_fix_call_dummy): Delete.
1390 (m68k_push_dummy_frame): Delete.
1391 (m68k_pop_frame): Delete.
1392 (m68k_extract_return_value): New function.
1393 (m68k_store_return_value): Rewrite using regcache.
1394 (m68k_extract_struct_value_address): Rewrite using regcache.
1395 (m68k_push_dummy_call): New function.
1396 (struct m68k_frame_cache): Define.
1397 (m68k_alloc_frame_cache): New function.
1398 (m68k_analyze_frame_setup): New function.
1399 (m68k_analyze_register_saves): New function.
1400 (m68k_analyze_prologue): New function.
1401 (m68k_skip_prologue): Rewrite using above functions.
1402 (m68k_unwind_pc): New function.
1403 (m68k_frame_cache): New function.
1404 (m68k_frame_this_id): New function.
1405 (m68k_frame_prev_register): New function.
1406 (m68k_frame_unwind): New variable.
1407 (m68k_frame_p): New function.
1408 (m68k_sigtramp_frame_cache): New function.
1409 (m68k_sigtramp_frame_this_id): New function.
1410 (m68k_sigtramp_frame_prev_register): New function.
1411 (m68k_sigtramp_frame_unwind): New variable.
1412 (m68k_sigtramp_frame_p): New function.
1413 (m68k_frame_base_address): New function.
1414 (m68k_frame_base): New function.
1415 (m68k_unwind_dummy_id): New function.
1416 (fill_gregset): Use regcache_collect.
1417 (fill_fpregset): Likewise.
1418 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1419 defined.
1420 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1421 deprecated_init_frame_pc, deprecated_store_struct_return,
1422 deprecated_extract_return_value, deprecated_store_return_value,
1423 deprecated_frame_chain, deprecated_frame_saved_pc,
1424 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1425 deprecated_register_virtual_size,
1426 deprecated_max_register_raw_size,
1427 deprecated_max_register_virtual_size,
1428 deprecated_register_virtual_type, deprecated_register_size,
1429 deprecated_register_byte, deprecated_register_bytes,
1430 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1431 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1432 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1433 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1434 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1435 deprecated_push_dummy_frame, deprecated_pop_frame,
1436 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1437 only if SYSCALL_TRAP is defined. Set extract_return_value,
1438 store_return_value, extract_struct_value_address, register_type,
1439 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1440 predicates.
1441 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1442 M68K_MAX_REGISTER_SIZE): Define.
1443 (struct m68k_sigtramp_info): Define.
1444 (struct gdbarch_tdep): Add get_sigtramp_info.
1445 * m68klinux-nat.c (fetch_register): Use register_size instead of
1446 REGISTER_RAW_SIZE. Don't put assignment in if.
1447 (store_register): Likewise.
1448 (fetch_inferior_registers): Likewise.
1449 (store_inferior_registers): Likewise.
1450 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1451 (m68k_linux_frame_saved_pc): Delete.
1452 (m68k_linux_sigcontext_reg_offset,
1453 m68k_linux_ucontext_reg_offset): Define.
1454 (m68k_linux_get_sigtramp_info): New function.
1455 (m68k_linux_extract_return_value): Rewrite using regcache.
1456 (m68k_linux_store_return_value): Likewise.
1457 (m68k_linux_extract_struct_value_address): Likewise.
1458 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1459 Don't set deprecated_frame_saved_pc,
1460 deprecated_extract_return_value, deprecated_store_return_value,
1461 deprecated_extract_struct_value_address. Set
1462 extract_return_value, store_return_value,
1463 extract_struct_value_address.
1464
1465 2003-07-07 Andrew Cagney <cagney@redhat.com>
1466
1467 * expprint.c: Include "user-regs.h" instead of "frame.h".
1468 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1469 frame_map_regnum_to_name.
1470 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1471 (frame_map_name_to_regnum): Simplify, call
1472 user_reg_map_name_to_regnum.
1473 (frame_map_regnum_to_name): Simplify, call
1474 user_reg_map_regnum_to_name.
1475 (frame_register_unwind): Update.
1476 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1477 (_initialize_frame_reg): Call user_reg_add_builtin.
1478 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1479 (value_of_register): Use value_of_user_reg.
1480 * eval.c (evaluate_subexp_standard): Update.
1481 * parse.c (write_dollar_variable): Update.
1482 * d10v-tdep.c (d10v_print_registers_info): Update.
1483 * infcmd.c (registers_info): Update.
1484 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1485 (builtin_regs_h): Delete macro.
1486 (user_regs_h): Define.
1487 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1488 (builtin-regs.o): Delete target.
1489 (user-regs.o): Specify dependencies.
1490 (expprint.o): Update dependencies.
1491 (findvar.o): Update dependencies.
1492 (frame.o): Update dependencies.
1493 (std-regs.o): Update dependencies.
1494
1495 2003-07-06 Christopher Faylor <cgf@redhat.com>
1496
1497 * win32-nat.c (solib_symbols_add): Use one variable for all section
1498 address stuff. Pass variable rather than address of variable to
1499 safe_symbol_file_add.
1500
1501 2003-07-06 Andreas Schwab <schwab@suse.de>
1502
1503 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1504
1505 2003-07-04 Joel Brobecker <brobecker@gnat.com>
1506
1507 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1508
1509 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1510
1511 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1512
1513 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1514
1515 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1516 * config/i386/nto.mh: New file.
1517 * config/i386/nm-nto.h: New file.
1518 * configure.host: Add i[3456]86-*-nto*.
1519
1520 2003-07-03 Joel Brobecker <brobecker@gnat.com>
1521
1522 * remote-vx.c (vx_add_symbols): Fix compilation error.
1523
1524 2003-07-03 Andrew Cagney <cagney@redhat.com>
1525
1526 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1527 * gdbarch.h, gdbarch.c: Re-generate.
1528 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1529 (legacy_register_name): Declare.
1530 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1531 (REGISTER_NAME): Define.
1532 * sparc-tdep.c (legacy_register_name): New function.
1533 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1534 (REGISTER_NAME): Define.
1535 (hppa64_register_name): Declare.
1536 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1537 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1538 (hppa64_register_name): New function.
1539 (hppa_register_name): New function.
1540 * arch-utils.c (legacy_register_name): Delete.
1541 * arch-utils.h (legacy_register_name): Delete.
1542
1543 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
1544
1545 * cli/cli-interp.c (cli_interpreter_resume): Update the
1546 cli_uiout's stream to gdb_stdout.
1547
1548 2003-07-03 Andrew Cagney <cagney@redhat.com>
1549
1550 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1551 predicate.
1552 * gdbarch.h, gdbarch.c: Re-generate.
1553 * regcache.c (init_regcache_descr): Use legacy code when either
1554 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1555
1556 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1557
1558 * NEWS: Move "set logging" entry into GDB 6.0 section.
1559
1560 2003-07-02 Jim Blandy <jimb@redhat.com>
1561
1562 * s390-tdep.c (struct frame_extra_info): new member:
1563 'stack_bought_valid'.
1564 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1565 initialize fextra_info->stack_bought.
1566 (s390_frameless_function_invocation): Don't trust the value of
1567 fextra_info_ptr->stack_bought unless
1568 fextra_info->stack_bought_valid is set.
1569
1570 New S390 prologue analyzer.
1571 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1572 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1573 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1574 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1575 compute_x_addr, s390_on_stack, s390_store,
1576 s390_get_signal_frame_info): New functions.
1577 (S390_NUM_SPILL_SLOTS): New macro.
1578 (s390_get_frame_info): Rewritten.
1579 (is_arg_reg): Deleted.
1580
1581 Break out the decoding of S/390 instructions into separate
1582 functions, to make it more legible, and easier to check
1583 against the spec.
1584 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1585 is_rx, is_rxe): New functions.
1586 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1587 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1588 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1589 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1590 enums for opcode values. (Is this an improvement?)
1591
1592 2003-07-02 Andrew Cagney <cagney@redhat.com>
1593
1594 * i386-tdep.c: Revert change committed as part of trad-frame code
1595 below.
1596
1597 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1598
1599 * breakpoint.c (insert_catchpoint): Make static.
1600
1601 2003-07-02 Andreas Schwab <schwab@suse.de>
1602
1603 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1604 former ia64_push_arguments and ia64_push_return_address, and use
1605 regcache functions instead of read/write_register.
1606 (ia64_gdbarch_init): Set push_dummy_call instead of
1607 deprecated_push_arguments and deprecated_push_return_address.
1608
1609 2003-07-01 Andreas Jaeger <aj@suse.de>
1610
1611 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1612 before the call.
1613 Set %rax only to number of SSE registers used.
1614
1615 2003-07-01 Andrew Cagney <cagney@redhat.com>
1616
1617 * trad-frame.h: Update comments, a -1 .addr is reserved.
1618 (trad_frame_value_p, trad_frame_addr_p): Declare.
1619 (trad_frame_reg_p): Declare.
1620 (trad_frame_set_value): Rename trad_frame_register_value.
1621 (trad_frame_set_unknown): Declare.
1622 * trad-frame.c (trad_frame_realreg_p): New function.
1623 (trad_frame_addr_p, trad_frame_value_p): New function.
1624 (trad_frame_set_unknown): New function.
1625 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1626 (trad_frame_prev_register): Use trad_frame_realreg_p,
1627 trad_frame_addr_p and trad_frame_value_p.
1628 (trad_frame_set_value): Rename trad_frame_register_value.
1629 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1630 and trad_frame_set_value.
1631
1632 2003-06-30 Jim Blandy <jimb@redhat.com>
1633
1634 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1635 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1636 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1637 for 16 registers, and then 32 more bytes.
1638 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1639 New macros.
1640 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1641 Move up in the file, since it's now used by is_simple_arg.
1642 (is_simple_arg): Don't assume registers are four bytes long.
1643 Exclude all double arguments. Extended floats are not simple
1644 args.
1645 (is_power_of_two): New function.
1646 (pass_by_copy_ref): Call is_power_of_two, and check that the
1647 length fits in a register, rather than listing all the acceptable
1648 sizes. Extended floats are not passed by reference.
1649 (s390_push_arguments): Don't assume registers are four bytes long.
1650 Reserve an argument register to point to the buffer for structures
1651 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1652 S390_STACK_FRAME_OVERHEAD.
1653
1654 2003-06-30 Andreas Schwab <schwab@suse.de>
1655
1656 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1657 format error message.
1658
1659 2003-06-30 Joel Brobecker <brobecker@gnat.com>
1660
1661 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1662
1663 2003-06-30 David Carlton <carlton@kealia.com>
1664
1665 Band-aid for PR c++/1245.
1666 * Makefile.in (cp-support.o): Depend on complaints_h.
1667 * cp-support.c: Include complaints.h. Add declaration for
1668 find_last_component.
1669 (cp_find_first_component): Separate code into
1670 cp_find_first_component_aux.
1671 (cp_find_first_component_aux): Call demangled_name_complaint.
1672 (demangled_name_complaint): New.
1673
1674 2003-06-30 Andrew Cagney <cagney@redhat.com>
1675
1676 * remote.c (remote_write_bytes): Explicitly compute and then use
1677 the payload size. Update comments to reflect. Fixes problem of
1678 GDB not sending small packets as found by Fred Fish.
1679
1680 2003-06-30 Andrew Cagney <cagney@redhat.com>
1681
1682 * remote.c (remote_async_wait): Fix -Wformat problem.
1683
1684 2003-06-29 Andrew Cagney <cagney@redhat.com>
1685
1686 * remote.c (remote_wait): Call error, and not warning, when the
1687 packet is corrupt.
1688 (remote_async_wait): Ditto.
1689
1690 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1691
1692 * sparc-tdep.c (sparc_y_regnum): Make external again.
1693
1694 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1695
1696 * cli/cli-logging.c (pop_output_files): Add void to function
1697 definition.
1698
1699 2003-06-29 Andrew Cagney <cagney@redhat.com>
1700
1701 * frame.c (frame_register_unwind): Use unsigned char when dumping
1702 the buffer contents.
1703
1704 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1705
1706 * cli/cli-logging.c: New file.
1707 * cli-out.c (struct ui_out_data): Add original_stream.
1708 (cli_redirect): New function.
1709 (cli_ui_out_impl): Add cli_redirect.
1710 (cli_out_new): Initialize original_stream.
1711 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1712 (uo_redirect, ui_out_redirect): New.
1713 * ui-out.h (struct ui_out_impl): Add redirect member.
1714 (redirect_ftype): New.
1715 (ui_out_redirect): Add prototype.
1716 * Makefile.in: Add rules for cli-logging.c.
1717 * NEWS: Mention "set logging".
1718
1719 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1720
1721 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1722
1723 2003-06-27 Andrew Cagney <cagney@redhat.com>
1724
1725 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1726 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1727 * avr-tdep.c (avr_call_dummy_address): Delete function.
1728 (avr_gdbarch_init): Do not set call_dummy_address.
1729
1730 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1731
1732 * symfile.c (syms_from_objfile): Move variables to inner block.
1733 Move the checks for the non-mainline case a bit earlier to avoid
1734 doing some useless computations.
1735
1736 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1737
1738 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1739
1740 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
1741
1742 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1743 sections.
1744
1745 2003-06-26 Michael Chastain <mec@shout.net>
1746
1747 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1748 gdb/testsuite/gdb.c++/pr-1210.exp.
1749
1750 2003-06-26 Andrew Cagney <cagney@redhat.com>
1751
1752 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1753 altivec_expression.h and altivec_registers.h.
1754
1755 2003-06-26 Andrew Cagney <cagney@redhat.com>
1756
1757 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1758 info->mach when MIPS16. Patch suggested by Fred Fish.
1759
1760 2003-06-26 Andrew Cagney <cagney@redhat.com>
1761
1762 * utils.c (internal_vproblem): Print the problem to a reason
1763 buffer and then pass to query. Make the msg variable more local.
1764
1765 2003-06-26 Andrew Cagney <cagney@redhat.com>
1766
1767 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
1768 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
1769 * gdbarch.h, gdbarch.c: Re-generate.
1770 * frame-base.c (default_frame_args_address): Update. Use
1771 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
1772 not available.
1773 (default_frame_locals_address): Ditto for
1774 DEPRECATED_FRAME_LOCALS_ADDRESS.
1775 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
1776 (vax_frame_num_args): Update.
1777 (vax_gdbarch_init): Update.
1778 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1779 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1780 * mcore-tdep.c (mcore_gdbarch_init): Update.
1781 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1782 * ia64-tdep.c (ia64_gdbarch_init): Update.
1783 * symtab.h (address_class): Update comments.
1784 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
1785 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1786 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1787 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1788 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1789 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1790 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1791 * alpha-mdebug-tdep.c: Update.
1792 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
1793
1794 2003-06-26 Andreas Jaeger <aj@suse.de>
1795
1796 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
1797 of SSE registers so that varargs functions work. Rework handling
1798 of passing arguments on the stack.
1799 (x86_64_store_return_value): Return double and float values in SSE
1800 register.
1801
1802 2003-06-24 Michael Chastain <mec@shout.net>
1803
1804 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
1805 the "constructor breakpoints ignored" bug.
1806
1807 2003-06-25 David Carlton <carlton@kealia.com>
1808
1809 * MAINTAINERS: Update e-mail address.
1810
1811 2003-06-24 Jim Blandy <jimb@redhat.com>
1812
1813 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
1814
1815 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
1816 function.
1817 (ppc_linux_init_abi): Register it as the
1818 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
1819
1820 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
1821 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
1822 method.
1823
1824 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
1825 (ppc64_standard_linkage_target): Use it.
1826
1827 2003-06-23 Andrew Cagney <cagney@redhat.com>
1828
1829 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
1830 for 0 "int0" and 4 "int32" sized registers.
1831 * gdbtypes.c (builtin_type_int0): Define.
1832 (build_gdbtypes): Initialize builtin_type_int0.
1833 * gdbtypes.h (builtin_type_int0): Declare.
1834
1835 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
1836
1837 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
1838 as characters are unsigned.
1839
1840 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1841
1842 PR gdb/1179
1843 * dwarfread.c (struct_type): Skip static fields without crashing.
1844
1845 2003-06-22 Andrew Cagney <cagney@redhat.com>
1846
1847 GDB 6.0 branch created.
1848 * README: Update.
1849 * PROBLEMS: Update. Empty.
1850 * NEWS: Update.
1851
1852 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1853
1854 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
1855 Suggested by Nick Hibma <n_hibma@webweaving.org>.
1856
1857 2003-06-22 Andrew Cagney <cagney@redhat.com>
1858
1859 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
1860 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
1861 Velikov.
1862
1863 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1864
1865 * cli/cli-cmds.c (shell_escape): Silence warnings from old
1866 compilers.
1867
1868 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1869
1870 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
1871 argument of val_print.
1872 * cp-valprint.c (cp_print_value): Don't add the offset parameter
1873 to the address argument of baseclass_offset or target_read_memory.
1874 Do add it to the argument of cp_print_value_fields.
1875
1876 2003-06-21 Andrew Cagney <cagney@redhat.com>
1877
1878 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
1879 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
1880 instead of 0..NUM_REGS.
1881 (mips_register_reggroup_p): New function.
1882 (mips_pseudo_register_write): New function.
1883 (mips_pseudo_register_read): New function.
1884 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
1885 based on the register's type.
1886 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
1887 cooked.
1888 (mips_get_saved_register): Simplify. Assert that REGNO is a
1889 pseudo / cooked.
1890 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
1891 (mips_register_type): Replace mips_register_virtual_type. Map
1892 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
1893 when available.
1894 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
1895 that the register is cooked / virtual.
1896 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
1897 Only get the extra info when needed.
1898 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
1899 (mips32_heuristic_proc_desc): Fetch the cooked register.
1900 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
1901 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
1902 (mips_print_register): Use gdbarch_register_type, instead of
1903 REGISTER_VIRTUAL_TYPE.
1904 (print_gp_register_row): Use gdbarch_register_type, instead of
1905 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
1906 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1907 Print the pseudo / cooked registers.
1908 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1909 Print the pseudo / cooked registers.
1910 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
1911 REG_NUM is pseudo / cooked.
1912 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
1913 (mips_n32n64_xfer_return_value): Ditto.
1914 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
1915 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
1916 (mips_register_sim_regno): New function.
1917 (mips_gdbarch_init): Set deprecated_register_byte,
1918 register_group_p, pseudo_register_write, pseudo_register_read,
1919 register_sim_regno, and num_pseudo_regs. Set register_type,
1920 instead of register_virtual_type.
1921 * Makefile.in (mips-tdep.o): Update dependencies.
1922 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
1923 REGISTER_VIRTUAL_TYPE.
1924 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
1925 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
1926 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
1927 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
1928 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
1929
1930 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1931
1932 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
1933 * cli/cli-cmds.c: Include "gdb_vfork.h".
1934 (shell_escape): Use vfork.
1935
1936 2003-06-21 Andrew Cagney <cagney@redhat.com>
1937
1938 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
1939 32 bit floating-point register saves.
1940
1941 * frame.h (deprecated_unwind_get_saved_register): Delete.
1942 * frame.c (deprecated_unwind_get_saved_register): Delete function.
1943 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
1944 and deprecated_get_next_frame_hack instead of
1945 deprecated_unwind_get_saved_register.
1946
1947 * mips-tdep.c (mips_dump_tdep): Do not print
1948 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
1949
1950 * frame.c (get_frame_register): New function.
1951 (frame_unwind_register_signed): New function.
1952 (get_frame_register_signed): New function.
1953 (frame_unwind_register_unsigned): New function.
1954 (get_frame_register_unsigned): New function.
1955 * frame.h: Add comments on naming schema.
1956 (get_frame_register, frame_unwind_register_signed): Declare.
1957 (get_frame_register_signed, get_frame_register_signed): Declare.
1958 (frame_unwind_register_unsigned): Declare.
1959 (get_frame_register_unsigned): Declare.
1960
1961 2003-06-20 Theodore A. Roth <troth@openavr.org>
1962
1963 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
1964
1965 2003-06-20 Theodore A. Roth <troth@openavr.org>
1966
1967 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
1968 (avr_read_sp): Ditto.
1969
1970 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
1971
1972 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
1973 * config/arm/nm-linux.h: Likewise.
1974 * config/arm/tm-linux.h: Likewise.
1975 * config/ia64/nm-linux.h: Likewise.
1976 * config/ia64/tm-ia64.h: Likewise.
1977 * config/s390/tm-linux.h: Likewise.
1978 * config/s390/tm-s390.h: Likewise.
1979 * s390-nat.c: Likewise.
1980 * s390-tdep.c: Likewise.
1981
1982 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
1983 * config/ia64/linux.mt: Likewise.
1984 * config/m68k/linux.mh: Likewise.
1985 * config/mips/linux.mt: Likewise.
1986 * config/powerpc/linux.mh: Likewise.
1987 * config/sh/linux.mt: Likewise.
1988
1989 2003-06-19 Kris Warkentin <kewarken@qnx.com>
1990
1991 * solib.c (solib_open): Change tests for whether to search
1992 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
1993 comments.
1994
1995 2003-06-19 Theodore A. Roth <troth@openavr.org>
1996
1997 * avr-tdep.c (avr_frame_address): Delete function.
1998 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
1999 set_gdbarch_frame_args_address.
2000
2001 2003-06-19 Andrew Cagney <cagney@redhat.com>
2002
2003 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2004 (REGISTER_CONVERT_FROM_TYPE): Delete.
2005 (mips_register_convert_to_type): Delete declaration.
2006 (mips_register_convert_from_type): Delete declaration.
2007 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2008 kernel/.
2009
2010 2003-06-19 Michael Snyder <msnyder@redhat.com>
2011
2012 * linux-nat.h: New file.
2013 * linux-nat.c: Include linux-nat.h.
2014 * lin-lwp.c: Include linux-nat.h.
2015 Move struct lwp_info def to linux-nat.h.
2016 * linux-proc.c: Include linux-nat.h.
2017 (linux_make_note_section): Iterate over lwps instead of threads.
2018 (linux_do_thread_registers): Use lwp instead of merged pid.
2019 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2020 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2021 Add dependency on linux_nat_h.
2022
2023 2003-06-19 Theodore A. Roth <troth@openavr.org>
2024
2025 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2026
2027 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2028
2029 * varobj.c (get_type, get_target_type): Use check_typedef.
2030
2031 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2032
2033 * breakpoint.c (insert_catchpoint): Call internal_error.
2034
2035 2003-06-19 Theodore A. Roth <troth@openavr.org>
2036
2037 * avr-tdep.c (avr_push_dummy_code): Delete function.
2038 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2039
2040 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2041
2042 * arch-utils.c (default_prepare_to_proceed): Remove.
2043 (generic_prepare_to_proceed): Remove.
2044 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2045 (generic_prepare_to_proceed): Remove prototype.
2046 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2047 * gdbarch.c: Regenerate.
2048 * gdbarch.h: Regenerate.
2049 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2050 * hppah-nat.c (hppa_switched_threads): Remove.
2051 * infrun.c (prepare_to_proceed): New static function, copied from
2052 generic_prepare_to_proceed. Remove select_it argument.
2053 (proceed): Call prepare_to_proceed.
2054 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2055 variables.
2056 (ptrace_wait): Don't set the removed variables.
2057 (hppa_switched_threads): Remove.
2058 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2059 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2060 (lin_lwp_prepare_to_proceed): Remove prototype.
2061 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2062 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2063
2064 2003-06-18 Theodore A. Roth <troth@openavr.org>
2065
2066 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2067 trad-frame.h.
2068 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2069 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2070 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2071 (AVR_PROLOGUE_*): Enumerate prologue types.
2072 (struct frame_extra_info): Remove.
2073 (struct avr_unwind_cache): Define.
2074 (avr_write_sp): Delete function.
2075 (avr_read_fp): Ditto.
2076 (avr_init_extra_frame_info): Ditto.
2077 (avr_pop_frame): Ditto.
2078 (avr_frame_saved_pc): Ditto.
2079 (avr_saved_pc_after_call): Ditto.
2080 (avr_push_return_address): Ditto.
2081 (avr_frame_chain): Ditto.
2082 (avr_store_struct_return): Ditto.
2083 (avr_push_arguments): Ditto.
2084 (avr_scan_prologue): Update comments. Changed to set up the info for
2085 cache unwinding. Now returns end of prologue PC.
2086 (avr_skip_prologue): Better handling of functions lacking a prologue
2087 by using avr_scan_prologue.
2088 (avr_scan_arg_moves): New function.
2089 (avr_saved_regs_unwinder): Ditto.
2090 (avr_frame_unwind_cache): Ditto.
2091 (avr_unwind_pc): Ditto.
2092 (avr_frame_this_id): Ditto.
2093 (avr_frame_prev_register): Ditto.
2094 (avr_frame_p): Ditto.
2095 (avr_frame_base_address ): Ditto.
2096 (avr_unwind_dummy_id): Ditto.
2097 (avr_push_dummy_code): Ditto.
2098 (push_stack_item): Ditto.
2099 (pop_stack_item): Ditto.
2100 (avr_push_dummy_call): Ditto.
2101 (struct stack_item): Define.
2102 (avr_frame_unwind): Declare structure.
2103 (avr_frame_base): Ditto.
2104 (avr_gdbarch_init): Remove calls to
2105 set_gdbarch_deprecated_init_frame_pc,
2106 set_gdbarch_deprecated_target_read_fp,
2107 set_gdbarch_deprecated_dummy_write_sp,
2108 set_gdbarch_deprecated_fp_regnum,
2109 set_gdbarch_deprecated_push_arguments,
2110 set_gdbarch_deprecated_push_return_address,
2111 set_gdbarch_deprecated_pop_frame,
2112 set_gdbarch_deprecated_store_struct_return,
2113 set_gdbarch_deprecated_frame_init_saved_regs,
2114 set_gdbarch_deprecated_init_extra_frame_info,
2115 set_gdbarch_deprecated_frame_chain,
2116 set_gdbarch_deprecated_frame_saved_pc,
2117 set_gdbarch_deprecated_saved_pc_after_call.
2118 Add calls to set_gdbarch_push_dummy_call,
2119 set_gdbarch_push_dummy_code,
2120 frame_unwind_append_predicate,
2121 frame_base_set_default,
2122 set_gdbarch_unwind_dummy_id,
2123 set_gdbarch_unwind_pc.
2124 Wrap a long line.
2125
2126 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2127
2128 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2129 registers for H8/300S.
2130 (h8300_print_registers_info): Ditto.
2131 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2132
2133 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2134
2135 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2136 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2137 (lin_lwp_wait): Likewise. Update comments.
2138 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2139 (pull_pid_from_list, linux_record_stopped_pid): New.
2140
2141 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2142
2143 * ada-lang.c (scan_discrim_bound): Name first argument.
2144 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2145 declared by ALL_BLOCK_SYMBOLS.
2146
2147 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2148
2149 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2150 ("regcache.h"): Include it.
2151 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2152
2153 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2154
2155 * NEWS: Mention gdbserver detach change and "disconnect" command.
2156 * infcmd.c (disconnect_command): New function.
2157 (_initialize_infcmd): Add ``disconnect'' command.
2158 * remote.c (remote_async_detach): Delete.
2159 (remote_detach): Merge remote_async_detach.
2160 (remote_disconnect): New.
2161 (init_remote_ops): Set to_disconnect.
2162 (init_remote_cisco_ops): Likewise.
2163 (init_remote_async_ops): Likewise. Use remote_detach.
2164 * target.c (cleanup_target): Default to_disconnect.
2165 (update_current_target): Inherit to_disconnect.
2166 (target_disconnect, debug_to_disconnect): New functions.
2167 (setup_target_debug): Set to_disconnect.
2168 * target.h (struct target_ops): Add to_disconnect.
2169 (target_disconnect): Add prototype.
2170
2171 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2172
2173 * breakpoint.c (insert_catchpoint): New function.
2174 (insert_breakpoints): Use catch_exceptions to call
2175 insert_catchpoint. Disable catchpoints if they fail to insert.
2176
2177 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2178
2179 * symfile.c (reread_symbols): Clear sym_private.
2180
2181 2003-06-17 Andrew Cagney <cagney@redhat.com>
2182
2183 * trad-frame.h (struct frame_info): Add opaque declaration.
2184 * remote-fileio.h (struct cmd_list_element): Add opaque
2185 declaration.
2186 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2187 comments.
2188
2189 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2190
2191 * remote.c (remote_prepare_to_store): Replace call to
2192 deprecated_read_register_bytes with multiple regcache_raw_read
2193 calls.
2194
2195 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2196
2197 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2198 (nto_find_and_open_solib): Likewise.
2199 (nto_init_solib_absolute_prefix): Likewise.
2200 (_initialize_nto_tdep): Fix indentation.
2201
2202 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2203
2204 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2205
2206 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2207
2208 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2209
2210 2003-06-17 Jim Blandy <jimb@redhat.com>
2211
2212 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2213
2214 2003-06-16 Theodore A. Roth <troth@openavr.org>
2215
2216 * avr-tdep.c (avr_extract_return_value): New function.
2217 (avr_gdbarch_init): Set extract_return_value method.
2218
2219 2003-06-16 Andrew Cagney <cagney@redhat.com>
2220
2221 * frame.h (deprecated_get_next_frame_hack): Declare.
2222 * frame.c (legacy_saved_regs_prev_register): Only require
2223 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2224 there are always saved regs.
2225 (deprecated_generic_get_saved_register): Do not require
2226 DEPRECATED_FRAME_INIT_SAVED_REGS.
2227 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2228 use frame ID unwind instead.
2229 (deprecated_get_next_frame_hack): New function.
2230
2231 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2232
2233 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2234 (h8300_push_dummy_call): ...this function. Some minor optimization.
2235 (h8300_push_return_address): Remove.
2236 (h8300_gdbarch_init): Remove calls to
2237 set_gdbarch_deprecated_dummy_write_sp,
2238 set_gdbarch_deprecated_push_arguments and
2239 set_gdbarch_deprecated_push_return_address.
2240 Add call to set_gdbarch_push_dummy_call.
2241
2242 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2243
2244 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2245 (E_PSEUDO_EXR_REGNUM): Ditto.
2246 (h8300_is_argument_spill): Check for instructions moving argument
2247 registers into safe registers.
2248 (h8300_skip_prologue): Check for stm instruction to push registers
2249 used for register variables onto stack.
2250 (gdb_print_insn_h8300): Remove.
2251 (h8300_examine_prologue): Add a comment.
2252 (h8300_register_name): Take pseudo registers into account.
2253 (h8300s_register_name): Ditto.
2254 (h8300sx_register_name): Ditto.
2255 (h8300_print_register): Ditto.
2256 (h8300_print_registers_info): Define "nice" printing order.
2257 (h8300_saved_pc_after_call): Take pseudo registers into account.
2258 (h8300_register_type): Ditto. Return type used for remote connection
2259 when requesting real CCR or EXR register, return actual type when
2260 requesting pseudo CCR or EXR.
2261 (h8300_pseudo_register_read): New function.
2262 (h8300_pseudo_register_write): Ditto.
2263 (h8300_dbg_reg_to_regnum): Ditto.
2264 (h8300s_dbg_reg_to_regnum): Ditto.
2265 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2266 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2267 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2268 set_gdbarch_print_insn architecture dependent.
2269 Call set_gdbarch_pseudo_register_read and
2270 set_gdbarch_pseudo_register_write.
2271 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2272
2273 2003-06-16 Andrew Cagney <cagney@redhat.com>
2274
2275 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2276 * gdbarch.h, gdbarch.c: Re-generate.
2277 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2278 * s390-tdep.c (s390_gdbarch_init): Update.
2279 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2280 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2281 * mips-tdep.c (mips_gdbarch_init): Update.
2282 * mcore-tdep.c (mcore_gdbarch_init): Update.
2283 * cris-tdep.c (cris_gdbarch_init): Update.
2284 * infcall.c (call_function_by_hand): Update.
2285 * ia64-tdep.c (ia64_push_arguments): Update comment.
2286 * frame.c (legacy_get_prev_frame): Do not assume
2287 SAVE_DUMMY_FRAME_TOS_P.
2288 * dummy-frame.c (find_dummy_frame): Update comment.
2289
2290 2003-06-16 Andrew Cagney <cagney@redhat.com>
2291
2292 * regcache.c (do_cooked_read): Do not use register_valid_p.
2293
2294 2003-06-15 Theodore A. Roth <troth@openavr.org>
2295
2296 * avr-tdep.c (avr_register_type): Remove a blank line.
2297 (avr_scan_prologue): Correct some comments.
2298
2299 2003-06-15 Theodore A. Roth <troth@openavr.org>
2300
2301 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2302 prologue types.
2303 Properly scan prologues generated by gcc with the -mcall-prologues
2304 option.
2305 Add code to scan -mcall-prologues for mega devices.
2306
2307 2003-06-15 Theodore A. Roth <troth@openavr.org>
2308
2309 * avr-tdep.c (avr_register_byte): Delete function.
2310 (avr_register_raw_size): Delete function.
2311 (avr_register_virtual_size): Delete function.
2312 (avr_register_virtual_type): Delete function.
2313 (avr_register_type): New function.
2314 (avr_address_to_pointer): Remove unused code.
2315 (avr_read_fp): Need to read FP as two separate bytes due to change to
2316 avr_register_type() usage.
2317 (avr_gdbarch_init): Don't set deprecated_register_size.
2318 Don't set deprecated_register_bytes.
2319 Don't set deprecated_register_byte.
2320 Don't set deprecated_register_raw_size.
2321 Don't set deprecated_max_register_raw_size.
2322 Don't set deprecated_register_virtual_size.
2323 Don't set deprecated_max_register_virtual_size.
2324 Don't set deprecated_register_virtual_type.
2325 Set register_type method.
2326
2327 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2328
2329 * Makefile.in (linux-nat.o): Add rule.
2330 * linux-nat.c: New file.
2331 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2332 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2333 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2334 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2335 * config/arm/linux.mh (NATDEPFILES): Likewise.
2336 * config/i386/linux.mh (NATDEPFILES): Likewise.
2337 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2338 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2339 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2340 * config/mips/linux.mh (NATDEPFILES): Likewise.
2341 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2342 * config/s390/s390.mh (NATDEPFILES): Likewise.
2343 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2344
2345 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2346
2347 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2348 replace out-of-date comment.
2349
2350 2003-06-15 Andrew Cagney <cagney@redhat.com>
2351
2352 * rdi-share/host.h (Fail): Change to a varargs function.
2353 * remote-rdi.c (Fail): Update.
2354
2355 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2356
2357 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2358 (i386_convert_register_p, i386_register_to_value,
2359 i386_register_from_value): Handle types longer than 8 bytes.
2360
2361 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2362
2363 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2364 Move floating-point code to new function in i387-tdep.c.
2365 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2366 New functions containing code moved here from i386-tdep.c.
2367 * i387-tdep.h: Add opaque declaration for `struct type'.
2368 (i387_register_to_value, i387_value_to_register): New prototypes.
2369 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2370 (x86_64_init_abi): Set convert_register_p, register_to_value and
2371 value_to_register here.
2372
2373 2003-06-14 Andrew Cagney <cagney@redhat.com>
2374
2375 * mips-tdep.c (mips_register_to_value): Make static.
2376 (mips_value_to_register): Make static.
2377 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2378 * ia64-tdep.c (ia64_register_raw_size): Make static.
2379 (ia64_register_virtual_size): Make static.
2380 (ia64_register_byte): Make static.
2381 * i387-tdep.c: Include "i387-tdep.h".
2382 (print_387_control_word): Delete function.
2383 (print_387_status_word): Delete function.
2384 (print_387_status_bits): Delete function.
2385 (print_387_control_bits): Delete function.
2386 * Makefile.in (i387-tdep.o): Update dependencies.
2387 * rdi-share/host.h (Fail): Declare.
2388 * remote-rdi.c (Fail): Update to match declaration.
2389
2390 2003-06-14 Andrew Cagney <cagney@redhat.com>
2391
2392 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2393 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2394 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2395 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2396 * README: Delete reference to remote-array.
2397 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2398 (remote-array.o): Delete target.
2399 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2400 * remote-array.c: Delete file.
2401
2402 2003-06-14 Andrew Cagney <cagney@redhat.com>
2403 Mark Kettenis <kettenis@gnu.org>
2404
2405 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2406 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2407 parameter with "frame".
2408 * gdbarch.h, gdbarch.c: Re-generate.
2409 * frame.h (put_frame_register): Declare.
2410 * frame.c (put_frame_register): New function.
2411 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2412 (legacy_register_to_value): Rewrite, use "frame" to get the
2413 register value.
2414 (legacy_value_to_register): Rewrite, use "frame" to find the
2415 register's location before storing.
2416 * arch-utils.h (legacy_convert_register_p): Update.
2417 (legacy_register_to_value, legacy_value_to_register): Update.
2418 * findvar.c (value_from_register): Rewrite, eliminate use of
2419 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2420 "frame" to REGISTER_TO_VALUE.
2421 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2422 lval_reg_frame_relative + lval_register branch of the switch. Do
2423 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2424 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2425 I386_EDI_REGNUM): New defines.
2426 (i386_next_regnum, i386_convert_register_p,
2427 i386_register_to_value, i386_value_to_register): New functions.
2428 (i386_register_convertible, i386_register_convert_to_virtual,
2429 i386_convert_to_raw): Remove functions.
2430 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2431 value_to_register instead of register_convertible,
2432 register_convert_to_virtual and register_convert_to_raw.
2433 * mips-tdep.c (mips_convert_register_p): New function.
2434 (mips_value_to_register): Replace mips_register_convert_from_type.
2435 (mips_register_to_value): Replace mips_register_convert_to_type.
2436 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2437 register_to_value.
2438 * alpha-tdep.c (alpha_convert_register_p): Update.
2439 (alpha_value_to_register): Update, store the register.
2440 (alpha_register_to_value): Update, fetch the register.
2441
2442 2003-06-14 Theodore A. Roth <troth@openavr.org>
2443
2444 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2445 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2446 Don't set deprecated_call_dummy_words.
2447 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2448 Don't set remote_translate_xfer_address.
2449 (avr_io_reg_read_command): Remove commented out debug printf.
2450 Wrap a long line.
2451
2452 2003-06-14 Theodore A. Roth <troth@openavr.org>
2453
2454 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2455 causes gdb to seg fault.
2456
2457 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
2458
2459 * sparc-nat.c (fetch_inferior_registers): Correct
2460 a reference to "registers".
2461
2462 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2463
2464 * Makefile.in (exc_request_U_h): Define
2465 (exc_request_S_h): Likewise.
2466 (msg_reply_S_h): Likewise.
2467 (msg_U_h): Likewise.
2468 (notify_S_h): Likewise.
2469 (process_reply_S_h): Likewise.
2470 (gnu-nat.o): Depend on gdb_obstack_h
2471 * gnu-nat.c: Include "gdb_obstack.h".
2472
2473 2003-06-13 Andrew Cagney <cagney@redhat.com>
2474
2475 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2476 * gdbarch.h, gdbarch.c: Re-generate.
2477
2478 2003-06-13 Andrew Cagney <cagney@redhat.com>
2479
2480 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2481 when deprecated REGISTER macros can be deleted.
2482 * gdbarch.h, gdbarch.c: Re-generate.
2483
2484 2003-06-13 Jim Blandy <jimb@redhat.com>
2485
2486 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2487 Linux entry point symbols for _dl_debug_state, too.
2488
2489 2003-06-13 Andrew Cagney <cagney@redhat.com>
2490
2491 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2492 available, do not use the FP register, and always save the TOS.
2493 * dummy-frame.c (dummy_frame_this_id): Do not assert
2494 SAVE_DUMMY_FRAME_TOS.
2495 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2496 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2497 (i386_push_dummy_call): Add 8 to the returned SP.
2498 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2499 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2500 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2501 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2502 (x86_64_push_dummy_call): Return "sp + 16".
2503 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2504 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2505 save_dummy_frame_tos.
2506
2507 2003-06-13 Jim Blandy <jimb@redhat.com>
2508
2509 * frv-tdep.c (frv_use_struct_convention): Delete static
2510 declaration for function deleted in my change of 2003-06-12.
2511
2512 2003-06-13 Theodore A. Roth <troth@openavr.org>
2513
2514 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2515 (avr_pointer_to_address): Shift code addrs left 1 bit.
2516 (avr_convert_from_func_ptr_addr): Delete function since operation is
2517 better handled by avr_address_to_pointer and avr_pointer_to_address.
2518 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2519
2520 2003-06-13 Mark Kettenis <kettenis@gnu.org>
2521
2522 From Kelley Cook <kelleycook@wideopenwest.com>:
2523 * configure.host: Accept i[34567]86 variants.
2524 * configure.tgt: Likewise.
2525 * nlm/configure.in: Likewise.
2526 * nlm/configure: Regenerated.
2527
2528 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2529
2530 * arm-tdep.c (solib-svr4.h): Dont' include it.
2531 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2532 * arm-linux-tdep.c: ... here. Make static.
2533 (arm_linux_init_abi): Register it.
2534 (solib-svr4.h): Include it.
2535 * Makefile.in: Update dependencies.
2536 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2537 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2538
2539 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2540
2541 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2542 indicate registers used for return values.
2543 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2544 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2545 members.
2546 (h8300_init_extra_frame_info): Ditto.
2547 (h8300_frame_locals_address): Removed.
2548 (h8300_frame_args_address): Removed.
2549 (h8300_extract_return_value): Use new regcache structure. Only care
2550 for 16 bit CPUs.
2551 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2552 (h8300_store_return_value): Use new regcache structure. Only care
2553 for 16 bit CPUs.
2554 (h8300h_store_return_value): Same function for 32 bit CPUs.
2555 (h8300_store_struct_return): Removed.
2556 (h8300_extract_struct_value_address): Use new regcache structure.
2557 (h8300h_extract_struct_value_address): Removed.
2558 (h8300_push_dummy_code): New function.
2559 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2560 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2561 set_gdbarch_store_return_value architecture dependent.
2562 Call set_gdbarch_push_dummy_code and
2563 set_gdbarch_extract_struct_value_address.
2564 Remove calls to set_gdbarch_frame_args_address,
2565 set_gdbarch_frame_locals_address,
2566 set_gdbarch_deprecated_store_struct_return,
2567 set_gdbarch_deprecated_extract_return_value,
2568 set_gdbarch_deprecated_extract_struct_value_address,
2569 set_gdbarch_deprecated_call_dummy_words and
2570 set_gdbarch_deprecated_sizeof_call_dummy_words.
2571
2572 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2573
2574 * h8300-tdep.c (h8300_register_byte): Remove.
2575 (h8300h_register_byte): Remove.
2576 (h8300_register_virtual_type): Remove. Substitute by...
2577 (h8300_register_type): New function.
2578 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2579 (h8300h_extract_struct_value_address): Ditto.
2580 (h8300_gdbarch_init): Drop calls to
2581 set_gdbarch_deprecated_register_byte and
2582 set_gdbarch_deprecated_register_virtual_type.
2583 Add call to set_gdbarch_register_type.
2584
2585 2003-06-13 Andrew Cagney <cagney@redhat.com>
2586
2587 * gdbarch.sh: Update comments on registers.
2588 (deprecated_register_byte): Rename register_byte.
2589 (deprecated_register_raw_size): Rename register_raw_size.
2590 (deprecated_register_virtual_size): Rename register_virtual_size.
2591 (deprecated_register_virtual_type): Rename register_virtual_type.
2592 * gdbarch.h, gdbarch.c: Re-generate.
2593 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2594 * vax-tdep.c (vax_gdbarch_init): Update.
2595 * v850-tdep.c (v850_gdbarch_init): Update.
2596 * sparc-tdep.c (sparc_gdbarch_init): Update.
2597 * sh-tdep.c (sh_gdbarch_init): Update.
2598 * s390-tdep.c (s390_gdbarch_init): Update.
2599 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2600 * ns32k-tdep.c: Update.
2601 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2602 * mips-tdep.c (mips_gdbarch_init): Update.
2603 * mcore-tdep.c (mcore_gdbarch_init): Update.
2604 * m68k-tdep.c (m68k_gdbarch_init): Update.
2605 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2606 * ia64-tdep.c (ia64_gdbarch_init): Update.
2607 * hppa-tdep.c (hppa_gdbarch_init): Update.
2608 * h8300-tdep.c (h8300_gdbarch_init): Update.
2609 * frv-tdep.c (frv_gdbarch_init): Update.
2610 * cris-tdep.c (cris_gdbarch_init): Update.
2611 * avr-tdep.c (avr_gdbarch_init): Update.
2612 * alpha-tdep.c (alpha_gdbarch_init): Update.
2613 * arm-tdep.c (arm_gdbarch_init): Update.
2614
2615 2003-06-13 Andrew Cagney <cagney@redhat.com>
2616
2617 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2618 mips_o32_use_struct_convention with always_use_struct_convention.
2619
2620 2003-06-12 David Carlton <carlton@kealia.com>
2621
2622 * cp-namespace.c (cp_set_block_scope): Comment out
2623 processing_has_namespace_info branch.
2624
2625 2003-06-12 Jim Blandy <jimb@redhat.com>
2626
2627 Recognize and skip 64-bit PowerPC Linux linkage functions.
2628 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2629 insn_pattern, insns_match_pattern, d_field, ds_field): New
2630 functions, macros, and types for working with PPC instructions.
2631 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2632 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2633 ppc64_skip_trampoline_code): New functions, variables, and macros
2634 for recognizing and skipping linkage functions.
2635 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2636 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2637
2638 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2639 register offsets for both the 32- and 64-bit interfaces.
2640
2641 Actually finish the job started by my change of 2003-05-29.
2642 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2643 other #definition of this.
2644 (ppc_linux_skip_trampoline_code): Remove declaration.
2645 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2646 static.
2647 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2648 method for GDBARCH.
2649
2650 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2651 'long' on ppc64-*-linux*.
2652
2653 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2654 isn't #defined, assume the register doesn't exist: act as if
2655 tdep->ppc_mq_regnum were -1.
2656
2657 * configure.host, configure.tgt: Add entries for
2658 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2659 powerpc/linux.mt.
2660 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2661 New files.
2662
2663 * arch-utils.c (always_use_struct_convention): New function.
2664 * arch-utils.h (always_use_struct_convention): New prototype.
2665 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2666 (alpha_gdbarch_init): Register always_use_struct_convention,
2667 instead of alpha_use_struct_convention.
2668 * cris-tdep.c (cris_use_struct_convention): Delete.
2669 (cris_gdbarch_init): Register always_use_struct_convention,
2670 instead of cris_use_struct_convention.
2671 * frv-tdep.c (frv_use_struct_convention): Delete.
2672 (frv_gdbarch_init): Register always_use_struct_convention,
2673 instead of frv_use_struct_convention.
2674 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2675 (h8300_gdbarch_init): Register always_use_struct_convention,
2676 instead of h8300_use_struct_convention.
2677 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
2678 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2679 instead of mips_o32_use_struct_convention.
2680
2681 2003-06-12 Andrew Cagney <cagney@redhat.com>
2682
2683 * wince.c: Include "mips-tdep.h".
2684 * mips-tdep.h (mips_next_pc): Declare.
2685 * mcore-tdep.c: Make more local functions static.
2686 * Makefile.in (wince.o): Update dependencies.
2687
2688 2003-06-12 David Carlton <carlton@kealia.com>
2689
2690 * symtab.c (lookup_symbol_aux_minsyms): Replace
2691 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2692 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2693 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2694 SYMBOL_NATURAL_NAME.
2695
2696 2003-06-12 Andreas Schwab <schwab@suse.de>
2697
2698 * Makefile.in (tuiDisassem.o): Update dependencies.
2699
2700 2003-06-12 David Carlton <carlton@bactrian.org>
2701
2702 * symtab.h: Delete declaration of make_symbol_overload_list.
2703 Add declaration of lookup_partial_symbol.
2704 * symtab.c (remove_params): Move to cp-support.c.
2705 (overload_list_add_symbol, make_symbol_overload_list)
2706 (sym_return_val_size, sym_return_val_index): Ditto.
2707 (lookup_partial_symbol): Make extern.
2708 * cp-support.h: Add declaration of make_symbol_overload_list.
2709 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2710 symtab.h, and block.h.
2711 (remove_params): Move here from symtab.c.
2712 (overload_list_add_symbol, make_symbol_overload_list)
2713 (sym_return_val_size, sym_return_val_index): Ditto.
2714 * valops.c: Include cp-support.h.
2715 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2716 frame_h, and block_h.
2717 (valops.o): Depend on cp_support_h.
2718
2719 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
2720
2721 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2722 substitute by NUM_REGS throughout.
2723 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2724 (h8300s_register_name): New function for H8S registers.
2725 (h8300sx_register_name): Ditto for H8SX registers.
2726 (h8300_print_register): Revise register printing, avoid depending
2727 on 32 bit long.
2728 (h8300_register_byte): Only care for H8/300 registers.
2729 (h8300h_register_byte): New function for any other architecture.
2730 (h8300_register_raw_size): Remove.
2731 (h8300_register_virtual_type): Revise to return actually useful
2732 type.
2733 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2734 (h8300h_extract_struct_value_address): New function for any other
2735 architecture.
2736 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2737 set_gdbarch_register_name, set_gdbarch_register_byte,
2738 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2739 Remove calls to set_gdbarch_deprecated_register_size,
2740 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2741 set_gdbarch_deprecated_max_register_raw_size,
2742 set_gdbarch_register_virtual_size and
2743 set_gdbarch_deprecated_max_register_virtual_size entirely.
2744 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2745 set_gdbarch_long_double_bit.
2746
2747 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2748
2749 * doublest.c (convert_doublest_to_floatformat): When dealing
2750 with the implied integer bit, only alter mant_bits if we are
2751 processing a full 32 bits of mantissa.
2752
2753 2003-06-11 David Carlton <carlton@bactrian.org>
2754
2755 * dictionary.h: New.
2756 * dictionary.c: New.
2757 * block.h: Add opaque declaration for struct dictionary.
2758 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2759 'sym' members.
2760 (BLOCK_DICT): New macro.
2761 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2762 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2763 BLOCK_SHOULD_SORT.
2764 (ALL_BLOCK_SYMBOLS): Update definition.
2765 * Makefile.in (SFILES): Add dictionary.c.
2766 (dictionary_h): New.
2767 (COMMON_OBS): Add dictionary.o.
2768 (dictionary.o): New.
2769 (ada-lang.o): Depend on dictionary_h.
2770 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
2771 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
2772 (mi-cmd-stack.o): Ditto.
2773 (gdbtk-cmds.o): Update dependencies.
2774 (gdbtk-stack.o): Ditto.
2775 * ada-lang.c: Include dictionary.h.
2776 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
2777 (fill_in_ada_prototype, debug_print_block): Ditto.
2778 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
2779 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
2780 'is_sorted'.
2781 * mdebugread.c: Include dictionary.h.
2782 (struct parse_stack): Delete 'maxsyms' member.
2783 (parse_symbol): Update calls to new_block. Delete calls to
2784 shrink_block. Use dictionary methods.
2785 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
2786 Update calls to new_symtab. Don't maintain maxsyms data.
2787 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
2788 (add_symbol): Just call dict_add_symbol.
2789 (new_symtab): Delete 'maxsyms' argument.
2790 (new_symtab): Update calls to new_block.
2791 (new_block): Delete 'maxsyms' argument; add 'function' argument.
2792 (shrink_block): Delete function.
2793 (fixup_sigtramp): Update call to new_block. Add symbol via
2794 dict_add_symbol.
2795 * jv-lang.c: Include dictionary.h.
2796 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
2797 appropriately. Set class_symtab->free_func. Make sure the
2798 blockvector is big enough to hold two blocks.
2799 (add_class_symtab_symbol): Use dictionary methods.
2800 (free_class_block): New function.
2801 (type_from_class): Replace explicit iteration by
2802 ALL_BLOCK_SYMBOLS.
2803 * symtab.h (struct symtab): Replace 'free_ptr' method by
2804 'free_func'.
2805 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
2806 sort_symtab_syms.
2807 * dwarfread.c (psymtab_to_symtab_1): Delete call to
2808 sort_symtab_syms.
2809 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
2810 Include dictionary.h.
2811 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
2812 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
2813 sort_symtab_syms.
2814 * objfiles.c: Include dictionary.h.
2815 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
2816 * buildsym.c: Include dictionary.h.
2817 (finish_block): Use dictionary methods.
2818 (end_symtab): Set free_func to NULL, not free_ptr.
2819 * tracepoint.c: Include dictionary.h.
2820 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
2821 (scope_info): Ditto.
2822 * stack.c: Include dictionary.h.
2823 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
2824 (print_block_frame_labels, print_frame_arg_vars)
2825 (print_frame_args): Ditto.
2826 * symmisc.c (free_symtab_block): Use dictionary methods.
2827 (dump_symtab): Ditto.
2828 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
2829 Include dictionary.h.
2830 * symfile.h: Delete declarations of sort_block_syms,
2831 sort_symtab_syms.
2832 * symfile.c (sort_block_syms): Delete.
2833 (sort_symtab_syms): Delete.
2834 * symtab.c: Include dictionary.h.
2835 (lookup_block_symbol): Use dictionary iterators.
2836 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
2837 (search_symbols, make_symbol_completion_list): Ditto.
2838 (make_symbol_overload_list): Ditto.
2839 * valops.c (value_of_local): Use dict_empty.
2840 Include dictionary.h.
2841
2842 2003-06-11 J. Brobecker <brobecker@gnat.com>
2843
2844 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
2845
2846 2003-06-11 David Carlton <carlton@bactrian.org>
2847
2848 * block.h (BLOCK_SHOULD_SORT): Delete.
2849 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
2850 blocks.
2851 * ada-lang.c (ada_add_block_symbols): Ditto.
2852 * symfile.c (sort_block_syms): Delete.
2853 (sort_symtab_syms): Ditto.
2854 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
2855 declarations.
2856 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
2857 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
2858 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
2859 * dwarfread.c (psymtab_to_symtab_1): Ditto.
2860 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
2861 * mdebugread.c (psymtab_to_symtab_1): Ditto.
2862 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2863
2864 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2865
2866 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
2867 bits to 128.
2868
2869 2003-06-11 Andrew Cagney <cagney@redhat.com>
2870
2871 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2872 REGISTER_CONVERTIBLE.
2873 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
2874 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
2875 * gdbarch.h, gdbarch.c: Re-generate.
2876 * arch-utils.h (deprecated_register_convertible_not): Rename
2877 generic_register_convertible_not.
2878 * arch-utils.c (deprecated_register_convertible_not): Rename
2879 generic_register_convertible.
2880 (legacy_convert_register_p, legacy_register_to_value): Update.
2881 * sh-tdep.c (sh64_push_arguments): Update.
2882 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
2883 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
2884 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
2885 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
2886 * arch-utils.c (legacy_value_to_register): Update.
2887 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2888 (rs6000_register_convert_to_raw): Make parameter "from" const.
2889 * mips-tdep.c (mips_gdbarch_init): Update.
2890 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
2891 * infcmd.c (default_print_registers_info): Update.
2892 * ia64-tdep.c (ia64_gdbarch_init): Update.
2893 (ia64_register_convert_to_raw): Make parameter "from" const.
2894 * i386-tdep.c (i386_gdbarch_init): Update.
2895 (i386_register_convert_to_raw): Update.
2896
2897 2003-06-11 Andrew Cagney <cagney@redhat.com>
2898
2899 * remote-fileio.c: Include "remote-fileio.h".
2900 * Makefile.in (remote-fileio.o): Update dependencies.
2901 (remote_fileio_h): Fix typo.
2902
2903 2003-06-11 Andrew Cagney <cagney@redhat.com>
2904
2905 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
2906 (xstormy16_save_dummy_frame_tos): Make static.
2907 (_initialize_xstormy16_tdep): Add declaration.
2908 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
2909 * v850-tdep.c: Make local functions static.
2910 (_initialize_v850_tdep): Add declaration.
2911 * sparc-tdep.c: Make local functions static.
2912 (_initialize_sparc_tdep): Add declaration.
2913 * sh-tdep.c: Make local functions static.
2914 (_initialize_sh_tdep): Add declaration.
2915 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
2916 * s390-tdep.c: Make local functions static.
2917 (_initialize_s390_tdep): Add declaration.
2918 * dbxread.c (find_stab_function_addr): Make static.
2919 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
2920 * ocd.c (_initialize_remote_ocd): Add declaration.
2921 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
2922 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
2923 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
2924 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
2925 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
2926 * remote-array.c (_initialize_array): Add declaration.
2927 (_initialize_remote_monitors): Add declaration.
2928 * remote-mips.c: Make local functions static.
2929 (_initialize_remote_mips): Add declaration.
2930 * mcore-tdep.c: Make all local functions static.
2931 (_initialize_mcore_tdep): Add declaration.
2932 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
2933 * abug-rom.c (_initialize_abug_rom): Add declaration.
2934 * rom68k-rom.c (_initialize_rom68k): Add declaration.
2935 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
2936 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
2937 * remote-est.c (_initialize_est): Add declaration.
2938 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
2939 (m68hc11_call_dummy_address): Make static.
2940 * ia64-tdep.c: Make local functions static.
2941 (_initialize_ia64_tdep): Add declaration.
2942 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
2943 * monitor.c (monitor_wait_filter): Make static.
2944 (_initialize_remote_monitors): Add declaration.
2945 * remote-hms.c (_initialize_remote_hms): Add declaration.
2946 * remote-e7000.c (fetch_regs_from_dump): Make static.
2947 (expect_n): Make static.
2948 (_initialize_remote_e7000): Add declaration.
2949 * ser-e7kpc.c: Always include "defs.h".
2950 (_initialize_ser_e7000pc): Add declaration.
2951 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
2952 * cris-tdep.c: Make all but one function static.
2953 (_initialize_cris_tdep): Add declaration.
2954 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
2955 * solib.c (update_solib_list): Make static.
2956 (_initialize_solib): Add declaration.
2957 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
2958 (_initialize_avr_tdep): Add declaration.
2959 * remote-rdi.c (voiddummy): Make static.
2960 (_initialize_remote_rdi): Add declaration.
2961 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
2962 * remote-rdp.c (send_rdp): Make static.
2963 (_initialize_remote_rdp): Add declaration.
2964 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
2965
2966 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
2967
2968 * remote-fileio.c: Make ari happy.
2969
2970 2003-06-10 J. Brobecker <brobecker@gnat.com>
2971
2972 * rs6000-nat.c (child_xfer_memory): Compute the right address when
2973 fetching the trailing bytes of the buffer we are about to write.
2974
2975 2003-06-10 Andrew Cagney <cagney@redhat.com>
2976
2977 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
2978 * Makefile.in (remote-fileio.o): Update dependencies.
2979 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
2980 include <setjmp.h>, or <sys/types.h> conditional on USG.
2981 (remote_fio_jmp_buf): Delete global variable.
2982
2983 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
2984 Martin M. Hunt <hunt@redhat.com>
2985
2986 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
2987 (SFILES): Add remote-fileio.c.
2988 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
2989 dependencies for building remote.o.
2990 * remote-fileio.c: New file implementing the remote File-I/O protocol.
2991 * remote-fileio.h: New header file defining remote File-I/O interface.
2992 * remote.c (remote_write_bytes, remote_read_bytes): Remove
2993 static storage class.
2994 (remote_wait, remote_async_wait): Call remote_fileio_request() on
2995 'F' packet.
2996 (_initialize_remote): Call initialize_remote_fileio().
2997 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
2998 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2999 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3000 (captured_main): Initialize new ui_files.
3001 * ui-file.c: Add read and fgets input functions.
3002 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3003 (null_file_read): New function.
3004 (ui_file_read): New function.
3005 (set_ui_file_read): New function.
3006 (stdio_file_read): New function.
3007 * ui-file.h: New type ui_file_read_ftype.
3008 (set_ui_file_read): Declare.
3009 (ui_file_read): Declare.
3010
3011 2003-06-09 Andrew Cagney <cagney@redhat.com>
3012
3013 * frame.h (deprecated_unwind_get_saved_register): Rename
3014 generic_unwind_get_saved_register, update comments.
3015 * mips-tdep.c (mips_get_saved_register): Update.
3016 * frame.c (deprecated_unwind_get_saved_register): Update.
3017
3018 2003-06-09 Andrew Cagney <cagney@redhat.com>
3019
3020 * vax-tdep.c (vax_frame_locals_address): Delete function.
3021 (vax_gdbarch_init): Do not set frame_locals_address.
3022 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3023 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3024 * s390-tdep.c (s390_frame_args_address): Delete function.
3025 (s390_gdbarch_init): Do not set frame_args_address or
3026 frame_locals_address.
3027 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3028 (ns32k_gdbarch_init): Do not set frame_locals_address.
3029 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3030 (hppa_frame_locals_address): Delete function.
3031 (hppa_gdbarch_init): Do not set frame_args_address, or
3032 frame_locals_address.
3033 * arm-tdep.c (arm_frame_args_address): Delete.
3034 (arm_frame_locals_address): Delete.
3035 (arm_gdbarch_init): Do not set frame_args_address, or
3036 frame_locals_address.
3037
3038 2003-06-09 Andrew Cagney <cagney@redhat.com>
3039
3040 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3041 * gdbarch.h, gdbarch.c: Re-generate.
3042 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3043 * arch-utils.c (frame_num_args_unknown): Delete function.
3044 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3045 (frame_info): Use FRAME_NUM_ARGS_P.
3046 * arm-tdep.c (arm_frame_num_args): Delete function.
3047 (arm_gdbarch_init): Do not set frame_num_args.
3048 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3049 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3050 (hppa_gdbarch_init): Do not set frame_num_args.
3051 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3052 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3053 frame_num_args to default frame_num_args_unknown.
3054 * v850-tdep.c (v850_gdbarch_init): Ditto.
3055 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3056 * sh-tdep.c (sh_gdbarch_init): Ditto.
3057 * s390-tdep.c (s390_gdbarch_init): Ditto.
3058 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3059 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3060 * mips-tdep.c (mips_gdbarch_init): Ditto.
3061 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3062 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3063 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3064 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3065 * i386-tdep.c (i386_gdbarch_init): Ditto.
3066 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3067 * frv-tdep.c (frv_gdbarch_init): Ditto.
3068 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3069 * cris-tdep.c (cris_gdbarch_init): Ditto.
3070 * avr-tdep.c (avr_gdbarch_init): Ditto.
3071 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3072
3073 2003-06-09 Andrew Cagney <cagney@redhat.com>
3074
3075 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3076 (print_frame_args): Moved to "stack.c".
3077 * stack.c: Include "gdb_assert.h".
3078 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3079 (print_frame_args): Moved from "printcmd.c".
3080 * frame.h (print_frame_args): Delete declaration.
3081 * Makefile.in (stack.o): Update dependencies.
3082
3083 2003-06-08 Andrew Cagney <cagney@redhat.com>
3084
3085 * frame.c (get_prev_frame): Remove reference to
3086 frame_args_address_correct in comments.
3087 * frame-base.c (default_frame_args_address): Delete code
3088 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3089 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3090 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3091 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3092 (vax_frame_args_address_correct): Delete declaration.
3093
3094 2003-06-08 Andrew Cagney <cagney@redhat.com>
3095
3096 * gdbarch.sh (UNWIND_SP): Add.
3097 * gdbarch.h, gdbarch.c: Re-generate.
3098 * frame.c (frame_sp_unwind): New function.
3099 (get_frame_sp): New function.
3100 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3101 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3102 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3103 value.
3104 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3105 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3106
3107 2003-06-08 Andrew Cagney <cagney@redhat.com>
3108
3109 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3110 REMOTE_BREAKPOINT.
3111 * remote.c: Update.
3112 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3113 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3114 * config/m68k/tm-sun3.h: Update.
3115 * config/m68k/tm-m68klynx.h: Update.
3116 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3117
3118 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3119 trad_frame". Update comments.
3120 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3121 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3122 (trad_frame_register_value, trad_frame_prev_register): Update.
3123
3124 2003-06-08 Andrew Cagney <cagney@redhat.com>
3125
3126 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3127 from GCC's acinclude.m4.
3128 * configure.in: Check for getopt's delcaration.
3129 * aclocal.m4, config.in, configure: Re-generate.
3130 * main.c (error_init): Delete declaration.
3131 * defs.h (error_init): Declare.
3132 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3133 (rs6000_convert_from_func_ptr_addr): Make static.
3134 (_initialize_rs6000_tdep): Add declaration.
3135 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3136 (show_commands, set_verbose, show_history): Delete declaration.
3137 * top.h (set_verbose): Add declaration.
3138 (show_history, set_history, show_commands): Add declaration.
3139 (do_restore_instream_cleanup): Add declaration.
3140 * objc-lang.c (specialcmp): Make static.
3141 (print_object_command): Make static.
3142 (find_objc_msgsend): Make static.
3143 (find_objc_msgcall_submethod_helper): Make static.
3144 (find_objc_msgcall_submethod): Make static.
3145 (_initialize_objc_language): Add declaration.
3146 (find_implementation_from_class): Make static.
3147 (find_implementation): Make static.
3148 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3149 * objc-lang.h (lookup_struct_typedef): Add declaration.
3150 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3151 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3152 (do_restore_user_call_depth): Make static.
3153 (do_restore_instream_cleanup): Delete declaration.
3154 (dont_repeat): Delete declaration.
3155 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3156 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3157 * reggroups.c (_initialize_reggroup): Add declaration.
3158 * cp-support.c (_initialize_cp_support): Add declaration.
3159 * cp-abi.c (_initialize_cp_abi): Add declaration.
3160 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3161 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3162 (_initialize_gnu_v3_abi): Add declaration.
3163 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3164 (_initialize_gnu_v2_abi): Add declaration.
3165 * frame-base.c (_initialize_frame_base): Add declaration.
3166 * doublest.c (floatformat_from_length): Make static.
3167 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3168 * frame.c (create_sentinel_frame): Make static.
3169 (_initialize_frame): Add declaration.
3170 * top.c (do_catch_errors): Make static.
3171 (gdb_rl_operate_and_get_next_completion): Make static.
3172 * typeprint.c: Include "typeprint.h".
3173 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3174 (sentinel_frame_this_id): Make static.
3175 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3176 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3177 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3178 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3179 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3180 * maint.c (maintenance_print_architecture): Make static.
3181 * signals/signals.c (_initialize_signals): Add declaration.
3182 * std-regs.c (_initialize_frame_reg): Add declaration.
3183 * jv-exp.y (push_variable): ISO C definition.
3184 (push_qualified_expression_name): Ditto.
3185 * memattr.c (_initialize_mem): Add declaration.
3186 * remote.c (remote_check_watch_resources): Make static.
3187 (remote_stopped_by_watchpoint): Make static.
3188 (remote_stopped_data_address): Make static.
3189 * d10v-tdep.c (nr_dmap_regs): Make static.
3190 (a0_regnum): Make static.
3191 (d10v_frame_unwind_cache): Make static.
3192 (d10v_frame_p): Make static.
3193 * osabi.c (show_osabi): Make static.
3194 (_initialize_gdb_osabi): Add extern declaration.
3195 * gdbtypes.c (make_qualified_type): Make static.
3196 (safe_parse_type): Make static.
3197 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3198 * macrotab.c (macro_bcache_free): Make static.
3199 * interps.c (interp_set_quiet): Make static.
3200 (interpreter_exec_cmd): Make static.
3201 * stack.h (select_frame_command): New file.
3202 * stack.c: Include "stack.h".
3203 (select_frame_command_wrapper): Delete function.
3204 (select_frame_command): Make global.
3205 * infcall.c: Include "infcall.h".
3206 * linespec.c: Include "linespec.h".
3207 * symfile.c (sections_overlap): Make static.
3208 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3209 * charset.c (_initialize_charset): Add missing prototype.
3210 * regcache.c (init_legacy_regcache_descr): Make static.
3211 (do_regcache_xfree): Make static.
3212 (regcache_xfer_part): Make static.
3213 (_initialize_regcache): Add missing prototype.
3214 * breakpoint.c (parse_breakpoint_sals): Make static.
3215 (breakpoint_sals_to_pc): Make static.
3216 * interps.h (clear_interpreter_hooks): ISO C declaration.
3217 * Makefile.in (stack_h): Define.
3218 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3219 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3220
3221 2003-06-08 Andrew Cagney <cagney@redhat.com>
3222
3223 * Makefile.in (d10v-tdep.o): Update dependencies.
3224 (SFILES): Add trad-frame.c.
3225 (trad_frame_h): Define.
3226 (COMMON_OBS): Add trad-frame.o.
3227 (trad-frame.o): Specify dependencies.
3228 * d10v-tdep.c: Include "trad-frame.h".
3229 (saved_regs_unwinder): Delete function.
3230 (d10v_frame_prev_register): Use trad_frame_prev_register.
3231 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3232 trad_frame", delete "regs" and "prev_sp".
3233 (prologue_find_regs): Use trad-frame.
3234 * trad-frame.h, trad-frame.c: New files.
3235
3236 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3237
3238 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3239
3240 2003-06-07 Adam Fedor <fedor@gnu.org>
3241
3242 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3243 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3244 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3245 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3246 resolve_msgsend_super, resolve_msgsend_super_stret):
3247 Use it.
3248
3249 2003-06-07 Andrew Cagney <cagney@redhat.com>
3250
3251 * symfile.h: Re-indent, clean up comments.
3252
3253 2003-06-07 Andrew Cagney <cagney@redhat.com>
3254
3255 * inferior.h (deprecated_write_sp): Replace
3256 generic_target_write_sp.
3257 * regcache.c (deprecated_write_sp): Replace
3258 generic_target_write_sp.
3259 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3260 * vax-tdep.c (vax_gdbarch_init): Update.
3261 * v850-tdep.c (v850_gdbarch_init): Update.
3262 * sparc-tdep.c (sparc_gdbarch_init): Update.
3263 * sh-tdep.c (sh_gdbarch_init): Update.
3264 * s390-tdep.c (s390_gdbarch_init): Update.
3265 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3266 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3267 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3268 * mcore-tdep.c (mcore_gdbarch_init): Update.
3269 * m68k-tdep.c (m68k_gdbarch_init): Update.
3270 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3271 * ia64-tdep.c (ia64_gdbarch_init): Update.
3272 * h8300-tdep.c (h8300_gdbarch_init): Update.
3273 * frv-tdep.c (frv_gdbarch_init): Update.
3274 * cris-tdep.c (cris_gdbarch_init): Update.
3275 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3276
3277 2003-06-07 Andrew Cagney <cagney@redhat.com>
3278
3279 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3280 Assert that PC_REGNUM is valid.
3281 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3282
3283 2003-06-07 Andrew Cagney <cagney@redhat.com>
3284
3285 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3286 * gdbarch.h, gdbarch.c: Regenerate.
3287 * mn10300-tdep.c: Include "gdb_assert.h".
3288 (mn10300_read_fp): New function.
3289 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3290 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3291 * ia64-tdep.c: Include "gdb_assert.h".
3292 (ia64_read_fp): New function.
3293 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3294 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3295 * regcache.c (generic_target_read_sp): Delete function.
3296 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3297 * inferior.h (generic_target_read_sp): Delete declaration.
3298 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3299 generic_target_read_sp.
3300 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3301 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3302 * sh-tdep.c (sh_gdbarch_init): Ditto.
3303 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3304 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3305
3306 2003-06-07 Andrew Cagney <cagney@redhat.com>
3307
3308 * gdbarch.sh: Comment each field of startup_gdbarch.
3309 * gdbarch.h, gdbarch.c: Re-generate.
3310
3311 2003-06-07 Andrew Cagney <cagney@redhat.com>
3312
3313 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3314 * gdbarch.h, gdbarch.c: Re-generate.
3315 * regcache.c: Update comments on read_pc et.al.
3316 (generic_target_read_pc): Delete function.
3317 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3318 * inferior.h (generic_target_read_pc): Delete declaration.
3319 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3320 generic_target_read_pc.
3321 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3322 * sh-tdep.c (sh_gdbarch_init): Ditto.
3323 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3324 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3325
3326 2003-06-07 Andrew Cagney <cagney@redhat.com>
3327
3328 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3329 "index" with "special_local_sect". Use strcmp instead of STREQ.
3330 Append period to coments.
3331
3332 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3333
3334 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3335 (elfstab_offset_sections): Likewise.
3336 * gdb-stabs.h (stab_section_info): Likewise.
3337 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3338 * objfiles.c (objfile_relocate): Likewise.
3339 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3340 * remote.c (get_offsets): Likewise.
3341 (remote_cisco_objfile_relocate): Likewise.
3342 * somread.c (som_symfile_offsets): Likewise.
3343 * symfile.c (alloc_section_addr_info): New function.
3344 (build_section_addr_info_from_section_tab): Use it.
3345 (free_section_addr_info): Adjust.
3346 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3347 (syms_from_objfile): Allocate local_addr dynamically.
3348 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3349 dynamically.
3350 (add_symbol_file_command): Allocate sect_opts dynamically.
3351 (reread_symbols): Avoid use of SECT_OFF_MAX.
3352 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3353 (alloc_section_addr_info): Declare it.
3354 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3355 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3356 dynamically.
3357 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3358
3359 2003-06-06 Andrew Cagney <cagney@redhat.com>
3360
3361 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3362 (d10v_frame_unwind_cache): Do not set "return_pc".
3363
3364 2003-06-06 Michael Snyder <msnyder@redhat.com>
3365
3366 * h8300-tdep.c: Make tidy (long lines).
3367
3368 2003-06-06 Michal Ludvig <mludvig@suse.cz>
3369
3370 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3371 to regcache_collect().
3372
3373 2003-06-05 J. Brobecker <brobecker@gnat.com>
3374
3375 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3376 pc_in_sigtramp multiarch method.
3377 (hppa_hpux_som_init_abi): Use it.
3378 (hppa_hpux_elf_init_abi): Likewise.
3379 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3380 macro has been multiarched.
3381 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3382 macro here, as hppa64 isn't multiarched yet.
3383
3384 2003-06-05 Andrew Cagney <cagney@redhat.com>
3385
3386 * Makefile.in (value_h): Add $(frame_h).
3387 * value.h: Include "frame.h".
3388 (struct value): Replace "frame_addr" with "frame_id".
3389 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3390 * values.c (allocate_value): Use VALUE_FRAME_ID.
3391 (value_copy): Use VALUE_FRAME_ID.
3392 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3393 * valops.c (value_assign): Update. Use frame_find_by_id.
3394
3395 2003-06-05 Michal Ludvig <mludvig@suse.cz>
3396
3397 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3398 in each pass.
3399
3400 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3401
3402 * thread-db.c (check_event): For create/death event breakpoints,
3403 loop through all messages to ensure that we read the message
3404 corresponding to the breakpoint we are at.
3405
3406 2003-06-04 Michael Snyder <msnyder@redhat.com>
3407
3408 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3409
3410 2003-06-04 Mark Kettenis <kettenis@gnu.org>
3411
3412 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3413 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3414 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3415 when handling .eh_frame sections.
3416
3417 2003-06-04 J. Brobecker <brobecker@gnat.com>
3418
3419 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3420 prepare_to_proceed procedure instead of the hppa-specific one.
3421 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3422
3423 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
3424
3425 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3426 * config.in: Regenerated.
3427 * configure.in: Add test for syscall function and check for
3428 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3429 * configure: Regenerated.
3430 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3431 <sys/syscall.h>.
3432 (kill_lwp): New function that uses tkill syscall or
3433 uses kill, depending on whether threading model is nptl or not.
3434 All callers of kill() changed to use kill_lwp().
3435 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3436 see if all threads have already exited in the nptl model.
3437 (stop_and_resume_callback): New callback function used by the
3438 lin_lwp_wait thread exit handling code.
3439 (stop_wait_callback): Check for threads already having exited and
3440 delete such threads fromt the lwp list when discovered.
3441 (stop_callback): Don't assert retcode of kill call.
3442
3443 Roland McGrath <roland@redhat.com>
3444 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3445 nptl libthread_db.
3446
3447 2003-06-03 Richard Henderson <rth@redhat.com>
3448
3449 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3450 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3451 (alpha_sigtramp_frame_prev_register): Likewise.
3452 (alpha_heuristic_frame_prev_register): Likewise.
3453 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3454
3455 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3456 alpha-specific register id names.
3457 (alpha_mdebug_frame_unwind_cache): Likewise.
3458 (alpha_mdebug_frame_prev_register): Likewise.
3459
3460 2003-06-03 Richard Henderson <rth@redhat.com>
3461
3462 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3463 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3464 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3465 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3466 unwind routines.
3467 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3468 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3469 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3470
3471 * alpha-linux-tdep.c: Remove unnecessary includes.
3472 * Makefile.in (alpha-linux-tdep.o): Update.
3473
3474 2003-06-03 Richard Henderson <rth@redhat.com>
3475
3476 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3477 (alphabsd_fill_fpreg): Likewise.
3478
3479 2003-06-03 J. Brobecker <brobecker@gnat.com>
3480
3481 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3482 references to struct frame_info fields by calls to the equivalent
3483 accessors. Necessary now that frame_info is opaque.
3484
3485 2003-06-03 J. Brobecker <brobecker@gnat.com>
3486
3487 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3488 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3489 structure, field no longer exists.
3490
3491 2003-06-03 J. Brobecker <brobecker@gnat.com>
3492
3493 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3494 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3495
3496 2003-06-03 J. Brobecker <brobecker@gnat.com>
3497
3498 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3499 references to struct frame_info fields by calls to the equivalent
3500 accessors. Necessary now that frame_info is opaque.
3501
3502 2003-06-03 J. Brobecker <brobecker@gnat.com>
3503
3504 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3505 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3506 structure, field no longer exists.
3507
3508 2003-06-03 Theodore A. Roth <troth@openavr.org>
3509
3510 * remote.c (init_remote_state): Compute sizeof_g_packet by
3511 accumulation of the size of all registers instead of blindly using
3512 DEPRECATED_REGISTER_BYTES.
3513
3514 2003-06-03 Michael Snyder <msnyder@redhat.com>
3515
3516 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3517 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3518 for h8300sx.
3519
3520 2003-06-03 J. Brobecker <brobecker@gnat.com>
3521
3522 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3523 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3524
3525 2003-06-03 Andrew Cagney <cagney@redhat.com>
3526
3527 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3528 (sparc_convert_to_raw): Delete function.
3529 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3530 register_convert_to_virtual.
3531
3532 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3533
3534 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3535 layer if not dealing with a statically-linked threaded program.
3536
3537 2003-06-03 Kris Warkentin <kewarken@qnx.com>
3538
3539 * solib.c (solib_open): Update comment to reflect actual search order.
3540
3541 2003-06-03 Andrew Cagney <cagney@redhat.com>
3542
3543 * frame.c (get_frame_memory_signed): New function.
3544 (get_frame_memory, get_frame_memory_unsigned): New function.
3545 (get_frame_arch): New function.
3546 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3547 (get_frame_memory, get_frame_unsigned_memory): Declare.
3548 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3549 get_frame_memory_unsigned and get_frame_arch.
3550 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3551
3552 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3553
3554 * MAINTAINERS (write after approval): Add myself.
3555
3556 2003-06-03 Jim Blandy <jimb@redhat.com>
3557
3558 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3559 elements of gregset_t are 64 bits each, but access registers
3560 are still 32 bits, so they're packed two per gregset_t
3561 element. Unpack/pack them properly.
3562
3563 2003-06-02 David Carlton <carlton@bactrian.org>
3564
3565 * linespec.c (find_methods): Break out code into
3566 add_matching_methods and add_constructors.
3567 (add_matching_methods): New.
3568 (add_constructors): Ditto.
3569
3570 2003-06-02 Andrew Cagney <cagney@redhat.com>
3571
3572 * sparc-tdep.c (sparc_print_registers): Delete call to
3573 REGISTER_CONVERTIBLE.
3574 (sparc_gdbarch_init): Do not set register_convertible.
3575 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3576 * frv-tdep.c (frv_gdbarch_init): Ditto.
3577 * cris-tdep.c (cris_gdbarch_init): Ditto.
3578
3579 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
3580
3581 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3582 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3583 (syms_from_objfile): Ditto.
3584
3585 2003-06-03 Andreas Schwab <schwab@suse.de>
3586
3587 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3588 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3589
3590 2003-06-02 Richard Henderson <rth@redhat.com>
3591
3592 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3593 a member of all_reggroup.
3594
3595 2003-06-02 Richard Henderson <rth@redhat.com>
3596
3597 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3598 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3599 (alpha_lds, alpha_sts): New.
3600 (alpha_convert_register_p): Change from _register_convertible.
3601 (alpha_register_to_value): Change from _convert_to_virtual;
3602 restructure and fail for type sizes other than 4 or 8.
3603 (alpha_value_to_register): Similarly.
3604 (alpha_extract_return_value): Use alpha_sts.
3605 (alpha_store_return_value): Use alpha_lds.
3606 (alpha_gdbarch_init): Update hooks.
3607
3608 2003-06-02 Richard Henderson <rth@redhat.com>
3609
3610 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3611 regnum identifiers.
3612 (alpha_sigtramp_register_address): Likewise.
3613
3614 2003-06-02 Richard Henderson <rth@redhat.com>
3615
3616 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3617 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3618 * alpha-tdep.h: Declare them.
3619
3620 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3621 Remove zerobuf. Don't error on UNIQUE.
3622 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3623 (ALPHA_REGSET_UNIQUE): Provide default.
3624 (supply_gregset): Use alpha_supply_int_regs.
3625 (fill_gregset): Use alpha_fill_int_regs.
3626 (supply_fpregset): Use alpha_supply_fp_regs.
3627 (fill_fpregset): Use alpha_fill_fp_regs.
3628 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3629 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3630 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3631 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3632 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3633 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3634
3635 2003-06-02 Richard Henderson <rth@redhat.com>
3636
3637 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3638
3639 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3640 (alpha_store_return_value): Likewise.
3641
3642 2003-06-02 David Carlton <carlton@math.stanford.edu>
3643
3644 * block.c (contained_in): Add 'const' to arguments.
3645 (block_function): Ditto.
3646 * block.h: Update declarations for block_function and
3647 contained_in.
3648
3649 2003-06-02 David Carlton <carlton@math.stanford.edu>
3650
3651 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3652 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3653 * p-valprint.c (pascal_val_print): Ditto.
3654 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3655
3656 2003-06-02 Richard Henderson <rth@redhat.com>
3657
3658 * alpha-tdep.c (alpha_push_dummy_call): Use
3659 builtin_type_ieee_double_little instead of builtin_type_double.
3660
3661 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
3662 sign-extension of 32-bit values.
3663 (alpha_store_return_value): Similarly.
3664
3665 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3666 (alpha_extract_return_value): Likewise.
3667 (alpha_store_return_value): Likewise.
3668
3669 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3670 (alpha_store_return_value): Error on IEEE Quad floats.
3671
3672 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3673 (alpha_extract_struct_value_address): Likewise.
3674 (alpha_store_return_value): Likewise.
3675 (alpha_store_struct_return): Remove.
3676 (alpha_gdbarch_init): Update hook registration to match.
3677
3678 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3679 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3680 macros where appropriate.
3681 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3682 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
3683
3684 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3685 for SP, GP; void_func_ptr for PC; non-language-specific types
3686 for all others.
3687 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
3688
3689 2003-06-02 Richard Henderson <rth@redhat.com>
3690
3691 * top.h (lim_at_start): Declare.
3692 * main.c (captured_main): Set it.
3693 * top.c (lim_at_start): Define.
3694 (command_loop): Use it instead of &environ.
3695 * event-top.c (command_handler): Likewise.
3696
3697 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3698
3699 * mipsnbsd-tdep.c: Update copyright years.
3700 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3701
3702 2003-06-01 Richard Henderson <rth@redhat.com>
3703
3704 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3705 (alpha-linux-tdep.o): Update dependencies.
3706 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3707 * alpha-mdebug-tdep.c: Remove unneeded includes.
3708
3709 2003-06-01 Richard Henderson <rth@redhat.com>
3710
3711 * alpha-tdep.c (alpha_register_reggroup_p): New.
3712 (alpha_gdbarch_init): Register it.
3713
3714 2003-06-02 Andrew Cagney <cagney@redhat.com>
3715
3716 * dwarfread.c: Eliminate "register"
3717 (decode_die_type): Eliminate assignment within "if".
3718 (struct_type, decode_array_element_type): Ditto.
3719 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3720 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3721 (decode_modified_type, completedieinfo): Ditto.
3722 * block.c: Eliminate "register".
3723 (blockvector_for_pc_sect): Eliminate assignment within "if".
3724 * cp-support.h (struct symbol): Opaque declaration.
3725 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3726
3727 2003-06-01 Richard Henderson <rth@redhat.com>
3728
3729 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3730 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
3731
3732 2003-06-01 Adam Fedor <fedor@gnu.org>
3733
3734 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3735 * gdbarch.[ch]: Regenerate.
3736 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3737 (hppa_gdbarch_init): Set it in the gdbarch vector.
3738 * i386-tdep.c (i386_fetch_pointer_argument): New
3739 (i386_gdbarch_init): Set it into gdbarch.
3740 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3741 (rs6000_gdbarch_init): Set it in gdbarch.
3742 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3743 (sparc_gdbarch_init): Set it in gdbarch.
3744
3745 2003-06-01 Andrew Cagney <cagney@redhat.com>
3746
3747 * defs.h (extract_address): Delete declaration.
3748 * findvar.c (extract_address): Delete function.
3749 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3750 extract_address with the inline equivalent,
3751 extract_unsigned_integer.
3752 (xstormy16_extract_struct_value_address): Ditto.
3753 (xstormy16_pointer_to_address): Ditto.
3754 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3755 * v850-tdep.c (v850_push_arguments): Ditto.
3756 (v850_extract_return_value): Ditto.
3757 (v850_extract_struct_value_address): Ditto.
3758 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3759 (sparcnbsd_get_longjmp_target_64): Ditto.
3760 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3761 (get_longjmp_target): Ditto.
3762 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3763 (sh64_extract_struct_value_address): Ditto.
3764 (sh_push_arguments): Ditto.
3765 (sh64_push_arguments): Ditto.
3766 * remote-vxsparc.c (vx_read_register): Ditto.
3767 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
3768 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
3769 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
3770 * mipsv4-nat.c (get_longjmp_target): Ditto.
3771 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
3772 * mips-nat.c (get_longjmp_target): Ditto.
3773 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
3774 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
3775 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
3776 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
3777 * irix5-nat.c (get_longjmp_target): Ditto.
3778 * irix4-nat.c (get_longjmp_target): Ditto.
3779 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
3780 (ia64_push_arguments): Ditto.
3781 * hpux-thread.c (hpux_thread_store_registers): Ditto.
3782 * h8300-tdep.c (h8300_push_arguments): Ditto.
3783 (h8300_store_return_value): Ditto.
3784 (h8300_extract_struct_value_address): Ditto.
3785 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
3786 (frv_push_arguments): Ditto.
3787 * avr-tdep.c (avr_pointer_to_address): Ditto.
3788 (avr_push_arguments): Ditto.
3789 * arm-tdep.c (arm_push_dummy_call): Ditto.
3790 (arm_get_longjmp_target): Ditto.
3791 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3792 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
3793 (alpha_get_longjmp_target): Ditto.
3794
3795 * solib-irix.c (extract_mips_address): Inline extract_address,
3796 replacing it with extract_signed_integer.
3797 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3798 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
3799 (first_link_map_member, open_symbol_file_object): Ditto.
3800 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
3801 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3802 (LM_NEXT, LM_NAME): Ditto.
3803
3804 2003-06-01 Richard Henderson <rth@redhat.com>
3805
3806 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
3807 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
3808 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
3809 (alpha_cannot_store_register): Likewise.
3810 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
3811 * alpha-nat.c (supply_gregset): Likewise.
3812 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
3813
3814 2003-06-01 Andrew Cagney <cagney@redhat.com>
3815
3816 * infcall.c (call_function_by_hand): Update comment on
3817 DEPRECATED_DUMMY_WRITE_SP.
3818
3819 * mips-tdep.c (mips_gdbarch_init): Do not set
3820 deprecated_dummy_write_sp.
3821 (mips_eabi_push_dummy_call): Set the SP register.
3822 (mips_o64_push_dummy_call): Set the SP register.
3823 (mips_o32_push_dummy_call): Set the SP register.
3824 (mips_n32n64_push_dummy_call): Set the SP register.
3825
3826 2003-06-01 Richard Henderson <rth@redhat.com>
3827
3828 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
3829 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
3830 (supply_gregset): Likewise.
3831 * alpha-tdep.c (alpha_store_return_value): Likewise.
3832 (alpha_get_longjmp_target): Likewise.
3833 (alpha_register_name): Constify array.
3834 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
3835 deprecated_register_size, deprecated_register_bytes,
3836 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
3837 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
3838 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
3839
3840 2003-06-01 Richard Henderson <rth@redhat.com>
3841
3842 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
3843 from arg_reg_buffer to regcache to avoid double conversion.
3844
3845 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3846
3847 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
3848 SP_REGNUM.
3849 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
3850 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
3851
3852 2003-06-01 Richard Henderson <rth@redhat.com>
3853
3854 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
3855 (decode_frame_entry): Set it. Skip FDE augmentation.
3856
3857 2003-06-01 Richard Henderson <rth@redhat.com>
3858
3859 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
3860 not overlapping PC_REGNUM.
3861
3862 2003-06-01 Richard Henderson <rth@redhat.com>
3863
3864 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
3865 alpha_push_arguments. Don't dump argument register data to
3866 the target stack. Fix float and 128-bit long double semantics.
3867 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
3868 (alpha_fix_call_dummy): Remove.
3869 (alpha_call_dummy_words): Remove.
3870 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
3871
3872 2003-06-01 Richard Henderson <rth@redhat.com>
3873
3874 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
3875
3876 2003-06-01 Andrew Cagney <cagney@redhat.com>
3877
3878 * mips-tdep.c (is_mips16_addr): New function.
3879 (make_mips16_addr, unmake_mips16_addr): New functions.
3880 (pc_is_mips16, mips_fetch_instruction): Use.
3881 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
3882 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
3883 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
3884 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
3885 TARGET_MIPS.
3886 * config/mips/tm-mips.h: Update copyright.
3887 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
3888 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
3889 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
3890 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
3891 (TM_PRINT_INSN_MACH): Delete.
3892 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
3893
3894 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
3895 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
3896 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
3897 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
3898 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
3899 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
3900 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
3901 mips*-*-riscos* and mips*-*-sysv* onto mips.
3902 * config/mips/mips64.mt: New file.
3903 * config/mips/mips.mt: New file.
3904 * config/mips/littlemips.mt: Delete file.
3905 * config/mips/decstation.mt: Delete file.
3906 * config/mips/vr4300el.mt: Delete file.
3907 * config/mips/vr5000el.mt: Delete file.
3908 * config/mips/vr5000.mt: Delete file.
3909 * config/mips/vr4100.mt: Delete file.
3910 * config/mips/vr4xxxel.mt: Delete file.
3911 * config/mips/vr4300.mt: Delete file.
3912 * config/mips/vr4xxx.mt: Delete file.
3913 * config/mips/bigmips.mt: Delete file.
3914 * config/mips/bigmips64.mt: Delete file.
3915 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
3916 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
3917 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
3918 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
3919 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
3920 "tm-bigmips.h".
3921 * config/mips/tm-irix3.h: Ditto.
3922 * config/mips/tm-mipsv4.h: Ditto.
3923 * config/mips/tm-embed.h: Ditto.
3924 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
3925 "tm-bigmips64.h".
3926 * config/mips/tm-vr5000el.h: Delete file.
3927 * config/mips/tm-tx39l.h: Delete file.
3928 * config/mips/tm-vr4300el.h: Delete file.
3929 * config/mips/tm-vr4xxxel.h: Delete file.
3930 * config/mips/tm-vr4300.h: Delete file.
3931 * config/mips/tm-vr4100.h: Delete file.
3932 * config/mips/tm-vr4xxx.h: Delete file.
3933 * config/mips/tm-vr5000.h: Delete file.
3934 * config/mips/tm-embedl64.h: Delete file.
3935 * config/mips/tm-embedl.h: Delete file.
3936 * config/mips/tm-embed64.h: Delete file.
3937 * config/mips/tm-bigmips64.h: Delete file.
3938 * config/mips/tm-bigmips.h: Delete file.
3939
3940 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3941
3942 Fix gdb/1216.
3943 * shnbsd-nat.c: Include "sh-tdep.h".
3944
3945 From Richard Henderson <rth@redhat.com>:
3946 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
3947
3948 2003-05-31 Andrew Cagney <cagney@redhat.com>
3949
3950 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
3951 forward declaration.
3952 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3953 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3954 (mips_find_saved_regs): Use set_reg_offset.
3955 (mips_frame_init_saved_regs): Delete function.
3956 (mips_pop_frame): Call mips_find_saved_regs instead of
3957 DEPRECATED_FRAME_INIT_SAVED_REGS.
3958
3959 2003-05-31 Andrew Cagney <cagney@redhat.com>
3960
3961 * mips-tdep.c (mips_gdbarch_init): Do not set
3962 deprecated_max_register_raw_size, register_virtual_size, and
3963 deprecated_max_register_virtual_size.
3964
3965 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3966
3967 * i386-tdep.c: Include "dwarf2-frame.h".
3968 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
3969 * Makefile.in (i386-tdep.o): Update dependencies.
3970
3971 * dwarf2-frame.c, dwarf2-frame.h: New files.
3972 * Makefile.in (SFILES): Add dwarf2-frame.c.
3973 (dwarf2_frame_h): Define.
3974 (COMMON_OBS): Add dwarf2-frame.o.
3975 (dwarf2-frame.o): Add dependencies.
3976
3977 2003-05-31 Andreas Jaeger <aj@suse.de>
3978
3979 * x86-64-linux-nat.c: Fix comment.
3980
3981 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3982
3983 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
3984 function signature.
3985
3986 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
3987 have a sigcontext_addr handler.
3988 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
3989 sigcontext_addr handler.
3990
3991 2003-05-31 Andrew Cagney <cagney@redhat.com>
3992
3993 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
3994 (print_fp_register_row): Replace do_fp_register_row.
3995 (mips_print_fp_register): Add "file" and "frame" parameters.
3996 (mips_print_register): Add "file" and "frame" parameters.
3997 (mips_print_registers_info): Replace mips_do_registers_info.
3998 (mips_gdbarch_init): Set print_registers_info instead of
3999 deprecated_do_registers_info.
4000 (mips_read_fp_register_single): Add "frame" parameter.
4001 (mips_read_fp_register_double): Add "frame" parameter.
4002
4003 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4004
4005 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4006 Fixes a bug where GDB would print the wrong register names for
4007 targets without SSE.
4008
4009 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4010 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4011 registers.
4012
4013 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4014 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4015 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4016 TDEP->sc_sp_offset.
4017
4018 From Michal Ludvig <mludvig@suse.cz>:
4019 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4020 and `sc_num_regs'.
4021 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4022 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4023 I386_ST0_REGNUM): Move here from...
4024 * i386-tdep.c: ... here.
4025 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4026 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4027 registers if possible.
4028 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4029 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4030 Remove variables.
4031 (i386bsd_sc_reg_offset): New variable.
4032 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4033 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4034 TDEP->sc_sp_offset.
4035 (i386fbsd_sc_reg_offset): New variable.
4036 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4037 TDEP->sc_num_regs.
4038 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4039 variables.
4040 (i386fbsd4_sc_reg_offset): New variable.
4041 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4042 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4043 TDEP->sc_sp_offset.
4044 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4045 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4046 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4047 Remove variables.
4048 (i386nbsd_sc_reg_offset): New variable.
4049 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4050 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4051 TDEP->sc_sp_offset.
4052 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4053 Remove variables.
4054 (i386obsd_sc_reg_offset): New variable.
4055 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4056 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4057 TDEP->sc_sp_offset.
4058 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4059 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4060 for frame pointer offset in `struct sigcontext'.
4061
4062 2003-05-31 Andrew Cagney <cagney@redhat.com>
4063
4064 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4065 architecture methods call_dummy_words, sizeof_call_dummy_words,
4066 push_return_address, store_struct_return, and fix_call_dummy. Set
4067 push_dummy_call instead of deprecated_push_arguments.
4068 (mips_store_struct_return): Delete function.
4069 (mips_fix_call_dummy): Delete function.
4070 (mips_push_return_address): Delete function.
4071 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4072 RA_REGNUM and T9_REGNUM.
4073 (mips_n32n64_push_dummy_call): Ditto for
4074 mips_n32n64_push_arguments.
4075 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4076 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4077
4078 2003-05-31 Andrew Cagney <cagney@redhat.com>
4079
4080 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4081 "dummy_addr" to "bp_addr".
4082 * infcall.c (call_function_by_hand): Pass "funaddr" to
4083 gdbarch_push_dummy_call.
4084 * gdbarch.h, gdbarch.c: Re-generate.
4085 * i386-tdep.c (i386_push_dummy_call): Update.
4086 * arm-tdep.c (arm_push_dummy_call): Update.
4087 * d10v-tdep.c (d10v_push_dummy_call): Update.
4088
4089 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4090
4091 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4092 variable declarations.
4093 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4094 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4095 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4096 x86_64_init_frame_pc, x86_64_init_frame_pc,
4097 x86_64_function_has_prologue): Remove prototypes.
4098 (X86_64_NUM_GREGS): New define.
4099 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4100 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4101 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4102 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4103 XMM1_REGNUM): Remove defines.
4104 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4105 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4106 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4107 X86_64_XMM1_REGNUM): New defines.
4108 (struct x86_64_register_info): Renamed from `struct
4109 register_info'. Remove `size' member.
4110 (x86_64_register_info_table): Remove variable.
4111 (x86_64_register_info): New variable.
4112 (X86_64_NUM_REGS): New define.
4113 (X86_64_NUM_GREGS): Remove define.
4114 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4115 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4116 Remove variables.
4117 (x86_54_dwarf2_reg_to_regnum): Remove function.
4118 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4119 (x86_64_dwarf_reg_to_regnum): New function.
4120 (x86_64_register_name): Rewrite.
4121 (x86_64_register_raw_size): Remove function.
4122 (x86_64_register_byte_table): Remove variable.
4123 (x86_64_register_byte): Remove function.
4124 (x86_64_register_virtual_type): Remove function.
4125 (x86_64_register_type): New function.
4126 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4127 x86_64_register_convert_to_raw): Remove functions.
4128 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4129 (x86_64_use_struct_convention): Make static. Adjust for renamed
4130 defines.
4131 (x86_64_frame_init_saved_regs): Remove function.
4132 (x86_64_push_arguments): Make static. Change to accept a regcache
4133 as argument.
4134 (x86_64_store_return_value, x86_64_extract_return_value): Make
4135 static. Rewrite based on i386 counterparts.
4136 (x86_64_push_dummy_call): New function.
4137 (X86_64_NUM_SAVED_REGS): New define.
4138 (x86_64_register_number): Remove function.
4139 (x86_64_store_struct_return): Remove function.
4140 (x86_64_frameless_function_invocation,
4141 x86_64_function_has_prologue): Remove functions.
4142 (PROLOG_BUFSIZE): Remove define.
4143 (struct x86_64_frame_cache): New structure.
4144 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4145 x86_64_frame_cache, x86_64_frame_this_id,
4146 x86_64_frame_prev_register, x86_64_frame_p,
4147 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4148 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4149 functions.
4150 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4151 variables.
4152 (x86_64_skip_prologue): Rewrite in terms of
4153 x86_64_analyze_prologue.
4154 (x86_64_frame_base_address): New function.
4155 (x86_64_frame_base): New variable.
4156 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4157 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4158 set deprecated_fp_regnum, deprecated_register_size,
4159 deprecated_register_bytes, register_raw_size, register_byte,
4160 register_virtual_type, register_convertiable,
4161 register_convert_to_virtual, convert_to_raw,
4162 deprecated_get_saved_register, deprecated_target_read_fp,
4163 deprecated_push_arguments, deprecated_push_return_address,
4164 deprecated_pop_frame, deprecated_store_struct_return,
4165 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4166 frameless_function_invocation, deprecated_frame_saved_pc,
4167 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4168 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4169 deprecated_init_frame_pc and virtual_frame_pointer. Call
4170 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4171 and x86_64_frame_p. Call frame_base_set_default to register
4172 x86_64_frame_base.
4173 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4174 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4175 (_initialize_x86_64_tdep): Remove function.
4176 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4177 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4178 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4179 define.
4180 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4181 (x86_64_linux_sigcontext_addr): Rewrite.
4182 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4183 x86_64_linux_frame_saved_pc): Remove functions.
4184 (x86_64_linux_pc_in_sigtramp): Renamed from
4185 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4186 trampoline.
4187 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4188 Remove_functions.
4189 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4190 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4191 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4192 (x86_64_regmap): Rename to regmap.
4193 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4194 x86_64_num_gregs.
4195 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4196 x86_64_regmap.
4197 (x86_64_fxsave_offset): Remove function.
4198 (supply_fpregset): Simply call x86_64_supply_fxsave.
4199 (fill_fpregset): Simply call x86_64_fill_fxsave.
4200 (fetch_inferior_registers, store_inferior_registers): Avoid
4201 asignment in if-statement.
4202 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4203 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4204 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4205 (fetch_core_registers): Remove function.
4206 (linux_elf_core_fns): Remove.
4207 (offsetoff): Don't define.
4208 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4209 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4210 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4211 add core-regset.o.
4212 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4213 protection against multiple includes instead of NM_X86_64_h. Add
4214 various comments. Include "config/nm-linux.h". Don't include
4215 <signal.h>.
4216 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4217 GET_THREAD_SIGNALS): Remove defines.
4218 (x86_64_register_u_addr, kernel_u_size,
4219 lin_thread_get_thread_signals): Remove prototypes.
4220 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4221 [HAVE_LINK_H]: Don't include "solib.h".
4222 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4223 * config/i386/tm-x86-64linux.h: Fix comments.
4224 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4225 x86-64-tdep.o): Update dependencies.
4226
4227 2003-05-30 Andrew Cagney <cagney@redhat.com>
4228
4229 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4230 Change parameter type to a "struct regcache *".
4231
4232 * gdbarch.sh: Regardless of the multi-arch level, always define
4233 the macro when not already defined.
4234 * gdbarch.h, gdbarch.c: Re-generate.
4235
4236 2003-05-30 Richard Henderson <rth@redhat.com>
4237
4238 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4239 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4240 (alpha_mdebug_frame_this_id): Likewise.
4241 (alpha_mdebug_frame_prev_register): Likewise.
4242 (alpha_mdebug_frame_base_address): Likewise.
4243 (alpha_mdebug_frame_locals_address): Likewise.
4244 (alpha_mdebug_frame_args_address): Likewise.
4245 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4246 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4247 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4248 loop increment.
4249 (alpha_heuristic_frame_this_id): Make static.
4250 (alpha_heuristic_frame_prev_register): Likewise.
4251 (alpha_heuristic_frame_base_address): Likewise.
4252 * alpha-tdep.h: Update.
4253
4254 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4255
4256 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4257 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4258 defenitions.
4259 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4260 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4261 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4262 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4263 I386_ST0_REGNUM): New defines.
4264 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4265 codestream_get): Remove define.
4266 (codestream_next_addr, condestream_addr, condestream_buf,
4267 codestream_off, codestream_cnt): Remove variables.
4268 (codestream_fill, codestream_seek, codestream_read): Remove
4269 functions.
4270 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4271 functionality.
4272 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4273 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4274 i386_frame_saved_pc, i386_saved_pc_after_call,
4275 i386_frame_num_args, i386_frame_init_saved_regs,
4276 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4277 i386_push_arguments): Remove functions.
4278 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4279 functionality. Use i386_analyze_prologue instead of
4280 i386_get_frame_setup.
4281 (I386_NUM_SAVED_REGS): New define.
4282 (struct i386_frame_cache): New structure.
4283 (i386_alloc_frame_cache, i386_analyze_struct_return,
4284 i386_skip_probe, i386_analyze_frame_setup,
4285 i386_analyze_register_saves, i386_analyze_prologue,
4286 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4287 i386_frame_prev_register, i386_sigtramp_frame_cache,
4288 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4289 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4290 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4291 New functions.
4292 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4293 New variables.
4294 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4295 I386_EAX_REGNUM and I386_EDX_REGNUM.
4296 (i386_extract_return_value, i386_store_return_value): Use
4297 I386_ST0_REGNUM where appropriate.
4298 (i386_extract_struct_value_address): Rewrite to use extract_address.
4299 (i386_svr4_pc_in_sigtramp): Add comment.
4300 (i386_svr4_sigcontext_addr): Rewrite.
4301 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4302 TDEP->sc_sp_offset.
4303 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4304 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4305 of new defines. Set push_dummy_call, don't set
4306 deprecated_push_arguments, deprecated_push_return_address,
4307 deprecated_pop_frame. Don't set parm_boundary. Don't set
4308 deprecated_frame_chain, deprecated_frame_saved_pc,
4309 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4310 save_dummy_frame_tos, unwind_pc. Call
4311 frame_unwind_append_predicate and frame_base_set_default. Don't
4312 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4313 Don't set frameless_function_invocation. Don't set
4314 deprecated_register_bytes, deprecated_register_size,
4315 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4316 * i386-linux-tdep.c: Fix formatting in some comments.
4317 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4318 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4319 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4320 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4321 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4322 redundant parentheses.
4323 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4324 (i386_linux_sigcontext_addr): Use it. Rewrite.
4325 (find_minsym_and_objfile): Change name of second argument.
4326 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4327 changed. Use frame_pc_unwind instead of
4328 DEPRECATED_SAVED_PC_AFTER_CALL.
4329 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4330 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4331 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4332 unwinder.
4333 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4334 "dummy-frame.h".
4335 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4336 (_initialize_i386_cygwin_tdep): New prototype.
4337 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4338 deprecated_frame_chain_valid.
4339 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4340 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4341 Rely on the SVR4 defaults.
4342 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4343 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4344
4345 2003-05-30 Andrew Cagney <cagney@redhat.com>
4346
4347 * infcall.c (call_function_by_hand): Always call
4348 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4349
4350 2003-05-30 Richard Henderson <rth@redhat.com>
4351
4352 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4353 increment.
4354
4355 2003-05-29 Jim Blandy <jimb@redhat.com>
4356
4357 Use gdbarch methods for solib stuff on PowerPC Linux.
4358 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4359 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4360 show through.
4361 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4362 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4363 giving the same effect as the #definitions above.
4364
4365 2003-05-29 Adam Fedor <fedor@gnu.org>
4366
4367 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4368 (find_implementation_from_class): Replace it with the standard
4369 case i.e. do nothing.
4370
4371 2003-05-29 Richard Henderson <rth@redhat.com>
4372
4373 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4374 (alpha_linux_sigtramp_offset): Use it. Make static.
4375 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4376 update for new frame model.
4377 * alpha-mdebug-tdep.c: New file.
4378 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4379 (alpha_osf1_init_abi): Install it.
4380 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4381 (linked_proc_desc_table): Remove.
4382 (alpha_frame_past_sigtramp_frame): Remove.
4383 (alpha_dynamic_sigtramp_offset): Remove.
4384 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4385 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4386 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4387 (push_sigtramp_desc): Remove.
4388 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4389 (alpha_cannot_store_register): Likewise.
4390 (alpha_sigcontext_addr): Remove.
4391 (alpha_find_saved_regs): Remove.
4392 (alpha_frame_init_saved_regs): Remove.
4393 (alpha_init_frame_pc_first): Remove.
4394 (read_next_frame_reg): Remove.
4395 (alpha_frame_saved_pc): Remove.
4396 (alpha_saved_pc_after_call): Remove.
4397 (temp_proc_desc, temp_saved_regs): Remove.
4398 (alpha_about_to_return): Remove.
4399 (cached_proc_desc): Remove.
4400 (alpha_frame_chain): Remove.
4401 (alpha_print_extra_frame_info): Remove.
4402 (alpha_init_extra_frame_info): Remove.
4403 (alpha_frame_locals_address): Remove.
4404 (alpha_frame_args_address): Remove.
4405 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4406 (alpha_push_dummy_frame): Remove.
4407 (alpha_pop_frame): Remove.
4408 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4409 (alpha_read_insn): New.
4410 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4411 for different insn encodings.
4412 (alpha_in_lenient_prologue): Remove.
4413 (struct alpha_sigtramp_unwind_cache): New.
4414 (alpha_sigtramp_frame_unwind_cache): New.
4415 (alpha_sigtramp_register_address): New.
4416 (alpha_sigtramp_frame_this_id): New.
4417 (alpha_sigtramp_frame_prev_register): New.
4418 (alpha_sigtramp_frame_unwind): New.
4419 (alpha_sigtramp_frame_p): New.
4420 (struct alpha_heuristic_unwind_cache): New.
4421 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4422 don't count nop insns that occur between functions.
4423 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4424 heuristic_proc_desc, but without the mdebug wrapping.
4425 (alpha_heuristic_frame_this_id): New.
4426 (alpha_heuristic_frame_prev_register): New.
4427 (alpha_heuristic_frame_unwind): New.
4428 (alpha_heuristic_frame_p): New.
4429 (alpha_heuristic_frame_base_address): New.
4430 (alpha_heuristic_frame_base): New.
4431 (alpha_unwind_dummy_id): New.
4432 (alpha_unwind_pc): New.
4433 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4434 frame related deprecated initializations; install replacements.
4435 (alpha_dump_tdep): Remove.
4436 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4437 (alpha_read_insn, alpha_after_prologue,
4438 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4439 alpha_heuristic_frame_prev_register,
4440 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4441 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4442 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4443 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4444
4445 2003-05-29 Andrew Cagney <cagney@redhat.com>
4446
4447 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4448 dependant on the availability of ASSERT_FUNCTION.
4449 (ASSERT_FUNCTION): Do not define when there is no function name.
4450
4451 2003-05-29 Kevin Buettner <kevinb@redhat.com>
4452
4453 From Jimi X <jimix@watson.ibm.com>:
4454 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4455
4456 2003-05-28 Jim Blandy <jimb@redhat.com>
4457
4458 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4459 argument to ptrace to int; the system headers should give it the
4460 right type, and pointers don't fit in ints on powerpc64-*-*.
4461
4462 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4463
4464 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4465 DW_TAG_catch_block.
4466
4467 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4468
4469 * stabsread.c (dbx_lookup_type): Make static.
4470 (read_type): Ditto.
4471 (add_undefined_type): Ditto.
4472 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4473 not export.
4474
4475 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4476
4477 * hpread.c (hpread_has_name): Make static.
4478 (hpread_psymtab_to_symtab): Ditto.
4479 (file_exists): Ditto.
4480 (hpread_call_pxdb): Ditto.
4481 (hpread_pxdb_needed): Ditto.
4482 (hpread_quick_traverse): Ditto.
4483 (hpread_get_header): Ditto.
4484 (hpread_get_lntt): Ditto.
4485 (hpread_get_slt): Ditto.
4486 (class_of): Ditto.
4487
4488 2003-05-25 Andreas Schwab <schwab@suse.de>
4489
4490 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4491 stack_align and deprecated_extra_stack_alignment_needed.
4492 (m68k_stack_align): Delete.
4493
4494 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4495 (m68k_register_virtual_size): Likewise.
4496 (altos_skip_prologue): Remove obsolete function.
4497 (isi_frame_num_args): Likewise.
4498 (news_frame_num_args): Likewise.
4499 (m68k_fix_call_dummy): Make static.
4500 (m68k_push_dummy_frame): Likewise.
4501 (m68k_pop_frame): Likewise.
4502 (m68k_skip_prologue): Likewise.
4503 (m68k_frame_init_saved_regs): Likewise.
4504 (m68k_saved_pc_after_call): Likewise.
4505 (m68k_get_longjmp_target): Make multi-arch.
4506 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4507 structure. Register m68k_get_longjmp_target if enabled.
4508 * m68k-tdep.h (struct gdbarch_tdep): Define.
4509 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4510
4511 * Makefile.in (config.status): Also depend on configure.tgt
4512 and configure.host.
4513 (m68klinux-tdep.o): Update dependencies.
4514 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4515 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4516 (M68K_LINUX_JB_PC): Define.
4517 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4518 and take additional parameter.
4519 (m68k_linux_sigtramp_saved_pc): Update.
4520 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4521 m68k_linux_pc_in_sigtramp, in_plt_section,
4522 find_solib_trampoline_target.
4523 * config/m68k/tm-linux.h: Don't include any tm headers.
4524 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4525 (JB_ELEMENT_SIZE): Likewise.
4526 (JB_PC): Likewise.
4527 (GET_LONGJMP_TARGET): Likewise.
4528 (IN_SIGTRAMP): Likewise.
4529 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4530
4531 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4532
4533 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4534 (sparc32_push_arguments): Re-implement by calling
4535 sparc32_do_push_arguments.
4536
4537 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4538
4539 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4540 SPARC_O1_REGNUM): New defines.
4541 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4542 (sparc32_store_return_value): New function.
4543 (sparc_extract_struct_value_address): Rewrite to operate on a
4544 regcache.
4545 (sparc_gdbarch_init): Don't set
4546 deprecated_extract_struct_value_address. Set
4547 extract_struct_value_address instead. Don't set
4548 deprecated_extract_return_value and deprecated_store_return_value
4549 for 32-bit targets. Set extract_return_value and
4550 store_return_value instead.
4551 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4552 DEPRECTAED_EXTRACT_RETURN_VALUE,
4553 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4554 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4555 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4556 (sparc_store_return_value): Remove prototype.
4557 (sparc32_store_return_value): New prototype.
4558 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4559 Adjust prototypes.
4560
4561 2003-05-24 Mark Kettenis <kettenis@gnu.org>
4562
4563 * sparcnbsd-tdep.c: Include "gdb_string.h".
4564
4565 2003-05-23 Andrew Cagney <cagney@redhat.com>
4566
4567 * p-valprint.c (pascal_val_print): Replace extract_address with
4568 the inline equivalent extract_unsigned_integer.
4569 * jv-valprint.c (java_value_print): Ditto.
4570 * ada-valprint.c (ada_val_print_1): Ditto.
4571 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4572
4573 2003-05-23 Theodore A. Roth <troth@openavr.org>
4574
4575 * blockframe.c (frameless_look_for_prologue): Remove unused
4576 after_prologue variable.
4577
4578 2003-05-23 Mark Kettenis <kettenis@gnu.org>
4579
4580 * blockframe.c (get_pc_function_start): Rewrite to avoid
4581 asignments in if-statements.
4582
4583 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4584
4585 Committed by Elena Zannoni <ezannoni@redhat.com>.
4586 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4587 files, don't relocate absolute symbols (and do use mst_abs).
4588
4589 2003-05-23 Andrew Cagney <cagney@redhat.com>
4590
4591 * objc-lang.c: Include "gdb_assert.h".
4592 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4593 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4594 (gdb_check, gdb_check_fatal): Delete functions.
4595 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4596 gdb_assert.
4597 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4598 * Makefile.in (objc-lang.o): Update dependencies.
4599
4600 2003-05-22 Ian Lance Taylor <ian@airs.com>
4601
4602 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4603 with fprintf_filtered, not fprintf_unfiltered.
4604
4605 2003-05-22 Andrew Cagney <cagney@redhat.com>
4606
4607 * stack.c (frame_info): Inline extract_address, replacing it with
4608 extract_unsigned_integer.
4609 * findvar.c (unsigned_pointer_to_address): Ditto.
4610 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4611 * dwarf2expr.c (dwarf2_read_address): Ditto.
4612 * frame.c (frame_pc_unwind): Update comment.
4613 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4614
4615 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4616
4617 * infptrace.c (detach): Call print_sys_errmsg rather than
4618 perror_with_name to issue warning message when errno is non-zero
4619 after calling ptrace detach.
4620
4621 2003-05-21 J. Brobecker <brobecker@gnat.com>
4622
4623 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4624 macro definitions from here...
4625 * hppa-tdep.c: ...to there.
4626
4627 2003-05-20 Kevin Buettner <kevinb@redhat.com>
4628
4629 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4630 register_ptrace_addr(). Fix all callers.
4631
4632 2003-05-21 Andreas Schwab <schwab@suse.de>
4633
4634 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4635 dependencies.
4636 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4637 end.
4638 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4639 (_initialize_m68k_linux_tdep): New function.
4640 (m68k_linux_frame_saved_pc): Make static.
4641 (m68k_linux_extract_return_value): Likewise.
4642 (m68k_linux_store_return_value): Likewise.
4643 (m68k_linux_extract_struct_value_address): Likewise.
4644 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4645 Remove.
4646 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4647 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4648 (DEPRECATED_FRAME_SAVED_PC): Remove.
4649
4650 2003-05-20 Kris Warkentin <kewarken@qnx.com>
4651
4652 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4653 regset numbering rather than our own.
4654
4655 2003-05-19 David Carlton <carlton@bactrian.org>
4656
4657 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4658
4659 2003-05-19 David Carlton <carlton@bactrian.org>
4660
4661 Partial fix for PR c++/827.
4662 * cp-support.h: Include symtab.h.
4663 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4664 * cp-namespace.c: Update contributors.
4665 (cp_lookup_symbol_nonlocal): New.
4666 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4667 (lookup_symbol_file): Ditto.
4668 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4669 * block.h: Declare block_scope, block_using, block_global_block.
4670 * block.c (block_scope): New.
4671 (block_using, block_global_block): Ditto.
4672 * Makefile.in (cp_support_h): Depend on symtab_h.
4673 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4674
4675 2003-05-19 David Carlton <carlton@bactrian.org>
4676
4677 * language.h (struct language_defn): Add 'la_value_of_this'
4678 and 'la_lookup_symbol_nonlocal' members.
4679 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4680 lookup_symbol_static, lookup_symbol_global,
4681 lookup_symbol_aux_block.
4682 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4683 if we should search fields of this and how to do static/global
4684 lookup.
4685 (lookup_symbol_aux_block): Make extern.
4686 (basic_lookup_symbol_nonlocal): New.
4687 (lookup_symbol_static, lookup_symbol_global): Ditto.
4688 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4689 'la_lookup_symbol_nonlocal' members.
4690 * c-lang.c (c_language_defn, cplus_language_defn)
4691 (asm_language_defn, minimal_language_defn): Ditto.
4692 * jv-lang.c (java_language_defn): Ditto.
4693 * language.c (unknown_language_defn, auto_language_defn)
4694 (local_language_defn): Ditto.
4695 * m2-lang.c (m2_language_defn): Ditto.
4696 * objc-lang.c (objc_language_defn): Ditto.
4697 * scm-lang.c (scm_language_defn): Ditto.
4698 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4699 * p-lang.c (pascal_language_defn): Ditto for both.
4700 * Makefile.in (f-lang.o): Depend on value_h.
4701 (p-lang.o): Ditto.
4702
4703 2003-05-19 David Carlton <carlton@bactrian.org>
4704
4705 * block.h: Declare block_static_block.
4706 * block.c (block_static_block): New.
4707 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4708 lookup_symbol_aux_local, calling block_static_block instead.
4709 (lookup_symbol_aux_local): Delete 'static_block' argument.
4710
4711 2003-05-19 David Carlton <carlton@bactrian.org>
4712
4713 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4714
4715 2003-05-19 Michal Ludvig <mludvig@suse.cz>
4716
4717 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4718 register numbers mapping.
4719
4720 2003-05-18 Adam Fedor <fedor@gnu.org>
4721
4722 * symtab.c (completion_list_objc_symbol): New function.
4723 (make_symbol_completion_list): Use it to add ObjC symbols
4724 when looking though the list.
4725 (language_search_unquoted_string): New function.
4726 (make_file_symbol_completion_list): Use it.
4727
4728 2003-05-18 Andreas Schwab <schwab@suse.de>
4729
4730 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4731 dependencies.
4732 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4733 as m68k_linux_extract_return_value.
4734 (DEPRECATED_STORE_RETURN_VALUE): Define as
4735 m68k_linux_store_return_value.
4736 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4737 m68k_linux_extract_struct_value_address.
4738 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4739 get_next_frame, get_frame_base, get_frame_pc.
4740 (m68k_linux_frame_saved_pc): Use get_frame_base.
4741 (m68k_linux_extract_return_value): New function.
4742 (m68k_linux_store_return_value): New function.
4743 (m68k_linux_extract_struct_value_address): New function.
4744 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4745
4746 * c-exp.y (typebase): Remove duplicate occurence of
4747 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
4748 of lookup_signed_typename.
4749
4750 2003-05-18 Mark Kettenis <kettenis@gnu.org>
4751
4752 * dwarf2loc.c (find_location_expression): Change type of second
4753 argument to `size_t *'.
4754 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4755 for size variable.
4756
4757 2003-05-18 David Carlton <carlton@bactrian.org>
4758
4759 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4760 'linkage_name'. Add comment.
4761 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4762 'linkage_name'.
4763 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4764 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
4765 (lookup_block_symbol): Ditto.
4766
4767 2003-05-16 Andrew Cagney <cagney@redhat.com>
4768
4769 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
4770 * gdbarch.h, gdbarch.c: Re-generate.
4771 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
4772 * TODO (REGISTER_BYTES): Delete reference.
4773 * alpha-tdep.c (alpha_gdbarch_init): Update.
4774 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4775 * x86-64-tdep.c (x86_64_init_abi): Update.
4776 * vax-tdep.c (vax_gdbarch_init): Update.
4777 * v850-tdep.c (v850_gdbarch_init): Update.
4778 * sparc-tdep.c (sparc_gdbarch_init): Update.
4779 * sh-tdep.c (sh_gdbarch_init): Update.
4780 * s390-tdep.c (s390_gdbarch_init): Update.
4781 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4782 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4783 (ns32k_gdbarch_init_32382): Update.
4784 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4785 * mcore-tdep.c (mcore_gdbarch_init): Update.
4786 * m68k-tdep.c (m68k_gdbarch_init): Update.
4787 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4788 * ia64-tdep.c (ia64_gdbarch_init): Update.
4789 * i386-tdep.c (i386_gdbarch_init): Update.
4790 * i386-linux-tdep.c (i386_linux_init_abi): Update.
4791 * hppa-tdep.c (hppa_gdbarch_init): Update.
4792 * h8300-tdep.c (h8300_gdbarch_init): Update.
4793 * frv-tdep.c (frv_gdbarch_init): Update.
4794 * cris-tdep.c (cris_gdbarch_init): Update.
4795 * avr-tdep.c (avr_gdbarch_init): Update.
4796 * arm-tdep.c (arm_gdbarch_init): Update.
4797 * sparc-tdep.c (sparc_pop_frame): Update.
4798 * rs6000-tdep.c (rs6000_pop_frame): Update.
4799 * remote.c (init_remote_state): Update.
4800 (remote_prepare_to_store): Update.
4801 * remote-vx.c (vx_prepare_to_store): Update.
4802 * remote-sds.c (sds_fetch_registers): Update.
4803 (sds_prepare_to_store): Update.
4804 * remote-array.c: Update.
4805 * regcache.c (init_legacy_regcache_descr): Update.
4806 (init_regcache_descr): Update.
4807 * mips-tdep.c (mips_eabi_extract_return_value): Update.
4808 (mips_o64_extract_return_value): Update.
4809 * irix5-nat.c (fetch_core_registers): Update.
4810 * irix4-nat.c (fetch_core_registers): Update.
4811 * i386-tdep.h: Update.
4812 * hppa-tdep.c (pa_do_registers_info): Update.
4813 (pa_do_strcat_registers_info): Update.
4814 * cris-tdep.c (cris_register_bytes_ok): Update.
4815 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4816 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
4817 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
4818 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
4819 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
4820 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
4821 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
4822 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
4823 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
4824 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
4825 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
4826 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
4827 (REGISTER_BYTES_OK): Update.
4828 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
4829 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
4830
4831 2003-05-16 Ian Lance Taylor <ian@airs.com>
4832
4833 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
4834 (vax_print_insn, print_insn_arg): Remove static functions.
4835 (vax_gdbarch_init): Call set_gdbarch_print_insn with
4836 print_insn_vax from opcodes library.
4837 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
4838
4839 2003-05-15 Andrew Cagney <cagney@redhat.com>
4840
4841 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
4842 * target.h (memory_breakpoint_from_pc): Delete declaration.
4843 * mem-break.c (memory_breakpoint_from_pc): Delete function.
4844 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
4845 * monitor.c (monitor_insert_breakpoint): Use
4846 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
4847 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
4848 * gdbarch.h, gdbarch.c: Re-generate.
4849 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
4850 (sparc_gdbarch_init): Set breakpoint_from_pc to
4851 sparc_breakpoint_from_pc.
4852 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
4853 (BREAKPOINT_FROM_PC): Define.
4854 (sparc_breakpoint_from_pc): Declare.
4855 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
4856 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
4857 (BREAKPOINT_FROM_PC): Define.
4858 (BREAKPOINT): Delete macro.
4859 * target.h: Update comment.
4860 * s390-tdep.c (s390_gdbarch_init): Update comments.
4861 * remote.c: Update comments.
4862 * remote-mips.c: Update comments.
4863 * proc-api.c (write_with_trace): Do not check for a breakpoint.
4864 * mem-break.c: Update comment.
4865 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
4866 (ia64_memory_insert_breakpoint): Update.
4867 * config/sparc/tm-sparc.h: Update comment.
4868 * config/pa/tm-hppa64.h: Update comment.
4869 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4870 (rs6000_breakpoint_from_pc): Update.
4871 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4872 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
4873 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
4874 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
4875 (mips_breakpoint_from_pc): Update.
4876 (mips_dump_tdep): Update.
4877
4878 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
4879 * minsyms.c (lookup_minimal_symbol): Inline
4880 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
4881
4882 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
4883 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4884 * p-lang.c (pascal_printstr): Ditto.
4885 * objc-lang.c (objc_printstr): Ditto.
4886 * m2-lang.c (m2_printstr): Ditto.
4887 * jv-valprint.c (java_print_value_fields): Ditto.
4888 * f-lang.c (f_printstr): Ditto.
4889 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
4890 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
4891 for repeat_count_threshold.
4892 * Makefile.in (cp-valprint.o): Update dependencies.
4893
4894 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
4895
4896 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
4897 (examine_prologue): Support looking through leaf functions, knowing
4898 they start with mov r2,r12. Support skipping over indirect stores
4899 of the input registers. Upon hitting a non-nop branch instruction
4900 or predicated instruction, bail out by setting lim_pc to the current
4901 pc value in the loop. At the end, if the lim_pc value is still
4902 beyond our calculated value and we have trust_limit set,
4903 use the lim_pc value.
4904
4905 2003-05-15 Andrew Cagney <cagney@redhat.com>
4906
4907 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
4908 generic_find_dummy_frame.
4909 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
4910 (deprecated_generic_find_dummy_frame): Update.
4911 (deprecated_read_register_dummy): Update.
4912 * frame.c (deprecated_generic_get_saved_register): Update.
4913
4914 2003-05-15 Theodore A. Roth <troth@openavr.org>
4915
4916 * avr-tdep.c (avr_breakpoint_from_pc): New function.
4917 (avr_gdbarch_init): Set breakpoint_from_pc method.
4918
4919 2003-05-15 Andrew Cagney <cagney@redhat.com>
4920
4921 * regcache.c (build_regcache): Set deprecated_register_valid
4922 directly.
4923 (deprecated_grub_regcache_for_register_valid): Delete function.
4924 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
4925 declaration.
4926
4927 2003-05-15 David Carlton <carlton@bactrian.org>
4928
4929 Committed by Elena Zannoni <ezannoni@redhat.com>
4930 * symtab.c (lookup_symbol_aux): Delete calls to
4931 lookup_symbol_aux_minsyms.
4932 (lookup_symbol_aux_minsyms): Comment out function and
4933 prototype. Delete lookup by mangled name.
4934
4935 2003-05-14 Kevin Buettner <kevinb@redhat.com>
4936
4937 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
4938 correctly indicate an empty stack and ``stack_allocated'' to the
4939 indicate the number of elements initially allocated.
4940 (dwarf_expr_grow_stack): Simplify method for computing new
4941 stack size. Don't loop infinitely if ``stack_len'' is zero.
4942 (execute_stack_op): Move ``ctx->in_reg'' initialization
4943 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
4944 be used in conjuction with DW_OP_piece. Revise error message
4945 accordingly.
4946
4947 2003-05-14 Theodore A. Roth <troth@openavr.org>
4948
4949 * MAINTAINERS: Update my email address.
4950 * avr-tdep.c: Ditto.
4951
4952 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
4953
4954 * symtab.h (enum domain_enum): Rename from namespace_enum.
4955 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
4956 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
4957 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
4958 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
4959 TYPES_NAMESPACE, METHODS_NAMESPACE.
4960 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
4961 (struct symbol, struct partial_symbol): Rename field
4962 'namespace_enum namespace' to 'domain_enum domain'.
4963 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
4964 Delete old define kludge for namespace.
4965
4966 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
4967 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
4968 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
4969 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
4970 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
4971 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
4972 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
4973 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
4974 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
4975 occurrences of the above.
4976
4977 2003-05-14 Ian Lance Taylor <ian@airs.com>
4978
4979 * Makefile.in (install-only): Use $(SHELL) when running
4980 mkinstalldirs.
4981
4982 2003-05-13 Ian Lance Taylor <ian@airs.com>
4983
4984 * MAINTAINERS (write after approval): Add myself.
4985
4986 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
4987 second and third arguments.
4988 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4989 * ser-unix.c (_initialize_ser_hardwire): Likewise.
4990
4991 2003-05-13 Andrew Cagney <cagney@redhat.com>
4992
4993 * defs.h (store_address): Delete declaration.
4994 findvar.c (store_address): Delete function.
4995 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
4996 store_unsigned_integer.
4997 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
4998 * v850-tdep.c (v850_push_arguments): Ditto.
4999 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5000 * sh-tdep.c (sh64_get_saved_register): Ditto.
5001 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5002 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5003 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5004 (mips_get_saved_register): Ditto.
5005 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5006 (find_func_descr, ia64_push_arguments): Ditto.
5007 * i386-tdep.c (i386_push_arguments): Ditto.
5008 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5009 * frv-tdep.c (frv_push_arguments): Ditto.
5010 * frame.c (legacy_saved_regs_prev_register): Ditto.
5011 (deprecated_generic_get_saved_register): Ditto.
5012 * findvar.c (unsigned_address_to_pointer): Ditto.
5013 * dwarf2read.c (dwarf2_const_value): Ditto.
5014 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5015 * alpha-tdep.c (alpha_push_arguments): Ditto.
5016
5017 2003-05-12 J. Brobecker <brobecker@gnat.com>
5018
5019 * NEWS: Mention that the hppa-hpux port has been partially
5020 multiarched (32bit ABIT only, so far).
5021
5022 2003-05-11 Andrew Cagney <cagney@redhat.com>
5023
5024 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5025 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5026 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5027 sim/testsuite/sim/arm/misaligned2.ms, and
5028 sim/testsuite/sim/arm/misaligned3.ms.
5029 * disasm.h (struct ui_file): Add opaque struct declaration.
5030 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5031 * frame.h (struct ui_file): Ditto.
5032
5033 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5034
5035 * value.h: Pretty print.
5036
5037 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5038
5039 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5040
5041 2003-05-08 Andrew Cagney <cagney@redhat.com>
5042
5043 * regcache.h (max_register_size): Delete declaration.
5044 * regcache.c (max_register_size): Delete function.
5045 (struct regcache_descr): Delete field "max_register_size".
5046 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5047 registers fit in MAX_REGISTER_SIZE.
5048 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5049 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5050 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5051 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5052 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5053 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5054 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5055 * dve3900-rom.c, hppa-tdep.c: Ditto.
5056
5057 2003-05-08 David Carlton <carlton@math.stanford.edu>
5058
5059 * valops.c (push_word): Fix typo.
5060
5061 2003-05-08 Andrew Cagney <cagney@redhat.com>
5062
5063 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5064 * gdbarch.h: Re-generate.
5065 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5066 (legacy_max_register_raw_size): Delete declaration.
5067 * regcache.c (legacy_max_register_raw_size): Delete function.
5068 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5069 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5070 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5071 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5072 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5073 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5074 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5075 * findvar.c, dwarf2cfi.c: Ditto.
5076
5077 2003-05-08 Andrew Cagney <cagney@redhat.com>
5078
5079 * mips-tdep.c (read_signed_register): New function, moved to here
5080 from "regcache.c".
5081 (read_signed_register_pid): Ditto.
5082 * regcache.c (read_signed_register_pid): Delete function, moved to
5083 "mips-tdep.c".
5084 (read_signed_register): Ditto.
5085 * regcache.h (read_signed_register): Delete declaration.
5086 (read_signed_register_pid): Delete declaration.
5087
5088 2003-05-08 Andrew Cagney <cagney@redhat.com>
5089
5090 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5091 * gdbarch.h: Re-generate.
5092 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5093 (legacy_max_register_virtual_size): Delete declaration.
5094 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5095 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5096 * tracepoint.c (memrange_sortmerge): Ditto.
5097 * sparc-tdep.c (sparc_print_registers): Ditto.
5098 * regcache.c (legacy_max_register_virtual_size): Delete function.
5099
5100 2002-05-08 J. Brobecker <brobecker@gnat.com>
5101
5102 * fork-child.c (escape_bang_in_quoted_argument): New function.
5103 (fork_inferior): Escape '!' characters in quoted arguments
5104 only when needed.
5105
5106 2003-05-08 J. Brobecker <brobecker@gnat.com>
5107
5108 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5109 the language of the CU is not currently supported by GDB.
5110
5111 2003-05-08 J. Brobecker <brobecker@gnat.com>
5112
5113 * defs.h (language): Add language_minimal enum value.
5114 * c-lang.c (minimal_language_defn): New language definition.
5115 (_initialize_c_language): Add the new minimal language to the list
5116 of languages known to GDB.
5117
5118 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5119
5120 * frame.c (get_frame_type): Don't attempt to lazily initialize
5121 frame's unwinder for legacy frames.
5122
5123 2003-05-07 Andrew Cagney <cagney@redhat.com>
5124
5125 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5126 and "regcache" parameters.
5127 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5128
5129 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5130
5131 * dwarf2read.c (dwarf_decode_lines): Only use output of
5132 check_cu_functions() when calling record_line(). Do not update
5133 the current address.
5134
5135 2003-05-07 Andrew Cagney <cagney@redhat.com>
5136
5137 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5138 code.
5139
5140 2003-05-07 Jim Blandy <jimb@redhat.com>
5141
5142 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5143 'maint info symtabs' and 'maint info psymtabs'.
5144 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5145 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5146 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5147 Declarations updated.
5148 * maint.c (maintenance_list_command): Delete.
5149 (_initialize_maint_cmds): Update calls to add_cmd.
5150 * gdbcmd.h (maintenancelistlist): Delete declaration.
5151 * cli/cli-cmds.c (maintenancelistlist): Delete.
5152 (init_cmd_lists): Don't initialize it.
5153 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5154
5155 2003-05-07 Andrew Cagney <cagney@redhat.com>
5156
5157 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5158 "regcache".
5159 (d10v_print_registers_info): Update.
5160 (d10v_dmap_register, d10v_imap_register): Delete functions.
5161 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5162 and "imap_register".
5163 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5164 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5165 * arch-utils.c (generic_remote_translate_xfer_address): Add
5166 "regcache" and "gdbarch" parameters.
5167 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5168 parameter. Change class to multi-arch.
5169 * gdbarch.h, gdbarch.c: Re-generate.
5170 * remote.c (remote_xfer_memory): Use
5171 gdbarch_remote_translate_xfer_address.
5172
5173 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5174
5175 * infrun.c (prev_pc): Move declaration ahead of proceed().
5176 (proceed): Refresh prev_pc value before resuming.
5177 (stop_stepping): Remove code to refresh prev_pc.
5178
5179 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5180
5181 * nto-tdep.c: Removed stray comment.
5182
5183 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5184
5185 * i386-nto-tdep.c: Fix old K&R function definitions.
5186 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5187 Also change add_show_from_set() call to add_setshow_cmd().
5188 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5189
5190 2003-05-05 Andrew Cagney <cagney@redhat.com>
5191
5192 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5193 (fprint_dummy_frames): New function.
5194 (maintenance_print_dummy_frames): New function.
5195 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5196 * frame.c (fprint_frame_id): Make global.
5197 * frame.h (fprint_frame_id): Declare.
5198 * Makefile.in (dummy-frame.o): Update dependencies.
5199
5200 2003-05-05 Andrew Cagney <cagney@redhat.com>
5201
5202 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5203 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5204 SIZEOF_CALL_DUMMY_WORDS.
5205 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5206 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5207 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5208 CALL_DUMMY_BREAKPOINT_OFFSET.
5209 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5210 CALL_DUMMY_START_OFFSET.
5211 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5212 * gdbarch.h, gdbarch.c: Re-generate.
5213 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5214 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5215 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5216 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5217 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5218 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5219 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5220 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5221 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5222 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5223 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5224 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5225 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5226 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5227 * config/sparc/tm-sparc.h: Update.
5228
5229 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5230
5231 * configure.tgt: Add i[3456]86-*-nto*.
5232 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5233 * nto-tdep.c: New file. Neutrino target support routines.
5234 * nto-tdep.h: New file. Neutrino target header.
5235 * config/tm-qnxnto.h: New file.
5236 * config/i386/i386nto.mt: New file.
5237 * config/i386/tm-i386nto.h: New file.
5238
5239 2003-05-04 Andrew Cagney <cagney@redhat.com>
5240
5241 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5242 (load_infrun_state): Ditto.
5243 (struct thread_info): Drop "prev_func_name" field.
5244 * thread.c (load_infrun_state): Update.
5245 (save_infrun_state): Update.
5246 * infrun.c (prev_func_name): Delete variable.
5247 (init_wait_for_inferior): Do not clear prev_func_name.
5248 (stop_stepping, keep_going, context_switch): Do not swap
5249 prev_func_name.
5250 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5251 instead of PC_IN_SIGTRAMP.
5252
5253 2003-05-04 Andrew Cagney <cagney@redhat.com>
5254
5255 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5256 REGISTER_BYTE with register_offset_hack.
5257 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5258 that REGISTER_BYTE is consistent with the regcache.
5259 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5260 * gdbarch.h, gdbarch.c: Regenerate.
5261
5262 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5263
5264 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5265 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5266
5267 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5268
5269 2003-05-03 J. Brobecker <brobecker@gnat.com>
5270
5271 From Thierry Schneider <tpschneider1@yahoo.com>
5272 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5273 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5274 (mi-cmd-symbol.o): Add rule.
5275
5276 2003-05-03 Andrew Cagney <cagney@redhat.com>
5277
5278 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5279 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5280 * gdbarch.h, gdbarch.c: Re-generate.
5281 * d10v-tdep.c (d10v_push_dummy_code): New function.
5282 (d10v_gdbarch_init): Set push_dummy_code.
5283 * infcall.c (legacy_push_dummy_code): New function.
5284 (generic_push_dummy_code): New function.
5285 (push_dummy_code): New function.
5286 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5287 instead of dummy_addr, to push_dummy_call. Move call to
5288 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5289 switch.
5290 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5291
5292 2003-05-03 Andrew Cagney <cagney@redhat.com>
5293
5294 * disasm.h (print_insn): Declare.
5295 * disasm.c (init_gdb_disassemble_info): New function.
5296 (gdb_disassembly): Call init_gdb_disassemble_info.
5297 (gdb_print_insn): New function.
5298 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5299 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5300 * mcore-tdep.c: Include "disasm.h"
5301 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5302 * d10v-tdep.c: Include "disasm.h".
5303 (display_trace): Call gdb_print_insn, instead of print_insn.
5304 (print_insn): Delete function.
5305 * printcmd.c: Include "disasm.h".
5306 (print_insn): Delete function.
5307 (print_formatted): Call gdb_print_insn, instead of print_insn.
5308 * Makefile.in (printcmd.o): Update dependencies.
5309 (mcore-tdep.o, d10v-tdep.o): Ditto.
5310
5311 2003-05-02 Andrew Cagney <cagney@redhat.com>
5312
5313 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5314 PC_REGNUM, re-indent.
5315 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5316 PC_REGNUM isn't set.
5317
5318 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5319 * gdbarch.h, gdbarch.c: Re-generate.
5320 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5321 register_virtual_size, pc_regnum, or register_bytes.
5322 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5323 (d10v_register_type): Use D10V_PC_REGNUM.
5324 (d10v_print_registers_info, d10v_read_pc): Ditto.
5325 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5326 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5327
5328 2003-05-02 David Carlton <carlton@bactrian.org>
5329
5330 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5331 the name with mstrsave.
5332
5333 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5334
5335 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5336 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5337 (host_charset_name, target_charset_name): New vars for use by
5338 set/show commands.
5339 (host_charset_enum, target_charset_enum): New enums for set/show
5340 commands.
5341 (set_charset_sfunc, set_host_charset_sfunc,
5342 set_target_charset_sfunc): New functions.
5343 (set_host_charset, set_target_charset): Make static.
5344 (list_charsets, set_host_charset_command,
5345 set_target_charset_command): Delete functions.
5346 (show_charset_command): Rewrite as....
5347 (show_charset): Hook this up with the set/show command mechanism.
5348 (_initialize_charset): Change names of charsets to match the
5349 set/show enums. Use host_charset_name and target_charset_name.
5350 Use set/show mechanism for charset, host-charset, target-charset
5351 commands. Do not make 'show host-charset' and 'show
5352 target-charset' be aliases of 'show charset'.
5353
5354 * charset.h (set_host_charset, set_target_charset): Don't export,
5355 they are not used outside the file.
5356
5357 2003-05-01 Andrew Cagney <cagney@redhat.com>
5358
5359 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5360 (gdb_disassembly): Make "di" non static, always initialize and
5361 cleanup. Always use dis_asm_read_memory.
5362 (gdb_dis_asm_read_memory): Delete function.
5363
5364 2003-05-01 Andrew Cagney <cagney@redhat.com>
5365
5366 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5367 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5368
5369 2003-04-30 Andrew Cagney <cagney@redhat.com>
5370
5371 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5372 "tm_print_insn_info".
5373 (TARGET_PRINT_INSN_INFO): Delete macro.
5374 (dis_asm_read_memory): Delete function declaration.
5375 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5376 (tm_print_insn_info): Delete variable definition.
5377 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5378 * gdbarch.h, gdbarch.c: Re-generate.
5379 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5380 "deprecated_tm_print_insn_info".
5381 * mcore-tdep.c (mcore_dump_insn): Ditto.
5382 * mips-tdep.c (mips_gdbarch_init): Ditto.
5383 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5384 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5385 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5386 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5387 instead of TARGET_PRINT_INSN_INFO, add comment.
5388 * s390-tdep.c (s390_get_frame_info): Instead of
5389 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5390 (s390_check_function_end, s390_is_sigreturn): Ditto.
5391 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5392 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5393 * disasm.c: Include "gdbcore.h".
5394 (_initialize_disasm): New function, initialize
5395 "deprecated_tm_print_insn_info".
5396 (deprecated_tm_print_insn_info): New variable.
5397 (dis_asm_read_memory): Moved from "corefile.c", made static.
5398 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5399 * Makefile.in (disasm.o): Update dependencies.
5400
5401 2003-04-30 Andrew Cagney <cagney@redhat.com>
5402
5403 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5404
5405 2003-04-29 Adam Fedor <fedor@gnu.org>
5406
5407 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5408 * infcall.c (find_function_addr): Make non-static.
5409 * infcall.h (find_function_addr): Declare.
5410 * Makefile.in (eval.o): Update dependencies.
5411
5412 2003-04-28 Adam Fedor <fedor@gnu.org>
5413
5414 * symtab.c (symbol_find_demangled_name): Check for and demangle
5415 ObjC symbols.
5416 (symbol_init_demangled_name): Init for language_objc as well.
5417
5418 2003-04-28 Andrew Cagney <cagney@redhat.com>
5419
5420 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5421 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5422 * gdbarch.h, gdbarch.c: Re-generate.
5423 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5424 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5425 * inferior.h (deprecated_read_fp): Rename read_fp.
5426 (generic_target_read_fp): Delete declaration.
5427 * regcache.c (generic_target_read_fp): Delete function.
5428 (deprecated_read_fp): Replace read_fp, use
5429 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5430 * d10v-tdep.c (d10v_read_fp): Delete function.
5431 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5432
5433 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5434 deprecated_target_read_fp to generic_target_read_fp.
5435 * sh-tdep.c (sh_gdbarch_init): Ditto.
5436 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5437 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5438 * frv-tdep.c (frv_gdbarch_init): Ditto.
5439
5440 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5441 deprecated_fp_regnum.
5442 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5443 * vax-tdep.c (vax_gdbarch_init): Ditto.
5444 * v850-tdep.c (v850_gdbarch_init): Ditto.
5445 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5446 * sh-tdep.c (sh_gdbarch_init): Ditto.
5447 * s390-tdep.c (s390_gdbarch_init): Ditto.
5448 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5449 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5450 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5451 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5452 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5453 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5454 * i386-tdep.c (i386_gdbarch_init): Ditto.
5455 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5456 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5457 * frv-tdep.c (frv_gdbarch_init): Ditto.
5458 * cris-tdep.c (cris_gdbarch_init): Ditto.
5459 * avr-tdep.c (avr_gdbarch_init): Ditto.
5460 * arm-tdep.c (arm_gdbarch_init): Ditto.
5461 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5462
5463 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5464 * v850-tdep.c (v850_gdbarch_init): Ditto.
5465 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5466 * sh-tdep.c (sh_gdbarch_init): Ditto.
5467 * s390-tdep.c (s390_gdbarch_init): Ditto.
5468 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5469 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5470 * mips-tdep.c (mips_gdbarch_init): Ditto.
5471 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5472 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5473 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5474 * frv-tdep.c (frv_gdbarch_init): Ditto.
5475 * avr-tdep.c (avr_gdbarch_init): Ditto.
5476 * arm-tdep.c (arm_gdbarch_init): Ditto.
5477
5478 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5479 DEPRECATED_FP_REGNUM.
5480 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5481 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5482 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5483 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5484 (sparc32_register_virtual_type): Ditto.
5485 * sh-tdep.c (sh64_frame_chain): Ditto.
5486 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5487 (sh_nofp_frame_init_saved_regs): Ditto.
5488 (sh64_nofp_frame_init_saved_regs): Ditto.
5489 (sh_fp_frame_init_saved_regs): Ditto.
5490 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5491 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5492 * procfs.c (procfs_fetch_registers): Ditto.
5493 (procfs_store_registers): Ditto.
5494 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5495 (store_inferior_registers, fetch_core_registers): Ditto.
5496 (fetch_kcore_registers, clear_regs): Ditto.
5497 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5498 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5499 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5500 * nlm/i386.c (do_status): Ditto.
5501 * mipsv4-nat.c (supply_gregset): Ditto.
5502 * mips-tdep.c: Ditto for comments.
5503 * mips-nat.c (fetch_inferior_registers): Ditto.
5504 (store_inferior_registers, fetch_core_registers): Ditto.
5505 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5506 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5507 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5508 (i386_do_pop_frame, i386_register_type): Ditto.
5509 * hppa-tdep.c (hppa_frame_chain): Ditto.
5510 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5511 (hppa_pop_frame, hppa_read_fp): Ditto.
5512 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5513 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5514 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5515 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5516 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5517 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5518 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5519 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5520 * blockframe.c: Ditto for comments.
5521 * arch-utils.h: Ditto for comments.
5522 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5523 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5524 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5525 * alpha-tdep.h: Ditto for comments.
5526 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5527 (alpha_cannot_store_register): Ditto.
5528 (alpha_push_dummy_frame): Ditto.
5529 * alpha-nat.c (supply_gregset): Ditto.
5530
5531 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5532 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5533 * config/sparc/tm-sparc.h: Update comment.
5534
5535 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5536 deprecated_read_fp instead of TARGET_READ_FP.
5537 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5538 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5539 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5540 deprecated_read_fp instead of read_fp.
5541 * s390-tdep.c (s390_push_arguments): Ditto.
5542 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5543 * frame.h: Ditto in comments.
5544 * frame.c (legacy_get_prev_frame): Ditto.
5545 * dummy-frame.c (dummy_frame_this_id): Ditto.
5546 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5547
5548 2003-04-28 Andrew Cagney <cagney@redhat.com>
5549
5550 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5551 * gdbarch.h, gdbarch.c: Re-generate.
5552 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5553 * vax-tdep.c (_initialize_vax_tdep): Update.
5554 * v850-tdep.c (_initialize_v850_tdep): Update.
5555 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5556 * s390-tdep.c (_initialize_s390_tdep): Update.
5557 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5558 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5559 * mips-tdep.c (_initialize_mips_tdep): Update.
5560 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5561 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5562 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5563 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5564 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5565 * frv-tdep.c (_initialize_frv_tdep): Update.
5566 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5567 (_initialize_cris_tdep): Update.
5568 * arch-utils.c (legacy_print_insn): Update.
5569 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5570
5571 2003-04-26 Adam Fedor <fedor@gnu.org>
5572
5573 * linespec.c (decode_objc): New function to decode ObjC calls
5574 (decode_line_1): Check for ObjC calls (using decode_objc)
5575 * Makefile (linespec.o): Update dependencies.
5576
5577 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
5578
5579 * breakpoint.h (struct breakpoint_ops): New.
5580 (struct breakpoint): Add ops member.
5581
5582 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5583 (mention): Use new breakpoint ops member.
5584 (set_raw_breakpoint): Initialize ops field to NULL.
5585 (print_exception_catchpoint, print_one_exception_catchpoint)
5586 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5587 (gnu_v3_exception_catchpoint_ops): New.
5588 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5589
5590 2003-04-25 Adam Fedor <fedor@gnu.org>
5591
5592 * Makefile.in (COMMON_OBS): Add objc-lang.o
5593
5594 2003-04-25 Andrew Cagney <cagney@redhat.com>
5595
5596 * d10v-tdep.c (print_insn): Delete function.
5597 (display_trace): Use TARGET_PRINT_INSN.
5598 (_initialize_d10v_tdep): Do not set tm_print_insn.
5599 (d10v_gdbarch_init): Set print_insn.
5600
5601 2003-04-25 Andrew Cagney <cagney@redhat.com>
5602
5603 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5604 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5605 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5606 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5607 (nr_dmap_regs, a0_regnum): ... new functions.
5608 (d10v_print_registers_info): Use a0_regnum, use register_size.
5609 (d10v_register_byte): Delete function.
5610 (d10v_register_raw_size): Delete function.
5611 (d10v_register_type): Use a0_regnum.
5612 (d10v_print_registers_info): Use a0_regnum.
5613 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5614 (d10v_gdbarch_init): Do not set register_byte or
5615 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5616 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5617 extract_address.
5618 (trace_command): Use XCALLOC.
5619 (print_insn): Delete reference to tm_print_insn.
5620 (saved_regs_unwinder): Use store_unsigned_integer instead of
5621 store_address.
5622 * frame.h (FRAME_OBSTACK_CALLOC): Define
5623
5624 2003-04-25 David Carlton <carlton@bactrian.org>
5625
5626 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5627
5628 2003-04-24 Adam Fedor <fedor@gnu.org>
5629
5630 * objc-lang.c: Include "valprint.h"
5631 * Makefile.in (objc-lang.o): Update dependencies.
5632
5633 2003-04-24 Adam Fedor <fedor@gnu.org>
5634
5635 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5636 architecture dependant compilation and mark as unimplemented
5637 (until they get put in the gdbarch vector).
5638
5639 2003-04-23 David Carlton <carlton@bactrian.org>
5640
5641 * cp-support.c (cp_find_first_component): Accept 'operator' in
5642 more locations.
5643
5644 2003-04-23 Andrew Cagney <cagney@redhat.com>
5645
5646 * infcall.c (call_function_by_hand): Eliminate redundant
5647 indentation. Move "saved_async" and "old_cleanups" to where they
5648 are needed.
5649
5650 2003-04-23 Andrew Cagney <cagney@redhat.com>
5651
5652 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5653 and "buffer". Move the "name" code to where it is needed.
5654
5655 2003-04-23 Andrew Cagney <cagney@redhat.com>
5656
5657 * infcall.c (call_function_by_hand): Move variables "start_sp",
5658 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5659 code to ON_STACK switch branch.
5660
5661 2003-04-23 Andrew Cagney <cagney@redhat.com>
5662
5663 * infcall.c (call_function_by_hand): Make declaration of "i",
5664 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5665 lint.
5666
5667 2003-04-23 Andrew Cagney <cagney@redhat.com>
5668
5669 * infcall.c (call_function_by_hand): Delete variable
5670 "n_method_args". Localize "param_type"'s declaration to the loop
5671 that it is used. Reinstate code assigning to said variable -
5672 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5673 Rationalize code using "param_type".
5674
5675 2003-04-22 Andrew Cagney <cagney@redhat.com>
5676
5677 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5678 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5679 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5680 to DEPRECATED_PUSH_RETURN_ADDRESS.
5681
5682 2003-04-22 Kevin Buettner <kevinb@redhat.com>
5683
5684 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5685 on the DWARF2 register number prior to fetching a register.
5686
5687 2003-04-22 J. Brobecker <brobecker@gnat.com>
5688
5689 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5690 Update all the tests using SOFT_FLOAT considering the fact that
5691 this macro was always set to 0.
5692 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5693 considering the fact that this macro was always set to 0.
5694 * hppa-tdep.h (hppa_store_return_value): Likewise.
5695 (hppa_extract_return_value): Likewise.
5696
5697 2003-04-22 J. Brobecker <brobecker@gnat.com>
5698
5699 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5700 the hppa-pro target only.
5701
5702 2003-04-21 J. Brobecker <brobecker@gnat.com>
5703
5704 Ongoing multi-arch conversion effort for HP/UX:
5705 * config/pa/tm-hppa.h: Move all macro that are no longer
5706 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5707 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5708
5709 2003-04-21 J. Brobecker <brobecker@gnat.com>
5710
5711 * config/pa/tm-hppa.h: Obsolete a section that was only used
5712 for hppa-pro.
5713
5714 2003-04-21 J. Brobecker <brobecker@gnat.com>
5715
5716 Ongoing multi-arch conversion for HP/UX.
5717 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5718 if already defined (allows hppa64 to stay non-multiarched for now).
5719 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5720
5721 2003-04-21 Andrew Cagney <cagney@redhat.com>
5722
5723 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5724
5725 2003-04-21 Andrew Cagney <cagney@redhat.com>
5726
5727 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5728 "i386_num_mmx_regs".
5729
5730 2003-04-21 Andrew Cagney <cagney@redhat.com>
5731
5732 * infcall.c: New file.
5733 * infcall.h: New file.
5734 * valarith.c: Include "infcall.h".
5735 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5736 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5737 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5738 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5739 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5740 (SFILES): Add "infcall.c"
5741 (COMMON_OBS): Add "infcall.o".
5742 (infcall.o): Specify dependencies.
5743 * value.h (call_function_by_hand): Delete declaration.
5744 * inferior.h (run_stack_dummy): Delete declaration.
5745 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5746 (run_stack_dummy): Move to "infcall.c", merged into
5747 call_function_by_hand.
5748 * valops.c (call_function_by_hand): Moved to "infcall.c".
5749 (find_function_addr, value_arg_coerce): Ditto.
5750 (unwindonsignal_p, coerce_float_to_double): Ditto.
5751 (_initialize_valops): Move "set/show coerce-float-to-double", and
5752 "set/show unwindonsignal" commands to "infcall.c".
5753 * v850-tdep.c, target.h: Update comments.
5754 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5755 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5756 (sh64_init_extra_frame_info): Update comments.
5757 * mn10300-tdep.c: Update comments.
5758 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5759 * config/sparc/tm-sparc.h: Update comments.
5760 * breakpoint.h: Update comments.
5761 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5762 * arm-tdep.c: Update comment.
5763
5764 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5765
5766 * i386-tdep.c (i386_num_register_names): New variable.
5767 (i386_num_mmx_regs): Renamed from mmx_num_regs.
5768 (MM0_REGNUM): Remove redundant parentheses in define.
5769 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
5770 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
5771 i386_mxcsr_regnum_p): Remove redundant parentheses.
5772 (i386_register_name): Use i386_num_register_names.
5773
5774 * i386-tdep.c (i386_extract_return_value,
5775 i386_store_return_value): Correct check for availability of
5776 floating-point registers.
5777
5778 * i386-tdep.c (i386_frame_num_args): Remove function.
5779 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
5780
5781 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
5782 mmx_regnum_to_fp_regnum. Adjust all callers.
5783
5784 * i386-tdep.c (i386_get_longjmp_target): Use
5785 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
5786 and TARGET_CHAR_BIT. Use extract_typed_address instead of
5787 extract_address.
5788
5789 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5790
5791 * core-regset.c: Update comments to reflect reality. Re-order
5792 includes.
5793 (fetch_core_registers): Use switch instead of if. Remove
5794 redundant prototype.
5795
5796 2003-04-18 Jim Blandy <jimb@redhat.com>
5797
5798 * s390-tdep.c (s390_frame_align): New function.
5799 (s390_gdbarch_init): Register it with the gdbarch object.
5800
5801 2003-04-17 Richard Henderson <rth@redhat.com>
5802
5803 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
5804
5805 2003-04-17 Michael Snyder <msnyder@redhat.com>
5806 Karen Bennet <bennet@redhat.com>
5807
5808 Committed by Elena Zannoni <ezannoni@redhat.com>
5809 * gdb_gcore.sh: New script to create a core dump of a process.
5810
5811 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
5812
5813 * values.c (value_being_returned): Don't fetch the return
5814 value if the return type is void.
5815
5816 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5817
5818 * thread-db.c: Reindented.
5819
5820 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5821
5822 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
5823 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
5824 as types.
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850 2003-04-16 Kevin Buettner <kevinb@redhat.com>
5851
5852 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
5853 the size of ``long double'' to 16, instead of 8.
5854
5855 2003-04-16 Mark Kettenis <kettenis@gnu.org>
5856
5857 * i386-linux-nat.c: Add some whitespace to make things more
5858 readable.
5859 (fetch_register, store_register, fetch_inferior_registers,
5860 store_inferior_registers): Get rid of assignment in if-statement.
5861 (store_register): Fix typo in error message.
5862
5863 2003-04-16 Andrew Cagney <cagney@redhat.com>
5864
5865 * utils.c (xmmalloc): Always allocate something, matches
5866 libiberty/xmalloc's semantics.
5867 (xmrealloc, xmcalloc): Ditto.
5868
5869 2003-04-16 Andrew Cagney <cagney@redhat.com>
5870
5871 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5872 update comments.
5873 (get_frame_type): Initialize unwind and type when needed.
5874 (get_frame_id, frame_register_unwind): Ditto.
5875
5876 2003-04-16 Andrew Cagney <cagney@redhat.com>
5877
5878 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
5879 obsolete.
5880 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
5881 * sparcl-stub.c: Obsolete file.
5882 * config/sparc/tm-sparclet.h: Obsolete file.
5883 * sparclet-stub.c: Obsolete file.
5884 * sparclet-rom.c: Obsolete file.
5885 * sparcl-tdep.c: Obsolete file.
5886 * config/sparc/tm-sparclite.h: Obsolete file.
5887 * config/sparc/sparclite.mt: Obsolete file.
5888 * config/sparc/sparclet.mt: Obsolete file.
5889 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
5890 sparc86x-*-* obsolete.
5891
5892 2003-04-15 David Carlton <carlton@math.stanford.edu>
5893
5894 * Makefile.in (SFILES): Add cp-namespace.c.
5895 (COMMON_OBS): Add cp-namespace.o.
5896 (block.o): Depend on gdb_obstack_h and cp_support_h.
5897 (buildsym.o): Depend on cp_support_h.
5898 (cp-namespace.o): New.
5899 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
5900 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
5901 (dwarf2read.o): Depend on cp_support_h.
5902 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
5903 * dwarf2read.c (process_die): Set processing_has_namespace_info,
5904 processing_current_namespace.
5905 (read_namespace): Update processing_current_namespace; check for
5906 anonymous namespaces.
5907 (dwarf2_name): New function.
5908 (dwarf2_extension): Ditto.
5909 * cp-support.h: Update copyright, contributors.
5910 Add inclusion guards.
5911 Add opaque declaration for structs obstack, block, symbol.
5912 (struct using_direct): New struct.
5913 Add declarations for cp_find_first_component,
5914 cp_entire_prefix_len, processing_has_namespace_info,
5915 processing_current_namespace, cp_is_anonymous,
5916 cp_add_using_directive, cp_initialize_namespace,
5917 cp_finalize_namespace, cp_set_block_scope,
5918 cp_scan_for_anonymous_namespaces.
5919 * cp-namespace.c: New file.
5920 * cp-support.c: Update copyright.
5921 Include ctype.h, gdb_assert.h, gdbcmd.h.
5922 New variable maint_cplus_cmd_list.
5923 (cp_find_first_component): New function.
5924 (cp_entire_prefix_len, maint_cplus_command)
5925 (first_component_command, _initialize_cp_support): Ditto.
5926 * buildsym.c: Include cp-support.h.
5927 New variable using_list.
5928 (add_symbol_to_list): Check for anonymous namespaces.
5929 (finish_block): Set block's scope.
5930 (start_symtab): Initialize C++ namespace support.
5931 (end_symtab): Finalize C++ namespace support.
5932 * block.h: Add opaque declarations for structs
5933 block_namespace_info, using_direct, and obstack.
5934 Add declarations for block_set_scope and block_set_using.
5935 (struct block): Add 'language_specific' member.
5936 (BLOCK_NAMESPACE): New macro.
5937 * block.c: Include gdb_obstack.h and cp-support.h.
5938 (struct block_namespace_info): New struct.
5939 (block_set_scope): New function.
5940 (block_set_using, block_initialize_namespace): Ditto.
5941
5942 2003-04-14 Kevin Buettner <kevinb@redhat.com>
5943
5944 * solib-svr4.c (svr4_have_link_map_offsets): New function.
5945 (locate_base): Return early if there aren't any link map offsets.
5946 (svr4_solib_create_inferior_hook): Warn if shared library support
5947 is unavailable.
5948
5949 2003-04-14 David Carlton <carlton@math.stanford.edu>
5950
5951 * symtab.c (symbol_set_names): Add prefix when storing Java names
5952 in hash table. Fix for PR java/1039.
5953
5954 2003-04-14 David Carlton <carlton@math.stanford.edu>
5955
5956 * symtab.c (symbol_set_names): Rename 'name' arg to
5957 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
5958 * symtab.h: Change 'name' argument in declaration of
5959 symbol_set_names to 'linkage_name'.
5960 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
5961
5962 2003-04-14 Andrew Cagney <cagney@redhat.com>
5963
5964 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
5965 return the fully sign-extended register value.
5966 (get_frame_pointer): Ditto.
5967 (mips_pop_frame): Initialize "proc_desc" after checking for a
5968 dummy frame.
5969
5970 2003-04-14 Andrew Cagney <cagney@redhat.com>
5971
5972 * mips-tdep.c (mips_push_dummy_frame): Delete function.
5973 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
5974 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
5975 (mips_push_register): Delete function.
5976 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
5977 PUSH_FP_REGNUM.
5978
5979 2003-04-14 Jim Blandy <jimb@redhat.com>
5980
5981 * symmisc.c: #include "gdb_regex.h".
5982 (maintenance_list_symtabs, maintenance_list_psymtabs): New
5983 functions.
5984 * maint.c (maintenance_list_command): New function.
5985 (_initialize_maint_cmds): Register the above as commands.
5986 * symtab.h (maintenance_list_symtabs,
5987 maintenance_list_psymtabs): New declarations.
5988 * cli/cli-cmds.c (maintenancelistlist): New variable.
5989 (init_cmd_lists): Initialize it.
5990 * cli/cli-cmds.h (maintenancelistlist): New declaration.
5991 * gdbcmd.h (maintenancelistlist): New declaration.
5992 * Makefile.in (symmisc.o): Update dependencies.
5993
5994 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
5995
5996 * s390-nat.c: Include asm/types.h for addr_t.
5997
5998 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
5999
6000 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6001 actually incoming type.
6002
6003 2003-04-13 Andrew Cagney <cagney@redhat.com>
6004
6005 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6006 get_next_frame and get_frame_saved_regs.
6007
6008 2003-04-13 Andrew Cagney <cagney@redhat.com>
6009
6010 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6011 of gdbarch_num_regs.
6012
6013 2003-04-13 Andrew Cagney <cagney@redhat.com>
6014
6015 * frame.h: Mention what replaced what in "struct frame_info".
6016 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6017 deprecated_update_frame_base_hack and
6018 deprecated_update_frame_pc_hack.
6019 * hppa-tdep.c: Ditto.
6020
6021 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6022
6023 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6024 to read_reg and update its comment. Remove regnum member.
6025 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6026 Don't call read_reg when setting in_reg. Call read_reg to get
6027 the frame base if it's in a register. Return the register number
6028 on the stack instead of in the context. Remove extra arguments
6029 to read_reg.
6030 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6031 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6032 the register number on the expression stack.
6033 (needs_frame_read_reg): Remove extra arguments.
6034
6035 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6036
6037 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6038 made non-static.
6039 (execute_stack_op): All callers updated.
6040 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6041 * dwarf2loc.c (find_location_expression): New function.
6042 (dwarf_expr_frame_base): Call it.
6043 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6044 (dwarf2_tracepoint_var_ref): New function, broken out from
6045 locexpr_tracepoint_var_ref.
6046 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6047 Make static.
6048 (loclist_read_variable, loclist_read_needs_frame): New functions.
6049 (loclist_describe_location, loclist_tracepoint_var_ref): New
6050 functions.
6051 (dwarf2_loclist_funcs): New struct location_funcs.
6052 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6053 (struct dwarf2_locexpr_baton): Add comments.
6054 (dwarf2_loclist_funcs): New extern.
6055 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6056 base_address and base_known.
6057 (dwarf_loc_buffer): New variable.
6058 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6059 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6060 (dwarf2_has_info): Initialize dwarf_loc_offset.
6061 (dwarf2_build_psymtabs): Read in .debug_loc.
6062 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6063 DWARF_LOC_SIZE.
6064 (psymtab_to_symtab_1): Likewise. Move base address calculation
6065 here, from...
6066 (dwarf2_get_pc_bounds): ... here. Use the base address from
6067 cu_header.
6068 (dwarf2_symbol_mark_computed): Handle location lists.
6069
6070 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6071
6072 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6073 if the linkage name demangled successfully.
6074
6075 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6076
6077 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6078 disassmbly_flavour): Removed.
6079
6080 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6081
6082 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6083
6084 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6085
6086 2003-04-12 Andrew Cagney <cagney@redhat.com>
6087
6088 * frame.h (struct frame_info): Move definition from here ...
6089 * frame.c (struct frame_info): ... to here.
6090
6091 2003-04-12 Andrew Cagney <cagney@redhat.com>
6092
6093 * gdbthread.h (save_infrun_state): Delete parameter
6094 "prev_func_start".
6095 (struct thread_info): Delete field "prev_func_start".
6096 (load_infrun_state): Ditto.
6097 * thread.c (load_infrun_state, save_infrun_state): Update.
6098 * infrun.c (prev_func_start): Delete variable.
6099 (context_switch, init_wait_for_inferior): Update.
6100 (stop_stepping, keep_going): Update.
6101
6102 2003-04-12 Andrew Cagney <cagney@redhat.com>
6103
6104 * gdbarch.sh: Add missing opaque declarations.
6105 * gdbarch.h: Regnerate.
6106 * symtab.h: Add missing opaque declarations.
6107 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6108 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6109 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6110 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6111 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6112 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6113 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6114 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6115 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6116 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6117 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6118 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6119 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6120
6121 2003-04-11 Andrew Cagney <cagney@redhat.com>
6122
6123 * frame.c (get_frame_id): Return this frame's "id".
6124 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6125 function start.
6126 (legacy_saved_regs_this_id): Replace function body with
6127 internal-error.
6128 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6129 FRAME_OBSTACK_ZALLOC.
6130 (create_new_frame): Mark the frame ID as valid.
6131
6132 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6133
6134 * Makefile.in (libbfd_h): Added missing setting.
6135 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6136 according to the selected ABI.
6137
6138 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6139
6140 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6141
6142 2003-04-11 Andrew Cagney <cagney@redhat.com>
6143
6144 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6145 SAVED_PC_AFTER_CALL.
6146 * gdbarch.h, gdbarch.c: Regenerate.
6147 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6148 * x86-64-tdep.c (x86_64_init_abi): Update.
6149 * vax-tdep.c (vax_gdbarch_init): Update.
6150 * v850-tdep.c (v850_gdbarch_init): Update.
6151 * sparc-tdep.c (sparc_gdbarch_init): Update.
6152 * sh-tdep.c (sh_gdbarch_init): Update.
6153 * s390-tdep.c (s390_gdbarch_init): Update.
6154 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6155 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6156 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6157 * mips-tdep.c (mips_gdbarch_init): Update.
6158 * mcore-tdep.c (mcore_gdbarch_init): Update.
6159 * m68k-tdep.c (m68k_gdbarch_init): Update.
6160 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6161 * ia64-tdep.c (ia64_gdbarch_init): Update.
6162 (ia64_saved_pc_after_call): Update declaration.
6163 * i386ly-tdep.c (i386lynx_init_abi): Update.
6164 * i386-tdep.c (i386_gdbarch_init): Update.
6165 * hppa-tdep.c (hppa_gdbarch_init): Update.
6166 * h8300-tdep.c (h8300_gdbarch_init): Update.
6167 * frv-tdep.c (frv_gdbarch_init): Update.
6168 * cris-tdep.c (cris_gdbarch_init): Update.
6169 * avr-tdep.c (avr_gdbarch_init): Update.
6170 * arm-tdep.c (arm_gdbarch_init): Update.
6171 * alpha-tdep.c (alpha_gdbarch_init): Update.
6172 * ns32knbsd-nat.c (frame_num_args): Update.
6173 * ns32k-tdep.c (umax_frame_num_args): Update.
6174 * mips-tdep.c (mips_init_frame_pc_first): Update.
6175 * infrun.c (step_over_function): Update.
6176 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6177 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6178 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6179 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6180 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6181 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6182 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6183 * arch-utils.c (init_frame_pc_default): Update.
6184 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6185 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6186 declaration.
6187
6188 2003-04-11 Andrew Cagney <cagney@redhat.com>
6189
6190 * i387-tdep.c: Update copyright.
6191 (i387_to_double): Delete function.
6192 (double_to_i387): Delete function.
6193
6194 2003-04-10 Andrew Cagney <cagney@redhat.com>
6195
6196 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6197 frame's function's address. Simplify.
6198 (d10v_frame_unwind_cache): Check that the frame's function is
6199 non-zero.
6200
6201 2003-04-10 Jim Blandy <jimb@redhat.com>
6202
6203 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6204 call to set_gdbarch_deprecated_push_arguments.
6205
6206 2003-04-10 Andrew Cagney <cagney@redhat.com>
6207
6208 * frame.c (fprint_frame_id): New function.
6209 (fprint_frame_type, fprint_frame): New function.
6210 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6211 (create_sentinel_frame, get_frame_id): Ditto.
6212 (frame_id_p, frame_id_eq): Ditto.
6213 (frame_id_inner, create_new_frame): Ditto.
6214 (legacy_get_prev_frame, get_prev_frame): Ditto.
6215 (deprecated_update_frame_pc_hack): Ditto.
6216 (frame_register_unwind): Ditto.
6217 (deprecated_update_frame_base_hack): Ditto.
6218
6219 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6220
6221 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6222 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6223 frame_chain function.
6224 * Makefile.in: Add dependencies due to above change.
6225
6226 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6227
6228 * blockframe.c (legacy_frame_chain_valid): Move call to
6229 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6230 inside_entry_file.
6231
6232 2003-04-09 Andrew Cagney <cagney@redhat.com>
6233
6234 * frame.h (struct frame_id): Replace "pc" and "base" with
6235 "stack_addr" and "code_addr". Update comments.
6236 (frame_id_build): Update parameter names and comment.
6237 (struct frame_info): Replace "id_p" and "id" with "this_id".
6238 * dummy-frame.c (dummy_frame_this_id): Update.
6239 * breakpoint.c (print_one_breakpoint): Update.
6240 * frame.c (get_frame_id): Update.
6241 (get_frame_base, frame_id_build): Update.
6242 (create_sentinel_frame, legacy_get_prev_frame): Update.
6243 (deprecated_update_frame_base_hack): Update.
6244 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6245 (frame_id_inner): Ditto.
6246
6247 2003-04-09 Andrew Cagney <cagney@redhat.com>
6248
6249 * defs.h (gdb_print_host_address): Make "addr" parameter a
6250 pointer constant.
6251 * utils.c (gdb_print_host_address): Update.
6252
6253 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6254
6255 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6256 register number for R0 is 0.
6257
6258 2003-04-09 J. Brobecker <brobecker@gnat.com>
6259
6260 * frame.h (struct gdbarch): Add opaque structure definition
6261 to avoid a compilation warning on LynxOS 4.0.
6262
6263 2003-04-09 Andrew Cagney <cagney@redhat.com>
6264
6265 * frame.h (struct frame_info): Delete field "pc". Replace
6266 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6267 structure.
6268 * frame.c (frame_pc_unwind): Update.
6269 (create_sentinel_frame): Do not set "pc".
6270 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6271 (get_frame_pc): Call frame_pc_unwind.
6272 (deprecated_update_frame_pc_hack): Update.
6273 (create_new_frame): Use "pc" not "->pc".
6274
6275 2003-04-09 Andrew Cagney <cagney@redhat.com>
6276
6277 * frame.c (get_frame_id): Eliminate code updating "frame".
6278 (legacy_get_prev_frame): Ditto.
6279 (get_frame_base): Return id.base directly.
6280 (deprecated_update_frame_base_hack): Update "id.base".
6281 * frame.h (struct frame_info): Delete field "frame".
6282
6283 2003-04-09 Andrew Cagney <cagney@redhat.com>
6284
6285 * NEWS: Mention that the "Sequent family" is obsolete.
6286 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6287 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6288 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6289 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6290 * config/i386/tm-ptx4.h: Obsolete file.
6291 * config/i386/tm-ptx.h: Obsolete file.
6292 * symm-tdep.c: Obsolete file.
6293 * config/i386/symmetry.mt: Obsolete file.
6294 * config/i386/tm-symmetry.h: Obsolete file.
6295 * symm-nat.c: Obsolete file.
6296 * config/i386/nm-symmetry.h: Obsolete file.
6297 * config/i386/xm-symmetry.h: Obsolete file.
6298 * config/i386/symmetry.mh: Obsolete file.
6299 * config/i386/nm-ptx4.h: Obsolete file.
6300 * config/i386/ptx4.mh: Obsolete file.
6301 * config/i386/ptx.mt: Obsolete file.
6302 * config/i386/ptx.mh: Obsolete file.
6303 * config/i386/xm-ptx4.h: Obsolete file.
6304 * config/i386/xm-ptx.h: Obsolete file.
6305
6306 2003-04-09 Andrew Cagney <cagney@redhat.com>
6307
6308 Obsolete mips*-*-mach3*.
6309 * NEWS: Mention that mips*-*-mach3* is obsolete.
6310 * m3-nat.c: Obsolete file.
6311 * config/nm-m3.h: Obsolete file.
6312 * config/mips/tm-mipsm3.h: Obsolete file.
6313 * config/mips/mipsm3.mt: Obsolete file.
6314 * config/mips/mipsm3.mh: Obsolete file.
6315 * config/mips/xm-mipsm3.h: Obsolete file.
6316 * mipsm3-nat.c: Obsolete file.
6317 * configure.host: Obsolete mips-dec-mach3*.
6318 * configure.tgt: Obsolete mips*-*-mach3*.
6319
6320 2003-04-09 Andrew Cagney <cagney@redhat.com>
6321
6322 * doublest.h: Update copyright.
6323 (deprecated_store_floating, deprecated_extract_floating): Rename
6324 store_floating and extract_floating. Update comments.
6325 * doublest.c: Update copyright.
6326 (extract_floating_by_length): Replace extract_floating.
6327 (store_floating_by_length): Replace store_floating.
6328 (deprecated_extract_floating): New function.
6329 (deprecated_store_floating): New function.
6330 (extract_typed_floating): Call extract_floating_by_length.
6331 (store_typed_floating): Call store_floating_by_length.
6332 * x86-64-tdep.c (x86_64_store_return_value): Update.
6333 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6334 (sh64_extract_return_value): Update.
6335 (sh_sh4_register_convert_to_virtual): Update.
6336 (sh_sh64_register_convert_to_virtual): Update.
6337 (sh_sh4_register_convert_to_raw): Update.
6338 (sh_sh64_register_convert_to_raw): Update.
6339 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6340 (rs6000_register_convert_to_raw): Update.
6341 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6342 (ia64_register_convert_to_raw): Update.
6343 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6344 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6345 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6346 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6347 (alpha_register_convert_to_raw): Update.
6348
6349 2003-04-08 Andrew Cagney <cagney@redhat.com>
6350
6351 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6352 * gdbarch.h, gdbarch.c: Re-generate.
6353 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6354 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6355 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6356 conditionally, use frame_pc_unwind as an alternative. Add
6357 comments.
6358 * arch-utils.c (init_frame_pc_default): Only call
6359 SAVED_PC_AFTER_CALL when available.
6360
6361 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6362
6363 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6364 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6365 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6366 (start_remote): Ditto.
6367 (handle_inferior_event): Ditto.
6368 (save_inferior_status): Ditto.
6369 (restore_inferior_status): Ditto.
6370 * infcmd.c (attach_command): Ditto.
6371 * fork-child.c (startup_inferior): Ditto.
6372 * inferior.h (stop_soon): Rename from stop_soon_quietly.
6373 * alpha-tdep.c (heuristic_proc_start): Ditto.
6374 * mips-tdep.c (heuristic_proc_start): Ditto.
6375 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6376 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6377 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6378 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6379 * remote-vx.c (vx_create_inferior): Ditto.
6380
6381 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6382
6383 * infrun.c (stop_soon_quietly): Make it an enum, to better
6384 override the default behavior of handle_inferior_event.
6385 (clear_proceed_status): Update uses of stop_soon_quietly to
6386 reflect that it is now an enum.
6387 (start_remote): Ditto.
6388 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6389 is set to handle the new GNU/Linux kernel behavior for
6390 attach/sigstop. Update uses of stop_soon_quietly.
6391 * inferior.h (enum stop_kind): New enum.
6392 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6393 Reset normal handle_inferior_event behavior, afterwards.
6394 * fork-child.c (startup_inferior): Update.
6395 * alpha-tdep.c (heuristic_proc_start): Update.
6396 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6397 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6398 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6399 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6400 * remote-vx.c (vx_create_inferior): Update.
6401 * mips-tdep.c (heuristic_proc_start): Update.
6402
6403 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
6404
6405 * disasm.c (dump_insns): Move variables inside loop, or they will
6406 be freed more than once, causing wild memory corruptions.
6407 (gdb_disassembly): Look for the substring "-thread",
6408 instead of "-threads" in the target name, to make sure to find
6409 the 'multi-thread' target. Also, make sure we do the right thing
6410 with the "core" target.
6411
6412 2003-04-07 Kevin Buettner <kevinb@redhat.com>
6413
6414 * mips-tdep.c (mips_print_fp_register): New function, created from
6415 do_fp_register_row(). Registers are now (also) printed as hex.
6416 Only one register is printed per row.
6417 (mips_print_register, do_fp_register_row): Print floating point
6418 registers with mips_print_fp_register().
6419
6420 2003-04-06 Andrew Cagney <cagney@redhat.com>
6421
6422 * valprint.h (inspect_it): Add extern declaration.
6423 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6424 (selectors_info, classes_info): Ditto.
6425 (find_objc_msgcall): Fix indentation.
6426 (objc_printstr): Delete extern declarations.
6427
6428 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6429
6430 2003-04-06 Andrew Cagney <cagney@redhat.com>
6431
6432 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6433 Update comment.
6434 * frame.c (legacy_saved_regs_this_id): Update.
6435 (legacy_get_prev_frame): Update.
6436 * xstormy16-tdep.c: Update comment.
6437 * sparc-tdep.c (sparc_frame_chain): Update comment.
6438 * blockframe.c (legacy_frame_chain_valid): Update.
6439
6440 2003-04-06 Andrew Cagney <cagney@redhat.com>
6441
6442 * valprint.c (val_print_type_code_int): Delete #ifdef
6443 PRINT_TYPELESS_INTEGER code.
6444
6445 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6446 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6447 multi-arch definition.
6448 * gdbarch.h: Re-generate.
6449
6450 2003-04-05 Andrew Cagney <cagney@redhat.com>
6451
6452 Eliminate FRAME_FIND_SAVED_REGS.
6453 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6454 Change FSR parameter to a pointer.
6455 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6456 Assume FSR parameter is a pointer.
6457 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6458 Make fsr a pointer.
6459 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6460 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6461 saved_regs a pointer.
6462 (hppa_frame_saved_pc): Ditto.
6463 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6464 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6465 pointer.
6466 (restore_pc_queue): Make fsr a pointer.
6467 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6468 (hppa_frame_chain): Make saved_regs a pointer, call
6469 hppa_frame_init_saved_regs.
6470 * sparc-tdep.c: Include "gdb_assert.h".
6471 (sparc_frame_find_saved_regs): Replace internal_error with
6472 gdb_assert.
6473 * remote-vxsparc.c (vx_read_register): Delete reference to
6474 FRAME_FIND_SAVED_REGS.
6475 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6476 * gdbarch.h: Regenerate.
6477 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6478 (deprecated_get_frame_saved_regs): Delete declaration.
6479 (struct frame_saved_regs): Delete definition.
6480 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6481 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6482 (hppa_frame_find_saved_regs): Delete declaration.
6483 (FRAME_FIND_SAVED_REGS): Delete macro.
6484 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6485 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6486 FRAME_FIND_SAVED_REGS in comment.
6487
6488 2003-04-05 Andrew Cagney <cagney@redhat.com>
6489
6490 * frame.c (frame_func_unwind, get_frame_func): New functions.
6491 * frame.h (get_frame_func, frame_func_unwind): Declare.
6492 (struct frame_info): Add field "prev_func" for caching the
6493 previous frame's function address.
6494 * arm-tdep.c (arm_frameless_function_invocation): Combine
6495 get_pc_function_start and get_frame_pc into get_frame_func.
6496 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6497 (sh64_nofp_frame_init_saved_regs): Ditto.
6498 * s390-tdep.c (s390_function_start): Ditto.
6499 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6500 (rs6000_frameless_function_invocation): Ditto.
6501 (rs6000_frame_saved_pc): Ditto.
6502 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6503 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6504 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6505 (i386_frame_init_saved_regs): Ditto.
6506 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6507 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6508 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6509 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6510 * blockframe.c (frameless_look_for_prologue): Ditto.
6511
6512 2003-04-05 Andrew Cagney <cagney@redhat.com>
6513
6514 * frame.c (legacy_get_prev_frame): Link prev to next at the
6515 function start. Update comments.
6516
6517 2003-04-05 Andrew Cagney <cagney@redhat.com>
6518
6519 * frame.c (get_frame_id): Update comment.
6520 (legacy_get_prev_frame): Update comment.
6521 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6522 * gdbarch.h: Regenerate.
6523 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6524 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6525
6526 2003-04-05 Andrew Cagney <cagney@redhat.com>
6527
6528 * stack.c (print_frame_info): Use get_frame_pc.
6529
6530 2003-04-04 Andrew Cagney <cagney@redhat.com>
6531
6532 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6533 the frame's type from the unwinder.
6534 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6535 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6536 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6537 (get_frame_base_address): Use get_frame_type.
6538 (get_frame_locals_address, get_frame_args_address): Ditto.
6539 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6540 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6541 (struct frame_info): Add comment explaining why the frame contains
6542 a "type" field.
6543 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6544 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6545 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6546 NORMAL_FRAME.
6547 * frame-unwind.h: Include "frame.h".
6548 (struct frame_unwind): Add "type" field.
6549 * Makefile.in (frame_unwind_h): Add $(frame_h).
6550
6551 2003-04-04 Andrew Cagney <cagney@redhat.com>
6552
6553 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6554 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6555 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6556 get_frame_base.
6557 (d10v_unwind_dummy_id): Use frame_id_build.
6558 * frame.c (find_frame_sal): Use get_frame_pc.
6559 (create_new_frame): Use deprecated_update_frame_pc_hack and
6560 deprecated_update_frame_base_hack.
6561 (create_sentinel_frame): Add comment about ->pc going away.
6562 (get_prev_frame): Add comment about ->pc going away.
6563 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6564 frame_id_build, deprecated_update_frame_pc_hack and
6565 deprecated_update_frame_base_hack.
6566 (select_frame): Use get_frame_pc.
6567 (legacy_saved_regs_this_id): Use frame_id_build.
6568
6569 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
6570
6571 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6572 signed integer case.
6573 (classify_argument): Handle enumerations and references.
6574
6575 2003-04-04 Andrew Cagney <cagney@redhat.com>
6576
6577 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6578 ID to NULL.
6579
6580 2003-04-01 Adam Fedor <fedor@gnu.org>
6581
6582 * gdb/objc-lang.c (selectors_info): Replace calls to
6583 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6584 SYMBOL_NATURAL_NAME.
6585 (classes_info, find_methods): Likewise.
6586
6587 2003-04-03 Kevin Buettner <kevinb@redhat.com>
6588
6589 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6590 ``mach'' to the value determined by bfd_default_set_arch_mach().
6591
6592 2003-04-02 Bob Rossi <bob_rossi@cox.net>
6593
6594 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6595 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6596 (mi-cmd-file.o): Update dependencies.
6597
6598 2003-04-01 Kevin Buettner <kevinb@redhat.com>
6599
6600 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6601 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6602
6603 2003-04-01 Adam Fedor <fedor@gnu.org>
6604
6605 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6606 * language.h (struct language_defn): Add la_demangle.
6607 (language_demangle): Declare.
6608 * language.c (language_demangle): New function.
6609 (unk_lang_demangle): Likewise.
6610 (unknown_language_defn, auto_language_defn, local_language_defn):
6611 Add ukn_lang_demangle.
6612 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6613 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6614 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6615 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6616 * jv-lang.c (java_demangle): New function
6617 (java_language_defn): Use it for la_demangle element.
6618 * objc-lang.c (objc_demangle): Add options argument
6619 (objc_language_defn): Use objc_demangle for la_demangle element.
6620 * maint.c (maintenance_demangle): Replace switch with
6621 call to language_demangle.
6622 * utils.c (fprintf_symbol_filtered): Likewise.
6623
6624 2003-04-01 Andrew Cagney <cagney@redhat.com>
6625
6626 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6627 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6628 PRINT_TYPELESS_INTEGER.
6629 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6630 PUSH_RETURN_ADDRESS.
6631
6632 2003-04-01 Andrew Cagney <cagney@redhat.com>
6633
6634 * Makefile.in (d10v-tdep.o): Update dependencies.
6635 * d10v-tdep.c: Include "frame-base.h".
6636 (d10v_frame_unwind): Make constant.
6637 (d10v_frame_base_address): New function.
6638 (d10v_frame_base): New variable.
6639 (d10v_gdbarch_init): Set frame_base default.
6640 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6641 comment for base.
6642 (d10v_frame_unwind_cache): Set and use "prev_sp".
6643 (d10v_frame_this_id): Use the previous frame's inner most stack
6644 address and this frame's func address for the frame ID. Use
6645 frame_id_build. Don't analyze beyond the current instruction.
6646
6647 2003-04-01 Andrew Cagney <cagney@redhat.com>
6648
6649 * frame.h (get_frame_locals_address, get_frame_args_address):
6650 Refer to the base address, instead of the address of the first
6651 local or parameter.
6652
6653 2003-04-01 Andrew Cagney <cagney@redhat.com>
6654
6655 Add frame debug info addresses:
6656 * frame-base.c: New file.
6657 * frame-base.h: New file.
6658 * frame.h (struct frame_base): Add opaque declaration.
6659 (get_frame_base): Update comment.
6660 (get_frame_base_address): Declare.
6661 (get_frame_locals_address): Declare.
6662 (get_frame_args_address): Declare.
6663 (struct frame_info): Add "base" and "base_cache". Update
6664 comments on the unwinder.
6665 * frame.c: Include "frame-base.h".
6666 (get_frame_locals_address): New function.
6667 (get_frame_base_address): New function.
6668 (get_frame_args_address): New function.
6669 * findvar.c (read_var_value): Use get_frame_locals_address and
6670 get_frame_args_address.
6671 * stack.c (frame_info): Use get_frame_locals_address and
6672 get_frame_args_address.
6673 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6674 moved to "frame-base.c".
6675 * printcmd.c (print_frame_nameless_args): Ditto.
6676 * symtab.h (address_class): Update comments.
6677 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6678 get_frame_base_address.
6679 * dwarf2expr.c (execute_stack_op): Ditto.
6680 * Makefile.in (frame_base_h): Define.
6681 (frame.o): Update dependencies.
6682 (frame-base.o): Add dependencies.
6683 (SFILES): Add frame-base.c.
6684 (COMMON_OBS): Add frame-base.o.
6685
6686 2003-04-01 Andrew Cagney <cagney@redhat.com>
6687
6688 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6689 CALL_DUMMY_LENGTH): Ditto.
6690 * gdbarch.c: Re-generate.
6691 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6692 (CALL_DUMMY_LENGTH): Delete macro.
6693 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6694 * arm-tdep.c (arm_gdbarch_init): Ditto.
6695 * avr-tdep.c (avr_gdbarch_init): Ditto.
6696 * cris-tdep.c (cris_gdbarch_init): Ditto.
6697 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6698 * frv-tdep.c (frv_gdbarch_init): Ditto.
6699 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6700 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6701 * i386-tdep.c (i386_gdbarch_init): Ditto.
6702 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6703 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6704 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6705 * mips-tdep.c (mips_gdbarch_init): Ditto.
6706 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6707 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6708 * s390-tdep.c (s390_gdbarch_init): Ditto.
6709 * sh-tdep.c (sh_gdbarch_init): Ditto.
6710 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6711 * v850-tdep.c (v850_gdbarch_init): Ditto.
6712 * vax-tdep.c (vax_gdbarch_init): Ditto.
6713 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6714
6715 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
6716
6717 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6718
6719 2003-04-01 Andrew Cagney <cagney@redhat.com>
6720
6721 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6722 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6723 * gdbarch.h, gdbarch.c: Re-generate.
6724 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6725 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6726 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6727 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6728 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6729 * infcmd.c (run_stack_dummy): Simplify assuming
6730 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6731 * infrun.c (handle_inferior_event): Ditto.
6732 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6733 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6734 * arm-tdep.c (arm_gdbarch_init): Ditto.
6735 * avr-tdep.c (avr_gdbarch_init): Ditto.
6736 * cris-tdep.c (cris_gdbarch_init): Ditto.
6737 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6738 * frv-tdep.c (frv_gdbarch_init): Ditto.
6739 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6740 * i386-tdep.c (i386_gdbarch_init): Ditto.
6741 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6742 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6743 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6744 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6745 * mips-tdep.c (mips_gdbarch_init): Ditto.
6746 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6747 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6748 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6749 * s390-tdep.c (s390_gdbarch_init): Ditto.
6750 * sh-tdep.c (sh_gdbarch_init): Ditto.
6751 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6752 * v850-tdep.c (v850_gdbarch_init): Ditto.
6753 * vax-tdep.c (vax_gdbarch_init): Ditto.
6754 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6755
6756 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
6757
6758 * symfile.c (symfile_relocate_debug_section): Update call to
6759 bfd_simple_get_relocated_section_contents.
6760
6761 2003-03-31 Andrew Cagney <cagney@redhat.com>
6762
6763 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6764 * gdbarch.h, gdbarch.c: Regenerate.
6765 * inferior.h (FIX_CALL_DUMMY): Delete macro.
6766 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
6767 available.
6768 * frame.h (generic_fix_call_dummy): Delete declaration.
6769 * dummy-frame.h: Update comment.
6770 * dummy-frame.c (generic_fix_call_dummy): Delete function.
6771 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6772 fix_call_dummy.
6773 * sh-tdep.c (sh_gdbarch_init): Ditto.
6774 * s390-tdep.c (s390_gdbarch_init): Ditto.
6775 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6776 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6777 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6778 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6779 * i386-tdep.c (i386_gdbarch_init): Ditto.
6780 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6781 * frv-tdep.c (frv_gdbarch_init): Ditto.
6782 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6783 * cris-tdep.c (cris_gdbarch_init): Ditto.
6784 * avr-tdep.c (avr_gdbarch_init): Ditto.
6785 * arm-tdep.c (arm_gdbarch_init): Ditto.
6786
6787 2003-03-31 J. Brobecker <brobecker@gnat.com>
6788
6789 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
6790 (INIT_FRAME_AP): Likewise.
6791 (EXTRA_FRAME_INFO): Likewise.
6792
6793 2003-03-31 Andrew Cagney <cagney@redhat.com>
6794
6795 * gdbarch.sh: Include "symfile.h".
6796 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
6797 * gdbarch.h, gdbarch.c: Re-generate.
6798 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
6799 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6800 call_dummy_address, the default is at entry_point_address.
6801 * v850-tdep.c (v850_gdbarch_init): Ditto.
6802 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6803 * sh-tdep.c (sh_gdbarch_init): Ditto.
6804 * s390-tdep.c (s390_gdbarch_init): Ditto.
6805 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6806 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6807 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6808 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6809 * i386-tdep.c (i386_gdbarch_init): Ditto.
6810 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6811 * frv-tdep.c (frv_gdbarch_init): Ditto.
6812 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6813 * cris-tdep.c (cris_gdbarch_init): Ditto.
6814 * arm-tdep.c (arm_gdbarch_init): Ditto.
6815
6816 2003-03-31 Andrew Cagney <cagney@redhat.com>
6817
6818 * gdbarch.sh (CALL_DUMMY_P): Delete.
6819 * gdbarch.h, gdbarch.c: Re-generate.
6820 * inferior.h (CALL_DUMMY_P): Delete macro.
6821 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6822 * vax-tdep.c (vax_gdbarch_init): Update.
6823 * v850-tdep.c (v850_gdbarch_init): Update.
6824 * sparc-tdep.c (sparc_gdbarch_init): Update.
6825 * sh-tdep.c (sh_gdbarch_init): Update.
6826 * s390-tdep.c (s390_gdbarch_init): Update.
6827 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6828 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6829 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6830 * mips-tdep.c (mips_gdbarch_init): Update.
6831 * mcore-tdep.c (mcore_gdbarch_init): Update.
6832 * m68k-tdep.c (m68k_gdbarch_init): Update.
6833 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6834 * ia64-tdep.c (ia64_gdbarch_init): Update.
6835 * i386-tdep.c (i386_gdbarch_init): Update.
6836 * h8300-tdep.c (h8300_gdbarch_init): Update.
6837 * frv-tdep.c (frv_gdbarch_init): Update.
6838 * d10v-tdep.c (d10v_gdbarch_init): Update.
6839 * cris-tdep.c (cris_gdbarch_init): Update.
6840 * breakpoint.c (deprecated_frame_in_dummy): Update.
6841 * avr-tdep.c (avr_gdbarch_init): Update.
6842 * alpha-tdep.c (alpha_gdbarch_init): Update.
6843 * arm-tdep.c (arm_gdbarch_init): Update.
6844 * dummy-frame.c (dummy_frame_this_id): Update comments.
6845 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
6846 * frame.c (legacy_get_prev_frame): Ditto.
6847 * valops.c (call_function_by_hand): Delete function.
6848 (hand_function_call): Rename to call_function_by_hand
6849
6850 2003-03-30 Andrew Cagney <cagney@redhat.com>
6851
6852 2002-11-10 Klee Dienes <kdienes@apple.com>
6853 * value.h (struct value): Update comment.
6854
6855 2003-03-30 Andrew Cagney <cagney@redhat.com>
6856
6857 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
6858 D10V_FP_REGNUM.
6859 (d10v_gdbarch_init): Do not set fp_regnum.
6860
6861 * frame.c (get_frame_base): Force ID initialization.
6862 (get_prev_frame): Move computation of the frame ID from here ...
6863 (get_frame_id): ... to here.
6864 (legacy_get_prev_frame): Mark the frame ID as valid.
6865 * frame.h (struct frame_info): Add field "id_p".
6866
6867 2003-03-30 Mark Kettenis <kettenis@gnu.org>
6868
6869 * i386-tdep.c (i386_store_struct_return): Removed.
6870 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
6871
6872 2003-03-30 Andrew Cagney <cagney@redhat.com>
6873
6874 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
6875 * gdbarch.h, gdbarch.c: Regenerate.
6876 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
6877 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6878 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6879 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6880 * i386-tdep.c (i386_gdbarch_init): Ditto.
6881 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6882 * cris-tdep.c (cris_gdbarch_init): Ditto.
6883 * vax-tdep.c (vax_gdbarch_init): Ditto.
6884 * s390-tdep.c (s390_gdbarch_init): Ditto.
6885 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6886 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6887 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6888 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
6889 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6890 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
6891 * sparc-tdep.c (sparc_gdbarch_init): Update.
6892 * sh-tdep.c (sh_gdbarch_init): Update.
6893 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6894 * mips-tdep.c (mips_gdbarch_init): Update.
6895 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6896 * ia64-tdep.c (ia64_gdbarch_init): Update.
6897 * frv-tdep.c (frv_gdbarch_init): Update.
6898 * avr-tdep.c (avr_gdbarch_init): Update.
6899 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
6900 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
6901 instead of when push_dummy_call is not available.
6902
6903 2003-03-30 Andrew Cagney <cagney@redhat.com>
6904
6905 * infttrace.c: Include "gdbthread.h".
6906 (parent_attach_all): Fix function signature.
6907 (call_ptrace): Update call.
6908 * Makefile.in (infttrace.o): Update dependencies.
6909
6910 2003-03-30 Andrew Cagney <cagney@redhat.com>
6911
6912 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
6913 PUSH_RETURN_ADDRESS.
6914 * gdbarch.h, gdbarch.c: Regenerate.
6915 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6916 * x86-64-tdep.c (x86_64_init_abi): Update.
6917 * v850-tdep.c (v850_gdbarch_init): Update.
6918 * sparc-tdep.c (sparc_gdbarch_init): Update.
6919 * sh-tdep.c (sh_gdbarch_init): Update.
6920 * s390-tdep.c (s390_gdbarch_init): Update.
6921 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6922 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6923 * mips-tdep.c (mips_gdbarch_init): Update.
6924 * mcore-tdep.c (mcore_gdbarch_init): Update.
6925 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6926 * ia64-tdep.c (ia64_gdbarch_init): Update.
6927 * i386-tdep.c (i386_gdbarch_init): Update.
6928 * h8300-tdep.c (h8300_gdbarch_init): Update.
6929 * frv-tdep.c (frv_gdbarch_init): Update.
6930 * cris-tdep.c (cris_gdbarch_init): Update.
6931 * avr-tdep.c (avr_gdbarch_init): Update.
6932 * arm-tdep.c (arm_gdbarch_init): Update.
6933 * valops.c (hand_function_call): Update.
6934
6935 2003-03-29 Andrew Cagney <cagney@redhat.com>
6936
6937 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
6938 sizeof_call_dummy_words.
6939 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
6940 define.
6941 * gdbarch.h: Regenerate.
6942
6943 2003-03-29 Andrew Cagney <cagney@redhat.com>
6944
6945 * infttrace.h: New file.
6946 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
6947 (hpread_get_textlow): Detect an uninitialized dn_bufp.
6948 (hpread_read_doc_function_type): Detect an initialized type1.
6949 (hpread_quick_traverse): Initialize mod_name_string.
6950 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
6951 (som_solib_get_solib_by_pc): Declare.
6952 (so_lib_thread_start_addr): Declare.
6953 (no_shared_libraries): Declare.
6954 * somread.c (init_import_symbols): Make static. Add forward
6955 declaration.
6956 * config/pa/nm-hppah.h: Include "infttrace.h" for
6957 parent_attach_all.
6958 (hppa_insert_hw_watchpoint): Declare.
6959 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
6960 * hppah-nat.c: Include "gdb_string.h".
6961 (parent_attach_all): Delete extern declaration, moved to
6962 "infttrace.h".
6963 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
6964 int.
6965 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
6966 * Makefile.in (infttrace_h): Define.
6967 (hpread.o): Update dependencies.
6968 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
6969 * hppa-hpux-tdep.c: Include "gdb_string.h".
6970 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
6971 * infrun.c (handle_inferior_event): Always initialize
6972 stepped_after_stopped_by_watchpoint. Add default and remove
6973 fallthrough in switch statement.
6974 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
6975 parameter to int.
6976 (hppa_remove_hw_watchpoint): Ditto.
6977
6978 2003-03-29 Andrew Cagney <cagney@redhat.com>
6979
6980 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
6981 offset.
6982
6983 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
6984
6985 * arm-tdep.c (arm_push_arguments): Delete.
6986 (struct stack_item): New type.
6987 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
6988 (arm_store_struct_return): Delte.
6989 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
6990 arm_push_arguments or arm_store_struct_return.
6991
6992 2003-03-28 Andrew Cagney <cagney@redhat.com>
6993
6994 * Makefile.in (d10v-tdep.o): Update dependencies.
6995 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
6996 * d10v-tdep.c: Include "remote.h".
6997 (target_resume_hook): Delete extern declaration.
6998 (target_wait_loop_hook): Ditto.
6999 (tdisassemble_command): Eliminate assignment in "if" conditional.
7000 (d10v_ts2_register_sim_regno): Eliminate call to
7001 legacy_register_sim_regno.
7002 (d10v_ts3_register_sim_regno): Ditto.
7003
7004 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7005
7006 * thread.c: Reindented.
7007 * lin-lwp.c: Ditto.
7008 * linux-proc.c: Ditto.
7009
7010 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7011
7012 * MAINTAINERS (write after approval): Add myself.
7013
7014 2003-03-27 Theodore A. Roth <troth@openavr.org>
7015
7016 * objc-exp.y: Add missing semi-colons.
7017
7018 2003-03-27 Andrew Cagney <cagney@redhat.com>
7019
7020 * regcache.c (write_sp): Delete function and references.
7021 * inferior.h (write_sp): Delete declaration.
7022 * valops.c (hand_function_call): Replace write_sp with
7023 TARGET_WRITE_SP.
7024 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7025 (sparc_pop_frame): Ditto.
7026
7027 2003-03-27 Andrew Cagney <cagney@redhat.com>
7028
7029 * NEWS: Mention removal of support for hppa*-*-bsd* and
7030 hppa*-*-osf* natives, and hppa*-*-pro* target.
7031 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7032 * config/pa/xm-pa.h: Obsolete file.
7033 * config/pa/xm-hppab.h: Obsolete file.
7034 * config/pa/nm-hppab.h: Obsolete file.
7035 * config/pa/tm-hppab.h: Obsolete file.
7036 * config/pa/tm-hppao.h: Obsolete file.
7037 * config/pa/nm-hppao.h: Obsolete file.
7038 * config/pa/tm-pro.h: Obsolete file.
7039 * config/pa/hppaosf.mt: Obsolete file.
7040 * config/pa/hppaosf.mh: Obsolete file.
7041 * config/pa/hppapro.mt: Obsolete file.
7042 * config/pa/hppabsd.mt: Obsolete file.
7043 * config/pa/hppabsd.mh: Obsolete file.
7044 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7045 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7046 hppa*-*-osf*.
7047
7048 2003-03-27 Andrew Cagney <cagney@redhat.com>
7049
7050 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7051 push_arguments. Don't set push_return_address or write_sp.
7052 (d10v_push_dummy_call): Replace d10v_push_arguments.
7053 (d10v_push_return_address, d10v_write_sp): Delete function,
7054 handled by push_dummy_call.
7055
7056 2003-03-26 Andrew Cagney <cagney@redhat.com>
7057
7058 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7059 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7060 regcache and dummy_addr parameters.
7061 * gdbarch.h, gdbarch.c: Re-generate.
7062 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7063 available; assume it will handle stack alignment and return
7064 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7065 legacy_push_arguments.
7066 (legacy_push_arguments): Rename default_push_arguments.
7067 * value.h (legacy_push_arguments): Rename default_push_arguments.
7068 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7069 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7070 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7071 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7072 * config/i386/tm-symmetry.h: Update.
7073 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7074 * x86-64-tdep.c (x86_64_init_abi): Update.
7075 * v850-tdep.c (v850_gdbarch_init): Update.
7076 * sparc-tdep.c (sparc_gdbarch_init): Update.
7077 * sh-tdep.c (sh_gdbarch_init): Update.
7078 * s390-tdep.c (s390_gdbarch_init): Update.
7079 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7080 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7081 * mips-tdep.c (mips_gdbarch_init): Update.
7082 * mcore-tdep.c (mcore_gdbarch_init): Update.
7083 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7084 * ia64-tdep.c (ia64_gdbarch_init): Update.
7085 * i386-tdep.c (i386_gdbarch_init): Update.
7086 * hppa-tdep.c (hppa_gdbarch_init): Update.
7087 * h8300-tdep.c (h8300_gdbarch_init): Update.
7088 * frv-tdep.c (frv_gdbarch_init): Update.
7089 * d10v-tdep.c (d10v_gdbarch_init): Update.
7090 * cris-tdep.c (cris_gdbarch_init): Update.
7091 * avr-tdep.c (avr_gdbarch_init): Update.
7092 * arm-tdep.c (arm_gdbarch_init): Update.
7093 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7094 * alpha-tdep.c (alpha_gdbarch_init): Update.
7095
7096 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7097
7098 * signals/signals.c (do_target_signal_to_host): Correct realtime
7099 signal range test.
7100
7101 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7102
7103 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7104 (struct sal_chain, map_catch_names): Remove.
7105 (catch_exception_command_1): Don't call
7106 handle_gnu_4_16_catch_command.
7107
7108 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7109
7110 From Mark Dettinger <dettinge@de.ibm.com>:
7111 * dwarf2cfi.c (read_2u): Increment pointer by two.
7112
7113 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7114
7115 * signals/signals.c: Fix typos in last change.
7116
7117 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7118
7119 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7120 not already defined. Use __SIGRTMIN if available.
7121 (target_signal_from_host): Remove SIGRTMIN block.
7122 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7123 the signal is within the realtime range.
7124
7125 2003-03-25 Adam Fedor <fedor@gnu.org>
7126
7127 * Makefile.in (infrun.o): Add $(language_h)
7128 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7129 for language specific trampolines.
7130 * language.h (struct language_defn): Add skip_trampoline.
7131 (skip_language_trampoline): Declare.
7132 * language.c (unk_lang_trampoline, skip_language_trampoline):
7133 New functions.
7134 (unknown_language_defn, auto_language_defn, local_language_defn):
7135 Add ukn_lang_trampoline.
7136 * ada-lang.c (ada_language_defn): Add NULL for language
7137 specific skip_trampoline.
7138 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7139 scm-lang.c: Likewise.
7140 * objc-lang.c (objc_skip_trampoline): New function.
7141 (objc_language_defn): Add objc_skip_trampoline.
7142
7143 2003-03-25 Andrew Cagney <cagney@redhat.com>
7144
7145 * frame.c (get_prev_frame): Delay validating a frame's ID -
7146 non-NULL, didn't go backwards - until an attempt to unwind it to
7147 the previous frame.
7148
7149 2003-03-25 Andrew Cagney <cagney@redhat.com>
7150
7151 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7152 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7153 * gdbarch.h, gdbarch.c: Re-generate.
7154 * config/sparc/tm-sparc.h
7155 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7156 * sparc-tdep.c (sparc_gdbarch_init): Set
7157 deprecated_extra_stack_alignment_needed.
7158 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7159 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7160 extra_stack_alignment_needed.
7161 * v850-tdep.c (v850_gdbarch_init): Ditto.
7162 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7163 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7164 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7165 * cris-tdep.c (cris_gdbarch_init): Ditto.
7166 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7167 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7168
7169 2003-03-25 Andrew Cagney <cagney@redhat.com>
7170
7171 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7172 STORE_STRUCT_RETURN.
7173 * gdbarch.h, gdbarch.c: Regenerate.
7174 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7175 (d10v_push_arguments): Set the struct return register.
7176 (d10v_gdbarch_init): Update.
7177 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7178 * x86-64-tdep.c (x86_64_init_abi): Update.
7179 * vax-tdep.c (vax_gdbarch_init): Update.
7180 * v850-tdep.c (v850_gdbarch_init): Update.
7181 * sparc-tdep.c (sparc_gdbarch_init): Update.
7182 * sh-tdep.c (sh_gdbarch_init): Update.
7183 * s390-tdep.c (s390_gdbarch_init): Update.
7184 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7185 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7186 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7187 * mips-tdep.c (mips_gdbarch_init): Update.
7188 * mcore-tdep.c (mcore_gdbarch_init): Update.
7189 * m68k-tdep.c (m68k_gdbarch_init): Update.
7190 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7191 * ia64-tdep.c (ia64_gdbarch_init): Update.
7192 * i386-tdep.c (i386_gdbarch_init): Update.
7193 * hppa-tdep.c (hppa_gdbarch_init): Update.
7194 * h8300-tdep.c (h8300_gdbarch_init): Update.
7195 * frv-tdep.c (frv_gdbarch_init): Update.
7196 * cris-tdep.c (cris_gdbarch_init): Update.
7197 * avr-tdep.c (avr_gdbarch_init): Update.
7198 * arm-tdep.c (arm_gdbarch_init): Update.
7199 * alpha-tdep.c (alpha_gdbarch_init): Update.
7200
7201 2003-03-25 Andrew Cagney <cagney@redhat.com>
7202
7203 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7204 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7205 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7206 * gdbarch.h, gdbarch.c: Regenerate.
7207 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7208 call_dummy_stack_adjust_p.
7209 * vax-tdep.c (vax_gdbarch_init): Ditto.
7210 * v850-tdep.c (v850_gdbarch_init): Ditto.
7211 * sh-tdep.c (sh_gdbarch_init): Ditto.
7212 * s390-tdep.c (s390_gdbarch_init): Ditto.
7213 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7214 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7215 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7216 * mips-tdep.c (mips_gdbarch_init): Ditto.
7217 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7218 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7219 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7220 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7221 * i386-tdep.c (i386_gdbarch_init): Ditto.
7222 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7223 * frv-tdep.c (frv_gdbarch_init): Ditto.
7224 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7225 * cris-tdep.c (cris_gdbarch_init): Ditto.
7226 * avr-tdep.c (avr_gdbarch_init): Ditto.
7227 * arm-tdep.c (arm_gdbarch_init): Ditto.
7228 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7229 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7230 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7231 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7232 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7233 call_dummy_stack_adjust_p.
7234 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7235 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7236 * sparc-tdep.c (sparc32_push_arguments): Update.
7237 * valops.c (hand_function_call): Update.
7238
7239 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7240
7241 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7242 set_gdbarch_char_signed.
7243
7244 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7245
7246 PR cli/548
7247 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7248
7249 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7250
7251 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7252 (_initialize_arm_tdep): Don't set tm_print_insn.
7253
7254 2003-03-24 Adam Fedor <fedor@gnu.org>
7255
7256 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7257 * objc-lang.h: Add multiple inclusion protection.
7258 (start_msglist, add_msglist, end_msglist): Additional declarations.
7259
7260 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7261
7262 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7263 value was renamed to ARM_FLOAT_SOFT_FPA.
7264
7265 2003-03-23 Andrew Cagney <cagney@redhat.com>
7266
7267 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7268 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7269 * gdbarch.h, gdbarch.c: Regenerate.
7270 * valops.c (hand_function_call): Update.
7271 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7272 * frame.c (legacy_saved_regs_this_id): Update.
7273 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7274 * dummy-frame.h: Update.
7275 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7276 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7277 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7278 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7279 * config/m68k/tm-sun3.h: Update.
7280 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7281 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7282 * x86-64-tdep.c (x86_64_init_abi): Update.
7283 * vax-tdep.c (vax_gdbarch_init): Update.
7284 * v850-tdep.c (v850_gdbarch_init): Update.
7285 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7286 * sh-tdep.c (sh_gdbarch_init): Update.
7287 * s390-tdep.c (s390_gdbarch_init): Update.
7288 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7289 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7290 (frame_get_saved_regs): Update.
7291 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7292 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7293 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7294 * mips-tdep.c (mips_gdbarch_init): Update.
7295 * mcore-tdep.c (mcore_gdbarch_init): Update.
7296 * m68k-tdep.c (m68k_gdbarch_init): Update.
7297 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7298 * ia64-tdep.c (ia64_gdbarch_init): Update.
7299 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7300 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7301 (i386_interix_back_one_frame): Update.
7302 * hppa-tdep.c (hppa_gdbarch_init): Update.
7303 (hppa_init_extra_frame_info): Update.
7304 * h8300-tdep.c (h8300_gdbarch_init): Update.
7305 * frv-tdep.c (frv_gdbarch_init): Update.
7306 * cris-tdep.c (cris_gdbarch_init): Update.
7307 * avr-tdep.c (avr_gdbarch_init): Update.
7308 * arm-tdep.c (arm_gdbarch_init): Update.
7309 * alpha-tdep.c (alpha_gdbarch_init): Update.
7310
7311 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7312
7313 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7314 (arm_get_fp_model): Declare.
7315 * arm-tdep.c (fp_model_strings): New string array.
7316 (arm_fp_model, current_fp_model): New variables.
7317 (arm_get_fp_model): New function.
7318 (arm_set_fp): New function.
7319 (set_fp_model_sfunc): New function.
7320 (show_fp_model): New function.
7321 (_initialize_arm_tdep): Add new command to set/show the FPU.
7322 (arm_extract_return_value): Use arm_get_fp_model.
7323 (arm_store_return_value): Likewise.
7324 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7325 to initialize the floating-point data types.
7326 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7327 model is FPA.
7328
7329 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7330
7331 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7332 the current setting of each value.
7333 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7334 new_set and new_show. Use add_setshow_cmd_full and
7335 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7336 commands and add new version as subcommands of "set/show arm".
7337
7338 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7339
7340 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7341 (set_arm_command, show_arm_command): New functions.
7342 (_initialize_arm_tdep): Add them.
7343 (num_disassembly_options): Renamed from num_flavor_options.
7344 (valid_disassembly_styles): Renamed from valid_flavors.
7345 (disassembly_style): Renamed from disassembly_flavor.
7346 (set_disassembly_style_sfunc): Renamed from
7347 set_disassembly_flavor_sfunc.
7348 (set_disassembly_style): Renamed from set_disassembly_flavor.
7349 (arm_othernames): Updated.
7350 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7351 command. Add "set/show arm disassembly" commands. Deprecate
7352 "othernames" command.
7353
7354 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7355
7356 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7357 (arm-tdep.o): Depend on elf_arm_h.
7358
7359 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7360
7361 * Makefile.in (coff_internal_h): Define.
7362 (arm-tdep.o): Update dependencies.
7363
7364 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7365
7366 * arm-tdep.c (prologue_cache): Delete.
7367 (check_prologue_cache, save_prologue_cache): Delete.
7368 (arm_scan_prologue): Don't check or update the prologue_cache.
7369 (arm_gdb_arch_init): Don't initialize it.
7370 (_initialize_arm_tdep): Likewise.
7371
7372 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7373
7374 * MAINTAINERS (tui): Maintainer of tui code.
7375
7376 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
7377
7378 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7379 (i386-cygwin-tdep.o): Add dependencies.
7380 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7381 * i386-cygwin-tdep.c: New file.
7382 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7383 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7384
7385 2003-03-20 Andrew Cagney <cagney@redhat.com>
7386
7387 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7388 (handle_inferior_event): Remove code calling
7389 DYNAMIC_TRAMPOLINE_NEXTPC.
7390
7391 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7392 already has a full path.
7393
7394 * main.c (gdb_main): Return 1.
7395 (captured_main): Call error to report an invalid interpreter.
7396
7397 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7398 * alpha-osf1-tdep.c: Include "gdb_string.h".
7399
7400 2003-03-19 J. Brobecker <brobecker@gnat.com>
7401
7402 Continuing work to convert the hppa targets to multiarch partial.
7403
7404 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7405 method, now that hppa_push_dummy_frame has a conformant prototype.
7406 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7407 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7408 for the switch to multiarch partial.
7409
7410 2003-03-19 Kevin Buettner <kevinb@redhat.com>
7411
7412 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7413 when iss is issNull.
7414
7415 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7416
7417 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7418 NUM_REGS bounds check.
7419
7420 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7421
7422 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7423 * mips-tdep.c (gdb_assert.h): Include.
7424 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7425 (mips_register_name): Handle integer registers explicitly. Add
7426 bounds checking.
7427 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7428 (mips_lsi33k_reg_names): Don't list integer registers; they're
7429 handled by mips_register_name() now.
7430 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7431 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7432 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7433 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7434 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7435
7436 2003-03-18 Andrew Cagney <cagney@redhat.com>
7437
7438 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7439 a void pointer.
7440 * gdbtypes.h (print_scalar_formatted): Update declaration.
7441 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7442
7443 2003-03-18 J. Brobecker <brobecker@gnat.com>
7444
7445 * infrun.c (observer.h): Add #include.
7446 (normal_stop): Add call to observer_notify_normal_stop.
7447 * Makefile.in (infrun.o): Add dependency on observer.h.
7448
7449 2003-03-18 J. Brobecker <brobecker@gnat.com>
7450
7451 Continuing work to convert the hppa targets to multiarch partial.
7452 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7453 parameter. Reformat comment.
7454 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7455 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7456 to match new profile.
7457
7458 2003-03-18 J. Brobecker <brobecker@gnat.com>
7459
7460 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7461 appear to be working in any case.
7462
7463 2003-03-18 J. Brobecker <brobecker@gnat.com>
7464
7465 * observer.c (observer_test_first_observer): New static variable.
7466 (observer_test_second_observer): Likewise.
7467 (observer_test_third_observer): Likewise.
7468 (observer_test_first_notification_function): New static function.
7469 (observer_test_second_notification_function): Likewise.
7470 (observer_test_third_notification_function): Likewise.
7471
7472 2003-03-17 J. Brobecker <brobecker@gnat.com>
7473
7474 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7475 * somsolib.c (gdb_assert.h): Likewise.
7476 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7477 (somsolib.o): Likewise.
7478
7479 2003-03-17 Andrew Cagney <cagney@redhat.com>
7480
7481 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7482 BFD. Simplify setting of di.endian.
7483
7484 2003-03-17 Andrew Cagney <cagney@redhat.com>
7485
7486 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7487 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7488
7489 From Elena Zannoni <ezannoni@redhat.com>
7490 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7491 vector and floating-point parameters.
7492 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7493 convention.
7494 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7495
7496 2003-03-17 Fernando Nasser <fnasser@redhat.com>
7497
7498 * MAINTAINERS: Remove my name from several maintainership roles.
7499
7500 2003-03-17 Andrew Cagney <cagney@redhat.com>
7501
7502 Fix frame off-by-one bug.
7503 * frame-unwind.h (frame_this_id_ftype): Replace
7504 frame_unwind_id_ftype.
7505 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7506 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7507 with "prev_register".
7508 * frame-unwind.c (frame_unwind_find_by_pc): Return
7509 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7510 comment.
7511 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7512 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7513 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7514 (dummy_frame_unwind): Update.
7515 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7516 sentinel_frame_register_unwind.
7517 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7518 (sentinel_frame_unwinder): Update.
7519 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7520 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7521 * frame.c (create_sentinel_frame): Update. Initialize
7522 "prologue_cache" instead of "unwind_cache".
7523 (frame_register_unwind): Call this frame's prev_register with the
7524 next frame and this frame's prologue cache.
7525 (get_prev_frame): Simplify. Always call prev frame's this_id with
7526 this frame and prev frame's prologue cache. Document that this
7527 call is shifted one to the left when compared to the
7528 frame_register_unwind call.
7529 (legacy_saved_regs_prev_register): Replace
7530 frame_saved_regs_register_unwind.
7531 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7532 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7533 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7534 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7535 (d10v_frame_unwind): Update.
7536 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7537 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7538 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7539 "saved_regs" with "this_saved_regs".
7540
7541 2003-03-16 Andrew Cagney <cagney@redhat.com>
7542
7543 * frame.c (frame_pop): Don't call target_store_registers. Fix
7544 problem reported by Mark Kettenis.
7545
7546 2003-03-16 Mark Kettenis <kettenis@gnu.org>
7547
7548 * i386-tdep.c (i386_register_type): Renamed from
7549 i386_register_virtual_type. Adjust function signature.
7550 (i386_gdbarch_init): Set register_type instead of
7551 deprecated_max_register_raw_size,
7552 deprecated_max_register_virtual_size and register_virtual_type.
7553
7554 2003-03-14 Andrew Cagney <cagney@redhat.com>
7555
7556 * frame.c (get_prev_frame): When a legacy frame, always call
7557 legacy_get_prev_frame. Simplify unwind code using assumption that
7558 the unwinder is new.
7559 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7560 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7561 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7562
7563 2003-03-14 Andrew Cagney <cagney@redhat.com>
7564
7565 * frame.c (get_saved_register): Delete function.
7566 * frame.h (get_saved_register): Delete declaration.
7567 * xstormy16-tdep.c: Update comment.
7568 * regcache.h: Update comments.
7569 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7570 get_saved_register and extract_address, use
7571 frame_read_unsigned_register.
7572 (sparc_frame_saved_pc): Ditto.
7573 (sparc_get_saved_register): Instead of get_saved_register, use
7574 frame_register.
7575 (sparc_pop_frame): Ditto.
7576 * findvar.c: Update comments.
7577 (value_of_register): Call frame_register instead of
7578 get_saved_register.
7579 (value_from_register): Ditto.
7580 * config/sparc/tm-sparc.h: Update comment.
7581 * breakpoint.c: Update comment.
7582
7583 2003-03-14 Andrew Cagney <cagney@redhat.com>
7584
7585 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7586 GET_SAVED_REGISTER.
7587 * gdbarch.h, gdbarch.c: Re-generate.
7588 * frame.h: Update comments.
7589 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7590 * x86-64-tdep.c (x86_64_init_abi): Update.
7591 * sparc-tdep.c (sparc_gdbarch_init): Update.
7592 * sh-tdep.c (sh_gdbarch_init): Update.
7593 * mips-tdep.c (mips_gdbarch_init): Update.
7594 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7595 * cris-tdep.c (cris_gdbarch_init): Update.
7596 * ia64-tdep.c (ia64_gdbarch_init): Update.
7597 * frame.c (frame_register): Update.
7598 (get_saved_register): Update.
7599 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7600
7601 2003-03-13 Andrew Cagney <cagney@redhat.com>
7602
7603 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7604 * gdbarch.h, gdbarch.c: Regenerate.
7605 * valops.c (hand_function_call): Update comment.
7606 * stack.c (return_command): Update comment.
7607 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7608 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7609 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7610 * x86-64-tdep.c (x86_64_init_abi): Update.
7611 * vax-tdep.c (vax_gdbarch_init): Update.
7612 * v850-tdep.c (v850_gdbarch_init): Update.
7613 * sparc-tdep.c (sparc_gdbarch_init): Update.
7614 * sh-tdep.c (sh_gdbarch_init): Update.
7615 * s390-tdep.c (s390_gdbarch_init): Update.
7616 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7617 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7618 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7619 * mips-tdep.c (mips_gdbarch_init): Update.
7620 * mcore-tdep.c (mcore_gdbarch_init): Update.
7621 * m68k-tdep.c (m68k_gdbarch_init): Update.
7622 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7623 * ia64-tdep.c (ia64_gdbarch_init): Update.
7624 * i386-tdep.c (i386_gdbarch_init): Update.
7625 * hppa-tdep.c (hppa_gdbarch_init): Update.
7626 * h8300-tdep.c (h8300_gdbarch_init): Update.
7627 * frv-tdep.c (frv_gdbarch_init): Update.
7628 * cris-tdep.c (cris_gdbarch_init): Update.
7629 * avr-tdep.c (avr_gdbarch_init): Update.
7630 * arm-tdep.c (arm_gdbarch_init): Update.
7631 * alpha-tdep.c (alpha_gdbarch_init): Update.
7632
7633 2003-03-13 Andrew Cagney <cagney@redhat.com>
7634
7635 * frame.c (legacy_frame_p): New function.
7636 (get_prev_frame): Use legacy_frame_p.
7637 * frame.h (legacy_frame_p): Declare.
7638
7639 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7640
7641 * MAINTAINERS (write after approval): Alphabetically
7642 listing corrected.
7643
7644 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7645
7646 * MAINTAINERS (write after approval): Add myself.
7647
7648 2003-03-12 Andrew Cagney <cagney@redhat.com>
7649
7650 * frame.c (get_prev_frame): Rename the frame parameter to
7651 "this_frame".
7652 (get_next_frame, legacy_get_prev_frame): Ditto.
7653
7654 2003-03-12 Andrew Cagney <cagney@redhat.com>
7655
7656 * frame.c (get_current_frame): Check target_has_registers before
7657 checking target_has_stack.
7658 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7659 instead of deprecated_selected_frame.
7660 * findvar.c (value_of_register): Pass "frame", not
7661 deprecated_selected_frame, to value_of_builtin_reg.
7662
7663 2003-03-12 Andrew Cagney <cagney@redhat.com>
7664
7665 * regcache.c (regcache_cooked_write_signed): New function.
7666 (regcache_cooked_write_unsigned): New function.
7667 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7668 (regcache_cooked_read_signed): Fix regnum in range assertion.
7669 * regcache.h (regcache_cooked_write_signed): Declare.
7670 (regcache_cooked_write_unsigned): Declare.
7671
7672 2003-03-12 Andrew Cagney <cagney@redhat.com>
7673
7674 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7675 * gdbarch.h, gdbarch.c: Re-generate.
7676 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7677 * x86-64-tdep.h: Update.
7678 * x86-64-tdep.c (x86_64_init_abi): Update.
7679 * v850-tdep.c (v850_gdbarch_init): Update.
7680 * sparc-tdep.c (sparc_gdbarch_init): Update.
7681 * sh-tdep.c (sh_gdbarch_init): Update.
7682 * s390-tdep.c (s390_gdbarch_init): Update.
7683 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7684 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7685 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7686 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7687 * mips-tdep.c (mips_gdbarch_init): Update.
7688 * mcore-tdep.c (mcore_gdbarch_init): Update.
7689 * m68k-tdep.c (m68k_gdbarch_init): Update.
7690 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7691 * ia64-tdep.c (ia64_gdbarch_init): Update.
7692 * i386-tdep.c (i386_gdbarch_init): Update.
7693 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7694 * hppa-tdep.c (hppa_gdbarch_init): Update.
7695 * h8300-tdep.c (h8300_gdbarch_init): Update.
7696 * frv-tdep.c (frv_gdbarch_init): Update.
7697 * cris-tdep.c (cris_gdbarch_init): Update.
7698 * avr-tdep.c (avr_gdbarch_init): Update.
7699 * arm-tdep.c (arm_gdbarch_init): Update.
7700 * alpha-tdep.c (alpha_gdbarch_init): Update.
7701 * sh-tdep.c (sh_init_extra_frame_info): Update.
7702 (sh64_init_extra_frame_info): Update.
7703 * ns32knbsd-nat.c (frame_num_args): Update.
7704 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7705 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7706 (xstormy16_frame_chain_valid): Update.
7707 * vax-tdep.c (vax_saved_pc_after_call): Update.
7708 * v850-tdep.c (v850_frame_chain): Update.
7709 (v850_pop_frame): Update.
7710 (v850_init_extra_frame_info): Update.
7711 * sparc-tdep.c (setup_arbitrary_frame): Update.
7712 * ns32k-tdep.c (umax_frame_num_args): Update.
7713 * s390-tdep.c (s390_pop_frame_regular): Update.
7714 * mn10300-tdep.c (mn10300_frame_chain): Update.
7715 (mn10300_pop_frame_regular): Update.
7716 (mn10300_init_extra_frame_info): Update.
7717 * mips-tdep.c (mips_init_frame_pc_first): Update.
7718 (mips_frame_chain): Update.
7719 (mips_pop_frame): Update.
7720 * mcore-tdep.c (mcore_frame_chain): Update.
7721 (mcore_pop_frame): Update.
7722 (mcore_init_extra_frame_info): Update.
7723 * arch-utils.c (init_frame_pc_default): Update.
7724 * m68k-tdep.c (isi_frame_num_args): Update.
7725 (delta68_frame_num_args): Update.
7726 (news_frame_num_args): Update.
7727 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7728 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7729 (alpha_frame_chain): Update.
7730 (alpha_pop_frame): Update.
7731 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7732 (hppa_init_extra_frame_info): Update.
7733 (hppa_frame_chain): Update.
7734 (hppa_frame_chain_valid): Update.
7735 * cris-tdep.c (cris_init_extra_frame_info): Update.
7736 * avr-tdep.c (avr_init_extra_frame_info): Update.
7737 * arm-tdep.c (arm_frame_chain_valid): Update.
7738 (arm_init_extra_frame_info): Update.
7739 (arm_pop_frame): Update.
7740 * frame.c (frame_pc_unwind): Update.
7741 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7742 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7743 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7744 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7745 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7746 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7747
7748 2003-03-12 Andrew Cagney <cagney@redhat.com>
7749
7750 Eliminate the need for POP_FRAME.
7751 * frame.c (do_frame_unwind_register): New function.
7752 (frame_pop): When no POP_FRAME, pop the frame using register
7753 unwind and a scratch regcache.
7754 (frame_saved_regs_pop): Delete function.
7755 (trad_frame_unwinder): Update.
7756 * d10v-tdep.c (d10v_frame_pop): Delete function.
7757 (d10v_frame_unwind): Update.
7758 * sentinel-frame.c (sentinel_frame_pop): Delete function.
7759 (sentinel_frame_unwinder): Update.
7760 * dummy-frame.c (dummy_frame_pop): Delete function.
7761 (dummy_frame_unwind): Update.
7762 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7763 (struct frame_unwind): Update.
7764
7765 2003-03-11 Kevin Buettner <kevinb@redhat.com>
7766
7767 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
7768 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
7769 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
7770 Do range checks on register number obtained from debugging info.
7771 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
7772 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
7773 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
7774 mapping function.
7775 (do_fp_register_row): Fix typo which caused double type to be
7776 used when attempting to unpack a float.
7777
7778 2003-03-11 J. Brobecker <brobecker@gnat.com>
7779
7780 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
7781
7782 2003-03-11 Andrew Cagney <cagney@redhat.com>
7783
7784 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
7785 frame. Problem found by Corinna Vinschen.
7786
7787 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
7788
7789 * doublest.c (floatformat_from_length): Accept also
7790 the real size of 'long double' type.
7791
7792 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
7793
7794 From Klee Dienes <kdienes@apple.com>:
7795 * breakpoint.c (bpstat_copy): Copy the command lines as well
7796 as the old value, to match what is freed in bpstat_clear.
7797
7798 2003-03-10 David Carlton <carlton@math.stanford.edu>
7799
7800 * minsyms.c (add_minsym_to_hash_table): Replace
7801 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7802 (compare_minimal_symbols, compact_minimal_symbols)
7803 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
7804 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
7805 of DEPRECATED_SYMBOL_MATCHES_NAME.
7806 (lookup_minimal_symbol_solib_trampoline): Ditto.
7807
7808 2003-03-10 Andrew Cagney <cagney@redhat.com>
7809
7810 * regcache.h (regcache_cooked_read_ftype): Define.
7811 (regcache_save, regcache_restore): Add a cooked_read parameter.
7812 * regcache.c (regcache_save, regcache_restore): Update.
7813 (do_cooked_read): New function.
7814 (regcache_cpy): Pass do_cooked_read to regcache_save and
7815 regcache_restore.
7816
7817 2003-03-10 Andrew Cagney <cagney@redhat.com>
7818
7819 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7820 * gdbarch.h, gdbarch.c: Re-generate.
7821 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7822 * x86-64-tdep.h: Update.
7823 * x86-64-tdep.c (x86_64_init_abi): Update.
7824 * v850-tdep.c (v850_gdbarch_init): Update.
7825 * sparc-tdep.c (sparc_gdbarch_init): Update.
7826 * sh-tdep.c (sh_gdbarch_init): Update.
7827 * s390-tdep.c (s390_gdbarch_init): Update.
7828 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7829 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7830 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7831 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7832 * mips-tdep.c (mips_gdbarch_init): Update.
7833 * mcore-tdep.c (mcore_gdbarch_init): Update.
7834 * m68k-tdep.c (m68k_gdbarch_init): Update.
7835 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7836 * ia64-tdep.c (ia64_gdbarch_init): Update.
7837 * i386-tdep.c (i386_gdbarch_init): Update.
7838 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7839 * hppa-tdep.c (hppa_gdbarch_init): Update.
7840 * h8300-tdep.c (h8300_gdbarch_init): Update.
7841 * frv-tdep.c (frv_gdbarch_init): Update.
7842 * cris-tdep.c (cris_gdbarch_init): Update.
7843 * avr-tdep.c (avr_gdbarch_init): Update.
7844 * arm-tdep.c (arm_gdbarch_init): Update.
7845 * alpha-tdep.c (alpha_gdbarch_init): Update.
7846 * sh-tdep.c (sh_init_extra_frame_info): Update.
7847 (sh64_init_extra_frame_info): Update.
7848 * ns32knbsd-nat.c (frame_num_args): Update.
7849 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7850 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7851 (xstormy16_frame_chain_valid): Update.
7852 * vax-tdep.c (vax_saved_pc_after_call): Update.
7853 * v850-tdep.c (v850_frame_chain): Update.
7854 (v850_pop_frame): Update.
7855 (v850_init_extra_frame_info): Update.
7856 * sparc-tdep.c (setup_arbitrary_frame): Update.
7857 * ns32k-tdep.c (umax_frame_num_args): Update.
7858 * s390-tdep.c (s390_pop_frame_regular): Update.
7859 * mn10300-tdep.c (mn10300_frame_chain): Update.
7860 (mn10300_pop_frame_regular): Update.
7861 (mn10300_init_extra_frame_info): Update.
7862 * mips-tdep.c (mips_init_frame_pc_first): Update.
7863 (mips_frame_chain): Update.
7864 (mips_pop_frame): Update.
7865 * mcore-tdep.c (mcore_frame_chain): Update.
7866 (mcore_pop_frame): Update.
7867 (mcore_init_extra_frame_info): Update.
7868 * arch-utils.c (init_frame_pc_default): Update.
7869 * m68k-tdep.c (isi_frame_num_args): Update.
7870 (delta68_frame_num_args): Update.
7871 (news_frame_num_args): Update.
7872 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7873 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7874 (alpha_frame_chain): Update.
7875 (alpha_pop_frame): Update.
7876 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7877 (hppa_init_extra_frame_info): Update.
7878 (hppa_frame_chain): Update.
7879 (hppa_frame_chain_valid): Update.
7880 * cris-tdep.c (cris_init_extra_frame_info): Update.
7881 * avr-tdep.c (avr_init_extra_frame_info): Update.
7882 * arm-tdep.c (arm_frame_chain_valid): Update.
7883 (arm_init_extra_frame_info): Update.
7884 (arm_pop_frame): Update.
7885 * frame.c (frame_pc_unwind): Update.
7886 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7887 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7888 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7889 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7890 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7891 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7892
7893 2003-03-10 Andrew Cagney <cagney@redhat.com>
7894
7895 * gdbarch.sh (gdbarch_unwind_pc): New method.
7896 * gdbarch.h, gdbarch.c: Regenerate.
7897 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
7898 but use read_pc and FRAME_SAVED_PC as fall backs.
7899 (frame_saved_regs_pc_unwind): Delete function.
7900 (trad_frame_unwinder): Update.
7901 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
7902 (struct frame_unwind): Update.
7903 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
7904 (dummy_frame_unwind): Update.
7905 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
7906 (sentinel_frame_unwinder): Update.
7907 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
7908 (d10v_frame_unwind): Update.
7909 (d10v_unwind_pc): New function.
7910 (d10v_gdbarch_init): Set unwind_pc.
7911
7912 2003-03-10 Andrew Cagney <cagney@redhat.com>
7913
7914 * gdbarch.h: Re-generate.
7915
7916 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
7917 PC.
7918 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
7919 the PC register.
7920
7921 2003-03-08 Mark Kettenis <kettenis@gnu.org>
7922
7923 * gdbarch.sh (save_dummy_frame_tos): Add comment.
7924
7925 2003-03-08 Andrew Cagney <cagney@redhat.com>
7926
7927 * cli-out.c: Update copyright.
7928 (cli_out_data): Define typedef. Use instead of ui_out_data.
7929
7930 2003-03-08 Andrew Cagney <cagney@redhat.com>
7931
7932 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
7933 the result.
7934
7935 2003-03-07 Andrew Cagney <cagney@redhat.com>
7936
7937 * gdbarch.sh: Don't generate two macro definitions when an
7938 undefined macro taking no arguments.
7939 * gdbarch.h: Regenerate.
7940
7941 2002-03-07 Michal Ludvig <mludvig@suse.cz>
7942
7943 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
7944 (x86_64_unwind_dummy_id): New functions.
7945 (x86_64_init_abi): Register these two new functions.
7946
7947 2003-03-07 Michal Ludvig <mludvig@suse.cz>
7948
7949 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
7950 (x86_64_skip_prologue): Move prologue detection to
7951 separate function.
7952 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
7953
7954 2003-03-05 Andrew Cagney <cagney@redhat.com>
7955
7956 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
7957 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
7958 * frame.c (get_prev_frame): Restructure the frame ID unwind code
7959 to use unwind_dummy_id when a dummy frame.
7960 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
7961 predicate.
7962 * gdbarch.h, gdbarch.c: Regneerate.
7963
7964 2003-03-05 Andrew Cagney <cagney@redhat.com>
7965
7966 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
7967 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
7968 Do not use d10v_read_sp or d10v_read_fp when obtaining register
7969 values.
7970
7971 2003-03-05 Andrew Cagney <cagney@redhat.com>
7972
7973 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
7974 (struct d10v_unwind_cache): Delete field "frameless". Replace
7975 "next_addr" with "sp_offset". Add "r11_offset".
7976 (d10v_frame_unwind_cache): Update.
7977 (prologue_find_regs): Update. When "mv r11, sp", save the
7978 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
7979 RN was saved in r11_offset.
7980
7981 2003-03-05 Andrew Cagney <cagney@redhat.com>
7982
7983 * frame.c (deprecated_update_frame_pc_hack): Also update the the
7984 cached PC value in the next frame.
7985
7986 2003-03-05 Andrew Cagney <cagney@redhat.com>
7987
7988 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
7989 "id_unwind_cache" with "id".
7990 (frame_id_unwind): Delete declaration.
7991 * frame.c (frame_id_unwind): Delete function.
7992 (get_prev_frame): Call the frame id unwind method directly. Store
7993 the returned next frame's ID value in NEXT_FRAME. Note that there
7994 is a problem with the wrong unwind ID being called with the wrong
7995 unwind cache.
7996
7997 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
7998
7999 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8000
8001 2003-03-05 James Ingham <jingham@apple.com>
8002 Daniel Jacobowitz <drow@mvista.com>
8003
8004 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8005 (auto_cp_abi): New variable.
8006 (current_cp_abi, num_cp_abis): Make static.
8007 (CP_ABI_MAX): Define.
8008 (cp_abis): Turn into an array.
8009 (value_virtual_fn_field): Fix formatting.
8010 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8011 takes a pointer.
8012 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8013 (list_cp_abis, _initialize_cp_abi): New functions.
8014 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8015 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8016 switch_to_cp_abi. Update prototype for register_cp_abi.
8017 * Makefile.in (cp-abi.o): Update dependencies.
8018 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8019 instead of switch_to_cp_abi.
8020 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8021 register_cp_abi.
8022 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8023 register_cp_abi.
8024 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8025
8026 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8027
8028 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8029 * dwarf2loc.c: Include "regcache.h".
8030 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8031 register_size.
8032 * Makefile.in (dwarf2loc.o): Update dependencies.
8033
8034 2003-03-04 Theodore A. Roth <troth@openavr.org>
8035
8036 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8037 number of io registers reported by remote target is not a multiple of
8038 step.
8039
8040 2003-03-04 David Carlton <carlton@math.stanford.edu>
8041
8042 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8043 (lookup_symbol_aux_psymtabs): Update call to
8044 lookup_partial_symbol.
8045 (lookup_transparent_type, find_main_psymtab)
8046 (make_symbol_overload_list): Ditto.
8047
8048 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8049
8050 * MAINTAINERS (Write after approval): Update my email address.
8051
8052 2003-03-03 Andrew Cagney <cagney@redhat.com>
8053
8054 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8055 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8056 predicate. Replace MAX_REGISTER_RAW_SIZE.
8057 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8058 MAX_REGISTER_VIRTUAL_SIZE.
8059 * regcache.c (legacy_max_register_raw_size): New function.
8060 (legacy_max_register_virtual_size): New function.
8061 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8062 (MAX_REGISTER_RAW_SIZE): Define.
8063 (legacy_max_register_raw_size): Declare.
8064 (legacy_max_register_virtual_size): Declare.
8065 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8066 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8067 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8068 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8069 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8070 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8071 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8072 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8073 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8074 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8075 * vax-tdep.c (vax_gdbarch_init): Update.
8076 * v850-tdep.c (v850_gdbarch_init): Update.
8077 * sparc-tdep.c (sparc_gdbarch_init): Update.
8078 * sh-tdep.c (sh_gdbarch_init): Update.
8079 * s390-tdep.c (s390_gdbarch_init): Update.
8080 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8081 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8082 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8083 * mips-tdep.c (mips_gdbarch_init): Update.
8084 * mcore-tdep.c (mcore_gdbarch_init): Update.
8085 * m68k-tdep.c (m68k_gdbarch_init): Update.
8086 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8087 * ia64-tdep.c (ia64_gdbarch_init): Update.
8088 * i386-tdep.c (i386_gdbarch_init): Update.
8089 * hppa-tdep.c (hppa_gdbarch_init): Update.
8090 * h8300-tdep.c (h8300_gdbarch_init): Update.
8091 * frv-tdep.c (frv_gdbarch_init): Update.
8092 * cris-tdep.c (cris_gdbarch_init): Update.
8093 * avr-tdep.c (avr_gdbarch_init): Update.
8094 * arm-tdep.c (arm_gdbarch_init): Update.
8095 * alpha-tdep.c (alpha_gdbarch_init): Update.
8096 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8097 max_register_raw_size or max_register_virtual_size.
8098
8099 2003-03-03 David Carlton <carlton@math.stanford.edu>
8100
8101 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8102 SYMBOL_MATCHES_NAME, add comment.
8103 (SYMBOL_MATCHES_NATURAL_NAME): New.
8104 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8105 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8106 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8107 * symtab.c (lookup_partial_symbol): Use
8108 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8109 unhelpful comment.
8110 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8111 SYMBOL_MATCHES_NAME.
8112 Fix for PR c++/33.
8113
8114 2003-03-03 David Carlton <carlton@math.stanford.edu>
8115
8116 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8117 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8118 by regexp matching against SYMBOL_NATURAL_NAME.
8119
8120 2003-03-03 David Carlton <carlton@math.stanford.edu>
8121
8122 * linespec.c (find_method): Extract code into collect_methods.
8123 (collect_methods): New.
8124
8125 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8126
8127 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8128 get_frame_base.
8129
8130 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8131 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8132
8133 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8134
8135 * arch-utils.c (generic_register_byte): Fix to use the loop index
8136 and not regnum when summing the size of all registers up to regnum.
8137
8138 2003-03-01 Andrew Cagney <cagney@redhat.com>
8139
8140 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8141 FRAME_INIT_SAVED_REGS.
8142 * gdbarch.h, gdbarch.c: Regenerate.
8143 * stack.c (frame_info): Update.
8144 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8145 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8146 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8147 * ns32k-tdep.c (ns32k_pop_frame): Update.
8148 * mips-tdep.c (mips_pop_frame): Update.
8149 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8150 * ia64-tdep.c (ia64_frame_chain): Update.
8151 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8152 (ia64_frameless_function_invocation): Update.
8153 (ia64_init_extra_frame_info): Update.
8154 (ia64_pop_frame_regular): Update.
8155 * frame.h (struct frame_info): Update comment.
8156 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8157 * frame.c (frame_saved_regs_register_unwind): Update.
8158 (frame_saved_regs_register_unwind): Update.
8159 (deprecated_generic_get_saved_register): Update.
8160 * cris-tdep.c: Update comment.
8161 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8162 Rename macro.
8163 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8164 * x86-64-tdep.c (x86_64_init_abi): Update.
8165 * vax-tdep.c (vax_gdbarch_init): Update.
8166 * v850-tdep.c (v850_gdbarch_init): Update.
8167 * sparc-tdep.c (sparc_gdbarch_init): Update.
8168 * sh-tdep.c (sh_gdbarch_init): Update.
8169 * s390-tdep.c (s390_gdbarch_init): Update.
8170 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8171 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8172 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8173 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8174 * mips-tdep.c (mips_gdbarch_init): Update.
8175 * mcore-tdep.c (mcore_gdbarch_init): Update.
8176 * m68k-tdep.c (m68k_gdbarch_init): Update.
8177 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8178 * ia64-tdep.c (ia64_gdbarch_init): Update.
8179 * i386-tdep.c (i386_gdbarch_init): Update.
8180 * frv-tdep.c (frv_gdbarch_init): Update.
8181 * avr-tdep.c (avr_gdbarch_init): Update.
8182 * arm-tdep.c (arm_gdbarch_init): Update.
8183 * alpha-tdep.c (alpha_gdbarch_init): Update.
8184
8185 2003-03-01 Andrew Cagney <cagney@redhat.com>
8186
8187 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8188 option enum and switch. When no windows, set the interpreter to
8189 INTERP_CONSOLE.
8190
8191 2003-03-01 Andrew Cagney <cagney@redhat.com>
8192
8193 * main.c (captured_main): Replace magic option characters with an
8194 enum.
8195
8196 2003-03-01 Andrew Cagney <cagney@redhat.com>
8197
8198 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8199 INIT_EXTRA_FRAME_INFO.
8200 * gdbarch.h, gdbarch.c: Regenerate.
8201 * arm-tdep.c: Update comments.
8202 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8203 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8204 * frame.h, avr-tdep.c: Ditto.
8205 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8206 (create_new_frame, legacy_get_prev_frame): Ditto.
8207 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8208 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8209 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8210 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8211 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8212 * v850-tdep.c (v850_gdbarch_init): Ditto.
8213 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8214 * sh-tdep.c (sh_gdbarch_init): Ditto.
8215 * s390-tdep.c (s390_gdbarch_init): Ditto.
8216 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8217 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8218 * mips-tdep.c (mips_gdbarch_init): Ditto.
8219 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8220 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8221 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8222 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8223 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8224 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8225 * frv-tdep.c (frv_gdbarch_init): Ditto.
8226 * cris-tdep.c (cris_gdbarch_init): Ditto.
8227 * avr-tdep.c (avr_gdbarch_init): Ditto.
8228 * arm-tdep.c (arm_gdbarch_init): Ditto.
8229 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8230 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8231
8232 2003-03-01 Andrew Cagney <cagney@redhat.com>
8233
8234 * gdbarch.sh (register_type): New function with predicate.
8235 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8236 * gdbarch.h, gdbarch.c: Re-generate.
8237 * arch-utils.c (generic_register_byte): Use generic_register_size.
8238 (generic_register_size): When available, use
8239 gdbarch_register_type.
8240 * regcache.c (init_regcache_descr): When available, initialize the
8241 register type array using gdbarch_register_type. If the
8242 architecture supplies gdbarch_register_type, do not use the legacy
8243 regcache layout.
8244 * d10v-tdep.c (d10v_register_type): Replace
8245 d10v_register_virtual_type.
8246 (d10v_gdbarch_init): Set register_type instead of
8247 register_virtual_type.
8248
8249 2003-03-01 Andrew Cagney <cagney@redhat.com>
8250
8251 * Makefile.in (ax-gdb.o): Update dependencies.
8252 * ax-gdb.c: Include "regcache.h".
8253 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8254 * findvar.c (value_of_register): Ditto.
8255 * infcmd.c (default_print_registers_info): Ditto.
8256
8257 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8258
8259 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8260 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8261
8262 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8263
8264 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8265 of STREQ.
8266
8267 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8268
8269 * Makefile.in (dwarf2loc.o): Update dependencies.
8270 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8271 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8272 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8273 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8274 (locexpr_tracepoint_var_ref): New function.
8275 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8276
8277 2003-02-28 Andrew Cagney <cagney@redhat.com>
8278
8279 * regcache.c (register_size): New function.
8280 * regcache.h (register_size): Declare
8281 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8282 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8283
8284 2003-02-28 David Carlton <carlton@math.stanford.edu>
8285
8286 * linespec.c (decode_compound): Extract code into find_method.
8287 (find_method): New.
8288
8289 2003-02-28 J. Brobecker <brobecker@gnat.com>
8290
8291 * Makefile.in: Add rules to build and link in observer.o.
8292
8293 2003-02-27 J. Brobecker <brobecker@gnat.com>
8294
8295 * observer.c: Minor comments edits.
8296
8297 2003-02-27 J. Brobecker <brobecker@gnat.com>
8298
8299 * observer.h, observer.c: New file.
8300
8301 2003-02-27 Andrew Cagney <cagney@redhat.com>
8302
8303 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8304
8305 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8306
8307 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8308 (M6812_OP_STS_EXT): Likewise.
8309 (m6811_prologue): Use the above to recognize prologue.
8310 (m6812_prologue): Likewise.
8311
8312 2003-02-27 David Carlton <carlton@math.stanford.edu>
8313
8314 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8315 SYMBOL_PRINT_NAME.
8316 (compare_psymbols): Ditto.
8317 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8318
8319 2003-02-27 Michael Snyder <msnyder@redhat.com>
8320
8321 * f-lang.c (build_fortran_types): New function.
8322 (_initialize_f_language): Gdbarch-register built-in fortran types.
8323 * doublest.c (extract_floating): Fix warning text.
8324
8325 2003-02-27 Andrew Cagney <cagney@redhat.com>
8326
8327 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8328 predicate. Replaces PUSH_DUMMY_FRAME.
8329 * gdbarch.h, gdbarch.c: Regnerate.
8330 * valops.c (hand_function_call): Update. Call
8331 generic_push_dummy_frame directly.
8332 * vax-tdep.c (vax_gdbarch_init): Update.
8333 * sparc-tdep.c (sparc_gdbarch_init): Update.
8334 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8335 * m68k-tdep.c (m68k_gdbarch_init): Update.
8336 * hppa-tdep.c (hppa_gdbarch_init): Update.
8337 * alpha-tdep.c (alpha_gdbarch_init): Update.
8338 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8339 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8340 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8341 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8342 push_dummy_frame to generic_push_dummy_frame.
8343 * v850-tdep.c (v850_gdbarch_init): Ditto.
8344 * sh-tdep.c (sh_gdbarch_init): Ditto.
8345 * s390-tdep.c (s390_gdbarch_init): Ditto.
8346 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8347 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8348 * mips-tdep.c (mips_gdbarch_init): Ditto.
8349 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8350 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8351 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8352 * i386-tdep.c (i386_gdbarch_init): Ditto.
8353 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8354 * frv-tdep.c (frv_gdbarch_init): Ditto.
8355 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8356 * cris-tdep.c (cris_gdbarch_init): Ditto.
8357 * avr-tdep.c (avr_gdbarch_init): Ditto.
8358 * arm-tdep.c (arm_gdbarch_init): Ditto.
8359
8360 2003-02-26 Kevin Buettner <kevinb@redhat.com>
8361
8362 * mips-tdep.c (show_mips_abi): New function.
8363 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8364 command ``show mips abi''.
8365
8366 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8367
8368 From Elena Zannoni <ezannoni@redhat.com>
8369 * dbxread.c (process_one_symbol): Only record line 0 if one or
8370 more sline entries have been seen for the function.
8371
8372 2003-02-26 Michael Chastain <mec@shout.net>
8373
8374 * configure: Regenerate with autoconf 000227.
8375
8376 2003-02-26 Michael Chastain <mec@shout.net>
8377
8378 Close PR build/660.
8379 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8380 for old libc5/glibc.
8381 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8382
8383 2003-02-26 Kris Warkentin <kewarken@qnx.com>
8384
8385 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8386 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8387
8388 2003-02-26 Michael Chastain <mec@shout.net>
8389
8390 * configure.in: New variable HAVE_UINTPTR_T.
8391 * configure, config.in: Regenerated.
8392
8393 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
8394
8395 Fix PR build/1097.
8396 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8397
8398 2003-02-25 Andrew Cagney <cagney@redhat.com>
8399
8400 * frame.c (get_prev_frame): Add comment on check for
8401 inside_entry_func. Only check for inside_entry_file when not a
8402 dummy and not a sentinel. Check that the new frame is not inner
8403 to the old frame.
8404
8405 2003-02-25 Andrew Cagney <cagney@redhat.com>
8406
8407 * frame.c (frame_debug): New variable.
8408 (_initialize_frame): Add "set/show debug frame" command.
8409 (get_prev_frame): When frame_debug, print reason why unwind
8410 failed.
8411
8412 2003-02-25 Michael Chastain <mec@shout.net>
8413
8414 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8415 to avoid uintptr_t definition problems.
8416
8417 2003-02-25 David Carlton <carlton@math.stanford.edu>
8418
8419 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8420 (SYMBOL_LINKAGE_NAME): Ditto.
8421 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8422 SYMBOL_LINKAGE_NAME.
8423 (struct general_symbol_info): Expand comment.
8424 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8425 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8426 (SYMBOL_MATCHES_REGEXP): Ditto.
8427 * symtab.c (symbol_natural_name): New function.
8428 * objfiles.h: Replace all uses of SYMBOL_NAME by
8429 DEPRECATED_SYMBOL_NAME.
8430 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8431 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8432 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8433 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8434 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8435 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8436 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8437 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8438 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8439 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8440 * ada-exp.y: Ditto.
8441 * ada-exp.y: Update copyright.
8442 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8443 * cp-valprint.c: Ditto.
8444
8445 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8446
8447 * infptrace.c (detach): Do not flag error if ptrace detach fails
8448 and errno is set to ESRCH.
8449
8450 2003-02-24 Andrew Cagney <cagney@redhat.com>
8451
8452 * infptrace.c (udot_info): Change type of udot_off to long. Use
8453 paddr when printing udot_off's value.
8454
8455 2003-02-24 David Carlton <carlton@math.stanford.edu>
8456
8457 * symtab.c (make_symbol_overload_list): Only read in partial
8458 symtabs containing a matching partial symbol.
8459
8460 2003-02-24 David Carlton <carlton@math.stanford.edu>
8461
8462 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8463 do the comparison, not strcmp.
8464 * symfile.c (compare_psymbols): Ditto.
8465 * defs.h: Declare strcmp_iw_ordered.
8466 * utils.c (strcmp_iw_ordered): New function.
8467
8468 2003-02-24 Jim Blandy <jimb@redhat.com>
8469
8470 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8471 support, shared libs): Remove my name from here, to better reflect
8472 reality.
8473
8474 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8475
8476 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8477 (target_ops): Add to_have_continuable_watchpoint.
8478 * target.c (update_current_target): Add INHERIT line for
8479 to_have_continuable_watchpoint.
8480 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8481 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8482 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8483 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8484
8485 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
8486
8487 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8488 maintainership.
8489
8490 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8491
8492 * solib.c (solib_open): Call target defined search function after
8493 failing with solib-search-path.
8494 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8495 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8496
8497 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8498
8499 * MAINTAINERS: Add myself to Write After section.
8500
8501 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8502
8503 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8504
8505 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8506
8507 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8508 (m68hc11_add_reggroups): New function.
8509 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8510 (m68hc11_gdbarch_init): Install the reggroups.
8511 (_initialize_m68hc11_tdep): Initialize them.
8512
8513 2003-02-21 James E Wilson <wilson@tuliptree.org>
8514
8515 * MAINTAINERS: Update my email address.
8516
8517 2003-02-21 David Carlton <carlton@math.stanford.edu>
8518
8519 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8520
8521 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
8522
8523 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8524 * symtab.h: Add opaque declarations of struct axs_value and
8525 struct agent_expr.
8526 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8527 (struct location_funcs): New type.
8528 (struct symbol): Add "loc" to aux_value.
8529 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8530 * dwarf2read.c: Include "dwarf2expr.h".
8531 (dwarf2_symbol_mark_computed): New function.
8532 (read_func_scope): Use it.
8533 (var_decode_location): New function.
8534 (new_symbol): Use it.
8535 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8536
8537 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8538 (dwarf2expr_h, dwarf2loc_h): New variables.
8539 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8540 (dwarf2expr.o, dwarf2loc.o): New rules.
8541 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8542 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8543 LOC_COMPUTED_ARG.
8544 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8545 * m2-exp.y (yylex): Likewise.
8546 * printcmd.c (address_info, print_frame_args): Likewise.
8547 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8548 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8549 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8550 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8551 * symtab.c (lookup_block_symbol): Likewise.
8552
8553 2003-02-20 Adam Fedor <fedor@gnu.org>
8554
8555 * symtab.h: Remove objc_specific struct
8556 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8557 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8558 Have language_objc use cplus_specific struct.
8559
8560 2003-02-20 Tom Tromey <tromey@redhat.com>
8561
8562 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8563 TYPE_NAME, when printing a String value. PR java/1075.
8564
8565 2003-02-20 Adam Fedor <fedor@gnu.org>
8566
8567 * objc-lang.h (find_methods): Remove declaration.
8568 * objc-lang.c (find_methods): Make static.
8569
8570 2003-02-20 Christopher Faylor <cgf@redhat.com>
8571
8572 * win32-nat.c (get_image_name): Check return value from
8573 ReadProcessMemory.
8574 (child_xfer_memory): Ditto.
8575
8576 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
8577
8578 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8579 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8580 '${exec_prefix}' (in addition to the expansion thereof) as
8581 relocatable.
8582 * configure: Rebuilt.
8583
8584 2003-02-20 David Carlton <carlton@math.stanford.edu>
8585
8586 * symtab.c (search_symbols): Revert the search_symbols part of my
8587 2002-12-23 patch. Add comment.
8588
8589 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8590
8591 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8592 * dbxread.c (elfstab_build_psymtabs): Don't call
8593 install_minimal_symbols.
8594 (stabsect_build_psymtabs): Likewise.
8595 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8596 earlier.
8597 * somread.c (som_symfile_read): Call install_minimal_symbols
8598 and do_cleanups earlier.
8599 * nlmread.c (nlm_symfile_read): Likewise.
8600 * mdebugread.c (elfmdebug_build_psymtabs): Call
8601 install_minimal_symbols and make appropriate cleanups.
8602
8603 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8604
8605 * solib.c (reload_shared_libraries): New function.
8606 (_initialize_solib): Add callbacks for ``set solib-search-path''
8607 and ``set solib-absolute-prefix''.
8608
8609 2003-02-20 David Carlton <carlton@math.stanford.edu>
8610
8611 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8612 expand comment.
8613 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8614 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8615 * ada-typeprint.c (ada_typedef_print): Ditto.
8616 * ax-gdb.c (gen_var_ref): Ditto.
8617 * breakpoint.c (print_one_breakpoint): Ditto.
8618 * buildsym.c (finish_block): Ditto.
8619 * c-valprint.c (c_val_print): Ditto.
8620 * expprint.c (print_subexp): Ditto.
8621 * findvar.c (locate_var_value): Ditto.
8622 * infcmd.c (jump_command): Ditto.
8623 * linespec.c (decode_line_2, decode_compound): Ditto.
8624 * maint.c (maintenance_translate_address): Ditto.
8625 * objc-lang.c (compare_selectors, compare_classes): Ditto.
8626 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8627 Ditto.
8628 * p-valprint.c (pascal_val_print): Ditto.
8629 * stabsread.c (define_symbol): Ditto.
8630 * stack.c (print_frame, frame_info, print_block_frame_locals)
8631 (print_frame_arg_vars, return_command): Ditto.
8632 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8633 * symmisc.c (print_symbol): Ditto.
8634 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8635 (compare_search_syms, print_symbol_info, print_msymbol_info)
8636 (rbreak_command): Ditto.
8637 * tracepoint.c (tracepoints_info): Ditto.
8638 * typeprint.c (typedef_print): Ditto.
8639 * valops.c (value_of_variable, hand_function_call): Ditto.
8640 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8641 * ada-typeprint.c: Update Copyright.
8642 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8643 * tracepoint.c, cli/cli-cmds.c: Ditto.
8644
8645 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8646
8647 * frame.c (generic_unwind_get_saved_register): Make non-static.
8648 * frame.h (generic_unwind_get_saved_register): Declare.
8649 * mips-tdep.c (read_next_frame_reg): Fetch register from
8650 current regcache when frame is NULL.
8651 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8652 that must be NULL.
8653 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8654 instead of frame_register_unwind().
8655
8656 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8657
8658 * remote-sim.c (gdbsim_insert_breakpoint)
8659 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8660 code.
8661
8662 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8663
8664 * remote.c (_initialize_remote): Add commands "set/show remote
8665 hardware-watchpoint-limit" and "set/show remote
8666 hardware-breakpoint-limit".
8667 (remote_hw_watchpoint_limit): Initialize to -1.
8668 (remote_hw_breakpoint_limit): Ditto.
8669 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8670
8671 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8672
8673 * coff-pe-read.c: New file - support reading of minimal symbols from a
8674 portable executable using the export table.
8675 * coff-pe-read.h: New file.
8676 * coffread.c: Include coff-pe-read.h.
8677 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8678 debugging symbols found.
8679 * Makefile.in (SFILES): Add coff-pe-read.o.
8680 (coff_pe_read_h): Define.
8681 (COMMON_OBS): Add coff-pe-read.o.
8682 (coffread.o): Add coff_pe_read_h dependency.
8683 (coff-pe-read.o): New target.
8684
8685 2003-02-19 David Carlton <carlton@math.stanford.edu>
8686
8687 * Makefile.in (SFILES): Add block.c.
8688 (block_h): New.
8689 (COMMON_OBS): Add block.o.
8690 (block.o): New.
8691 (x86-64-tdep.o): Add $(block_h).
8692 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8693 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8694 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8695 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8696 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8697 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8698 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8699 * value.h: Add opaque declaration for struct block.
8700 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8701 * ada-lang.h: Ditto.
8702 * x86-64-tdep.c: #include "block.h"
8703 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8704 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8705 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8706 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8707 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8708 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8709 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8710 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8711 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8712 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8713 * symtab.c (block_function): Ditto.
8714 (contained_in): Ditto.
8715 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8716 block.h. Add opaque declaration for struct block.
8717 * symtab.h: Move block_function and contained_in declarations to
8718 block.h. Add opaque declarations for struct block, struct
8719 blockvector.
8720 (struct block): Move to block.h.
8721 (struct blockvector): Ditto.
8722 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8723 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8724 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8725 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8726 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8727 Ditto.
8728 * block.c: New file.
8729 * block.h: New file.
8730
8731 2003-02-19 Theodore A. Roth <troth@openavr.org>
8732
8733 * avr-tdep.c (avr_extract_return_value): Remove function.
8734 (avr_store_return_value): Remove function.
8735 (avr_extract_struct_value_address): Remove function.
8736 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8737
8738 2003-02-19 Andrew Cagney <ac131313@redhat.com>
8739
8740 * rs6000-tdep.c: Include "gdb_assert.h".
8741 (registers_e500): Add "acc" and "spefscr".
8742 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8743 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8744 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
8745 really is "r0".
8746 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8747
8748 2003-02-18 Keith Seitz <keiths@redhat.com>
8749
8750 * Makefile.in: Add gdbtk-interps.c.
8751
8752 2003-02-18 Kevin Buettner <kevinb@redhat.com>
8753
8754 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8755 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8756
8757 2003-02-18 Andrew Cagney <cagney@redhat.com>
8758
8759 * symtab.h (struct objfile): Add opaque declaration.
8760
8761 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
8762
8763 From Jim Ingham <jingham@apple.com>:
8764 * dbxread.c (process_one_symbol): Use last_function_start rather
8765 than function_start_offset to find the real beginning of the
8766 current function. The latter is just the text section offset on
8767 some systems, the former is always the real function start.
8768
8769 2003-02-17 Andrew Cagney <cagney@redhat.com>
8770
8771 * configure.in: Revert ${target} != ${host}.
8772
8773 2003-02-17 Andrew Cagney <ac131313@redhat.com>
8774
8775 * configure.in (Makefile): Use the test ${target} != ${host},
8776 instead of the absence of the "nm.h" file, to determine of the
8777 configuration non-native.
8778 * configure: Regenerate.
8779
8780 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
8781
8782 From Brian Ford <ford@vss.fsi.com>
8783
8784 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
8785 conditionalize tui_active test.
8786 (lookup_cmd_1): Ditto.
8787
8788 2003-02-14 Mark Kettenis <kettenis@gnu.org>
8789
8790 * configure.in: Add check for _etext.
8791 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
8792 available.
8793 * config.in, configure: regenerated.
8794
8795 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
8796
8797 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
8798
8799 2003-02-14 Andrew Cagney <ac131313@redhat.com>
8800
8801 * main.c (tui_version): Delete variable.
8802 (captured_main): When --tui, set interpreter_p to "tui" instead of
8803 enabling tui_version.
8804 * printcmd.c (display_command) [TUI]: Test tui_active instead of
8805 tui_version.
8806 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
8807 * cli/cli-cmds.c (disassemble_command): Ditto.
8808 * defs.h (tui_version): Delete declaration.
8809 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
8810 (tui-interp.o): Add rules.
8811 (SUBDIR_TUI_OBS): Add "tui-interp.o".
8812
8813 2003-02-14 Christopher Faylor <cgf@redhat.com>
8814
8815 * win32-nat.c (register_loaded_dll): Correctly set address range for
8816 just-loaded dll.
8817
8818 2003-02-12 Jason Molenda (jmolenda@apple.com)
8819
8820 * symmisc.c (print_objfile_statistics): Include information about
8821 the number of psymtabs and symtabs in each object file.
8822
8823 2003-02-13 Keith R Seitz <keiths@redhat.com>
8824
8825 * main.h (struct captured_main_args): Add interpreter_p.
8826 * main.c (captured_main): Initialize interpreter_p from context.
8827 * gdb.c (main): Set interpreter_p argument.
8828 * Makefile.in (gdb.o): Add dependency for interps.h.
8829
8830 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8831
8832 * event-top.c (cli_command_loop): Delete declaration.
8833 (_initialize_event_loop): Delete function setting event_loop_hook.
8834 * event-top.h (cli_command_loop): Declare. Update copyright.
8835 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
8836 * interps.c (current_interp_command_loop): When event_loop_p, call
8837 cli_command_loop.
8838
8839 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8840
8841 * interps.h (interp_command_loop_ftype): Change return type to
8842 void.
8843
8844 2003-02-12 Michal Ludvig <mludvig@suse.cz>
8845
8846 * x86-64-tdep.c (x86_64_extract_return_value)
8847 (x86_64_store_return_value): Use regcache instead of regbuf.
8848 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
8849 * x86-64-linux-nat.c (fill_gregset): Use regcache.
8850
8851 2003-02-11 Andrew Cagney <ac131313@redhat.com>
8852
8853 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
8854 * aclocal.m4: Regenerate.
8855 * configure: Regenerate.
8856
8857 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
8858 TCL_LD_SEARCH_FLAGS.
8859
8860 2003-02-10 Michal Ludvig <mludvig@suse.cz>
8861
8862 * dwarf2cfi.c: Reindented.
8863
8864 2003-02-09 Andrew Cagney <ac131313@redhat.com>
8865
8866 * interps.c (clear_interpreter_hooks): Convert function definition
8867 to ISO C.
8868
8869 2003-02-07 David Carlton <carlton@math.stanford.edu>
8870
8871 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8872
8873 2003-02-07 Kevin Buettner <kevinb@redhat.com>
8874
8875 * gdbtypes.h (struct main_type): Move ``length'' field from here...
8876 (struct type): ...to here.
8877 (TYPE_LENGTH): Adjust to reflect different location of ``length''
8878 field.
8879 * gdbtypes.c (make_qualified_type): Set length on newly created type.
8880 (replace_type): Set length on all type variants for a given type.
8881
8882 2003-02-07 Andrew Cagney <ac131313@redhat.com>
8883
8884 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
8885 <sys/stat.h>.
8886 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8887
8888 2003-02-06 Andrew Cagney <ac131313@redhat.com>
8889
8890 * Makefile.in (symm-nat.o): Update dependencies.
8891 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
8892 (lynx-nat.o, ia64-linux-nat.): Ditto.
8893 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
8894 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
8895 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
8896
8897 * Makefile.in (inflow_h): Define.
8898 (procfs.o, inflow.o, procfs.o): Update dependencies.
8899 * inftarg.c (child_stop): Delete extern declaration of
8900 inferior_process_group. Include "inflow.h".
8901 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
8902 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
8903 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
8904 (our_process_group, inferior_process_group): Extern declarations.
8905
8906 * procfs.c: Include "gdb_assert.h".
8907
8908 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8909 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
8910 * jv-typeprint.c (java_type_print_base): Ditto.
8911 * typeprint.c (typedef_print): Eliminate STREQ.
8912 * cli/cli-script.c (define_command, define_command): Ditto.
8913 * main.c (captured_main): Ditto.
8914 * values.c (lookup_internalvar): Ditto.
8915 * utils.c (safe_strerror, parse_escape): Eliminate assignment
8916 within `if' conditional.
8917 * linespec.c (decode_line_2): Ditto.
8918 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
8919 (bfd_openw_with_cleanup): Ditto.
8920
8921 2003-02-07 Mark Kettenis <kettenis@gnu.org>
8922
8923 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
8924 legacy_extract_return_value and store_return_value to
8925 legacy_return_value.
8926
8927 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
8928
8929 * win32-nat.c (get_relocated_section_addrs): New function. Find
8930 section load addresses for symbol handling in relocated DLLs.
8931 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
8932
8933 2003-02-05 Fred Fish <fnf@intrinsity.com>
8934
8935 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
8936 '=' and '!='.
8937 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
8938 with '&' and '=='.
8939 (angel_RDI_info): Ditto.
8940 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
8941 with '&' and '!='.
8942 (threads_continue_all_with_signals): Ditto.
8943
8944 2003-02-05 Jim Ingham <jingham@apple.com>
8945 Keith Seitz <keiths@redhat.com>
8946 Elena Zannoni <ezannoni@redhat.com>
8947 Andrew Cagney <ac131313@redhat.com>
8948
8949 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
8950 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
8951 (SUBDIR_MI_OBS): Add "mi-interp.o".
8952 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
8953 (SFILES): Add "interps.c".
8954 (COMMON_OBS): Add "interps.o".
8955 (interps_h, mi_main_h): Define.
8956 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
8957 (mi-main.o, main.o, event-top.o): Update dependencies.
8958 * cli/cli-interp.c: New file.
8959 * interps.h, interps.c: New files.
8960 * top.c: (gdb_init): Don't install the default interpreter, handed
8961 by captured_main.
8962 * main.c: Include "interps.h".
8963 (interpreter_p): Note that it should malloc'ed.
8964 (captured_command_loop): Call current_interp_command_loop.
8965 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
8966 xfree and xstrdup when updating interpreter_p. Install the
8967 default interpreter. Add hack to stop mi1's copyright notice
8968 being encoded.
8969 * event-top.h (gdb_setup_readline): Declare.
8970 (gdb_disable_readline): Declare.
8971 * event-top.c: Include "interps.h".
8972 (display_gdb_prompt): Call current_interp_display_prompt_p.
8973 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
8974 gdb_stdlog, and gdb_stdtarg.
8975 (_initialize_event_loop): Don't call gdb_setup_readline.
8976 * cli-out.c (cli_out_set_stream): New function.
8977 * cli-out.h (cli_out_set_stream): Declare.
8978
8979 2003-02-06 Mark Kettenis <kettenis@gnu.org>
8980
8981 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
8982 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
8983 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
8984 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
8985 config/i386/i386v42mp.mt: Removed.
8986
8987 2003-02-05 Mark Kettenis <kettenis@gnu.org>
8988
8989 * configure.tgt (*-*-solaris*): Set gdb_osabi to
8990 GDB_OSABI_SOLARIS.
8991
8992 2003-02-05 Michael Chastain <mec@shout.net>
8993
8994 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
8995 2.12.1 and earlier versions.
8996
8997 2003-02-05 Andrew Cagney <ac131313@redhat.com>
8998
8999 Remove orphaned hosts, targets and files.
9000 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9001 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9002 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9003 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9004 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9005 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9006 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9007 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9008 * config/sparc/tm-sp64sim.h: Delete.
9009 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9010 hosts.
9011 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9012 mips*-dec-mach3* targets.
9013
9014 2003-02-04 Michael Chastain <mec@shout.net>
9015
9016 * NEWS: Fix typo: sepcifying -> specifying.
9017
9018 2003-02-04 Michael Chastain <mec@shout.net>
9019
9020 * dwarfread.c: Add documentation on the state of dwarf-1,
9021 looking towards obsoletion.
9022
9023 2003-02-03 Michael Chastain <mec@shout.net>
9024
9025 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9026 gdb/testsuite/gdb.c++/pr-1023.exp.
9027
9028 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9029
9030 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9031 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9032
9033 * utils.c (init_page_info): Delete reference to MPW in comments.
9034 * main.c (captured_main): Delete #ifdef MPW.
9035
9036 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9037
9038 * NEWS: Note that the m32r-*-elf* is obsolete.
9039 * monitor.c (monitor_expect): Obsolete reference to m32r.
9040 * configure.tgt: Mark m32r-*-elf* as obsolete.
9041 * MAINTAINERS: Mark m32k as obsolete.
9042 * m32r-rom.c: Obsolete file.
9043 * config/m32r/m32r.mt: Obsolete file.
9044 * config/m32r/tm-m32r.h: Obsolete file.
9045 * m32r-stub.c: Obsolete file.
9046 * m32r-tdep.c: Obsolete file.
9047
9048 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9049
9050 * NEWS: Mention that the z8k-zilog-none is obsolete.
9051 * MAINTAINERS: Mark z8k as obsolete.
9052 * configure.tgt: Obsolete the z8k-*-coff* target.
9053 * config/z8k/z8k.mt: Obsolete file.
9054 * config/z8k/tm-z8k.h: Obsolete file.
9055 * z8k-tdep.c: Obsolete file.
9056
9057 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9058
9059 * NEWS: Mention that the mn10200-elf is obsolete.
9060 * configure.tgt: Obsolete mn10200-*-* target.
9061 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9062 mention that the mn10200 is obsolete.
9063 * breakpoint.h: Ditto.
9064 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9065 * config/mn10200/mn10200.mt: Obsolete file.
9066 * config/mn10200/tm-mn10200.h: Obsolete file.
9067 * mn10200-tdep.c: Obsolete file.
9068
9069 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9070
9071 * MAINTAINERS: Mark h8500 as obsolete.
9072 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9073 * findvar.c (value_from_register): Ditto.
9074 * h8500-tdep.c: Mark file as obsolete.
9075 * config/h8500/h8500.mt: Ditto.
9076 * config/h8500/tm-h8500.h: Ditto.
9077 * NEWS: Mention that h8500 is obsolete.
9078
9079 2003-02-04 David Carlton <carlton@math.stanford.edu>
9080
9081 * objfiles.c (allocate_objfile): Always set name. Add comment at
9082 start of function.
9083 * jv-lang.c (get_dynamics_objfile): Add comment.
9084
9085 2003-02-04 David Carlton <carlton@math.stanford.edu>
9086
9087 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9088 * printcmd.c (build_address_symbolic): Replace uses of
9089 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9090 SYMBOL_NAME, and asm_demangle.
9091 Update copyright.
9092
9093 2003-02-04 David Carlton <carlton@math.stanford.edu>
9094
9095 * linespec.c (decode_compound): Extract code into
9096 lookup_prefix_sym.
9097 (lookup_prefix_sym): New function.
9098
9099 2003-02-04 David Carlton <carlton@math.stanford.edu>
9100
9101 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9102 FLOAT_COERCION_BADNESS.
9103 * gdbtypes.c (rank_one_type): Replace all uses of
9104 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9105
9106 2003-02-04 Jim Blandy <jimb@redhat.com>
9107
9108 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9109 section, let dwarf_macinfo_section point to it, not
9110 dwarf_loc_section.
9111
9112 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9113
9114 Pointed out by Anton Blanchard <anton@samba.org>.
9115 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9116 (ppc_linux_at_sigtramp_return_path): Use it.
9117
9118 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9119
9120 * defs.h (streq): Add prototype.
9121 * utils.c (streq): New function.
9122
9123 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9124 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9125 * mdebugread.c (new_symbol): Likewise.
9126 * stabsread.c (define_symbol): Likewise.
9127 * coffread.c (process_coff_symbol): Likewise.
9128 * dwarfread.c (new_symbol): Likewise.
9129
9130 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9131 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9132 here.
9133 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9134 SYMBOL_INIT_DEMANGLED_NAME.
9135 * objfiles.c: Include "hashtab.h".
9136 (allocate_objfile): Call htab_set_functions_ex for the
9137 demangled_names_hash.
9138 (free_objfile): Call htab_delete for the demangled_names_hash.
9139 * objfiles.h (struct htab): Add declaration.
9140 (struct objfile): Add demangled_names_hash.
9141 * symfile.c: Include "hashtab.h".
9142 (reread_symbols): Call htab_delete for the demangled_names_hash.
9143 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9144 SYMBOL_NAME in the bcache.
9145 * symtab.c: Include "hashtab.h". Update comments.
9146 (create_demangled_names_hash, symbol_set_names): New functions.
9147 (symbol_find_demangled_name): New function, broken out from
9148 symbol_init_demangled_names.
9149 (symbol_init_demangled_names): Use it.
9150 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9151 (SYMBOL_SET_NAMES): New macro.
9152 (symbol_set_names): Add prototype.
9153
9154 2003-02-03 Jim Blandy <jimb@redhat.com>
9155
9156 Use a single, consistent representation for an empty minimal
9157 symbol table in an objfile.
9158 * objfiles.c (terminate_minimal_symbol_table): New function.
9159 (allocate_objfile): Call it.
9160 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9161 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9162 non-NULL.
9163 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9164 objfile has minimal symbols, compare minimal_symbol_count to zero,
9165 instead of comparing msymbols with NULL.
9166 * objfiles.c (have_minimal_symbols): Same.
9167 * solib-sunos.c (solib_add_common_symbols): Call
9168 terminate_minimal_symbol_table.
9169 * symfile.c (reread_symbols): Same.
9170
9171 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9172
9173 * s390-tdep.c (s390_address_class_type_flags)
9174 (s390_address_class_type_flags_to_name)
9175 (s390_address_class_name_to_type_flags): New functions.
9176 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9177 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9178
9179 2003-02-03 Michael Snyder <msnyder@redhat.com>
9180
9181 * arm-tdep.c: Fix spell-o in comment.
9182
9183 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9184
9185 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9186 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9187 error messages to contain BFD filename.
9188
9189 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9190
9191 Fix PR gdb/742 gdb/743 gdb/877
9192 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9193 (do_mixed_source_and_assembly): Use
9194 make_cleanup_ui_out_tuple_begin_end and
9195 make_cleanup_ui_out_tuple_begin_end.
9196 (do_mixed_source_and_assembly): Ditto.
9197 * thread.c (do_captured_list_thread_ids): Ditto.
9198 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9199 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9200 ui_out_tuple_end): Delete prototypes.
9201 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9202 ui_out_list_end, ui_out_tuple_end): Delete.
9203
9204 From Kevin Buettner <kevinb@redhat.com>:
9205 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9206 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9207 (do_cleanup_table_end): New functions.
9208 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9209 Use cleanups to invoke_ui_out_tuple_end().
9210 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9211 * cli/cli-setshow.c (cmd_show_list): Use
9212 make_cleanup_ui_out_tuple_begin_end.
9213
9214 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9215
9216 * frame.c (frame_unwind_register): New function.
9217 (frame_unwind_unsigned_register): Use.
9218 (frame_unwind_signed_register): Use.
9219 (frame_read_register): New function.
9220 * frame.h (frame_unwind_register): Declare.
9221 (frame_read_register): Declare.
9222
9223 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9224 and frame_unwind_register instead of read_memory, write_register
9225 and deprecated_write_register_bytes.
9226
9227 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9228
9229 * frame.h: Note that namelen can be negative.
9230 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9231 NAME's length.
9232
9233 * NEWS: Mention that the d10v's `regs' command is deprecated.
9234 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9235 (d10v_print_registers_info): New function.
9236 (show_regs): Call d10v_print_registers_info.
9237 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9238
9239 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9240
9241 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9242 lost in the previous patch.
9243
9244 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9245
9246 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9247 * stack.c (print_frame_info_base): Output complete FRAME tuple
9248 for synthesized frames.
9249
9250 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9251
9252 * mips-nat.c (zerobuf): Delete.
9253 (fetch_inferior_registers): Alloc local zerobuf.
9254 (fetch_core_registers): Alloc local zerobuf.
9255 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9256 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9257 * thread-db.c (thread_db_store_registers): Ditto.
9258 * sh-tdep.c (sh_do_register): Ditto.
9259 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9260 * remote-sim.c (gdbsim_store_register): Ditto.
9261 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9262 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9263 * monitor.c (monitor_supply_register): Ditto.
9264 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9265 * mips-nat.c (fetch_inferior_registers): Ditto.
9266 * m68klinux-nat.c (fetch_register): Ditto.
9267 * lynx-nat.c (fetch_inferior_registers): Ditto.
9268 (fetch_inferior_registers): Ditto.
9269 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9270 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9271 (hpux_thread_store_registers): Ditto.
9272 * hppah-nat.c (fetch_register): Ditto.
9273 * hppab-nat.c (fetch_register): Ditto.
9274 * hppa-tdep.c (pa_register_look_aside): Ditto.
9275 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9276 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9277
9278 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9279
9280 * gdbarch.sh: Explictly specify all method levels. When a
9281 variable with an empty level, provide a non-multi-arch default.
9282 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9283 * gdbarch.h: Re-generate.
9284 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9285 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9286
9287 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9288
9289 * defs.h (host_pointer_to_address): Delete declaration.
9290 (address_to_host_pointer): Delete declaration.
9291 * utils.c (host_pointer_to_address): Delete function.
9292 (address_to_host_pointer): Delete function.
9293 * procfs.c (procfs_address_to_host_pointer): New function.
9294 * procfs.c (proc_set_watchpoint): Use.
9295 (procfs_can_use_hw_breakpoint): Update comments.
9296 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9297 (som_solib_add): Use.
9298 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9299 * hppa-tdep.c (unwind_command): Use.
9300
9301 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9302
9303 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9304 strlen d_name.
9305
9306 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9307 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9308 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9309 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9310 (define_symbol): Update.
9311 * symfile.c (generic_load): Remove references to nindy.
9312 * symtab.c: Remove references to nindy.
9313
9314 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9315
9316 * infcmd.c (print_float_info): Delete code conditional on
9317 FLOAT_INFO.
9318 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9319 * config/m68k/nm-apollo68b.h: Ditto.
9320 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9321 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9322 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9323
9324 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9325
9326 * config/i386/tm-i386os9k.h: Removed.
9327
9328 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9329 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9330 they're identical to i[3456]86-*-sysv* now.
9331 * config/i386/i386v32.mh: Removed.
9332 * config/i386/xm-i386v32.h: Removed.
9333 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9334
9335 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9336
9337 * config/i386/i386dgux.mh: Removed.
9338 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9339
9340 * configure.in: Fix typo.
9341 * configure: Regenerated.
9342
9343 2003-01-31 David Carlton <carlton@math.stanford.edu>
9344
9345 * dwarf2read.c (dwarf2_locate_sections): Set
9346 dwarf_ranges_section.
9347
9348 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9349
9350 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9351 * utils.c: Update comments documenting legitimate uses of PTR.
9352
9353 * utils.c: Re-indent.
9354
9355 * config/djgpp/fnchange.lst: Delete nindy files.
9356 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9357 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9358 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9359 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9360 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9361 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9362 * Makefile.in (init.c): Remove nindy references.
9363 (saber_gdb): Delete rule.
9364 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9365 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9366 and a68v-nat.c.
9367 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9368 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9369 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9370 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9371 nindy-share/stop.h.
9372 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9373 * saber.suppress: Delete file.
9374
9375 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
9376
9377 * dbxread.c (stabs_data): New static variable.
9378 (fill_symbuf): Support an in-memory buffer for stabs data.
9379 (stabs_seek): New function.
9380 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9381 (read_ofile_symtab): Use stabs_seek.
9382 (elfstab_build_psymtabs): Take an asection* instead of
9383 an offset and size. Relocate the stabs data if necessary.
9384 Save the section* for dbx_psymtab_to_symtab.
9385 * dwarf2read.c: Add section variables for each debug section.
9386 (dwarf2_locate_sections): Fill them in.
9387 (dwarf2_read_section): Take an asection* argument.
9388 Relocate the section contents if necessary.
9389 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9390 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9391 it to dwarf2_read_section.
9392 (dwarf2_build_frame_info): Update callers.
9393 * elfread.c (elf_symfile_read): Update call to
9394 elfstab_build_psymtabs.
9395 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9396 (DBX_STAB_SECTION): New macro.
9397 * stabsread.h (elfstab_build_psymtabs): Update prototype.
9398 * symfile.c (symfile_dummy_outputs): New function.
9399 (symfile_relocate_debug_section): New function.
9400 * symfile.h (symfile_relocate_debug_section): Add prototype.
9401
9402 2003-01-31 Richard Henderson <rth@redhat.com>
9403
9404 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9405 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9406 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9407 * alpha-tdep.c (alpha_register_name): Add "unique".
9408 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9409 (ALPHA_UNIQUE_REGNUM): New.
9410 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9411
9412 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9413
9414 * README: Remove reference to Ericsson 1800 monitor.
9415 * Makefile.in (remote-es.o): Delete rule.
9416 (ALLDEPFILES): Delete remote-es.c.
9417 * remote-es.c: Delete file.
9418 * config/m68k/es1800.mt: Delete file.
9419 * config/djgpp/fnchange.lst: Update.
9420 * configure.tgt: Delete m68*-ericsson-* target.
9421
9422 2003-01-31 Adam Fedor <fedor@gnu.org>
9423
9424 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9425 Remove duplicate/shadowing variable of same name.
9426
9427 2003-01-30 Jim Blandy <jimb@redhat.com>
9428
9429 * symfile.c (find_separate_debug_file): Assert that the objfile's
9430 directory name we compute ends with a slash, and then assume that
9431 that's so everywhere we use it.
9432
9433 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
9434
9435 * valops.c (value_assign): Flush frame cache after stores to memory
9436 also.
9437
9438 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9439
9440 * Makefile.in (mon960-rom.o): Delete rule.
9441 * mon960-rom.c: Delete file.
9442
9443 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9444
9445 * d10v-tdep.c: Include "frame-unwind.h".
9446 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9447 list.
9448 (next_addr, uses_frame): Delete.
9449 (struct d10v_unwind_cache): Define.
9450 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9451 Use info instead of next_addr and uses_frame globals.
9452 (d10v_frame_init_saved_regs): Delete function.
9453 (d10v_init_extra_frame_info): Delete function.
9454 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9455 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9456 init_frame_pc or frame_saved_pc.
9457 (d10v_pop_frame): Delete function.
9458 (do_d10v_pop_frame): Delete function.
9459 (d10v_frame_chain): Delete function.
9460 (d10v_frame_chain_valid): Delete function.
9461 (d10v_frame_pc_unwind): New function.
9462 (d10v_frame_id_unwind): New function.
9463 (saved_regs_unwinder): New function.
9464 (d10v_frame_register_unwind): New function.
9465 (d10v_frame_pop): New function.
9466 (d10v_frame_unwind): New variable.
9467 (d10v_frame_p): New function.
9468 (d10v_frame_saved_pc): Delete function.
9469 * Makefile.in (d10v-tdep.o): Update dependencies.
9470
9471 2003-01-30 J. Brobecker <brobecker@gnat.com>
9472
9473 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9474 causing some regressions due to a change in the default value
9475 for this macro.
9476
9477 2003-01-29 Richard Henderson <rth@redhat.com>
9478 Elena Zannoni <ezannoni@redhat.com>
9479 Daniel Jacobowitz <drow@mvista.com>
9480
9481 Fix PR gdb/961.
9482 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
9483 variables.
9484 (RANGES_SECTION): New.
9485 (dwarf_ranges_buffer): New variable.
9486 (struct comp_unit_head): Add member "die".
9487 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9488 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9489 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9490 (dwarf2_locate_sections): Likewise.
9491 (dwarf2_build_psymtabs): Read .debug_ranges.
9492 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9493 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9494 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9495 Look for DW_AT_ranges and return the bounding box.
9496
9497 2003-01-29 Brian Ford <ford@vss.fsi.com>
9498
9499 * win32-nat.c (cygwin_pid): Removed as unused.
9500 (child_attach): Try fall back to Cygwin pid.
9501
9502 2003-01-29 Jim Blandy <jimb@redhat.com>
9503
9504 * objfiles.h (struct objfile): Doc fix.
9505
9506 2003-01-29 Andrew Cagney <ac131313@redhat.com>
9507
9508 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9509 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9510 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9511 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9512 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9513 (FRAME_SAVED_PC): Change to a function with predicate.
9514 * gdbarch.h, gdbarch.c: Re-generate.
9515
9516 2003-01-28 Andrew Cagney <ac131313@redhat.com>
9517
9518 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9519
9520 * complaints.c (complain): Delete function.
9521 * complaints.h (struct deprecated_complaint): Delete definition.
9522 (complain): Delete declaration.
9523
9524 2003-01-28 Kevin Buettner <kevinb@redhat.com>
9525
9526 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9527 dummy frames.
9528
9529 2003-01-27 Andrew Cagney <ac131313@redhat.com>
9530
9531 * sentinel-frame.h, sentinel-frame.c: New files.
9532 * Makefile.in (frame.o): Update dependencies.
9533 (SFILES): Add sentinel-frame.c.
9534 (sentinel_frame_h): Define.
9535 (COMMON_OBS): Add sentinel-frame.o.
9536 (sentinel-frame.o): Specify dependencies.
9537 * frame.c: Include "sentinel-frame.h".
9538 (frame_register_unwind): Rewrite assuming that there is always a a
9539 ->next frame.
9540 (frame_register, generic_unwind_get_saved_register): Ditto.
9541 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9542 (create_sentinel_frame, unwind_to_current_frame): New functions.
9543 (get_current_frame): Rewrite using create_sentinel_frame and
9544 unwind_to_current_frame. When possible, always create a frame.
9545 (create_new_frame): Set next to the sentinel frame.
9546 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9547 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9548 ID cache when necessary.
9549 (frame_saved_regs_id_unwind): Use frame_relative_level.
9550 (deprecated_generic_get_saved_register): Use frame_relative_level,
9551 get_frame_saved_regs, get_frame_pc, get_frame_base and
9552 get_next_frame.
9553 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9554 frame_register.
9555
9556 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9557
9558 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9559
9560 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9561
9562 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9563 (maintenance_set_profile_cmd): Use error () instead of warning ().
9564
9565 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9566
9567 * configure.in: Check that -pg works if using --enable-profiling.
9568 Check for monstartup and _mcleanup regardless of --enable-profiling.
9569 * maint.c: Check for monstartup and _mcleanup before using them.
9570 * config.in: Regenerated.
9571 * configure: Regenerated.
9572
9573 2003-01-24 Nick Clifton <nickc@redhat.com>
9574
9575 * Add sh2e support:
9576
9577 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9578
9579 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9580 (sh2e_show_regs): New.
9581 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9582 * config/sh/tm-sh.h: Added sh2e to comments.
9583
9584 2003-01-23 Jim Blandy <jimb@redhat.com>
9585
9586 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9587 symbols found)" message here; we haven't checked for a separate
9588 debug info file yet, so we don't know yet.
9589 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9590 we've looked everywhere. Also, there's no need to print a special
9591 message when we're loading the separate debug info file: the one
9592 symbol_file_add prints is fine.
9593
9594 2003-01-23 Alexander Larsson <alexl@redhat.com>
9595 Jim Blandy <jimb@redhat.com>
9596
9597 Add support for executables whose debug info has been separated
9598 out into a separate file, leaving only a link behind.
9599 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9600 and separate_debug_objfile_backlink.
9601 (put_objfile_before): New declaration.
9602 * symfile.c: #include "filenames.h".
9603 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9604 debug info in a separate file, read that, too. Save the addrs
9605 argument, so we can use it again to read the separated debug info;
9606 syms_from_objfile modifies the table we pass it.
9607 (reread_symbols): After re-reading an objfile, call
9608 reread_separate_symbols to refresh its separate debug info
9609 objfile, if it has one.
9610 (reread_separate_symbols, find_separate_debug_file,
9611 get_debug_link_info, separate_debug_file_exists): New functions.
9612 (debug_file_directory): New global var.
9613 (_initialize_symfile): Initialize debug_file_directory, and
9614 provide the new `set debug-file-directory' command to let the user
9615 change it.
9616 * objfiles.c (free_objfile): If this objfile has its debug info in
9617 a separate objfile, free that one too. If this is itself a
9618 separate debug info objfile, clear our parent's backlink.
9619 (put_objfile_before): New function.
9620 * utils.c (gnu_debuglink_crc32): New function.
9621 * defs.h (gnu_debuglink_crc32): New declaration.
9622 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9623 * configure.in: Handle --with-separate-debug-dir config option.
9624 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9625 * acconfig.h (DEBUGDIR): New macro.
9626 * configure, aclocal.m4, config.in: Regenerated.
9627
9628 2003-01-22 Jim Blandy <jimb@redhat.com>
9629
9630 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9631 like the old symbol_file_add, but taking new arguments: you can
9632 now pass in either a `struct section_addr_info' list to say where
9633 each section is loaded, or a `struct section_offsets' table. Pass
9634 these new arguments through to syms_from_objfile as appropriate.
9635 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9636 with the appropriate quiescent values for the new arguments.
9637
9638 * symfile.c: #include "gdb_assert.h".
9639 (syms_from_objfile): Add the ability to pass in a section offset
9640 table directly, as an alternative to the section_addr_info table.
9641 Document arguments better.
9642 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9643 * symfile.h (syms_from_objfile): Update declaration.
9644 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9645 syms_from_objfile.
9646 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9647
9648 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
9649
9650 Original patch by Tom Tromey <tromey@cygnus.com> and
9651 Jason Molenda <jmolenda@apple.com>.
9652 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9653 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9654 * NEWS: Mention profiling.
9655 * configure.in (--enable-gdbtk): Fix typo.
9656 (--enable-profiling): New. Set PROFILE_CFLAGS.
9657 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9658 Fill in function.
9659 (profiling_state): New variable.
9660 (mcleanup_wrapper): New function.
9661 (_initialize_maint): Remove NOTYET, fix call to
9662 add_setshow_boolean_cmd for "maint set profile".
9663 * configure: Regenerated.
9664
9665 2003-01-21 Martin M. Hunt <hunt@redhat.com>
9666
9667 * Makefile.in (install-gdbtk): Install PNG images too.
9668
9669 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9670
9671 * exec.c (text_start): Delete global variable.
9672 (exec_file_attach): Make text_start local to the function.
9673 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9674 * valops.c (hand_function_call): Delete code that handles
9675 BEFORE_TEXT_END and AFTER_TEXT_END.
9676 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9677 of CALL_DUMMY_LOCATION.
9678 * gdbarch.c: Regenerate.
9679 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9680 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9681 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9682 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9683 (text_end): Delete extern declaration.
9684
9685 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9686
9687 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9688 * blockframe.c (backtrace_below_main): Move to "frame.c".
9689 (frame_chain_valid): Delete check for backtrace_below_main.
9690 (_initialize_blockframe): Delete initialization, move ``set
9691 backtrace-below-main'' command to "frame.c".
9692 (do_flush_frames_sfunc): Delete function.
9693 * frame.c: Include "command.h" and "gdbcmd.h".
9694 (frame_type_from_pc): New function.
9695 (create_new_frame): Use frame_type_from_pc.
9696 (legacy_get_prev_frame): New function.
9697 (get_prev_frame): Rewrite. When an old style frame, call
9698 legacy_get_prev_frame. Otherwize, unwind the PC first.
9699 (_initialize_frame): Add ``set backtrace-below-main'' command.
9700 * Makefile.in (frame.o): Update dependencies.
9701
9702 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9703
9704 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9705 DEPRECATED_REGISTERS_INFO.
9706
9707 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9708
9709 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9710 Maintainers'. Update `Various Maintainers'.
9711
9712 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9713
9714 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9715 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9716 Suppress actual parameters when `-'.
9717 * gdbarch.h, gdbarch.c: Regenerate.
9718
9719 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9720
9721 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9722 code handling dummy frames.
9723
9724 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9725
9726 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9727 (struct frame_unwind): Add field pop.
9728 * frame.h (frame_pop): Declare.
9729 * frame.c (frame_saved_regs_pop): New function.
9730 (trad_frame_unwinder): Add frame_saved_regs_pop.
9731 (frame_pop): New function.
9732 * dummy-frame.c (dummy_frame_pop): New function.
9733 (discard_innermost_dummy): New function.
9734 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9735 (dummy_frame_unwind): Add dummy_frame_pop.
9736 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9737 * valops.c (hand_function_call): Ditto.
9738 * stack.c (return_command): Ditto.
9739
9740 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9741
9742 * cris-tdep.c: Fix function declaration indentation.
9743 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9744 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9745 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9746 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9747 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9748 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9749
9750 2003-01-18 Michael Chastain <mec@shout.net>
9751
9752 * README (Unpacking and Installation -- quick overview):
9753 Warn against ".../gdb-5.3/gdb/configure".
9754
9755 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9756
9757 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9758 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9759 (struct frame_unwind): Declare opaque.
9760 (dummy_frame_p): Declare function.
9761 * dummy-frame.c (dummy_frame_id_unwind): Make static.
9762 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9763 * dummy-frame.c: Include "frame-unwind.h".
9764 (dummy_frame_p): New function.
9765 (dummy_frame_unwind): New variable.
9766 * frame.c: Include "frame-unwind.h".
9767 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
9768 to use the new unwind field.
9769 (set_unwind_by_pc): Delete function.
9770 (create_new_frame, get_prev_frame): Set unwind field using
9771 frame_unwind_find_by_pc.
9772 (trad_frame_unwind, trad_frame_unwinder): New variables.
9773 * frame.h (trad_frame_unwind): Declare variable.
9774 (frame_id_unwind_ftype): Delete declaration.
9775 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
9776 (struct frame_unwind): Declare opaque.
9777 (struct frame_info): Replace the fields id_unwind, pc_unwind and
9778 register_unwind with a single unwind pointer.
9779 * frame-unwind.h, frame-unwind.c: New files.
9780 * Makefile.in (SFILES): Add frame-unwind.c.
9781 (frame_unwind_h): Define.
9782 (COMMON_OBS): Add frame-unwind.o.
9783 (frame-unwind.o): Specify dependencies.
9784 (frame.o, dummy-frame.o): Update dependencies.
9785
9786 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9787
9788 * ada-valprint.c: Eliminate PTR.
9789 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
9790 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
9791 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
9792 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
9793 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
9794 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
9795 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
9796
9797 2003-01-17 Andrew Cagney <ac131313@redhat.com>
9798
9799 * main.c (captured_main): Don't use PTR.
9800 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
9801 * gdbtypes.c (lookup_primitive_typename): Ditto.
9802 (lookup_struct_elt_type): Ditto.
9803 * f-valprint.c (info_common_command): Ditto.
9804 (list_all_visible_commons): Ditto.
9805 * jv-typeprint.c (java_type_print_base): Ditto.
9806
9807 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
9808 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
9809 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
9810 i386-interix-nat.c and i386-interix-tdep.c. Rename
9811 m68klinux-nat.c and m68klinux-tdep.c. Rename
9812 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
9813 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
9814 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
9815 * main.c (captured_main): Use xfree, not free.
9816
9817 2003-01-16 Andrew Cagney <ac131313@redhat.com>
9818
9819 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
9820 ID back using a parameter.
9821 * frame.c (frame_id_unwind): Update call.
9822 (frame_saved_regs_id_unwind): Update.
9823 * dummy-frame.c (dummy_frame_id_unwind): Update function.
9824 * dummy-frame.h (struct frame_id): Add opaque declaration.
9825 (dummy_frame_id_unwind): Update declaration.
9826
9827 2003-01-15 Andrew Cagney <ac131313@redhat.com>
9828
9829 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
9830
9831 2003-01-15 Stephen P. Smith <ischis2@cox.net>
9832
9833 * MAINTAINERS (Stephen P. Smith): Updated email address.
9834
9835 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
9836
9837 Fix PR gdb/898
9838 * breakpoint.c (until_break_command): Add new argument. Use it to
9839 decide whether to stop only at the current frame or not.
9840 * breakpoint.h (until_break_command): Update prototype.
9841 * infcmd.c (until_command): Add new argument to until_break_command
9842 call.
9843 (advance_command): New function.
9844 (_initialize_infcmd): Update help string for 'until' command.
9845 Add new 'advance' command.
9846
9847 2003-01-14 David Carlton <carlton@math.stanford.edu>
9848
9849 * linespec.c (decode_line_1): Normalize comments.
9850 (set_flags): Ditto.
9851 (locate_first_half): Ditto.
9852 (decode_compound): Ditto.
9853 (symtab_from_filename): Ditto.
9854 (decode_all_digits): Ditto.
9855 (decode_dollar): Ditto.
9856 (find_methods): Ditto.
9857 (find_toplevel_char): Ditto.
9858
9859 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9860
9861 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
9862 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
9863 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
9864 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
9865 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
9866 * language.c, language.h, m32r-tdep.c: Update copyright.
9867 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
9868 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
9869 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
9870 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
9871 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9872 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
9873
9874 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9875
9876 * stabsread.h (process_later, resolve_cfront_continuation):
9877 Obsolete.
9878 Update copyright years.
9879 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
9880 Update copyright year.
9881 * dbxread.c(struct cont_elem): Obsolete.
9882 (process_later, process_now): Obsolete functions.
9883 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
9884 Update copyright year.
9885 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
9886 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
9887 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
9888 (parse_partial_symbols): Obsolete cfront support.
9889 * stabsread.c
9890 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
9891 macros.
9892 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
9893 read_cfront_baseclasses, read_cfront_member_functions,
9894 resolve_cfront_continuation,read_cfront_static_fields,
9895 copy_cfront_struct_fields): Obsolete functions.
9896 (define_symbol, read_one_struct_field): Obsolete cfront support.
9897 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
9898 Update Copyright year.
9899
9900 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9901
9902 * stack.c (print_frame_info, print_stack_frame_base_stub,
9903 print_stack_frame_base, show_and_print_stack_frame_stub,
9904 show_and_print_stack_frame, print_only_stack_frame_stub,
9905 print_only_stack_frame): Delete functions.
9906 (print_stack_frame_stub): Call print_frame_info instead of
9907 print_frame_info_base.
9908 (print_frame_info_base): Rename to print_frame_info.
9909 (backtrace_command_1): Call print_frame_info, instead of
9910 print_frame_info_base.
9911 (current_frame_command): Call print_stack_frame, instead of
9912 print_only_stack_frame.
9913 (frame_command): Call print_stack_frame, instead of
9914 show_and_print_stack_frame.
9915 (up_command): Ditto.
9916 (down_command): Ditto.
9917 * frame.h (print_only_stack_frame): Delete prototype.
9918 * infrun.c (normal_stop): Call print_stack_frame, instead of
9919 show_and_print_stack_frame.
9920 * thread.c (info_threads_command): Call print_stack_frame, instead
9921 of print_only_stack_frame.
9922
9923 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9924
9925 * README (Graphical interface to GDB): Update URL. Point at
9926 gdb/links/.
9927
9928 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
9929 version match.
9930
9931 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9932
9933 * symtab.c (find_pc_sect_line): Don't consider end-of-function
9934 lines.
9935
9936 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9937
9938 * thread-db.c (attach_thread): Prototype.
9939 (struct private_thread_info): Remove lwpid. Add thread handle (th),
9940 thread information (ti), and valid flags (th_valid, ti_valid).
9941 (attach_thread): Move target_pid_to_str call to after the thread
9942 is added to GDB's list. Initialize the cache.
9943 (thread_get_info_callback, thread_db_map_id2thr)
9944 (thread_db_get_info): New functions.
9945 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
9946 (thread_db_store_registers, thread_db_thread_alive)
9947 (thread_db_get_thread_local_address): Use them.
9948 (thread_db_pid_to_str): Likewise. Return "Missing" instead
9949 of calling error() for threads in unknown state.
9950
9951 (clear_lwpid_callback): New function.
9952 (thread_db_resume): Use it to clear the cache.
9953
9954 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9955
9956 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
9957 (resume_callback): Remove dead code.
9958
9959 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9960
9961 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
9962 predicate.
9963 * gdbarch.h, gdbarch.c: Regenerate.
9964 * stack.c (frame_info): Only initialize the saved registers when
9965 FRAME_INIT_SAVED_REGS_P.
9966 * frame.c (frame_saved_regs_register_unwind): Assert
9967 FRAME_INIT_SAVED_REGS_P.
9968 (deprecated_generic_get_saved_register): Ditto.
9969
9970 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9971
9972 * source.c (openp): Squelch warning about "filename".
9973
9974 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9975
9976 * source.c (openp): If the file does not exist don't necessarily
9977 search the path.
9978
9979 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9980
9981 Fix PR gdb/872.
9982 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
9983 (integer_types_same_name_p): New function.
9984 (rank_one_type): Use it.
9985 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
9986
9987 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9988
9989 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
9990 variables.
9991 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
9992 * configure.in: Add --with-sysroot.
9993 * configure: Regenerated.
9994 * main.c (gdb_sysroot): New variable.
9995 (captured_main): Initialize gdb_sysroot.
9996 * defs.h (gdb_sysroot): New extern declaration.
9997 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
9998
9999 2003-01-12 Michael Chastain <mec@shout.net>
10000
10001 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10002
10003 2003-01-12 Michael Chastain <mec@shout.net>
10004
10005 * top.c (print_gdb_version): Bump copyright year to 2003.
10006
10007 2003-01-12 David Carlton <carlton@bactrian.org>
10008
10009 * linespec.c (symtab_from_filename): Rename variable 's' to
10010 'file_symtab'.
10011
10012 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10013
10014 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10015 dummy frame.
10016 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10017
10018 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10019
10020 * d10v-tdep.c: Include "gdb_assert.h".
10021 (d10v_store_return_value): Rewrite to match current interface.
10022 (d10v_extract_struct_value_address): Ditto.
10023 (d10v_extract_return_value): Ditto.
10024 (d10v_gdbarch_init): Set store_restore_value,
10025 extract_struct_value_address and extract_return_value.
10026
10027 2003-01-12 J. Brobecker <brobecker@gnat.com>
10028
10029 * hpread.c (set_namestring): New procedure replacing the
10030 SET_NAMESTRING macro.
10031 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10032 by calls to set_namestring.
10033
10034 2003-01-11 J. Brobecker <brobecker@gnat.com>
10035
10036 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10037 a compilation warning.
10038 (hpread_process_one_debug_symbol): Likewise.
10039
10040 2003-01-10 David Carlton <carlton@math.stanford.edu>
10041
10042 * linespec.c (decode_line_1): Rename variable 's' to
10043 'file_symtab'.
10044 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10045 (decode_dollar): Ditto.
10046 (decode_variable): Ditto.
10047 (symbol_found): Ditto.
10048
10049 2003-01-09 Michael Chastain <mec@shout.net>
10050
10051 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10052
10053 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10054
10055 * win32-nat.c (set_process_privilege): New function.
10056 (child_attach): Call set_process_privilege() to enable the
10057 SE_DEBUG_NAME user privilege if available in process token.
10058
10059 2003-01-10 J. Brobecker <brobecker@gnat.com>
10060
10061 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10062 compilation error in the previous revision.
10063
10064 2003-01-09 David Carlton <carlton@math.stanford.edu>
10065
10066 * linespec.c: Update copyright.
10067
10068 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10069
10070 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10071 than inferior_ptid.
10072 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10073
10074 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10075
10076 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10077 Update comments.
10078 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10079 (frame_saved_regs_zalloc): Update.
10080 (frame_saved_regs_register_unwind): Update.
10081 (create_new_frame): Update.
10082 (get_prev_frame): Update.
10083 (frame_extra_info_zalloc): Update.
10084 (deprecated_get_frame_saved_regs): Update.
10085 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10086 * cris-tdep.c: Update comment.
10087
10088 * somsolib.h: Fix function indentation.
10089 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10090 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10091 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10092 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10093 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10094
10095 * infrun.c (follow_fork): Use ISO C definition.
10096 * expprint.c (print_subexp): Use xfree instead of free.
10097 * charset.c: Include "gdb_string.h" instead of <string.h>.
10098 (register_iconv_charsets): Use ISO C definition.
10099 (host_charset, target_charset): Ditto.
10100 * Makefile.in (charset.o): Update dependencies.
10101 (mi-cmd-env.o): Update dependencies.
10102
10103 2003-01-08 Andrew Cagney <cagney@redhat.com>
10104
10105 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10106 get_frame_base.
10107
10108 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10109
10110 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10111 build directories. Save edited gdb output in Mbuild.log. If a
10112 build fails, remove any final GDB executable.
10113
10114 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10115
10116 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10117 replacing hex constants with function names and stripping leading
10118 file name directory prefixes.
10119
10120 2003-01-08 Andrew Cagney <cagney@redhat.com>
10121
10122 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10123 get_frame_base.
10124
10125 2003-01-08 David Carlton <carlton@math.stanford.edu>
10126
10127 * linespec.c (decode_line_1): Move code into decode_variable.
10128 (decode_variable): New function.
10129
10130 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10131
10132 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10133
10134 2003-01-08 Andrew Cagney <cagney@redhat.com>
10135
10136 * cris-tdep.c (cris_frame_init_saved_regs): Use
10137 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10138 saved_regs buffer.
10139 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10140 (sh64_nofp_frame_init_saved_regs): Ditto.
10141 (sh_fp_frame_init_saved_regs): Ditto.
10142 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10143 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10144 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10145 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10146
10147 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10148
10149 * minsyms.c (lookup_minimal_symbol): Update comment.
10150 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10151 (lookup_minimal_symbol_solib_trampoline): Likewise.
10152
10153 2003-01-08 Andrew Cagney <cagney@redhat.com>
10154
10155 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10156 frame_relative_level.
10157
10158 * alpha-tdep.c: Use get_frame_extra_info.
10159 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10160 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10161 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10162 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10163
10164 * alpha-tdep.c: Use get_next_frame.
10165 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10166 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10167 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10168 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10169 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10170 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10171 * xstormy16-tdep.c: Ditto.
10172
10173 2003-01-07 Andrew Cagney <cagney@redhat.com>
10174
10175 * alpha-tdep.c: Use get_frame_base.
10176 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10177 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10178 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10179 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10180 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10181 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10182 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10183 * config/sparc/tm-sparc.h: Ditto.
10184
10185 2003-01-07 Andrew Cagney <cagney@redhat.com>
10186
10187 * frame.c (deprecated_get_frame_context): New function.
10188 (deprecated_set_frame_context): New function.
10189 * frame.h (deprecated_get_frame_context): Declare.
10190 (deprecated_set_frame_context): Declare.
10191 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10192 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10193
10194 2003-01-07 Andrew Cagney <cagney@redhat.com>
10195
10196 * frame.c (deprecated_set_frame_next_hack): New function.
10197 (deprecated_set_frame_prev_hack): New function.
10198 * frame.h (deprecated_set_frame_next_hack): Declare.
10199 (deprecated_set_frame_prev_hack): Declare.
10200 * mcore-tdep.c (analyze_dummy_frame): Use
10201 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10202 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10203
10204 2003-01-07 David Carlton <carlton@math.stanford.edu>
10205
10206 * linespec.c (decode_line_1): Move code into decode_dollar.
10207 (decode_dollar): New function.
10208
10209 2003-01-07 Andrew Cagney <cagney@redhat.com>
10210
10211 * arm-tdep.c (arm_init_extra_frame_info): Use
10212 deprecated_update_frame_base_hack.
10213 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10214 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10215 (fix_frame_pointer): Ditto.
10216 (mn10300_analyze_prologue): Ditto.
10217
10218 2003-01-07 Andrew Cagney <cagney@redhat.com>
10219
10220 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10221 extra_info using frame_extra_info_zalloc.
10222 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10223 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10224 (sh64_init_extra_frame_info): Ditto.
10225 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10226 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10227 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10228 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10229 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10230 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10231 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10232 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10233 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10234 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10235 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10236 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10237
10238 * mn10300-tdep.c (analyze_dummy_frame): Use
10239 deprecated_set_frame_extra_info_hack.
10240 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10241
10242 2003-01-07 J. Brobecker <brobecker@gnat.com>
10243
10244 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10245 class is not scText. These do not define "real" procedures.
10246 (parse_partial_symbols): Likewise.
10247
10248 2003-01-06 Michael Snyder <msnyder@redhat.com>
10249
10250 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10251
10252 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10253
10254 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10255 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10256 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10257 deprecated_frame_xmalloc_with_cleanup.
10258 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10259 deprecated_frame_xmalloc.
10260 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10261 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10262
10263 2003-01-06 Andrew Cagney <cagney@redhat.com>
10264
10265 * x86-64-linux-tdep.c: Include "osabi.h".
10266 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10267
10268 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10269
10270 2003-01-06 Andrew Cagney <cagney@redhat.com>
10271
10272 * MAINTAINERS (Target Instruction Set Architectures): Update
10273 arm-elf. Can be built with -Werror, has been multiarched.
10274
10275 * value.h (unpack_long): Make buffer parameter constant.
10276 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10277 * scm-lang.h (scm_parse): Ditto.
10278 * defs.h (extract_typed_address, extract_address): Ditto.
10279 (extract_long_unsigned_integer): Ditto.
10280 * inferior.h (unsigned_pointer_to_address): Ditto.
10281 (signed_pointer_to_address): Ditto.
10282 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10283 * gdbarch.h, gdbarch.c: Regenerate.
10284 * findvar.c (extract_long_unsigned_integer): Update.
10285 (extract_address): Update.
10286 (extract_typed_address): Update.
10287 (unsigned_pointer_to_address): Update.
10288 * values.c (unpack_long): Update.
10289 (unpack_double): Update.
10290 (unpack_pointer): Update.
10291 (unpack_field_as_long): Update.
10292 * d10v-tdep.c (d10v_pointer_to_address): Update.
10293 * avr-tdep.c (avr_pointer_to_address): Update.
10294 * scm-lang.c (scm_unpack): Update.
10295 * findvar.c (signed_pointer_to_address): Update.
10296
10297 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10298
10299 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10300 since it is in i386-tdep.c.
10301
10302 2003-01-06 J. Brobecker <brobecker@gnat.com>
10303
10304 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10305 failure introduced in the previous change.
10306
10307 2003-01-05 Michael Chastain <mec@shout.net>
10308
10309 * README: Remove references to deleted remote-*.c files:
10310 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10311 remote-nrom.c, remote-os9k.c, remote-udi.c.
10312
10313 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10314
10315 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10316 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10317 i386_get_longjmp_target.
10318
10319 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10320
10321 * arm-tdep.c (prologue_cache): Change to a pointer.
10322 (_initialize_arm_tdep): Allocate prologue_cache.
10323 (check_prologue_cache): Update.
10324 (save_prologue_cache): Update.
10325 (arm_gdbarch_init): Update.
10326
10327 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10328
10329 * stabsread.c (update_method_name_from_physname): Call complaint()
10330 instead of error.
10331
10332 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10333
10334 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10335 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10336 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10337
10338 * blockframe.c: Include "gdbcmd.h" and "command.h".
10339 (backtrace_below_main): New variable.
10340 (file_frame_chain_valid, func_frame_chain_valid)
10341 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10342 (generic_func_frame_chain_valid): Remove functions.
10343 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10344 (_initialize_blockframe): New function.
10345 * Makefile.in (blockframe.o): Update dependencies.
10346 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10347 comment. Call frame_chain_valid ().
10348 * frame.h: Remove old prototypes. Add prototype for
10349 frame_chain_valid and update comments to match.
10350 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10351 Remove old comment.
10352 * gdbarch.h: Regenerated.
10353 * gdbarch.c: Regenerated.
10354
10355 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10356 set_gdbarch_frame_chain_valid.
10357 * avr-tdep.c (avr_gdbarch_init): Likewise.
10358 * cris-tdep.c (cris_gdbarch_init): Likewise.
10359 * frv-tdep.c (frv_gdbarch_init): Likewise.
10360 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10361 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10362 (i386_nw_init_abi): Likewise.
10363 (i386_gdbarch_init): Likewise.
10364 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10365 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10366 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10367 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10368 * mips-tdep.c (mips_gdbarch_init): Likewise.
10369 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10370 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10371 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10372 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10373 * s390-tdep.c (s390_gdbarch_init): Likewise.
10374 * sh-tdep.c (sh_gdbarch_init): Likewise.
10375 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10376 * v850-tdep.c (v850_gdbarch_init): Likewise.
10377 * vax-tdep.c (vax_gdbarch_init): Likewise.
10378 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10379
10380 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10381 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10382 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10383 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10384 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10385 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10386 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10387 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10388
10389 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10390
10391 * Makefile.in (acconfig_h): Remove incorrect macro.
10392 (config_h): Define.
10393 (osabi.o): Update dependencies.
10394 * configure.tgt: Set gdb_osabi based on target triplet.
10395 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10396 * configure: Regenerated.
10397 * config.in: Regenerated.
10398 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10399 (GDB_OSABI_DEFAULT): Define if not already defined.
10400 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10401 (set_osabi_string): New variables.
10402 (gdbarch_register_osabi): Add new OS ABI to
10403 gdb_osabi_available_names.
10404 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10405 (set_osabi, show_osabi): New functions.
10406 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10407
10408 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10409
10410 * arch-utils.c (gdbarch_info_init): Set osabi to
10411 GDB_OSABI_UNINITIALIZED.
10412 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10413 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10414 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10415 * gdbarch.c: Regenerated.
10416 * gdbarch.h: Regenerated.
10417 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10418 there's no BFD.
10419 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10420 * osabi.h (enum gdb_osabi): Move to defs.h.
10421 (gdbarch_init_osabi): Update prototype.
10422 * defs.h (enum gdb_osabi): Moved here.
10423 * Makefile.in: Update dependencies.
10424
10425 * alpha-tdep.h: Don't include "osabi.h".
10426 (struct gdbarch_tdep): Remove osabi member.
10427 * alpha-tdep.c: Include "osabi.h".
10428 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10429 iterate over arches. Update call to gdbarch_init_osabi.
10430 (alpha_dump_tdep): Don't dump osabi.
10431 * alpha-linux-tdep.c: Include "osabi.h".
10432 * alpha-osf1-tdep.c: Include "osabi.h".
10433 * alphafbsd-tdep.c: Include "osabi.h".
10434 * alphanbsd-tdep.c: Include "osabi.h".
10435
10436 * arm-tdep.h: Don't include "osabi.h".
10437 (struct gdbarch_tdep): Remove osabi member.
10438 * arm-tdep.c: Include "osabi.h".
10439 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10440 iterate over arches. Update call to gdbarch_init_osabi.
10441 (arm_dump_tdep): Don't dump osabi.
10442 * arm-linux-tdep.c: Include "osabi.h".
10443 * armnbsd-tdep.c: Include "osabi.h".
10444
10445 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10446 Update call to gdbarch_init_osabi.
10447
10448 * i386-tdep.h: Don't include "osabi.h".
10449 (struct gdbarch_tdep): Remove osabi member.
10450 * i386-tdep.c: Include "osabi.h".
10451 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10452 iterate over arches. Update call to gdbarch_init_osabi.
10453 (i386_dump_tdep): Don't dump osabi.
10454 * i386-linux-tdep.c: Include "osabi.h".
10455 * i386-sol2-tdep.c: Include "osabi.h".
10456 * i386bsd-tdep.c: Include "osabi.h".
10457 * i386gnu-tdep.c: Include "osabi.h".
10458 * i386ly-tdep.c: Include "osabi.h".
10459 * i386nbsd-tdep.c: Include "osabi.h".
10460 * i386obsd-tdep.c: Include "osabi.h".
10461
10462 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10463 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10464 check osabi when iterating over arches. Update call to
10465 gdbarch_init_osabi.
10466 (mips_dump_tdep): Don't dump osabi.
10467
10468 * ns32k-tdep.h: Don't include "osabi.h".
10469 (struct gdbarch_tdep): Remove.
10470 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10471 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10472 allocate tdep. Update call to gdbarch_init_osabi.
10473 (ns32k_dump_tdep): Remove.
10474 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10475 * ns32knbsd-tdep.c: Include "osabi.h".
10476
10477 * ppc-tdep.h: Don't include "osabi.h".
10478 (struct gdbarch_tdep): Remove osabi member.
10479 * rs6000-tdep.c: Include "osabi.h".
10480 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10481 osabi when iterating over arches. Update call to
10482 gdbarch_init_osabi.
10483 (rs6000_dump_tdep): Don't dump osabi.
10484 * ppc-linux-tdep.c: Include "osabi.h".
10485 * ppcnbsd-tdep.c: Include "osabi.h".
10486
10487 * sh-tdep.h: Don't include "osabi.h".
10488 (struct gdbarch_tdep): Remove osabi member.
10489 * sh-tdep.c: Include "osabi.h".
10490 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10491 iterate over arches. Update call to gdbarch_init_osabi.
10492 (sh_dump_tdep): Don't dump osabi.
10493 * shnbsd-tdep.c: Include "osabi.h".
10494
10495 * sparc-tdep.c: Include "osabi.h".
10496 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10497 iterate over arches. Update call to gdbarch_init_osabi.
10498 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10499 tdep structure.
10500
10501 * vax-tdep.h: Don't include "osabi.h".
10502 (struct gdbarch_tdep): Remove.
10503 * vax-tdep.c: Include "osabi.h".
10504 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10505 iterate over arches. Don't allocate tdep. Update call
10506 to gdbarch_init_osabi.
10507 (vax_dump_tdep): Remove.
10508 (_initialize_vax_tdep): Update call to gdbarch_register.
10509
10510 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10511
10512 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10513 entirely.
10514 (breakpoint_re_set_one): Don't fetch the value for a disabled
10515 watchpoint.
10516
10517 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10518
10519 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10520 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10521 (COERCE_FLOAT_TO_DOUBLE): Remove.
10522 * gdbarch.c: Regenerate.
10523 * gdbarch.h: Regenerate.
10524 * Makefile.in: Remove value_h from gdbarch_h.
10525 * valops.c (coerce_float_to_double): New variable.
10526 (default_coerce_float_to_double): Remove.
10527 (standard_coerce_float_to_double): Remove.
10528 (value_arg_coerce): Use coerce_float_to_double.
10529 (_initialize_valops): Add "set coerce-float-to-double".
10530 * value.h (default_coerce_float_to_double): Remove prototype.
10531 (standard_coerce_float_to_double): Remove prototype.
10532
10533 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10534 prototyped.
10535 * mdebugread.c (parse_symbol): Likewise.
10536 * stabsread.c (define_symbol): Mark all functions as prototyped.
10537
10538 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10539 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10540 set_gdbarch_coerce_float_to_double.
10541 * arm-tdep.c (arm_gdbarch_init): Likewise.
10542 * frv-tdep.c (frv_gdbarch_init): Likewise.
10543 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10544 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10545 * mips-tdep.c (mips_gdbarch_init): Likewise.
10546 (mips_coerce_float_to_double): Remove.
10547 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10548 (rs6000_coerce_float_to_double): Remove.
10549 * s390-tdep.c (s390_gdbarch_init): Likewise.
10550 * sh-tdep.c (sh_gdbarch_init): Likewise.
10551 (sh_coerce_float_to_double): Remove.
10552 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10553 (sparc_coerce_float_to_double): Remove.
10554 * v850-tdep.c (v850_gdbarch_init): Likewise.
10555 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10556 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10557 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10558 (hppa_coerce_float_to_double): Remove prototype.
10559 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10560
10561 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10562
10563 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10564
10565 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10566
10567 Suggested by Stewart Brown <sb24@avaya.com>:
10568 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10569 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10570 (c_type_print_varspec_suffix): Likewise.
10571
10572 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10573
10574 * configure.in: Don't set and AC_SUBST SUBDIRS.
10575 * configure: Regenerated.
10576
10577 * configure.in: Remove code dealing with shared libraries.
10578 * Makefile.in: Remove HLDFLAGS and HLDENV.
10579 * configure: Regenerated.
10580
10581 2003-01-04 Andrew Cagney <ac131313@redhat.com>
10582
10583 * frame.c (deprecated_frame_xmalloc): New function.
10584 (deprecated_set_frame_saved_regs_hack): New function.
10585 (deprecated_set_frame_extra_info_hack): New function.
10586 * frame.h (deprecated_frame_xmalloc): Declare.
10587 (deprecated_set_frame_saved_regs_hack): Declare.
10588 (deprecated_set_frame_extra_info_hack): Declare.
10589
10590 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10591
10592 * configure.in: Move code that provides the --enable-gdbtk option
10593 right after the code that handles the --enable-tui option, and
10594 polish it somewhat.
10595 * configure: Regenerated.
10596
10597 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10598 AC_CHECK_FUNCS and remove the old check for pread64.
10599 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10600 * acconfig.h (_GNU_SOURCE): Add.
10601 (HAVE_PREAD64): Remove.
10602 * configure, aclocal.m4, config.in: Regenerated.
10603
10604 2003-01-03 Andrew Cagney <ac131313@redhat.com>
10605
10606 * alpha-tdep.c: Use get_frame_saved_regs.
10607 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10608 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10609 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10610 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10611 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10612
10613 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10614
10615 * configure.in: Remove all use of the SUBDIRS variable; add
10616 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10617 code providing the --enable-multi-ice option, and move it right in
10618 front of the code that checks whether gdbserver is supported.
10619 Polish that too.
10620 * configure: Regenerated.
10621 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10622 @SUBDIRS@.
10623
10624 2003-01-03 Andrew Cagney <cagney@redhat.com>
10625
10626 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10627 * avr-tdep.c, cris-tdep.c: Ditto.
10628 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10629 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10630
10631 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10632
10633 * configure.in: Remove --enable-netrom option.
10634 * configure: Regenerated.
10635
10636 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10637
10638 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10639 declaration for `struct re_pattern_buffer' instead.
10640 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10641
10642 2003-01-03 J. Brobecker <brobecker@gnat.com>
10643
10644 * mdebugread.c (parse_symbol): Count until the stEnd matching
10645 the structure name.
10646
10647 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10648
10649 * configure.in: Remove --with-cpu option.
10650 subscripts. Remove evil changequotes here.
10651 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10652 * config.in, configure: Regenerated.
10653
10654 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10655 * configure.in: Cleanup section that sources GDB and BFD configure
10656 subscripts. Remove evil changequotes here.
10657 * config.in, configure: Regenerated.
10658
10659 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10660
10661 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10662 frame accessor methods.
10663 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10664 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10665 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10666 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10667 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10668 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10669 * z8k-tdep.c: Ditto.
10670
10671 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10672
10673 * configure.in: Remove UI_OUT configuration code.
10674 * ada-lang.c: Update assuming UI_OUT is always true.
10675 * Makefile.in (UIOUT_CFLAGS): Remove.
10676 * configure: Regenerated.
10677 * TODO: Remove blurb about elimination of -DUI_OUT.
10678
10679 * configure.in: Move code that provides the --enable-gdbcli,
10680 --enable-gdbmi options right before the code that handles the
10681 --enable-tui option. Polish a bit.
10682 * configure: Regenerated.
10683
10684 * configure.in: Rewrite check for GNU regex and the
10685 --without-included regex option, and move it into the "Checks for
10686 library functions" section. This makes us use the system regex
10687 again by default on systems with version 2 of the GNU C library.
10688 This was apparently broken.
10689 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10690 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10691 * config.in, configure: Regenerated.
10692
10693 * configure.in: Move code that provides the --enable-tui option
10694 before the "Checks for libraries" section. Polish the code
10695 somewhat and set need_curses to yes if we build the TUI. Rewrite
10696 code that looks for a library providing termcap functionality to
10697 match more closely what's done in the Readline library, and move
10698 it into to the "Checks for libraries" section.
10699 * configure: Regenerated.
10700 * Makefile.in (TERMCAP): Remove variable.
10701 * config/i386/go32.mh (TERMCAP): Remove variable.
10702
10703 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10704
10705 * MAINTAINERS: Mention gdb_mbuild.sh.
10706 * gdb_mbuild.sh: Rewrite.
10707
10708 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10709
10710 * configure.in: Fix typo in last change.
10711 * config.in, configure: Regenerated.
10712
10713 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10714
10715 * valarith.c (value_binop): Delete obsolete code and comments.
10716 * configure.host: Ditto.
10717 * buildsym.h (make_blockvector): Ditto.
10718 * buildsym.c (make_blockvector): Ditto.
10719 * defs.h (enum language): Ditto.
10720 (chill_demangle): Ditto.
10721 * elfread.c (elf_symtab_read): Ditto.
10722 * dwarfread.c (CHILL_PRODUCER): Ditto.
10723 (set_cu_language): Ditto.
10724 (handle_producer): Ditto.
10725 * expprint.c (print_subexp): Ditto.
10726 * gdbtypes.c (chill_varying_type): Ditto.
10727 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10728 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10729 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10730 (chill_varying_type): Ditto.
10731 * language.h (_LANG_chill): Ditto.
10732 * language.c (binop_result_type, integral_type): Ditto.
10733 (character_type, string_type, structured_type): Ditto.
10734 (lang_bool_type, binop_type_check): Ditto.
10735 * stabsread.h (os9k_stabs): Ditto.
10736 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10737 (define_symbol, read_type, read_struct_fields): Ditto.
10738 (read_array_type, read_enum_type, read_huge_number): Ditto.
10739 (read_range_type, start_stabs): Ditto.
10740 * symfile.c (init_filename_language_table): Ditto.
10741 (add_psymbol_with_dem_name_to_list): Ditto.
10742 * symtab.c (symbol_init_language_specific): Ditto.
10743 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10744 * symtab.h (struct general_symbol_info): Ditto.
10745 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10746 * typeprint.c (typedef_print): Ditto.
10747 * utils.c (fprintf_symbol_filtered): Ditto.
10748 * valops.c (value_cast, search_struct_field, value_slice): Delete
10749 obsolete code.
10750 (varying_to_slice): Delete function.
10751 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10752 (varying_to_slice): Delete declaration.
10753 * MAINTAINERS: Update.
10754
10755 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10756
10757 * configure.in: Reorganize "Checks for library functions section"
10758 a bit. Remove check for `btowc' and `isascii' functions.
10759 * configure: Regenerated.
10760
10761 * acconfig.h (_MSE_INT_H): Remove.
10762 * configure.in: Create "Checks for header files" section, and move
10763 appropriate tests there. Don't check for objlist.h, wchar.h,
10764 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
10765 misdetection fix. Also add "Checks for types", "Checks for
10766 compiler characteristics" and "Checks for library functions"
10767 sections.
10768 * config.in, configure: Regenerated.
10769
10770 * configure.in: Create "Checks for programs" section, and move
10771 appropriate tests there.
10772
10773 2003-01-01 Mark Kettenis <kettenis@gnu.org>
10774
10775 * configure.in: Create "Checks for libraries" section, and move
10776 appropriate tests there. Cleanup check for wctype in libw. Use
10777 AC_SEARCH_LIBS to see whether we need libsocket.
10778 * configure: Regenerated.
10779
10780 For older changes see ChangeLog-2002
10781 \f
10782 Local Variables:
10783 mode: change-log
10784 left-margin: 8
10785 fill-column: 74
10786 version-control: never
10787 End:
This page took 0.278484 seconds and 3 git commands to generate.