c0c62696c06f698bcf801c1973ee63453b3192c0
[binutils-gdb.git] / gdb / ChangeLog
1 2003-08-21 Andrew Cagney <cagney@redhat.com>
2
3 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
4 a specific architecture.
5 * arch-utils.h (set_architecture_from_arch_mach): Delete
6 declaration.
7 (target_architecture_hook): Delete declaration.
8 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
9 (default_float_format): Assume GDB_MULTI_ARCH.
10 (default_double_format): Assume GDB_MULTI_ARCH.
11 (set_endian_from_file): Delete function.
12 (arch_ok): Delete function.
13 (set_arch): Delete function.
14 (set_architecture_from_arch_mach): Delete function.
15 (set_architecture_from_file): Delete function.
16 (set_architecture): Assume GDB_MULTI_ARCH.
17 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
18
19 2003-08-21 Mark Kettenis <kettenis@gnu.org>
20
21 Rewrite FreeBSD/sparc64 native configuration.
22 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
23 * sparc64fbsd-nat.c: New file.
24 * sparc64fbsd-tdep.c: New file.
25 * sparc64-tdep.c sparc64-tdep.h: New files.
26 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
27 sparc64fbsd-tdep.o): New dependencies.
28 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
29 and sparc64fbsd-tdep.c.
30 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
31 * config/sparc/fbsd.mh: Remove copyright notice.
32 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
33 sparcbsd-nat.o.
34 * config/sparc/fbsd.mt: Remove copyright notice.
35 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
36 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
37 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
38 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
39 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
40 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
41 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
42 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
43 "sparc/tm-sp64.h".
44 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
45 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
46
47 2003-08-21 Michael Chastain <mec@shout.net>
48
49 * symtab.h: Add doco on the space critical structures and
50 some measurements of space usage.
51
52 2003-08-21 Michael Snyder <msnyder@redhat.com>
53
54 * tracepoint.c (trace_dump_command): Trace break address
55 is subject to DECR_PC_AFTER_BREAK.
56 (set_traceframe_context): Make "trace_line" an int.
57 Fixes suggested by Mark Newman <mark.newman@lmco.com>
58
59 2003-08-20 Michael Snyder <msnyder@redhat.com>
60
61 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
62 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
63 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
64 argument passing.
65 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
66 functions, replace sh_push_dummy_call.
67 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
68
69 2003-08-20 Michael Chastain <mec@shout.net>
70
71 * gdbtypes.h (struct main_type): Rearrange to save space.
72
73 2003-08-20 Michael Snyder <msnyder@redhat.com>
74
75 * trad-frame.c: Comment typo fix.
76
77 2003-08-20 Michael Snyder <msnyder@redhat.com>
78 Kevin Buettner <kevinb@redhat.com>
79
80 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
81 (frv_frame_init_saved_regs): Add declaration.
82 (frame_extra_info): Add new field ``saved_regs''.
83 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
84 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
85 Update frame related code.
86 (frv_extract_struct_value_address): Adjust formatting.
87 * Makefile.in (frv-tdep.o): Update dependencies.
88 * config/frv/tm-frv.h (target_insert_watchpoint)
89 (target_remove_watchpoint, target_insert_hw_breakpoint)
90 (target_remove_hw_breakpoint): Delete these macros.
91 (remote_insert_watchpoint, remote_remove_watchpoint)
92 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
93 these declarations.
94
95 2003-08-20 Michael Chastain <mec@shout.net>
96
97 * defs.h (ENUM_BITFIELD): New macro.
98 * symtab.h (ENUM_BITFIELD): Use it.
99 (BYTE_BITFIELD): Remove old macro, which was already disabled.
100
101 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
102
103 * MAINTAINERS (write after approval): Add myself.
104
105 2003-08-18 Andrew Cagney <cagney@redhat.com>
106
107 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
108 * gdbarch.h, gdbarch.c: Re-generate.
109 * infcall.c (call_function_by_hand): Adjust the SP by
110 frame_red_zone_size before allocating any stack space.
111 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
112 * x86-64-tdep.c (x86_64_frame_align): New function.
113 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
114
115 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
116 Remove code adjusting SP so that it skips over the Red Zone.
117
118 2003-08-18 Mark Kettenis <kettenis@gnu.org>
119
120 * NEWS (New native configurations): Mention FreeBSD/amd64.
121
122 2003-08-18 Andrew Cagney <cagney@redhat.com>
123
124 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
125 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
126 "m68k_frame_p".
127 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
128
129 2003-08-18 Mark Kettenis <kettenis@gnu.org>
130
131 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
132
133 2003-08-18 Michal Ludvig <mludvig@suse.cz>
134
135 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
136 Define.
137 * i386-linux-nat.c: Include "linux-nat.h".
138 (child_post_startup_inferior): New function.
139
140 2003-08-18 Mark Kettenis <kettenis@gnu.org>
141
142 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
143 at the start of a frameless function. This probably fixes PR
144 backtrace/1338.
145
146 2003-08-17 Michael Chastain <mec@shout.net>
147
148 * symfile.c (find_sym_fns): Remove special case for apollo target.
149
150 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
151
152 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
153 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
154 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
155 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
156 (linux_supports_tracevforkdone): New function.
157 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
158 TRACEVFORKDONE.
159 (child_follow_fork): Handle vfork.
160 (linux_handle_extended_wait): Likewise. Also handle exec.
161 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
162 * NEWS: Mention fork tracing.
163
164 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
165
166 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
167
168 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
169
170 * Makefile.in (i386-linux-nat.o): Update dependencies.
171 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
172 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
173 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
174 * i386-linux-nat.c: Include "linux-nat.h".
175 (child_post_startup_inferior): New function.
176 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
177 * infptrace.c (kill_inferior): Wrap in #ifdef.
178 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
179 attaching to each LWP.
180 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
181 (init_lin_lwp_ops): Fill in some more operations.
182 * linux-nat.h (linux_enable_event_reporting)
183 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
184 prototypes.
185 * linux-nat.c (linux_enable_event_reporting): New function.
186 (child_post_attach, linux_child_post_startup_inferior)
187 (child_post_startup_inferior, child_follow_fork)
188 (linux_handle_extended_wait, kill_inferior): New functions.
189
190 2003-08-16 Andrew Cagney <cagney@redhat.com>
191
192 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
193 * gdbarch.h, gdbarch.c: Re-generate.
194
195 2003-08-16 Mark Kettenis <kettenis@gnu.org>
196
197 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
198
199 2003-08-16 Andrew Cagney <cagney@redhat.com>
200
201 * NEWS: Mention that "set prompt-escape-char" was deleted.
202 * top.c (get_prompt_1): Delete function.
203 (gdb_prompt_escape):
204 (init_main): Do not clear "gdb_prompt_escape". Delete "set
205 prompt-escape-char" command.
206 (MAX_PROMPT_SIZE): Delete macro.
207 (get_prompt): Simplify, do not call get_prompt_1.
208
209 2003-08-16 Andrew Cagney <cagney@redhat.com>
210
211 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
212 -Werror. -Wformat-nonliteral problems.
213
214 2003-08-15 J. Brobecker <brobecker@gnat.com>
215
216 Further multiarching work mostly for hppa64-*-hpux11:
217 * hppa-tdep.h: New file.
218 * hppa-tdep.c: #include hppa-tdep.c.
219 (hppa32_num_regs): Renamed from hppa_num_regs.
220 (hppa64_num_regs): New constant.
221 (hppa64_call_dummy_breakpoint_offset): New constant.
222 (hppa32_call_dummy_length): New constant.
223 (hppa64_call_dummy_length): New constant.
224 (hppa32_stack_align): Make name 32bit explicit.
225 (hppa32_register_virtual_type): Likewise.
226 (hppa32_extract_return_value): Likewise.
227 (hppa32_use_struct_convention): Likewise.
228 (hppa32_store_return_value): Likewise.
229 (hppa64_register_virtual_type): New function.
230 (hppa64_extract_return_value): New function.
231 (hppa64_use_struct_convention): New function.
232 (hppa64_store_return_value): New function.
233 (hppa_frame_locals_address): Remove declaration, function does
234 not exist anymore.
235 (hppa_register_byte): Add support for PA64 ABI.
236 (hppa_gdbarch_init): Add support for PA64 ABI.
237 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
238 Make name 32bit explicit.
239 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
240 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
241 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
242 (hppa64_hpux_frame_base_before_sigtramp): New function.
243 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
244 * config/pa/tm-hppa64.h: Remove macros that are no longer
245 necessary now that the gdbarch vector is properly setup.
246 Transform some macros into function calls. Some minor cleanup.
247 * config/pa/tm-hppah.h: Update function calls in macros
248 following the function renaming in hppa-hpux-tdep.c.
249 * Makefile.in (hppa_tdep_h): New variable.
250 (hppa-tdep.o): Add dependency over hppa_tdep_h.
251
252 2003-08-14 Michael Snyder <msnyder@redhat.com>
253
254 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
255
256 2003-08-13 J. Brobecker <brobecker@gnat.com>
257
258 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
259 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
260 routine.
261
262 2003-08-13 Michael Snyder <msnyder@redhat.com>
263
264 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
265 (frv_saved_pc_after_call): Use deprecated ftype.
266 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
267 (frv_remote_translate_xfer_address): Remove.
268 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
269
270 2003-08-13 J. Brobecker <brobecker@gnat.com>
271
272 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
273 initialization after the common gdbarch initialization, not before.
274
275 2003-08-13 J. Brobecker <brobecker@gnat.com>
276
277 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
278 (ADDR_BITS_REMOVE): Remove, redundant.
279
280 2003-08-13 J. Brobecker <brobecker@gnat.com>
281
282 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
283 gdbarch method to clear the 2 low bits of text addresses.
284
285 2003-08-12 Andrew Cagney <cagney@redhat.com>
286
287 * Makefile.in (dsrec.o): Update dependencies.
288 * dsrec.c: Include "gdb_assert.h".
289 (make_srec): Use snprintf instead of sprintf, use a literal format
290 string.
291
292 2003-08-12 Andrew Cagney <cagney@redhat.com>
293
294 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
295 FRAME_OBSTACK_ZALLOC.
296
297 2003-08-12 Kevin Buettner <kevinb@redhat.com>
298
299 * i386-tdep.c (i386_gdbarch_init): Enable default support for
300 SSE registers.
301
302 2003-08-10 Mark Kettenis <kettenis@gnu.org>
303
304 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
305 amd64fbsd_sc_reg_offset): Add extern declarations.
306 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
307 declarations.
308
309 2003-08-11 Ben Elliston <bje@wasabisystems.com>
310
311 * MAINTAINERS (write after approval): Update my mail address.
312
313 2003-08-10 Andrew Cagney <cagney@redhat.com>
314
315 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
316
317 2003-08-10 Mark Kettenis <kettenis@gnu.org>
318
319 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
320 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
321 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
322 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
323 i386bsd_sc_reg_offset): Add extern declarations.
324 * i386obsd-nat.c: Include "i386-tdep.h"
325 (_initialize_i386obsd_nat): Remove extern declarations.
326 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
327 declarations.
328 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
329 declarations.
330
331 * i386-tdep.c (i386_register_to_value): Use get_frame_register
332 instead of frame_read_register.
333 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
334 instead of frame_read_register. Use I386_ESP_REGNUM instead of
335 SP_REGNUM.
336 (i386_frame_prev_register): Use frame_unwind_register_unsigned
337 instead of frame_unwind_unsigned_register. Use
338 I386_EFLAGS_REGISTER instead of PS_REGNUM.
339 (i386_get_longjmp_target): Use regcache_read_unsigned_register
340 instead of read_register. Use builtin_type_void_data_ptr instead
341 of builtin_type_void_func_ptr when extracting the address of the
342 jmp_buf.
343 (i386_extract_return_value, i386_store_return_value,
344 i386_pseudo_register_read, i386_pseudo_register_write): Use
345 register_size instead REGISTER_RAW_SIZE.
346
347 2003-08-10 Andrew Cagney <cagney@redhat.com>
348
349 * infcall.c (call_function_by_hand): Use xstrprintf instead of
350 sprintf. Make "name" constant.
351
352 2003-08-10 Mark Kettenis <kettenis@gnu.org>
353
354 * i387-tdep.c (i387_register_to_value): Use get_frame_register
355 instead of frame_read_register.
356 (i387_print_float_info): Use get_frame_register and
357 get_frame_register_unsigned instead of frame_register_read.
358
359 * i386fbsd-nat.c: Include "i386-tdep.h".
360 (child_resume): Make `eflags' an ULONGEST. Use
361 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
362 instead of register_read and register_write.
363
364 * i386bsd-nat.c (fetch_inferior_registers,
365 store_inferior_registers): Don't use && at the end of a line.
366 (_initialize_i386bsd_nat): Fix typo.
367
368 * frame.c (_initialize_frame): Add missing backslash.
369
370 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
371 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
372 and supply_register instead of manipulating the register buffer
373 directly.
374
375 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
376 * config/i386/nm-i386sol2.h
377 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
378
379 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
380 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
381 instructions that GCC likes to mingle into the prologue. Fixes
382 gdb/1253 and gdb/1255.
383
384 2003-08-09 Andrew Cagney <cagney@redhat.com>
385
386 Fix GDB PR cli/926.
387 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
388 * command.h (add_setshow_uinteger_cmd): Declare.
389 * frame.c (set_backtrace_cmd): New function.
390 (show_backtrace_cmd): New function.
391 * frame.c (_initialize_frame): Replace "set/show
392 backtrace-below-main" with "set/show backtrace past-main". Add
393 command "set/show backtrace limit".
394 (backtrace_past_main): Rename "backtrace_below_main".
395 (backtrace_limit): New variable.
396 (get_prev_frame): Update. Check the backtrace_limit.
397
398 2003-08-09 Andrew Cagney <cagney@redhat.com>
399
400 * defs.h (xstrprintf): Declare.
401 * utils.c (xstrprintf): New function.
402 * breakpoint.c (insert_breakpoints): Replace sprintf and
403 non-literal format strings, with xstrprintf and cleanups.
404 (delete_breakpoint,breakpoint_re_set): Ditto.
405 (commands_command, insert_breakpoints): Ditto.
406 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
407 (break_at_finish_command_1): Ditto.
408
409 2003-08-09 Andrew Cagney <cagney@redhat.com>
410
411 * MAINTAINERS (language support): List Adam Fedor as Objective C
412 maintainer.
413
414 2003-08-08 J. Brobecker <brobecker@gnat.com>
415
416 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
417 are now multiarched.
418
419 2003-08-08 J. Brobecker <brobecker@gnat.com>
420
421 * config/pa/tm-hppa64.h: Remove lots of macros that are no
422 longer necessary now that hppa64 is partially multiarch'ed.
423
424 2003-08-08 Andrew Cagney <cagney@redhat.com>
425
426 * interps.c (interp_set): Check for a NULL "old_interp".
427
428 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
429
430 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
431 (install-only): Support DESTDIR.
432 (uninstall): Likewise.
433 (install-gdbtk): Likewise.
434
435 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
436
437 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
438 contains something meaningful at all times.
439
440 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
441
442 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
443
444 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
445
446 * MAINTAINERS (write after approval): Added self.
447
448 2003-08-07 Andrew Cagney <cagney@redhat.com>
449
450 * inferior.h (AT_SYMBOL): Define.
451 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
452 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
453 * mips-tdep.c (mips_call_dummy_address): Delete function.
454 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
455 set call_dummy_address.
456
457 2003-08-07 Andrew Cagney <cagney@redhat.com>
458
459 * language.c (op_error): Delete function.
460 (binop_type_check): Delete function.
461 * language.h (type_op_error, range_op_error): Delete macros.
462 (op_error): Delete declaration.
463
464 2003-08-07 Andrew Cagney <cagney@redhat.com>
465
466 * interps.h (INTERP_MI2, INTERP_MI3): Define.
467
468 2003-08-07 Michal Ludvig <mludvig@suse.cz>
469
470 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
471 (x86_64_push_arguments): Skip the red zone.
472
473 2003-08-05 Andrew Cagney <cagney@redhat.com>
474
475 * reggroups.c (reggroup_next): Check for the final entry.
476
477 2003-08-04 Andrew Cagney <cagney@redhat.com>
478
479 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
480 * cli/cli-script.c (define_command): Call query directly, instead
481 of passing it a buffer.
482 * ocd.c (ocd_error): Pass error a constant format string.
483 * remote-mips.c (mips_error): Use fputs_filtered.
484
485 * solib-svr4.c (_initialize_svr4_solib): Update
486 register_gdbarch_data call.
487 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
488
489 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
490 (register_gdbarch_data): Delete "free" parameter. Update
491 comments.
492 * gdbarch.h, gdbarch.c: Re-generate.
493 * reggroups.c (_initialize_reggroup): Update.
494 * gnu-v3-abi.c (init_gnuv3_ops): Update.
495 * frame-base.c (_initialize_frame_base): Update.
496 * frame-unwind.c (_initialize_frame_unwind): Update.
497 * user-regs.c (_initialize_user_regs): Update.
498 * remote.c (_initialize_remote): Update.
499 * regcache.c (_initialize_regcache): Update.
500
501 * regcache.c (xfree_regcache_descr): Delete function.
502 (_initialize_regcache): Update call to register_gdbarch_data.
503 (init_regcache_descr, init_legacy_regcache_descr): Use
504 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
505
506 * remote.c (free_remote_state): Delete function.
507 (_initialize_remote): Update register_gdbarch_data.
508 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
509 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
510
511 2003-08-04 Andrew Cagney <cagney@redhat.com>
512
513 * reggroups.c (struct reggroup_el): Define.
514 (struct reggroups): Delete field "nr_group". Replace array
515 "group" with a "first" to "last" linked list.
516 (reggroups_init): Update. Allocate using gdbarch's obstack.
517 (reggroups_free): Delete function.
518 (add_group): Update. Add "el" parameter.
519 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
520 (default_groups): Update.
521 (reggroup_next): Replace reggroups.
522 (reggroups_dump): Update.
523 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
524 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
525 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
526
527 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
528
529 * Makefile.in (tui-interp.o): Update dependencies.
530
531 2003-08-04 David Carlton <carlton@kealia.com>
532
533 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
534 to internal_error call.
535 * source.c (forward_search_command): Add "%s" format argument.
536 (reverse_search_command): Ditto.
537 * top.c (quit_confirm): Ditto.
538 * cli/cli-setshow.c (do_setshow_command): Ditto.
539 * cp-valprint.c (cp_print_class_method): Replace
540 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
541 (cp_print_class_member): Ditto.
542 * event-top.c (command_line_handler): Ditto.
543 * linux-proc.c (linux_info_proc_cmd): Ditto.
544 * p-typeprint.c (pascal_type_print_base): Ditto.
545 * p-valprint.c (pascal_object_print_class_method): Ditto.
546 (pascal_object_print_class_member): Ditto.
547 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
548 * remote.c (remote_cisco_section_offsets): Ditto.
549 * top.c (command_line_input): Ditto.
550 * utils.c (vwarning,error_stream,quit): Ditto.
551 * valprint.c (print_floating,print_binary_chars)
552 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
553
554 2003-08-04 Andrew Cagney <cagney@redhat.com>
555
556 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
557
558 2003-08-02 Andrew Cagney <cagney@redhat.com>
559
560 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
561 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
562 amd64fbsd-nat.c.
563
564 2003-08-02 Andrew Cagney <cagney@redhat.com>
565
566 * Makefile.in: Update all dependencies and definitions.
567
568 2003-08-02 Adam Fedor <fedor@gnu.org>
569
570 * linespec.c (is_objc_method_format): New function
571 (decode_line_1, locate_first_half): Use it.
572 Fixes PR objc/1298
573
574 2003-08-01 Andrew Cagney <cagney@redhat.com>
575
576 * NEWS: Mention that m32r is multi-arch.
577 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
578 * configure.tgt: Recognize m32r-*-*.
579 * config/m32r/tm-m32r.h: Delete file.
580 * config/m32r/m32r.mt: New file.
581 * m32r-rom.c (m32r_upload_command): Use hostent only when
582 gethostname succeeds, in order to avoid a compilation
583 warning.
584 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
585 compiler warning.
586
587 2003-08-01 Michael Snyder <msnyder@redhat.com>
588
589 * sh-tdep.c (sh_frame_align): New gdbarch method.
590 (sh_gdbarch_init): Set up frame_align method.
591
592 2003-07-31 Michael Snyder <msnyder@redhat.com>
593
594 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
595 which is already covered by the new frames infrastructure.
596
597 2003-07-31 Andrew Cagney <cagney@redhat.com>
598
599 * user-regs.c (struct user_reg): Add "next" link.
600 (struct user_regs): Replace "user" with "first" and "last" links.
601 (append_user_reg): Add pre-allocated "reg" parameter.
602 (builtin_user_regs): Provide initial value for "last".
603 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
604 (user_regs_init): Allocate memory from the gdbarch obstack.
605 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
606 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
607 linked list.
608 (usernum_to_user_reg): New function.
609 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
610 (value_of_user_reg): Use usernum_to_user_reg.
611 (user_regs_free): Delete function.
612 (_initialize_user_regs): Update register_gdbarch_data call.
613
614 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
615
616 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
617
618 2003-07-30 Michael Snyder <msnyder@redhat.com>
619
620 * value.h (value_being_returned): Add a struct_addr argument.
621 * infcall.c (call_function_by_hand): Pass struct_addr to
622 value_being_returned.
623 * infcmd.c (print_return_value): Pass zero as struct_addr.
624 * values.c (value_being_returned): If struct_addr is passed,
625 use it instead of trying to recover it from the inferior.
626
627 2003-07-30 Kevin Buettner <kevinb@redhat.com>
628
629 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
630 the prologue analyzer won't need to attempt to extract the pc
631 value from the woefully incomplete dummy frame.
632 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
633 possible. Disable code which modifies the frame.
634
635 2003-07-28 Andrew Cagney <cagney@redhat.com>
636
637 * annotate.c (annotate_breakpoints_headers): Restrict annotation
638 to level 2.
639 (annotate_breakpoints_table, annotate_record): Ditto.
640 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
641 (annotate_field_name_end, annotate_field_value): Ditto.
642 (annotate_field_end, annotate_frame_source_begin): Ditto.
643 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
644 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
645 (annotate_frame_begin, annotate_frame_function_name): Ditto.
646 (annotate_frame_address_end, annotate_frame_address): Ditto.
647 (annotate_frame_args, annotate_frame_end): Ditto.
648 (annotate_frame_where, annotate_arg_begin): Ditto.
649 (annotate_arg_name_end, annotate_arg_value): Ditto.
650 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
651 (annotate_function_call, annotate_signal_name): Ditto.
652 (annotate_signal_string, annotate_signal_name_end): Ditto.
653 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
654 (annotate_value_begin, annotate_value_history_value): Ditto.
655 (annotate_value_history_end, annotate_value_end): Ditto.
656 (annotate_display_begin, annotate_display_number_end): Ditto.
657 (annotate_display_format, annotate_display_expression): Ditto.
658 (annotate_display_expression_end, annotate_display_value): Ditto.
659 (annotate_display_end, annotate_array_section_begin): Ditto.
660 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
661 (annotate_elt, annotate_array_section_end): Ditto.
662
663 2003-07-28 Andrew Cagney <cagney@redhat.com>
664
665 * regcache.c (struct regcache_descr): Update comments on
666 nr_raw_registers.
667 (init_legacy_regcache_descr): Don't set nr_raw_registers or
668 sizeof_raw_register_valid_p.
669 (init_regcache_descr): Set nr_raw_registers and
670 sizeof_raw_register_valid_p before calling
671 init_legacy_regcache_descr.
672
673 2003-07-28 Andrew Cagney <cagney@redhat.com>
674
675 * mips-tdep.c (print_gp_register_row): Print the GPR's register
676 MOD NUM_REGS.
677
678 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
679
680 * thread.c (info_threads_command): Use get_selected_frame ().
681 Check that there is at least one non-sentinel frame.
682
683 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
684
685 * m68hc11-tdep.c (struct frame_extra_info): Remove.
686 (m68hc11_pop_frame): Remove.
687 (m68hc11_frame_saved_pc): Remove.
688 (m68hc11_frame_chain): Remove.
689 (m68hc11_frame_init_saved_regs): Remove.
690 (m68hc11_init_extra_frame_info): Remove.
691 (m68hc11_store_struct_return): Remove.
692 (m68hc11_saved_pc_after_call): Remove.
693
694 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
695
696 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
697 frame unwind information.
698 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
699 and adapted for frame unwinding.
700 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
701 (m68hc11_unwind_pc): New function.
702 (m68hc11_frame_unwind_cache): New function to analyze frames.
703 (m68hc11_frame_this_id): New function to create new frame struct.
704 (m68hc11_frame_prev_register): New function to unwind a register from
705 the frame.
706 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
707 (m68hc11_frame_p): New function for the above.
708 (m68hc11_frame_base_address): New function to return fp of frame.
709 (m68hc11_frame_args_address): Update for frame.
710 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
711 (m68hc11_unwind_sp): New function.
712 (m68hc11_unwind_dummy_id): New function.
713 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
714 calls.
715
716 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
717
718 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
719 (m68hc11_guess_from_prologue): Advance the pc and frame size only
720 when we are beyond the current pc.
721
722 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
723
724 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
725 from m68hc11_push_arguments.
726 (m68hc11_push_arguments): Remove.
727 (m68hc11_push_return_address): Remove.
728 (m68hc11_gdbarch_init): Install the above; remove above deprecated
729 handlers; remove deprecated_extra_stack_alignment_needed.
730
731 2003-07-27 Andrew Cagney <cagney@redhat.com>
732
733 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
734 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
735 REAL_PC and not the pointer.
736 * hppa-hpux-tdep.c: Include frame.h
737
738 2003-07-27 Andrew Cagney <cagney@redhat.com>
739
740 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
741 GDB_MULTI_ACH_PARTIAL.
742
743 2003-07-27 Andrew Cagney <cagney@redhat.com>
744
745 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
746 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
747 operator at start and not end of line.
748 (decode_prologue): Ditto.
749 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
750 frame_unwind_register_unsigned instead of
751 frame_unwind_unsigned_register.
752 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
753 read_register.
754 (m32r_push_dummy_call): Use register_size instead of
755 REGISTER_RAW_SIZE.
756 (m32r_frame_sniffer): Replace m32r_frame_p.
757 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
758 * m32r-rom.c (report_transfer_performance): Delete extern
759 declaration.
760 (m32r_load, m32r_upload_command): Use print_transfer_performance
761 instead of report_transfer_performance.
762 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
763 / add_show_from_set.
764
765 2003-07-26 Andrew Cagney <cagney@redhat.com>
766
767 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
768 store_return_value and extract_struct_value_address.
769
770 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
771
772 PR c++/1267
773 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
774 NULL, default to the section containing PC.
775
776 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
777
778 * NEWS: Mention "regs" deprecated for m68hc11 too.
779
780 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
781 (m68hc11_print_register): New function to print out one register.
782 (m68hc11_print_registers_info): New function to print registers.
783 (show_regs): Deprecate and use the above.
784 (m68hc11_gdbarch_init): Install the print_registers_info.
785
786 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
787
788 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
789 that we have a SIGTRAP before returning non-zero.
790
791 2003-07-23 Michal Ludvig <mludvig@suse.cz>
792 Elena Zannoni <ezannoni@redhat.com>
793
794 * linespec.c (decode_line_2): Avoid crash if
795 find_function_start_sal() returns empty record.
796
797 2003-07-23 Andreas Schwab <schwab@suse.de>
798
799 * ia64-tdep.c (ia64_print_insn): New function.
800 (ia64_gdbarch_init): Set print_insn to it.
801 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
802 deprecated_tm_print_insn_info.
803
804 2003-07-22 Michael Snyder <msnyder@redhat.com>
805
806 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
807 handle 8-bit returns (long long).
808 (h8300h_extract_return_value): Ditto.
809 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
810
811 2003-07-22 Andrew Cagney <cagney@redhat.com>
812
813 * gdbarch.c Include "gdb_obstack.h".
814 (struct gdbarch): Add an "obstack".
815 (alloc_gdbarch_data): Allocate the gdbarch data using
816 GDBARCH_OBSTACK_CALLOC.
817 (free_gdbarch_data): Delete function.
818 (gdbarch_obstack_zalloc): New function.
819 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
820 Assert that the architecture is not initialized.
821 (gdbarch_alloc): Allocate an obstack, allocate the architecture
822 vector from the obstack.
823 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
824 architecture obstack.
825 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
826 (set_gdbarch_data): Assert that the data is not initialized.
827 (struct gdbarch_data): Delete member "free".
828 (register_gdbarch_data): Do not initialize "free".
829 * gdbarch.h, gdbarch.c: Re-generate.
830
831 2003-07-22 Andrew Cagney <cagney@redhat.com>
832
833 * configure.in (build_warnings): Add -Wformat-nonliteral.
834 * configure: Re-generate.
835
836 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
837
838 * dwarf2loc.c (locexpr_describe_location): Fix typos.
839
840 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
841
842 * findvar.c (read_var_value): Remove case for thread local storage
843 variables. It is now entirely handled by the dwarf2 location
844 expression code.
845 * printcmd.c (address_info): Ditto.
846 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
847 enumeration value.
848 (struct symbol): Remove objfile field, which was used by
849 LOC_THREAD_LOCAL_STATIC only.
850 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
851 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
852 usage of objfile pointer.
853 * dwarf2loc.c (locexpr_describe_location): Add case to handle
854 thread local variables.
855 Add include of objfiles.h.
856 * dwarf2expr.c (execute_stack_op): Add comments about thread local
857 storage variables.
858 * Makefile.in (dwarf2loc.o): Update dependencies.
859
860 2003-07-22 Andrew Cagney <cagney@redhat.com>
861
862 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
863 get_frame_base.
864 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
865 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
866 (struct value): Add opaque declaration.
867 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
868
869 2003-07-21 Andrew Cagney <cagney@redhat.com>
870
871 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
872 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
873
874 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
875
876 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
877 regcache_cooked_read_unsigned instead of read_register.
878 (m68hc11_saved_pc_after_call): Likewise.
879 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
880 instead of write_register.
881 (m68hc11_register_type): New function.
882 (m68hc11_register_virtual_type): Remove.
883 (m68hc11_store_return_value): Convert to use the regcache.
884 (m68hc11_extract_struct_value_address): Likewise.
885 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
886 m68hc11_register_type; undeprecate store_return_value and
887 extract_struct_value_address.
888
889 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
890
891 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
892 and translate to use regcache.
893 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
894
895 2003-07-18 Andrew Cagney <cagney@redhat.com>
896
897 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
898 * gdbarch.h, gdbarch.c: Re-generate.
899 * i386-tdep.c (i386_gdbarch_init): Do not set
900 DWARF2_BUILD_FRAME_INFO.
901 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
902 unconditionally.
903 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
904 DWARF2_BUILD_FRAME_INFO.
905
906 2003-07-18 Andrew Cagney <cagney@redhat.com>
907
908 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
909 * disasm.c (gdb_disassemble_info): Initilize di.arch.
910
911 2003-07-18 Andrew Cagney <cagney@redhat.com>
912
913 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
914 frame_unwind_address_in_block, instead of frame_pc_unwind.
915 (dwarf2_frame_cache): Ditto.
916
917 2003-07-18 Andrew Cagney <cagney@redhat.com>
918
919 * user-regs.h (struct gdbarch): Declare opaque.
920 * ui-out.h (struct ui_file): Declare opaque.
921 * dwarf2-frame.h (struct frame_info): Declare opaque.
922
923 2003-07-18 Kris Warkentin <kewarken@qnx.com>
924
925 * nto-procfs.c: Clean ARI hits. Change #include <..> to
926 #include "...".
927 (procfs_meminfo): Change strerror to safe_strerror.
928 (procfs_can_run): Remove K&R badness.
929
930 2003-07-17 Michael Snyder <msnyder@redhat.com>
931
932 * remote-sim.c: Comment typo fix.
933
934 2003-07-17 Andrew Cagney <cagney@redhat.com>
935
936 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
937 configure.
938 * sparc-tdep.c (sparc_intreg_size): Make non-static.
939 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
940 GDB_MULTI_ARCH_PARTIAL.
941
942 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
943
944 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
945 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
946 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
947
948 2003-07-16 Theodore A. Roth <troth@openavr.org>
949
950 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
951 found.
952 (avr_frame_unwind_cache): Don't unwind FP for main.
953 Update a comment.
954 Save the computed prev_sp.
955 (avr_saved_regs_unwinder): Remove function.
956 (avr_frame_prev_register): Use PC unwind logic from
957 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
958
959 2003-07-16 Andrew Cagney <cagney@redhat.com>
960
961 * frame-base.h (frame_base_p_ftype): Delete definition.
962 (frame_base_append_predicate): Delete declaration.
963 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
964 (frame_unwind_append_predicate): Delete declaration.
965 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
966 (append_predicate): Delete parameter "p".
967 (frame_unwind_append_predicate): Delete function.
968 (frame_unwind_append_sniffer): Update call to append_predicate.
969 (frame_unwind_free): Delete function.
970 (_initialize_frame_unwind): Pass NULL as "free" to
971 register_gdbarch_data.
972 (frame_unwind_init): Append the dummy_frame_sniffer.
973 (frame_unwind_find_by_frame): Simplify.
974 * frame-base.c (struct frame_base_table): Delete field "p".
975 (append_predicate): Delete parameter "p".
976 (frame_base_append_predicate): Delete function.
977 (frame_base_append_sniffer): Update call to append_predicate.
978 (frame_base_free): Delete function.
979 (frame_base_find_by_frame): Simplify.
980 (_initialize_frame_base): Pass NULL as "free" to
981 register_gdbarch_data.
982 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
983 (x86_64_sigtramp_frame_sniffer): Replace
984 "x86_64_sigtramp_frame_p".
985 (x86_64_init_abi): Set the frame unwind sniffers.
986 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
987 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
988 (m68k_gdbarch_init): Set the frame unwind sniffers.
989 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
990 "i386_sigtramp_frame_p".
991 (i386_frame_sniffer): Replace "i386_frame_p".
992 (i386_gdbarch_init): Set the frame unwind sniffers.
993 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
994 (avr_gdbarch_init): Set the frame unwind sniffers.
995 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
996 "alpha_sigtramp_frame_p"
997 (alpha_heuristic_frame_sniffer): Replace
998 "alpha_heuristic_frame_p".
999 (alpha_gdbarch_init): Set the frame unwind sniffers.
1000 (alpha_dwarf2_init_abi): Ditto.
1001 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1002 "alpha_debug_frame_p".
1003 (alpha_mdebug_frame_base_sniffer): Replace
1004 "alpha_mdebug_frame_base_p".
1005 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1006 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1007 (d10v_gdbarch_init): Set the frame unwind sniffer.
1008 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1009 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1010 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1011 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1012 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1013 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1014
1015 2003-07-16 Michael Snyder <msnyder@redhat.com>
1016
1017 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1018 should go thru sh_dsp_register_sim_regno, else the dsp regs
1019 will not get the right values.
1020
1021 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1022
1023 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1024 deprecated_store_floating by call to store_typed_floating.
1025 (sh_sh4_register_convert_to_raw): Substitute call to
1026 deprecated_extract_floating by call to extract_typed_floating.
1027
1028 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1029
1030 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1031
1032 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1033
1034 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1035 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1036 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1037 as possible.
1038 (do_pseudo_register): Remove.
1039 (sh_push_dummy_code): New function.
1040 (sh64_store_struct_return): Rename from sh_store_struct_return.
1041 Only called for sh64 now.
1042 (sh_extract_struct_value_address): Regcache'ify.
1043 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1044 and accomodate new tasks.
1045 (sh64_push_return_address): Rename from sh_push_return_address.
1046 Only called for sh64 now.
1047 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1048 Regcache'ify.
1049 (sh3e_sh4_extract_return_value): Regcache'ify.
1050 (sh_default_store_return_value): Ditto.
1051 (sh3e_sh4_store_return_value): Ditto.
1052 (sh_default_register_byte): Remove.
1053 (sh_sh4_register_byte): Remove.
1054 (sh_default_register_raw_size): Remove.
1055 (sh_sh4_register_raw_size): Remove.
1056 (sh_register_virtual_size): Remove.
1057 (sh_sh3e_register_virtual_type): Remove.
1058 (sh_sh3e_register_type): New function.
1059 (sh_sh4_register_virtual_type): Remove.
1060 (sh_sh4_register_type): New function.
1061 (sh_default_register_virtual_type): Remove.
1062 (sh_default_register_type): New function.
1063 (do_fv_register_info): Add parameters to accomodate call from
1064 sh_print_registers_info.
1065 (do_dr_register_info): Ditto.
1066 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1067 Add parameters to accomodate call from sh_print_registers_info.
1068 (sh_do_fp_register): Ditto.
1069 (sh64_do_pseudo_register): Call do_dr_register_info,
1070 do_fv_register_info and sh_do_fp_register with default parameters.
1071 (sh_do_register): Add parameters to accomodate call from
1072 sh_print_registers_info.
1073 (sh_print_register): Ditto.
1074 (sh_print_registers_info): Rename from sh_do_registers_info.
1075 Add parameters to be used as gdbarch_print_registers_info
1076 implementation. Accomodate removed do_pseudo_register function
1077 pointer.
1078 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1079 function pointer. Call sh_print_register with default parameters.
1080 (sh64_do_registers_info): Call sh_print_registers_info instead of
1081 sh_do_registers_info.
1082 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1083 detection of deprecated vs. non-deprecated functionality.
1084 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1085 function pointer assignments by direct function calls.
1086
1087 2003-07-15 Andrew Cagney <cagney@redhat.com>
1088
1089 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1090 (frame_register_unwind, create_new_frame): Ditto.
1091 (legacy_get_prev_frame, get_frame_type): Ditto.
1092 (get_frame_base_address): Use frame_base_find_by_frame.
1093 (get_frame_locals_address): Use frame_base_find_by_frame.
1094 (get_frame_args_address): Use frame_base_find_by_frame.
1095 * frame-base.h (frame_base_sniffer_ftype): Declare.
1096 (frame_base_append_sniffer): Declare.
1097 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1098 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1099 (frame_base_append_sniffer): New function.
1100 (frame_base_append_predicate): Add a NULL sniffer.
1101 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1102 (struct frame_base_table): Add "sniffer".
1103 (frame_base_free): Free the "sniffer" table.
1104 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1105 (frame_unwind_append_sniffer): Declare.
1106 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1107 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1108 (struct frame_unwind_table): Add "sniffer", delete "middle".
1109 (append_predicate): Add "sniffer" parameter, append the sniffer.
1110 (frame_unwind_init): Update append_predicate call.
1111 (frame_unwind_append_sniffer): New function.
1112 (frame_unwind_append_predicate): Update append_predicate call.
1113 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1114
1115 2003-07-15 Andrew Cagney <cagney@redhat.com>
1116
1117 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1118 before code inhibiting repeated unwind attempts. Add to
1119 commentary on that test's problems.
1120 * blockframe.c (inside_main_func): Look for "main" in the minimal
1121 symbol table.
1122 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1123 identical.
1124
1125 2003-07-15 Andrew Cagney <cagney@redhat.com>
1126
1127 * complaints.c (struct explanation): Define.
1128 (struct complaints): Change type of "explanation" to "struct
1129 explanation".
1130 (symfile_explanations): Convert to a "struct explanation" table.
1131 (vcomplaint): Update.
1132
1133 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1134
1135 * x86-64-linux-nat.c (regmap): Removed.
1136 (supply_gregset, fill_gregset): Call
1137 x86_64_linux_(fill,supply)_gregset functions.
1138 * x86-64-linux-tdep.c (USER_*): New defines.
1139 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1140 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1141 New functions.
1142 (fetch_core_registers): Ditto.
1143 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1144 * x86-64-linux-tdep.h: New file.
1145 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1146 and core-regset.o.
1147 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1148
1149 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1150
1151 * x86-64-tdep.c (x86_64_store_return_value): Use
1152 regcache_cooked_write_part instead of regcache_cooked_write.
1153
1154 * configure.host: Add x86_64-*-freebsd*.
1155 * configure.tgt: Add x86_64-*-freebsd*.
1156 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1157 * amd64fbsd-nat.c: New file.
1158 * amd64fbsd-tdep.c: New file.
1159 * config/i386/nm-fbsd64.h: New file.
1160 * config/i386/fbsd64.mh: New file.
1161 * config/i386/fbsd64.mt: New file.
1162
1163 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1164
1165 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1166 `sc_regs_offset' and `sc_fpregs_offset'.
1167 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1168 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1169 (alpha_sigtramp_register_address): Rewrite to use new members of
1170 `struct gdbarch_tdep'.
1171 (alpha_gdbarch_init): Initialize new members of struct
1172 gdbarch_tdep'.
1173 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1174 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1175 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1176 (alphafbsd_pc_in_sigtramp): Implement.
1177 (alphafbsd_sigtramp_offset): New function.
1178 (alphafbsd_sigcontext_addr): New function.
1179 (alphafbsd_init_abi): Initialize signal trampoline related members
1180 of `struct gdbarch_tdep'.
1181 (_initialize_alphafbsd_tdep): Add prototype.
1182
1183 2003-07-11 Theodore A. Roth <troth@openavr.org>
1184
1185 * Makefile.in (install-only): Quote sed expression when generating
1186 transformed_name.
1187
1188 2003-07-11 Richard Henderson <rth@redhat.com>
1189
1190 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1191 * dwarf2-frame.c: Include complaints.h.
1192 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1193 variable initialization; return NULL on error.
1194 (decode_frame_entry): New.
1195
1196 2003-07-11 Andrew Cagney <cagney@redhat.com>
1197
1198 * frame.h (frame_address_in_block): Delete declaration.
1199 * blockframe.c (frame_address_in_block): Delete function.
1200 (get_frame_block): Use get_frame_address_in_block.
1201 (block_innermost_frame): Ditto.
1202 * stack.c (print_frame, backtrace_command_1): Ditto.
1203
1204 * frame.h (get_frame_address_in_block): Declare.
1205 (frame_unwind_address_in_block): Declare.
1206 * frame.c (frame_unwind_address_in_block): New function.
1207 (get_frame_address_in_block): New function.
1208
1209 2003-07-10 Andrew Cagney <cagney@redhat.com>
1210
1211 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1212 pre-default. Note: re-generate has no effect.
1213
1214 2003-07-10 Andrew Cagney <cagney@redhat.com>
1215
1216 * gdbarch.sh: When a variable, but not a function, compare against
1217 0. Fix problem in previous patch.
1218 * gdbarch.c: Re-generate.
1219
1220 2003-07-10 Andrew Cagney <cagney@redhat.com>
1221
1222 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1223 functions against NULL, not 0.
1224 * gdbarch.c: Re-generate.
1225
1226 2003-07-10 Fred Fish <fnf@ninemoons.com>
1227
1228 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1229 null string instead of a null pointer.
1230 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1231
1232 2003-07-09 Michael Snyder <msnyder@redhat.com>
1233
1234 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1235
1236 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1237
1238 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1239 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1240 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1241 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1242 * x86-64-tdep.c: ... from here.
1243
1244 2003-07-09 Andreas Schwab <schwab@suse.de>
1245
1246 * m68k-tdep.h (enum struct_return): Define.
1247 (struct gdbarch_tdep): Add struct_return.
1248 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1249 bytes are padded to the right, not to the left. Pass struct value
1250 address in register %a1, not on stack.
1251 (m68k_use_struct_convention): New function.
1252 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1253 struct_return in tdep to pcc_struct_return.
1254 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1255 reg_struct_return.
1256
1257 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1258
1259 * somread.c (som_symfile_offsets): Fix compilation error.
1260
1261 2003-07-09 Andrew Cagney <cagney@redhat.com>
1262
1263 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1264 Add comments about the checks.
1265
1266 2003-07-08 Andrew Cagney <cagney@redhat.com>
1267
1268 * Makefile.in: Make dependency section headers consistent.
1269 (config_h): Move to $BUILD headers section.
1270 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1271 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1272 (ada-exp.tab.c): Move to YACC/LEX section.
1273 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1274 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1275
1276 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1277
1278 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1279 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1280 of strerror with safe_strerror, use ISO C function definitions,
1281 and replace instances of sprintf with snprintf.
1282
1283 2003-07-07 Andrew Cagney <cagney@redhat.com>
1284
1285 * frame.c (get_prev_frame): Enable check for identical frames.
1286 Update comments. Update error messages.
1287
1288 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1289
1290 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1291
1292 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1293
1294 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1295 sort_symtab_syms, no longer necessary.
1296
1297 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1298
1299 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1300
1301 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1302
1303 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1304 (mips_register_byte): Likewise.
1305
1306 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1307
1308 * Makefile.in (sparc_tdep_h): New.
1309 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1310 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1311 * sparc-linux-nat.c: Include "sparc-tdep.h".
1312 * sparc-nat.c: Likewise.
1313 * sparc-tdep.c: Likewise.
1314 * sparc64nbsd-nat.c: Likewise.
1315 * sparcnbsd-nat.c: Likewise.
1316 * sparcnbsd-tdep.c: Likewise.
1317 * sparc-tdep.h: New file.
1318 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1319 and sparc_npc_regnum.
1320
1321 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1322
1323 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1324 (mips_linux_cannot_store_register): List supported instead of
1325 unsupported registers.
1326
1327 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1328
1329 * disasm.c (dump_insns): Separate instructions from addresses.
1330
1331 2003-07-07 Andreas Schwab <schwab@suse.de>
1332
1333 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1334 dependencies.
1335 * m68k-tdep.c (NUM_FREGS): Delete.
1336 (SIG_PC_FP_OFFSET): Delete.
1337 (TARGET_M68K): Delete.
1338 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1339 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1340 P_MOVEL_SP, P_MOVEML_SP): Define.
1341 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1342 P_TRAP): Delete.
1343 (m68k_register_raw_size): Delete.
1344 (m68k_register_virtual_size): Delete.
1345 (m68k_register_type): Renamed from m68k_register_virtual_type and
1346 add gdbarch argument.
1347 (m68k_store_struct_return): Delete.
1348 (m68k_deprecated_extract_return_value): Delete.
1349 (m68k_deprecated_extract_struct_value_address): Delete.
1350 (m68k_frame_chain): Delete.
1351 (m68k_frame_saved_pc): Delete.
1352 (m68k_fix_call_dummy): Delete.
1353 (m68k_push_dummy_frame): Delete.
1354 (m68k_pop_frame): Delete.
1355 (m68k_extract_return_value): New function.
1356 (m68k_store_return_value): Rewrite using regcache.
1357 (m68k_extract_struct_value_address): Rewrite using regcache.
1358 (m68k_push_dummy_call): New function.
1359 (struct m68k_frame_cache): Define.
1360 (m68k_alloc_frame_cache): New function.
1361 (m68k_analyze_frame_setup): New function.
1362 (m68k_analyze_register_saves): New function.
1363 (m68k_analyze_prologue): New function.
1364 (m68k_skip_prologue): Rewrite using above functions.
1365 (m68k_unwind_pc): New function.
1366 (m68k_frame_cache): New function.
1367 (m68k_frame_this_id): New function.
1368 (m68k_frame_prev_register): New function.
1369 (m68k_frame_unwind): New variable.
1370 (m68k_frame_p): New function.
1371 (m68k_sigtramp_frame_cache): New function.
1372 (m68k_sigtramp_frame_this_id): New function.
1373 (m68k_sigtramp_frame_prev_register): New function.
1374 (m68k_sigtramp_frame_unwind): New variable.
1375 (m68k_sigtramp_frame_p): New function.
1376 (m68k_frame_base_address): New function.
1377 (m68k_frame_base): New function.
1378 (m68k_unwind_dummy_id): New function.
1379 (fill_gregset): Use regcache_collect.
1380 (fill_fpregset): Likewise.
1381 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1382 defined.
1383 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1384 deprecated_init_frame_pc, deprecated_store_struct_return,
1385 deprecated_extract_return_value, deprecated_store_return_value,
1386 deprecated_frame_chain, deprecated_frame_saved_pc,
1387 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1388 deprecated_register_virtual_size,
1389 deprecated_max_register_raw_size,
1390 deprecated_max_register_virtual_size,
1391 deprecated_register_virtual_type, deprecated_register_size,
1392 deprecated_register_byte, deprecated_register_bytes,
1393 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1394 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1395 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1396 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1397 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1398 deprecated_push_dummy_frame, deprecated_pop_frame,
1399 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1400 only if SYSCALL_TRAP is defined. Set extract_return_value,
1401 store_return_value, extract_struct_value_address, register_type,
1402 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1403 predicates.
1404 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1405 M68K_MAX_REGISTER_SIZE): Define.
1406 (struct m68k_sigtramp_info): Define.
1407 (struct gdbarch_tdep): Add get_sigtramp_info.
1408 * m68klinux-nat.c (fetch_register): Use register_size instead of
1409 REGISTER_RAW_SIZE. Don't put assignment in if.
1410 (store_register): Likewise.
1411 (fetch_inferior_registers): Likewise.
1412 (store_inferior_registers): Likewise.
1413 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1414 (m68k_linux_frame_saved_pc): Delete.
1415 (m68k_linux_sigcontext_reg_offset,
1416 m68k_linux_ucontext_reg_offset): Define.
1417 (m68k_linux_get_sigtramp_info): New function.
1418 (m68k_linux_extract_return_value): Rewrite using regcache.
1419 (m68k_linux_store_return_value): Likewise.
1420 (m68k_linux_extract_struct_value_address): Likewise.
1421 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1422 Don't set deprecated_frame_saved_pc,
1423 deprecated_extract_return_value, deprecated_store_return_value,
1424 deprecated_extract_struct_value_address. Set
1425 extract_return_value, store_return_value,
1426 extract_struct_value_address.
1427
1428 2003-07-07 Andrew Cagney <cagney@redhat.com>
1429
1430 * expprint.c: Include "user-regs.h" instead of "frame.h".
1431 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1432 frame_map_regnum_to_name.
1433 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1434 (frame_map_name_to_regnum): Simplify, call
1435 user_reg_map_name_to_regnum.
1436 (frame_map_regnum_to_name): Simplify, call
1437 user_reg_map_regnum_to_name.
1438 (frame_register_unwind): Update.
1439 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1440 (_initialize_frame_reg): Call user_reg_add_builtin.
1441 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1442 (value_of_register): Use value_of_user_reg.
1443 * eval.c (evaluate_subexp_standard): Update.
1444 * parse.c (write_dollar_variable): Update.
1445 * d10v-tdep.c (d10v_print_registers_info): Update.
1446 * infcmd.c (registers_info): Update.
1447 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1448 (builtin_regs_h): Delete macro.
1449 (user_regs_h): Define.
1450 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1451 (builtin-regs.o): Delete target.
1452 (user-regs.o): Specify dependencies.
1453 (expprint.o): Update dependencies.
1454 (findvar.o): Update dependencies.
1455 (frame.o): Update dependencies.
1456 (std-regs.o): Update dependencies.
1457
1458 2003-07-06 Christopher Faylor <cgf@redhat.com>
1459
1460 * win32-nat.c (solib_symbols_add): Use one variable for all section
1461 address stuff. Pass variable rather than address of variable to
1462 safe_symbol_file_add.
1463
1464 2003-07-06 Andreas Schwab <schwab@suse.de>
1465
1466 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1467
1468 2003-07-04 Joel Brobecker <brobecker@gnat.com>
1469
1470 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1471
1472 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1473
1474 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1475
1476 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1477
1478 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1479 * config/i386/nto.mh: New file.
1480 * config/i386/nm-nto.h: New file.
1481 * configure.host: Add i[3456]86-*-nto*.
1482
1483 2003-07-03 Joel Brobecker <brobecker@gnat.com>
1484
1485 * remote-vx.c (vx_add_symbols): Fix compilation error.
1486
1487 2003-07-03 Andrew Cagney <cagney@redhat.com>
1488
1489 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1490 * gdbarch.h, gdbarch.c: Re-generate.
1491 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1492 (legacy_register_name): Declare.
1493 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1494 (REGISTER_NAME): Define.
1495 * sparc-tdep.c (legacy_register_name): New function.
1496 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1497 (REGISTER_NAME): Define.
1498 (hppa64_register_name): Declare.
1499 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1500 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1501 (hppa64_register_name): New function.
1502 (hppa_register_name): New function.
1503 * arch-utils.c (legacy_register_name): Delete.
1504 * arch-utils.h (legacy_register_name): Delete.
1505
1506 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
1507
1508 * cli/cli-interp.c (cli_interpreter_resume): Update the
1509 cli_uiout's stream to gdb_stdout.
1510
1511 2003-07-03 Andrew Cagney <cagney@redhat.com>
1512
1513 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1514 predicate.
1515 * gdbarch.h, gdbarch.c: Re-generate.
1516 * regcache.c (init_regcache_descr): Use legacy code when either
1517 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1518
1519 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1520
1521 * NEWS: Move "set logging" entry into GDB 6.0 section.
1522
1523 2003-07-02 Jim Blandy <jimb@redhat.com>
1524
1525 * s390-tdep.c (struct frame_extra_info): new member:
1526 'stack_bought_valid'.
1527 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1528 initialize fextra_info->stack_bought.
1529 (s390_frameless_function_invocation): Don't trust the value of
1530 fextra_info_ptr->stack_bought unless
1531 fextra_info->stack_bought_valid is set.
1532
1533 New S390 prologue analyzer.
1534 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1535 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1536 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1537 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1538 compute_x_addr, s390_on_stack, s390_store,
1539 s390_get_signal_frame_info): New functions.
1540 (S390_NUM_SPILL_SLOTS): New macro.
1541 (s390_get_frame_info): Rewritten.
1542 (is_arg_reg): Deleted.
1543
1544 Break out the decoding of S/390 instructions into separate
1545 functions, to make it more legible, and easier to check
1546 against the spec.
1547 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1548 is_rx, is_rxe): New functions.
1549 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1550 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1551 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1552 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1553 enums for opcode values. (Is this an improvement?)
1554
1555 2003-07-02 Andrew Cagney <cagney@redhat.com>
1556
1557 * i386-tdep.c: Revert change committed as part of trad-frame code
1558 below.
1559
1560 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1561
1562 * breakpoint.c (insert_catchpoint): Make static.
1563
1564 2003-07-02 Andreas Schwab <schwab@suse.de>
1565
1566 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1567 former ia64_push_arguments and ia64_push_return_address, and use
1568 regcache functions instead of read/write_register.
1569 (ia64_gdbarch_init): Set push_dummy_call instead of
1570 deprecated_push_arguments and deprecated_push_return_address.
1571
1572 2003-07-01 Andreas Jaeger <aj@suse.de>
1573
1574 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1575 before the call.
1576 Set %rax only to number of SSE registers used.
1577
1578 2003-07-01 Andrew Cagney <cagney@redhat.com>
1579
1580 * trad-frame.h: Update comments, a -1 .addr is reserved.
1581 (trad_frame_value_p, trad_frame_addr_p): Declare.
1582 (trad_frame_reg_p): Declare.
1583 (trad_frame_set_value): Rename trad_frame_register_value.
1584 (trad_frame_set_unknown): Declare.
1585 * trad-frame.c (trad_frame_realreg_p): New function.
1586 (trad_frame_addr_p, trad_frame_value_p): New function.
1587 (trad_frame_set_unknown): New function.
1588 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1589 (trad_frame_prev_register): Use trad_frame_realreg_p,
1590 trad_frame_addr_p and trad_frame_value_p.
1591 (trad_frame_set_value): Rename trad_frame_register_value.
1592 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1593 and trad_frame_set_value.
1594
1595 2003-06-30 Jim Blandy <jimb@redhat.com>
1596
1597 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1598 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1599 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1600 for 16 registers, and then 32 more bytes.
1601 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1602 New macros.
1603 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1604 Move up in the file, since it's now used by is_simple_arg.
1605 (is_simple_arg): Don't assume registers are four bytes long.
1606 Exclude all double arguments. Extended floats are not simple
1607 args.
1608 (is_power_of_two): New function.
1609 (pass_by_copy_ref): Call is_power_of_two, and check that the
1610 length fits in a register, rather than listing all the acceptable
1611 sizes. Extended floats are not passed by reference.
1612 (s390_push_arguments): Don't assume registers are four bytes long.
1613 Reserve an argument register to point to the buffer for structures
1614 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1615 S390_STACK_FRAME_OVERHEAD.
1616
1617 2003-06-30 Andreas Schwab <schwab@suse.de>
1618
1619 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1620 format error message.
1621
1622 2003-06-30 Joel Brobecker <brobecker@gnat.com>
1623
1624 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1625
1626 2003-06-30 David Carlton <carlton@kealia.com>
1627
1628 Band-aid for PR c++/1245.
1629 * Makefile.in (cp-support.o): Depend on complaints_h.
1630 * cp-support.c: Include complaints.h. Add declaration for
1631 find_last_component.
1632 (cp_find_first_component): Separate code into
1633 cp_find_first_component_aux.
1634 (cp_find_first_component_aux): Call demangled_name_complaint.
1635 (demangled_name_complaint): New.
1636
1637 2003-06-30 Andrew Cagney <cagney@redhat.com>
1638
1639 * remote.c (remote_write_bytes): Explicitly compute and then use
1640 the payload size. Update comments to reflect. Fixes problem of
1641 GDB not sending small packets as found by Fred Fish.
1642
1643 2003-06-30 Andrew Cagney <cagney@redhat.com>
1644
1645 * remote.c (remote_async_wait): Fix -Wformat problem.
1646
1647 2003-06-29 Andrew Cagney <cagney@redhat.com>
1648
1649 * remote.c (remote_wait): Call error, and not warning, when the
1650 packet is corrupt.
1651 (remote_async_wait): Ditto.
1652
1653 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1654
1655 * sparc-tdep.c (sparc_y_regnum): Make external again.
1656
1657 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1658
1659 * cli/cli-logging.c (pop_output_files): Add void to function
1660 definition.
1661
1662 2003-06-29 Andrew Cagney <cagney@redhat.com>
1663
1664 * frame.c (frame_register_unwind): Use unsigned char when dumping
1665 the buffer contents.
1666
1667 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1668
1669 * cli/cli-logging.c: New file.
1670 * cli-out.c (struct ui_out_data): Add original_stream.
1671 (cli_redirect): New function.
1672 (cli_ui_out_impl): Add cli_redirect.
1673 (cli_out_new): Initialize original_stream.
1674 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1675 (uo_redirect, ui_out_redirect): New.
1676 * ui-out.h (struct ui_out_impl): Add redirect member.
1677 (redirect_ftype): New.
1678 (ui_out_redirect): Add prototype.
1679 * Makefile.in: Add rules for cli-logging.c.
1680 * NEWS: Mention "set logging".
1681
1682 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1683
1684 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1685
1686 2003-06-27 Andrew Cagney <cagney@redhat.com>
1687
1688 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1689 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1690 * avr-tdep.c (avr_call_dummy_address): Delete function.
1691 (avr_gdbarch_init): Do not set call_dummy_address.
1692
1693 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1694
1695 * symfile.c (syms_from_objfile): Move variables to inner block.
1696 Move the checks for the non-mainline case a bit earlier to avoid
1697 doing some useless computations.
1698
1699 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1700
1701 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1702
1703 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
1704
1705 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1706 sections.
1707
1708 2003-06-26 Michael Chastain <mec@shout.net>
1709
1710 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1711 gdb/testsuite/gdb.c++/pr-1210.exp.
1712
1713 2003-06-26 Andrew Cagney <cagney@redhat.com>
1714
1715 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1716 altivec_expression.h and altivec_registers.h.
1717
1718 2003-06-26 Andrew Cagney <cagney@redhat.com>
1719
1720 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1721 info->mach when MIPS16. Patch suggested by Fred Fish.
1722
1723 2003-06-26 Andrew Cagney <cagney@redhat.com>
1724
1725 * utils.c (internal_vproblem): Print the problem to a reason
1726 buffer and then pass to query. Make the msg variable more local.
1727
1728 2003-06-26 Andrew Cagney <cagney@redhat.com>
1729
1730 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
1731 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
1732 * gdbarch.h, gdbarch.c: Re-generate.
1733 * frame-base.c (default_frame_args_address): Update. Use
1734 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
1735 not available.
1736 (default_frame_locals_address): Ditto for
1737 DEPRECATED_FRAME_LOCALS_ADDRESS.
1738 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
1739 (vax_frame_num_args): Update.
1740 (vax_gdbarch_init): Update.
1741 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1742 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1743 * mcore-tdep.c (mcore_gdbarch_init): Update.
1744 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1745 * ia64-tdep.c (ia64_gdbarch_init): Update.
1746 * symtab.h (address_class): Update comments.
1747 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
1748 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1749 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1750 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1751 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1752 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1753 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1754 * alpha-mdebug-tdep.c: Update.
1755 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
1756
1757 2003-06-26 Andreas Jaeger <aj@suse.de>
1758
1759 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
1760 of SSE registers so that varargs functions work. Rework handling
1761 of passing arguments on the stack.
1762 (x86_64_store_return_value): Return double and float values in SSE
1763 register.
1764
1765 2003-06-24 Michael Chastain <mec@shout.net>
1766
1767 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
1768 the "constructor breakpoints ignored" bug.
1769
1770 2003-06-25 David Carlton <carlton@kealia.com>
1771
1772 * MAINTAINERS: Update e-mail address.
1773
1774 2003-06-24 Jim Blandy <jimb@redhat.com>
1775
1776 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
1777
1778 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
1779 function.
1780 (ppc_linux_init_abi): Register it as the
1781 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
1782
1783 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
1784 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
1785 method.
1786
1787 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
1788 (ppc64_standard_linkage_target): Use it.
1789
1790 2003-06-23 Andrew Cagney <cagney@redhat.com>
1791
1792 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
1793 for 0 "int0" and 4 "int32" sized registers.
1794 * gdbtypes.c (builtin_type_int0): Define.
1795 (build_gdbtypes): Initialize builtin_type_int0.
1796 * gdbtypes.h (builtin_type_int0): Declare.
1797
1798 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
1799
1800 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
1801 as characters are unsigned.
1802
1803 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1804
1805 PR gdb/1179
1806 * dwarfread.c (struct_type): Skip static fields without crashing.
1807
1808 2003-06-22 Andrew Cagney <cagney@redhat.com>
1809
1810 GDB 6.0 branch created.
1811 * README: Update.
1812 * PROBLEMS: Update. Empty.
1813 * NEWS: Update.
1814
1815 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1816
1817 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
1818 Suggested by Nick Hibma <n_hibma@webweaving.org>.
1819
1820 2003-06-22 Andrew Cagney <cagney@redhat.com>
1821
1822 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
1823 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
1824 Velikov.
1825
1826 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1827
1828 * cli/cli-cmds.c (shell_escape): Silence warnings from old
1829 compilers.
1830
1831 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1832
1833 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
1834 argument of val_print.
1835 * cp-valprint.c (cp_print_value): Don't add the offset parameter
1836 to the address argument of baseclass_offset or target_read_memory.
1837 Do add it to the argument of cp_print_value_fields.
1838
1839 2003-06-21 Andrew Cagney <cagney@redhat.com>
1840
1841 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
1842 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
1843 instead of 0..NUM_REGS.
1844 (mips_register_reggroup_p): New function.
1845 (mips_pseudo_register_write): New function.
1846 (mips_pseudo_register_read): New function.
1847 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
1848 based on the register's type.
1849 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
1850 cooked.
1851 (mips_get_saved_register): Simplify. Assert that REGNO is a
1852 pseudo / cooked.
1853 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
1854 (mips_register_type): Replace mips_register_virtual_type. Map
1855 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
1856 when available.
1857 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
1858 that the register is cooked / virtual.
1859 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
1860 Only get the extra info when needed.
1861 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
1862 (mips32_heuristic_proc_desc): Fetch the cooked register.
1863 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
1864 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
1865 (mips_print_register): Use gdbarch_register_type, instead of
1866 REGISTER_VIRTUAL_TYPE.
1867 (print_gp_register_row): Use gdbarch_register_type, instead of
1868 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
1869 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1870 Print the pseudo / cooked registers.
1871 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1872 Print the pseudo / cooked registers.
1873 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
1874 REG_NUM is pseudo / cooked.
1875 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
1876 (mips_n32n64_xfer_return_value): Ditto.
1877 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
1878 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
1879 (mips_register_sim_regno): New function.
1880 (mips_gdbarch_init): Set deprecated_register_byte,
1881 register_group_p, pseudo_register_write, pseudo_register_read,
1882 register_sim_regno, and num_pseudo_regs. Set register_type,
1883 instead of register_virtual_type.
1884 * Makefile.in (mips-tdep.o): Update dependencies.
1885 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
1886 REGISTER_VIRTUAL_TYPE.
1887 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
1888 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
1889 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
1890 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
1891 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
1892
1893 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1894
1895 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
1896 * cli/cli-cmds.c: Include "gdb_vfork.h".
1897 (shell_escape): Use vfork.
1898
1899 2003-06-21 Andrew Cagney <cagney@redhat.com>
1900
1901 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
1902 32 bit floating-point register saves.
1903
1904 * frame.h (deprecated_unwind_get_saved_register): Delete.
1905 * frame.c (deprecated_unwind_get_saved_register): Delete function.
1906 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
1907 and deprecated_get_next_frame_hack instead of
1908 deprecated_unwind_get_saved_register.
1909
1910 * mips-tdep.c (mips_dump_tdep): Do not print
1911 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
1912
1913 * frame.c (get_frame_register): New function.
1914 (frame_unwind_register_signed): New function.
1915 (get_frame_register_signed): New function.
1916 (frame_unwind_register_unsigned): New function.
1917 (get_frame_register_unsigned): New function.
1918 * frame.h: Add comments on naming schema.
1919 (get_frame_register, frame_unwind_register_signed): Declare.
1920 (get_frame_register_signed, get_frame_register_signed): Declare.
1921 (frame_unwind_register_unsigned): Declare.
1922 (get_frame_register_unsigned): Declare.
1923
1924 2003-06-20 Theodore A. Roth <troth@openavr.org>
1925
1926 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
1927
1928 2003-06-20 Theodore A. Roth <troth@openavr.org>
1929
1930 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
1931 (avr_read_sp): Ditto.
1932
1933 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
1934
1935 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
1936 * config/arm/nm-linux.h: Likewise.
1937 * config/arm/tm-linux.h: Likewise.
1938 * config/ia64/nm-linux.h: Likewise.
1939 * config/ia64/tm-ia64.h: Likewise.
1940 * config/s390/tm-linux.h: Likewise.
1941 * config/s390/tm-s390.h: Likewise.
1942 * s390-nat.c: Likewise.
1943 * s390-tdep.c: Likewise.
1944
1945 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
1946 * config/ia64/linux.mt: Likewise.
1947 * config/m68k/linux.mh: Likewise.
1948 * config/mips/linux.mt: Likewise.
1949 * config/powerpc/linux.mh: Likewise.
1950 * config/sh/linux.mt: Likewise.
1951
1952 2003-06-19 Kris Warkentin <kewarken@qnx.com>
1953
1954 * solib.c (solib_open): Change tests for whether to search
1955 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
1956 comments.
1957
1958 2003-06-19 Theodore A. Roth <troth@openavr.org>
1959
1960 * avr-tdep.c (avr_frame_address): Delete function.
1961 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
1962 set_gdbarch_frame_args_address.
1963
1964 2003-06-19 Andrew Cagney <cagney@redhat.com>
1965
1966 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
1967 (REGISTER_CONVERT_FROM_TYPE): Delete.
1968 (mips_register_convert_to_type): Delete declaration.
1969 (mips_register_convert_from_type): Delete declaration.
1970 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
1971 kernel/.
1972
1973 2003-06-19 Michael Snyder <msnyder@redhat.com>
1974
1975 * linux-nat.h: New file.
1976 * linux-nat.c: Include linux-nat.h.
1977 * lin-lwp.c: Include linux-nat.h.
1978 Move struct lwp_info def to linux-nat.h.
1979 * linux-proc.c: Include linux-nat.h.
1980 (linux_make_note_section): Iterate over lwps instead of threads.
1981 (linux_do_thread_registers): Use lwp instead of merged pid.
1982 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
1983 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
1984 Add dependency on linux_nat_h.
1985
1986 2003-06-19 Theodore A. Roth <troth@openavr.org>
1987
1988 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
1989
1990 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1991
1992 * varobj.c (get_type, get_target_type): Use check_typedef.
1993
1994 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1995
1996 * breakpoint.c (insert_catchpoint): Call internal_error.
1997
1998 2003-06-19 Theodore A. Roth <troth@openavr.org>
1999
2000 * avr-tdep.c (avr_push_dummy_code): Delete function.
2001 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2002
2003 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2004
2005 * arch-utils.c (default_prepare_to_proceed): Remove.
2006 (generic_prepare_to_proceed): Remove.
2007 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2008 (generic_prepare_to_proceed): Remove prototype.
2009 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2010 * gdbarch.c: Regenerate.
2011 * gdbarch.h: Regenerate.
2012 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2013 * hppah-nat.c (hppa_switched_threads): Remove.
2014 * infrun.c (prepare_to_proceed): New static function, copied from
2015 generic_prepare_to_proceed. Remove select_it argument.
2016 (proceed): Call prepare_to_proceed.
2017 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2018 variables.
2019 (ptrace_wait): Don't set the removed variables.
2020 (hppa_switched_threads): Remove.
2021 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2022 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2023 (lin_lwp_prepare_to_proceed): Remove prototype.
2024 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2025 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2026
2027 2003-06-18 Theodore A. Roth <troth@openavr.org>
2028
2029 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2030 trad-frame.h.
2031 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2032 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2033 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2034 (AVR_PROLOGUE_*): Enumerate prologue types.
2035 (struct frame_extra_info): Remove.
2036 (struct avr_unwind_cache): Define.
2037 (avr_write_sp): Delete function.
2038 (avr_read_fp): Ditto.
2039 (avr_init_extra_frame_info): Ditto.
2040 (avr_pop_frame): Ditto.
2041 (avr_frame_saved_pc): Ditto.
2042 (avr_saved_pc_after_call): Ditto.
2043 (avr_push_return_address): Ditto.
2044 (avr_frame_chain): Ditto.
2045 (avr_store_struct_return): Ditto.
2046 (avr_push_arguments): Ditto.
2047 (avr_scan_prologue): Update comments. Changed to set up the info for
2048 cache unwinding. Now returns end of prologue PC.
2049 (avr_skip_prologue): Better handling of functions lacking a prologue
2050 by using avr_scan_prologue.
2051 (avr_scan_arg_moves): New function.
2052 (avr_saved_regs_unwinder): Ditto.
2053 (avr_frame_unwind_cache): Ditto.
2054 (avr_unwind_pc): Ditto.
2055 (avr_frame_this_id): Ditto.
2056 (avr_frame_prev_register): Ditto.
2057 (avr_frame_p): Ditto.
2058 (avr_frame_base_address ): Ditto.
2059 (avr_unwind_dummy_id): Ditto.
2060 (avr_push_dummy_code): Ditto.
2061 (push_stack_item): Ditto.
2062 (pop_stack_item): Ditto.
2063 (avr_push_dummy_call): Ditto.
2064 (struct stack_item): Define.
2065 (avr_frame_unwind): Declare structure.
2066 (avr_frame_base): Ditto.
2067 (avr_gdbarch_init): Remove calls to
2068 set_gdbarch_deprecated_init_frame_pc,
2069 set_gdbarch_deprecated_target_read_fp,
2070 set_gdbarch_deprecated_dummy_write_sp,
2071 set_gdbarch_deprecated_fp_regnum,
2072 set_gdbarch_deprecated_push_arguments,
2073 set_gdbarch_deprecated_push_return_address,
2074 set_gdbarch_deprecated_pop_frame,
2075 set_gdbarch_deprecated_store_struct_return,
2076 set_gdbarch_deprecated_frame_init_saved_regs,
2077 set_gdbarch_deprecated_init_extra_frame_info,
2078 set_gdbarch_deprecated_frame_chain,
2079 set_gdbarch_deprecated_frame_saved_pc,
2080 set_gdbarch_deprecated_saved_pc_after_call.
2081 Add calls to set_gdbarch_push_dummy_call,
2082 set_gdbarch_push_dummy_code,
2083 frame_unwind_append_predicate,
2084 frame_base_set_default,
2085 set_gdbarch_unwind_dummy_id,
2086 set_gdbarch_unwind_pc.
2087 Wrap a long line.
2088
2089 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2090
2091 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2092 registers for H8/300S.
2093 (h8300_print_registers_info): Ditto.
2094 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2095
2096 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2097
2098 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2099 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2100 (lin_lwp_wait): Likewise. Update comments.
2101 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2102 (pull_pid_from_list, linux_record_stopped_pid): New.
2103
2104 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2105
2106 * ada-lang.c (scan_discrim_bound): Name first argument.
2107 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2108 declared by ALL_BLOCK_SYMBOLS.
2109
2110 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2111
2112 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2113 ("regcache.h"): Include it.
2114 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2115
2116 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2117
2118 * NEWS: Mention gdbserver detach change and "disconnect" command.
2119 * infcmd.c (disconnect_command): New function.
2120 (_initialize_infcmd): Add ``disconnect'' command.
2121 * remote.c (remote_async_detach): Delete.
2122 (remote_detach): Merge remote_async_detach.
2123 (remote_disconnect): New.
2124 (init_remote_ops): Set to_disconnect.
2125 (init_remote_cisco_ops): Likewise.
2126 (init_remote_async_ops): Likewise. Use remote_detach.
2127 * target.c (cleanup_target): Default to_disconnect.
2128 (update_current_target): Inherit to_disconnect.
2129 (target_disconnect, debug_to_disconnect): New functions.
2130 (setup_target_debug): Set to_disconnect.
2131 * target.h (struct target_ops): Add to_disconnect.
2132 (target_disconnect): Add prototype.
2133
2134 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2135
2136 * breakpoint.c (insert_catchpoint): New function.
2137 (insert_breakpoints): Use catch_exceptions to call
2138 insert_catchpoint. Disable catchpoints if they fail to insert.
2139
2140 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2141
2142 * symfile.c (reread_symbols): Clear sym_private.
2143
2144 2003-06-17 Andrew Cagney <cagney@redhat.com>
2145
2146 * trad-frame.h (struct frame_info): Add opaque declaration.
2147 * remote-fileio.h (struct cmd_list_element): Add opaque
2148 declaration.
2149 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2150 comments.
2151
2152 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2153
2154 * remote.c (remote_prepare_to_store): Replace call to
2155 deprecated_read_register_bytes with multiple regcache_raw_read
2156 calls.
2157
2158 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2159
2160 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2161 (nto_find_and_open_solib): Likewise.
2162 (nto_init_solib_absolute_prefix): Likewise.
2163 (_initialize_nto_tdep): Fix indentation.
2164
2165 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2166
2167 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2168
2169 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2170
2171 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2172
2173 2003-06-17 Jim Blandy <jimb@redhat.com>
2174
2175 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2176
2177 2003-06-16 Theodore A. Roth <troth@openavr.org>
2178
2179 * avr-tdep.c (avr_extract_return_value): New function.
2180 (avr_gdbarch_init): Set extract_return_value method.
2181
2182 2003-06-16 Andrew Cagney <cagney@redhat.com>
2183
2184 * frame.h (deprecated_get_next_frame_hack): Declare.
2185 * frame.c (legacy_saved_regs_prev_register): Only require
2186 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2187 there are always saved regs.
2188 (deprecated_generic_get_saved_register): Do not require
2189 DEPRECATED_FRAME_INIT_SAVED_REGS.
2190 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2191 use frame ID unwind instead.
2192 (deprecated_get_next_frame_hack): New function.
2193
2194 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2195
2196 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2197 (h8300_push_dummy_call): ...this function. Some minor optimization.
2198 (h8300_push_return_address): Remove.
2199 (h8300_gdbarch_init): Remove calls to
2200 set_gdbarch_deprecated_dummy_write_sp,
2201 set_gdbarch_deprecated_push_arguments and
2202 set_gdbarch_deprecated_push_return_address.
2203 Add call to set_gdbarch_push_dummy_call.
2204
2205 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2206
2207 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2208 (E_PSEUDO_EXR_REGNUM): Ditto.
2209 (h8300_is_argument_spill): Check for instructions moving argument
2210 registers into safe registers.
2211 (h8300_skip_prologue): Check for stm instruction to push registers
2212 used for register variables onto stack.
2213 (gdb_print_insn_h8300): Remove.
2214 (h8300_examine_prologue): Add a comment.
2215 (h8300_register_name): Take pseudo registers into account.
2216 (h8300s_register_name): Ditto.
2217 (h8300sx_register_name): Ditto.
2218 (h8300_print_register): Ditto.
2219 (h8300_print_registers_info): Define "nice" printing order.
2220 (h8300_saved_pc_after_call): Take pseudo registers into account.
2221 (h8300_register_type): Ditto. Return type used for remote connection
2222 when requesting real CCR or EXR register, return actual type when
2223 requesting pseudo CCR or EXR.
2224 (h8300_pseudo_register_read): New function.
2225 (h8300_pseudo_register_write): Ditto.
2226 (h8300_dbg_reg_to_regnum): Ditto.
2227 (h8300s_dbg_reg_to_regnum): Ditto.
2228 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2229 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2230 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2231 set_gdbarch_print_insn architecture dependent.
2232 Call set_gdbarch_pseudo_register_read and
2233 set_gdbarch_pseudo_register_write.
2234 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2235
2236 2003-06-16 Andrew Cagney <cagney@redhat.com>
2237
2238 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2239 * gdbarch.h, gdbarch.c: Re-generate.
2240 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2241 * s390-tdep.c (s390_gdbarch_init): Update.
2242 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2243 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2244 * mips-tdep.c (mips_gdbarch_init): Update.
2245 * mcore-tdep.c (mcore_gdbarch_init): Update.
2246 * cris-tdep.c (cris_gdbarch_init): Update.
2247 * infcall.c (call_function_by_hand): Update.
2248 * ia64-tdep.c (ia64_push_arguments): Update comment.
2249 * frame.c (legacy_get_prev_frame): Do not assume
2250 SAVE_DUMMY_FRAME_TOS_P.
2251 * dummy-frame.c (find_dummy_frame): Update comment.
2252
2253 2003-06-16 Andrew Cagney <cagney@redhat.com>
2254
2255 * regcache.c (do_cooked_read): Do not use register_valid_p.
2256
2257 2003-06-15 Theodore A. Roth <troth@openavr.org>
2258
2259 * avr-tdep.c (avr_register_type): Remove a blank line.
2260 (avr_scan_prologue): Correct some comments.
2261
2262 2003-06-15 Theodore A. Roth <troth@openavr.org>
2263
2264 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2265 prologue types.
2266 Properly scan prologues generated by gcc with the -mcall-prologues
2267 option.
2268 Add code to scan -mcall-prologues for mega devices.
2269
2270 2003-06-15 Theodore A. Roth <troth@openavr.org>
2271
2272 * avr-tdep.c (avr_register_byte): Delete function.
2273 (avr_register_raw_size): Delete function.
2274 (avr_register_virtual_size): Delete function.
2275 (avr_register_virtual_type): Delete function.
2276 (avr_register_type): New function.
2277 (avr_address_to_pointer): Remove unused code.
2278 (avr_read_fp): Need to read FP as two separate bytes due to change to
2279 avr_register_type() usage.
2280 (avr_gdbarch_init): Don't set deprecated_register_size.
2281 Don't set deprecated_register_bytes.
2282 Don't set deprecated_register_byte.
2283 Don't set deprecated_register_raw_size.
2284 Don't set deprecated_max_register_raw_size.
2285 Don't set deprecated_register_virtual_size.
2286 Don't set deprecated_max_register_virtual_size.
2287 Don't set deprecated_register_virtual_type.
2288 Set register_type method.
2289
2290 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2291
2292 * Makefile.in (linux-nat.o): Add rule.
2293 * linux-nat.c: New file.
2294 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2295 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2296 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2297 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2298 * config/arm/linux.mh (NATDEPFILES): Likewise.
2299 * config/i386/linux.mh (NATDEPFILES): Likewise.
2300 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2301 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2302 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2303 * config/mips/linux.mh (NATDEPFILES): Likewise.
2304 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2305 * config/s390/s390.mh (NATDEPFILES): Likewise.
2306 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2307
2308 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2309
2310 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2311 replace out-of-date comment.
2312
2313 2003-06-15 Andrew Cagney <cagney@redhat.com>
2314
2315 * rdi-share/host.h (Fail): Change to a varargs function.
2316 * remote-rdi.c (Fail): Update.
2317
2318 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2319
2320 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2321 (i386_convert_register_p, i386_register_to_value,
2322 i386_register_from_value): Handle types longer than 8 bytes.
2323
2324 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2325
2326 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2327 Move floating-point code to new function in i387-tdep.c.
2328 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2329 New functions containing code moved here from i386-tdep.c.
2330 * i387-tdep.h: Add opaque declaration for `struct type'.
2331 (i387_register_to_value, i387_value_to_register): New prototypes.
2332 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2333 (x86_64_init_abi): Set convert_register_p, register_to_value and
2334 value_to_register here.
2335
2336 2003-06-14 Andrew Cagney <cagney@redhat.com>
2337
2338 * mips-tdep.c (mips_register_to_value): Make static.
2339 (mips_value_to_register): Make static.
2340 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2341 * ia64-tdep.c (ia64_register_raw_size): Make static.
2342 (ia64_register_virtual_size): Make static.
2343 (ia64_register_byte): Make static.
2344 * i387-tdep.c: Include "i387-tdep.h".
2345 (print_387_control_word): Delete function.
2346 (print_387_status_word): Delete function.
2347 (print_387_status_bits): Delete function.
2348 (print_387_control_bits): Delete function.
2349 * Makefile.in (i387-tdep.o): Update dependencies.
2350 * rdi-share/host.h (Fail): Declare.
2351 * remote-rdi.c (Fail): Update to match declaration.
2352
2353 2003-06-14 Andrew Cagney <cagney@redhat.com>
2354
2355 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2356 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2357 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2358 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2359 * README: Delete reference to remote-array.
2360 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2361 (remote-array.o): Delete target.
2362 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2363 * remote-array.c: Delete file.
2364
2365 2003-06-14 Andrew Cagney <cagney@redhat.com>
2366 Mark Kettenis <kettenis@gnu.org>
2367
2368 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2369 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2370 parameter with "frame".
2371 * gdbarch.h, gdbarch.c: Re-generate.
2372 * frame.h (put_frame_register): Declare.
2373 * frame.c (put_frame_register): New function.
2374 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2375 (legacy_register_to_value): Rewrite, use "frame" to get the
2376 register value.
2377 (legacy_value_to_register): Rewrite, use "frame" to find the
2378 register's location before storing.
2379 * arch-utils.h (legacy_convert_register_p): Update.
2380 (legacy_register_to_value, legacy_value_to_register): Update.
2381 * findvar.c (value_from_register): Rewrite, eliminate use of
2382 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2383 "frame" to REGISTER_TO_VALUE.
2384 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2385 lval_reg_frame_relative + lval_register branch of the switch. Do
2386 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2387 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2388 I386_EDI_REGNUM): New defines.
2389 (i386_next_regnum, i386_convert_register_p,
2390 i386_register_to_value, i386_value_to_register): New functions.
2391 (i386_register_convertible, i386_register_convert_to_virtual,
2392 i386_convert_to_raw): Remove functions.
2393 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2394 value_to_register instead of register_convertible,
2395 register_convert_to_virtual and register_convert_to_raw.
2396 * mips-tdep.c (mips_convert_register_p): New function.
2397 (mips_value_to_register): Replace mips_register_convert_from_type.
2398 (mips_register_to_value): Replace mips_register_convert_to_type.
2399 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2400 register_to_value.
2401 * alpha-tdep.c (alpha_convert_register_p): Update.
2402 (alpha_value_to_register): Update, store the register.
2403 (alpha_register_to_value): Update, fetch the register.
2404
2405 2003-06-14 Theodore A. Roth <troth@openavr.org>
2406
2407 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2408 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2409 Don't set deprecated_call_dummy_words.
2410 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2411 Don't set remote_translate_xfer_address.
2412 (avr_io_reg_read_command): Remove commented out debug printf.
2413 Wrap a long line.
2414
2415 2003-06-14 Theodore A. Roth <troth@openavr.org>
2416
2417 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2418 causes gdb to seg fault.
2419
2420 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
2421
2422 * sparc-nat.c (fetch_inferior_registers): Correct
2423 a reference to "registers".
2424
2425 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2426
2427 * Makefile.in (exc_request_U_h): Define
2428 (exc_request_S_h): Likewise.
2429 (msg_reply_S_h): Likewise.
2430 (msg_U_h): Likewise.
2431 (notify_S_h): Likewise.
2432 (process_reply_S_h): Likewise.
2433 (gnu-nat.o): Depend on gdb_obstack_h
2434 * gnu-nat.c: Include "gdb_obstack.h".
2435
2436 2003-06-13 Andrew Cagney <cagney@redhat.com>
2437
2438 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2439 * gdbarch.h, gdbarch.c: Re-generate.
2440
2441 2003-06-13 Andrew Cagney <cagney@redhat.com>
2442
2443 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2444 when deprecated REGISTER macros can be deleted.
2445 * gdbarch.h, gdbarch.c: Re-generate.
2446
2447 2003-06-13 Jim Blandy <jimb@redhat.com>
2448
2449 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2450 Linux entry point symbols for _dl_debug_state, too.
2451
2452 2003-06-13 Andrew Cagney <cagney@redhat.com>
2453
2454 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2455 available, do not use the FP register, and always save the TOS.
2456 * dummy-frame.c (dummy_frame_this_id): Do not assert
2457 SAVE_DUMMY_FRAME_TOS.
2458 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2459 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2460 (i386_push_dummy_call): Add 8 to the returned SP.
2461 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2462 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2463 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2464 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2465 (x86_64_push_dummy_call): Return "sp + 16".
2466 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2467 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2468 save_dummy_frame_tos.
2469
2470 2003-06-13 Jim Blandy <jimb@redhat.com>
2471
2472 * frv-tdep.c (frv_use_struct_convention): Delete static
2473 declaration for function deleted in my change of 2003-06-12.
2474
2475 2003-06-13 Theodore A. Roth <troth@openavr.org>
2476
2477 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2478 (avr_pointer_to_address): Shift code addrs left 1 bit.
2479 (avr_convert_from_func_ptr_addr): Delete function since operation is
2480 better handled by avr_address_to_pointer and avr_pointer_to_address.
2481 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2482
2483 2003-06-13 Mark Kettenis <kettenis@gnu.org>
2484
2485 From Kelley Cook <kelleycook@wideopenwest.com>:
2486 * configure.host: Accept i[34567]86 variants.
2487 * configure.tgt: Likewise.
2488 * nlm/configure.in: Likewise.
2489 * nlm/configure: Regenerated.
2490
2491 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2492
2493 * arm-tdep.c (solib-svr4.h): Dont' include it.
2494 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2495 * arm-linux-tdep.c: ... here. Make static.
2496 (arm_linux_init_abi): Register it.
2497 (solib-svr4.h): Include it.
2498 * Makefile.in: Update dependencies.
2499 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2500 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2501
2502 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2503
2504 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2505 indicate registers used for return values.
2506 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2507 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2508 members.
2509 (h8300_init_extra_frame_info): Ditto.
2510 (h8300_frame_locals_address): Removed.
2511 (h8300_frame_args_address): Removed.
2512 (h8300_extract_return_value): Use new regcache structure. Only care
2513 for 16 bit CPUs.
2514 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2515 (h8300_store_return_value): Use new regcache structure. Only care
2516 for 16 bit CPUs.
2517 (h8300h_store_return_value): Same function for 32 bit CPUs.
2518 (h8300_store_struct_return): Removed.
2519 (h8300_extract_struct_value_address): Use new regcache structure.
2520 (h8300h_extract_struct_value_address): Removed.
2521 (h8300_push_dummy_code): New function.
2522 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2523 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2524 set_gdbarch_store_return_value architecture dependent.
2525 Call set_gdbarch_push_dummy_code and
2526 set_gdbarch_extract_struct_value_address.
2527 Remove calls to set_gdbarch_frame_args_address,
2528 set_gdbarch_frame_locals_address,
2529 set_gdbarch_deprecated_store_struct_return,
2530 set_gdbarch_deprecated_extract_return_value,
2531 set_gdbarch_deprecated_extract_struct_value_address,
2532 set_gdbarch_deprecated_call_dummy_words and
2533 set_gdbarch_deprecated_sizeof_call_dummy_words.
2534
2535 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2536
2537 * h8300-tdep.c (h8300_register_byte): Remove.
2538 (h8300h_register_byte): Remove.
2539 (h8300_register_virtual_type): Remove. Substitute by...
2540 (h8300_register_type): New function.
2541 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2542 (h8300h_extract_struct_value_address): Ditto.
2543 (h8300_gdbarch_init): Drop calls to
2544 set_gdbarch_deprecated_register_byte and
2545 set_gdbarch_deprecated_register_virtual_type.
2546 Add call to set_gdbarch_register_type.
2547
2548 2003-06-13 Andrew Cagney <cagney@redhat.com>
2549
2550 * gdbarch.sh: Update comments on registers.
2551 (deprecated_register_byte): Rename register_byte.
2552 (deprecated_register_raw_size): Rename register_raw_size.
2553 (deprecated_register_virtual_size): Rename register_virtual_size.
2554 (deprecated_register_virtual_type): Rename register_virtual_type.
2555 * gdbarch.h, gdbarch.c: Re-generate.
2556 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2557 * vax-tdep.c (vax_gdbarch_init): Update.
2558 * v850-tdep.c (v850_gdbarch_init): Update.
2559 * sparc-tdep.c (sparc_gdbarch_init): Update.
2560 * sh-tdep.c (sh_gdbarch_init): Update.
2561 * s390-tdep.c (s390_gdbarch_init): Update.
2562 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2563 * ns32k-tdep.c: Update.
2564 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2565 * mips-tdep.c (mips_gdbarch_init): Update.
2566 * mcore-tdep.c (mcore_gdbarch_init): Update.
2567 * m68k-tdep.c (m68k_gdbarch_init): Update.
2568 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2569 * ia64-tdep.c (ia64_gdbarch_init): Update.
2570 * hppa-tdep.c (hppa_gdbarch_init): Update.
2571 * h8300-tdep.c (h8300_gdbarch_init): Update.
2572 * frv-tdep.c (frv_gdbarch_init): Update.
2573 * cris-tdep.c (cris_gdbarch_init): Update.
2574 * avr-tdep.c (avr_gdbarch_init): Update.
2575 * alpha-tdep.c (alpha_gdbarch_init): Update.
2576 * arm-tdep.c (arm_gdbarch_init): Update.
2577
2578 2003-06-13 Andrew Cagney <cagney@redhat.com>
2579
2580 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2581 mips_o32_use_struct_convention with always_use_struct_convention.
2582
2583 2003-06-12 David Carlton <carlton@kealia.com>
2584
2585 * cp-namespace.c (cp_set_block_scope): Comment out
2586 processing_has_namespace_info branch.
2587
2588 2003-06-12 Jim Blandy <jimb@redhat.com>
2589
2590 Recognize and skip 64-bit PowerPC Linux linkage functions.
2591 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2592 insn_pattern, insns_match_pattern, d_field, ds_field): New
2593 functions, macros, and types for working with PPC instructions.
2594 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2595 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2596 ppc64_skip_trampoline_code): New functions, variables, and macros
2597 for recognizing and skipping linkage functions.
2598 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2599 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2600
2601 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2602 register offsets for both the 32- and 64-bit interfaces.
2603
2604 Actually finish the job started by my change of 2003-05-29.
2605 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2606 other #definition of this.
2607 (ppc_linux_skip_trampoline_code): Remove declaration.
2608 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2609 static.
2610 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2611 method for GDBARCH.
2612
2613 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2614 'long' on ppc64-*-linux*.
2615
2616 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2617 isn't #defined, assume the register doesn't exist: act as if
2618 tdep->ppc_mq_regnum were -1.
2619
2620 * configure.host, configure.tgt: Add entries for
2621 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2622 powerpc/linux.mt.
2623 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2624 New files.
2625
2626 * arch-utils.c (always_use_struct_convention): New function.
2627 * arch-utils.h (always_use_struct_convention): New prototype.
2628 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2629 (alpha_gdbarch_init): Register always_use_struct_convention,
2630 instead of alpha_use_struct_convention.
2631 * cris-tdep.c (cris_use_struct_convention): Delete.
2632 (cris_gdbarch_init): Register always_use_struct_convention,
2633 instead of cris_use_struct_convention.
2634 * frv-tdep.c (frv_use_struct_convention): Delete.
2635 (frv_gdbarch_init): Register always_use_struct_convention,
2636 instead of frv_use_struct_convention.
2637 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2638 (h8300_gdbarch_init): Register always_use_struct_convention,
2639 instead of h8300_use_struct_convention.
2640 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
2641 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2642 instead of mips_o32_use_struct_convention.
2643
2644 2003-06-12 Andrew Cagney <cagney@redhat.com>
2645
2646 * wince.c: Include "mips-tdep.h".
2647 * mips-tdep.h (mips_next_pc): Declare.
2648 * mcore-tdep.c: Make more local functions static.
2649 * Makefile.in (wince.o): Update dependencies.
2650
2651 2003-06-12 David Carlton <carlton@kealia.com>
2652
2653 * symtab.c (lookup_symbol_aux_minsyms): Replace
2654 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2655 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2656 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2657 SYMBOL_NATURAL_NAME.
2658
2659 2003-06-12 Andreas Schwab <schwab@suse.de>
2660
2661 * Makefile.in (tuiDisassem.o): Update dependencies.
2662
2663 2003-06-12 David Carlton <carlton@bactrian.org>
2664
2665 * symtab.h: Delete declaration of make_symbol_overload_list.
2666 Add declaration of lookup_partial_symbol.
2667 * symtab.c (remove_params): Move to cp-support.c.
2668 (overload_list_add_symbol, make_symbol_overload_list)
2669 (sym_return_val_size, sym_return_val_index): Ditto.
2670 (lookup_partial_symbol): Make extern.
2671 * cp-support.h: Add declaration of make_symbol_overload_list.
2672 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2673 symtab.h, and block.h.
2674 (remove_params): Move here from symtab.c.
2675 (overload_list_add_symbol, make_symbol_overload_list)
2676 (sym_return_val_size, sym_return_val_index): Ditto.
2677 * valops.c: Include cp-support.h.
2678 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2679 frame_h, and block_h.
2680 (valops.o): Depend on cp_support_h.
2681
2682 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
2683
2684 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2685 substitute by NUM_REGS throughout.
2686 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2687 (h8300s_register_name): New function for H8S registers.
2688 (h8300sx_register_name): Ditto for H8SX registers.
2689 (h8300_print_register): Revise register printing, avoid depending
2690 on 32 bit long.
2691 (h8300_register_byte): Only care for H8/300 registers.
2692 (h8300h_register_byte): New function for any other architecture.
2693 (h8300_register_raw_size): Remove.
2694 (h8300_register_virtual_type): Revise to return actually useful
2695 type.
2696 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2697 (h8300h_extract_struct_value_address): New function for any other
2698 architecture.
2699 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2700 set_gdbarch_register_name, set_gdbarch_register_byte,
2701 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2702 Remove calls to set_gdbarch_deprecated_register_size,
2703 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2704 set_gdbarch_deprecated_max_register_raw_size,
2705 set_gdbarch_register_virtual_size and
2706 set_gdbarch_deprecated_max_register_virtual_size entirely.
2707 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2708 set_gdbarch_long_double_bit.
2709
2710 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2711
2712 * doublest.c (convert_doublest_to_floatformat): When dealing
2713 with the implied integer bit, only alter mant_bits if we are
2714 processing a full 32 bits of mantissa.
2715
2716 2003-06-11 David Carlton <carlton@bactrian.org>
2717
2718 * dictionary.h: New.
2719 * dictionary.c: New.
2720 * block.h: Add opaque declaration for struct dictionary.
2721 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2722 'sym' members.
2723 (BLOCK_DICT): New macro.
2724 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2725 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2726 BLOCK_SHOULD_SORT.
2727 (ALL_BLOCK_SYMBOLS): Update definition.
2728 * Makefile.in (SFILES): Add dictionary.c.
2729 (dictionary_h): New.
2730 (COMMON_OBS): Add dictionary.o.
2731 (dictionary.o): New.
2732 (ada-lang.o): Depend on dictionary_h.
2733 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
2734 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
2735 (mi-cmd-stack.o): Ditto.
2736 (gdbtk-cmds.o): Update dependencies.
2737 (gdbtk-stack.o): Ditto.
2738 * ada-lang.c: Include dictionary.h.
2739 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
2740 (fill_in_ada_prototype, debug_print_block): Ditto.
2741 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
2742 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
2743 'is_sorted'.
2744 * mdebugread.c: Include dictionary.h.
2745 (struct parse_stack): Delete 'maxsyms' member.
2746 (parse_symbol): Update calls to new_block. Delete calls to
2747 shrink_block. Use dictionary methods.
2748 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
2749 Update calls to new_symtab. Don't maintain maxsyms data.
2750 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
2751 (add_symbol): Just call dict_add_symbol.
2752 (new_symtab): Delete 'maxsyms' argument.
2753 (new_symtab): Update calls to new_block.
2754 (new_block): Delete 'maxsyms' argument; add 'function' argument.
2755 (shrink_block): Delete function.
2756 (fixup_sigtramp): Update call to new_block. Add symbol via
2757 dict_add_symbol.
2758 * jv-lang.c: Include dictionary.h.
2759 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
2760 appropriately. Set class_symtab->free_func. Make sure the
2761 blockvector is big enough to hold two blocks.
2762 (add_class_symtab_symbol): Use dictionary methods.
2763 (free_class_block): New function.
2764 (type_from_class): Replace explicit iteration by
2765 ALL_BLOCK_SYMBOLS.
2766 * symtab.h (struct symtab): Replace 'free_ptr' method by
2767 'free_func'.
2768 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
2769 sort_symtab_syms.
2770 * dwarfread.c (psymtab_to_symtab_1): Delete call to
2771 sort_symtab_syms.
2772 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
2773 Include dictionary.h.
2774 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
2775 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
2776 sort_symtab_syms.
2777 * objfiles.c: Include dictionary.h.
2778 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
2779 * buildsym.c: Include dictionary.h.
2780 (finish_block): Use dictionary methods.
2781 (end_symtab): Set free_func to NULL, not free_ptr.
2782 * tracepoint.c: Include dictionary.h.
2783 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
2784 (scope_info): Ditto.
2785 * stack.c: Include dictionary.h.
2786 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
2787 (print_block_frame_labels, print_frame_arg_vars)
2788 (print_frame_args): Ditto.
2789 * symmisc.c (free_symtab_block): Use dictionary methods.
2790 (dump_symtab): Ditto.
2791 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
2792 Include dictionary.h.
2793 * symfile.h: Delete declarations of sort_block_syms,
2794 sort_symtab_syms.
2795 * symfile.c (sort_block_syms): Delete.
2796 (sort_symtab_syms): Delete.
2797 * symtab.c: Include dictionary.h.
2798 (lookup_block_symbol): Use dictionary iterators.
2799 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
2800 (search_symbols, make_symbol_completion_list): Ditto.
2801 (make_symbol_overload_list): Ditto.
2802 * valops.c (value_of_local): Use dict_empty.
2803 Include dictionary.h.
2804
2805 2003-06-11 J. Brobecker <brobecker@gnat.com>
2806
2807 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
2808
2809 2003-06-11 David Carlton <carlton@bactrian.org>
2810
2811 * block.h (BLOCK_SHOULD_SORT): Delete.
2812 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
2813 blocks.
2814 * ada-lang.c (ada_add_block_symbols): Ditto.
2815 * symfile.c (sort_block_syms): Delete.
2816 (sort_symtab_syms): Ditto.
2817 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
2818 declarations.
2819 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
2820 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
2821 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
2822 * dwarfread.c (psymtab_to_symtab_1): Ditto.
2823 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
2824 * mdebugread.c (psymtab_to_symtab_1): Ditto.
2825 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2826
2827 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2828
2829 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
2830 bits to 128.
2831
2832 2003-06-11 Andrew Cagney <cagney@redhat.com>
2833
2834 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2835 REGISTER_CONVERTIBLE.
2836 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
2837 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
2838 * gdbarch.h, gdbarch.c: Re-generate.
2839 * arch-utils.h (deprecated_register_convertible_not): Rename
2840 generic_register_convertible_not.
2841 * arch-utils.c (deprecated_register_convertible_not): Rename
2842 generic_register_convertible.
2843 (legacy_convert_register_p, legacy_register_to_value): Update.
2844 * sh-tdep.c (sh64_push_arguments): Update.
2845 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
2846 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
2847 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
2848 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
2849 * arch-utils.c (legacy_value_to_register): Update.
2850 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2851 (rs6000_register_convert_to_raw): Make parameter "from" const.
2852 * mips-tdep.c (mips_gdbarch_init): Update.
2853 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
2854 * infcmd.c (default_print_registers_info): Update.
2855 * ia64-tdep.c (ia64_gdbarch_init): Update.
2856 (ia64_register_convert_to_raw): Make parameter "from" const.
2857 * i386-tdep.c (i386_gdbarch_init): Update.
2858 (i386_register_convert_to_raw): Update.
2859
2860 2003-06-11 Andrew Cagney <cagney@redhat.com>
2861
2862 * remote-fileio.c: Include "remote-fileio.h".
2863 * Makefile.in (remote-fileio.o): Update dependencies.
2864 (remote_fileio_h): Fix typo.
2865
2866 2003-06-11 Andrew Cagney <cagney@redhat.com>
2867
2868 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
2869 (xstormy16_save_dummy_frame_tos): Make static.
2870 (_initialize_xstormy16_tdep): Add declaration.
2871 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
2872 * v850-tdep.c: Make local functions static.
2873 (_initialize_v850_tdep): Add declaration.
2874 * sparc-tdep.c: Make local functions static.
2875 (_initialize_sparc_tdep): Add declaration.
2876 * sh-tdep.c: Make local functions static.
2877 (_initialize_sh_tdep): Add declaration.
2878 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
2879 * s390-tdep.c: Make local functions static.
2880 (_initialize_s390_tdep): Add declaration.
2881 * dbxread.c (find_stab_function_addr): Make static.
2882 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
2883 * ocd.c (_initialize_remote_ocd): Add declaration.
2884 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
2885 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
2886 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
2887 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
2888 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
2889 * remote-array.c (_initialize_array): Add declaration.
2890 (_initialize_remote_monitors): Add declaration.
2891 * remote-mips.c: Make local functions static.
2892 (_initialize_remote_mips): Add declaration.
2893 * mcore-tdep.c: Make all local functions static.
2894 (_initialize_mcore_tdep): Add declaration.
2895 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
2896 * abug-rom.c (_initialize_abug_rom): Add declaration.
2897 * rom68k-rom.c (_initialize_rom68k): Add declaration.
2898 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
2899 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
2900 * remote-est.c (_initialize_est): Add declaration.
2901 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
2902 (m68hc11_call_dummy_address): Make static.
2903 * ia64-tdep.c: Make local functions static.
2904 (_initialize_ia64_tdep): Add declaration.
2905 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
2906 * monitor.c (monitor_wait_filter): Make static.
2907 (_initialize_remote_monitors): Add declaration.
2908 * remote-hms.c (_initialize_remote_hms): Add declaration.
2909 * remote-e7000.c (fetch_regs_from_dump): Make static.
2910 (expect_n): Make static.
2911 (_initialize_remote_e7000): Add declaration.
2912 * ser-e7kpc.c: Always include "defs.h".
2913 (_initialize_ser_e7000pc): Add declaration.
2914 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
2915 * cris-tdep.c: Make all but one function static.
2916 (_initialize_cris_tdep): Add declaration.
2917 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
2918 * solib.c (update_solib_list): Make static.
2919 (_initialize_solib): Add declaration.
2920 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
2921 (_initialize_avr_tdep): Add declaration.
2922 * remote-rdi.c (voiddummy): Make static.
2923 (_initialize_remote_rdi): Add declaration.
2924 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
2925 * remote-rdp.c (send_rdp): Make static.
2926 (_initialize_remote_rdp): Add declaration.
2927 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
2928
2929 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
2930
2931 * remote-fileio.c: Make ari happy.
2932
2933 2003-06-10 J. Brobecker <brobecker@gnat.com>
2934
2935 * rs6000-nat.c (child_xfer_memory): Compute the right address when
2936 fetching the trailing bytes of the buffer we are about to write.
2937
2938 2003-06-10 Andrew Cagney <cagney@redhat.com>
2939
2940 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
2941 * Makefile.in (remote-fileio.o): Update dependencies.
2942 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
2943 include <setjmp.h>, or <sys/types.h> conditional on USG.
2944 (remote_fio_jmp_buf): Delete global variable.
2945
2946 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
2947 Martin M. Hunt <hunt@redhat.com>
2948
2949 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
2950 (SFILES): Add remote-fileio.c.
2951 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
2952 dependencies for building remote.o.
2953 * remote-fileio.c: New file implementing the remote File-I/O protocol.
2954 * remote-fileio.h: New header file defining remote File-I/O interface.
2955 * remote.c (remote_write_bytes, remote_read_bytes): Remove
2956 static storage class.
2957 (remote_wait, remote_async_wait): Call remote_fileio_request() on
2958 'F' packet.
2959 (_initialize_remote): Call initialize_remote_fileio().
2960 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
2961 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2962 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2963 (captured_main): Initialize new ui_files.
2964 * ui-file.c: Add read and fgets input functions.
2965 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
2966 (null_file_read): New function.
2967 (ui_file_read): New function.
2968 (set_ui_file_read): New function.
2969 (stdio_file_read): New function.
2970 * ui-file.h: New type ui_file_read_ftype.
2971 (set_ui_file_read): Declare.
2972 (ui_file_read): Declare.
2973
2974 2003-06-09 Andrew Cagney <cagney@redhat.com>
2975
2976 * frame.h (deprecated_unwind_get_saved_register): Rename
2977 generic_unwind_get_saved_register, update comments.
2978 * mips-tdep.c (mips_get_saved_register): Update.
2979 * frame.c (deprecated_unwind_get_saved_register): Update.
2980
2981 2003-06-09 Andrew Cagney <cagney@redhat.com>
2982
2983 * vax-tdep.c (vax_frame_locals_address): Delete function.
2984 (vax_gdbarch_init): Do not set frame_locals_address.
2985 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
2986 (m68hc11_gdbarch_init): Do not set frame_locals_address.
2987 * s390-tdep.c (s390_frame_args_address): Delete function.
2988 (s390_gdbarch_init): Do not set frame_args_address or
2989 frame_locals_address.
2990 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
2991 (ns32k_gdbarch_init): Do not set frame_locals_address.
2992 * hppa-tdep.c (hppa_frame_args_address): Delete function.
2993 (hppa_frame_locals_address): Delete function.
2994 (hppa_gdbarch_init): Do not set frame_args_address, or
2995 frame_locals_address.
2996 * arm-tdep.c (arm_frame_args_address): Delete.
2997 (arm_frame_locals_address): Delete.
2998 (arm_gdbarch_init): Do not set frame_args_address, or
2999 frame_locals_address.
3000
3001 2003-06-09 Andrew Cagney <cagney@redhat.com>
3002
3003 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3004 * gdbarch.h, gdbarch.c: Re-generate.
3005 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3006 * arch-utils.c (frame_num_args_unknown): Delete function.
3007 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3008 (frame_info): Use FRAME_NUM_ARGS_P.
3009 * arm-tdep.c (arm_frame_num_args): Delete function.
3010 (arm_gdbarch_init): Do not set frame_num_args.
3011 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3012 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3013 (hppa_gdbarch_init): Do not set frame_num_args.
3014 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3015 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3016 frame_num_args to default frame_num_args_unknown.
3017 * v850-tdep.c (v850_gdbarch_init): Ditto.
3018 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3019 * sh-tdep.c (sh_gdbarch_init): Ditto.
3020 * s390-tdep.c (s390_gdbarch_init): Ditto.
3021 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3022 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3023 * mips-tdep.c (mips_gdbarch_init): Ditto.
3024 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3025 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3026 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3027 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3028 * i386-tdep.c (i386_gdbarch_init): Ditto.
3029 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3030 * frv-tdep.c (frv_gdbarch_init): Ditto.
3031 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3032 * cris-tdep.c (cris_gdbarch_init): Ditto.
3033 * avr-tdep.c (avr_gdbarch_init): Ditto.
3034 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3035
3036 2003-06-09 Andrew Cagney <cagney@redhat.com>
3037
3038 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3039 (print_frame_args): Moved to "stack.c".
3040 * stack.c: Include "gdb_assert.h".
3041 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3042 (print_frame_args): Moved from "printcmd.c".
3043 * frame.h (print_frame_args): Delete declaration.
3044 * Makefile.in (stack.o): Update dependencies.
3045
3046 2003-06-08 Andrew Cagney <cagney@redhat.com>
3047
3048 * frame.c (get_prev_frame): Remove reference to
3049 frame_args_address_correct in comments.
3050 * frame-base.c (default_frame_args_address): Delete code
3051 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3052 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3053 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3054 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3055 (vax_frame_args_address_correct): Delete declaration.
3056
3057 2003-06-08 Andrew Cagney <cagney@redhat.com>
3058
3059 * gdbarch.sh (UNWIND_SP): Add.
3060 * gdbarch.h, gdbarch.c: Re-generate.
3061 * frame.c (frame_sp_unwind): New function.
3062 (get_frame_sp): New function.
3063 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3064 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3065 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3066 value.
3067 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3068 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3069
3070 2003-06-08 Andrew Cagney <cagney@redhat.com>
3071
3072 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3073 REMOTE_BREAKPOINT.
3074 * remote.c: Update.
3075 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3076 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3077 * config/m68k/tm-sun3.h: Update.
3078 * config/m68k/tm-m68klynx.h: Update.
3079 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3080
3081 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3082 trad_frame". Update comments.
3083 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3084 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3085 (trad_frame_register_value, trad_frame_prev_register): Update.
3086
3087 2003-06-08 Andrew Cagney <cagney@redhat.com>
3088
3089 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3090 from GCC's acinclude.m4.
3091 * configure.in: Check for getopt's delcaration.
3092 * aclocal.m4, config.in, configure: Re-generate.
3093 * main.c (error_init): Delete declaration.
3094 * defs.h (error_init): Declare.
3095 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3096 (rs6000_convert_from_func_ptr_addr): Make static.
3097 (_initialize_rs6000_tdep): Add declaration.
3098 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3099 (show_commands, set_verbose, show_history): Delete declaration.
3100 * top.h (set_verbose): Add declaration.
3101 (show_history, set_history, show_commands): Add declaration.
3102 (do_restore_instream_cleanup): Add declaration.
3103 * objc-lang.c (specialcmp): Make static.
3104 (print_object_command): Make static.
3105 (find_objc_msgsend): Make static.
3106 (find_objc_msgcall_submethod_helper): Make static.
3107 (find_objc_msgcall_submethod): Make static.
3108 (_initialize_objc_language): Add declaration.
3109 (find_implementation_from_class): Make static.
3110 (find_implementation): Make static.
3111 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3112 * objc-lang.h (lookup_struct_typedef): Add declaration.
3113 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3114 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3115 (do_restore_user_call_depth): Make static.
3116 (do_restore_instream_cleanup): Delete declaration.
3117 (dont_repeat): Delete declaration.
3118 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3119 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3120 * reggroups.c (_initialize_reggroup): Add declaration.
3121 * cp-support.c (_initialize_cp_support): Add declaration.
3122 * cp-abi.c (_initialize_cp_abi): Add declaration.
3123 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3124 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3125 (_initialize_gnu_v3_abi): Add declaration.
3126 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3127 (_initialize_gnu_v2_abi): Add declaration.
3128 * frame-base.c (_initialize_frame_base): Add declaration.
3129 * doublest.c (floatformat_from_length): Make static.
3130 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3131 * frame.c (create_sentinel_frame): Make static.
3132 (_initialize_frame): Add declaration.
3133 * top.c (do_catch_errors): Make static.
3134 (gdb_rl_operate_and_get_next_completion): Make static.
3135 * typeprint.c: Include "typeprint.h".
3136 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3137 (sentinel_frame_this_id): Make static.
3138 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3139 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3140 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3141 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3142 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3143 * maint.c (maintenance_print_architecture): Make static.
3144 * signals/signals.c (_initialize_signals): Add declaration.
3145 * std-regs.c (_initialize_frame_reg): Add declaration.
3146 * jv-exp.y (push_variable): ISO C definition.
3147 (push_qualified_expression_name): Ditto.
3148 * memattr.c (_initialize_mem): Add declaration.
3149 * remote.c (remote_check_watch_resources): Make static.
3150 (remote_stopped_by_watchpoint): Make static.
3151 (remote_stopped_data_address): Make static.
3152 * d10v-tdep.c (nr_dmap_regs): Make static.
3153 (a0_regnum): Make static.
3154 (d10v_frame_unwind_cache): Make static.
3155 (d10v_frame_p): Make static.
3156 * osabi.c (show_osabi): Make static.
3157 (_initialize_gdb_osabi): Add extern declaration.
3158 * gdbtypes.c (make_qualified_type): Make static.
3159 (safe_parse_type): Make static.
3160 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3161 * macrotab.c (macro_bcache_free): Make static.
3162 * interps.c (interp_set_quiet): Make static.
3163 (interpreter_exec_cmd): Make static.
3164 * stack.h (select_frame_command): New file.
3165 * stack.c: Include "stack.h".
3166 (select_frame_command_wrapper): Delete function.
3167 (select_frame_command): Make global.
3168 * infcall.c: Include "infcall.h".
3169 * linespec.c: Include "linespec.h".
3170 * symfile.c (sections_overlap): Make static.
3171 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3172 * charset.c (_initialize_charset): Add missing prototype.
3173 * regcache.c (init_legacy_regcache_descr): Make static.
3174 (do_regcache_xfree): Make static.
3175 (regcache_xfer_part): Make static.
3176 (_initialize_regcache): Add missing prototype.
3177 * breakpoint.c (parse_breakpoint_sals): Make static.
3178 (breakpoint_sals_to_pc): Make static.
3179 * interps.h (clear_interpreter_hooks): ISO C declaration.
3180 * Makefile.in (stack_h): Define.
3181 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3182 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3183
3184 2003-06-08 Andrew Cagney <cagney@redhat.com>
3185
3186 * Makefile.in (d10v-tdep.o): Update dependencies.
3187 (SFILES): Add trad-frame.c.
3188 (trad_frame_h): Define.
3189 (COMMON_OBS): Add trad-frame.o.
3190 (trad-frame.o): Specify dependencies.
3191 * d10v-tdep.c: Include "trad-frame.h".
3192 (saved_regs_unwinder): Delete function.
3193 (d10v_frame_prev_register): Use trad_frame_prev_register.
3194 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3195 trad_frame", delete "regs" and "prev_sp".
3196 (prologue_find_regs): Use trad-frame.
3197 * trad-frame.h, trad-frame.c: New files.
3198
3199 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3200
3201 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3202
3203 2003-06-07 Adam Fedor <fedor@gnu.org>
3204
3205 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3206 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3207 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3208 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3209 resolve_msgsend_super, resolve_msgsend_super_stret):
3210 Use it.
3211
3212 2003-06-07 Andrew Cagney <cagney@redhat.com>
3213
3214 * symfile.h: Re-indent, clean up comments.
3215
3216 2003-06-07 Andrew Cagney <cagney@redhat.com>
3217
3218 * inferior.h (deprecated_write_sp): Replace
3219 generic_target_write_sp.
3220 * regcache.c (deprecated_write_sp): Replace
3221 generic_target_write_sp.
3222 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3223 * vax-tdep.c (vax_gdbarch_init): Update.
3224 * v850-tdep.c (v850_gdbarch_init): Update.
3225 * sparc-tdep.c (sparc_gdbarch_init): Update.
3226 * sh-tdep.c (sh_gdbarch_init): Update.
3227 * s390-tdep.c (s390_gdbarch_init): Update.
3228 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3229 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3230 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3231 * mcore-tdep.c (mcore_gdbarch_init): Update.
3232 * m68k-tdep.c (m68k_gdbarch_init): Update.
3233 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3234 * ia64-tdep.c (ia64_gdbarch_init): Update.
3235 * h8300-tdep.c (h8300_gdbarch_init): Update.
3236 * frv-tdep.c (frv_gdbarch_init): Update.
3237 * cris-tdep.c (cris_gdbarch_init): Update.
3238 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3239
3240 2003-06-07 Andrew Cagney <cagney@redhat.com>
3241
3242 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3243 Assert that PC_REGNUM is valid.
3244 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3245
3246 2003-06-07 Andrew Cagney <cagney@redhat.com>
3247
3248 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3249 * gdbarch.h, gdbarch.c: Regenerate.
3250 * mn10300-tdep.c: Include "gdb_assert.h".
3251 (mn10300_read_fp): New function.
3252 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3253 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3254 * ia64-tdep.c: Include "gdb_assert.h".
3255 (ia64_read_fp): New function.
3256 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3257 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3258 * regcache.c (generic_target_read_sp): Delete function.
3259 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3260 * inferior.h (generic_target_read_sp): Delete declaration.
3261 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3262 generic_target_read_sp.
3263 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3264 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3265 * sh-tdep.c (sh_gdbarch_init): Ditto.
3266 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3267 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3268
3269 2003-06-07 Andrew Cagney <cagney@redhat.com>
3270
3271 * gdbarch.sh: Comment each field of startup_gdbarch.
3272 * gdbarch.h, gdbarch.c: Re-generate.
3273
3274 2003-06-07 Andrew Cagney <cagney@redhat.com>
3275
3276 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3277 * gdbarch.h, gdbarch.c: Re-generate.
3278 * regcache.c: Update comments on read_pc et.al.
3279 (generic_target_read_pc): Delete function.
3280 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3281 * inferior.h (generic_target_read_pc): Delete declaration.
3282 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3283 generic_target_read_pc.
3284 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3285 * sh-tdep.c (sh_gdbarch_init): Ditto.
3286 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3287 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3288
3289 2003-06-07 Andrew Cagney <cagney@redhat.com>
3290
3291 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3292 "index" with "special_local_sect". Use strcmp instead of STREQ.
3293 Append period to coments.
3294
3295 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3296
3297 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3298 (elfstab_offset_sections): Likewise.
3299 * gdb-stabs.h (stab_section_info): Likewise.
3300 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3301 * objfiles.c (objfile_relocate): Likewise.
3302 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3303 * remote.c (get_offsets): Likewise.
3304 (remote_cisco_objfile_relocate): Likewise.
3305 * somread.c (som_symfile_offsets): Likewise.
3306 * symfile.c (alloc_section_addr_info): New function.
3307 (build_section_addr_info_from_section_tab): Use it.
3308 (free_section_addr_info): Adjust.
3309 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3310 (syms_from_objfile): Allocate local_addr dynamically.
3311 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3312 dynamically.
3313 (add_symbol_file_command): Allocate sect_opts dynamically.
3314 (reread_symbols): Avoid use of SECT_OFF_MAX.
3315 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3316 (alloc_section_addr_info): Declare it.
3317 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3318 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3319 dynamically.
3320 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3321
3322 2003-06-06 Andrew Cagney <cagney@redhat.com>
3323
3324 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3325 (d10v_frame_unwind_cache): Do not set "return_pc".
3326
3327 2003-06-06 Michael Snyder <msnyder@redhat.com>
3328
3329 * h8300-tdep.c: Make tidy (long lines).
3330
3331 2003-06-06 Michal Ludvig <mludvig@suse.cz>
3332
3333 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3334 to regcache_collect().
3335
3336 2003-06-05 J. Brobecker <brobecker@gnat.com>
3337
3338 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3339 pc_in_sigtramp multiarch method.
3340 (hppa_hpux_som_init_abi): Use it.
3341 (hppa_hpux_elf_init_abi): Likewise.
3342 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3343 macro has been multiarched.
3344 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3345 macro here, as hppa64 isn't multiarched yet.
3346
3347 2003-06-05 Andrew Cagney <cagney@redhat.com>
3348
3349 * Makefile.in (value_h): Add $(frame_h).
3350 * value.h: Include "frame.h".
3351 (struct value): Replace "frame_addr" with "frame_id".
3352 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3353 * values.c (allocate_value): Use VALUE_FRAME_ID.
3354 (value_copy): Use VALUE_FRAME_ID.
3355 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3356 * valops.c (value_assign): Update. Use frame_find_by_id.
3357
3358 2003-06-05 Michal Ludvig <mludvig@suse.cz>
3359
3360 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3361 in each pass.
3362
3363 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3364
3365 * thread-db.c (check_event): For create/death event breakpoints,
3366 loop through all messages to ensure that we read the message
3367 corresponding to the breakpoint we are at.
3368
3369 2003-06-04 Michael Snyder <msnyder@redhat.com>
3370
3371 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3372
3373 2003-06-04 Mark Kettenis <kettenis@gnu.org>
3374
3375 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3376 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3377 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3378 when handling .eh_frame sections.
3379
3380 2003-06-04 J. Brobecker <brobecker@gnat.com>
3381
3382 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3383 prepare_to_proceed procedure instead of the hppa-specific one.
3384 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3385
3386 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
3387
3388 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3389 * config.in: Regenerated.
3390 * configure.in: Add test for syscall function and check for
3391 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3392 * configure: Regenerated.
3393 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3394 <sys/syscall.h>.
3395 (kill_lwp): New function that uses tkill syscall or
3396 uses kill, depending on whether threading model is nptl or not.
3397 All callers of kill() changed to use kill_lwp().
3398 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3399 see if all threads have already exited in the nptl model.
3400 (stop_and_resume_callback): New callback function used by the
3401 lin_lwp_wait thread exit handling code.
3402 (stop_wait_callback): Check for threads already having exited and
3403 delete such threads fromt the lwp list when discovered.
3404 (stop_callback): Don't assert retcode of kill call.
3405
3406 Roland McGrath <roland@redhat.com>
3407 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3408 nptl libthread_db.
3409
3410 2003-06-03 Richard Henderson <rth@redhat.com>
3411
3412 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3413 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3414 (alpha_sigtramp_frame_prev_register): Likewise.
3415 (alpha_heuristic_frame_prev_register): Likewise.
3416 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3417
3418 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3419 alpha-specific register id names.
3420 (alpha_mdebug_frame_unwind_cache): Likewise.
3421 (alpha_mdebug_frame_prev_register): Likewise.
3422
3423 2003-06-03 Richard Henderson <rth@redhat.com>
3424
3425 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3426 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3427 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3428 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3429 unwind routines.
3430 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3431 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3432 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3433
3434 * alpha-linux-tdep.c: Remove unnecessary includes.
3435 * Makefile.in (alpha-linux-tdep.o): Update.
3436
3437 2003-06-03 Richard Henderson <rth@redhat.com>
3438
3439 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3440 (alphabsd_fill_fpreg): Likewise.
3441
3442 2003-06-03 J. Brobecker <brobecker@gnat.com>
3443
3444 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3445 references to struct frame_info fields by calls to the equivalent
3446 accessors. Necessary now that frame_info is opaque.
3447
3448 2003-06-03 J. Brobecker <brobecker@gnat.com>
3449
3450 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3451 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3452 structure, field no longer exists.
3453
3454 2003-06-03 J. Brobecker <brobecker@gnat.com>
3455
3456 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3457 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3458
3459 2003-06-03 J. Brobecker <brobecker@gnat.com>
3460
3461 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3462 references to struct frame_info fields by calls to the equivalent
3463 accessors. Necessary now that frame_info is opaque.
3464
3465 2003-06-03 J. Brobecker <brobecker@gnat.com>
3466
3467 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3468 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3469 structure, field no longer exists.
3470
3471 2003-06-03 Theodore A. Roth <troth@openavr.org>
3472
3473 * remote.c (init_remote_state): Compute sizeof_g_packet by
3474 accumulation of the size of all registers instead of blindly using
3475 DEPRECATED_REGISTER_BYTES.
3476
3477 2003-06-03 Michael Snyder <msnyder@redhat.com>
3478
3479 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3480 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3481 for h8300sx.
3482
3483 2003-06-03 J. Brobecker <brobecker@gnat.com>
3484
3485 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3486 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3487
3488 2003-06-03 Andrew Cagney <cagney@redhat.com>
3489
3490 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3491 (sparc_convert_to_raw): Delete function.
3492 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3493 register_convert_to_virtual.
3494
3495 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3496
3497 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3498 layer if not dealing with a statically-linked threaded program.
3499
3500 2003-06-03 Kris Warkentin <kewarken@qnx.com>
3501
3502 * solib.c (solib_open): Update comment to reflect actual search order.
3503
3504 2003-06-03 Andrew Cagney <cagney@redhat.com>
3505
3506 * frame.c (get_frame_memory_signed): New function.
3507 (get_frame_memory, get_frame_memory_unsigned): New function.
3508 (get_frame_arch): New function.
3509 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3510 (get_frame_memory, get_frame_unsigned_memory): Declare.
3511 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3512 get_frame_memory_unsigned and get_frame_arch.
3513 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3514
3515 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3516
3517 * MAINTAINERS (write after approval): Add myself.
3518
3519 2003-06-03 Jim Blandy <jimb@redhat.com>
3520
3521 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3522 elements of gregset_t are 64 bits each, but access registers
3523 are still 32 bits, so they're packed two per gregset_t
3524 element. Unpack/pack them properly.
3525
3526 2003-06-02 David Carlton <carlton@bactrian.org>
3527
3528 * linespec.c (find_methods): Break out code into
3529 add_matching_methods and add_constructors.
3530 (add_matching_methods): New.
3531 (add_constructors): Ditto.
3532
3533 2003-06-02 Andrew Cagney <cagney@redhat.com>
3534
3535 * sparc-tdep.c (sparc_print_registers): Delete call to
3536 REGISTER_CONVERTIBLE.
3537 (sparc_gdbarch_init): Do not set register_convertible.
3538 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3539 * frv-tdep.c (frv_gdbarch_init): Ditto.
3540 * cris-tdep.c (cris_gdbarch_init): Ditto.
3541
3542 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
3543
3544 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3545 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3546 (syms_from_objfile): Ditto.
3547
3548 2003-06-03 Andreas Schwab <schwab@suse.de>
3549
3550 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3551 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3552
3553 2003-06-02 Richard Henderson <rth@redhat.com>
3554
3555 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3556 a member of all_reggroup.
3557
3558 2003-06-02 Richard Henderson <rth@redhat.com>
3559
3560 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3561 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3562 (alpha_lds, alpha_sts): New.
3563 (alpha_convert_register_p): Change from _register_convertible.
3564 (alpha_register_to_value): Change from _convert_to_virtual;
3565 restructure and fail for type sizes other than 4 or 8.
3566 (alpha_value_to_register): Similarly.
3567 (alpha_extract_return_value): Use alpha_sts.
3568 (alpha_store_return_value): Use alpha_lds.
3569 (alpha_gdbarch_init): Update hooks.
3570
3571 2003-06-02 Richard Henderson <rth@redhat.com>
3572
3573 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3574 regnum identifiers.
3575 (alpha_sigtramp_register_address): Likewise.
3576
3577 2003-06-02 Richard Henderson <rth@redhat.com>
3578
3579 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3580 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3581 * alpha-tdep.h: Declare them.
3582
3583 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3584 Remove zerobuf. Don't error on UNIQUE.
3585 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3586 (ALPHA_REGSET_UNIQUE): Provide default.
3587 (supply_gregset): Use alpha_supply_int_regs.
3588 (fill_gregset): Use alpha_fill_int_regs.
3589 (supply_fpregset): Use alpha_supply_fp_regs.
3590 (fill_fpregset): Use alpha_fill_fp_regs.
3591 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3592 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3593 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3594 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3595 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3596 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3597
3598 2003-06-02 Richard Henderson <rth@redhat.com>
3599
3600 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3601
3602 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3603 (alpha_store_return_value): Likewise.
3604
3605 2003-06-02 David Carlton <carlton@math.stanford.edu>
3606
3607 * block.c (contained_in): Add 'const' to arguments.
3608 (block_function): Ditto.
3609 * block.h: Update declarations for block_function and
3610 contained_in.
3611
3612 2003-06-02 David Carlton <carlton@math.stanford.edu>
3613
3614 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3615 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3616 * p-valprint.c (pascal_val_print): Ditto.
3617 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3618
3619 2003-06-02 Richard Henderson <rth@redhat.com>
3620
3621 * alpha-tdep.c (alpha_push_dummy_call): Use
3622 builtin_type_ieee_double_little instead of builtin_type_double.
3623
3624 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
3625 sign-extension of 32-bit values.
3626 (alpha_store_return_value): Similarly.
3627
3628 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3629 (alpha_extract_return_value): Likewise.
3630 (alpha_store_return_value): Likewise.
3631
3632 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3633 (alpha_store_return_value): Error on IEEE Quad floats.
3634
3635 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3636 (alpha_extract_struct_value_address): Likewise.
3637 (alpha_store_return_value): Likewise.
3638 (alpha_store_struct_return): Remove.
3639 (alpha_gdbarch_init): Update hook registration to match.
3640
3641 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3642 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3643 macros where appropriate.
3644 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3645 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
3646
3647 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3648 for SP, GP; void_func_ptr for PC; non-language-specific types
3649 for all others.
3650 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
3651
3652 2003-06-02 Richard Henderson <rth@redhat.com>
3653
3654 * top.h (lim_at_start): Declare.
3655 * main.c (captured_main): Set it.
3656 * top.c (lim_at_start): Define.
3657 (command_loop): Use it instead of &environ.
3658 * event-top.c (command_handler): Likewise.
3659
3660 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3661
3662 * mipsnbsd-tdep.c: Update copyright years.
3663 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3664
3665 2003-06-01 Richard Henderson <rth@redhat.com>
3666
3667 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3668 (alpha-linux-tdep.o): Update dependencies.
3669 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3670 * alpha-mdebug-tdep.c: Remove unneeded includes.
3671
3672 2003-06-01 Richard Henderson <rth@redhat.com>
3673
3674 * alpha-tdep.c (alpha_register_reggroup_p): New.
3675 (alpha_gdbarch_init): Register it.
3676
3677 2003-06-02 Andrew Cagney <cagney@redhat.com>
3678
3679 * dwarfread.c: Eliminate "register"
3680 (decode_die_type): Eliminate assignment within "if".
3681 (struct_type, decode_array_element_type): Ditto.
3682 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3683 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3684 (decode_modified_type, completedieinfo): Ditto.
3685 * block.c: Eliminate "register".
3686 (blockvector_for_pc_sect): Eliminate assignment within "if".
3687 * cp-support.h (struct symbol): Opaque declaration.
3688 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3689
3690 2003-06-01 Richard Henderson <rth@redhat.com>
3691
3692 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3693 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
3694
3695 2003-06-01 Adam Fedor <fedor@gnu.org>
3696
3697 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3698 * gdbarch.[ch]: Regenerate.
3699 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3700 (hppa_gdbarch_init): Set it in the gdbarch vector.
3701 * i386-tdep.c (i386_fetch_pointer_argument): New
3702 (i386_gdbarch_init): Set it into gdbarch.
3703 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3704 (rs6000_gdbarch_init): Set it in gdbarch.
3705 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3706 (sparc_gdbarch_init): Set it in gdbarch.
3707
3708 2003-06-01 Andrew Cagney <cagney@redhat.com>
3709
3710 * defs.h (extract_address): Delete declaration.
3711 * findvar.c (extract_address): Delete function.
3712 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3713 extract_address with the inline equivalent,
3714 extract_unsigned_integer.
3715 (xstormy16_extract_struct_value_address): Ditto.
3716 (xstormy16_pointer_to_address): Ditto.
3717 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3718 * v850-tdep.c (v850_push_arguments): Ditto.
3719 (v850_extract_return_value): Ditto.
3720 (v850_extract_struct_value_address): Ditto.
3721 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3722 (sparcnbsd_get_longjmp_target_64): Ditto.
3723 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3724 (get_longjmp_target): Ditto.
3725 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3726 (sh64_extract_struct_value_address): Ditto.
3727 (sh_push_arguments): Ditto.
3728 (sh64_push_arguments): Ditto.
3729 * remote-vxsparc.c (vx_read_register): Ditto.
3730 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
3731 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
3732 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
3733 * mipsv4-nat.c (get_longjmp_target): Ditto.
3734 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
3735 * mips-nat.c (get_longjmp_target): Ditto.
3736 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
3737 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
3738 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
3739 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
3740 * irix5-nat.c (get_longjmp_target): Ditto.
3741 * irix4-nat.c (get_longjmp_target): Ditto.
3742 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
3743 (ia64_push_arguments): Ditto.
3744 * hpux-thread.c (hpux_thread_store_registers): Ditto.
3745 * h8300-tdep.c (h8300_push_arguments): Ditto.
3746 (h8300_store_return_value): Ditto.
3747 (h8300_extract_struct_value_address): Ditto.
3748 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
3749 (frv_push_arguments): Ditto.
3750 * avr-tdep.c (avr_pointer_to_address): Ditto.
3751 (avr_push_arguments): Ditto.
3752 * arm-tdep.c (arm_push_dummy_call): Ditto.
3753 (arm_get_longjmp_target): Ditto.
3754 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3755 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
3756 (alpha_get_longjmp_target): Ditto.
3757
3758 * solib-irix.c (extract_mips_address): Inline extract_address,
3759 replacing it with extract_signed_integer.
3760 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3761 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
3762 (first_link_map_member, open_symbol_file_object): Ditto.
3763 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
3764 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3765 (LM_NEXT, LM_NAME): Ditto.
3766
3767 2003-06-01 Richard Henderson <rth@redhat.com>
3768
3769 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
3770 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
3771 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
3772 (alpha_cannot_store_register): Likewise.
3773 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
3774 * alpha-nat.c (supply_gregset): Likewise.
3775 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
3776
3777 2003-06-01 Andrew Cagney <cagney@redhat.com>
3778
3779 * infcall.c (call_function_by_hand): Update comment on
3780 DEPRECATED_DUMMY_WRITE_SP.
3781
3782 * mips-tdep.c (mips_gdbarch_init): Do not set
3783 deprecated_dummy_write_sp.
3784 (mips_eabi_push_dummy_call): Set the SP register.
3785 (mips_o64_push_dummy_call): Set the SP register.
3786 (mips_o32_push_dummy_call): Set the SP register.
3787 (mips_n32n64_push_dummy_call): Set the SP register.
3788
3789 2003-06-01 Richard Henderson <rth@redhat.com>
3790
3791 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
3792 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
3793 (supply_gregset): Likewise.
3794 * alpha-tdep.c (alpha_store_return_value): Likewise.
3795 (alpha_get_longjmp_target): Likewise.
3796 (alpha_register_name): Constify array.
3797 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
3798 deprecated_register_size, deprecated_register_bytes,
3799 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
3800 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
3801 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
3802
3803 2003-06-01 Richard Henderson <rth@redhat.com>
3804
3805 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
3806 from arg_reg_buffer to regcache to avoid double conversion.
3807
3808 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3809
3810 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
3811 SP_REGNUM.
3812 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
3813 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
3814
3815 2003-06-01 Richard Henderson <rth@redhat.com>
3816
3817 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
3818 (decode_frame_entry): Set it. Skip FDE augmentation.
3819
3820 2003-06-01 Richard Henderson <rth@redhat.com>
3821
3822 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
3823 not overlapping PC_REGNUM.
3824
3825 2003-06-01 Richard Henderson <rth@redhat.com>
3826
3827 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
3828 alpha_push_arguments. Don't dump argument register data to
3829 the target stack. Fix float and 128-bit long double semantics.
3830 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
3831 (alpha_fix_call_dummy): Remove.
3832 (alpha_call_dummy_words): Remove.
3833 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
3834
3835 2003-06-01 Richard Henderson <rth@redhat.com>
3836
3837 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
3838
3839 2003-06-01 Andrew Cagney <cagney@redhat.com>
3840
3841 * mips-tdep.c (is_mips16_addr): New function.
3842 (make_mips16_addr, unmake_mips16_addr): New functions.
3843 (pc_is_mips16, mips_fetch_instruction): Use.
3844 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
3845 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
3846 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
3847 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
3848 TARGET_MIPS.
3849 * config/mips/tm-mips.h: Update copyright.
3850 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
3851 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
3852 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
3853 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
3854 (TM_PRINT_INSN_MACH): Delete.
3855 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
3856
3857 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
3858 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
3859 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
3860 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
3861 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
3862 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
3863 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
3864 mips*-*-riscos* and mips*-*-sysv* onto mips.
3865 * config/mips/mips64.mt: New file.
3866 * config/mips/mips.mt: New file.
3867 * config/mips/littlemips.mt: Delete file.
3868 * config/mips/decstation.mt: Delete file.
3869 * config/mips/vr4300el.mt: Delete file.
3870 * config/mips/vr5000el.mt: Delete file.
3871 * config/mips/vr5000.mt: Delete file.
3872 * config/mips/vr4100.mt: Delete file.
3873 * config/mips/vr4xxxel.mt: Delete file.
3874 * config/mips/vr4300.mt: Delete file.
3875 * config/mips/vr4xxx.mt: Delete file.
3876 * config/mips/bigmips.mt: Delete file.
3877 * config/mips/bigmips64.mt: Delete file.
3878 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
3879 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
3880 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
3881 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
3882 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
3883 "tm-bigmips.h".
3884 * config/mips/tm-irix3.h: Ditto.
3885 * config/mips/tm-mipsv4.h: Ditto.
3886 * config/mips/tm-embed.h: Ditto.
3887 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
3888 "tm-bigmips64.h".
3889 * config/mips/tm-vr5000el.h: Delete file.
3890 * config/mips/tm-tx39l.h: Delete file.
3891 * config/mips/tm-vr4300el.h: Delete file.
3892 * config/mips/tm-vr4xxxel.h: Delete file.
3893 * config/mips/tm-vr4300.h: Delete file.
3894 * config/mips/tm-vr4100.h: Delete file.
3895 * config/mips/tm-vr4xxx.h: Delete file.
3896 * config/mips/tm-vr5000.h: Delete file.
3897 * config/mips/tm-embedl64.h: Delete file.
3898 * config/mips/tm-embedl.h: Delete file.
3899 * config/mips/tm-embed64.h: Delete file.
3900 * config/mips/tm-bigmips64.h: Delete file.
3901 * config/mips/tm-bigmips.h: Delete file.
3902
3903 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3904
3905 Fix gdb/1216.
3906 * shnbsd-nat.c: Include "sh-tdep.h".
3907
3908 From Richard Henderson <rth@redhat.com>:
3909 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
3910
3911 2003-05-31 Andrew Cagney <cagney@redhat.com>
3912
3913 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
3914 forward declaration.
3915 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3916 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3917 (mips_find_saved_regs): Use set_reg_offset.
3918 (mips_frame_init_saved_regs): Delete function.
3919 (mips_pop_frame): Call mips_find_saved_regs instead of
3920 DEPRECATED_FRAME_INIT_SAVED_REGS.
3921
3922 2003-05-31 Andrew Cagney <cagney@redhat.com>
3923
3924 * mips-tdep.c (mips_gdbarch_init): Do not set
3925 deprecated_max_register_raw_size, register_virtual_size, and
3926 deprecated_max_register_virtual_size.
3927
3928 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3929
3930 * i386-tdep.c: Include "dwarf2-frame.h".
3931 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
3932 * Makefile.in (i386-tdep.o): Update dependencies.
3933
3934 * dwarf2-frame.c, dwarf2-frame.h: New files.
3935 * Makefile.in (SFILES): Add dwarf2-frame.c.
3936 (dwarf2_frame_h): Define.
3937 (COMMON_OBS): Add dwarf2-frame.o.
3938 (dwarf2-frame.o): Add dependencies.
3939
3940 2003-05-31 Andreas Jaeger <aj@suse.de>
3941
3942 * x86-64-linux-nat.c: Fix comment.
3943
3944 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3945
3946 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
3947 function signature.
3948
3949 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
3950 have a sigcontext_addr handler.
3951 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
3952 sigcontext_addr handler.
3953
3954 2003-05-31 Andrew Cagney <cagney@redhat.com>
3955
3956 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
3957 (print_fp_register_row): Replace do_fp_register_row.
3958 (mips_print_fp_register): Add "file" and "frame" parameters.
3959 (mips_print_register): Add "file" and "frame" parameters.
3960 (mips_print_registers_info): Replace mips_do_registers_info.
3961 (mips_gdbarch_init): Set print_registers_info instead of
3962 deprecated_do_registers_info.
3963 (mips_read_fp_register_single): Add "frame" parameter.
3964 (mips_read_fp_register_double): Add "frame" parameter.
3965
3966 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3967
3968 * i386-tdep.c (i386_register_name): Check for MMX registers first.
3969 Fixes a bug where GDB would print the wrong register names for
3970 targets without SSE.
3971
3972 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
3973 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3974 registers.
3975
3976 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
3977 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
3978 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3979 TDEP->sc_sp_offset.
3980
3981 From Michal Ludvig <mludvig@suse.cz>:
3982 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
3983 and `sc_num_regs'.
3984 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3985 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3986 I386_ST0_REGNUM): Move here from...
3987 * i386-tdep.c: ... here.
3988 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
3989 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3990 registers if possible.
3991 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
3992 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
3993 Remove variables.
3994 (i386bsd_sc_reg_offset): New variable.
3995 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
3996 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3997 TDEP->sc_sp_offset.
3998 (i386fbsd_sc_reg_offset): New variable.
3999 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4000 TDEP->sc_num_regs.
4001 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4002 variables.
4003 (i386fbsd4_sc_reg_offset): New variable.
4004 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4005 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4006 TDEP->sc_sp_offset.
4007 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4008 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4009 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4010 Remove variables.
4011 (i386nbsd_sc_reg_offset): New variable.
4012 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4013 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4014 TDEP->sc_sp_offset.
4015 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4016 Remove variables.
4017 (i386obsd_sc_reg_offset): New variable.
4018 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4019 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4020 TDEP->sc_sp_offset.
4021 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4022 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4023 for frame pointer offset in `struct sigcontext'.
4024
4025 2003-05-31 Andrew Cagney <cagney@redhat.com>
4026
4027 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4028 architecture methods call_dummy_words, sizeof_call_dummy_words,
4029 push_return_address, store_struct_return, and fix_call_dummy. Set
4030 push_dummy_call instead of deprecated_push_arguments.
4031 (mips_store_struct_return): Delete function.
4032 (mips_fix_call_dummy): Delete function.
4033 (mips_push_return_address): Delete function.
4034 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4035 RA_REGNUM and T9_REGNUM.
4036 (mips_n32n64_push_dummy_call): Ditto for
4037 mips_n32n64_push_arguments.
4038 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4039 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4040
4041 2003-05-31 Andrew Cagney <cagney@redhat.com>
4042
4043 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4044 "dummy_addr" to "bp_addr".
4045 * infcall.c (call_function_by_hand): Pass "funaddr" to
4046 gdbarch_push_dummy_call.
4047 * gdbarch.h, gdbarch.c: Re-generate.
4048 * i386-tdep.c (i386_push_dummy_call): Update.
4049 * arm-tdep.c (arm_push_dummy_call): Update.
4050 * d10v-tdep.c (d10v_push_dummy_call): Update.
4051
4052 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4053
4054 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4055 variable declarations.
4056 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4057 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4058 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4059 x86_64_init_frame_pc, x86_64_init_frame_pc,
4060 x86_64_function_has_prologue): Remove prototypes.
4061 (X86_64_NUM_GREGS): New define.
4062 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4063 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4064 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4065 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4066 XMM1_REGNUM): Remove defines.
4067 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4068 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4069 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4070 X86_64_XMM1_REGNUM): New defines.
4071 (struct x86_64_register_info): Renamed from `struct
4072 register_info'. Remove `size' member.
4073 (x86_64_register_info_table): Remove variable.
4074 (x86_64_register_info): New variable.
4075 (X86_64_NUM_REGS): New define.
4076 (X86_64_NUM_GREGS): Remove define.
4077 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4078 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4079 Remove variables.
4080 (x86_54_dwarf2_reg_to_regnum): Remove function.
4081 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4082 (x86_64_dwarf_reg_to_regnum): New function.
4083 (x86_64_register_name): Rewrite.
4084 (x86_64_register_raw_size): Remove function.
4085 (x86_64_register_byte_table): Remove variable.
4086 (x86_64_register_byte): Remove function.
4087 (x86_64_register_virtual_type): Remove function.
4088 (x86_64_register_type): New function.
4089 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4090 x86_64_register_convert_to_raw): Remove functions.
4091 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4092 (x86_64_use_struct_convention): Make static. Adjust for renamed
4093 defines.
4094 (x86_64_frame_init_saved_regs): Remove function.
4095 (x86_64_push_arguments): Make static. Change to accept a regcache
4096 as argument.
4097 (x86_64_store_return_value, x86_64_extract_return_value): Make
4098 static. Rewrite based on i386 counterparts.
4099 (x86_64_push_dummy_call): New function.
4100 (X86_64_NUM_SAVED_REGS): New define.
4101 (x86_64_register_number): Remove function.
4102 (x86_64_store_struct_return): Remove function.
4103 (x86_64_frameless_function_invocation,
4104 x86_64_function_has_prologue): Remove functions.
4105 (PROLOG_BUFSIZE): Remove define.
4106 (struct x86_64_frame_cache): New structure.
4107 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4108 x86_64_frame_cache, x86_64_frame_this_id,
4109 x86_64_frame_prev_register, x86_64_frame_p,
4110 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4111 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4112 functions.
4113 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4114 variables.
4115 (x86_64_skip_prologue): Rewrite in terms of
4116 x86_64_analyze_prologue.
4117 (x86_64_frame_base_address): New function.
4118 (x86_64_frame_base): New variable.
4119 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4120 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4121 set deprecated_fp_regnum, deprecated_register_size,
4122 deprecated_register_bytes, register_raw_size, register_byte,
4123 register_virtual_type, register_convertiable,
4124 register_convert_to_virtual, convert_to_raw,
4125 deprecated_get_saved_register, deprecated_target_read_fp,
4126 deprecated_push_arguments, deprecated_push_return_address,
4127 deprecated_pop_frame, deprecated_store_struct_return,
4128 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4129 frameless_function_invocation, deprecated_frame_saved_pc,
4130 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4131 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4132 deprecated_init_frame_pc and virtual_frame_pointer. Call
4133 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4134 and x86_64_frame_p. Call frame_base_set_default to register
4135 x86_64_frame_base.
4136 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4137 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4138 (_initialize_x86_64_tdep): Remove function.
4139 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4140 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4141 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4142 define.
4143 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4144 (x86_64_linux_sigcontext_addr): Rewrite.
4145 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4146 x86_64_linux_frame_saved_pc): Remove functions.
4147 (x86_64_linux_pc_in_sigtramp): Renamed from
4148 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4149 trampoline.
4150 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4151 Remove_functions.
4152 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4153 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4154 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4155 (x86_64_regmap): Rename to regmap.
4156 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4157 x86_64_num_gregs.
4158 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4159 x86_64_regmap.
4160 (x86_64_fxsave_offset): Remove function.
4161 (supply_fpregset): Simply call x86_64_supply_fxsave.
4162 (fill_fpregset): Simply call x86_64_fill_fxsave.
4163 (fetch_inferior_registers, store_inferior_registers): Avoid
4164 asignment in if-statement.
4165 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4166 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4167 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4168 (fetch_core_registers): Remove function.
4169 (linux_elf_core_fns): Remove.
4170 (offsetoff): Don't define.
4171 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4172 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4173 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4174 add core-regset.o.
4175 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4176 protection against multiple includes instead of NM_X86_64_h. Add
4177 various comments. Include "config/nm-linux.h". Don't include
4178 <signal.h>.
4179 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4180 GET_THREAD_SIGNALS): Remove defines.
4181 (x86_64_register_u_addr, kernel_u_size,
4182 lin_thread_get_thread_signals): Remove prototypes.
4183 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4184 [HAVE_LINK_H]: Don't include "solib.h".
4185 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4186 * config/i386/tm-x86-64linux.h: Fix comments.
4187 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4188 x86-64-tdep.o): Update dependencies.
4189
4190 2003-05-30 Andrew Cagney <cagney@redhat.com>
4191
4192 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4193 Change parameter type to a "struct regcache *".
4194
4195 * gdbarch.sh: Regardless of the multi-arch level, always define
4196 the macro when not already defined.
4197 * gdbarch.h, gdbarch.c: Re-generate.
4198
4199 2003-05-30 Richard Henderson <rth@redhat.com>
4200
4201 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4202 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4203 (alpha_mdebug_frame_this_id): Likewise.
4204 (alpha_mdebug_frame_prev_register): Likewise.
4205 (alpha_mdebug_frame_base_address): Likewise.
4206 (alpha_mdebug_frame_locals_address): Likewise.
4207 (alpha_mdebug_frame_args_address): Likewise.
4208 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4209 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4210 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4211 loop increment.
4212 (alpha_heuristic_frame_this_id): Make static.
4213 (alpha_heuristic_frame_prev_register): Likewise.
4214 (alpha_heuristic_frame_base_address): Likewise.
4215 * alpha-tdep.h: Update.
4216
4217 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4218
4219 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4220 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4221 defenitions.
4222 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4223 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4224 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4225 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4226 I386_ST0_REGNUM): New defines.
4227 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4228 codestream_get): Remove define.
4229 (codestream_next_addr, condestream_addr, condestream_buf,
4230 codestream_off, codestream_cnt): Remove variables.
4231 (codestream_fill, codestream_seek, codestream_read): Remove
4232 functions.
4233 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4234 functionality.
4235 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4236 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4237 i386_frame_saved_pc, i386_saved_pc_after_call,
4238 i386_frame_num_args, i386_frame_init_saved_regs,
4239 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4240 i386_push_arguments): Remove functions.
4241 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4242 functionality. Use i386_analyze_prologue instead of
4243 i386_get_frame_setup.
4244 (I386_NUM_SAVED_REGS): New define.
4245 (struct i386_frame_cache): New structure.
4246 (i386_alloc_frame_cache, i386_analyze_struct_return,
4247 i386_skip_probe, i386_analyze_frame_setup,
4248 i386_analyze_register_saves, i386_analyze_prologue,
4249 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4250 i386_frame_prev_register, i386_sigtramp_frame_cache,
4251 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4252 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4253 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4254 New functions.
4255 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4256 New variables.
4257 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4258 I386_EAX_REGNUM and I386_EDX_REGNUM.
4259 (i386_extract_return_value, i386_store_return_value): Use
4260 I386_ST0_REGNUM where appropriate.
4261 (i386_extract_struct_value_address): Rewrite to use extract_address.
4262 (i386_svr4_pc_in_sigtramp): Add comment.
4263 (i386_svr4_sigcontext_addr): Rewrite.
4264 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4265 TDEP->sc_sp_offset.
4266 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4267 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4268 of new defines. Set push_dummy_call, don't set
4269 deprecated_push_arguments, deprecated_push_return_address,
4270 deprecated_pop_frame. Don't set parm_boundary. Don't set
4271 deprecated_frame_chain, deprecated_frame_saved_pc,
4272 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4273 save_dummy_frame_tos, unwind_pc. Call
4274 frame_unwind_append_predicate and frame_base_set_default. Don't
4275 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4276 Don't set frameless_function_invocation. Don't set
4277 deprecated_register_bytes, deprecated_register_size,
4278 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4279 * i386-linux-tdep.c: Fix formatting in some comments.
4280 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4281 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4282 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4283 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4284 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4285 redundant parentheses.
4286 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4287 (i386_linux_sigcontext_addr): Use it. Rewrite.
4288 (find_minsym_and_objfile): Change name of second argument.
4289 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4290 changed. Use frame_pc_unwind instead of
4291 DEPRECATED_SAVED_PC_AFTER_CALL.
4292 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4293 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4294 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4295 unwinder.
4296 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4297 "dummy-frame.h".
4298 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4299 (_initialize_i386_cygwin_tdep): New prototype.
4300 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4301 deprecated_frame_chain_valid.
4302 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4303 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4304 Rely on the SVR4 defaults.
4305 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4306 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4307
4308 2003-05-30 Andrew Cagney <cagney@redhat.com>
4309
4310 * infcall.c (call_function_by_hand): Always call
4311 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4312
4313 2003-05-30 Richard Henderson <rth@redhat.com>
4314
4315 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4316 increment.
4317
4318 2003-05-29 Jim Blandy <jimb@redhat.com>
4319
4320 Use gdbarch methods for solib stuff on PowerPC Linux.
4321 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4322 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4323 show through.
4324 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4325 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4326 giving the same effect as the #definitions above.
4327
4328 2003-05-29 Adam Fedor <fedor@gnu.org>
4329
4330 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4331 (find_implementation_from_class): Replace it with the standard
4332 case i.e. do nothing.
4333
4334 2003-05-29 Richard Henderson <rth@redhat.com>
4335
4336 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4337 (alpha_linux_sigtramp_offset): Use it. Make static.
4338 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4339 update for new frame model.
4340 * alpha-mdebug-tdep.c: New file.
4341 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4342 (alpha_osf1_init_abi): Install it.
4343 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4344 (linked_proc_desc_table): Remove.
4345 (alpha_frame_past_sigtramp_frame): Remove.
4346 (alpha_dynamic_sigtramp_offset): Remove.
4347 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4348 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4349 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4350 (push_sigtramp_desc): Remove.
4351 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4352 (alpha_cannot_store_register): Likewise.
4353 (alpha_sigcontext_addr): Remove.
4354 (alpha_find_saved_regs): Remove.
4355 (alpha_frame_init_saved_regs): Remove.
4356 (alpha_init_frame_pc_first): Remove.
4357 (read_next_frame_reg): Remove.
4358 (alpha_frame_saved_pc): Remove.
4359 (alpha_saved_pc_after_call): Remove.
4360 (temp_proc_desc, temp_saved_regs): Remove.
4361 (alpha_about_to_return): Remove.
4362 (cached_proc_desc): Remove.
4363 (alpha_frame_chain): Remove.
4364 (alpha_print_extra_frame_info): Remove.
4365 (alpha_init_extra_frame_info): Remove.
4366 (alpha_frame_locals_address): Remove.
4367 (alpha_frame_args_address): Remove.
4368 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4369 (alpha_push_dummy_frame): Remove.
4370 (alpha_pop_frame): Remove.
4371 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4372 (alpha_read_insn): New.
4373 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4374 for different insn encodings.
4375 (alpha_in_lenient_prologue): Remove.
4376 (struct alpha_sigtramp_unwind_cache): New.
4377 (alpha_sigtramp_frame_unwind_cache): New.
4378 (alpha_sigtramp_register_address): New.
4379 (alpha_sigtramp_frame_this_id): New.
4380 (alpha_sigtramp_frame_prev_register): New.
4381 (alpha_sigtramp_frame_unwind): New.
4382 (alpha_sigtramp_frame_p): New.
4383 (struct alpha_heuristic_unwind_cache): New.
4384 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4385 don't count nop insns that occur between functions.
4386 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4387 heuristic_proc_desc, but without the mdebug wrapping.
4388 (alpha_heuristic_frame_this_id): New.
4389 (alpha_heuristic_frame_prev_register): New.
4390 (alpha_heuristic_frame_unwind): New.
4391 (alpha_heuristic_frame_p): New.
4392 (alpha_heuristic_frame_base_address): New.
4393 (alpha_heuristic_frame_base): New.
4394 (alpha_unwind_dummy_id): New.
4395 (alpha_unwind_pc): New.
4396 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4397 frame related deprecated initializations; install replacements.
4398 (alpha_dump_tdep): Remove.
4399 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4400 (alpha_read_insn, alpha_after_prologue,
4401 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4402 alpha_heuristic_frame_prev_register,
4403 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4404 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4405 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4406 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4407
4408 2003-05-29 Andrew Cagney <cagney@redhat.com>
4409
4410 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4411 dependant on the availability of ASSERT_FUNCTION.
4412 (ASSERT_FUNCTION): Do not define when there is no function name.
4413
4414 2003-05-29 Kevin Buettner <kevinb@redhat.com>
4415
4416 From Jimi X <jimix@watson.ibm.com>:
4417 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4418
4419 2003-05-28 Jim Blandy <jimb@redhat.com>
4420
4421 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4422 argument to ptrace to int; the system headers should give it the
4423 right type, and pointers don't fit in ints on powerpc64-*-*.
4424
4425 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4426
4427 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4428 DW_TAG_catch_block.
4429
4430 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4431
4432 * stabsread.c (dbx_lookup_type): Make static.
4433 (read_type): Ditto.
4434 (add_undefined_type): Ditto.
4435 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4436 not export.
4437
4438 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4439
4440 * hpread.c (hpread_has_name): Make static.
4441 (hpread_psymtab_to_symtab): Ditto.
4442 (file_exists): Ditto.
4443 (hpread_call_pxdb): Ditto.
4444 (hpread_pxdb_needed): Ditto.
4445 (hpread_quick_traverse): Ditto.
4446 (hpread_get_header): Ditto.
4447 (hpread_get_lntt): Ditto.
4448 (hpread_get_slt): Ditto.
4449 (class_of): Ditto.
4450
4451 2003-05-25 Andreas Schwab <schwab@suse.de>
4452
4453 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4454 stack_align and deprecated_extra_stack_alignment_needed.
4455 (m68k_stack_align): Delete.
4456
4457 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4458 (m68k_register_virtual_size): Likewise.
4459 (altos_skip_prologue): Remove obsolete function.
4460 (isi_frame_num_args): Likewise.
4461 (news_frame_num_args): Likewise.
4462 (m68k_fix_call_dummy): Make static.
4463 (m68k_push_dummy_frame): Likewise.
4464 (m68k_pop_frame): Likewise.
4465 (m68k_skip_prologue): Likewise.
4466 (m68k_frame_init_saved_regs): Likewise.
4467 (m68k_saved_pc_after_call): Likewise.
4468 (m68k_get_longjmp_target): Make multi-arch.
4469 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4470 structure. Register m68k_get_longjmp_target if enabled.
4471 * m68k-tdep.h (struct gdbarch_tdep): Define.
4472 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4473
4474 * Makefile.in (config.status): Also depend on configure.tgt
4475 and configure.host.
4476 (m68klinux-tdep.o): Update dependencies.
4477 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4478 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4479 (M68K_LINUX_JB_PC): Define.
4480 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4481 and take additional parameter.
4482 (m68k_linux_sigtramp_saved_pc): Update.
4483 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4484 m68k_linux_pc_in_sigtramp, in_plt_section,
4485 find_solib_trampoline_target.
4486 * config/m68k/tm-linux.h: Don't include any tm headers.
4487 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4488 (JB_ELEMENT_SIZE): Likewise.
4489 (JB_PC): Likewise.
4490 (GET_LONGJMP_TARGET): Likewise.
4491 (IN_SIGTRAMP): Likewise.
4492 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4493
4494 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4495
4496 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4497 (sparc32_push_arguments): Re-implement by calling
4498 sparc32_do_push_arguments.
4499
4500 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4501
4502 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4503 SPARC_O1_REGNUM): New defines.
4504 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4505 (sparc32_store_return_value): New function.
4506 (sparc_extract_struct_value_address): Rewrite to operate on a
4507 regcache.
4508 (sparc_gdbarch_init): Don't set
4509 deprecated_extract_struct_value_address. Set
4510 extract_struct_value_address instead. Don't set
4511 deprecated_extract_return_value and deprecated_store_return_value
4512 for 32-bit targets. Set extract_return_value and
4513 store_return_value instead.
4514 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4515 DEPRECTAED_EXTRACT_RETURN_VALUE,
4516 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4517 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4518 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4519 (sparc_store_return_value): Remove prototype.
4520 (sparc32_store_return_value): New prototype.
4521 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4522 Adjust prototypes.
4523
4524 2003-05-24 Mark Kettenis <kettenis@gnu.org>
4525
4526 * sparcnbsd-tdep.c: Include "gdb_string.h".
4527
4528 2003-05-23 Andrew Cagney <cagney@redhat.com>
4529
4530 * p-valprint.c (pascal_val_print): Replace extract_address with
4531 the inline equivalent extract_unsigned_integer.
4532 * jv-valprint.c (java_value_print): Ditto.
4533 * ada-valprint.c (ada_val_print_1): Ditto.
4534 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4535
4536 2003-05-23 Theodore A. Roth <troth@openavr.org>
4537
4538 * blockframe.c (frameless_look_for_prologue): Remove unused
4539 after_prologue variable.
4540
4541 2003-05-23 Mark Kettenis <kettenis@gnu.org>
4542
4543 * blockframe.c (get_pc_function_start): Rewrite to avoid
4544 asignments in if-statements.
4545
4546 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4547
4548 Committed by Elena Zannoni <ezannoni@redhat.com>.
4549 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4550 files, don't relocate absolute symbols (and do use mst_abs).
4551
4552 2003-05-23 Andrew Cagney <cagney@redhat.com>
4553
4554 * objc-lang.c: Include "gdb_assert.h".
4555 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4556 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4557 (gdb_check, gdb_check_fatal): Delete functions.
4558 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4559 gdb_assert.
4560 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4561 * Makefile.in (objc-lang.o): Update dependencies.
4562
4563 2003-05-22 Ian Lance Taylor <ian@airs.com>
4564
4565 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4566 with fprintf_filtered, not fprintf_unfiltered.
4567
4568 2003-05-22 Andrew Cagney <cagney@redhat.com>
4569
4570 * stack.c (frame_info): Inline extract_address, replacing it with
4571 extract_unsigned_integer.
4572 * findvar.c (unsigned_pointer_to_address): Ditto.
4573 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4574 * dwarf2expr.c (dwarf2_read_address): Ditto.
4575 * frame.c (frame_pc_unwind): Update comment.
4576 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4577
4578 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4579
4580 * infptrace.c (detach): Call print_sys_errmsg rather than
4581 perror_with_name to issue warning message when errno is non-zero
4582 after calling ptrace detach.
4583
4584 2003-05-21 J. Brobecker <brobecker@gnat.com>
4585
4586 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4587 macro definitions from here...
4588 * hppa-tdep.c: ...to there.
4589
4590 2003-05-20 Kevin Buettner <kevinb@redhat.com>
4591
4592 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4593 register_ptrace_addr(). Fix all callers.
4594
4595 2003-05-21 Andreas Schwab <schwab@suse.de>
4596
4597 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4598 dependencies.
4599 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4600 end.
4601 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4602 (_initialize_m68k_linux_tdep): New function.
4603 (m68k_linux_frame_saved_pc): Make static.
4604 (m68k_linux_extract_return_value): Likewise.
4605 (m68k_linux_store_return_value): Likewise.
4606 (m68k_linux_extract_struct_value_address): Likewise.
4607 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4608 Remove.
4609 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4610 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4611 (DEPRECATED_FRAME_SAVED_PC): Remove.
4612
4613 2003-05-20 Kris Warkentin <kewarken@qnx.com>
4614
4615 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4616 regset numbering rather than our own.
4617
4618 2003-05-19 David Carlton <carlton@bactrian.org>
4619
4620 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4621
4622 2003-05-19 David Carlton <carlton@bactrian.org>
4623
4624 Partial fix for PR c++/827.
4625 * cp-support.h: Include symtab.h.
4626 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4627 * cp-namespace.c: Update contributors.
4628 (cp_lookup_symbol_nonlocal): New.
4629 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4630 (lookup_symbol_file): Ditto.
4631 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4632 * block.h: Declare block_scope, block_using, block_global_block.
4633 * block.c (block_scope): New.
4634 (block_using, block_global_block): Ditto.
4635 * Makefile.in (cp_support_h): Depend on symtab_h.
4636 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4637
4638 2003-05-19 David Carlton <carlton@bactrian.org>
4639
4640 * language.h (struct language_defn): Add 'la_value_of_this'
4641 and 'la_lookup_symbol_nonlocal' members.
4642 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4643 lookup_symbol_static, lookup_symbol_global,
4644 lookup_symbol_aux_block.
4645 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4646 if we should search fields of this and how to do static/global
4647 lookup.
4648 (lookup_symbol_aux_block): Make extern.
4649 (basic_lookup_symbol_nonlocal): New.
4650 (lookup_symbol_static, lookup_symbol_global): Ditto.
4651 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4652 'la_lookup_symbol_nonlocal' members.
4653 * c-lang.c (c_language_defn, cplus_language_defn)
4654 (asm_language_defn, minimal_language_defn): Ditto.
4655 * jv-lang.c (java_language_defn): Ditto.
4656 * language.c (unknown_language_defn, auto_language_defn)
4657 (local_language_defn): Ditto.
4658 * m2-lang.c (m2_language_defn): Ditto.
4659 * objc-lang.c (objc_language_defn): Ditto.
4660 * scm-lang.c (scm_language_defn): Ditto.
4661 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4662 * p-lang.c (pascal_language_defn): Ditto for both.
4663 * Makefile.in (f-lang.o): Depend on value_h.
4664 (p-lang.o): Ditto.
4665
4666 2003-05-19 David Carlton <carlton@bactrian.org>
4667
4668 * block.h: Declare block_static_block.
4669 * block.c (block_static_block): New.
4670 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4671 lookup_symbol_aux_local, calling block_static_block instead.
4672 (lookup_symbol_aux_local): Delete 'static_block' argument.
4673
4674 2003-05-19 David Carlton <carlton@bactrian.org>
4675
4676 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4677
4678 2003-05-19 Michal Ludvig <mludvig@suse.cz>
4679
4680 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4681 register numbers mapping.
4682
4683 2003-05-18 Adam Fedor <fedor@gnu.org>
4684
4685 * symtab.c (completion_list_objc_symbol): New function.
4686 (make_symbol_completion_list): Use it to add ObjC symbols
4687 when looking though the list.
4688 (language_search_unquoted_string): New function.
4689 (make_file_symbol_completion_list): Use it.
4690
4691 2003-05-18 Andreas Schwab <schwab@suse.de>
4692
4693 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4694 dependencies.
4695 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4696 as m68k_linux_extract_return_value.
4697 (DEPRECATED_STORE_RETURN_VALUE): Define as
4698 m68k_linux_store_return_value.
4699 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4700 m68k_linux_extract_struct_value_address.
4701 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4702 get_next_frame, get_frame_base, get_frame_pc.
4703 (m68k_linux_frame_saved_pc): Use get_frame_base.
4704 (m68k_linux_extract_return_value): New function.
4705 (m68k_linux_store_return_value): New function.
4706 (m68k_linux_extract_struct_value_address): New function.
4707 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4708
4709 * c-exp.y (typebase): Remove duplicate occurence of
4710 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
4711 of lookup_signed_typename.
4712
4713 2003-05-18 Mark Kettenis <kettenis@gnu.org>
4714
4715 * dwarf2loc.c (find_location_expression): Change type of second
4716 argument to `size_t *'.
4717 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4718 for size variable.
4719
4720 2003-05-18 David Carlton <carlton@bactrian.org>
4721
4722 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4723 'linkage_name'. Add comment.
4724 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4725 'linkage_name'.
4726 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4727 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
4728 (lookup_block_symbol): Ditto.
4729
4730 2003-05-16 Andrew Cagney <cagney@redhat.com>
4731
4732 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
4733 * gdbarch.h, gdbarch.c: Re-generate.
4734 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
4735 * TODO (REGISTER_BYTES): Delete reference.
4736 * alpha-tdep.c (alpha_gdbarch_init): Update.
4737 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4738 * x86-64-tdep.c (x86_64_init_abi): Update.
4739 * vax-tdep.c (vax_gdbarch_init): Update.
4740 * v850-tdep.c (v850_gdbarch_init): Update.
4741 * sparc-tdep.c (sparc_gdbarch_init): Update.
4742 * sh-tdep.c (sh_gdbarch_init): Update.
4743 * s390-tdep.c (s390_gdbarch_init): Update.
4744 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4745 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4746 (ns32k_gdbarch_init_32382): Update.
4747 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4748 * mcore-tdep.c (mcore_gdbarch_init): Update.
4749 * m68k-tdep.c (m68k_gdbarch_init): Update.
4750 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4751 * ia64-tdep.c (ia64_gdbarch_init): Update.
4752 * i386-tdep.c (i386_gdbarch_init): Update.
4753 * i386-linux-tdep.c (i386_linux_init_abi): Update.
4754 * hppa-tdep.c (hppa_gdbarch_init): Update.
4755 * h8300-tdep.c (h8300_gdbarch_init): Update.
4756 * frv-tdep.c (frv_gdbarch_init): Update.
4757 * cris-tdep.c (cris_gdbarch_init): Update.
4758 * avr-tdep.c (avr_gdbarch_init): Update.
4759 * arm-tdep.c (arm_gdbarch_init): Update.
4760 * sparc-tdep.c (sparc_pop_frame): Update.
4761 * rs6000-tdep.c (rs6000_pop_frame): Update.
4762 * remote.c (init_remote_state): Update.
4763 (remote_prepare_to_store): Update.
4764 * remote-vx.c (vx_prepare_to_store): Update.
4765 * remote-sds.c (sds_fetch_registers): Update.
4766 (sds_prepare_to_store): Update.
4767 * remote-array.c: Update.
4768 * regcache.c (init_legacy_regcache_descr): Update.
4769 (init_regcache_descr): Update.
4770 * mips-tdep.c (mips_eabi_extract_return_value): Update.
4771 (mips_o64_extract_return_value): Update.
4772 * irix5-nat.c (fetch_core_registers): Update.
4773 * irix4-nat.c (fetch_core_registers): Update.
4774 * i386-tdep.h: Update.
4775 * hppa-tdep.c (pa_do_registers_info): Update.
4776 (pa_do_strcat_registers_info): Update.
4777 * cris-tdep.c (cris_register_bytes_ok): Update.
4778 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4779 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
4780 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
4781 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
4782 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
4783 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
4784 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
4785 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
4786 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
4787 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
4788 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
4789 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
4790 (REGISTER_BYTES_OK): Update.
4791 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
4792 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
4793
4794 2003-05-16 Ian Lance Taylor <ian@airs.com>
4795
4796 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
4797 (vax_print_insn, print_insn_arg): Remove static functions.
4798 (vax_gdbarch_init): Call set_gdbarch_print_insn with
4799 print_insn_vax from opcodes library.
4800 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
4801
4802 2003-05-15 Andrew Cagney <cagney@redhat.com>
4803
4804 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
4805 * target.h (memory_breakpoint_from_pc): Delete declaration.
4806 * mem-break.c (memory_breakpoint_from_pc): Delete function.
4807 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
4808 * monitor.c (monitor_insert_breakpoint): Use
4809 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
4810 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
4811 * gdbarch.h, gdbarch.c: Re-generate.
4812 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
4813 (sparc_gdbarch_init): Set breakpoint_from_pc to
4814 sparc_breakpoint_from_pc.
4815 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
4816 (BREAKPOINT_FROM_PC): Define.
4817 (sparc_breakpoint_from_pc): Declare.
4818 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
4819 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
4820 (BREAKPOINT_FROM_PC): Define.
4821 (BREAKPOINT): Delete macro.
4822 * target.h: Update comment.
4823 * s390-tdep.c (s390_gdbarch_init): Update comments.
4824 * remote.c: Update comments.
4825 * remote-mips.c: Update comments.
4826 * proc-api.c (write_with_trace): Do not check for a breakpoint.
4827 * mem-break.c: Update comment.
4828 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
4829 (ia64_memory_insert_breakpoint): Update.
4830 * config/sparc/tm-sparc.h: Update comment.
4831 * config/pa/tm-hppa64.h: Update comment.
4832 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4833 (rs6000_breakpoint_from_pc): Update.
4834 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4835 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
4836 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
4837 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
4838 (mips_breakpoint_from_pc): Update.
4839 (mips_dump_tdep): Update.
4840
4841 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
4842 * minsyms.c (lookup_minimal_symbol): Inline
4843 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
4844
4845 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
4846 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4847 * p-lang.c (pascal_printstr): Ditto.
4848 * objc-lang.c (objc_printstr): Ditto.
4849 * m2-lang.c (m2_printstr): Ditto.
4850 * jv-valprint.c (java_print_value_fields): Ditto.
4851 * f-lang.c (f_printstr): Ditto.
4852 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
4853 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
4854 for repeat_count_threshold.
4855 * Makefile.in (cp-valprint.o): Update dependencies.
4856
4857 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
4858
4859 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
4860 (examine_prologue): Support looking through leaf functions, knowing
4861 they start with mov r2,r12. Support skipping over indirect stores
4862 of the input registers. Upon hitting a non-nop branch instruction
4863 or predicated instruction, bail out by setting lim_pc to the current
4864 pc value in the loop. At the end, if the lim_pc value is still
4865 beyond our calculated value and we have trust_limit set,
4866 use the lim_pc value.
4867
4868 2003-05-15 Andrew Cagney <cagney@redhat.com>
4869
4870 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
4871 generic_find_dummy_frame.
4872 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
4873 (deprecated_generic_find_dummy_frame): Update.
4874 (deprecated_read_register_dummy): Update.
4875 * frame.c (deprecated_generic_get_saved_register): Update.
4876
4877 2003-05-15 Theodore A. Roth <troth@openavr.org>
4878
4879 * avr-tdep.c (avr_breakpoint_from_pc): New function.
4880 (avr_gdbarch_init): Set breakpoint_from_pc method.
4881
4882 2003-05-15 Andrew Cagney <cagney@redhat.com>
4883
4884 * regcache.c (build_regcache): Set deprecated_register_valid
4885 directly.
4886 (deprecated_grub_regcache_for_register_valid): Delete function.
4887 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
4888 declaration.
4889
4890 2003-05-15 David Carlton <carlton@bactrian.org>
4891
4892 Committed by Elena Zannoni <ezannoni@redhat.com>
4893 * symtab.c (lookup_symbol_aux): Delete calls to
4894 lookup_symbol_aux_minsyms.
4895 (lookup_symbol_aux_minsyms): Comment out function and
4896 prototype. Delete lookup by mangled name.
4897
4898 2003-05-14 Kevin Buettner <kevinb@redhat.com>
4899
4900 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
4901 correctly indicate an empty stack and ``stack_allocated'' to the
4902 indicate the number of elements initially allocated.
4903 (dwarf_expr_grow_stack): Simplify method for computing new
4904 stack size. Don't loop infinitely if ``stack_len'' is zero.
4905 (execute_stack_op): Move ``ctx->in_reg'' initialization
4906 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
4907 be used in conjuction with DW_OP_piece. Revise error message
4908 accordingly.
4909
4910 2003-05-14 Theodore A. Roth <troth@openavr.org>
4911
4912 * MAINTAINERS: Update my email address.
4913 * avr-tdep.c: Ditto.
4914
4915 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
4916
4917 * symtab.h (enum domain_enum): Rename from namespace_enum.
4918 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
4919 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
4920 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
4921 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
4922 TYPES_NAMESPACE, METHODS_NAMESPACE.
4923 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
4924 (struct symbol, struct partial_symbol): Rename field
4925 'namespace_enum namespace' to 'domain_enum domain'.
4926 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
4927 Delete old define kludge for namespace.
4928
4929 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
4930 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
4931 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
4932 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
4933 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
4934 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
4935 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
4936 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
4937 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
4938 occurrences of the above.
4939
4940 2003-05-14 Ian Lance Taylor <ian@airs.com>
4941
4942 * Makefile.in (install-only): Use $(SHELL) when running
4943 mkinstalldirs.
4944
4945 2003-05-13 Ian Lance Taylor <ian@airs.com>
4946
4947 * MAINTAINERS (write after approval): Add myself.
4948
4949 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
4950 second and third arguments.
4951 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4952 * ser-unix.c (_initialize_ser_hardwire): Likewise.
4953
4954 2003-05-13 Andrew Cagney <cagney@redhat.com>
4955
4956 * defs.h (store_address): Delete declaration.
4957 findvar.c (store_address): Delete function.
4958 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
4959 store_unsigned_integer.
4960 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
4961 * v850-tdep.c (v850_push_arguments): Ditto.
4962 * sparc-tdep.c (sparc_get_saved_register): Ditto.
4963 * sh-tdep.c (sh64_get_saved_register): Ditto.
4964 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
4965 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
4966 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
4967 (mips_get_saved_register): Ditto.
4968 * ia64-tdep.c (ia64_get_saved_register): Ditto.
4969 (find_func_descr, ia64_push_arguments): Ditto.
4970 * i386-tdep.c (i386_push_arguments): Ditto.
4971 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
4972 * frv-tdep.c (frv_push_arguments): Ditto.
4973 * frame.c (legacy_saved_regs_prev_register): Ditto.
4974 (deprecated_generic_get_saved_register): Ditto.
4975 * findvar.c (unsigned_address_to_pointer): Ditto.
4976 * dwarf2read.c (dwarf2_const_value): Ditto.
4977 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4978 * alpha-tdep.c (alpha_push_arguments): Ditto.
4979
4980 2003-05-12 J. Brobecker <brobecker@gnat.com>
4981
4982 * NEWS: Mention that the hppa-hpux port has been partially
4983 multiarched (32bit ABIT only, so far).
4984
4985 2003-05-11 Andrew Cagney <cagney@redhat.com>
4986
4987 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
4988 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
4989 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
4990 sim/testsuite/sim/arm/misaligned2.ms, and
4991 sim/testsuite/sim/arm/misaligned3.ms.
4992 * disasm.h (struct ui_file): Add opaque struct declaration.
4993 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
4994 * frame.h (struct ui_file): Ditto.
4995
4996 2003-05-11 Mark Kettenis <kettenis@gnu.org>
4997
4998 * value.h: Pretty print.
4999
5000 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5001
5002 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5003
5004 2003-05-08 Andrew Cagney <cagney@redhat.com>
5005
5006 * regcache.h (max_register_size): Delete declaration.
5007 * regcache.c (max_register_size): Delete function.
5008 (struct regcache_descr): Delete field "max_register_size".
5009 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5010 registers fit in MAX_REGISTER_SIZE.
5011 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5012 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5013 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5014 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5015 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5016 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5017 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5018 * dve3900-rom.c, hppa-tdep.c: Ditto.
5019
5020 2003-05-08 David Carlton <carlton@math.stanford.edu>
5021
5022 * valops.c (push_word): Fix typo.
5023
5024 2003-05-08 Andrew Cagney <cagney@redhat.com>
5025
5026 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5027 * gdbarch.h: Re-generate.
5028 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5029 (legacy_max_register_raw_size): Delete declaration.
5030 * regcache.c (legacy_max_register_raw_size): Delete function.
5031 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5032 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5033 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5034 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5035 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5036 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5037 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5038 * findvar.c, dwarf2cfi.c: Ditto.
5039
5040 2003-05-08 Andrew Cagney <cagney@redhat.com>
5041
5042 * mips-tdep.c (read_signed_register): New function, moved to here
5043 from "regcache.c".
5044 (read_signed_register_pid): Ditto.
5045 * regcache.c (read_signed_register_pid): Delete function, moved to
5046 "mips-tdep.c".
5047 (read_signed_register): Ditto.
5048 * regcache.h (read_signed_register): Delete declaration.
5049 (read_signed_register_pid): Delete declaration.
5050
5051 2003-05-08 Andrew Cagney <cagney@redhat.com>
5052
5053 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5054 * gdbarch.h: Re-generate.
5055 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5056 (legacy_max_register_virtual_size): Delete declaration.
5057 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5058 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5059 * tracepoint.c (memrange_sortmerge): Ditto.
5060 * sparc-tdep.c (sparc_print_registers): Ditto.
5061 * regcache.c (legacy_max_register_virtual_size): Delete function.
5062
5063 2002-05-08 J. Brobecker <brobecker@gnat.com>
5064
5065 * fork-child.c (escape_bang_in_quoted_argument): New function.
5066 (fork_inferior): Escape '!' characters in quoted arguments
5067 only when needed.
5068
5069 2003-05-08 J. Brobecker <brobecker@gnat.com>
5070
5071 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5072 the language of the CU is not currently supported by GDB.
5073
5074 2003-05-08 J. Brobecker <brobecker@gnat.com>
5075
5076 * defs.h (language): Add language_minimal enum value.
5077 * c-lang.c (minimal_language_defn): New language definition.
5078 (_initialize_c_language): Add the new minimal language to the list
5079 of languages known to GDB.
5080
5081 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5082
5083 * frame.c (get_frame_type): Don't attempt to lazily initialize
5084 frame's unwinder for legacy frames.
5085
5086 2003-05-07 Andrew Cagney <cagney@redhat.com>
5087
5088 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5089 and "regcache" parameters.
5090 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5091
5092 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5093
5094 * dwarf2read.c (dwarf_decode_lines): Only use output of
5095 check_cu_functions() when calling record_line(). Do not update
5096 the current address.
5097
5098 2003-05-07 Andrew Cagney <cagney@redhat.com>
5099
5100 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5101 code.
5102
5103 2003-05-07 Jim Blandy <jimb@redhat.com>
5104
5105 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5106 'maint info symtabs' and 'maint info psymtabs'.
5107 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5108 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5109 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5110 Declarations updated.
5111 * maint.c (maintenance_list_command): Delete.
5112 (_initialize_maint_cmds): Update calls to add_cmd.
5113 * gdbcmd.h (maintenancelistlist): Delete declaration.
5114 * cli/cli-cmds.c (maintenancelistlist): Delete.
5115 (init_cmd_lists): Don't initialize it.
5116 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5117
5118 2003-05-07 Andrew Cagney <cagney@redhat.com>
5119
5120 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5121 "regcache".
5122 (d10v_print_registers_info): Update.
5123 (d10v_dmap_register, d10v_imap_register): Delete functions.
5124 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5125 and "imap_register".
5126 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5127 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5128 * arch-utils.c (generic_remote_translate_xfer_address): Add
5129 "regcache" and "gdbarch" parameters.
5130 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5131 parameter. Change class to multi-arch.
5132 * gdbarch.h, gdbarch.c: Re-generate.
5133 * remote.c (remote_xfer_memory): Use
5134 gdbarch_remote_translate_xfer_address.
5135
5136 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5137
5138 * infrun.c (prev_pc): Move declaration ahead of proceed().
5139 (proceed): Refresh prev_pc value before resuming.
5140 (stop_stepping): Remove code to refresh prev_pc.
5141
5142 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5143
5144 * nto-tdep.c: Removed stray comment.
5145
5146 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5147
5148 * i386-nto-tdep.c: Fix old K&R function definitions.
5149 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5150 Also change add_show_from_set() call to add_setshow_cmd().
5151 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5152
5153 2003-05-05 Andrew Cagney <cagney@redhat.com>
5154
5155 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5156 (fprint_dummy_frames): New function.
5157 (maintenance_print_dummy_frames): New function.
5158 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5159 * frame.c (fprint_frame_id): Make global.
5160 * frame.h (fprint_frame_id): Declare.
5161 * Makefile.in (dummy-frame.o): Update dependencies.
5162
5163 2003-05-05 Andrew Cagney <cagney@redhat.com>
5164
5165 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5166 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5167 SIZEOF_CALL_DUMMY_WORDS.
5168 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5169 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5170 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5171 CALL_DUMMY_BREAKPOINT_OFFSET.
5172 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5173 CALL_DUMMY_START_OFFSET.
5174 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5175 * gdbarch.h, gdbarch.c: Re-generate.
5176 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5177 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5178 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5179 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5180 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5181 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5182 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5183 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5184 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5185 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5186 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5187 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5188 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5189 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5190 * config/sparc/tm-sparc.h: Update.
5191
5192 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5193
5194 * configure.tgt: Add i[3456]86-*-nto*.
5195 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5196 * nto-tdep.c: New file. Neutrino target support routines.
5197 * nto-tdep.h: New file. Neutrino target header.
5198 * config/tm-qnxnto.h: New file.
5199 * config/i386/i386nto.mt: New file.
5200 * config/i386/tm-i386nto.h: New file.
5201
5202 2003-05-04 Andrew Cagney <cagney@redhat.com>
5203
5204 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5205 (load_infrun_state): Ditto.
5206 (struct thread_info): Drop "prev_func_name" field.
5207 * thread.c (load_infrun_state): Update.
5208 (save_infrun_state): Update.
5209 * infrun.c (prev_func_name): Delete variable.
5210 (init_wait_for_inferior): Do not clear prev_func_name.
5211 (stop_stepping, keep_going, context_switch): Do not swap
5212 prev_func_name.
5213 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5214 instead of PC_IN_SIGTRAMP.
5215
5216 2003-05-04 Andrew Cagney <cagney@redhat.com>
5217
5218 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5219 REGISTER_BYTE with register_offset_hack.
5220 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5221 that REGISTER_BYTE is consistent with the regcache.
5222 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5223 * gdbarch.h, gdbarch.c: Regenerate.
5224
5225 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5226
5227 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5228 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5229
5230 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5231
5232 2003-05-03 J. Brobecker <brobecker@gnat.com>
5233
5234 From Thierry Schneider <tpschneider1@yahoo.com>
5235 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5236 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5237 (mi-cmd-symbol.o): Add rule.
5238
5239 2003-05-03 Andrew Cagney <cagney@redhat.com>
5240
5241 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5242 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5243 * gdbarch.h, gdbarch.c: Re-generate.
5244 * d10v-tdep.c (d10v_push_dummy_code): New function.
5245 (d10v_gdbarch_init): Set push_dummy_code.
5246 * infcall.c (legacy_push_dummy_code): New function.
5247 (generic_push_dummy_code): New function.
5248 (push_dummy_code): New function.
5249 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5250 instead of dummy_addr, to push_dummy_call. Move call to
5251 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5252 switch.
5253 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5254
5255 2003-05-03 Andrew Cagney <cagney@redhat.com>
5256
5257 * disasm.h (print_insn): Declare.
5258 * disasm.c (init_gdb_disassemble_info): New function.
5259 (gdb_disassembly): Call init_gdb_disassemble_info.
5260 (gdb_print_insn): New function.
5261 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5262 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5263 * mcore-tdep.c: Include "disasm.h"
5264 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5265 * d10v-tdep.c: Include "disasm.h".
5266 (display_trace): Call gdb_print_insn, instead of print_insn.
5267 (print_insn): Delete function.
5268 * printcmd.c: Include "disasm.h".
5269 (print_insn): Delete function.
5270 (print_formatted): Call gdb_print_insn, instead of print_insn.
5271 * Makefile.in (printcmd.o): Update dependencies.
5272 (mcore-tdep.o, d10v-tdep.o): Ditto.
5273
5274 2003-05-02 Andrew Cagney <cagney@redhat.com>
5275
5276 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5277 PC_REGNUM, re-indent.
5278 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5279 PC_REGNUM isn't set.
5280
5281 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5282 * gdbarch.h, gdbarch.c: Re-generate.
5283 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5284 register_virtual_size, pc_regnum, or register_bytes.
5285 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5286 (d10v_register_type): Use D10V_PC_REGNUM.
5287 (d10v_print_registers_info, d10v_read_pc): Ditto.
5288 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5289 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5290
5291 2003-05-02 David Carlton <carlton@bactrian.org>
5292
5293 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5294 the name with mstrsave.
5295
5296 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5297
5298 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5299 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5300 (host_charset_name, target_charset_name): New vars for use by
5301 set/show commands.
5302 (host_charset_enum, target_charset_enum): New enums for set/show
5303 commands.
5304 (set_charset_sfunc, set_host_charset_sfunc,
5305 set_target_charset_sfunc): New functions.
5306 (set_host_charset, set_target_charset): Make static.
5307 (list_charsets, set_host_charset_command,
5308 set_target_charset_command): Delete functions.
5309 (show_charset_command): Rewrite as....
5310 (show_charset): Hook this up with the set/show command mechanism.
5311 (_initialize_charset): Change names of charsets to match the
5312 set/show enums. Use host_charset_name and target_charset_name.
5313 Use set/show mechanism for charset, host-charset, target-charset
5314 commands. Do not make 'show host-charset' and 'show
5315 target-charset' be aliases of 'show charset'.
5316
5317 * charset.h (set_host_charset, set_target_charset): Don't export,
5318 they are not used outside the file.
5319
5320 2003-05-01 Andrew Cagney <cagney@redhat.com>
5321
5322 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5323 (gdb_disassembly): Make "di" non static, always initialize and
5324 cleanup. Always use dis_asm_read_memory.
5325 (gdb_dis_asm_read_memory): Delete function.
5326
5327 2003-05-01 Andrew Cagney <cagney@redhat.com>
5328
5329 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5330 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5331
5332 2003-04-30 Andrew Cagney <cagney@redhat.com>
5333
5334 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5335 "tm_print_insn_info".
5336 (TARGET_PRINT_INSN_INFO): Delete macro.
5337 (dis_asm_read_memory): Delete function declaration.
5338 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5339 (tm_print_insn_info): Delete variable definition.
5340 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5341 * gdbarch.h, gdbarch.c: Re-generate.
5342 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5343 "deprecated_tm_print_insn_info".
5344 * mcore-tdep.c (mcore_dump_insn): Ditto.
5345 * mips-tdep.c (mips_gdbarch_init): Ditto.
5346 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5347 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5348 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5349 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5350 instead of TARGET_PRINT_INSN_INFO, add comment.
5351 * s390-tdep.c (s390_get_frame_info): Instead of
5352 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5353 (s390_check_function_end, s390_is_sigreturn): Ditto.
5354 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5355 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5356 * disasm.c: Include "gdbcore.h".
5357 (_initialize_disasm): New function, initialize
5358 "deprecated_tm_print_insn_info".
5359 (deprecated_tm_print_insn_info): New variable.
5360 (dis_asm_read_memory): Moved from "corefile.c", made static.
5361 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5362 * Makefile.in (disasm.o): Update dependencies.
5363
5364 2003-04-30 Andrew Cagney <cagney@redhat.com>
5365
5366 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5367
5368 2003-04-29 Adam Fedor <fedor@gnu.org>
5369
5370 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5371 * infcall.c (find_function_addr): Make non-static.
5372 * infcall.h (find_function_addr): Declare.
5373 * Makefile.in (eval.o): Update dependencies.
5374
5375 2003-04-28 Adam Fedor <fedor@gnu.org>
5376
5377 * symtab.c (symbol_find_demangled_name): Check for and demangle
5378 ObjC symbols.
5379 (symbol_init_demangled_name): Init for language_objc as well.
5380
5381 2003-04-28 Andrew Cagney <cagney@redhat.com>
5382
5383 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5384 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5385 * gdbarch.h, gdbarch.c: Re-generate.
5386 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5387 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5388 * inferior.h (deprecated_read_fp): Rename read_fp.
5389 (generic_target_read_fp): Delete declaration.
5390 * regcache.c (generic_target_read_fp): Delete function.
5391 (deprecated_read_fp): Replace read_fp, use
5392 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5393 * d10v-tdep.c (d10v_read_fp): Delete function.
5394 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5395
5396 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5397 deprecated_target_read_fp to generic_target_read_fp.
5398 * sh-tdep.c (sh_gdbarch_init): Ditto.
5399 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5400 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5401 * frv-tdep.c (frv_gdbarch_init): Ditto.
5402
5403 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5404 deprecated_fp_regnum.
5405 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5406 * vax-tdep.c (vax_gdbarch_init): Ditto.
5407 * v850-tdep.c (v850_gdbarch_init): Ditto.
5408 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5409 * sh-tdep.c (sh_gdbarch_init): Ditto.
5410 * s390-tdep.c (s390_gdbarch_init): Ditto.
5411 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5412 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5413 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5414 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5415 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5416 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5417 * i386-tdep.c (i386_gdbarch_init): Ditto.
5418 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5419 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5420 * frv-tdep.c (frv_gdbarch_init): Ditto.
5421 * cris-tdep.c (cris_gdbarch_init): Ditto.
5422 * avr-tdep.c (avr_gdbarch_init): Ditto.
5423 * arm-tdep.c (arm_gdbarch_init): Ditto.
5424 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5425
5426 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5427 * v850-tdep.c (v850_gdbarch_init): Ditto.
5428 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5429 * sh-tdep.c (sh_gdbarch_init): Ditto.
5430 * s390-tdep.c (s390_gdbarch_init): Ditto.
5431 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5432 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5433 * mips-tdep.c (mips_gdbarch_init): Ditto.
5434 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5435 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5436 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5437 * frv-tdep.c (frv_gdbarch_init): Ditto.
5438 * avr-tdep.c (avr_gdbarch_init): Ditto.
5439 * arm-tdep.c (arm_gdbarch_init): Ditto.
5440
5441 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5442 DEPRECATED_FP_REGNUM.
5443 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5444 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5445 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5446 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5447 (sparc32_register_virtual_type): Ditto.
5448 * sh-tdep.c (sh64_frame_chain): Ditto.
5449 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5450 (sh_nofp_frame_init_saved_regs): Ditto.
5451 (sh64_nofp_frame_init_saved_regs): Ditto.
5452 (sh_fp_frame_init_saved_regs): Ditto.
5453 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5454 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5455 * procfs.c (procfs_fetch_registers): Ditto.
5456 (procfs_store_registers): Ditto.
5457 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5458 (store_inferior_registers, fetch_core_registers): Ditto.
5459 (fetch_kcore_registers, clear_regs): Ditto.
5460 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5461 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5462 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5463 * nlm/i386.c (do_status): Ditto.
5464 * mipsv4-nat.c (supply_gregset): Ditto.
5465 * mips-tdep.c: Ditto for comments.
5466 * mips-nat.c (fetch_inferior_registers): Ditto.
5467 (store_inferior_registers, fetch_core_registers): Ditto.
5468 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5469 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5470 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5471 (i386_do_pop_frame, i386_register_type): Ditto.
5472 * hppa-tdep.c (hppa_frame_chain): Ditto.
5473 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5474 (hppa_pop_frame, hppa_read_fp): Ditto.
5475 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5476 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5477 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5478 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5479 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5480 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5481 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5482 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5483 * blockframe.c: Ditto for comments.
5484 * arch-utils.h: Ditto for comments.
5485 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5486 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5487 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5488 * alpha-tdep.h: Ditto for comments.
5489 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5490 (alpha_cannot_store_register): Ditto.
5491 (alpha_push_dummy_frame): Ditto.
5492 * alpha-nat.c (supply_gregset): Ditto.
5493
5494 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5495 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5496 * config/sparc/tm-sparc.h: Update comment.
5497
5498 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5499 deprecated_read_fp instead of TARGET_READ_FP.
5500 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5501 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5502 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5503 deprecated_read_fp instead of read_fp.
5504 * s390-tdep.c (s390_push_arguments): Ditto.
5505 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5506 * frame.h: Ditto in comments.
5507 * frame.c (legacy_get_prev_frame): Ditto.
5508 * dummy-frame.c (dummy_frame_this_id): Ditto.
5509 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5510
5511 2003-04-28 Andrew Cagney <cagney@redhat.com>
5512
5513 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5514 * gdbarch.h, gdbarch.c: Re-generate.
5515 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5516 * vax-tdep.c (_initialize_vax_tdep): Update.
5517 * v850-tdep.c (_initialize_v850_tdep): Update.
5518 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5519 * s390-tdep.c (_initialize_s390_tdep): Update.
5520 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5521 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5522 * mips-tdep.c (_initialize_mips_tdep): Update.
5523 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5524 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5525 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5526 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5527 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5528 * frv-tdep.c (_initialize_frv_tdep): Update.
5529 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5530 (_initialize_cris_tdep): Update.
5531 * arch-utils.c (legacy_print_insn): Update.
5532 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5533
5534 2003-04-26 Adam Fedor <fedor@gnu.org>
5535
5536 * linespec.c (decode_objc): New function to decode ObjC calls
5537 (decode_line_1): Check for ObjC calls (using decode_objc)
5538 * Makefile (linespec.o): Update dependencies.
5539
5540 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
5541
5542 * breakpoint.h (struct breakpoint_ops): New.
5543 (struct breakpoint): Add ops member.
5544
5545 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5546 (mention): Use new breakpoint ops member.
5547 (set_raw_breakpoint): Initialize ops field to NULL.
5548 (print_exception_catchpoint, print_one_exception_catchpoint)
5549 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5550 (gnu_v3_exception_catchpoint_ops): New.
5551 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5552
5553 2003-04-25 Adam Fedor <fedor@gnu.org>
5554
5555 * Makefile.in (COMMON_OBS): Add objc-lang.o
5556
5557 2003-04-25 Andrew Cagney <cagney@redhat.com>
5558
5559 * d10v-tdep.c (print_insn): Delete function.
5560 (display_trace): Use TARGET_PRINT_INSN.
5561 (_initialize_d10v_tdep): Do not set tm_print_insn.
5562 (d10v_gdbarch_init): Set print_insn.
5563
5564 2003-04-25 Andrew Cagney <cagney@redhat.com>
5565
5566 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5567 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5568 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5569 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5570 (nr_dmap_regs, a0_regnum): ... new functions.
5571 (d10v_print_registers_info): Use a0_regnum, use register_size.
5572 (d10v_register_byte): Delete function.
5573 (d10v_register_raw_size): Delete function.
5574 (d10v_register_type): Use a0_regnum.
5575 (d10v_print_registers_info): Use a0_regnum.
5576 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5577 (d10v_gdbarch_init): Do not set register_byte or
5578 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5579 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5580 extract_address.
5581 (trace_command): Use XCALLOC.
5582 (print_insn): Delete reference to tm_print_insn.
5583 (saved_regs_unwinder): Use store_unsigned_integer instead of
5584 store_address.
5585 * frame.h (FRAME_OBSTACK_CALLOC): Define
5586
5587 2003-04-25 David Carlton <carlton@bactrian.org>
5588
5589 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5590
5591 2003-04-24 Adam Fedor <fedor@gnu.org>
5592
5593 * objc-lang.c: Include "valprint.h"
5594 * Makefile.in (objc-lang.o): Update dependencies.
5595
5596 2003-04-24 Adam Fedor <fedor@gnu.org>
5597
5598 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5599 architecture dependant compilation and mark as unimplemented
5600 (until they get put in the gdbarch vector).
5601
5602 2003-04-23 David Carlton <carlton@bactrian.org>
5603
5604 * cp-support.c (cp_find_first_component): Accept 'operator' in
5605 more locations.
5606
5607 2003-04-23 Andrew Cagney <cagney@redhat.com>
5608
5609 * infcall.c (call_function_by_hand): Eliminate redundant
5610 indentation. Move "saved_async" and "old_cleanups" to where they
5611 are needed.
5612
5613 2003-04-23 Andrew Cagney <cagney@redhat.com>
5614
5615 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5616 and "buffer". Move the "name" code to where it is needed.
5617
5618 2003-04-23 Andrew Cagney <cagney@redhat.com>
5619
5620 * infcall.c (call_function_by_hand): Move variables "start_sp",
5621 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5622 code to ON_STACK switch branch.
5623
5624 2003-04-23 Andrew Cagney <cagney@redhat.com>
5625
5626 * infcall.c (call_function_by_hand): Make declaration of "i",
5627 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5628 lint.
5629
5630 2003-04-23 Andrew Cagney <cagney@redhat.com>
5631
5632 * infcall.c (call_function_by_hand): Delete variable
5633 "n_method_args". Localize "param_type"'s declaration to the loop
5634 that it is used. Reinstate code assigning to said variable -
5635 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5636 Rationalize code using "param_type".
5637
5638 2003-04-22 Andrew Cagney <cagney@redhat.com>
5639
5640 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5641 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5642 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5643 to DEPRECATED_PUSH_RETURN_ADDRESS.
5644
5645 2003-04-22 Kevin Buettner <kevinb@redhat.com>
5646
5647 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5648 on the DWARF2 register number prior to fetching a register.
5649
5650 2003-04-22 J. Brobecker <brobecker@gnat.com>
5651
5652 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5653 Update all the tests using SOFT_FLOAT considering the fact that
5654 this macro was always set to 0.
5655 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5656 considering the fact that this macro was always set to 0.
5657 * hppa-tdep.h (hppa_store_return_value): Likewise.
5658 (hppa_extract_return_value): Likewise.
5659
5660 2003-04-22 J. Brobecker <brobecker@gnat.com>
5661
5662 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5663 the hppa-pro target only.
5664
5665 2003-04-21 J. Brobecker <brobecker@gnat.com>
5666
5667 Ongoing multi-arch conversion effort for HP/UX:
5668 * config/pa/tm-hppa.h: Move all macro that are no longer
5669 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5670 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5671
5672 2003-04-21 J. Brobecker <brobecker@gnat.com>
5673
5674 * config/pa/tm-hppa.h: Obsolete a section that was only used
5675 for hppa-pro.
5676
5677 2003-04-21 J. Brobecker <brobecker@gnat.com>
5678
5679 Ongoing multi-arch conversion for HP/UX.
5680 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5681 if already defined (allows hppa64 to stay non-multiarched for now).
5682 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5683
5684 2003-04-21 Andrew Cagney <cagney@redhat.com>
5685
5686 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5687
5688 2003-04-21 Andrew Cagney <cagney@redhat.com>
5689
5690 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5691 "i386_num_mmx_regs".
5692
5693 2003-04-21 Andrew Cagney <cagney@redhat.com>
5694
5695 * infcall.c: New file.
5696 * infcall.h: New file.
5697 * valarith.c: Include "infcall.h".
5698 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5699 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5700 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5701 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5702 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5703 (SFILES): Add "infcall.c"
5704 (COMMON_OBS): Add "infcall.o".
5705 (infcall.o): Specify dependencies.
5706 * value.h (call_function_by_hand): Delete declaration.
5707 * inferior.h (run_stack_dummy): Delete declaration.
5708 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5709 (run_stack_dummy): Move to "infcall.c", merged into
5710 call_function_by_hand.
5711 * valops.c (call_function_by_hand): Moved to "infcall.c".
5712 (find_function_addr, value_arg_coerce): Ditto.
5713 (unwindonsignal_p, coerce_float_to_double): Ditto.
5714 (_initialize_valops): Move "set/show coerce-float-to-double", and
5715 "set/show unwindonsignal" commands to "infcall.c".
5716 * v850-tdep.c, target.h: Update comments.
5717 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5718 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5719 (sh64_init_extra_frame_info): Update comments.
5720 * mn10300-tdep.c: Update comments.
5721 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5722 * config/sparc/tm-sparc.h: Update comments.
5723 * breakpoint.h: Update comments.
5724 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5725 * arm-tdep.c: Update comment.
5726
5727 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5728
5729 * i386-tdep.c (i386_num_register_names): New variable.
5730 (i386_num_mmx_regs): Renamed from mmx_num_regs.
5731 (MM0_REGNUM): Remove redundant parentheses in define.
5732 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
5733 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
5734 i386_mxcsr_regnum_p): Remove redundant parentheses.
5735 (i386_register_name): Use i386_num_register_names.
5736
5737 * i386-tdep.c (i386_extract_return_value,
5738 i386_store_return_value): Correct check for availability of
5739 floating-point registers.
5740
5741 * i386-tdep.c (i386_frame_num_args): Remove function.
5742 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
5743
5744 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
5745 mmx_regnum_to_fp_regnum. Adjust all callers.
5746
5747 * i386-tdep.c (i386_get_longjmp_target): Use
5748 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
5749 and TARGET_CHAR_BIT. Use extract_typed_address instead of
5750 extract_address.
5751
5752 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5753
5754 * core-regset.c: Update comments to reflect reality. Re-order
5755 includes.
5756 (fetch_core_registers): Use switch instead of if. Remove
5757 redundant prototype.
5758
5759 2003-04-18 Jim Blandy <jimb@redhat.com>
5760
5761 * s390-tdep.c (s390_frame_align): New function.
5762 (s390_gdbarch_init): Register it with the gdbarch object.
5763
5764 2003-04-17 Richard Henderson <rth@redhat.com>
5765
5766 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
5767
5768 2003-04-17 Michael Snyder <msnyder@redhat.com>
5769 Karen Bennet <bennet@redhat.com>
5770
5771 Committed by Elena Zannoni <ezannoni@redhat.com>
5772 * gdb_gcore.sh: New script to create a core dump of a process.
5773
5774 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
5775
5776 * values.c (value_being_returned): Don't fetch the return
5777 value if the return type is void.
5778
5779 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5780
5781 * thread-db.c: Reindented.
5782
5783 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5784
5785 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
5786 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
5787 as types.
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813 2003-04-16 Kevin Buettner <kevinb@redhat.com>
5814
5815 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
5816 the size of ``long double'' to 16, instead of 8.
5817
5818 2003-04-16 Mark Kettenis <kettenis@gnu.org>
5819
5820 * i386-linux-nat.c: Add some whitespace to make things more
5821 readable.
5822 (fetch_register, store_register, fetch_inferior_registers,
5823 store_inferior_registers): Get rid of assignment in if-statement.
5824 (store_register): Fix typo in error message.
5825
5826 2003-04-16 Andrew Cagney <cagney@redhat.com>
5827
5828 * utils.c (xmmalloc): Always allocate something, matches
5829 libiberty/xmalloc's semantics.
5830 (xmrealloc, xmcalloc): Ditto.
5831
5832 2003-04-16 Andrew Cagney <cagney@redhat.com>
5833
5834 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5835 update comments.
5836 (get_frame_type): Initialize unwind and type when needed.
5837 (get_frame_id, frame_register_unwind): Ditto.
5838
5839 2003-04-16 Andrew Cagney <cagney@redhat.com>
5840
5841 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
5842 obsolete.
5843 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
5844 * sparcl-stub.c: Obsolete file.
5845 * config/sparc/tm-sparclet.h: Obsolete file.
5846 * sparclet-stub.c: Obsolete file.
5847 * sparclet-rom.c: Obsolete file.
5848 * sparcl-tdep.c: Obsolete file.
5849 * config/sparc/tm-sparclite.h: Obsolete file.
5850 * config/sparc/sparclite.mt: Obsolete file.
5851 * config/sparc/sparclet.mt: Obsolete file.
5852 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
5853 sparc86x-*-* obsolete.
5854
5855 2003-04-15 David Carlton <carlton@math.stanford.edu>
5856
5857 * Makefile.in (SFILES): Add cp-namespace.c.
5858 (COMMON_OBS): Add cp-namespace.o.
5859 (block.o): Depend on gdb_obstack_h and cp_support_h.
5860 (buildsym.o): Depend on cp_support_h.
5861 (cp-namespace.o): New.
5862 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
5863 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
5864 (dwarf2read.o): Depend on cp_support_h.
5865 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
5866 * dwarf2read.c (process_die): Set processing_has_namespace_info,
5867 processing_current_namespace.
5868 (read_namespace): Update processing_current_namespace; check for
5869 anonymous namespaces.
5870 (dwarf2_name): New function.
5871 (dwarf2_extension): Ditto.
5872 * cp-support.h: Update copyright, contributors.
5873 Add inclusion guards.
5874 Add opaque declaration for structs obstack, block, symbol.
5875 (struct using_direct): New struct.
5876 Add declarations for cp_find_first_component,
5877 cp_entire_prefix_len, processing_has_namespace_info,
5878 processing_current_namespace, cp_is_anonymous,
5879 cp_add_using_directive, cp_initialize_namespace,
5880 cp_finalize_namespace, cp_set_block_scope,
5881 cp_scan_for_anonymous_namespaces.
5882 * cp-namespace.c: New file.
5883 * cp-support.c: Update copyright.
5884 Include ctype.h, gdb_assert.h, gdbcmd.h.
5885 New variable maint_cplus_cmd_list.
5886 (cp_find_first_component): New function.
5887 (cp_entire_prefix_len, maint_cplus_command)
5888 (first_component_command, _initialize_cp_support): Ditto.
5889 * buildsym.c: Include cp-support.h.
5890 New variable using_list.
5891 (add_symbol_to_list): Check for anonymous namespaces.
5892 (finish_block): Set block's scope.
5893 (start_symtab): Initialize C++ namespace support.
5894 (end_symtab): Finalize C++ namespace support.
5895 * block.h: Add opaque declarations for structs
5896 block_namespace_info, using_direct, and obstack.
5897 Add declarations for block_set_scope and block_set_using.
5898 (struct block): Add 'language_specific' member.
5899 (BLOCK_NAMESPACE): New macro.
5900 * block.c: Include gdb_obstack.h and cp-support.h.
5901 (struct block_namespace_info): New struct.
5902 (block_set_scope): New function.
5903 (block_set_using, block_initialize_namespace): Ditto.
5904
5905 2003-04-14 Kevin Buettner <kevinb@redhat.com>
5906
5907 * solib-svr4.c (svr4_have_link_map_offsets): New function.
5908 (locate_base): Return early if there aren't any link map offsets.
5909 (svr4_solib_create_inferior_hook): Warn if shared library support
5910 is unavailable.
5911
5912 2003-04-14 David Carlton <carlton@math.stanford.edu>
5913
5914 * symtab.c (symbol_set_names): Add prefix when storing Java names
5915 in hash table. Fix for PR java/1039.
5916
5917 2003-04-14 David Carlton <carlton@math.stanford.edu>
5918
5919 * symtab.c (symbol_set_names): Rename 'name' arg to
5920 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
5921 * symtab.h: Change 'name' argument in declaration of
5922 symbol_set_names to 'linkage_name'.
5923 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
5924
5925 2003-04-14 Andrew Cagney <cagney@redhat.com>
5926
5927 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
5928 return the fully sign-extended register value.
5929 (get_frame_pointer): Ditto.
5930 (mips_pop_frame): Initialize "proc_desc" after checking for a
5931 dummy frame.
5932
5933 2003-04-14 Andrew Cagney <cagney@redhat.com>
5934
5935 * mips-tdep.c (mips_push_dummy_frame): Delete function.
5936 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
5937 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
5938 (mips_push_register): Delete function.
5939 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
5940 PUSH_FP_REGNUM.
5941
5942 2003-04-14 Jim Blandy <jimb@redhat.com>
5943
5944 * symmisc.c: #include "gdb_regex.h".
5945 (maintenance_list_symtabs, maintenance_list_psymtabs): New
5946 functions.
5947 * maint.c (maintenance_list_command): New function.
5948 (_initialize_maint_cmds): Register the above as commands.
5949 * symtab.h (maintenance_list_symtabs,
5950 maintenance_list_psymtabs): New declarations.
5951 * cli/cli-cmds.c (maintenancelistlist): New variable.
5952 (init_cmd_lists): Initialize it.
5953 * cli/cli-cmds.h (maintenancelistlist): New declaration.
5954 * gdbcmd.h (maintenancelistlist): New declaration.
5955 * Makefile.in (symmisc.o): Update dependencies.
5956
5957 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
5958
5959 * s390-nat.c: Include asm/types.h for addr_t.
5960
5961 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
5962
5963 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
5964 actually incoming type.
5965
5966 2003-04-13 Andrew Cagney <cagney@redhat.com>
5967
5968 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
5969 get_next_frame and get_frame_saved_regs.
5970
5971 2003-04-13 Andrew Cagney <cagney@redhat.com>
5972
5973 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
5974 of gdbarch_num_regs.
5975
5976 2003-04-13 Andrew Cagney <cagney@redhat.com>
5977
5978 * frame.h: Mention what replaced what in "struct frame_info".
5979 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
5980 deprecated_update_frame_base_hack and
5981 deprecated_update_frame_pc_hack.
5982 * hppa-tdep.c: Ditto.
5983
5984 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5985
5986 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
5987 to read_reg and update its comment. Remove regnum member.
5988 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
5989 Don't call read_reg when setting in_reg. Call read_reg to get
5990 the frame base if it's in a register. Return the register number
5991 on the stack instead of in the context. Remove extra arguments
5992 to read_reg.
5993 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
5994 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
5995 the register number on the expression stack.
5996 (needs_frame_read_reg): Remove extra arguments.
5997
5998 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5999
6000 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6001 made non-static.
6002 (execute_stack_op): All callers updated.
6003 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6004 * dwarf2loc.c (find_location_expression): New function.
6005 (dwarf_expr_frame_base): Call it.
6006 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6007 (dwarf2_tracepoint_var_ref): New function, broken out from
6008 locexpr_tracepoint_var_ref.
6009 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6010 Make static.
6011 (loclist_read_variable, loclist_read_needs_frame): New functions.
6012 (loclist_describe_location, loclist_tracepoint_var_ref): New
6013 functions.
6014 (dwarf2_loclist_funcs): New struct location_funcs.
6015 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6016 (struct dwarf2_locexpr_baton): Add comments.
6017 (dwarf2_loclist_funcs): New extern.
6018 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6019 base_address and base_known.
6020 (dwarf_loc_buffer): New variable.
6021 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6022 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6023 (dwarf2_has_info): Initialize dwarf_loc_offset.
6024 (dwarf2_build_psymtabs): Read in .debug_loc.
6025 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6026 DWARF_LOC_SIZE.
6027 (psymtab_to_symtab_1): Likewise. Move base address calculation
6028 here, from...
6029 (dwarf2_get_pc_bounds): ... here. Use the base address from
6030 cu_header.
6031 (dwarf2_symbol_mark_computed): Handle location lists.
6032
6033 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6034
6035 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6036 if the linkage name demangled successfully.
6037
6038 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6039
6040 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6041 disassmbly_flavour): Removed.
6042
6043 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6044
6045 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6046
6047 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6048
6049 2003-04-12 Andrew Cagney <cagney@redhat.com>
6050
6051 * frame.h (struct frame_info): Move definition from here ...
6052 * frame.c (struct frame_info): ... to here.
6053
6054 2003-04-12 Andrew Cagney <cagney@redhat.com>
6055
6056 * gdbthread.h (save_infrun_state): Delete parameter
6057 "prev_func_start".
6058 (struct thread_info): Delete field "prev_func_start".
6059 (load_infrun_state): Ditto.
6060 * thread.c (load_infrun_state, save_infrun_state): Update.
6061 * infrun.c (prev_func_start): Delete variable.
6062 (context_switch, init_wait_for_inferior): Update.
6063 (stop_stepping, keep_going): Update.
6064
6065 2003-04-12 Andrew Cagney <cagney@redhat.com>
6066
6067 * gdbarch.sh: Add missing opaque declarations.
6068 * gdbarch.h: Regnerate.
6069 * symtab.h: Add missing opaque declarations.
6070 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6071 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6072 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6073 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6074 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6075 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6076 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6077 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6078 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6079 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6080 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6081 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6082 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6083
6084 2003-04-11 Andrew Cagney <cagney@redhat.com>
6085
6086 * frame.c (get_frame_id): Return this frame's "id".
6087 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6088 function start.
6089 (legacy_saved_regs_this_id): Replace function body with
6090 internal-error.
6091 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6092 FRAME_OBSTACK_ZALLOC.
6093 (create_new_frame): Mark the frame ID as valid.
6094
6095 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6096
6097 * Makefile.in (libbfd_h): Added missing setting.
6098 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6099 according to the selected ABI.
6100
6101 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6102
6103 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6104
6105 2003-04-11 Andrew Cagney <cagney@redhat.com>
6106
6107 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6108 SAVED_PC_AFTER_CALL.
6109 * gdbarch.h, gdbarch.c: Regenerate.
6110 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6111 * x86-64-tdep.c (x86_64_init_abi): Update.
6112 * vax-tdep.c (vax_gdbarch_init): Update.
6113 * v850-tdep.c (v850_gdbarch_init): Update.
6114 * sparc-tdep.c (sparc_gdbarch_init): Update.
6115 * sh-tdep.c (sh_gdbarch_init): Update.
6116 * s390-tdep.c (s390_gdbarch_init): Update.
6117 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6118 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6119 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6120 * mips-tdep.c (mips_gdbarch_init): Update.
6121 * mcore-tdep.c (mcore_gdbarch_init): Update.
6122 * m68k-tdep.c (m68k_gdbarch_init): Update.
6123 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6124 * ia64-tdep.c (ia64_gdbarch_init): Update.
6125 (ia64_saved_pc_after_call): Update declaration.
6126 * i386ly-tdep.c (i386lynx_init_abi): Update.
6127 * i386-tdep.c (i386_gdbarch_init): Update.
6128 * hppa-tdep.c (hppa_gdbarch_init): Update.
6129 * h8300-tdep.c (h8300_gdbarch_init): Update.
6130 * frv-tdep.c (frv_gdbarch_init): Update.
6131 * cris-tdep.c (cris_gdbarch_init): Update.
6132 * avr-tdep.c (avr_gdbarch_init): Update.
6133 * arm-tdep.c (arm_gdbarch_init): Update.
6134 * alpha-tdep.c (alpha_gdbarch_init): Update.
6135 * ns32knbsd-nat.c (frame_num_args): Update.
6136 * ns32k-tdep.c (umax_frame_num_args): Update.
6137 * mips-tdep.c (mips_init_frame_pc_first): Update.
6138 * infrun.c (step_over_function): Update.
6139 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6140 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6141 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6142 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6143 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6144 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6145 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6146 * arch-utils.c (init_frame_pc_default): Update.
6147 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6148 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6149 declaration.
6150
6151 2003-04-11 Andrew Cagney <cagney@redhat.com>
6152
6153 * i387-tdep.c: Update copyright.
6154 (i387_to_double): Delete function.
6155 (double_to_i387): Delete function.
6156
6157 2003-04-10 Andrew Cagney <cagney@redhat.com>
6158
6159 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6160 frame's function's address. Simplify.
6161 (d10v_frame_unwind_cache): Check that the frame's function is
6162 non-zero.
6163
6164 2003-04-10 Jim Blandy <jimb@redhat.com>
6165
6166 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6167 call to set_gdbarch_deprecated_push_arguments.
6168
6169 2003-04-10 Andrew Cagney <cagney@redhat.com>
6170
6171 * frame.c (fprint_frame_id): New function.
6172 (fprint_frame_type, fprint_frame): New function.
6173 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6174 (create_sentinel_frame, get_frame_id): Ditto.
6175 (frame_id_p, frame_id_eq): Ditto.
6176 (frame_id_inner, create_new_frame): Ditto.
6177 (legacy_get_prev_frame, get_prev_frame): Ditto.
6178 (deprecated_update_frame_pc_hack): Ditto.
6179 (frame_register_unwind): Ditto.
6180 (deprecated_update_frame_base_hack): Ditto.
6181
6182 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6183
6184 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6185 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6186 frame_chain function.
6187 * Makefile.in: Add dependencies due to above change.
6188
6189 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6190
6191 * blockframe.c (legacy_frame_chain_valid): Move call to
6192 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6193 inside_entry_file.
6194
6195 2003-04-09 Andrew Cagney <cagney@redhat.com>
6196
6197 * frame.h (struct frame_id): Replace "pc" and "base" with
6198 "stack_addr" and "code_addr". Update comments.
6199 (frame_id_build): Update parameter names and comment.
6200 (struct frame_info): Replace "id_p" and "id" with "this_id".
6201 * dummy-frame.c (dummy_frame_this_id): Update.
6202 * breakpoint.c (print_one_breakpoint): Update.
6203 * frame.c (get_frame_id): Update.
6204 (get_frame_base, frame_id_build): Update.
6205 (create_sentinel_frame, legacy_get_prev_frame): Update.
6206 (deprecated_update_frame_base_hack): Update.
6207 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6208 (frame_id_inner): Ditto.
6209
6210 2003-04-09 Andrew Cagney <cagney@redhat.com>
6211
6212 * defs.h (gdb_print_host_address): Make "addr" parameter a
6213 pointer constant.
6214 * utils.c (gdb_print_host_address): Update.
6215
6216 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6217
6218 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6219 register number for R0 is 0.
6220
6221 2003-04-09 J. Brobecker <brobecker@gnat.com>
6222
6223 * frame.h (struct gdbarch): Add opaque structure definition
6224 to avoid a compilation warning on LynxOS 4.0.
6225
6226 2003-04-09 Andrew Cagney <cagney@redhat.com>
6227
6228 * frame.h (struct frame_info): Delete field "pc". Replace
6229 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6230 structure.
6231 * frame.c (frame_pc_unwind): Update.
6232 (create_sentinel_frame): Do not set "pc".
6233 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6234 (get_frame_pc): Call frame_pc_unwind.
6235 (deprecated_update_frame_pc_hack): Update.
6236 (create_new_frame): Use "pc" not "->pc".
6237
6238 2003-04-09 Andrew Cagney <cagney@redhat.com>
6239
6240 * frame.c (get_frame_id): Eliminate code updating "frame".
6241 (legacy_get_prev_frame): Ditto.
6242 (get_frame_base): Return id.base directly.
6243 (deprecated_update_frame_base_hack): Update "id.base".
6244 * frame.h (struct frame_info): Delete field "frame".
6245
6246 2003-04-09 Andrew Cagney <cagney@redhat.com>
6247
6248 * NEWS: Mention that the "Sequent family" is obsolete.
6249 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6250 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6251 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6252 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6253 * config/i386/tm-ptx4.h: Obsolete file.
6254 * config/i386/tm-ptx.h: Obsolete file.
6255 * symm-tdep.c: Obsolete file.
6256 * config/i386/symmetry.mt: Obsolete file.
6257 * config/i386/tm-symmetry.h: Obsolete file.
6258 * symm-nat.c: Obsolete file.
6259 * config/i386/nm-symmetry.h: Obsolete file.
6260 * config/i386/xm-symmetry.h: Obsolete file.
6261 * config/i386/symmetry.mh: Obsolete file.
6262 * config/i386/nm-ptx4.h: Obsolete file.
6263 * config/i386/ptx4.mh: Obsolete file.
6264 * config/i386/ptx.mt: Obsolete file.
6265 * config/i386/ptx.mh: Obsolete file.
6266 * config/i386/xm-ptx4.h: Obsolete file.
6267 * config/i386/xm-ptx.h: Obsolete file.
6268
6269 2003-04-09 Andrew Cagney <cagney@redhat.com>
6270
6271 Obsolete mips*-*-mach3*.
6272 * NEWS: Mention that mips*-*-mach3* is obsolete.
6273 * m3-nat.c: Obsolete file.
6274 * config/nm-m3.h: Obsolete file.
6275 * config/mips/tm-mipsm3.h: Obsolete file.
6276 * config/mips/mipsm3.mt: Obsolete file.
6277 * config/mips/mipsm3.mh: Obsolete file.
6278 * config/mips/xm-mipsm3.h: Obsolete file.
6279 * mipsm3-nat.c: Obsolete file.
6280 * configure.host: Obsolete mips-dec-mach3*.
6281 * configure.tgt: Obsolete mips*-*-mach3*.
6282
6283 2003-04-09 Andrew Cagney <cagney@redhat.com>
6284
6285 * doublest.h: Update copyright.
6286 (deprecated_store_floating, deprecated_extract_floating): Rename
6287 store_floating and extract_floating. Update comments.
6288 * doublest.c: Update copyright.
6289 (extract_floating_by_length): Replace extract_floating.
6290 (store_floating_by_length): Replace store_floating.
6291 (deprecated_extract_floating): New function.
6292 (deprecated_store_floating): New function.
6293 (extract_typed_floating): Call extract_floating_by_length.
6294 (store_typed_floating): Call store_floating_by_length.
6295 * x86-64-tdep.c (x86_64_store_return_value): Update.
6296 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6297 (sh64_extract_return_value): Update.
6298 (sh_sh4_register_convert_to_virtual): Update.
6299 (sh_sh64_register_convert_to_virtual): Update.
6300 (sh_sh4_register_convert_to_raw): Update.
6301 (sh_sh64_register_convert_to_raw): Update.
6302 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6303 (rs6000_register_convert_to_raw): Update.
6304 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6305 (ia64_register_convert_to_raw): Update.
6306 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6307 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6308 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6309 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6310 (alpha_register_convert_to_raw): Update.
6311
6312 2003-04-08 Andrew Cagney <cagney@redhat.com>
6313
6314 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6315 * gdbarch.h, gdbarch.c: Re-generate.
6316 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6317 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6318 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6319 conditionally, use frame_pc_unwind as an alternative. Add
6320 comments.
6321 * arch-utils.c (init_frame_pc_default): Only call
6322 SAVED_PC_AFTER_CALL when available.
6323
6324 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6325
6326 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6327 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6328 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6329 (start_remote): Ditto.
6330 (handle_inferior_event): Ditto.
6331 (save_inferior_status): Ditto.
6332 (restore_inferior_status): Ditto.
6333 * infcmd.c (attach_command): Ditto.
6334 * fork-child.c (startup_inferior): Ditto.
6335 * inferior.h (stop_soon): Rename from stop_soon_quietly.
6336 * alpha-tdep.c (heuristic_proc_start): Ditto.
6337 * mips-tdep.c (heuristic_proc_start): Ditto.
6338 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6339 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6340 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6341 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6342 * remote-vx.c (vx_create_inferior): Ditto.
6343
6344 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6345
6346 * infrun.c (stop_soon_quietly): Make it an enum, to better
6347 override the default behavior of handle_inferior_event.
6348 (clear_proceed_status): Update uses of stop_soon_quietly to
6349 reflect that it is now an enum.
6350 (start_remote): Ditto.
6351 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6352 is set to handle the new GNU/Linux kernel behavior for
6353 attach/sigstop. Update uses of stop_soon_quietly.
6354 * inferior.h (enum stop_kind): New enum.
6355 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6356 Reset normal handle_inferior_event behavior, afterwards.
6357 * fork-child.c (startup_inferior): Update.
6358 * alpha-tdep.c (heuristic_proc_start): Update.
6359 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6360 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6361 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6362 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6363 * remote-vx.c (vx_create_inferior): Update.
6364 * mips-tdep.c (heuristic_proc_start): Update.
6365
6366 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
6367
6368 * disasm.c (dump_insns): Move variables inside loop, or they will
6369 be freed more than once, causing wild memory corruptions.
6370 (gdb_disassembly): Look for the substring "-thread",
6371 instead of "-threads" in the target name, to make sure to find
6372 the 'multi-thread' target. Also, make sure we do the right thing
6373 with the "core" target.
6374
6375 2003-04-07 Kevin Buettner <kevinb@redhat.com>
6376
6377 * mips-tdep.c (mips_print_fp_register): New function, created from
6378 do_fp_register_row(). Registers are now (also) printed as hex.
6379 Only one register is printed per row.
6380 (mips_print_register, do_fp_register_row): Print floating point
6381 registers with mips_print_fp_register().
6382
6383 2003-04-06 Andrew Cagney <cagney@redhat.com>
6384
6385 * valprint.h (inspect_it): Add extern declaration.
6386 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6387 (selectors_info, classes_info): Ditto.
6388 (find_objc_msgcall): Fix indentation.
6389 (objc_printstr): Delete extern declarations.
6390
6391 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6392
6393 2003-04-06 Andrew Cagney <cagney@redhat.com>
6394
6395 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6396 Update comment.
6397 * frame.c (legacy_saved_regs_this_id): Update.
6398 (legacy_get_prev_frame): Update.
6399 * xstormy16-tdep.c: Update comment.
6400 * sparc-tdep.c (sparc_frame_chain): Update comment.
6401 * blockframe.c (legacy_frame_chain_valid): Update.
6402
6403 2003-04-06 Andrew Cagney <cagney@redhat.com>
6404
6405 * valprint.c (val_print_type_code_int): Delete #ifdef
6406 PRINT_TYPELESS_INTEGER code.
6407
6408 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6409 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6410 multi-arch definition.
6411 * gdbarch.h: Re-generate.
6412
6413 2003-04-05 Andrew Cagney <cagney@redhat.com>
6414
6415 Eliminate FRAME_FIND_SAVED_REGS.
6416 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6417 Change FSR parameter to a pointer.
6418 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6419 Assume FSR parameter is a pointer.
6420 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6421 Make fsr a pointer.
6422 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6423 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6424 saved_regs a pointer.
6425 (hppa_frame_saved_pc): Ditto.
6426 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6427 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6428 pointer.
6429 (restore_pc_queue): Make fsr a pointer.
6430 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6431 (hppa_frame_chain): Make saved_regs a pointer, call
6432 hppa_frame_init_saved_regs.
6433 * sparc-tdep.c: Include "gdb_assert.h".
6434 (sparc_frame_find_saved_regs): Replace internal_error with
6435 gdb_assert.
6436 * remote-vxsparc.c (vx_read_register): Delete reference to
6437 FRAME_FIND_SAVED_REGS.
6438 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6439 * gdbarch.h: Regenerate.
6440 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6441 (deprecated_get_frame_saved_regs): Delete declaration.
6442 (struct frame_saved_regs): Delete definition.
6443 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6444 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6445 (hppa_frame_find_saved_regs): Delete declaration.
6446 (FRAME_FIND_SAVED_REGS): Delete macro.
6447 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6448 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6449 FRAME_FIND_SAVED_REGS in comment.
6450
6451 2003-04-05 Andrew Cagney <cagney@redhat.com>
6452
6453 * frame.c (frame_func_unwind, get_frame_func): New functions.
6454 * frame.h (get_frame_func, frame_func_unwind): Declare.
6455 (struct frame_info): Add field "prev_func" for caching the
6456 previous frame's function address.
6457 * arm-tdep.c (arm_frameless_function_invocation): Combine
6458 get_pc_function_start and get_frame_pc into get_frame_func.
6459 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6460 (sh64_nofp_frame_init_saved_regs): Ditto.
6461 * s390-tdep.c (s390_function_start): Ditto.
6462 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6463 (rs6000_frameless_function_invocation): Ditto.
6464 (rs6000_frame_saved_pc): Ditto.
6465 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6466 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6467 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6468 (i386_frame_init_saved_regs): Ditto.
6469 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6470 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6471 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6472 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6473 * blockframe.c (frameless_look_for_prologue): Ditto.
6474
6475 2003-04-05 Andrew Cagney <cagney@redhat.com>
6476
6477 * frame.c (legacy_get_prev_frame): Link prev to next at the
6478 function start. Update comments.
6479
6480 2003-04-05 Andrew Cagney <cagney@redhat.com>
6481
6482 * frame.c (get_frame_id): Update comment.
6483 (legacy_get_prev_frame): Update comment.
6484 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6485 * gdbarch.h: Regenerate.
6486 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6487 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6488
6489 2003-04-05 Andrew Cagney <cagney@redhat.com>
6490
6491 * stack.c (print_frame_info): Use get_frame_pc.
6492
6493 2003-04-04 Andrew Cagney <cagney@redhat.com>
6494
6495 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6496 the frame's type from the unwinder.
6497 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6498 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6499 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6500 (get_frame_base_address): Use get_frame_type.
6501 (get_frame_locals_address, get_frame_args_address): Ditto.
6502 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6503 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6504 (struct frame_info): Add comment explaining why the frame contains
6505 a "type" field.
6506 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6507 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6508 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6509 NORMAL_FRAME.
6510 * frame-unwind.h: Include "frame.h".
6511 (struct frame_unwind): Add "type" field.
6512 * Makefile.in (frame_unwind_h): Add $(frame_h).
6513
6514 2003-04-04 Andrew Cagney <cagney@redhat.com>
6515
6516 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6517 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6518 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6519 get_frame_base.
6520 (d10v_unwind_dummy_id): Use frame_id_build.
6521 * frame.c (find_frame_sal): Use get_frame_pc.
6522 (create_new_frame): Use deprecated_update_frame_pc_hack and
6523 deprecated_update_frame_base_hack.
6524 (create_sentinel_frame): Add comment about ->pc going away.
6525 (get_prev_frame): Add comment about ->pc going away.
6526 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6527 frame_id_build, deprecated_update_frame_pc_hack and
6528 deprecated_update_frame_base_hack.
6529 (select_frame): Use get_frame_pc.
6530 (legacy_saved_regs_this_id): Use frame_id_build.
6531
6532 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
6533
6534 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6535 signed integer case.
6536 (classify_argument): Handle enumerations and references.
6537
6538 2003-04-04 Andrew Cagney <cagney@redhat.com>
6539
6540 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6541 ID to NULL.
6542
6543 2003-04-01 Adam Fedor <fedor@gnu.org>
6544
6545 * gdb/objc-lang.c (selectors_info): Replace calls to
6546 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6547 SYMBOL_NATURAL_NAME.
6548 (classes_info, find_methods): Likewise.
6549
6550 2003-04-03 Kevin Buettner <kevinb@redhat.com>
6551
6552 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6553 ``mach'' to the value determined by bfd_default_set_arch_mach().
6554
6555 2003-04-02 Bob Rossi <bob_rossi@cox.net>
6556
6557 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6558 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6559 (mi-cmd-file.o): Update dependencies.
6560
6561 2003-04-01 Kevin Buettner <kevinb@redhat.com>
6562
6563 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6564 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6565
6566 2003-04-01 Adam Fedor <fedor@gnu.org>
6567
6568 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6569 * language.h (struct language_defn): Add la_demangle.
6570 (language_demangle): Declare.
6571 * language.c (language_demangle): New function.
6572 (unk_lang_demangle): Likewise.
6573 (unknown_language_defn, auto_language_defn, local_language_defn):
6574 Add ukn_lang_demangle.
6575 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6576 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6577 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6578 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6579 * jv-lang.c (java_demangle): New function
6580 (java_language_defn): Use it for la_demangle element.
6581 * objc-lang.c (objc_demangle): Add options argument
6582 (objc_language_defn): Use objc_demangle for la_demangle element.
6583 * maint.c (maintenance_demangle): Replace switch with
6584 call to language_demangle.
6585 * utils.c (fprintf_symbol_filtered): Likewise.
6586
6587 2003-04-01 Andrew Cagney <cagney@redhat.com>
6588
6589 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6590 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6591 PRINT_TYPELESS_INTEGER.
6592 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6593 PUSH_RETURN_ADDRESS.
6594
6595 2003-04-01 Andrew Cagney <cagney@redhat.com>
6596
6597 * Makefile.in (d10v-tdep.o): Update dependencies.
6598 * d10v-tdep.c: Include "frame-base.h".
6599 (d10v_frame_unwind): Make constant.
6600 (d10v_frame_base_address): New function.
6601 (d10v_frame_base): New variable.
6602 (d10v_gdbarch_init): Set frame_base default.
6603 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6604 comment for base.
6605 (d10v_frame_unwind_cache): Set and use "prev_sp".
6606 (d10v_frame_this_id): Use the previous frame's inner most stack
6607 address and this frame's func address for the frame ID. Use
6608 frame_id_build. Don't analyze beyond the current instruction.
6609
6610 2003-04-01 Andrew Cagney <cagney@redhat.com>
6611
6612 * frame.h (get_frame_locals_address, get_frame_args_address):
6613 Refer to the base address, instead of the address of the first
6614 local or parameter.
6615
6616 2003-04-01 Andrew Cagney <cagney@redhat.com>
6617
6618 Add frame debug info addresses:
6619 * frame-base.c: New file.
6620 * frame-base.h: New file.
6621 * frame.h (struct frame_base): Add opaque declaration.
6622 (get_frame_base): Update comment.
6623 (get_frame_base_address): Declare.
6624 (get_frame_locals_address): Declare.
6625 (get_frame_args_address): Declare.
6626 (struct frame_info): Add "base" and "base_cache". Update
6627 comments on the unwinder.
6628 * frame.c: Include "frame-base.h".
6629 (get_frame_locals_address): New function.
6630 (get_frame_base_address): New function.
6631 (get_frame_args_address): New function.
6632 * findvar.c (read_var_value): Use get_frame_locals_address and
6633 get_frame_args_address.
6634 * stack.c (frame_info): Use get_frame_locals_address and
6635 get_frame_args_address.
6636 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6637 moved to "frame-base.c".
6638 * printcmd.c (print_frame_nameless_args): Ditto.
6639 * symtab.h (address_class): Update comments.
6640 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6641 get_frame_base_address.
6642 * dwarf2expr.c (execute_stack_op): Ditto.
6643 * Makefile.in (frame_base_h): Define.
6644 (frame.o): Update dependencies.
6645 (frame-base.o): Add dependencies.
6646 (SFILES): Add frame-base.c.
6647 (COMMON_OBS): Add frame-base.o.
6648
6649 2003-04-01 Andrew Cagney <cagney@redhat.com>
6650
6651 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6652 CALL_DUMMY_LENGTH): Ditto.
6653 * gdbarch.c: Re-generate.
6654 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6655 (CALL_DUMMY_LENGTH): Delete macro.
6656 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6657 * arm-tdep.c (arm_gdbarch_init): Ditto.
6658 * avr-tdep.c (avr_gdbarch_init): Ditto.
6659 * cris-tdep.c (cris_gdbarch_init): Ditto.
6660 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6661 * frv-tdep.c (frv_gdbarch_init): Ditto.
6662 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6663 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6664 * i386-tdep.c (i386_gdbarch_init): Ditto.
6665 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6666 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6667 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6668 * mips-tdep.c (mips_gdbarch_init): Ditto.
6669 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6670 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6671 * s390-tdep.c (s390_gdbarch_init): Ditto.
6672 * sh-tdep.c (sh_gdbarch_init): Ditto.
6673 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6674 * v850-tdep.c (v850_gdbarch_init): Ditto.
6675 * vax-tdep.c (vax_gdbarch_init): Ditto.
6676 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6677
6678 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
6679
6680 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6681
6682 2003-04-01 Andrew Cagney <cagney@redhat.com>
6683
6684 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6685 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6686 * gdbarch.h, gdbarch.c: Re-generate.
6687 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6688 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6689 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6690 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6691 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6692 * infcmd.c (run_stack_dummy): Simplify assuming
6693 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6694 * infrun.c (handle_inferior_event): Ditto.
6695 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6696 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6697 * arm-tdep.c (arm_gdbarch_init): Ditto.
6698 * avr-tdep.c (avr_gdbarch_init): Ditto.
6699 * cris-tdep.c (cris_gdbarch_init): Ditto.
6700 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6701 * frv-tdep.c (frv_gdbarch_init): Ditto.
6702 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6703 * i386-tdep.c (i386_gdbarch_init): Ditto.
6704 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6705 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6706 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6707 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6708 * mips-tdep.c (mips_gdbarch_init): Ditto.
6709 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6710 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6711 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6712 * s390-tdep.c (s390_gdbarch_init): Ditto.
6713 * sh-tdep.c (sh_gdbarch_init): Ditto.
6714 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6715 * v850-tdep.c (v850_gdbarch_init): Ditto.
6716 * vax-tdep.c (vax_gdbarch_init): Ditto.
6717 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6718
6719 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
6720
6721 * symfile.c (symfile_relocate_debug_section): Update call to
6722 bfd_simple_get_relocated_section_contents.
6723
6724 2003-03-31 Andrew Cagney <cagney@redhat.com>
6725
6726 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6727 * gdbarch.h, gdbarch.c: Regenerate.
6728 * inferior.h (FIX_CALL_DUMMY): Delete macro.
6729 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
6730 available.
6731 * frame.h (generic_fix_call_dummy): Delete declaration.
6732 * dummy-frame.h: Update comment.
6733 * dummy-frame.c (generic_fix_call_dummy): Delete function.
6734 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6735 fix_call_dummy.
6736 * sh-tdep.c (sh_gdbarch_init): Ditto.
6737 * s390-tdep.c (s390_gdbarch_init): Ditto.
6738 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6739 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6740 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6741 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6742 * i386-tdep.c (i386_gdbarch_init): Ditto.
6743 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6744 * frv-tdep.c (frv_gdbarch_init): Ditto.
6745 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6746 * cris-tdep.c (cris_gdbarch_init): Ditto.
6747 * avr-tdep.c (avr_gdbarch_init): Ditto.
6748 * arm-tdep.c (arm_gdbarch_init): Ditto.
6749
6750 2003-03-31 J. Brobecker <brobecker@gnat.com>
6751
6752 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
6753 (INIT_FRAME_AP): Likewise.
6754 (EXTRA_FRAME_INFO): Likewise.
6755
6756 2003-03-31 Andrew Cagney <cagney@redhat.com>
6757
6758 * gdbarch.sh: Include "symfile.h".
6759 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
6760 * gdbarch.h, gdbarch.c: Re-generate.
6761 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
6762 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6763 call_dummy_address, the default is at entry_point_address.
6764 * v850-tdep.c (v850_gdbarch_init): Ditto.
6765 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6766 * sh-tdep.c (sh_gdbarch_init): Ditto.
6767 * s390-tdep.c (s390_gdbarch_init): Ditto.
6768 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6769 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6770 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6771 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6772 * i386-tdep.c (i386_gdbarch_init): Ditto.
6773 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6774 * frv-tdep.c (frv_gdbarch_init): Ditto.
6775 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6776 * cris-tdep.c (cris_gdbarch_init): Ditto.
6777 * arm-tdep.c (arm_gdbarch_init): Ditto.
6778
6779 2003-03-31 Andrew Cagney <cagney@redhat.com>
6780
6781 * gdbarch.sh (CALL_DUMMY_P): Delete.
6782 * gdbarch.h, gdbarch.c: Re-generate.
6783 * inferior.h (CALL_DUMMY_P): Delete macro.
6784 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6785 * vax-tdep.c (vax_gdbarch_init): Update.
6786 * v850-tdep.c (v850_gdbarch_init): Update.
6787 * sparc-tdep.c (sparc_gdbarch_init): Update.
6788 * sh-tdep.c (sh_gdbarch_init): Update.
6789 * s390-tdep.c (s390_gdbarch_init): Update.
6790 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6791 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6792 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6793 * mips-tdep.c (mips_gdbarch_init): Update.
6794 * mcore-tdep.c (mcore_gdbarch_init): Update.
6795 * m68k-tdep.c (m68k_gdbarch_init): Update.
6796 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6797 * ia64-tdep.c (ia64_gdbarch_init): Update.
6798 * i386-tdep.c (i386_gdbarch_init): Update.
6799 * h8300-tdep.c (h8300_gdbarch_init): Update.
6800 * frv-tdep.c (frv_gdbarch_init): Update.
6801 * d10v-tdep.c (d10v_gdbarch_init): Update.
6802 * cris-tdep.c (cris_gdbarch_init): Update.
6803 * breakpoint.c (deprecated_frame_in_dummy): Update.
6804 * avr-tdep.c (avr_gdbarch_init): Update.
6805 * alpha-tdep.c (alpha_gdbarch_init): Update.
6806 * arm-tdep.c (arm_gdbarch_init): Update.
6807 * dummy-frame.c (dummy_frame_this_id): Update comments.
6808 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
6809 * frame.c (legacy_get_prev_frame): Ditto.
6810 * valops.c (call_function_by_hand): Delete function.
6811 (hand_function_call): Rename to call_function_by_hand
6812
6813 2003-03-30 Andrew Cagney <cagney@redhat.com>
6814
6815 2002-11-10 Klee Dienes <kdienes@apple.com>
6816 * value.h (struct value): Update comment.
6817
6818 2003-03-30 Andrew Cagney <cagney@redhat.com>
6819
6820 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
6821 D10V_FP_REGNUM.
6822 (d10v_gdbarch_init): Do not set fp_regnum.
6823
6824 * frame.c (get_frame_base): Force ID initialization.
6825 (get_prev_frame): Move computation of the frame ID from here ...
6826 (get_frame_id): ... to here.
6827 (legacy_get_prev_frame): Mark the frame ID as valid.
6828 * frame.h (struct frame_info): Add field "id_p".
6829
6830 2003-03-30 Mark Kettenis <kettenis@gnu.org>
6831
6832 * i386-tdep.c (i386_store_struct_return): Removed.
6833 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
6834
6835 2003-03-30 Andrew Cagney <cagney@redhat.com>
6836
6837 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
6838 * gdbarch.h, gdbarch.c: Regenerate.
6839 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
6840 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6841 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6842 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6843 * i386-tdep.c (i386_gdbarch_init): Ditto.
6844 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6845 * cris-tdep.c (cris_gdbarch_init): Ditto.
6846 * vax-tdep.c (vax_gdbarch_init): Ditto.
6847 * s390-tdep.c (s390_gdbarch_init): Ditto.
6848 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6849 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6850 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6851 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
6852 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6853 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
6854 * sparc-tdep.c (sparc_gdbarch_init): Update.
6855 * sh-tdep.c (sh_gdbarch_init): Update.
6856 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6857 * mips-tdep.c (mips_gdbarch_init): Update.
6858 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6859 * ia64-tdep.c (ia64_gdbarch_init): Update.
6860 * frv-tdep.c (frv_gdbarch_init): Update.
6861 * avr-tdep.c (avr_gdbarch_init): Update.
6862 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
6863 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
6864 instead of when push_dummy_call is not available.
6865
6866 2003-03-30 Andrew Cagney <cagney@redhat.com>
6867
6868 * infttrace.c: Include "gdbthread.h".
6869 (parent_attach_all): Fix function signature.
6870 (call_ptrace): Update call.
6871 * Makefile.in (infttrace.o): Update dependencies.
6872
6873 2003-03-30 Andrew Cagney <cagney@redhat.com>
6874
6875 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
6876 PUSH_RETURN_ADDRESS.
6877 * gdbarch.h, gdbarch.c: Regenerate.
6878 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6879 * x86-64-tdep.c (x86_64_init_abi): Update.
6880 * v850-tdep.c (v850_gdbarch_init): Update.
6881 * sparc-tdep.c (sparc_gdbarch_init): Update.
6882 * sh-tdep.c (sh_gdbarch_init): Update.
6883 * s390-tdep.c (s390_gdbarch_init): Update.
6884 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6885 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6886 * mips-tdep.c (mips_gdbarch_init): Update.
6887 * mcore-tdep.c (mcore_gdbarch_init): Update.
6888 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6889 * ia64-tdep.c (ia64_gdbarch_init): Update.
6890 * i386-tdep.c (i386_gdbarch_init): Update.
6891 * h8300-tdep.c (h8300_gdbarch_init): Update.
6892 * frv-tdep.c (frv_gdbarch_init): Update.
6893 * cris-tdep.c (cris_gdbarch_init): Update.
6894 * avr-tdep.c (avr_gdbarch_init): Update.
6895 * arm-tdep.c (arm_gdbarch_init): Update.
6896 * valops.c (hand_function_call): Update.
6897
6898 2003-03-29 Andrew Cagney <cagney@redhat.com>
6899
6900 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
6901 sizeof_call_dummy_words.
6902 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
6903 define.
6904 * gdbarch.h: Regenerate.
6905
6906 2003-03-29 Andrew Cagney <cagney@redhat.com>
6907
6908 * infttrace.h: New file.
6909 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
6910 (hpread_get_textlow): Detect an uninitialized dn_bufp.
6911 (hpread_read_doc_function_type): Detect an initialized type1.
6912 (hpread_quick_traverse): Initialize mod_name_string.
6913 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
6914 (som_solib_get_solib_by_pc): Declare.
6915 (so_lib_thread_start_addr): Declare.
6916 (no_shared_libraries): Declare.
6917 * somread.c (init_import_symbols): Make static. Add forward
6918 declaration.
6919 * config/pa/nm-hppah.h: Include "infttrace.h" for
6920 parent_attach_all.
6921 (hppa_insert_hw_watchpoint): Declare.
6922 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
6923 * hppah-nat.c: Include "gdb_string.h".
6924 (parent_attach_all): Delete extern declaration, moved to
6925 "infttrace.h".
6926 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
6927 int.
6928 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
6929 * Makefile.in (infttrace_h): Define.
6930 (hpread.o): Update dependencies.
6931 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
6932 * hppa-hpux-tdep.c: Include "gdb_string.h".
6933 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
6934 * infrun.c (handle_inferior_event): Always initialize
6935 stepped_after_stopped_by_watchpoint. Add default and remove
6936 fallthrough in switch statement.
6937 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
6938 parameter to int.
6939 (hppa_remove_hw_watchpoint): Ditto.
6940
6941 2003-03-29 Andrew Cagney <cagney@redhat.com>
6942
6943 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
6944 offset.
6945
6946 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
6947
6948 * arm-tdep.c (arm_push_arguments): Delete.
6949 (struct stack_item): New type.
6950 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
6951 (arm_store_struct_return): Delte.
6952 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
6953 arm_push_arguments or arm_store_struct_return.
6954
6955 2003-03-28 Andrew Cagney <cagney@redhat.com>
6956
6957 * Makefile.in (d10v-tdep.o): Update dependencies.
6958 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
6959 * d10v-tdep.c: Include "remote.h".
6960 (target_resume_hook): Delete extern declaration.
6961 (target_wait_loop_hook): Ditto.
6962 (tdisassemble_command): Eliminate assignment in "if" conditional.
6963 (d10v_ts2_register_sim_regno): Eliminate call to
6964 legacy_register_sim_regno.
6965 (d10v_ts3_register_sim_regno): Ditto.
6966
6967 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
6968
6969 * thread.c: Reindented.
6970 * lin-lwp.c: Ditto.
6971 * linux-proc.c: Ditto.
6972
6973 2003-03-28 Bob Rossi <bob_rossi@cox.net>
6974
6975 * MAINTAINERS (write after approval): Add myself.
6976
6977 2003-03-27 Theodore A. Roth <troth@openavr.org>
6978
6979 * objc-exp.y: Add missing semi-colons.
6980
6981 2003-03-27 Andrew Cagney <cagney@redhat.com>
6982
6983 * regcache.c (write_sp): Delete function and references.
6984 * inferior.h (write_sp): Delete declaration.
6985 * valops.c (hand_function_call): Replace write_sp with
6986 TARGET_WRITE_SP.
6987 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
6988 (sparc_pop_frame): Ditto.
6989
6990 2003-03-27 Andrew Cagney <cagney@redhat.com>
6991
6992 * NEWS: Mention removal of support for hppa*-*-bsd* and
6993 hppa*-*-osf* natives, and hppa*-*-pro* target.
6994 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
6995 * config/pa/xm-pa.h: Obsolete file.
6996 * config/pa/xm-hppab.h: Obsolete file.
6997 * config/pa/nm-hppab.h: Obsolete file.
6998 * config/pa/tm-hppab.h: Obsolete file.
6999 * config/pa/tm-hppao.h: Obsolete file.
7000 * config/pa/nm-hppao.h: Obsolete file.
7001 * config/pa/tm-pro.h: Obsolete file.
7002 * config/pa/hppaosf.mt: Obsolete file.
7003 * config/pa/hppaosf.mh: Obsolete file.
7004 * config/pa/hppapro.mt: Obsolete file.
7005 * config/pa/hppabsd.mt: Obsolete file.
7006 * config/pa/hppabsd.mh: Obsolete file.
7007 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7008 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7009 hppa*-*-osf*.
7010
7011 2003-03-27 Andrew Cagney <cagney@redhat.com>
7012
7013 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7014 push_arguments. Don't set push_return_address or write_sp.
7015 (d10v_push_dummy_call): Replace d10v_push_arguments.
7016 (d10v_push_return_address, d10v_write_sp): Delete function,
7017 handled by push_dummy_call.
7018
7019 2003-03-26 Andrew Cagney <cagney@redhat.com>
7020
7021 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7022 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7023 regcache and dummy_addr parameters.
7024 * gdbarch.h, gdbarch.c: Re-generate.
7025 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7026 available; assume it will handle stack alignment and return
7027 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7028 legacy_push_arguments.
7029 (legacy_push_arguments): Rename default_push_arguments.
7030 * value.h (legacy_push_arguments): Rename default_push_arguments.
7031 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7032 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7033 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7034 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7035 * config/i386/tm-symmetry.h: Update.
7036 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7037 * x86-64-tdep.c (x86_64_init_abi): Update.
7038 * v850-tdep.c (v850_gdbarch_init): Update.
7039 * sparc-tdep.c (sparc_gdbarch_init): Update.
7040 * sh-tdep.c (sh_gdbarch_init): Update.
7041 * s390-tdep.c (s390_gdbarch_init): Update.
7042 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7043 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7044 * mips-tdep.c (mips_gdbarch_init): Update.
7045 * mcore-tdep.c (mcore_gdbarch_init): Update.
7046 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7047 * ia64-tdep.c (ia64_gdbarch_init): Update.
7048 * i386-tdep.c (i386_gdbarch_init): Update.
7049 * hppa-tdep.c (hppa_gdbarch_init): Update.
7050 * h8300-tdep.c (h8300_gdbarch_init): Update.
7051 * frv-tdep.c (frv_gdbarch_init): Update.
7052 * d10v-tdep.c (d10v_gdbarch_init): Update.
7053 * cris-tdep.c (cris_gdbarch_init): Update.
7054 * avr-tdep.c (avr_gdbarch_init): Update.
7055 * arm-tdep.c (arm_gdbarch_init): Update.
7056 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7057 * alpha-tdep.c (alpha_gdbarch_init): Update.
7058
7059 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7060
7061 * signals/signals.c (do_target_signal_to_host): Correct realtime
7062 signal range test.
7063
7064 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7065
7066 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7067 (struct sal_chain, map_catch_names): Remove.
7068 (catch_exception_command_1): Don't call
7069 handle_gnu_4_16_catch_command.
7070
7071 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7072
7073 From Mark Dettinger <dettinge@de.ibm.com>:
7074 * dwarf2cfi.c (read_2u): Increment pointer by two.
7075
7076 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7077
7078 * signals/signals.c: Fix typos in last change.
7079
7080 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7081
7082 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7083 not already defined. Use __SIGRTMIN if available.
7084 (target_signal_from_host): Remove SIGRTMIN block.
7085 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7086 the signal is within the realtime range.
7087
7088 2003-03-25 Adam Fedor <fedor@gnu.org>
7089
7090 * Makefile.in (infrun.o): Add $(language_h)
7091 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7092 for language specific trampolines.
7093 * language.h (struct language_defn): Add skip_trampoline.
7094 (skip_language_trampoline): Declare.
7095 * language.c (unk_lang_trampoline, skip_language_trampoline):
7096 New functions.
7097 (unknown_language_defn, auto_language_defn, local_language_defn):
7098 Add ukn_lang_trampoline.
7099 * ada-lang.c (ada_language_defn): Add NULL for language
7100 specific skip_trampoline.
7101 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7102 scm-lang.c: Likewise.
7103 * objc-lang.c (objc_skip_trampoline): New function.
7104 (objc_language_defn): Add objc_skip_trampoline.
7105
7106 2003-03-25 Andrew Cagney <cagney@redhat.com>
7107
7108 * frame.c (get_prev_frame): Delay validating a frame's ID -
7109 non-NULL, didn't go backwards - until an attempt to unwind it to
7110 the previous frame.
7111
7112 2003-03-25 Andrew Cagney <cagney@redhat.com>
7113
7114 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7115 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7116 * gdbarch.h, gdbarch.c: Re-generate.
7117 * config/sparc/tm-sparc.h
7118 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7119 * sparc-tdep.c (sparc_gdbarch_init): Set
7120 deprecated_extra_stack_alignment_needed.
7121 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7122 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7123 extra_stack_alignment_needed.
7124 * v850-tdep.c (v850_gdbarch_init): Ditto.
7125 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7126 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7127 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7128 * cris-tdep.c (cris_gdbarch_init): Ditto.
7129 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7130 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7131
7132 2003-03-25 Andrew Cagney <cagney@redhat.com>
7133
7134 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7135 STORE_STRUCT_RETURN.
7136 * gdbarch.h, gdbarch.c: Regenerate.
7137 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7138 (d10v_push_arguments): Set the struct return register.
7139 (d10v_gdbarch_init): Update.
7140 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7141 * x86-64-tdep.c (x86_64_init_abi): Update.
7142 * vax-tdep.c (vax_gdbarch_init): Update.
7143 * v850-tdep.c (v850_gdbarch_init): Update.
7144 * sparc-tdep.c (sparc_gdbarch_init): Update.
7145 * sh-tdep.c (sh_gdbarch_init): Update.
7146 * s390-tdep.c (s390_gdbarch_init): Update.
7147 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7148 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7149 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7150 * mips-tdep.c (mips_gdbarch_init): Update.
7151 * mcore-tdep.c (mcore_gdbarch_init): Update.
7152 * m68k-tdep.c (m68k_gdbarch_init): Update.
7153 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7154 * ia64-tdep.c (ia64_gdbarch_init): Update.
7155 * i386-tdep.c (i386_gdbarch_init): Update.
7156 * hppa-tdep.c (hppa_gdbarch_init): Update.
7157 * h8300-tdep.c (h8300_gdbarch_init): Update.
7158 * frv-tdep.c (frv_gdbarch_init): Update.
7159 * cris-tdep.c (cris_gdbarch_init): Update.
7160 * avr-tdep.c (avr_gdbarch_init): Update.
7161 * arm-tdep.c (arm_gdbarch_init): Update.
7162 * alpha-tdep.c (alpha_gdbarch_init): Update.
7163
7164 2003-03-25 Andrew Cagney <cagney@redhat.com>
7165
7166 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7167 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7168 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7169 * gdbarch.h, gdbarch.c: Regenerate.
7170 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7171 call_dummy_stack_adjust_p.
7172 * vax-tdep.c (vax_gdbarch_init): Ditto.
7173 * v850-tdep.c (v850_gdbarch_init): Ditto.
7174 * sh-tdep.c (sh_gdbarch_init): Ditto.
7175 * s390-tdep.c (s390_gdbarch_init): Ditto.
7176 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7177 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7178 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7179 * mips-tdep.c (mips_gdbarch_init): Ditto.
7180 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7181 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7182 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7183 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7184 * i386-tdep.c (i386_gdbarch_init): Ditto.
7185 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7186 * frv-tdep.c (frv_gdbarch_init): Ditto.
7187 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7188 * cris-tdep.c (cris_gdbarch_init): Ditto.
7189 * avr-tdep.c (avr_gdbarch_init): Ditto.
7190 * arm-tdep.c (arm_gdbarch_init): Ditto.
7191 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7192 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7193 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7194 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7195 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7196 call_dummy_stack_adjust_p.
7197 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7198 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7199 * sparc-tdep.c (sparc32_push_arguments): Update.
7200 * valops.c (hand_function_call): Update.
7201
7202 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7203
7204 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7205 set_gdbarch_char_signed.
7206
7207 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7208
7209 PR cli/548
7210 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7211
7212 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7213
7214 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7215 (_initialize_arm_tdep): Don't set tm_print_insn.
7216
7217 2003-03-24 Adam Fedor <fedor@gnu.org>
7218
7219 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7220 * objc-lang.h: Add multiple inclusion protection.
7221 (start_msglist, add_msglist, end_msglist): Additional declarations.
7222
7223 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7224
7225 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7226 value was renamed to ARM_FLOAT_SOFT_FPA.
7227
7228 2003-03-23 Andrew Cagney <cagney@redhat.com>
7229
7230 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7231 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7232 * gdbarch.h, gdbarch.c: Regenerate.
7233 * valops.c (hand_function_call): Update.
7234 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7235 * frame.c (legacy_saved_regs_this_id): Update.
7236 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7237 * dummy-frame.h: Update.
7238 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7239 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7240 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7241 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7242 * config/m68k/tm-sun3.h: Update.
7243 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7244 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7245 * x86-64-tdep.c (x86_64_init_abi): Update.
7246 * vax-tdep.c (vax_gdbarch_init): Update.
7247 * v850-tdep.c (v850_gdbarch_init): Update.
7248 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7249 * sh-tdep.c (sh_gdbarch_init): Update.
7250 * s390-tdep.c (s390_gdbarch_init): Update.
7251 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7252 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7253 (frame_get_saved_regs): Update.
7254 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7255 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7256 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7257 * mips-tdep.c (mips_gdbarch_init): Update.
7258 * mcore-tdep.c (mcore_gdbarch_init): Update.
7259 * m68k-tdep.c (m68k_gdbarch_init): Update.
7260 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7261 * ia64-tdep.c (ia64_gdbarch_init): Update.
7262 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7263 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7264 (i386_interix_back_one_frame): Update.
7265 * hppa-tdep.c (hppa_gdbarch_init): Update.
7266 (hppa_init_extra_frame_info): Update.
7267 * h8300-tdep.c (h8300_gdbarch_init): Update.
7268 * frv-tdep.c (frv_gdbarch_init): Update.
7269 * cris-tdep.c (cris_gdbarch_init): Update.
7270 * avr-tdep.c (avr_gdbarch_init): Update.
7271 * arm-tdep.c (arm_gdbarch_init): Update.
7272 * alpha-tdep.c (alpha_gdbarch_init): Update.
7273
7274 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7275
7276 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7277 (arm_get_fp_model): Declare.
7278 * arm-tdep.c (fp_model_strings): New string array.
7279 (arm_fp_model, current_fp_model): New variables.
7280 (arm_get_fp_model): New function.
7281 (arm_set_fp): New function.
7282 (set_fp_model_sfunc): New function.
7283 (show_fp_model): New function.
7284 (_initialize_arm_tdep): Add new command to set/show the FPU.
7285 (arm_extract_return_value): Use arm_get_fp_model.
7286 (arm_store_return_value): Likewise.
7287 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7288 to initialize the floating-point data types.
7289 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7290 model is FPA.
7291
7292 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7293
7294 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7295 the current setting of each value.
7296 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7297 new_set and new_show. Use add_setshow_cmd_full and
7298 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7299 commands and add new version as subcommands of "set/show arm".
7300
7301 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7302
7303 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7304 (set_arm_command, show_arm_command): New functions.
7305 (_initialize_arm_tdep): Add them.
7306 (num_disassembly_options): Renamed from num_flavor_options.
7307 (valid_disassembly_styles): Renamed from valid_flavors.
7308 (disassembly_style): Renamed from disassembly_flavor.
7309 (set_disassembly_style_sfunc): Renamed from
7310 set_disassembly_flavor_sfunc.
7311 (set_disassembly_style): Renamed from set_disassembly_flavor.
7312 (arm_othernames): Updated.
7313 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7314 command. Add "set/show arm disassembly" commands. Deprecate
7315 "othernames" command.
7316
7317 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7318
7319 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7320 (arm-tdep.o): Depend on elf_arm_h.
7321
7322 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7323
7324 * Makefile.in (coff_internal_h): Define.
7325 (arm-tdep.o): Update dependencies.
7326
7327 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7328
7329 * arm-tdep.c (prologue_cache): Delete.
7330 (check_prologue_cache, save_prologue_cache): Delete.
7331 (arm_scan_prologue): Don't check or update the prologue_cache.
7332 (arm_gdb_arch_init): Don't initialize it.
7333 (_initialize_arm_tdep): Likewise.
7334
7335 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7336
7337 * MAINTAINERS (tui): Maintainer of tui code.
7338
7339 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
7340
7341 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7342 (i386-cygwin-tdep.o): Add dependencies.
7343 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7344 * i386-cygwin-tdep.c: New file.
7345 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7346 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7347
7348 2003-03-20 Andrew Cagney <cagney@redhat.com>
7349
7350 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7351 (handle_inferior_event): Remove code calling
7352 DYNAMIC_TRAMPOLINE_NEXTPC.
7353
7354 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7355 already has a full path.
7356
7357 * main.c (gdb_main): Return 1.
7358 (captured_main): Call error to report an invalid interpreter.
7359
7360 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7361 * alpha-osf1-tdep.c: Include "gdb_string.h".
7362
7363 2003-03-19 J. Brobecker <brobecker@gnat.com>
7364
7365 Continuing work to convert the hppa targets to multiarch partial.
7366
7367 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7368 method, now that hppa_push_dummy_frame has a conformant prototype.
7369 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7370 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7371 for the switch to multiarch partial.
7372
7373 2003-03-19 Kevin Buettner <kevinb@redhat.com>
7374
7375 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7376 when iss is issNull.
7377
7378 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7379
7380 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7381 NUM_REGS bounds check.
7382
7383 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7384
7385 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7386 * mips-tdep.c (gdb_assert.h): Include.
7387 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7388 (mips_register_name): Handle integer registers explicitly. Add
7389 bounds checking.
7390 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7391 (mips_lsi33k_reg_names): Don't list integer registers; they're
7392 handled by mips_register_name() now.
7393 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7394 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7395 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7396 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7397 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7398
7399 2003-03-18 Andrew Cagney <cagney@redhat.com>
7400
7401 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7402 a void pointer.
7403 * gdbtypes.h (print_scalar_formatted): Update declaration.
7404 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7405
7406 2003-03-18 J. Brobecker <brobecker@gnat.com>
7407
7408 * infrun.c (observer.h): Add #include.
7409 (normal_stop): Add call to observer_notify_normal_stop.
7410 * Makefile.in (infrun.o): Add dependency on observer.h.
7411
7412 2003-03-18 J. Brobecker <brobecker@gnat.com>
7413
7414 Continuing work to convert the hppa targets to multiarch partial.
7415 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7416 parameter. Reformat comment.
7417 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7418 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7419 to match new profile.
7420
7421 2003-03-18 J. Brobecker <brobecker@gnat.com>
7422
7423 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7424 appear to be working in any case.
7425
7426 2003-03-18 J. Brobecker <brobecker@gnat.com>
7427
7428 * observer.c (observer_test_first_observer): New static variable.
7429 (observer_test_second_observer): Likewise.
7430 (observer_test_third_observer): Likewise.
7431 (observer_test_first_notification_function): New static function.
7432 (observer_test_second_notification_function): Likewise.
7433 (observer_test_third_notification_function): Likewise.
7434
7435 2003-03-17 J. Brobecker <brobecker@gnat.com>
7436
7437 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7438 * somsolib.c (gdb_assert.h): Likewise.
7439 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7440 (somsolib.o): Likewise.
7441
7442 2003-03-17 Andrew Cagney <cagney@redhat.com>
7443
7444 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7445 BFD. Simplify setting of di.endian.
7446
7447 2003-03-17 Andrew Cagney <cagney@redhat.com>
7448
7449 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7450 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7451
7452 From Elena Zannoni <ezannoni@redhat.com>
7453 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7454 vector and floating-point parameters.
7455 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7456 convention.
7457 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7458
7459 2003-03-17 Fernando Nasser <fnasser@redhat.com>
7460
7461 * MAINTAINERS: Remove my name from several maintainership roles.
7462
7463 2003-03-17 Andrew Cagney <cagney@redhat.com>
7464
7465 Fix frame off-by-one bug.
7466 * frame-unwind.h (frame_this_id_ftype): Replace
7467 frame_unwind_id_ftype.
7468 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7469 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7470 with "prev_register".
7471 * frame-unwind.c (frame_unwind_find_by_pc): Return
7472 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7473 comment.
7474 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7475 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7476 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7477 (dummy_frame_unwind): Update.
7478 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7479 sentinel_frame_register_unwind.
7480 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7481 (sentinel_frame_unwinder): Update.
7482 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7483 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7484 * frame.c (create_sentinel_frame): Update. Initialize
7485 "prologue_cache" instead of "unwind_cache".
7486 (frame_register_unwind): Call this frame's prev_register with the
7487 next frame and this frame's prologue cache.
7488 (get_prev_frame): Simplify. Always call prev frame's this_id with
7489 this frame and prev frame's prologue cache. Document that this
7490 call is shifted one to the left when compared to the
7491 frame_register_unwind call.
7492 (legacy_saved_regs_prev_register): Replace
7493 frame_saved_regs_register_unwind.
7494 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7495 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7496 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7497 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7498 (d10v_frame_unwind): Update.
7499 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7500 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7501 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7502 "saved_regs" with "this_saved_regs".
7503
7504 2003-03-16 Andrew Cagney <cagney@redhat.com>
7505
7506 * frame.c (frame_pop): Don't call target_store_registers. Fix
7507 problem reported by Mark Kettenis.
7508
7509 2003-03-16 Mark Kettenis <kettenis@gnu.org>
7510
7511 * i386-tdep.c (i386_register_type): Renamed from
7512 i386_register_virtual_type. Adjust function signature.
7513 (i386_gdbarch_init): Set register_type instead of
7514 deprecated_max_register_raw_size,
7515 deprecated_max_register_virtual_size and register_virtual_type.
7516
7517 2003-03-14 Andrew Cagney <cagney@redhat.com>
7518
7519 * frame.c (get_prev_frame): When a legacy frame, always call
7520 legacy_get_prev_frame. Simplify unwind code using assumption that
7521 the unwinder is new.
7522 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7523 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7524 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7525
7526 2003-03-14 Andrew Cagney <cagney@redhat.com>
7527
7528 * frame.c (get_saved_register): Delete function.
7529 * frame.h (get_saved_register): Delete declaration.
7530 * xstormy16-tdep.c: Update comment.
7531 * regcache.h: Update comments.
7532 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7533 get_saved_register and extract_address, use
7534 frame_read_unsigned_register.
7535 (sparc_frame_saved_pc): Ditto.
7536 (sparc_get_saved_register): Instead of get_saved_register, use
7537 frame_register.
7538 (sparc_pop_frame): Ditto.
7539 * findvar.c: Update comments.
7540 (value_of_register): Call frame_register instead of
7541 get_saved_register.
7542 (value_from_register): Ditto.
7543 * config/sparc/tm-sparc.h: Update comment.
7544 * breakpoint.c: Update comment.
7545
7546 2003-03-14 Andrew Cagney <cagney@redhat.com>
7547
7548 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7549 GET_SAVED_REGISTER.
7550 * gdbarch.h, gdbarch.c: Re-generate.
7551 * frame.h: Update comments.
7552 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7553 * x86-64-tdep.c (x86_64_init_abi): Update.
7554 * sparc-tdep.c (sparc_gdbarch_init): Update.
7555 * sh-tdep.c (sh_gdbarch_init): Update.
7556 * mips-tdep.c (mips_gdbarch_init): Update.
7557 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7558 * cris-tdep.c (cris_gdbarch_init): Update.
7559 * ia64-tdep.c (ia64_gdbarch_init): Update.
7560 * frame.c (frame_register): Update.
7561 (get_saved_register): Update.
7562 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7563
7564 2003-03-13 Andrew Cagney <cagney@redhat.com>
7565
7566 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7567 * gdbarch.h, gdbarch.c: Regenerate.
7568 * valops.c (hand_function_call): Update comment.
7569 * stack.c (return_command): Update comment.
7570 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7571 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7572 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7573 * x86-64-tdep.c (x86_64_init_abi): Update.
7574 * vax-tdep.c (vax_gdbarch_init): Update.
7575 * v850-tdep.c (v850_gdbarch_init): Update.
7576 * sparc-tdep.c (sparc_gdbarch_init): Update.
7577 * sh-tdep.c (sh_gdbarch_init): Update.
7578 * s390-tdep.c (s390_gdbarch_init): Update.
7579 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7580 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7581 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7582 * mips-tdep.c (mips_gdbarch_init): Update.
7583 * mcore-tdep.c (mcore_gdbarch_init): Update.
7584 * m68k-tdep.c (m68k_gdbarch_init): Update.
7585 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7586 * ia64-tdep.c (ia64_gdbarch_init): Update.
7587 * i386-tdep.c (i386_gdbarch_init): Update.
7588 * hppa-tdep.c (hppa_gdbarch_init): Update.
7589 * h8300-tdep.c (h8300_gdbarch_init): Update.
7590 * frv-tdep.c (frv_gdbarch_init): Update.
7591 * cris-tdep.c (cris_gdbarch_init): Update.
7592 * avr-tdep.c (avr_gdbarch_init): Update.
7593 * arm-tdep.c (arm_gdbarch_init): Update.
7594 * alpha-tdep.c (alpha_gdbarch_init): Update.
7595
7596 2003-03-13 Andrew Cagney <cagney@redhat.com>
7597
7598 * frame.c (legacy_frame_p): New function.
7599 (get_prev_frame): Use legacy_frame_p.
7600 * frame.h (legacy_frame_p): Declare.
7601
7602 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7603
7604 * MAINTAINERS (write after approval): Alphabetically
7605 listing corrected.
7606
7607 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7608
7609 * MAINTAINERS (write after approval): Add myself.
7610
7611 2003-03-12 Andrew Cagney <cagney@redhat.com>
7612
7613 * frame.c (get_prev_frame): Rename the frame parameter to
7614 "this_frame".
7615 (get_next_frame, legacy_get_prev_frame): Ditto.
7616
7617 2003-03-12 Andrew Cagney <cagney@redhat.com>
7618
7619 * frame.c (get_current_frame): Check target_has_registers before
7620 checking target_has_stack.
7621 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7622 instead of deprecated_selected_frame.
7623 * findvar.c (value_of_register): Pass "frame", not
7624 deprecated_selected_frame, to value_of_builtin_reg.
7625
7626 2003-03-12 Andrew Cagney <cagney@redhat.com>
7627
7628 * regcache.c (regcache_cooked_write_signed): New function.
7629 (regcache_cooked_write_unsigned): New function.
7630 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7631 (regcache_cooked_read_signed): Fix regnum in range assertion.
7632 * regcache.h (regcache_cooked_write_signed): Declare.
7633 (regcache_cooked_write_unsigned): Declare.
7634
7635 2003-03-12 Andrew Cagney <cagney@redhat.com>
7636
7637 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7638 * gdbarch.h, gdbarch.c: Re-generate.
7639 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7640 * x86-64-tdep.h: Update.
7641 * x86-64-tdep.c (x86_64_init_abi): Update.
7642 * v850-tdep.c (v850_gdbarch_init): Update.
7643 * sparc-tdep.c (sparc_gdbarch_init): Update.
7644 * sh-tdep.c (sh_gdbarch_init): Update.
7645 * s390-tdep.c (s390_gdbarch_init): Update.
7646 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7647 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7648 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7649 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7650 * mips-tdep.c (mips_gdbarch_init): Update.
7651 * mcore-tdep.c (mcore_gdbarch_init): Update.
7652 * m68k-tdep.c (m68k_gdbarch_init): Update.
7653 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7654 * ia64-tdep.c (ia64_gdbarch_init): Update.
7655 * i386-tdep.c (i386_gdbarch_init): Update.
7656 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7657 * hppa-tdep.c (hppa_gdbarch_init): Update.
7658 * h8300-tdep.c (h8300_gdbarch_init): Update.
7659 * frv-tdep.c (frv_gdbarch_init): Update.
7660 * cris-tdep.c (cris_gdbarch_init): Update.
7661 * avr-tdep.c (avr_gdbarch_init): Update.
7662 * arm-tdep.c (arm_gdbarch_init): Update.
7663 * alpha-tdep.c (alpha_gdbarch_init): Update.
7664 * sh-tdep.c (sh_init_extra_frame_info): Update.
7665 (sh64_init_extra_frame_info): Update.
7666 * ns32knbsd-nat.c (frame_num_args): Update.
7667 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7668 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7669 (xstormy16_frame_chain_valid): Update.
7670 * vax-tdep.c (vax_saved_pc_after_call): Update.
7671 * v850-tdep.c (v850_frame_chain): Update.
7672 (v850_pop_frame): Update.
7673 (v850_init_extra_frame_info): Update.
7674 * sparc-tdep.c (setup_arbitrary_frame): Update.
7675 * ns32k-tdep.c (umax_frame_num_args): Update.
7676 * s390-tdep.c (s390_pop_frame_regular): Update.
7677 * mn10300-tdep.c (mn10300_frame_chain): Update.
7678 (mn10300_pop_frame_regular): Update.
7679 (mn10300_init_extra_frame_info): Update.
7680 * mips-tdep.c (mips_init_frame_pc_first): Update.
7681 (mips_frame_chain): Update.
7682 (mips_pop_frame): Update.
7683 * mcore-tdep.c (mcore_frame_chain): Update.
7684 (mcore_pop_frame): Update.
7685 (mcore_init_extra_frame_info): Update.
7686 * arch-utils.c (init_frame_pc_default): Update.
7687 * m68k-tdep.c (isi_frame_num_args): Update.
7688 (delta68_frame_num_args): Update.
7689 (news_frame_num_args): Update.
7690 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7691 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7692 (alpha_frame_chain): Update.
7693 (alpha_pop_frame): Update.
7694 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7695 (hppa_init_extra_frame_info): Update.
7696 (hppa_frame_chain): Update.
7697 (hppa_frame_chain_valid): Update.
7698 * cris-tdep.c (cris_init_extra_frame_info): Update.
7699 * avr-tdep.c (avr_init_extra_frame_info): Update.
7700 * arm-tdep.c (arm_frame_chain_valid): Update.
7701 (arm_init_extra_frame_info): Update.
7702 (arm_pop_frame): Update.
7703 * frame.c (frame_pc_unwind): Update.
7704 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7705 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7706 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7707 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7708 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7709 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7710
7711 2003-03-12 Andrew Cagney <cagney@redhat.com>
7712
7713 Eliminate the need for POP_FRAME.
7714 * frame.c (do_frame_unwind_register): New function.
7715 (frame_pop): When no POP_FRAME, pop the frame using register
7716 unwind and a scratch regcache.
7717 (frame_saved_regs_pop): Delete function.
7718 (trad_frame_unwinder): Update.
7719 * d10v-tdep.c (d10v_frame_pop): Delete function.
7720 (d10v_frame_unwind): Update.
7721 * sentinel-frame.c (sentinel_frame_pop): Delete function.
7722 (sentinel_frame_unwinder): Update.
7723 * dummy-frame.c (dummy_frame_pop): Delete function.
7724 (dummy_frame_unwind): Update.
7725 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7726 (struct frame_unwind): Update.
7727
7728 2003-03-11 Kevin Buettner <kevinb@redhat.com>
7729
7730 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
7731 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
7732 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
7733 Do range checks on register number obtained from debugging info.
7734 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
7735 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
7736 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
7737 mapping function.
7738 (do_fp_register_row): Fix typo which caused double type to be
7739 used when attempting to unpack a float.
7740
7741 2003-03-11 J. Brobecker <brobecker@gnat.com>
7742
7743 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
7744
7745 2003-03-11 Andrew Cagney <cagney@redhat.com>
7746
7747 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
7748 frame. Problem found by Corinna Vinschen.
7749
7750 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
7751
7752 * doublest.c (floatformat_from_length): Accept also
7753 the real size of 'long double' type.
7754
7755 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
7756
7757 From Klee Dienes <kdienes@apple.com>:
7758 * breakpoint.c (bpstat_copy): Copy the command lines as well
7759 as the old value, to match what is freed in bpstat_clear.
7760
7761 2003-03-10 David Carlton <carlton@math.stanford.edu>
7762
7763 * minsyms.c (add_minsym_to_hash_table): Replace
7764 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7765 (compare_minimal_symbols, compact_minimal_symbols)
7766 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
7767 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
7768 of DEPRECATED_SYMBOL_MATCHES_NAME.
7769 (lookup_minimal_symbol_solib_trampoline): Ditto.
7770
7771 2003-03-10 Andrew Cagney <cagney@redhat.com>
7772
7773 * regcache.h (regcache_cooked_read_ftype): Define.
7774 (regcache_save, regcache_restore): Add a cooked_read parameter.
7775 * regcache.c (regcache_save, regcache_restore): Update.
7776 (do_cooked_read): New function.
7777 (regcache_cpy): Pass do_cooked_read to regcache_save and
7778 regcache_restore.
7779
7780 2003-03-10 Andrew Cagney <cagney@redhat.com>
7781
7782 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7783 * gdbarch.h, gdbarch.c: Re-generate.
7784 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7785 * x86-64-tdep.h: Update.
7786 * x86-64-tdep.c (x86_64_init_abi): Update.
7787 * v850-tdep.c (v850_gdbarch_init): Update.
7788 * sparc-tdep.c (sparc_gdbarch_init): Update.
7789 * sh-tdep.c (sh_gdbarch_init): Update.
7790 * s390-tdep.c (s390_gdbarch_init): Update.
7791 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7792 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7793 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7794 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7795 * mips-tdep.c (mips_gdbarch_init): Update.
7796 * mcore-tdep.c (mcore_gdbarch_init): Update.
7797 * m68k-tdep.c (m68k_gdbarch_init): Update.
7798 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7799 * ia64-tdep.c (ia64_gdbarch_init): Update.
7800 * i386-tdep.c (i386_gdbarch_init): Update.
7801 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7802 * hppa-tdep.c (hppa_gdbarch_init): Update.
7803 * h8300-tdep.c (h8300_gdbarch_init): Update.
7804 * frv-tdep.c (frv_gdbarch_init): Update.
7805 * cris-tdep.c (cris_gdbarch_init): Update.
7806 * avr-tdep.c (avr_gdbarch_init): Update.
7807 * arm-tdep.c (arm_gdbarch_init): Update.
7808 * alpha-tdep.c (alpha_gdbarch_init): Update.
7809 * sh-tdep.c (sh_init_extra_frame_info): Update.
7810 (sh64_init_extra_frame_info): Update.
7811 * ns32knbsd-nat.c (frame_num_args): Update.
7812 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7813 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7814 (xstormy16_frame_chain_valid): Update.
7815 * vax-tdep.c (vax_saved_pc_after_call): Update.
7816 * v850-tdep.c (v850_frame_chain): Update.
7817 (v850_pop_frame): Update.
7818 (v850_init_extra_frame_info): Update.
7819 * sparc-tdep.c (setup_arbitrary_frame): Update.
7820 * ns32k-tdep.c (umax_frame_num_args): Update.
7821 * s390-tdep.c (s390_pop_frame_regular): Update.
7822 * mn10300-tdep.c (mn10300_frame_chain): Update.
7823 (mn10300_pop_frame_regular): Update.
7824 (mn10300_init_extra_frame_info): Update.
7825 * mips-tdep.c (mips_init_frame_pc_first): Update.
7826 (mips_frame_chain): Update.
7827 (mips_pop_frame): Update.
7828 * mcore-tdep.c (mcore_frame_chain): Update.
7829 (mcore_pop_frame): Update.
7830 (mcore_init_extra_frame_info): Update.
7831 * arch-utils.c (init_frame_pc_default): Update.
7832 * m68k-tdep.c (isi_frame_num_args): Update.
7833 (delta68_frame_num_args): Update.
7834 (news_frame_num_args): Update.
7835 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7836 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7837 (alpha_frame_chain): Update.
7838 (alpha_pop_frame): Update.
7839 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7840 (hppa_init_extra_frame_info): Update.
7841 (hppa_frame_chain): Update.
7842 (hppa_frame_chain_valid): Update.
7843 * cris-tdep.c (cris_init_extra_frame_info): Update.
7844 * avr-tdep.c (avr_init_extra_frame_info): Update.
7845 * arm-tdep.c (arm_frame_chain_valid): Update.
7846 (arm_init_extra_frame_info): Update.
7847 (arm_pop_frame): Update.
7848 * frame.c (frame_pc_unwind): Update.
7849 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7850 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7851 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7852 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7853 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7854 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7855
7856 2003-03-10 Andrew Cagney <cagney@redhat.com>
7857
7858 * gdbarch.sh (gdbarch_unwind_pc): New method.
7859 * gdbarch.h, gdbarch.c: Regenerate.
7860 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
7861 but use read_pc and FRAME_SAVED_PC as fall backs.
7862 (frame_saved_regs_pc_unwind): Delete function.
7863 (trad_frame_unwinder): Update.
7864 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
7865 (struct frame_unwind): Update.
7866 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
7867 (dummy_frame_unwind): Update.
7868 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
7869 (sentinel_frame_unwinder): Update.
7870 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
7871 (d10v_frame_unwind): Update.
7872 (d10v_unwind_pc): New function.
7873 (d10v_gdbarch_init): Set unwind_pc.
7874
7875 2003-03-10 Andrew Cagney <cagney@redhat.com>
7876
7877 * gdbarch.h: Re-generate.
7878
7879 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
7880 PC.
7881 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
7882 the PC register.
7883
7884 2003-03-08 Mark Kettenis <kettenis@gnu.org>
7885
7886 * gdbarch.sh (save_dummy_frame_tos): Add comment.
7887
7888 2003-03-08 Andrew Cagney <cagney@redhat.com>
7889
7890 * cli-out.c: Update copyright.
7891 (cli_out_data): Define typedef. Use instead of ui_out_data.
7892
7893 2003-03-08 Andrew Cagney <cagney@redhat.com>
7894
7895 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
7896 the result.
7897
7898 2003-03-07 Andrew Cagney <cagney@redhat.com>
7899
7900 * gdbarch.sh: Don't generate two macro definitions when an
7901 undefined macro taking no arguments.
7902 * gdbarch.h: Regenerate.
7903
7904 2002-03-07 Michal Ludvig <mludvig@suse.cz>
7905
7906 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
7907 (x86_64_unwind_dummy_id): New functions.
7908 (x86_64_init_abi): Register these two new functions.
7909
7910 2003-03-07 Michal Ludvig <mludvig@suse.cz>
7911
7912 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
7913 (x86_64_skip_prologue): Move prologue detection to
7914 separate function.
7915 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
7916
7917 2003-03-05 Andrew Cagney <cagney@redhat.com>
7918
7919 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
7920 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
7921 * frame.c (get_prev_frame): Restructure the frame ID unwind code
7922 to use unwind_dummy_id when a dummy frame.
7923 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
7924 predicate.
7925 * gdbarch.h, gdbarch.c: Regneerate.
7926
7927 2003-03-05 Andrew Cagney <cagney@redhat.com>
7928
7929 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
7930 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
7931 Do not use d10v_read_sp or d10v_read_fp when obtaining register
7932 values.
7933
7934 2003-03-05 Andrew Cagney <cagney@redhat.com>
7935
7936 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
7937 (struct d10v_unwind_cache): Delete field "frameless". Replace
7938 "next_addr" with "sp_offset". Add "r11_offset".
7939 (d10v_frame_unwind_cache): Update.
7940 (prologue_find_regs): Update. When "mv r11, sp", save the
7941 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
7942 RN was saved in r11_offset.
7943
7944 2003-03-05 Andrew Cagney <cagney@redhat.com>
7945
7946 * frame.c (deprecated_update_frame_pc_hack): Also update the the
7947 cached PC value in the next frame.
7948
7949 2003-03-05 Andrew Cagney <cagney@redhat.com>
7950
7951 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
7952 "id_unwind_cache" with "id".
7953 (frame_id_unwind): Delete declaration.
7954 * frame.c (frame_id_unwind): Delete function.
7955 (get_prev_frame): Call the frame id unwind method directly. Store
7956 the returned next frame's ID value in NEXT_FRAME. Note that there
7957 is a problem with the wrong unwind ID being called with the wrong
7958 unwind cache.
7959
7960 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
7961
7962 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
7963
7964 2003-03-05 James Ingham <jingham@apple.com>
7965 Daniel Jacobowitz <drow@mvista.com>
7966
7967 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
7968 (auto_cp_abi): New variable.
7969 (current_cp_abi, num_cp_abis): Make static.
7970 (CP_ABI_MAX): Define.
7971 (cp_abis): Turn into an array.
7972 (value_virtual_fn_field): Fix formatting.
7973 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
7974 takes a pointer.
7975 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
7976 (list_cp_abis, _initialize_cp_abi): New functions.
7977 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
7978 declarations for cp_abis, num_cp_abis, current_cp_abi, and
7979 switch_to_cp_abi. Update prototype for register_cp_abi.
7980 * Makefile.in (cp-abi.o): Update dependencies.
7981 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
7982 instead of switch_to_cp_abi.
7983 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
7984 register_cp_abi.
7985 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
7986 register_cp_abi.
7987 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
7988
7989 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
7990
7991 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
7992 * dwarf2loc.c: Include "regcache.h".
7993 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
7994 register_size.
7995 * Makefile.in (dwarf2loc.o): Update dependencies.
7996
7997 2003-03-04 Theodore A. Roth <troth@openavr.org>
7998
7999 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8000 number of io registers reported by remote target is not a multiple of
8001 step.
8002
8003 2003-03-04 David Carlton <carlton@math.stanford.edu>
8004
8005 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8006 (lookup_symbol_aux_psymtabs): Update call to
8007 lookup_partial_symbol.
8008 (lookup_transparent_type, find_main_psymtab)
8009 (make_symbol_overload_list): Ditto.
8010
8011 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8012
8013 * MAINTAINERS (Write after approval): Update my email address.
8014
8015 2003-03-03 Andrew Cagney <cagney@redhat.com>
8016
8017 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8018 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8019 predicate. Replace MAX_REGISTER_RAW_SIZE.
8020 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8021 MAX_REGISTER_VIRTUAL_SIZE.
8022 * regcache.c (legacy_max_register_raw_size): New function.
8023 (legacy_max_register_virtual_size): New function.
8024 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8025 (MAX_REGISTER_RAW_SIZE): Define.
8026 (legacy_max_register_raw_size): Declare.
8027 (legacy_max_register_virtual_size): Declare.
8028 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8029 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8030 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8031 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8032 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8033 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8034 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8035 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8036 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8037 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8038 * vax-tdep.c (vax_gdbarch_init): Update.
8039 * v850-tdep.c (v850_gdbarch_init): Update.
8040 * sparc-tdep.c (sparc_gdbarch_init): Update.
8041 * sh-tdep.c (sh_gdbarch_init): Update.
8042 * s390-tdep.c (s390_gdbarch_init): Update.
8043 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8044 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8045 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8046 * mips-tdep.c (mips_gdbarch_init): Update.
8047 * mcore-tdep.c (mcore_gdbarch_init): Update.
8048 * m68k-tdep.c (m68k_gdbarch_init): Update.
8049 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8050 * ia64-tdep.c (ia64_gdbarch_init): Update.
8051 * i386-tdep.c (i386_gdbarch_init): Update.
8052 * hppa-tdep.c (hppa_gdbarch_init): Update.
8053 * h8300-tdep.c (h8300_gdbarch_init): Update.
8054 * frv-tdep.c (frv_gdbarch_init): Update.
8055 * cris-tdep.c (cris_gdbarch_init): Update.
8056 * avr-tdep.c (avr_gdbarch_init): Update.
8057 * arm-tdep.c (arm_gdbarch_init): Update.
8058 * alpha-tdep.c (alpha_gdbarch_init): Update.
8059 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8060 max_register_raw_size or max_register_virtual_size.
8061
8062 2003-03-03 David Carlton <carlton@math.stanford.edu>
8063
8064 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8065 SYMBOL_MATCHES_NAME, add comment.
8066 (SYMBOL_MATCHES_NATURAL_NAME): New.
8067 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8068 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8069 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8070 * symtab.c (lookup_partial_symbol): Use
8071 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8072 unhelpful comment.
8073 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8074 SYMBOL_MATCHES_NAME.
8075 Fix for PR c++/33.
8076
8077 2003-03-03 David Carlton <carlton@math.stanford.edu>
8078
8079 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8080 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8081 by regexp matching against SYMBOL_NATURAL_NAME.
8082
8083 2003-03-03 David Carlton <carlton@math.stanford.edu>
8084
8085 * linespec.c (find_method): Extract code into collect_methods.
8086 (collect_methods): New.
8087
8088 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8089
8090 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8091 get_frame_base.
8092
8093 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8094 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8095
8096 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8097
8098 * arch-utils.c (generic_register_byte): Fix to use the loop index
8099 and not regnum when summing the size of all registers up to regnum.
8100
8101 2003-03-01 Andrew Cagney <cagney@redhat.com>
8102
8103 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8104 FRAME_INIT_SAVED_REGS.
8105 * gdbarch.h, gdbarch.c: Regenerate.
8106 * stack.c (frame_info): Update.
8107 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8108 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8109 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8110 * ns32k-tdep.c (ns32k_pop_frame): Update.
8111 * mips-tdep.c (mips_pop_frame): Update.
8112 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8113 * ia64-tdep.c (ia64_frame_chain): Update.
8114 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8115 (ia64_frameless_function_invocation): Update.
8116 (ia64_init_extra_frame_info): Update.
8117 (ia64_pop_frame_regular): Update.
8118 * frame.h (struct frame_info): Update comment.
8119 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8120 * frame.c (frame_saved_regs_register_unwind): Update.
8121 (frame_saved_regs_register_unwind): Update.
8122 (deprecated_generic_get_saved_register): Update.
8123 * cris-tdep.c: Update comment.
8124 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8125 Rename macro.
8126 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8127 * x86-64-tdep.c (x86_64_init_abi): Update.
8128 * vax-tdep.c (vax_gdbarch_init): Update.
8129 * v850-tdep.c (v850_gdbarch_init): Update.
8130 * sparc-tdep.c (sparc_gdbarch_init): Update.
8131 * sh-tdep.c (sh_gdbarch_init): Update.
8132 * s390-tdep.c (s390_gdbarch_init): Update.
8133 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8134 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8135 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8136 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8137 * mips-tdep.c (mips_gdbarch_init): Update.
8138 * mcore-tdep.c (mcore_gdbarch_init): Update.
8139 * m68k-tdep.c (m68k_gdbarch_init): Update.
8140 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8141 * ia64-tdep.c (ia64_gdbarch_init): Update.
8142 * i386-tdep.c (i386_gdbarch_init): Update.
8143 * frv-tdep.c (frv_gdbarch_init): Update.
8144 * avr-tdep.c (avr_gdbarch_init): Update.
8145 * arm-tdep.c (arm_gdbarch_init): Update.
8146 * alpha-tdep.c (alpha_gdbarch_init): Update.
8147
8148 2003-03-01 Andrew Cagney <cagney@redhat.com>
8149
8150 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8151 option enum and switch. When no windows, set the interpreter to
8152 INTERP_CONSOLE.
8153
8154 2003-03-01 Andrew Cagney <cagney@redhat.com>
8155
8156 * main.c (captured_main): Replace magic option characters with an
8157 enum.
8158
8159 2003-03-01 Andrew Cagney <cagney@redhat.com>
8160
8161 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8162 INIT_EXTRA_FRAME_INFO.
8163 * gdbarch.h, gdbarch.c: Regenerate.
8164 * arm-tdep.c: Update comments.
8165 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8166 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8167 * frame.h, avr-tdep.c: Ditto.
8168 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8169 (create_new_frame, legacy_get_prev_frame): Ditto.
8170 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8171 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8172 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8173 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8174 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8175 * v850-tdep.c (v850_gdbarch_init): Ditto.
8176 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8177 * sh-tdep.c (sh_gdbarch_init): Ditto.
8178 * s390-tdep.c (s390_gdbarch_init): Ditto.
8179 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8180 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8181 * mips-tdep.c (mips_gdbarch_init): Ditto.
8182 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8183 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8184 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8185 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8186 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8187 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8188 * frv-tdep.c (frv_gdbarch_init): Ditto.
8189 * cris-tdep.c (cris_gdbarch_init): Ditto.
8190 * avr-tdep.c (avr_gdbarch_init): Ditto.
8191 * arm-tdep.c (arm_gdbarch_init): Ditto.
8192 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8193 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8194
8195 2003-03-01 Andrew Cagney <cagney@redhat.com>
8196
8197 * gdbarch.sh (register_type): New function with predicate.
8198 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8199 * gdbarch.h, gdbarch.c: Re-generate.
8200 * arch-utils.c (generic_register_byte): Use generic_register_size.
8201 (generic_register_size): When available, use
8202 gdbarch_register_type.
8203 * regcache.c (init_regcache_descr): When available, initialize the
8204 register type array using gdbarch_register_type. If the
8205 architecture supplies gdbarch_register_type, do not use the legacy
8206 regcache layout.
8207 * d10v-tdep.c (d10v_register_type): Replace
8208 d10v_register_virtual_type.
8209 (d10v_gdbarch_init): Set register_type instead of
8210 register_virtual_type.
8211
8212 2003-03-01 Andrew Cagney <cagney@redhat.com>
8213
8214 * Makefile.in (ax-gdb.o): Update dependencies.
8215 * ax-gdb.c: Include "regcache.h".
8216 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8217 * findvar.c (value_of_register): Ditto.
8218 * infcmd.c (default_print_registers_info): Ditto.
8219
8220 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8221
8222 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8223 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8224
8225 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8226
8227 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8228 of STREQ.
8229
8230 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8231
8232 * Makefile.in (dwarf2loc.o): Update dependencies.
8233 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8234 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8235 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8236 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8237 (locexpr_tracepoint_var_ref): New function.
8238 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8239
8240 2003-02-28 Andrew Cagney <cagney@redhat.com>
8241
8242 * regcache.c (register_size): New function.
8243 * regcache.h (register_size): Declare
8244 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8245 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8246
8247 2003-02-28 David Carlton <carlton@math.stanford.edu>
8248
8249 * linespec.c (decode_compound): Extract code into find_method.
8250 (find_method): New.
8251
8252 2003-02-28 J. Brobecker <brobecker@gnat.com>
8253
8254 * Makefile.in: Add rules to build and link in observer.o.
8255
8256 2003-02-27 J. Brobecker <brobecker@gnat.com>
8257
8258 * observer.c: Minor comments edits.
8259
8260 2003-02-27 J. Brobecker <brobecker@gnat.com>
8261
8262 * observer.h, observer.c: New file.
8263
8264 2003-02-27 Andrew Cagney <cagney@redhat.com>
8265
8266 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8267
8268 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8269
8270 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8271 (M6812_OP_STS_EXT): Likewise.
8272 (m6811_prologue): Use the above to recognize prologue.
8273 (m6812_prologue): Likewise.
8274
8275 2003-02-27 David Carlton <carlton@math.stanford.edu>
8276
8277 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8278 SYMBOL_PRINT_NAME.
8279 (compare_psymbols): Ditto.
8280 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8281
8282 2003-02-27 Michael Snyder <msnyder@redhat.com>
8283
8284 * f-lang.c (build_fortran_types): New function.
8285 (_initialize_f_language): Gdbarch-register built-in fortran types.
8286 * doublest.c (extract_floating): Fix warning text.
8287
8288 2003-02-27 Andrew Cagney <cagney@redhat.com>
8289
8290 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8291 predicate. Replaces PUSH_DUMMY_FRAME.
8292 * gdbarch.h, gdbarch.c: Regnerate.
8293 * valops.c (hand_function_call): Update. Call
8294 generic_push_dummy_frame directly.
8295 * vax-tdep.c (vax_gdbarch_init): Update.
8296 * sparc-tdep.c (sparc_gdbarch_init): Update.
8297 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8298 * m68k-tdep.c (m68k_gdbarch_init): Update.
8299 * hppa-tdep.c (hppa_gdbarch_init): Update.
8300 * alpha-tdep.c (alpha_gdbarch_init): Update.
8301 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8302 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8303 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8304 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8305 push_dummy_frame to generic_push_dummy_frame.
8306 * v850-tdep.c (v850_gdbarch_init): Ditto.
8307 * sh-tdep.c (sh_gdbarch_init): Ditto.
8308 * s390-tdep.c (s390_gdbarch_init): Ditto.
8309 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8310 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8311 * mips-tdep.c (mips_gdbarch_init): Ditto.
8312 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8313 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8314 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8315 * i386-tdep.c (i386_gdbarch_init): Ditto.
8316 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8317 * frv-tdep.c (frv_gdbarch_init): Ditto.
8318 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8319 * cris-tdep.c (cris_gdbarch_init): Ditto.
8320 * avr-tdep.c (avr_gdbarch_init): Ditto.
8321 * arm-tdep.c (arm_gdbarch_init): Ditto.
8322
8323 2003-02-26 Kevin Buettner <kevinb@redhat.com>
8324
8325 * mips-tdep.c (show_mips_abi): New function.
8326 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8327 command ``show mips abi''.
8328
8329 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8330
8331 From Elena Zannoni <ezannoni@redhat.com>
8332 * dbxread.c (process_one_symbol): Only record line 0 if one or
8333 more sline entries have been seen for the function.
8334
8335 2003-02-26 Michael Chastain <mec@shout.net>
8336
8337 * configure: Regenerate with autoconf 000227.
8338
8339 2003-02-26 Michael Chastain <mec@shout.net>
8340
8341 Close PR build/660.
8342 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8343 for old libc5/glibc.
8344 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8345
8346 2003-02-26 Kris Warkentin <kewarken@qnx.com>
8347
8348 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8349 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8350
8351 2003-02-26 Michael Chastain <mec@shout.net>
8352
8353 * configure.in: New variable HAVE_UINTPTR_T.
8354 * configure, config.in: Regenerated.
8355
8356 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
8357
8358 Fix PR build/1097.
8359 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8360
8361 2003-02-25 Andrew Cagney <cagney@redhat.com>
8362
8363 * frame.c (get_prev_frame): Add comment on check for
8364 inside_entry_func. Only check for inside_entry_file when not a
8365 dummy and not a sentinel. Check that the new frame is not inner
8366 to the old frame.
8367
8368 2003-02-25 Andrew Cagney <cagney@redhat.com>
8369
8370 * frame.c (frame_debug): New variable.
8371 (_initialize_frame): Add "set/show debug frame" command.
8372 (get_prev_frame): When frame_debug, print reason why unwind
8373 failed.
8374
8375 2003-02-25 Michael Chastain <mec@shout.net>
8376
8377 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8378 to avoid uintptr_t definition problems.
8379
8380 2003-02-25 David Carlton <carlton@math.stanford.edu>
8381
8382 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8383 (SYMBOL_LINKAGE_NAME): Ditto.
8384 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8385 SYMBOL_LINKAGE_NAME.
8386 (struct general_symbol_info): Expand comment.
8387 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8388 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8389 (SYMBOL_MATCHES_REGEXP): Ditto.
8390 * symtab.c (symbol_natural_name): New function.
8391 * objfiles.h: Replace all uses of SYMBOL_NAME by
8392 DEPRECATED_SYMBOL_NAME.
8393 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8394 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8395 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8396 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8397 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8398 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8399 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8400 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8401 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8402 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8403 * ada-exp.y: Ditto.
8404 * ada-exp.y: Update copyright.
8405 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8406 * cp-valprint.c: Ditto.
8407
8408 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8409
8410 * infptrace.c (detach): Do not flag error if ptrace detach fails
8411 and errno is set to ESRCH.
8412
8413 2003-02-24 Andrew Cagney <cagney@redhat.com>
8414
8415 * infptrace.c (udot_info): Change type of udot_off to long. Use
8416 paddr when printing udot_off's value.
8417
8418 2003-02-24 David Carlton <carlton@math.stanford.edu>
8419
8420 * symtab.c (make_symbol_overload_list): Only read in partial
8421 symtabs containing a matching partial symbol.
8422
8423 2003-02-24 David Carlton <carlton@math.stanford.edu>
8424
8425 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8426 do the comparison, not strcmp.
8427 * symfile.c (compare_psymbols): Ditto.
8428 * defs.h: Declare strcmp_iw_ordered.
8429 * utils.c (strcmp_iw_ordered): New function.
8430
8431 2003-02-24 Jim Blandy <jimb@redhat.com>
8432
8433 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8434 support, shared libs): Remove my name from here, to better reflect
8435 reality.
8436
8437 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8438
8439 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8440 (target_ops): Add to_have_continuable_watchpoint.
8441 * target.c (update_current_target): Add INHERIT line for
8442 to_have_continuable_watchpoint.
8443 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8444 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8445 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8446 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8447
8448 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
8449
8450 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8451 maintainership.
8452
8453 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8454
8455 * solib.c (solib_open): Call target defined search function after
8456 failing with solib-search-path.
8457 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8458 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8459
8460 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8461
8462 * MAINTAINERS: Add myself to Write After section.
8463
8464 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8465
8466 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8467
8468 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8469
8470 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8471 (m68hc11_add_reggroups): New function.
8472 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8473 (m68hc11_gdbarch_init): Install the reggroups.
8474 (_initialize_m68hc11_tdep): Initialize them.
8475
8476 2003-02-21 James E Wilson <wilson@tuliptree.org>
8477
8478 * MAINTAINERS: Update my email address.
8479
8480 2003-02-21 David Carlton <carlton@math.stanford.edu>
8481
8482 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8483
8484 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
8485
8486 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8487 * symtab.h: Add opaque declarations of struct axs_value and
8488 struct agent_expr.
8489 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8490 (struct location_funcs): New type.
8491 (struct symbol): Add "loc" to aux_value.
8492 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8493 * dwarf2read.c: Include "dwarf2expr.h".
8494 (dwarf2_symbol_mark_computed): New function.
8495 (read_func_scope): Use it.
8496 (var_decode_location): New function.
8497 (new_symbol): Use it.
8498 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8499
8500 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8501 (dwarf2expr_h, dwarf2loc_h): New variables.
8502 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8503 (dwarf2expr.o, dwarf2loc.o): New rules.
8504 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8505 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8506 LOC_COMPUTED_ARG.
8507 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8508 * m2-exp.y (yylex): Likewise.
8509 * printcmd.c (address_info, print_frame_args): Likewise.
8510 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8511 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8512 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8513 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8514 * symtab.c (lookup_block_symbol): Likewise.
8515
8516 2003-02-20 Adam Fedor <fedor@gnu.org>
8517
8518 * symtab.h: Remove objc_specific struct
8519 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8520 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8521 Have language_objc use cplus_specific struct.
8522
8523 2003-02-20 Tom Tromey <tromey@redhat.com>
8524
8525 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8526 TYPE_NAME, when printing a String value. PR java/1075.
8527
8528 2003-02-20 Adam Fedor <fedor@gnu.org>
8529
8530 * objc-lang.h (find_methods): Remove declaration.
8531 * objc-lang.c (find_methods): Make static.
8532
8533 2003-02-20 Christopher Faylor <cgf@redhat.com>
8534
8535 * win32-nat.c (get_image_name): Check return value from
8536 ReadProcessMemory.
8537 (child_xfer_memory): Ditto.
8538
8539 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
8540
8541 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8542 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8543 '${exec_prefix}' (in addition to the expansion thereof) as
8544 relocatable.
8545 * configure: Rebuilt.
8546
8547 2003-02-20 David Carlton <carlton@math.stanford.edu>
8548
8549 * symtab.c (search_symbols): Revert the search_symbols part of my
8550 2002-12-23 patch. Add comment.
8551
8552 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8553
8554 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8555 * dbxread.c (elfstab_build_psymtabs): Don't call
8556 install_minimal_symbols.
8557 (stabsect_build_psymtabs): Likewise.
8558 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8559 earlier.
8560 * somread.c (som_symfile_read): Call install_minimal_symbols
8561 and do_cleanups earlier.
8562 * nlmread.c (nlm_symfile_read): Likewise.
8563 * mdebugread.c (elfmdebug_build_psymtabs): Call
8564 install_minimal_symbols and make appropriate cleanups.
8565
8566 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8567
8568 * solib.c (reload_shared_libraries): New function.
8569 (_initialize_solib): Add callbacks for ``set solib-search-path''
8570 and ``set solib-absolute-prefix''.
8571
8572 2003-02-20 David Carlton <carlton@math.stanford.edu>
8573
8574 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8575 expand comment.
8576 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8577 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8578 * ada-typeprint.c (ada_typedef_print): Ditto.
8579 * ax-gdb.c (gen_var_ref): Ditto.
8580 * breakpoint.c (print_one_breakpoint): Ditto.
8581 * buildsym.c (finish_block): Ditto.
8582 * c-valprint.c (c_val_print): Ditto.
8583 * expprint.c (print_subexp): Ditto.
8584 * findvar.c (locate_var_value): Ditto.
8585 * infcmd.c (jump_command): Ditto.
8586 * linespec.c (decode_line_2, decode_compound): Ditto.
8587 * maint.c (maintenance_translate_address): Ditto.
8588 * objc-lang.c (compare_selectors, compare_classes): Ditto.
8589 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8590 Ditto.
8591 * p-valprint.c (pascal_val_print): Ditto.
8592 * stabsread.c (define_symbol): Ditto.
8593 * stack.c (print_frame, frame_info, print_block_frame_locals)
8594 (print_frame_arg_vars, return_command): Ditto.
8595 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8596 * symmisc.c (print_symbol): Ditto.
8597 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8598 (compare_search_syms, print_symbol_info, print_msymbol_info)
8599 (rbreak_command): Ditto.
8600 * tracepoint.c (tracepoints_info): Ditto.
8601 * typeprint.c (typedef_print): Ditto.
8602 * valops.c (value_of_variable, hand_function_call): Ditto.
8603 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8604 * ada-typeprint.c: Update Copyright.
8605 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8606 * tracepoint.c, cli/cli-cmds.c: Ditto.
8607
8608 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8609
8610 * frame.c (generic_unwind_get_saved_register): Make non-static.
8611 * frame.h (generic_unwind_get_saved_register): Declare.
8612 * mips-tdep.c (read_next_frame_reg): Fetch register from
8613 current regcache when frame is NULL.
8614 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8615 that must be NULL.
8616 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8617 instead of frame_register_unwind().
8618
8619 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8620
8621 * remote-sim.c (gdbsim_insert_breakpoint)
8622 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8623 code.
8624
8625 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8626
8627 * remote.c (_initialize_remote): Add commands "set/show remote
8628 hardware-watchpoint-limit" and "set/show remote
8629 hardware-breakpoint-limit".
8630 (remote_hw_watchpoint_limit): Initialize to -1.
8631 (remote_hw_breakpoint_limit): Ditto.
8632 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8633
8634 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8635
8636 * coff-pe-read.c: New file - support reading of minimal symbols from a
8637 portable executable using the export table.
8638 * coff-pe-read.h: New file.
8639 * coffread.c: Include coff-pe-read.h.
8640 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8641 debugging symbols found.
8642 * Makefile.in (SFILES): Add coff-pe-read.o.
8643 (coff_pe_read_h): Define.
8644 (COMMON_OBS): Add coff-pe-read.o.
8645 (coffread.o): Add coff_pe_read_h dependency.
8646 (coff-pe-read.o): New target.
8647
8648 2003-02-19 David Carlton <carlton@math.stanford.edu>
8649
8650 * Makefile.in (SFILES): Add block.c.
8651 (block_h): New.
8652 (COMMON_OBS): Add block.o.
8653 (block.o): New.
8654 (x86-64-tdep.o): Add $(block_h).
8655 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8656 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8657 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8658 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8659 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8660 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8661 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8662 * value.h: Add opaque declaration for struct block.
8663 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8664 * ada-lang.h: Ditto.
8665 * x86-64-tdep.c: #include "block.h"
8666 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8667 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8668 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8669 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8670 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8671 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8672 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8673 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8674 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8675 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8676 * symtab.c (block_function): Ditto.
8677 (contained_in): Ditto.
8678 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8679 block.h. Add opaque declaration for struct block.
8680 * symtab.h: Move block_function and contained_in declarations to
8681 block.h. Add opaque declarations for struct block, struct
8682 blockvector.
8683 (struct block): Move to block.h.
8684 (struct blockvector): Ditto.
8685 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8686 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8687 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8688 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8689 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8690 Ditto.
8691 * block.c: New file.
8692 * block.h: New file.
8693
8694 2003-02-19 Theodore A. Roth <troth@openavr.org>
8695
8696 * avr-tdep.c (avr_extract_return_value): Remove function.
8697 (avr_store_return_value): Remove function.
8698 (avr_extract_struct_value_address): Remove function.
8699 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8700
8701 2003-02-19 Andrew Cagney <ac131313@redhat.com>
8702
8703 * rs6000-tdep.c: Include "gdb_assert.h".
8704 (registers_e500): Add "acc" and "spefscr".
8705 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8706 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8707 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
8708 really is "r0".
8709 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8710
8711 2003-02-18 Keith Seitz <keiths@redhat.com>
8712
8713 * Makefile.in: Add gdbtk-interps.c.
8714
8715 2003-02-18 Kevin Buettner <kevinb@redhat.com>
8716
8717 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8718 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8719
8720 2003-02-18 Andrew Cagney <cagney@redhat.com>
8721
8722 * symtab.h (struct objfile): Add opaque declaration.
8723
8724 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
8725
8726 From Jim Ingham <jingham@apple.com>:
8727 * dbxread.c (process_one_symbol): Use last_function_start rather
8728 than function_start_offset to find the real beginning of the
8729 current function. The latter is just the text section offset on
8730 some systems, the former is always the real function start.
8731
8732 2003-02-17 Andrew Cagney <cagney@redhat.com>
8733
8734 * configure.in: Revert ${target} != ${host}.
8735
8736 2003-02-17 Andrew Cagney <ac131313@redhat.com>
8737
8738 * configure.in (Makefile): Use the test ${target} != ${host},
8739 instead of the absence of the "nm.h" file, to determine of the
8740 configuration non-native.
8741 * configure: Regenerate.
8742
8743 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
8744
8745 From Brian Ford <ford@vss.fsi.com>
8746
8747 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
8748 conditionalize tui_active test.
8749 (lookup_cmd_1): Ditto.
8750
8751 2003-02-14 Mark Kettenis <kettenis@gnu.org>
8752
8753 * configure.in: Add check for _etext.
8754 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
8755 available.
8756 * config.in, configure: regenerated.
8757
8758 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
8759
8760 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
8761
8762 2003-02-14 Andrew Cagney <ac131313@redhat.com>
8763
8764 * main.c (tui_version): Delete variable.
8765 (captured_main): When --tui, set interpreter_p to "tui" instead of
8766 enabling tui_version.
8767 * printcmd.c (display_command) [TUI]: Test tui_active instead of
8768 tui_version.
8769 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
8770 * cli/cli-cmds.c (disassemble_command): Ditto.
8771 * defs.h (tui_version): Delete declaration.
8772 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
8773 (tui-interp.o): Add rules.
8774 (SUBDIR_TUI_OBS): Add "tui-interp.o".
8775
8776 2003-02-14 Christopher Faylor <cgf@redhat.com>
8777
8778 * win32-nat.c (register_loaded_dll): Correctly set address range for
8779 just-loaded dll.
8780
8781 2003-02-12 Jason Molenda (jmolenda@apple.com)
8782
8783 * symmisc.c (print_objfile_statistics): Include information about
8784 the number of psymtabs and symtabs in each object file.
8785
8786 2003-02-13 Keith R Seitz <keiths@redhat.com>
8787
8788 * main.h (struct captured_main_args): Add interpreter_p.
8789 * main.c (captured_main): Initialize interpreter_p from context.
8790 * gdb.c (main): Set interpreter_p argument.
8791 * Makefile.in (gdb.o): Add dependency for interps.h.
8792
8793 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8794
8795 * event-top.c (cli_command_loop): Delete declaration.
8796 (_initialize_event_loop): Delete function setting event_loop_hook.
8797 * event-top.h (cli_command_loop): Declare. Update copyright.
8798 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
8799 * interps.c (current_interp_command_loop): When event_loop_p, call
8800 cli_command_loop.
8801
8802 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8803
8804 * interps.h (interp_command_loop_ftype): Change return type to
8805 void.
8806
8807 2003-02-12 Michal Ludvig <mludvig@suse.cz>
8808
8809 * x86-64-tdep.c (x86_64_extract_return_value)
8810 (x86_64_store_return_value): Use regcache instead of regbuf.
8811 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
8812 * x86-64-linux-nat.c (fill_gregset): Use regcache.
8813
8814 2003-02-11 Andrew Cagney <ac131313@redhat.com>
8815
8816 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
8817 * aclocal.m4: Regenerate.
8818 * configure: Regenerate.
8819
8820 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
8821 TCL_LD_SEARCH_FLAGS.
8822
8823 2003-02-10 Michal Ludvig <mludvig@suse.cz>
8824
8825 * dwarf2cfi.c: Reindented.
8826
8827 2003-02-09 Andrew Cagney <ac131313@redhat.com>
8828
8829 * interps.c (clear_interpreter_hooks): Convert function definition
8830 to ISO C.
8831
8832 2003-02-07 David Carlton <carlton@math.stanford.edu>
8833
8834 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8835
8836 2003-02-07 Kevin Buettner <kevinb@redhat.com>
8837
8838 * gdbtypes.h (struct main_type): Move ``length'' field from here...
8839 (struct type): ...to here.
8840 (TYPE_LENGTH): Adjust to reflect different location of ``length''
8841 field.
8842 * gdbtypes.c (make_qualified_type): Set length on newly created type.
8843 (replace_type): Set length on all type variants for a given type.
8844
8845 2003-02-07 Andrew Cagney <ac131313@redhat.com>
8846
8847 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
8848 <sys/stat.h>.
8849 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8850
8851 2003-02-06 Andrew Cagney <ac131313@redhat.com>
8852
8853 * Makefile.in (symm-nat.o): Update dependencies.
8854 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
8855 (lynx-nat.o, ia64-linux-nat.): Ditto.
8856 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
8857 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
8858 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
8859
8860 * Makefile.in (inflow_h): Define.
8861 (procfs.o, inflow.o, procfs.o): Update dependencies.
8862 * inftarg.c (child_stop): Delete extern declaration of
8863 inferior_process_group. Include "inflow.h".
8864 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
8865 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
8866 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
8867 (our_process_group, inferior_process_group): Extern declarations.
8868
8869 * procfs.c: Include "gdb_assert.h".
8870
8871 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8872 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
8873 * jv-typeprint.c (java_type_print_base): Ditto.
8874 * typeprint.c (typedef_print): Eliminate STREQ.
8875 * cli/cli-script.c (define_command, define_command): Ditto.
8876 * main.c (captured_main): Ditto.
8877 * values.c (lookup_internalvar): Ditto.
8878 * utils.c (safe_strerror, parse_escape): Eliminate assignment
8879 within `if' conditional.
8880 * linespec.c (decode_line_2): Ditto.
8881 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
8882 (bfd_openw_with_cleanup): Ditto.
8883
8884 2003-02-07 Mark Kettenis <kettenis@gnu.org>
8885
8886 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
8887 legacy_extract_return_value and store_return_value to
8888 legacy_return_value.
8889
8890 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
8891
8892 * win32-nat.c (get_relocated_section_addrs): New function. Find
8893 section load addresses for symbol handling in relocated DLLs.
8894 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
8895
8896 2003-02-05 Fred Fish <fnf@intrinsity.com>
8897
8898 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
8899 '=' and '!='.
8900 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
8901 with '&' and '=='.
8902 (angel_RDI_info): Ditto.
8903 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
8904 with '&' and '!='.
8905 (threads_continue_all_with_signals): Ditto.
8906
8907 2003-02-05 Jim Ingham <jingham@apple.com>
8908 Keith Seitz <keiths@redhat.com>
8909 Elena Zannoni <ezannoni@redhat.com>
8910 Andrew Cagney <ac131313@redhat.com>
8911
8912 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
8913 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
8914 (SUBDIR_MI_OBS): Add "mi-interp.o".
8915 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
8916 (SFILES): Add "interps.c".
8917 (COMMON_OBS): Add "interps.o".
8918 (interps_h, mi_main_h): Define.
8919 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
8920 (mi-main.o, main.o, event-top.o): Update dependencies.
8921 * cli/cli-interp.c: New file.
8922 * interps.h, interps.c: New files.
8923 * top.c: (gdb_init): Don't install the default interpreter, handed
8924 by captured_main.
8925 * main.c: Include "interps.h".
8926 (interpreter_p): Note that it should malloc'ed.
8927 (captured_command_loop): Call current_interp_command_loop.
8928 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
8929 xfree and xstrdup when updating interpreter_p. Install the
8930 default interpreter. Add hack to stop mi1's copyright notice
8931 being encoded.
8932 * event-top.h (gdb_setup_readline): Declare.
8933 (gdb_disable_readline): Declare.
8934 * event-top.c: Include "interps.h".
8935 (display_gdb_prompt): Call current_interp_display_prompt_p.
8936 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
8937 gdb_stdlog, and gdb_stdtarg.
8938 (_initialize_event_loop): Don't call gdb_setup_readline.
8939 * cli-out.c (cli_out_set_stream): New function.
8940 * cli-out.h (cli_out_set_stream): Declare.
8941
8942 2003-02-06 Mark Kettenis <kettenis@gnu.org>
8943
8944 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
8945 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
8946 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
8947 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
8948 config/i386/i386v42mp.mt: Removed.
8949
8950 2003-02-05 Mark Kettenis <kettenis@gnu.org>
8951
8952 * configure.tgt (*-*-solaris*): Set gdb_osabi to
8953 GDB_OSABI_SOLARIS.
8954
8955 2003-02-05 Michael Chastain <mec@shout.net>
8956
8957 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
8958 2.12.1 and earlier versions.
8959
8960 2003-02-05 Andrew Cagney <ac131313@redhat.com>
8961
8962 Remove orphaned hosts, targets and files.
8963 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
8964 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
8965 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
8966 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
8967 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
8968 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
8969 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
8970 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
8971 * config/sparc/tm-sp64sim.h: Delete.
8972 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
8973 hosts.
8974 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
8975 mips*-dec-mach3* targets.
8976
8977 2003-02-04 Michael Chastain <mec@shout.net>
8978
8979 * NEWS: Fix typo: sepcifying -> specifying.
8980
8981 2003-02-04 Michael Chastain <mec@shout.net>
8982
8983 * dwarfread.c: Add documentation on the state of dwarf-1,
8984 looking towards obsoletion.
8985
8986 2003-02-03 Michael Chastain <mec@shout.net>
8987
8988 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
8989 gdb/testsuite/gdb.c++/pr-1023.exp.
8990
8991 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8992
8993 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
8994 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
8995
8996 * utils.c (init_page_info): Delete reference to MPW in comments.
8997 * main.c (captured_main): Delete #ifdef MPW.
8998
8999 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9000
9001 * NEWS: Note that the m32r-*-elf* is obsolete.
9002 * monitor.c (monitor_expect): Obsolete reference to m32r.
9003 * configure.tgt: Mark m32r-*-elf* as obsolete.
9004 * MAINTAINERS: Mark m32k as obsolete.
9005 * m32r-rom.c: Obsolete file.
9006 * config/m32r/m32r.mt: Obsolete file.
9007 * config/m32r/tm-m32r.h: Obsolete file.
9008 * m32r-stub.c: Obsolete file.
9009 * m32r-tdep.c: Obsolete file.
9010
9011 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9012
9013 * NEWS: Mention that the z8k-zilog-none is obsolete.
9014 * MAINTAINERS: Mark z8k as obsolete.
9015 * configure.tgt: Obsolete the z8k-*-coff* target.
9016 * config/z8k/z8k.mt: Obsolete file.
9017 * config/z8k/tm-z8k.h: Obsolete file.
9018 * z8k-tdep.c: Obsolete file.
9019
9020 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9021
9022 * NEWS: Mention that the mn10200-elf is obsolete.
9023 * configure.tgt: Obsolete mn10200-*-* target.
9024 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9025 mention that the mn10200 is obsolete.
9026 * breakpoint.h: Ditto.
9027 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9028 * config/mn10200/mn10200.mt: Obsolete file.
9029 * config/mn10200/tm-mn10200.h: Obsolete file.
9030 * mn10200-tdep.c: Obsolete file.
9031
9032 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9033
9034 * MAINTAINERS: Mark h8500 as obsolete.
9035 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9036 * findvar.c (value_from_register): Ditto.
9037 * h8500-tdep.c: Mark file as obsolete.
9038 * config/h8500/h8500.mt: Ditto.
9039 * config/h8500/tm-h8500.h: Ditto.
9040 * NEWS: Mention that h8500 is obsolete.
9041
9042 2003-02-04 David Carlton <carlton@math.stanford.edu>
9043
9044 * objfiles.c (allocate_objfile): Always set name. Add comment at
9045 start of function.
9046 * jv-lang.c (get_dynamics_objfile): Add comment.
9047
9048 2003-02-04 David Carlton <carlton@math.stanford.edu>
9049
9050 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9051 * printcmd.c (build_address_symbolic): Replace uses of
9052 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9053 SYMBOL_NAME, and asm_demangle.
9054 Update copyright.
9055
9056 2003-02-04 David Carlton <carlton@math.stanford.edu>
9057
9058 * linespec.c (decode_compound): Extract code into
9059 lookup_prefix_sym.
9060 (lookup_prefix_sym): New function.
9061
9062 2003-02-04 David Carlton <carlton@math.stanford.edu>
9063
9064 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9065 FLOAT_COERCION_BADNESS.
9066 * gdbtypes.c (rank_one_type): Replace all uses of
9067 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9068
9069 2003-02-04 Jim Blandy <jimb@redhat.com>
9070
9071 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9072 section, let dwarf_macinfo_section point to it, not
9073 dwarf_loc_section.
9074
9075 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9076
9077 Pointed out by Anton Blanchard <anton@samba.org>.
9078 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9079 (ppc_linux_at_sigtramp_return_path): Use it.
9080
9081 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9082
9083 * defs.h (streq): Add prototype.
9084 * utils.c (streq): New function.
9085
9086 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9087 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9088 * mdebugread.c (new_symbol): Likewise.
9089 * stabsread.c (define_symbol): Likewise.
9090 * coffread.c (process_coff_symbol): Likewise.
9091 * dwarfread.c (new_symbol): Likewise.
9092
9093 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9094 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9095 here.
9096 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9097 SYMBOL_INIT_DEMANGLED_NAME.
9098 * objfiles.c: Include "hashtab.h".
9099 (allocate_objfile): Call htab_set_functions_ex for the
9100 demangled_names_hash.
9101 (free_objfile): Call htab_delete for the demangled_names_hash.
9102 * objfiles.h (struct htab): Add declaration.
9103 (struct objfile): Add demangled_names_hash.
9104 * symfile.c: Include "hashtab.h".
9105 (reread_symbols): Call htab_delete for the demangled_names_hash.
9106 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9107 SYMBOL_NAME in the bcache.
9108 * symtab.c: Include "hashtab.h". Update comments.
9109 (create_demangled_names_hash, symbol_set_names): New functions.
9110 (symbol_find_demangled_name): New function, broken out from
9111 symbol_init_demangled_names.
9112 (symbol_init_demangled_names): Use it.
9113 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9114 (SYMBOL_SET_NAMES): New macro.
9115 (symbol_set_names): Add prototype.
9116
9117 2003-02-03 Jim Blandy <jimb@redhat.com>
9118
9119 Use a single, consistent representation for an empty minimal
9120 symbol table in an objfile.
9121 * objfiles.c (terminate_minimal_symbol_table): New function.
9122 (allocate_objfile): Call it.
9123 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9124 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9125 non-NULL.
9126 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9127 objfile has minimal symbols, compare minimal_symbol_count to zero,
9128 instead of comparing msymbols with NULL.
9129 * objfiles.c (have_minimal_symbols): Same.
9130 * solib-sunos.c (solib_add_common_symbols): Call
9131 terminate_minimal_symbol_table.
9132 * symfile.c (reread_symbols): Same.
9133
9134 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9135
9136 * s390-tdep.c (s390_address_class_type_flags)
9137 (s390_address_class_type_flags_to_name)
9138 (s390_address_class_name_to_type_flags): New functions.
9139 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9140 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9141
9142 2003-02-03 Michael Snyder <msnyder@redhat.com>
9143
9144 * arm-tdep.c: Fix spell-o in comment.
9145
9146 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9147
9148 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9149 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9150 error messages to contain BFD filename.
9151
9152 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9153
9154 Fix PR gdb/742 gdb/743 gdb/877
9155 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9156 (do_mixed_source_and_assembly): Use
9157 make_cleanup_ui_out_tuple_begin_end and
9158 make_cleanup_ui_out_tuple_begin_end.
9159 (do_mixed_source_and_assembly): Ditto.
9160 * thread.c (do_captured_list_thread_ids): Ditto.
9161 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9162 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9163 ui_out_tuple_end): Delete prototypes.
9164 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9165 ui_out_list_end, ui_out_tuple_end): Delete.
9166
9167 From Kevin Buettner <kevinb@redhat.com>:
9168 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9169 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9170 (do_cleanup_table_end): New functions.
9171 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9172 Use cleanups to invoke_ui_out_tuple_end().
9173 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9174 * cli/cli-setshow.c (cmd_show_list): Use
9175 make_cleanup_ui_out_tuple_begin_end.
9176
9177 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9178
9179 * frame.c (frame_unwind_register): New function.
9180 (frame_unwind_unsigned_register): Use.
9181 (frame_unwind_signed_register): Use.
9182 (frame_read_register): New function.
9183 * frame.h (frame_unwind_register): Declare.
9184 (frame_read_register): Declare.
9185
9186 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9187 and frame_unwind_register instead of read_memory, write_register
9188 and deprecated_write_register_bytes.
9189
9190 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9191
9192 * frame.h: Note that namelen can be negative.
9193 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9194 NAME's length.
9195
9196 * NEWS: Mention that the d10v's `regs' command is deprecated.
9197 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9198 (d10v_print_registers_info): New function.
9199 (show_regs): Call d10v_print_registers_info.
9200 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9201
9202 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9203
9204 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9205 lost in the previous patch.
9206
9207 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9208
9209 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9210 * stack.c (print_frame_info_base): Output complete FRAME tuple
9211 for synthesized frames.
9212
9213 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9214
9215 * mips-nat.c (zerobuf): Delete.
9216 (fetch_inferior_registers): Alloc local zerobuf.
9217 (fetch_core_registers): Alloc local zerobuf.
9218 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9219 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9220 * thread-db.c (thread_db_store_registers): Ditto.
9221 * sh-tdep.c (sh_do_register): Ditto.
9222 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9223 * remote-sim.c (gdbsim_store_register): Ditto.
9224 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9225 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9226 * monitor.c (monitor_supply_register): Ditto.
9227 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9228 * mips-nat.c (fetch_inferior_registers): Ditto.
9229 * m68klinux-nat.c (fetch_register): Ditto.
9230 * lynx-nat.c (fetch_inferior_registers): Ditto.
9231 (fetch_inferior_registers): Ditto.
9232 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9233 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9234 (hpux_thread_store_registers): Ditto.
9235 * hppah-nat.c (fetch_register): Ditto.
9236 * hppab-nat.c (fetch_register): Ditto.
9237 * hppa-tdep.c (pa_register_look_aside): Ditto.
9238 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9239 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9240
9241 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9242
9243 * gdbarch.sh: Explictly specify all method levels. When a
9244 variable with an empty level, provide a non-multi-arch default.
9245 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9246 * gdbarch.h: Re-generate.
9247 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9248 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9249
9250 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9251
9252 * defs.h (host_pointer_to_address): Delete declaration.
9253 (address_to_host_pointer): Delete declaration.
9254 * utils.c (host_pointer_to_address): Delete function.
9255 (address_to_host_pointer): Delete function.
9256 * procfs.c (procfs_address_to_host_pointer): New function.
9257 * procfs.c (proc_set_watchpoint): Use.
9258 (procfs_can_use_hw_breakpoint): Update comments.
9259 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9260 (som_solib_add): Use.
9261 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9262 * hppa-tdep.c (unwind_command): Use.
9263
9264 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9265
9266 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9267 strlen d_name.
9268
9269 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9270 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9271 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9272 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9273 (define_symbol): Update.
9274 * symfile.c (generic_load): Remove references to nindy.
9275 * symtab.c: Remove references to nindy.
9276
9277 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9278
9279 * infcmd.c (print_float_info): Delete code conditional on
9280 FLOAT_INFO.
9281 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9282 * config/m68k/nm-apollo68b.h: Ditto.
9283 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9284 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9285 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9286
9287 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9288
9289 * config/i386/tm-i386os9k.h: Removed.
9290
9291 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9292 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9293 they're identical to i[3456]86-*-sysv* now.
9294 * config/i386/i386v32.mh: Removed.
9295 * config/i386/xm-i386v32.h: Removed.
9296 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9297
9298 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9299
9300 * config/i386/i386dgux.mh: Removed.
9301 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9302
9303 * configure.in: Fix typo.
9304 * configure: Regenerated.
9305
9306 2003-01-31 David Carlton <carlton@math.stanford.edu>
9307
9308 * dwarf2read.c (dwarf2_locate_sections): Set
9309 dwarf_ranges_section.
9310
9311 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9312
9313 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9314 * utils.c: Update comments documenting legitimate uses of PTR.
9315
9316 * utils.c: Re-indent.
9317
9318 * config/djgpp/fnchange.lst: Delete nindy files.
9319 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9320 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9321 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9322 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9323 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9324 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9325 * Makefile.in (init.c): Remove nindy references.
9326 (saber_gdb): Delete rule.
9327 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9328 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9329 and a68v-nat.c.
9330 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9331 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9332 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9333 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9334 nindy-share/stop.h.
9335 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9336 * saber.suppress: Delete file.
9337
9338 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
9339
9340 * dbxread.c (stabs_data): New static variable.
9341 (fill_symbuf): Support an in-memory buffer for stabs data.
9342 (stabs_seek): New function.
9343 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9344 (read_ofile_symtab): Use stabs_seek.
9345 (elfstab_build_psymtabs): Take an asection* instead of
9346 an offset and size. Relocate the stabs data if necessary.
9347 Save the section* for dbx_psymtab_to_symtab.
9348 * dwarf2read.c: Add section variables for each debug section.
9349 (dwarf2_locate_sections): Fill them in.
9350 (dwarf2_read_section): Take an asection* argument.
9351 Relocate the section contents if necessary.
9352 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9353 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9354 it to dwarf2_read_section.
9355 (dwarf2_build_frame_info): Update callers.
9356 * elfread.c (elf_symfile_read): Update call to
9357 elfstab_build_psymtabs.
9358 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9359 (DBX_STAB_SECTION): New macro.
9360 * stabsread.h (elfstab_build_psymtabs): Update prototype.
9361 * symfile.c (symfile_dummy_outputs): New function.
9362 (symfile_relocate_debug_section): New function.
9363 * symfile.h (symfile_relocate_debug_section): Add prototype.
9364
9365 2003-01-31 Richard Henderson <rth@redhat.com>
9366
9367 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9368 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9369 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9370 * alpha-tdep.c (alpha_register_name): Add "unique".
9371 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9372 (ALPHA_UNIQUE_REGNUM): New.
9373 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9374
9375 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9376
9377 * README: Remove reference to Ericsson 1800 monitor.
9378 * Makefile.in (remote-es.o): Delete rule.
9379 (ALLDEPFILES): Delete remote-es.c.
9380 * remote-es.c: Delete file.
9381 * config/m68k/es1800.mt: Delete file.
9382 * config/djgpp/fnchange.lst: Update.
9383 * configure.tgt: Delete m68*-ericsson-* target.
9384
9385 2003-01-31 Adam Fedor <fedor@gnu.org>
9386
9387 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9388 Remove duplicate/shadowing variable of same name.
9389
9390 2003-01-30 Jim Blandy <jimb@redhat.com>
9391
9392 * symfile.c (find_separate_debug_file): Assert that the objfile's
9393 directory name we compute ends with a slash, and then assume that
9394 that's so everywhere we use it.
9395
9396 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
9397
9398 * valops.c (value_assign): Flush frame cache after stores to memory
9399 also.
9400
9401 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9402
9403 * Makefile.in (mon960-rom.o): Delete rule.
9404 * mon960-rom.c: Delete file.
9405
9406 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9407
9408 * d10v-tdep.c: Include "frame-unwind.h".
9409 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9410 list.
9411 (next_addr, uses_frame): Delete.
9412 (struct d10v_unwind_cache): Define.
9413 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9414 Use info instead of next_addr and uses_frame globals.
9415 (d10v_frame_init_saved_regs): Delete function.
9416 (d10v_init_extra_frame_info): Delete function.
9417 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9418 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9419 init_frame_pc or frame_saved_pc.
9420 (d10v_pop_frame): Delete function.
9421 (do_d10v_pop_frame): Delete function.
9422 (d10v_frame_chain): Delete function.
9423 (d10v_frame_chain_valid): Delete function.
9424 (d10v_frame_pc_unwind): New function.
9425 (d10v_frame_id_unwind): New function.
9426 (saved_regs_unwinder): New function.
9427 (d10v_frame_register_unwind): New function.
9428 (d10v_frame_pop): New function.
9429 (d10v_frame_unwind): New variable.
9430 (d10v_frame_p): New function.
9431 (d10v_frame_saved_pc): Delete function.
9432 * Makefile.in (d10v-tdep.o): Update dependencies.
9433
9434 2003-01-30 J. Brobecker <brobecker@gnat.com>
9435
9436 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9437 causing some regressions due to a change in the default value
9438 for this macro.
9439
9440 2003-01-29 Richard Henderson <rth@redhat.com>
9441 Elena Zannoni <ezannoni@redhat.com>
9442 Daniel Jacobowitz <drow@mvista.com>
9443
9444 Fix PR gdb/961.
9445 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
9446 variables.
9447 (RANGES_SECTION): New.
9448 (dwarf_ranges_buffer): New variable.
9449 (struct comp_unit_head): Add member "die".
9450 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9451 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9452 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9453 (dwarf2_locate_sections): Likewise.
9454 (dwarf2_build_psymtabs): Read .debug_ranges.
9455 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9456 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9457 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9458 Look for DW_AT_ranges and return the bounding box.
9459
9460 2003-01-29 Brian Ford <ford@vss.fsi.com>
9461
9462 * win32-nat.c (cygwin_pid): Removed as unused.
9463 (child_attach): Try fall back to Cygwin pid.
9464
9465 2003-01-29 Jim Blandy <jimb@redhat.com>
9466
9467 * objfiles.h (struct objfile): Doc fix.
9468
9469 2003-01-29 Andrew Cagney <ac131313@redhat.com>
9470
9471 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9472 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9473 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9474 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9475 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9476 (FRAME_SAVED_PC): Change to a function with predicate.
9477 * gdbarch.h, gdbarch.c: Re-generate.
9478
9479 2003-01-28 Andrew Cagney <ac131313@redhat.com>
9480
9481 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9482
9483 * complaints.c (complain): Delete function.
9484 * complaints.h (struct deprecated_complaint): Delete definition.
9485 (complain): Delete declaration.
9486
9487 2003-01-28 Kevin Buettner <kevinb@redhat.com>
9488
9489 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9490 dummy frames.
9491
9492 2003-01-27 Andrew Cagney <ac131313@redhat.com>
9493
9494 * sentinel-frame.h, sentinel-frame.c: New files.
9495 * Makefile.in (frame.o): Update dependencies.
9496 (SFILES): Add sentinel-frame.c.
9497 (sentinel_frame_h): Define.
9498 (COMMON_OBS): Add sentinel-frame.o.
9499 (sentinel-frame.o): Specify dependencies.
9500 * frame.c: Include "sentinel-frame.h".
9501 (frame_register_unwind): Rewrite assuming that there is always a a
9502 ->next frame.
9503 (frame_register, generic_unwind_get_saved_register): Ditto.
9504 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9505 (create_sentinel_frame, unwind_to_current_frame): New functions.
9506 (get_current_frame): Rewrite using create_sentinel_frame and
9507 unwind_to_current_frame. When possible, always create a frame.
9508 (create_new_frame): Set next to the sentinel frame.
9509 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9510 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9511 ID cache when necessary.
9512 (frame_saved_regs_id_unwind): Use frame_relative_level.
9513 (deprecated_generic_get_saved_register): Use frame_relative_level,
9514 get_frame_saved_regs, get_frame_pc, get_frame_base and
9515 get_next_frame.
9516 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9517 frame_register.
9518
9519 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9520
9521 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9522
9523 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9524
9525 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9526 (maintenance_set_profile_cmd): Use error () instead of warning ().
9527
9528 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9529
9530 * configure.in: Check that -pg works if using --enable-profiling.
9531 Check for monstartup and _mcleanup regardless of --enable-profiling.
9532 * maint.c: Check for monstartup and _mcleanup before using them.
9533 * config.in: Regenerated.
9534 * configure: Regenerated.
9535
9536 2003-01-24 Nick Clifton <nickc@redhat.com>
9537
9538 * Add sh2e support:
9539
9540 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9541
9542 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9543 (sh2e_show_regs): New.
9544 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9545 * config/sh/tm-sh.h: Added sh2e to comments.
9546
9547 2003-01-23 Jim Blandy <jimb@redhat.com>
9548
9549 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9550 symbols found)" message here; we haven't checked for a separate
9551 debug info file yet, so we don't know yet.
9552 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9553 we've looked everywhere. Also, there's no need to print a special
9554 message when we're loading the separate debug info file: the one
9555 symbol_file_add prints is fine.
9556
9557 2003-01-23 Alexander Larsson <alexl@redhat.com>
9558 Jim Blandy <jimb@redhat.com>
9559
9560 Add support for executables whose debug info has been separated
9561 out into a separate file, leaving only a link behind.
9562 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9563 and separate_debug_objfile_backlink.
9564 (put_objfile_before): New declaration.
9565 * symfile.c: #include "filenames.h".
9566 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9567 debug info in a separate file, read that, too. Save the addrs
9568 argument, so we can use it again to read the separated debug info;
9569 syms_from_objfile modifies the table we pass it.
9570 (reread_symbols): After re-reading an objfile, call
9571 reread_separate_symbols to refresh its separate debug info
9572 objfile, if it has one.
9573 (reread_separate_symbols, find_separate_debug_file,
9574 get_debug_link_info, separate_debug_file_exists): New functions.
9575 (debug_file_directory): New global var.
9576 (_initialize_symfile): Initialize debug_file_directory, and
9577 provide the new `set debug-file-directory' command to let the user
9578 change it.
9579 * objfiles.c (free_objfile): If this objfile has its debug info in
9580 a separate objfile, free that one too. If this is itself a
9581 separate debug info objfile, clear our parent's backlink.
9582 (put_objfile_before): New function.
9583 * utils.c (gnu_debuglink_crc32): New function.
9584 * defs.h (gnu_debuglink_crc32): New declaration.
9585 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9586 * configure.in: Handle --with-separate-debug-dir config option.
9587 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9588 * acconfig.h (DEBUGDIR): New macro.
9589 * configure, aclocal.m4, config.in: Regenerated.
9590
9591 2003-01-22 Jim Blandy <jimb@redhat.com>
9592
9593 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9594 like the old symbol_file_add, but taking new arguments: you can
9595 now pass in either a `struct section_addr_info' list to say where
9596 each section is loaded, or a `struct section_offsets' table. Pass
9597 these new arguments through to syms_from_objfile as appropriate.
9598 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9599 with the appropriate quiescent values for the new arguments.
9600
9601 * symfile.c: #include "gdb_assert.h".
9602 (syms_from_objfile): Add the ability to pass in a section offset
9603 table directly, as an alternative to the section_addr_info table.
9604 Document arguments better.
9605 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9606 * symfile.h (syms_from_objfile): Update declaration.
9607 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9608 syms_from_objfile.
9609 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9610
9611 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
9612
9613 Original patch by Tom Tromey <tromey@cygnus.com> and
9614 Jason Molenda <jmolenda@apple.com>.
9615 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9616 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9617 * NEWS: Mention profiling.
9618 * configure.in (--enable-gdbtk): Fix typo.
9619 (--enable-profiling): New. Set PROFILE_CFLAGS.
9620 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9621 Fill in function.
9622 (profiling_state): New variable.
9623 (mcleanup_wrapper): New function.
9624 (_initialize_maint): Remove NOTYET, fix call to
9625 add_setshow_boolean_cmd for "maint set profile".
9626 * configure: Regenerated.
9627
9628 2003-01-21 Martin M. Hunt <hunt@redhat.com>
9629
9630 * Makefile.in (install-gdbtk): Install PNG images too.
9631
9632 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9633
9634 * exec.c (text_start): Delete global variable.
9635 (exec_file_attach): Make text_start local to the function.
9636 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9637 * valops.c (hand_function_call): Delete code that handles
9638 BEFORE_TEXT_END and AFTER_TEXT_END.
9639 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9640 of CALL_DUMMY_LOCATION.
9641 * gdbarch.c: Regenerate.
9642 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9643 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9644 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9645 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9646 (text_end): Delete extern declaration.
9647
9648 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9649
9650 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9651 * blockframe.c (backtrace_below_main): Move to "frame.c".
9652 (frame_chain_valid): Delete check for backtrace_below_main.
9653 (_initialize_blockframe): Delete initialization, move ``set
9654 backtrace-below-main'' command to "frame.c".
9655 (do_flush_frames_sfunc): Delete function.
9656 * frame.c: Include "command.h" and "gdbcmd.h".
9657 (frame_type_from_pc): New function.
9658 (create_new_frame): Use frame_type_from_pc.
9659 (legacy_get_prev_frame): New function.
9660 (get_prev_frame): Rewrite. When an old style frame, call
9661 legacy_get_prev_frame. Otherwize, unwind the PC first.
9662 (_initialize_frame): Add ``set backtrace-below-main'' command.
9663 * Makefile.in (frame.o): Update dependencies.
9664
9665 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9666
9667 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9668 DEPRECATED_REGISTERS_INFO.
9669
9670 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9671
9672 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9673 Maintainers'. Update `Various Maintainers'.
9674
9675 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9676
9677 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9678 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9679 Suppress actual parameters when `-'.
9680 * gdbarch.h, gdbarch.c: Regenerate.
9681
9682 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9683
9684 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9685 code handling dummy frames.
9686
9687 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9688
9689 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9690 (struct frame_unwind): Add field pop.
9691 * frame.h (frame_pop): Declare.
9692 * frame.c (frame_saved_regs_pop): New function.
9693 (trad_frame_unwinder): Add frame_saved_regs_pop.
9694 (frame_pop): New function.
9695 * dummy-frame.c (dummy_frame_pop): New function.
9696 (discard_innermost_dummy): New function.
9697 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9698 (dummy_frame_unwind): Add dummy_frame_pop.
9699 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9700 * valops.c (hand_function_call): Ditto.
9701 * stack.c (return_command): Ditto.
9702
9703 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9704
9705 * cris-tdep.c: Fix function declaration indentation.
9706 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9707 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9708 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9709 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9710 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9711 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9712
9713 2003-01-18 Michael Chastain <mec@shout.net>
9714
9715 * README (Unpacking and Installation -- quick overview):
9716 Warn against ".../gdb-5.3/gdb/configure".
9717
9718 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9719
9720 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9721 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9722 (struct frame_unwind): Declare opaque.
9723 (dummy_frame_p): Declare function.
9724 * dummy-frame.c (dummy_frame_id_unwind): Make static.
9725 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9726 * dummy-frame.c: Include "frame-unwind.h".
9727 (dummy_frame_p): New function.
9728 (dummy_frame_unwind): New variable.
9729 * frame.c: Include "frame-unwind.h".
9730 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
9731 to use the new unwind field.
9732 (set_unwind_by_pc): Delete function.
9733 (create_new_frame, get_prev_frame): Set unwind field using
9734 frame_unwind_find_by_pc.
9735 (trad_frame_unwind, trad_frame_unwinder): New variables.
9736 * frame.h (trad_frame_unwind): Declare variable.
9737 (frame_id_unwind_ftype): Delete declaration.
9738 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
9739 (struct frame_unwind): Declare opaque.
9740 (struct frame_info): Replace the fields id_unwind, pc_unwind and
9741 register_unwind with a single unwind pointer.
9742 * frame-unwind.h, frame-unwind.c: New files.
9743 * Makefile.in (SFILES): Add frame-unwind.c.
9744 (frame_unwind_h): Define.
9745 (COMMON_OBS): Add frame-unwind.o.
9746 (frame-unwind.o): Specify dependencies.
9747 (frame.o, dummy-frame.o): Update dependencies.
9748
9749 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9750
9751 * ada-valprint.c: Eliminate PTR.
9752 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
9753 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
9754 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
9755 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
9756 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
9757 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
9758 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
9759
9760 2003-01-17 Andrew Cagney <ac131313@redhat.com>
9761
9762 * main.c (captured_main): Don't use PTR.
9763 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
9764 * gdbtypes.c (lookup_primitive_typename): Ditto.
9765 (lookup_struct_elt_type): Ditto.
9766 * f-valprint.c (info_common_command): Ditto.
9767 (list_all_visible_commons): Ditto.
9768 * jv-typeprint.c (java_type_print_base): Ditto.
9769
9770 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
9771 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
9772 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
9773 i386-interix-nat.c and i386-interix-tdep.c. Rename
9774 m68klinux-nat.c and m68klinux-tdep.c. Rename
9775 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
9776 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
9777 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
9778 * main.c (captured_main): Use xfree, not free.
9779
9780 2003-01-16 Andrew Cagney <ac131313@redhat.com>
9781
9782 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
9783 ID back using a parameter.
9784 * frame.c (frame_id_unwind): Update call.
9785 (frame_saved_regs_id_unwind): Update.
9786 * dummy-frame.c (dummy_frame_id_unwind): Update function.
9787 * dummy-frame.h (struct frame_id): Add opaque declaration.
9788 (dummy_frame_id_unwind): Update declaration.
9789
9790 2003-01-15 Andrew Cagney <ac131313@redhat.com>
9791
9792 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
9793
9794 2003-01-15 Stephen P. Smith <ischis2@cox.net>
9795
9796 * MAINTAINERS (Stephen P. Smith): Updated email address.
9797
9798 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
9799
9800 Fix PR gdb/898
9801 * breakpoint.c (until_break_command): Add new argument. Use it to
9802 decide whether to stop only at the current frame or not.
9803 * breakpoint.h (until_break_command): Update prototype.
9804 * infcmd.c (until_command): Add new argument to until_break_command
9805 call.
9806 (advance_command): New function.
9807 (_initialize_infcmd): Update help string for 'until' command.
9808 Add new 'advance' command.
9809
9810 2003-01-14 David Carlton <carlton@math.stanford.edu>
9811
9812 * linespec.c (decode_line_1): Normalize comments.
9813 (set_flags): Ditto.
9814 (locate_first_half): Ditto.
9815 (decode_compound): Ditto.
9816 (symtab_from_filename): Ditto.
9817 (decode_all_digits): Ditto.
9818 (decode_dollar): Ditto.
9819 (find_methods): Ditto.
9820 (find_toplevel_char): Ditto.
9821
9822 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9823
9824 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
9825 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
9826 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
9827 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
9828 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
9829 * language.c, language.h, m32r-tdep.c: Update copyright.
9830 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
9831 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
9832 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
9833 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
9834 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9835 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
9836
9837 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9838
9839 * stabsread.h (process_later, resolve_cfront_continuation):
9840 Obsolete.
9841 Update copyright years.
9842 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
9843 Update copyright year.
9844 * dbxread.c(struct cont_elem): Obsolete.
9845 (process_later, process_now): Obsolete functions.
9846 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
9847 Update copyright year.
9848 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
9849 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
9850 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
9851 (parse_partial_symbols): Obsolete cfront support.
9852 * stabsread.c
9853 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
9854 macros.
9855 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
9856 read_cfront_baseclasses, read_cfront_member_functions,
9857 resolve_cfront_continuation,read_cfront_static_fields,
9858 copy_cfront_struct_fields): Obsolete functions.
9859 (define_symbol, read_one_struct_field): Obsolete cfront support.
9860 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
9861 Update Copyright year.
9862
9863 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9864
9865 * stack.c (print_frame_info, print_stack_frame_base_stub,
9866 print_stack_frame_base, show_and_print_stack_frame_stub,
9867 show_and_print_stack_frame, print_only_stack_frame_stub,
9868 print_only_stack_frame): Delete functions.
9869 (print_stack_frame_stub): Call print_frame_info instead of
9870 print_frame_info_base.
9871 (print_frame_info_base): Rename to print_frame_info.
9872 (backtrace_command_1): Call print_frame_info, instead of
9873 print_frame_info_base.
9874 (current_frame_command): Call print_stack_frame, instead of
9875 print_only_stack_frame.
9876 (frame_command): Call print_stack_frame, instead of
9877 show_and_print_stack_frame.
9878 (up_command): Ditto.
9879 (down_command): Ditto.
9880 * frame.h (print_only_stack_frame): Delete prototype.
9881 * infrun.c (normal_stop): Call print_stack_frame, instead of
9882 show_and_print_stack_frame.
9883 * thread.c (info_threads_command): Call print_stack_frame, instead
9884 of print_only_stack_frame.
9885
9886 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9887
9888 * README (Graphical interface to GDB): Update URL. Point at
9889 gdb/links/.
9890
9891 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
9892 version match.
9893
9894 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9895
9896 * symtab.c (find_pc_sect_line): Don't consider end-of-function
9897 lines.
9898
9899 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9900
9901 * thread-db.c (attach_thread): Prototype.
9902 (struct private_thread_info): Remove lwpid. Add thread handle (th),
9903 thread information (ti), and valid flags (th_valid, ti_valid).
9904 (attach_thread): Move target_pid_to_str call to after the thread
9905 is added to GDB's list. Initialize the cache.
9906 (thread_get_info_callback, thread_db_map_id2thr)
9907 (thread_db_get_info): New functions.
9908 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
9909 (thread_db_store_registers, thread_db_thread_alive)
9910 (thread_db_get_thread_local_address): Use them.
9911 (thread_db_pid_to_str): Likewise. Return "Missing" instead
9912 of calling error() for threads in unknown state.
9913
9914 (clear_lwpid_callback): New function.
9915 (thread_db_resume): Use it to clear the cache.
9916
9917 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9918
9919 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
9920 (resume_callback): Remove dead code.
9921
9922 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9923
9924 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
9925 predicate.
9926 * gdbarch.h, gdbarch.c: Regenerate.
9927 * stack.c (frame_info): Only initialize the saved registers when
9928 FRAME_INIT_SAVED_REGS_P.
9929 * frame.c (frame_saved_regs_register_unwind): Assert
9930 FRAME_INIT_SAVED_REGS_P.
9931 (deprecated_generic_get_saved_register): Ditto.
9932
9933 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9934
9935 * source.c (openp): Squelch warning about "filename".
9936
9937 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9938
9939 * source.c (openp): If the file does not exist don't necessarily
9940 search the path.
9941
9942 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9943
9944 Fix PR gdb/872.
9945 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
9946 (integer_types_same_name_p): New function.
9947 (rank_one_type): Use it.
9948 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
9949
9950 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9951
9952 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
9953 variables.
9954 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
9955 * configure.in: Add --with-sysroot.
9956 * configure: Regenerated.
9957 * main.c (gdb_sysroot): New variable.
9958 (captured_main): Initialize gdb_sysroot.
9959 * defs.h (gdb_sysroot): New extern declaration.
9960 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
9961
9962 2003-01-12 Michael Chastain <mec@shout.net>
9963
9964 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
9965
9966 2003-01-12 Michael Chastain <mec@shout.net>
9967
9968 * top.c (print_gdb_version): Bump copyright year to 2003.
9969
9970 2003-01-12 David Carlton <carlton@bactrian.org>
9971
9972 * linespec.c (symtab_from_filename): Rename variable 's' to
9973 'file_symtab'.
9974
9975 2003-01-12 Andrew Cagney <ac131313@redhat.com>
9976
9977 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
9978 dummy frame.
9979 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
9980
9981 2003-01-12 Andrew Cagney <ac131313@redhat.com>
9982
9983 * d10v-tdep.c: Include "gdb_assert.h".
9984 (d10v_store_return_value): Rewrite to match current interface.
9985 (d10v_extract_struct_value_address): Ditto.
9986 (d10v_extract_return_value): Ditto.
9987 (d10v_gdbarch_init): Set store_restore_value,
9988 extract_struct_value_address and extract_return_value.
9989
9990 2003-01-12 J. Brobecker <brobecker@gnat.com>
9991
9992 * hpread.c (set_namestring): New procedure replacing the
9993 SET_NAMESTRING macro.
9994 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
9995 by calls to set_namestring.
9996
9997 2003-01-11 J. Brobecker <brobecker@gnat.com>
9998
9999 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10000 a compilation warning.
10001 (hpread_process_one_debug_symbol): Likewise.
10002
10003 2003-01-10 David Carlton <carlton@math.stanford.edu>
10004
10005 * linespec.c (decode_line_1): Rename variable 's' to
10006 'file_symtab'.
10007 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10008 (decode_dollar): Ditto.
10009 (decode_variable): Ditto.
10010 (symbol_found): Ditto.
10011
10012 2003-01-09 Michael Chastain <mec@shout.net>
10013
10014 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10015
10016 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10017
10018 * win32-nat.c (set_process_privilege): New function.
10019 (child_attach): Call set_process_privilege() to enable the
10020 SE_DEBUG_NAME user privilege if available in process token.
10021
10022 2003-01-10 J. Brobecker <brobecker@gnat.com>
10023
10024 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10025 compilation error in the previous revision.
10026
10027 2003-01-09 David Carlton <carlton@math.stanford.edu>
10028
10029 * linespec.c: Update copyright.
10030
10031 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10032
10033 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10034 than inferior_ptid.
10035 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10036
10037 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10038
10039 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10040 Update comments.
10041 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10042 (frame_saved_regs_zalloc): Update.
10043 (frame_saved_regs_register_unwind): Update.
10044 (create_new_frame): Update.
10045 (get_prev_frame): Update.
10046 (frame_extra_info_zalloc): Update.
10047 (deprecated_get_frame_saved_regs): Update.
10048 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10049 * cris-tdep.c: Update comment.
10050
10051 * somsolib.h: Fix function indentation.
10052 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10053 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10054 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10055 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10056 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10057
10058 * infrun.c (follow_fork): Use ISO C definition.
10059 * expprint.c (print_subexp): Use xfree instead of free.
10060 * charset.c: Include "gdb_string.h" instead of <string.h>.
10061 (register_iconv_charsets): Use ISO C definition.
10062 (host_charset, target_charset): Ditto.
10063 * Makefile.in (charset.o): Update dependencies.
10064 (mi-cmd-env.o): Update dependencies.
10065
10066 2003-01-08 Andrew Cagney <cagney@redhat.com>
10067
10068 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10069 get_frame_base.
10070
10071 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10072
10073 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10074 build directories. Save edited gdb output in Mbuild.log. If a
10075 build fails, remove any final GDB executable.
10076
10077 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10078
10079 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10080 replacing hex constants with function names and stripping leading
10081 file name directory prefixes.
10082
10083 2003-01-08 Andrew Cagney <cagney@redhat.com>
10084
10085 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10086 get_frame_base.
10087
10088 2003-01-08 David Carlton <carlton@math.stanford.edu>
10089
10090 * linespec.c (decode_line_1): Move code into decode_variable.
10091 (decode_variable): New function.
10092
10093 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10094
10095 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10096
10097 2003-01-08 Andrew Cagney <cagney@redhat.com>
10098
10099 * cris-tdep.c (cris_frame_init_saved_regs): Use
10100 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10101 saved_regs buffer.
10102 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10103 (sh64_nofp_frame_init_saved_regs): Ditto.
10104 (sh_fp_frame_init_saved_regs): Ditto.
10105 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10106 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10107 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10108 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10109
10110 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10111
10112 * minsyms.c (lookup_minimal_symbol): Update comment.
10113 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10114 (lookup_minimal_symbol_solib_trampoline): Likewise.
10115
10116 2003-01-08 Andrew Cagney <cagney@redhat.com>
10117
10118 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10119 frame_relative_level.
10120
10121 * alpha-tdep.c: Use get_frame_extra_info.
10122 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10123 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10124 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10125 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10126
10127 * alpha-tdep.c: Use get_next_frame.
10128 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10129 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10130 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10131 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10132 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10133 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10134 * xstormy16-tdep.c: Ditto.
10135
10136 2003-01-07 Andrew Cagney <cagney@redhat.com>
10137
10138 * alpha-tdep.c: Use get_frame_base.
10139 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10140 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10141 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10142 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10143 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10144 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10145 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10146 * config/sparc/tm-sparc.h: Ditto.
10147
10148 2003-01-07 Andrew Cagney <cagney@redhat.com>
10149
10150 * frame.c (deprecated_get_frame_context): New function.
10151 (deprecated_set_frame_context): New function.
10152 * frame.h (deprecated_get_frame_context): Declare.
10153 (deprecated_set_frame_context): Declare.
10154 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10155 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10156
10157 2003-01-07 Andrew Cagney <cagney@redhat.com>
10158
10159 * frame.c (deprecated_set_frame_next_hack): New function.
10160 (deprecated_set_frame_prev_hack): New function.
10161 * frame.h (deprecated_set_frame_next_hack): Declare.
10162 (deprecated_set_frame_prev_hack): Declare.
10163 * mcore-tdep.c (analyze_dummy_frame): Use
10164 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10165 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10166
10167 2003-01-07 David Carlton <carlton@math.stanford.edu>
10168
10169 * linespec.c (decode_line_1): Move code into decode_dollar.
10170 (decode_dollar): New function.
10171
10172 2003-01-07 Andrew Cagney <cagney@redhat.com>
10173
10174 * arm-tdep.c (arm_init_extra_frame_info): Use
10175 deprecated_update_frame_base_hack.
10176 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10177 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10178 (fix_frame_pointer): Ditto.
10179 (mn10300_analyze_prologue): Ditto.
10180
10181 2003-01-07 Andrew Cagney <cagney@redhat.com>
10182
10183 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10184 extra_info using frame_extra_info_zalloc.
10185 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10186 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10187 (sh64_init_extra_frame_info): Ditto.
10188 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10189 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10190 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10191 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10192 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10193 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10194 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10195 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10196 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10197 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10198 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10199 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10200
10201 * mn10300-tdep.c (analyze_dummy_frame): Use
10202 deprecated_set_frame_extra_info_hack.
10203 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10204
10205 2003-01-07 J. Brobecker <brobecker@gnat.com>
10206
10207 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10208 class is not scText. These do not define "real" procedures.
10209 (parse_partial_symbols): Likewise.
10210
10211 2003-01-06 Michael Snyder <msnyder@redhat.com>
10212
10213 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10214
10215 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10216
10217 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10218 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10219 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10220 deprecated_frame_xmalloc_with_cleanup.
10221 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10222 deprecated_frame_xmalloc.
10223 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10224 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10225
10226 2003-01-06 Andrew Cagney <cagney@redhat.com>
10227
10228 * x86-64-linux-tdep.c: Include "osabi.h".
10229 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10230
10231 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10232
10233 2003-01-06 Andrew Cagney <cagney@redhat.com>
10234
10235 * MAINTAINERS (Target Instruction Set Architectures): Update
10236 arm-elf. Can be built with -Werror, has been multiarched.
10237
10238 * value.h (unpack_long): Make buffer parameter constant.
10239 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10240 * scm-lang.h (scm_parse): Ditto.
10241 * defs.h (extract_typed_address, extract_address): Ditto.
10242 (extract_long_unsigned_integer): Ditto.
10243 * inferior.h (unsigned_pointer_to_address): Ditto.
10244 (signed_pointer_to_address): Ditto.
10245 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10246 * gdbarch.h, gdbarch.c: Regenerate.
10247 * findvar.c (extract_long_unsigned_integer): Update.
10248 (extract_address): Update.
10249 (extract_typed_address): Update.
10250 (unsigned_pointer_to_address): Update.
10251 * values.c (unpack_long): Update.
10252 (unpack_double): Update.
10253 (unpack_pointer): Update.
10254 (unpack_field_as_long): Update.
10255 * d10v-tdep.c (d10v_pointer_to_address): Update.
10256 * avr-tdep.c (avr_pointer_to_address): Update.
10257 * scm-lang.c (scm_unpack): Update.
10258 * findvar.c (signed_pointer_to_address): Update.
10259
10260 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10261
10262 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10263 since it is in i386-tdep.c.
10264
10265 2003-01-06 J. Brobecker <brobecker@gnat.com>
10266
10267 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10268 failure introduced in the previous change.
10269
10270 2003-01-05 Michael Chastain <mec@shout.net>
10271
10272 * README: Remove references to deleted remote-*.c files:
10273 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10274 remote-nrom.c, remote-os9k.c, remote-udi.c.
10275
10276 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10277
10278 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10279 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10280 i386_get_longjmp_target.
10281
10282 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10283
10284 * arm-tdep.c (prologue_cache): Change to a pointer.
10285 (_initialize_arm_tdep): Allocate prologue_cache.
10286 (check_prologue_cache): Update.
10287 (save_prologue_cache): Update.
10288 (arm_gdbarch_init): Update.
10289
10290 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10291
10292 * stabsread.c (update_method_name_from_physname): Call complaint()
10293 instead of error.
10294
10295 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10296
10297 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10298 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10299 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10300
10301 * blockframe.c: Include "gdbcmd.h" and "command.h".
10302 (backtrace_below_main): New variable.
10303 (file_frame_chain_valid, func_frame_chain_valid)
10304 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10305 (generic_func_frame_chain_valid): Remove functions.
10306 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10307 (_initialize_blockframe): New function.
10308 * Makefile.in (blockframe.o): Update dependencies.
10309 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10310 comment. Call frame_chain_valid ().
10311 * frame.h: Remove old prototypes. Add prototype for
10312 frame_chain_valid and update comments to match.
10313 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10314 Remove old comment.
10315 * gdbarch.h: Regenerated.
10316 * gdbarch.c: Regenerated.
10317
10318 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10319 set_gdbarch_frame_chain_valid.
10320 * avr-tdep.c (avr_gdbarch_init): Likewise.
10321 * cris-tdep.c (cris_gdbarch_init): Likewise.
10322 * frv-tdep.c (frv_gdbarch_init): Likewise.
10323 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10324 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10325 (i386_nw_init_abi): Likewise.
10326 (i386_gdbarch_init): Likewise.
10327 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10328 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10329 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10330 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10331 * mips-tdep.c (mips_gdbarch_init): Likewise.
10332 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10333 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10334 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10335 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10336 * s390-tdep.c (s390_gdbarch_init): Likewise.
10337 * sh-tdep.c (sh_gdbarch_init): Likewise.
10338 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10339 * v850-tdep.c (v850_gdbarch_init): Likewise.
10340 * vax-tdep.c (vax_gdbarch_init): Likewise.
10341 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10342
10343 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10344 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10345 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10346 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10347 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10348 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10349 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10350 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10351
10352 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10353
10354 * Makefile.in (acconfig_h): Remove incorrect macro.
10355 (config_h): Define.
10356 (osabi.o): Update dependencies.
10357 * configure.tgt: Set gdb_osabi based on target triplet.
10358 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10359 * configure: Regenerated.
10360 * config.in: Regenerated.
10361 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10362 (GDB_OSABI_DEFAULT): Define if not already defined.
10363 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10364 (set_osabi_string): New variables.
10365 (gdbarch_register_osabi): Add new OS ABI to
10366 gdb_osabi_available_names.
10367 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10368 (set_osabi, show_osabi): New functions.
10369 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10370
10371 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10372
10373 * arch-utils.c (gdbarch_info_init): Set osabi to
10374 GDB_OSABI_UNINITIALIZED.
10375 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10376 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10377 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10378 * gdbarch.c: Regenerated.
10379 * gdbarch.h: Regenerated.
10380 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10381 there's no BFD.
10382 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10383 * osabi.h (enum gdb_osabi): Move to defs.h.
10384 (gdbarch_init_osabi): Update prototype.
10385 * defs.h (enum gdb_osabi): Moved here.
10386 * Makefile.in: Update dependencies.
10387
10388 * alpha-tdep.h: Don't include "osabi.h".
10389 (struct gdbarch_tdep): Remove osabi member.
10390 * alpha-tdep.c: Include "osabi.h".
10391 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10392 iterate over arches. Update call to gdbarch_init_osabi.
10393 (alpha_dump_tdep): Don't dump osabi.
10394 * alpha-linux-tdep.c: Include "osabi.h".
10395 * alpha-osf1-tdep.c: Include "osabi.h".
10396 * alphafbsd-tdep.c: Include "osabi.h".
10397 * alphanbsd-tdep.c: Include "osabi.h".
10398
10399 * arm-tdep.h: Don't include "osabi.h".
10400 (struct gdbarch_tdep): Remove osabi member.
10401 * arm-tdep.c: Include "osabi.h".
10402 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10403 iterate over arches. Update call to gdbarch_init_osabi.
10404 (arm_dump_tdep): Don't dump osabi.
10405 * arm-linux-tdep.c: Include "osabi.h".
10406 * armnbsd-tdep.c: Include "osabi.h".
10407
10408 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10409 Update call to gdbarch_init_osabi.
10410
10411 * i386-tdep.h: Don't include "osabi.h".
10412 (struct gdbarch_tdep): Remove osabi member.
10413 * i386-tdep.c: Include "osabi.h".
10414 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10415 iterate over arches. Update call to gdbarch_init_osabi.
10416 (i386_dump_tdep): Don't dump osabi.
10417 * i386-linux-tdep.c: Include "osabi.h".
10418 * i386-sol2-tdep.c: Include "osabi.h".
10419 * i386bsd-tdep.c: Include "osabi.h".
10420 * i386gnu-tdep.c: Include "osabi.h".
10421 * i386ly-tdep.c: Include "osabi.h".
10422 * i386nbsd-tdep.c: Include "osabi.h".
10423 * i386obsd-tdep.c: Include "osabi.h".
10424
10425 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10426 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10427 check osabi when iterating over arches. Update call to
10428 gdbarch_init_osabi.
10429 (mips_dump_tdep): Don't dump osabi.
10430
10431 * ns32k-tdep.h: Don't include "osabi.h".
10432 (struct gdbarch_tdep): Remove.
10433 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10434 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10435 allocate tdep. Update call to gdbarch_init_osabi.
10436 (ns32k_dump_tdep): Remove.
10437 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10438 * ns32knbsd-tdep.c: Include "osabi.h".
10439
10440 * ppc-tdep.h: Don't include "osabi.h".
10441 (struct gdbarch_tdep): Remove osabi member.
10442 * rs6000-tdep.c: Include "osabi.h".
10443 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10444 osabi when iterating over arches. Update call to
10445 gdbarch_init_osabi.
10446 (rs6000_dump_tdep): Don't dump osabi.
10447 * ppc-linux-tdep.c: Include "osabi.h".
10448 * ppcnbsd-tdep.c: Include "osabi.h".
10449
10450 * sh-tdep.h: Don't include "osabi.h".
10451 (struct gdbarch_tdep): Remove osabi member.
10452 * sh-tdep.c: Include "osabi.h".
10453 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10454 iterate over arches. Update call to gdbarch_init_osabi.
10455 (sh_dump_tdep): Don't dump osabi.
10456 * shnbsd-tdep.c: Include "osabi.h".
10457
10458 * sparc-tdep.c: Include "osabi.h".
10459 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10460 iterate over arches. Update call to gdbarch_init_osabi.
10461 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10462 tdep structure.
10463
10464 * vax-tdep.h: Don't include "osabi.h".
10465 (struct gdbarch_tdep): Remove.
10466 * vax-tdep.c: Include "osabi.h".
10467 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10468 iterate over arches. Don't allocate tdep. Update call
10469 to gdbarch_init_osabi.
10470 (vax_dump_tdep): Remove.
10471 (_initialize_vax_tdep): Update call to gdbarch_register.
10472
10473 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10474
10475 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10476 entirely.
10477 (breakpoint_re_set_one): Don't fetch the value for a disabled
10478 watchpoint.
10479
10480 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10481
10482 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10483 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10484 (COERCE_FLOAT_TO_DOUBLE): Remove.
10485 * gdbarch.c: Regenerate.
10486 * gdbarch.h: Regenerate.
10487 * Makefile.in: Remove value_h from gdbarch_h.
10488 * valops.c (coerce_float_to_double): New variable.
10489 (default_coerce_float_to_double): Remove.
10490 (standard_coerce_float_to_double): Remove.
10491 (value_arg_coerce): Use coerce_float_to_double.
10492 (_initialize_valops): Add "set coerce-float-to-double".
10493 * value.h (default_coerce_float_to_double): Remove prototype.
10494 (standard_coerce_float_to_double): Remove prototype.
10495
10496 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10497 prototyped.
10498 * mdebugread.c (parse_symbol): Likewise.
10499 * stabsread.c (define_symbol): Mark all functions as prototyped.
10500
10501 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10502 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10503 set_gdbarch_coerce_float_to_double.
10504 * arm-tdep.c (arm_gdbarch_init): Likewise.
10505 * frv-tdep.c (frv_gdbarch_init): Likewise.
10506 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10507 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10508 * mips-tdep.c (mips_gdbarch_init): Likewise.
10509 (mips_coerce_float_to_double): Remove.
10510 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10511 (rs6000_coerce_float_to_double): Remove.
10512 * s390-tdep.c (s390_gdbarch_init): Likewise.
10513 * sh-tdep.c (sh_gdbarch_init): Likewise.
10514 (sh_coerce_float_to_double): Remove.
10515 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10516 (sparc_coerce_float_to_double): Remove.
10517 * v850-tdep.c (v850_gdbarch_init): Likewise.
10518 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10519 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10520 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10521 (hppa_coerce_float_to_double): Remove prototype.
10522 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10523
10524 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10525
10526 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10527
10528 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10529
10530 Suggested by Stewart Brown <sb24@avaya.com>:
10531 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10532 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10533 (c_type_print_varspec_suffix): Likewise.
10534
10535 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10536
10537 * configure.in: Don't set and AC_SUBST SUBDIRS.
10538 * configure: Regenerated.
10539
10540 * configure.in: Remove code dealing with shared libraries.
10541 * Makefile.in: Remove HLDFLAGS and HLDENV.
10542 * configure: Regenerated.
10543
10544 2003-01-04 Andrew Cagney <ac131313@redhat.com>
10545
10546 * frame.c (deprecated_frame_xmalloc): New function.
10547 (deprecated_set_frame_saved_regs_hack): New function.
10548 (deprecated_set_frame_extra_info_hack): New function.
10549 * frame.h (deprecated_frame_xmalloc): Declare.
10550 (deprecated_set_frame_saved_regs_hack): Declare.
10551 (deprecated_set_frame_extra_info_hack): Declare.
10552
10553 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10554
10555 * configure.in: Move code that provides the --enable-gdbtk option
10556 right after the code that handles the --enable-tui option, and
10557 polish it somewhat.
10558 * configure: Regenerated.
10559
10560 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10561 AC_CHECK_FUNCS and remove the old check for pread64.
10562 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10563 * acconfig.h (_GNU_SOURCE): Add.
10564 (HAVE_PREAD64): Remove.
10565 * configure, aclocal.m4, config.in: Regenerated.
10566
10567 2003-01-03 Andrew Cagney <ac131313@redhat.com>
10568
10569 * alpha-tdep.c: Use get_frame_saved_regs.
10570 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10571 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10572 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10573 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10574 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10575
10576 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10577
10578 * configure.in: Remove all use of the SUBDIRS variable; add
10579 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10580 code providing the --enable-multi-ice option, and move it right in
10581 front of the code that checks whether gdbserver is supported.
10582 Polish that too.
10583 * configure: Regenerated.
10584 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10585 @SUBDIRS@.
10586
10587 2003-01-03 Andrew Cagney <cagney@redhat.com>
10588
10589 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10590 * avr-tdep.c, cris-tdep.c: Ditto.
10591 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10592 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10593
10594 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10595
10596 * configure.in: Remove --enable-netrom option.
10597 * configure: Regenerated.
10598
10599 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10600
10601 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10602 declaration for `struct re_pattern_buffer' instead.
10603 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10604
10605 2003-01-03 J. Brobecker <brobecker@gnat.com>
10606
10607 * mdebugread.c (parse_symbol): Count until the stEnd matching
10608 the structure name.
10609
10610 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10611
10612 * configure.in: Remove --with-cpu option.
10613 subscripts. Remove evil changequotes here.
10614 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10615 * config.in, configure: Regenerated.
10616
10617 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10618 * configure.in: Cleanup section that sources GDB and BFD configure
10619 subscripts. Remove evil changequotes here.
10620 * config.in, configure: Regenerated.
10621
10622 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10623
10624 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10625 frame accessor methods.
10626 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10627 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10628 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10629 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10630 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10631 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10632 * z8k-tdep.c: Ditto.
10633
10634 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10635
10636 * configure.in: Remove UI_OUT configuration code.
10637 * ada-lang.c: Update assuming UI_OUT is always true.
10638 * Makefile.in (UIOUT_CFLAGS): Remove.
10639 * configure: Regenerated.
10640 * TODO: Remove blurb about elimination of -DUI_OUT.
10641
10642 * configure.in: Move code that provides the --enable-gdbcli,
10643 --enable-gdbmi options right before the code that handles the
10644 --enable-tui option. Polish a bit.
10645 * configure: Regenerated.
10646
10647 * configure.in: Rewrite check for GNU regex and the
10648 --without-included regex option, and move it into the "Checks for
10649 library functions" section. This makes us use the system regex
10650 again by default on systems with version 2 of the GNU C library.
10651 This was apparently broken.
10652 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10653 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10654 * config.in, configure: Regenerated.
10655
10656 * configure.in: Move code that provides the --enable-tui option
10657 before the "Checks for libraries" section. Polish the code
10658 somewhat and set need_curses to yes if we build the TUI. Rewrite
10659 code that looks for a library providing termcap functionality to
10660 match more closely what's done in the Readline library, and move
10661 it into to the "Checks for libraries" section.
10662 * configure: Regenerated.
10663 * Makefile.in (TERMCAP): Remove variable.
10664 * config/i386/go32.mh (TERMCAP): Remove variable.
10665
10666 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10667
10668 * MAINTAINERS: Mention gdb_mbuild.sh.
10669 * gdb_mbuild.sh: Rewrite.
10670
10671 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10672
10673 * configure.in: Fix typo in last change.
10674 * config.in, configure: Regenerated.
10675
10676 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10677
10678 * valarith.c (value_binop): Delete obsolete code and comments.
10679 * configure.host: Ditto.
10680 * buildsym.h (make_blockvector): Ditto.
10681 * buildsym.c (make_blockvector): Ditto.
10682 * defs.h (enum language): Ditto.
10683 (chill_demangle): Ditto.
10684 * elfread.c (elf_symtab_read): Ditto.
10685 * dwarfread.c (CHILL_PRODUCER): Ditto.
10686 (set_cu_language): Ditto.
10687 (handle_producer): Ditto.
10688 * expprint.c (print_subexp): Ditto.
10689 * gdbtypes.c (chill_varying_type): Ditto.
10690 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10691 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10692 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10693 (chill_varying_type): Ditto.
10694 * language.h (_LANG_chill): Ditto.
10695 * language.c (binop_result_type, integral_type): Ditto.
10696 (character_type, string_type, structured_type): Ditto.
10697 (lang_bool_type, binop_type_check): Ditto.
10698 * stabsread.h (os9k_stabs): Ditto.
10699 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10700 (define_symbol, read_type, read_struct_fields): Ditto.
10701 (read_array_type, read_enum_type, read_huge_number): Ditto.
10702 (read_range_type, start_stabs): Ditto.
10703 * symfile.c (init_filename_language_table): Ditto.
10704 (add_psymbol_with_dem_name_to_list): Ditto.
10705 * symtab.c (symbol_init_language_specific): Ditto.
10706 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10707 * symtab.h (struct general_symbol_info): Ditto.
10708 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10709 * typeprint.c (typedef_print): Ditto.
10710 * utils.c (fprintf_symbol_filtered): Ditto.
10711 * valops.c (value_cast, search_struct_field, value_slice): Delete
10712 obsolete code.
10713 (varying_to_slice): Delete function.
10714 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10715 (varying_to_slice): Delete declaration.
10716 * MAINTAINERS: Update.
10717
10718 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10719
10720 * configure.in: Reorganize "Checks for library functions section"
10721 a bit. Remove check for `btowc' and `isascii' functions.
10722 * configure: Regenerated.
10723
10724 * acconfig.h (_MSE_INT_H): Remove.
10725 * configure.in: Create "Checks for header files" section, and move
10726 appropriate tests there. Don't check for objlist.h, wchar.h,
10727 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
10728 misdetection fix. Also add "Checks for types", "Checks for
10729 compiler characteristics" and "Checks for library functions"
10730 sections.
10731 * config.in, configure: Regenerated.
10732
10733 * configure.in: Create "Checks for programs" section, and move
10734 appropriate tests there.
10735
10736 2003-01-01 Mark Kettenis <kettenis@gnu.org>
10737
10738 * configure.in: Create "Checks for libraries" section, and move
10739 appropriate tests there. Cleanup check for wctype in libw. Use
10740 AC_SEARCH_LIBS to see whether we need libsocket.
10741 * configure: Regenerated.
10742
10743 For older changes see ChangeLog-2002
10744 \f
10745 Local Variables:
10746 mode: change-log
10747 left-margin: 8
10748 fill-column: 74
10749 version-control: never
10750 End: