* solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-08-26 Jim Blandy <jimb@redhat.com>
2
3 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
4 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
5 bfd_lookup_symbol, since we only want symbols in code sections.
6 (look_for_base): Pass zero as the SECT_FLAGS argument to
7 bfd_lookup_symbol, since we're not concerned about which section
8 the symbol is in.
9
10 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
11
12 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
13 we are frameless or the return address register is already known.
14
15 2003-08-26 Andrew Cagney <cagney@redhat.com>
16
17 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
18 in size. Add comments.
19
20 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
21
22 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
23 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
24
25 2003-08-26 Jason Merrill <jason@redhat.com>
26
27 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
28 case out of #ifdef MIPS block.
29
30 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
31
32 PR java/1322
33 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
34 available before calling SECT_OFF_TEXT.
35 * PROBLEMS: Remove description of java/1322.
36
37 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
38
39 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
40 bof, and nat0-nat127 as pseudo-registers.
41 (ia64_frame_cache): New struct used to cache frame info.
42 (ia64_register_reggroup_p): New routine used to override default
43 register grouping so registers without names are still saved and
44 restored.
45 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
46 pseudo values.
47 (ia64_pseudo_register_read): New routine to read pseudo-registers.
48 (ia64_pseudo_register_write): New routine to write pseudo-registers.
49 (ia64_alloc_frame_cache): New routine to create a new
50 ia64_frame_cache.
51 (examine_prologue): Change prototype to add next_frame pointer.
52 Assume frameless until otherwise proven. Verify that the cfm for
53 current frame matches the cfm that should occur for the prologues
54 alloc insn and if equal, mark as not frameless. At end of routine,
55 if not frameless, calculate registers for the previous frame and store
56 in the cache, if a cache is provided.
57 (ia64_skip_prologue): Use new prototype when calling examine_prologue
58 and pass 0 for next_frame.
59 (ia64_store_return_value): Change to use convert_typed_floating()
60 instead of calling ia64_convert_to_raw().
61 (ia64_extract_return_value): Change to use convert_typed_floating()
62 instead of calling ia64_convert_to_virtual().
63 (ia64_frame_cache): New routine to support new frame model.
64 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
65 (ia64_frame_sniffer): Ditto.
66 (ia64_sigtramp_frame_init_saved_regs): Ditto.
67 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
68 (ia64_sigtramp_frame_prev_register): Ditto.
69 (ia64_sigtramp_frame_sniffer): Ditto.
70 (ia64_frame_base_address): Ditto.
71 (ia64_extract_struct_value_address): Change to issue error message.
72 (ia64_frame_align): New routine to align sp.
73 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
74 (ia64_push_arguments): Removed. Logic moved to
75 ia64_push_dummy_call().
76 (ia64_push_return_address): Ditto.
77 (ia64_unwind_dummy_id): New function.
78 (ia64_unwind_pc): Ditto.
79 (ia64_convert_register_p): Ditto.
80 (ia64_register_to_value): Ditto.
81 (ia64_value_to_register): Ditto.
82 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
83 (ia64_register_byte, ia64_register_raw_size): Ditto.
84 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
85 (ia64_saved_pc_after_call): Ditto.
86 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
87 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
88 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
89 (ia64_register_convert_to_raw): Ditto.
90 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
91 (ia64_init_extra_frame_info): Ditto.
92 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
93 (ia64_gdbarch_init): Remove registering of deprecated functions that
94 are no longer used. Add registration of new gdbarch functions.
95 Remove registering deprecated_write_sp. Replace
96 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
97 Delete set_gdbarch_deprecated_register_convertible(),
98 set_gdbarch_deprecated_register_convert_to_virtual(), and
99 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
100 set_gdbarch_deprecated_register_size(),
101 set_gdbarch_deprecated_register_bytes(),
102 set_gdbarch_pcregnum(),
103 set_gdbarch_deprecated_register_byte(),
104 set_gdbarch_deprecated_register_raw_size(),
105 set_gdbarch_deprecated_max_register_raw_size(),
106 set_gdbarch_deprecated_register_virtual_size(),
107 and set_gdbarch_deprecated_max_register_virtual_size() calls.
108 Replace set_gdbarch_deprecated_extract_return_value() with
109 set_gdbarch_extract_return_value(). Remove calls to:
110 set_gdbarch_deprecated_saved_pc_after_call();
111 set_gdbarch_deprecated_frame_chain(),
112 set_gdbarch_deprecated_frame_saved_pc(),
113 set_gdbarch_deprecated_frame_init_saved_regs(),
114 set_gdbarch_deprecated_get_saved_register(),
115 set_gdbarch_deprecated_call_dummy_words(),
116 set_gdbarch_deprecated_sizeof_call_dummy_words(),
117 set_gdbarch_deprecated_init_extra_frame_info(),
118 set_gdbarch_deprecated_frame_args_address(),
119 set_gdbarch_deprecated_frame_locals_address(),
120 and set_gdbarch_deprecated_dummy_write_sp().
121 Add set_gdbarch_convert_register_p(),
122 set_gdbarch_register_to_value(),
123 set_gdbarch_value_to_register(),
124 set_gdbarch_push_dummy_call(),
125 set_gdbarch_frame_align(),
126 set_gdbarch_unwind_dummy_id(),
127 set_gdbarch_unwind_pc(),
128 frame_unwind_append_sniffer(),
129 frame_unwind_append_sniffer(),
130 and frame_base_set_default().
131
132 2003-08-25 Chris Demetriou <cgd@broadcom.com>
133
134 * configure.tgt: Document need for special "mipsisa64" handling.
135 (mipsisa64*-*-linux64): Handle as target linux64.
136 (mipsisa64*-*-*): Handle as target embed64.
137
138 2003-08-18 Michael Chastain <mec@shout.net>
139
140 * PROBLEMS: Document pr gdb/1322, the Java anonymous
141 objfile bug.
142
143 2003-08-24 Mark Kettenis <kettenis@gnu.org>
144
145 * i387-tdep.h: Update copyright date.
146 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
147
148 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
149 CFLAGS games to reflect reality.
150
151 2003-08-24 Andrew Cagney <cagney@redhat.com>
152
153 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
154 GDB_MULTI_ARCH is always non-zero.
155 * osabi.c (_initialize_gdb_osabi): Ditto.
156 (gdbarch_init_osabi): Ditto.
157 * sparc-tdep.c: Ditto for #if code.
158
159 2003-08-23 Mark Kettenis <kettenis@gnu.org>
160
161 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
162 Update comments.
163 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
164 comments.
165 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
166 x86_64_supply_fxsave.
167 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
168 x86_64_supply_fxsave.
169 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
170 x86_64_supply_fxsave.
171
172 2003-08-23 Andreas Jaeger <aj@suse.de>
173
174 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
175 i387_supply_fxsave.
176
177 2003-08-23 Mark Kettenis <kettenis@gnu.org>
178
179 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
180 i387_supply_register.
181 (go32_fetch_registers): Adjust call to i387_supply_fsave.
182 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
183 i387_supply_fsave.
184 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
185 i387_supply_fxsave.
186 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
187 i387_supply_fsave.
188 * i386bsd-nat.c (supply_fpregset): Adjust call to
189 i387_supply_fsave.
190 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
191 call to i387_supply_fxsave. Call i387_supply_fsave instead of
192 supply_fpregset.
193 (store_inferior_registers): Remove extraneous whitespace. Call
194 i387_fill_fsave instead of fill_fpregset.
195 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
196 (supply_fpregset): Likewise.
197 * i386v4-nat.c (supply_fpregset): Adjust call to
198 i387_supply_fsave.
199 * i386-interix-nat.c (supply_fpregset): Adjust call to
200 i387_supply_fsave.
201 * i386-linux-nat.c (supply_fpregset): Adjust call to
202 i387_supply_fsave.
203 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
204 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
205 i387supply_fsave and i387_supply_fxsave.
206 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
207 Incorporate code from `i387_supply_register.
208 (i387_supply_register): Remove.
209 (i387_supply_fxsave): Add `regnum' argument.
210 Update comments.
211 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
212 prototype.
213 (i387_supply_register): remove prototype.
214 Update comments.
215
216 2003-08-22 Michael Chastain <mec@shout.net>
217
218 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
219 Add lines for files in gdb/testsuite/gdb.cp/* that are
220 still not 8.3 unique.
221
222 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
223
224 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
225 TYPE_VPTR_FIELDNO is valid.
226
227 2003-08-19 Mark Kettenis <kettenis@gnu.org>
228
229 * utils.c (set_width_command): Remove prototypes.
230 (set_screen_size): New prototype.
231 (init_page_info): Simplify by fetching the screen size from
232 Readline. Call set_screen_size.
233 (set_screen_size): New function.
234 (set_width): Add missing whitespace in comment.
235 (set_width_command): Call set_screen_size.
236 (set_height_command): New function.
237 (initialize_utils): Fix formatting. Make "set height" command
238 call set_height_command. Remove redundant code that turns off
239 pagination if output isn't a terminal. Remove redundant call to
240 set_width_command.
241
242 2003-08-22 Mark Kettenis <kettenis@gnu.org>
243
244 * sparc64-tdep.h (sparc64_regnum): Fix comment.
245 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
246 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
247 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
248 `case' keyword.
249 (sparc64_register_info): Give the reister with number
250 SPARC64_STATE_REGNUM a name.
251 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
252 %asi and %ccr.
253 (sparc64_push_dummy_call): Take BIAS into account when checking
254 stcak alignment.
255 (sparc_software_single_step): Remove assertions that check whether
256 NPC and NNPC were zero.
257 (sparc_supply_rwindow): Make public. Merge functionality with
258 sparc64_supply_rwindow.
259 (sparc_fill_rwindow): Make public. Merge functionality with
260 sparc64_fill_rwindow.
261 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
262 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
263 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
264 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
265 sparc_supply_rwindow instead of sparc64_supply_rwindow.
266
267 * reggroups.c: Add whitespace after declarations of local
268 variables in functions.
269
270 2003-08-21 Michael Chastain <mec@shout.net>
271
272 * gdbtypes.h: Change array bound type from an int to enum.
273
274 2003-08-21 Andrew Cagney <cagney@redhat.com>
275
276 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
277 * config/sparc/tm-sparc.h: Ditto.
278 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
279 unconditionally.
280 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
281
282 2003-07-13 Mark Kettenis <kettenis@gnu.org>
283
284 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
285 (register_objfile_data, set_objfile_data, objfile_data): New
286 prototypes.
287 * objfiles.c (objfile_alloc_data, objfile_free_data): New
288 prototypes.
289 (allocate_objfile): Call objfile_alloc_data.
290 (free_objfile): Call objfile_free_data.
291 (struct objfile_data): New.
292 (struct objfile_data_registration): New.
293 (struct objfile_data_registry): New.
294 (objfile_data_registry): New variable.
295 (register_objfile_data): New function.
296 (objfile_alloc_data, objfile_free_data): New functions.
297 (set_objfile_data, objfile_data): New functions.
298 * dwarf2-frame.c (dwarf2_frame_data): New variable.
299 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
300 (_initialize_dwarf2_frame): New function and prototype.
301
302 2003-08-21 Andrew Cagney <cagney@redhat.com>
303
304 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
305 a specific architecture.
306 * arch-utils.h (set_architecture_from_arch_mach): Delete
307 declaration.
308 (target_architecture_hook): Delete declaration.
309 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
310 (default_float_format): Assume GDB_MULTI_ARCH.
311 (default_double_format): Assume GDB_MULTI_ARCH.
312 (set_endian_from_file): Delete function.
313 (arch_ok): Delete function.
314 (set_arch): Delete function.
315 (set_architecture_from_arch_mach): Delete function.
316 (set_architecture_from_file): Delete function.
317 (set_architecture): Assume GDB_MULTI_ARCH.
318 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
319
320 2003-08-21 Mark Kettenis <kettenis@gnu.org>
321
322 Rewrite FreeBSD/sparc64 native configuration.
323 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
324 * sparc64fbsd-nat.c: New file.
325 * sparc64fbsd-tdep.c: New file.
326 * sparc64-tdep.c sparc64-tdep.h: New files.
327 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
328 sparc64fbsd-tdep.o): New dependencies.
329 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
330 and sparc64fbsd-tdep.c.
331 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
332 * config/sparc/fbsd.mh: Remove copyright notice.
333 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
334 sparcbsd-nat.o.
335 * config/sparc/fbsd.mt: Remove copyright notice.
336 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
337 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
338 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
339 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
340 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
341 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
342 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
343 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
344 "sparc/tm-sp64.h".
345 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
346 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
347
348 2003-08-21 Michael Chastain <mec@shout.net>
349
350 * symtab.h: Add doco on the space critical structures and
351 some measurements of space usage.
352
353 2003-08-21 Michael Snyder <msnyder@redhat.com>
354
355 * tracepoint.c (trace_dump_command): Trace break address
356 is subject to DECR_PC_AFTER_BREAK.
357 (set_traceframe_context): Make "trace_line" an int.
358 Fixes suggested by Mark Newman <mark.newman@lmco.com>
359
360 2003-08-20 Michael Snyder <msnyder@redhat.com>
361
362 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
363 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
364 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
365 argument passing.
366 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
367 functions, replace sh_push_dummy_call.
368 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
369
370 2003-08-20 Michael Chastain <mec@shout.net>
371
372 * gdbtypes.h (struct main_type): Rearrange to save space.
373
374 2003-08-20 Michael Snyder <msnyder@redhat.com>
375
376 * trad-frame.c: Comment typo fix.
377
378 2003-08-20 Michael Snyder <msnyder@redhat.com>
379 Kevin Buettner <kevinb@redhat.com>
380
381 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
382 (frv_frame_init_saved_regs): Add declaration.
383 (frame_extra_info): Add new field ``saved_regs''.
384 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
385 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
386 Update frame related code.
387 (frv_extract_struct_value_address): Adjust formatting.
388 * Makefile.in (frv-tdep.o): Update dependencies.
389 * config/frv/tm-frv.h (target_insert_watchpoint)
390 (target_remove_watchpoint, target_insert_hw_breakpoint)
391 (target_remove_hw_breakpoint): Delete these macros.
392 (remote_insert_watchpoint, remote_remove_watchpoint)
393 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
394 these declarations.
395
396 2003-08-20 Michael Chastain <mec@shout.net>
397
398 * defs.h (ENUM_BITFIELD): New macro.
399 * symtab.h (ENUM_BITFIELD): Use it.
400 (BYTE_BITFIELD): Remove old macro, which was already disabled.
401
402 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
403
404 * MAINTAINERS (write after approval): Add myself.
405
406 2003-08-18 Andrew Cagney <cagney@redhat.com>
407
408 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
409 * gdbarch.h, gdbarch.c: Re-generate.
410 * infcall.c (call_function_by_hand): Adjust the SP by
411 frame_red_zone_size before allocating any stack space.
412 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
413 * x86-64-tdep.c (x86_64_frame_align): New function.
414 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
415
416 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
417 Remove code adjusting SP so that it skips over the Red Zone.
418
419 2003-08-18 Mark Kettenis <kettenis@gnu.org>
420
421 * NEWS (New native configurations): Mention FreeBSD/amd64.
422
423 2003-08-18 Andrew Cagney <cagney@redhat.com>
424
425 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
426 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
427 "m68k_frame_p".
428 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
429
430 2003-08-18 Mark Kettenis <kettenis@gnu.org>
431
432 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
433
434 2003-08-18 Michal Ludvig <mludvig@suse.cz>
435
436 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
437 Define.
438 * i386-linux-nat.c: Include "linux-nat.h".
439 (child_post_startup_inferior): New function.
440
441 2003-08-18 Mark Kettenis <kettenis@gnu.org>
442
443 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
444 at the start of a frameless function. This probably fixes PR
445 backtrace/1338.
446
447 2003-08-17 Michael Chastain <mec@shout.net>
448
449 * symfile.c (find_sym_fns): Remove special case for apollo target.
450
451 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
452
453 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
454 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
455 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
456 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
457 (linux_supports_tracevforkdone): New function.
458 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
459 TRACEVFORKDONE.
460 (child_follow_fork): Handle vfork.
461 (linux_handle_extended_wait): Likewise. Also handle exec.
462 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
463 * NEWS: Mention fork tracing.
464
465 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
466
467 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
468
469 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
470
471 * Makefile.in (i386-linux-nat.o): Update dependencies.
472 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
473 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
474 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
475 * i386-linux-nat.c: Include "linux-nat.h".
476 (child_post_startup_inferior): New function.
477 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
478 * infptrace.c (kill_inferior): Wrap in #ifdef.
479 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
480 attaching to each LWP.
481 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
482 (init_lin_lwp_ops): Fill in some more operations.
483 * linux-nat.h (linux_enable_event_reporting)
484 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
485 prototypes.
486 * linux-nat.c (linux_enable_event_reporting): New function.
487 (child_post_attach, linux_child_post_startup_inferior)
488 (child_post_startup_inferior, child_follow_fork)
489 (linux_handle_extended_wait, kill_inferior): New functions.
490
491 2003-08-16 Andrew Cagney <cagney@redhat.com>
492
493 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
494 * gdbarch.h, gdbarch.c: Re-generate.
495
496 2003-08-16 Mark Kettenis <kettenis@gnu.org>
497
498 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
499
500 2003-08-16 Andrew Cagney <cagney@redhat.com>
501
502 * NEWS: Mention that "set prompt-escape-char" was deleted.
503 * top.c (get_prompt_1): Delete function.
504 (gdb_prompt_escape):
505 (init_main): Do not clear "gdb_prompt_escape". Delete "set
506 prompt-escape-char" command.
507 (MAX_PROMPT_SIZE): Delete macro.
508 (get_prompt): Simplify, do not call get_prompt_1.
509
510 2003-08-16 Andrew Cagney <cagney@redhat.com>
511
512 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
513 -Werror. -Wformat-nonliteral problems.
514
515 2003-08-15 J. Brobecker <brobecker@gnat.com>
516
517 Further multiarching work mostly for hppa64-*-hpux11:
518 * hppa-tdep.h: New file.
519 * hppa-tdep.c: #include hppa-tdep.c.
520 (hppa32_num_regs): Renamed from hppa_num_regs.
521 (hppa64_num_regs): New constant.
522 (hppa64_call_dummy_breakpoint_offset): New constant.
523 (hppa32_call_dummy_length): New constant.
524 (hppa64_call_dummy_length): New constant.
525 (hppa32_stack_align): Make name 32bit explicit.
526 (hppa32_register_virtual_type): Likewise.
527 (hppa32_extract_return_value): Likewise.
528 (hppa32_use_struct_convention): Likewise.
529 (hppa32_store_return_value): Likewise.
530 (hppa64_register_virtual_type): New function.
531 (hppa64_extract_return_value): New function.
532 (hppa64_use_struct_convention): New function.
533 (hppa64_store_return_value): New function.
534 (hppa_frame_locals_address): Remove declaration, function does
535 not exist anymore.
536 (hppa_register_byte): Add support for PA64 ABI.
537 (hppa_gdbarch_init): Add support for PA64 ABI.
538 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
539 Make name 32bit explicit.
540 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
541 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
542 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
543 (hppa64_hpux_frame_base_before_sigtramp): New function.
544 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
545 * config/pa/tm-hppa64.h: Remove macros that are no longer
546 necessary now that the gdbarch vector is properly setup.
547 Transform some macros into function calls. Some minor cleanup.
548 * config/pa/tm-hppah.h: Update function calls in macros
549 following the function renaming in hppa-hpux-tdep.c.
550 * Makefile.in (hppa_tdep_h): New variable.
551 (hppa-tdep.o): Add dependency over hppa_tdep_h.
552
553 2003-08-14 Michael Snyder <msnyder@redhat.com>
554
555 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
556
557 2003-08-13 J. Brobecker <brobecker@gnat.com>
558
559 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
560 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
561 routine.
562
563 2003-08-13 Michael Snyder <msnyder@redhat.com>
564
565 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
566 (frv_saved_pc_after_call): Use deprecated ftype.
567 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
568 (frv_remote_translate_xfer_address): Remove.
569 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
570
571 2003-08-13 J. Brobecker <brobecker@gnat.com>
572
573 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
574 initialization after the common gdbarch initialization, not before.
575
576 2003-08-13 J. Brobecker <brobecker@gnat.com>
577
578 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
579 (ADDR_BITS_REMOVE): Remove, redundant.
580
581 2003-08-13 J. Brobecker <brobecker@gnat.com>
582
583 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
584 gdbarch method to clear the 2 low bits of text addresses.
585
586 2003-08-12 Andrew Cagney <cagney@redhat.com>
587
588 * Makefile.in (dsrec.o): Update dependencies.
589 * dsrec.c: Include "gdb_assert.h".
590 (make_srec): Use snprintf instead of sprintf, use a literal format
591 string.
592
593 2003-08-12 Andrew Cagney <cagney@redhat.com>
594
595 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
596 FRAME_OBSTACK_ZALLOC.
597
598 2003-08-12 Kevin Buettner <kevinb@redhat.com>
599
600 * i386-tdep.c (i386_gdbarch_init): Enable default support for
601 SSE registers.
602
603 2003-08-10 Mark Kettenis <kettenis@gnu.org>
604
605 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
606 amd64fbsd_sc_reg_offset): Add extern declarations.
607 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
608 declarations.
609
610 2003-08-11 Ben Elliston <bje@wasabisystems.com>
611
612 * MAINTAINERS (write after approval): Update my mail address.
613
614 2003-08-10 Andrew Cagney <cagney@redhat.com>
615
616 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
617
618 2003-08-10 Mark Kettenis <kettenis@gnu.org>
619
620 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
621 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
622 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
623 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
624 i386bsd_sc_reg_offset): Add extern declarations.
625 * i386obsd-nat.c: Include "i386-tdep.h"
626 (_initialize_i386obsd_nat): Remove extern declarations.
627 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
628 declarations.
629 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
630 declarations.
631
632 * i386-tdep.c (i386_register_to_value): Use get_frame_register
633 instead of frame_read_register.
634 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
635 instead of frame_read_register. Use I386_ESP_REGNUM instead of
636 SP_REGNUM.
637 (i386_frame_prev_register): Use frame_unwind_register_unsigned
638 instead of frame_unwind_unsigned_register. Use
639 I386_EFLAGS_REGISTER instead of PS_REGNUM.
640 (i386_get_longjmp_target): Use regcache_read_unsigned_register
641 instead of read_register. Use builtin_type_void_data_ptr instead
642 of builtin_type_void_func_ptr when extracting the address of the
643 jmp_buf.
644 (i386_extract_return_value, i386_store_return_value,
645 i386_pseudo_register_read, i386_pseudo_register_write): Use
646 register_size instead REGISTER_RAW_SIZE.
647
648 2003-08-10 Andrew Cagney <cagney@redhat.com>
649
650 * infcall.c (call_function_by_hand): Use xstrprintf instead of
651 sprintf. Make "name" constant.
652
653 2003-08-10 Mark Kettenis <kettenis@gnu.org>
654
655 * i387-tdep.c (i387_register_to_value): Use get_frame_register
656 instead of frame_read_register.
657 (i387_print_float_info): Use get_frame_register and
658 get_frame_register_unsigned instead of frame_register_read.
659
660 * i386fbsd-nat.c: Include "i386-tdep.h".
661 (child_resume): Make `eflags' an ULONGEST. Use
662 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
663 instead of register_read and register_write.
664
665 * i386bsd-nat.c (fetch_inferior_registers,
666 store_inferior_registers): Don't use && at the end of a line.
667 (_initialize_i386bsd_nat): Fix typo.
668
669 * frame.c (_initialize_frame): Add missing backslash.
670
671 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
672 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
673 and supply_register instead of manipulating the register buffer
674 directly.
675
676 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
677 * config/i386/nm-i386sol2.h
678 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
679
680 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
681 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
682 instructions that GCC likes to mingle into the prologue. Fixes
683 gdb/1253 and gdb/1255.
684
685 2003-08-09 Andrew Cagney <cagney@redhat.com>
686
687 Fix GDB PR cli/926.
688 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
689 * command.h (add_setshow_uinteger_cmd): Declare.
690 * frame.c (set_backtrace_cmd): New function.
691 (show_backtrace_cmd): New function.
692 * frame.c (_initialize_frame): Replace "set/show
693 backtrace-below-main" with "set/show backtrace past-main". Add
694 command "set/show backtrace limit".
695 (backtrace_past_main): Rename "backtrace_below_main".
696 (backtrace_limit): New variable.
697 (get_prev_frame): Update. Check the backtrace_limit.
698
699 2003-08-09 Andrew Cagney <cagney@redhat.com>
700
701 * defs.h (xstrprintf): Declare.
702 * utils.c (xstrprintf): New function.
703 * breakpoint.c (insert_breakpoints): Replace sprintf and
704 non-literal format strings, with xstrprintf and cleanups.
705 (delete_breakpoint,breakpoint_re_set): Ditto.
706 (commands_command, insert_breakpoints): Ditto.
707 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
708 (break_at_finish_command_1): Ditto.
709
710 2003-08-09 Andrew Cagney <cagney@redhat.com>
711
712 * MAINTAINERS (language support): List Adam Fedor as Objective C
713 maintainer.
714
715 2003-08-08 J. Brobecker <brobecker@gnat.com>
716
717 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
718 are now multiarched.
719
720 2003-08-08 J. Brobecker <brobecker@gnat.com>
721
722 * config/pa/tm-hppa64.h: Remove lots of macros that are no
723 longer necessary now that hppa64 is partially multiarch'ed.
724
725 2003-08-08 Andrew Cagney <cagney@redhat.com>
726
727 * interps.c (interp_set): Check for a NULL "old_interp".
728
729 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
730
731 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
732 (install-only): Support DESTDIR.
733 (uninstall): Likewise.
734 (install-gdbtk): Likewise.
735
736 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
737
738 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
739 contains something meaningful at all times.
740
741 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
742
743 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
744
745 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
746
747 * MAINTAINERS (write after approval): Added self.
748
749 2003-08-07 Andrew Cagney <cagney@redhat.com>
750
751 * inferior.h (AT_SYMBOL): Define.
752 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
753 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
754 * mips-tdep.c (mips_call_dummy_address): Delete function.
755 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
756 set call_dummy_address.
757
758 2003-08-07 Andrew Cagney <cagney@redhat.com>
759
760 * language.c (op_error): Delete function.
761 (binop_type_check): Delete function.
762 * language.h (type_op_error, range_op_error): Delete macros.
763 (op_error): Delete declaration.
764
765 2003-08-07 Andrew Cagney <cagney@redhat.com>
766
767 * interps.h (INTERP_MI2, INTERP_MI3): Define.
768
769 2003-08-07 Michal Ludvig <mludvig@suse.cz>
770
771 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
772 (x86_64_push_arguments): Skip the red zone.
773
774 2003-08-05 Andrew Cagney <cagney@redhat.com>
775
776 * reggroups.c (reggroup_next): Check for the final entry.
777
778 2003-08-04 Andrew Cagney <cagney@redhat.com>
779
780 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
781 * cli/cli-script.c (define_command): Call query directly, instead
782 of passing it a buffer.
783 * ocd.c (ocd_error): Pass error a constant format string.
784 * remote-mips.c (mips_error): Use fputs_filtered.
785
786 * solib-svr4.c (_initialize_svr4_solib): Update
787 register_gdbarch_data call.
788 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
789
790 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
791 (register_gdbarch_data): Delete "free" parameter. Update
792 comments.
793 * gdbarch.h, gdbarch.c: Re-generate.
794 * reggroups.c (_initialize_reggroup): Update.
795 * gnu-v3-abi.c (init_gnuv3_ops): Update.
796 * frame-base.c (_initialize_frame_base): Update.
797 * frame-unwind.c (_initialize_frame_unwind): Update.
798 * user-regs.c (_initialize_user_regs): Update.
799 * remote.c (_initialize_remote): Update.
800 * regcache.c (_initialize_regcache): Update.
801
802 * regcache.c (xfree_regcache_descr): Delete function.
803 (_initialize_regcache): Update call to register_gdbarch_data.
804 (init_regcache_descr, init_legacy_regcache_descr): Use
805 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
806
807 * remote.c (free_remote_state): Delete function.
808 (_initialize_remote): Update register_gdbarch_data.
809 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
810 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
811
812 2003-08-04 Andrew Cagney <cagney@redhat.com>
813
814 * reggroups.c (struct reggroup_el): Define.
815 (struct reggroups): Delete field "nr_group". Replace array
816 "group" with a "first" to "last" linked list.
817 (reggroups_init): Update. Allocate using gdbarch's obstack.
818 (reggroups_free): Delete function.
819 (add_group): Update. Add "el" parameter.
820 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
821 (default_groups): Update.
822 (reggroup_next): Replace reggroups.
823 (reggroups_dump): Update.
824 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
825 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
826 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
827
828 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
829
830 * Makefile.in (tui-interp.o): Update dependencies.
831
832 2003-08-04 David Carlton <carlton@kealia.com>
833
834 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
835 to internal_error call.
836 * source.c (forward_search_command): Add "%s" format argument.
837 (reverse_search_command): Ditto.
838 * top.c (quit_confirm): Ditto.
839 * cli/cli-setshow.c (do_setshow_command): Ditto.
840 * cp-valprint.c (cp_print_class_method): Replace
841 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
842 (cp_print_class_member): Ditto.
843 * event-top.c (command_line_handler): Ditto.
844 * linux-proc.c (linux_info_proc_cmd): Ditto.
845 * p-typeprint.c (pascal_type_print_base): Ditto.
846 * p-valprint.c (pascal_object_print_class_method): Ditto.
847 (pascal_object_print_class_member): Ditto.
848 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
849 * remote.c (remote_cisco_section_offsets): Ditto.
850 * top.c (command_line_input): Ditto.
851 * utils.c (vwarning,error_stream,quit): Ditto.
852 * valprint.c (print_floating,print_binary_chars)
853 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
854
855 2003-08-04 Andrew Cagney <cagney@redhat.com>
856
857 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
858
859 2003-08-02 Andrew Cagney <cagney@redhat.com>
860
861 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
862 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
863 amd64fbsd-nat.c.
864
865 2003-08-02 Andrew Cagney <cagney@redhat.com>
866
867 * Makefile.in: Update all dependencies and definitions.
868
869 2003-08-02 Adam Fedor <fedor@gnu.org>
870
871 * linespec.c (is_objc_method_format): New function
872 (decode_line_1, locate_first_half): Use it.
873 Fixes PR objc/1298
874
875 2003-08-01 Andrew Cagney <cagney@redhat.com>
876
877 * NEWS: Mention that m32r is multi-arch.
878 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
879 * configure.tgt: Recognize m32r-*-*.
880 * config/m32r/tm-m32r.h: Delete file.
881 * config/m32r/m32r.mt: New file.
882 * m32r-rom.c (m32r_upload_command): Use hostent only when
883 gethostname succeeds, in order to avoid a compilation
884 warning.
885 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
886 compiler warning.
887
888 2003-08-01 Michael Snyder <msnyder@redhat.com>
889
890 * sh-tdep.c (sh_frame_align): New gdbarch method.
891 (sh_gdbarch_init): Set up frame_align method.
892
893 2003-07-31 Michael Snyder <msnyder@redhat.com>
894
895 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
896 which is already covered by the new frames infrastructure.
897
898 2003-07-31 Andrew Cagney <cagney@redhat.com>
899
900 * user-regs.c (struct user_reg): Add "next" link.
901 (struct user_regs): Replace "user" with "first" and "last" links.
902 (append_user_reg): Add pre-allocated "reg" parameter.
903 (builtin_user_regs): Provide initial value for "last".
904 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
905 (user_regs_init): Allocate memory from the gdbarch obstack.
906 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
907 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
908 linked list.
909 (usernum_to_user_reg): New function.
910 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
911 (value_of_user_reg): Use usernum_to_user_reg.
912 (user_regs_free): Delete function.
913 (_initialize_user_regs): Update register_gdbarch_data call.
914
915 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
916
917 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
918
919 2003-07-30 Michael Snyder <msnyder@redhat.com>
920
921 * value.h (value_being_returned): Add a struct_addr argument.
922 * infcall.c (call_function_by_hand): Pass struct_addr to
923 value_being_returned.
924 * infcmd.c (print_return_value): Pass zero as struct_addr.
925 * values.c (value_being_returned): If struct_addr is passed,
926 use it instead of trying to recover it from the inferior.
927
928 2003-07-30 Kevin Buettner <kevinb@redhat.com>
929
930 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
931 the prologue analyzer won't need to attempt to extract the pc
932 value from the woefully incomplete dummy frame.
933 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
934 possible. Disable code which modifies the frame.
935
936 2003-07-28 Andrew Cagney <cagney@redhat.com>
937
938 * annotate.c (annotate_breakpoints_headers): Restrict annotation
939 to level 2.
940 (annotate_breakpoints_table, annotate_record): Ditto.
941 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
942 (annotate_field_name_end, annotate_field_value): Ditto.
943 (annotate_field_end, annotate_frame_source_begin): Ditto.
944 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
945 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
946 (annotate_frame_begin, annotate_frame_function_name): Ditto.
947 (annotate_frame_address_end, annotate_frame_address): Ditto.
948 (annotate_frame_args, annotate_frame_end): Ditto.
949 (annotate_frame_where, annotate_arg_begin): Ditto.
950 (annotate_arg_name_end, annotate_arg_value): Ditto.
951 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
952 (annotate_function_call, annotate_signal_name): Ditto.
953 (annotate_signal_string, annotate_signal_name_end): Ditto.
954 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
955 (annotate_value_begin, annotate_value_history_value): Ditto.
956 (annotate_value_history_end, annotate_value_end): Ditto.
957 (annotate_display_begin, annotate_display_number_end): Ditto.
958 (annotate_display_format, annotate_display_expression): Ditto.
959 (annotate_display_expression_end, annotate_display_value): Ditto.
960 (annotate_display_end, annotate_array_section_begin): Ditto.
961 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
962 (annotate_elt, annotate_array_section_end): Ditto.
963
964 2003-07-28 Andrew Cagney <cagney@redhat.com>
965
966 * regcache.c (struct regcache_descr): Update comments on
967 nr_raw_registers.
968 (init_legacy_regcache_descr): Don't set nr_raw_registers or
969 sizeof_raw_register_valid_p.
970 (init_regcache_descr): Set nr_raw_registers and
971 sizeof_raw_register_valid_p before calling
972 init_legacy_regcache_descr.
973
974 2003-07-28 Andrew Cagney <cagney@redhat.com>
975
976 * mips-tdep.c (print_gp_register_row): Print the GPR's register
977 MOD NUM_REGS.
978
979 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
980
981 * thread.c (info_threads_command): Use get_selected_frame ().
982 Check that there is at least one non-sentinel frame.
983
984 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
985
986 * m68hc11-tdep.c (struct frame_extra_info): Remove.
987 (m68hc11_pop_frame): Remove.
988 (m68hc11_frame_saved_pc): Remove.
989 (m68hc11_frame_chain): Remove.
990 (m68hc11_frame_init_saved_regs): Remove.
991 (m68hc11_init_extra_frame_info): Remove.
992 (m68hc11_store_struct_return): Remove.
993 (m68hc11_saved_pc_after_call): Remove.
994
995 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
996
997 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
998 frame unwind information.
999 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1000 and adapted for frame unwinding.
1001 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1002 (m68hc11_unwind_pc): New function.
1003 (m68hc11_frame_unwind_cache): New function to analyze frames.
1004 (m68hc11_frame_this_id): New function to create new frame struct.
1005 (m68hc11_frame_prev_register): New function to unwind a register from
1006 the frame.
1007 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1008 (m68hc11_frame_p): New function for the above.
1009 (m68hc11_frame_base_address): New function to return fp of frame.
1010 (m68hc11_frame_args_address): Update for frame.
1011 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1012 (m68hc11_unwind_sp): New function.
1013 (m68hc11_unwind_dummy_id): New function.
1014 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1015 calls.
1016
1017 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1018
1019 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1020 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1021 when we are beyond the current pc.
1022
1023 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1024
1025 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1026 from m68hc11_push_arguments.
1027 (m68hc11_push_arguments): Remove.
1028 (m68hc11_push_return_address): Remove.
1029 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1030 handlers; remove deprecated_extra_stack_alignment_needed.
1031
1032 2003-07-27 Andrew Cagney <cagney@redhat.com>
1033
1034 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1035 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1036 REAL_PC and not the pointer.
1037 * hppa-hpux-tdep.c: Include frame.h
1038
1039 2003-07-27 Andrew Cagney <cagney@redhat.com>
1040
1041 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1042 GDB_MULTI_ACH_PARTIAL.
1043
1044 2003-07-27 Andrew Cagney <cagney@redhat.com>
1045
1046 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1047 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1048 operator at start and not end of line.
1049 (decode_prologue): Ditto.
1050 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1051 frame_unwind_register_unsigned instead of
1052 frame_unwind_unsigned_register.
1053 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1054 read_register.
1055 (m32r_push_dummy_call): Use register_size instead of
1056 REGISTER_RAW_SIZE.
1057 (m32r_frame_sniffer): Replace m32r_frame_p.
1058 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1059 * m32r-rom.c (report_transfer_performance): Delete extern
1060 declaration.
1061 (m32r_load, m32r_upload_command): Use print_transfer_performance
1062 instead of report_transfer_performance.
1063 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1064 / add_show_from_set.
1065
1066 2003-07-26 Andrew Cagney <cagney@redhat.com>
1067
1068 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1069 store_return_value and extract_struct_value_address.
1070
1071 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
1072
1073 PR c++/1267
1074 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1075 NULL, default to the section containing PC.
1076
1077 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1078
1079 * NEWS: Mention "regs" deprecated for m68hc11 too.
1080
1081 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1082 (m68hc11_print_register): New function to print out one register.
1083 (m68hc11_print_registers_info): New function to print registers.
1084 (show_regs): Deprecate and use the above.
1085 (m68hc11_gdbarch_init): Install the print_registers_info.
1086
1087 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1088
1089 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1090 that we have a SIGTRAP before returning non-zero.
1091
1092 2003-07-23 Michal Ludvig <mludvig@suse.cz>
1093 Elena Zannoni <ezannoni@redhat.com>
1094
1095 * linespec.c (decode_line_2): Avoid crash if
1096 find_function_start_sal() returns empty record.
1097
1098 2003-07-23 Andreas Schwab <schwab@suse.de>
1099
1100 * ia64-tdep.c (ia64_print_insn): New function.
1101 (ia64_gdbarch_init): Set print_insn to it.
1102 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1103 deprecated_tm_print_insn_info.
1104
1105 2003-07-22 Michael Snyder <msnyder@redhat.com>
1106
1107 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1108 handle 8-bit returns (long long).
1109 (h8300h_extract_return_value): Ditto.
1110 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1111
1112 2003-07-22 Andrew Cagney <cagney@redhat.com>
1113
1114 * gdbarch.c Include "gdb_obstack.h".
1115 (struct gdbarch): Add an "obstack".
1116 (alloc_gdbarch_data): Allocate the gdbarch data using
1117 GDBARCH_OBSTACK_CALLOC.
1118 (free_gdbarch_data): Delete function.
1119 (gdbarch_obstack_zalloc): New function.
1120 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1121 Assert that the architecture is not initialized.
1122 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1123 vector from the obstack.
1124 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1125 architecture obstack.
1126 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1127 (set_gdbarch_data): Assert that the data is not initialized.
1128 (struct gdbarch_data): Delete member "free".
1129 (register_gdbarch_data): Do not initialize "free".
1130 * gdbarch.h, gdbarch.c: Re-generate.
1131
1132 2003-07-22 Andrew Cagney <cagney@redhat.com>
1133
1134 * configure.in (build_warnings): Add -Wformat-nonliteral.
1135 * configure: Re-generate.
1136
1137 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1138
1139 * dwarf2loc.c (locexpr_describe_location): Fix typos.
1140
1141 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1142
1143 * findvar.c (read_var_value): Remove case for thread local storage
1144 variables. It is now entirely handled by the dwarf2 location
1145 expression code.
1146 * printcmd.c (address_info): Ditto.
1147 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1148 enumeration value.
1149 (struct symbol): Remove objfile field, which was used by
1150 LOC_THREAD_LOCAL_STATIC only.
1151 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1152 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1153 usage of objfile pointer.
1154 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1155 thread local variables.
1156 Add include of objfiles.h.
1157 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1158 storage variables.
1159 * Makefile.in (dwarf2loc.o): Update dependencies.
1160
1161 2003-07-22 Andrew Cagney <cagney@redhat.com>
1162
1163 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1164 get_frame_base.
1165 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1166 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1167 (struct value): Add opaque declaration.
1168 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1169
1170 2003-07-21 Andrew Cagney <cagney@redhat.com>
1171
1172 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1173 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1174
1175 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1176
1177 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1178 regcache_cooked_read_unsigned instead of read_register.
1179 (m68hc11_saved_pc_after_call): Likewise.
1180 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1181 instead of write_register.
1182 (m68hc11_register_type): New function.
1183 (m68hc11_register_virtual_type): Remove.
1184 (m68hc11_store_return_value): Convert to use the regcache.
1185 (m68hc11_extract_struct_value_address): Likewise.
1186 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1187 m68hc11_register_type; undeprecate store_return_value and
1188 extract_struct_value_address.
1189
1190 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1191
1192 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1193 and translate to use regcache.
1194 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1195
1196 2003-07-18 Andrew Cagney <cagney@redhat.com>
1197
1198 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1199 * gdbarch.h, gdbarch.c: Re-generate.
1200 * i386-tdep.c (i386_gdbarch_init): Do not set
1201 DWARF2_BUILD_FRAME_INFO.
1202 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1203 unconditionally.
1204 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1205 DWARF2_BUILD_FRAME_INFO.
1206
1207 2003-07-18 Andrew Cagney <cagney@redhat.com>
1208
1209 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1210 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1211
1212 2003-07-18 Andrew Cagney <cagney@redhat.com>
1213
1214 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1215 frame_unwind_address_in_block, instead of frame_pc_unwind.
1216 (dwarf2_frame_cache): Ditto.
1217
1218 2003-07-18 Andrew Cagney <cagney@redhat.com>
1219
1220 * user-regs.h (struct gdbarch): Declare opaque.
1221 * ui-out.h (struct ui_file): Declare opaque.
1222 * dwarf2-frame.h (struct frame_info): Declare opaque.
1223
1224 2003-07-18 Kris Warkentin <kewarken@qnx.com>
1225
1226 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1227 #include "...".
1228 (procfs_meminfo): Change strerror to safe_strerror.
1229 (procfs_can_run): Remove K&R badness.
1230
1231 2003-07-17 Michael Snyder <msnyder@redhat.com>
1232
1233 * remote-sim.c: Comment typo fix.
1234
1235 2003-07-17 Andrew Cagney <cagney@redhat.com>
1236
1237 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1238 configure.
1239 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1240 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1241 GDB_MULTI_ARCH_PARTIAL.
1242
1243 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
1244
1245 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1246 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1247 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1248
1249 2003-07-16 Theodore A. Roth <troth@openavr.org>
1250
1251 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1252 found.
1253 (avr_frame_unwind_cache): Don't unwind FP for main.
1254 Update a comment.
1255 Save the computed prev_sp.
1256 (avr_saved_regs_unwinder): Remove function.
1257 (avr_frame_prev_register): Use PC unwind logic from
1258 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1259
1260 2003-07-16 Andrew Cagney <cagney@redhat.com>
1261
1262 * frame-base.h (frame_base_p_ftype): Delete definition.
1263 (frame_base_append_predicate): Delete declaration.
1264 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1265 (frame_unwind_append_predicate): Delete declaration.
1266 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1267 (append_predicate): Delete parameter "p".
1268 (frame_unwind_append_predicate): Delete function.
1269 (frame_unwind_append_sniffer): Update call to append_predicate.
1270 (frame_unwind_free): Delete function.
1271 (_initialize_frame_unwind): Pass NULL as "free" to
1272 register_gdbarch_data.
1273 (frame_unwind_init): Append the dummy_frame_sniffer.
1274 (frame_unwind_find_by_frame): Simplify.
1275 * frame-base.c (struct frame_base_table): Delete field "p".
1276 (append_predicate): Delete parameter "p".
1277 (frame_base_append_predicate): Delete function.
1278 (frame_base_append_sniffer): Update call to append_predicate.
1279 (frame_base_free): Delete function.
1280 (frame_base_find_by_frame): Simplify.
1281 (_initialize_frame_base): Pass NULL as "free" to
1282 register_gdbarch_data.
1283 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1284 (x86_64_sigtramp_frame_sniffer): Replace
1285 "x86_64_sigtramp_frame_p".
1286 (x86_64_init_abi): Set the frame unwind sniffers.
1287 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1288 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1289 (m68k_gdbarch_init): Set the frame unwind sniffers.
1290 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1291 "i386_sigtramp_frame_p".
1292 (i386_frame_sniffer): Replace "i386_frame_p".
1293 (i386_gdbarch_init): Set the frame unwind sniffers.
1294 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1295 (avr_gdbarch_init): Set the frame unwind sniffers.
1296 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1297 "alpha_sigtramp_frame_p"
1298 (alpha_heuristic_frame_sniffer): Replace
1299 "alpha_heuristic_frame_p".
1300 (alpha_gdbarch_init): Set the frame unwind sniffers.
1301 (alpha_dwarf2_init_abi): Ditto.
1302 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1303 "alpha_debug_frame_p".
1304 (alpha_mdebug_frame_base_sniffer): Replace
1305 "alpha_mdebug_frame_base_p".
1306 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1307 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1308 (d10v_gdbarch_init): Set the frame unwind sniffer.
1309 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1310 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1311 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1312 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1313 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1314 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1315
1316 2003-07-16 Michael Snyder <msnyder@redhat.com>
1317
1318 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1319 should go thru sh_dsp_register_sim_regno, else the dsp regs
1320 will not get the right values.
1321
1322 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1323
1324 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1325 deprecated_store_floating by call to store_typed_floating.
1326 (sh_sh4_register_convert_to_raw): Substitute call to
1327 deprecated_extract_floating by call to extract_typed_floating.
1328
1329 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1330
1331 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1332
1333 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1334
1335 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1336 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1337 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1338 as possible.
1339 (do_pseudo_register): Remove.
1340 (sh_push_dummy_code): New function.
1341 (sh64_store_struct_return): Rename from sh_store_struct_return.
1342 Only called for sh64 now.
1343 (sh_extract_struct_value_address): Regcache'ify.
1344 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1345 and accomodate new tasks.
1346 (sh64_push_return_address): Rename from sh_push_return_address.
1347 Only called for sh64 now.
1348 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1349 Regcache'ify.
1350 (sh3e_sh4_extract_return_value): Regcache'ify.
1351 (sh_default_store_return_value): Ditto.
1352 (sh3e_sh4_store_return_value): Ditto.
1353 (sh_default_register_byte): Remove.
1354 (sh_sh4_register_byte): Remove.
1355 (sh_default_register_raw_size): Remove.
1356 (sh_sh4_register_raw_size): Remove.
1357 (sh_register_virtual_size): Remove.
1358 (sh_sh3e_register_virtual_type): Remove.
1359 (sh_sh3e_register_type): New function.
1360 (sh_sh4_register_virtual_type): Remove.
1361 (sh_sh4_register_type): New function.
1362 (sh_default_register_virtual_type): Remove.
1363 (sh_default_register_type): New function.
1364 (do_fv_register_info): Add parameters to accomodate call from
1365 sh_print_registers_info.
1366 (do_dr_register_info): Ditto.
1367 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1368 Add parameters to accomodate call from sh_print_registers_info.
1369 (sh_do_fp_register): Ditto.
1370 (sh64_do_pseudo_register): Call do_dr_register_info,
1371 do_fv_register_info and sh_do_fp_register with default parameters.
1372 (sh_do_register): Add parameters to accomodate call from
1373 sh_print_registers_info.
1374 (sh_print_register): Ditto.
1375 (sh_print_registers_info): Rename from sh_do_registers_info.
1376 Add parameters to be used as gdbarch_print_registers_info
1377 implementation. Accomodate removed do_pseudo_register function
1378 pointer.
1379 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1380 function pointer. Call sh_print_register with default parameters.
1381 (sh64_do_registers_info): Call sh_print_registers_info instead of
1382 sh_do_registers_info.
1383 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1384 detection of deprecated vs. non-deprecated functionality.
1385 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1386 function pointer assignments by direct function calls.
1387
1388 2003-07-15 Andrew Cagney <cagney@redhat.com>
1389
1390 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1391 (frame_register_unwind, create_new_frame): Ditto.
1392 (legacy_get_prev_frame, get_frame_type): Ditto.
1393 (get_frame_base_address): Use frame_base_find_by_frame.
1394 (get_frame_locals_address): Use frame_base_find_by_frame.
1395 (get_frame_args_address): Use frame_base_find_by_frame.
1396 * frame-base.h (frame_base_sniffer_ftype): Declare.
1397 (frame_base_append_sniffer): Declare.
1398 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1399 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1400 (frame_base_append_sniffer): New function.
1401 (frame_base_append_predicate): Add a NULL sniffer.
1402 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1403 (struct frame_base_table): Add "sniffer".
1404 (frame_base_free): Free the "sniffer" table.
1405 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1406 (frame_unwind_append_sniffer): Declare.
1407 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1408 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1409 (struct frame_unwind_table): Add "sniffer", delete "middle".
1410 (append_predicate): Add "sniffer" parameter, append the sniffer.
1411 (frame_unwind_init): Update append_predicate call.
1412 (frame_unwind_append_sniffer): New function.
1413 (frame_unwind_append_predicate): Update append_predicate call.
1414 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1415
1416 2003-07-15 Andrew Cagney <cagney@redhat.com>
1417
1418 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1419 before code inhibiting repeated unwind attempts. Add to
1420 commentary on that test's problems.
1421 * blockframe.c (inside_main_func): Look for "main" in the minimal
1422 symbol table.
1423 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1424 identical.
1425
1426 2003-07-15 Andrew Cagney <cagney@redhat.com>
1427
1428 * complaints.c (struct explanation): Define.
1429 (struct complaints): Change type of "explanation" to "struct
1430 explanation".
1431 (symfile_explanations): Convert to a "struct explanation" table.
1432 (vcomplaint): Update.
1433
1434 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1435
1436 * x86-64-linux-nat.c (regmap): Removed.
1437 (supply_gregset, fill_gregset): Call
1438 x86_64_linux_(fill,supply)_gregset functions.
1439 * x86-64-linux-tdep.c (USER_*): New defines.
1440 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1441 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1442 New functions.
1443 (fetch_core_registers): Ditto.
1444 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1445 * x86-64-linux-tdep.h: New file.
1446 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1447 and core-regset.o.
1448 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1449
1450 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1451
1452 * x86-64-tdep.c (x86_64_store_return_value): Use
1453 regcache_cooked_write_part instead of regcache_cooked_write.
1454
1455 * configure.host: Add x86_64-*-freebsd*.
1456 * configure.tgt: Add x86_64-*-freebsd*.
1457 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1458 * amd64fbsd-nat.c: New file.
1459 * amd64fbsd-tdep.c: New file.
1460 * config/i386/nm-fbsd64.h: New file.
1461 * config/i386/fbsd64.mh: New file.
1462 * config/i386/fbsd64.mt: New file.
1463
1464 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1465
1466 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1467 `sc_regs_offset' and `sc_fpregs_offset'.
1468 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1469 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1470 (alpha_sigtramp_register_address): Rewrite to use new members of
1471 `struct gdbarch_tdep'.
1472 (alpha_gdbarch_init): Initialize new members of struct
1473 gdbarch_tdep'.
1474 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1475 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1476 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1477 (alphafbsd_pc_in_sigtramp): Implement.
1478 (alphafbsd_sigtramp_offset): New function.
1479 (alphafbsd_sigcontext_addr): New function.
1480 (alphafbsd_init_abi): Initialize signal trampoline related members
1481 of `struct gdbarch_tdep'.
1482 (_initialize_alphafbsd_tdep): Add prototype.
1483
1484 2003-07-11 Theodore A. Roth <troth@openavr.org>
1485
1486 * Makefile.in (install-only): Quote sed expression when generating
1487 transformed_name.
1488
1489 2003-07-11 Richard Henderson <rth@redhat.com>
1490
1491 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1492 * dwarf2-frame.c: Include complaints.h.
1493 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1494 variable initialization; return NULL on error.
1495 (decode_frame_entry): New.
1496
1497 2003-07-11 Andrew Cagney <cagney@redhat.com>
1498
1499 * frame.h (frame_address_in_block): Delete declaration.
1500 * blockframe.c (frame_address_in_block): Delete function.
1501 (get_frame_block): Use get_frame_address_in_block.
1502 (block_innermost_frame): Ditto.
1503 * stack.c (print_frame, backtrace_command_1): Ditto.
1504
1505 * frame.h (get_frame_address_in_block): Declare.
1506 (frame_unwind_address_in_block): Declare.
1507 * frame.c (frame_unwind_address_in_block): New function.
1508 (get_frame_address_in_block): New function.
1509
1510 2003-07-10 Andrew Cagney <cagney@redhat.com>
1511
1512 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1513 pre-default. Note: re-generate has no effect.
1514
1515 2003-07-10 Andrew Cagney <cagney@redhat.com>
1516
1517 * gdbarch.sh: When a variable, but not a function, compare against
1518 0. Fix problem in previous patch.
1519 * gdbarch.c: Re-generate.
1520
1521 2003-07-10 Andrew Cagney <cagney@redhat.com>
1522
1523 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1524 functions against NULL, not 0.
1525 * gdbarch.c: Re-generate.
1526
1527 2003-07-10 Fred Fish <fnf@ninemoons.com>
1528
1529 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1530 null string instead of a null pointer.
1531 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1532
1533 2003-07-09 Michael Snyder <msnyder@redhat.com>
1534
1535 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1536
1537 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1538
1539 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1540 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1541 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1542 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1543 * x86-64-tdep.c: ... from here.
1544
1545 2003-07-09 Andreas Schwab <schwab@suse.de>
1546
1547 * m68k-tdep.h (enum struct_return): Define.
1548 (struct gdbarch_tdep): Add struct_return.
1549 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1550 bytes are padded to the right, not to the left. Pass struct value
1551 address in register %a1, not on stack.
1552 (m68k_use_struct_convention): New function.
1553 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1554 struct_return in tdep to pcc_struct_return.
1555 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1556 reg_struct_return.
1557
1558 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1559
1560 * somread.c (som_symfile_offsets): Fix compilation error.
1561
1562 2003-07-09 Andrew Cagney <cagney@redhat.com>
1563
1564 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1565 Add comments about the checks.
1566
1567 2003-07-08 Andrew Cagney <cagney@redhat.com>
1568
1569 * Makefile.in: Make dependency section headers consistent.
1570 (config_h): Move to $BUILD headers section.
1571 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1572 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1573 (ada-exp.tab.c): Move to YACC/LEX section.
1574 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1575 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1576
1577 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1578
1579 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1580 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1581 of strerror with safe_strerror, use ISO C function definitions,
1582 and replace instances of sprintf with snprintf.
1583
1584 2003-07-07 Andrew Cagney <cagney@redhat.com>
1585
1586 * frame.c (get_prev_frame): Enable check for identical frames.
1587 Update comments. Update error messages.
1588
1589 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1590
1591 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1592
1593 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1594
1595 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1596 sort_symtab_syms, no longer necessary.
1597
1598 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1599
1600 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1601
1602 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1603
1604 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1605 (mips_register_byte): Likewise.
1606
1607 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1608
1609 * Makefile.in (sparc_tdep_h): New.
1610 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1611 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1612 * sparc-linux-nat.c: Include "sparc-tdep.h".
1613 * sparc-nat.c: Likewise.
1614 * sparc-tdep.c: Likewise.
1615 * sparc64nbsd-nat.c: Likewise.
1616 * sparcnbsd-nat.c: Likewise.
1617 * sparcnbsd-tdep.c: Likewise.
1618 * sparc-tdep.h: New file.
1619 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1620 and sparc_npc_regnum.
1621
1622 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1623
1624 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1625 (mips_linux_cannot_store_register): List supported instead of
1626 unsupported registers.
1627
1628 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1629
1630 * disasm.c (dump_insns): Separate instructions from addresses.
1631
1632 2003-07-07 Andreas Schwab <schwab@suse.de>
1633
1634 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1635 dependencies.
1636 * m68k-tdep.c (NUM_FREGS): Delete.
1637 (SIG_PC_FP_OFFSET): Delete.
1638 (TARGET_M68K): Delete.
1639 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1640 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1641 P_MOVEL_SP, P_MOVEML_SP): Define.
1642 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1643 P_TRAP): Delete.
1644 (m68k_register_raw_size): Delete.
1645 (m68k_register_virtual_size): Delete.
1646 (m68k_register_type): Renamed from m68k_register_virtual_type and
1647 add gdbarch argument.
1648 (m68k_store_struct_return): Delete.
1649 (m68k_deprecated_extract_return_value): Delete.
1650 (m68k_deprecated_extract_struct_value_address): Delete.
1651 (m68k_frame_chain): Delete.
1652 (m68k_frame_saved_pc): Delete.
1653 (m68k_fix_call_dummy): Delete.
1654 (m68k_push_dummy_frame): Delete.
1655 (m68k_pop_frame): Delete.
1656 (m68k_extract_return_value): New function.
1657 (m68k_store_return_value): Rewrite using regcache.
1658 (m68k_extract_struct_value_address): Rewrite using regcache.
1659 (m68k_push_dummy_call): New function.
1660 (struct m68k_frame_cache): Define.
1661 (m68k_alloc_frame_cache): New function.
1662 (m68k_analyze_frame_setup): New function.
1663 (m68k_analyze_register_saves): New function.
1664 (m68k_analyze_prologue): New function.
1665 (m68k_skip_prologue): Rewrite using above functions.
1666 (m68k_unwind_pc): New function.
1667 (m68k_frame_cache): New function.
1668 (m68k_frame_this_id): New function.
1669 (m68k_frame_prev_register): New function.
1670 (m68k_frame_unwind): New variable.
1671 (m68k_frame_p): New function.
1672 (m68k_sigtramp_frame_cache): New function.
1673 (m68k_sigtramp_frame_this_id): New function.
1674 (m68k_sigtramp_frame_prev_register): New function.
1675 (m68k_sigtramp_frame_unwind): New variable.
1676 (m68k_sigtramp_frame_p): New function.
1677 (m68k_frame_base_address): New function.
1678 (m68k_frame_base): New function.
1679 (m68k_unwind_dummy_id): New function.
1680 (fill_gregset): Use regcache_collect.
1681 (fill_fpregset): Likewise.
1682 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1683 defined.
1684 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1685 deprecated_init_frame_pc, deprecated_store_struct_return,
1686 deprecated_extract_return_value, deprecated_store_return_value,
1687 deprecated_frame_chain, deprecated_frame_saved_pc,
1688 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1689 deprecated_register_virtual_size,
1690 deprecated_max_register_raw_size,
1691 deprecated_max_register_virtual_size,
1692 deprecated_register_virtual_type, deprecated_register_size,
1693 deprecated_register_byte, deprecated_register_bytes,
1694 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1695 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1696 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1697 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1698 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1699 deprecated_push_dummy_frame, deprecated_pop_frame,
1700 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1701 only if SYSCALL_TRAP is defined. Set extract_return_value,
1702 store_return_value, extract_struct_value_address, register_type,
1703 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1704 predicates.
1705 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1706 M68K_MAX_REGISTER_SIZE): Define.
1707 (struct m68k_sigtramp_info): Define.
1708 (struct gdbarch_tdep): Add get_sigtramp_info.
1709 * m68klinux-nat.c (fetch_register): Use register_size instead of
1710 REGISTER_RAW_SIZE. Don't put assignment in if.
1711 (store_register): Likewise.
1712 (fetch_inferior_registers): Likewise.
1713 (store_inferior_registers): Likewise.
1714 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1715 (m68k_linux_frame_saved_pc): Delete.
1716 (m68k_linux_sigcontext_reg_offset,
1717 m68k_linux_ucontext_reg_offset): Define.
1718 (m68k_linux_get_sigtramp_info): New function.
1719 (m68k_linux_extract_return_value): Rewrite using regcache.
1720 (m68k_linux_store_return_value): Likewise.
1721 (m68k_linux_extract_struct_value_address): Likewise.
1722 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1723 Don't set deprecated_frame_saved_pc,
1724 deprecated_extract_return_value, deprecated_store_return_value,
1725 deprecated_extract_struct_value_address. Set
1726 extract_return_value, store_return_value,
1727 extract_struct_value_address.
1728
1729 2003-07-07 Andrew Cagney <cagney@redhat.com>
1730
1731 * expprint.c: Include "user-regs.h" instead of "frame.h".
1732 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1733 frame_map_regnum_to_name.
1734 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1735 (frame_map_name_to_regnum): Simplify, call
1736 user_reg_map_name_to_regnum.
1737 (frame_map_regnum_to_name): Simplify, call
1738 user_reg_map_regnum_to_name.
1739 (frame_register_unwind): Update.
1740 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1741 (_initialize_frame_reg): Call user_reg_add_builtin.
1742 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1743 (value_of_register): Use value_of_user_reg.
1744 * eval.c (evaluate_subexp_standard): Update.
1745 * parse.c (write_dollar_variable): Update.
1746 * d10v-tdep.c (d10v_print_registers_info): Update.
1747 * infcmd.c (registers_info): Update.
1748 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1749 (builtin_regs_h): Delete macro.
1750 (user_regs_h): Define.
1751 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1752 (builtin-regs.o): Delete target.
1753 (user-regs.o): Specify dependencies.
1754 (expprint.o): Update dependencies.
1755 (findvar.o): Update dependencies.
1756 (frame.o): Update dependencies.
1757 (std-regs.o): Update dependencies.
1758
1759 2003-07-06 Christopher Faylor <cgf@redhat.com>
1760
1761 * win32-nat.c (solib_symbols_add): Use one variable for all section
1762 address stuff. Pass variable rather than address of variable to
1763 safe_symbol_file_add.
1764
1765 2003-07-06 Andreas Schwab <schwab@suse.de>
1766
1767 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1768
1769 2003-07-04 Joel Brobecker <brobecker@gnat.com>
1770
1771 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1772
1773 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1774
1775 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1776
1777 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1778
1779 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1780 * config/i386/nto.mh: New file.
1781 * config/i386/nm-nto.h: New file.
1782 * configure.host: Add i[3456]86-*-nto*.
1783
1784 2003-07-03 Joel Brobecker <brobecker@gnat.com>
1785
1786 * remote-vx.c (vx_add_symbols): Fix compilation error.
1787
1788 2003-07-03 Andrew Cagney <cagney@redhat.com>
1789
1790 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1791 * gdbarch.h, gdbarch.c: Re-generate.
1792 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1793 (legacy_register_name): Declare.
1794 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1795 (REGISTER_NAME): Define.
1796 * sparc-tdep.c (legacy_register_name): New function.
1797 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1798 (REGISTER_NAME): Define.
1799 (hppa64_register_name): Declare.
1800 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1801 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1802 (hppa64_register_name): New function.
1803 (hppa_register_name): New function.
1804 * arch-utils.c (legacy_register_name): Delete.
1805 * arch-utils.h (legacy_register_name): Delete.
1806
1807 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
1808
1809 * cli/cli-interp.c (cli_interpreter_resume): Update the
1810 cli_uiout's stream to gdb_stdout.
1811
1812 2003-07-03 Andrew Cagney <cagney@redhat.com>
1813
1814 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1815 predicate.
1816 * gdbarch.h, gdbarch.c: Re-generate.
1817 * regcache.c (init_regcache_descr): Use legacy code when either
1818 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1819
1820 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1821
1822 * NEWS: Move "set logging" entry into GDB 6.0 section.
1823
1824 2003-07-02 Jim Blandy <jimb@redhat.com>
1825
1826 * s390-tdep.c (struct frame_extra_info): new member:
1827 'stack_bought_valid'.
1828 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1829 initialize fextra_info->stack_bought.
1830 (s390_frameless_function_invocation): Don't trust the value of
1831 fextra_info_ptr->stack_bought unless
1832 fextra_info->stack_bought_valid is set.
1833
1834 New S390 prologue analyzer.
1835 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1836 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1837 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1838 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1839 compute_x_addr, s390_on_stack, s390_store,
1840 s390_get_signal_frame_info): New functions.
1841 (S390_NUM_SPILL_SLOTS): New macro.
1842 (s390_get_frame_info): Rewritten.
1843 (is_arg_reg): Deleted.
1844
1845 Break out the decoding of S/390 instructions into separate
1846 functions, to make it more legible, and easier to check
1847 against the spec.
1848 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1849 is_rx, is_rxe): New functions.
1850 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1851 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1852 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1853 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1854 enums for opcode values. (Is this an improvement?)
1855
1856 2003-07-02 Andrew Cagney <cagney@redhat.com>
1857
1858 * i386-tdep.c: Revert change committed as part of trad-frame code
1859 below.
1860
1861 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1862
1863 * breakpoint.c (insert_catchpoint): Make static.
1864
1865 2003-07-02 Andreas Schwab <schwab@suse.de>
1866
1867 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1868 former ia64_push_arguments and ia64_push_return_address, and use
1869 regcache functions instead of read/write_register.
1870 (ia64_gdbarch_init): Set push_dummy_call instead of
1871 deprecated_push_arguments and deprecated_push_return_address.
1872
1873 2003-07-01 Andreas Jaeger <aj@suse.de>
1874
1875 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1876 before the call.
1877 Set %rax only to number of SSE registers used.
1878
1879 2003-07-01 Andrew Cagney <cagney@redhat.com>
1880
1881 * trad-frame.h: Update comments, a -1 .addr is reserved.
1882 (trad_frame_value_p, trad_frame_addr_p): Declare.
1883 (trad_frame_reg_p): Declare.
1884 (trad_frame_set_value): Rename trad_frame_register_value.
1885 (trad_frame_set_unknown): Declare.
1886 * trad-frame.c (trad_frame_realreg_p): New function.
1887 (trad_frame_addr_p, trad_frame_value_p): New function.
1888 (trad_frame_set_unknown): New function.
1889 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1890 (trad_frame_prev_register): Use trad_frame_realreg_p,
1891 trad_frame_addr_p and trad_frame_value_p.
1892 (trad_frame_set_value): Rename trad_frame_register_value.
1893 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1894 and trad_frame_set_value.
1895
1896 2003-06-30 Jim Blandy <jimb@redhat.com>
1897
1898 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1899 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1900 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1901 for 16 registers, and then 32 more bytes.
1902 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1903 New macros.
1904 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1905 Move up in the file, since it's now used by is_simple_arg.
1906 (is_simple_arg): Don't assume registers are four bytes long.
1907 Exclude all double arguments. Extended floats are not simple
1908 args.
1909 (is_power_of_two): New function.
1910 (pass_by_copy_ref): Call is_power_of_two, and check that the
1911 length fits in a register, rather than listing all the acceptable
1912 sizes. Extended floats are not passed by reference.
1913 (s390_push_arguments): Don't assume registers are four bytes long.
1914 Reserve an argument register to point to the buffer for structures
1915 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1916 S390_STACK_FRAME_OVERHEAD.
1917
1918 2003-06-30 Andreas Schwab <schwab@suse.de>
1919
1920 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1921 format error message.
1922
1923 2003-06-30 Joel Brobecker <brobecker@gnat.com>
1924
1925 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1926
1927 2003-06-30 David Carlton <carlton@kealia.com>
1928
1929 Band-aid for PR c++/1245.
1930 * Makefile.in (cp-support.o): Depend on complaints_h.
1931 * cp-support.c: Include complaints.h. Add declaration for
1932 find_last_component.
1933 (cp_find_first_component): Separate code into
1934 cp_find_first_component_aux.
1935 (cp_find_first_component_aux): Call demangled_name_complaint.
1936 (demangled_name_complaint): New.
1937
1938 2003-06-30 Andrew Cagney <cagney@redhat.com>
1939
1940 * remote.c (remote_write_bytes): Explicitly compute and then use
1941 the payload size. Update comments to reflect. Fixes problem of
1942 GDB not sending small packets as found by Fred Fish.
1943
1944 2003-06-30 Andrew Cagney <cagney@redhat.com>
1945
1946 * remote.c (remote_async_wait): Fix -Wformat problem.
1947
1948 2003-06-29 Andrew Cagney <cagney@redhat.com>
1949
1950 * remote.c (remote_wait): Call error, and not warning, when the
1951 packet is corrupt.
1952 (remote_async_wait): Ditto.
1953
1954 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1955
1956 * sparc-tdep.c (sparc_y_regnum): Make external again.
1957
1958 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1959
1960 * cli/cli-logging.c (pop_output_files): Add void to function
1961 definition.
1962
1963 2003-06-29 Andrew Cagney <cagney@redhat.com>
1964
1965 * frame.c (frame_register_unwind): Use unsigned char when dumping
1966 the buffer contents.
1967
1968 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1969
1970 * cli/cli-logging.c: New file.
1971 * cli-out.c (struct ui_out_data): Add original_stream.
1972 (cli_redirect): New function.
1973 (cli_ui_out_impl): Add cli_redirect.
1974 (cli_out_new): Initialize original_stream.
1975 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1976 (uo_redirect, ui_out_redirect): New.
1977 * ui-out.h (struct ui_out_impl): Add redirect member.
1978 (redirect_ftype): New.
1979 (ui_out_redirect): Add prototype.
1980 * Makefile.in: Add rules for cli-logging.c.
1981 * NEWS: Mention "set logging".
1982
1983 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1984
1985 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1986
1987 2003-06-27 Andrew Cagney <cagney@redhat.com>
1988
1989 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1990 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1991 * avr-tdep.c (avr_call_dummy_address): Delete function.
1992 (avr_gdbarch_init): Do not set call_dummy_address.
1993
1994 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1995
1996 * symfile.c (syms_from_objfile): Move variables to inner block.
1997 Move the checks for the non-mainline case a bit earlier to avoid
1998 doing some useless computations.
1999
2000 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2001
2002 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2003
2004 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
2005
2006 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2007 sections.
2008
2009 2003-06-26 Michael Chastain <mec@shout.net>
2010
2011 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2012 gdb/testsuite/gdb.c++/pr-1210.exp.
2013
2014 2003-06-26 Andrew Cagney <cagney@redhat.com>
2015
2016 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2017 altivec_expression.h and altivec_registers.h.
2018
2019 2003-06-26 Andrew Cagney <cagney@redhat.com>
2020
2021 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2022 info->mach when MIPS16. Patch suggested by Fred Fish.
2023
2024 2003-06-26 Andrew Cagney <cagney@redhat.com>
2025
2026 * utils.c (internal_vproblem): Print the problem to a reason
2027 buffer and then pass to query. Make the msg variable more local.
2028
2029 2003-06-26 Andrew Cagney <cagney@redhat.com>
2030
2031 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2032 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2033 * gdbarch.h, gdbarch.c: Re-generate.
2034 * frame-base.c (default_frame_args_address): Update. Use
2035 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2036 not available.
2037 (default_frame_locals_address): Ditto for
2038 DEPRECATED_FRAME_LOCALS_ADDRESS.
2039 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2040 (vax_frame_num_args): Update.
2041 (vax_gdbarch_init): Update.
2042 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2043 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2044 * mcore-tdep.c (mcore_gdbarch_init): Update.
2045 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2046 * ia64-tdep.c (ia64_gdbarch_init): Update.
2047 * symtab.h (address_class): Update comments.
2048 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2049 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2050 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2051 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2052 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2053 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2054 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2055 * alpha-mdebug-tdep.c: Update.
2056 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2057
2058 2003-06-26 Andreas Jaeger <aj@suse.de>
2059
2060 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2061 of SSE registers so that varargs functions work. Rework handling
2062 of passing arguments on the stack.
2063 (x86_64_store_return_value): Return double and float values in SSE
2064 register.
2065
2066 2003-06-24 Michael Chastain <mec@shout.net>
2067
2068 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2069 the "constructor breakpoints ignored" bug.
2070
2071 2003-06-25 David Carlton <carlton@kealia.com>
2072
2073 * MAINTAINERS: Update e-mail address.
2074
2075 2003-06-24 Jim Blandy <jimb@redhat.com>
2076
2077 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2078
2079 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2080 function.
2081 (ppc_linux_init_abi): Register it as the
2082 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2083
2084 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2085 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2086 method.
2087
2088 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2089 (ppc64_standard_linkage_target): Use it.
2090
2091 2003-06-23 Andrew Cagney <cagney@redhat.com>
2092
2093 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2094 for 0 "int0" and 4 "int32" sized registers.
2095 * gdbtypes.c (builtin_type_int0): Define.
2096 (build_gdbtypes): Initialize builtin_type_int0.
2097 * gdbtypes.h (builtin_type_int0): Declare.
2098
2099 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2100
2101 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2102 as characters are unsigned.
2103
2104 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2105
2106 PR gdb/1179
2107 * dwarfread.c (struct_type): Skip static fields without crashing.
2108
2109 2003-06-22 Andrew Cagney <cagney@redhat.com>
2110
2111 GDB 6.0 branch created.
2112 * README: Update.
2113 * PROBLEMS: Update. Empty.
2114 * NEWS: Update.
2115
2116 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2117
2118 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2119 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2120
2121 2003-06-22 Andrew Cagney <cagney@redhat.com>
2122
2123 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2124 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2125 Velikov.
2126
2127 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2128
2129 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2130 compilers.
2131
2132 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2133
2134 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2135 argument of val_print.
2136 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2137 to the address argument of baseclass_offset or target_read_memory.
2138 Do add it to the argument of cp_print_value_fields.
2139
2140 2003-06-21 Andrew Cagney <cagney@redhat.com>
2141
2142 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2143 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2144 instead of 0..NUM_REGS.
2145 (mips_register_reggroup_p): New function.
2146 (mips_pseudo_register_write): New function.
2147 (mips_pseudo_register_read): New function.
2148 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2149 based on the register's type.
2150 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2151 cooked.
2152 (mips_get_saved_register): Simplify. Assert that REGNO is a
2153 pseudo / cooked.
2154 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2155 (mips_register_type): Replace mips_register_virtual_type. Map
2156 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2157 when available.
2158 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2159 that the register is cooked / virtual.
2160 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2161 Only get the extra info when needed.
2162 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2163 (mips32_heuristic_proc_desc): Fetch the cooked register.
2164 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2165 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2166 (mips_print_register): Use gdbarch_register_type, instead of
2167 REGISTER_VIRTUAL_TYPE.
2168 (print_gp_register_row): Use gdbarch_register_type, instead of
2169 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2170 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2171 Print the pseudo / cooked registers.
2172 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2173 Print the pseudo / cooked registers.
2174 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2175 REG_NUM is pseudo / cooked.
2176 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2177 (mips_n32n64_xfer_return_value): Ditto.
2178 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2179 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2180 (mips_register_sim_regno): New function.
2181 (mips_gdbarch_init): Set deprecated_register_byte,
2182 register_group_p, pseudo_register_write, pseudo_register_read,
2183 register_sim_regno, and num_pseudo_regs. Set register_type,
2184 instead of register_virtual_type.
2185 * Makefile.in (mips-tdep.o): Update dependencies.
2186 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2187 REGISTER_VIRTUAL_TYPE.
2188 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2189 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2190 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2191 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2192 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2193
2194 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2195
2196 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2197 * cli/cli-cmds.c: Include "gdb_vfork.h".
2198 (shell_escape): Use vfork.
2199
2200 2003-06-21 Andrew Cagney <cagney@redhat.com>
2201
2202 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2203 32 bit floating-point register saves.
2204
2205 * frame.h (deprecated_unwind_get_saved_register): Delete.
2206 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2207 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2208 and deprecated_get_next_frame_hack instead of
2209 deprecated_unwind_get_saved_register.
2210
2211 * mips-tdep.c (mips_dump_tdep): Do not print
2212 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2213
2214 * frame.c (get_frame_register): New function.
2215 (frame_unwind_register_signed): New function.
2216 (get_frame_register_signed): New function.
2217 (frame_unwind_register_unsigned): New function.
2218 (get_frame_register_unsigned): New function.
2219 * frame.h: Add comments on naming schema.
2220 (get_frame_register, frame_unwind_register_signed): Declare.
2221 (get_frame_register_signed, get_frame_register_signed): Declare.
2222 (frame_unwind_register_unsigned): Declare.
2223 (get_frame_register_unsigned): Declare.
2224
2225 2003-06-20 Theodore A. Roth <troth@openavr.org>
2226
2227 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2228
2229 2003-06-20 Theodore A. Roth <troth@openavr.org>
2230
2231 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2232 (avr_read_sp): Ditto.
2233
2234 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
2235
2236 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2237 * config/arm/nm-linux.h: Likewise.
2238 * config/arm/tm-linux.h: Likewise.
2239 * config/ia64/nm-linux.h: Likewise.
2240 * config/ia64/tm-ia64.h: Likewise.
2241 * config/s390/tm-linux.h: Likewise.
2242 * config/s390/tm-s390.h: Likewise.
2243 * s390-nat.c: Likewise.
2244 * s390-tdep.c: Likewise.
2245
2246 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2247 * config/ia64/linux.mt: Likewise.
2248 * config/m68k/linux.mh: Likewise.
2249 * config/mips/linux.mt: Likewise.
2250 * config/powerpc/linux.mh: Likewise.
2251 * config/sh/linux.mt: Likewise.
2252
2253 2003-06-19 Kris Warkentin <kewarken@qnx.com>
2254
2255 * solib.c (solib_open): Change tests for whether to search
2256 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2257 comments.
2258
2259 2003-06-19 Theodore A. Roth <troth@openavr.org>
2260
2261 * avr-tdep.c (avr_frame_address): Delete function.
2262 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2263 set_gdbarch_frame_args_address.
2264
2265 2003-06-19 Andrew Cagney <cagney@redhat.com>
2266
2267 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2268 (REGISTER_CONVERT_FROM_TYPE): Delete.
2269 (mips_register_convert_to_type): Delete declaration.
2270 (mips_register_convert_from_type): Delete declaration.
2271 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2272 kernel/.
2273
2274 2003-06-19 Michael Snyder <msnyder@redhat.com>
2275
2276 * linux-nat.h: New file.
2277 * linux-nat.c: Include linux-nat.h.
2278 * lin-lwp.c: Include linux-nat.h.
2279 Move struct lwp_info def to linux-nat.h.
2280 * linux-proc.c: Include linux-nat.h.
2281 (linux_make_note_section): Iterate over lwps instead of threads.
2282 (linux_do_thread_registers): Use lwp instead of merged pid.
2283 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2284 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2285 Add dependency on linux_nat_h.
2286
2287 2003-06-19 Theodore A. Roth <troth@openavr.org>
2288
2289 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2290
2291 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2292
2293 * varobj.c (get_type, get_target_type): Use check_typedef.
2294
2295 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2296
2297 * breakpoint.c (insert_catchpoint): Call internal_error.
2298
2299 2003-06-19 Theodore A. Roth <troth@openavr.org>
2300
2301 * avr-tdep.c (avr_push_dummy_code): Delete function.
2302 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2303
2304 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2305
2306 * arch-utils.c (default_prepare_to_proceed): Remove.
2307 (generic_prepare_to_proceed): Remove.
2308 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2309 (generic_prepare_to_proceed): Remove prototype.
2310 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2311 * gdbarch.c: Regenerate.
2312 * gdbarch.h: Regenerate.
2313 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2314 * hppah-nat.c (hppa_switched_threads): Remove.
2315 * infrun.c (prepare_to_proceed): New static function, copied from
2316 generic_prepare_to_proceed. Remove select_it argument.
2317 (proceed): Call prepare_to_proceed.
2318 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2319 variables.
2320 (ptrace_wait): Don't set the removed variables.
2321 (hppa_switched_threads): Remove.
2322 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2323 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2324 (lin_lwp_prepare_to_proceed): Remove prototype.
2325 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2326 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2327
2328 2003-06-18 Theodore A. Roth <troth@openavr.org>
2329
2330 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2331 trad-frame.h.
2332 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2333 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2334 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2335 (AVR_PROLOGUE_*): Enumerate prologue types.
2336 (struct frame_extra_info): Remove.
2337 (struct avr_unwind_cache): Define.
2338 (avr_write_sp): Delete function.
2339 (avr_read_fp): Ditto.
2340 (avr_init_extra_frame_info): Ditto.
2341 (avr_pop_frame): Ditto.
2342 (avr_frame_saved_pc): Ditto.
2343 (avr_saved_pc_after_call): Ditto.
2344 (avr_push_return_address): Ditto.
2345 (avr_frame_chain): Ditto.
2346 (avr_store_struct_return): Ditto.
2347 (avr_push_arguments): Ditto.
2348 (avr_scan_prologue): Update comments. Changed to set up the info for
2349 cache unwinding. Now returns end of prologue PC.
2350 (avr_skip_prologue): Better handling of functions lacking a prologue
2351 by using avr_scan_prologue.
2352 (avr_scan_arg_moves): New function.
2353 (avr_saved_regs_unwinder): Ditto.
2354 (avr_frame_unwind_cache): Ditto.
2355 (avr_unwind_pc): Ditto.
2356 (avr_frame_this_id): Ditto.
2357 (avr_frame_prev_register): Ditto.
2358 (avr_frame_p): Ditto.
2359 (avr_frame_base_address ): Ditto.
2360 (avr_unwind_dummy_id): Ditto.
2361 (avr_push_dummy_code): Ditto.
2362 (push_stack_item): Ditto.
2363 (pop_stack_item): Ditto.
2364 (avr_push_dummy_call): Ditto.
2365 (struct stack_item): Define.
2366 (avr_frame_unwind): Declare structure.
2367 (avr_frame_base): Ditto.
2368 (avr_gdbarch_init): Remove calls to
2369 set_gdbarch_deprecated_init_frame_pc,
2370 set_gdbarch_deprecated_target_read_fp,
2371 set_gdbarch_deprecated_dummy_write_sp,
2372 set_gdbarch_deprecated_fp_regnum,
2373 set_gdbarch_deprecated_push_arguments,
2374 set_gdbarch_deprecated_push_return_address,
2375 set_gdbarch_deprecated_pop_frame,
2376 set_gdbarch_deprecated_store_struct_return,
2377 set_gdbarch_deprecated_frame_init_saved_regs,
2378 set_gdbarch_deprecated_init_extra_frame_info,
2379 set_gdbarch_deprecated_frame_chain,
2380 set_gdbarch_deprecated_frame_saved_pc,
2381 set_gdbarch_deprecated_saved_pc_after_call.
2382 Add calls to set_gdbarch_push_dummy_call,
2383 set_gdbarch_push_dummy_code,
2384 frame_unwind_append_predicate,
2385 frame_base_set_default,
2386 set_gdbarch_unwind_dummy_id,
2387 set_gdbarch_unwind_pc.
2388 Wrap a long line.
2389
2390 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2391
2392 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2393 registers for H8/300S.
2394 (h8300_print_registers_info): Ditto.
2395 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2396
2397 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2398
2399 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2400 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2401 (lin_lwp_wait): Likewise. Update comments.
2402 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2403 (pull_pid_from_list, linux_record_stopped_pid): New.
2404
2405 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2406
2407 * ada-lang.c (scan_discrim_bound): Name first argument.
2408 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2409 declared by ALL_BLOCK_SYMBOLS.
2410
2411 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2412
2413 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2414 ("regcache.h"): Include it.
2415 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2416
2417 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2418
2419 * NEWS: Mention gdbserver detach change and "disconnect" command.
2420 * infcmd.c (disconnect_command): New function.
2421 (_initialize_infcmd): Add ``disconnect'' command.
2422 * remote.c (remote_async_detach): Delete.
2423 (remote_detach): Merge remote_async_detach.
2424 (remote_disconnect): New.
2425 (init_remote_ops): Set to_disconnect.
2426 (init_remote_cisco_ops): Likewise.
2427 (init_remote_async_ops): Likewise. Use remote_detach.
2428 * target.c (cleanup_target): Default to_disconnect.
2429 (update_current_target): Inherit to_disconnect.
2430 (target_disconnect, debug_to_disconnect): New functions.
2431 (setup_target_debug): Set to_disconnect.
2432 * target.h (struct target_ops): Add to_disconnect.
2433 (target_disconnect): Add prototype.
2434
2435 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2436
2437 * breakpoint.c (insert_catchpoint): New function.
2438 (insert_breakpoints): Use catch_exceptions to call
2439 insert_catchpoint. Disable catchpoints if they fail to insert.
2440
2441 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2442
2443 * symfile.c (reread_symbols): Clear sym_private.
2444
2445 2003-06-17 Andrew Cagney <cagney@redhat.com>
2446
2447 * trad-frame.h (struct frame_info): Add opaque declaration.
2448 * remote-fileio.h (struct cmd_list_element): Add opaque
2449 declaration.
2450 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2451 comments.
2452
2453 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2454
2455 * remote.c (remote_prepare_to_store): Replace call to
2456 deprecated_read_register_bytes with multiple regcache_raw_read
2457 calls.
2458
2459 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2460
2461 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2462 (nto_find_and_open_solib): Likewise.
2463 (nto_init_solib_absolute_prefix): Likewise.
2464 (_initialize_nto_tdep): Fix indentation.
2465
2466 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2467
2468 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2469
2470 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2471
2472 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2473
2474 2003-06-17 Jim Blandy <jimb@redhat.com>
2475
2476 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2477
2478 2003-06-16 Theodore A. Roth <troth@openavr.org>
2479
2480 * avr-tdep.c (avr_extract_return_value): New function.
2481 (avr_gdbarch_init): Set extract_return_value method.
2482
2483 2003-06-16 Andrew Cagney <cagney@redhat.com>
2484
2485 * frame.h (deprecated_get_next_frame_hack): Declare.
2486 * frame.c (legacy_saved_regs_prev_register): Only require
2487 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2488 there are always saved regs.
2489 (deprecated_generic_get_saved_register): Do not require
2490 DEPRECATED_FRAME_INIT_SAVED_REGS.
2491 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2492 use frame ID unwind instead.
2493 (deprecated_get_next_frame_hack): New function.
2494
2495 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2496
2497 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2498 (h8300_push_dummy_call): ...this function. Some minor optimization.
2499 (h8300_push_return_address): Remove.
2500 (h8300_gdbarch_init): Remove calls to
2501 set_gdbarch_deprecated_dummy_write_sp,
2502 set_gdbarch_deprecated_push_arguments and
2503 set_gdbarch_deprecated_push_return_address.
2504 Add call to set_gdbarch_push_dummy_call.
2505
2506 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2507
2508 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2509 (E_PSEUDO_EXR_REGNUM): Ditto.
2510 (h8300_is_argument_spill): Check for instructions moving argument
2511 registers into safe registers.
2512 (h8300_skip_prologue): Check for stm instruction to push registers
2513 used for register variables onto stack.
2514 (gdb_print_insn_h8300): Remove.
2515 (h8300_examine_prologue): Add a comment.
2516 (h8300_register_name): Take pseudo registers into account.
2517 (h8300s_register_name): Ditto.
2518 (h8300sx_register_name): Ditto.
2519 (h8300_print_register): Ditto.
2520 (h8300_print_registers_info): Define "nice" printing order.
2521 (h8300_saved_pc_after_call): Take pseudo registers into account.
2522 (h8300_register_type): Ditto. Return type used for remote connection
2523 when requesting real CCR or EXR register, return actual type when
2524 requesting pseudo CCR or EXR.
2525 (h8300_pseudo_register_read): New function.
2526 (h8300_pseudo_register_write): Ditto.
2527 (h8300_dbg_reg_to_regnum): Ditto.
2528 (h8300s_dbg_reg_to_regnum): Ditto.
2529 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2530 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2531 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2532 set_gdbarch_print_insn architecture dependent.
2533 Call set_gdbarch_pseudo_register_read and
2534 set_gdbarch_pseudo_register_write.
2535 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2536
2537 2003-06-16 Andrew Cagney <cagney@redhat.com>
2538
2539 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2540 * gdbarch.h, gdbarch.c: Re-generate.
2541 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2542 * s390-tdep.c (s390_gdbarch_init): Update.
2543 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2544 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2545 * mips-tdep.c (mips_gdbarch_init): Update.
2546 * mcore-tdep.c (mcore_gdbarch_init): Update.
2547 * cris-tdep.c (cris_gdbarch_init): Update.
2548 * infcall.c (call_function_by_hand): Update.
2549 * ia64-tdep.c (ia64_push_arguments): Update comment.
2550 * frame.c (legacy_get_prev_frame): Do not assume
2551 SAVE_DUMMY_FRAME_TOS_P.
2552 * dummy-frame.c (find_dummy_frame): Update comment.
2553
2554 2003-06-16 Andrew Cagney <cagney@redhat.com>
2555
2556 * regcache.c (do_cooked_read): Do not use register_valid_p.
2557
2558 2003-06-15 Theodore A. Roth <troth@openavr.org>
2559
2560 * avr-tdep.c (avr_register_type): Remove a blank line.
2561 (avr_scan_prologue): Correct some comments.
2562
2563 2003-06-15 Theodore A. Roth <troth@openavr.org>
2564
2565 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2566 prologue types.
2567 Properly scan prologues generated by gcc with the -mcall-prologues
2568 option.
2569 Add code to scan -mcall-prologues for mega devices.
2570
2571 2003-06-15 Theodore A. Roth <troth@openavr.org>
2572
2573 * avr-tdep.c (avr_register_byte): Delete function.
2574 (avr_register_raw_size): Delete function.
2575 (avr_register_virtual_size): Delete function.
2576 (avr_register_virtual_type): Delete function.
2577 (avr_register_type): New function.
2578 (avr_address_to_pointer): Remove unused code.
2579 (avr_read_fp): Need to read FP as two separate bytes due to change to
2580 avr_register_type() usage.
2581 (avr_gdbarch_init): Don't set deprecated_register_size.
2582 Don't set deprecated_register_bytes.
2583 Don't set deprecated_register_byte.
2584 Don't set deprecated_register_raw_size.
2585 Don't set deprecated_max_register_raw_size.
2586 Don't set deprecated_register_virtual_size.
2587 Don't set deprecated_max_register_virtual_size.
2588 Don't set deprecated_register_virtual_type.
2589 Set register_type method.
2590
2591 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2592
2593 * Makefile.in (linux-nat.o): Add rule.
2594 * linux-nat.c: New file.
2595 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2596 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2597 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2598 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2599 * config/arm/linux.mh (NATDEPFILES): Likewise.
2600 * config/i386/linux.mh (NATDEPFILES): Likewise.
2601 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2602 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2603 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2604 * config/mips/linux.mh (NATDEPFILES): Likewise.
2605 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2606 * config/s390/s390.mh (NATDEPFILES): Likewise.
2607 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2608
2609 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2610
2611 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2612 replace out-of-date comment.
2613
2614 2003-06-15 Andrew Cagney <cagney@redhat.com>
2615
2616 * rdi-share/host.h (Fail): Change to a varargs function.
2617 * remote-rdi.c (Fail): Update.
2618
2619 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2620
2621 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2622 (i386_convert_register_p, i386_register_to_value,
2623 i386_register_from_value): Handle types longer than 8 bytes.
2624
2625 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2626
2627 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2628 Move floating-point code to new function in i387-tdep.c.
2629 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2630 New functions containing code moved here from i386-tdep.c.
2631 * i387-tdep.h: Add opaque declaration for `struct type'.
2632 (i387_register_to_value, i387_value_to_register): New prototypes.
2633 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2634 (x86_64_init_abi): Set convert_register_p, register_to_value and
2635 value_to_register here.
2636
2637 2003-06-14 Andrew Cagney <cagney@redhat.com>
2638
2639 * mips-tdep.c (mips_register_to_value): Make static.
2640 (mips_value_to_register): Make static.
2641 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2642 * ia64-tdep.c (ia64_register_raw_size): Make static.
2643 (ia64_register_virtual_size): Make static.
2644 (ia64_register_byte): Make static.
2645 * i387-tdep.c: Include "i387-tdep.h".
2646 (print_387_control_word): Delete function.
2647 (print_387_status_word): Delete function.
2648 (print_387_status_bits): Delete function.
2649 (print_387_control_bits): Delete function.
2650 * Makefile.in (i387-tdep.o): Update dependencies.
2651 * rdi-share/host.h (Fail): Declare.
2652 * remote-rdi.c (Fail): Update to match declaration.
2653
2654 2003-06-14 Andrew Cagney <cagney@redhat.com>
2655
2656 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2657 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2658 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2659 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2660 * README: Delete reference to remote-array.
2661 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2662 (remote-array.o): Delete target.
2663 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2664 * remote-array.c: Delete file.
2665
2666 2003-06-14 Andrew Cagney <cagney@redhat.com>
2667 Mark Kettenis <kettenis@gnu.org>
2668
2669 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2670 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2671 parameter with "frame".
2672 * gdbarch.h, gdbarch.c: Re-generate.
2673 * frame.h (put_frame_register): Declare.
2674 * frame.c (put_frame_register): New function.
2675 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2676 (legacy_register_to_value): Rewrite, use "frame" to get the
2677 register value.
2678 (legacy_value_to_register): Rewrite, use "frame" to find the
2679 register's location before storing.
2680 * arch-utils.h (legacy_convert_register_p): Update.
2681 (legacy_register_to_value, legacy_value_to_register): Update.
2682 * findvar.c (value_from_register): Rewrite, eliminate use of
2683 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2684 "frame" to REGISTER_TO_VALUE.
2685 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2686 lval_reg_frame_relative + lval_register branch of the switch. Do
2687 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2688 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2689 I386_EDI_REGNUM): New defines.
2690 (i386_next_regnum, i386_convert_register_p,
2691 i386_register_to_value, i386_value_to_register): New functions.
2692 (i386_register_convertible, i386_register_convert_to_virtual,
2693 i386_convert_to_raw): Remove functions.
2694 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2695 value_to_register instead of register_convertible,
2696 register_convert_to_virtual and register_convert_to_raw.
2697 * mips-tdep.c (mips_convert_register_p): New function.
2698 (mips_value_to_register): Replace mips_register_convert_from_type.
2699 (mips_register_to_value): Replace mips_register_convert_to_type.
2700 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2701 register_to_value.
2702 * alpha-tdep.c (alpha_convert_register_p): Update.
2703 (alpha_value_to_register): Update, store the register.
2704 (alpha_register_to_value): Update, fetch the register.
2705
2706 2003-06-14 Theodore A. Roth <troth@openavr.org>
2707
2708 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2709 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2710 Don't set deprecated_call_dummy_words.
2711 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2712 Don't set remote_translate_xfer_address.
2713 (avr_io_reg_read_command): Remove commented out debug printf.
2714 Wrap a long line.
2715
2716 2003-06-14 Theodore A. Roth <troth@openavr.org>
2717
2718 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2719 causes gdb to seg fault.
2720
2721 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
2722
2723 * sparc-nat.c (fetch_inferior_registers): Correct
2724 a reference to "registers".
2725
2726 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2727
2728 * Makefile.in (exc_request_U_h): Define
2729 (exc_request_S_h): Likewise.
2730 (msg_reply_S_h): Likewise.
2731 (msg_U_h): Likewise.
2732 (notify_S_h): Likewise.
2733 (process_reply_S_h): Likewise.
2734 (gnu-nat.o): Depend on gdb_obstack_h
2735 * gnu-nat.c: Include "gdb_obstack.h".
2736
2737 2003-06-13 Andrew Cagney <cagney@redhat.com>
2738
2739 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2740 * gdbarch.h, gdbarch.c: Re-generate.
2741
2742 2003-06-13 Andrew Cagney <cagney@redhat.com>
2743
2744 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2745 when deprecated REGISTER macros can be deleted.
2746 * gdbarch.h, gdbarch.c: Re-generate.
2747
2748 2003-06-13 Jim Blandy <jimb@redhat.com>
2749
2750 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2751 Linux entry point symbols for _dl_debug_state, too.
2752
2753 2003-06-13 Andrew Cagney <cagney@redhat.com>
2754
2755 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2756 available, do not use the FP register, and always save the TOS.
2757 * dummy-frame.c (dummy_frame_this_id): Do not assert
2758 SAVE_DUMMY_FRAME_TOS.
2759 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2760 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2761 (i386_push_dummy_call): Add 8 to the returned SP.
2762 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2763 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2764 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2765 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2766 (x86_64_push_dummy_call): Return "sp + 16".
2767 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2768 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2769 save_dummy_frame_tos.
2770
2771 2003-06-13 Jim Blandy <jimb@redhat.com>
2772
2773 * frv-tdep.c (frv_use_struct_convention): Delete static
2774 declaration for function deleted in my change of 2003-06-12.
2775
2776 2003-06-13 Theodore A. Roth <troth@openavr.org>
2777
2778 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2779 (avr_pointer_to_address): Shift code addrs left 1 bit.
2780 (avr_convert_from_func_ptr_addr): Delete function since operation is
2781 better handled by avr_address_to_pointer and avr_pointer_to_address.
2782 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2783
2784 2003-06-13 Mark Kettenis <kettenis@gnu.org>
2785
2786 From Kelley Cook <kelleycook@wideopenwest.com>:
2787 * configure.host: Accept i[34567]86 variants.
2788 * configure.tgt: Likewise.
2789 * nlm/configure.in: Likewise.
2790 * nlm/configure: Regenerated.
2791
2792 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2793
2794 * arm-tdep.c (solib-svr4.h): Dont' include it.
2795 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2796 * arm-linux-tdep.c: ... here. Make static.
2797 (arm_linux_init_abi): Register it.
2798 (solib-svr4.h): Include it.
2799 * Makefile.in: Update dependencies.
2800 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2801 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2802
2803 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2804
2805 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2806 indicate registers used for return values.
2807 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2808 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2809 members.
2810 (h8300_init_extra_frame_info): Ditto.
2811 (h8300_frame_locals_address): Removed.
2812 (h8300_frame_args_address): Removed.
2813 (h8300_extract_return_value): Use new regcache structure. Only care
2814 for 16 bit CPUs.
2815 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2816 (h8300_store_return_value): Use new regcache structure. Only care
2817 for 16 bit CPUs.
2818 (h8300h_store_return_value): Same function for 32 bit CPUs.
2819 (h8300_store_struct_return): Removed.
2820 (h8300_extract_struct_value_address): Use new regcache structure.
2821 (h8300h_extract_struct_value_address): Removed.
2822 (h8300_push_dummy_code): New function.
2823 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2824 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2825 set_gdbarch_store_return_value architecture dependent.
2826 Call set_gdbarch_push_dummy_code and
2827 set_gdbarch_extract_struct_value_address.
2828 Remove calls to set_gdbarch_frame_args_address,
2829 set_gdbarch_frame_locals_address,
2830 set_gdbarch_deprecated_store_struct_return,
2831 set_gdbarch_deprecated_extract_return_value,
2832 set_gdbarch_deprecated_extract_struct_value_address,
2833 set_gdbarch_deprecated_call_dummy_words and
2834 set_gdbarch_deprecated_sizeof_call_dummy_words.
2835
2836 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2837
2838 * h8300-tdep.c (h8300_register_byte): Remove.
2839 (h8300h_register_byte): Remove.
2840 (h8300_register_virtual_type): Remove. Substitute by...
2841 (h8300_register_type): New function.
2842 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2843 (h8300h_extract_struct_value_address): Ditto.
2844 (h8300_gdbarch_init): Drop calls to
2845 set_gdbarch_deprecated_register_byte and
2846 set_gdbarch_deprecated_register_virtual_type.
2847 Add call to set_gdbarch_register_type.
2848
2849 2003-06-13 Andrew Cagney <cagney@redhat.com>
2850
2851 * gdbarch.sh: Update comments on registers.
2852 (deprecated_register_byte): Rename register_byte.
2853 (deprecated_register_raw_size): Rename register_raw_size.
2854 (deprecated_register_virtual_size): Rename register_virtual_size.
2855 (deprecated_register_virtual_type): Rename register_virtual_type.
2856 * gdbarch.h, gdbarch.c: Re-generate.
2857 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2858 * vax-tdep.c (vax_gdbarch_init): Update.
2859 * v850-tdep.c (v850_gdbarch_init): Update.
2860 * sparc-tdep.c (sparc_gdbarch_init): Update.
2861 * sh-tdep.c (sh_gdbarch_init): Update.
2862 * s390-tdep.c (s390_gdbarch_init): Update.
2863 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2864 * ns32k-tdep.c: Update.
2865 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2866 * mips-tdep.c (mips_gdbarch_init): Update.
2867 * mcore-tdep.c (mcore_gdbarch_init): Update.
2868 * m68k-tdep.c (m68k_gdbarch_init): Update.
2869 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2870 * ia64-tdep.c (ia64_gdbarch_init): Update.
2871 * hppa-tdep.c (hppa_gdbarch_init): Update.
2872 * h8300-tdep.c (h8300_gdbarch_init): Update.
2873 * frv-tdep.c (frv_gdbarch_init): Update.
2874 * cris-tdep.c (cris_gdbarch_init): Update.
2875 * avr-tdep.c (avr_gdbarch_init): Update.
2876 * alpha-tdep.c (alpha_gdbarch_init): Update.
2877 * arm-tdep.c (arm_gdbarch_init): Update.
2878
2879 2003-06-13 Andrew Cagney <cagney@redhat.com>
2880
2881 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2882 mips_o32_use_struct_convention with always_use_struct_convention.
2883
2884 2003-06-12 David Carlton <carlton@kealia.com>
2885
2886 * cp-namespace.c (cp_set_block_scope): Comment out
2887 processing_has_namespace_info branch.
2888
2889 2003-06-12 Jim Blandy <jimb@redhat.com>
2890
2891 Recognize and skip 64-bit PowerPC Linux linkage functions.
2892 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2893 insn_pattern, insns_match_pattern, d_field, ds_field): New
2894 functions, macros, and types for working with PPC instructions.
2895 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2896 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2897 ppc64_skip_trampoline_code): New functions, variables, and macros
2898 for recognizing and skipping linkage functions.
2899 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2900 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2901
2902 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2903 register offsets for both the 32- and 64-bit interfaces.
2904
2905 Actually finish the job started by my change of 2003-05-29.
2906 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2907 other #definition of this.
2908 (ppc_linux_skip_trampoline_code): Remove declaration.
2909 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2910 static.
2911 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2912 method for GDBARCH.
2913
2914 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2915 'long' on ppc64-*-linux*.
2916
2917 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2918 isn't #defined, assume the register doesn't exist: act as if
2919 tdep->ppc_mq_regnum were -1.
2920
2921 * configure.host, configure.tgt: Add entries for
2922 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2923 powerpc/linux.mt.
2924 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2925 New files.
2926
2927 * arch-utils.c (always_use_struct_convention): New function.
2928 * arch-utils.h (always_use_struct_convention): New prototype.
2929 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2930 (alpha_gdbarch_init): Register always_use_struct_convention,
2931 instead of alpha_use_struct_convention.
2932 * cris-tdep.c (cris_use_struct_convention): Delete.
2933 (cris_gdbarch_init): Register always_use_struct_convention,
2934 instead of cris_use_struct_convention.
2935 * frv-tdep.c (frv_use_struct_convention): Delete.
2936 (frv_gdbarch_init): Register always_use_struct_convention,
2937 instead of frv_use_struct_convention.
2938 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2939 (h8300_gdbarch_init): Register always_use_struct_convention,
2940 instead of h8300_use_struct_convention.
2941 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
2942 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2943 instead of mips_o32_use_struct_convention.
2944
2945 2003-06-12 Andrew Cagney <cagney@redhat.com>
2946
2947 * wince.c: Include "mips-tdep.h".
2948 * mips-tdep.h (mips_next_pc): Declare.
2949 * mcore-tdep.c: Make more local functions static.
2950 * Makefile.in (wince.o): Update dependencies.
2951
2952 2003-06-12 David Carlton <carlton@kealia.com>
2953
2954 * symtab.c (lookup_symbol_aux_minsyms): Replace
2955 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2956 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2957 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2958 SYMBOL_NATURAL_NAME.
2959
2960 2003-06-12 Andreas Schwab <schwab@suse.de>
2961
2962 * Makefile.in (tuiDisassem.o): Update dependencies.
2963
2964 2003-06-12 David Carlton <carlton@bactrian.org>
2965
2966 * symtab.h: Delete declaration of make_symbol_overload_list.
2967 Add declaration of lookup_partial_symbol.
2968 * symtab.c (remove_params): Move to cp-support.c.
2969 (overload_list_add_symbol, make_symbol_overload_list)
2970 (sym_return_val_size, sym_return_val_index): Ditto.
2971 (lookup_partial_symbol): Make extern.
2972 * cp-support.h: Add declaration of make_symbol_overload_list.
2973 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2974 symtab.h, and block.h.
2975 (remove_params): Move here from symtab.c.
2976 (overload_list_add_symbol, make_symbol_overload_list)
2977 (sym_return_val_size, sym_return_val_index): Ditto.
2978 * valops.c: Include cp-support.h.
2979 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2980 frame_h, and block_h.
2981 (valops.o): Depend on cp_support_h.
2982
2983 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
2984
2985 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2986 substitute by NUM_REGS throughout.
2987 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2988 (h8300s_register_name): New function for H8S registers.
2989 (h8300sx_register_name): Ditto for H8SX registers.
2990 (h8300_print_register): Revise register printing, avoid depending
2991 on 32 bit long.
2992 (h8300_register_byte): Only care for H8/300 registers.
2993 (h8300h_register_byte): New function for any other architecture.
2994 (h8300_register_raw_size): Remove.
2995 (h8300_register_virtual_type): Revise to return actually useful
2996 type.
2997 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2998 (h8300h_extract_struct_value_address): New function for any other
2999 architecture.
3000 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3001 set_gdbarch_register_name, set_gdbarch_register_byte,
3002 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3003 Remove calls to set_gdbarch_deprecated_register_size,
3004 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3005 set_gdbarch_deprecated_max_register_raw_size,
3006 set_gdbarch_register_virtual_size and
3007 set_gdbarch_deprecated_max_register_virtual_size entirely.
3008 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3009 set_gdbarch_long_double_bit.
3010
3011 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3012
3013 * doublest.c (convert_doublest_to_floatformat): When dealing
3014 with the implied integer bit, only alter mant_bits if we are
3015 processing a full 32 bits of mantissa.
3016
3017 2003-06-11 David Carlton <carlton@bactrian.org>
3018
3019 * dictionary.h: New.
3020 * dictionary.c: New.
3021 * block.h: Add opaque declaration for struct dictionary.
3022 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3023 'sym' members.
3024 (BLOCK_DICT): New macro.
3025 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3026 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3027 BLOCK_SHOULD_SORT.
3028 (ALL_BLOCK_SYMBOLS): Update definition.
3029 * Makefile.in (SFILES): Add dictionary.c.
3030 (dictionary_h): New.
3031 (COMMON_OBS): Add dictionary.o.
3032 (dictionary.o): New.
3033 (ada-lang.o): Depend on dictionary_h.
3034 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3035 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3036 (mi-cmd-stack.o): Ditto.
3037 (gdbtk-cmds.o): Update dependencies.
3038 (gdbtk-stack.o): Ditto.
3039 * ada-lang.c: Include dictionary.h.
3040 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3041 (fill_in_ada_prototype, debug_print_block): Ditto.
3042 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3043 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3044 'is_sorted'.
3045 * mdebugread.c: Include dictionary.h.
3046 (struct parse_stack): Delete 'maxsyms' member.
3047 (parse_symbol): Update calls to new_block. Delete calls to
3048 shrink_block. Use dictionary methods.
3049 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3050 Update calls to new_symtab. Don't maintain maxsyms data.
3051 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3052 (add_symbol): Just call dict_add_symbol.
3053 (new_symtab): Delete 'maxsyms' argument.
3054 (new_symtab): Update calls to new_block.
3055 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3056 (shrink_block): Delete function.
3057 (fixup_sigtramp): Update call to new_block. Add symbol via
3058 dict_add_symbol.
3059 * jv-lang.c: Include dictionary.h.
3060 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3061 appropriately. Set class_symtab->free_func. Make sure the
3062 blockvector is big enough to hold two blocks.
3063 (add_class_symtab_symbol): Use dictionary methods.
3064 (free_class_block): New function.
3065 (type_from_class): Replace explicit iteration by
3066 ALL_BLOCK_SYMBOLS.
3067 * symtab.h (struct symtab): Replace 'free_ptr' method by
3068 'free_func'.
3069 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3070 sort_symtab_syms.
3071 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3072 sort_symtab_syms.
3073 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3074 Include dictionary.h.
3075 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3076 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3077 sort_symtab_syms.
3078 * objfiles.c: Include dictionary.h.
3079 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3080 * buildsym.c: Include dictionary.h.
3081 (finish_block): Use dictionary methods.
3082 (end_symtab): Set free_func to NULL, not free_ptr.
3083 * tracepoint.c: Include dictionary.h.
3084 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3085 (scope_info): Ditto.
3086 * stack.c: Include dictionary.h.
3087 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3088 (print_block_frame_labels, print_frame_arg_vars)
3089 (print_frame_args): Ditto.
3090 * symmisc.c (free_symtab_block): Use dictionary methods.
3091 (dump_symtab): Ditto.
3092 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3093 Include dictionary.h.
3094 * symfile.h: Delete declarations of sort_block_syms,
3095 sort_symtab_syms.
3096 * symfile.c (sort_block_syms): Delete.
3097 (sort_symtab_syms): Delete.
3098 * symtab.c: Include dictionary.h.
3099 (lookup_block_symbol): Use dictionary iterators.
3100 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3101 (search_symbols, make_symbol_completion_list): Ditto.
3102 (make_symbol_overload_list): Ditto.
3103 * valops.c (value_of_local): Use dict_empty.
3104 Include dictionary.h.
3105
3106 2003-06-11 J. Brobecker <brobecker@gnat.com>
3107
3108 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3109
3110 2003-06-11 David Carlton <carlton@bactrian.org>
3111
3112 * block.h (BLOCK_SHOULD_SORT): Delete.
3113 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3114 blocks.
3115 * ada-lang.c (ada_add_block_symbols): Ditto.
3116 * symfile.c (sort_block_syms): Delete.
3117 (sort_symtab_syms): Ditto.
3118 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3119 declarations.
3120 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3121 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3122 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3123 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3124 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3125 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3126 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3127
3128 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3129
3130 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3131 bits to 128.
3132
3133 2003-06-11 Andrew Cagney <cagney@redhat.com>
3134
3135 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3136 REGISTER_CONVERTIBLE.
3137 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3138 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3139 * gdbarch.h, gdbarch.c: Re-generate.
3140 * arch-utils.h (deprecated_register_convertible_not): Rename
3141 generic_register_convertible_not.
3142 * arch-utils.c (deprecated_register_convertible_not): Rename
3143 generic_register_convertible.
3144 (legacy_convert_register_p, legacy_register_to_value): Update.
3145 * sh-tdep.c (sh64_push_arguments): Update.
3146 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3147 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3148 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3149 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3150 * arch-utils.c (legacy_value_to_register): Update.
3151 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3152 (rs6000_register_convert_to_raw): Make parameter "from" const.
3153 * mips-tdep.c (mips_gdbarch_init): Update.
3154 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3155 * infcmd.c (default_print_registers_info): Update.
3156 * ia64-tdep.c (ia64_gdbarch_init): Update.
3157 (ia64_register_convert_to_raw): Make parameter "from" const.
3158 * i386-tdep.c (i386_gdbarch_init): Update.
3159 (i386_register_convert_to_raw): Update.
3160
3161 2003-06-11 Andrew Cagney <cagney@redhat.com>
3162
3163 * remote-fileio.c: Include "remote-fileio.h".
3164 * Makefile.in (remote-fileio.o): Update dependencies.
3165 (remote_fileio_h): Fix typo.
3166
3167 2003-06-11 Andrew Cagney <cagney@redhat.com>
3168
3169 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3170 (xstormy16_save_dummy_frame_tos): Make static.
3171 (_initialize_xstormy16_tdep): Add declaration.
3172 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3173 * v850-tdep.c: Make local functions static.
3174 (_initialize_v850_tdep): Add declaration.
3175 * sparc-tdep.c: Make local functions static.
3176 (_initialize_sparc_tdep): Add declaration.
3177 * sh-tdep.c: Make local functions static.
3178 (_initialize_sh_tdep): Add declaration.
3179 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3180 * s390-tdep.c: Make local functions static.
3181 (_initialize_s390_tdep): Add declaration.
3182 * dbxread.c (find_stab_function_addr): Make static.
3183 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3184 * ocd.c (_initialize_remote_ocd): Add declaration.
3185 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3186 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3187 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3188 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3189 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3190 * remote-array.c (_initialize_array): Add declaration.
3191 (_initialize_remote_monitors): Add declaration.
3192 * remote-mips.c: Make local functions static.
3193 (_initialize_remote_mips): Add declaration.
3194 * mcore-tdep.c: Make all local functions static.
3195 (_initialize_mcore_tdep): Add declaration.
3196 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3197 * abug-rom.c (_initialize_abug_rom): Add declaration.
3198 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3199 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3200 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3201 * remote-est.c (_initialize_est): Add declaration.
3202 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3203 (m68hc11_call_dummy_address): Make static.
3204 * ia64-tdep.c: Make local functions static.
3205 (_initialize_ia64_tdep): Add declaration.
3206 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3207 * monitor.c (monitor_wait_filter): Make static.
3208 (_initialize_remote_monitors): Add declaration.
3209 * remote-hms.c (_initialize_remote_hms): Add declaration.
3210 * remote-e7000.c (fetch_regs_from_dump): Make static.
3211 (expect_n): Make static.
3212 (_initialize_remote_e7000): Add declaration.
3213 * ser-e7kpc.c: Always include "defs.h".
3214 (_initialize_ser_e7000pc): Add declaration.
3215 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3216 * cris-tdep.c: Make all but one function static.
3217 (_initialize_cris_tdep): Add declaration.
3218 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3219 * solib.c (update_solib_list): Make static.
3220 (_initialize_solib): Add declaration.
3221 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3222 (_initialize_avr_tdep): Add declaration.
3223 * remote-rdi.c (voiddummy): Make static.
3224 (_initialize_remote_rdi): Add declaration.
3225 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3226 * remote-rdp.c (send_rdp): Make static.
3227 (_initialize_remote_rdp): Add declaration.
3228 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3229
3230 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
3231
3232 * remote-fileio.c: Make ari happy.
3233
3234 2003-06-10 J. Brobecker <brobecker@gnat.com>
3235
3236 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3237 fetching the trailing bytes of the buffer we are about to write.
3238
3239 2003-06-10 Andrew Cagney <cagney@redhat.com>
3240
3241 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3242 * Makefile.in (remote-fileio.o): Update dependencies.
3243 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3244 include <setjmp.h>, or <sys/types.h> conditional on USG.
3245 (remote_fio_jmp_buf): Delete global variable.
3246
3247 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
3248 Martin M. Hunt <hunt@redhat.com>
3249
3250 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3251 (SFILES): Add remote-fileio.c.
3252 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3253 dependencies for building remote.o.
3254 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3255 * remote-fileio.h: New header file defining remote File-I/O interface.
3256 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3257 static storage class.
3258 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3259 'F' packet.
3260 (_initialize_remote): Call initialize_remote_fileio().
3261 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3262 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3263 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3264 (captured_main): Initialize new ui_files.
3265 * ui-file.c: Add read and fgets input functions.
3266 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3267 (null_file_read): New function.
3268 (ui_file_read): New function.
3269 (set_ui_file_read): New function.
3270 (stdio_file_read): New function.
3271 * ui-file.h: New type ui_file_read_ftype.
3272 (set_ui_file_read): Declare.
3273 (ui_file_read): Declare.
3274
3275 2003-06-09 Andrew Cagney <cagney@redhat.com>
3276
3277 * frame.h (deprecated_unwind_get_saved_register): Rename
3278 generic_unwind_get_saved_register, update comments.
3279 * mips-tdep.c (mips_get_saved_register): Update.
3280 * frame.c (deprecated_unwind_get_saved_register): Update.
3281
3282 2003-06-09 Andrew Cagney <cagney@redhat.com>
3283
3284 * vax-tdep.c (vax_frame_locals_address): Delete function.
3285 (vax_gdbarch_init): Do not set frame_locals_address.
3286 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3287 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3288 * s390-tdep.c (s390_frame_args_address): Delete function.
3289 (s390_gdbarch_init): Do not set frame_args_address or
3290 frame_locals_address.
3291 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3292 (ns32k_gdbarch_init): Do not set frame_locals_address.
3293 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3294 (hppa_frame_locals_address): Delete function.
3295 (hppa_gdbarch_init): Do not set frame_args_address, or
3296 frame_locals_address.
3297 * arm-tdep.c (arm_frame_args_address): Delete.
3298 (arm_frame_locals_address): Delete.
3299 (arm_gdbarch_init): Do not set frame_args_address, or
3300 frame_locals_address.
3301
3302 2003-06-09 Andrew Cagney <cagney@redhat.com>
3303
3304 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3305 * gdbarch.h, gdbarch.c: Re-generate.
3306 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3307 * arch-utils.c (frame_num_args_unknown): Delete function.
3308 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3309 (frame_info): Use FRAME_NUM_ARGS_P.
3310 * arm-tdep.c (arm_frame_num_args): Delete function.
3311 (arm_gdbarch_init): Do not set frame_num_args.
3312 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3313 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3314 (hppa_gdbarch_init): Do not set frame_num_args.
3315 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3316 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3317 frame_num_args to default frame_num_args_unknown.
3318 * v850-tdep.c (v850_gdbarch_init): Ditto.
3319 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3320 * sh-tdep.c (sh_gdbarch_init): Ditto.
3321 * s390-tdep.c (s390_gdbarch_init): Ditto.
3322 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3323 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3324 * mips-tdep.c (mips_gdbarch_init): Ditto.
3325 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3326 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3327 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3328 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3329 * i386-tdep.c (i386_gdbarch_init): Ditto.
3330 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3331 * frv-tdep.c (frv_gdbarch_init): Ditto.
3332 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3333 * cris-tdep.c (cris_gdbarch_init): Ditto.
3334 * avr-tdep.c (avr_gdbarch_init): Ditto.
3335 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3336
3337 2003-06-09 Andrew Cagney <cagney@redhat.com>
3338
3339 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3340 (print_frame_args): Moved to "stack.c".
3341 * stack.c: Include "gdb_assert.h".
3342 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3343 (print_frame_args): Moved from "printcmd.c".
3344 * frame.h (print_frame_args): Delete declaration.
3345 * Makefile.in (stack.o): Update dependencies.
3346
3347 2003-06-08 Andrew Cagney <cagney@redhat.com>
3348
3349 * frame.c (get_prev_frame): Remove reference to
3350 frame_args_address_correct in comments.
3351 * frame-base.c (default_frame_args_address): Delete code
3352 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3353 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3354 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3355 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3356 (vax_frame_args_address_correct): Delete declaration.
3357
3358 2003-06-08 Andrew Cagney <cagney@redhat.com>
3359
3360 * gdbarch.sh (UNWIND_SP): Add.
3361 * gdbarch.h, gdbarch.c: Re-generate.
3362 * frame.c (frame_sp_unwind): New function.
3363 (get_frame_sp): New function.
3364 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3365 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3366 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3367 value.
3368 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3369 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3370
3371 2003-06-08 Andrew Cagney <cagney@redhat.com>
3372
3373 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3374 REMOTE_BREAKPOINT.
3375 * remote.c: Update.
3376 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3377 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3378 * config/m68k/tm-sun3.h: Update.
3379 * config/m68k/tm-m68klynx.h: Update.
3380 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3381
3382 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3383 trad_frame". Update comments.
3384 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3385 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3386 (trad_frame_register_value, trad_frame_prev_register): Update.
3387
3388 2003-06-08 Andrew Cagney <cagney@redhat.com>
3389
3390 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3391 from GCC's acinclude.m4.
3392 * configure.in: Check for getopt's delcaration.
3393 * aclocal.m4, config.in, configure: Re-generate.
3394 * main.c (error_init): Delete declaration.
3395 * defs.h (error_init): Declare.
3396 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3397 (rs6000_convert_from_func_ptr_addr): Make static.
3398 (_initialize_rs6000_tdep): Add declaration.
3399 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3400 (show_commands, set_verbose, show_history): Delete declaration.
3401 * top.h (set_verbose): Add declaration.
3402 (show_history, set_history, show_commands): Add declaration.
3403 (do_restore_instream_cleanup): Add declaration.
3404 * objc-lang.c (specialcmp): Make static.
3405 (print_object_command): Make static.
3406 (find_objc_msgsend): Make static.
3407 (find_objc_msgcall_submethod_helper): Make static.
3408 (find_objc_msgcall_submethod): Make static.
3409 (_initialize_objc_language): Add declaration.
3410 (find_implementation_from_class): Make static.
3411 (find_implementation): Make static.
3412 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3413 * objc-lang.h (lookup_struct_typedef): Add declaration.
3414 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3415 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3416 (do_restore_user_call_depth): Make static.
3417 (do_restore_instream_cleanup): Delete declaration.
3418 (dont_repeat): Delete declaration.
3419 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3420 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3421 * reggroups.c (_initialize_reggroup): Add declaration.
3422 * cp-support.c (_initialize_cp_support): Add declaration.
3423 * cp-abi.c (_initialize_cp_abi): Add declaration.
3424 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3425 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3426 (_initialize_gnu_v3_abi): Add declaration.
3427 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3428 (_initialize_gnu_v2_abi): Add declaration.
3429 * frame-base.c (_initialize_frame_base): Add declaration.
3430 * doublest.c (floatformat_from_length): Make static.
3431 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3432 * frame.c (create_sentinel_frame): Make static.
3433 (_initialize_frame): Add declaration.
3434 * top.c (do_catch_errors): Make static.
3435 (gdb_rl_operate_and_get_next_completion): Make static.
3436 * typeprint.c: Include "typeprint.h".
3437 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3438 (sentinel_frame_this_id): Make static.
3439 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3440 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3441 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3442 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3443 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3444 * maint.c (maintenance_print_architecture): Make static.
3445 * signals/signals.c (_initialize_signals): Add declaration.
3446 * std-regs.c (_initialize_frame_reg): Add declaration.
3447 * jv-exp.y (push_variable): ISO C definition.
3448 (push_qualified_expression_name): Ditto.
3449 * memattr.c (_initialize_mem): Add declaration.
3450 * remote.c (remote_check_watch_resources): Make static.
3451 (remote_stopped_by_watchpoint): Make static.
3452 (remote_stopped_data_address): Make static.
3453 * d10v-tdep.c (nr_dmap_regs): Make static.
3454 (a0_regnum): Make static.
3455 (d10v_frame_unwind_cache): Make static.
3456 (d10v_frame_p): Make static.
3457 * osabi.c (show_osabi): Make static.
3458 (_initialize_gdb_osabi): Add extern declaration.
3459 * gdbtypes.c (make_qualified_type): Make static.
3460 (safe_parse_type): Make static.
3461 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3462 * macrotab.c (macro_bcache_free): Make static.
3463 * interps.c (interp_set_quiet): Make static.
3464 (interpreter_exec_cmd): Make static.
3465 * stack.h (select_frame_command): New file.
3466 * stack.c: Include "stack.h".
3467 (select_frame_command_wrapper): Delete function.
3468 (select_frame_command): Make global.
3469 * infcall.c: Include "infcall.h".
3470 * linespec.c: Include "linespec.h".
3471 * symfile.c (sections_overlap): Make static.
3472 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3473 * charset.c (_initialize_charset): Add missing prototype.
3474 * regcache.c (init_legacy_regcache_descr): Make static.
3475 (do_regcache_xfree): Make static.
3476 (regcache_xfer_part): Make static.
3477 (_initialize_regcache): Add missing prototype.
3478 * breakpoint.c (parse_breakpoint_sals): Make static.
3479 (breakpoint_sals_to_pc): Make static.
3480 * interps.h (clear_interpreter_hooks): ISO C declaration.
3481 * Makefile.in (stack_h): Define.
3482 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3483 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3484
3485 2003-06-08 Andrew Cagney <cagney@redhat.com>
3486
3487 * Makefile.in (d10v-tdep.o): Update dependencies.
3488 (SFILES): Add trad-frame.c.
3489 (trad_frame_h): Define.
3490 (COMMON_OBS): Add trad-frame.o.
3491 (trad-frame.o): Specify dependencies.
3492 * d10v-tdep.c: Include "trad-frame.h".
3493 (saved_regs_unwinder): Delete function.
3494 (d10v_frame_prev_register): Use trad_frame_prev_register.
3495 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3496 trad_frame", delete "regs" and "prev_sp".
3497 (prologue_find_regs): Use trad-frame.
3498 * trad-frame.h, trad-frame.c: New files.
3499
3500 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3501
3502 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3503
3504 2003-06-07 Adam Fedor <fedor@gnu.org>
3505
3506 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3507 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3508 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3509 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3510 resolve_msgsend_super, resolve_msgsend_super_stret):
3511 Use it.
3512
3513 2003-06-07 Andrew Cagney <cagney@redhat.com>
3514
3515 * symfile.h: Re-indent, clean up comments.
3516
3517 2003-06-07 Andrew Cagney <cagney@redhat.com>
3518
3519 * inferior.h (deprecated_write_sp): Replace
3520 generic_target_write_sp.
3521 * regcache.c (deprecated_write_sp): Replace
3522 generic_target_write_sp.
3523 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3524 * vax-tdep.c (vax_gdbarch_init): Update.
3525 * v850-tdep.c (v850_gdbarch_init): Update.
3526 * sparc-tdep.c (sparc_gdbarch_init): Update.
3527 * sh-tdep.c (sh_gdbarch_init): Update.
3528 * s390-tdep.c (s390_gdbarch_init): Update.
3529 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3530 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3531 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3532 * mcore-tdep.c (mcore_gdbarch_init): Update.
3533 * m68k-tdep.c (m68k_gdbarch_init): Update.
3534 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3535 * ia64-tdep.c (ia64_gdbarch_init): Update.
3536 * h8300-tdep.c (h8300_gdbarch_init): Update.
3537 * frv-tdep.c (frv_gdbarch_init): Update.
3538 * cris-tdep.c (cris_gdbarch_init): Update.
3539 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3540
3541 2003-06-07 Andrew Cagney <cagney@redhat.com>
3542
3543 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3544 Assert that PC_REGNUM is valid.
3545 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3546
3547 2003-06-07 Andrew Cagney <cagney@redhat.com>
3548
3549 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3550 * gdbarch.h, gdbarch.c: Regenerate.
3551 * mn10300-tdep.c: Include "gdb_assert.h".
3552 (mn10300_read_fp): New function.
3553 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3554 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3555 * ia64-tdep.c: Include "gdb_assert.h".
3556 (ia64_read_fp): New function.
3557 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3558 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3559 * regcache.c (generic_target_read_sp): Delete function.
3560 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3561 * inferior.h (generic_target_read_sp): Delete declaration.
3562 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3563 generic_target_read_sp.
3564 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3565 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3566 * sh-tdep.c (sh_gdbarch_init): Ditto.
3567 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3568 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3569
3570 2003-06-07 Andrew Cagney <cagney@redhat.com>
3571
3572 * gdbarch.sh: Comment each field of startup_gdbarch.
3573 * gdbarch.h, gdbarch.c: Re-generate.
3574
3575 2003-06-07 Andrew Cagney <cagney@redhat.com>
3576
3577 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3578 * gdbarch.h, gdbarch.c: Re-generate.
3579 * regcache.c: Update comments on read_pc et.al.
3580 (generic_target_read_pc): Delete function.
3581 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3582 * inferior.h (generic_target_read_pc): Delete declaration.
3583 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3584 generic_target_read_pc.
3585 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3586 * sh-tdep.c (sh_gdbarch_init): Ditto.
3587 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3588 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3589
3590 2003-06-07 Andrew Cagney <cagney@redhat.com>
3591
3592 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3593 "index" with "special_local_sect". Use strcmp instead of STREQ.
3594 Append period to coments.
3595
3596 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3597
3598 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3599 (elfstab_offset_sections): Likewise.
3600 * gdb-stabs.h (stab_section_info): Likewise.
3601 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3602 * objfiles.c (objfile_relocate): Likewise.
3603 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3604 * remote.c (get_offsets): Likewise.
3605 (remote_cisco_objfile_relocate): Likewise.
3606 * somread.c (som_symfile_offsets): Likewise.
3607 * symfile.c (alloc_section_addr_info): New function.
3608 (build_section_addr_info_from_section_tab): Use it.
3609 (free_section_addr_info): Adjust.
3610 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3611 (syms_from_objfile): Allocate local_addr dynamically.
3612 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3613 dynamically.
3614 (add_symbol_file_command): Allocate sect_opts dynamically.
3615 (reread_symbols): Avoid use of SECT_OFF_MAX.
3616 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3617 (alloc_section_addr_info): Declare it.
3618 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3619 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3620 dynamically.
3621 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3622
3623 2003-06-06 Andrew Cagney <cagney@redhat.com>
3624
3625 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3626 (d10v_frame_unwind_cache): Do not set "return_pc".
3627
3628 2003-06-06 Michael Snyder <msnyder@redhat.com>
3629
3630 * h8300-tdep.c: Make tidy (long lines).
3631
3632 2003-06-06 Michal Ludvig <mludvig@suse.cz>
3633
3634 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3635 to regcache_collect().
3636
3637 2003-06-05 J. Brobecker <brobecker@gnat.com>
3638
3639 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3640 pc_in_sigtramp multiarch method.
3641 (hppa_hpux_som_init_abi): Use it.
3642 (hppa_hpux_elf_init_abi): Likewise.
3643 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3644 macro has been multiarched.
3645 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3646 macro here, as hppa64 isn't multiarched yet.
3647
3648 2003-06-05 Andrew Cagney <cagney@redhat.com>
3649
3650 * Makefile.in (value_h): Add $(frame_h).
3651 * value.h: Include "frame.h".
3652 (struct value): Replace "frame_addr" with "frame_id".
3653 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3654 * values.c (allocate_value): Use VALUE_FRAME_ID.
3655 (value_copy): Use VALUE_FRAME_ID.
3656 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3657 * valops.c (value_assign): Update. Use frame_find_by_id.
3658
3659 2003-06-05 Michal Ludvig <mludvig@suse.cz>
3660
3661 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3662 in each pass.
3663
3664 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3665
3666 * thread-db.c (check_event): For create/death event breakpoints,
3667 loop through all messages to ensure that we read the message
3668 corresponding to the breakpoint we are at.
3669
3670 2003-06-04 Michael Snyder <msnyder@redhat.com>
3671
3672 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3673
3674 2003-06-04 Mark Kettenis <kettenis@gnu.org>
3675
3676 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3677 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3678 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3679 when handling .eh_frame sections.
3680
3681 2003-06-04 J. Brobecker <brobecker@gnat.com>
3682
3683 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3684 prepare_to_proceed procedure instead of the hppa-specific one.
3685 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3686
3687 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
3688
3689 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3690 * config.in: Regenerated.
3691 * configure.in: Add test for syscall function and check for
3692 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3693 * configure: Regenerated.
3694 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3695 <sys/syscall.h>.
3696 (kill_lwp): New function that uses tkill syscall or
3697 uses kill, depending on whether threading model is nptl or not.
3698 All callers of kill() changed to use kill_lwp().
3699 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3700 see if all threads have already exited in the nptl model.
3701 (stop_and_resume_callback): New callback function used by the
3702 lin_lwp_wait thread exit handling code.
3703 (stop_wait_callback): Check for threads already having exited and
3704 delete such threads fromt the lwp list when discovered.
3705 (stop_callback): Don't assert retcode of kill call.
3706
3707 Roland McGrath <roland@redhat.com>
3708 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3709 nptl libthread_db.
3710
3711 2003-06-03 Richard Henderson <rth@redhat.com>
3712
3713 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3714 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3715 (alpha_sigtramp_frame_prev_register): Likewise.
3716 (alpha_heuristic_frame_prev_register): Likewise.
3717 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3718
3719 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3720 alpha-specific register id names.
3721 (alpha_mdebug_frame_unwind_cache): Likewise.
3722 (alpha_mdebug_frame_prev_register): Likewise.
3723
3724 2003-06-03 Richard Henderson <rth@redhat.com>
3725
3726 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3727 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3728 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3729 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3730 unwind routines.
3731 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3732 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3733 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3734
3735 * alpha-linux-tdep.c: Remove unnecessary includes.
3736 * Makefile.in (alpha-linux-tdep.o): Update.
3737
3738 2003-06-03 Richard Henderson <rth@redhat.com>
3739
3740 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3741 (alphabsd_fill_fpreg): Likewise.
3742
3743 2003-06-03 J. Brobecker <brobecker@gnat.com>
3744
3745 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3746 references to struct frame_info fields by calls to the equivalent
3747 accessors. Necessary now that frame_info is opaque.
3748
3749 2003-06-03 J. Brobecker <brobecker@gnat.com>
3750
3751 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3752 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3753 structure, field no longer exists.
3754
3755 2003-06-03 J. Brobecker <brobecker@gnat.com>
3756
3757 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3758 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3759
3760 2003-06-03 J. Brobecker <brobecker@gnat.com>
3761
3762 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3763 references to struct frame_info fields by calls to the equivalent
3764 accessors. Necessary now that frame_info is opaque.
3765
3766 2003-06-03 J. Brobecker <brobecker@gnat.com>
3767
3768 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3769 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3770 structure, field no longer exists.
3771
3772 2003-06-03 Theodore A. Roth <troth@openavr.org>
3773
3774 * remote.c (init_remote_state): Compute sizeof_g_packet by
3775 accumulation of the size of all registers instead of blindly using
3776 DEPRECATED_REGISTER_BYTES.
3777
3778 2003-06-03 Michael Snyder <msnyder@redhat.com>
3779
3780 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3781 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3782 for h8300sx.
3783
3784 2003-06-03 J. Brobecker <brobecker@gnat.com>
3785
3786 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3787 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3788
3789 2003-06-03 Andrew Cagney <cagney@redhat.com>
3790
3791 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3792 (sparc_convert_to_raw): Delete function.
3793 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3794 register_convert_to_virtual.
3795
3796 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3797
3798 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3799 layer if not dealing with a statically-linked threaded program.
3800
3801 2003-06-03 Kris Warkentin <kewarken@qnx.com>
3802
3803 * solib.c (solib_open): Update comment to reflect actual search order.
3804
3805 2003-06-03 Andrew Cagney <cagney@redhat.com>
3806
3807 * frame.c (get_frame_memory_signed): New function.
3808 (get_frame_memory, get_frame_memory_unsigned): New function.
3809 (get_frame_arch): New function.
3810 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3811 (get_frame_memory, get_frame_unsigned_memory): Declare.
3812 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3813 get_frame_memory_unsigned and get_frame_arch.
3814 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3815
3816 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3817
3818 * MAINTAINERS (write after approval): Add myself.
3819
3820 2003-06-03 Jim Blandy <jimb@redhat.com>
3821
3822 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3823 elements of gregset_t are 64 bits each, but access registers
3824 are still 32 bits, so they're packed two per gregset_t
3825 element. Unpack/pack them properly.
3826
3827 2003-06-02 David Carlton <carlton@bactrian.org>
3828
3829 * linespec.c (find_methods): Break out code into
3830 add_matching_methods and add_constructors.
3831 (add_matching_methods): New.
3832 (add_constructors): Ditto.
3833
3834 2003-06-02 Andrew Cagney <cagney@redhat.com>
3835
3836 * sparc-tdep.c (sparc_print_registers): Delete call to
3837 REGISTER_CONVERTIBLE.
3838 (sparc_gdbarch_init): Do not set register_convertible.
3839 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3840 * frv-tdep.c (frv_gdbarch_init): Ditto.
3841 * cris-tdep.c (cris_gdbarch_init): Ditto.
3842
3843 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
3844
3845 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3846 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3847 (syms_from_objfile): Ditto.
3848
3849 2003-06-03 Andreas Schwab <schwab@suse.de>
3850
3851 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3852 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3853
3854 2003-06-02 Richard Henderson <rth@redhat.com>
3855
3856 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3857 a member of all_reggroup.
3858
3859 2003-06-02 Richard Henderson <rth@redhat.com>
3860
3861 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3862 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3863 (alpha_lds, alpha_sts): New.
3864 (alpha_convert_register_p): Change from _register_convertible.
3865 (alpha_register_to_value): Change from _convert_to_virtual;
3866 restructure and fail for type sizes other than 4 or 8.
3867 (alpha_value_to_register): Similarly.
3868 (alpha_extract_return_value): Use alpha_sts.
3869 (alpha_store_return_value): Use alpha_lds.
3870 (alpha_gdbarch_init): Update hooks.
3871
3872 2003-06-02 Richard Henderson <rth@redhat.com>
3873
3874 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3875 regnum identifiers.
3876 (alpha_sigtramp_register_address): Likewise.
3877
3878 2003-06-02 Richard Henderson <rth@redhat.com>
3879
3880 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3881 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3882 * alpha-tdep.h: Declare them.
3883
3884 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3885 Remove zerobuf. Don't error on UNIQUE.
3886 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3887 (ALPHA_REGSET_UNIQUE): Provide default.
3888 (supply_gregset): Use alpha_supply_int_regs.
3889 (fill_gregset): Use alpha_fill_int_regs.
3890 (supply_fpregset): Use alpha_supply_fp_regs.
3891 (fill_fpregset): Use alpha_fill_fp_regs.
3892 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3893 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3894 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3895 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3896 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3897 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3898
3899 2003-06-02 Richard Henderson <rth@redhat.com>
3900
3901 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3902
3903 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3904 (alpha_store_return_value): Likewise.
3905
3906 2003-06-02 David Carlton <carlton@math.stanford.edu>
3907
3908 * block.c (contained_in): Add 'const' to arguments.
3909 (block_function): Ditto.
3910 * block.h: Update declarations for block_function and
3911 contained_in.
3912
3913 2003-06-02 David Carlton <carlton@math.stanford.edu>
3914
3915 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3916 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3917 * p-valprint.c (pascal_val_print): Ditto.
3918 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3919
3920 2003-06-02 Richard Henderson <rth@redhat.com>
3921
3922 * alpha-tdep.c (alpha_push_dummy_call): Use
3923 builtin_type_ieee_double_little instead of builtin_type_double.
3924
3925 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
3926 sign-extension of 32-bit values.
3927 (alpha_store_return_value): Similarly.
3928
3929 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3930 (alpha_extract_return_value): Likewise.
3931 (alpha_store_return_value): Likewise.
3932
3933 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3934 (alpha_store_return_value): Error on IEEE Quad floats.
3935
3936 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3937 (alpha_extract_struct_value_address): Likewise.
3938 (alpha_store_return_value): Likewise.
3939 (alpha_store_struct_return): Remove.
3940 (alpha_gdbarch_init): Update hook registration to match.
3941
3942 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3943 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3944 macros where appropriate.
3945 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3946 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
3947
3948 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3949 for SP, GP; void_func_ptr for PC; non-language-specific types
3950 for all others.
3951 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
3952
3953 2003-06-02 Richard Henderson <rth@redhat.com>
3954
3955 * top.h (lim_at_start): Declare.
3956 * main.c (captured_main): Set it.
3957 * top.c (lim_at_start): Define.
3958 (command_loop): Use it instead of &environ.
3959 * event-top.c (command_handler): Likewise.
3960
3961 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3962
3963 * mipsnbsd-tdep.c: Update copyright years.
3964 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3965
3966 2003-06-01 Richard Henderson <rth@redhat.com>
3967
3968 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3969 (alpha-linux-tdep.o): Update dependencies.
3970 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3971 * alpha-mdebug-tdep.c: Remove unneeded includes.
3972
3973 2003-06-01 Richard Henderson <rth@redhat.com>
3974
3975 * alpha-tdep.c (alpha_register_reggroup_p): New.
3976 (alpha_gdbarch_init): Register it.
3977
3978 2003-06-02 Andrew Cagney <cagney@redhat.com>
3979
3980 * dwarfread.c: Eliminate "register"
3981 (decode_die_type): Eliminate assignment within "if".
3982 (struct_type, decode_array_element_type): Ditto.
3983 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3984 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3985 (decode_modified_type, completedieinfo): Ditto.
3986 * block.c: Eliminate "register".
3987 (blockvector_for_pc_sect): Eliminate assignment within "if".
3988 * cp-support.h (struct symbol): Opaque declaration.
3989 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3990
3991 2003-06-01 Richard Henderson <rth@redhat.com>
3992
3993 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3994 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
3995
3996 2003-06-01 Adam Fedor <fedor@gnu.org>
3997
3998 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3999 * gdbarch.[ch]: Regenerate.
4000 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4001 (hppa_gdbarch_init): Set it in the gdbarch vector.
4002 * i386-tdep.c (i386_fetch_pointer_argument): New
4003 (i386_gdbarch_init): Set it into gdbarch.
4004 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4005 (rs6000_gdbarch_init): Set it in gdbarch.
4006 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4007 (sparc_gdbarch_init): Set it in gdbarch.
4008
4009 2003-06-01 Andrew Cagney <cagney@redhat.com>
4010
4011 * defs.h (extract_address): Delete declaration.
4012 * findvar.c (extract_address): Delete function.
4013 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4014 extract_address with the inline equivalent,
4015 extract_unsigned_integer.
4016 (xstormy16_extract_struct_value_address): Ditto.
4017 (xstormy16_pointer_to_address): Ditto.
4018 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4019 * v850-tdep.c (v850_push_arguments): Ditto.
4020 (v850_extract_return_value): Ditto.
4021 (v850_extract_struct_value_address): Ditto.
4022 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4023 (sparcnbsd_get_longjmp_target_64): Ditto.
4024 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4025 (get_longjmp_target): Ditto.
4026 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4027 (sh64_extract_struct_value_address): Ditto.
4028 (sh_push_arguments): Ditto.
4029 (sh64_push_arguments): Ditto.
4030 * remote-vxsparc.c (vx_read_register): Ditto.
4031 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4032 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4033 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4034 * mipsv4-nat.c (get_longjmp_target): Ditto.
4035 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4036 * mips-nat.c (get_longjmp_target): Ditto.
4037 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4038 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4039 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4040 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4041 * irix5-nat.c (get_longjmp_target): Ditto.
4042 * irix4-nat.c (get_longjmp_target): Ditto.
4043 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4044 (ia64_push_arguments): Ditto.
4045 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4046 * h8300-tdep.c (h8300_push_arguments): Ditto.
4047 (h8300_store_return_value): Ditto.
4048 (h8300_extract_struct_value_address): Ditto.
4049 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4050 (frv_push_arguments): Ditto.
4051 * avr-tdep.c (avr_pointer_to_address): Ditto.
4052 (avr_push_arguments): Ditto.
4053 * arm-tdep.c (arm_push_dummy_call): Ditto.
4054 (arm_get_longjmp_target): Ditto.
4055 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4056 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4057 (alpha_get_longjmp_target): Ditto.
4058
4059 * solib-irix.c (extract_mips_address): Inline extract_address,
4060 replacing it with extract_signed_integer.
4061 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4062 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4063 (first_link_map_member, open_symbol_file_object): Ditto.
4064 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4065 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4066 (LM_NEXT, LM_NAME): Ditto.
4067
4068 2003-06-01 Richard Henderson <rth@redhat.com>
4069
4070 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4071 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4072 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4073 (alpha_cannot_store_register): Likewise.
4074 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4075 * alpha-nat.c (supply_gregset): Likewise.
4076 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4077
4078 2003-06-01 Andrew Cagney <cagney@redhat.com>
4079
4080 * infcall.c (call_function_by_hand): Update comment on
4081 DEPRECATED_DUMMY_WRITE_SP.
4082
4083 * mips-tdep.c (mips_gdbarch_init): Do not set
4084 deprecated_dummy_write_sp.
4085 (mips_eabi_push_dummy_call): Set the SP register.
4086 (mips_o64_push_dummy_call): Set the SP register.
4087 (mips_o32_push_dummy_call): Set the SP register.
4088 (mips_n32n64_push_dummy_call): Set the SP register.
4089
4090 2003-06-01 Richard Henderson <rth@redhat.com>
4091
4092 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4093 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4094 (supply_gregset): Likewise.
4095 * alpha-tdep.c (alpha_store_return_value): Likewise.
4096 (alpha_get_longjmp_target): Likewise.
4097 (alpha_register_name): Constify array.
4098 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4099 deprecated_register_size, deprecated_register_bytes,
4100 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4101 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4102 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4103
4104 2003-06-01 Richard Henderson <rth@redhat.com>
4105
4106 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4107 from arg_reg_buffer to regcache to avoid double conversion.
4108
4109 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4110
4111 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4112 SP_REGNUM.
4113 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4114 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4115
4116 2003-06-01 Richard Henderson <rth@redhat.com>
4117
4118 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4119 (decode_frame_entry): Set it. Skip FDE augmentation.
4120
4121 2003-06-01 Richard Henderson <rth@redhat.com>
4122
4123 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4124 not overlapping PC_REGNUM.
4125
4126 2003-06-01 Richard Henderson <rth@redhat.com>
4127
4128 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4129 alpha_push_arguments. Don't dump argument register data to
4130 the target stack. Fix float and 128-bit long double semantics.
4131 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4132 (alpha_fix_call_dummy): Remove.
4133 (alpha_call_dummy_words): Remove.
4134 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4135
4136 2003-06-01 Richard Henderson <rth@redhat.com>
4137
4138 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4139
4140 2003-06-01 Andrew Cagney <cagney@redhat.com>
4141
4142 * mips-tdep.c (is_mips16_addr): New function.
4143 (make_mips16_addr, unmake_mips16_addr): New functions.
4144 (pc_is_mips16, mips_fetch_instruction): Use.
4145 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4146 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4147 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4148 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4149 TARGET_MIPS.
4150 * config/mips/tm-mips.h: Update copyright.
4151 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4152 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4153 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4154 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4155 (TM_PRINT_INSN_MACH): Delete.
4156 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4157
4158 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4159 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4160 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4161 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4162 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4163 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4164 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4165 mips*-*-riscos* and mips*-*-sysv* onto mips.
4166 * config/mips/mips64.mt: New file.
4167 * config/mips/mips.mt: New file.
4168 * config/mips/littlemips.mt: Delete file.
4169 * config/mips/decstation.mt: Delete file.
4170 * config/mips/vr4300el.mt: Delete file.
4171 * config/mips/vr5000el.mt: Delete file.
4172 * config/mips/vr5000.mt: Delete file.
4173 * config/mips/vr4100.mt: Delete file.
4174 * config/mips/vr4xxxel.mt: Delete file.
4175 * config/mips/vr4300.mt: Delete file.
4176 * config/mips/vr4xxx.mt: Delete file.
4177 * config/mips/bigmips.mt: Delete file.
4178 * config/mips/bigmips64.mt: Delete file.
4179 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4180 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4181 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4182 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4183 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4184 "tm-bigmips.h".
4185 * config/mips/tm-irix3.h: Ditto.
4186 * config/mips/tm-mipsv4.h: Ditto.
4187 * config/mips/tm-embed.h: Ditto.
4188 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4189 "tm-bigmips64.h".
4190 * config/mips/tm-vr5000el.h: Delete file.
4191 * config/mips/tm-tx39l.h: Delete file.
4192 * config/mips/tm-vr4300el.h: Delete file.
4193 * config/mips/tm-vr4xxxel.h: Delete file.
4194 * config/mips/tm-vr4300.h: Delete file.
4195 * config/mips/tm-vr4100.h: Delete file.
4196 * config/mips/tm-vr4xxx.h: Delete file.
4197 * config/mips/tm-vr5000.h: Delete file.
4198 * config/mips/tm-embedl64.h: Delete file.
4199 * config/mips/tm-embedl.h: Delete file.
4200 * config/mips/tm-embed64.h: Delete file.
4201 * config/mips/tm-bigmips64.h: Delete file.
4202 * config/mips/tm-bigmips.h: Delete file.
4203
4204 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4205
4206 Fix gdb/1216.
4207 * shnbsd-nat.c: Include "sh-tdep.h".
4208
4209 From Richard Henderson <rth@redhat.com>:
4210 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4211
4212 2003-05-31 Andrew Cagney <cagney@redhat.com>
4213
4214 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4215 forward declaration.
4216 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4217 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4218 (mips_find_saved_regs): Use set_reg_offset.
4219 (mips_frame_init_saved_regs): Delete function.
4220 (mips_pop_frame): Call mips_find_saved_regs instead of
4221 DEPRECATED_FRAME_INIT_SAVED_REGS.
4222
4223 2003-05-31 Andrew Cagney <cagney@redhat.com>
4224
4225 * mips-tdep.c (mips_gdbarch_init): Do not set
4226 deprecated_max_register_raw_size, register_virtual_size, and
4227 deprecated_max_register_virtual_size.
4228
4229 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4230
4231 * i386-tdep.c: Include "dwarf2-frame.h".
4232 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4233 * Makefile.in (i386-tdep.o): Update dependencies.
4234
4235 * dwarf2-frame.c, dwarf2-frame.h: New files.
4236 * Makefile.in (SFILES): Add dwarf2-frame.c.
4237 (dwarf2_frame_h): Define.
4238 (COMMON_OBS): Add dwarf2-frame.o.
4239 (dwarf2-frame.o): Add dependencies.
4240
4241 2003-05-31 Andreas Jaeger <aj@suse.de>
4242
4243 * x86-64-linux-nat.c: Fix comment.
4244
4245 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4246
4247 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4248 function signature.
4249
4250 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4251 have a sigcontext_addr handler.
4252 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4253 sigcontext_addr handler.
4254
4255 2003-05-31 Andrew Cagney <cagney@redhat.com>
4256
4257 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4258 (print_fp_register_row): Replace do_fp_register_row.
4259 (mips_print_fp_register): Add "file" and "frame" parameters.
4260 (mips_print_register): Add "file" and "frame" parameters.
4261 (mips_print_registers_info): Replace mips_do_registers_info.
4262 (mips_gdbarch_init): Set print_registers_info instead of
4263 deprecated_do_registers_info.
4264 (mips_read_fp_register_single): Add "frame" parameter.
4265 (mips_read_fp_register_double): Add "frame" parameter.
4266
4267 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4268
4269 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4270 Fixes a bug where GDB would print the wrong register names for
4271 targets without SSE.
4272
4273 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4274 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4275 registers.
4276
4277 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4278 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4279 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4280 TDEP->sc_sp_offset.
4281
4282 From Michal Ludvig <mludvig@suse.cz>:
4283 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4284 and `sc_num_regs'.
4285 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4286 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4287 I386_ST0_REGNUM): Move here from...
4288 * i386-tdep.c: ... here.
4289 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4290 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4291 registers if possible.
4292 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4293 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4294 Remove variables.
4295 (i386bsd_sc_reg_offset): New variable.
4296 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4297 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4298 TDEP->sc_sp_offset.
4299 (i386fbsd_sc_reg_offset): New variable.
4300 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4301 TDEP->sc_num_regs.
4302 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4303 variables.
4304 (i386fbsd4_sc_reg_offset): New variable.
4305 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4306 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4307 TDEP->sc_sp_offset.
4308 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4309 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4310 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4311 Remove variables.
4312 (i386nbsd_sc_reg_offset): New variable.
4313 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4314 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4315 TDEP->sc_sp_offset.
4316 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4317 Remove variables.
4318 (i386obsd_sc_reg_offset): New variable.
4319 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4320 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4321 TDEP->sc_sp_offset.
4322 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4323 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4324 for frame pointer offset in `struct sigcontext'.
4325
4326 2003-05-31 Andrew Cagney <cagney@redhat.com>
4327
4328 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4329 architecture methods call_dummy_words, sizeof_call_dummy_words,
4330 push_return_address, store_struct_return, and fix_call_dummy. Set
4331 push_dummy_call instead of deprecated_push_arguments.
4332 (mips_store_struct_return): Delete function.
4333 (mips_fix_call_dummy): Delete function.
4334 (mips_push_return_address): Delete function.
4335 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4336 RA_REGNUM and T9_REGNUM.
4337 (mips_n32n64_push_dummy_call): Ditto for
4338 mips_n32n64_push_arguments.
4339 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4340 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4341
4342 2003-05-31 Andrew Cagney <cagney@redhat.com>
4343
4344 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4345 "dummy_addr" to "bp_addr".
4346 * infcall.c (call_function_by_hand): Pass "funaddr" to
4347 gdbarch_push_dummy_call.
4348 * gdbarch.h, gdbarch.c: Re-generate.
4349 * i386-tdep.c (i386_push_dummy_call): Update.
4350 * arm-tdep.c (arm_push_dummy_call): Update.
4351 * d10v-tdep.c (d10v_push_dummy_call): Update.
4352
4353 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4354
4355 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4356 variable declarations.
4357 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4358 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4359 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4360 x86_64_init_frame_pc, x86_64_init_frame_pc,
4361 x86_64_function_has_prologue): Remove prototypes.
4362 (X86_64_NUM_GREGS): New define.
4363 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4364 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4365 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4366 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4367 XMM1_REGNUM): Remove defines.
4368 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4369 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4370 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4371 X86_64_XMM1_REGNUM): New defines.
4372 (struct x86_64_register_info): Renamed from `struct
4373 register_info'. Remove `size' member.
4374 (x86_64_register_info_table): Remove variable.
4375 (x86_64_register_info): New variable.
4376 (X86_64_NUM_REGS): New define.
4377 (X86_64_NUM_GREGS): Remove define.
4378 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4379 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4380 Remove variables.
4381 (x86_54_dwarf2_reg_to_regnum): Remove function.
4382 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4383 (x86_64_dwarf_reg_to_regnum): New function.
4384 (x86_64_register_name): Rewrite.
4385 (x86_64_register_raw_size): Remove function.
4386 (x86_64_register_byte_table): Remove variable.
4387 (x86_64_register_byte): Remove function.
4388 (x86_64_register_virtual_type): Remove function.
4389 (x86_64_register_type): New function.
4390 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4391 x86_64_register_convert_to_raw): Remove functions.
4392 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4393 (x86_64_use_struct_convention): Make static. Adjust for renamed
4394 defines.
4395 (x86_64_frame_init_saved_regs): Remove function.
4396 (x86_64_push_arguments): Make static. Change to accept a regcache
4397 as argument.
4398 (x86_64_store_return_value, x86_64_extract_return_value): Make
4399 static. Rewrite based on i386 counterparts.
4400 (x86_64_push_dummy_call): New function.
4401 (X86_64_NUM_SAVED_REGS): New define.
4402 (x86_64_register_number): Remove function.
4403 (x86_64_store_struct_return): Remove function.
4404 (x86_64_frameless_function_invocation,
4405 x86_64_function_has_prologue): Remove functions.
4406 (PROLOG_BUFSIZE): Remove define.
4407 (struct x86_64_frame_cache): New structure.
4408 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4409 x86_64_frame_cache, x86_64_frame_this_id,
4410 x86_64_frame_prev_register, x86_64_frame_p,
4411 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4412 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4413 functions.
4414 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4415 variables.
4416 (x86_64_skip_prologue): Rewrite in terms of
4417 x86_64_analyze_prologue.
4418 (x86_64_frame_base_address): New function.
4419 (x86_64_frame_base): New variable.
4420 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4421 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4422 set deprecated_fp_regnum, deprecated_register_size,
4423 deprecated_register_bytes, register_raw_size, register_byte,
4424 register_virtual_type, register_convertiable,
4425 register_convert_to_virtual, convert_to_raw,
4426 deprecated_get_saved_register, deprecated_target_read_fp,
4427 deprecated_push_arguments, deprecated_push_return_address,
4428 deprecated_pop_frame, deprecated_store_struct_return,
4429 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4430 frameless_function_invocation, deprecated_frame_saved_pc,
4431 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4432 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4433 deprecated_init_frame_pc and virtual_frame_pointer. Call
4434 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4435 and x86_64_frame_p. Call frame_base_set_default to register
4436 x86_64_frame_base.
4437 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4438 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4439 (_initialize_x86_64_tdep): Remove function.
4440 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4441 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4442 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4443 define.
4444 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4445 (x86_64_linux_sigcontext_addr): Rewrite.
4446 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4447 x86_64_linux_frame_saved_pc): Remove functions.
4448 (x86_64_linux_pc_in_sigtramp): Renamed from
4449 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4450 trampoline.
4451 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4452 Remove_functions.
4453 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4454 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4455 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4456 (x86_64_regmap): Rename to regmap.
4457 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4458 x86_64_num_gregs.
4459 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4460 x86_64_regmap.
4461 (x86_64_fxsave_offset): Remove function.
4462 (supply_fpregset): Simply call x86_64_supply_fxsave.
4463 (fill_fpregset): Simply call x86_64_fill_fxsave.
4464 (fetch_inferior_registers, store_inferior_registers): Avoid
4465 asignment in if-statement.
4466 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4467 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4468 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4469 (fetch_core_registers): Remove function.
4470 (linux_elf_core_fns): Remove.
4471 (offsetoff): Don't define.
4472 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4473 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4474 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4475 add core-regset.o.
4476 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4477 protection against multiple includes instead of NM_X86_64_h. Add
4478 various comments. Include "config/nm-linux.h". Don't include
4479 <signal.h>.
4480 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4481 GET_THREAD_SIGNALS): Remove defines.
4482 (x86_64_register_u_addr, kernel_u_size,
4483 lin_thread_get_thread_signals): Remove prototypes.
4484 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4485 [HAVE_LINK_H]: Don't include "solib.h".
4486 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4487 * config/i386/tm-x86-64linux.h: Fix comments.
4488 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4489 x86-64-tdep.o): Update dependencies.
4490
4491 2003-05-30 Andrew Cagney <cagney@redhat.com>
4492
4493 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4494 Change parameter type to a "struct regcache *".
4495
4496 * gdbarch.sh: Regardless of the multi-arch level, always define
4497 the macro when not already defined.
4498 * gdbarch.h, gdbarch.c: Re-generate.
4499
4500 2003-05-30 Richard Henderson <rth@redhat.com>
4501
4502 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4503 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4504 (alpha_mdebug_frame_this_id): Likewise.
4505 (alpha_mdebug_frame_prev_register): Likewise.
4506 (alpha_mdebug_frame_base_address): Likewise.
4507 (alpha_mdebug_frame_locals_address): Likewise.
4508 (alpha_mdebug_frame_args_address): Likewise.
4509 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4510 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4511 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4512 loop increment.
4513 (alpha_heuristic_frame_this_id): Make static.
4514 (alpha_heuristic_frame_prev_register): Likewise.
4515 (alpha_heuristic_frame_base_address): Likewise.
4516 * alpha-tdep.h: Update.
4517
4518 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4519
4520 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4521 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4522 defenitions.
4523 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4524 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4525 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4526 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4527 I386_ST0_REGNUM): New defines.
4528 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4529 codestream_get): Remove define.
4530 (codestream_next_addr, condestream_addr, condestream_buf,
4531 codestream_off, codestream_cnt): Remove variables.
4532 (codestream_fill, codestream_seek, codestream_read): Remove
4533 functions.
4534 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4535 functionality.
4536 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4537 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4538 i386_frame_saved_pc, i386_saved_pc_after_call,
4539 i386_frame_num_args, i386_frame_init_saved_regs,
4540 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4541 i386_push_arguments): Remove functions.
4542 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4543 functionality. Use i386_analyze_prologue instead of
4544 i386_get_frame_setup.
4545 (I386_NUM_SAVED_REGS): New define.
4546 (struct i386_frame_cache): New structure.
4547 (i386_alloc_frame_cache, i386_analyze_struct_return,
4548 i386_skip_probe, i386_analyze_frame_setup,
4549 i386_analyze_register_saves, i386_analyze_prologue,
4550 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4551 i386_frame_prev_register, i386_sigtramp_frame_cache,
4552 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4553 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4554 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4555 New functions.
4556 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4557 New variables.
4558 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4559 I386_EAX_REGNUM and I386_EDX_REGNUM.
4560 (i386_extract_return_value, i386_store_return_value): Use
4561 I386_ST0_REGNUM where appropriate.
4562 (i386_extract_struct_value_address): Rewrite to use extract_address.
4563 (i386_svr4_pc_in_sigtramp): Add comment.
4564 (i386_svr4_sigcontext_addr): Rewrite.
4565 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4566 TDEP->sc_sp_offset.
4567 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4568 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4569 of new defines. Set push_dummy_call, don't set
4570 deprecated_push_arguments, deprecated_push_return_address,
4571 deprecated_pop_frame. Don't set parm_boundary. Don't set
4572 deprecated_frame_chain, deprecated_frame_saved_pc,
4573 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4574 save_dummy_frame_tos, unwind_pc. Call
4575 frame_unwind_append_predicate and frame_base_set_default. Don't
4576 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4577 Don't set frameless_function_invocation. Don't set
4578 deprecated_register_bytes, deprecated_register_size,
4579 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4580 * i386-linux-tdep.c: Fix formatting in some comments.
4581 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4582 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4583 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4584 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4585 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4586 redundant parentheses.
4587 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4588 (i386_linux_sigcontext_addr): Use it. Rewrite.
4589 (find_minsym_and_objfile): Change name of second argument.
4590 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4591 changed. Use frame_pc_unwind instead of
4592 DEPRECATED_SAVED_PC_AFTER_CALL.
4593 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4594 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4595 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4596 unwinder.
4597 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4598 "dummy-frame.h".
4599 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4600 (_initialize_i386_cygwin_tdep): New prototype.
4601 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4602 deprecated_frame_chain_valid.
4603 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4604 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4605 Rely on the SVR4 defaults.
4606 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4607 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4608
4609 2003-05-30 Andrew Cagney <cagney@redhat.com>
4610
4611 * infcall.c (call_function_by_hand): Always call
4612 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4613
4614 2003-05-30 Richard Henderson <rth@redhat.com>
4615
4616 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4617 increment.
4618
4619 2003-05-29 Jim Blandy <jimb@redhat.com>
4620
4621 Use gdbarch methods for solib stuff on PowerPC Linux.
4622 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4623 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4624 show through.
4625 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4626 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4627 giving the same effect as the #definitions above.
4628
4629 2003-05-29 Adam Fedor <fedor@gnu.org>
4630
4631 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4632 (find_implementation_from_class): Replace it with the standard
4633 case i.e. do nothing.
4634
4635 2003-05-29 Richard Henderson <rth@redhat.com>
4636
4637 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4638 (alpha_linux_sigtramp_offset): Use it. Make static.
4639 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4640 update for new frame model.
4641 * alpha-mdebug-tdep.c: New file.
4642 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4643 (alpha_osf1_init_abi): Install it.
4644 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4645 (linked_proc_desc_table): Remove.
4646 (alpha_frame_past_sigtramp_frame): Remove.
4647 (alpha_dynamic_sigtramp_offset): Remove.
4648 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4649 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4650 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4651 (push_sigtramp_desc): Remove.
4652 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4653 (alpha_cannot_store_register): Likewise.
4654 (alpha_sigcontext_addr): Remove.
4655 (alpha_find_saved_regs): Remove.
4656 (alpha_frame_init_saved_regs): Remove.
4657 (alpha_init_frame_pc_first): Remove.
4658 (read_next_frame_reg): Remove.
4659 (alpha_frame_saved_pc): Remove.
4660 (alpha_saved_pc_after_call): Remove.
4661 (temp_proc_desc, temp_saved_regs): Remove.
4662 (alpha_about_to_return): Remove.
4663 (cached_proc_desc): Remove.
4664 (alpha_frame_chain): Remove.
4665 (alpha_print_extra_frame_info): Remove.
4666 (alpha_init_extra_frame_info): Remove.
4667 (alpha_frame_locals_address): Remove.
4668 (alpha_frame_args_address): Remove.
4669 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4670 (alpha_push_dummy_frame): Remove.
4671 (alpha_pop_frame): Remove.
4672 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4673 (alpha_read_insn): New.
4674 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4675 for different insn encodings.
4676 (alpha_in_lenient_prologue): Remove.
4677 (struct alpha_sigtramp_unwind_cache): New.
4678 (alpha_sigtramp_frame_unwind_cache): New.
4679 (alpha_sigtramp_register_address): New.
4680 (alpha_sigtramp_frame_this_id): New.
4681 (alpha_sigtramp_frame_prev_register): New.
4682 (alpha_sigtramp_frame_unwind): New.
4683 (alpha_sigtramp_frame_p): New.
4684 (struct alpha_heuristic_unwind_cache): New.
4685 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4686 don't count nop insns that occur between functions.
4687 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4688 heuristic_proc_desc, but without the mdebug wrapping.
4689 (alpha_heuristic_frame_this_id): New.
4690 (alpha_heuristic_frame_prev_register): New.
4691 (alpha_heuristic_frame_unwind): New.
4692 (alpha_heuristic_frame_p): New.
4693 (alpha_heuristic_frame_base_address): New.
4694 (alpha_heuristic_frame_base): New.
4695 (alpha_unwind_dummy_id): New.
4696 (alpha_unwind_pc): New.
4697 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4698 frame related deprecated initializations; install replacements.
4699 (alpha_dump_tdep): Remove.
4700 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4701 (alpha_read_insn, alpha_after_prologue,
4702 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4703 alpha_heuristic_frame_prev_register,
4704 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4705 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4706 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4707 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4708
4709 2003-05-29 Andrew Cagney <cagney@redhat.com>
4710
4711 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4712 dependant on the availability of ASSERT_FUNCTION.
4713 (ASSERT_FUNCTION): Do not define when there is no function name.
4714
4715 2003-05-29 Kevin Buettner <kevinb@redhat.com>
4716
4717 From Jimi X <jimix@watson.ibm.com>:
4718 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4719
4720 2003-05-28 Jim Blandy <jimb@redhat.com>
4721
4722 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4723 argument to ptrace to int; the system headers should give it the
4724 right type, and pointers don't fit in ints on powerpc64-*-*.
4725
4726 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4727
4728 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4729 DW_TAG_catch_block.
4730
4731 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4732
4733 * stabsread.c (dbx_lookup_type): Make static.
4734 (read_type): Ditto.
4735 (add_undefined_type): Ditto.
4736 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4737 not export.
4738
4739 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4740
4741 * hpread.c (hpread_has_name): Make static.
4742 (hpread_psymtab_to_symtab): Ditto.
4743 (file_exists): Ditto.
4744 (hpread_call_pxdb): Ditto.
4745 (hpread_pxdb_needed): Ditto.
4746 (hpread_quick_traverse): Ditto.
4747 (hpread_get_header): Ditto.
4748 (hpread_get_lntt): Ditto.
4749 (hpread_get_slt): Ditto.
4750 (class_of): Ditto.
4751
4752 2003-05-25 Andreas Schwab <schwab@suse.de>
4753
4754 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4755 stack_align and deprecated_extra_stack_alignment_needed.
4756 (m68k_stack_align): Delete.
4757
4758 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4759 (m68k_register_virtual_size): Likewise.
4760 (altos_skip_prologue): Remove obsolete function.
4761 (isi_frame_num_args): Likewise.
4762 (news_frame_num_args): Likewise.
4763 (m68k_fix_call_dummy): Make static.
4764 (m68k_push_dummy_frame): Likewise.
4765 (m68k_pop_frame): Likewise.
4766 (m68k_skip_prologue): Likewise.
4767 (m68k_frame_init_saved_regs): Likewise.
4768 (m68k_saved_pc_after_call): Likewise.
4769 (m68k_get_longjmp_target): Make multi-arch.
4770 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4771 structure. Register m68k_get_longjmp_target if enabled.
4772 * m68k-tdep.h (struct gdbarch_tdep): Define.
4773 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4774
4775 * Makefile.in (config.status): Also depend on configure.tgt
4776 and configure.host.
4777 (m68klinux-tdep.o): Update dependencies.
4778 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4779 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4780 (M68K_LINUX_JB_PC): Define.
4781 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4782 and take additional parameter.
4783 (m68k_linux_sigtramp_saved_pc): Update.
4784 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4785 m68k_linux_pc_in_sigtramp, in_plt_section,
4786 find_solib_trampoline_target.
4787 * config/m68k/tm-linux.h: Don't include any tm headers.
4788 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4789 (JB_ELEMENT_SIZE): Likewise.
4790 (JB_PC): Likewise.
4791 (GET_LONGJMP_TARGET): Likewise.
4792 (IN_SIGTRAMP): Likewise.
4793 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4794
4795 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4796
4797 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4798 (sparc32_push_arguments): Re-implement by calling
4799 sparc32_do_push_arguments.
4800
4801 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4802
4803 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4804 SPARC_O1_REGNUM): New defines.
4805 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4806 (sparc32_store_return_value): New function.
4807 (sparc_extract_struct_value_address): Rewrite to operate on a
4808 regcache.
4809 (sparc_gdbarch_init): Don't set
4810 deprecated_extract_struct_value_address. Set
4811 extract_struct_value_address instead. Don't set
4812 deprecated_extract_return_value and deprecated_store_return_value
4813 for 32-bit targets. Set extract_return_value and
4814 store_return_value instead.
4815 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4816 DEPRECTAED_EXTRACT_RETURN_VALUE,
4817 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4818 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4819 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4820 (sparc_store_return_value): Remove prototype.
4821 (sparc32_store_return_value): New prototype.
4822 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4823 Adjust prototypes.
4824
4825 2003-05-24 Mark Kettenis <kettenis@gnu.org>
4826
4827 * sparcnbsd-tdep.c: Include "gdb_string.h".
4828
4829 2003-05-23 Andrew Cagney <cagney@redhat.com>
4830
4831 * p-valprint.c (pascal_val_print): Replace extract_address with
4832 the inline equivalent extract_unsigned_integer.
4833 * jv-valprint.c (java_value_print): Ditto.
4834 * ada-valprint.c (ada_val_print_1): Ditto.
4835 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4836
4837 2003-05-23 Theodore A. Roth <troth@openavr.org>
4838
4839 * blockframe.c (frameless_look_for_prologue): Remove unused
4840 after_prologue variable.
4841
4842 2003-05-23 Mark Kettenis <kettenis@gnu.org>
4843
4844 * blockframe.c (get_pc_function_start): Rewrite to avoid
4845 asignments in if-statements.
4846
4847 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4848
4849 Committed by Elena Zannoni <ezannoni@redhat.com>.
4850 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4851 files, don't relocate absolute symbols (and do use mst_abs).
4852
4853 2003-05-23 Andrew Cagney <cagney@redhat.com>
4854
4855 * objc-lang.c: Include "gdb_assert.h".
4856 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4857 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4858 (gdb_check, gdb_check_fatal): Delete functions.
4859 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4860 gdb_assert.
4861 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4862 * Makefile.in (objc-lang.o): Update dependencies.
4863
4864 2003-05-22 Ian Lance Taylor <ian@airs.com>
4865
4866 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4867 with fprintf_filtered, not fprintf_unfiltered.
4868
4869 2003-05-22 Andrew Cagney <cagney@redhat.com>
4870
4871 * stack.c (frame_info): Inline extract_address, replacing it with
4872 extract_unsigned_integer.
4873 * findvar.c (unsigned_pointer_to_address): Ditto.
4874 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4875 * dwarf2expr.c (dwarf2_read_address): Ditto.
4876 * frame.c (frame_pc_unwind): Update comment.
4877 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4878
4879 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4880
4881 * infptrace.c (detach): Call print_sys_errmsg rather than
4882 perror_with_name to issue warning message when errno is non-zero
4883 after calling ptrace detach.
4884
4885 2003-05-21 J. Brobecker <brobecker@gnat.com>
4886
4887 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4888 macro definitions from here...
4889 * hppa-tdep.c: ...to there.
4890
4891 2003-05-20 Kevin Buettner <kevinb@redhat.com>
4892
4893 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4894 register_ptrace_addr(). Fix all callers.
4895
4896 2003-05-21 Andreas Schwab <schwab@suse.de>
4897
4898 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4899 dependencies.
4900 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4901 end.
4902 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4903 (_initialize_m68k_linux_tdep): New function.
4904 (m68k_linux_frame_saved_pc): Make static.
4905 (m68k_linux_extract_return_value): Likewise.
4906 (m68k_linux_store_return_value): Likewise.
4907 (m68k_linux_extract_struct_value_address): Likewise.
4908 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4909 Remove.
4910 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4911 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4912 (DEPRECATED_FRAME_SAVED_PC): Remove.
4913
4914 2003-05-20 Kris Warkentin <kewarken@qnx.com>
4915
4916 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4917 regset numbering rather than our own.
4918
4919 2003-05-19 David Carlton <carlton@bactrian.org>
4920
4921 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4922
4923 2003-05-19 David Carlton <carlton@bactrian.org>
4924
4925 Partial fix for PR c++/827.
4926 * cp-support.h: Include symtab.h.
4927 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4928 * cp-namespace.c: Update contributors.
4929 (cp_lookup_symbol_nonlocal): New.
4930 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4931 (lookup_symbol_file): Ditto.
4932 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4933 * block.h: Declare block_scope, block_using, block_global_block.
4934 * block.c (block_scope): New.
4935 (block_using, block_global_block): Ditto.
4936 * Makefile.in (cp_support_h): Depend on symtab_h.
4937 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4938
4939 2003-05-19 David Carlton <carlton@bactrian.org>
4940
4941 * language.h (struct language_defn): Add 'la_value_of_this'
4942 and 'la_lookup_symbol_nonlocal' members.
4943 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4944 lookup_symbol_static, lookup_symbol_global,
4945 lookup_symbol_aux_block.
4946 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4947 if we should search fields of this and how to do static/global
4948 lookup.
4949 (lookup_symbol_aux_block): Make extern.
4950 (basic_lookup_symbol_nonlocal): New.
4951 (lookup_symbol_static, lookup_symbol_global): Ditto.
4952 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4953 'la_lookup_symbol_nonlocal' members.
4954 * c-lang.c (c_language_defn, cplus_language_defn)
4955 (asm_language_defn, minimal_language_defn): Ditto.
4956 * jv-lang.c (java_language_defn): Ditto.
4957 * language.c (unknown_language_defn, auto_language_defn)
4958 (local_language_defn): Ditto.
4959 * m2-lang.c (m2_language_defn): Ditto.
4960 * objc-lang.c (objc_language_defn): Ditto.
4961 * scm-lang.c (scm_language_defn): Ditto.
4962 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4963 * p-lang.c (pascal_language_defn): Ditto for both.
4964 * Makefile.in (f-lang.o): Depend on value_h.
4965 (p-lang.o): Ditto.
4966
4967 2003-05-19 David Carlton <carlton@bactrian.org>
4968
4969 * block.h: Declare block_static_block.
4970 * block.c (block_static_block): New.
4971 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4972 lookup_symbol_aux_local, calling block_static_block instead.
4973 (lookup_symbol_aux_local): Delete 'static_block' argument.
4974
4975 2003-05-19 David Carlton <carlton@bactrian.org>
4976
4977 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4978
4979 2003-05-19 Michal Ludvig <mludvig@suse.cz>
4980
4981 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4982 register numbers mapping.
4983
4984 2003-05-18 Adam Fedor <fedor@gnu.org>
4985
4986 * symtab.c (completion_list_objc_symbol): New function.
4987 (make_symbol_completion_list): Use it to add ObjC symbols
4988 when looking though the list.
4989 (language_search_unquoted_string): New function.
4990 (make_file_symbol_completion_list): Use it.
4991
4992 2003-05-18 Andreas Schwab <schwab@suse.de>
4993
4994 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4995 dependencies.
4996 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4997 as m68k_linux_extract_return_value.
4998 (DEPRECATED_STORE_RETURN_VALUE): Define as
4999 m68k_linux_store_return_value.
5000 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5001 m68k_linux_extract_struct_value_address.
5002 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5003 get_next_frame, get_frame_base, get_frame_pc.
5004 (m68k_linux_frame_saved_pc): Use get_frame_base.
5005 (m68k_linux_extract_return_value): New function.
5006 (m68k_linux_store_return_value): New function.
5007 (m68k_linux_extract_struct_value_address): New function.
5008 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5009
5010 * c-exp.y (typebase): Remove duplicate occurence of
5011 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5012 of lookup_signed_typename.
5013
5014 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5015
5016 * dwarf2loc.c (find_location_expression): Change type of second
5017 argument to `size_t *'.
5018 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5019 for size variable.
5020
5021 2003-05-18 David Carlton <carlton@bactrian.org>
5022
5023 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5024 'linkage_name'. Add comment.
5025 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5026 'linkage_name'.
5027 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5028 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5029 (lookup_block_symbol): Ditto.
5030
5031 2003-05-16 Andrew Cagney <cagney@redhat.com>
5032
5033 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5034 * gdbarch.h, gdbarch.c: Re-generate.
5035 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5036 * TODO (REGISTER_BYTES): Delete reference.
5037 * alpha-tdep.c (alpha_gdbarch_init): Update.
5038 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5039 * x86-64-tdep.c (x86_64_init_abi): Update.
5040 * vax-tdep.c (vax_gdbarch_init): Update.
5041 * v850-tdep.c (v850_gdbarch_init): Update.
5042 * sparc-tdep.c (sparc_gdbarch_init): Update.
5043 * sh-tdep.c (sh_gdbarch_init): Update.
5044 * s390-tdep.c (s390_gdbarch_init): Update.
5045 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5046 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5047 (ns32k_gdbarch_init_32382): Update.
5048 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5049 * mcore-tdep.c (mcore_gdbarch_init): Update.
5050 * m68k-tdep.c (m68k_gdbarch_init): Update.
5051 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5052 * ia64-tdep.c (ia64_gdbarch_init): Update.
5053 * i386-tdep.c (i386_gdbarch_init): Update.
5054 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5055 * hppa-tdep.c (hppa_gdbarch_init): Update.
5056 * h8300-tdep.c (h8300_gdbarch_init): Update.
5057 * frv-tdep.c (frv_gdbarch_init): Update.
5058 * cris-tdep.c (cris_gdbarch_init): Update.
5059 * avr-tdep.c (avr_gdbarch_init): Update.
5060 * arm-tdep.c (arm_gdbarch_init): Update.
5061 * sparc-tdep.c (sparc_pop_frame): Update.
5062 * rs6000-tdep.c (rs6000_pop_frame): Update.
5063 * remote.c (init_remote_state): Update.
5064 (remote_prepare_to_store): Update.
5065 * remote-vx.c (vx_prepare_to_store): Update.
5066 * remote-sds.c (sds_fetch_registers): Update.
5067 (sds_prepare_to_store): Update.
5068 * remote-array.c: Update.
5069 * regcache.c (init_legacy_regcache_descr): Update.
5070 (init_regcache_descr): Update.
5071 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5072 (mips_o64_extract_return_value): Update.
5073 * irix5-nat.c (fetch_core_registers): Update.
5074 * irix4-nat.c (fetch_core_registers): Update.
5075 * i386-tdep.h: Update.
5076 * hppa-tdep.c (pa_do_registers_info): Update.
5077 (pa_do_strcat_registers_info): Update.
5078 * cris-tdep.c (cris_register_bytes_ok): Update.
5079 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5080 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5081 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5082 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5083 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5084 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5085 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5086 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5087 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5088 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5089 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5090 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5091 (REGISTER_BYTES_OK): Update.
5092 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5093 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5094
5095 2003-05-16 Ian Lance Taylor <ian@airs.com>
5096
5097 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5098 (vax_print_insn, print_insn_arg): Remove static functions.
5099 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5100 print_insn_vax from opcodes library.
5101 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5102
5103 2003-05-15 Andrew Cagney <cagney@redhat.com>
5104
5105 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5106 * target.h (memory_breakpoint_from_pc): Delete declaration.
5107 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5108 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5109 * monitor.c (monitor_insert_breakpoint): Use
5110 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5111 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5112 * gdbarch.h, gdbarch.c: Re-generate.
5113 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5114 (sparc_gdbarch_init): Set breakpoint_from_pc to
5115 sparc_breakpoint_from_pc.
5116 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5117 (BREAKPOINT_FROM_PC): Define.
5118 (sparc_breakpoint_from_pc): Declare.
5119 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5120 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5121 (BREAKPOINT_FROM_PC): Define.
5122 (BREAKPOINT): Delete macro.
5123 * target.h: Update comment.
5124 * s390-tdep.c (s390_gdbarch_init): Update comments.
5125 * remote.c: Update comments.
5126 * remote-mips.c: Update comments.
5127 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5128 * mem-break.c: Update comment.
5129 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5130 (ia64_memory_insert_breakpoint): Update.
5131 * config/sparc/tm-sparc.h: Update comment.
5132 * config/pa/tm-hppa64.h: Update comment.
5133 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5134 (rs6000_breakpoint_from_pc): Update.
5135 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5136 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5137 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5138 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5139 (mips_breakpoint_from_pc): Update.
5140 (mips_dump_tdep): Update.
5141
5142 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5143 * minsyms.c (lookup_minimal_symbol): Inline
5144 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5145
5146 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5147 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5148 * p-lang.c (pascal_printstr): Ditto.
5149 * objc-lang.c (objc_printstr): Ditto.
5150 * m2-lang.c (m2_printstr): Ditto.
5151 * jv-valprint.c (java_print_value_fields): Ditto.
5152 * f-lang.c (f_printstr): Ditto.
5153 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5154 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5155 for repeat_count_threshold.
5156 * Makefile.in (cp-valprint.o): Update dependencies.
5157
5158 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
5159
5160 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5161 (examine_prologue): Support looking through leaf functions, knowing
5162 they start with mov r2,r12. Support skipping over indirect stores
5163 of the input registers. Upon hitting a non-nop branch instruction
5164 or predicated instruction, bail out by setting lim_pc to the current
5165 pc value in the loop. At the end, if the lim_pc value is still
5166 beyond our calculated value and we have trust_limit set,
5167 use the lim_pc value.
5168
5169 2003-05-15 Andrew Cagney <cagney@redhat.com>
5170
5171 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5172 generic_find_dummy_frame.
5173 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5174 (deprecated_generic_find_dummy_frame): Update.
5175 (deprecated_read_register_dummy): Update.
5176 * frame.c (deprecated_generic_get_saved_register): Update.
5177
5178 2003-05-15 Theodore A. Roth <troth@openavr.org>
5179
5180 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5181 (avr_gdbarch_init): Set breakpoint_from_pc method.
5182
5183 2003-05-15 Andrew Cagney <cagney@redhat.com>
5184
5185 * regcache.c (build_regcache): Set deprecated_register_valid
5186 directly.
5187 (deprecated_grub_regcache_for_register_valid): Delete function.
5188 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5189 declaration.
5190
5191 2003-05-15 David Carlton <carlton@bactrian.org>
5192
5193 Committed by Elena Zannoni <ezannoni@redhat.com>
5194 * symtab.c (lookup_symbol_aux): Delete calls to
5195 lookup_symbol_aux_minsyms.
5196 (lookup_symbol_aux_minsyms): Comment out function and
5197 prototype. Delete lookup by mangled name.
5198
5199 2003-05-14 Kevin Buettner <kevinb@redhat.com>
5200
5201 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5202 correctly indicate an empty stack and ``stack_allocated'' to the
5203 indicate the number of elements initially allocated.
5204 (dwarf_expr_grow_stack): Simplify method for computing new
5205 stack size. Don't loop infinitely if ``stack_len'' is zero.
5206 (execute_stack_op): Move ``ctx->in_reg'' initialization
5207 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5208 be used in conjuction with DW_OP_piece. Revise error message
5209 accordingly.
5210
5211 2003-05-14 Theodore A. Roth <troth@openavr.org>
5212
5213 * MAINTAINERS: Update my email address.
5214 * avr-tdep.c: Ditto.
5215
5216 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
5217
5218 * symtab.h (enum domain_enum): Rename from namespace_enum.
5219 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5220 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5221 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5222 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5223 TYPES_NAMESPACE, METHODS_NAMESPACE.
5224 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5225 (struct symbol, struct partial_symbol): Rename field
5226 'namespace_enum namespace' to 'domain_enum domain'.
5227 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5228 Delete old define kludge for namespace.
5229
5230 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5231 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5232 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5233 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5234 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5235 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5236 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5237 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5238 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5239 occurrences of the above.
5240
5241 2003-05-14 Ian Lance Taylor <ian@airs.com>
5242
5243 * Makefile.in (install-only): Use $(SHELL) when running
5244 mkinstalldirs.
5245
5246 2003-05-13 Ian Lance Taylor <ian@airs.com>
5247
5248 * MAINTAINERS (write after approval): Add myself.
5249
5250 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5251 second and third arguments.
5252 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5253 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5254
5255 2003-05-13 Andrew Cagney <cagney@redhat.com>
5256
5257 * defs.h (store_address): Delete declaration.
5258 findvar.c (store_address): Delete function.
5259 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5260 store_unsigned_integer.
5261 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5262 * v850-tdep.c (v850_push_arguments): Ditto.
5263 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5264 * sh-tdep.c (sh64_get_saved_register): Ditto.
5265 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5266 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5267 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5268 (mips_get_saved_register): Ditto.
5269 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5270 (find_func_descr, ia64_push_arguments): Ditto.
5271 * i386-tdep.c (i386_push_arguments): Ditto.
5272 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5273 * frv-tdep.c (frv_push_arguments): Ditto.
5274 * frame.c (legacy_saved_regs_prev_register): Ditto.
5275 (deprecated_generic_get_saved_register): Ditto.
5276 * findvar.c (unsigned_address_to_pointer): Ditto.
5277 * dwarf2read.c (dwarf2_const_value): Ditto.
5278 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5279 * alpha-tdep.c (alpha_push_arguments): Ditto.
5280
5281 2003-05-12 J. Brobecker <brobecker@gnat.com>
5282
5283 * NEWS: Mention that the hppa-hpux port has been partially
5284 multiarched (32bit ABIT only, so far).
5285
5286 2003-05-11 Andrew Cagney <cagney@redhat.com>
5287
5288 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5289 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5290 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5291 sim/testsuite/sim/arm/misaligned2.ms, and
5292 sim/testsuite/sim/arm/misaligned3.ms.
5293 * disasm.h (struct ui_file): Add opaque struct declaration.
5294 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5295 * frame.h (struct ui_file): Ditto.
5296
5297 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5298
5299 * value.h: Pretty print.
5300
5301 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5302
5303 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5304
5305 2003-05-08 Andrew Cagney <cagney@redhat.com>
5306
5307 * regcache.h (max_register_size): Delete declaration.
5308 * regcache.c (max_register_size): Delete function.
5309 (struct regcache_descr): Delete field "max_register_size".
5310 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5311 registers fit in MAX_REGISTER_SIZE.
5312 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5313 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5314 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5315 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5316 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5317 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5318 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5319 * dve3900-rom.c, hppa-tdep.c: Ditto.
5320
5321 2003-05-08 David Carlton <carlton@math.stanford.edu>
5322
5323 * valops.c (push_word): Fix typo.
5324
5325 2003-05-08 Andrew Cagney <cagney@redhat.com>
5326
5327 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5328 * gdbarch.h: Re-generate.
5329 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5330 (legacy_max_register_raw_size): Delete declaration.
5331 * regcache.c (legacy_max_register_raw_size): Delete function.
5332 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5333 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5334 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5335 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5336 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5337 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5338 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5339 * findvar.c, dwarf2cfi.c: Ditto.
5340
5341 2003-05-08 Andrew Cagney <cagney@redhat.com>
5342
5343 * mips-tdep.c (read_signed_register): New function, moved to here
5344 from "regcache.c".
5345 (read_signed_register_pid): Ditto.
5346 * regcache.c (read_signed_register_pid): Delete function, moved to
5347 "mips-tdep.c".
5348 (read_signed_register): Ditto.
5349 * regcache.h (read_signed_register): Delete declaration.
5350 (read_signed_register_pid): Delete declaration.
5351
5352 2003-05-08 Andrew Cagney <cagney@redhat.com>
5353
5354 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5355 * gdbarch.h: Re-generate.
5356 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5357 (legacy_max_register_virtual_size): Delete declaration.
5358 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5359 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5360 * tracepoint.c (memrange_sortmerge): Ditto.
5361 * sparc-tdep.c (sparc_print_registers): Ditto.
5362 * regcache.c (legacy_max_register_virtual_size): Delete function.
5363
5364 2002-05-08 J. Brobecker <brobecker@gnat.com>
5365
5366 * fork-child.c (escape_bang_in_quoted_argument): New function.
5367 (fork_inferior): Escape '!' characters in quoted arguments
5368 only when needed.
5369
5370 2003-05-08 J. Brobecker <brobecker@gnat.com>
5371
5372 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5373 the language of the CU is not currently supported by GDB.
5374
5375 2003-05-08 J. Brobecker <brobecker@gnat.com>
5376
5377 * defs.h (language): Add language_minimal enum value.
5378 * c-lang.c (minimal_language_defn): New language definition.
5379 (_initialize_c_language): Add the new minimal language to the list
5380 of languages known to GDB.
5381
5382 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5383
5384 * frame.c (get_frame_type): Don't attempt to lazily initialize
5385 frame's unwinder for legacy frames.
5386
5387 2003-05-07 Andrew Cagney <cagney@redhat.com>
5388
5389 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5390 and "regcache" parameters.
5391 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5392
5393 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5394
5395 * dwarf2read.c (dwarf_decode_lines): Only use output of
5396 check_cu_functions() when calling record_line(). Do not update
5397 the current address.
5398
5399 2003-05-07 Andrew Cagney <cagney@redhat.com>
5400
5401 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5402 code.
5403
5404 2003-05-07 Jim Blandy <jimb@redhat.com>
5405
5406 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5407 'maint info symtabs' and 'maint info psymtabs'.
5408 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5409 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5410 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5411 Declarations updated.
5412 * maint.c (maintenance_list_command): Delete.
5413 (_initialize_maint_cmds): Update calls to add_cmd.
5414 * gdbcmd.h (maintenancelistlist): Delete declaration.
5415 * cli/cli-cmds.c (maintenancelistlist): Delete.
5416 (init_cmd_lists): Don't initialize it.
5417 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5418
5419 2003-05-07 Andrew Cagney <cagney@redhat.com>
5420
5421 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5422 "regcache".
5423 (d10v_print_registers_info): Update.
5424 (d10v_dmap_register, d10v_imap_register): Delete functions.
5425 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5426 and "imap_register".
5427 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5428 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5429 * arch-utils.c (generic_remote_translate_xfer_address): Add
5430 "regcache" and "gdbarch" parameters.
5431 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5432 parameter. Change class to multi-arch.
5433 * gdbarch.h, gdbarch.c: Re-generate.
5434 * remote.c (remote_xfer_memory): Use
5435 gdbarch_remote_translate_xfer_address.
5436
5437 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5438
5439 * infrun.c (prev_pc): Move declaration ahead of proceed().
5440 (proceed): Refresh prev_pc value before resuming.
5441 (stop_stepping): Remove code to refresh prev_pc.
5442
5443 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5444
5445 * nto-tdep.c: Removed stray comment.
5446
5447 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5448
5449 * i386-nto-tdep.c: Fix old K&R function definitions.
5450 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5451 Also change add_show_from_set() call to add_setshow_cmd().
5452 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5453
5454 2003-05-05 Andrew Cagney <cagney@redhat.com>
5455
5456 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5457 (fprint_dummy_frames): New function.
5458 (maintenance_print_dummy_frames): New function.
5459 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5460 * frame.c (fprint_frame_id): Make global.
5461 * frame.h (fprint_frame_id): Declare.
5462 * Makefile.in (dummy-frame.o): Update dependencies.
5463
5464 2003-05-05 Andrew Cagney <cagney@redhat.com>
5465
5466 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5467 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5468 SIZEOF_CALL_DUMMY_WORDS.
5469 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5470 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5471 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5472 CALL_DUMMY_BREAKPOINT_OFFSET.
5473 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5474 CALL_DUMMY_START_OFFSET.
5475 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5476 * gdbarch.h, gdbarch.c: Re-generate.
5477 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5478 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5479 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5480 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5481 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5482 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5483 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5484 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5485 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5486 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5487 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5488 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5489 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5490 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5491 * config/sparc/tm-sparc.h: Update.
5492
5493 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5494
5495 * configure.tgt: Add i[3456]86-*-nto*.
5496 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5497 * nto-tdep.c: New file. Neutrino target support routines.
5498 * nto-tdep.h: New file. Neutrino target header.
5499 * config/tm-qnxnto.h: New file.
5500 * config/i386/i386nto.mt: New file.
5501 * config/i386/tm-i386nto.h: New file.
5502
5503 2003-05-04 Andrew Cagney <cagney@redhat.com>
5504
5505 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5506 (load_infrun_state): Ditto.
5507 (struct thread_info): Drop "prev_func_name" field.
5508 * thread.c (load_infrun_state): Update.
5509 (save_infrun_state): Update.
5510 * infrun.c (prev_func_name): Delete variable.
5511 (init_wait_for_inferior): Do not clear prev_func_name.
5512 (stop_stepping, keep_going, context_switch): Do not swap
5513 prev_func_name.
5514 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5515 instead of PC_IN_SIGTRAMP.
5516
5517 2003-05-04 Andrew Cagney <cagney@redhat.com>
5518
5519 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5520 REGISTER_BYTE with register_offset_hack.
5521 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5522 that REGISTER_BYTE is consistent with the regcache.
5523 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5524 * gdbarch.h, gdbarch.c: Regenerate.
5525
5526 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5527
5528 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5529 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5530
5531 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5532
5533 2003-05-03 J. Brobecker <brobecker@gnat.com>
5534
5535 From Thierry Schneider <tpschneider1@yahoo.com>
5536 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5537 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5538 (mi-cmd-symbol.o): Add rule.
5539
5540 2003-05-03 Andrew Cagney <cagney@redhat.com>
5541
5542 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5543 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5544 * gdbarch.h, gdbarch.c: Re-generate.
5545 * d10v-tdep.c (d10v_push_dummy_code): New function.
5546 (d10v_gdbarch_init): Set push_dummy_code.
5547 * infcall.c (legacy_push_dummy_code): New function.
5548 (generic_push_dummy_code): New function.
5549 (push_dummy_code): New function.
5550 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5551 instead of dummy_addr, to push_dummy_call. Move call to
5552 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5553 switch.
5554 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5555
5556 2003-05-03 Andrew Cagney <cagney@redhat.com>
5557
5558 * disasm.h (print_insn): Declare.
5559 * disasm.c (init_gdb_disassemble_info): New function.
5560 (gdb_disassembly): Call init_gdb_disassemble_info.
5561 (gdb_print_insn): New function.
5562 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5563 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5564 * mcore-tdep.c: Include "disasm.h"
5565 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5566 * d10v-tdep.c: Include "disasm.h".
5567 (display_trace): Call gdb_print_insn, instead of print_insn.
5568 (print_insn): Delete function.
5569 * printcmd.c: Include "disasm.h".
5570 (print_insn): Delete function.
5571 (print_formatted): Call gdb_print_insn, instead of print_insn.
5572 * Makefile.in (printcmd.o): Update dependencies.
5573 (mcore-tdep.o, d10v-tdep.o): Ditto.
5574
5575 2003-05-02 Andrew Cagney <cagney@redhat.com>
5576
5577 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5578 PC_REGNUM, re-indent.
5579 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5580 PC_REGNUM isn't set.
5581
5582 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5583 * gdbarch.h, gdbarch.c: Re-generate.
5584 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5585 register_virtual_size, pc_regnum, or register_bytes.
5586 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5587 (d10v_register_type): Use D10V_PC_REGNUM.
5588 (d10v_print_registers_info, d10v_read_pc): Ditto.
5589 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5590 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5591
5592 2003-05-02 David Carlton <carlton@bactrian.org>
5593
5594 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5595 the name with mstrsave.
5596
5597 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5598
5599 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5600 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5601 (host_charset_name, target_charset_name): New vars for use by
5602 set/show commands.
5603 (host_charset_enum, target_charset_enum): New enums for set/show
5604 commands.
5605 (set_charset_sfunc, set_host_charset_sfunc,
5606 set_target_charset_sfunc): New functions.
5607 (set_host_charset, set_target_charset): Make static.
5608 (list_charsets, set_host_charset_command,
5609 set_target_charset_command): Delete functions.
5610 (show_charset_command): Rewrite as....
5611 (show_charset): Hook this up with the set/show command mechanism.
5612 (_initialize_charset): Change names of charsets to match the
5613 set/show enums. Use host_charset_name and target_charset_name.
5614 Use set/show mechanism for charset, host-charset, target-charset
5615 commands. Do not make 'show host-charset' and 'show
5616 target-charset' be aliases of 'show charset'.
5617
5618 * charset.h (set_host_charset, set_target_charset): Don't export,
5619 they are not used outside the file.
5620
5621 2003-05-01 Andrew Cagney <cagney@redhat.com>
5622
5623 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5624 (gdb_disassembly): Make "di" non static, always initialize and
5625 cleanup. Always use dis_asm_read_memory.
5626 (gdb_dis_asm_read_memory): Delete function.
5627
5628 2003-05-01 Andrew Cagney <cagney@redhat.com>
5629
5630 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5631 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5632
5633 2003-04-30 Andrew Cagney <cagney@redhat.com>
5634
5635 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5636 "tm_print_insn_info".
5637 (TARGET_PRINT_INSN_INFO): Delete macro.
5638 (dis_asm_read_memory): Delete function declaration.
5639 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5640 (tm_print_insn_info): Delete variable definition.
5641 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5642 * gdbarch.h, gdbarch.c: Re-generate.
5643 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5644 "deprecated_tm_print_insn_info".
5645 * mcore-tdep.c (mcore_dump_insn): Ditto.
5646 * mips-tdep.c (mips_gdbarch_init): Ditto.
5647 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5648 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5649 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5650 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5651 instead of TARGET_PRINT_INSN_INFO, add comment.
5652 * s390-tdep.c (s390_get_frame_info): Instead of
5653 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5654 (s390_check_function_end, s390_is_sigreturn): Ditto.
5655 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5656 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5657 * disasm.c: Include "gdbcore.h".
5658 (_initialize_disasm): New function, initialize
5659 "deprecated_tm_print_insn_info".
5660 (deprecated_tm_print_insn_info): New variable.
5661 (dis_asm_read_memory): Moved from "corefile.c", made static.
5662 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5663 * Makefile.in (disasm.o): Update dependencies.
5664
5665 2003-04-30 Andrew Cagney <cagney@redhat.com>
5666
5667 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5668
5669 2003-04-29 Adam Fedor <fedor@gnu.org>
5670
5671 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5672 * infcall.c (find_function_addr): Make non-static.
5673 * infcall.h (find_function_addr): Declare.
5674 * Makefile.in (eval.o): Update dependencies.
5675
5676 2003-04-28 Adam Fedor <fedor@gnu.org>
5677
5678 * symtab.c (symbol_find_demangled_name): Check for and demangle
5679 ObjC symbols.
5680 (symbol_init_demangled_name): Init for language_objc as well.
5681
5682 2003-04-28 Andrew Cagney <cagney@redhat.com>
5683
5684 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5685 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5686 * gdbarch.h, gdbarch.c: Re-generate.
5687 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5688 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5689 * inferior.h (deprecated_read_fp): Rename read_fp.
5690 (generic_target_read_fp): Delete declaration.
5691 * regcache.c (generic_target_read_fp): Delete function.
5692 (deprecated_read_fp): Replace read_fp, use
5693 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5694 * d10v-tdep.c (d10v_read_fp): Delete function.
5695 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5696
5697 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5698 deprecated_target_read_fp to generic_target_read_fp.
5699 * sh-tdep.c (sh_gdbarch_init): Ditto.
5700 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5701 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5702 * frv-tdep.c (frv_gdbarch_init): Ditto.
5703
5704 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5705 deprecated_fp_regnum.
5706 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5707 * vax-tdep.c (vax_gdbarch_init): Ditto.
5708 * v850-tdep.c (v850_gdbarch_init): Ditto.
5709 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5710 * sh-tdep.c (sh_gdbarch_init): Ditto.
5711 * s390-tdep.c (s390_gdbarch_init): Ditto.
5712 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5713 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5714 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5715 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5716 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5717 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5718 * i386-tdep.c (i386_gdbarch_init): Ditto.
5719 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5720 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5721 * frv-tdep.c (frv_gdbarch_init): Ditto.
5722 * cris-tdep.c (cris_gdbarch_init): Ditto.
5723 * avr-tdep.c (avr_gdbarch_init): Ditto.
5724 * arm-tdep.c (arm_gdbarch_init): Ditto.
5725 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5726
5727 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5728 * v850-tdep.c (v850_gdbarch_init): Ditto.
5729 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5730 * sh-tdep.c (sh_gdbarch_init): Ditto.
5731 * s390-tdep.c (s390_gdbarch_init): Ditto.
5732 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5733 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5734 * mips-tdep.c (mips_gdbarch_init): Ditto.
5735 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5736 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5737 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5738 * frv-tdep.c (frv_gdbarch_init): Ditto.
5739 * avr-tdep.c (avr_gdbarch_init): Ditto.
5740 * arm-tdep.c (arm_gdbarch_init): Ditto.
5741
5742 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5743 DEPRECATED_FP_REGNUM.
5744 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5745 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5746 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5747 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5748 (sparc32_register_virtual_type): Ditto.
5749 * sh-tdep.c (sh64_frame_chain): Ditto.
5750 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5751 (sh_nofp_frame_init_saved_regs): Ditto.
5752 (sh64_nofp_frame_init_saved_regs): Ditto.
5753 (sh_fp_frame_init_saved_regs): Ditto.
5754 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5755 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5756 * procfs.c (procfs_fetch_registers): Ditto.
5757 (procfs_store_registers): Ditto.
5758 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5759 (store_inferior_registers, fetch_core_registers): Ditto.
5760 (fetch_kcore_registers, clear_regs): Ditto.
5761 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5762 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5763 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5764 * nlm/i386.c (do_status): Ditto.
5765 * mipsv4-nat.c (supply_gregset): Ditto.
5766 * mips-tdep.c: Ditto for comments.
5767 * mips-nat.c (fetch_inferior_registers): Ditto.
5768 (store_inferior_registers, fetch_core_registers): Ditto.
5769 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5770 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5771 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5772 (i386_do_pop_frame, i386_register_type): Ditto.
5773 * hppa-tdep.c (hppa_frame_chain): Ditto.
5774 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5775 (hppa_pop_frame, hppa_read_fp): Ditto.
5776 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5777 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5778 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5779 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5780 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5781 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5782 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5783 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5784 * blockframe.c: Ditto for comments.
5785 * arch-utils.h: Ditto for comments.
5786 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5787 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5788 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5789 * alpha-tdep.h: Ditto for comments.
5790 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5791 (alpha_cannot_store_register): Ditto.
5792 (alpha_push_dummy_frame): Ditto.
5793 * alpha-nat.c (supply_gregset): Ditto.
5794
5795 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5796 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5797 * config/sparc/tm-sparc.h: Update comment.
5798
5799 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5800 deprecated_read_fp instead of TARGET_READ_FP.
5801 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5802 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5803 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5804 deprecated_read_fp instead of read_fp.
5805 * s390-tdep.c (s390_push_arguments): Ditto.
5806 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5807 * frame.h: Ditto in comments.
5808 * frame.c (legacy_get_prev_frame): Ditto.
5809 * dummy-frame.c (dummy_frame_this_id): Ditto.
5810 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5811
5812 2003-04-28 Andrew Cagney <cagney@redhat.com>
5813
5814 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5815 * gdbarch.h, gdbarch.c: Re-generate.
5816 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5817 * vax-tdep.c (_initialize_vax_tdep): Update.
5818 * v850-tdep.c (_initialize_v850_tdep): Update.
5819 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5820 * s390-tdep.c (_initialize_s390_tdep): Update.
5821 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5822 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5823 * mips-tdep.c (_initialize_mips_tdep): Update.
5824 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5825 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5826 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5827 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5828 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5829 * frv-tdep.c (_initialize_frv_tdep): Update.
5830 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5831 (_initialize_cris_tdep): Update.
5832 * arch-utils.c (legacy_print_insn): Update.
5833 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5834
5835 2003-04-26 Adam Fedor <fedor@gnu.org>
5836
5837 * linespec.c (decode_objc): New function to decode ObjC calls
5838 (decode_line_1): Check for ObjC calls (using decode_objc)
5839 * Makefile (linespec.o): Update dependencies.
5840
5841 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
5842
5843 * breakpoint.h (struct breakpoint_ops): New.
5844 (struct breakpoint): Add ops member.
5845
5846 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5847 (mention): Use new breakpoint ops member.
5848 (set_raw_breakpoint): Initialize ops field to NULL.
5849 (print_exception_catchpoint, print_one_exception_catchpoint)
5850 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5851 (gnu_v3_exception_catchpoint_ops): New.
5852 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5853
5854 2003-04-25 Adam Fedor <fedor@gnu.org>
5855
5856 * Makefile.in (COMMON_OBS): Add objc-lang.o
5857
5858 2003-04-25 Andrew Cagney <cagney@redhat.com>
5859
5860 * d10v-tdep.c (print_insn): Delete function.
5861 (display_trace): Use TARGET_PRINT_INSN.
5862 (_initialize_d10v_tdep): Do not set tm_print_insn.
5863 (d10v_gdbarch_init): Set print_insn.
5864
5865 2003-04-25 Andrew Cagney <cagney@redhat.com>
5866
5867 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5868 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5869 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5870 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5871 (nr_dmap_regs, a0_regnum): ... new functions.
5872 (d10v_print_registers_info): Use a0_regnum, use register_size.
5873 (d10v_register_byte): Delete function.
5874 (d10v_register_raw_size): Delete function.
5875 (d10v_register_type): Use a0_regnum.
5876 (d10v_print_registers_info): Use a0_regnum.
5877 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5878 (d10v_gdbarch_init): Do not set register_byte or
5879 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5880 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5881 extract_address.
5882 (trace_command): Use XCALLOC.
5883 (print_insn): Delete reference to tm_print_insn.
5884 (saved_regs_unwinder): Use store_unsigned_integer instead of
5885 store_address.
5886 * frame.h (FRAME_OBSTACK_CALLOC): Define
5887
5888 2003-04-25 David Carlton <carlton@bactrian.org>
5889
5890 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5891
5892 2003-04-24 Adam Fedor <fedor@gnu.org>
5893
5894 * objc-lang.c: Include "valprint.h"
5895 * Makefile.in (objc-lang.o): Update dependencies.
5896
5897 2003-04-24 Adam Fedor <fedor@gnu.org>
5898
5899 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5900 architecture dependant compilation and mark as unimplemented
5901 (until they get put in the gdbarch vector).
5902
5903 2003-04-23 David Carlton <carlton@bactrian.org>
5904
5905 * cp-support.c (cp_find_first_component): Accept 'operator' in
5906 more locations.
5907
5908 2003-04-23 Andrew Cagney <cagney@redhat.com>
5909
5910 * infcall.c (call_function_by_hand): Eliminate redundant
5911 indentation. Move "saved_async" and "old_cleanups" to where they
5912 are needed.
5913
5914 2003-04-23 Andrew Cagney <cagney@redhat.com>
5915
5916 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5917 and "buffer". Move the "name" code to where it is needed.
5918
5919 2003-04-23 Andrew Cagney <cagney@redhat.com>
5920
5921 * infcall.c (call_function_by_hand): Move variables "start_sp",
5922 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5923 code to ON_STACK switch branch.
5924
5925 2003-04-23 Andrew Cagney <cagney@redhat.com>
5926
5927 * infcall.c (call_function_by_hand): Make declaration of "i",
5928 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5929 lint.
5930
5931 2003-04-23 Andrew Cagney <cagney@redhat.com>
5932
5933 * infcall.c (call_function_by_hand): Delete variable
5934 "n_method_args". Localize "param_type"'s declaration to the loop
5935 that it is used. Reinstate code assigning to said variable -
5936 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5937 Rationalize code using "param_type".
5938
5939 2003-04-22 Andrew Cagney <cagney@redhat.com>
5940
5941 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5942 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5943 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5944 to DEPRECATED_PUSH_RETURN_ADDRESS.
5945
5946 2003-04-22 Kevin Buettner <kevinb@redhat.com>
5947
5948 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5949 on the DWARF2 register number prior to fetching a register.
5950
5951 2003-04-22 J. Brobecker <brobecker@gnat.com>
5952
5953 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5954 Update all the tests using SOFT_FLOAT considering the fact that
5955 this macro was always set to 0.
5956 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5957 considering the fact that this macro was always set to 0.
5958 * hppa-tdep.h (hppa_store_return_value): Likewise.
5959 (hppa_extract_return_value): Likewise.
5960
5961 2003-04-22 J. Brobecker <brobecker@gnat.com>
5962
5963 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5964 the hppa-pro target only.
5965
5966 2003-04-21 J. Brobecker <brobecker@gnat.com>
5967
5968 Ongoing multi-arch conversion effort for HP/UX:
5969 * config/pa/tm-hppa.h: Move all macro that are no longer
5970 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5971 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5972
5973 2003-04-21 J. Brobecker <brobecker@gnat.com>
5974
5975 * config/pa/tm-hppa.h: Obsolete a section that was only used
5976 for hppa-pro.
5977
5978 2003-04-21 J. Brobecker <brobecker@gnat.com>
5979
5980 Ongoing multi-arch conversion for HP/UX.
5981 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5982 if already defined (allows hppa64 to stay non-multiarched for now).
5983 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5984
5985 2003-04-21 Andrew Cagney <cagney@redhat.com>
5986
5987 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5988
5989 2003-04-21 Andrew Cagney <cagney@redhat.com>
5990
5991 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5992 "i386_num_mmx_regs".
5993
5994 2003-04-21 Andrew Cagney <cagney@redhat.com>
5995
5996 * infcall.c: New file.
5997 * infcall.h: New file.
5998 * valarith.c: Include "infcall.h".
5999 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6000 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6001 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6002 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6003 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6004 (SFILES): Add "infcall.c"
6005 (COMMON_OBS): Add "infcall.o".
6006 (infcall.o): Specify dependencies.
6007 * value.h (call_function_by_hand): Delete declaration.
6008 * inferior.h (run_stack_dummy): Delete declaration.
6009 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6010 (run_stack_dummy): Move to "infcall.c", merged into
6011 call_function_by_hand.
6012 * valops.c (call_function_by_hand): Moved to "infcall.c".
6013 (find_function_addr, value_arg_coerce): Ditto.
6014 (unwindonsignal_p, coerce_float_to_double): Ditto.
6015 (_initialize_valops): Move "set/show coerce-float-to-double", and
6016 "set/show unwindonsignal" commands to "infcall.c".
6017 * v850-tdep.c, target.h: Update comments.
6018 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6019 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6020 (sh64_init_extra_frame_info): Update comments.
6021 * mn10300-tdep.c: Update comments.
6022 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6023 * config/sparc/tm-sparc.h: Update comments.
6024 * breakpoint.h: Update comments.
6025 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6026 * arm-tdep.c: Update comment.
6027
6028 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6029
6030 * i386-tdep.c (i386_num_register_names): New variable.
6031 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6032 (MM0_REGNUM): Remove redundant parentheses in define.
6033 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6034 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6035 i386_mxcsr_regnum_p): Remove redundant parentheses.
6036 (i386_register_name): Use i386_num_register_names.
6037
6038 * i386-tdep.c (i386_extract_return_value,
6039 i386_store_return_value): Correct check for availability of
6040 floating-point registers.
6041
6042 * i386-tdep.c (i386_frame_num_args): Remove function.
6043 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6044
6045 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6046 mmx_regnum_to_fp_regnum. Adjust all callers.
6047
6048 * i386-tdep.c (i386_get_longjmp_target): Use
6049 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6050 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6051 extract_address.
6052
6053 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6054
6055 * core-regset.c: Update comments to reflect reality. Re-order
6056 includes.
6057 (fetch_core_registers): Use switch instead of if. Remove
6058 redundant prototype.
6059
6060 2003-04-18 Jim Blandy <jimb@redhat.com>
6061
6062 * s390-tdep.c (s390_frame_align): New function.
6063 (s390_gdbarch_init): Register it with the gdbarch object.
6064
6065 2003-04-17 Richard Henderson <rth@redhat.com>
6066
6067 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6068
6069 2003-04-17 Michael Snyder <msnyder@redhat.com>
6070 Karen Bennet <bennet@redhat.com>
6071
6072 Committed by Elena Zannoni <ezannoni@redhat.com>
6073 * gdb_gcore.sh: New script to create a core dump of a process.
6074
6075 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
6076
6077 * values.c (value_being_returned): Don't fetch the return
6078 value if the return type is void.
6079
6080 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6081
6082 * thread-db.c: Reindented.
6083
6084 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6085
6086 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6087 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6088 as types.
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114 2003-04-16 Kevin Buettner <kevinb@redhat.com>
6115
6116 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6117 the size of ``long double'' to 16, instead of 8.
6118
6119 2003-04-16 Mark Kettenis <kettenis@gnu.org>
6120
6121 * i386-linux-nat.c: Add some whitespace to make things more
6122 readable.
6123 (fetch_register, store_register, fetch_inferior_registers,
6124 store_inferior_registers): Get rid of assignment in if-statement.
6125 (store_register): Fix typo in error message.
6126
6127 2003-04-16 Andrew Cagney <cagney@redhat.com>
6128
6129 * utils.c (xmmalloc): Always allocate something, matches
6130 libiberty/xmalloc's semantics.
6131 (xmrealloc, xmcalloc): Ditto.
6132
6133 2003-04-16 Andrew Cagney <cagney@redhat.com>
6134
6135 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6136 update comments.
6137 (get_frame_type): Initialize unwind and type when needed.
6138 (get_frame_id, frame_register_unwind): Ditto.
6139
6140 2003-04-16 Andrew Cagney <cagney@redhat.com>
6141
6142 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6143 obsolete.
6144 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6145 * sparcl-stub.c: Obsolete file.
6146 * config/sparc/tm-sparclet.h: Obsolete file.
6147 * sparclet-stub.c: Obsolete file.
6148 * sparclet-rom.c: Obsolete file.
6149 * sparcl-tdep.c: Obsolete file.
6150 * config/sparc/tm-sparclite.h: Obsolete file.
6151 * config/sparc/sparclite.mt: Obsolete file.
6152 * config/sparc/sparclet.mt: Obsolete file.
6153 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6154 sparc86x-*-* obsolete.
6155
6156 2003-04-15 David Carlton <carlton@math.stanford.edu>
6157
6158 * Makefile.in (SFILES): Add cp-namespace.c.
6159 (COMMON_OBS): Add cp-namespace.o.
6160 (block.o): Depend on gdb_obstack_h and cp_support_h.
6161 (buildsym.o): Depend on cp_support_h.
6162 (cp-namespace.o): New.
6163 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6164 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6165 (dwarf2read.o): Depend on cp_support_h.
6166 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6167 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6168 processing_current_namespace.
6169 (read_namespace): Update processing_current_namespace; check for
6170 anonymous namespaces.
6171 (dwarf2_name): New function.
6172 (dwarf2_extension): Ditto.
6173 * cp-support.h: Update copyright, contributors.
6174 Add inclusion guards.
6175 Add opaque declaration for structs obstack, block, symbol.
6176 (struct using_direct): New struct.
6177 Add declarations for cp_find_first_component,
6178 cp_entire_prefix_len, processing_has_namespace_info,
6179 processing_current_namespace, cp_is_anonymous,
6180 cp_add_using_directive, cp_initialize_namespace,
6181 cp_finalize_namespace, cp_set_block_scope,
6182 cp_scan_for_anonymous_namespaces.
6183 * cp-namespace.c: New file.
6184 * cp-support.c: Update copyright.
6185 Include ctype.h, gdb_assert.h, gdbcmd.h.
6186 New variable maint_cplus_cmd_list.
6187 (cp_find_first_component): New function.
6188 (cp_entire_prefix_len, maint_cplus_command)
6189 (first_component_command, _initialize_cp_support): Ditto.
6190 * buildsym.c: Include cp-support.h.
6191 New variable using_list.
6192 (add_symbol_to_list): Check for anonymous namespaces.
6193 (finish_block): Set block's scope.
6194 (start_symtab): Initialize C++ namespace support.
6195 (end_symtab): Finalize C++ namespace support.
6196 * block.h: Add opaque declarations for structs
6197 block_namespace_info, using_direct, and obstack.
6198 Add declarations for block_set_scope and block_set_using.
6199 (struct block): Add 'language_specific' member.
6200 (BLOCK_NAMESPACE): New macro.
6201 * block.c: Include gdb_obstack.h and cp-support.h.
6202 (struct block_namespace_info): New struct.
6203 (block_set_scope): New function.
6204 (block_set_using, block_initialize_namespace): Ditto.
6205
6206 2003-04-14 Kevin Buettner <kevinb@redhat.com>
6207
6208 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6209 (locate_base): Return early if there aren't any link map offsets.
6210 (svr4_solib_create_inferior_hook): Warn if shared library support
6211 is unavailable.
6212
6213 2003-04-14 David Carlton <carlton@math.stanford.edu>
6214
6215 * symtab.c (symbol_set_names): Add prefix when storing Java names
6216 in hash table. Fix for PR java/1039.
6217
6218 2003-04-14 David Carlton <carlton@math.stanford.edu>
6219
6220 * symtab.c (symbol_set_names): Rename 'name' arg to
6221 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6222 * symtab.h: Change 'name' argument in declaration of
6223 symbol_set_names to 'linkage_name'.
6224 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6225
6226 2003-04-14 Andrew Cagney <cagney@redhat.com>
6227
6228 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6229 return the fully sign-extended register value.
6230 (get_frame_pointer): Ditto.
6231 (mips_pop_frame): Initialize "proc_desc" after checking for a
6232 dummy frame.
6233
6234 2003-04-14 Andrew Cagney <cagney@redhat.com>
6235
6236 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6237 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6238 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6239 (mips_push_register): Delete function.
6240 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6241 PUSH_FP_REGNUM.
6242
6243 2003-04-14 Jim Blandy <jimb@redhat.com>
6244
6245 * symmisc.c: #include "gdb_regex.h".
6246 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6247 functions.
6248 * maint.c (maintenance_list_command): New function.
6249 (_initialize_maint_cmds): Register the above as commands.
6250 * symtab.h (maintenance_list_symtabs,
6251 maintenance_list_psymtabs): New declarations.
6252 * cli/cli-cmds.c (maintenancelistlist): New variable.
6253 (init_cmd_lists): Initialize it.
6254 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6255 * gdbcmd.h (maintenancelistlist): New declaration.
6256 * Makefile.in (symmisc.o): Update dependencies.
6257
6258 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
6259
6260 * s390-nat.c: Include asm/types.h for addr_t.
6261
6262 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
6263
6264 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6265 actually incoming type.
6266
6267 2003-04-13 Andrew Cagney <cagney@redhat.com>
6268
6269 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6270 get_next_frame and get_frame_saved_regs.
6271
6272 2003-04-13 Andrew Cagney <cagney@redhat.com>
6273
6274 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6275 of gdbarch_num_regs.
6276
6277 2003-04-13 Andrew Cagney <cagney@redhat.com>
6278
6279 * frame.h: Mention what replaced what in "struct frame_info".
6280 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6281 deprecated_update_frame_base_hack and
6282 deprecated_update_frame_pc_hack.
6283 * hppa-tdep.c: Ditto.
6284
6285 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6286
6287 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6288 to read_reg and update its comment. Remove regnum member.
6289 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6290 Don't call read_reg when setting in_reg. Call read_reg to get
6291 the frame base if it's in a register. Return the register number
6292 on the stack instead of in the context. Remove extra arguments
6293 to read_reg.
6294 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6295 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6296 the register number on the expression stack.
6297 (needs_frame_read_reg): Remove extra arguments.
6298
6299 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6300
6301 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6302 made non-static.
6303 (execute_stack_op): All callers updated.
6304 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6305 * dwarf2loc.c (find_location_expression): New function.
6306 (dwarf_expr_frame_base): Call it.
6307 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6308 (dwarf2_tracepoint_var_ref): New function, broken out from
6309 locexpr_tracepoint_var_ref.
6310 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6311 Make static.
6312 (loclist_read_variable, loclist_read_needs_frame): New functions.
6313 (loclist_describe_location, loclist_tracepoint_var_ref): New
6314 functions.
6315 (dwarf2_loclist_funcs): New struct location_funcs.
6316 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6317 (struct dwarf2_locexpr_baton): Add comments.
6318 (dwarf2_loclist_funcs): New extern.
6319 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6320 base_address and base_known.
6321 (dwarf_loc_buffer): New variable.
6322 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6323 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6324 (dwarf2_has_info): Initialize dwarf_loc_offset.
6325 (dwarf2_build_psymtabs): Read in .debug_loc.
6326 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6327 DWARF_LOC_SIZE.
6328 (psymtab_to_symtab_1): Likewise. Move base address calculation
6329 here, from...
6330 (dwarf2_get_pc_bounds): ... here. Use the base address from
6331 cu_header.
6332 (dwarf2_symbol_mark_computed): Handle location lists.
6333
6334 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6335
6336 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6337 if the linkage name demangled successfully.
6338
6339 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6340
6341 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6342 disassmbly_flavour): Removed.
6343
6344 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6345
6346 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6347
6348 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6349
6350 2003-04-12 Andrew Cagney <cagney@redhat.com>
6351
6352 * frame.h (struct frame_info): Move definition from here ...
6353 * frame.c (struct frame_info): ... to here.
6354
6355 2003-04-12 Andrew Cagney <cagney@redhat.com>
6356
6357 * gdbthread.h (save_infrun_state): Delete parameter
6358 "prev_func_start".
6359 (struct thread_info): Delete field "prev_func_start".
6360 (load_infrun_state): Ditto.
6361 * thread.c (load_infrun_state, save_infrun_state): Update.
6362 * infrun.c (prev_func_start): Delete variable.
6363 (context_switch, init_wait_for_inferior): Update.
6364 (stop_stepping, keep_going): Update.
6365
6366 2003-04-12 Andrew Cagney <cagney@redhat.com>
6367
6368 * gdbarch.sh: Add missing opaque declarations.
6369 * gdbarch.h: Regnerate.
6370 * symtab.h: Add missing opaque declarations.
6371 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6372 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6373 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6374 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6375 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6376 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6377 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6378 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6379 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6380 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6381 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6382 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6383 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6384
6385 2003-04-11 Andrew Cagney <cagney@redhat.com>
6386
6387 * frame.c (get_frame_id): Return this frame's "id".
6388 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6389 function start.
6390 (legacy_saved_regs_this_id): Replace function body with
6391 internal-error.
6392 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6393 FRAME_OBSTACK_ZALLOC.
6394 (create_new_frame): Mark the frame ID as valid.
6395
6396 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6397
6398 * Makefile.in (libbfd_h): Added missing setting.
6399 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6400 according to the selected ABI.
6401
6402 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6403
6404 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6405
6406 2003-04-11 Andrew Cagney <cagney@redhat.com>
6407
6408 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6409 SAVED_PC_AFTER_CALL.
6410 * gdbarch.h, gdbarch.c: Regenerate.
6411 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6412 * x86-64-tdep.c (x86_64_init_abi): Update.
6413 * vax-tdep.c (vax_gdbarch_init): Update.
6414 * v850-tdep.c (v850_gdbarch_init): Update.
6415 * sparc-tdep.c (sparc_gdbarch_init): Update.
6416 * sh-tdep.c (sh_gdbarch_init): Update.
6417 * s390-tdep.c (s390_gdbarch_init): Update.
6418 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6419 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6420 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6421 * mips-tdep.c (mips_gdbarch_init): Update.
6422 * mcore-tdep.c (mcore_gdbarch_init): Update.
6423 * m68k-tdep.c (m68k_gdbarch_init): Update.
6424 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6425 * ia64-tdep.c (ia64_gdbarch_init): Update.
6426 (ia64_saved_pc_after_call): Update declaration.
6427 * i386ly-tdep.c (i386lynx_init_abi): Update.
6428 * i386-tdep.c (i386_gdbarch_init): Update.
6429 * hppa-tdep.c (hppa_gdbarch_init): Update.
6430 * h8300-tdep.c (h8300_gdbarch_init): Update.
6431 * frv-tdep.c (frv_gdbarch_init): Update.
6432 * cris-tdep.c (cris_gdbarch_init): Update.
6433 * avr-tdep.c (avr_gdbarch_init): Update.
6434 * arm-tdep.c (arm_gdbarch_init): Update.
6435 * alpha-tdep.c (alpha_gdbarch_init): Update.
6436 * ns32knbsd-nat.c (frame_num_args): Update.
6437 * ns32k-tdep.c (umax_frame_num_args): Update.
6438 * mips-tdep.c (mips_init_frame_pc_first): Update.
6439 * infrun.c (step_over_function): Update.
6440 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6441 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6442 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6443 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6444 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6445 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6446 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6447 * arch-utils.c (init_frame_pc_default): Update.
6448 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6449 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6450 declaration.
6451
6452 2003-04-11 Andrew Cagney <cagney@redhat.com>
6453
6454 * i387-tdep.c: Update copyright.
6455 (i387_to_double): Delete function.
6456 (double_to_i387): Delete function.
6457
6458 2003-04-10 Andrew Cagney <cagney@redhat.com>
6459
6460 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6461 frame's function's address. Simplify.
6462 (d10v_frame_unwind_cache): Check that the frame's function is
6463 non-zero.
6464
6465 2003-04-10 Jim Blandy <jimb@redhat.com>
6466
6467 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6468 call to set_gdbarch_deprecated_push_arguments.
6469
6470 2003-04-10 Andrew Cagney <cagney@redhat.com>
6471
6472 * frame.c (fprint_frame_id): New function.
6473 (fprint_frame_type, fprint_frame): New function.
6474 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6475 (create_sentinel_frame, get_frame_id): Ditto.
6476 (frame_id_p, frame_id_eq): Ditto.
6477 (frame_id_inner, create_new_frame): Ditto.
6478 (legacy_get_prev_frame, get_prev_frame): Ditto.
6479 (deprecated_update_frame_pc_hack): Ditto.
6480 (frame_register_unwind): Ditto.
6481 (deprecated_update_frame_base_hack): Ditto.
6482
6483 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6484
6485 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6486 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6487 frame_chain function.
6488 * Makefile.in: Add dependencies due to above change.
6489
6490 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6491
6492 * blockframe.c (legacy_frame_chain_valid): Move call to
6493 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6494 inside_entry_file.
6495
6496 2003-04-09 Andrew Cagney <cagney@redhat.com>
6497
6498 * frame.h (struct frame_id): Replace "pc" and "base" with
6499 "stack_addr" and "code_addr". Update comments.
6500 (frame_id_build): Update parameter names and comment.
6501 (struct frame_info): Replace "id_p" and "id" with "this_id".
6502 * dummy-frame.c (dummy_frame_this_id): Update.
6503 * breakpoint.c (print_one_breakpoint): Update.
6504 * frame.c (get_frame_id): Update.
6505 (get_frame_base, frame_id_build): Update.
6506 (create_sentinel_frame, legacy_get_prev_frame): Update.
6507 (deprecated_update_frame_base_hack): Update.
6508 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6509 (frame_id_inner): Ditto.
6510
6511 2003-04-09 Andrew Cagney <cagney@redhat.com>
6512
6513 * defs.h (gdb_print_host_address): Make "addr" parameter a
6514 pointer constant.
6515 * utils.c (gdb_print_host_address): Update.
6516
6517 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6518
6519 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6520 register number for R0 is 0.
6521
6522 2003-04-09 J. Brobecker <brobecker@gnat.com>
6523
6524 * frame.h (struct gdbarch): Add opaque structure definition
6525 to avoid a compilation warning on LynxOS 4.0.
6526
6527 2003-04-09 Andrew Cagney <cagney@redhat.com>
6528
6529 * frame.h (struct frame_info): Delete field "pc". Replace
6530 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6531 structure.
6532 * frame.c (frame_pc_unwind): Update.
6533 (create_sentinel_frame): Do not set "pc".
6534 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6535 (get_frame_pc): Call frame_pc_unwind.
6536 (deprecated_update_frame_pc_hack): Update.
6537 (create_new_frame): Use "pc" not "->pc".
6538
6539 2003-04-09 Andrew Cagney <cagney@redhat.com>
6540
6541 * frame.c (get_frame_id): Eliminate code updating "frame".
6542 (legacy_get_prev_frame): Ditto.
6543 (get_frame_base): Return id.base directly.
6544 (deprecated_update_frame_base_hack): Update "id.base".
6545 * frame.h (struct frame_info): Delete field "frame".
6546
6547 2003-04-09 Andrew Cagney <cagney@redhat.com>
6548
6549 * NEWS: Mention that the "Sequent family" is obsolete.
6550 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6551 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6552 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6553 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6554 * config/i386/tm-ptx4.h: Obsolete file.
6555 * config/i386/tm-ptx.h: Obsolete file.
6556 * symm-tdep.c: Obsolete file.
6557 * config/i386/symmetry.mt: Obsolete file.
6558 * config/i386/tm-symmetry.h: Obsolete file.
6559 * symm-nat.c: Obsolete file.
6560 * config/i386/nm-symmetry.h: Obsolete file.
6561 * config/i386/xm-symmetry.h: Obsolete file.
6562 * config/i386/symmetry.mh: Obsolete file.
6563 * config/i386/nm-ptx4.h: Obsolete file.
6564 * config/i386/ptx4.mh: Obsolete file.
6565 * config/i386/ptx.mt: Obsolete file.
6566 * config/i386/ptx.mh: Obsolete file.
6567 * config/i386/xm-ptx4.h: Obsolete file.
6568 * config/i386/xm-ptx.h: Obsolete file.
6569
6570 2003-04-09 Andrew Cagney <cagney@redhat.com>
6571
6572 Obsolete mips*-*-mach3*.
6573 * NEWS: Mention that mips*-*-mach3* is obsolete.
6574 * m3-nat.c: Obsolete file.
6575 * config/nm-m3.h: Obsolete file.
6576 * config/mips/tm-mipsm3.h: Obsolete file.
6577 * config/mips/mipsm3.mt: Obsolete file.
6578 * config/mips/mipsm3.mh: Obsolete file.
6579 * config/mips/xm-mipsm3.h: Obsolete file.
6580 * mipsm3-nat.c: Obsolete file.
6581 * configure.host: Obsolete mips-dec-mach3*.
6582 * configure.tgt: Obsolete mips*-*-mach3*.
6583
6584 2003-04-09 Andrew Cagney <cagney@redhat.com>
6585
6586 * doublest.h: Update copyright.
6587 (deprecated_store_floating, deprecated_extract_floating): Rename
6588 store_floating and extract_floating. Update comments.
6589 * doublest.c: Update copyright.
6590 (extract_floating_by_length): Replace extract_floating.
6591 (store_floating_by_length): Replace store_floating.
6592 (deprecated_extract_floating): New function.
6593 (deprecated_store_floating): New function.
6594 (extract_typed_floating): Call extract_floating_by_length.
6595 (store_typed_floating): Call store_floating_by_length.
6596 * x86-64-tdep.c (x86_64_store_return_value): Update.
6597 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6598 (sh64_extract_return_value): Update.
6599 (sh_sh4_register_convert_to_virtual): Update.
6600 (sh_sh64_register_convert_to_virtual): Update.
6601 (sh_sh4_register_convert_to_raw): Update.
6602 (sh_sh64_register_convert_to_raw): Update.
6603 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6604 (rs6000_register_convert_to_raw): Update.
6605 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6606 (ia64_register_convert_to_raw): Update.
6607 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6608 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6609 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6610 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6611 (alpha_register_convert_to_raw): Update.
6612
6613 2003-04-08 Andrew Cagney <cagney@redhat.com>
6614
6615 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6616 * gdbarch.h, gdbarch.c: Re-generate.
6617 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6618 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6619 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6620 conditionally, use frame_pc_unwind as an alternative. Add
6621 comments.
6622 * arch-utils.c (init_frame_pc_default): Only call
6623 SAVED_PC_AFTER_CALL when available.
6624
6625 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6626
6627 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6628 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6629 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6630 (start_remote): Ditto.
6631 (handle_inferior_event): Ditto.
6632 (save_inferior_status): Ditto.
6633 (restore_inferior_status): Ditto.
6634 * infcmd.c (attach_command): Ditto.
6635 * fork-child.c (startup_inferior): Ditto.
6636 * inferior.h (stop_soon): Rename from stop_soon_quietly.
6637 * alpha-tdep.c (heuristic_proc_start): Ditto.
6638 * mips-tdep.c (heuristic_proc_start): Ditto.
6639 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6640 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6641 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6642 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6643 * remote-vx.c (vx_create_inferior): Ditto.
6644
6645 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6646
6647 * infrun.c (stop_soon_quietly): Make it an enum, to better
6648 override the default behavior of handle_inferior_event.
6649 (clear_proceed_status): Update uses of stop_soon_quietly to
6650 reflect that it is now an enum.
6651 (start_remote): Ditto.
6652 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6653 is set to handle the new GNU/Linux kernel behavior for
6654 attach/sigstop. Update uses of stop_soon_quietly.
6655 * inferior.h (enum stop_kind): New enum.
6656 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6657 Reset normal handle_inferior_event behavior, afterwards.
6658 * fork-child.c (startup_inferior): Update.
6659 * alpha-tdep.c (heuristic_proc_start): Update.
6660 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6661 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6662 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6663 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6664 * remote-vx.c (vx_create_inferior): Update.
6665 * mips-tdep.c (heuristic_proc_start): Update.
6666
6667 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
6668
6669 * disasm.c (dump_insns): Move variables inside loop, or they will
6670 be freed more than once, causing wild memory corruptions.
6671 (gdb_disassembly): Look for the substring "-thread",
6672 instead of "-threads" in the target name, to make sure to find
6673 the 'multi-thread' target. Also, make sure we do the right thing
6674 with the "core" target.
6675
6676 2003-04-07 Kevin Buettner <kevinb@redhat.com>
6677
6678 * mips-tdep.c (mips_print_fp_register): New function, created from
6679 do_fp_register_row(). Registers are now (also) printed as hex.
6680 Only one register is printed per row.
6681 (mips_print_register, do_fp_register_row): Print floating point
6682 registers with mips_print_fp_register().
6683
6684 2003-04-06 Andrew Cagney <cagney@redhat.com>
6685
6686 * valprint.h (inspect_it): Add extern declaration.
6687 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6688 (selectors_info, classes_info): Ditto.
6689 (find_objc_msgcall): Fix indentation.
6690 (objc_printstr): Delete extern declarations.
6691
6692 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6693
6694 2003-04-06 Andrew Cagney <cagney@redhat.com>
6695
6696 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6697 Update comment.
6698 * frame.c (legacy_saved_regs_this_id): Update.
6699 (legacy_get_prev_frame): Update.
6700 * xstormy16-tdep.c: Update comment.
6701 * sparc-tdep.c (sparc_frame_chain): Update comment.
6702 * blockframe.c (legacy_frame_chain_valid): Update.
6703
6704 2003-04-06 Andrew Cagney <cagney@redhat.com>
6705
6706 * valprint.c (val_print_type_code_int): Delete #ifdef
6707 PRINT_TYPELESS_INTEGER code.
6708
6709 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6710 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6711 multi-arch definition.
6712 * gdbarch.h: Re-generate.
6713
6714 2003-04-05 Andrew Cagney <cagney@redhat.com>
6715
6716 Eliminate FRAME_FIND_SAVED_REGS.
6717 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6718 Change FSR parameter to a pointer.
6719 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6720 Assume FSR parameter is a pointer.
6721 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6722 Make fsr a pointer.
6723 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6724 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6725 saved_regs a pointer.
6726 (hppa_frame_saved_pc): Ditto.
6727 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6728 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6729 pointer.
6730 (restore_pc_queue): Make fsr a pointer.
6731 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6732 (hppa_frame_chain): Make saved_regs a pointer, call
6733 hppa_frame_init_saved_regs.
6734 * sparc-tdep.c: Include "gdb_assert.h".
6735 (sparc_frame_find_saved_regs): Replace internal_error with
6736 gdb_assert.
6737 * remote-vxsparc.c (vx_read_register): Delete reference to
6738 FRAME_FIND_SAVED_REGS.
6739 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6740 * gdbarch.h: Regenerate.
6741 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6742 (deprecated_get_frame_saved_regs): Delete declaration.
6743 (struct frame_saved_regs): Delete definition.
6744 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6745 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6746 (hppa_frame_find_saved_regs): Delete declaration.
6747 (FRAME_FIND_SAVED_REGS): Delete macro.
6748 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6749 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6750 FRAME_FIND_SAVED_REGS in comment.
6751
6752 2003-04-05 Andrew Cagney <cagney@redhat.com>
6753
6754 * frame.c (frame_func_unwind, get_frame_func): New functions.
6755 * frame.h (get_frame_func, frame_func_unwind): Declare.
6756 (struct frame_info): Add field "prev_func" for caching the
6757 previous frame's function address.
6758 * arm-tdep.c (arm_frameless_function_invocation): Combine
6759 get_pc_function_start and get_frame_pc into get_frame_func.
6760 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6761 (sh64_nofp_frame_init_saved_regs): Ditto.
6762 * s390-tdep.c (s390_function_start): Ditto.
6763 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6764 (rs6000_frameless_function_invocation): Ditto.
6765 (rs6000_frame_saved_pc): Ditto.
6766 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6767 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6768 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6769 (i386_frame_init_saved_regs): Ditto.
6770 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6771 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6772 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6773 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6774 * blockframe.c (frameless_look_for_prologue): Ditto.
6775
6776 2003-04-05 Andrew Cagney <cagney@redhat.com>
6777
6778 * frame.c (legacy_get_prev_frame): Link prev to next at the
6779 function start. Update comments.
6780
6781 2003-04-05 Andrew Cagney <cagney@redhat.com>
6782
6783 * frame.c (get_frame_id): Update comment.
6784 (legacy_get_prev_frame): Update comment.
6785 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6786 * gdbarch.h: Regenerate.
6787 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6788 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6789
6790 2003-04-05 Andrew Cagney <cagney@redhat.com>
6791
6792 * stack.c (print_frame_info): Use get_frame_pc.
6793
6794 2003-04-04 Andrew Cagney <cagney@redhat.com>
6795
6796 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6797 the frame's type from the unwinder.
6798 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6799 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6800 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6801 (get_frame_base_address): Use get_frame_type.
6802 (get_frame_locals_address, get_frame_args_address): Ditto.
6803 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6804 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6805 (struct frame_info): Add comment explaining why the frame contains
6806 a "type" field.
6807 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6808 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6809 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6810 NORMAL_FRAME.
6811 * frame-unwind.h: Include "frame.h".
6812 (struct frame_unwind): Add "type" field.
6813 * Makefile.in (frame_unwind_h): Add $(frame_h).
6814
6815 2003-04-04 Andrew Cagney <cagney@redhat.com>
6816
6817 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6818 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6819 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6820 get_frame_base.
6821 (d10v_unwind_dummy_id): Use frame_id_build.
6822 * frame.c (find_frame_sal): Use get_frame_pc.
6823 (create_new_frame): Use deprecated_update_frame_pc_hack and
6824 deprecated_update_frame_base_hack.
6825 (create_sentinel_frame): Add comment about ->pc going away.
6826 (get_prev_frame): Add comment about ->pc going away.
6827 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6828 frame_id_build, deprecated_update_frame_pc_hack and
6829 deprecated_update_frame_base_hack.
6830 (select_frame): Use get_frame_pc.
6831 (legacy_saved_regs_this_id): Use frame_id_build.
6832
6833 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
6834
6835 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6836 signed integer case.
6837 (classify_argument): Handle enumerations and references.
6838
6839 2003-04-04 Andrew Cagney <cagney@redhat.com>
6840
6841 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6842 ID to NULL.
6843
6844 2003-04-01 Adam Fedor <fedor@gnu.org>
6845
6846 * gdb/objc-lang.c (selectors_info): Replace calls to
6847 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6848 SYMBOL_NATURAL_NAME.
6849 (classes_info, find_methods): Likewise.
6850
6851 2003-04-03 Kevin Buettner <kevinb@redhat.com>
6852
6853 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6854 ``mach'' to the value determined by bfd_default_set_arch_mach().
6855
6856 2003-04-02 Bob Rossi <bob_rossi@cox.net>
6857
6858 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6859 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6860 (mi-cmd-file.o): Update dependencies.
6861
6862 2003-04-01 Kevin Buettner <kevinb@redhat.com>
6863
6864 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6865 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6866
6867 2003-04-01 Adam Fedor <fedor@gnu.org>
6868
6869 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6870 * language.h (struct language_defn): Add la_demangle.
6871 (language_demangle): Declare.
6872 * language.c (language_demangle): New function.
6873 (unk_lang_demangle): Likewise.
6874 (unknown_language_defn, auto_language_defn, local_language_defn):
6875 Add ukn_lang_demangle.
6876 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6877 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6878 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6879 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6880 * jv-lang.c (java_demangle): New function
6881 (java_language_defn): Use it for la_demangle element.
6882 * objc-lang.c (objc_demangle): Add options argument
6883 (objc_language_defn): Use objc_demangle for la_demangle element.
6884 * maint.c (maintenance_demangle): Replace switch with
6885 call to language_demangle.
6886 * utils.c (fprintf_symbol_filtered): Likewise.
6887
6888 2003-04-01 Andrew Cagney <cagney@redhat.com>
6889
6890 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6891 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6892 PRINT_TYPELESS_INTEGER.
6893 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6894 PUSH_RETURN_ADDRESS.
6895
6896 2003-04-01 Andrew Cagney <cagney@redhat.com>
6897
6898 * Makefile.in (d10v-tdep.o): Update dependencies.
6899 * d10v-tdep.c: Include "frame-base.h".
6900 (d10v_frame_unwind): Make constant.
6901 (d10v_frame_base_address): New function.
6902 (d10v_frame_base): New variable.
6903 (d10v_gdbarch_init): Set frame_base default.
6904 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6905 comment for base.
6906 (d10v_frame_unwind_cache): Set and use "prev_sp".
6907 (d10v_frame_this_id): Use the previous frame's inner most stack
6908 address and this frame's func address for the frame ID. Use
6909 frame_id_build. Don't analyze beyond the current instruction.
6910
6911 2003-04-01 Andrew Cagney <cagney@redhat.com>
6912
6913 * frame.h (get_frame_locals_address, get_frame_args_address):
6914 Refer to the base address, instead of the address of the first
6915 local or parameter.
6916
6917 2003-04-01 Andrew Cagney <cagney@redhat.com>
6918
6919 Add frame debug info addresses:
6920 * frame-base.c: New file.
6921 * frame-base.h: New file.
6922 * frame.h (struct frame_base): Add opaque declaration.
6923 (get_frame_base): Update comment.
6924 (get_frame_base_address): Declare.
6925 (get_frame_locals_address): Declare.
6926 (get_frame_args_address): Declare.
6927 (struct frame_info): Add "base" and "base_cache". Update
6928 comments on the unwinder.
6929 * frame.c: Include "frame-base.h".
6930 (get_frame_locals_address): New function.
6931 (get_frame_base_address): New function.
6932 (get_frame_args_address): New function.
6933 * findvar.c (read_var_value): Use get_frame_locals_address and
6934 get_frame_args_address.
6935 * stack.c (frame_info): Use get_frame_locals_address and
6936 get_frame_args_address.
6937 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6938 moved to "frame-base.c".
6939 * printcmd.c (print_frame_nameless_args): Ditto.
6940 * symtab.h (address_class): Update comments.
6941 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6942 get_frame_base_address.
6943 * dwarf2expr.c (execute_stack_op): Ditto.
6944 * Makefile.in (frame_base_h): Define.
6945 (frame.o): Update dependencies.
6946 (frame-base.o): Add dependencies.
6947 (SFILES): Add frame-base.c.
6948 (COMMON_OBS): Add frame-base.o.
6949
6950 2003-04-01 Andrew Cagney <cagney@redhat.com>
6951
6952 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6953 CALL_DUMMY_LENGTH): Ditto.
6954 * gdbarch.c: Re-generate.
6955 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6956 (CALL_DUMMY_LENGTH): Delete macro.
6957 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6958 * arm-tdep.c (arm_gdbarch_init): Ditto.
6959 * avr-tdep.c (avr_gdbarch_init): Ditto.
6960 * cris-tdep.c (cris_gdbarch_init): Ditto.
6961 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6962 * frv-tdep.c (frv_gdbarch_init): Ditto.
6963 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6964 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6965 * i386-tdep.c (i386_gdbarch_init): Ditto.
6966 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6967 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6968 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6969 * mips-tdep.c (mips_gdbarch_init): Ditto.
6970 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6971 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6972 * s390-tdep.c (s390_gdbarch_init): Ditto.
6973 * sh-tdep.c (sh_gdbarch_init): Ditto.
6974 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6975 * v850-tdep.c (v850_gdbarch_init): Ditto.
6976 * vax-tdep.c (vax_gdbarch_init): Ditto.
6977 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6978
6979 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
6980
6981 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6982
6983 2003-04-01 Andrew Cagney <cagney@redhat.com>
6984
6985 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6986 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6987 * gdbarch.h, gdbarch.c: Re-generate.
6988 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6989 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6990 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6991 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6992 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6993 * infcmd.c (run_stack_dummy): Simplify assuming
6994 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6995 * infrun.c (handle_inferior_event): Ditto.
6996 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6997 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6998 * arm-tdep.c (arm_gdbarch_init): Ditto.
6999 * avr-tdep.c (avr_gdbarch_init): Ditto.
7000 * cris-tdep.c (cris_gdbarch_init): Ditto.
7001 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7002 * frv-tdep.c (frv_gdbarch_init): Ditto.
7003 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7004 * i386-tdep.c (i386_gdbarch_init): Ditto.
7005 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7006 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7007 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7008 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7009 * mips-tdep.c (mips_gdbarch_init): Ditto.
7010 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7011 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7012 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7013 * s390-tdep.c (s390_gdbarch_init): Ditto.
7014 * sh-tdep.c (sh_gdbarch_init): Ditto.
7015 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7016 * v850-tdep.c (v850_gdbarch_init): Ditto.
7017 * vax-tdep.c (vax_gdbarch_init): Ditto.
7018 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7019
7020 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
7021
7022 * symfile.c (symfile_relocate_debug_section): Update call to
7023 bfd_simple_get_relocated_section_contents.
7024
7025 2003-03-31 Andrew Cagney <cagney@redhat.com>
7026
7027 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7028 * gdbarch.h, gdbarch.c: Regenerate.
7029 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7030 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7031 available.
7032 * frame.h (generic_fix_call_dummy): Delete declaration.
7033 * dummy-frame.h: Update comment.
7034 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7035 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7036 fix_call_dummy.
7037 * sh-tdep.c (sh_gdbarch_init): Ditto.
7038 * s390-tdep.c (s390_gdbarch_init): Ditto.
7039 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7040 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7041 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7042 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7043 * i386-tdep.c (i386_gdbarch_init): Ditto.
7044 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7045 * frv-tdep.c (frv_gdbarch_init): Ditto.
7046 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7047 * cris-tdep.c (cris_gdbarch_init): Ditto.
7048 * avr-tdep.c (avr_gdbarch_init): Ditto.
7049 * arm-tdep.c (arm_gdbarch_init): Ditto.
7050
7051 2003-03-31 J. Brobecker <brobecker@gnat.com>
7052
7053 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7054 (INIT_FRAME_AP): Likewise.
7055 (EXTRA_FRAME_INFO): Likewise.
7056
7057 2003-03-31 Andrew Cagney <cagney@redhat.com>
7058
7059 * gdbarch.sh: Include "symfile.h".
7060 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7061 * gdbarch.h, gdbarch.c: Re-generate.
7062 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7063 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7064 call_dummy_address, the default is at entry_point_address.
7065 * v850-tdep.c (v850_gdbarch_init): Ditto.
7066 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7067 * sh-tdep.c (sh_gdbarch_init): Ditto.
7068 * s390-tdep.c (s390_gdbarch_init): Ditto.
7069 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7070 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7071 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7072 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7073 * i386-tdep.c (i386_gdbarch_init): Ditto.
7074 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7075 * frv-tdep.c (frv_gdbarch_init): Ditto.
7076 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7077 * cris-tdep.c (cris_gdbarch_init): Ditto.
7078 * arm-tdep.c (arm_gdbarch_init): Ditto.
7079
7080 2003-03-31 Andrew Cagney <cagney@redhat.com>
7081
7082 * gdbarch.sh (CALL_DUMMY_P): Delete.
7083 * gdbarch.h, gdbarch.c: Re-generate.
7084 * inferior.h (CALL_DUMMY_P): Delete macro.
7085 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7086 * vax-tdep.c (vax_gdbarch_init): Update.
7087 * v850-tdep.c (v850_gdbarch_init): Update.
7088 * sparc-tdep.c (sparc_gdbarch_init): Update.
7089 * sh-tdep.c (sh_gdbarch_init): Update.
7090 * s390-tdep.c (s390_gdbarch_init): Update.
7091 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7092 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7093 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7094 * mips-tdep.c (mips_gdbarch_init): Update.
7095 * mcore-tdep.c (mcore_gdbarch_init): Update.
7096 * m68k-tdep.c (m68k_gdbarch_init): Update.
7097 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7098 * ia64-tdep.c (ia64_gdbarch_init): Update.
7099 * i386-tdep.c (i386_gdbarch_init): Update.
7100 * h8300-tdep.c (h8300_gdbarch_init): Update.
7101 * frv-tdep.c (frv_gdbarch_init): Update.
7102 * d10v-tdep.c (d10v_gdbarch_init): Update.
7103 * cris-tdep.c (cris_gdbarch_init): Update.
7104 * breakpoint.c (deprecated_frame_in_dummy): Update.
7105 * avr-tdep.c (avr_gdbarch_init): Update.
7106 * alpha-tdep.c (alpha_gdbarch_init): Update.
7107 * arm-tdep.c (arm_gdbarch_init): Update.
7108 * dummy-frame.c (dummy_frame_this_id): Update comments.
7109 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7110 * frame.c (legacy_get_prev_frame): Ditto.
7111 * valops.c (call_function_by_hand): Delete function.
7112 (hand_function_call): Rename to call_function_by_hand
7113
7114 2003-03-30 Andrew Cagney <cagney@redhat.com>
7115
7116 2002-11-10 Klee Dienes <kdienes@apple.com>
7117 * value.h (struct value): Update comment.
7118
7119 2003-03-30 Andrew Cagney <cagney@redhat.com>
7120
7121 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7122 D10V_FP_REGNUM.
7123 (d10v_gdbarch_init): Do not set fp_regnum.
7124
7125 * frame.c (get_frame_base): Force ID initialization.
7126 (get_prev_frame): Move computation of the frame ID from here ...
7127 (get_frame_id): ... to here.
7128 (legacy_get_prev_frame): Mark the frame ID as valid.
7129 * frame.h (struct frame_info): Add field "id_p".
7130
7131 2003-03-30 Mark Kettenis <kettenis@gnu.org>
7132
7133 * i386-tdep.c (i386_store_struct_return): Removed.
7134 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7135
7136 2003-03-30 Andrew Cagney <cagney@redhat.com>
7137
7138 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7139 * gdbarch.h, gdbarch.c: Regenerate.
7140 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7141 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7142 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7143 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7144 * i386-tdep.c (i386_gdbarch_init): Ditto.
7145 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7146 * cris-tdep.c (cris_gdbarch_init): Ditto.
7147 * vax-tdep.c (vax_gdbarch_init): Ditto.
7148 * s390-tdep.c (s390_gdbarch_init): Ditto.
7149 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7150 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7151 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7152 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7153 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7154 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7155 * sparc-tdep.c (sparc_gdbarch_init): Update.
7156 * sh-tdep.c (sh_gdbarch_init): Update.
7157 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7158 * mips-tdep.c (mips_gdbarch_init): Update.
7159 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7160 * ia64-tdep.c (ia64_gdbarch_init): Update.
7161 * frv-tdep.c (frv_gdbarch_init): Update.
7162 * avr-tdep.c (avr_gdbarch_init): Update.
7163 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7164 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7165 instead of when push_dummy_call is not available.
7166
7167 2003-03-30 Andrew Cagney <cagney@redhat.com>
7168
7169 * infttrace.c: Include "gdbthread.h".
7170 (parent_attach_all): Fix function signature.
7171 (call_ptrace): Update call.
7172 * Makefile.in (infttrace.o): Update dependencies.
7173
7174 2003-03-30 Andrew Cagney <cagney@redhat.com>
7175
7176 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7177 PUSH_RETURN_ADDRESS.
7178 * gdbarch.h, gdbarch.c: Regenerate.
7179 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7180 * x86-64-tdep.c (x86_64_init_abi): Update.
7181 * v850-tdep.c (v850_gdbarch_init): Update.
7182 * sparc-tdep.c (sparc_gdbarch_init): Update.
7183 * sh-tdep.c (sh_gdbarch_init): Update.
7184 * s390-tdep.c (s390_gdbarch_init): Update.
7185 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7186 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7187 * mips-tdep.c (mips_gdbarch_init): Update.
7188 * mcore-tdep.c (mcore_gdbarch_init): Update.
7189 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7190 * ia64-tdep.c (ia64_gdbarch_init): Update.
7191 * i386-tdep.c (i386_gdbarch_init): Update.
7192 * h8300-tdep.c (h8300_gdbarch_init): Update.
7193 * frv-tdep.c (frv_gdbarch_init): Update.
7194 * cris-tdep.c (cris_gdbarch_init): Update.
7195 * avr-tdep.c (avr_gdbarch_init): Update.
7196 * arm-tdep.c (arm_gdbarch_init): Update.
7197 * valops.c (hand_function_call): Update.
7198
7199 2003-03-29 Andrew Cagney <cagney@redhat.com>
7200
7201 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7202 sizeof_call_dummy_words.
7203 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7204 define.
7205 * gdbarch.h: Regenerate.
7206
7207 2003-03-29 Andrew Cagney <cagney@redhat.com>
7208
7209 * infttrace.h: New file.
7210 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7211 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7212 (hpread_read_doc_function_type): Detect an initialized type1.
7213 (hpread_quick_traverse): Initialize mod_name_string.
7214 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7215 (som_solib_get_solib_by_pc): Declare.
7216 (so_lib_thread_start_addr): Declare.
7217 (no_shared_libraries): Declare.
7218 * somread.c (init_import_symbols): Make static. Add forward
7219 declaration.
7220 * config/pa/nm-hppah.h: Include "infttrace.h" for
7221 parent_attach_all.
7222 (hppa_insert_hw_watchpoint): Declare.
7223 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7224 * hppah-nat.c: Include "gdb_string.h".
7225 (parent_attach_all): Delete extern declaration, moved to
7226 "infttrace.h".
7227 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7228 int.
7229 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7230 * Makefile.in (infttrace_h): Define.
7231 (hpread.o): Update dependencies.
7232 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7233 * hppa-hpux-tdep.c: Include "gdb_string.h".
7234 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7235 * infrun.c (handle_inferior_event): Always initialize
7236 stepped_after_stopped_by_watchpoint. Add default and remove
7237 fallthrough in switch statement.
7238 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7239 parameter to int.
7240 (hppa_remove_hw_watchpoint): Ditto.
7241
7242 2003-03-29 Andrew Cagney <cagney@redhat.com>
7243
7244 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7245 offset.
7246
7247 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
7248
7249 * arm-tdep.c (arm_push_arguments): Delete.
7250 (struct stack_item): New type.
7251 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7252 (arm_store_struct_return): Delte.
7253 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7254 arm_push_arguments or arm_store_struct_return.
7255
7256 2003-03-28 Andrew Cagney <cagney@redhat.com>
7257
7258 * Makefile.in (d10v-tdep.o): Update dependencies.
7259 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7260 * d10v-tdep.c: Include "remote.h".
7261 (target_resume_hook): Delete extern declaration.
7262 (target_wait_loop_hook): Ditto.
7263 (tdisassemble_command): Eliminate assignment in "if" conditional.
7264 (d10v_ts2_register_sim_regno): Eliminate call to
7265 legacy_register_sim_regno.
7266 (d10v_ts3_register_sim_regno): Ditto.
7267
7268 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7269
7270 * thread.c: Reindented.
7271 * lin-lwp.c: Ditto.
7272 * linux-proc.c: Ditto.
7273
7274 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7275
7276 * MAINTAINERS (write after approval): Add myself.
7277
7278 2003-03-27 Theodore A. Roth <troth@openavr.org>
7279
7280 * objc-exp.y: Add missing semi-colons.
7281
7282 2003-03-27 Andrew Cagney <cagney@redhat.com>
7283
7284 * regcache.c (write_sp): Delete function and references.
7285 * inferior.h (write_sp): Delete declaration.
7286 * valops.c (hand_function_call): Replace write_sp with
7287 TARGET_WRITE_SP.
7288 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7289 (sparc_pop_frame): Ditto.
7290
7291 2003-03-27 Andrew Cagney <cagney@redhat.com>
7292
7293 * NEWS: Mention removal of support for hppa*-*-bsd* and
7294 hppa*-*-osf* natives, and hppa*-*-pro* target.
7295 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7296 * config/pa/xm-pa.h: Obsolete file.
7297 * config/pa/xm-hppab.h: Obsolete file.
7298 * config/pa/nm-hppab.h: Obsolete file.
7299 * config/pa/tm-hppab.h: Obsolete file.
7300 * config/pa/tm-hppao.h: Obsolete file.
7301 * config/pa/nm-hppao.h: Obsolete file.
7302 * config/pa/tm-pro.h: Obsolete file.
7303 * config/pa/hppaosf.mt: Obsolete file.
7304 * config/pa/hppaosf.mh: Obsolete file.
7305 * config/pa/hppapro.mt: Obsolete file.
7306 * config/pa/hppabsd.mt: Obsolete file.
7307 * config/pa/hppabsd.mh: Obsolete file.
7308 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7309 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7310 hppa*-*-osf*.
7311
7312 2003-03-27 Andrew Cagney <cagney@redhat.com>
7313
7314 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7315 push_arguments. Don't set push_return_address or write_sp.
7316 (d10v_push_dummy_call): Replace d10v_push_arguments.
7317 (d10v_push_return_address, d10v_write_sp): Delete function,
7318 handled by push_dummy_call.
7319
7320 2003-03-26 Andrew Cagney <cagney@redhat.com>
7321
7322 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7323 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7324 regcache and dummy_addr parameters.
7325 * gdbarch.h, gdbarch.c: Re-generate.
7326 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7327 available; assume it will handle stack alignment and return
7328 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7329 legacy_push_arguments.
7330 (legacy_push_arguments): Rename default_push_arguments.
7331 * value.h (legacy_push_arguments): Rename default_push_arguments.
7332 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7333 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7334 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7335 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7336 * config/i386/tm-symmetry.h: Update.
7337 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7338 * x86-64-tdep.c (x86_64_init_abi): Update.
7339 * v850-tdep.c (v850_gdbarch_init): Update.
7340 * sparc-tdep.c (sparc_gdbarch_init): Update.
7341 * sh-tdep.c (sh_gdbarch_init): Update.
7342 * s390-tdep.c (s390_gdbarch_init): Update.
7343 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7344 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7345 * mips-tdep.c (mips_gdbarch_init): Update.
7346 * mcore-tdep.c (mcore_gdbarch_init): Update.
7347 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7348 * ia64-tdep.c (ia64_gdbarch_init): Update.
7349 * i386-tdep.c (i386_gdbarch_init): Update.
7350 * hppa-tdep.c (hppa_gdbarch_init): Update.
7351 * h8300-tdep.c (h8300_gdbarch_init): Update.
7352 * frv-tdep.c (frv_gdbarch_init): Update.
7353 * d10v-tdep.c (d10v_gdbarch_init): Update.
7354 * cris-tdep.c (cris_gdbarch_init): Update.
7355 * avr-tdep.c (avr_gdbarch_init): Update.
7356 * arm-tdep.c (arm_gdbarch_init): Update.
7357 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7358 * alpha-tdep.c (alpha_gdbarch_init): Update.
7359
7360 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7361
7362 * signals/signals.c (do_target_signal_to_host): Correct realtime
7363 signal range test.
7364
7365 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7366
7367 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7368 (struct sal_chain, map_catch_names): Remove.
7369 (catch_exception_command_1): Don't call
7370 handle_gnu_4_16_catch_command.
7371
7372 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7373
7374 From Mark Dettinger <dettinge@de.ibm.com>:
7375 * dwarf2cfi.c (read_2u): Increment pointer by two.
7376
7377 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7378
7379 * signals/signals.c: Fix typos in last change.
7380
7381 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7382
7383 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7384 not already defined. Use __SIGRTMIN if available.
7385 (target_signal_from_host): Remove SIGRTMIN block.
7386 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7387 the signal is within the realtime range.
7388
7389 2003-03-25 Adam Fedor <fedor@gnu.org>
7390
7391 * Makefile.in (infrun.o): Add $(language_h)
7392 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7393 for language specific trampolines.
7394 * language.h (struct language_defn): Add skip_trampoline.
7395 (skip_language_trampoline): Declare.
7396 * language.c (unk_lang_trampoline, skip_language_trampoline):
7397 New functions.
7398 (unknown_language_defn, auto_language_defn, local_language_defn):
7399 Add ukn_lang_trampoline.
7400 * ada-lang.c (ada_language_defn): Add NULL for language
7401 specific skip_trampoline.
7402 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7403 scm-lang.c: Likewise.
7404 * objc-lang.c (objc_skip_trampoline): New function.
7405 (objc_language_defn): Add objc_skip_trampoline.
7406
7407 2003-03-25 Andrew Cagney <cagney@redhat.com>
7408
7409 * frame.c (get_prev_frame): Delay validating a frame's ID -
7410 non-NULL, didn't go backwards - until an attempt to unwind it to
7411 the previous frame.
7412
7413 2003-03-25 Andrew Cagney <cagney@redhat.com>
7414
7415 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7416 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7417 * gdbarch.h, gdbarch.c: Re-generate.
7418 * config/sparc/tm-sparc.h
7419 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7420 * sparc-tdep.c (sparc_gdbarch_init): Set
7421 deprecated_extra_stack_alignment_needed.
7422 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7423 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7424 extra_stack_alignment_needed.
7425 * v850-tdep.c (v850_gdbarch_init): Ditto.
7426 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7427 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7428 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7429 * cris-tdep.c (cris_gdbarch_init): Ditto.
7430 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7431 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7432
7433 2003-03-25 Andrew Cagney <cagney@redhat.com>
7434
7435 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7436 STORE_STRUCT_RETURN.
7437 * gdbarch.h, gdbarch.c: Regenerate.
7438 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7439 (d10v_push_arguments): Set the struct return register.
7440 (d10v_gdbarch_init): Update.
7441 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7442 * x86-64-tdep.c (x86_64_init_abi): Update.
7443 * vax-tdep.c (vax_gdbarch_init): Update.
7444 * v850-tdep.c (v850_gdbarch_init): Update.
7445 * sparc-tdep.c (sparc_gdbarch_init): Update.
7446 * sh-tdep.c (sh_gdbarch_init): Update.
7447 * s390-tdep.c (s390_gdbarch_init): Update.
7448 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7449 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7450 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7451 * mips-tdep.c (mips_gdbarch_init): Update.
7452 * mcore-tdep.c (mcore_gdbarch_init): Update.
7453 * m68k-tdep.c (m68k_gdbarch_init): Update.
7454 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7455 * ia64-tdep.c (ia64_gdbarch_init): Update.
7456 * i386-tdep.c (i386_gdbarch_init): Update.
7457 * hppa-tdep.c (hppa_gdbarch_init): Update.
7458 * h8300-tdep.c (h8300_gdbarch_init): Update.
7459 * frv-tdep.c (frv_gdbarch_init): Update.
7460 * cris-tdep.c (cris_gdbarch_init): Update.
7461 * avr-tdep.c (avr_gdbarch_init): Update.
7462 * arm-tdep.c (arm_gdbarch_init): Update.
7463 * alpha-tdep.c (alpha_gdbarch_init): Update.
7464
7465 2003-03-25 Andrew Cagney <cagney@redhat.com>
7466
7467 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7468 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7469 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7470 * gdbarch.h, gdbarch.c: Regenerate.
7471 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7472 call_dummy_stack_adjust_p.
7473 * vax-tdep.c (vax_gdbarch_init): Ditto.
7474 * v850-tdep.c (v850_gdbarch_init): Ditto.
7475 * sh-tdep.c (sh_gdbarch_init): Ditto.
7476 * s390-tdep.c (s390_gdbarch_init): Ditto.
7477 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7478 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7479 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7480 * mips-tdep.c (mips_gdbarch_init): Ditto.
7481 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7482 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7483 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7484 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7485 * i386-tdep.c (i386_gdbarch_init): Ditto.
7486 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7487 * frv-tdep.c (frv_gdbarch_init): Ditto.
7488 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7489 * cris-tdep.c (cris_gdbarch_init): Ditto.
7490 * avr-tdep.c (avr_gdbarch_init): Ditto.
7491 * arm-tdep.c (arm_gdbarch_init): Ditto.
7492 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7493 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7494 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7495 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7496 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7497 call_dummy_stack_adjust_p.
7498 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7499 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7500 * sparc-tdep.c (sparc32_push_arguments): Update.
7501 * valops.c (hand_function_call): Update.
7502
7503 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7504
7505 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7506 set_gdbarch_char_signed.
7507
7508 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7509
7510 PR cli/548
7511 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7512
7513 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7514
7515 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7516 (_initialize_arm_tdep): Don't set tm_print_insn.
7517
7518 2003-03-24 Adam Fedor <fedor@gnu.org>
7519
7520 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7521 * objc-lang.h: Add multiple inclusion protection.
7522 (start_msglist, add_msglist, end_msglist): Additional declarations.
7523
7524 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7525
7526 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7527 value was renamed to ARM_FLOAT_SOFT_FPA.
7528
7529 2003-03-23 Andrew Cagney <cagney@redhat.com>
7530
7531 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7532 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7533 * gdbarch.h, gdbarch.c: Regenerate.
7534 * valops.c (hand_function_call): Update.
7535 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7536 * frame.c (legacy_saved_regs_this_id): Update.
7537 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7538 * dummy-frame.h: Update.
7539 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7540 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7541 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7542 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7543 * config/m68k/tm-sun3.h: Update.
7544 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7545 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7546 * x86-64-tdep.c (x86_64_init_abi): Update.
7547 * vax-tdep.c (vax_gdbarch_init): Update.
7548 * v850-tdep.c (v850_gdbarch_init): Update.
7549 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7550 * sh-tdep.c (sh_gdbarch_init): Update.
7551 * s390-tdep.c (s390_gdbarch_init): Update.
7552 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7553 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7554 (frame_get_saved_regs): Update.
7555 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7556 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7557 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7558 * mips-tdep.c (mips_gdbarch_init): Update.
7559 * mcore-tdep.c (mcore_gdbarch_init): Update.
7560 * m68k-tdep.c (m68k_gdbarch_init): Update.
7561 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7562 * ia64-tdep.c (ia64_gdbarch_init): Update.
7563 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7564 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7565 (i386_interix_back_one_frame): Update.
7566 * hppa-tdep.c (hppa_gdbarch_init): Update.
7567 (hppa_init_extra_frame_info): Update.
7568 * h8300-tdep.c (h8300_gdbarch_init): Update.
7569 * frv-tdep.c (frv_gdbarch_init): Update.
7570 * cris-tdep.c (cris_gdbarch_init): Update.
7571 * avr-tdep.c (avr_gdbarch_init): Update.
7572 * arm-tdep.c (arm_gdbarch_init): Update.
7573 * alpha-tdep.c (alpha_gdbarch_init): Update.
7574
7575 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7576
7577 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7578 (arm_get_fp_model): Declare.
7579 * arm-tdep.c (fp_model_strings): New string array.
7580 (arm_fp_model, current_fp_model): New variables.
7581 (arm_get_fp_model): New function.
7582 (arm_set_fp): New function.
7583 (set_fp_model_sfunc): New function.
7584 (show_fp_model): New function.
7585 (_initialize_arm_tdep): Add new command to set/show the FPU.
7586 (arm_extract_return_value): Use arm_get_fp_model.
7587 (arm_store_return_value): Likewise.
7588 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7589 to initialize the floating-point data types.
7590 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7591 model is FPA.
7592
7593 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7594
7595 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7596 the current setting of each value.
7597 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7598 new_set and new_show. Use add_setshow_cmd_full and
7599 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7600 commands and add new version as subcommands of "set/show arm".
7601
7602 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7603
7604 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7605 (set_arm_command, show_arm_command): New functions.
7606 (_initialize_arm_tdep): Add them.
7607 (num_disassembly_options): Renamed from num_flavor_options.
7608 (valid_disassembly_styles): Renamed from valid_flavors.
7609 (disassembly_style): Renamed from disassembly_flavor.
7610 (set_disassembly_style_sfunc): Renamed from
7611 set_disassembly_flavor_sfunc.
7612 (set_disassembly_style): Renamed from set_disassembly_flavor.
7613 (arm_othernames): Updated.
7614 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7615 command. Add "set/show arm disassembly" commands. Deprecate
7616 "othernames" command.
7617
7618 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7619
7620 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7621 (arm-tdep.o): Depend on elf_arm_h.
7622
7623 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7624
7625 * Makefile.in (coff_internal_h): Define.
7626 (arm-tdep.o): Update dependencies.
7627
7628 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7629
7630 * arm-tdep.c (prologue_cache): Delete.
7631 (check_prologue_cache, save_prologue_cache): Delete.
7632 (arm_scan_prologue): Don't check or update the prologue_cache.
7633 (arm_gdb_arch_init): Don't initialize it.
7634 (_initialize_arm_tdep): Likewise.
7635
7636 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7637
7638 * MAINTAINERS (tui): Maintainer of tui code.
7639
7640 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
7641
7642 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7643 (i386-cygwin-tdep.o): Add dependencies.
7644 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7645 * i386-cygwin-tdep.c: New file.
7646 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7647 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7648
7649 2003-03-20 Andrew Cagney <cagney@redhat.com>
7650
7651 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7652 (handle_inferior_event): Remove code calling
7653 DYNAMIC_TRAMPOLINE_NEXTPC.
7654
7655 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7656 already has a full path.
7657
7658 * main.c (gdb_main): Return 1.
7659 (captured_main): Call error to report an invalid interpreter.
7660
7661 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7662 * alpha-osf1-tdep.c: Include "gdb_string.h".
7663
7664 2003-03-19 J. Brobecker <brobecker@gnat.com>
7665
7666 Continuing work to convert the hppa targets to multiarch partial.
7667
7668 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7669 method, now that hppa_push_dummy_frame has a conformant prototype.
7670 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7671 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7672 for the switch to multiarch partial.
7673
7674 2003-03-19 Kevin Buettner <kevinb@redhat.com>
7675
7676 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7677 when iss is issNull.
7678
7679 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7680
7681 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7682 NUM_REGS bounds check.
7683
7684 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7685
7686 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7687 * mips-tdep.c (gdb_assert.h): Include.
7688 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7689 (mips_register_name): Handle integer registers explicitly. Add
7690 bounds checking.
7691 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7692 (mips_lsi33k_reg_names): Don't list integer registers; they're
7693 handled by mips_register_name() now.
7694 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7695 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7696 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7697 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7698 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7699
7700 2003-03-18 Andrew Cagney <cagney@redhat.com>
7701
7702 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7703 a void pointer.
7704 * gdbtypes.h (print_scalar_formatted): Update declaration.
7705 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7706
7707 2003-03-18 J. Brobecker <brobecker@gnat.com>
7708
7709 * infrun.c (observer.h): Add #include.
7710 (normal_stop): Add call to observer_notify_normal_stop.
7711 * Makefile.in (infrun.o): Add dependency on observer.h.
7712
7713 2003-03-18 J. Brobecker <brobecker@gnat.com>
7714
7715 Continuing work to convert the hppa targets to multiarch partial.
7716 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7717 parameter. Reformat comment.
7718 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7719 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7720 to match new profile.
7721
7722 2003-03-18 J. Brobecker <brobecker@gnat.com>
7723
7724 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7725 appear to be working in any case.
7726
7727 2003-03-18 J. Brobecker <brobecker@gnat.com>
7728
7729 * observer.c (observer_test_first_observer): New static variable.
7730 (observer_test_second_observer): Likewise.
7731 (observer_test_third_observer): Likewise.
7732 (observer_test_first_notification_function): New static function.
7733 (observer_test_second_notification_function): Likewise.
7734 (observer_test_third_notification_function): Likewise.
7735
7736 2003-03-17 J. Brobecker <brobecker@gnat.com>
7737
7738 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7739 * somsolib.c (gdb_assert.h): Likewise.
7740 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7741 (somsolib.o): Likewise.
7742
7743 2003-03-17 Andrew Cagney <cagney@redhat.com>
7744
7745 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7746 BFD. Simplify setting of di.endian.
7747
7748 2003-03-17 Andrew Cagney <cagney@redhat.com>
7749
7750 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7751 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7752
7753 From Elena Zannoni <ezannoni@redhat.com>
7754 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7755 vector and floating-point parameters.
7756 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7757 convention.
7758 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7759
7760 2003-03-17 Fernando Nasser <fnasser@redhat.com>
7761
7762 * MAINTAINERS: Remove my name from several maintainership roles.
7763
7764 2003-03-17 Andrew Cagney <cagney@redhat.com>
7765
7766 Fix frame off-by-one bug.
7767 * frame-unwind.h (frame_this_id_ftype): Replace
7768 frame_unwind_id_ftype.
7769 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7770 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7771 with "prev_register".
7772 * frame-unwind.c (frame_unwind_find_by_pc): Return
7773 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7774 comment.
7775 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7776 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7777 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7778 (dummy_frame_unwind): Update.
7779 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7780 sentinel_frame_register_unwind.
7781 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7782 (sentinel_frame_unwinder): Update.
7783 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7784 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7785 * frame.c (create_sentinel_frame): Update. Initialize
7786 "prologue_cache" instead of "unwind_cache".
7787 (frame_register_unwind): Call this frame's prev_register with the
7788 next frame and this frame's prologue cache.
7789 (get_prev_frame): Simplify. Always call prev frame's this_id with
7790 this frame and prev frame's prologue cache. Document that this
7791 call is shifted one to the left when compared to the
7792 frame_register_unwind call.
7793 (legacy_saved_regs_prev_register): Replace
7794 frame_saved_regs_register_unwind.
7795 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7796 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7797 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7798 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7799 (d10v_frame_unwind): Update.
7800 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7801 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7802 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7803 "saved_regs" with "this_saved_regs".
7804
7805 2003-03-16 Andrew Cagney <cagney@redhat.com>
7806
7807 * frame.c (frame_pop): Don't call target_store_registers. Fix
7808 problem reported by Mark Kettenis.
7809
7810 2003-03-16 Mark Kettenis <kettenis@gnu.org>
7811
7812 * i386-tdep.c (i386_register_type): Renamed from
7813 i386_register_virtual_type. Adjust function signature.
7814 (i386_gdbarch_init): Set register_type instead of
7815 deprecated_max_register_raw_size,
7816 deprecated_max_register_virtual_size and register_virtual_type.
7817
7818 2003-03-14 Andrew Cagney <cagney@redhat.com>
7819
7820 * frame.c (get_prev_frame): When a legacy frame, always call
7821 legacy_get_prev_frame. Simplify unwind code using assumption that
7822 the unwinder is new.
7823 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7824 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7825 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7826
7827 2003-03-14 Andrew Cagney <cagney@redhat.com>
7828
7829 * frame.c (get_saved_register): Delete function.
7830 * frame.h (get_saved_register): Delete declaration.
7831 * xstormy16-tdep.c: Update comment.
7832 * regcache.h: Update comments.
7833 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7834 get_saved_register and extract_address, use
7835 frame_read_unsigned_register.
7836 (sparc_frame_saved_pc): Ditto.
7837 (sparc_get_saved_register): Instead of get_saved_register, use
7838 frame_register.
7839 (sparc_pop_frame): Ditto.
7840 * findvar.c: Update comments.
7841 (value_of_register): Call frame_register instead of
7842 get_saved_register.
7843 (value_from_register): Ditto.
7844 * config/sparc/tm-sparc.h: Update comment.
7845 * breakpoint.c: Update comment.
7846
7847 2003-03-14 Andrew Cagney <cagney@redhat.com>
7848
7849 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7850 GET_SAVED_REGISTER.
7851 * gdbarch.h, gdbarch.c: Re-generate.
7852 * frame.h: Update comments.
7853 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7854 * x86-64-tdep.c (x86_64_init_abi): Update.
7855 * sparc-tdep.c (sparc_gdbarch_init): Update.
7856 * sh-tdep.c (sh_gdbarch_init): Update.
7857 * mips-tdep.c (mips_gdbarch_init): Update.
7858 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7859 * cris-tdep.c (cris_gdbarch_init): Update.
7860 * ia64-tdep.c (ia64_gdbarch_init): Update.
7861 * frame.c (frame_register): Update.
7862 (get_saved_register): Update.
7863 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7864
7865 2003-03-13 Andrew Cagney <cagney@redhat.com>
7866
7867 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7868 * gdbarch.h, gdbarch.c: Regenerate.
7869 * valops.c (hand_function_call): Update comment.
7870 * stack.c (return_command): Update comment.
7871 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7872 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7873 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7874 * x86-64-tdep.c (x86_64_init_abi): Update.
7875 * vax-tdep.c (vax_gdbarch_init): Update.
7876 * v850-tdep.c (v850_gdbarch_init): Update.
7877 * sparc-tdep.c (sparc_gdbarch_init): Update.
7878 * sh-tdep.c (sh_gdbarch_init): Update.
7879 * s390-tdep.c (s390_gdbarch_init): Update.
7880 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7881 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7882 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7883 * mips-tdep.c (mips_gdbarch_init): Update.
7884 * mcore-tdep.c (mcore_gdbarch_init): Update.
7885 * m68k-tdep.c (m68k_gdbarch_init): Update.
7886 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7887 * ia64-tdep.c (ia64_gdbarch_init): Update.
7888 * i386-tdep.c (i386_gdbarch_init): Update.
7889 * hppa-tdep.c (hppa_gdbarch_init): Update.
7890 * h8300-tdep.c (h8300_gdbarch_init): Update.
7891 * frv-tdep.c (frv_gdbarch_init): Update.
7892 * cris-tdep.c (cris_gdbarch_init): Update.
7893 * avr-tdep.c (avr_gdbarch_init): Update.
7894 * arm-tdep.c (arm_gdbarch_init): Update.
7895 * alpha-tdep.c (alpha_gdbarch_init): Update.
7896
7897 2003-03-13 Andrew Cagney <cagney@redhat.com>
7898
7899 * frame.c (legacy_frame_p): New function.
7900 (get_prev_frame): Use legacy_frame_p.
7901 * frame.h (legacy_frame_p): Declare.
7902
7903 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7904
7905 * MAINTAINERS (write after approval): Alphabetically
7906 listing corrected.
7907
7908 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7909
7910 * MAINTAINERS (write after approval): Add myself.
7911
7912 2003-03-12 Andrew Cagney <cagney@redhat.com>
7913
7914 * frame.c (get_prev_frame): Rename the frame parameter to
7915 "this_frame".
7916 (get_next_frame, legacy_get_prev_frame): Ditto.
7917
7918 2003-03-12 Andrew Cagney <cagney@redhat.com>
7919
7920 * frame.c (get_current_frame): Check target_has_registers before
7921 checking target_has_stack.
7922 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7923 instead of deprecated_selected_frame.
7924 * findvar.c (value_of_register): Pass "frame", not
7925 deprecated_selected_frame, to value_of_builtin_reg.
7926
7927 2003-03-12 Andrew Cagney <cagney@redhat.com>
7928
7929 * regcache.c (regcache_cooked_write_signed): New function.
7930 (regcache_cooked_write_unsigned): New function.
7931 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7932 (regcache_cooked_read_signed): Fix regnum in range assertion.
7933 * regcache.h (regcache_cooked_write_signed): Declare.
7934 (regcache_cooked_write_unsigned): Declare.
7935
7936 2003-03-12 Andrew Cagney <cagney@redhat.com>
7937
7938 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7939 * gdbarch.h, gdbarch.c: Re-generate.
7940 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7941 * x86-64-tdep.h: Update.
7942 * x86-64-tdep.c (x86_64_init_abi): Update.
7943 * v850-tdep.c (v850_gdbarch_init): Update.
7944 * sparc-tdep.c (sparc_gdbarch_init): Update.
7945 * sh-tdep.c (sh_gdbarch_init): Update.
7946 * s390-tdep.c (s390_gdbarch_init): Update.
7947 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7948 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7949 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7950 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7951 * mips-tdep.c (mips_gdbarch_init): Update.
7952 * mcore-tdep.c (mcore_gdbarch_init): Update.
7953 * m68k-tdep.c (m68k_gdbarch_init): Update.
7954 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7955 * ia64-tdep.c (ia64_gdbarch_init): Update.
7956 * i386-tdep.c (i386_gdbarch_init): Update.
7957 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7958 * hppa-tdep.c (hppa_gdbarch_init): Update.
7959 * h8300-tdep.c (h8300_gdbarch_init): Update.
7960 * frv-tdep.c (frv_gdbarch_init): Update.
7961 * cris-tdep.c (cris_gdbarch_init): Update.
7962 * avr-tdep.c (avr_gdbarch_init): Update.
7963 * arm-tdep.c (arm_gdbarch_init): Update.
7964 * alpha-tdep.c (alpha_gdbarch_init): Update.
7965 * sh-tdep.c (sh_init_extra_frame_info): Update.
7966 (sh64_init_extra_frame_info): Update.
7967 * ns32knbsd-nat.c (frame_num_args): Update.
7968 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7969 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7970 (xstormy16_frame_chain_valid): Update.
7971 * vax-tdep.c (vax_saved_pc_after_call): Update.
7972 * v850-tdep.c (v850_frame_chain): Update.
7973 (v850_pop_frame): Update.
7974 (v850_init_extra_frame_info): Update.
7975 * sparc-tdep.c (setup_arbitrary_frame): Update.
7976 * ns32k-tdep.c (umax_frame_num_args): Update.
7977 * s390-tdep.c (s390_pop_frame_regular): Update.
7978 * mn10300-tdep.c (mn10300_frame_chain): Update.
7979 (mn10300_pop_frame_regular): Update.
7980 (mn10300_init_extra_frame_info): Update.
7981 * mips-tdep.c (mips_init_frame_pc_first): Update.
7982 (mips_frame_chain): Update.
7983 (mips_pop_frame): Update.
7984 * mcore-tdep.c (mcore_frame_chain): Update.
7985 (mcore_pop_frame): Update.
7986 (mcore_init_extra_frame_info): Update.
7987 * arch-utils.c (init_frame_pc_default): Update.
7988 * m68k-tdep.c (isi_frame_num_args): Update.
7989 (delta68_frame_num_args): Update.
7990 (news_frame_num_args): Update.
7991 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7992 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7993 (alpha_frame_chain): Update.
7994 (alpha_pop_frame): Update.
7995 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7996 (hppa_init_extra_frame_info): Update.
7997 (hppa_frame_chain): Update.
7998 (hppa_frame_chain_valid): Update.
7999 * cris-tdep.c (cris_init_extra_frame_info): Update.
8000 * avr-tdep.c (avr_init_extra_frame_info): Update.
8001 * arm-tdep.c (arm_frame_chain_valid): Update.
8002 (arm_init_extra_frame_info): Update.
8003 (arm_pop_frame): Update.
8004 * frame.c (frame_pc_unwind): Update.
8005 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8006 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8007 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8008 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8009 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8010 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8011
8012 2003-03-12 Andrew Cagney <cagney@redhat.com>
8013
8014 Eliminate the need for POP_FRAME.
8015 * frame.c (do_frame_unwind_register): New function.
8016 (frame_pop): When no POP_FRAME, pop the frame using register
8017 unwind and a scratch regcache.
8018 (frame_saved_regs_pop): Delete function.
8019 (trad_frame_unwinder): Update.
8020 * d10v-tdep.c (d10v_frame_pop): Delete function.
8021 (d10v_frame_unwind): Update.
8022 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8023 (sentinel_frame_unwinder): Update.
8024 * dummy-frame.c (dummy_frame_pop): Delete function.
8025 (dummy_frame_unwind): Update.
8026 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8027 (struct frame_unwind): Update.
8028
8029 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8030
8031 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8032 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8033 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8034 Do range checks on register number obtained from debugging info.
8035 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8036 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8037 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8038 mapping function.
8039 (do_fp_register_row): Fix typo which caused double type to be
8040 used when attempting to unpack a float.
8041
8042 2003-03-11 J. Brobecker <brobecker@gnat.com>
8043
8044 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8045
8046 2003-03-11 Andrew Cagney <cagney@redhat.com>
8047
8048 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8049 frame. Problem found by Corinna Vinschen.
8050
8051 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8052
8053 * doublest.c (floatformat_from_length): Accept also
8054 the real size of 'long double' type.
8055
8056 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
8057
8058 From Klee Dienes <kdienes@apple.com>:
8059 * breakpoint.c (bpstat_copy): Copy the command lines as well
8060 as the old value, to match what is freed in bpstat_clear.
8061
8062 2003-03-10 David Carlton <carlton@math.stanford.edu>
8063
8064 * minsyms.c (add_minsym_to_hash_table): Replace
8065 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8066 (compare_minimal_symbols, compact_minimal_symbols)
8067 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8068 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8069 of DEPRECATED_SYMBOL_MATCHES_NAME.
8070 (lookup_minimal_symbol_solib_trampoline): Ditto.
8071
8072 2003-03-10 Andrew Cagney <cagney@redhat.com>
8073
8074 * regcache.h (regcache_cooked_read_ftype): Define.
8075 (regcache_save, regcache_restore): Add a cooked_read parameter.
8076 * regcache.c (regcache_save, regcache_restore): Update.
8077 (do_cooked_read): New function.
8078 (regcache_cpy): Pass do_cooked_read to regcache_save and
8079 regcache_restore.
8080
8081 2003-03-10 Andrew Cagney <cagney@redhat.com>
8082
8083 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8084 * gdbarch.h, gdbarch.c: Re-generate.
8085 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8086 * x86-64-tdep.h: Update.
8087 * x86-64-tdep.c (x86_64_init_abi): Update.
8088 * v850-tdep.c (v850_gdbarch_init): Update.
8089 * sparc-tdep.c (sparc_gdbarch_init): Update.
8090 * sh-tdep.c (sh_gdbarch_init): Update.
8091 * s390-tdep.c (s390_gdbarch_init): Update.
8092 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8093 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8094 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8095 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8096 * mips-tdep.c (mips_gdbarch_init): Update.
8097 * mcore-tdep.c (mcore_gdbarch_init): Update.
8098 * m68k-tdep.c (m68k_gdbarch_init): Update.
8099 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8100 * ia64-tdep.c (ia64_gdbarch_init): Update.
8101 * i386-tdep.c (i386_gdbarch_init): Update.
8102 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8103 * hppa-tdep.c (hppa_gdbarch_init): Update.
8104 * h8300-tdep.c (h8300_gdbarch_init): Update.
8105 * frv-tdep.c (frv_gdbarch_init): Update.
8106 * cris-tdep.c (cris_gdbarch_init): Update.
8107 * avr-tdep.c (avr_gdbarch_init): Update.
8108 * arm-tdep.c (arm_gdbarch_init): Update.
8109 * alpha-tdep.c (alpha_gdbarch_init): Update.
8110 * sh-tdep.c (sh_init_extra_frame_info): Update.
8111 (sh64_init_extra_frame_info): Update.
8112 * ns32knbsd-nat.c (frame_num_args): Update.
8113 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8114 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8115 (xstormy16_frame_chain_valid): Update.
8116 * vax-tdep.c (vax_saved_pc_after_call): Update.
8117 * v850-tdep.c (v850_frame_chain): Update.
8118 (v850_pop_frame): Update.
8119 (v850_init_extra_frame_info): Update.
8120 * sparc-tdep.c (setup_arbitrary_frame): Update.
8121 * ns32k-tdep.c (umax_frame_num_args): Update.
8122 * s390-tdep.c (s390_pop_frame_regular): Update.
8123 * mn10300-tdep.c (mn10300_frame_chain): Update.
8124 (mn10300_pop_frame_regular): Update.
8125 (mn10300_init_extra_frame_info): Update.
8126 * mips-tdep.c (mips_init_frame_pc_first): Update.
8127 (mips_frame_chain): Update.
8128 (mips_pop_frame): Update.
8129 * mcore-tdep.c (mcore_frame_chain): Update.
8130 (mcore_pop_frame): Update.
8131 (mcore_init_extra_frame_info): Update.
8132 * arch-utils.c (init_frame_pc_default): Update.
8133 * m68k-tdep.c (isi_frame_num_args): Update.
8134 (delta68_frame_num_args): Update.
8135 (news_frame_num_args): Update.
8136 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8137 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8138 (alpha_frame_chain): Update.
8139 (alpha_pop_frame): Update.
8140 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8141 (hppa_init_extra_frame_info): Update.
8142 (hppa_frame_chain): Update.
8143 (hppa_frame_chain_valid): Update.
8144 * cris-tdep.c (cris_init_extra_frame_info): Update.
8145 * avr-tdep.c (avr_init_extra_frame_info): Update.
8146 * arm-tdep.c (arm_frame_chain_valid): Update.
8147 (arm_init_extra_frame_info): Update.
8148 (arm_pop_frame): Update.
8149 * frame.c (frame_pc_unwind): Update.
8150 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8151 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8152 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8153 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8154 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8155 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8156
8157 2003-03-10 Andrew Cagney <cagney@redhat.com>
8158
8159 * gdbarch.sh (gdbarch_unwind_pc): New method.
8160 * gdbarch.h, gdbarch.c: Regenerate.
8161 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8162 but use read_pc and FRAME_SAVED_PC as fall backs.
8163 (frame_saved_regs_pc_unwind): Delete function.
8164 (trad_frame_unwinder): Update.
8165 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8166 (struct frame_unwind): Update.
8167 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8168 (dummy_frame_unwind): Update.
8169 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8170 (sentinel_frame_unwinder): Update.
8171 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8172 (d10v_frame_unwind): Update.
8173 (d10v_unwind_pc): New function.
8174 (d10v_gdbarch_init): Set unwind_pc.
8175
8176 2003-03-10 Andrew Cagney <cagney@redhat.com>
8177
8178 * gdbarch.h: Re-generate.
8179
8180 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8181 PC.
8182 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8183 the PC register.
8184
8185 2003-03-08 Mark Kettenis <kettenis@gnu.org>
8186
8187 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8188
8189 2003-03-08 Andrew Cagney <cagney@redhat.com>
8190
8191 * cli-out.c: Update copyright.
8192 (cli_out_data): Define typedef. Use instead of ui_out_data.
8193
8194 2003-03-08 Andrew Cagney <cagney@redhat.com>
8195
8196 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8197 the result.
8198
8199 2003-03-07 Andrew Cagney <cagney@redhat.com>
8200
8201 * gdbarch.sh: Don't generate two macro definitions when an
8202 undefined macro taking no arguments.
8203 * gdbarch.h: Regenerate.
8204
8205 2002-03-07 Michal Ludvig <mludvig@suse.cz>
8206
8207 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8208 (x86_64_unwind_dummy_id): New functions.
8209 (x86_64_init_abi): Register these two new functions.
8210
8211 2003-03-07 Michal Ludvig <mludvig@suse.cz>
8212
8213 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8214 (x86_64_skip_prologue): Move prologue detection to
8215 separate function.
8216 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8217
8218 2003-03-05 Andrew Cagney <cagney@redhat.com>
8219
8220 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8221 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8222 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8223 to use unwind_dummy_id when a dummy frame.
8224 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8225 predicate.
8226 * gdbarch.h, gdbarch.c: Regneerate.
8227
8228 2003-03-05 Andrew Cagney <cagney@redhat.com>
8229
8230 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8231 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8232 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8233 values.
8234
8235 2003-03-05 Andrew Cagney <cagney@redhat.com>
8236
8237 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8238 (struct d10v_unwind_cache): Delete field "frameless". Replace
8239 "next_addr" with "sp_offset". Add "r11_offset".
8240 (d10v_frame_unwind_cache): Update.
8241 (prologue_find_regs): Update. When "mv r11, sp", save the
8242 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8243 RN was saved in r11_offset.
8244
8245 2003-03-05 Andrew Cagney <cagney@redhat.com>
8246
8247 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8248 cached PC value in the next frame.
8249
8250 2003-03-05 Andrew Cagney <cagney@redhat.com>
8251
8252 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8253 "id_unwind_cache" with "id".
8254 (frame_id_unwind): Delete declaration.
8255 * frame.c (frame_id_unwind): Delete function.
8256 (get_prev_frame): Call the frame id unwind method directly. Store
8257 the returned next frame's ID value in NEXT_FRAME. Note that there
8258 is a problem with the wrong unwind ID being called with the wrong
8259 unwind cache.
8260
8261 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8262
8263 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8264
8265 2003-03-05 James Ingham <jingham@apple.com>
8266 Daniel Jacobowitz <drow@mvista.com>
8267
8268 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8269 (auto_cp_abi): New variable.
8270 (current_cp_abi, num_cp_abis): Make static.
8271 (CP_ABI_MAX): Define.
8272 (cp_abis): Turn into an array.
8273 (value_virtual_fn_field): Fix formatting.
8274 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8275 takes a pointer.
8276 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8277 (list_cp_abis, _initialize_cp_abi): New functions.
8278 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8279 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8280 switch_to_cp_abi. Update prototype for register_cp_abi.
8281 * Makefile.in (cp-abi.o): Update dependencies.
8282 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8283 instead of switch_to_cp_abi.
8284 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8285 register_cp_abi.
8286 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8287 register_cp_abi.
8288 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8289
8290 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8291
8292 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8293 * dwarf2loc.c: Include "regcache.h".
8294 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8295 register_size.
8296 * Makefile.in (dwarf2loc.o): Update dependencies.
8297
8298 2003-03-04 Theodore A. Roth <troth@openavr.org>
8299
8300 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8301 number of io registers reported by remote target is not a multiple of
8302 step.
8303
8304 2003-03-04 David Carlton <carlton@math.stanford.edu>
8305
8306 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8307 (lookup_symbol_aux_psymtabs): Update call to
8308 lookup_partial_symbol.
8309 (lookup_transparent_type, find_main_psymtab)
8310 (make_symbol_overload_list): Ditto.
8311
8312 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8313
8314 * MAINTAINERS (Write after approval): Update my email address.
8315
8316 2003-03-03 Andrew Cagney <cagney@redhat.com>
8317
8318 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8319 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8320 predicate. Replace MAX_REGISTER_RAW_SIZE.
8321 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8322 MAX_REGISTER_VIRTUAL_SIZE.
8323 * regcache.c (legacy_max_register_raw_size): New function.
8324 (legacy_max_register_virtual_size): New function.
8325 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8326 (MAX_REGISTER_RAW_SIZE): Define.
8327 (legacy_max_register_raw_size): Declare.
8328 (legacy_max_register_virtual_size): Declare.
8329 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8330 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8331 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8332 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8333 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8334 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8335 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8336 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8337 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8338 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8339 * vax-tdep.c (vax_gdbarch_init): Update.
8340 * v850-tdep.c (v850_gdbarch_init): Update.
8341 * sparc-tdep.c (sparc_gdbarch_init): Update.
8342 * sh-tdep.c (sh_gdbarch_init): Update.
8343 * s390-tdep.c (s390_gdbarch_init): Update.
8344 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8345 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8346 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8347 * mips-tdep.c (mips_gdbarch_init): Update.
8348 * mcore-tdep.c (mcore_gdbarch_init): Update.
8349 * m68k-tdep.c (m68k_gdbarch_init): Update.
8350 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8351 * ia64-tdep.c (ia64_gdbarch_init): Update.
8352 * i386-tdep.c (i386_gdbarch_init): Update.
8353 * hppa-tdep.c (hppa_gdbarch_init): Update.
8354 * h8300-tdep.c (h8300_gdbarch_init): Update.
8355 * frv-tdep.c (frv_gdbarch_init): Update.
8356 * cris-tdep.c (cris_gdbarch_init): Update.
8357 * avr-tdep.c (avr_gdbarch_init): Update.
8358 * arm-tdep.c (arm_gdbarch_init): Update.
8359 * alpha-tdep.c (alpha_gdbarch_init): Update.
8360 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8361 max_register_raw_size or max_register_virtual_size.
8362
8363 2003-03-03 David Carlton <carlton@math.stanford.edu>
8364
8365 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8366 SYMBOL_MATCHES_NAME, add comment.
8367 (SYMBOL_MATCHES_NATURAL_NAME): New.
8368 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8369 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8370 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8371 * symtab.c (lookup_partial_symbol): Use
8372 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8373 unhelpful comment.
8374 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8375 SYMBOL_MATCHES_NAME.
8376 Fix for PR c++/33.
8377
8378 2003-03-03 David Carlton <carlton@math.stanford.edu>
8379
8380 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8381 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8382 by regexp matching against SYMBOL_NATURAL_NAME.
8383
8384 2003-03-03 David Carlton <carlton@math.stanford.edu>
8385
8386 * linespec.c (find_method): Extract code into collect_methods.
8387 (collect_methods): New.
8388
8389 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8390
8391 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8392 get_frame_base.
8393
8394 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8395 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8396
8397 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8398
8399 * arch-utils.c (generic_register_byte): Fix to use the loop index
8400 and not regnum when summing the size of all registers up to regnum.
8401
8402 2003-03-01 Andrew Cagney <cagney@redhat.com>
8403
8404 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8405 FRAME_INIT_SAVED_REGS.
8406 * gdbarch.h, gdbarch.c: Regenerate.
8407 * stack.c (frame_info): Update.
8408 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8409 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8410 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8411 * ns32k-tdep.c (ns32k_pop_frame): Update.
8412 * mips-tdep.c (mips_pop_frame): Update.
8413 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8414 * ia64-tdep.c (ia64_frame_chain): Update.
8415 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8416 (ia64_frameless_function_invocation): Update.
8417 (ia64_init_extra_frame_info): Update.
8418 (ia64_pop_frame_regular): Update.
8419 * frame.h (struct frame_info): Update comment.
8420 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8421 * frame.c (frame_saved_regs_register_unwind): Update.
8422 (frame_saved_regs_register_unwind): Update.
8423 (deprecated_generic_get_saved_register): Update.
8424 * cris-tdep.c: Update comment.
8425 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8426 Rename macro.
8427 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8428 * x86-64-tdep.c (x86_64_init_abi): Update.
8429 * vax-tdep.c (vax_gdbarch_init): Update.
8430 * v850-tdep.c (v850_gdbarch_init): Update.
8431 * sparc-tdep.c (sparc_gdbarch_init): Update.
8432 * sh-tdep.c (sh_gdbarch_init): Update.
8433 * s390-tdep.c (s390_gdbarch_init): Update.
8434 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8435 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8436 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8437 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8438 * mips-tdep.c (mips_gdbarch_init): Update.
8439 * mcore-tdep.c (mcore_gdbarch_init): Update.
8440 * m68k-tdep.c (m68k_gdbarch_init): Update.
8441 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8442 * ia64-tdep.c (ia64_gdbarch_init): Update.
8443 * i386-tdep.c (i386_gdbarch_init): Update.
8444 * frv-tdep.c (frv_gdbarch_init): Update.
8445 * avr-tdep.c (avr_gdbarch_init): Update.
8446 * arm-tdep.c (arm_gdbarch_init): Update.
8447 * alpha-tdep.c (alpha_gdbarch_init): Update.
8448
8449 2003-03-01 Andrew Cagney <cagney@redhat.com>
8450
8451 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8452 option enum and switch. When no windows, set the interpreter to
8453 INTERP_CONSOLE.
8454
8455 2003-03-01 Andrew Cagney <cagney@redhat.com>
8456
8457 * main.c (captured_main): Replace magic option characters with an
8458 enum.
8459
8460 2003-03-01 Andrew Cagney <cagney@redhat.com>
8461
8462 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8463 INIT_EXTRA_FRAME_INFO.
8464 * gdbarch.h, gdbarch.c: Regenerate.
8465 * arm-tdep.c: Update comments.
8466 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8467 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8468 * frame.h, avr-tdep.c: Ditto.
8469 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8470 (create_new_frame, legacy_get_prev_frame): Ditto.
8471 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8472 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8473 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8474 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8475 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8476 * v850-tdep.c (v850_gdbarch_init): Ditto.
8477 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8478 * sh-tdep.c (sh_gdbarch_init): Ditto.
8479 * s390-tdep.c (s390_gdbarch_init): Ditto.
8480 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8481 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8482 * mips-tdep.c (mips_gdbarch_init): Ditto.
8483 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8484 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8485 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8486 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8487 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8488 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8489 * frv-tdep.c (frv_gdbarch_init): Ditto.
8490 * cris-tdep.c (cris_gdbarch_init): Ditto.
8491 * avr-tdep.c (avr_gdbarch_init): Ditto.
8492 * arm-tdep.c (arm_gdbarch_init): Ditto.
8493 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8494 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8495
8496 2003-03-01 Andrew Cagney <cagney@redhat.com>
8497
8498 * gdbarch.sh (register_type): New function with predicate.
8499 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8500 * gdbarch.h, gdbarch.c: Re-generate.
8501 * arch-utils.c (generic_register_byte): Use generic_register_size.
8502 (generic_register_size): When available, use
8503 gdbarch_register_type.
8504 * regcache.c (init_regcache_descr): When available, initialize the
8505 register type array using gdbarch_register_type. If the
8506 architecture supplies gdbarch_register_type, do not use the legacy
8507 regcache layout.
8508 * d10v-tdep.c (d10v_register_type): Replace
8509 d10v_register_virtual_type.
8510 (d10v_gdbarch_init): Set register_type instead of
8511 register_virtual_type.
8512
8513 2003-03-01 Andrew Cagney <cagney@redhat.com>
8514
8515 * Makefile.in (ax-gdb.o): Update dependencies.
8516 * ax-gdb.c: Include "regcache.h".
8517 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8518 * findvar.c (value_of_register): Ditto.
8519 * infcmd.c (default_print_registers_info): Ditto.
8520
8521 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8522
8523 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8524 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8525
8526 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8527
8528 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8529 of STREQ.
8530
8531 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8532
8533 * Makefile.in (dwarf2loc.o): Update dependencies.
8534 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8535 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8536 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8537 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8538 (locexpr_tracepoint_var_ref): New function.
8539 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8540
8541 2003-02-28 Andrew Cagney <cagney@redhat.com>
8542
8543 * regcache.c (register_size): New function.
8544 * regcache.h (register_size): Declare
8545 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8546 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8547
8548 2003-02-28 David Carlton <carlton@math.stanford.edu>
8549
8550 * linespec.c (decode_compound): Extract code into find_method.
8551 (find_method): New.
8552
8553 2003-02-28 J. Brobecker <brobecker@gnat.com>
8554
8555 * Makefile.in: Add rules to build and link in observer.o.
8556
8557 2003-02-27 J. Brobecker <brobecker@gnat.com>
8558
8559 * observer.c: Minor comments edits.
8560
8561 2003-02-27 J. Brobecker <brobecker@gnat.com>
8562
8563 * observer.h, observer.c: New file.
8564
8565 2003-02-27 Andrew Cagney <cagney@redhat.com>
8566
8567 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8568
8569 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8570
8571 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8572 (M6812_OP_STS_EXT): Likewise.
8573 (m6811_prologue): Use the above to recognize prologue.
8574 (m6812_prologue): Likewise.
8575
8576 2003-02-27 David Carlton <carlton@math.stanford.edu>
8577
8578 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8579 SYMBOL_PRINT_NAME.
8580 (compare_psymbols): Ditto.
8581 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8582
8583 2003-02-27 Michael Snyder <msnyder@redhat.com>
8584
8585 * f-lang.c (build_fortran_types): New function.
8586 (_initialize_f_language): Gdbarch-register built-in fortran types.
8587 * doublest.c (extract_floating): Fix warning text.
8588
8589 2003-02-27 Andrew Cagney <cagney@redhat.com>
8590
8591 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8592 predicate. Replaces PUSH_DUMMY_FRAME.
8593 * gdbarch.h, gdbarch.c: Regnerate.
8594 * valops.c (hand_function_call): Update. Call
8595 generic_push_dummy_frame directly.
8596 * vax-tdep.c (vax_gdbarch_init): Update.
8597 * sparc-tdep.c (sparc_gdbarch_init): Update.
8598 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8599 * m68k-tdep.c (m68k_gdbarch_init): Update.
8600 * hppa-tdep.c (hppa_gdbarch_init): Update.
8601 * alpha-tdep.c (alpha_gdbarch_init): Update.
8602 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8603 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8604 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8605 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8606 push_dummy_frame to generic_push_dummy_frame.
8607 * v850-tdep.c (v850_gdbarch_init): Ditto.
8608 * sh-tdep.c (sh_gdbarch_init): Ditto.
8609 * s390-tdep.c (s390_gdbarch_init): Ditto.
8610 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8611 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8612 * mips-tdep.c (mips_gdbarch_init): Ditto.
8613 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8614 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8615 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8616 * i386-tdep.c (i386_gdbarch_init): Ditto.
8617 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8618 * frv-tdep.c (frv_gdbarch_init): Ditto.
8619 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8620 * cris-tdep.c (cris_gdbarch_init): Ditto.
8621 * avr-tdep.c (avr_gdbarch_init): Ditto.
8622 * arm-tdep.c (arm_gdbarch_init): Ditto.
8623
8624 2003-02-26 Kevin Buettner <kevinb@redhat.com>
8625
8626 * mips-tdep.c (show_mips_abi): New function.
8627 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8628 command ``show mips abi''.
8629
8630 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8631
8632 From Elena Zannoni <ezannoni@redhat.com>
8633 * dbxread.c (process_one_symbol): Only record line 0 if one or
8634 more sline entries have been seen for the function.
8635
8636 2003-02-26 Michael Chastain <mec@shout.net>
8637
8638 * configure: Regenerate with autoconf 000227.
8639
8640 2003-02-26 Michael Chastain <mec@shout.net>
8641
8642 Close PR build/660.
8643 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8644 for old libc5/glibc.
8645 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8646
8647 2003-02-26 Kris Warkentin <kewarken@qnx.com>
8648
8649 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8650 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8651
8652 2003-02-26 Michael Chastain <mec@shout.net>
8653
8654 * configure.in: New variable HAVE_UINTPTR_T.
8655 * configure, config.in: Regenerated.
8656
8657 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
8658
8659 Fix PR build/1097.
8660 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8661
8662 2003-02-25 Andrew Cagney <cagney@redhat.com>
8663
8664 * frame.c (get_prev_frame): Add comment on check for
8665 inside_entry_func. Only check for inside_entry_file when not a
8666 dummy and not a sentinel. Check that the new frame is not inner
8667 to the old frame.
8668
8669 2003-02-25 Andrew Cagney <cagney@redhat.com>
8670
8671 * frame.c (frame_debug): New variable.
8672 (_initialize_frame): Add "set/show debug frame" command.
8673 (get_prev_frame): When frame_debug, print reason why unwind
8674 failed.
8675
8676 2003-02-25 Michael Chastain <mec@shout.net>
8677
8678 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8679 to avoid uintptr_t definition problems.
8680
8681 2003-02-25 David Carlton <carlton@math.stanford.edu>
8682
8683 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8684 (SYMBOL_LINKAGE_NAME): Ditto.
8685 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8686 SYMBOL_LINKAGE_NAME.
8687 (struct general_symbol_info): Expand comment.
8688 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8689 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8690 (SYMBOL_MATCHES_REGEXP): Ditto.
8691 * symtab.c (symbol_natural_name): New function.
8692 * objfiles.h: Replace all uses of SYMBOL_NAME by
8693 DEPRECATED_SYMBOL_NAME.
8694 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8695 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8696 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8697 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8698 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8699 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8700 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8701 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8702 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8703 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8704 * ada-exp.y: Ditto.
8705 * ada-exp.y: Update copyright.
8706 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8707 * cp-valprint.c: Ditto.
8708
8709 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8710
8711 * infptrace.c (detach): Do not flag error if ptrace detach fails
8712 and errno is set to ESRCH.
8713
8714 2003-02-24 Andrew Cagney <cagney@redhat.com>
8715
8716 * infptrace.c (udot_info): Change type of udot_off to long. Use
8717 paddr when printing udot_off's value.
8718
8719 2003-02-24 David Carlton <carlton@math.stanford.edu>
8720
8721 * symtab.c (make_symbol_overload_list): Only read in partial
8722 symtabs containing a matching partial symbol.
8723
8724 2003-02-24 David Carlton <carlton@math.stanford.edu>
8725
8726 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8727 do the comparison, not strcmp.
8728 * symfile.c (compare_psymbols): Ditto.
8729 * defs.h: Declare strcmp_iw_ordered.
8730 * utils.c (strcmp_iw_ordered): New function.
8731
8732 2003-02-24 Jim Blandy <jimb@redhat.com>
8733
8734 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8735 support, shared libs): Remove my name from here, to better reflect
8736 reality.
8737
8738 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8739
8740 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8741 (target_ops): Add to_have_continuable_watchpoint.
8742 * target.c (update_current_target): Add INHERIT line for
8743 to_have_continuable_watchpoint.
8744 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8745 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8746 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8747 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8748
8749 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
8750
8751 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8752 maintainership.
8753
8754 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8755
8756 * solib.c (solib_open): Call target defined search function after
8757 failing with solib-search-path.
8758 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8759 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8760
8761 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8762
8763 * MAINTAINERS: Add myself to Write After section.
8764
8765 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8766
8767 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8768
8769 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8770
8771 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8772 (m68hc11_add_reggroups): New function.
8773 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8774 (m68hc11_gdbarch_init): Install the reggroups.
8775 (_initialize_m68hc11_tdep): Initialize them.
8776
8777 2003-02-21 James E Wilson <wilson@tuliptree.org>
8778
8779 * MAINTAINERS: Update my email address.
8780
8781 2003-02-21 David Carlton <carlton@math.stanford.edu>
8782
8783 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8784
8785 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
8786
8787 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8788 * symtab.h: Add opaque declarations of struct axs_value and
8789 struct agent_expr.
8790 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8791 (struct location_funcs): New type.
8792 (struct symbol): Add "loc" to aux_value.
8793 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8794 * dwarf2read.c: Include "dwarf2expr.h".
8795 (dwarf2_symbol_mark_computed): New function.
8796 (read_func_scope): Use it.
8797 (var_decode_location): New function.
8798 (new_symbol): Use it.
8799 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8800
8801 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8802 (dwarf2expr_h, dwarf2loc_h): New variables.
8803 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8804 (dwarf2expr.o, dwarf2loc.o): New rules.
8805 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8806 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8807 LOC_COMPUTED_ARG.
8808 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8809 * m2-exp.y (yylex): Likewise.
8810 * printcmd.c (address_info, print_frame_args): Likewise.
8811 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8812 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8813 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8814 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8815 * symtab.c (lookup_block_symbol): Likewise.
8816
8817 2003-02-20 Adam Fedor <fedor@gnu.org>
8818
8819 * symtab.h: Remove objc_specific struct
8820 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8821 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8822 Have language_objc use cplus_specific struct.
8823
8824 2003-02-20 Tom Tromey <tromey@redhat.com>
8825
8826 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8827 TYPE_NAME, when printing a String value. PR java/1075.
8828
8829 2003-02-20 Adam Fedor <fedor@gnu.org>
8830
8831 * objc-lang.h (find_methods): Remove declaration.
8832 * objc-lang.c (find_methods): Make static.
8833
8834 2003-02-20 Christopher Faylor <cgf@redhat.com>
8835
8836 * win32-nat.c (get_image_name): Check return value from
8837 ReadProcessMemory.
8838 (child_xfer_memory): Ditto.
8839
8840 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
8841
8842 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8843 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8844 '${exec_prefix}' (in addition to the expansion thereof) as
8845 relocatable.
8846 * configure: Rebuilt.
8847
8848 2003-02-20 David Carlton <carlton@math.stanford.edu>
8849
8850 * symtab.c (search_symbols): Revert the search_symbols part of my
8851 2002-12-23 patch. Add comment.
8852
8853 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8854
8855 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8856 * dbxread.c (elfstab_build_psymtabs): Don't call
8857 install_minimal_symbols.
8858 (stabsect_build_psymtabs): Likewise.
8859 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8860 earlier.
8861 * somread.c (som_symfile_read): Call install_minimal_symbols
8862 and do_cleanups earlier.
8863 * nlmread.c (nlm_symfile_read): Likewise.
8864 * mdebugread.c (elfmdebug_build_psymtabs): Call
8865 install_minimal_symbols and make appropriate cleanups.
8866
8867 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8868
8869 * solib.c (reload_shared_libraries): New function.
8870 (_initialize_solib): Add callbacks for ``set solib-search-path''
8871 and ``set solib-absolute-prefix''.
8872
8873 2003-02-20 David Carlton <carlton@math.stanford.edu>
8874
8875 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8876 expand comment.
8877 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8878 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8879 * ada-typeprint.c (ada_typedef_print): Ditto.
8880 * ax-gdb.c (gen_var_ref): Ditto.
8881 * breakpoint.c (print_one_breakpoint): Ditto.
8882 * buildsym.c (finish_block): Ditto.
8883 * c-valprint.c (c_val_print): Ditto.
8884 * expprint.c (print_subexp): Ditto.
8885 * findvar.c (locate_var_value): Ditto.
8886 * infcmd.c (jump_command): Ditto.
8887 * linespec.c (decode_line_2, decode_compound): Ditto.
8888 * maint.c (maintenance_translate_address): Ditto.
8889 * objc-lang.c (compare_selectors, compare_classes): Ditto.
8890 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8891 Ditto.
8892 * p-valprint.c (pascal_val_print): Ditto.
8893 * stabsread.c (define_symbol): Ditto.
8894 * stack.c (print_frame, frame_info, print_block_frame_locals)
8895 (print_frame_arg_vars, return_command): Ditto.
8896 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8897 * symmisc.c (print_symbol): Ditto.
8898 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8899 (compare_search_syms, print_symbol_info, print_msymbol_info)
8900 (rbreak_command): Ditto.
8901 * tracepoint.c (tracepoints_info): Ditto.
8902 * typeprint.c (typedef_print): Ditto.
8903 * valops.c (value_of_variable, hand_function_call): Ditto.
8904 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8905 * ada-typeprint.c: Update Copyright.
8906 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8907 * tracepoint.c, cli/cli-cmds.c: Ditto.
8908
8909 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8910
8911 * frame.c (generic_unwind_get_saved_register): Make non-static.
8912 * frame.h (generic_unwind_get_saved_register): Declare.
8913 * mips-tdep.c (read_next_frame_reg): Fetch register from
8914 current regcache when frame is NULL.
8915 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8916 that must be NULL.
8917 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8918 instead of frame_register_unwind().
8919
8920 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8921
8922 * remote-sim.c (gdbsim_insert_breakpoint)
8923 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8924 code.
8925
8926 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8927
8928 * remote.c (_initialize_remote): Add commands "set/show remote
8929 hardware-watchpoint-limit" and "set/show remote
8930 hardware-breakpoint-limit".
8931 (remote_hw_watchpoint_limit): Initialize to -1.
8932 (remote_hw_breakpoint_limit): Ditto.
8933 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8934
8935 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8936
8937 * coff-pe-read.c: New file - support reading of minimal symbols from a
8938 portable executable using the export table.
8939 * coff-pe-read.h: New file.
8940 * coffread.c: Include coff-pe-read.h.
8941 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8942 debugging symbols found.
8943 * Makefile.in (SFILES): Add coff-pe-read.o.
8944 (coff_pe_read_h): Define.
8945 (COMMON_OBS): Add coff-pe-read.o.
8946 (coffread.o): Add coff_pe_read_h dependency.
8947 (coff-pe-read.o): New target.
8948
8949 2003-02-19 David Carlton <carlton@math.stanford.edu>
8950
8951 * Makefile.in (SFILES): Add block.c.
8952 (block_h): New.
8953 (COMMON_OBS): Add block.o.
8954 (block.o): New.
8955 (x86-64-tdep.o): Add $(block_h).
8956 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8957 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8958 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8959 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8960 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8961 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8962 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8963 * value.h: Add opaque declaration for struct block.
8964 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8965 * ada-lang.h: Ditto.
8966 * x86-64-tdep.c: #include "block.h"
8967 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8968 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8969 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8970 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8971 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8972 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8973 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8974 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8975 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8976 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8977 * symtab.c (block_function): Ditto.
8978 (contained_in): Ditto.
8979 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8980 block.h. Add opaque declaration for struct block.
8981 * symtab.h: Move block_function and contained_in declarations to
8982 block.h. Add opaque declarations for struct block, struct
8983 blockvector.
8984 (struct block): Move to block.h.
8985 (struct blockvector): Ditto.
8986 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8987 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8988 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8989 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8990 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8991 Ditto.
8992 * block.c: New file.
8993 * block.h: New file.
8994
8995 2003-02-19 Theodore A. Roth <troth@openavr.org>
8996
8997 * avr-tdep.c (avr_extract_return_value): Remove function.
8998 (avr_store_return_value): Remove function.
8999 (avr_extract_struct_value_address): Remove function.
9000 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9001
9002 2003-02-19 Andrew Cagney <ac131313@redhat.com>
9003
9004 * rs6000-tdep.c: Include "gdb_assert.h".
9005 (registers_e500): Add "acc" and "spefscr".
9006 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9007 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9008 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9009 really is "r0".
9010 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9011
9012 2003-02-18 Keith Seitz <keiths@redhat.com>
9013
9014 * Makefile.in: Add gdbtk-interps.c.
9015
9016 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9017
9018 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9019 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9020
9021 2003-02-18 Andrew Cagney <cagney@redhat.com>
9022
9023 * symtab.h (struct objfile): Add opaque declaration.
9024
9025 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
9026
9027 From Jim Ingham <jingham@apple.com>:
9028 * dbxread.c (process_one_symbol): Use last_function_start rather
9029 than function_start_offset to find the real beginning of the
9030 current function. The latter is just the text section offset on
9031 some systems, the former is always the real function start.
9032
9033 2003-02-17 Andrew Cagney <cagney@redhat.com>
9034
9035 * configure.in: Revert ${target} != ${host}.
9036
9037 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9038
9039 * configure.in (Makefile): Use the test ${target} != ${host},
9040 instead of the absence of the "nm.h" file, to determine of the
9041 configuration non-native.
9042 * configure: Regenerate.
9043
9044 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
9045
9046 From Brian Ford <ford@vss.fsi.com>
9047
9048 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9049 conditionalize tui_active test.
9050 (lookup_cmd_1): Ditto.
9051
9052 2003-02-14 Mark Kettenis <kettenis@gnu.org>
9053
9054 * configure.in: Add check for _etext.
9055 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9056 available.
9057 * config.in, configure: regenerated.
9058
9059 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
9060
9061 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9062
9063 2003-02-14 Andrew Cagney <ac131313@redhat.com>
9064
9065 * main.c (tui_version): Delete variable.
9066 (captured_main): When --tui, set interpreter_p to "tui" instead of
9067 enabling tui_version.
9068 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9069 tui_version.
9070 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9071 * cli/cli-cmds.c (disassemble_command): Ditto.
9072 * defs.h (tui_version): Delete declaration.
9073 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9074 (tui-interp.o): Add rules.
9075 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9076
9077 2003-02-14 Christopher Faylor <cgf@redhat.com>
9078
9079 * win32-nat.c (register_loaded_dll): Correctly set address range for
9080 just-loaded dll.
9081
9082 2003-02-12 Jason Molenda (jmolenda@apple.com)
9083
9084 * symmisc.c (print_objfile_statistics): Include information about
9085 the number of psymtabs and symtabs in each object file.
9086
9087 2003-02-13 Keith R Seitz <keiths@redhat.com>
9088
9089 * main.h (struct captured_main_args): Add interpreter_p.
9090 * main.c (captured_main): Initialize interpreter_p from context.
9091 * gdb.c (main): Set interpreter_p argument.
9092 * Makefile.in (gdb.o): Add dependency for interps.h.
9093
9094 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9095
9096 * event-top.c (cli_command_loop): Delete declaration.
9097 (_initialize_event_loop): Delete function setting event_loop_hook.
9098 * event-top.h (cli_command_loop): Declare. Update copyright.
9099 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9100 * interps.c (current_interp_command_loop): When event_loop_p, call
9101 cli_command_loop.
9102
9103 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9104
9105 * interps.h (interp_command_loop_ftype): Change return type to
9106 void.
9107
9108 2003-02-12 Michal Ludvig <mludvig@suse.cz>
9109
9110 * x86-64-tdep.c (x86_64_extract_return_value)
9111 (x86_64_store_return_value): Use regcache instead of regbuf.
9112 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9113 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9114
9115 2003-02-11 Andrew Cagney <ac131313@redhat.com>
9116
9117 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9118 * aclocal.m4: Regenerate.
9119 * configure: Regenerate.
9120
9121 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9122 TCL_LD_SEARCH_FLAGS.
9123
9124 2003-02-10 Michal Ludvig <mludvig@suse.cz>
9125
9126 * dwarf2cfi.c: Reindented.
9127
9128 2003-02-09 Andrew Cagney <ac131313@redhat.com>
9129
9130 * interps.c (clear_interpreter_hooks): Convert function definition
9131 to ISO C.
9132
9133 2003-02-07 David Carlton <carlton@math.stanford.edu>
9134
9135 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9136
9137 2003-02-07 Kevin Buettner <kevinb@redhat.com>
9138
9139 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9140 (struct type): ...to here.
9141 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9142 field.
9143 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9144 (replace_type): Set length on all type variants for a given type.
9145
9146 2003-02-07 Andrew Cagney <ac131313@redhat.com>
9147
9148 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9149 <sys/stat.h>.
9150 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9151
9152 2003-02-06 Andrew Cagney <ac131313@redhat.com>
9153
9154 * Makefile.in (symm-nat.o): Update dependencies.
9155 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9156 (lynx-nat.o, ia64-linux-nat.): Ditto.
9157 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9158 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9159 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9160
9161 * Makefile.in (inflow_h): Define.
9162 (procfs.o, inflow.o, procfs.o): Update dependencies.
9163 * inftarg.c (child_stop): Delete extern declaration of
9164 inferior_process_group. Include "inflow.h".
9165 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9166 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9167 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9168 (our_process_group, inferior_process_group): Extern declarations.
9169
9170 * procfs.c: Include "gdb_assert.h".
9171
9172 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9173 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9174 * jv-typeprint.c (java_type_print_base): Ditto.
9175 * typeprint.c (typedef_print): Eliminate STREQ.
9176 * cli/cli-script.c (define_command, define_command): Ditto.
9177 * main.c (captured_main): Ditto.
9178 * values.c (lookup_internalvar): Ditto.
9179 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9180 within `if' conditional.
9181 * linespec.c (decode_line_2): Ditto.
9182 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9183 (bfd_openw_with_cleanup): Ditto.
9184
9185 2003-02-07 Mark Kettenis <kettenis@gnu.org>
9186
9187 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9188 legacy_extract_return_value and store_return_value to
9189 legacy_return_value.
9190
9191 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9192
9193 * win32-nat.c (get_relocated_section_addrs): New function. Find
9194 section load addresses for symbol handling in relocated DLLs.
9195 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9196
9197 2003-02-05 Fred Fish <fnf@intrinsity.com>
9198
9199 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9200 '=' and '!='.
9201 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9202 with '&' and '=='.
9203 (angel_RDI_info): Ditto.
9204 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9205 with '&' and '!='.
9206 (threads_continue_all_with_signals): Ditto.
9207
9208 2003-02-05 Jim Ingham <jingham@apple.com>
9209 Keith Seitz <keiths@redhat.com>
9210 Elena Zannoni <ezannoni@redhat.com>
9211 Andrew Cagney <ac131313@redhat.com>
9212
9213 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9214 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9215 (SUBDIR_MI_OBS): Add "mi-interp.o".
9216 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9217 (SFILES): Add "interps.c".
9218 (COMMON_OBS): Add "interps.o".
9219 (interps_h, mi_main_h): Define.
9220 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9221 (mi-main.o, main.o, event-top.o): Update dependencies.
9222 * cli/cli-interp.c: New file.
9223 * interps.h, interps.c: New files.
9224 * top.c: (gdb_init): Don't install the default interpreter, handed
9225 by captured_main.
9226 * main.c: Include "interps.h".
9227 (interpreter_p): Note that it should malloc'ed.
9228 (captured_command_loop): Call current_interp_command_loop.
9229 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9230 xfree and xstrdup when updating interpreter_p. Install the
9231 default interpreter. Add hack to stop mi1's copyright notice
9232 being encoded.
9233 * event-top.h (gdb_setup_readline): Declare.
9234 (gdb_disable_readline): Declare.
9235 * event-top.c: Include "interps.h".
9236 (display_gdb_prompt): Call current_interp_display_prompt_p.
9237 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9238 gdb_stdlog, and gdb_stdtarg.
9239 (_initialize_event_loop): Don't call gdb_setup_readline.
9240 * cli-out.c (cli_out_set_stream): New function.
9241 * cli-out.h (cli_out_set_stream): Declare.
9242
9243 2003-02-06 Mark Kettenis <kettenis@gnu.org>
9244
9245 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9246 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9247 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9248 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9249 config/i386/i386v42mp.mt: Removed.
9250
9251 2003-02-05 Mark Kettenis <kettenis@gnu.org>
9252
9253 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9254 GDB_OSABI_SOLARIS.
9255
9256 2003-02-05 Michael Chastain <mec@shout.net>
9257
9258 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9259 2.12.1 and earlier versions.
9260
9261 2003-02-05 Andrew Cagney <ac131313@redhat.com>
9262
9263 Remove orphaned hosts, targets and files.
9264 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9265 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9266 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9267 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9268 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9269 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9270 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9271 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9272 * config/sparc/tm-sp64sim.h: Delete.
9273 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9274 hosts.
9275 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9276 mips*-dec-mach3* targets.
9277
9278 2003-02-04 Michael Chastain <mec@shout.net>
9279
9280 * NEWS: Fix typo: sepcifying -> specifying.
9281
9282 2003-02-04 Michael Chastain <mec@shout.net>
9283
9284 * dwarfread.c: Add documentation on the state of dwarf-1,
9285 looking towards obsoletion.
9286
9287 2003-02-03 Michael Chastain <mec@shout.net>
9288
9289 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9290 gdb/testsuite/gdb.c++/pr-1023.exp.
9291
9292 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9293
9294 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9295 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9296
9297 * utils.c (init_page_info): Delete reference to MPW in comments.
9298 * main.c (captured_main): Delete #ifdef MPW.
9299
9300 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9301
9302 * NEWS: Note that the m32r-*-elf* is obsolete.
9303 * monitor.c (monitor_expect): Obsolete reference to m32r.
9304 * configure.tgt: Mark m32r-*-elf* as obsolete.
9305 * MAINTAINERS: Mark m32k as obsolete.
9306 * m32r-rom.c: Obsolete file.
9307 * config/m32r/m32r.mt: Obsolete file.
9308 * config/m32r/tm-m32r.h: Obsolete file.
9309 * m32r-stub.c: Obsolete file.
9310 * m32r-tdep.c: Obsolete file.
9311
9312 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9313
9314 * NEWS: Mention that the z8k-zilog-none is obsolete.
9315 * MAINTAINERS: Mark z8k as obsolete.
9316 * configure.tgt: Obsolete the z8k-*-coff* target.
9317 * config/z8k/z8k.mt: Obsolete file.
9318 * config/z8k/tm-z8k.h: Obsolete file.
9319 * z8k-tdep.c: Obsolete file.
9320
9321 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9322
9323 * NEWS: Mention that the mn10200-elf is obsolete.
9324 * configure.tgt: Obsolete mn10200-*-* target.
9325 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9326 mention that the mn10200 is obsolete.
9327 * breakpoint.h: Ditto.
9328 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9329 * config/mn10200/mn10200.mt: Obsolete file.
9330 * config/mn10200/tm-mn10200.h: Obsolete file.
9331 * mn10200-tdep.c: Obsolete file.
9332
9333 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9334
9335 * MAINTAINERS: Mark h8500 as obsolete.
9336 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9337 * findvar.c (value_from_register): Ditto.
9338 * h8500-tdep.c: Mark file as obsolete.
9339 * config/h8500/h8500.mt: Ditto.
9340 * config/h8500/tm-h8500.h: Ditto.
9341 * NEWS: Mention that h8500 is obsolete.
9342
9343 2003-02-04 David Carlton <carlton@math.stanford.edu>
9344
9345 * objfiles.c (allocate_objfile): Always set name. Add comment at
9346 start of function.
9347 * jv-lang.c (get_dynamics_objfile): Add comment.
9348
9349 2003-02-04 David Carlton <carlton@math.stanford.edu>
9350
9351 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9352 * printcmd.c (build_address_symbolic): Replace uses of
9353 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9354 SYMBOL_NAME, and asm_demangle.
9355 Update copyright.
9356
9357 2003-02-04 David Carlton <carlton@math.stanford.edu>
9358
9359 * linespec.c (decode_compound): Extract code into
9360 lookup_prefix_sym.
9361 (lookup_prefix_sym): New function.
9362
9363 2003-02-04 David Carlton <carlton@math.stanford.edu>
9364
9365 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9366 FLOAT_COERCION_BADNESS.
9367 * gdbtypes.c (rank_one_type): Replace all uses of
9368 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9369
9370 2003-02-04 Jim Blandy <jimb@redhat.com>
9371
9372 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9373 section, let dwarf_macinfo_section point to it, not
9374 dwarf_loc_section.
9375
9376 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9377
9378 Pointed out by Anton Blanchard <anton@samba.org>.
9379 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9380 (ppc_linux_at_sigtramp_return_path): Use it.
9381
9382 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9383
9384 * defs.h (streq): Add prototype.
9385 * utils.c (streq): New function.
9386
9387 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9388 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9389 * mdebugread.c (new_symbol): Likewise.
9390 * stabsread.c (define_symbol): Likewise.
9391 * coffread.c (process_coff_symbol): Likewise.
9392 * dwarfread.c (new_symbol): Likewise.
9393
9394 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9395 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9396 here.
9397 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9398 SYMBOL_INIT_DEMANGLED_NAME.
9399 * objfiles.c: Include "hashtab.h".
9400 (allocate_objfile): Call htab_set_functions_ex for the
9401 demangled_names_hash.
9402 (free_objfile): Call htab_delete for the demangled_names_hash.
9403 * objfiles.h (struct htab): Add declaration.
9404 (struct objfile): Add demangled_names_hash.
9405 * symfile.c: Include "hashtab.h".
9406 (reread_symbols): Call htab_delete for the demangled_names_hash.
9407 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9408 SYMBOL_NAME in the bcache.
9409 * symtab.c: Include "hashtab.h". Update comments.
9410 (create_demangled_names_hash, symbol_set_names): New functions.
9411 (symbol_find_demangled_name): New function, broken out from
9412 symbol_init_demangled_names.
9413 (symbol_init_demangled_names): Use it.
9414 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9415 (SYMBOL_SET_NAMES): New macro.
9416 (symbol_set_names): Add prototype.
9417
9418 2003-02-03 Jim Blandy <jimb@redhat.com>
9419
9420 Use a single, consistent representation for an empty minimal
9421 symbol table in an objfile.
9422 * objfiles.c (terminate_minimal_symbol_table): New function.
9423 (allocate_objfile): Call it.
9424 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9425 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9426 non-NULL.
9427 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9428 objfile has minimal symbols, compare minimal_symbol_count to zero,
9429 instead of comparing msymbols with NULL.
9430 * objfiles.c (have_minimal_symbols): Same.
9431 * solib-sunos.c (solib_add_common_symbols): Call
9432 terminate_minimal_symbol_table.
9433 * symfile.c (reread_symbols): Same.
9434
9435 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9436
9437 * s390-tdep.c (s390_address_class_type_flags)
9438 (s390_address_class_type_flags_to_name)
9439 (s390_address_class_name_to_type_flags): New functions.
9440 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9441 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9442
9443 2003-02-03 Michael Snyder <msnyder@redhat.com>
9444
9445 * arm-tdep.c: Fix spell-o in comment.
9446
9447 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9448
9449 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9450 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9451 error messages to contain BFD filename.
9452
9453 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9454
9455 Fix PR gdb/742 gdb/743 gdb/877
9456 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9457 (do_mixed_source_and_assembly): Use
9458 make_cleanup_ui_out_tuple_begin_end and
9459 make_cleanup_ui_out_tuple_begin_end.
9460 (do_mixed_source_and_assembly): Ditto.
9461 * thread.c (do_captured_list_thread_ids): Ditto.
9462 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9463 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9464 ui_out_tuple_end): Delete prototypes.
9465 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9466 ui_out_list_end, ui_out_tuple_end): Delete.
9467
9468 From Kevin Buettner <kevinb@redhat.com>:
9469 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9470 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9471 (do_cleanup_table_end): New functions.
9472 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9473 Use cleanups to invoke_ui_out_tuple_end().
9474 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9475 * cli/cli-setshow.c (cmd_show_list): Use
9476 make_cleanup_ui_out_tuple_begin_end.
9477
9478 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9479
9480 * frame.c (frame_unwind_register): New function.
9481 (frame_unwind_unsigned_register): Use.
9482 (frame_unwind_signed_register): Use.
9483 (frame_read_register): New function.
9484 * frame.h (frame_unwind_register): Declare.
9485 (frame_read_register): Declare.
9486
9487 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9488 and frame_unwind_register instead of read_memory, write_register
9489 and deprecated_write_register_bytes.
9490
9491 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9492
9493 * frame.h: Note that namelen can be negative.
9494 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9495 NAME's length.
9496
9497 * NEWS: Mention that the d10v's `regs' command is deprecated.
9498 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9499 (d10v_print_registers_info): New function.
9500 (show_regs): Call d10v_print_registers_info.
9501 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9502
9503 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9504
9505 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9506 lost in the previous patch.
9507
9508 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9509
9510 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9511 * stack.c (print_frame_info_base): Output complete FRAME tuple
9512 for synthesized frames.
9513
9514 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9515
9516 * mips-nat.c (zerobuf): Delete.
9517 (fetch_inferior_registers): Alloc local zerobuf.
9518 (fetch_core_registers): Alloc local zerobuf.
9519 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9520 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9521 * thread-db.c (thread_db_store_registers): Ditto.
9522 * sh-tdep.c (sh_do_register): Ditto.
9523 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9524 * remote-sim.c (gdbsim_store_register): Ditto.
9525 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9526 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9527 * monitor.c (monitor_supply_register): Ditto.
9528 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9529 * mips-nat.c (fetch_inferior_registers): Ditto.
9530 * m68klinux-nat.c (fetch_register): Ditto.
9531 * lynx-nat.c (fetch_inferior_registers): Ditto.
9532 (fetch_inferior_registers): Ditto.
9533 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9534 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9535 (hpux_thread_store_registers): Ditto.
9536 * hppah-nat.c (fetch_register): Ditto.
9537 * hppab-nat.c (fetch_register): Ditto.
9538 * hppa-tdep.c (pa_register_look_aside): Ditto.
9539 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9540 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9541
9542 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9543
9544 * gdbarch.sh: Explictly specify all method levels. When a
9545 variable with an empty level, provide a non-multi-arch default.
9546 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9547 * gdbarch.h: Re-generate.
9548 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9549 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9550
9551 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9552
9553 * defs.h (host_pointer_to_address): Delete declaration.
9554 (address_to_host_pointer): Delete declaration.
9555 * utils.c (host_pointer_to_address): Delete function.
9556 (address_to_host_pointer): Delete function.
9557 * procfs.c (procfs_address_to_host_pointer): New function.
9558 * procfs.c (proc_set_watchpoint): Use.
9559 (procfs_can_use_hw_breakpoint): Update comments.
9560 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9561 (som_solib_add): Use.
9562 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9563 * hppa-tdep.c (unwind_command): Use.
9564
9565 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9566
9567 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9568 strlen d_name.
9569
9570 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9571 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9572 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9573 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9574 (define_symbol): Update.
9575 * symfile.c (generic_load): Remove references to nindy.
9576 * symtab.c: Remove references to nindy.
9577
9578 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9579
9580 * infcmd.c (print_float_info): Delete code conditional on
9581 FLOAT_INFO.
9582 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9583 * config/m68k/nm-apollo68b.h: Ditto.
9584 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9585 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9586 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9587
9588 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9589
9590 * config/i386/tm-i386os9k.h: Removed.
9591
9592 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9593 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9594 they're identical to i[3456]86-*-sysv* now.
9595 * config/i386/i386v32.mh: Removed.
9596 * config/i386/xm-i386v32.h: Removed.
9597 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9598
9599 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9600
9601 * config/i386/i386dgux.mh: Removed.
9602 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9603
9604 * configure.in: Fix typo.
9605 * configure: Regenerated.
9606
9607 2003-01-31 David Carlton <carlton@math.stanford.edu>
9608
9609 * dwarf2read.c (dwarf2_locate_sections): Set
9610 dwarf_ranges_section.
9611
9612 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9613
9614 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9615 * utils.c: Update comments documenting legitimate uses of PTR.
9616
9617 * utils.c: Re-indent.
9618
9619 * config/djgpp/fnchange.lst: Delete nindy files.
9620 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9621 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9622 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9623 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9624 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9625 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9626 * Makefile.in (init.c): Remove nindy references.
9627 (saber_gdb): Delete rule.
9628 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9629 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9630 and a68v-nat.c.
9631 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9632 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9633 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9634 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9635 nindy-share/stop.h.
9636 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9637 * saber.suppress: Delete file.
9638
9639 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
9640
9641 * dbxread.c (stabs_data): New static variable.
9642 (fill_symbuf): Support an in-memory buffer for stabs data.
9643 (stabs_seek): New function.
9644 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9645 (read_ofile_symtab): Use stabs_seek.
9646 (elfstab_build_psymtabs): Take an asection* instead of
9647 an offset and size. Relocate the stabs data if necessary.
9648 Save the section* for dbx_psymtab_to_symtab.
9649 * dwarf2read.c: Add section variables for each debug section.
9650 (dwarf2_locate_sections): Fill them in.
9651 (dwarf2_read_section): Take an asection* argument.
9652 Relocate the section contents if necessary.
9653 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9654 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9655 it to dwarf2_read_section.
9656 (dwarf2_build_frame_info): Update callers.
9657 * elfread.c (elf_symfile_read): Update call to
9658 elfstab_build_psymtabs.
9659 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9660 (DBX_STAB_SECTION): New macro.
9661 * stabsread.h (elfstab_build_psymtabs): Update prototype.
9662 * symfile.c (symfile_dummy_outputs): New function.
9663 (symfile_relocate_debug_section): New function.
9664 * symfile.h (symfile_relocate_debug_section): Add prototype.
9665
9666 2003-01-31 Richard Henderson <rth@redhat.com>
9667
9668 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9669 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9670 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9671 * alpha-tdep.c (alpha_register_name): Add "unique".
9672 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9673 (ALPHA_UNIQUE_REGNUM): New.
9674 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9675
9676 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9677
9678 * README: Remove reference to Ericsson 1800 monitor.
9679 * Makefile.in (remote-es.o): Delete rule.
9680 (ALLDEPFILES): Delete remote-es.c.
9681 * remote-es.c: Delete file.
9682 * config/m68k/es1800.mt: Delete file.
9683 * config/djgpp/fnchange.lst: Update.
9684 * configure.tgt: Delete m68*-ericsson-* target.
9685
9686 2003-01-31 Adam Fedor <fedor@gnu.org>
9687
9688 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9689 Remove duplicate/shadowing variable of same name.
9690
9691 2003-01-30 Jim Blandy <jimb@redhat.com>
9692
9693 * symfile.c (find_separate_debug_file): Assert that the objfile's
9694 directory name we compute ends with a slash, and then assume that
9695 that's so everywhere we use it.
9696
9697 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
9698
9699 * valops.c (value_assign): Flush frame cache after stores to memory
9700 also.
9701
9702 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9703
9704 * Makefile.in (mon960-rom.o): Delete rule.
9705 * mon960-rom.c: Delete file.
9706
9707 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9708
9709 * d10v-tdep.c: Include "frame-unwind.h".
9710 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9711 list.
9712 (next_addr, uses_frame): Delete.
9713 (struct d10v_unwind_cache): Define.
9714 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9715 Use info instead of next_addr and uses_frame globals.
9716 (d10v_frame_init_saved_regs): Delete function.
9717 (d10v_init_extra_frame_info): Delete function.
9718 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9719 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9720 init_frame_pc or frame_saved_pc.
9721 (d10v_pop_frame): Delete function.
9722 (do_d10v_pop_frame): Delete function.
9723 (d10v_frame_chain): Delete function.
9724 (d10v_frame_chain_valid): Delete function.
9725 (d10v_frame_pc_unwind): New function.
9726 (d10v_frame_id_unwind): New function.
9727 (saved_regs_unwinder): New function.
9728 (d10v_frame_register_unwind): New function.
9729 (d10v_frame_pop): New function.
9730 (d10v_frame_unwind): New variable.
9731 (d10v_frame_p): New function.
9732 (d10v_frame_saved_pc): Delete function.
9733 * Makefile.in (d10v-tdep.o): Update dependencies.
9734
9735 2003-01-30 J. Brobecker <brobecker@gnat.com>
9736
9737 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9738 causing some regressions due to a change in the default value
9739 for this macro.
9740
9741 2003-01-29 Richard Henderson <rth@redhat.com>
9742 Elena Zannoni <ezannoni@redhat.com>
9743 Daniel Jacobowitz <drow@mvista.com>
9744
9745 Fix PR gdb/961.
9746 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
9747 variables.
9748 (RANGES_SECTION): New.
9749 (dwarf_ranges_buffer): New variable.
9750 (struct comp_unit_head): Add member "die".
9751 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9752 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9753 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9754 (dwarf2_locate_sections): Likewise.
9755 (dwarf2_build_psymtabs): Read .debug_ranges.
9756 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9757 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9758 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9759 Look for DW_AT_ranges and return the bounding box.
9760
9761 2003-01-29 Brian Ford <ford@vss.fsi.com>
9762
9763 * win32-nat.c (cygwin_pid): Removed as unused.
9764 (child_attach): Try fall back to Cygwin pid.
9765
9766 2003-01-29 Jim Blandy <jimb@redhat.com>
9767
9768 * objfiles.h (struct objfile): Doc fix.
9769
9770 2003-01-29 Andrew Cagney <ac131313@redhat.com>
9771
9772 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9773 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9774 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9775 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9776 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9777 (FRAME_SAVED_PC): Change to a function with predicate.
9778 * gdbarch.h, gdbarch.c: Re-generate.
9779
9780 2003-01-28 Andrew Cagney <ac131313@redhat.com>
9781
9782 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9783
9784 * complaints.c (complain): Delete function.
9785 * complaints.h (struct deprecated_complaint): Delete definition.
9786 (complain): Delete declaration.
9787
9788 2003-01-28 Kevin Buettner <kevinb@redhat.com>
9789
9790 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9791 dummy frames.
9792
9793 2003-01-27 Andrew Cagney <ac131313@redhat.com>
9794
9795 * sentinel-frame.h, sentinel-frame.c: New files.
9796 * Makefile.in (frame.o): Update dependencies.
9797 (SFILES): Add sentinel-frame.c.
9798 (sentinel_frame_h): Define.
9799 (COMMON_OBS): Add sentinel-frame.o.
9800 (sentinel-frame.o): Specify dependencies.
9801 * frame.c: Include "sentinel-frame.h".
9802 (frame_register_unwind): Rewrite assuming that there is always a a
9803 ->next frame.
9804 (frame_register, generic_unwind_get_saved_register): Ditto.
9805 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9806 (create_sentinel_frame, unwind_to_current_frame): New functions.
9807 (get_current_frame): Rewrite using create_sentinel_frame and
9808 unwind_to_current_frame. When possible, always create a frame.
9809 (create_new_frame): Set next to the sentinel frame.
9810 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9811 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9812 ID cache when necessary.
9813 (frame_saved_regs_id_unwind): Use frame_relative_level.
9814 (deprecated_generic_get_saved_register): Use frame_relative_level,
9815 get_frame_saved_regs, get_frame_pc, get_frame_base and
9816 get_next_frame.
9817 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9818 frame_register.
9819
9820 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9821
9822 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9823
9824 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9825
9826 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9827 (maintenance_set_profile_cmd): Use error () instead of warning ().
9828
9829 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9830
9831 * configure.in: Check that -pg works if using --enable-profiling.
9832 Check for monstartup and _mcleanup regardless of --enable-profiling.
9833 * maint.c: Check for monstartup and _mcleanup before using them.
9834 * config.in: Regenerated.
9835 * configure: Regenerated.
9836
9837 2003-01-24 Nick Clifton <nickc@redhat.com>
9838
9839 * Add sh2e support:
9840
9841 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9842
9843 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9844 (sh2e_show_regs): New.
9845 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9846 * config/sh/tm-sh.h: Added sh2e to comments.
9847
9848 2003-01-23 Jim Blandy <jimb@redhat.com>
9849
9850 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9851 symbols found)" message here; we haven't checked for a separate
9852 debug info file yet, so we don't know yet.
9853 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9854 we've looked everywhere. Also, there's no need to print a special
9855 message when we're loading the separate debug info file: the one
9856 symbol_file_add prints is fine.
9857
9858 2003-01-23 Alexander Larsson <alexl@redhat.com>
9859 Jim Blandy <jimb@redhat.com>
9860
9861 Add support for executables whose debug info has been separated
9862 out into a separate file, leaving only a link behind.
9863 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9864 and separate_debug_objfile_backlink.
9865 (put_objfile_before): New declaration.
9866 * symfile.c: #include "filenames.h".
9867 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9868 debug info in a separate file, read that, too. Save the addrs
9869 argument, so we can use it again to read the separated debug info;
9870 syms_from_objfile modifies the table we pass it.
9871 (reread_symbols): After re-reading an objfile, call
9872 reread_separate_symbols to refresh its separate debug info
9873 objfile, if it has one.
9874 (reread_separate_symbols, find_separate_debug_file,
9875 get_debug_link_info, separate_debug_file_exists): New functions.
9876 (debug_file_directory): New global var.
9877 (_initialize_symfile): Initialize debug_file_directory, and
9878 provide the new `set debug-file-directory' command to let the user
9879 change it.
9880 * objfiles.c (free_objfile): If this objfile has its debug info in
9881 a separate objfile, free that one too. If this is itself a
9882 separate debug info objfile, clear our parent's backlink.
9883 (put_objfile_before): New function.
9884 * utils.c (gnu_debuglink_crc32): New function.
9885 * defs.h (gnu_debuglink_crc32): New declaration.
9886 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9887 * configure.in: Handle --with-separate-debug-dir config option.
9888 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9889 * acconfig.h (DEBUGDIR): New macro.
9890 * configure, aclocal.m4, config.in: Regenerated.
9891
9892 2003-01-22 Jim Blandy <jimb@redhat.com>
9893
9894 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9895 like the old symbol_file_add, but taking new arguments: you can
9896 now pass in either a `struct section_addr_info' list to say where
9897 each section is loaded, or a `struct section_offsets' table. Pass
9898 these new arguments through to syms_from_objfile as appropriate.
9899 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9900 with the appropriate quiescent values for the new arguments.
9901
9902 * symfile.c: #include "gdb_assert.h".
9903 (syms_from_objfile): Add the ability to pass in a section offset
9904 table directly, as an alternative to the section_addr_info table.
9905 Document arguments better.
9906 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9907 * symfile.h (syms_from_objfile): Update declaration.
9908 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9909 syms_from_objfile.
9910 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9911
9912 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
9913
9914 Original patch by Tom Tromey <tromey@cygnus.com> and
9915 Jason Molenda <jmolenda@apple.com>.
9916 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9917 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9918 * NEWS: Mention profiling.
9919 * configure.in (--enable-gdbtk): Fix typo.
9920 (--enable-profiling): New. Set PROFILE_CFLAGS.
9921 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9922 Fill in function.
9923 (profiling_state): New variable.
9924 (mcleanup_wrapper): New function.
9925 (_initialize_maint): Remove NOTYET, fix call to
9926 add_setshow_boolean_cmd for "maint set profile".
9927 * configure: Regenerated.
9928
9929 2003-01-21 Martin M. Hunt <hunt@redhat.com>
9930
9931 * Makefile.in (install-gdbtk): Install PNG images too.
9932
9933 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9934
9935 * exec.c (text_start): Delete global variable.
9936 (exec_file_attach): Make text_start local to the function.
9937 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9938 * valops.c (hand_function_call): Delete code that handles
9939 BEFORE_TEXT_END and AFTER_TEXT_END.
9940 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9941 of CALL_DUMMY_LOCATION.
9942 * gdbarch.c: Regenerate.
9943 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9944 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9945 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9946 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9947 (text_end): Delete extern declaration.
9948
9949 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9950
9951 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9952 * blockframe.c (backtrace_below_main): Move to "frame.c".
9953 (frame_chain_valid): Delete check for backtrace_below_main.
9954 (_initialize_blockframe): Delete initialization, move ``set
9955 backtrace-below-main'' command to "frame.c".
9956 (do_flush_frames_sfunc): Delete function.
9957 * frame.c: Include "command.h" and "gdbcmd.h".
9958 (frame_type_from_pc): New function.
9959 (create_new_frame): Use frame_type_from_pc.
9960 (legacy_get_prev_frame): New function.
9961 (get_prev_frame): Rewrite. When an old style frame, call
9962 legacy_get_prev_frame. Otherwize, unwind the PC first.
9963 (_initialize_frame): Add ``set backtrace-below-main'' command.
9964 * Makefile.in (frame.o): Update dependencies.
9965
9966 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9967
9968 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9969 DEPRECATED_REGISTERS_INFO.
9970
9971 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9972
9973 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9974 Maintainers'. Update `Various Maintainers'.
9975
9976 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9977
9978 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9979 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9980 Suppress actual parameters when `-'.
9981 * gdbarch.h, gdbarch.c: Regenerate.
9982
9983 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9984
9985 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9986 code handling dummy frames.
9987
9988 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9989
9990 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9991 (struct frame_unwind): Add field pop.
9992 * frame.h (frame_pop): Declare.
9993 * frame.c (frame_saved_regs_pop): New function.
9994 (trad_frame_unwinder): Add frame_saved_regs_pop.
9995 (frame_pop): New function.
9996 * dummy-frame.c (dummy_frame_pop): New function.
9997 (discard_innermost_dummy): New function.
9998 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9999 (dummy_frame_unwind): Add dummy_frame_pop.
10000 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10001 * valops.c (hand_function_call): Ditto.
10002 * stack.c (return_command): Ditto.
10003
10004 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10005
10006 * cris-tdep.c: Fix function declaration indentation.
10007 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10008 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10009 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10010 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10011 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10012 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10013
10014 2003-01-18 Michael Chastain <mec@shout.net>
10015
10016 * README (Unpacking and Installation -- quick overview):
10017 Warn against ".../gdb-5.3/gdb/configure".
10018
10019 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10020
10021 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10022 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10023 (struct frame_unwind): Declare opaque.
10024 (dummy_frame_p): Declare function.
10025 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10026 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10027 * dummy-frame.c: Include "frame-unwind.h".
10028 (dummy_frame_p): New function.
10029 (dummy_frame_unwind): New variable.
10030 * frame.c: Include "frame-unwind.h".
10031 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10032 to use the new unwind field.
10033 (set_unwind_by_pc): Delete function.
10034 (create_new_frame, get_prev_frame): Set unwind field using
10035 frame_unwind_find_by_pc.
10036 (trad_frame_unwind, trad_frame_unwinder): New variables.
10037 * frame.h (trad_frame_unwind): Declare variable.
10038 (frame_id_unwind_ftype): Delete declaration.
10039 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10040 (struct frame_unwind): Declare opaque.
10041 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10042 register_unwind with a single unwind pointer.
10043 * frame-unwind.h, frame-unwind.c: New files.
10044 * Makefile.in (SFILES): Add frame-unwind.c.
10045 (frame_unwind_h): Define.
10046 (COMMON_OBS): Add frame-unwind.o.
10047 (frame-unwind.o): Specify dependencies.
10048 (frame.o, dummy-frame.o): Update dependencies.
10049
10050 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10051
10052 * ada-valprint.c: Eliminate PTR.
10053 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10054 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10055 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10056 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10057 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10058 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10059 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10060
10061 2003-01-17 Andrew Cagney <ac131313@redhat.com>
10062
10063 * main.c (captured_main): Don't use PTR.
10064 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10065 * gdbtypes.c (lookup_primitive_typename): Ditto.
10066 (lookup_struct_elt_type): Ditto.
10067 * f-valprint.c (info_common_command): Ditto.
10068 (list_all_visible_commons): Ditto.
10069 * jv-typeprint.c (java_type_print_base): Ditto.
10070
10071 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10072 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10073 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10074 i386-interix-nat.c and i386-interix-tdep.c. Rename
10075 m68klinux-nat.c and m68klinux-tdep.c. Rename
10076 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10077 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10078 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10079 * main.c (captured_main): Use xfree, not free.
10080
10081 2003-01-16 Andrew Cagney <ac131313@redhat.com>
10082
10083 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10084 ID back using a parameter.
10085 * frame.c (frame_id_unwind): Update call.
10086 (frame_saved_regs_id_unwind): Update.
10087 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10088 * dummy-frame.h (struct frame_id): Add opaque declaration.
10089 (dummy_frame_id_unwind): Update declaration.
10090
10091 2003-01-15 Andrew Cagney <ac131313@redhat.com>
10092
10093 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10094
10095 2003-01-15 Stephen P. Smith <ischis2@cox.net>
10096
10097 * MAINTAINERS (Stephen P. Smith): Updated email address.
10098
10099 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
10100
10101 Fix PR gdb/898
10102 * breakpoint.c (until_break_command): Add new argument. Use it to
10103 decide whether to stop only at the current frame or not.
10104 * breakpoint.h (until_break_command): Update prototype.
10105 * infcmd.c (until_command): Add new argument to until_break_command
10106 call.
10107 (advance_command): New function.
10108 (_initialize_infcmd): Update help string for 'until' command.
10109 Add new 'advance' command.
10110
10111 2003-01-14 David Carlton <carlton@math.stanford.edu>
10112
10113 * linespec.c (decode_line_1): Normalize comments.
10114 (set_flags): Ditto.
10115 (locate_first_half): Ditto.
10116 (decode_compound): Ditto.
10117 (symtab_from_filename): Ditto.
10118 (decode_all_digits): Ditto.
10119 (decode_dollar): Ditto.
10120 (find_methods): Ditto.
10121 (find_toplevel_char): Ditto.
10122
10123 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10124
10125 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10126 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10127 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10128 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10129 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10130 * language.c, language.h, m32r-tdep.c: Update copyright.
10131 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10132 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10133 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10134 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10135 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10136 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10137
10138 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10139
10140 * stabsread.h (process_later, resolve_cfront_continuation):
10141 Obsolete.
10142 Update copyright years.
10143 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10144 Update copyright year.
10145 * dbxread.c(struct cont_elem): Obsolete.
10146 (process_later, process_now): Obsolete functions.
10147 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10148 Update copyright year.
10149 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10150 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10151 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10152 (parse_partial_symbols): Obsolete cfront support.
10153 * stabsread.c
10154 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10155 macros.
10156 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10157 read_cfront_baseclasses, read_cfront_member_functions,
10158 resolve_cfront_continuation,read_cfront_static_fields,
10159 copy_cfront_struct_fields): Obsolete functions.
10160 (define_symbol, read_one_struct_field): Obsolete cfront support.
10161 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10162 Update Copyright year.
10163
10164 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10165
10166 * stack.c (print_frame_info, print_stack_frame_base_stub,
10167 print_stack_frame_base, show_and_print_stack_frame_stub,
10168 show_and_print_stack_frame, print_only_stack_frame_stub,
10169 print_only_stack_frame): Delete functions.
10170 (print_stack_frame_stub): Call print_frame_info instead of
10171 print_frame_info_base.
10172 (print_frame_info_base): Rename to print_frame_info.
10173 (backtrace_command_1): Call print_frame_info, instead of
10174 print_frame_info_base.
10175 (current_frame_command): Call print_stack_frame, instead of
10176 print_only_stack_frame.
10177 (frame_command): Call print_stack_frame, instead of
10178 show_and_print_stack_frame.
10179 (up_command): Ditto.
10180 (down_command): Ditto.
10181 * frame.h (print_only_stack_frame): Delete prototype.
10182 * infrun.c (normal_stop): Call print_stack_frame, instead of
10183 show_and_print_stack_frame.
10184 * thread.c (info_threads_command): Call print_stack_frame, instead
10185 of print_only_stack_frame.
10186
10187 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10188
10189 * README (Graphical interface to GDB): Update URL. Point at
10190 gdb/links/.
10191
10192 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10193 version match.
10194
10195 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10196
10197 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10198 lines.
10199
10200 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10201
10202 * thread-db.c (attach_thread): Prototype.
10203 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10204 thread information (ti), and valid flags (th_valid, ti_valid).
10205 (attach_thread): Move target_pid_to_str call to after the thread
10206 is added to GDB's list. Initialize the cache.
10207 (thread_get_info_callback, thread_db_map_id2thr)
10208 (thread_db_get_info): New functions.
10209 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10210 (thread_db_store_registers, thread_db_thread_alive)
10211 (thread_db_get_thread_local_address): Use them.
10212 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10213 of calling error() for threads in unknown state.
10214
10215 (clear_lwpid_callback): New function.
10216 (thread_db_resume): Use it to clear the cache.
10217
10218 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10219
10220 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10221 (resume_callback): Remove dead code.
10222
10223 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10224
10225 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10226 predicate.
10227 * gdbarch.h, gdbarch.c: Regenerate.
10228 * stack.c (frame_info): Only initialize the saved registers when
10229 FRAME_INIT_SAVED_REGS_P.
10230 * frame.c (frame_saved_regs_register_unwind): Assert
10231 FRAME_INIT_SAVED_REGS_P.
10232 (deprecated_generic_get_saved_register): Ditto.
10233
10234 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10235
10236 * source.c (openp): Squelch warning about "filename".
10237
10238 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10239
10240 * source.c (openp): If the file does not exist don't necessarily
10241 search the path.
10242
10243 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10244
10245 Fix PR gdb/872.
10246 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10247 (integer_types_same_name_p): New function.
10248 (rank_one_type): Use it.
10249 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10250
10251 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10252
10253 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10254 variables.
10255 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10256 * configure.in: Add --with-sysroot.
10257 * configure: Regenerated.
10258 * main.c (gdb_sysroot): New variable.
10259 (captured_main): Initialize gdb_sysroot.
10260 * defs.h (gdb_sysroot): New extern declaration.
10261 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10262
10263 2003-01-12 Michael Chastain <mec@shout.net>
10264
10265 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10266
10267 2003-01-12 Michael Chastain <mec@shout.net>
10268
10269 * top.c (print_gdb_version): Bump copyright year to 2003.
10270
10271 2003-01-12 David Carlton <carlton@bactrian.org>
10272
10273 * linespec.c (symtab_from_filename): Rename variable 's' to
10274 'file_symtab'.
10275
10276 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10277
10278 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10279 dummy frame.
10280 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10281
10282 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10283
10284 * d10v-tdep.c: Include "gdb_assert.h".
10285 (d10v_store_return_value): Rewrite to match current interface.
10286 (d10v_extract_struct_value_address): Ditto.
10287 (d10v_extract_return_value): Ditto.
10288 (d10v_gdbarch_init): Set store_restore_value,
10289 extract_struct_value_address and extract_return_value.
10290
10291 2003-01-12 J. Brobecker <brobecker@gnat.com>
10292
10293 * hpread.c (set_namestring): New procedure replacing the
10294 SET_NAMESTRING macro.
10295 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10296 by calls to set_namestring.
10297
10298 2003-01-11 J. Brobecker <brobecker@gnat.com>
10299
10300 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10301 a compilation warning.
10302 (hpread_process_one_debug_symbol): Likewise.
10303
10304 2003-01-10 David Carlton <carlton@math.stanford.edu>
10305
10306 * linespec.c (decode_line_1): Rename variable 's' to
10307 'file_symtab'.
10308 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10309 (decode_dollar): Ditto.
10310 (decode_variable): Ditto.
10311 (symbol_found): Ditto.
10312
10313 2003-01-09 Michael Chastain <mec@shout.net>
10314
10315 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10316
10317 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10318
10319 * win32-nat.c (set_process_privilege): New function.
10320 (child_attach): Call set_process_privilege() to enable the
10321 SE_DEBUG_NAME user privilege if available in process token.
10322
10323 2003-01-10 J. Brobecker <brobecker@gnat.com>
10324
10325 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10326 compilation error in the previous revision.
10327
10328 2003-01-09 David Carlton <carlton@math.stanford.edu>
10329
10330 * linespec.c: Update copyright.
10331
10332 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10333
10334 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10335 than inferior_ptid.
10336 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10337
10338 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10339
10340 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10341 Update comments.
10342 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10343 (frame_saved_regs_zalloc): Update.
10344 (frame_saved_regs_register_unwind): Update.
10345 (create_new_frame): Update.
10346 (get_prev_frame): Update.
10347 (frame_extra_info_zalloc): Update.
10348 (deprecated_get_frame_saved_regs): Update.
10349 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10350 * cris-tdep.c: Update comment.
10351
10352 * somsolib.h: Fix function indentation.
10353 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10354 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10355 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10356 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10357 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10358
10359 * infrun.c (follow_fork): Use ISO C definition.
10360 * expprint.c (print_subexp): Use xfree instead of free.
10361 * charset.c: Include "gdb_string.h" instead of <string.h>.
10362 (register_iconv_charsets): Use ISO C definition.
10363 (host_charset, target_charset): Ditto.
10364 * Makefile.in (charset.o): Update dependencies.
10365 (mi-cmd-env.o): Update dependencies.
10366
10367 2003-01-08 Andrew Cagney <cagney@redhat.com>
10368
10369 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10370 get_frame_base.
10371
10372 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10373
10374 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10375 build directories. Save edited gdb output in Mbuild.log. If a
10376 build fails, remove any final GDB executable.
10377
10378 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10379
10380 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10381 replacing hex constants with function names and stripping leading
10382 file name directory prefixes.
10383
10384 2003-01-08 Andrew Cagney <cagney@redhat.com>
10385
10386 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10387 get_frame_base.
10388
10389 2003-01-08 David Carlton <carlton@math.stanford.edu>
10390
10391 * linespec.c (decode_line_1): Move code into decode_variable.
10392 (decode_variable): New function.
10393
10394 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10395
10396 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10397
10398 2003-01-08 Andrew Cagney <cagney@redhat.com>
10399
10400 * cris-tdep.c (cris_frame_init_saved_regs): Use
10401 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10402 saved_regs buffer.
10403 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10404 (sh64_nofp_frame_init_saved_regs): Ditto.
10405 (sh_fp_frame_init_saved_regs): Ditto.
10406 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10407 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10408 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10409 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10410
10411 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10412
10413 * minsyms.c (lookup_minimal_symbol): Update comment.
10414 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10415 (lookup_minimal_symbol_solib_trampoline): Likewise.
10416
10417 2003-01-08 Andrew Cagney <cagney@redhat.com>
10418
10419 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10420 frame_relative_level.
10421
10422 * alpha-tdep.c: Use get_frame_extra_info.
10423 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10424 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10425 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10426 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10427
10428 * alpha-tdep.c: Use get_next_frame.
10429 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10430 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10431 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10432 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10433 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10434 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10435 * xstormy16-tdep.c: Ditto.
10436
10437 2003-01-07 Andrew Cagney <cagney@redhat.com>
10438
10439 * alpha-tdep.c: Use get_frame_base.
10440 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10441 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10442 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10443 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10444 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10445 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10446 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10447 * config/sparc/tm-sparc.h: Ditto.
10448
10449 2003-01-07 Andrew Cagney <cagney@redhat.com>
10450
10451 * frame.c (deprecated_get_frame_context): New function.
10452 (deprecated_set_frame_context): New function.
10453 * frame.h (deprecated_get_frame_context): Declare.
10454 (deprecated_set_frame_context): Declare.
10455 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10456 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10457
10458 2003-01-07 Andrew Cagney <cagney@redhat.com>
10459
10460 * frame.c (deprecated_set_frame_next_hack): New function.
10461 (deprecated_set_frame_prev_hack): New function.
10462 * frame.h (deprecated_set_frame_next_hack): Declare.
10463 (deprecated_set_frame_prev_hack): Declare.
10464 * mcore-tdep.c (analyze_dummy_frame): Use
10465 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10466 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10467
10468 2003-01-07 David Carlton <carlton@math.stanford.edu>
10469
10470 * linespec.c (decode_line_1): Move code into decode_dollar.
10471 (decode_dollar): New function.
10472
10473 2003-01-07 Andrew Cagney <cagney@redhat.com>
10474
10475 * arm-tdep.c (arm_init_extra_frame_info): Use
10476 deprecated_update_frame_base_hack.
10477 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10478 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10479 (fix_frame_pointer): Ditto.
10480 (mn10300_analyze_prologue): Ditto.
10481
10482 2003-01-07 Andrew Cagney <cagney@redhat.com>
10483
10484 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10485 extra_info using frame_extra_info_zalloc.
10486 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10487 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10488 (sh64_init_extra_frame_info): Ditto.
10489 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10490 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10491 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10492 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10493 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10494 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10495 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10496 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10497 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10498 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10499 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10500 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10501
10502 * mn10300-tdep.c (analyze_dummy_frame): Use
10503 deprecated_set_frame_extra_info_hack.
10504 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10505
10506 2003-01-07 J. Brobecker <brobecker@gnat.com>
10507
10508 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10509 class is not scText. These do not define "real" procedures.
10510 (parse_partial_symbols): Likewise.
10511
10512 2003-01-06 Michael Snyder <msnyder@redhat.com>
10513
10514 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10515
10516 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10517
10518 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10519 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10520 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10521 deprecated_frame_xmalloc_with_cleanup.
10522 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10523 deprecated_frame_xmalloc.
10524 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10525 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10526
10527 2003-01-06 Andrew Cagney <cagney@redhat.com>
10528
10529 * x86-64-linux-tdep.c: Include "osabi.h".
10530 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10531
10532 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10533
10534 2003-01-06 Andrew Cagney <cagney@redhat.com>
10535
10536 * MAINTAINERS (Target Instruction Set Architectures): Update
10537 arm-elf. Can be built with -Werror, has been multiarched.
10538
10539 * value.h (unpack_long): Make buffer parameter constant.
10540 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10541 * scm-lang.h (scm_parse): Ditto.
10542 * defs.h (extract_typed_address, extract_address): Ditto.
10543 (extract_long_unsigned_integer): Ditto.
10544 * inferior.h (unsigned_pointer_to_address): Ditto.
10545 (signed_pointer_to_address): Ditto.
10546 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10547 * gdbarch.h, gdbarch.c: Regenerate.
10548 * findvar.c (extract_long_unsigned_integer): Update.
10549 (extract_address): Update.
10550 (extract_typed_address): Update.
10551 (unsigned_pointer_to_address): Update.
10552 * values.c (unpack_long): Update.
10553 (unpack_double): Update.
10554 (unpack_pointer): Update.
10555 (unpack_field_as_long): Update.
10556 * d10v-tdep.c (d10v_pointer_to_address): Update.
10557 * avr-tdep.c (avr_pointer_to_address): Update.
10558 * scm-lang.c (scm_unpack): Update.
10559 * findvar.c (signed_pointer_to_address): Update.
10560
10561 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10562
10563 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10564 since it is in i386-tdep.c.
10565
10566 2003-01-06 J. Brobecker <brobecker@gnat.com>
10567
10568 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10569 failure introduced in the previous change.
10570
10571 2003-01-05 Michael Chastain <mec@shout.net>
10572
10573 * README: Remove references to deleted remote-*.c files:
10574 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10575 remote-nrom.c, remote-os9k.c, remote-udi.c.
10576
10577 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10578
10579 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10580 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10581 i386_get_longjmp_target.
10582
10583 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10584
10585 * arm-tdep.c (prologue_cache): Change to a pointer.
10586 (_initialize_arm_tdep): Allocate prologue_cache.
10587 (check_prologue_cache): Update.
10588 (save_prologue_cache): Update.
10589 (arm_gdbarch_init): Update.
10590
10591 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10592
10593 * stabsread.c (update_method_name_from_physname): Call complaint()
10594 instead of error.
10595
10596 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10597
10598 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10599 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10600 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10601
10602 * blockframe.c: Include "gdbcmd.h" and "command.h".
10603 (backtrace_below_main): New variable.
10604 (file_frame_chain_valid, func_frame_chain_valid)
10605 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10606 (generic_func_frame_chain_valid): Remove functions.
10607 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10608 (_initialize_blockframe): New function.
10609 * Makefile.in (blockframe.o): Update dependencies.
10610 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10611 comment. Call frame_chain_valid ().
10612 * frame.h: Remove old prototypes. Add prototype for
10613 frame_chain_valid and update comments to match.
10614 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10615 Remove old comment.
10616 * gdbarch.h: Regenerated.
10617 * gdbarch.c: Regenerated.
10618
10619 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10620 set_gdbarch_frame_chain_valid.
10621 * avr-tdep.c (avr_gdbarch_init): Likewise.
10622 * cris-tdep.c (cris_gdbarch_init): Likewise.
10623 * frv-tdep.c (frv_gdbarch_init): Likewise.
10624 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10625 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10626 (i386_nw_init_abi): Likewise.
10627 (i386_gdbarch_init): Likewise.
10628 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10629 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10630 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10631 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10632 * mips-tdep.c (mips_gdbarch_init): Likewise.
10633 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10634 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10635 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10636 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10637 * s390-tdep.c (s390_gdbarch_init): Likewise.
10638 * sh-tdep.c (sh_gdbarch_init): Likewise.
10639 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10640 * v850-tdep.c (v850_gdbarch_init): Likewise.
10641 * vax-tdep.c (vax_gdbarch_init): Likewise.
10642 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10643
10644 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10645 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10646 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10647 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10648 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10649 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10650 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10651 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10652
10653 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10654
10655 * Makefile.in (acconfig_h): Remove incorrect macro.
10656 (config_h): Define.
10657 (osabi.o): Update dependencies.
10658 * configure.tgt: Set gdb_osabi based on target triplet.
10659 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10660 * configure: Regenerated.
10661 * config.in: Regenerated.
10662 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10663 (GDB_OSABI_DEFAULT): Define if not already defined.
10664 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10665 (set_osabi_string): New variables.
10666 (gdbarch_register_osabi): Add new OS ABI to
10667 gdb_osabi_available_names.
10668 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10669 (set_osabi, show_osabi): New functions.
10670 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10671
10672 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10673
10674 * arch-utils.c (gdbarch_info_init): Set osabi to
10675 GDB_OSABI_UNINITIALIZED.
10676 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10677 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10678 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10679 * gdbarch.c: Regenerated.
10680 * gdbarch.h: Regenerated.
10681 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10682 there's no BFD.
10683 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10684 * osabi.h (enum gdb_osabi): Move to defs.h.
10685 (gdbarch_init_osabi): Update prototype.
10686 * defs.h (enum gdb_osabi): Moved here.
10687 * Makefile.in: Update dependencies.
10688
10689 * alpha-tdep.h: Don't include "osabi.h".
10690 (struct gdbarch_tdep): Remove osabi member.
10691 * alpha-tdep.c: Include "osabi.h".
10692 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10693 iterate over arches. Update call to gdbarch_init_osabi.
10694 (alpha_dump_tdep): Don't dump osabi.
10695 * alpha-linux-tdep.c: Include "osabi.h".
10696 * alpha-osf1-tdep.c: Include "osabi.h".
10697 * alphafbsd-tdep.c: Include "osabi.h".
10698 * alphanbsd-tdep.c: Include "osabi.h".
10699
10700 * arm-tdep.h: Don't include "osabi.h".
10701 (struct gdbarch_tdep): Remove osabi member.
10702 * arm-tdep.c: Include "osabi.h".
10703 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10704 iterate over arches. Update call to gdbarch_init_osabi.
10705 (arm_dump_tdep): Don't dump osabi.
10706 * arm-linux-tdep.c: Include "osabi.h".
10707 * armnbsd-tdep.c: Include "osabi.h".
10708
10709 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10710 Update call to gdbarch_init_osabi.
10711
10712 * i386-tdep.h: Don't include "osabi.h".
10713 (struct gdbarch_tdep): Remove osabi member.
10714 * i386-tdep.c: Include "osabi.h".
10715 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10716 iterate over arches. Update call to gdbarch_init_osabi.
10717 (i386_dump_tdep): Don't dump osabi.
10718 * i386-linux-tdep.c: Include "osabi.h".
10719 * i386-sol2-tdep.c: Include "osabi.h".
10720 * i386bsd-tdep.c: Include "osabi.h".
10721 * i386gnu-tdep.c: Include "osabi.h".
10722 * i386ly-tdep.c: Include "osabi.h".
10723 * i386nbsd-tdep.c: Include "osabi.h".
10724 * i386obsd-tdep.c: Include "osabi.h".
10725
10726 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10727 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10728 check osabi when iterating over arches. Update call to
10729 gdbarch_init_osabi.
10730 (mips_dump_tdep): Don't dump osabi.
10731
10732 * ns32k-tdep.h: Don't include "osabi.h".
10733 (struct gdbarch_tdep): Remove.
10734 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10735 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10736 allocate tdep. Update call to gdbarch_init_osabi.
10737 (ns32k_dump_tdep): Remove.
10738 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10739 * ns32knbsd-tdep.c: Include "osabi.h".
10740
10741 * ppc-tdep.h: Don't include "osabi.h".
10742 (struct gdbarch_tdep): Remove osabi member.
10743 * rs6000-tdep.c: Include "osabi.h".
10744 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10745 osabi when iterating over arches. Update call to
10746 gdbarch_init_osabi.
10747 (rs6000_dump_tdep): Don't dump osabi.
10748 * ppc-linux-tdep.c: Include "osabi.h".
10749 * ppcnbsd-tdep.c: Include "osabi.h".
10750
10751 * sh-tdep.h: Don't include "osabi.h".
10752 (struct gdbarch_tdep): Remove osabi member.
10753 * sh-tdep.c: Include "osabi.h".
10754 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10755 iterate over arches. Update call to gdbarch_init_osabi.
10756 (sh_dump_tdep): Don't dump osabi.
10757 * shnbsd-tdep.c: Include "osabi.h".
10758
10759 * sparc-tdep.c: Include "osabi.h".
10760 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10761 iterate over arches. Update call to gdbarch_init_osabi.
10762 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10763 tdep structure.
10764
10765 * vax-tdep.h: Don't include "osabi.h".
10766 (struct gdbarch_tdep): Remove.
10767 * vax-tdep.c: Include "osabi.h".
10768 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10769 iterate over arches. Don't allocate tdep. Update call
10770 to gdbarch_init_osabi.
10771 (vax_dump_tdep): Remove.
10772 (_initialize_vax_tdep): Update call to gdbarch_register.
10773
10774 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10775
10776 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10777 entirely.
10778 (breakpoint_re_set_one): Don't fetch the value for a disabled
10779 watchpoint.
10780
10781 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10782
10783 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10784 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10785 (COERCE_FLOAT_TO_DOUBLE): Remove.
10786 * gdbarch.c: Regenerate.
10787 * gdbarch.h: Regenerate.
10788 * Makefile.in: Remove value_h from gdbarch_h.
10789 * valops.c (coerce_float_to_double): New variable.
10790 (default_coerce_float_to_double): Remove.
10791 (standard_coerce_float_to_double): Remove.
10792 (value_arg_coerce): Use coerce_float_to_double.
10793 (_initialize_valops): Add "set coerce-float-to-double".
10794 * value.h (default_coerce_float_to_double): Remove prototype.
10795 (standard_coerce_float_to_double): Remove prototype.
10796
10797 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10798 prototyped.
10799 * mdebugread.c (parse_symbol): Likewise.
10800 * stabsread.c (define_symbol): Mark all functions as prototyped.
10801
10802 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10803 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10804 set_gdbarch_coerce_float_to_double.
10805 * arm-tdep.c (arm_gdbarch_init): Likewise.
10806 * frv-tdep.c (frv_gdbarch_init): Likewise.
10807 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10808 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10809 * mips-tdep.c (mips_gdbarch_init): Likewise.
10810 (mips_coerce_float_to_double): Remove.
10811 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10812 (rs6000_coerce_float_to_double): Remove.
10813 * s390-tdep.c (s390_gdbarch_init): Likewise.
10814 * sh-tdep.c (sh_gdbarch_init): Likewise.
10815 (sh_coerce_float_to_double): Remove.
10816 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10817 (sparc_coerce_float_to_double): Remove.
10818 * v850-tdep.c (v850_gdbarch_init): Likewise.
10819 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10820 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10821 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10822 (hppa_coerce_float_to_double): Remove prototype.
10823 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10824
10825 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10826
10827 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10828
10829 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10830
10831 Suggested by Stewart Brown <sb24@avaya.com>:
10832 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10833 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10834 (c_type_print_varspec_suffix): Likewise.
10835
10836 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10837
10838 * configure.in: Don't set and AC_SUBST SUBDIRS.
10839 * configure: Regenerated.
10840
10841 * configure.in: Remove code dealing with shared libraries.
10842 * Makefile.in: Remove HLDFLAGS and HLDENV.
10843 * configure: Regenerated.
10844
10845 2003-01-04 Andrew Cagney <ac131313@redhat.com>
10846
10847 * frame.c (deprecated_frame_xmalloc): New function.
10848 (deprecated_set_frame_saved_regs_hack): New function.
10849 (deprecated_set_frame_extra_info_hack): New function.
10850 * frame.h (deprecated_frame_xmalloc): Declare.
10851 (deprecated_set_frame_saved_regs_hack): Declare.
10852 (deprecated_set_frame_extra_info_hack): Declare.
10853
10854 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10855
10856 * configure.in: Move code that provides the --enable-gdbtk option
10857 right after the code that handles the --enable-tui option, and
10858 polish it somewhat.
10859 * configure: Regenerated.
10860
10861 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10862 AC_CHECK_FUNCS and remove the old check for pread64.
10863 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10864 * acconfig.h (_GNU_SOURCE): Add.
10865 (HAVE_PREAD64): Remove.
10866 * configure, aclocal.m4, config.in: Regenerated.
10867
10868 2003-01-03 Andrew Cagney <ac131313@redhat.com>
10869
10870 * alpha-tdep.c: Use get_frame_saved_regs.
10871 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10872 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10873 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10874 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10875 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10876
10877 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10878
10879 * configure.in: Remove all use of the SUBDIRS variable; add
10880 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10881 code providing the --enable-multi-ice option, and move it right in
10882 front of the code that checks whether gdbserver is supported.
10883 Polish that too.
10884 * configure: Regenerated.
10885 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10886 @SUBDIRS@.
10887
10888 2003-01-03 Andrew Cagney <cagney@redhat.com>
10889
10890 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10891 * avr-tdep.c, cris-tdep.c: Ditto.
10892 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10893 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10894
10895 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10896
10897 * configure.in: Remove --enable-netrom option.
10898 * configure: Regenerated.
10899
10900 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10901
10902 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10903 declaration for `struct re_pattern_buffer' instead.
10904 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10905
10906 2003-01-03 J. Brobecker <brobecker@gnat.com>
10907
10908 * mdebugread.c (parse_symbol): Count until the stEnd matching
10909 the structure name.
10910
10911 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10912
10913 * configure.in: Remove --with-cpu option.
10914 subscripts. Remove evil changequotes here.
10915 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10916 * config.in, configure: Regenerated.
10917
10918 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10919 * configure.in: Cleanup section that sources GDB and BFD configure
10920 subscripts. Remove evil changequotes here.
10921 * config.in, configure: Regenerated.
10922
10923 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10924
10925 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10926 frame accessor methods.
10927 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10928 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10929 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10930 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10931 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10932 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10933 * z8k-tdep.c: Ditto.
10934
10935 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10936
10937 * configure.in: Remove UI_OUT configuration code.
10938 * ada-lang.c: Update assuming UI_OUT is always true.
10939 * Makefile.in (UIOUT_CFLAGS): Remove.
10940 * configure: Regenerated.
10941 * TODO: Remove blurb about elimination of -DUI_OUT.
10942
10943 * configure.in: Move code that provides the --enable-gdbcli,
10944 --enable-gdbmi options right before the code that handles the
10945 --enable-tui option. Polish a bit.
10946 * configure: Regenerated.
10947
10948 * configure.in: Rewrite check for GNU regex and the
10949 --without-included regex option, and move it into the "Checks for
10950 library functions" section. This makes us use the system regex
10951 again by default on systems with version 2 of the GNU C library.
10952 This was apparently broken.
10953 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10954 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10955 * config.in, configure: Regenerated.
10956
10957 * configure.in: Move code that provides the --enable-tui option
10958 before the "Checks for libraries" section. Polish the code
10959 somewhat and set need_curses to yes if we build the TUI. Rewrite
10960 code that looks for a library providing termcap functionality to
10961 match more closely what's done in the Readline library, and move
10962 it into to the "Checks for libraries" section.
10963 * configure: Regenerated.
10964 * Makefile.in (TERMCAP): Remove variable.
10965 * config/i386/go32.mh (TERMCAP): Remove variable.
10966
10967 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10968
10969 * MAINTAINERS: Mention gdb_mbuild.sh.
10970 * gdb_mbuild.sh: Rewrite.
10971
10972 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10973
10974 * configure.in: Fix typo in last change.
10975 * config.in, configure: Regenerated.
10976
10977 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10978
10979 * valarith.c (value_binop): Delete obsolete code and comments.
10980 * configure.host: Ditto.
10981 * buildsym.h (make_blockvector): Ditto.
10982 * buildsym.c (make_blockvector): Ditto.
10983 * defs.h (enum language): Ditto.
10984 (chill_demangle): Ditto.
10985 * elfread.c (elf_symtab_read): Ditto.
10986 * dwarfread.c (CHILL_PRODUCER): Ditto.
10987 (set_cu_language): Ditto.
10988 (handle_producer): Ditto.
10989 * expprint.c (print_subexp): Ditto.
10990 * gdbtypes.c (chill_varying_type): Ditto.
10991 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10992 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10993 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10994 (chill_varying_type): Ditto.
10995 * language.h (_LANG_chill): Ditto.
10996 * language.c (binop_result_type, integral_type): Ditto.
10997 (character_type, string_type, structured_type): Ditto.
10998 (lang_bool_type, binop_type_check): Ditto.
10999 * stabsread.h (os9k_stabs): Ditto.
11000 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11001 (define_symbol, read_type, read_struct_fields): Ditto.
11002 (read_array_type, read_enum_type, read_huge_number): Ditto.
11003 (read_range_type, start_stabs): Ditto.
11004 * symfile.c (init_filename_language_table): Ditto.
11005 (add_psymbol_with_dem_name_to_list): Ditto.
11006 * symtab.c (symbol_init_language_specific): Ditto.
11007 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11008 * symtab.h (struct general_symbol_info): Ditto.
11009 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11010 * typeprint.c (typedef_print): Ditto.
11011 * utils.c (fprintf_symbol_filtered): Ditto.
11012 * valops.c (value_cast, search_struct_field, value_slice): Delete
11013 obsolete code.
11014 (varying_to_slice): Delete function.
11015 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11016 (varying_to_slice): Delete declaration.
11017 * MAINTAINERS: Update.
11018
11019 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11020
11021 * configure.in: Reorganize "Checks for library functions section"
11022 a bit. Remove check for `btowc' and `isascii' functions.
11023 * configure: Regenerated.
11024
11025 * acconfig.h (_MSE_INT_H): Remove.
11026 * configure.in: Create "Checks for header files" section, and move
11027 appropriate tests there. Don't check for objlist.h, wchar.h,
11028 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11029 misdetection fix. Also add "Checks for types", "Checks for
11030 compiler characteristics" and "Checks for library functions"
11031 sections.
11032 * config.in, configure: Regenerated.
11033
11034 * configure.in: Create "Checks for programs" section, and move
11035 appropriate tests there.
11036
11037 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11038
11039 * configure.in: Create "Checks for libraries" section, and move
11040 appropriate tests there. Cleanup check for wctype in libw. Use
11041 AC_SEARCH_LIBS to see whether we need libsocket.
11042 * configure: Regenerated.
11043
11044 For older changes see ChangeLog-2002
11045 \f
11046 Local Variables:
11047 mode: change-log
11048 left-margin: 8
11049 fill-column: 74
11050 version-control: never
11051 End:
This page took 0.35941 seconds and 5 git commands to generate.