25bd8a16be1e18bfeb24f90dbc24d59a9a0dd1e8
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2
3 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
4 we are frameless or the return address register is already known.
5
6 2003-08-26 Andrew Cagney <cagney@redhat.com>
7
8 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
9 in size. Add comments.
10
11 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
12
13 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
14 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
15
16 2003-08-26 Jason Merrill <jason@redhat.com>
17
18 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
19 case out of #ifdef MIPS block.
20
21 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
22
23 PR java/1322
24 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
25 available before calling SECT_OFF_TEXT.
26 * PROBLEMS: Remove description of java/1322.
27
28 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
29
30 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
31 bof, and nat0-nat127 as pseudo-registers.
32 (ia64_frame_cache): New struct used to cache frame info.
33 (ia64_register_reggroup_p): New routine used to override default
34 register grouping so registers without names are still saved and
35 restored.
36 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
37 pseudo values.
38 (ia64_pseudo_register_read): New routine to read pseudo-registers.
39 (ia64_pseudo_register_write): New routine to write pseudo-registers.
40 (ia64_alloc_frame_cache): New routine to create a new
41 ia64_frame_cache.
42 (examine_prologue): Change prototype to add next_frame pointer.
43 Assume frameless until otherwise proven. Verify that the cfm for
44 current frame matches the cfm that should occur for the prologues
45 alloc insn and if equal, mark as not frameless. At end of routine,
46 if not frameless, calculate registers for the previous frame and store
47 in the cache, if a cache is provided.
48 (ia64_skip_prologue): Use new prototype when calling examine_prologue
49 and pass 0 for next_frame.
50 (ia64_store_return_value): Change to use convert_typed_floating()
51 instead of calling ia64_convert_to_raw().
52 (ia64_extract_return_value): Change to use convert_typed_floating()
53 instead of calling ia64_convert_to_virtual().
54 (ia64_frame_cache): New routine to support new frame model.
55 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
56 (ia64_frame_sniffer): Ditto.
57 (ia64_sigtramp_frame_init_saved_regs): Ditto.
58 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
59 (ia64_sigtramp_frame_prev_register): Ditto.
60 (ia64_sigtramp_frame_sniffer): Ditto.
61 (ia64_frame_base_address): Ditto.
62 (ia64_extract_struct_value_address): Change to issue error message.
63 (ia64_frame_align): New routine to align sp.
64 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
65 (ia64_push_arguments): Removed. Logic moved to
66 ia64_push_dummy_call().
67 (ia64_push_return_address): Ditto.
68 (ia64_unwind_dummy_id): New function.
69 (ia64_unwind_pc): Ditto.
70 (ia64_convert_register_p): Ditto.
71 (ia64_register_to_value): Ditto.
72 (ia64_value_to_register): Ditto.
73 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
74 (ia64_register_byte, ia64_register_raw_size): Ditto.
75 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
76 (ia64_saved_pc_after_call): Ditto.
77 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
78 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
79 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
80 (ia64_register_convert_to_raw): Ditto.
81 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
82 (ia64_init_extra_frame_info): Ditto.
83 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
84 (ia64_gdbarch_init): Remove registering of deprecated functions that
85 are no longer used. Add registration of new gdbarch functions.
86 Remove registering deprecated_write_sp. Replace
87 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
88 Delete set_gdbarch_deprecated_register_convertible(),
89 set_gdbarch_deprecated_register_convert_to_virtual(), and
90 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
91 set_gdbarch_deprecated_register_size(),
92 set_gdbarch_deprecated_register_bytes(),
93 set_gdbarch_pcregnum(),
94 set_gdbarch_deprecated_register_byte(),
95 set_gdbarch_deprecated_register_raw_size(),
96 set_gdbarch_deprecated_max_register_raw_size(),
97 set_gdbarch_deprecated_register_virtual_size(),
98 and set_gdbarch_deprecated_max_register_virtual_size() calls.
99 Replace set_gdbarch_deprecated_extract_return_value() with
100 set_gdbarch_extract_return_value(). Remove calls to:
101 set_gdbarch_deprecated_saved_pc_after_call();
102 set_gdbarch_deprecated_frame_chain(),
103 set_gdbarch_deprecated_frame_saved_pc(),
104 set_gdbarch_deprecated_frame_init_saved_regs(),
105 set_gdbarch_deprecated_get_saved_register(),
106 set_gdbarch_deprecated_call_dummy_words(),
107 set_gdbarch_deprecated_sizeof_call_dummy_words(),
108 set_gdbarch_deprecated_init_extra_frame_info(),
109 set_gdbarch_deprecated_frame_args_address(),
110 set_gdbarch_deprecated_frame_locals_address(),
111 and set_gdbarch_deprecated_dummy_write_sp().
112 Add set_gdbarch_convert_register_p(),
113 set_gdbarch_register_to_value(),
114 set_gdbarch_value_to_register(),
115 set_gdbarch_push_dummy_call(),
116 set_gdbarch_frame_align(),
117 set_gdbarch_unwind_dummy_id(),
118 set_gdbarch_unwind_pc(),
119 frame_unwind_append_sniffer(),
120 frame_unwind_append_sniffer(),
121 and frame_base_set_default().
122
123 2003-08-25 Chris Demetriou <cgd@broadcom.com>
124
125 * configure.tgt: Document need for special "mipsisa64" handling.
126 (mipsisa64*-*-linux64): Handle as target linux64.
127 (mipsisa64*-*-*): Handle as target embed64.
128
129 2003-08-18 Michael Chastain <mec@shout.net>
130
131 * PROBLEMS: Document pr gdb/1322, the Java anonymous
132 objfile bug.
133
134 2003-08-24 Mark Kettenis <kettenis@gnu.org>
135
136 * i387-tdep.h: Update copyright date.
137 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
138
139 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
140 CFLAGS games to reflect reality.
141
142 2003-08-24 Andrew Cagney <cagney@redhat.com>
143
144 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
145 GDB_MULTI_ARCH is always non-zero.
146 * osabi.c (_initialize_gdb_osabi): Ditto.
147 (gdbarch_init_osabi): Ditto.
148 * sparc-tdep.c: Ditto for #if code.
149
150 2003-08-23 Mark Kettenis <kettenis@gnu.org>
151
152 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
153 Update comments.
154 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
155 comments.
156 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
157 x86_64_supply_fxsave.
158 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
159 x86_64_supply_fxsave.
160 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
161 x86_64_supply_fxsave.
162
163 2003-08-23 Andreas Jaeger <aj@suse.de>
164
165 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
166 i387_supply_fxsave.
167
168 2003-08-23 Mark Kettenis <kettenis@gnu.org>
169
170 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
171 i387_supply_register.
172 (go32_fetch_registers): Adjust call to i387_supply_fsave.
173 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
174 i387_supply_fsave.
175 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
176 i387_supply_fxsave.
177 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
178 i387_supply_fsave.
179 * i386bsd-nat.c (supply_fpregset): Adjust call to
180 i387_supply_fsave.
181 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
182 call to i387_supply_fxsave. Call i387_supply_fsave instead of
183 supply_fpregset.
184 (store_inferior_registers): Remove extraneous whitespace. Call
185 i387_fill_fsave instead of fill_fpregset.
186 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
187 (supply_fpregset): Likewise.
188 * i386v4-nat.c (supply_fpregset): Adjust call to
189 i387_supply_fsave.
190 * i386-interix-nat.c (supply_fpregset): Adjust call to
191 i387_supply_fsave.
192 * i386-linux-nat.c (supply_fpregset): Adjust call to
193 i387_supply_fsave.
194 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
195 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
196 i387supply_fsave and i387_supply_fxsave.
197 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
198 Incorporate code from `i387_supply_register.
199 (i387_supply_register): Remove.
200 (i387_supply_fxsave): Add `regnum' argument.
201 Update comments.
202 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
203 prototype.
204 (i387_supply_register): remove prototype.
205 Update comments.
206
207 2003-08-22 Michael Chastain <mec@shout.net>
208
209 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
210 Add lines for files in gdb/testsuite/gdb.cp/* that are
211 still not 8.3 unique.
212
213 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
214
215 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
216 TYPE_VPTR_FIELDNO is valid.
217
218 2003-08-19 Mark Kettenis <kettenis@gnu.org>
219
220 * utils.c (set_width_command): Remove prototypes.
221 (set_screen_size): New prototype.
222 (init_page_info): Simplify by fetching the screen size from
223 Readline. Call set_screen_size.
224 (set_screen_size): New function.
225 (set_width): Add missing whitespace in comment.
226 (set_width_command): Call set_screen_size.
227 (set_height_command): New function.
228 (initialize_utils): Fix formatting. Make "set height" command
229 call set_height_command. Remove redundant code that turns off
230 pagination if output isn't a terminal. Remove redundant call to
231 set_width_command.
232
233 2003-08-22 Mark Kettenis <kettenis@gnu.org>
234
235 * sparc64-tdep.h (sparc64_regnum): Fix comment.
236 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
237 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
238 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
239 `case' keyword.
240 (sparc64_register_info): Give the reister with number
241 SPARC64_STATE_REGNUM a name.
242 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
243 %asi and %ccr.
244 (sparc64_push_dummy_call): Take BIAS into account when checking
245 stcak alignment.
246 (sparc_software_single_step): Remove assertions that check whether
247 NPC and NNPC were zero.
248 (sparc_supply_rwindow): Make public. Merge functionality with
249 sparc64_supply_rwindow.
250 (sparc_fill_rwindow): Make public. Merge functionality with
251 sparc64_fill_rwindow.
252 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
253 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
254 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
255 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
256 sparc_supply_rwindow instead of sparc64_supply_rwindow.
257
258 * reggroups.c: Add whitespace after declarations of local
259 variables in functions.
260
261 2003-08-21 Michael Chastain <mec@shout.net>
262
263 * gdbtypes.h: Change array bound type from an int to enum.
264
265 2003-08-21 Andrew Cagney <cagney@redhat.com>
266
267 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
268 * config/sparc/tm-sparc.h: Ditto.
269 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
270 unconditionally.
271 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
272
273 2003-07-13 Mark Kettenis <kettenis@gnu.org>
274
275 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
276 (register_objfile_data, set_objfile_data, objfile_data): New
277 prototypes.
278 * objfiles.c (objfile_alloc_data, objfile_free_data): New
279 prototypes.
280 (allocate_objfile): Call objfile_alloc_data.
281 (free_objfile): Call objfile_free_data.
282 (struct objfile_data): New.
283 (struct objfile_data_registration): New.
284 (struct objfile_data_registry): New.
285 (objfile_data_registry): New variable.
286 (register_objfile_data): New function.
287 (objfile_alloc_data, objfile_free_data): New functions.
288 (set_objfile_data, objfile_data): New functions.
289 * dwarf2-frame.c (dwarf2_frame_data): New variable.
290 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
291 (_initialize_dwarf2_frame): New function and prototype.
292
293 2003-08-21 Andrew Cagney <cagney@redhat.com>
294
295 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
296 a specific architecture.
297 * arch-utils.h (set_architecture_from_arch_mach): Delete
298 declaration.
299 (target_architecture_hook): Delete declaration.
300 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
301 (default_float_format): Assume GDB_MULTI_ARCH.
302 (default_double_format): Assume GDB_MULTI_ARCH.
303 (set_endian_from_file): Delete function.
304 (arch_ok): Delete function.
305 (set_arch): Delete function.
306 (set_architecture_from_arch_mach): Delete function.
307 (set_architecture_from_file): Delete function.
308 (set_architecture): Assume GDB_MULTI_ARCH.
309 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
310
311 2003-08-21 Mark Kettenis <kettenis@gnu.org>
312
313 Rewrite FreeBSD/sparc64 native configuration.
314 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
315 * sparc64fbsd-nat.c: New file.
316 * sparc64fbsd-tdep.c: New file.
317 * sparc64-tdep.c sparc64-tdep.h: New files.
318 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
319 sparc64fbsd-tdep.o): New dependencies.
320 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
321 and sparc64fbsd-tdep.c.
322 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
323 * config/sparc/fbsd.mh: Remove copyright notice.
324 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
325 sparcbsd-nat.o.
326 * config/sparc/fbsd.mt: Remove copyright notice.
327 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
328 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
329 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
330 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
331 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
332 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
333 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
334 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
335 "sparc/tm-sp64.h".
336 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
337 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
338
339 2003-08-21 Michael Chastain <mec@shout.net>
340
341 * symtab.h: Add doco on the space critical structures and
342 some measurements of space usage.
343
344 2003-08-21 Michael Snyder <msnyder@redhat.com>
345
346 * tracepoint.c (trace_dump_command): Trace break address
347 is subject to DECR_PC_AFTER_BREAK.
348 (set_traceframe_context): Make "trace_line" an int.
349 Fixes suggested by Mark Newman <mark.newman@lmco.com>
350
351 2003-08-20 Michael Snyder <msnyder@redhat.com>
352
353 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
354 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
355 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
356 argument passing.
357 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
358 functions, replace sh_push_dummy_call.
359 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
360
361 2003-08-20 Michael Chastain <mec@shout.net>
362
363 * gdbtypes.h (struct main_type): Rearrange to save space.
364
365 2003-08-20 Michael Snyder <msnyder@redhat.com>
366
367 * trad-frame.c: Comment typo fix.
368
369 2003-08-20 Michael Snyder <msnyder@redhat.com>
370 Kevin Buettner <kevinb@redhat.com>
371
372 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
373 (frv_frame_init_saved_regs): Add declaration.
374 (frame_extra_info): Add new field ``saved_regs''.
375 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
376 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
377 Update frame related code.
378 (frv_extract_struct_value_address): Adjust formatting.
379 * Makefile.in (frv-tdep.o): Update dependencies.
380 * config/frv/tm-frv.h (target_insert_watchpoint)
381 (target_remove_watchpoint, target_insert_hw_breakpoint)
382 (target_remove_hw_breakpoint): Delete these macros.
383 (remote_insert_watchpoint, remote_remove_watchpoint)
384 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
385 these declarations.
386
387 2003-08-20 Michael Chastain <mec@shout.net>
388
389 * defs.h (ENUM_BITFIELD): New macro.
390 * symtab.h (ENUM_BITFIELD): Use it.
391 (BYTE_BITFIELD): Remove old macro, which was already disabled.
392
393 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
394
395 * MAINTAINERS (write after approval): Add myself.
396
397 2003-08-18 Andrew Cagney <cagney@redhat.com>
398
399 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
400 * gdbarch.h, gdbarch.c: Re-generate.
401 * infcall.c (call_function_by_hand): Adjust the SP by
402 frame_red_zone_size before allocating any stack space.
403 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
404 * x86-64-tdep.c (x86_64_frame_align): New function.
405 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
406
407 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
408 Remove code adjusting SP so that it skips over the Red Zone.
409
410 2003-08-18 Mark Kettenis <kettenis@gnu.org>
411
412 * NEWS (New native configurations): Mention FreeBSD/amd64.
413
414 2003-08-18 Andrew Cagney <cagney@redhat.com>
415
416 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
417 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
418 "m68k_frame_p".
419 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
420
421 2003-08-18 Mark Kettenis <kettenis@gnu.org>
422
423 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
424
425 2003-08-18 Michal Ludvig <mludvig@suse.cz>
426
427 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
428 Define.
429 * i386-linux-nat.c: Include "linux-nat.h".
430 (child_post_startup_inferior): New function.
431
432 2003-08-18 Mark Kettenis <kettenis@gnu.org>
433
434 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
435 at the start of a frameless function. This probably fixes PR
436 backtrace/1338.
437
438 2003-08-17 Michael Chastain <mec@shout.net>
439
440 * symfile.c (find_sym_fns): Remove special case for apollo target.
441
442 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
443
444 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
445 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
446 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
447 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
448 (linux_supports_tracevforkdone): New function.
449 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
450 TRACEVFORKDONE.
451 (child_follow_fork): Handle vfork.
452 (linux_handle_extended_wait): Likewise. Also handle exec.
453 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
454 * NEWS: Mention fork tracing.
455
456 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
457
458 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
459
460 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
461
462 * Makefile.in (i386-linux-nat.o): Update dependencies.
463 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
464 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
465 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
466 * i386-linux-nat.c: Include "linux-nat.h".
467 (child_post_startup_inferior): New function.
468 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
469 * infptrace.c (kill_inferior): Wrap in #ifdef.
470 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
471 attaching to each LWP.
472 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
473 (init_lin_lwp_ops): Fill in some more operations.
474 * linux-nat.h (linux_enable_event_reporting)
475 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
476 prototypes.
477 * linux-nat.c (linux_enable_event_reporting): New function.
478 (child_post_attach, linux_child_post_startup_inferior)
479 (child_post_startup_inferior, child_follow_fork)
480 (linux_handle_extended_wait, kill_inferior): New functions.
481
482 2003-08-16 Andrew Cagney <cagney@redhat.com>
483
484 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
485 * gdbarch.h, gdbarch.c: Re-generate.
486
487 2003-08-16 Mark Kettenis <kettenis@gnu.org>
488
489 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
490
491 2003-08-16 Andrew Cagney <cagney@redhat.com>
492
493 * NEWS: Mention that "set prompt-escape-char" was deleted.
494 * top.c (get_prompt_1): Delete function.
495 (gdb_prompt_escape):
496 (init_main): Do not clear "gdb_prompt_escape". Delete "set
497 prompt-escape-char" command.
498 (MAX_PROMPT_SIZE): Delete macro.
499 (get_prompt): Simplify, do not call get_prompt_1.
500
501 2003-08-16 Andrew Cagney <cagney@redhat.com>
502
503 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
504 -Werror. -Wformat-nonliteral problems.
505
506 2003-08-15 J. Brobecker <brobecker@gnat.com>
507
508 Further multiarching work mostly for hppa64-*-hpux11:
509 * hppa-tdep.h: New file.
510 * hppa-tdep.c: #include hppa-tdep.c.
511 (hppa32_num_regs): Renamed from hppa_num_regs.
512 (hppa64_num_regs): New constant.
513 (hppa64_call_dummy_breakpoint_offset): New constant.
514 (hppa32_call_dummy_length): New constant.
515 (hppa64_call_dummy_length): New constant.
516 (hppa32_stack_align): Make name 32bit explicit.
517 (hppa32_register_virtual_type): Likewise.
518 (hppa32_extract_return_value): Likewise.
519 (hppa32_use_struct_convention): Likewise.
520 (hppa32_store_return_value): Likewise.
521 (hppa64_register_virtual_type): New function.
522 (hppa64_extract_return_value): New function.
523 (hppa64_use_struct_convention): New function.
524 (hppa64_store_return_value): New function.
525 (hppa_frame_locals_address): Remove declaration, function does
526 not exist anymore.
527 (hppa_register_byte): Add support for PA64 ABI.
528 (hppa_gdbarch_init): Add support for PA64 ABI.
529 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
530 Make name 32bit explicit.
531 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
532 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
533 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
534 (hppa64_hpux_frame_base_before_sigtramp): New function.
535 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
536 * config/pa/tm-hppa64.h: Remove macros that are no longer
537 necessary now that the gdbarch vector is properly setup.
538 Transform some macros into function calls. Some minor cleanup.
539 * config/pa/tm-hppah.h: Update function calls in macros
540 following the function renaming in hppa-hpux-tdep.c.
541 * Makefile.in (hppa_tdep_h): New variable.
542 (hppa-tdep.o): Add dependency over hppa_tdep_h.
543
544 2003-08-14 Michael Snyder <msnyder@redhat.com>
545
546 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
547
548 2003-08-13 J. Brobecker <brobecker@gnat.com>
549
550 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
551 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
552 routine.
553
554 2003-08-13 Michael Snyder <msnyder@redhat.com>
555
556 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
557 (frv_saved_pc_after_call): Use deprecated ftype.
558 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
559 (frv_remote_translate_xfer_address): Remove.
560 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
561
562 2003-08-13 J. Brobecker <brobecker@gnat.com>
563
564 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
565 initialization after the common gdbarch initialization, not before.
566
567 2003-08-13 J. Brobecker <brobecker@gnat.com>
568
569 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
570 (ADDR_BITS_REMOVE): Remove, redundant.
571
572 2003-08-13 J. Brobecker <brobecker@gnat.com>
573
574 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
575 gdbarch method to clear the 2 low bits of text addresses.
576
577 2003-08-12 Andrew Cagney <cagney@redhat.com>
578
579 * Makefile.in (dsrec.o): Update dependencies.
580 * dsrec.c: Include "gdb_assert.h".
581 (make_srec): Use snprintf instead of sprintf, use a literal format
582 string.
583
584 2003-08-12 Andrew Cagney <cagney@redhat.com>
585
586 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
587 FRAME_OBSTACK_ZALLOC.
588
589 2003-08-12 Kevin Buettner <kevinb@redhat.com>
590
591 * i386-tdep.c (i386_gdbarch_init): Enable default support for
592 SSE registers.
593
594 2003-08-10 Mark Kettenis <kettenis@gnu.org>
595
596 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
597 amd64fbsd_sc_reg_offset): Add extern declarations.
598 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
599 declarations.
600
601 2003-08-11 Ben Elliston <bje@wasabisystems.com>
602
603 * MAINTAINERS (write after approval): Update my mail address.
604
605 2003-08-10 Andrew Cagney <cagney@redhat.com>
606
607 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
608
609 2003-08-10 Mark Kettenis <kettenis@gnu.org>
610
611 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
612 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
613 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
614 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
615 i386bsd_sc_reg_offset): Add extern declarations.
616 * i386obsd-nat.c: Include "i386-tdep.h"
617 (_initialize_i386obsd_nat): Remove extern declarations.
618 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
619 declarations.
620 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
621 declarations.
622
623 * i386-tdep.c (i386_register_to_value): Use get_frame_register
624 instead of frame_read_register.
625 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
626 instead of frame_read_register. Use I386_ESP_REGNUM instead of
627 SP_REGNUM.
628 (i386_frame_prev_register): Use frame_unwind_register_unsigned
629 instead of frame_unwind_unsigned_register. Use
630 I386_EFLAGS_REGISTER instead of PS_REGNUM.
631 (i386_get_longjmp_target): Use regcache_read_unsigned_register
632 instead of read_register. Use builtin_type_void_data_ptr instead
633 of builtin_type_void_func_ptr when extracting the address of the
634 jmp_buf.
635 (i386_extract_return_value, i386_store_return_value,
636 i386_pseudo_register_read, i386_pseudo_register_write): Use
637 register_size instead REGISTER_RAW_SIZE.
638
639 2003-08-10 Andrew Cagney <cagney@redhat.com>
640
641 * infcall.c (call_function_by_hand): Use xstrprintf instead of
642 sprintf. Make "name" constant.
643
644 2003-08-10 Mark Kettenis <kettenis@gnu.org>
645
646 * i387-tdep.c (i387_register_to_value): Use get_frame_register
647 instead of frame_read_register.
648 (i387_print_float_info): Use get_frame_register and
649 get_frame_register_unsigned instead of frame_register_read.
650
651 * i386fbsd-nat.c: Include "i386-tdep.h".
652 (child_resume): Make `eflags' an ULONGEST. Use
653 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
654 instead of register_read and register_write.
655
656 * i386bsd-nat.c (fetch_inferior_registers,
657 store_inferior_registers): Don't use && at the end of a line.
658 (_initialize_i386bsd_nat): Fix typo.
659
660 * frame.c (_initialize_frame): Add missing backslash.
661
662 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
663 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
664 and supply_register instead of manipulating the register buffer
665 directly.
666
667 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
668 * config/i386/nm-i386sol2.h
669 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
670
671 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
672 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
673 instructions that GCC likes to mingle into the prologue. Fixes
674 gdb/1253 and gdb/1255.
675
676 2003-08-09 Andrew Cagney <cagney@redhat.com>
677
678 Fix GDB PR cli/926.
679 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
680 * command.h (add_setshow_uinteger_cmd): Declare.
681 * frame.c (set_backtrace_cmd): New function.
682 (show_backtrace_cmd): New function.
683 * frame.c (_initialize_frame): Replace "set/show
684 backtrace-below-main" with "set/show backtrace past-main". Add
685 command "set/show backtrace limit".
686 (backtrace_past_main): Rename "backtrace_below_main".
687 (backtrace_limit): New variable.
688 (get_prev_frame): Update. Check the backtrace_limit.
689
690 2003-08-09 Andrew Cagney <cagney@redhat.com>
691
692 * defs.h (xstrprintf): Declare.
693 * utils.c (xstrprintf): New function.
694 * breakpoint.c (insert_breakpoints): Replace sprintf and
695 non-literal format strings, with xstrprintf and cleanups.
696 (delete_breakpoint,breakpoint_re_set): Ditto.
697 (commands_command, insert_breakpoints): Ditto.
698 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
699 (break_at_finish_command_1): Ditto.
700
701 2003-08-09 Andrew Cagney <cagney@redhat.com>
702
703 * MAINTAINERS (language support): List Adam Fedor as Objective C
704 maintainer.
705
706 2003-08-08 J. Brobecker <brobecker@gnat.com>
707
708 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
709 are now multiarched.
710
711 2003-08-08 J. Brobecker <brobecker@gnat.com>
712
713 * config/pa/tm-hppa64.h: Remove lots of macros that are no
714 longer necessary now that hppa64 is partially multiarch'ed.
715
716 2003-08-08 Andrew Cagney <cagney@redhat.com>
717
718 * interps.c (interp_set): Check for a NULL "old_interp".
719
720 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
721
722 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
723 (install-only): Support DESTDIR.
724 (uninstall): Likewise.
725 (install-gdbtk): Likewise.
726
727 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
728
729 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
730 contains something meaningful at all times.
731
732 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
733
734 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
735
736 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
737
738 * MAINTAINERS (write after approval): Added self.
739
740 2003-08-07 Andrew Cagney <cagney@redhat.com>
741
742 * inferior.h (AT_SYMBOL): Define.
743 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
744 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
745 * mips-tdep.c (mips_call_dummy_address): Delete function.
746 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
747 set call_dummy_address.
748
749 2003-08-07 Andrew Cagney <cagney@redhat.com>
750
751 * language.c (op_error): Delete function.
752 (binop_type_check): Delete function.
753 * language.h (type_op_error, range_op_error): Delete macros.
754 (op_error): Delete declaration.
755
756 2003-08-07 Andrew Cagney <cagney@redhat.com>
757
758 * interps.h (INTERP_MI2, INTERP_MI3): Define.
759
760 2003-08-07 Michal Ludvig <mludvig@suse.cz>
761
762 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
763 (x86_64_push_arguments): Skip the red zone.
764
765 2003-08-05 Andrew Cagney <cagney@redhat.com>
766
767 * reggroups.c (reggroup_next): Check for the final entry.
768
769 2003-08-04 Andrew Cagney <cagney@redhat.com>
770
771 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
772 * cli/cli-script.c (define_command): Call query directly, instead
773 of passing it a buffer.
774 * ocd.c (ocd_error): Pass error a constant format string.
775 * remote-mips.c (mips_error): Use fputs_filtered.
776
777 * solib-svr4.c (_initialize_svr4_solib): Update
778 register_gdbarch_data call.
779 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
780
781 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
782 (register_gdbarch_data): Delete "free" parameter. Update
783 comments.
784 * gdbarch.h, gdbarch.c: Re-generate.
785 * reggroups.c (_initialize_reggroup): Update.
786 * gnu-v3-abi.c (init_gnuv3_ops): Update.
787 * frame-base.c (_initialize_frame_base): Update.
788 * frame-unwind.c (_initialize_frame_unwind): Update.
789 * user-regs.c (_initialize_user_regs): Update.
790 * remote.c (_initialize_remote): Update.
791 * regcache.c (_initialize_regcache): Update.
792
793 * regcache.c (xfree_regcache_descr): Delete function.
794 (_initialize_regcache): Update call to register_gdbarch_data.
795 (init_regcache_descr, init_legacy_regcache_descr): Use
796 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
797
798 * remote.c (free_remote_state): Delete function.
799 (_initialize_remote): Update register_gdbarch_data.
800 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
801 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
802
803 2003-08-04 Andrew Cagney <cagney@redhat.com>
804
805 * reggroups.c (struct reggroup_el): Define.
806 (struct reggroups): Delete field "nr_group". Replace array
807 "group" with a "first" to "last" linked list.
808 (reggroups_init): Update. Allocate using gdbarch's obstack.
809 (reggroups_free): Delete function.
810 (add_group): Update. Add "el" parameter.
811 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
812 (default_groups): Update.
813 (reggroup_next): Replace reggroups.
814 (reggroups_dump): Update.
815 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
816 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
817 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
818
819 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
820
821 * Makefile.in (tui-interp.o): Update dependencies.
822
823 2003-08-04 David Carlton <carlton@kealia.com>
824
825 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
826 to internal_error call.
827 * source.c (forward_search_command): Add "%s" format argument.
828 (reverse_search_command): Ditto.
829 * top.c (quit_confirm): Ditto.
830 * cli/cli-setshow.c (do_setshow_command): Ditto.
831 * cp-valprint.c (cp_print_class_method): Replace
832 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
833 (cp_print_class_member): Ditto.
834 * event-top.c (command_line_handler): Ditto.
835 * linux-proc.c (linux_info_proc_cmd): Ditto.
836 * p-typeprint.c (pascal_type_print_base): Ditto.
837 * p-valprint.c (pascal_object_print_class_method): Ditto.
838 (pascal_object_print_class_member): Ditto.
839 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
840 * remote.c (remote_cisco_section_offsets): Ditto.
841 * top.c (command_line_input): Ditto.
842 * utils.c (vwarning,error_stream,quit): Ditto.
843 * valprint.c (print_floating,print_binary_chars)
844 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
845
846 2003-08-04 Andrew Cagney <cagney@redhat.com>
847
848 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
849
850 2003-08-02 Andrew Cagney <cagney@redhat.com>
851
852 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
853 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
854 amd64fbsd-nat.c.
855
856 2003-08-02 Andrew Cagney <cagney@redhat.com>
857
858 * Makefile.in: Update all dependencies and definitions.
859
860 2003-08-02 Adam Fedor <fedor@gnu.org>
861
862 * linespec.c (is_objc_method_format): New function
863 (decode_line_1, locate_first_half): Use it.
864 Fixes PR objc/1298
865
866 2003-08-01 Andrew Cagney <cagney@redhat.com>
867
868 * NEWS: Mention that m32r is multi-arch.
869 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
870 * configure.tgt: Recognize m32r-*-*.
871 * config/m32r/tm-m32r.h: Delete file.
872 * config/m32r/m32r.mt: New file.
873 * m32r-rom.c (m32r_upload_command): Use hostent only when
874 gethostname succeeds, in order to avoid a compilation
875 warning.
876 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
877 compiler warning.
878
879 2003-08-01 Michael Snyder <msnyder@redhat.com>
880
881 * sh-tdep.c (sh_frame_align): New gdbarch method.
882 (sh_gdbarch_init): Set up frame_align method.
883
884 2003-07-31 Michael Snyder <msnyder@redhat.com>
885
886 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
887 which is already covered by the new frames infrastructure.
888
889 2003-07-31 Andrew Cagney <cagney@redhat.com>
890
891 * user-regs.c (struct user_reg): Add "next" link.
892 (struct user_regs): Replace "user" with "first" and "last" links.
893 (append_user_reg): Add pre-allocated "reg" parameter.
894 (builtin_user_regs): Provide initial value for "last".
895 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
896 (user_regs_init): Allocate memory from the gdbarch obstack.
897 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
898 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
899 linked list.
900 (usernum_to_user_reg): New function.
901 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
902 (value_of_user_reg): Use usernum_to_user_reg.
903 (user_regs_free): Delete function.
904 (_initialize_user_regs): Update register_gdbarch_data call.
905
906 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
907
908 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
909
910 2003-07-30 Michael Snyder <msnyder@redhat.com>
911
912 * value.h (value_being_returned): Add a struct_addr argument.
913 * infcall.c (call_function_by_hand): Pass struct_addr to
914 value_being_returned.
915 * infcmd.c (print_return_value): Pass zero as struct_addr.
916 * values.c (value_being_returned): If struct_addr is passed,
917 use it instead of trying to recover it from the inferior.
918
919 2003-07-30 Kevin Buettner <kevinb@redhat.com>
920
921 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
922 the prologue analyzer won't need to attempt to extract the pc
923 value from the woefully incomplete dummy frame.
924 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
925 possible. Disable code which modifies the frame.
926
927 2003-07-28 Andrew Cagney <cagney@redhat.com>
928
929 * annotate.c (annotate_breakpoints_headers): Restrict annotation
930 to level 2.
931 (annotate_breakpoints_table, annotate_record): Ditto.
932 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
933 (annotate_field_name_end, annotate_field_value): Ditto.
934 (annotate_field_end, annotate_frame_source_begin): Ditto.
935 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
936 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
937 (annotate_frame_begin, annotate_frame_function_name): Ditto.
938 (annotate_frame_address_end, annotate_frame_address): Ditto.
939 (annotate_frame_args, annotate_frame_end): Ditto.
940 (annotate_frame_where, annotate_arg_begin): Ditto.
941 (annotate_arg_name_end, annotate_arg_value): Ditto.
942 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
943 (annotate_function_call, annotate_signal_name): Ditto.
944 (annotate_signal_string, annotate_signal_name_end): Ditto.
945 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
946 (annotate_value_begin, annotate_value_history_value): Ditto.
947 (annotate_value_history_end, annotate_value_end): Ditto.
948 (annotate_display_begin, annotate_display_number_end): Ditto.
949 (annotate_display_format, annotate_display_expression): Ditto.
950 (annotate_display_expression_end, annotate_display_value): Ditto.
951 (annotate_display_end, annotate_array_section_begin): Ditto.
952 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
953 (annotate_elt, annotate_array_section_end): Ditto.
954
955 2003-07-28 Andrew Cagney <cagney@redhat.com>
956
957 * regcache.c (struct regcache_descr): Update comments on
958 nr_raw_registers.
959 (init_legacy_regcache_descr): Don't set nr_raw_registers or
960 sizeof_raw_register_valid_p.
961 (init_regcache_descr): Set nr_raw_registers and
962 sizeof_raw_register_valid_p before calling
963 init_legacy_regcache_descr.
964
965 2003-07-28 Andrew Cagney <cagney@redhat.com>
966
967 * mips-tdep.c (print_gp_register_row): Print the GPR's register
968 MOD NUM_REGS.
969
970 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
971
972 * thread.c (info_threads_command): Use get_selected_frame ().
973 Check that there is at least one non-sentinel frame.
974
975 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
976
977 * m68hc11-tdep.c (struct frame_extra_info): Remove.
978 (m68hc11_pop_frame): Remove.
979 (m68hc11_frame_saved_pc): Remove.
980 (m68hc11_frame_chain): Remove.
981 (m68hc11_frame_init_saved_regs): Remove.
982 (m68hc11_init_extra_frame_info): Remove.
983 (m68hc11_store_struct_return): Remove.
984 (m68hc11_saved_pc_after_call): Remove.
985
986 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
987
988 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
989 frame unwind information.
990 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
991 and adapted for frame unwinding.
992 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
993 (m68hc11_unwind_pc): New function.
994 (m68hc11_frame_unwind_cache): New function to analyze frames.
995 (m68hc11_frame_this_id): New function to create new frame struct.
996 (m68hc11_frame_prev_register): New function to unwind a register from
997 the frame.
998 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
999 (m68hc11_frame_p): New function for the above.
1000 (m68hc11_frame_base_address): New function to return fp of frame.
1001 (m68hc11_frame_args_address): Update for frame.
1002 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1003 (m68hc11_unwind_sp): New function.
1004 (m68hc11_unwind_dummy_id): New function.
1005 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1006 calls.
1007
1008 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1009
1010 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1011 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1012 when we are beyond the current pc.
1013
1014 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1015
1016 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1017 from m68hc11_push_arguments.
1018 (m68hc11_push_arguments): Remove.
1019 (m68hc11_push_return_address): Remove.
1020 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1021 handlers; remove deprecated_extra_stack_alignment_needed.
1022
1023 2003-07-27 Andrew Cagney <cagney@redhat.com>
1024
1025 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1026 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1027 REAL_PC and not the pointer.
1028 * hppa-hpux-tdep.c: Include frame.h
1029
1030 2003-07-27 Andrew Cagney <cagney@redhat.com>
1031
1032 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1033 GDB_MULTI_ACH_PARTIAL.
1034
1035 2003-07-27 Andrew Cagney <cagney@redhat.com>
1036
1037 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1038 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1039 operator at start and not end of line.
1040 (decode_prologue): Ditto.
1041 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1042 frame_unwind_register_unsigned instead of
1043 frame_unwind_unsigned_register.
1044 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1045 read_register.
1046 (m32r_push_dummy_call): Use register_size instead of
1047 REGISTER_RAW_SIZE.
1048 (m32r_frame_sniffer): Replace m32r_frame_p.
1049 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1050 * m32r-rom.c (report_transfer_performance): Delete extern
1051 declaration.
1052 (m32r_load, m32r_upload_command): Use print_transfer_performance
1053 instead of report_transfer_performance.
1054 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1055 / add_show_from_set.
1056
1057 2003-07-26 Andrew Cagney <cagney@redhat.com>
1058
1059 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1060 store_return_value and extract_struct_value_address.
1061
1062 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
1063
1064 PR c++/1267
1065 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1066 NULL, default to the section containing PC.
1067
1068 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1069
1070 * NEWS: Mention "regs" deprecated for m68hc11 too.
1071
1072 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1073 (m68hc11_print_register): New function to print out one register.
1074 (m68hc11_print_registers_info): New function to print registers.
1075 (show_regs): Deprecate and use the above.
1076 (m68hc11_gdbarch_init): Install the print_registers_info.
1077
1078 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1079
1080 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1081 that we have a SIGTRAP before returning non-zero.
1082
1083 2003-07-23 Michal Ludvig <mludvig@suse.cz>
1084 Elena Zannoni <ezannoni@redhat.com>
1085
1086 * linespec.c (decode_line_2): Avoid crash if
1087 find_function_start_sal() returns empty record.
1088
1089 2003-07-23 Andreas Schwab <schwab@suse.de>
1090
1091 * ia64-tdep.c (ia64_print_insn): New function.
1092 (ia64_gdbarch_init): Set print_insn to it.
1093 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1094 deprecated_tm_print_insn_info.
1095
1096 2003-07-22 Michael Snyder <msnyder@redhat.com>
1097
1098 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1099 handle 8-bit returns (long long).
1100 (h8300h_extract_return_value): Ditto.
1101 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1102
1103 2003-07-22 Andrew Cagney <cagney@redhat.com>
1104
1105 * gdbarch.c Include "gdb_obstack.h".
1106 (struct gdbarch): Add an "obstack".
1107 (alloc_gdbarch_data): Allocate the gdbarch data using
1108 GDBARCH_OBSTACK_CALLOC.
1109 (free_gdbarch_data): Delete function.
1110 (gdbarch_obstack_zalloc): New function.
1111 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1112 Assert that the architecture is not initialized.
1113 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1114 vector from the obstack.
1115 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1116 architecture obstack.
1117 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1118 (set_gdbarch_data): Assert that the data is not initialized.
1119 (struct gdbarch_data): Delete member "free".
1120 (register_gdbarch_data): Do not initialize "free".
1121 * gdbarch.h, gdbarch.c: Re-generate.
1122
1123 2003-07-22 Andrew Cagney <cagney@redhat.com>
1124
1125 * configure.in (build_warnings): Add -Wformat-nonliteral.
1126 * configure: Re-generate.
1127
1128 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1129
1130 * dwarf2loc.c (locexpr_describe_location): Fix typos.
1131
1132 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1133
1134 * findvar.c (read_var_value): Remove case for thread local storage
1135 variables. It is now entirely handled by the dwarf2 location
1136 expression code.
1137 * printcmd.c (address_info): Ditto.
1138 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1139 enumeration value.
1140 (struct symbol): Remove objfile field, which was used by
1141 LOC_THREAD_LOCAL_STATIC only.
1142 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1143 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1144 usage of objfile pointer.
1145 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1146 thread local variables.
1147 Add include of objfiles.h.
1148 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1149 storage variables.
1150 * Makefile.in (dwarf2loc.o): Update dependencies.
1151
1152 2003-07-22 Andrew Cagney <cagney@redhat.com>
1153
1154 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1155 get_frame_base.
1156 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1157 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1158 (struct value): Add opaque declaration.
1159 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1160
1161 2003-07-21 Andrew Cagney <cagney@redhat.com>
1162
1163 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1164 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1165
1166 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1167
1168 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1169 regcache_cooked_read_unsigned instead of read_register.
1170 (m68hc11_saved_pc_after_call): Likewise.
1171 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1172 instead of write_register.
1173 (m68hc11_register_type): New function.
1174 (m68hc11_register_virtual_type): Remove.
1175 (m68hc11_store_return_value): Convert to use the regcache.
1176 (m68hc11_extract_struct_value_address): Likewise.
1177 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1178 m68hc11_register_type; undeprecate store_return_value and
1179 extract_struct_value_address.
1180
1181 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1182
1183 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1184 and translate to use regcache.
1185 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1186
1187 2003-07-18 Andrew Cagney <cagney@redhat.com>
1188
1189 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1190 * gdbarch.h, gdbarch.c: Re-generate.
1191 * i386-tdep.c (i386_gdbarch_init): Do not set
1192 DWARF2_BUILD_FRAME_INFO.
1193 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1194 unconditionally.
1195 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1196 DWARF2_BUILD_FRAME_INFO.
1197
1198 2003-07-18 Andrew Cagney <cagney@redhat.com>
1199
1200 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1201 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1202
1203 2003-07-18 Andrew Cagney <cagney@redhat.com>
1204
1205 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1206 frame_unwind_address_in_block, instead of frame_pc_unwind.
1207 (dwarf2_frame_cache): Ditto.
1208
1209 2003-07-18 Andrew Cagney <cagney@redhat.com>
1210
1211 * user-regs.h (struct gdbarch): Declare opaque.
1212 * ui-out.h (struct ui_file): Declare opaque.
1213 * dwarf2-frame.h (struct frame_info): Declare opaque.
1214
1215 2003-07-18 Kris Warkentin <kewarken@qnx.com>
1216
1217 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1218 #include "...".
1219 (procfs_meminfo): Change strerror to safe_strerror.
1220 (procfs_can_run): Remove K&R badness.
1221
1222 2003-07-17 Michael Snyder <msnyder@redhat.com>
1223
1224 * remote-sim.c: Comment typo fix.
1225
1226 2003-07-17 Andrew Cagney <cagney@redhat.com>
1227
1228 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1229 configure.
1230 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1231 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1232 GDB_MULTI_ARCH_PARTIAL.
1233
1234 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
1235
1236 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1237 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1238 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1239
1240 2003-07-16 Theodore A. Roth <troth@openavr.org>
1241
1242 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1243 found.
1244 (avr_frame_unwind_cache): Don't unwind FP for main.
1245 Update a comment.
1246 Save the computed prev_sp.
1247 (avr_saved_regs_unwinder): Remove function.
1248 (avr_frame_prev_register): Use PC unwind logic from
1249 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1250
1251 2003-07-16 Andrew Cagney <cagney@redhat.com>
1252
1253 * frame-base.h (frame_base_p_ftype): Delete definition.
1254 (frame_base_append_predicate): Delete declaration.
1255 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1256 (frame_unwind_append_predicate): Delete declaration.
1257 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1258 (append_predicate): Delete parameter "p".
1259 (frame_unwind_append_predicate): Delete function.
1260 (frame_unwind_append_sniffer): Update call to append_predicate.
1261 (frame_unwind_free): Delete function.
1262 (_initialize_frame_unwind): Pass NULL as "free" to
1263 register_gdbarch_data.
1264 (frame_unwind_init): Append the dummy_frame_sniffer.
1265 (frame_unwind_find_by_frame): Simplify.
1266 * frame-base.c (struct frame_base_table): Delete field "p".
1267 (append_predicate): Delete parameter "p".
1268 (frame_base_append_predicate): Delete function.
1269 (frame_base_append_sniffer): Update call to append_predicate.
1270 (frame_base_free): Delete function.
1271 (frame_base_find_by_frame): Simplify.
1272 (_initialize_frame_base): Pass NULL as "free" to
1273 register_gdbarch_data.
1274 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1275 (x86_64_sigtramp_frame_sniffer): Replace
1276 "x86_64_sigtramp_frame_p".
1277 (x86_64_init_abi): Set the frame unwind sniffers.
1278 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1279 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1280 (m68k_gdbarch_init): Set the frame unwind sniffers.
1281 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1282 "i386_sigtramp_frame_p".
1283 (i386_frame_sniffer): Replace "i386_frame_p".
1284 (i386_gdbarch_init): Set the frame unwind sniffers.
1285 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1286 (avr_gdbarch_init): Set the frame unwind sniffers.
1287 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1288 "alpha_sigtramp_frame_p"
1289 (alpha_heuristic_frame_sniffer): Replace
1290 "alpha_heuristic_frame_p".
1291 (alpha_gdbarch_init): Set the frame unwind sniffers.
1292 (alpha_dwarf2_init_abi): Ditto.
1293 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1294 "alpha_debug_frame_p".
1295 (alpha_mdebug_frame_base_sniffer): Replace
1296 "alpha_mdebug_frame_base_p".
1297 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1298 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1299 (d10v_gdbarch_init): Set the frame unwind sniffer.
1300 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1301 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1302 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1303 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1304 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1305 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1306
1307 2003-07-16 Michael Snyder <msnyder@redhat.com>
1308
1309 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1310 should go thru sh_dsp_register_sim_regno, else the dsp regs
1311 will not get the right values.
1312
1313 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1314
1315 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1316 deprecated_store_floating by call to store_typed_floating.
1317 (sh_sh4_register_convert_to_raw): Substitute call to
1318 deprecated_extract_floating by call to extract_typed_floating.
1319
1320 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1321
1322 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1323
1324 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1325
1326 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1327 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1328 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1329 as possible.
1330 (do_pseudo_register): Remove.
1331 (sh_push_dummy_code): New function.
1332 (sh64_store_struct_return): Rename from sh_store_struct_return.
1333 Only called for sh64 now.
1334 (sh_extract_struct_value_address): Regcache'ify.
1335 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1336 and accomodate new tasks.
1337 (sh64_push_return_address): Rename from sh_push_return_address.
1338 Only called for sh64 now.
1339 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1340 Regcache'ify.
1341 (sh3e_sh4_extract_return_value): Regcache'ify.
1342 (sh_default_store_return_value): Ditto.
1343 (sh3e_sh4_store_return_value): Ditto.
1344 (sh_default_register_byte): Remove.
1345 (sh_sh4_register_byte): Remove.
1346 (sh_default_register_raw_size): Remove.
1347 (sh_sh4_register_raw_size): Remove.
1348 (sh_register_virtual_size): Remove.
1349 (sh_sh3e_register_virtual_type): Remove.
1350 (sh_sh3e_register_type): New function.
1351 (sh_sh4_register_virtual_type): Remove.
1352 (sh_sh4_register_type): New function.
1353 (sh_default_register_virtual_type): Remove.
1354 (sh_default_register_type): New function.
1355 (do_fv_register_info): Add parameters to accomodate call from
1356 sh_print_registers_info.
1357 (do_dr_register_info): Ditto.
1358 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1359 Add parameters to accomodate call from sh_print_registers_info.
1360 (sh_do_fp_register): Ditto.
1361 (sh64_do_pseudo_register): Call do_dr_register_info,
1362 do_fv_register_info and sh_do_fp_register with default parameters.
1363 (sh_do_register): Add parameters to accomodate call from
1364 sh_print_registers_info.
1365 (sh_print_register): Ditto.
1366 (sh_print_registers_info): Rename from sh_do_registers_info.
1367 Add parameters to be used as gdbarch_print_registers_info
1368 implementation. Accomodate removed do_pseudo_register function
1369 pointer.
1370 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1371 function pointer. Call sh_print_register with default parameters.
1372 (sh64_do_registers_info): Call sh_print_registers_info instead of
1373 sh_do_registers_info.
1374 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1375 detection of deprecated vs. non-deprecated functionality.
1376 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1377 function pointer assignments by direct function calls.
1378
1379 2003-07-15 Andrew Cagney <cagney@redhat.com>
1380
1381 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1382 (frame_register_unwind, create_new_frame): Ditto.
1383 (legacy_get_prev_frame, get_frame_type): Ditto.
1384 (get_frame_base_address): Use frame_base_find_by_frame.
1385 (get_frame_locals_address): Use frame_base_find_by_frame.
1386 (get_frame_args_address): Use frame_base_find_by_frame.
1387 * frame-base.h (frame_base_sniffer_ftype): Declare.
1388 (frame_base_append_sniffer): Declare.
1389 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1390 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1391 (frame_base_append_sniffer): New function.
1392 (frame_base_append_predicate): Add a NULL sniffer.
1393 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1394 (struct frame_base_table): Add "sniffer".
1395 (frame_base_free): Free the "sniffer" table.
1396 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1397 (frame_unwind_append_sniffer): Declare.
1398 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1399 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1400 (struct frame_unwind_table): Add "sniffer", delete "middle".
1401 (append_predicate): Add "sniffer" parameter, append the sniffer.
1402 (frame_unwind_init): Update append_predicate call.
1403 (frame_unwind_append_sniffer): New function.
1404 (frame_unwind_append_predicate): Update append_predicate call.
1405 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1406
1407 2003-07-15 Andrew Cagney <cagney@redhat.com>
1408
1409 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1410 before code inhibiting repeated unwind attempts. Add to
1411 commentary on that test's problems.
1412 * blockframe.c (inside_main_func): Look for "main" in the minimal
1413 symbol table.
1414 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1415 identical.
1416
1417 2003-07-15 Andrew Cagney <cagney@redhat.com>
1418
1419 * complaints.c (struct explanation): Define.
1420 (struct complaints): Change type of "explanation" to "struct
1421 explanation".
1422 (symfile_explanations): Convert to a "struct explanation" table.
1423 (vcomplaint): Update.
1424
1425 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1426
1427 * x86-64-linux-nat.c (regmap): Removed.
1428 (supply_gregset, fill_gregset): Call
1429 x86_64_linux_(fill,supply)_gregset functions.
1430 * x86-64-linux-tdep.c (USER_*): New defines.
1431 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1432 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1433 New functions.
1434 (fetch_core_registers): Ditto.
1435 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1436 * x86-64-linux-tdep.h: New file.
1437 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1438 and core-regset.o.
1439 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1440
1441 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1442
1443 * x86-64-tdep.c (x86_64_store_return_value): Use
1444 regcache_cooked_write_part instead of regcache_cooked_write.
1445
1446 * configure.host: Add x86_64-*-freebsd*.
1447 * configure.tgt: Add x86_64-*-freebsd*.
1448 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1449 * amd64fbsd-nat.c: New file.
1450 * amd64fbsd-tdep.c: New file.
1451 * config/i386/nm-fbsd64.h: New file.
1452 * config/i386/fbsd64.mh: New file.
1453 * config/i386/fbsd64.mt: New file.
1454
1455 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1456
1457 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1458 `sc_regs_offset' and `sc_fpregs_offset'.
1459 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1460 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1461 (alpha_sigtramp_register_address): Rewrite to use new members of
1462 `struct gdbarch_tdep'.
1463 (alpha_gdbarch_init): Initialize new members of struct
1464 gdbarch_tdep'.
1465 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1466 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1467 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1468 (alphafbsd_pc_in_sigtramp): Implement.
1469 (alphafbsd_sigtramp_offset): New function.
1470 (alphafbsd_sigcontext_addr): New function.
1471 (alphafbsd_init_abi): Initialize signal trampoline related members
1472 of `struct gdbarch_tdep'.
1473 (_initialize_alphafbsd_tdep): Add prototype.
1474
1475 2003-07-11 Theodore A. Roth <troth@openavr.org>
1476
1477 * Makefile.in (install-only): Quote sed expression when generating
1478 transformed_name.
1479
1480 2003-07-11 Richard Henderson <rth@redhat.com>
1481
1482 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1483 * dwarf2-frame.c: Include complaints.h.
1484 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1485 variable initialization; return NULL on error.
1486 (decode_frame_entry): New.
1487
1488 2003-07-11 Andrew Cagney <cagney@redhat.com>
1489
1490 * frame.h (frame_address_in_block): Delete declaration.
1491 * blockframe.c (frame_address_in_block): Delete function.
1492 (get_frame_block): Use get_frame_address_in_block.
1493 (block_innermost_frame): Ditto.
1494 * stack.c (print_frame, backtrace_command_1): Ditto.
1495
1496 * frame.h (get_frame_address_in_block): Declare.
1497 (frame_unwind_address_in_block): Declare.
1498 * frame.c (frame_unwind_address_in_block): New function.
1499 (get_frame_address_in_block): New function.
1500
1501 2003-07-10 Andrew Cagney <cagney@redhat.com>
1502
1503 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1504 pre-default. Note: re-generate has no effect.
1505
1506 2003-07-10 Andrew Cagney <cagney@redhat.com>
1507
1508 * gdbarch.sh: When a variable, but not a function, compare against
1509 0. Fix problem in previous patch.
1510 * gdbarch.c: Re-generate.
1511
1512 2003-07-10 Andrew Cagney <cagney@redhat.com>
1513
1514 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1515 functions against NULL, not 0.
1516 * gdbarch.c: Re-generate.
1517
1518 2003-07-10 Fred Fish <fnf@ninemoons.com>
1519
1520 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1521 null string instead of a null pointer.
1522 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1523
1524 2003-07-09 Michael Snyder <msnyder@redhat.com>
1525
1526 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1527
1528 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1529
1530 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1531 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1532 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1533 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1534 * x86-64-tdep.c: ... from here.
1535
1536 2003-07-09 Andreas Schwab <schwab@suse.de>
1537
1538 * m68k-tdep.h (enum struct_return): Define.
1539 (struct gdbarch_tdep): Add struct_return.
1540 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1541 bytes are padded to the right, not to the left. Pass struct value
1542 address in register %a1, not on stack.
1543 (m68k_use_struct_convention): New function.
1544 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1545 struct_return in tdep to pcc_struct_return.
1546 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1547 reg_struct_return.
1548
1549 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1550
1551 * somread.c (som_symfile_offsets): Fix compilation error.
1552
1553 2003-07-09 Andrew Cagney <cagney@redhat.com>
1554
1555 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1556 Add comments about the checks.
1557
1558 2003-07-08 Andrew Cagney <cagney@redhat.com>
1559
1560 * Makefile.in: Make dependency section headers consistent.
1561 (config_h): Move to $BUILD headers section.
1562 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1563 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1564 (ada-exp.tab.c): Move to YACC/LEX section.
1565 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1566 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1567
1568 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1569
1570 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1571 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1572 of strerror with safe_strerror, use ISO C function definitions,
1573 and replace instances of sprintf with snprintf.
1574
1575 2003-07-07 Andrew Cagney <cagney@redhat.com>
1576
1577 * frame.c (get_prev_frame): Enable check for identical frames.
1578 Update comments. Update error messages.
1579
1580 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1581
1582 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1583
1584 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1585
1586 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1587 sort_symtab_syms, no longer necessary.
1588
1589 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1590
1591 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1592
1593 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1594
1595 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1596 (mips_register_byte): Likewise.
1597
1598 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1599
1600 * Makefile.in (sparc_tdep_h): New.
1601 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1602 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1603 * sparc-linux-nat.c: Include "sparc-tdep.h".
1604 * sparc-nat.c: Likewise.
1605 * sparc-tdep.c: Likewise.
1606 * sparc64nbsd-nat.c: Likewise.
1607 * sparcnbsd-nat.c: Likewise.
1608 * sparcnbsd-tdep.c: Likewise.
1609 * sparc-tdep.h: New file.
1610 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1611 and sparc_npc_regnum.
1612
1613 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1614
1615 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1616 (mips_linux_cannot_store_register): List supported instead of
1617 unsupported registers.
1618
1619 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1620
1621 * disasm.c (dump_insns): Separate instructions from addresses.
1622
1623 2003-07-07 Andreas Schwab <schwab@suse.de>
1624
1625 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1626 dependencies.
1627 * m68k-tdep.c (NUM_FREGS): Delete.
1628 (SIG_PC_FP_OFFSET): Delete.
1629 (TARGET_M68K): Delete.
1630 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1631 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1632 P_MOVEL_SP, P_MOVEML_SP): Define.
1633 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1634 P_TRAP): Delete.
1635 (m68k_register_raw_size): Delete.
1636 (m68k_register_virtual_size): Delete.
1637 (m68k_register_type): Renamed from m68k_register_virtual_type and
1638 add gdbarch argument.
1639 (m68k_store_struct_return): Delete.
1640 (m68k_deprecated_extract_return_value): Delete.
1641 (m68k_deprecated_extract_struct_value_address): Delete.
1642 (m68k_frame_chain): Delete.
1643 (m68k_frame_saved_pc): Delete.
1644 (m68k_fix_call_dummy): Delete.
1645 (m68k_push_dummy_frame): Delete.
1646 (m68k_pop_frame): Delete.
1647 (m68k_extract_return_value): New function.
1648 (m68k_store_return_value): Rewrite using regcache.
1649 (m68k_extract_struct_value_address): Rewrite using regcache.
1650 (m68k_push_dummy_call): New function.
1651 (struct m68k_frame_cache): Define.
1652 (m68k_alloc_frame_cache): New function.
1653 (m68k_analyze_frame_setup): New function.
1654 (m68k_analyze_register_saves): New function.
1655 (m68k_analyze_prologue): New function.
1656 (m68k_skip_prologue): Rewrite using above functions.
1657 (m68k_unwind_pc): New function.
1658 (m68k_frame_cache): New function.
1659 (m68k_frame_this_id): New function.
1660 (m68k_frame_prev_register): New function.
1661 (m68k_frame_unwind): New variable.
1662 (m68k_frame_p): New function.
1663 (m68k_sigtramp_frame_cache): New function.
1664 (m68k_sigtramp_frame_this_id): New function.
1665 (m68k_sigtramp_frame_prev_register): New function.
1666 (m68k_sigtramp_frame_unwind): New variable.
1667 (m68k_sigtramp_frame_p): New function.
1668 (m68k_frame_base_address): New function.
1669 (m68k_frame_base): New function.
1670 (m68k_unwind_dummy_id): New function.
1671 (fill_gregset): Use regcache_collect.
1672 (fill_fpregset): Likewise.
1673 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1674 defined.
1675 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1676 deprecated_init_frame_pc, deprecated_store_struct_return,
1677 deprecated_extract_return_value, deprecated_store_return_value,
1678 deprecated_frame_chain, deprecated_frame_saved_pc,
1679 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1680 deprecated_register_virtual_size,
1681 deprecated_max_register_raw_size,
1682 deprecated_max_register_virtual_size,
1683 deprecated_register_virtual_type, deprecated_register_size,
1684 deprecated_register_byte, deprecated_register_bytes,
1685 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1686 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1687 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1688 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1689 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1690 deprecated_push_dummy_frame, deprecated_pop_frame,
1691 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1692 only if SYSCALL_TRAP is defined. Set extract_return_value,
1693 store_return_value, extract_struct_value_address, register_type,
1694 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1695 predicates.
1696 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1697 M68K_MAX_REGISTER_SIZE): Define.
1698 (struct m68k_sigtramp_info): Define.
1699 (struct gdbarch_tdep): Add get_sigtramp_info.
1700 * m68klinux-nat.c (fetch_register): Use register_size instead of
1701 REGISTER_RAW_SIZE. Don't put assignment in if.
1702 (store_register): Likewise.
1703 (fetch_inferior_registers): Likewise.
1704 (store_inferior_registers): Likewise.
1705 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1706 (m68k_linux_frame_saved_pc): Delete.
1707 (m68k_linux_sigcontext_reg_offset,
1708 m68k_linux_ucontext_reg_offset): Define.
1709 (m68k_linux_get_sigtramp_info): New function.
1710 (m68k_linux_extract_return_value): Rewrite using regcache.
1711 (m68k_linux_store_return_value): Likewise.
1712 (m68k_linux_extract_struct_value_address): Likewise.
1713 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1714 Don't set deprecated_frame_saved_pc,
1715 deprecated_extract_return_value, deprecated_store_return_value,
1716 deprecated_extract_struct_value_address. Set
1717 extract_return_value, store_return_value,
1718 extract_struct_value_address.
1719
1720 2003-07-07 Andrew Cagney <cagney@redhat.com>
1721
1722 * expprint.c: Include "user-regs.h" instead of "frame.h".
1723 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1724 frame_map_regnum_to_name.
1725 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1726 (frame_map_name_to_regnum): Simplify, call
1727 user_reg_map_name_to_regnum.
1728 (frame_map_regnum_to_name): Simplify, call
1729 user_reg_map_regnum_to_name.
1730 (frame_register_unwind): Update.
1731 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1732 (_initialize_frame_reg): Call user_reg_add_builtin.
1733 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1734 (value_of_register): Use value_of_user_reg.
1735 * eval.c (evaluate_subexp_standard): Update.
1736 * parse.c (write_dollar_variable): Update.
1737 * d10v-tdep.c (d10v_print_registers_info): Update.
1738 * infcmd.c (registers_info): Update.
1739 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1740 (builtin_regs_h): Delete macro.
1741 (user_regs_h): Define.
1742 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1743 (builtin-regs.o): Delete target.
1744 (user-regs.o): Specify dependencies.
1745 (expprint.o): Update dependencies.
1746 (findvar.o): Update dependencies.
1747 (frame.o): Update dependencies.
1748 (std-regs.o): Update dependencies.
1749
1750 2003-07-06 Christopher Faylor <cgf@redhat.com>
1751
1752 * win32-nat.c (solib_symbols_add): Use one variable for all section
1753 address stuff. Pass variable rather than address of variable to
1754 safe_symbol_file_add.
1755
1756 2003-07-06 Andreas Schwab <schwab@suse.de>
1757
1758 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1759
1760 2003-07-04 Joel Brobecker <brobecker@gnat.com>
1761
1762 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1763
1764 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1765
1766 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1767
1768 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1769
1770 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1771 * config/i386/nto.mh: New file.
1772 * config/i386/nm-nto.h: New file.
1773 * configure.host: Add i[3456]86-*-nto*.
1774
1775 2003-07-03 Joel Brobecker <brobecker@gnat.com>
1776
1777 * remote-vx.c (vx_add_symbols): Fix compilation error.
1778
1779 2003-07-03 Andrew Cagney <cagney@redhat.com>
1780
1781 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1782 * gdbarch.h, gdbarch.c: Re-generate.
1783 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1784 (legacy_register_name): Declare.
1785 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1786 (REGISTER_NAME): Define.
1787 * sparc-tdep.c (legacy_register_name): New function.
1788 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1789 (REGISTER_NAME): Define.
1790 (hppa64_register_name): Declare.
1791 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1792 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1793 (hppa64_register_name): New function.
1794 (hppa_register_name): New function.
1795 * arch-utils.c (legacy_register_name): Delete.
1796 * arch-utils.h (legacy_register_name): Delete.
1797
1798 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
1799
1800 * cli/cli-interp.c (cli_interpreter_resume): Update the
1801 cli_uiout's stream to gdb_stdout.
1802
1803 2003-07-03 Andrew Cagney <cagney@redhat.com>
1804
1805 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1806 predicate.
1807 * gdbarch.h, gdbarch.c: Re-generate.
1808 * regcache.c (init_regcache_descr): Use legacy code when either
1809 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1810
1811 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1812
1813 * NEWS: Move "set logging" entry into GDB 6.0 section.
1814
1815 2003-07-02 Jim Blandy <jimb@redhat.com>
1816
1817 * s390-tdep.c (struct frame_extra_info): new member:
1818 'stack_bought_valid'.
1819 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1820 initialize fextra_info->stack_bought.
1821 (s390_frameless_function_invocation): Don't trust the value of
1822 fextra_info_ptr->stack_bought unless
1823 fextra_info->stack_bought_valid is set.
1824
1825 New S390 prologue analyzer.
1826 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1827 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1828 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1829 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1830 compute_x_addr, s390_on_stack, s390_store,
1831 s390_get_signal_frame_info): New functions.
1832 (S390_NUM_SPILL_SLOTS): New macro.
1833 (s390_get_frame_info): Rewritten.
1834 (is_arg_reg): Deleted.
1835
1836 Break out the decoding of S/390 instructions into separate
1837 functions, to make it more legible, and easier to check
1838 against the spec.
1839 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1840 is_rx, is_rxe): New functions.
1841 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1842 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1843 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1844 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1845 enums for opcode values. (Is this an improvement?)
1846
1847 2003-07-02 Andrew Cagney <cagney@redhat.com>
1848
1849 * i386-tdep.c: Revert change committed as part of trad-frame code
1850 below.
1851
1852 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1853
1854 * breakpoint.c (insert_catchpoint): Make static.
1855
1856 2003-07-02 Andreas Schwab <schwab@suse.de>
1857
1858 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1859 former ia64_push_arguments and ia64_push_return_address, and use
1860 regcache functions instead of read/write_register.
1861 (ia64_gdbarch_init): Set push_dummy_call instead of
1862 deprecated_push_arguments and deprecated_push_return_address.
1863
1864 2003-07-01 Andreas Jaeger <aj@suse.de>
1865
1866 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1867 before the call.
1868 Set %rax only to number of SSE registers used.
1869
1870 2003-07-01 Andrew Cagney <cagney@redhat.com>
1871
1872 * trad-frame.h: Update comments, a -1 .addr is reserved.
1873 (trad_frame_value_p, trad_frame_addr_p): Declare.
1874 (trad_frame_reg_p): Declare.
1875 (trad_frame_set_value): Rename trad_frame_register_value.
1876 (trad_frame_set_unknown): Declare.
1877 * trad-frame.c (trad_frame_realreg_p): New function.
1878 (trad_frame_addr_p, trad_frame_value_p): New function.
1879 (trad_frame_set_unknown): New function.
1880 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1881 (trad_frame_prev_register): Use trad_frame_realreg_p,
1882 trad_frame_addr_p and trad_frame_value_p.
1883 (trad_frame_set_value): Rename trad_frame_register_value.
1884 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1885 and trad_frame_set_value.
1886
1887 2003-06-30 Jim Blandy <jimb@redhat.com>
1888
1889 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1890 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1891 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1892 for 16 registers, and then 32 more bytes.
1893 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1894 New macros.
1895 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1896 Move up in the file, since it's now used by is_simple_arg.
1897 (is_simple_arg): Don't assume registers are four bytes long.
1898 Exclude all double arguments. Extended floats are not simple
1899 args.
1900 (is_power_of_two): New function.
1901 (pass_by_copy_ref): Call is_power_of_two, and check that the
1902 length fits in a register, rather than listing all the acceptable
1903 sizes. Extended floats are not passed by reference.
1904 (s390_push_arguments): Don't assume registers are four bytes long.
1905 Reserve an argument register to point to the buffer for structures
1906 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1907 S390_STACK_FRAME_OVERHEAD.
1908
1909 2003-06-30 Andreas Schwab <schwab@suse.de>
1910
1911 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1912 format error message.
1913
1914 2003-06-30 Joel Brobecker <brobecker@gnat.com>
1915
1916 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1917
1918 2003-06-30 David Carlton <carlton@kealia.com>
1919
1920 Band-aid for PR c++/1245.
1921 * Makefile.in (cp-support.o): Depend on complaints_h.
1922 * cp-support.c: Include complaints.h. Add declaration for
1923 find_last_component.
1924 (cp_find_first_component): Separate code into
1925 cp_find_first_component_aux.
1926 (cp_find_first_component_aux): Call demangled_name_complaint.
1927 (demangled_name_complaint): New.
1928
1929 2003-06-30 Andrew Cagney <cagney@redhat.com>
1930
1931 * remote.c (remote_write_bytes): Explicitly compute and then use
1932 the payload size. Update comments to reflect. Fixes problem of
1933 GDB not sending small packets as found by Fred Fish.
1934
1935 2003-06-30 Andrew Cagney <cagney@redhat.com>
1936
1937 * remote.c (remote_async_wait): Fix -Wformat problem.
1938
1939 2003-06-29 Andrew Cagney <cagney@redhat.com>
1940
1941 * remote.c (remote_wait): Call error, and not warning, when the
1942 packet is corrupt.
1943 (remote_async_wait): Ditto.
1944
1945 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1946
1947 * sparc-tdep.c (sparc_y_regnum): Make external again.
1948
1949 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1950
1951 * cli/cli-logging.c (pop_output_files): Add void to function
1952 definition.
1953
1954 2003-06-29 Andrew Cagney <cagney@redhat.com>
1955
1956 * frame.c (frame_register_unwind): Use unsigned char when dumping
1957 the buffer contents.
1958
1959 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1960
1961 * cli/cli-logging.c: New file.
1962 * cli-out.c (struct ui_out_data): Add original_stream.
1963 (cli_redirect): New function.
1964 (cli_ui_out_impl): Add cli_redirect.
1965 (cli_out_new): Initialize original_stream.
1966 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1967 (uo_redirect, ui_out_redirect): New.
1968 * ui-out.h (struct ui_out_impl): Add redirect member.
1969 (redirect_ftype): New.
1970 (ui_out_redirect): Add prototype.
1971 * Makefile.in: Add rules for cli-logging.c.
1972 * NEWS: Mention "set logging".
1973
1974 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1975
1976 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1977
1978 2003-06-27 Andrew Cagney <cagney@redhat.com>
1979
1980 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1981 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1982 * avr-tdep.c (avr_call_dummy_address): Delete function.
1983 (avr_gdbarch_init): Do not set call_dummy_address.
1984
1985 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1986
1987 * symfile.c (syms_from_objfile): Move variables to inner block.
1988 Move the checks for the non-mainline case a bit earlier to avoid
1989 doing some useless computations.
1990
1991 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1992
1993 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1994
1995 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
1996
1997 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1998 sections.
1999
2000 2003-06-26 Michael Chastain <mec@shout.net>
2001
2002 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2003 gdb/testsuite/gdb.c++/pr-1210.exp.
2004
2005 2003-06-26 Andrew Cagney <cagney@redhat.com>
2006
2007 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2008 altivec_expression.h and altivec_registers.h.
2009
2010 2003-06-26 Andrew Cagney <cagney@redhat.com>
2011
2012 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2013 info->mach when MIPS16. Patch suggested by Fred Fish.
2014
2015 2003-06-26 Andrew Cagney <cagney@redhat.com>
2016
2017 * utils.c (internal_vproblem): Print the problem to a reason
2018 buffer and then pass to query. Make the msg variable more local.
2019
2020 2003-06-26 Andrew Cagney <cagney@redhat.com>
2021
2022 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2023 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2024 * gdbarch.h, gdbarch.c: Re-generate.
2025 * frame-base.c (default_frame_args_address): Update. Use
2026 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2027 not available.
2028 (default_frame_locals_address): Ditto for
2029 DEPRECATED_FRAME_LOCALS_ADDRESS.
2030 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2031 (vax_frame_num_args): Update.
2032 (vax_gdbarch_init): Update.
2033 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2034 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2035 * mcore-tdep.c (mcore_gdbarch_init): Update.
2036 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2037 * ia64-tdep.c (ia64_gdbarch_init): Update.
2038 * symtab.h (address_class): Update comments.
2039 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2040 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2041 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2042 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2043 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2044 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2045 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2046 * alpha-mdebug-tdep.c: Update.
2047 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2048
2049 2003-06-26 Andreas Jaeger <aj@suse.de>
2050
2051 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2052 of SSE registers so that varargs functions work. Rework handling
2053 of passing arguments on the stack.
2054 (x86_64_store_return_value): Return double and float values in SSE
2055 register.
2056
2057 2003-06-24 Michael Chastain <mec@shout.net>
2058
2059 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2060 the "constructor breakpoints ignored" bug.
2061
2062 2003-06-25 David Carlton <carlton@kealia.com>
2063
2064 * MAINTAINERS: Update e-mail address.
2065
2066 2003-06-24 Jim Blandy <jimb@redhat.com>
2067
2068 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2069
2070 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2071 function.
2072 (ppc_linux_init_abi): Register it as the
2073 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2074
2075 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2076 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2077 method.
2078
2079 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2080 (ppc64_standard_linkage_target): Use it.
2081
2082 2003-06-23 Andrew Cagney <cagney@redhat.com>
2083
2084 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2085 for 0 "int0" and 4 "int32" sized registers.
2086 * gdbtypes.c (builtin_type_int0): Define.
2087 (build_gdbtypes): Initialize builtin_type_int0.
2088 * gdbtypes.h (builtin_type_int0): Declare.
2089
2090 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2091
2092 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2093 as characters are unsigned.
2094
2095 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2096
2097 PR gdb/1179
2098 * dwarfread.c (struct_type): Skip static fields without crashing.
2099
2100 2003-06-22 Andrew Cagney <cagney@redhat.com>
2101
2102 GDB 6.0 branch created.
2103 * README: Update.
2104 * PROBLEMS: Update. Empty.
2105 * NEWS: Update.
2106
2107 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2108
2109 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2110 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2111
2112 2003-06-22 Andrew Cagney <cagney@redhat.com>
2113
2114 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2115 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2116 Velikov.
2117
2118 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2119
2120 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2121 compilers.
2122
2123 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2124
2125 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2126 argument of val_print.
2127 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2128 to the address argument of baseclass_offset or target_read_memory.
2129 Do add it to the argument of cp_print_value_fields.
2130
2131 2003-06-21 Andrew Cagney <cagney@redhat.com>
2132
2133 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2134 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2135 instead of 0..NUM_REGS.
2136 (mips_register_reggroup_p): New function.
2137 (mips_pseudo_register_write): New function.
2138 (mips_pseudo_register_read): New function.
2139 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2140 based on the register's type.
2141 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2142 cooked.
2143 (mips_get_saved_register): Simplify. Assert that REGNO is a
2144 pseudo / cooked.
2145 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2146 (mips_register_type): Replace mips_register_virtual_type. Map
2147 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2148 when available.
2149 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2150 that the register is cooked / virtual.
2151 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2152 Only get the extra info when needed.
2153 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2154 (mips32_heuristic_proc_desc): Fetch the cooked register.
2155 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2156 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2157 (mips_print_register): Use gdbarch_register_type, instead of
2158 REGISTER_VIRTUAL_TYPE.
2159 (print_gp_register_row): Use gdbarch_register_type, instead of
2160 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2161 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2162 Print the pseudo / cooked registers.
2163 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2164 Print the pseudo / cooked registers.
2165 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2166 REG_NUM is pseudo / cooked.
2167 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2168 (mips_n32n64_xfer_return_value): Ditto.
2169 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2170 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2171 (mips_register_sim_regno): New function.
2172 (mips_gdbarch_init): Set deprecated_register_byte,
2173 register_group_p, pseudo_register_write, pseudo_register_read,
2174 register_sim_regno, and num_pseudo_regs. Set register_type,
2175 instead of register_virtual_type.
2176 * Makefile.in (mips-tdep.o): Update dependencies.
2177 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2178 REGISTER_VIRTUAL_TYPE.
2179 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2180 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2181 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2182 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2183 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2184
2185 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2186
2187 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2188 * cli/cli-cmds.c: Include "gdb_vfork.h".
2189 (shell_escape): Use vfork.
2190
2191 2003-06-21 Andrew Cagney <cagney@redhat.com>
2192
2193 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2194 32 bit floating-point register saves.
2195
2196 * frame.h (deprecated_unwind_get_saved_register): Delete.
2197 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2198 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2199 and deprecated_get_next_frame_hack instead of
2200 deprecated_unwind_get_saved_register.
2201
2202 * mips-tdep.c (mips_dump_tdep): Do not print
2203 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2204
2205 * frame.c (get_frame_register): New function.
2206 (frame_unwind_register_signed): New function.
2207 (get_frame_register_signed): New function.
2208 (frame_unwind_register_unsigned): New function.
2209 (get_frame_register_unsigned): New function.
2210 * frame.h: Add comments on naming schema.
2211 (get_frame_register, frame_unwind_register_signed): Declare.
2212 (get_frame_register_signed, get_frame_register_signed): Declare.
2213 (frame_unwind_register_unsigned): Declare.
2214 (get_frame_register_unsigned): Declare.
2215
2216 2003-06-20 Theodore A. Roth <troth@openavr.org>
2217
2218 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2219
2220 2003-06-20 Theodore A. Roth <troth@openavr.org>
2221
2222 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2223 (avr_read_sp): Ditto.
2224
2225 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
2226
2227 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2228 * config/arm/nm-linux.h: Likewise.
2229 * config/arm/tm-linux.h: Likewise.
2230 * config/ia64/nm-linux.h: Likewise.
2231 * config/ia64/tm-ia64.h: Likewise.
2232 * config/s390/tm-linux.h: Likewise.
2233 * config/s390/tm-s390.h: Likewise.
2234 * s390-nat.c: Likewise.
2235 * s390-tdep.c: Likewise.
2236
2237 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2238 * config/ia64/linux.mt: Likewise.
2239 * config/m68k/linux.mh: Likewise.
2240 * config/mips/linux.mt: Likewise.
2241 * config/powerpc/linux.mh: Likewise.
2242 * config/sh/linux.mt: Likewise.
2243
2244 2003-06-19 Kris Warkentin <kewarken@qnx.com>
2245
2246 * solib.c (solib_open): Change tests for whether to search
2247 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2248 comments.
2249
2250 2003-06-19 Theodore A. Roth <troth@openavr.org>
2251
2252 * avr-tdep.c (avr_frame_address): Delete function.
2253 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2254 set_gdbarch_frame_args_address.
2255
2256 2003-06-19 Andrew Cagney <cagney@redhat.com>
2257
2258 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2259 (REGISTER_CONVERT_FROM_TYPE): Delete.
2260 (mips_register_convert_to_type): Delete declaration.
2261 (mips_register_convert_from_type): Delete declaration.
2262 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2263 kernel/.
2264
2265 2003-06-19 Michael Snyder <msnyder@redhat.com>
2266
2267 * linux-nat.h: New file.
2268 * linux-nat.c: Include linux-nat.h.
2269 * lin-lwp.c: Include linux-nat.h.
2270 Move struct lwp_info def to linux-nat.h.
2271 * linux-proc.c: Include linux-nat.h.
2272 (linux_make_note_section): Iterate over lwps instead of threads.
2273 (linux_do_thread_registers): Use lwp instead of merged pid.
2274 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2275 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2276 Add dependency on linux_nat_h.
2277
2278 2003-06-19 Theodore A. Roth <troth@openavr.org>
2279
2280 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2281
2282 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2283
2284 * varobj.c (get_type, get_target_type): Use check_typedef.
2285
2286 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2287
2288 * breakpoint.c (insert_catchpoint): Call internal_error.
2289
2290 2003-06-19 Theodore A. Roth <troth@openavr.org>
2291
2292 * avr-tdep.c (avr_push_dummy_code): Delete function.
2293 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2294
2295 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2296
2297 * arch-utils.c (default_prepare_to_proceed): Remove.
2298 (generic_prepare_to_proceed): Remove.
2299 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2300 (generic_prepare_to_proceed): Remove prototype.
2301 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2302 * gdbarch.c: Regenerate.
2303 * gdbarch.h: Regenerate.
2304 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2305 * hppah-nat.c (hppa_switched_threads): Remove.
2306 * infrun.c (prepare_to_proceed): New static function, copied from
2307 generic_prepare_to_proceed. Remove select_it argument.
2308 (proceed): Call prepare_to_proceed.
2309 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2310 variables.
2311 (ptrace_wait): Don't set the removed variables.
2312 (hppa_switched_threads): Remove.
2313 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2314 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2315 (lin_lwp_prepare_to_proceed): Remove prototype.
2316 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2317 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2318
2319 2003-06-18 Theodore A. Roth <troth@openavr.org>
2320
2321 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2322 trad-frame.h.
2323 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2324 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2325 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2326 (AVR_PROLOGUE_*): Enumerate prologue types.
2327 (struct frame_extra_info): Remove.
2328 (struct avr_unwind_cache): Define.
2329 (avr_write_sp): Delete function.
2330 (avr_read_fp): Ditto.
2331 (avr_init_extra_frame_info): Ditto.
2332 (avr_pop_frame): Ditto.
2333 (avr_frame_saved_pc): Ditto.
2334 (avr_saved_pc_after_call): Ditto.
2335 (avr_push_return_address): Ditto.
2336 (avr_frame_chain): Ditto.
2337 (avr_store_struct_return): Ditto.
2338 (avr_push_arguments): Ditto.
2339 (avr_scan_prologue): Update comments. Changed to set up the info for
2340 cache unwinding. Now returns end of prologue PC.
2341 (avr_skip_prologue): Better handling of functions lacking a prologue
2342 by using avr_scan_prologue.
2343 (avr_scan_arg_moves): New function.
2344 (avr_saved_regs_unwinder): Ditto.
2345 (avr_frame_unwind_cache): Ditto.
2346 (avr_unwind_pc): Ditto.
2347 (avr_frame_this_id): Ditto.
2348 (avr_frame_prev_register): Ditto.
2349 (avr_frame_p): Ditto.
2350 (avr_frame_base_address ): Ditto.
2351 (avr_unwind_dummy_id): Ditto.
2352 (avr_push_dummy_code): Ditto.
2353 (push_stack_item): Ditto.
2354 (pop_stack_item): Ditto.
2355 (avr_push_dummy_call): Ditto.
2356 (struct stack_item): Define.
2357 (avr_frame_unwind): Declare structure.
2358 (avr_frame_base): Ditto.
2359 (avr_gdbarch_init): Remove calls to
2360 set_gdbarch_deprecated_init_frame_pc,
2361 set_gdbarch_deprecated_target_read_fp,
2362 set_gdbarch_deprecated_dummy_write_sp,
2363 set_gdbarch_deprecated_fp_regnum,
2364 set_gdbarch_deprecated_push_arguments,
2365 set_gdbarch_deprecated_push_return_address,
2366 set_gdbarch_deprecated_pop_frame,
2367 set_gdbarch_deprecated_store_struct_return,
2368 set_gdbarch_deprecated_frame_init_saved_regs,
2369 set_gdbarch_deprecated_init_extra_frame_info,
2370 set_gdbarch_deprecated_frame_chain,
2371 set_gdbarch_deprecated_frame_saved_pc,
2372 set_gdbarch_deprecated_saved_pc_after_call.
2373 Add calls to set_gdbarch_push_dummy_call,
2374 set_gdbarch_push_dummy_code,
2375 frame_unwind_append_predicate,
2376 frame_base_set_default,
2377 set_gdbarch_unwind_dummy_id,
2378 set_gdbarch_unwind_pc.
2379 Wrap a long line.
2380
2381 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2382
2383 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2384 registers for H8/300S.
2385 (h8300_print_registers_info): Ditto.
2386 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2387
2388 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2389
2390 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2391 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2392 (lin_lwp_wait): Likewise. Update comments.
2393 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2394 (pull_pid_from_list, linux_record_stopped_pid): New.
2395
2396 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2397
2398 * ada-lang.c (scan_discrim_bound): Name first argument.
2399 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2400 declared by ALL_BLOCK_SYMBOLS.
2401
2402 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2403
2404 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2405 ("regcache.h"): Include it.
2406 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2407
2408 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2409
2410 * NEWS: Mention gdbserver detach change and "disconnect" command.
2411 * infcmd.c (disconnect_command): New function.
2412 (_initialize_infcmd): Add ``disconnect'' command.
2413 * remote.c (remote_async_detach): Delete.
2414 (remote_detach): Merge remote_async_detach.
2415 (remote_disconnect): New.
2416 (init_remote_ops): Set to_disconnect.
2417 (init_remote_cisco_ops): Likewise.
2418 (init_remote_async_ops): Likewise. Use remote_detach.
2419 * target.c (cleanup_target): Default to_disconnect.
2420 (update_current_target): Inherit to_disconnect.
2421 (target_disconnect, debug_to_disconnect): New functions.
2422 (setup_target_debug): Set to_disconnect.
2423 * target.h (struct target_ops): Add to_disconnect.
2424 (target_disconnect): Add prototype.
2425
2426 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2427
2428 * breakpoint.c (insert_catchpoint): New function.
2429 (insert_breakpoints): Use catch_exceptions to call
2430 insert_catchpoint. Disable catchpoints if they fail to insert.
2431
2432 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2433
2434 * symfile.c (reread_symbols): Clear sym_private.
2435
2436 2003-06-17 Andrew Cagney <cagney@redhat.com>
2437
2438 * trad-frame.h (struct frame_info): Add opaque declaration.
2439 * remote-fileio.h (struct cmd_list_element): Add opaque
2440 declaration.
2441 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2442 comments.
2443
2444 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2445
2446 * remote.c (remote_prepare_to_store): Replace call to
2447 deprecated_read_register_bytes with multiple regcache_raw_read
2448 calls.
2449
2450 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2451
2452 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2453 (nto_find_and_open_solib): Likewise.
2454 (nto_init_solib_absolute_prefix): Likewise.
2455 (_initialize_nto_tdep): Fix indentation.
2456
2457 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2458
2459 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2460
2461 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2462
2463 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2464
2465 2003-06-17 Jim Blandy <jimb@redhat.com>
2466
2467 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2468
2469 2003-06-16 Theodore A. Roth <troth@openavr.org>
2470
2471 * avr-tdep.c (avr_extract_return_value): New function.
2472 (avr_gdbarch_init): Set extract_return_value method.
2473
2474 2003-06-16 Andrew Cagney <cagney@redhat.com>
2475
2476 * frame.h (deprecated_get_next_frame_hack): Declare.
2477 * frame.c (legacy_saved_regs_prev_register): Only require
2478 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2479 there are always saved regs.
2480 (deprecated_generic_get_saved_register): Do not require
2481 DEPRECATED_FRAME_INIT_SAVED_REGS.
2482 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2483 use frame ID unwind instead.
2484 (deprecated_get_next_frame_hack): New function.
2485
2486 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2487
2488 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2489 (h8300_push_dummy_call): ...this function. Some minor optimization.
2490 (h8300_push_return_address): Remove.
2491 (h8300_gdbarch_init): Remove calls to
2492 set_gdbarch_deprecated_dummy_write_sp,
2493 set_gdbarch_deprecated_push_arguments and
2494 set_gdbarch_deprecated_push_return_address.
2495 Add call to set_gdbarch_push_dummy_call.
2496
2497 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2498
2499 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2500 (E_PSEUDO_EXR_REGNUM): Ditto.
2501 (h8300_is_argument_spill): Check for instructions moving argument
2502 registers into safe registers.
2503 (h8300_skip_prologue): Check for stm instruction to push registers
2504 used for register variables onto stack.
2505 (gdb_print_insn_h8300): Remove.
2506 (h8300_examine_prologue): Add a comment.
2507 (h8300_register_name): Take pseudo registers into account.
2508 (h8300s_register_name): Ditto.
2509 (h8300sx_register_name): Ditto.
2510 (h8300_print_register): Ditto.
2511 (h8300_print_registers_info): Define "nice" printing order.
2512 (h8300_saved_pc_after_call): Take pseudo registers into account.
2513 (h8300_register_type): Ditto. Return type used for remote connection
2514 when requesting real CCR or EXR register, return actual type when
2515 requesting pseudo CCR or EXR.
2516 (h8300_pseudo_register_read): New function.
2517 (h8300_pseudo_register_write): Ditto.
2518 (h8300_dbg_reg_to_regnum): Ditto.
2519 (h8300s_dbg_reg_to_regnum): Ditto.
2520 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2521 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2522 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2523 set_gdbarch_print_insn architecture dependent.
2524 Call set_gdbarch_pseudo_register_read and
2525 set_gdbarch_pseudo_register_write.
2526 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2527
2528 2003-06-16 Andrew Cagney <cagney@redhat.com>
2529
2530 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2531 * gdbarch.h, gdbarch.c: Re-generate.
2532 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2533 * s390-tdep.c (s390_gdbarch_init): Update.
2534 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2535 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2536 * mips-tdep.c (mips_gdbarch_init): Update.
2537 * mcore-tdep.c (mcore_gdbarch_init): Update.
2538 * cris-tdep.c (cris_gdbarch_init): Update.
2539 * infcall.c (call_function_by_hand): Update.
2540 * ia64-tdep.c (ia64_push_arguments): Update comment.
2541 * frame.c (legacy_get_prev_frame): Do not assume
2542 SAVE_DUMMY_FRAME_TOS_P.
2543 * dummy-frame.c (find_dummy_frame): Update comment.
2544
2545 2003-06-16 Andrew Cagney <cagney@redhat.com>
2546
2547 * regcache.c (do_cooked_read): Do not use register_valid_p.
2548
2549 2003-06-15 Theodore A. Roth <troth@openavr.org>
2550
2551 * avr-tdep.c (avr_register_type): Remove a blank line.
2552 (avr_scan_prologue): Correct some comments.
2553
2554 2003-06-15 Theodore A. Roth <troth@openavr.org>
2555
2556 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2557 prologue types.
2558 Properly scan prologues generated by gcc with the -mcall-prologues
2559 option.
2560 Add code to scan -mcall-prologues for mega devices.
2561
2562 2003-06-15 Theodore A. Roth <troth@openavr.org>
2563
2564 * avr-tdep.c (avr_register_byte): Delete function.
2565 (avr_register_raw_size): Delete function.
2566 (avr_register_virtual_size): Delete function.
2567 (avr_register_virtual_type): Delete function.
2568 (avr_register_type): New function.
2569 (avr_address_to_pointer): Remove unused code.
2570 (avr_read_fp): Need to read FP as two separate bytes due to change to
2571 avr_register_type() usage.
2572 (avr_gdbarch_init): Don't set deprecated_register_size.
2573 Don't set deprecated_register_bytes.
2574 Don't set deprecated_register_byte.
2575 Don't set deprecated_register_raw_size.
2576 Don't set deprecated_max_register_raw_size.
2577 Don't set deprecated_register_virtual_size.
2578 Don't set deprecated_max_register_virtual_size.
2579 Don't set deprecated_register_virtual_type.
2580 Set register_type method.
2581
2582 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2583
2584 * Makefile.in (linux-nat.o): Add rule.
2585 * linux-nat.c: New file.
2586 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2587 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2588 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2589 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2590 * config/arm/linux.mh (NATDEPFILES): Likewise.
2591 * config/i386/linux.mh (NATDEPFILES): Likewise.
2592 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2593 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2594 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2595 * config/mips/linux.mh (NATDEPFILES): Likewise.
2596 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2597 * config/s390/s390.mh (NATDEPFILES): Likewise.
2598 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2599
2600 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2601
2602 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2603 replace out-of-date comment.
2604
2605 2003-06-15 Andrew Cagney <cagney@redhat.com>
2606
2607 * rdi-share/host.h (Fail): Change to a varargs function.
2608 * remote-rdi.c (Fail): Update.
2609
2610 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2611
2612 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2613 (i386_convert_register_p, i386_register_to_value,
2614 i386_register_from_value): Handle types longer than 8 bytes.
2615
2616 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2617
2618 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2619 Move floating-point code to new function in i387-tdep.c.
2620 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2621 New functions containing code moved here from i386-tdep.c.
2622 * i387-tdep.h: Add opaque declaration for `struct type'.
2623 (i387_register_to_value, i387_value_to_register): New prototypes.
2624 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2625 (x86_64_init_abi): Set convert_register_p, register_to_value and
2626 value_to_register here.
2627
2628 2003-06-14 Andrew Cagney <cagney@redhat.com>
2629
2630 * mips-tdep.c (mips_register_to_value): Make static.
2631 (mips_value_to_register): Make static.
2632 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2633 * ia64-tdep.c (ia64_register_raw_size): Make static.
2634 (ia64_register_virtual_size): Make static.
2635 (ia64_register_byte): Make static.
2636 * i387-tdep.c: Include "i387-tdep.h".
2637 (print_387_control_word): Delete function.
2638 (print_387_status_word): Delete function.
2639 (print_387_status_bits): Delete function.
2640 (print_387_control_bits): Delete function.
2641 * Makefile.in (i387-tdep.o): Update dependencies.
2642 * rdi-share/host.h (Fail): Declare.
2643 * remote-rdi.c (Fail): Update to match declaration.
2644
2645 2003-06-14 Andrew Cagney <cagney@redhat.com>
2646
2647 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2648 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2649 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2650 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2651 * README: Delete reference to remote-array.
2652 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2653 (remote-array.o): Delete target.
2654 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2655 * remote-array.c: Delete file.
2656
2657 2003-06-14 Andrew Cagney <cagney@redhat.com>
2658 Mark Kettenis <kettenis@gnu.org>
2659
2660 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2661 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2662 parameter with "frame".
2663 * gdbarch.h, gdbarch.c: Re-generate.
2664 * frame.h (put_frame_register): Declare.
2665 * frame.c (put_frame_register): New function.
2666 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2667 (legacy_register_to_value): Rewrite, use "frame" to get the
2668 register value.
2669 (legacy_value_to_register): Rewrite, use "frame" to find the
2670 register's location before storing.
2671 * arch-utils.h (legacy_convert_register_p): Update.
2672 (legacy_register_to_value, legacy_value_to_register): Update.
2673 * findvar.c (value_from_register): Rewrite, eliminate use of
2674 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2675 "frame" to REGISTER_TO_VALUE.
2676 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2677 lval_reg_frame_relative + lval_register branch of the switch. Do
2678 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2679 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2680 I386_EDI_REGNUM): New defines.
2681 (i386_next_regnum, i386_convert_register_p,
2682 i386_register_to_value, i386_value_to_register): New functions.
2683 (i386_register_convertible, i386_register_convert_to_virtual,
2684 i386_convert_to_raw): Remove functions.
2685 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2686 value_to_register instead of register_convertible,
2687 register_convert_to_virtual and register_convert_to_raw.
2688 * mips-tdep.c (mips_convert_register_p): New function.
2689 (mips_value_to_register): Replace mips_register_convert_from_type.
2690 (mips_register_to_value): Replace mips_register_convert_to_type.
2691 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2692 register_to_value.
2693 * alpha-tdep.c (alpha_convert_register_p): Update.
2694 (alpha_value_to_register): Update, store the register.
2695 (alpha_register_to_value): Update, fetch the register.
2696
2697 2003-06-14 Theodore A. Roth <troth@openavr.org>
2698
2699 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2700 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2701 Don't set deprecated_call_dummy_words.
2702 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2703 Don't set remote_translate_xfer_address.
2704 (avr_io_reg_read_command): Remove commented out debug printf.
2705 Wrap a long line.
2706
2707 2003-06-14 Theodore A. Roth <troth@openavr.org>
2708
2709 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2710 causes gdb to seg fault.
2711
2712 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
2713
2714 * sparc-nat.c (fetch_inferior_registers): Correct
2715 a reference to "registers".
2716
2717 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2718
2719 * Makefile.in (exc_request_U_h): Define
2720 (exc_request_S_h): Likewise.
2721 (msg_reply_S_h): Likewise.
2722 (msg_U_h): Likewise.
2723 (notify_S_h): Likewise.
2724 (process_reply_S_h): Likewise.
2725 (gnu-nat.o): Depend on gdb_obstack_h
2726 * gnu-nat.c: Include "gdb_obstack.h".
2727
2728 2003-06-13 Andrew Cagney <cagney@redhat.com>
2729
2730 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2731 * gdbarch.h, gdbarch.c: Re-generate.
2732
2733 2003-06-13 Andrew Cagney <cagney@redhat.com>
2734
2735 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2736 when deprecated REGISTER macros can be deleted.
2737 * gdbarch.h, gdbarch.c: Re-generate.
2738
2739 2003-06-13 Jim Blandy <jimb@redhat.com>
2740
2741 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2742 Linux entry point symbols for _dl_debug_state, too.
2743
2744 2003-06-13 Andrew Cagney <cagney@redhat.com>
2745
2746 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2747 available, do not use the FP register, and always save the TOS.
2748 * dummy-frame.c (dummy_frame_this_id): Do not assert
2749 SAVE_DUMMY_FRAME_TOS.
2750 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2751 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2752 (i386_push_dummy_call): Add 8 to the returned SP.
2753 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2754 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2755 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2756 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2757 (x86_64_push_dummy_call): Return "sp + 16".
2758 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2759 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2760 save_dummy_frame_tos.
2761
2762 2003-06-13 Jim Blandy <jimb@redhat.com>
2763
2764 * frv-tdep.c (frv_use_struct_convention): Delete static
2765 declaration for function deleted in my change of 2003-06-12.
2766
2767 2003-06-13 Theodore A. Roth <troth@openavr.org>
2768
2769 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2770 (avr_pointer_to_address): Shift code addrs left 1 bit.
2771 (avr_convert_from_func_ptr_addr): Delete function since operation is
2772 better handled by avr_address_to_pointer and avr_pointer_to_address.
2773 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2774
2775 2003-06-13 Mark Kettenis <kettenis@gnu.org>
2776
2777 From Kelley Cook <kelleycook@wideopenwest.com>:
2778 * configure.host: Accept i[34567]86 variants.
2779 * configure.tgt: Likewise.
2780 * nlm/configure.in: Likewise.
2781 * nlm/configure: Regenerated.
2782
2783 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2784
2785 * arm-tdep.c (solib-svr4.h): Dont' include it.
2786 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2787 * arm-linux-tdep.c: ... here. Make static.
2788 (arm_linux_init_abi): Register it.
2789 (solib-svr4.h): Include it.
2790 * Makefile.in: Update dependencies.
2791 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2792 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2793
2794 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2795
2796 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2797 indicate registers used for return values.
2798 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2799 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2800 members.
2801 (h8300_init_extra_frame_info): Ditto.
2802 (h8300_frame_locals_address): Removed.
2803 (h8300_frame_args_address): Removed.
2804 (h8300_extract_return_value): Use new regcache structure. Only care
2805 for 16 bit CPUs.
2806 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2807 (h8300_store_return_value): Use new regcache structure. Only care
2808 for 16 bit CPUs.
2809 (h8300h_store_return_value): Same function for 32 bit CPUs.
2810 (h8300_store_struct_return): Removed.
2811 (h8300_extract_struct_value_address): Use new regcache structure.
2812 (h8300h_extract_struct_value_address): Removed.
2813 (h8300_push_dummy_code): New function.
2814 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2815 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2816 set_gdbarch_store_return_value architecture dependent.
2817 Call set_gdbarch_push_dummy_code and
2818 set_gdbarch_extract_struct_value_address.
2819 Remove calls to set_gdbarch_frame_args_address,
2820 set_gdbarch_frame_locals_address,
2821 set_gdbarch_deprecated_store_struct_return,
2822 set_gdbarch_deprecated_extract_return_value,
2823 set_gdbarch_deprecated_extract_struct_value_address,
2824 set_gdbarch_deprecated_call_dummy_words and
2825 set_gdbarch_deprecated_sizeof_call_dummy_words.
2826
2827 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2828
2829 * h8300-tdep.c (h8300_register_byte): Remove.
2830 (h8300h_register_byte): Remove.
2831 (h8300_register_virtual_type): Remove. Substitute by...
2832 (h8300_register_type): New function.
2833 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2834 (h8300h_extract_struct_value_address): Ditto.
2835 (h8300_gdbarch_init): Drop calls to
2836 set_gdbarch_deprecated_register_byte and
2837 set_gdbarch_deprecated_register_virtual_type.
2838 Add call to set_gdbarch_register_type.
2839
2840 2003-06-13 Andrew Cagney <cagney@redhat.com>
2841
2842 * gdbarch.sh: Update comments on registers.
2843 (deprecated_register_byte): Rename register_byte.
2844 (deprecated_register_raw_size): Rename register_raw_size.
2845 (deprecated_register_virtual_size): Rename register_virtual_size.
2846 (deprecated_register_virtual_type): Rename register_virtual_type.
2847 * gdbarch.h, gdbarch.c: Re-generate.
2848 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2849 * vax-tdep.c (vax_gdbarch_init): Update.
2850 * v850-tdep.c (v850_gdbarch_init): Update.
2851 * sparc-tdep.c (sparc_gdbarch_init): Update.
2852 * sh-tdep.c (sh_gdbarch_init): Update.
2853 * s390-tdep.c (s390_gdbarch_init): Update.
2854 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2855 * ns32k-tdep.c: Update.
2856 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2857 * mips-tdep.c (mips_gdbarch_init): Update.
2858 * mcore-tdep.c (mcore_gdbarch_init): Update.
2859 * m68k-tdep.c (m68k_gdbarch_init): Update.
2860 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2861 * ia64-tdep.c (ia64_gdbarch_init): Update.
2862 * hppa-tdep.c (hppa_gdbarch_init): Update.
2863 * h8300-tdep.c (h8300_gdbarch_init): Update.
2864 * frv-tdep.c (frv_gdbarch_init): Update.
2865 * cris-tdep.c (cris_gdbarch_init): Update.
2866 * avr-tdep.c (avr_gdbarch_init): Update.
2867 * alpha-tdep.c (alpha_gdbarch_init): Update.
2868 * arm-tdep.c (arm_gdbarch_init): Update.
2869
2870 2003-06-13 Andrew Cagney <cagney@redhat.com>
2871
2872 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2873 mips_o32_use_struct_convention with always_use_struct_convention.
2874
2875 2003-06-12 David Carlton <carlton@kealia.com>
2876
2877 * cp-namespace.c (cp_set_block_scope): Comment out
2878 processing_has_namespace_info branch.
2879
2880 2003-06-12 Jim Blandy <jimb@redhat.com>
2881
2882 Recognize and skip 64-bit PowerPC Linux linkage functions.
2883 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2884 insn_pattern, insns_match_pattern, d_field, ds_field): New
2885 functions, macros, and types for working with PPC instructions.
2886 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2887 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2888 ppc64_skip_trampoline_code): New functions, variables, and macros
2889 for recognizing and skipping linkage functions.
2890 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2891 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2892
2893 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2894 register offsets for both the 32- and 64-bit interfaces.
2895
2896 Actually finish the job started by my change of 2003-05-29.
2897 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2898 other #definition of this.
2899 (ppc_linux_skip_trampoline_code): Remove declaration.
2900 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2901 static.
2902 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2903 method for GDBARCH.
2904
2905 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2906 'long' on ppc64-*-linux*.
2907
2908 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2909 isn't #defined, assume the register doesn't exist: act as if
2910 tdep->ppc_mq_regnum were -1.
2911
2912 * configure.host, configure.tgt: Add entries for
2913 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2914 powerpc/linux.mt.
2915 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2916 New files.
2917
2918 * arch-utils.c (always_use_struct_convention): New function.
2919 * arch-utils.h (always_use_struct_convention): New prototype.
2920 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2921 (alpha_gdbarch_init): Register always_use_struct_convention,
2922 instead of alpha_use_struct_convention.
2923 * cris-tdep.c (cris_use_struct_convention): Delete.
2924 (cris_gdbarch_init): Register always_use_struct_convention,
2925 instead of cris_use_struct_convention.
2926 * frv-tdep.c (frv_use_struct_convention): Delete.
2927 (frv_gdbarch_init): Register always_use_struct_convention,
2928 instead of frv_use_struct_convention.
2929 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2930 (h8300_gdbarch_init): Register always_use_struct_convention,
2931 instead of h8300_use_struct_convention.
2932 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
2933 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2934 instead of mips_o32_use_struct_convention.
2935
2936 2003-06-12 Andrew Cagney <cagney@redhat.com>
2937
2938 * wince.c: Include "mips-tdep.h".
2939 * mips-tdep.h (mips_next_pc): Declare.
2940 * mcore-tdep.c: Make more local functions static.
2941 * Makefile.in (wince.o): Update dependencies.
2942
2943 2003-06-12 David Carlton <carlton@kealia.com>
2944
2945 * symtab.c (lookup_symbol_aux_minsyms): Replace
2946 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2947 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2948 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2949 SYMBOL_NATURAL_NAME.
2950
2951 2003-06-12 Andreas Schwab <schwab@suse.de>
2952
2953 * Makefile.in (tuiDisassem.o): Update dependencies.
2954
2955 2003-06-12 David Carlton <carlton@bactrian.org>
2956
2957 * symtab.h: Delete declaration of make_symbol_overload_list.
2958 Add declaration of lookup_partial_symbol.
2959 * symtab.c (remove_params): Move to cp-support.c.
2960 (overload_list_add_symbol, make_symbol_overload_list)
2961 (sym_return_val_size, sym_return_val_index): Ditto.
2962 (lookup_partial_symbol): Make extern.
2963 * cp-support.h: Add declaration of make_symbol_overload_list.
2964 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2965 symtab.h, and block.h.
2966 (remove_params): Move here from symtab.c.
2967 (overload_list_add_symbol, make_symbol_overload_list)
2968 (sym_return_val_size, sym_return_val_index): Ditto.
2969 * valops.c: Include cp-support.h.
2970 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2971 frame_h, and block_h.
2972 (valops.o): Depend on cp_support_h.
2973
2974 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
2975
2976 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2977 substitute by NUM_REGS throughout.
2978 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2979 (h8300s_register_name): New function for H8S registers.
2980 (h8300sx_register_name): Ditto for H8SX registers.
2981 (h8300_print_register): Revise register printing, avoid depending
2982 on 32 bit long.
2983 (h8300_register_byte): Only care for H8/300 registers.
2984 (h8300h_register_byte): New function for any other architecture.
2985 (h8300_register_raw_size): Remove.
2986 (h8300_register_virtual_type): Revise to return actually useful
2987 type.
2988 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2989 (h8300h_extract_struct_value_address): New function for any other
2990 architecture.
2991 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2992 set_gdbarch_register_name, set_gdbarch_register_byte,
2993 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2994 Remove calls to set_gdbarch_deprecated_register_size,
2995 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2996 set_gdbarch_deprecated_max_register_raw_size,
2997 set_gdbarch_register_virtual_size and
2998 set_gdbarch_deprecated_max_register_virtual_size entirely.
2999 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3000 set_gdbarch_long_double_bit.
3001
3002 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3003
3004 * doublest.c (convert_doublest_to_floatformat): When dealing
3005 with the implied integer bit, only alter mant_bits if we are
3006 processing a full 32 bits of mantissa.
3007
3008 2003-06-11 David Carlton <carlton@bactrian.org>
3009
3010 * dictionary.h: New.
3011 * dictionary.c: New.
3012 * block.h: Add opaque declaration for struct dictionary.
3013 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3014 'sym' members.
3015 (BLOCK_DICT): New macro.
3016 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3017 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3018 BLOCK_SHOULD_SORT.
3019 (ALL_BLOCK_SYMBOLS): Update definition.
3020 * Makefile.in (SFILES): Add dictionary.c.
3021 (dictionary_h): New.
3022 (COMMON_OBS): Add dictionary.o.
3023 (dictionary.o): New.
3024 (ada-lang.o): Depend on dictionary_h.
3025 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3026 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3027 (mi-cmd-stack.o): Ditto.
3028 (gdbtk-cmds.o): Update dependencies.
3029 (gdbtk-stack.o): Ditto.
3030 * ada-lang.c: Include dictionary.h.
3031 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3032 (fill_in_ada_prototype, debug_print_block): Ditto.
3033 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3034 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3035 'is_sorted'.
3036 * mdebugread.c: Include dictionary.h.
3037 (struct parse_stack): Delete 'maxsyms' member.
3038 (parse_symbol): Update calls to new_block. Delete calls to
3039 shrink_block. Use dictionary methods.
3040 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3041 Update calls to new_symtab. Don't maintain maxsyms data.
3042 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3043 (add_symbol): Just call dict_add_symbol.
3044 (new_symtab): Delete 'maxsyms' argument.
3045 (new_symtab): Update calls to new_block.
3046 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3047 (shrink_block): Delete function.
3048 (fixup_sigtramp): Update call to new_block. Add symbol via
3049 dict_add_symbol.
3050 * jv-lang.c: Include dictionary.h.
3051 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3052 appropriately. Set class_symtab->free_func. Make sure the
3053 blockvector is big enough to hold two blocks.
3054 (add_class_symtab_symbol): Use dictionary methods.
3055 (free_class_block): New function.
3056 (type_from_class): Replace explicit iteration by
3057 ALL_BLOCK_SYMBOLS.
3058 * symtab.h (struct symtab): Replace 'free_ptr' method by
3059 'free_func'.
3060 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3061 sort_symtab_syms.
3062 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3063 sort_symtab_syms.
3064 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3065 Include dictionary.h.
3066 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3067 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3068 sort_symtab_syms.
3069 * objfiles.c: Include dictionary.h.
3070 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3071 * buildsym.c: Include dictionary.h.
3072 (finish_block): Use dictionary methods.
3073 (end_symtab): Set free_func to NULL, not free_ptr.
3074 * tracepoint.c: Include dictionary.h.
3075 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3076 (scope_info): Ditto.
3077 * stack.c: Include dictionary.h.
3078 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3079 (print_block_frame_labels, print_frame_arg_vars)
3080 (print_frame_args): Ditto.
3081 * symmisc.c (free_symtab_block): Use dictionary methods.
3082 (dump_symtab): Ditto.
3083 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3084 Include dictionary.h.
3085 * symfile.h: Delete declarations of sort_block_syms,
3086 sort_symtab_syms.
3087 * symfile.c (sort_block_syms): Delete.
3088 (sort_symtab_syms): Delete.
3089 * symtab.c: Include dictionary.h.
3090 (lookup_block_symbol): Use dictionary iterators.
3091 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3092 (search_symbols, make_symbol_completion_list): Ditto.
3093 (make_symbol_overload_list): Ditto.
3094 * valops.c (value_of_local): Use dict_empty.
3095 Include dictionary.h.
3096
3097 2003-06-11 J. Brobecker <brobecker@gnat.com>
3098
3099 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3100
3101 2003-06-11 David Carlton <carlton@bactrian.org>
3102
3103 * block.h (BLOCK_SHOULD_SORT): Delete.
3104 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3105 blocks.
3106 * ada-lang.c (ada_add_block_symbols): Ditto.
3107 * symfile.c (sort_block_syms): Delete.
3108 (sort_symtab_syms): Ditto.
3109 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3110 declarations.
3111 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3112 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3113 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3114 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3115 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3116 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3117 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3118
3119 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3120
3121 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3122 bits to 128.
3123
3124 2003-06-11 Andrew Cagney <cagney@redhat.com>
3125
3126 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3127 REGISTER_CONVERTIBLE.
3128 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3129 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3130 * gdbarch.h, gdbarch.c: Re-generate.
3131 * arch-utils.h (deprecated_register_convertible_not): Rename
3132 generic_register_convertible_not.
3133 * arch-utils.c (deprecated_register_convertible_not): Rename
3134 generic_register_convertible.
3135 (legacy_convert_register_p, legacy_register_to_value): Update.
3136 * sh-tdep.c (sh64_push_arguments): Update.
3137 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3138 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3139 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3140 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3141 * arch-utils.c (legacy_value_to_register): Update.
3142 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3143 (rs6000_register_convert_to_raw): Make parameter "from" const.
3144 * mips-tdep.c (mips_gdbarch_init): Update.
3145 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3146 * infcmd.c (default_print_registers_info): Update.
3147 * ia64-tdep.c (ia64_gdbarch_init): Update.
3148 (ia64_register_convert_to_raw): Make parameter "from" const.
3149 * i386-tdep.c (i386_gdbarch_init): Update.
3150 (i386_register_convert_to_raw): Update.
3151
3152 2003-06-11 Andrew Cagney <cagney@redhat.com>
3153
3154 * remote-fileio.c: Include "remote-fileio.h".
3155 * Makefile.in (remote-fileio.o): Update dependencies.
3156 (remote_fileio_h): Fix typo.
3157
3158 2003-06-11 Andrew Cagney <cagney@redhat.com>
3159
3160 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3161 (xstormy16_save_dummy_frame_tos): Make static.
3162 (_initialize_xstormy16_tdep): Add declaration.
3163 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3164 * v850-tdep.c: Make local functions static.
3165 (_initialize_v850_tdep): Add declaration.
3166 * sparc-tdep.c: Make local functions static.
3167 (_initialize_sparc_tdep): Add declaration.
3168 * sh-tdep.c: Make local functions static.
3169 (_initialize_sh_tdep): Add declaration.
3170 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3171 * s390-tdep.c: Make local functions static.
3172 (_initialize_s390_tdep): Add declaration.
3173 * dbxread.c (find_stab_function_addr): Make static.
3174 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3175 * ocd.c (_initialize_remote_ocd): Add declaration.
3176 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3177 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3178 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3179 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3180 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3181 * remote-array.c (_initialize_array): Add declaration.
3182 (_initialize_remote_monitors): Add declaration.
3183 * remote-mips.c: Make local functions static.
3184 (_initialize_remote_mips): Add declaration.
3185 * mcore-tdep.c: Make all local functions static.
3186 (_initialize_mcore_tdep): Add declaration.
3187 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3188 * abug-rom.c (_initialize_abug_rom): Add declaration.
3189 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3190 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3191 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3192 * remote-est.c (_initialize_est): Add declaration.
3193 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3194 (m68hc11_call_dummy_address): Make static.
3195 * ia64-tdep.c: Make local functions static.
3196 (_initialize_ia64_tdep): Add declaration.
3197 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3198 * monitor.c (monitor_wait_filter): Make static.
3199 (_initialize_remote_monitors): Add declaration.
3200 * remote-hms.c (_initialize_remote_hms): Add declaration.
3201 * remote-e7000.c (fetch_regs_from_dump): Make static.
3202 (expect_n): Make static.
3203 (_initialize_remote_e7000): Add declaration.
3204 * ser-e7kpc.c: Always include "defs.h".
3205 (_initialize_ser_e7000pc): Add declaration.
3206 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3207 * cris-tdep.c: Make all but one function static.
3208 (_initialize_cris_tdep): Add declaration.
3209 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3210 * solib.c (update_solib_list): Make static.
3211 (_initialize_solib): Add declaration.
3212 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3213 (_initialize_avr_tdep): Add declaration.
3214 * remote-rdi.c (voiddummy): Make static.
3215 (_initialize_remote_rdi): Add declaration.
3216 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3217 * remote-rdp.c (send_rdp): Make static.
3218 (_initialize_remote_rdp): Add declaration.
3219 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3220
3221 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
3222
3223 * remote-fileio.c: Make ari happy.
3224
3225 2003-06-10 J. Brobecker <brobecker@gnat.com>
3226
3227 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3228 fetching the trailing bytes of the buffer we are about to write.
3229
3230 2003-06-10 Andrew Cagney <cagney@redhat.com>
3231
3232 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3233 * Makefile.in (remote-fileio.o): Update dependencies.
3234 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3235 include <setjmp.h>, or <sys/types.h> conditional on USG.
3236 (remote_fio_jmp_buf): Delete global variable.
3237
3238 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
3239 Martin M. Hunt <hunt@redhat.com>
3240
3241 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3242 (SFILES): Add remote-fileio.c.
3243 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3244 dependencies for building remote.o.
3245 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3246 * remote-fileio.h: New header file defining remote File-I/O interface.
3247 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3248 static storage class.
3249 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3250 'F' packet.
3251 (_initialize_remote): Call initialize_remote_fileio().
3252 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3253 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3254 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3255 (captured_main): Initialize new ui_files.
3256 * ui-file.c: Add read and fgets input functions.
3257 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3258 (null_file_read): New function.
3259 (ui_file_read): New function.
3260 (set_ui_file_read): New function.
3261 (stdio_file_read): New function.
3262 * ui-file.h: New type ui_file_read_ftype.
3263 (set_ui_file_read): Declare.
3264 (ui_file_read): Declare.
3265
3266 2003-06-09 Andrew Cagney <cagney@redhat.com>
3267
3268 * frame.h (deprecated_unwind_get_saved_register): Rename
3269 generic_unwind_get_saved_register, update comments.
3270 * mips-tdep.c (mips_get_saved_register): Update.
3271 * frame.c (deprecated_unwind_get_saved_register): Update.
3272
3273 2003-06-09 Andrew Cagney <cagney@redhat.com>
3274
3275 * vax-tdep.c (vax_frame_locals_address): Delete function.
3276 (vax_gdbarch_init): Do not set frame_locals_address.
3277 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3278 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3279 * s390-tdep.c (s390_frame_args_address): Delete function.
3280 (s390_gdbarch_init): Do not set frame_args_address or
3281 frame_locals_address.
3282 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3283 (ns32k_gdbarch_init): Do not set frame_locals_address.
3284 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3285 (hppa_frame_locals_address): Delete function.
3286 (hppa_gdbarch_init): Do not set frame_args_address, or
3287 frame_locals_address.
3288 * arm-tdep.c (arm_frame_args_address): Delete.
3289 (arm_frame_locals_address): Delete.
3290 (arm_gdbarch_init): Do not set frame_args_address, or
3291 frame_locals_address.
3292
3293 2003-06-09 Andrew Cagney <cagney@redhat.com>
3294
3295 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3296 * gdbarch.h, gdbarch.c: Re-generate.
3297 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3298 * arch-utils.c (frame_num_args_unknown): Delete function.
3299 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3300 (frame_info): Use FRAME_NUM_ARGS_P.
3301 * arm-tdep.c (arm_frame_num_args): Delete function.
3302 (arm_gdbarch_init): Do not set frame_num_args.
3303 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3304 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3305 (hppa_gdbarch_init): Do not set frame_num_args.
3306 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3307 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3308 frame_num_args to default frame_num_args_unknown.
3309 * v850-tdep.c (v850_gdbarch_init): Ditto.
3310 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3311 * sh-tdep.c (sh_gdbarch_init): Ditto.
3312 * s390-tdep.c (s390_gdbarch_init): Ditto.
3313 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3314 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3315 * mips-tdep.c (mips_gdbarch_init): Ditto.
3316 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3317 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3318 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3319 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3320 * i386-tdep.c (i386_gdbarch_init): Ditto.
3321 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3322 * frv-tdep.c (frv_gdbarch_init): Ditto.
3323 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3324 * cris-tdep.c (cris_gdbarch_init): Ditto.
3325 * avr-tdep.c (avr_gdbarch_init): Ditto.
3326 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3327
3328 2003-06-09 Andrew Cagney <cagney@redhat.com>
3329
3330 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3331 (print_frame_args): Moved to "stack.c".
3332 * stack.c: Include "gdb_assert.h".
3333 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3334 (print_frame_args): Moved from "printcmd.c".
3335 * frame.h (print_frame_args): Delete declaration.
3336 * Makefile.in (stack.o): Update dependencies.
3337
3338 2003-06-08 Andrew Cagney <cagney@redhat.com>
3339
3340 * frame.c (get_prev_frame): Remove reference to
3341 frame_args_address_correct in comments.
3342 * frame-base.c (default_frame_args_address): Delete code
3343 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3344 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3345 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3346 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3347 (vax_frame_args_address_correct): Delete declaration.
3348
3349 2003-06-08 Andrew Cagney <cagney@redhat.com>
3350
3351 * gdbarch.sh (UNWIND_SP): Add.
3352 * gdbarch.h, gdbarch.c: Re-generate.
3353 * frame.c (frame_sp_unwind): New function.
3354 (get_frame_sp): New function.
3355 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3356 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3357 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3358 value.
3359 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3360 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3361
3362 2003-06-08 Andrew Cagney <cagney@redhat.com>
3363
3364 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3365 REMOTE_BREAKPOINT.
3366 * remote.c: Update.
3367 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3368 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3369 * config/m68k/tm-sun3.h: Update.
3370 * config/m68k/tm-m68klynx.h: Update.
3371 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3372
3373 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3374 trad_frame". Update comments.
3375 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3376 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3377 (trad_frame_register_value, trad_frame_prev_register): Update.
3378
3379 2003-06-08 Andrew Cagney <cagney@redhat.com>
3380
3381 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3382 from GCC's acinclude.m4.
3383 * configure.in: Check for getopt's delcaration.
3384 * aclocal.m4, config.in, configure: Re-generate.
3385 * main.c (error_init): Delete declaration.
3386 * defs.h (error_init): Declare.
3387 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3388 (rs6000_convert_from_func_ptr_addr): Make static.
3389 (_initialize_rs6000_tdep): Add declaration.
3390 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3391 (show_commands, set_verbose, show_history): Delete declaration.
3392 * top.h (set_verbose): Add declaration.
3393 (show_history, set_history, show_commands): Add declaration.
3394 (do_restore_instream_cleanup): Add declaration.
3395 * objc-lang.c (specialcmp): Make static.
3396 (print_object_command): Make static.
3397 (find_objc_msgsend): Make static.
3398 (find_objc_msgcall_submethod_helper): Make static.
3399 (find_objc_msgcall_submethod): Make static.
3400 (_initialize_objc_language): Add declaration.
3401 (find_implementation_from_class): Make static.
3402 (find_implementation): Make static.
3403 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3404 * objc-lang.h (lookup_struct_typedef): Add declaration.
3405 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3406 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3407 (do_restore_user_call_depth): Make static.
3408 (do_restore_instream_cleanup): Delete declaration.
3409 (dont_repeat): Delete declaration.
3410 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3411 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3412 * reggroups.c (_initialize_reggroup): Add declaration.
3413 * cp-support.c (_initialize_cp_support): Add declaration.
3414 * cp-abi.c (_initialize_cp_abi): Add declaration.
3415 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3416 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3417 (_initialize_gnu_v3_abi): Add declaration.
3418 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3419 (_initialize_gnu_v2_abi): Add declaration.
3420 * frame-base.c (_initialize_frame_base): Add declaration.
3421 * doublest.c (floatformat_from_length): Make static.
3422 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3423 * frame.c (create_sentinel_frame): Make static.
3424 (_initialize_frame): Add declaration.
3425 * top.c (do_catch_errors): Make static.
3426 (gdb_rl_operate_and_get_next_completion): Make static.
3427 * typeprint.c: Include "typeprint.h".
3428 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3429 (sentinel_frame_this_id): Make static.
3430 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3431 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3432 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3433 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3434 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3435 * maint.c (maintenance_print_architecture): Make static.
3436 * signals/signals.c (_initialize_signals): Add declaration.
3437 * std-regs.c (_initialize_frame_reg): Add declaration.
3438 * jv-exp.y (push_variable): ISO C definition.
3439 (push_qualified_expression_name): Ditto.
3440 * memattr.c (_initialize_mem): Add declaration.
3441 * remote.c (remote_check_watch_resources): Make static.
3442 (remote_stopped_by_watchpoint): Make static.
3443 (remote_stopped_data_address): Make static.
3444 * d10v-tdep.c (nr_dmap_regs): Make static.
3445 (a0_regnum): Make static.
3446 (d10v_frame_unwind_cache): Make static.
3447 (d10v_frame_p): Make static.
3448 * osabi.c (show_osabi): Make static.
3449 (_initialize_gdb_osabi): Add extern declaration.
3450 * gdbtypes.c (make_qualified_type): Make static.
3451 (safe_parse_type): Make static.
3452 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3453 * macrotab.c (macro_bcache_free): Make static.
3454 * interps.c (interp_set_quiet): Make static.
3455 (interpreter_exec_cmd): Make static.
3456 * stack.h (select_frame_command): New file.
3457 * stack.c: Include "stack.h".
3458 (select_frame_command_wrapper): Delete function.
3459 (select_frame_command): Make global.
3460 * infcall.c: Include "infcall.h".
3461 * linespec.c: Include "linespec.h".
3462 * symfile.c (sections_overlap): Make static.
3463 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3464 * charset.c (_initialize_charset): Add missing prototype.
3465 * regcache.c (init_legacy_regcache_descr): Make static.
3466 (do_regcache_xfree): Make static.
3467 (regcache_xfer_part): Make static.
3468 (_initialize_regcache): Add missing prototype.
3469 * breakpoint.c (parse_breakpoint_sals): Make static.
3470 (breakpoint_sals_to_pc): Make static.
3471 * interps.h (clear_interpreter_hooks): ISO C declaration.
3472 * Makefile.in (stack_h): Define.
3473 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3474 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3475
3476 2003-06-08 Andrew Cagney <cagney@redhat.com>
3477
3478 * Makefile.in (d10v-tdep.o): Update dependencies.
3479 (SFILES): Add trad-frame.c.
3480 (trad_frame_h): Define.
3481 (COMMON_OBS): Add trad-frame.o.
3482 (trad-frame.o): Specify dependencies.
3483 * d10v-tdep.c: Include "trad-frame.h".
3484 (saved_regs_unwinder): Delete function.
3485 (d10v_frame_prev_register): Use trad_frame_prev_register.
3486 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3487 trad_frame", delete "regs" and "prev_sp".
3488 (prologue_find_regs): Use trad-frame.
3489 * trad-frame.h, trad-frame.c: New files.
3490
3491 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3492
3493 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3494
3495 2003-06-07 Adam Fedor <fedor@gnu.org>
3496
3497 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3498 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3499 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3500 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3501 resolve_msgsend_super, resolve_msgsend_super_stret):
3502 Use it.
3503
3504 2003-06-07 Andrew Cagney <cagney@redhat.com>
3505
3506 * symfile.h: Re-indent, clean up comments.
3507
3508 2003-06-07 Andrew Cagney <cagney@redhat.com>
3509
3510 * inferior.h (deprecated_write_sp): Replace
3511 generic_target_write_sp.
3512 * regcache.c (deprecated_write_sp): Replace
3513 generic_target_write_sp.
3514 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3515 * vax-tdep.c (vax_gdbarch_init): Update.
3516 * v850-tdep.c (v850_gdbarch_init): Update.
3517 * sparc-tdep.c (sparc_gdbarch_init): Update.
3518 * sh-tdep.c (sh_gdbarch_init): Update.
3519 * s390-tdep.c (s390_gdbarch_init): Update.
3520 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3521 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3522 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3523 * mcore-tdep.c (mcore_gdbarch_init): Update.
3524 * m68k-tdep.c (m68k_gdbarch_init): Update.
3525 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3526 * ia64-tdep.c (ia64_gdbarch_init): Update.
3527 * h8300-tdep.c (h8300_gdbarch_init): Update.
3528 * frv-tdep.c (frv_gdbarch_init): Update.
3529 * cris-tdep.c (cris_gdbarch_init): Update.
3530 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3531
3532 2003-06-07 Andrew Cagney <cagney@redhat.com>
3533
3534 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3535 Assert that PC_REGNUM is valid.
3536 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3537
3538 2003-06-07 Andrew Cagney <cagney@redhat.com>
3539
3540 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3541 * gdbarch.h, gdbarch.c: Regenerate.
3542 * mn10300-tdep.c: Include "gdb_assert.h".
3543 (mn10300_read_fp): New function.
3544 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3545 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3546 * ia64-tdep.c: Include "gdb_assert.h".
3547 (ia64_read_fp): New function.
3548 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3549 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3550 * regcache.c (generic_target_read_sp): Delete function.
3551 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3552 * inferior.h (generic_target_read_sp): Delete declaration.
3553 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3554 generic_target_read_sp.
3555 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3556 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3557 * sh-tdep.c (sh_gdbarch_init): Ditto.
3558 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3559 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3560
3561 2003-06-07 Andrew Cagney <cagney@redhat.com>
3562
3563 * gdbarch.sh: Comment each field of startup_gdbarch.
3564 * gdbarch.h, gdbarch.c: Re-generate.
3565
3566 2003-06-07 Andrew Cagney <cagney@redhat.com>
3567
3568 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3569 * gdbarch.h, gdbarch.c: Re-generate.
3570 * regcache.c: Update comments on read_pc et.al.
3571 (generic_target_read_pc): Delete function.
3572 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3573 * inferior.h (generic_target_read_pc): Delete declaration.
3574 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3575 generic_target_read_pc.
3576 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3577 * sh-tdep.c (sh_gdbarch_init): Ditto.
3578 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3579 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3580
3581 2003-06-07 Andrew Cagney <cagney@redhat.com>
3582
3583 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3584 "index" with "special_local_sect". Use strcmp instead of STREQ.
3585 Append period to coments.
3586
3587 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3588
3589 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3590 (elfstab_offset_sections): Likewise.
3591 * gdb-stabs.h (stab_section_info): Likewise.
3592 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3593 * objfiles.c (objfile_relocate): Likewise.
3594 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3595 * remote.c (get_offsets): Likewise.
3596 (remote_cisco_objfile_relocate): Likewise.
3597 * somread.c (som_symfile_offsets): Likewise.
3598 * symfile.c (alloc_section_addr_info): New function.
3599 (build_section_addr_info_from_section_tab): Use it.
3600 (free_section_addr_info): Adjust.
3601 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3602 (syms_from_objfile): Allocate local_addr dynamically.
3603 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3604 dynamically.
3605 (add_symbol_file_command): Allocate sect_opts dynamically.
3606 (reread_symbols): Avoid use of SECT_OFF_MAX.
3607 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3608 (alloc_section_addr_info): Declare it.
3609 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3610 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3611 dynamically.
3612 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3613
3614 2003-06-06 Andrew Cagney <cagney@redhat.com>
3615
3616 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3617 (d10v_frame_unwind_cache): Do not set "return_pc".
3618
3619 2003-06-06 Michael Snyder <msnyder@redhat.com>
3620
3621 * h8300-tdep.c: Make tidy (long lines).
3622
3623 2003-06-06 Michal Ludvig <mludvig@suse.cz>
3624
3625 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3626 to regcache_collect().
3627
3628 2003-06-05 J. Brobecker <brobecker@gnat.com>
3629
3630 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3631 pc_in_sigtramp multiarch method.
3632 (hppa_hpux_som_init_abi): Use it.
3633 (hppa_hpux_elf_init_abi): Likewise.
3634 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3635 macro has been multiarched.
3636 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3637 macro here, as hppa64 isn't multiarched yet.
3638
3639 2003-06-05 Andrew Cagney <cagney@redhat.com>
3640
3641 * Makefile.in (value_h): Add $(frame_h).
3642 * value.h: Include "frame.h".
3643 (struct value): Replace "frame_addr" with "frame_id".
3644 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3645 * values.c (allocate_value): Use VALUE_FRAME_ID.
3646 (value_copy): Use VALUE_FRAME_ID.
3647 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3648 * valops.c (value_assign): Update. Use frame_find_by_id.
3649
3650 2003-06-05 Michal Ludvig <mludvig@suse.cz>
3651
3652 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3653 in each pass.
3654
3655 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3656
3657 * thread-db.c (check_event): For create/death event breakpoints,
3658 loop through all messages to ensure that we read the message
3659 corresponding to the breakpoint we are at.
3660
3661 2003-06-04 Michael Snyder <msnyder@redhat.com>
3662
3663 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3664
3665 2003-06-04 Mark Kettenis <kettenis@gnu.org>
3666
3667 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3668 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3669 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3670 when handling .eh_frame sections.
3671
3672 2003-06-04 J. Brobecker <brobecker@gnat.com>
3673
3674 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3675 prepare_to_proceed procedure instead of the hppa-specific one.
3676 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3677
3678 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
3679
3680 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3681 * config.in: Regenerated.
3682 * configure.in: Add test for syscall function and check for
3683 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3684 * configure: Regenerated.
3685 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3686 <sys/syscall.h>.
3687 (kill_lwp): New function that uses tkill syscall or
3688 uses kill, depending on whether threading model is nptl or not.
3689 All callers of kill() changed to use kill_lwp().
3690 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3691 see if all threads have already exited in the nptl model.
3692 (stop_and_resume_callback): New callback function used by the
3693 lin_lwp_wait thread exit handling code.
3694 (stop_wait_callback): Check for threads already having exited and
3695 delete such threads fromt the lwp list when discovered.
3696 (stop_callback): Don't assert retcode of kill call.
3697
3698 Roland McGrath <roland@redhat.com>
3699 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3700 nptl libthread_db.
3701
3702 2003-06-03 Richard Henderson <rth@redhat.com>
3703
3704 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3705 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3706 (alpha_sigtramp_frame_prev_register): Likewise.
3707 (alpha_heuristic_frame_prev_register): Likewise.
3708 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3709
3710 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3711 alpha-specific register id names.
3712 (alpha_mdebug_frame_unwind_cache): Likewise.
3713 (alpha_mdebug_frame_prev_register): Likewise.
3714
3715 2003-06-03 Richard Henderson <rth@redhat.com>
3716
3717 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3718 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3719 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3720 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3721 unwind routines.
3722 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3723 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3724 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3725
3726 * alpha-linux-tdep.c: Remove unnecessary includes.
3727 * Makefile.in (alpha-linux-tdep.o): Update.
3728
3729 2003-06-03 Richard Henderson <rth@redhat.com>
3730
3731 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3732 (alphabsd_fill_fpreg): Likewise.
3733
3734 2003-06-03 J. Brobecker <brobecker@gnat.com>
3735
3736 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3737 references to struct frame_info fields by calls to the equivalent
3738 accessors. Necessary now that frame_info is opaque.
3739
3740 2003-06-03 J. Brobecker <brobecker@gnat.com>
3741
3742 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3743 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3744 structure, field no longer exists.
3745
3746 2003-06-03 J. Brobecker <brobecker@gnat.com>
3747
3748 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3749 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3750
3751 2003-06-03 J. Brobecker <brobecker@gnat.com>
3752
3753 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3754 references to struct frame_info fields by calls to the equivalent
3755 accessors. Necessary now that frame_info is opaque.
3756
3757 2003-06-03 J. Brobecker <brobecker@gnat.com>
3758
3759 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3760 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3761 structure, field no longer exists.
3762
3763 2003-06-03 Theodore A. Roth <troth@openavr.org>
3764
3765 * remote.c (init_remote_state): Compute sizeof_g_packet by
3766 accumulation of the size of all registers instead of blindly using
3767 DEPRECATED_REGISTER_BYTES.
3768
3769 2003-06-03 Michael Snyder <msnyder@redhat.com>
3770
3771 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3772 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3773 for h8300sx.
3774
3775 2003-06-03 J. Brobecker <brobecker@gnat.com>
3776
3777 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3778 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3779
3780 2003-06-03 Andrew Cagney <cagney@redhat.com>
3781
3782 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3783 (sparc_convert_to_raw): Delete function.
3784 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3785 register_convert_to_virtual.
3786
3787 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3788
3789 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3790 layer if not dealing with a statically-linked threaded program.
3791
3792 2003-06-03 Kris Warkentin <kewarken@qnx.com>
3793
3794 * solib.c (solib_open): Update comment to reflect actual search order.
3795
3796 2003-06-03 Andrew Cagney <cagney@redhat.com>
3797
3798 * frame.c (get_frame_memory_signed): New function.
3799 (get_frame_memory, get_frame_memory_unsigned): New function.
3800 (get_frame_arch): New function.
3801 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3802 (get_frame_memory, get_frame_unsigned_memory): Declare.
3803 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3804 get_frame_memory_unsigned and get_frame_arch.
3805 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3806
3807 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3808
3809 * MAINTAINERS (write after approval): Add myself.
3810
3811 2003-06-03 Jim Blandy <jimb@redhat.com>
3812
3813 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3814 elements of gregset_t are 64 bits each, but access registers
3815 are still 32 bits, so they're packed two per gregset_t
3816 element. Unpack/pack them properly.
3817
3818 2003-06-02 David Carlton <carlton@bactrian.org>
3819
3820 * linespec.c (find_methods): Break out code into
3821 add_matching_methods and add_constructors.
3822 (add_matching_methods): New.
3823 (add_constructors): Ditto.
3824
3825 2003-06-02 Andrew Cagney <cagney@redhat.com>
3826
3827 * sparc-tdep.c (sparc_print_registers): Delete call to
3828 REGISTER_CONVERTIBLE.
3829 (sparc_gdbarch_init): Do not set register_convertible.
3830 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3831 * frv-tdep.c (frv_gdbarch_init): Ditto.
3832 * cris-tdep.c (cris_gdbarch_init): Ditto.
3833
3834 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
3835
3836 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3837 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3838 (syms_from_objfile): Ditto.
3839
3840 2003-06-03 Andreas Schwab <schwab@suse.de>
3841
3842 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3843 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3844
3845 2003-06-02 Richard Henderson <rth@redhat.com>
3846
3847 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3848 a member of all_reggroup.
3849
3850 2003-06-02 Richard Henderson <rth@redhat.com>
3851
3852 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3853 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3854 (alpha_lds, alpha_sts): New.
3855 (alpha_convert_register_p): Change from _register_convertible.
3856 (alpha_register_to_value): Change from _convert_to_virtual;
3857 restructure and fail for type sizes other than 4 or 8.
3858 (alpha_value_to_register): Similarly.
3859 (alpha_extract_return_value): Use alpha_sts.
3860 (alpha_store_return_value): Use alpha_lds.
3861 (alpha_gdbarch_init): Update hooks.
3862
3863 2003-06-02 Richard Henderson <rth@redhat.com>
3864
3865 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3866 regnum identifiers.
3867 (alpha_sigtramp_register_address): Likewise.
3868
3869 2003-06-02 Richard Henderson <rth@redhat.com>
3870
3871 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3872 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3873 * alpha-tdep.h: Declare them.
3874
3875 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3876 Remove zerobuf. Don't error on UNIQUE.
3877 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3878 (ALPHA_REGSET_UNIQUE): Provide default.
3879 (supply_gregset): Use alpha_supply_int_regs.
3880 (fill_gregset): Use alpha_fill_int_regs.
3881 (supply_fpregset): Use alpha_supply_fp_regs.
3882 (fill_fpregset): Use alpha_fill_fp_regs.
3883 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3884 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3885 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3886 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3887 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3888 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3889
3890 2003-06-02 Richard Henderson <rth@redhat.com>
3891
3892 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3893
3894 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3895 (alpha_store_return_value): Likewise.
3896
3897 2003-06-02 David Carlton <carlton@math.stanford.edu>
3898
3899 * block.c (contained_in): Add 'const' to arguments.
3900 (block_function): Ditto.
3901 * block.h: Update declarations for block_function and
3902 contained_in.
3903
3904 2003-06-02 David Carlton <carlton@math.stanford.edu>
3905
3906 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3907 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3908 * p-valprint.c (pascal_val_print): Ditto.
3909 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3910
3911 2003-06-02 Richard Henderson <rth@redhat.com>
3912
3913 * alpha-tdep.c (alpha_push_dummy_call): Use
3914 builtin_type_ieee_double_little instead of builtin_type_double.
3915
3916 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
3917 sign-extension of 32-bit values.
3918 (alpha_store_return_value): Similarly.
3919
3920 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3921 (alpha_extract_return_value): Likewise.
3922 (alpha_store_return_value): Likewise.
3923
3924 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3925 (alpha_store_return_value): Error on IEEE Quad floats.
3926
3927 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3928 (alpha_extract_struct_value_address): Likewise.
3929 (alpha_store_return_value): Likewise.
3930 (alpha_store_struct_return): Remove.
3931 (alpha_gdbarch_init): Update hook registration to match.
3932
3933 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3934 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3935 macros where appropriate.
3936 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3937 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
3938
3939 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3940 for SP, GP; void_func_ptr for PC; non-language-specific types
3941 for all others.
3942 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
3943
3944 2003-06-02 Richard Henderson <rth@redhat.com>
3945
3946 * top.h (lim_at_start): Declare.
3947 * main.c (captured_main): Set it.
3948 * top.c (lim_at_start): Define.
3949 (command_loop): Use it instead of &environ.
3950 * event-top.c (command_handler): Likewise.
3951
3952 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3953
3954 * mipsnbsd-tdep.c: Update copyright years.
3955 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3956
3957 2003-06-01 Richard Henderson <rth@redhat.com>
3958
3959 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3960 (alpha-linux-tdep.o): Update dependencies.
3961 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3962 * alpha-mdebug-tdep.c: Remove unneeded includes.
3963
3964 2003-06-01 Richard Henderson <rth@redhat.com>
3965
3966 * alpha-tdep.c (alpha_register_reggroup_p): New.
3967 (alpha_gdbarch_init): Register it.
3968
3969 2003-06-02 Andrew Cagney <cagney@redhat.com>
3970
3971 * dwarfread.c: Eliminate "register"
3972 (decode_die_type): Eliminate assignment within "if".
3973 (struct_type, decode_array_element_type): Ditto.
3974 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3975 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3976 (decode_modified_type, completedieinfo): Ditto.
3977 * block.c: Eliminate "register".
3978 (blockvector_for_pc_sect): Eliminate assignment within "if".
3979 * cp-support.h (struct symbol): Opaque declaration.
3980 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3981
3982 2003-06-01 Richard Henderson <rth@redhat.com>
3983
3984 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3985 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
3986
3987 2003-06-01 Adam Fedor <fedor@gnu.org>
3988
3989 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3990 * gdbarch.[ch]: Regenerate.
3991 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3992 (hppa_gdbarch_init): Set it in the gdbarch vector.
3993 * i386-tdep.c (i386_fetch_pointer_argument): New
3994 (i386_gdbarch_init): Set it into gdbarch.
3995 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3996 (rs6000_gdbarch_init): Set it in gdbarch.
3997 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3998 (sparc_gdbarch_init): Set it in gdbarch.
3999
4000 2003-06-01 Andrew Cagney <cagney@redhat.com>
4001
4002 * defs.h (extract_address): Delete declaration.
4003 * findvar.c (extract_address): Delete function.
4004 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4005 extract_address with the inline equivalent,
4006 extract_unsigned_integer.
4007 (xstormy16_extract_struct_value_address): Ditto.
4008 (xstormy16_pointer_to_address): Ditto.
4009 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4010 * v850-tdep.c (v850_push_arguments): Ditto.
4011 (v850_extract_return_value): Ditto.
4012 (v850_extract_struct_value_address): Ditto.
4013 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4014 (sparcnbsd_get_longjmp_target_64): Ditto.
4015 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4016 (get_longjmp_target): Ditto.
4017 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4018 (sh64_extract_struct_value_address): Ditto.
4019 (sh_push_arguments): Ditto.
4020 (sh64_push_arguments): Ditto.
4021 * remote-vxsparc.c (vx_read_register): Ditto.
4022 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4023 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4024 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4025 * mipsv4-nat.c (get_longjmp_target): Ditto.
4026 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4027 * mips-nat.c (get_longjmp_target): Ditto.
4028 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4029 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4030 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4031 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4032 * irix5-nat.c (get_longjmp_target): Ditto.
4033 * irix4-nat.c (get_longjmp_target): Ditto.
4034 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4035 (ia64_push_arguments): Ditto.
4036 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4037 * h8300-tdep.c (h8300_push_arguments): Ditto.
4038 (h8300_store_return_value): Ditto.
4039 (h8300_extract_struct_value_address): Ditto.
4040 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4041 (frv_push_arguments): Ditto.
4042 * avr-tdep.c (avr_pointer_to_address): Ditto.
4043 (avr_push_arguments): Ditto.
4044 * arm-tdep.c (arm_push_dummy_call): Ditto.
4045 (arm_get_longjmp_target): Ditto.
4046 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4047 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4048 (alpha_get_longjmp_target): Ditto.
4049
4050 * solib-irix.c (extract_mips_address): Inline extract_address,
4051 replacing it with extract_signed_integer.
4052 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4053 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4054 (first_link_map_member, open_symbol_file_object): Ditto.
4055 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4056 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4057 (LM_NEXT, LM_NAME): Ditto.
4058
4059 2003-06-01 Richard Henderson <rth@redhat.com>
4060
4061 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4062 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4063 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4064 (alpha_cannot_store_register): Likewise.
4065 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4066 * alpha-nat.c (supply_gregset): Likewise.
4067 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4068
4069 2003-06-01 Andrew Cagney <cagney@redhat.com>
4070
4071 * infcall.c (call_function_by_hand): Update comment on
4072 DEPRECATED_DUMMY_WRITE_SP.
4073
4074 * mips-tdep.c (mips_gdbarch_init): Do not set
4075 deprecated_dummy_write_sp.
4076 (mips_eabi_push_dummy_call): Set the SP register.
4077 (mips_o64_push_dummy_call): Set the SP register.
4078 (mips_o32_push_dummy_call): Set the SP register.
4079 (mips_n32n64_push_dummy_call): Set the SP register.
4080
4081 2003-06-01 Richard Henderson <rth@redhat.com>
4082
4083 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4084 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4085 (supply_gregset): Likewise.
4086 * alpha-tdep.c (alpha_store_return_value): Likewise.
4087 (alpha_get_longjmp_target): Likewise.
4088 (alpha_register_name): Constify array.
4089 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4090 deprecated_register_size, deprecated_register_bytes,
4091 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4092 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4093 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4094
4095 2003-06-01 Richard Henderson <rth@redhat.com>
4096
4097 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4098 from arg_reg_buffer to regcache to avoid double conversion.
4099
4100 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4101
4102 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4103 SP_REGNUM.
4104 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4105 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4106
4107 2003-06-01 Richard Henderson <rth@redhat.com>
4108
4109 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4110 (decode_frame_entry): Set it. Skip FDE augmentation.
4111
4112 2003-06-01 Richard Henderson <rth@redhat.com>
4113
4114 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4115 not overlapping PC_REGNUM.
4116
4117 2003-06-01 Richard Henderson <rth@redhat.com>
4118
4119 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4120 alpha_push_arguments. Don't dump argument register data to
4121 the target stack. Fix float and 128-bit long double semantics.
4122 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4123 (alpha_fix_call_dummy): Remove.
4124 (alpha_call_dummy_words): Remove.
4125 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4126
4127 2003-06-01 Richard Henderson <rth@redhat.com>
4128
4129 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4130
4131 2003-06-01 Andrew Cagney <cagney@redhat.com>
4132
4133 * mips-tdep.c (is_mips16_addr): New function.
4134 (make_mips16_addr, unmake_mips16_addr): New functions.
4135 (pc_is_mips16, mips_fetch_instruction): Use.
4136 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4137 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4138 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4139 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4140 TARGET_MIPS.
4141 * config/mips/tm-mips.h: Update copyright.
4142 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4143 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4144 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4145 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4146 (TM_PRINT_INSN_MACH): Delete.
4147 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4148
4149 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4150 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4151 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4152 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4153 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4154 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4155 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4156 mips*-*-riscos* and mips*-*-sysv* onto mips.
4157 * config/mips/mips64.mt: New file.
4158 * config/mips/mips.mt: New file.
4159 * config/mips/littlemips.mt: Delete file.
4160 * config/mips/decstation.mt: Delete file.
4161 * config/mips/vr4300el.mt: Delete file.
4162 * config/mips/vr5000el.mt: Delete file.
4163 * config/mips/vr5000.mt: Delete file.
4164 * config/mips/vr4100.mt: Delete file.
4165 * config/mips/vr4xxxel.mt: Delete file.
4166 * config/mips/vr4300.mt: Delete file.
4167 * config/mips/vr4xxx.mt: Delete file.
4168 * config/mips/bigmips.mt: Delete file.
4169 * config/mips/bigmips64.mt: Delete file.
4170 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4171 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4172 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4173 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4174 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4175 "tm-bigmips.h".
4176 * config/mips/tm-irix3.h: Ditto.
4177 * config/mips/tm-mipsv4.h: Ditto.
4178 * config/mips/tm-embed.h: Ditto.
4179 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4180 "tm-bigmips64.h".
4181 * config/mips/tm-vr5000el.h: Delete file.
4182 * config/mips/tm-tx39l.h: Delete file.
4183 * config/mips/tm-vr4300el.h: Delete file.
4184 * config/mips/tm-vr4xxxel.h: Delete file.
4185 * config/mips/tm-vr4300.h: Delete file.
4186 * config/mips/tm-vr4100.h: Delete file.
4187 * config/mips/tm-vr4xxx.h: Delete file.
4188 * config/mips/tm-vr5000.h: Delete file.
4189 * config/mips/tm-embedl64.h: Delete file.
4190 * config/mips/tm-embedl.h: Delete file.
4191 * config/mips/tm-embed64.h: Delete file.
4192 * config/mips/tm-bigmips64.h: Delete file.
4193 * config/mips/tm-bigmips.h: Delete file.
4194
4195 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4196
4197 Fix gdb/1216.
4198 * shnbsd-nat.c: Include "sh-tdep.h".
4199
4200 From Richard Henderson <rth@redhat.com>:
4201 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4202
4203 2003-05-31 Andrew Cagney <cagney@redhat.com>
4204
4205 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4206 forward declaration.
4207 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4208 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4209 (mips_find_saved_regs): Use set_reg_offset.
4210 (mips_frame_init_saved_regs): Delete function.
4211 (mips_pop_frame): Call mips_find_saved_regs instead of
4212 DEPRECATED_FRAME_INIT_SAVED_REGS.
4213
4214 2003-05-31 Andrew Cagney <cagney@redhat.com>
4215
4216 * mips-tdep.c (mips_gdbarch_init): Do not set
4217 deprecated_max_register_raw_size, register_virtual_size, and
4218 deprecated_max_register_virtual_size.
4219
4220 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4221
4222 * i386-tdep.c: Include "dwarf2-frame.h".
4223 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4224 * Makefile.in (i386-tdep.o): Update dependencies.
4225
4226 * dwarf2-frame.c, dwarf2-frame.h: New files.
4227 * Makefile.in (SFILES): Add dwarf2-frame.c.
4228 (dwarf2_frame_h): Define.
4229 (COMMON_OBS): Add dwarf2-frame.o.
4230 (dwarf2-frame.o): Add dependencies.
4231
4232 2003-05-31 Andreas Jaeger <aj@suse.de>
4233
4234 * x86-64-linux-nat.c: Fix comment.
4235
4236 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4237
4238 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4239 function signature.
4240
4241 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4242 have a sigcontext_addr handler.
4243 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4244 sigcontext_addr handler.
4245
4246 2003-05-31 Andrew Cagney <cagney@redhat.com>
4247
4248 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4249 (print_fp_register_row): Replace do_fp_register_row.
4250 (mips_print_fp_register): Add "file" and "frame" parameters.
4251 (mips_print_register): Add "file" and "frame" parameters.
4252 (mips_print_registers_info): Replace mips_do_registers_info.
4253 (mips_gdbarch_init): Set print_registers_info instead of
4254 deprecated_do_registers_info.
4255 (mips_read_fp_register_single): Add "frame" parameter.
4256 (mips_read_fp_register_double): Add "frame" parameter.
4257
4258 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4259
4260 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4261 Fixes a bug where GDB would print the wrong register names for
4262 targets without SSE.
4263
4264 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4265 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4266 registers.
4267
4268 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4269 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4270 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4271 TDEP->sc_sp_offset.
4272
4273 From Michal Ludvig <mludvig@suse.cz>:
4274 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4275 and `sc_num_regs'.
4276 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4277 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4278 I386_ST0_REGNUM): Move here from...
4279 * i386-tdep.c: ... here.
4280 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4281 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4282 registers if possible.
4283 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4284 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4285 Remove variables.
4286 (i386bsd_sc_reg_offset): New variable.
4287 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4288 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4289 TDEP->sc_sp_offset.
4290 (i386fbsd_sc_reg_offset): New variable.
4291 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4292 TDEP->sc_num_regs.
4293 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4294 variables.
4295 (i386fbsd4_sc_reg_offset): New variable.
4296 (i3864bsd4_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 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4300 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4301 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4302 Remove variables.
4303 (i386nbsd_sc_reg_offset): New variable.
4304 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4305 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4306 TDEP->sc_sp_offset.
4307 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4308 Remove variables.
4309 (i386obsd_sc_reg_offset): New variable.
4310 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4311 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4312 TDEP->sc_sp_offset.
4313 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4314 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4315 for frame pointer offset in `struct sigcontext'.
4316
4317 2003-05-31 Andrew Cagney <cagney@redhat.com>
4318
4319 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4320 architecture methods call_dummy_words, sizeof_call_dummy_words,
4321 push_return_address, store_struct_return, and fix_call_dummy. Set
4322 push_dummy_call instead of deprecated_push_arguments.
4323 (mips_store_struct_return): Delete function.
4324 (mips_fix_call_dummy): Delete function.
4325 (mips_push_return_address): Delete function.
4326 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4327 RA_REGNUM and T9_REGNUM.
4328 (mips_n32n64_push_dummy_call): Ditto for
4329 mips_n32n64_push_arguments.
4330 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4331 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4332
4333 2003-05-31 Andrew Cagney <cagney@redhat.com>
4334
4335 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4336 "dummy_addr" to "bp_addr".
4337 * infcall.c (call_function_by_hand): Pass "funaddr" to
4338 gdbarch_push_dummy_call.
4339 * gdbarch.h, gdbarch.c: Re-generate.
4340 * i386-tdep.c (i386_push_dummy_call): Update.
4341 * arm-tdep.c (arm_push_dummy_call): Update.
4342 * d10v-tdep.c (d10v_push_dummy_call): Update.
4343
4344 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4345
4346 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4347 variable declarations.
4348 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4349 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4350 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4351 x86_64_init_frame_pc, x86_64_init_frame_pc,
4352 x86_64_function_has_prologue): Remove prototypes.
4353 (X86_64_NUM_GREGS): New define.
4354 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4355 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4356 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4357 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4358 XMM1_REGNUM): Remove defines.
4359 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4360 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4361 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4362 X86_64_XMM1_REGNUM): New defines.
4363 (struct x86_64_register_info): Renamed from `struct
4364 register_info'. Remove `size' member.
4365 (x86_64_register_info_table): Remove variable.
4366 (x86_64_register_info): New variable.
4367 (X86_64_NUM_REGS): New define.
4368 (X86_64_NUM_GREGS): Remove define.
4369 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4370 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4371 Remove variables.
4372 (x86_54_dwarf2_reg_to_regnum): Remove function.
4373 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4374 (x86_64_dwarf_reg_to_regnum): New function.
4375 (x86_64_register_name): Rewrite.
4376 (x86_64_register_raw_size): Remove function.
4377 (x86_64_register_byte_table): Remove variable.
4378 (x86_64_register_byte): Remove function.
4379 (x86_64_register_virtual_type): Remove function.
4380 (x86_64_register_type): New function.
4381 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4382 x86_64_register_convert_to_raw): Remove functions.
4383 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4384 (x86_64_use_struct_convention): Make static. Adjust for renamed
4385 defines.
4386 (x86_64_frame_init_saved_regs): Remove function.
4387 (x86_64_push_arguments): Make static. Change to accept a regcache
4388 as argument.
4389 (x86_64_store_return_value, x86_64_extract_return_value): Make
4390 static. Rewrite based on i386 counterparts.
4391 (x86_64_push_dummy_call): New function.
4392 (X86_64_NUM_SAVED_REGS): New define.
4393 (x86_64_register_number): Remove function.
4394 (x86_64_store_struct_return): Remove function.
4395 (x86_64_frameless_function_invocation,
4396 x86_64_function_has_prologue): Remove functions.
4397 (PROLOG_BUFSIZE): Remove define.
4398 (struct x86_64_frame_cache): New structure.
4399 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4400 x86_64_frame_cache, x86_64_frame_this_id,
4401 x86_64_frame_prev_register, x86_64_frame_p,
4402 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4403 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4404 functions.
4405 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4406 variables.
4407 (x86_64_skip_prologue): Rewrite in terms of
4408 x86_64_analyze_prologue.
4409 (x86_64_frame_base_address): New function.
4410 (x86_64_frame_base): New variable.
4411 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4412 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4413 set deprecated_fp_regnum, deprecated_register_size,
4414 deprecated_register_bytes, register_raw_size, register_byte,
4415 register_virtual_type, register_convertiable,
4416 register_convert_to_virtual, convert_to_raw,
4417 deprecated_get_saved_register, deprecated_target_read_fp,
4418 deprecated_push_arguments, deprecated_push_return_address,
4419 deprecated_pop_frame, deprecated_store_struct_return,
4420 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4421 frameless_function_invocation, deprecated_frame_saved_pc,
4422 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4423 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4424 deprecated_init_frame_pc and virtual_frame_pointer. Call
4425 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4426 and x86_64_frame_p. Call frame_base_set_default to register
4427 x86_64_frame_base.
4428 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4429 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4430 (_initialize_x86_64_tdep): Remove function.
4431 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4432 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4433 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4434 define.
4435 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4436 (x86_64_linux_sigcontext_addr): Rewrite.
4437 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4438 x86_64_linux_frame_saved_pc): Remove functions.
4439 (x86_64_linux_pc_in_sigtramp): Renamed from
4440 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4441 trampoline.
4442 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4443 Remove_functions.
4444 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4445 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4446 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4447 (x86_64_regmap): Rename to regmap.
4448 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4449 x86_64_num_gregs.
4450 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4451 x86_64_regmap.
4452 (x86_64_fxsave_offset): Remove function.
4453 (supply_fpregset): Simply call x86_64_supply_fxsave.
4454 (fill_fpregset): Simply call x86_64_fill_fxsave.
4455 (fetch_inferior_registers, store_inferior_registers): Avoid
4456 asignment in if-statement.
4457 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4458 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4459 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4460 (fetch_core_registers): Remove function.
4461 (linux_elf_core_fns): Remove.
4462 (offsetoff): Don't define.
4463 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4464 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4465 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4466 add core-regset.o.
4467 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4468 protection against multiple includes instead of NM_X86_64_h. Add
4469 various comments. Include "config/nm-linux.h". Don't include
4470 <signal.h>.
4471 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4472 GET_THREAD_SIGNALS): Remove defines.
4473 (x86_64_register_u_addr, kernel_u_size,
4474 lin_thread_get_thread_signals): Remove prototypes.
4475 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4476 [HAVE_LINK_H]: Don't include "solib.h".
4477 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4478 * config/i386/tm-x86-64linux.h: Fix comments.
4479 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4480 x86-64-tdep.o): Update dependencies.
4481
4482 2003-05-30 Andrew Cagney <cagney@redhat.com>
4483
4484 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4485 Change parameter type to a "struct regcache *".
4486
4487 * gdbarch.sh: Regardless of the multi-arch level, always define
4488 the macro when not already defined.
4489 * gdbarch.h, gdbarch.c: Re-generate.
4490
4491 2003-05-30 Richard Henderson <rth@redhat.com>
4492
4493 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4494 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4495 (alpha_mdebug_frame_this_id): Likewise.
4496 (alpha_mdebug_frame_prev_register): Likewise.
4497 (alpha_mdebug_frame_base_address): Likewise.
4498 (alpha_mdebug_frame_locals_address): Likewise.
4499 (alpha_mdebug_frame_args_address): Likewise.
4500 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4501 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4502 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4503 loop increment.
4504 (alpha_heuristic_frame_this_id): Make static.
4505 (alpha_heuristic_frame_prev_register): Likewise.
4506 (alpha_heuristic_frame_base_address): Likewise.
4507 * alpha-tdep.h: Update.
4508
4509 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4510
4511 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4512 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4513 defenitions.
4514 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4515 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4516 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4517 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4518 I386_ST0_REGNUM): New defines.
4519 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4520 codestream_get): Remove define.
4521 (codestream_next_addr, condestream_addr, condestream_buf,
4522 codestream_off, codestream_cnt): Remove variables.
4523 (codestream_fill, codestream_seek, codestream_read): Remove
4524 functions.
4525 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4526 functionality.
4527 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4528 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4529 i386_frame_saved_pc, i386_saved_pc_after_call,
4530 i386_frame_num_args, i386_frame_init_saved_regs,
4531 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4532 i386_push_arguments): Remove functions.
4533 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4534 functionality. Use i386_analyze_prologue instead of
4535 i386_get_frame_setup.
4536 (I386_NUM_SAVED_REGS): New define.
4537 (struct i386_frame_cache): New structure.
4538 (i386_alloc_frame_cache, i386_analyze_struct_return,
4539 i386_skip_probe, i386_analyze_frame_setup,
4540 i386_analyze_register_saves, i386_analyze_prologue,
4541 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4542 i386_frame_prev_register, i386_sigtramp_frame_cache,
4543 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4544 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4545 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4546 New functions.
4547 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4548 New variables.
4549 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4550 I386_EAX_REGNUM and I386_EDX_REGNUM.
4551 (i386_extract_return_value, i386_store_return_value): Use
4552 I386_ST0_REGNUM where appropriate.
4553 (i386_extract_struct_value_address): Rewrite to use extract_address.
4554 (i386_svr4_pc_in_sigtramp): Add comment.
4555 (i386_svr4_sigcontext_addr): Rewrite.
4556 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4557 TDEP->sc_sp_offset.
4558 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4559 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4560 of new defines. Set push_dummy_call, don't set
4561 deprecated_push_arguments, deprecated_push_return_address,
4562 deprecated_pop_frame. Don't set parm_boundary. Don't set
4563 deprecated_frame_chain, deprecated_frame_saved_pc,
4564 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4565 save_dummy_frame_tos, unwind_pc. Call
4566 frame_unwind_append_predicate and frame_base_set_default. Don't
4567 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4568 Don't set frameless_function_invocation. Don't set
4569 deprecated_register_bytes, deprecated_register_size,
4570 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4571 * i386-linux-tdep.c: Fix formatting in some comments.
4572 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4573 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4574 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4575 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4576 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4577 redundant parentheses.
4578 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4579 (i386_linux_sigcontext_addr): Use it. Rewrite.
4580 (find_minsym_and_objfile): Change name of second argument.
4581 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4582 changed. Use frame_pc_unwind instead of
4583 DEPRECATED_SAVED_PC_AFTER_CALL.
4584 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4585 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4586 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4587 unwinder.
4588 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4589 "dummy-frame.h".
4590 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4591 (_initialize_i386_cygwin_tdep): New prototype.
4592 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4593 deprecated_frame_chain_valid.
4594 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4595 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4596 Rely on the SVR4 defaults.
4597 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4598 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4599
4600 2003-05-30 Andrew Cagney <cagney@redhat.com>
4601
4602 * infcall.c (call_function_by_hand): Always call
4603 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4604
4605 2003-05-30 Richard Henderson <rth@redhat.com>
4606
4607 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4608 increment.
4609
4610 2003-05-29 Jim Blandy <jimb@redhat.com>
4611
4612 Use gdbarch methods for solib stuff on PowerPC Linux.
4613 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4614 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4615 show through.
4616 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4617 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4618 giving the same effect as the #definitions above.
4619
4620 2003-05-29 Adam Fedor <fedor@gnu.org>
4621
4622 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4623 (find_implementation_from_class): Replace it with the standard
4624 case i.e. do nothing.
4625
4626 2003-05-29 Richard Henderson <rth@redhat.com>
4627
4628 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4629 (alpha_linux_sigtramp_offset): Use it. Make static.
4630 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4631 update for new frame model.
4632 * alpha-mdebug-tdep.c: New file.
4633 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4634 (alpha_osf1_init_abi): Install it.
4635 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4636 (linked_proc_desc_table): Remove.
4637 (alpha_frame_past_sigtramp_frame): Remove.
4638 (alpha_dynamic_sigtramp_offset): Remove.
4639 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4640 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4641 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4642 (push_sigtramp_desc): Remove.
4643 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4644 (alpha_cannot_store_register): Likewise.
4645 (alpha_sigcontext_addr): Remove.
4646 (alpha_find_saved_regs): Remove.
4647 (alpha_frame_init_saved_regs): Remove.
4648 (alpha_init_frame_pc_first): Remove.
4649 (read_next_frame_reg): Remove.
4650 (alpha_frame_saved_pc): Remove.
4651 (alpha_saved_pc_after_call): Remove.
4652 (temp_proc_desc, temp_saved_regs): Remove.
4653 (alpha_about_to_return): Remove.
4654 (cached_proc_desc): Remove.
4655 (alpha_frame_chain): Remove.
4656 (alpha_print_extra_frame_info): Remove.
4657 (alpha_init_extra_frame_info): Remove.
4658 (alpha_frame_locals_address): Remove.
4659 (alpha_frame_args_address): Remove.
4660 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4661 (alpha_push_dummy_frame): Remove.
4662 (alpha_pop_frame): Remove.
4663 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4664 (alpha_read_insn): New.
4665 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4666 for different insn encodings.
4667 (alpha_in_lenient_prologue): Remove.
4668 (struct alpha_sigtramp_unwind_cache): New.
4669 (alpha_sigtramp_frame_unwind_cache): New.
4670 (alpha_sigtramp_register_address): New.
4671 (alpha_sigtramp_frame_this_id): New.
4672 (alpha_sigtramp_frame_prev_register): New.
4673 (alpha_sigtramp_frame_unwind): New.
4674 (alpha_sigtramp_frame_p): New.
4675 (struct alpha_heuristic_unwind_cache): New.
4676 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4677 don't count nop insns that occur between functions.
4678 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4679 heuristic_proc_desc, but without the mdebug wrapping.
4680 (alpha_heuristic_frame_this_id): New.
4681 (alpha_heuristic_frame_prev_register): New.
4682 (alpha_heuristic_frame_unwind): New.
4683 (alpha_heuristic_frame_p): New.
4684 (alpha_heuristic_frame_base_address): New.
4685 (alpha_heuristic_frame_base): New.
4686 (alpha_unwind_dummy_id): New.
4687 (alpha_unwind_pc): New.
4688 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4689 frame related deprecated initializations; install replacements.
4690 (alpha_dump_tdep): Remove.
4691 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4692 (alpha_read_insn, alpha_after_prologue,
4693 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4694 alpha_heuristic_frame_prev_register,
4695 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4696 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4697 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4698 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4699
4700 2003-05-29 Andrew Cagney <cagney@redhat.com>
4701
4702 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4703 dependant on the availability of ASSERT_FUNCTION.
4704 (ASSERT_FUNCTION): Do not define when there is no function name.
4705
4706 2003-05-29 Kevin Buettner <kevinb@redhat.com>
4707
4708 From Jimi X <jimix@watson.ibm.com>:
4709 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4710
4711 2003-05-28 Jim Blandy <jimb@redhat.com>
4712
4713 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4714 argument to ptrace to int; the system headers should give it the
4715 right type, and pointers don't fit in ints on powerpc64-*-*.
4716
4717 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4718
4719 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4720 DW_TAG_catch_block.
4721
4722 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4723
4724 * stabsread.c (dbx_lookup_type): Make static.
4725 (read_type): Ditto.
4726 (add_undefined_type): Ditto.
4727 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4728 not export.
4729
4730 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4731
4732 * hpread.c (hpread_has_name): Make static.
4733 (hpread_psymtab_to_symtab): Ditto.
4734 (file_exists): Ditto.
4735 (hpread_call_pxdb): Ditto.
4736 (hpread_pxdb_needed): Ditto.
4737 (hpread_quick_traverse): Ditto.
4738 (hpread_get_header): Ditto.
4739 (hpread_get_lntt): Ditto.
4740 (hpread_get_slt): Ditto.
4741 (class_of): Ditto.
4742
4743 2003-05-25 Andreas Schwab <schwab@suse.de>
4744
4745 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4746 stack_align and deprecated_extra_stack_alignment_needed.
4747 (m68k_stack_align): Delete.
4748
4749 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4750 (m68k_register_virtual_size): Likewise.
4751 (altos_skip_prologue): Remove obsolete function.
4752 (isi_frame_num_args): Likewise.
4753 (news_frame_num_args): Likewise.
4754 (m68k_fix_call_dummy): Make static.
4755 (m68k_push_dummy_frame): Likewise.
4756 (m68k_pop_frame): Likewise.
4757 (m68k_skip_prologue): Likewise.
4758 (m68k_frame_init_saved_regs): Likewise.
4759 (m68k_saved_pc_after_call): Likewise.
4760 (m68k_get_longjmp_target): Make multi-arch.
4761 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4762 structure. Register m68k_get_longjmp_target if enabled.
4763 * m68k-tdep.h (struct gdbarch_tdep): Define.
4764 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4765
4766 * Makefile.in (config.status): Also depend on configure.tgt
4767 and configure.host.
4768 (m68klinux-tdep.o): Update dependencies.
4769 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4770 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4771 (M68K_LINUX_JB_PC): Define.
4772 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4773 and take additional parameter.
4774 (m68k_linux_sigtramp_saved_pc): Update.
4775 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4776 m68k_linux_pc_in_sigtramp, in_plt_section,
4777 find_solib_trampoline_target.
4778 * config/m68k/tm-linux.h: Don't include any tm headers.
4779 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4780 (JB_ELEMENT_SIZE): Likewise.
4781 (JB_PC): Likewise.
4782 (GET_LONGJMP_TARGET): Likewise.
4783 (IN_SIGTRAMP): Likewise.
4784 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4785
4786 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4787
4788 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4789 (sparc32_push_arguments): Re-implement by calling
4790 sparc32_do_push_arguments.
4791
4792 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4793
4794 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4795 SPARC_O1_REGNUM): New defines.
4796 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4797 (sparc32_store_return_value): New function.
4798 (sparc_extract_struct_value_address): Rewrite to operate on a
4799 regcache.
4800 (sparc_gdbarch_init): Don't set
4801 deprecated_extract_struct_value_address. Set
4802 extract_struct_value_address instead. Don't set
4803 deprecated_extract_return_value and deprecated_store_return_value
4804 for 32-bit targets. Set extract_return_value and
4805 store_return_value instead.
4806 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4807 DEPRECTAED_EXTRACT_RETURN_VALUE,
4808 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4809 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4810 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4811 (sparc_store_return_value): Remove prototype.
4812 (sparc32_store_return_value): New prototype.
4813 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4814 Adjust prototypes.
4815
4816 2003-05-24 Mark Kettenis <kettenis@gnu.org>
4817
4818 * sparcnbsd-tdep.c: Include "gdb_string.h".
4819
4820 2003-05-23 Andrew Cagney <cagney@redhat.com>
4821
4822 * p-valprint.c (pascal_val_print): Replace extract_address with
4823 the inline equivalent extract_unsigned_integer.
4824 * jv-valprint.c (java_value_print): Ditto.
4825 * ada-valprint.c (ada_val_print_1): Ditto.
4826 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4827
4828 2003-05-23 Theodore A. Roth <troth@openavr.org>
4829
4830 * blockframe.c (frameless_look_for_prologue): Remove unused
4831 after_prologue variable.
4832
4833 2003-05-23 Mark Kettenis <kettenis@gnu.org>
4834
4835 * blockframe.c (get_pc_function_start): Rewrite to avoid
4836 asignments in if-statements.
4837
4838 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4839
4840 Committed by Elena Zannoni <ezannoni@redhat.com>.
4841 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4842 files, don't relocate absolute symbols (and do use mst_abs).
4843
4844 2003-05-23 Andrew Cagney <cagney@redhat.com>
4845
4846 * objc-lang.c: Include "gdb_assert.h".
4847 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4848 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4849 (gdb_check, gdb_check_fatal): Delete functions.
4850 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4851 gdb_assert.
4852 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4853 * Makefile.in (objc-lang.o): Update dependencies.
4854
4855 2003-05-22 Ian Lance Taylor <ian@airs.com>
4856
4857 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4858 with fprintf_filtered, not fprintf_unfiltered.
4859
4860 2003-05-22 Andrew Cagney <cagney@redhat.com>
4861
4862 * stack.c (frame_info): Inline extract_address, replacing it with
4863 extract_unsigned_integer.
4864 * findvar.c (unsigned_pointer_to_address): Ditto.
4865 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4866 * dwarf2expr.c (dwarf2_read_address): Ditto.
4867 * frame.c (frame_pc_unwind): Update comment.
4868 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4869
4870 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4871
4872 * infptrace.c (detach): Call print_sys_errmsg rather than
4873 perror_with_name to issue warning message when errno is non-zero
4874 after calling ptrace detach.
4875
4876 2003-05-21 J. Brobecker <brobecker@gnat.com>
4877
4878 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4879 macro definitions from here...
4880 * hppa-tdep.c: ...to there.
4881
4882 2003-05-20 Kevin Buettner <kevinb@redhat.com>
4883
4884 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4885 register_ptrace_addr(). Fix all callers.
4886
4887 2003-05-21 Andreas Schwab <schwab@suse.de>
4888
4889 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4890 dependencies.
4891 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4892 end.
4893 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4894 (_initialize_m68k_linux_tdep): New function.
4895 (m68k_linux_frame_saved_pc): Make static.
4896 (m68k_linux_extract_return_value): Likewise.
4897 (m68k_linux_store_return_value): Likewise.
4898 (m68k_linux_extract_struct_value_address): Likewise.
4899 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4900 Remove.
4901 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4902 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4903 (DEPRECATED_FRAME_SAVED_PC): Remove.
4904
4905 2003-05-20 Kris Warkentin <kewarken@qnx.com>
4906
4907 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4908 regset numbering rather than our own.
4909
4910 2003-05-19 David Carlton <carlton@bactrian.org>
4911
4912 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4913
4914 2003-05-19 David Carlton <carlton@bactrian.org>
4915
4916 Partial fix for PR c++/827.
4917 * cp-support.h: Include symtab.h.
4918 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4919 * cp-namespace.c: Update contributors.
4920 (cp_lookup_symbol_nonlocal): New.
4921 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4922 (lookup_symbol_file): Ditto.
4923 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4924 * block.h: Declare block_scope, block_using, block_global_block.
4925 * block.c (block_scope): New.
4926 (block_using, block_global_block): Ditto.
4927 * Makefile.in (cp_support_h): Depend on symtab_h.
4928 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4929
4930 2003-05-19 David Carlton <carlton@bactrian.org>
4931
4932 * language.h (struct language_defn): Add 'la_value_of_this'
4933 and 'la_lookup_symbol_nonlocal' members.
4934 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4935 lookup_symbol_static, lookup_symbol_global,
4936 lookup_symbol_aux_block.
4937 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4938 if we should search fields of this and how to do static/global
4939 lookup.
4940 (lookup_symbol_aux_block): Make extern.
4941 (basic_lookup_symbol_nonlocal): New.
4942 (lookup_symbol_static, lookup_symbol_global): Ditto.
4943 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4944 'la_lookup_symbol_nonlocal' members.
4945 * c-lang.c (c_language_defn, cplus_language_defn)
4946 (asm_language_defn, minimal_language_defn): Ditto.
4947 * jv-lang.c (java_language_defn): Ditto.
4948 * language.c (unknown_language_defn, auto_language_defn)
4949 (local_language_defn): Ditto.
4950 * m2-lang.c (m2_language_defn): Ditto.
4951 * objc-lang.c (objc_language_defn): Ditto.
4952 * scm-lang.c (scm_language_defn): Ditto.
4953 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4954 * p-lang.c (pascal_language_defn): Ditto for both.
4955 * Makefile.in (f-lang.o): Depend on value_h.
4956 (p-lang.o): Ditto.
4957
4958 2003-05-19 David Carlton <carlton@bactrian.org>
4959
4960 * block.h: Declare block_static_block.
4961 * block.c (block_static_block): New.
4962 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4963 lookup_symbol_aux_local, calling block_static_block instead.
4964 (lookup_symbol_aux_local): Delete 'static_block' argument.
4965
4966 2003-05-19 David Carlton <carlton@bactrian.org>
4967
4968 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4969
4970 2003-05-19 Michal Ludvig <mludvig@suse.cz>
4971
4972 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4973 register numbers mapping.
4974
4975 2003-05-18 Adam Fedor <fedor@gnu.org>
4976
4977 * symtab.c (completion_list_objc_symbol): New function.
4978 (make_symbol_completion_list): Use it to add ObjC symbols
4979 when looking though the list.
4980 (language_search_unquoted_string): New function.
4981 (make_file_symbol_completion_list): Use it.
4982
4983 2003-05-18 Andreas Schwab <schwab@suse.de>
4984
4985 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4986 dependencies.
4987 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4988 as m68k_linux_extract_return_value.
4989 (DEPRECATED_STORE_RETURN_VALUE): Define as
4990 m68k_linux_store_return_value.
4991 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4992 m68k_linux_extract_struct_value_address.
4993 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4994 get_next_frame, get_frame_base, get_frame_pc.
4995 (m68k_linux_frame_saved_pc): Use get_frame_base.
4996 (m68k_linux_extract_return_value): New function.
4997 (m68k_linux_store_return_value): New function.
4998 (m68k_linux_extract_struct_value_address): New function.
4999 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5000
5001 * c-exp.y (typebase): Remove duplicate occurence of
5002 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5003 of lookup_signed_typename.
5004
5005 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5006
5007 * dwarf2loc.c (find_location_expression): Change type of second
5008 argument to `size_t *'.
5009 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5010 for size variable.
5011
5012 2003-05-18 David Carlton <carlton@bactrian.org>
5013
5014 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5015 'linkage_name'. Add comment.
5016 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5017 'linkage_name'.
5018 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5019 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5020 (lookup_block_symbol): Ditto.
5021
5022 2003-05-16 Andrew Cagney <cagney@redhat.com>
5023
5024 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5025 * gdbarch.h, gdbarch.c: Re-generate.
5026 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5027 * TODO (REGISTER_BYTES): Delete reference.
5028 * alpha-tdep.c (alpha_gdbarch_init): Update.
5029 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5030 * x86-64-tdep.c (x86_64_init_abi): Update.
5031 * vax-tdep.c (vax_gdbarch_init): Update.
5032 * v850-tdep.c (v850_gdbarch_init): Update.
5033 * sparc-tdep.c (sparc_gdbarch_init): Update.
5034 * sh-tdep.c (sh_gdbarch_init): Update.
5035 * s390-tdep.c (s390_gdbarch_init): Update.
5036 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5037 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5038 (ns32k_gdbarch_init_32382): Update.
5039 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5040 * mcore-tdep.c (mcore_gdbarch_init): Update.
5041 * m68k-tdep.c (m68k_gdbarch_init): Update.
5042 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5043 * ia64-tdep.c (ia64_gdbarch_init): Update.
5044 * i386-tdep.c (i386_gdbarch_init): Update.
5045 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5046 * hppa-tdep.c (hppa_gdbarch_init): Update.
5047 * h8300-tdep.c (h8300_gdbarch_init): Update.
5048 * frv-tdep.c (frv_gdbarch_init): Update.
5049 * cris-tdep.c (cris_gdbarch_init): Update.
5050 * avr-tdep.c (avr_gdbarch_init): Update.
5051 * arm-tdep.c (arm_gdbarch_init): Update.
5052 * sparc-tdep.c (sparc_pop_frame): Update.
5053 * rs6000-tdep.c (rs6000_pop_frame): Update.
5054 * remote.c (init_remote_state): Update.
5055 (remote_prepare_to_store): Update.
5056 * remote-vx.c (vx_prepare_to_store): Update.
5057 * remote-sds.c (sds_fetch_registers): Update.
5058 (sds_prepare_to_store): Update.
5059 * remote-array.c: Update.
5060 * regcache.c (init_legacy_regcache_descr): Update.
5061 (init_regcache_descr): Update.
5062 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5063 (mips_o64_extract_return_value): Update.
5064 * irix5-nat.c (fetch_core_registers): Update.
5065 * irix4-nat.c (fetch_core_registers): Update.
5066 * i386-tdep.h: Update.
5067 * hppa-tdep.c (pa_do_registers_info): Update.
5068 (pa_do_strcat_registers_info): Update.
5069 * cris-tdep.c (cris_register_bytes_ok): Update.
5070 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5071 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5072 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5073 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5074 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5075 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5076 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5077 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5078 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5079 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5080 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5081 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5082 (REGISTER_BYTES_OK): Update.
5083 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5084 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5085
5086 2003-05-16 Ian Lance Taylor <ian@airs.com>
5087
5088 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5089 (vax_print_insn, print_insn_arg): Remove static functions.
5090 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5091 print_insn_vax from opcodes library.
5092 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5093
5094 2003-05-15 Andrew Cagney <cagney@redhat.com>
5095
5096 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5097 * target.h (memory_breakpoint_from_pc): Delete declaration.
5098 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5099 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5100 * monitor.c (monitor_insert_breakpoint): Use
5101 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5102 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5103 * gdbarch.h, gdbarch.c: Re-generate.
5104 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5105 (sparc_gdbarch_init): Set breakpoint_from_pc to
5106 sparc_breakpoint_from_pc.
5107 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5108 (BREAKPOINT_FROM_PC): Define.
5109 (sparc_breakpoint_from_pc): Declare.
5110 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5111 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5112 (BREAKPOINT_FROM_PC): Define.
5113 (BREAKPOINT): Delete macro.
5114 * target.h: Update comment.
5115 * s390-tdep.c (s390_gdbarch_init): Update comments.
5116 * remote.c: Update comments.
5117 * remote-mips.c: Update comments.
5118 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5119 * mem-break.c: Update comment.
5120 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5121 (ia64_memory_insert_breakpoint): Update.
5122 * config/sparc/tm-sparc.h: Update comment.
5123 * config/pa/tm-hppa64.h: Update comment.
5124 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5125 (rs6000_breakpoint_from_pc): Update.
5126 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5127 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5128 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5129 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5130 (mips_breakpoint_from_pc): Update.
5131 (mips_dump_tdep): Update.
5132
5133 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5134 * minsyms.c (lookup_minimal_symbol): Inline
5135 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5136
5137 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5138 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5139 * p-lang.c (pascal_printstr): Ditto.
5140 * objc-lang.c (objc_printstr): Ditto.
5141 * m2-lang.c (m2_printstr): Ditto.
5142 * jv-valprint.c (java_print_value_fields): Ditto.
5143 * f-lang.c (f_printstr): Ditto.
5144 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5145 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5146 for repeat_count_threshold.
5147 * Makefile.in (cp-valprint.o): Update dependencies.
5148
5149 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
5150
5151 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5152 (examine_prologue): Support looking through leaf functions, knowing
5153 they start with mov r2,r12. Support skipping over indirect stores
5154 of the input registers. Upon hitting a non-nop branch instruction
5155 or predicated instruction, bail out by setting lim_pc to the current
5156 pc value in the loop. At the end, if the lim_pc value is still
5157 beyond our calculated value and we have trust_limit set,
5158 use the lim_pc value.
5159
5160 2003-05-15 Andrew Cagney <cagney@redhat.com>
5161
5162 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5163 generic_find_dummy_frame.
5164 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5165 (deprecated_generic_find_dummy_frame): Update.
5166 (deprecated_read_register_dummy): Update.
5167 * frame.c (deprecated_generic_get_saved_register): Update.
5168
5169 2003-05-15 Theodore A. Roth <troth@openavr.org>
5170
5171 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5172 (avr_gdbarch_init): Set breakpoint_from_pc method.
5173
5174 2003-05-15 Andrew Cagney <cagney@redhat.com>
5175
5176 * regcache.c (build_regcache): Set deprecated_register_valid
5177 directly.
5178 (deprecated_grub_regcache_for_register_valid): Delete function.
5179 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5180 declaration.
5181
5182 2003-05-15 David Carlton <carlton@bactrian.org>
5183
5184 Committed by Elena Zannoni <ezannoni@redhat.com>
5185 * symtab.c (lookup_symbol_aux): Delete calls to
5186 lookup_symbol_aux_minsyms.
5187 (lookup_symbol_aux_minsyms): Comment out function and
5188 prototype. Delete lookup by mangled name.
5189
5190 2003-05-14 Kevin Buettner <kevinb@redhat.com>
5191
5192 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5193 correctly indicate an empty stack and ``stack_allocated'' to the
5194 indicate the number of elements initially allocated.
5195 (dwarf_expr_grow_stack): Simplify method for computing new
5196 stack size. Don't loop infinitely if ``stack_len'' is zero.
5197 (execute_stack_op): Move ``ctx->in_reg'' initialization
5198 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5199 be used in conjuction with DW_OP_piece. Revise error message
5200 accordingly.
5201
5202 2003-05-14 Theodore A. Roth <troth@openavr.org>
5203
5204 * MAINTAINERS: Update my email address.
5205 * avr-tdep.c: Ditto.
5206
5207 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
5208
5209 * symtab.h (enum domain_enum): Rename from namespace_enum.
5210 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5211 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5212 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5213 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5214 TYPES_NAMESPACE, METHODS_NAMESPACE.
5215 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5216 (struct symbol, struct partial_symbol): Rename field
5217 'namespace_enum namespace' to 'domain_enum domain'.
5218 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5219 Delete old define kludge for namespace.
5220
5221 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5222 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5223 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5224 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5225 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5226 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5227 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5228 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5229 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5230 occurrences of the above.
5231
5232 2003-05-14 Ian Lance Taylor <ian@airs.com>
5233
5234 * Makefile.in (install-only): Use $(SHELL) when running
5235 mkinstalldirs.
5236
5237 2003-05-13 Ian Lance Taylor <ian@airs.com>
5238
5239 * MAINTAINERS (write after approval): Add myself.
5240
5241 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5242 second and third arguments.
5243 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5244 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5245
5246 2003-05-13 Andrew Cagney <cagney@redhat.com>
5247
5248 * defs.h (store_address): Delete declaration.
5249 findvar.c (store_address): Delete function.
5250 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5251 store_unsigned_integer.
5252 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5253 * v850-tdep.c (v850_push_arguments): Ditto.
5254 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5255 * sh-tdep.c (sh64_get_saved_register): Ditto.
5256 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5257 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5258 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5259 (mips_get_saved_register): Ditto.
5260 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5261 (find_func_descr, ia64_push_arguments): Ditto.
5262 * i386-tdep.c (i386_push_arguments): Ditto.
5263 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5264 * frv-tdep.c (frv_push_arguments): Ditto.
5265 * frame.c (legacy_saved_regs_prev_register): Ditto.
5266 (deprecated_generic_get_saved_register): Ditto.
5267 * findvar.c (unsigned_address_to_pointer): Ditto.
5268 * dwarf2read.c (dwarf2_const_value): Ditto.
5269 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5270 * alpha-tdep.c (alpha_push_arguments): Ditto.
5271
5272 2003-05-12 J. Brobecker <brobecker@gnat.com>
5273
5274 * NEWS: Mention that the hppa-hpux port has been partially
5275 multiarched (32bit ABIT only, so far).
5276
5277 2003-05-11 Andrew Cagney <cagney@redhat.com>
5278
5279 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5280 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5281 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5282 sim/testsuite/sim/arm/misaligned2.ms, and
5283 sim/testsuite/sim/arm/misaligned3.ms.
5284 * disasm.h (struct ui_file): Add opaque struct declaration.
5285 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5286 * frame.h (struct ui_file): Ditto.
5287
5288 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5289
5290 * value.h: Pretty print.
5291
5292 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5293
5294 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5295
5296 2003-05-08 Andrew Cagney <cagney@redhat.com>
5297
5298 * regcache.h (max_register_size): Delete declaration.
5299 * regcache.c (max_register_size): Delete function.
5300 (struct regcache_descr): Delete field "max_register_size".
5301 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5302 registers fit in MAX_REGISTER_SIZE.
5303 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5304 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5305 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5306 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5307 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5308 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5309 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5310 * dve3900-rom.c, hppa-tdep.c: Ditto.
5311
5312 2003-05-08 David Carlton <carlton@math.stanford.edu>
5313
5314 * valops.c (push_word): Fix typo.
5315
5316 2003-05-08 Andrew Cagney <cagney@redhat.com>
5317
5318 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5319 * gdbarch.h: Re-generate.
5320 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5321 (legacy_max_register_raw_size): Delete declaration.
5322 * regcache.c (legacy_max_register_raw_size): Delete function.
5323 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5324 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5325 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5326 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5327 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5328 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5329 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5330 * findvar.c, dwarf2cfi.c: Ditto.
5331
5332 2003-05-08 Andrew Cagney <cagney@redhat.com>
5333
5334 * mips-tdep.c (read_signed_register): New function, moved to here
5335 from "regcache.c".
5336 (read_signed_register_pid): Ditto.
5337 * regcache.c (read_signed_register_pid): Delete function, moved to
5338 "mips-tdep.c".
5339 (read_signed_register): Ditto.
5340 * regcache.h (read_signed_register): Delete declaration.
5341 (read_signed_register_pid): Delete declaration.
5342
5343 2003-05-08 Andrew Cagney <cagney@redhat.com>
5344
5345 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5346 * gdbarch.h: Re-generate.
5347 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5348 (legacy_max_register_virtual_size): Delete declaration.
5349 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5350 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5351 * tracepoint.c (memrange_sortmerge): Ditto.
5352 * sparc-tdep.c (sparc_print_registers): Ditto.
5353 * regcache.c (legacy_max_register_virtual_size): Delete function.
5354
5355 2002-05-08 J. Brobecker <brobecker@gnat.com>
5356
5357 * fork-child.c (escape_bang_in_quoted_argument): New function.
5358 (fork_inferior): Escape '!' characters in quoted arguments
5359 only when needed.
5360
5361 2003-05-08 J. Brobecker <brobecker@gnat.com>
5362
5363 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5364 the language of the CU is not currently supported by GDB.
5365
5366 2003-05-08 J. Brobecker <brobecker@gnat.com>
5367
5368 * defs.h (language): Add language_minimal enum value.
5369 * c-lang.c (minimal_language_defn): New language definition.
5370 (_initialize_c_language): Add the new minimal language to the list
5371 of languages known to GDB.
5372
5373 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5374
5375 * frame.c (get_frame_type): Don't attempt to lazily initialize
5376 frame's unwinder for legacy frames.
5377
5378 2003-05-07 Andrew Cagney <cagney@redhat.com>
5379
5380 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5381 and "regcache" parameters.
5382 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5383
5384 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5385
5386 * dwarf2read.c (dwarf_decode_lines): Only use output of
5387 check_cu_functions() when calling record_line(). Do not update
5388 the current address.
5389
5390 2003-05-07 Andrew Cagney <cagney@redhat.com>
5391
5392 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5393 code.
5394
5395 2003-05-07 Jim Blandy <jimb@redhat.com>
5396
5397 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5398 'maint info symtabs' and 'maint info psymtabs'.
5399 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5400 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5401 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5402 Declarations updated.
5403 * maint.c (maintenance_list_command): Delete.
5404 (_initialize_maint_cmds): Update calls to add_cmd.
5405 * gdbcmd.h (maintenancelistlist): Delete declaration.
5406 * cli/cli-cmds.c (maintenancelistlist): Delete.
5407 (init_cmd_lists): Don't initialize it.
5408 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5409
5410 2003-05-07 Andrew Cagney <cagney@redhat.com>
5411
5412 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5413 "regcache".
5414 (d10v_print_registers_info): Update.
5415 (d10v_dmap_register, d10v_imap_register): Delete functions.
5416 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5417 and "imap_register".
5418 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5419 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5420 * arch-utils.c (generic_remote_translate_xfer_address): Add
5421 "regcache" and "gdbarch" parameters.
5422 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5423 parameter. Change class to multi-arch.
5424 * gdbarch.h, gdbarch.c: Re-generate.
5425 * remote.c (remote_xfer_memory): Use
5426 gdbarch_remote_translate_xfer_address.
5427
5428 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5429
5430 * infrun.c (prev_pc): Move declaration ahead of proceed().
5431 (proceed): Refresh prev_pc value before resuming.
5432 (stop_stepping): Remove code to refresh prev_pc.
5433
5434 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5435
5436 * nto-tdep.c: Removed stray comment.
5437
5438 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5439
5440 * i386-nto-tdep.c: Fix old K&R function definitions.
5441 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5442 Also change add_show_from_set() call to add_setshow_cmd().
5443 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5444
5445 2003-05-05 Andrew Cagney <cagney@redhat.com>
5446
5447 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5448 (fprint_dummy_frames): New function.
5449 (maintenance_print_dummy_frames): New function.
5450 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5451 * frame.c (fprint_frame_id): Make global.
5452 * frame.h (fprint_frame_id): Declare.
5453 * Makefile.in (dummy-frame.o): Update dependencies.
5454
5455 2003-05-05 Andrew Cagney <cagney@redhat.com>
5456
5457 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5458 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5459 SIZEOF_CALL_DUMMY_WORDS.
5460 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5461 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5462 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5463 CALL_DUMMY_BREAKPOINT_OFFSET.
5464 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5465 CALL_DUMMY_START_OFFSET.
5466 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5467 * gdbarch.h, gdbarch.c: Re-generate.
5468 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5469 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5470 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5471 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5472 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5473 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5474 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5475 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5476 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5477 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5478 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5479 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5480 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5481 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5482 * config/sparc/tm-sparc.h: Update.
5483
5484 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5485
5486 * configure.tgt: Add i[3456]86-*-nto*.
5487 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5488 * nto-tdep.c: New file. Neutrino target support routines.
5489 * nto-tdep.h: New file. Neutrino target header.
5490 * config/tm-qnxnto.h: New file.
5491 * config/i386/i386nto.mt: New file.
5492 * config/i386/tm-i386nto.h: New file.
5493
5494 2003-05-04 Andrew Cagney <cagney@redhat.com>
5495
5496 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5497 (load_infrun_state): Ditto.
5498 (struct thread_info): Drop "prev_func_name" field.
5499 * thread.c (load_infrun_state): Update.
5500 (save_infrun_state): Update.
5501 * infrun.c (prev_func_name): Delete variable.
5502 (init_wait_for_inferior): Do not clear prev_func_name.
5503 (stop_stepping, keep_going, context_switch): Do not swap
5504 prev_func_name.
5505 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5506 instead of PC_IN_SIGTRAMP.
5507
5508 2003-05-04 Andrew Cagney <cagney@redhat.com>
5509
5510 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5511 REGISTER_BYTE with register_offset_hack.
5512 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5513 that REGISTER_BYTE is consistent with the regcache.
5514 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5515 * gdbarch.h, gdbarch.c: Regenerate.
5516
5517 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5518
5519 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5520 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5521
5522 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5523
5524 2003-05-03 J. Brobecker <brobecker@gnat.com>
5525
5526 From Thierry Schneider <tpschneider1@yahoo.com>
5527 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5528 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5529 (mi-cmd-symbol.o): Add rule.
5530
5531 2003-05-03 Andrew Cagney <cagney@redhat.com>
5532
5533 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5534 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5535 * gdbarch.h, gdbarch.c: Re-generate.
5536 * d10v-tdep.c (d10v_push_dummy_code): New function.
5537 (d10v_gdbarch_init): Set push_dummy_code.
5538 * infcall.c (legacy_push_dummy_code): New function.
5539 (generic_push_dummy_code): New function.
5540 (push_dummy_code): New function.
5541 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5542 instead of dummy_addr, to push_dummy_call. Move call to
5543 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5544 switch.
5545 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5546
5547 2003-05-03 Andrew Cagney <cagney@redhat.com>
5548
5549 * disasm.h (print_insn): Declare.
5550 * disasm.c (init_gdb_disassemble_info): New function.
5551 (gdb_disassembly): Call init_gdb_disassemble_info.
5552 (gdb_print_insn): New function.
5553 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5554 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5555 * mcore-tdep.c: Include "disasm.h"
5556 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5557 * d10v-tdep.c: Include "disasm.h".
5558 (display_trace): Call gdb_print_insn, instead of print_insn.
5559 (print_insn): Delete function.
5560 * printcmd.c: Include "disasm.h".
5561 (print_insn): Delete function.
5562 (print_formatted): Call gdb_print_insn, instead of print_insn.
5563 * Makefile.in (printcmd.o): Update dependencies.
5564 (mcore-tdep.o, d10v-tdep.o): Ditto.
5565
5566 2003-05-02 Andrew Cagney <cagney@redhat.com>
5567
5568 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5569 PC_REGNUM, re-indent.
5570 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5571 PC_REGNUM isn't set.
5572
5573 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5574 * gdbarch.h, gdbarch.c: Re-generate.
5575 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5576 register_virtual_size, pc_regnum, or register_bytes.
5577 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5578 (d10v_register_type): Use D10V_PC_REGNUM.
5579 (d10v_print_registers_info, d10v_read_pc): Ditto.
5580 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5581 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5582
5583 2003-05-02 David Carlton <carlton@bactrian.org>
5584
5585 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5586 the name with mstrsave.
5587
5588 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5589
5590 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5591 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5592 (host_charset_name, target_charset_name): New vars for use by
5593 set/show commands.
5594 (host_charset_enum, target_charset_enum): New enums for set/show
5595 commands.
5596 (set_charset_sfunc, set_host_charset_sfunc,
5597 set_target_charset_sfunc): New functions.
5598 (set_host_charset, set_target_charset): Make static.
5599 (list_charsets, set_host_charset_command,
5600 set_target_charset_command): Delete functions.
5601 (show_charset_command): Rewrite as....
5602 (show_charset): Hook this up with the set/show command mechanism.
5603 (_initialize_charset): Change names of charsets to match the
5604 set/show enums. Use host_charset_name and target_charset_name.
5605 Use set/show mechanism for charset, host-charset, target-charset
5606 commands. Do not make 'show host-charset' and 'show
5607 target-charset' be aliases of 'show charset'.
5608
5609 * charset.h (set_host_charset, set_target_charset): Don't export,
5610 they are not used outside the file.
5611
5612 2003-05-01 Andrew Cagney <cagney@redhat.com>
5613
5614 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5615 (gdb_disassembly): Make "di" non static, always initialize and
5616 cleanup. Always use dis_asm_read_memory.
5617 (gdb_dis_asm_read_memory): Delete function.
5618
5619 2003-05-01 Andrew Cagney <cagney@redhat.com>
5620
5621 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5622 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5623
5624 2003-04-30 Andrew Cagney <cagney@redhat.com>
5625
5626 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5627 "tm_print_insn_info".
5628 (TARGET_PRINT_INSN_INFO): Delete macro.
5629 (dis_asm_read_memory): Delete function declaration.
5630 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5631 (tm_print_insn_info): Delete variable definition.
5632 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5633 * gdbarch.h, gdbarch.c: Re-generate.
5634 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5635 "deprecated_tm_print_insn_info".
5636 * mcore-tdep.c (mcore_dump_insn): Ditto.
5637 * mips-tdep.c (mips_gdbarch_init): Ditto.
5638 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5639 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5640 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5641 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5642 instead of TARGET_PRINT_INSN_INFO, add comment.
5643 * s390-tdep.c (s390_get_frame_info): Instead of
5644 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5645 (s390_check_function_end, s390_is_sigreturn): Ditto.
5646 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5647 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5648 * disasm.c: Include "gdbcore.h".
5649 (_initialize_disasm): New function, initialize
5650 "deprecated_tm_print_insn_info".
5651 (deprecated_tm_print_insn_info): New variable.
5652 (dis_asm_read_memory): Moved from "corefile.c", made static.
5653 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5654 * Makefile.in (disasm.o): Update dependencies.
5655
5656 2003-04-30 Andrew Cagney <cagney@redhat.com>
5657
5658 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5659
5660 2003-04-29 Adam Fedor <fedor@gnu.org>
5661
5662 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5663 * infcall.c (find_function_addr): Make non-static.
5664 * infcall.h (find_function_addr): Declare.
5665 * Makefile.in (eval.o): Update dependencies.
5666
5667 2003-04-28 Adam Fedor <fedor@gnu.org>
5668
5669 * symtab.c (symbol_find_demangled_name): Check for and demangle
5670 ObjC symbols.
5671 (symbol_init_demangled_name): Init for language_objc as well.
5672
5673 2003-04-28 Andrew Cagney <cagney@redhat.com>
5674
5675 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5676 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5677 * gdbarch.h, gdbarch.c: Re-generate.
5678 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5679 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5680 * inferior.h (deprecated_read_fp): Rename read_fp.
5681 (generic_target_read_fp): Delete declaration.
5682 * regcache.c (generic_target_read_fp): Delete function.
5683 (deprecated_read_fp): Replace read_fp, use
5684 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5685 * d10v-tdep.c (d10v_read_fp): Delete function.
5686 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5687
5688 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5689 deprecated_target_read_fp to generic_target_read_fp.
5690 * sh-tdep.c (sh_gdbarch_init): Ditto.
5691 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5692 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5693 * frv-tdep.c (frv_gdbarch_init): Ditto.
5694
5695 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5696 deprecated_fp_regnum.
5697 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5698 * vax-tdep.c (vax_gdbarch_init): Ditto.
5699 * v850-tdep.c (v850_gdbarch_init): Ditto.
5700 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5701 * sh-tdep.c (sh_gdbarch_init): Ditto.
5702 * s390-tdep.c (s390_gdbarch_init): Ditto.
5703 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5704 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5705 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5706 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5707 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5708 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5709 * i386-tdep.c (i386_gdbarch_init): Ditto.
5710 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5711 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5712 * frv-tdep.c (frv_gdbarch_init): Ditto.
5713 * cris-tdep.c (cris_gdbarch_init): Ditto.
5714 * avr-tdep.c (avr_gdbarch_init): Ditto.
5715 * arm-tdep.c (arm_gdbarch_init): Ditto.
5716 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5717
5718 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5719 * v850-tdep.c (v850_gdbarch_init): Ditto.
5720 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5721 * sh-tdep.c (sh_gdbarch_init): Ditto.
5722 * s390-tdep.c (s390_gdbarch_init): Ditto.
5723 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5724 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5725 * mips-tdep.c (mips_gdbarch_init): Ditto.
5726 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5727 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5728 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5729 * frv-tdep.c (frv_gdbarch_init): Ditto.
5730 * avr-tdep.c (avr_gdbarch_init): Ditto.
5731 * arm-tdep.c (arm_gdbarch_init): Ditto.
5732
5733 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5734 DEPRECATED_FP_REGNUM.
5735 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5736 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5737 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5738 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5739 (sparc32_register_virtual_type): Ditto.
5740 * sh-tdep.c (sh64_frame_chain): Ditto.
5741 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5742 (sh_nofp_frame_init_saved_regs): Ditto.
5743 (sh64_nofp_frame_init_saved_regs): Ditto.
5744 (sh_fp_frame_init_saved_regs): Ditto.
5745 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5746 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5747 * procfs.c (procfs_fetch_registers): Ditto.
5748 (procfs_store_registers): Ditto.
5749 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5750 (store_inferior_registers, fetch_core_registers): Ditto.
5751 (fetch_kcore_registers, clear_regs): Ditto.
5752 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5753 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5754 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5755 * nlm/i386.c (do_status): Ditto.
5756 * mipsv4-nat.c (supply_gregset): Ditto.
5757 * mips-tdep.c: Ditto for comments.
5758 * mips-nat.c (fetch_inferior_registers): Ditto.
5759 (store_inferior_registers, fetch_core_registers): Ditto.
5760 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5761 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5762 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5763 (i386_do_pop_frame, i386_register_type): Ditto.
5764 * hppa-tdep.c (hppa_frame_chain): Ditto.
5765 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5766 (hppa_pop_frame, hppa_read_fp): Ditto.
5767 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5768 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5769 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5770 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5771 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5772 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5773 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5774 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5775 * blockframe.c: Ditto for comments.
5776 * arch-utils.h: Ditto for comments.
5777 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5778 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5779 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5780 * alpha-tdep.h: Ditto for comments.
5781 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5782 (alpha_cannot_store_register): Ditto.
5783 (alpha_push_dummy_frame): Ditto.
5784 * alpha-nat.c (supply_gregset): Ditto.
5785
5786 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5787 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5788 * config/sparc/tm-sparc.h: Update comment.
5789
5790 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5791 deprecated_read_fp instead of TARGET_READ_FP.
5792 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5793 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5794 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5795 deprecated_read_fp instead of read_fp.
5796 * s390-tdep.c (s390_push_arguments): Ditto.
5797 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5798 * frame.h: Ditto in comments.
5799 * frame.c (legacy_get_prev_frame): Ditto.
5800 * dummy-frame.c (dummy_frame_this_id): Ditto.
5801 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5802
5803 2003-04-28 Andrew Cagney <cagney@redhat.com>
5804
5805 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5806 * gdbarch.h, gdbarch.c: Re-generate.
5807 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5808 * vax-tdep.c (_initialize_vax_tdep): Update.
5809 * v850-tdep.c (_initialize_v850_tdep): Update.
5810 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5811 * s390-tdep.c (_initialize_s390_tdep): Update.
5812 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5813 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5814 * mips-tdep.c (_initialize_mips_tdep): Update.
5815 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5816 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5817 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5818 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5819 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5820 * frv-tdep.c (_initialize_frv_tdep): Update.
5821 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5822 (_initialize_cris_tdep): Update.
5823 * arch-utils.c (legacy_print_insn): Update.
5824 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5825
5826 2003-04-26 Adam Fedor <fedor@gnu.org>
5827
5828 * linespec.c (decode_objc): New function to decode ObjC calls
5829 (decode_line_1): Check for ObjC calls (using decode_objc)
5830 * Makefile (linespec.o): Update dependencies.
5831
5832 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
5833
5834 * breakpoint.h (struct breakpoint_ops): New.
5835 (struct breakpoint): Add ops member.
5836
5837 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5838 (mention): Use new breakpoint ops member.
5839 (set_raw_breakpoint): Initialize ops field to NULL.
5840 (print_exception_catchpoint, print_one_exception_catchpoint)
5841 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5842 (gnu_v3_exception_catchpoint_ops): New.
5843 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5844
5845 2003-04-25 Adam Fedor <fedor@gnu.org>
5846
5847 * Makefile.in (COMMON_OBS): Add objc-lang.o
5848
5849 2003-04-25 Andrew Cagney <cagney@redhat.com>
5850
5851 * d10v-tdep.c (print_insn): Delete function.
5852 (display_trace): Use TARGET_PRINT_INSN.
5853 (_initialize_d10v_tdep): Do not set tm_print_insn.
5854 (d10v_gdbarch_init): Set print_insn.
5855
5856 2003-04-25 Andrew Cagney <cagney@redhat.com>
5857
5858 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5859 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5860 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5861 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5862 (nr_dmap_regs, a0_regnum): ... new functions.
5863 (d10v_print_registers_info): Use a0_regnum, use register_size.
5864 (d10v_register_byte): Delete function.
5865 (d10v_register_raw_size): Delete function.
5866 (d10v_register_type): Use a0_regnum.
5867 (d10v_print_registers_info): Use a0_regnum.
5868 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5869 (d10v_gdbarch_init): Do not set register_byte or
5870 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5871 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5872 extract_address.
5873 (trace_command): Use XCALLOC.
5874 (print_insn): Delete reference to tm_print_insn.
5875 (saved_regs_unwinder): Use store_unsigned_integer instead of
5876 store_address.
5877 * frame.h (FRAME_OBSTACK_CALLOC): Define
5878
5879 2003-04-25 David Carlton <carlton@bactrian.org>
5880
5881 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5882
5883 2003-04-24 Adam Fedor <fedor@gnu.org>
5884
5885 * objc-lang.c: Include "valprint.h"
5886 * Makefile.in (objc-lang.o): Update dependencies.
5887
5888 2003-04-24 Adam Fedor <fedor@gnu.org>
5889
5890 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5891 architecture dependant compilation and mark as unimplemented
5892 (until they get put in the gdbarch vector).
5893
5894 2003-04-23 David Carlton <carlton@bactrian.org>
5895
5896 * cp-support.c (cp_find_first_component): Accept 'operator' in
5897 more locations.
5898
5899 2003-04-23 Andrew Cagney <cagney@redhat.com>
5900
5901 * infcall.c (call_function_by_hand): Eliminate redundant
5902 indentation. Move "saved_async" and "old_cleanups" to where they
5903 are needed.
5904
5905 2003-04-23 Andrew Cagney <cagney@redhat.com>
5906
5907 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5908 and "buffer". Move the "name" code to where it is needed.
5909
5910 2003-04-23 Andrew Cagney <cagney@redhat.com>
5911
5912 * infcall.c (call_function_by_hand): Move variables "start_sp",
5913 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5914 code to ON_STACK switch branch.
5915
5916 2003-04-23 Andrew Cagney <cagney@redhat.com>
5917
5918 * infcall.c (call_function_by_hand): Make declaration of "i",
5919 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5920 lint.
5921
5922 2003-04-23 Andrew Cagney <cagney@redhat.com>
5923
5924 * infcall.c (call_function_by_hand): Delete variable
5925 "n_method_args". Localize "param_type"'s declaration to the loop
5926 that it is used. Reinstate code assigning to said variable -
5927 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5928 Rationalize code using "param_type".
5929
5930 2003-04-22 Andrew Cagney <cagney@redhat.com>
5931
5932 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5933 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5934 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5935 to DEPRECATED_PUSH_RETURN_ADDRESS.
5936
5937 2003-04-22 Kevin Buettner <kevinb@redhat.com>
5938
5939 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5940 on the DWARF2 register number prior to fetching a register.
5941
5942 2003-04-22 J. Brobecker <brobecker@gnat.com>
5943
5944 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5945 Update all the tests using SOFT_FLOAT considering the fact that
5946 this macro was always set to 0.
5947 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5948 considering the fact that this macro was always set to 0.
5949 * hppa-tdep.h (hppa_store_return_value): Likewise.
5950 (hppa_extract_return_value): Likewise.
5951
5952 2003-04-22 J. Brobecker <brobecker@gnat.com>
5953
5954 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5955 the hppa-pro target only.
5956
5957 2003-04-21 J. Brobecker <brobecker@gnat.com>
5958
5959 Ongoing multi-arch conversion effort for HP/UX:
5960 * config/pa/tm-hppa.h: Move all macro that are no longer
5961 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5962 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5963
5964 2003-04-21 J. Brobecker <brobecker@gnat.com>
5965
5966 * config/pa/tm-hppa.h: Obsolete a section that was only used
5967 for hppa-pro.
5968
5969 2003-04-21 J. Brobecker <brobecker@gnat.com>
5970
5971 Ongoing multi-arch conversion for HP/UX.
5972 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5973 if already defined (allows hppa64 to stay non-multiarched for now).
5974 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5975
5976 2003-04-21 Andrew Cagney <cagney@redhat.com>
5977
5978 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5979
5980 2003-04-21 Andrew Cagney <cagney@redhat.com>
5981
5982 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5983 "i386_num_mmx_regs".
5984
5985 2003-04-21 Andrew Cagney <cagney@redhat.com>
5986
5987 * infcall.c: New file.
5988 * infcall.h: New file.
5989 * valarith.c: Include "infcall.h".
5990 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5991 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5992 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5993 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5994 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5995 (SFILES): Add "infcall.c"
5996 (COMMON_OBS): Add "infcall.o".
5997 (infcall.o): Specify dependencies.
5998 * value.h (call_function_by_hand): Delete declaration.
5999 * inferior.h (run_stack_dummy): Delete declaration.
6000 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6001 (run_stack_dummy): Move to "infcall.c", merged into
6002 call_function_by_hand.
6003 * valops.c (call_function_by_hand): Moved to "infcall.c".
6004 (find_function_addr, value_arg_coerce): Ditto.
6005 (unwindonsignal_p, coerce_float_to_double): Ditto.
6006 (_initialize_valops): Move "set/show coerce-float-to-double", and
6007 "set/show unwindonsignal" commands to "infcall.c".
6008 * v850-tdep.c, target.h: Update comments.
6009 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6010 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6011 (sh64_init_extra_frame_info): Update comments.
6012 * mn10300-tdep.c: Update comments.
6013 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6014 * config/sparc/tm-sparc.h: Update comments.
6015 * breakpoint.h: Update comments.
6016 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6017 * arm-tdep.c: Update comment.
6018
6019 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6020
6021 * i386-tdep.c (i386_num_register_names): New variable.
6022 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6023 (MM0_REGNUM): Remove redundant parentheses in define.
6024 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6025 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6026 i386_mxcsr_regnum_p): Remove redundant parentheses.
6027 (i386_register_name): Use i386_num_register_names.
6028
6029 * i386-tdep.c (i386_extract_return_value,
6030 i386_store_return_value): Correct check for availability of
6031 floating-point registers.
6032
6033 * i386-tdep.c (i386_frame_num_args): Remove function.
6034 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6035
6036 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6037 mmx_regnum_to_fp_regnum. Adjust all callers.
6038
6039 * i386-tdep.c (i386_get_longjmp_target): Use
6040 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6041 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6042 extract_address.
6043
6044 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6045
6046 * core-regset.c: Update comments to reflect reality. Re-order
6047 includes.
6048 (fetch_core_registers): Use switch instead of if. Remove
6049 redundant prototype.
6050
6051 2003-04-18 Jim Blandy <jimb@redhat.com>
6052
6053 * s390-tdep.c (s390_frame_align): New function.
6054 (s390_gdbarch_init): Register it with the gdbarch object.
6055
6056 2003-04-17 Richard Henderson <rth@redhat.com>
6057
6058 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6059
6060 2003-04-17 Michael Snyder <msnyder@redhat.com>
6061 Karen Bennet <bennet@redhat.com>
6062
6063 Committed by Elena Zannoni <ezannoni@redhat.com>
6064 * gdb_gcore.sh: New script to create a core dump of a process.
6065
6066 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
6067
6068 * values.c (value_being_returned): Don't fetch the return
6069 value if the return type is void.
6070
6071 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6072
6073 * thread-db.c: Reindented.
6074
6075 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6076
6077 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6078 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6079 as types.
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105 2003-04-16 Kevin Buettner <kevinb@redhat.com>
6106
6107 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6108 the size of ``long double'' to 16, instead of 8.
6109
6110 2003-04-16 Mark Kettenis <kettenis@gnu.org>
6111
6112 * i386-linux-nat.c: Add some whitespace to make things more
6113 readable.
6114 (fetch_register, store_register, fetch_inferior_registers,
6115 store_inferior_registers): Get rid of assignment in if-statement.
6116 (store_register): Fix typo in error message.
6117
6118 2003-04-16 Andrew Cagney <cagney@redhat.com>
6119
6120 * utils.c (xmmalloc): Always allocate something, matches
6121 libiberty/xmalloc's semantics.
6122 (xmrealloc, xmcalloc): Ditto.
6123
6124 2003-04-16 Andrew Cagney <cagney@redhat.com>
6125
6126 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6127 update comments.
6128 (get_frame_type): Initialize unwind and type when needed.
6129 (get_frame_id, frame_register_unwind): Ditto.
6130
6131 2003-04-16 Andrew Cagney <cagney@redhat.com>
6132
6133 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6134 obsolete.
6135 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6136 * sparcl-stub.c: Obsolete file.
6137 * config/sparc/tm-sparclet.h: Obsolete file.
6138 * sparclet-stub.c: Obsolete file.
6139 * sparclet-rom.c: Obsolete file.
6140 * sparcl-tdep.c: Obsolete file.
6141 * config/sparc/tm-sparclite.h: Obsolete file.
6142 * config/sparc/sparclite.mt: Obsolete file.
6143 * config/sparc/sparclet.mt: Obsolete file.
6144 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6145 sparc86x-*-* obsolete.
6146
6147 2003-04-15 David Carlton <carlton@math.stanford.edu>
6148
6149 * Makefile.in (SFILES): Add cp-namespace.c.
6150 (COMMON_OBS): Add cp-namespace.o.
6151 (block.o): Depend on gdb_obstack_h and cp_support_h.
6152 (buildsym.o): Depend on cp_support_h.
6153 (cp-namespace.o): New.
6154 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6155 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6156 (dwarf2read.o): Depend on cp_support_h.
6157 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6158 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6159 processing_current_namespace.
6160 (read_namespace): Update processing_current_namespace; check for
6161 anonymous namespaces.
6162 (dwarf2_name): New function.
6163 (dwarf2_extension): Ditto.
6164 * cp-support.h: Update copyright, contributors.
6165 Add inclusion guards.
6166 Add opaque declaration for structs obstack, block, symbol.
6167 (struct using_direct): New struct.
6168 Add declarations for cp_find_first_component,
6169 cp_entire_prefix_len, processing_has_namespace_info,
6170 processing_current_namespace, cp_is_anonymous,
6171 cp_add_using_directive, cp_initialize_namespace,
6172 cp_finalize_namespace, cp_set_block_scope,
6173 cp_scan_for_anonymous_namespaces.
6174 * cp-namespace.c: New file.
6175 * cp-support.c: Update copyright.
6176 Include ctype.h, gdb_assert.h, gdbcmd.h.
6177 New variable maint_cplus_cmd_list.
6178 (cp_find_first_component): New function.
6179 (cp_entire_prefix_len, maint_cplus_command)
6180 (first_component_command, _initialize_cp_support): Ditto.
6181 * buildsym.c: Include cp-support.h.
6182 New variable using_list.
6183 (add_symbol_to_list): Check for anonymous namespaces.
6184 (finish_block): Set block's scope.
6185 (start_symtab): Initialize C++ namespace support.
6186 (end_symtab): Finalize C++ namespace support.
6187 * block.h: Add opaque declarations for structs
6188 block_namespace_info, using_direct, and obstack.
6189 Add declarations for block_set_scope and block_set_using.
6190 (struct block): Add 'language_specific' member.
6191 (BLOCK_NAMESPACE): New macro.
6192 * block.c: Include gdb_obstack.h and cp-support.h.
6193 (struct block_namespace_info): New struct.
6194 (block_set_scope): New function.
6195 (block_set_using, block_initialize_namespace): Ditto.
6196
6197 2003-04-14 Kevin Buettner <kevinb@redhat.com>
6198
6199 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6200 (locate_base): Return early if there aren't any link map offsets.
6201 (svr4_solib_create_inferior_hook): Warn if shared library support
6202 is unavailable.
6203
6204 2003-04-14 David Carlton <carlton@math.stanford.edu>
6205
6206 * symtab.c (symbol_set_names): Add prefix when storing Java names
6207 in hash table. Fix for PR java/1039.
6208
6209 2003-04-14 David Carlton <carlton@math.stanford.edu>
6210
6211 * symtab.c (symbol_set_names): Rename 'name' arg to
6212 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6213 * symtab.h: Change 'name' argument in declaration of
6214 symbol_set_names to 'linkage_name'.
6215 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6216
6217 2003-04-14 Andrew Cagney <cagney@redhat.com>
6218
6219 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6220 return the fully sign-extended register value.
6221 (get_frame_pointer): Ditto.
6222 (mips_pop_frame): Initialize "proc_desc" after checking for a
6223 dummy frame.
6224
6225 2003-04-14 Andrew Cagney <cagney@redhat.com>
6226
6227 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6228 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6229 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6230 (mips_push_register): Delete function.
6231 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6232 PUSH_FP_REGNUM.
6233
6234 2003-04-14 Jim Blandy <jimb@redhat.com>
6235
6236 * symmisc.c: #include "gdb_regex.h".
6237 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6238 functions.
6239 * maint.c (maintenance_list_command): New function.
6240 (_initialize_maint_cmds): Register the above as commands.
6241 * symtab.h (maintenance_list_symtabs,
6242 maintenance_list_psymtabs): New declarations.
6243 * cli/cli-cmds.c (maintenancelistlist): New variable.
6244 (init_cmd_lists): Initialize it.
6245 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6246 * gdbcmd.h (maintenancelistlist): New declaration.
6247 * Makefile.in (symmisc.o): Update dependencies.
6248
6249 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
6250
6251 * s390-nat.c: Include asm/types.h for addr_t.
6252
6253 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
6254
6255 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6256 actually incoming type.
6257
6258 2003-04-13 Andrew Cagney <cagney@redhat.com>
6259
6260 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6261 get_next_frame and get_frame_saved_regs.
6262
6263 2003-04-13 Andrew Cagney <cagney@redhat.com>
6264
6265 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6266 of gdbarch_num_regs.
6267
6268 2003-04-13 Andrew Cagney <cagney@redhat.com>
6269
6270 * frame.h: Mention what replaced what in "struct frame_info".
6271 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6272 deprecated_update_frame_base_hack and
6273 deprecated_update_frame_pc_hack.
6274 * hppa-tdep.c: Ditto.
6275
6276 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6277
6278 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6279 to read_reg and update its comment. Remove regnum member.
6280 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6281 Don't call read_reg when setting in_reg. Call read_reg to get
6282 the frame base if it's in a register. Return the register number
6283 on the stack instead of in the context. Remove extra arguments
6284 to read_reg.
6285 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6286 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6287 the register number on the expression stack.
6288 (needs_frame_read_reg): Remove extra arguments.
6289
6290 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6291
6292 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6293 made non-static.
6294 (execute_stack_op): All callers updated.
6295 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6296 * dwarf2loc.c (find_location_expression): New function.
6297 (dwarf_expr_frame_base): Call it.
6298 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6299 (dwarf2_tracepoint_var_ref): New function, broken out from
6300 locexpr_tracepoint_var_ref.
6301 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6302 Make static.
6303 (loclist_read_variable, loclist_read_needs_frame): New functions.
6304 (loclist_describe_location, loclist_tracepoint_var_ref): New
6305 functions.
6306 (dwarf2_loclist_funcs): New struct location_funcs.
6307 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6308 (struct dwarf2_locexpr_baton): Add comments.
6309 (dwarf2_loclist_funcs): New extern.
6310 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6311 base_address and base_known.
6312 (dwarf_loc_buffer): New variable.
6313 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6314 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6315 (dwarf2_has_info): Initialize dwarf_loc_offset.
6316 (dwarf2_build_psymtabs): Read in .debug_loc.
6317 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6318 DWARF_LOC_SIZE.
6319 (psymtab_to_symtab_1): Likewise. Move base address calculation
6320 here, from...
6321 (dwarf2_get_pc_bounds): ... here. Use the base address from
6322 cu_header.
6323 (dwarf2_symbol_mark_computed): Handle location lists.
6324
6325 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6326
6327 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6328 if the linkage name demangled successfully.
6329
6330 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6331
6332 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6333 disassmbly_flavour): Removed.
6334
6335 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6336
6337 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6338
6339 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6340
6341 2003-04-12 Andrew Cagney <cagney@redhat.com>
6342
6343 * frame.h (struct frame_info): Move definition from here ...
6344 * frame.c (struct frame_info): ... to here.
6345
6346 2003-04-12 Andrew Cagney <cagney@redhat.com>
6347
6348 * gdbthread.h (save_infrun_state): Delete parameter
6349 "prev_func_start".
6350 (struct thread_info): Delete field "prev_func_start".
6351 (load_infrun_state): Ditto.
6352 * thread.c (load_infrun_state, save_infrun_state): Update.
6353 * infrun.c (prev_func_start): Delete variable.
6354 (context_switch, init_wait_for_inferior): Update.
6355 (stop_stepping, keep_going): Update.
6356
6357 2003-04-12 Andrew Cagney <cagney@redhat.com>
6358
6359 * gdbarch.sh: Add missing opaque declarations.
6360 * gdbarch.h: Regnerate.
6361 * symtab.h: Add missing opaque declarations.
6362 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6363 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6364 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6365 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6366 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6367 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6368 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6369 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6370 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6371 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6372 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6373 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6374 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6375
6376 2003-04-11 Andrew Cagney <cagney@redhat.com>
6377
6378 * frame.c (get_frame_id): Return this frame's "id".
6379 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6380 function start.
6381 (legacy_saved_regs_this_id): Replace function body with
6382 internal-error.
6383 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6384 FRAME_OBSTACK_ZALLOC.
6385 (create_new_frame): Mark the frame ID as valid.
6386
6387 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6388
6389 * Makefile.in (libbfd_h): Added missing setting.
6390 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6391 according to the selected ABI.
6392
6393 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6394
6395 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6396
6397 2003-04-11 Andrew Cagney <cagney@redhat.com>
6398
6399 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6400 SAVED_PC_AFTER_CALL.
6401 * gdbarch.h, gdbarch.c: Regenerate.
6402 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6403 * x86-64-tdep.c (x86_64_init_abi): Update.
6404 * vax-tdep.c (vax_gdbarch_init): Update.
6405 * v850-tdep.c (v850_gdbarch_init): Update.
6406 * sparc-tdep.c (sparc_gdbarch_init): Update.
6407 * sh-tdep.c (sh_gdbarch_init): Update.
6408 * s390-tdep.c (s390_gdbarch_init): Update.
6409 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6410 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6411 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6412 * mips-tdep.c (mips_gdbarch_init): Update.
6413 * mcore-tdep.c (mcore_gdbarch_init): Update.
6414 * m68k-tdep.c (m68k_gdbarch_init): Update.
6415 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6416 * ia64-tdep.c (ia64_gdbarch_init): Update.
6417 (ia64_saved_pc_after_call): Update declaration.
6418 * i386ly-tdep.c (i386lynx_init_abi): Update.
6419 * i386-tdep.c (i386_gdbarch_init): Update.
6420 * hppa-tdep.c (hppa_gdbarch_init): Update.
6421 * h8300-tdep.c (h8300_gdbarch_init): Update.
6422 * frv-tdep.c (frv_gdbarch_init): Update.
6423 * cris-tdep.c (cris_gdbarch_init): Update.
6424 * avr-tdep.c (avr_gdbarch_init): Update.
6425 * arm-tdep.c (arm_gdbarch_init): Update.
6426 * alpha-tdep.c (alpha_gdbarch_init): Update.
6427 * ns32knbsd-nat.c (frame_num_args): Update.
6428 * ns32k-tdep.c (umax_frame_num_args): Update.
6429 * mips-tdep.c (mips_init_frame_pc_first): Update.
6430 * infrun.c (step_over_function): Update.
6431 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6432 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6433 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6434 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6435 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6436 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6437 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6438 * arch-utils.c (init_frame_pc_default): Update.
6439 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6440 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6441 declaration.
6442
6443 2003-04-11 Andrew Cagney <cagney@redhat.com>
6444
6445 * i387-tdep.c: Update copyright.
6446 (i387_to_double): Delete function.
6447 (double_to_i387): Delete function.
6448
6449 2003-04-10 Andrew Cagney <cagney@redhat.com>
6450
6451 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6452 frame's function's address. Simplify.
6453 (d10v_frame_unwind_cache): Check that the frame's function is
6454 non-zero.
6455
6456 2003-04-10 Jim Blandy <jimb@redhat.com>
6457
6458 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6459 call to set_gdbarch_deprecated_push_arguments.
6460
6461 2003-04-10 Andrew Cagney <cagney@redhat.com>
6462
6463 * frame.c (fprint_frame_id): New function.
6464 (fprint_frame_type, fprint_frame): New function.
6465 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6466 (create_sentinel_frame, get_frame_id): Ditto.
6467 (frame_id_p, frame_id_eq): Ditto.
6468 (frame_id_inner, create_new_frame): Ditto.
6469 (legacy_get_prev_frame, get_prev_frame): Ditto.
6470 (deprecated_update_frame_pc_hack): Ditto.
6471 (frame_register_unwind): Ditto.
6472 (deprecated_update_frame_base_hack): Ditto.
6473
6474 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6475
6476 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6477 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6478 frame_chain function.
6479 * Makefile.in: Add dependencies due to above change.
6480
6481 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6482
6483 * blockframe.c (legacy_frame_chain_valid): Move call to
6484 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6485 inside_entry_file.
6486
6487 2003-04-09 Andrew Cagney <cagney@redhat.com>
6488
6489 * frame.h (struct frame_id): Replace "pc" and "base" with
6490 "stack_addr" and "code_addr". Update comments.
6491 (frame_id_build): Update parameter names and comment.
6492 (struct frame_info): Replace "id_p" and "id" with "this_id".
6493 * dummy-frame.c (dummy_frame_this_id): Update.
6494 * breakpoint.c (print_one_breakpoint): Update.
6495 * frame.c (get_frame_id): Update.
6496 (get_frame_base, frame_id_build): Update.
6497 (create_sentinel_frame, legacy_get_prev_frame): Update.
6498 (deprecated_update_frame_base_hack): Update.
6499 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6500 (frame_id_inner): Ditto.
6501
6502 2003-04-09 Andrew Cagney <cagney@redhat.com>
6503
6504 * defs.h (gdb_print_host_address): Make "addr" parameter a
6505 pointer constant.
6506 * utils.c (gdb_print_host_address): Update.
6507
6508 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6509
6510 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6511 register number for R0 is 0.
6512
6513 2003-04-09 J. Brobecker <brobecker@gnat.com>
6514
6515 * frame.h (struct gdbarch): Add opaque structure definition
6516 to avoid a compilation warning on LynxOS 4.0.
6517
6518 2003-04-09 Andrew Cagney <cagney@redhat.com>
6519
6520 * frame.h (struct frame_info): Delete field "pc". Replace
6521 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6522 structure.
6523 * frame.c (frame_pc_unwind): Update.
6524 (create_sentinel_frame): Do not set "pc".
6525 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6526 (get_frame_pc): Call frame_pc_unwind.
6527 (deprecated_update_frame_pc_hack): Update.
6528 (create_new_frame): Use "pc" not "->pc".
6529
6530 2003-04-09 Andrew Cagney <cagney@redhat.com>
6531
6532 * frame.c (get_frame_id): Eliminate code updating "frame".
6533 (legacy_get_prev_frame): Ditto.
6534 (get_frame_base): Return id.base directly.
6535 (deprecated_update_frame_base_hack): Update "id.base".
6536 * frame.h (struct frame_info): Delete field "frame".
6537
6538 2003-04-09 Andrew Cagney <cagney@redhat.com>
6539
6540 * NEWS: Mention that the "Sequent family" is obsolete.
6541 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6542 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6543 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6544 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6545 * config/i386/tm-ptx4.h: Obsolete file.
6546 * config/i386/tm-ptx.h: Obsolete file.
6547 * symm-tdep.c: Obsolete file.
6548 * config/i386/symmetry.mt: Obsolete file.
6549 * config/i386/tm-symmetry.h: Obsolete file.
6550 * symm-nat.c: Obsolete file.
6551 * config/i386/nm-symmetry.h: Obsolete file.
6552 * config/i386/xm-symmetry.h: Obsolete file.
6553 * config/i386/symmetry.mh: Obsolete file.
6554 * config/i386/nm-ptx4.h: Obsolete file.
6555 * config/i386/ptx4.mh: Obsolete file.
6556 * config/i386/ptx.mt: Obsolete file.
6557 * config/i386/ptx.mh: Obsolete file.
6558 * config/i386/xm-ptx4.h: Obsolete file.
6559 * config/i386/xm-ptx.h: Obsolete file.
6560
6561 2003-04-09 Andrew Cagney <cagney@redhat.com>
6562
6563 Obsolete mips*-*-mach3*.
6564 * NEWS: Mention that mips*-*-mach3* is obsolete.
6565 * m3-nat.c: Obsolete file.
6566 * config/nm-m3.h: Obsolete file.
6567 * config/mips/tm-mipsm3.h: Obsolete file.
6568 * config/mips/mipsm3.mt: Obsolete file.
6569 * config/mips/mipsm3.mh: Obsolete file.
6570 * config/mips/xm-mipsm3.h: Obsolete file.
6571 * mipsm3-nat.c: Obsolete file.
6572 * configure.host: Obsolete mips-dec-mach3*.
6573 * configure.tgt: Obsolete mips*-*-mach3*.
6574
6575 2003-04-09 Andrew Cagney <cagney@redhat.com>
6576
6577 * doublest.h: Update copyright.
6578 (deprecated_store_floating, deprecated_extract_floating): Rename
6579 store_floating and extract_floating. Update comments.
6580 * doublest.c: Update copyright.
6581 (extract_floating_by_length): Replace extract_floating.
6582 (store_floating_by_length): Replace store_floating.
6583 (deprecated_extract_floating): New function.
6584 (deprecated_store_floating): New function.
6585 (extract_typed_floating): Call extract_floating_by_length.
6586 (store_typed_floating): Call store_floating_by_length.
6587 * x86-64-tdep.c (x86_64_store_return_value): Update.
6588 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6589 (sh64_extract_return_value): Update.
6590 (sh_sh4_register_convert_to_virtual): Update.
6591 (sh_sh64_register_convert_to_virtual): Update.
6592 (sh_sh4_register_convert_to_raw): Update.
6593 (sh_sh64_register_convert_to_raw): Update.
6594 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6595 (rs6000_register_convert_to_raw): Update.
6596 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6597 (ia64_register_convert_to_raw): Update.
6598 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6599 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6600 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6601 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6602 (alpha_register_convert_to_raw): Update.
6603
6604 2003-04-08 Andrew Cagney <cagney@redhat.com>
6605
6606 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6607 * gdbarch.h, gdbarch.c: Re-generate.
6608 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6609 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6610 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6611 conditionally, use frame_pc_unwind as an alternative. Add
6612 comments.
6613 * arch-utils.c (init_frame_pc_default): Only call
6614 SAVED_PC_AFTER_CALL when available.
6615
6616 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6617
6618 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6619 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6620 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6621 (start_remote): Ditto.
6622 (handle_inferior_event): Ditto.
6623 (save_inferior_status): Ditto.
6624 (restore_inferior_status): Ditto.
6625 * infcmd.c (attach_command): Ditto.
6626 * fork-child.c (startup_inferior): Ditto.
6627 * inferior.h (stop_soon): Rename from stop_soon_quietly.
6628 * alpha-tdep.c (heuristic_proc_start): Ditto.
6629 * mips-tdep.c (heuristic_proc_start): Ditto.
6630 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6631 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6632 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6633 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6634 * remote-vx.c (vx_create_inferior): Ditto.
6635
6636 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6637
6638 * infrun.c (stop_soon_quietly): Make it an enum, to better
6639 override the default behavior of handle_inferior_event.
6640 (clear_proceed_status): Update uses of stop_soon_quietly to
6641 reflect that it is now an enum.
6642 (start_remote): Ditto.
6643 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6644 is set to handle the new GNU/Linux kernel behavior for
6645 attach/sigstop. Update uses of stop_soon_quietly.
6646 * inferior.h (enum stop_kind): New enum.
6647 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6648 Reset normal handle_inferior_event behavior, afterwards.
6649 * fork-child.c (startup_inferior): Update.
6650 * alpha-tdep.c (heuristic_proc_start): Update.
6651 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6652 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6653 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6654 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6655 * remote-vx.c (vx_create_inferior): Update.
6656 * mips-tdep.c (heuristic_proc_start): Update.
6657
6658 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
6659
6660 * disasm.c (dump_insns): Move variables inside loop, or they will
6661 be freed more than once, causing wild memory corruptions.
6662 (gdb_disassembly): Look for the substring "-thread",
6663 instead of "-threads" in the target name, to make sure to find
6664 the 'multi-thread' target. Also, make sure we do the right thing
6665 with the "core" target.
6666
6667 2003-04-07 Kevin Buettner <kevinb@redhat.com>
6668
6669 * mips-tdep.c (mips_print_fp_register): New function, created from
6670 do_fp_register_row(). Registers are now (also) printed as hex.
6671 Only one register is printed per row.
6672 (mips_print_register, do_fp_register_row): Print floating point
6673 registers with mips_print_fp_register().
6674
6675 2003-04-06 Andrew Cagney <cagney@redhat.com>
6676
6677 * valprint.h (inspect_it): Add extern declaration.
6678 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6679 (selectors_info, classes_info): Ditto.
6680 (find_objc_msgcall): Fix indentation.
6681 (objc_printstr): Delete extern declarations.
6682
6683 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6684
6685 2003-04-06 Andrew Cagney <cagney@redhat.com>
6686
6687 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6688 Update comment.
6689 * frame.c (legacy_saved_regs_this_id): Update.
6690 (legacy_get_prev_frame): Update.
6691 * xstormy16-tdep.c: Update comment.
6692 * sparc-tdep.c (sparc_frame_chain): Update comment.
6693 * blockframe.c (legacy_frame_chain_valid): Update.
6694
6695 2003-04-06 Andrew Cagney <cagney@redhat.com>
6696
6697 * valprint.c (val_print_type_code_int): Delete #ifdef
6698 PRINT_TYPELESS_INTEGER code.
6699
6700 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6701 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6702 multi-arch definition.
6703 * gdbarch.h: Re-generate.
6704
6705 2003-04-05 Andrew Cagney <cagney@redhat.com>
6706
6707 Eliminate FRAME_FIND_SAVED_REGS.
6708 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6709 Change FSR parameter to a pointer.
6710 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6711 Assume FSR parameter is a pointer.
6712 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6713 Make fsr a pointer.
6714 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6715 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6716 saved_regs a pointer.
6717 (hppa_frame_saved_pc): Ditto.
6718 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6719 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6720 pointer.
6721 (restore_pc_queue): Make fsr a pointer.
6722 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6723 (hppa_frame_chain): Make saved_regs a pointer, call
6724 hppa_frame_init_saved_regs.
6725 * sparc-tdep.c: Include "gdb_assert.h".
6726 (sparc_frame_find_saved_regs): Replace internal_error with
6727 gdb_assert.
6728 * remote-vxsparc.c (vx_read_register): Delete reference to
6729 FRAME_FIND_SAVED_REGS.
6730 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6731 * gdbarch.h: Regenerate.
6732 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6733 (deprecated_get_frame_saved_regs): Delete declaration.
6734 (struct frame_saved_regs): Delete definition.
6735 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6736 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6737 (hppa_frame_find_saved_regs): Delete declaration.
6738 (FRAME_FIND_SAVED_REGS): Delete macro.
6739 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6740 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6741 FRAME_FIND_SAVED_REGS in comment.
6742
6743 2003-04-05 Andrew Cagney <cagney@redhat.com>
6744
6745 * frame.c (frame_func_unwind, get_frame_func): New functions.
6746 * frame.h (get_frame_func, frame_func_unwind): Declare.
6747 (struct frame_info): Add field "prev_func" for caching the
6748 previous frame's function address.
6749 * arm-tdep.c (arm_frameless_function_invocation): Combine
6750 get_pc_function_start and get_frame_pc into get_frame_func.
6751 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6752 (sh64_nofp_frame_init_saved_regs): Ditto.
6753 * s390-tdep.c (s390_function_start): Ditto.
6754 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6755 (rs6000_frameless_function_invocation): Ditto.
6756 (rs6000_frame_saved_pc): Ditto.
6757 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6758 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6759 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6760 (i386_frame_init_saved_regs): Ditto.
6761 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6762 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6763 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6764 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6765 * blockframe.c (frameless_look_for_prologue): Ditto.
6766
6767 2003-04-05 Andrew Cagney <cagney@redhat.com>
6768
6769 * frame.c (legacy_get_prev_frame): Link prev to next at the
6770 function start. Update comments.
6771
6772 2003-04-05 Andrew Cagney <cagney@redhat.com>
6773
6774 * frame.c (get_frame_id): Update comment.
6775 (legacy_get_prev_frame): Update comment.
6776 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6777 * gdbarch.h: Regenerate.
6778 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6779 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6780
6781 2003-04-05 Andrew Cagney <cagney@redhat.com>
6782
6783 * stack.c (print_frame_info): Use get_frame_pc.
6784
6785 2003-04-04 Andrew Cagney <cagney@redhat.com>
6786
6787 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6788 the frame's type from the unwinder.
6789 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6790 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6791 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6792 (get_frame_base_address): Use get_frame_type.
6793 (get_frame_locals_address, get_frame_args_address): Ditto.
6794 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6795 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6796 (struct frame_info): Add comment explaining why the frame contains
6797 a "type" field.
6798 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6799 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6800 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6801 NORMAL_FRAME.
6802 * frame-unwind.h: Include "frame.h".
6803 (struct frame_unwind): Add "type" field.
6804 * Makefile.in (frame_unwind_h): Add $(frame_h).
6805
6806 2003-04-04 Andrew Cagney <cagney@redhat.com>
6807
6808 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6809 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6810 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6811 get_frame_base.
6812 (d10v_unwind_dummy_id): Use frame_id_build.
6813 * frame.c (find_frame_sal): Use get_frame_pc.
6814 (create_new_frame): Use deprecated_update_frame_pc_hack and
6815 deprecated_update_frame_base_hack.
6816 (create_sentinel_frame): Add comment about ->pc going away.
6817 (get_prev_frame): Add comment about ->pc going away.
6818 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6819 frame_id_build, deprecated_update_frame_pc_hack and
6820 deprecated_update_frame_base_hack.
6821 (select_frame): Use get_frame_pc.
6822 (legacy_saved_regs_this_id): Use frame_id_build.
6823
6824 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
6825
6826 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6827 signed integer case.
6828 (classify_argument): Handle enumerations and references.
6829
6830 2003-04-04 Andrew Cagney <cagney@redhat.com>
6831
6832 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6833 ID to NULL.
6834
6835 2003-04-01 Adam Fedor <fedor@gnu.org>
6836
6837 * gdb/objc-lang.c (selectors_info): Replace calls to
6838 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6839 SYMBOL_NATURAL_NAME.
6840 (classes_info, find_methods): Likewise.
6841
6842 2003-04-03 Kevin Buettner <kevinb@redhat.com>
6843
6844 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6845 ``mach'' to the value determined by bfd_default_set_arch_mach().
6846
6847 2003-04-02 Bob Rossi <bob_rossi@cox.net>
6848
6849 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6850 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6851 (mi-cmd-file.o): Update dependencies.
6852
6853 2003-04-01 Kevin Buettner <kevinb@redhat.com>
6854
6855 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6856 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6857
6858 2003-04-01 Adam Fedor <fedor@gnu.org>
6859
6860 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6861 * language.h (struct language_defn): Add la_demangle.
6862 (language_demangle): Declare.
6863 * language.c (language_demangle): New function.
6864 (unk_lang_demangle): Likewise.
6865 (unknown_language_defn, auto_language_defn, local_language_defn):
6866 Add ukn_lang_demangle.
6867 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6868 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6869 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6870 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6871 * jv-lang.c (java_demangle): New function
6872 (java_language_defn): Use it for la_demangle element.
6873 * objc-lang.c (objc_demangle): Add options argument
6874 (objc_language_defn): Use objc_demangle for la_demangle element.
6875 * maint.c (maintenance_demangle): Replace switch with
6876 call to language_demangle.
6877 * utils.c (fprintf_symbol_filtered): Likewise.
6878
6879 2003-04-01 Andrew Cagney <cagney@redhat.com>
6880
6881 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6882 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6883 PRINT_TYPELESS_INTEGER.
6884 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6885 PUSH_RETURN_ADDRESS.
6886
6887 2003-04-01 Andrew Cagney <cagney@redhat.com>
6888
6889 * Makefile.in (d10v-tdep.o): Update dependencies.
6890 * d10v-tdep.c: Include "frame-base.h".
6891 (d10v_frame_unwind): Make constant.
6892 (d10v_frame_base_address): New function.
6893 (d10v_frame_base): New variable.
6894 (d10v_gdbarch_init): Set frame_base default.
6895 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6896 comment for base.
6897 (d10v_frame_unwind_cache): Set and use "prev_sp".
6898 (d10v_frame_this_id): Use the previous frame's inner most stack
6899 address and this frame's func address for the frame ID. Use
6900 frame_id_build. Don't analyze beyond the current instruction.
6901
6902 2003-04-01 Andrew Cagney <cagney@redhat.com>
6903
6904 * frame.h (get_frame_locals_address, get_frame_args_address):
6905 Refer to the base address, instead of the address of the first
6906 local or parameter.
6907
6908 2003-04-01 Andrew Cagney <cagney@redhat.com>
6909
6910 Add frame debug info addresses:
6911 * frame-base.c: New file.
6912 * frame-base.h: New file.
6913 * frame.h (struct frame_base): Add opaque declaration.
6914 (get_frame_base): Update comment.
6915 (get_frame_base_address): Declare.
6916 (get_frame_locals_address): Declare.
6917 (get_frame_args_address): Declare.
6918 (struct frame_info): Add "base" and "base_cache". Update
6919 comments on the unwinder.
6920 * frame.c: Include "frame-base.h".
6921 (get_frame_locals_address): New function.
6922 (get_frame_base_address): New function.
6923 (get_frame_args_address): New function.
6924 * findvar.c (read_var_value): Use get_frame_locals_address and
6925 get_frame_args_address.
6926 * stack.c (frame_info): Use get_frame_locals_address and
6927 get_frame_args_address.
6928 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6929 moved to "frame-base.c".
6930 * printcmd.c (print_frame_nameless_args): Ditto.
6931 * symtab.h (address_class): Update comments.
6932 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6933 get_frame_base_address.
6934 * dwarf2expr.c (execute_stack_op): Ditto.
6935 * Makefile.in (frame_base_h): Define.
6936 (frame.o): Update dependencies.
6937 (frame-base.o): Add dependencies.
6938 (SFILES): Add frame-base.c.
6939 (COMMON_OBS): Add frame-base.o.
6940
6941 2003-04-01 Andrew Cagney <cagney@redhat.com>
6942
6943 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6944 CALL_DUMMY_LENGTH): Ditto.
6945 * gdbarch.c: Re-generate.
6946 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6947 (CALL_DUMMY_LENGTH): Delete macro.
6948 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6949 * arm-tdep.c (arm_gdbarch_init): Ditto.
6950 * avr-tdep.c (avr_gdbarch_init): Ditto.
6951 * cris-tdep.c (cris_gdbarch_init): Ditto.
6952 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6953 * frv-tdep.c (frv_gdbarch_init): Ditto.
6954 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6955 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6956 * i386-tdep.c (i386_gdbarch_init): Ditto.
6957 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6958 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6959 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6960 * mips-tdep.c (mips_gdbarch_init): Ditto.
6961 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6962 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6963 * s390-tdep.c (s390_gdbarch_init): Ditto.
6964 * sh-tdep.c (sh_gdbarch_init): Ditto.
6965 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6966 * v850-tdep.c (v850_gdbarch_init): Ditto.
6967 * vax-tdep.c (vax_gdbarch_init): Ditto.
6968 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6969
6970 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
6971
6972 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6973
6974 2003-04-01 Andrew Cagney <cagney@redhat.com>
6975
6976 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6977 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6978 * gdbarch.h, gdbarch.c: Re-generate.
6979 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6980 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6981 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6982 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6983 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6984 * infcmd.c (run_stack_dummy): Simplify assuming
6985 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6986 * infrun.c (handle_inferior_event): Ditto.
6987 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6988 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6989 * arm-tdep.c (arm_gdbarch_init): Ditto.
6990 * avr-tdep.c (avr_gdbarch_init): Ditto.
6991 * cris-tdep.c (cris_gdbarch_init): Ditto.
6992 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6993 * frv-tdep.c (frv_gdbarch_init): Ditto.
6994 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6995 * i386-tdep.c (i386_gdbarch_init): Ditto.
6996 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6997 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6998 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6999 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7000 * mips-tdep.c (mips_gdbarch_init): Ditto.
7001 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7002 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7003 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7004 * s390-tdep.c (s390_gdbarch_init): Ditto.
7005 * sh-tdep.c (sh_gdbarch_init): Ditto.
7006 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7007 * v850-tdep.c (v850_gdbarch_init): Ditto.
7008 * vax-tdep.c (vax_gdbarch_init): Ditto.
7009 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7010
7011 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
7012
7013 * symfile.c (symfile_relocate_debug_section): Update call to
7014 bfd_simple_get_relocated_section_contents.
7015
7016 2003-03-31 Andrew Cagney <cagney@redhat.com>
7017
7018 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7019 * gdbarch.h, gdbarch.c: Regenerate.
7020 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7021 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7022 available.
7023 * frame.h (generic_fix_call_dummy): Delete declaration.
7024 * dummy-frame.h: Update comment.
7025 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7026 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7027 fix_call_dummy.
7028 * sh-tdep.c (sh_gdbarch_init): Ditto.
7029 * s390-tdep.c (s390_gdbarch_init): Ditto.
7030 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7031 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7032 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7033 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7034 * i386-tdep.c (i386_gdbarch_init): Ditto.
7035 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7036 * frv-tdep.c (frv_gdbarch_init): Ditto.
7037 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7038 * cris-tdep.c (cris_gdbarch_init): Ditto.
7039 * avr-tdep.c (avr_gdbarch_init): Ditto.
7040 * arm-tdep.c (arm_gdbarch_init): Ditto.
7041
7042 2003-03-31 J. Brobecker <brobecker@gnat.com>
7043
7044 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7045 (INIT_FRAME_AP): Likewise.
7046 (EXTRA_FRAME_INFO): Likewise.
7047
7048 2003-03-31 Andrew Cagney <cagney@redhat.com>
7049
7050 * gdbarch.sh: Include "symfile.h".
7051 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7052 * gdbarch.h, gdbarch.c: Re-generate.
7053 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7054 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7055 call_dummy_address, the default is at entry_point_address.
7056 * v850-tdep.c (v850_gdbarch_init): Ditto.
7057 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7058 * sh-tdep.c (sh_gdbarch_init): Ditto.
7059 * s390-tdep.c (s390_gdbarch_init): Ditto.
7060 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7061 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7062 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7063 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7064 * i386-tdep.c (i386_gdbarch_init): Ditto.
7065 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7066 * frv-tdep.c (frv_gdbarch_init): Ditto.
7067 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7068 * cris-tdep.c (cris_gdbarch_init): Ditto.
7069 * arm-tdep.c (arm_gdbarch_init): Ditto.
7070
7071 2003-03-31 Andrew Cagney <cagney@redhat.com>
7072
7073 * gdbarch.sh (CALL_DUMMY_P): Delete.
7074 * gdbarch.h, gdbarch.c: Re-generate.
7075 * inferior.h (CALL_DUMMY_P): Delete macro.
7076 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7077 * vax-tdep.c (vax_gdbarch_init): Update.
7078 * v850-tdep.c (v850_gdbarch_init): Update.
7079 * sparc-tdep.c (sparc_gdbarch_init): Update.
7080 * sh-tdep.c (sh_gdbarch_init): Update.
7081 * s390-tdep.c (s390_gdbarch_init): Update.
7082 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7083 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7084 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7085 * mips-tdep.c (mips_gdbarch_init): Update.
7086 * mcore-tdep.c (mcore_gdbarch_init): Update.
7087 * m68k-tdep.c (m68k_gdbarch_init): Update.
7088 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7089 * ia64-tdep.c (ia64_gdbarch_init): Update.
7090 * i386-tdep.c (i386_gdbarch_init): Update.
7091 * h8300-tdep.c (h8300_gdbarch_init): Update.
7092 * frv-tdep.c (frv_gdbarch_init): Update.
7093 * d10v-tdep.c (d10v_gdbarch_init): Update.
7094 * cris-tdep.c (cris_gdbarch_init): Update.
7095 * breakpoint.c (deprecated_frame_in_dummy): Update.
7096 * avr-tdep.c (avr_gdbarch_init): Update.
7097 * alpha-tdep.c (alpha_gdbarch_init): Update.
7098 * arm-tdep.c (arm_gdbarch_init): Update.
7099 * dummy-frame.c (dummy_frame_this_id): Update comments.
7100 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7101 * frame.c (legacy_get_prev_frame): Ditto.
7102 * valops.c (call_function_by_hand): Delete function.
7103 (hand_function_call): Rename to call_function_by_hand
7104
7105 2003-03-30 Andrew Cagney <cagney@redhat.com>
7106
7107 2002-11-10 Klee Dienes <kdienes@apple.com>
7108 * value.h (struct value): Update comment.
7109
7110 2003-03-30 Andrew Cagney <cagney@redhat.com>
7111
7112 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7113 D10V_FP_REGNUM.
7114 (d10v_gdbarch_init): Do not set fp_regnum.
7115
7116 * frame.c (get_frame_base): Force ID initialization.
7117 (get_prev_frame): Move computation of the frame ID from here ...
7118 (get_frame_id): ... to here.
7119 (legacy_get_prev_frame): Mark the frame ID as valid.
7120 * frame.h (struct frame_info): Add field "id_p".
7121
7122 2003-03-30 Mark Kettenis <kettenis@gnu.org>
7123
7124 * i386-tdep.c (i386_store_struct_return): Removed.
7125 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7126
7127 2003-03-30 Andrew Cagney <cagney@redhat.com>
7128
7129 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7130 * gdbarch.h, gdbarch.c: Regenerate.
7131 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7132 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7133 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7134 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7135 * i386-tdep.c (i386_gdbarch_init): Ditto.
7136 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7137 * cris-tdep.c (cris_gdbarch_init): Ditto.
7138 * vax-tdep.c (vax_gdbarch_init): Ditto.
7139 * s390-tdep.c (s390_gdbarch_init): Ditto.
7140 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7141 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7142 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7143 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7144 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7145 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7146 * sparc-tdep.c (sparc_gdbarch_init): Update.
7147 * sh-tdep.c (sh_gdbarch_init): Update.
7148 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7149 * mips-tdep.c (mips_gdbarch_init): Update.
7150 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7151 * ia64-tdep.c (ia64_gdbarch_init): Update.
7152 * frv-tdep.c (frv_gdbarch_init): Update.
7153 * avr-tdep.c (avr_gdbarch_init): Update.
7154 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7155 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7156 instead of when push_dummy_call is not available.
7157
7158 2003-03-30 Andrew Cagney <cagney@redhat.com>
7159
7160 * infttrace.c: Include "gdbthread.h".
7161 (parent_attach_all): Fix function signature.
7162 (call_ptrace): Update call.
7163 * Makefile.in (infttrace.o): Update dependencies.
7164
7165 2003-03-30 Andrew Cagney <cagney@redhat.com>
7166
7167 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7168 PUSH_RETURN_ADDRESS.
7169 * gdbarch.h, gdbarch.c: Regenerate.
7170 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7171 * x86-64-tdep.c (x86_64_init_abi): Update.
7172 * v850-tdep.c (v850_gdbarch_init): Update.
7173 * sparc-tdep.c (sparc_gdbarch_init): Update.
7174 * sh-tdep.c (sh_gdbarch_init): Update.
7175 * s390-tdep.c (s390_gdbarch_init): Update.
7176 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7177 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7178 * mips-tdep.c (mips_gdbarch_init): Update.
7179 * mcore-tdep.c (mcore_gdbarch_init): Update.
7180 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7181 * ia64-tdep.c (ia64_gdbarch_init): Update.
7182 * i386-tdep.c (i386_gdbarch_init): Update.
7183 * h8300-tdep.c (h8300_gdbarch_init): Update.
7184 * frv-tdep.c (frv_gdbarch_init): Update.
7185 * cris-tdep.c (cris_gdbarch_init): Update.
7186 * avr-tdep.c (avr_gdbarch_init): Update.
7187 * arm-tdep.c (arm_gdbarch_init): Update.
7188 * valops.c (hand_function_call): Update.
7189
7190 2003-03-29 Andrew Cagney <cagney@redhat.com>
7191
7192 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7193 sizeof_call_dummy_words.
7194 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7195 define.
7196 * gdbarch.h: Regenerate.
7197
7198 2003-03-29 Andrew Cagney <cagney@redhat.com>
7199
7200 * infttrace.h: New file.
7201 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7202 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7203 (hpread_read_doc_function_type): Detect an initialized type1.
7204 (hpread_quick_traverse): Initialize mod_name_string.
7205 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7206 (som_solib_get_solib_by_pc): Declare.
7207 (so_lib_thread_start_addr): Declare.
7208 (no_shared_libraries): Declare.
7209 * somread.c (init_import_symbols): Make static. Add forward
7210 declaration.
7211 * config/pa/nm-hppah.h: Include "infttrace.h" for
7212 parent_attach_all.
7213 (hppa_insert_hw_watchpoint): Declare.
7214 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7215 * hppah-nat.c: Include "gdb_string.h".
7216 (parent_attach_all): Delete extern declaration, moved to
7217 "infttrace.h".
7218 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7219 int.
7220 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7221 * Makefile.in (infttrace_h): Define.
7222 (hpread.o): Update dependencies.
7223 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7224 * hppa-hpux-tdep.c: Include "gdb_string.h".
7225 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7226 * infrun.c (handle_inferior_event): Always initialize
7227 stepped_after_stopped_by_watchpoint. Add default and remove
7228 fallthrough in switch statement.
7229 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7230 parameter to int.
7231 (hppa_remove_hw_watchpoint): Ditto.
7232
7233 2003-03-29 Andrew Cagney <cagney@redhat.com>
7234
7235 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7236 offset.
7237
7238 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
7239
7240 * arm-tdep.c (arm_push_arguments): Delete.
7241 (struct stack_item): New type.
7242 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7243 (arm_store_struct_return): Delte.
7244 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7245 arm_push_arguments or arm_store_struct_return.
7246
7247 2003-03-28 Andrew Cagney <cagney@redhat.com>
7248
7249 * Makefile.in (d10v-tdep.o): Update dependencies.
7250 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7251 * d10v-tdep.c: Include "remote.h".
7252 (target_resume_hook): Delete extern declaration.
7253 (target_wait_loop_hook): Ditto.
7254 (tdisassemble_command): Eliminate assignment in "if" conditional.
7255 (d10v_ts2_register_sim_regno): Eliminate call to
7256 legacy_register_sim_regno.
7257 (d10v_ts3_register_sim_regno): Ditto.
7258
7259 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7260
7261 * thread.c: Reindented.
7262 * lin-lwp.c: Ditto.
7263 * linux-proc.c: Ditto.
7264
7265 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7266
7267 * MAINTAINERS (write after approval): Add myself.
7268
7269 2003-03-27 Theodore A. Roth <troth@openavr.org>
7270
7271 * objc-exp.y: Add missing semi-colons.
7272
7273 2003-03-27 Andrew Cagney <cagney@redhat.com>
7274
7275 * regcache.c (write_sp): Delete function and references.
7276 * inferior.h (write_sp): Delete declaration.
7277 * valops.c (hand_function_call): Replace write_sp with
7278 TARGET_WRITE_SP.
7279 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7280 (sparc_pop_frame): Ditto.
7281
7282 2003-03-27 Andrew Cagney <cagney@redhat.com>
7283
7284 * NEWS: Mention removal of support for hppa*-*-bsd* and
7285 hppa*-*-osf* natives, and hppa*-*-pro* target.
7286 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7287 * config/pa/xm-pa.h: Obsolete file.
7288 * config/pa/xm-hppab.h: Obsolete file.
7289 * config/pa/nm-hppab.h: Obsolete file.
7290 * config/pa/tm-hppab.h: Obsolete file.
7291 * config/pa/tm-hppao.h: Obsolete file.
7292 * config/pa/nm-hppao.h: Obsolete file.
7293 * config/pa/tm-pro.h: Obsolete file.
7294 * config/pa/hppaosf.mt: Obsolete file.
7295 * config/pa/hppaosf.mh: Obsolete file.
7296 * config/pa/hppapro.mt: Obsolete file.
7297 * config/pa/hppabsd.mt: Obsolete file.
7298 * config/pa/hppabsd.mh: Obsolete file.
7299 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7300 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7301 hppa*-*-osf*.
7302
7303 2003-03-27 Andrew Cagney <cagney@redhat.com>
7304
7305 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7306 push_arguments. Don't set push_return_address or write_sp.
7307 (d10v_push_dummy_call): Replace d10v_push_arguments.
7308 (d10v_push_return_address, d10v_write_sp): Delete function,
7309 handled by push_dummy_call.
7310
7311 2003-03-26 Andrew Cagney <cagney@redhat.com>
7312
7313 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7314 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7315 regcache and dummy_addr parameters.
7316 * gdbarch.h, gdbarch.c: Re-generate.
7317 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7318 available; assume it will handle stack alignment and return
7319 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7320 legacy_push_arguments.
7321 (legacy_push_arguments): Rename default_push_arguments.
7322 * value.h (legacy_push_arguments): Rename default_push_arguments.
7323 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7324 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7325 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7326 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7327 * config/i386/tm-symmetry.h: Update.
7328 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7329 * x86-64-tdep.c (x86_64_init_abi): Update.
7330 * v850-tdep.c (v850_gdbarch_init): Update.
7331 * sparc-tdep.c (sparc_gdbarch_init): Update.
7332 * sh-tdep.c (sh_gdbarch_init): Update.
7333 * s390-tdep.c (s390_gdbarch_init): Update.
7334 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7335 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7336 * mips-tdep.c (mips_gdbarch_init): Update.
7337 * mcore-tdep.c (mcore_gdbarch_init): Update.
7338 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7339 * ia64-tdep.c (ia64_gdbarch_init): Update.
7340 * i386-tdep.c (i386_gdbarch_init): Update.
7341 * hppa-tdep.c (hppa_gdbarch_init): Update.
7342 * h8300-tdep.c (h8300_gdbarch_init): Update.
7343 * frv-tdep.c (frv_gdbarch_init): Update.
7344 * d10v-tdep.c (d10v_gdbarch_init): Update.
7345 * cris-tdep.c (cris_gdbarch_init): Update.
7346 * avr-tdep.c (avr_gdbarch_init): Update.
7347 * arm-tdep.c (arm_gdbarch_init): Update.
7348 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7349 * alpha-tdep.c (alpha_gdbarch_init): Update.
7350
7351 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7352
7353 * signals/signals.c (do_target_signal_to_host): Correct realtime
7354 signal range test.
7355
7356 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7357
7358 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7359 (struct sal_chain, map_catch_names): Remove.
7360 (catch_exception_command_1): Don't call
7361 handle_gnu_4_16_catch_command.
7362
7363 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7364
7365 From Mark Dettinger <dettinge@de.ibm.com>:
7366 * dwarf2cfi.c (read_2u): Increment pointer by two.
7367
7368 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7369
7370 * signals/signals.c: Fix typos in last change.
7371
7372 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7373
7374 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7375 not already defined. Use __SIGRTMIN if available.
7376 (target_signal_from_host): Remove SIGRTMIN block.
7377 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7378 the signal is within the realtime range.
7379
7380 2003-03-25 Adam Fedor <fedor@gnu.org>
7381
7382 * Makefile.in (infrun.o): Add $(language_h)
7383 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7384 for language specific trampolines.
7385 * language.h (struct language_defn): Add skip_trampoline.
7386 (skip_language_trampoline): Declare.
7387 * language.c (unk_lang_trampoline, skip_language_trampoline):
7388 New functions.
7389 (unknown_language_defn, auto_language_defn, local_language_defn):
7390 Add ukn_lang_trampoline.
7391 * ada-lang.c (ada_language_defn): Add NULL for language
7392 specific skip_trampoline.
7393 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7394 scm-lang.c: Likewise.
7395 * objc-lang.c (objc_skip_trampoline): New function.
7396 (objc_language_defn): Add objc_skip_trampoline.
7397
7398 2003-03-25 Andrew Cagney <cagney@redhat.com>
7399
7400 * frame.c (get_prev_frame): Delay validating a frame's ID -
7401 non-NULL, didn't go backwards - until an attempt to unwind it to
7402 the previous frame.
7403
7404 2003-03-25 Andrew Cagney <cagney@redhat.com>
7405
7406 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7407 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7408 * gdbarch.h, gdbarch.c: Re-generate.
7409 * config/sparc/tm-sparc.h
7410 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7411 * sparc-tdep.c (sparc_gdbarch_init): Set
7412 deprecated_extra_stack_alignment_needed.
7413 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7414 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7415 extra_stack_alignment_needed.
7416 * v850-tdep.c (v850_gdbarch_init): Ditto.
7417 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7418 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7419 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7420 * cris-tdep.c (cris_gdbarch_init): Ditto.
7421 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7422 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7423
7424 2003-03-25 Andrew Cagney <cagney@redhat.com>
7425
7426 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7427 STORE_STRUCT_RETURN.
7428 * gdbarch.h, gdbarch.c: Regenerate.
7429 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7430 (d10v_push_arguments): Set the struct return register.
7431 (d10v_gdbarch_init): Update.
7432 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7433 * x86-64-tdep.c (x86_64_init_abi): Update.
7434 * vax-tdep.c (vax_gdbarch_init): Update.
7435 * v850-tdep.c (v850_gdbarch_init): Update.
7436 * sparc-tdep.c (sparc_gdbarch_init): Update.
7437 * sh-tdep.c (sh_gdbarch_init): Update.
7438 * s390-tdep.c (s390_gdbarch_init): Update.
7439 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7440 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7441 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7442 * mips-tdep.c (mips_gdbarch_init): Update.
7443 * mcore-tdep.c (mcore_gdbarch_init): Update.
7444 * m68k-tdep.c (m68k_gdbarch_init): Update.
7445 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7446 * ia64-tdep.c (ia64_gdbarch_init): Update.
7447 * i386-tdep.c (i386_gdbarch_init): Update.
7448 * hppa-tdep.c (hppa_gdbarch_init): Update.
7449 * h8300-tdep.c (h8300_gdbarch_init): Update.
7450 * frv-tdep.c (frv_gdbarch_init): Update.
7451 * cris-tdep.c (cris_gdbarch_init): Update.
7452 * avr-tdep.c (avr_gdbarch_init): Update.
7453 * arm-tdep.c (arm_gdbarch_init): Update.
7454 * alpha-tdep.c (alpha_gdbarch_init): Update.
7455
7456 2003-03-25 Andrew Cagney <cagney@redhat.com>
7457
7458 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7459 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7460 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7461 * gdbarch.h, gdbarch.c: Regenerate.
7462 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7463 call_dummy_stack_adjust_p.
7464 * vax-tdep.c (vax_gdbarch_init): Ditto.
7465 * v850-tdep.c (v850_gdbarch_init): Ditto.
7466 * sh-tdep.c (sh_gdbarch_init): Ditto.
7467 * s390-tdep.c (s390_gdbarch_init): Ditto.
7468 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7469 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7470 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7471 * mips-tdep.c (mips_gdbarch_init): Ditto.
7472 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7473 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7474 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7475 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7476 * i386-tdep.c (i386_gdbarch_init): Ditto.
7477 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7478 * frv-tdep.c (frv_gdbarch_init): Ditto.
7479 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7480 * cris-tdep.c (cris_gdbarch_init): Ditto.
7481 * avr-tdep.c (avr_gdbarch_init): Ditto.
7482 * arm-tdep.c (arm_gdbarch_init): Ditto.
7483 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7484 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7485 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7486 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7487 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7488 call_dummy_stack_adjust_p.
7489 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7490 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7491 * sparc-tdep.c (sparc32_push_arguments): Update.
7492 * valops.c (hand_function_call): Update.
7493
7494 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7495
7496 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7497 set_gdbarch_char_signed.
7498
7499 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7500
7501 PR cli/548
7502 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7503
7504 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7505
7506 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7507 (_initialize_arm_tdep): Don't set tm_print_insn.
7508
7509 2003-03-24 Adam Fedor <fedor@gnu.org>
7510
7511 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7512 * objc-lang.h: Add multiple inclusion protection.
7513 (start_msglist, add_msglist, end_msglist): Additional declarations.
7514
7515 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7516
7517 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7518 value was renamed to ARM_FLOAT_SOFT_FPA.
7519
7520 2003-03-23 Andrew Cagney <cagney@redhat.com>
7521
7522 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7523 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7524 * gdbarch.h, gdbarch.c: Regenerate.
7525 * valops.c (hand_function_call): Update.
7526 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7527 * frame.c (legacy_saved_regs_this_id): Update.
7528 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7529 * dummy-frame.h: Update.
7530 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7531 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7532 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7533 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7534 * config/m68k/tm-sun3.h: Update.
7535 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7536 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7537 * x86-64-tdep.c (x86_64_init_abi): Update.
7538 * vax-tdep.c (vax_gdbarch_init): Update.
7539 * v850-tdep.c (v850_gdbarch_init): Update.
7540 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7541 * sh-tdep.c (sh_gdbarch_init): Update.
7542 * s390-tdep.c (s390_gdbarch_init): Update.
7543 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7544 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7545 (frame_get_saved_regs): Update.
7546 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7547 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7548 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7549 * mips-tdep.c (mips_gdbarch_init): Update.
7550 * mcore-tdep.c (mcore_gdbarch_init): Update.
7551 * m68k-tdep.c (m68k_gdbarch_init): Update.
7552 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7553 * ia64-tdep.c (ia64_gdbarch_init): Update.
7554 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7555 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7556 (i386_interix_back_one_frame): Update.
7557 * hppa-tdep.c (hppa_gdbarch_init): Update.
7558 (hppa_init_extra_frame_info): Update.
7559 * h8300-tdep.c (h8300_gdbarch_init): Update.
7560 * frv-tdep.c (frv_gdbarch_init): Update.
7561 * cris-tdep.c (cris_gdbarch_init): Update.
7562 * avr-tdep.c (avr_gdbarch_init): Update.
7563 * arm-tdep.c (arm_gdbarch_init): Update.
7564 * alpha-tdep.c (alpha_gdbarch_init): Update.
7565
7566 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7567
7568 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7569 (arm_get_fp_model): Declare.
7570 * arm-tdep.c (fp_model_strings): New string array.
7571 (arm_fp_model, current_fp_model): New variables.
7572 (arm_get_fp_model): New function.
7573 (arm_set_fp): New function.
7574 (set_fp_model_sfunc): New function.
7575 (show_fp_model): New function.
7576 (_initialize_arm_tdep): Add new command to set/show the FPU.
7577 (arm_extract_return_value): Use arm_get_fp_model.
7578 (arm_store_return_value): Likewise.
7579 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7580 to initialize the floating-point data types.
7581 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7582 model is FPA.
7583
7584 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7585
7586 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7587 the current setting of each value.
7588 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7589 new_set and new_show. Use add_setshow_cmd_full and
7590 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7591 commands and add new version as subcommands of "set/show arm".
7592
7593 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7594
7595 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7596 (set_arm_command, show_arm_command): New functions.
7597 (_initialize_arm_tdep): Add them.
7598 (num_disassembly_options): Renamed from num_flavor_options.
7599 (valid_disassembly_styles): Renamed from valid_flavors.
7600 (disassembly_style): Renamed from disassembly_flavor.
7601 (set_disassembly_style_sfunc): Renamed from
7602 set_disassembly_flavor_sfunc.
7603 (set_disassembly_style): Renamed from set_disassembly_flavor.
7604 (arm_othernames): Updated.
7605 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7606 command. Add "set/show arm disassembly" commands. Deprecate
7607 "othernames" command.
7608
7609 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7610
7611 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7612 (arm-tdep.o): Depend on elf_arm_h.
7613
7614 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7615
7616 * Makefile.in (coff_internal_h): Define.
7617 (arm-tdep.o): Update dependencies.
7618
7619 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7620
7621 * arm-tdep.c (prologue_cache): Delete.
7622 (check_prologue_cache, save_prologue_cache): Delete.
7623 (arm_scan_prologue): Don't check or update the prologue_cache.
7624 (arm_gdb_arch_init): Don't initialize it.
7625 (_initialize_arm_tdep): Likewise.
7626
7627 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7628
7629 * MAINTAINERS (tui): Maintainer of tui code.
7630
7631 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
7632
7633 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7634 (i386-cygwin-tdep.o): Add dependencies.
7635 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7636 * i386-cygwin-tdep.c: New file.
7637 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7638 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7639
7640 2003-03-20 Andrew Cagney <cagney@redhat.com>
7641
7642 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7643 (handle_inferior_event): Remove code calling
7644 DYNAMIC_TRAMPOLINE_NEXTPC.
7645
7646 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7647 already has a full path.
7648
7649 * main.c (gdb_main): Return 1.
7650 (captured_main): Call error to report an invalid interpreter.
7651
7652 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7653 * alpha-osf1-tdep.c: Include "gdb_string.h".
7654
7655 2003-03-19 J. Brobecker <brobecker@gnat.com>
7656
7657 Continuing work to convert the hppa targets to multiarch partial.
7658
7659 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7660 method, now that hppa_push_dummy_frame has a conformant prototype.
7661 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7662 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7663 for the switch to multiarch partial.
7664
7665 2003-03-19 Kevin Buettner <kevinb@redhat.com>
7666
7667 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7668 when iss is issNull.
7669
7670 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7671
7672 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7673 NUM_REGS bounds check.
7674
7675 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7676
7677 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7678 * mips-tdep.c (gdb_assert.h): Include.
7679 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7680 (mips_register_name): Handle integer registers explicitly. Add
7681 bounds checking.
7682 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7683 (mips_lsi33k_reg_names): Don't list integer registers; they're
7684 handled by mips_register_name() now.
7685 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7686 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7687 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7688 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7689 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7690
7691 2003-03-18 Andrew Cagney <cagney@redhat.com>
7692
7693 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7694 a void pointer.
7695 * gdbtypes.h (print_scalar_formatted): Update declaration.
7696 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7697
7698 2003-03-18 J. Brobecker <brobecker@gnat.com>
7699
7700 * infrun.c (observer.h): Add #include.
7701 (normal_stop): Add call to observer_notify_normal_stop.
7702 * Makefile.in (infrun.o): Add dependency on observer.h.
7703
7704 2003-03-18 J. Brobecker <brobecker@gnat.com>
7705
7706 Continuing work to convert the hppa targets to multiarch partial.
7707 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7708 parameter. Reformat comment.
7709 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7710 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7711 to match new profile.
7712
7713 2003-03-18 J. Brobecker <brobecker@gnat.com>
7714
7715 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7716 appear to be working in any case.
7717
7718 2003-03-18 J. Brobecker <brobecker@gnat.com>
7719
7720 * observer.c (observer_test_first_observer): New static variable.
7721 (observer_test_second_observer): Likewise.
7722 (observer_test_third_observer): Likewise.
7723 (observer_test_first_notification_function): New static function.
7724 (observer_test_second_notification_function): Likewise.
7725 (observer_test_third_notification_function): Likewise.
7726
7727 2003-03-17 J. Brobecker <brobecker@gnat.com>
7728
7729 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7730 * somsolib.c (gdb_assert.h): Likewise.
7731 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7732 (somsolib.o): Likewise.
7733
7734 2003-03-17 Andrew Cagney <cagney@redhat.com>
7735
7736 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7737 BFD. Simplify setting of di.endian.
7738
7739 2003-03-17 Andrew Cagney <cagney@redhat.com>
7740
7741 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7742 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7743
7744 From Elena Zannoni <ezannoni@redhat.com>
7745 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7746 vector and floating-point parameters.
7747 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7748 convention.
7749 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7750
7751 2003-03-17 Fernando Nasser <fnasser@redhat.com>
7752
7753 * MAINTAINERS: Remove my name from several maintainership roles.
7754
7755 2003-03-17 Andrew Cagney <cagney@redhat.com>
7756
7757 Fix frame off-by-one bug.
7758 * frame-unwind.h (frame_this_id_ftype): Replace
7759 frame_unwind_id_ftype.
7760 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7761 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7762 with "prev_register".
7763 * frame-unwind.c (frame_unwind_find_by_pc): Return
7764 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7765 comment.
7766 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7767 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7768 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7769 (dummy_frame_unwind): Update.
7770 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7771 sentinel_frame_register_unwind.
7772 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7773 (sentinel_frame_unwinder): Update.
7774 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7775 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7776 * frame.c (create_sentinel_frame): Update. Initialize
7777 "prologue_cache" instead of "unwind_cache".
7778 (frame_register_unwind): Call this frame's prev_register with the
7779 next frame and this frame's prologue cache.
7780 (get_prev_frame): Simplify. Always call prev frame's this_id with
7781 this frame and prev frame's prologue cache. Document that this
7782 call is shifted one to the left when compared to the
7783 frame_register_unwind call.
7784 (legacy_saved_regs_prev_register): Replace
7785 frame_saved_regs_register_unwind.
7786 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7787 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7788 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7789 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7790 (d10v_frame_unwind): Update.
7791 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7792 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7793 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7794 "saved_regs" with "this_saved_regs".
7795
7796 2003-03-16 Andrew Cagney <cagney@redhat.com>
7797
7798 * frame.c (frame_pop): Don't call target_store_registers. Fix
7799 problem reported by Mark Kettenis.
7800
7801 2003-03-16 Mark Kettenis <kettenis@gnu.org>
7802
7803 * i386-tdep.c (i386_register_type): Renamed from
7804 i386_register_virtual_type. Adjust function signature.
7805 (i386_gdbarch_init): Set register_type instead of
7806 deprecated_max_register_raw_size,
7807 deprecated_max_register_virtual_size and register_virtual_type.
7808
7809 2003-03-14 Andrew Cagney <cagney@redhat.com>
7810
7811 * frame.c (get_prev_frame): When a legacy frame, always call
7812 legacy_get_prev_frame. Simplify unwind code using assumption that
7813 the unwinder is new.
7814 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7815 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7816 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7817
7818 2003-03-14 Andrew Cagney <cagney@redhat.com>
7819
7820 * frame.c (get_saved_register): Delete function.
7821 * frame.h (get_saved_register): Delete declaration.
7822 * xstormy16-tdep.c: Update comment.
7823 * regcache.h: Update comments.
7824 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7825 get_saved_register and extract_address, use
7826 frame_read_unsigned_register.
7827 (sparc_frame_saved_pc): Ditto.
7828 (sparc_get_saved_register): Instead of get_saved_register, use
7829 frame_register.
7830 (sparc_pop_frame): Ditto.
7831 * findvar.c: Update comments.
7832 (value_of_register): Call frame_register instead of
7833 get_saved_register.
7834 (value_from_register): Ditto.
7835 * config/sparc/tm-sparc.h: Update comment.
7836 * breakpoint.c: Update comment.
7837
7838 2003-03-14 Andrew Cagney <cagney@redhat.com>
7839
7840 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7841 GET_SAVED_REGISTER.
7842 * gdbarch.h, gdbarch.c: Re-generate.
7843 * frame.h: Update comments.
7844 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7845 * x86-64-tdep.c (x86_64_init_abi): Update.
7846 * sparc-tdep.c (sparc_gdbarch_init): Update.
7847 * sh-tdep.c (sh_gdbarch_init): Update.
7848 * mips-tdep.c (mips_gdbarch_init): Update.
7849 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7850 * cris-tdep.c (cris_gdbarch_init): Update.
7851 * ia64-tdep.c (ia64_gdbarch_init): Update.
7852 * frame.c (frame_register): Update.
7853 (get_saved_register): Update.
7854 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7855
7856 2003-03-13 Andrew Cagney <cagney@redhat.com>
7857
7858 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7859 * gdbarch.h, gdbarch.c: Regenerate.
7860 * valops.c (hand_function_call): Update comment.
7861 * stack.c (return_command): Update comment.
7862 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7863 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7864 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7865 * x86-64-tdep.c (x86_64_init_abi): Update.
7866 * vax-tdep.c (vax_gdbarch_init): Update.
7867 * v850-tdep.c (v850_gdbarch_init): Update.
7868 * sparc-tdep.c (sparc_gdbarch_init): Update.
7869 * sh-tdep.c (sh_gdbarch_init): Update.
7870 * s390-tdep.c (s390_gdbarch_init): Update.
7871 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7872 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7873 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7874 * mips-tdep.c (mips_gdbarch_init): Update.
7875 * mcore-tdep.c (mcore_gdbarch_init): Update.
7876 * m68k-tdep.c (m68k_gdbarch_init): Update.
7877 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7878 * ia64-tdep.c (ia64_gdbarch_init): Update.
7879 * i386-tdep.c (i386_gdbarch_init): Update.
7880 * hppa-tdep.c (hppa_gdbarch_init): Update.
7881 * h8300-tdep.c (h8300_gdbarch_init): Update.
7882 * frv-tdep.c (frv_gdbarch_init): Update.
7883 * cris-tdep.c (cris_gdbarch_init): Update.
7884 * avr-tdep.c (avr_gdbarch_init): Update.
7885 * arm-tdep.c (arm_gdbarch_init): Update.
7886 * alpha-tdep.c (alpha_gdbarch_init): Update.
7887
7888 2003-03-13 Andrew Cagney <cagney@redhat.com>
7889
7890 * frame.c (legacy_frame_p): New function.
7891 (get_prev_frame): Use legacy_frame_p.
7892 * frame.h (legacy_frame_p): Declare.
7893
7894 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7895
7896 * MAINTAINERS (write after approval): Alphabetically
7897 listing corrected.
7898
7899 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7900
7901 * MAINTAINERS (write after approval): Add myself.
7902
7903 2003-03-12 Andrew Cagney <cagney@redhat.com>
7904
7905 * frame.c (get_prev_frame): Rename the frame parameter to
7906 "this_frame".
7907 (get_next_frame, legacy_get_prev_frame): Ditto.
7908
7909 2003-03-12 Andrew Cagney <cagney@redhat.com>
7910
7911 * frame.c (get_current_frame): Check target_has_registers before
7912 checking target_has_stack.
7913 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7914 instead of deprecated_selected_frame.
7915 * findvar.c (value_of_register): Pass "frame", not
7916 deprecated_selected_frame, to value_of_builtin_reg.
7917
7918 2003-03-12 Andrew Cagney <cagney@redhat.com>
7919
7920 * regcache.c (regcache_cooked_write_signed): New function.
7921 (regcache_cooked_write_unsigned): New function.
7922 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7923 (regcache_cooked_read_signed): Fix regnum in range assertion.
7924 * regcache.h (regcache_cooked_write_signed): Declare.
7925 (regcache_cooked_write_unsigned): Declare.
7926
7927 2003-03-12 Andrew Cagney <cagney@redhat.com>
7928
7929 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7930 * gdbarch.h, gdbarch.c: Re-generate.
7931 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7932 * x86-64-tdep.h: Update.
7933 * x86-64-tdep.c (x86_64_init_abi): Update.
7934 * v850-tdep.c (v850_gdbarch_init): Update.
7935 * sparc-tdep.c (sparc_gdbarch_init): Update.
7936 * sh-tdep.c (sh_gdbarch_init): Update.
7937 * s390-tdep.c (s390_gdbarch_init): Update.
7938 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7939 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7940 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7941 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7942 * mips-tdep.c (mips_gdbarch_init): Update.
7943 * mcore-tdep.c (mcore_gdbarch_init): Update.
7944 * m68k-tdep.c (m68k_gdbarch_init): Update.
7945 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7946 * ia64-tdep.c (ia64_gdbarch_init): Update.
7947 * i386-tdep.c (i386_gdbarch_init): Update.
7948 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7949 * hppa-tdep.c (hppa_gdbarch_init): Update.
7950 * h8300-tdep.c (h8300_gdbarch_init): Update.
7951 * frv-tdep.c (frv_gdbarch_init): Update.
7952 * cris-tdep.c (cris_gdbarch_init): Update.
7953 * avr-tdep.c (avr_gdbarch_init): Update.
7954 * arm-tdep.c (arm_gdbarch_init): Update.
7955 * alpha-tdep.c (alpha_gdbarch_init): Update.
7956 * sh-tdep.c (sh_init_extra_frame_info): Update.
7957 (sh64_init_extra_frame_info): Update.
7958 * ns32knbsd-nat.c (frame_num_args): Update.
7959 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7960 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7961 (xstormy16_frame_chain_valid): Update.
7962 * vax-tdep.c (vax_saved_pc_after_call): Update.
7963 * v850-tdep.c (v850_frame_chain): Update.
7964 (v850_pop_frame): Update.
7965 (v850_init_extra_frame_info): Update.
7966 * sparc-tdep.c (setup_arbitrary_frame): Update.
7967 * ns32k-tdep.c (umax_frame_num_args): Update.
7968 * s390-tdep.c (s390_pop_frame_regular): Update.
7969 * mn10300-tdep.c (mn10300_frame_chain): Update.
7970 (mn10300_pop_frame_regular): Update.
7971 (mn10300_init_extra_frame_info): Update.
7972 * mips-tdep.c (mips_init_frame_pc_first): Update.
7973 (mips_frame_chain): Update.
7974 (mips_pop_frame): Update.
7975 * mcore-tdep.c (mcore_frame_chain): Update.
7976 (mcore_pop_frame): Update.
7977 (mcore_init_extra_frame_info): Update.
7978 * arch-utils.c (init_frame_pc_default): Update.
7979 * m68k-tdep.c (isi_frame_num_args): Update.
7980 (delta68_frame_num_args): Update.
7981 (news_frame_num_args): Update.
7982 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7983 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7984 (alpha_frame_chain): Update.
7985 (alpha_pop_frame): Update.
7986 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7987 (hppa_init_extra_frame_info): Update.
7988 (hppa_frame_chain): Update.
7989 (hppa_frame_chain_valid): Update.
7990 * cris-tdep.c (cris_init_extra_frame_info): Update.
7991 * avr-tdep.c (avr_init_extra_frame_info): Update.
7992 * arm-tdep.c (arm_frame_chain_valid): Update.
7993 (arm_init_extra_frame_info): Update.
7994 (arm_pop_frame): Update.
7995 * frame.c (frame_pc_unwind): Update.
7996 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7997 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7998 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7999 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8000 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8001 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8002
8003 2003-03-12 Andrew Cagney <cagney@redhat.com>
8004
8005 Eliminate the need for POP_FRAME.
8006 * frame.c (do_frame_unwind_register): New function.
8007 (frame_pop): When no POP_FRAME, pop the frame using register
8008 unwind and a scratch regcache.
8009 (frame_saved_regs_pop): Delete function.
8010 (trad_frame_unwinder): Update.
8011 * d10v-tdep.c (d10v_frame_pop): Delete function.
8012 (d10v_frame_unwind): Update.
8013 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8014 (sentinel_frame_unwinder): Update.
8015 * dummy-frame.c (dummy_frame_pop): Delete function.
8016 (dummy_frame_unwind): Update.
8017 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8018 (struct frame_unwind): Update.
8019
8020 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8021
8022 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8023 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8024 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8025 Do range checks on register number obtained from debugging info.
8026 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8027 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8028 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8029 mapping function.
8030 (do_fp_register_row): Fix typo which caused double type to be
8031 used when attempting to unpack a float.
8032
8033 2003-03-11 J. Brobecker <brobecker@gnat.com>
8034
8035 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8036
8037 2003-03-11 Andrew Cagney <cagney@redhat.com>
8038
8039 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8040 frame. Problem found by Corinna Vinschen.
8041
8042 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8043
8044 * doublest.c (floatformat_from_length): Accept also
8045 the real size of 'long double' type.
8046
8047 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
8048
8049 From Klee Dienes <kdienes@apple.com>:
8050 * breakpoint.c (bpstat_copy): Copy the command lines as well
8051 as the old value, to match what is freed in bpstat_clear.
8052
8053 2003-03-10 David Carlton <carlton@math.stanford.edu>
8054
8055 * minsyms.c (add_minsym_to_hash_table): Replace
8056 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8057 (compare_minimal_symbols, compact_minimal_symbols)
8058 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8059 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8060 of DEPRECATED_SYMBOL_MATCHES_NAME.
8061 (lookup_minimal_symbol_solib_trampoline): Ditto.
8062
8063 2003-03-10 Andrew Cagney <cagney@redhat.com>
8064
8065 * regcache.h (regcache_cooked_read_ftype): Define.
8066 (regcache_save, regcache_restore): Add a cooked_read parameter.
8067 * regcache.c (regcache_save, regcache_restore): Update.
8068 (do_cooked_read): New function.
8069 (regcache_cpy): Pass do_cooked_read to regcache_save and
8070 regcache_restore.
8071
8072 2003-03-10 Andrew Cagney <cagney@redhat.com>
8073
8074 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8075 * gdbarch.h, gdbarch.c: Re-generate.
8076 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8077 * x86-64-tdep.h: Update.
8078 * x86-64-tdep.c (x86_64_init_abi): Update.
8079 * v850-tdep.c (v850_gdbarch_init): Update.
8080 * sparc-tdep.c (sparc_gdbarch_init): Update.
8081 * sh-tdep.c (sh_gdbarch_init): Update.
8082 * s390-tdep.c (s390_gdbarch_init): Update.
8083 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8084 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8085 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8086 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8087 * mips-tdep.c (mips_gdbarch_init): Update.
8088 * mcore-tdep.c (mcore_gdbarch_init): Update.
8089 * m68k-tdep.c (m68k_gdbarch_init): Update.
8090 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8091 * ia64-tdep.c (ia64_gdbarch_init): Update.
8092 * i386-tdep.c (i386_gdbarch_init): Update.
8093 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8094 * hppa-tdep.c (hppa_gdbarch_init): Update.
8095 * h8300-tdep.c (h8300_gdbarch_init): Update.
8096 * frv-tdep.c (frv_gdbarch_init): Update.
8097 * cris-tdep.c (cris_gdbarch_init): Update.
8098 * avr-tdep.c (avr_gdbarch_init): Update.
8099 * arm-tdep.c (arm_gdbarch_init): Update.
8100 * alpha-tdep.c (alpha_gdbarch_init): Update.
8101 * sh-tdep.c (sh_init_extra_frame_info): Update.
8102 (sh64_init_extra_frame_info): Update.
8103 * ns32knbsd-nat.c (frame_num_args): Update.
8104 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8105 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8106 (xstormy16_frame_chain_valid): Update.
8107 * vax-tdep.c (vax_saved_pc_after_call): Update.
8108 * v850-tdep.c (v850_frame_chain): Update.
8109 (v850_pop_frame): Update.
8110 (v850_init_extra_frame_info): Update.
8111 * sparc-tdep.c (setup_arbitrary_frame): Update.
8112 * ns32k-tdep.c (umax_frame_num_args): Update.
8113 * s390-tdep.c (s390_pop_frame_regular): Update.
8114 * mn10300-tdep.c (mn10300_frame_chain): Update.
8115 (mn10300_pop_frame_regular): Update.
8116 (mn10300_init_extra_frame_info): Update.
8117 * mips-tdep.c (mips_init_frame_pc_first): Update.
8118 (mips_frame_chain): Update.
8119 (mips_pop_frame): Update.
8120 * mcore-tdep.c (mcore_frame_chain): Update.
8121 (mcore_pop_frame): Update.
8122 (mcore_init_extra_frame_info): Update.
8123 * arch-utils.c (init_frame_pc_default): Update.
8124 * m68k-tdep.c (isi_frame_num_args): Update.
8125 (delta68_frame_num_args): Update.
8126 (news_frame_num_args): Update.
8127 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8128 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8129 (alpha_frame_chain): Update.
8130 (alpha_pop_frame): Update.
8131 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8132 (hppa_init_extra_frame_info): Update.
8133 (hppa_frame_chain): Update.
8134 (hppa_frame_chain_valid): Update.
8135 * cris-tdep.c (cris_init_extra_frame_info): Update.
8136 * avr-tdep.c (avr_init_extra_frame_info): Update.
8137 * arm-tdep.c (arm_frame_chain_valid): Update.
8138 (arm_init_extra_frame_info): Update.
8139 (arm_pop_frame): Update.
8140 * frame.c (frame_pc_unwind): Update.
8141 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8142 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8143 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8144 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8145 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8146 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8147
8148 2003-03-10 Andrew Cagney <cagney@redhat.com>
8149
8150 * gdbarch.sh (gdbarch_unwind_pc): New method.
8151 * gdbarch.h, gdbarch.c: Regenerate.
8152 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8153 but use read_pc and FRAME_SAVED_PC as fall backs.
8154 (frame_saved_regs_pc_unwind): Delete function.
8155 (trad_frame_unwinder): Update.
8156 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8157 (struct frame_unwind): Update.
8158 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8159 (dummy_frame_unwind): Update.
8160 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8161 (sentinel_frame_unwinder): Update.
8162 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8163 (d10v_frame_unwind): Update.
8164 (d10v_unwind_pc): New function.
8165 (d10v_gdbarch_init): Set unwind_pc.
8166
8167 2003-03-10 Andrew Cagney <cagney@redhat.com>
8168
8169 * gdbarch.h: Re-generate.
8170
8171 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8172 PC.
8173 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8174 the PC register.
8175
8176 2003-03-08 Mark Kettenis <kettenis@gnu.org>
8177
8178 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8179
8180 2003-03-08 Andrew Cagney <cagney@redhat.com>
8181
8182 * cli-out.c: Update copyright.
8183 (cli_out_data): Define typedef. Use instead of ui_out_data.
8184
8185 2003-03-08 Andrew Cagney <cagney@redhat.com>
8186
8187 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8188 the result.
8189
8190 2003-03-07 Andrew Cagney <cagney@redhat.com>
8191
8192 * gdbarch.sh: Don't generate two macro definitions when an
8193 undefined macro taking no arguments.
8194 * gdbarch.h: Regenerate.
8195
8196 2002-03-07 Michal Ludvig <mludvig@suse.cz>
8197
8198 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8199 (x86_64_unwind_dummy_id): New functions.
8200 (x86_64_init_abi): Register these two new functions.
8201
8202 2003-03-07 Michal Ludvig <mludvig@suse.cz>
8203
8204 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8205 (x86_64_skip_prologue): Move prologue detection to
8206 separate function.
8207 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8208
8209 2003-03-05 Andrew Cagney <cagney@redhat.com>
8210
8211 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8212 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8213 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8214 to use unwind_dummy_id when a dummy frame.
8215 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8216 predicate.
8217 * gdbarch.h, gdbarch.c: Regneerate.
8218
8219 2003-03-05 Andrew Cagney <cagney@redhat.com>
8220
8221 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8222 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8223 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8224 values.
8225
8226 2003-03-05 Andrew Cagney <cagney@redhat.com>
8227
8228 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8229 (struct d10v_unwind_cache): Delete field "frameless". Replace
8230 "next_addr" with "sp_offset". Add "r11_offset".
8231 (d10v_frame_unwind_cache): Update.
8232 (prologue_find_regs): Update. When "mv r11, sp", save the
8233 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8234 RN was saved in r11_offset.
8235
8236 2003-03-05 Andrew Cagney <cagney@redhat.com>
8237
8238 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8239 cached PC value in the next frame.
8240
8241 2003-03-05 Andrew Cagney <cagney@redhat.com>
8242
8243 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8244 "id_unwind_cache" with "id".
8245 (frame_id_unwind): Delete declaration.
8246 * frame.c (frame_id_unwind): Delete function.
8247 (get_prev_frame): Call the frame id unwind method directly. Store
8248 the returned next frame's ID value in NEXT_FRAME. Note that there
8249 is a problem with the wrong unwind ID being called with the wrong
8250 unwind cache.
8251
8252 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8253
8254 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8255
8256 2003-03-05 James Ingham <jingham@apple.com>
8257 Daniel Jacobowitz <drow@mvista.com>
8258
8259 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8260 (auto_cp_abi): New variable.
8261 (current_cp_abi, num_cp_abis): Make static.
8262 (CP_ABI_MAX): Define.
8263 (cp_abis): Turn into an array.
8264 (value_virtual_fn_field): Fix formatting.
8265 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8266 takes a pointer.
8267 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8268 (list_cp_abis, _initialize_cp_abi): New functions.
8269 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8270 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8271 switch_to_cp_abi. Update prototype for register_cp_abi.
8272 * Makefile.in (cp-abi.o): Update dependencies.
8273 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8274 instead of switch_to_cp_abi.
8275 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8276 register_cp_abi.
8277 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8278 register_cp_abi.
8279 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8280
8281 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8282
8283 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8284 * dwarf2loc.c: Include "regcache.h".
8285 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8286 register_size.
8287 * Makefile.in (dwarf2loc.o): Update dependencies.
8288
8289 2003-03-04 Theodore A. Roth <troth@openavr.org>
8290
8291 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8292 number of io registers reported by remote target is not a multiple of
8293 step.
8294
8295 2003-03-04 David Carlton <carlton@math.stanford.edu>
8296
8297 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8298 (lookup_symbol_aux_psymtabs): Update call to
8299 lookup_partial_symbol.
8300 (lookup_transparent_type, find_main_psymtab)
8301 (make_symbol_overload_list): Ditto.
8302
8303 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8304
8305 * MAINTAINERS (Write after approval): Update my email address.
8306
8307 2003-03-03 Andrew Cagney <cagney@redhat.com>
8308
8309 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8310 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8311 predicate. Replace MAX_REGISTER_RAW_SIZE.
8312 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8313 MAX_REGISTER_VIRTUAL_SIZE.
8314 * regcache.c (legacy_max_register_raw_size): New function.
8315 (legacy_max_register_virtual_size): New function.
8316 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8317 (MAX_REGISTER_RAW_SIZE): Define.
8318 (legacy_max_register_raw_size): Declare.
8319 (legacy_max_register_virtual_size): Declare.
8320 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8321 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8322 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8323 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8324 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8325 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8326 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8327 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8328 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8329 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8330 * vax-tdep.c (vax_gdbarch_init): Update.
8331 * v850-tdep.c (v850_gdbarch_init): Update.
8332 * sparc-tdep.c (sparc_gdbarch_init): Update.
8333 * sh-tdep.c (sh_gdbarch_init): Update.
8334 * s390-tdep.c (s390_gdbarch_init): Update.
8335 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8336 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8337 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8338 * mips-tdep.c (mips_gdbarch_init): Update.
8339 * mcore-tdep.c (mcore_gdbarch_init): Update.
8340 * m68k-tdep.c (m68k_gdbarch_init): Update.
8341 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8342 * ia64-tdep.c (ia64_gdbarch_init): Update.
8343 * i386-tdep.c (i386_gdbarch_init): Update.
8344 * hppa-tdep.c (hppa_gdbarch_init): Update.
8345 * h8300-tdep.c (h8300_gdbarch_init): Update.
8346 * frv-tdep.c (frv_gdbarch_init): Update.
8347 * cris-tdep.c (cris_gdbarch_init): Update.
8348 * avr-tdep.c (avr_gdbarch_init): Update.
8349 * arm-tdep.c (arm_gdbarch_init): Update.
8350 * alpha-tdep.c (alpha_gdbarch_init): Update.
8351 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8352 max_register_raw_size or max_register_virtual_size.
8353
8354 2003-03-03 David Carlton <carlton@math.stanford.edu>
8355
8356 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8357 SYMBOL_MATCHES_NAME, add comment.
8358 (SYMBOL_MATCHES_NATURAL_NAME): New.
8359 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8360 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8361 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8362 * symtab.c (lookup_partial_symbol): Use
8363 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8364 unhelpful comment.
8365 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8366 SYMBOL_MATCHES_NAME.
8367 Fix for PR c++/33.
8368
8369 2003-03-03 David Carlton <carlton@math.stanford.edu>
8370
8371 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8372 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8373 by regexp matching against SYMBOL_NATURAL_NAME.
8374
8375 2003-03-03 David Carlton <carlton@math.stanford.edu>
8376
8377 * linespec.c (find_method): Extract code into collect_methods.
8378 (collect_methods): New.
8379
8380 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8381
8382 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8383 get_frame_base.
8384
8385 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8386 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8387
8388 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8389
8390 * arch-utils.c (generic_register_byte): Fix to use the loop index
8391 and not regnum when summing the size of all registers up to regnum.
8392
8393 2003-03-01 Andrew Cagney <cagney@redhat.com>
8394
8395 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8396 FRAME_INIT_SAVED_REGS.
8397 * gdbarch.h, gdbarch.c: Regenerate.
8398 * stack.c (frame_info): Update.
8399 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8400 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8401 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8402 * ns32k-tdep.c (ns32k_pop_frame): Update.
8403 * mips-tdep.c (mips_pop_frame): Update.
8404 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8405 * ia64-tdep.c (ia64_frame_chain): Update.
8406 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8407 (ia64_frameless_function_invocation): Update.
8408 (ia64_init_extra_frame_info): Update.
8409 (ia64_pop_frame_regular): Update.
8410 * frame.h (struct frame_info): Update comment.
8411 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8412 * frame.c (frame_saved_regs_register_unwind): Update.
8413 (frame_saved_regs_register_unwind): Update.
8414 (deprecated_generic_get_saved_register): Update.
8415 * cris-tdep.c: Update comment.
8416 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8417 Rename macro.
8418 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8419 * x86-64-tdep.c (x86_64_init_abi): Update.
8420 * vax-tdep.c (vax_gdbarch_init): Update.
8421 * v850-tdep.c (v850_gdbarch_init): Update.
8422 * sparc-tdep.c (sparc_gdbarch_init): Update.
8423 * sh-tdep.c (sh_gdbarch_init): Update.
8424 * s390-tdep.c (s390_gdbarch_init): Update.
8425 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8426 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8427 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8428 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8429 * mips-tdep.c (mips_gdbarch_init): Update.
8430 * mcore-tdep.c (mcore_gdbarch_init): Update.
8431 * m68k-tdep.c (m68k_gdbarch_init): Update.
8432 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8433 * ia64-tdep.c (ia64_gdbarch_init): Update.
8434 * i386-tdep.c (i386_gdbarch_init): Update.
8435 * frv-tdep.c (frv_gdbarch_init): Update.
8436 * avr-tdep.c (avr_gdbarch_init): Update.
8437 * arm-tdep.c (arm_gdbarch_init): Update.
8438 * alpha-tdep.c (alpha_gdbarch_init): Update.
8439
8440 2003-03-01 Andrew Cagney <cagney@redhat.com>
8441
8442 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8443 option enum and switch. When no windows, set the interpreter to
8444 INTERP_CONSOLE.
8445
8446 2003-03-01 Andrew Cagney <cagney@redhat.com>
8447
8448 * main.c (captured_main): Replace magic option characters with an
8449 enum.
8450
8451 2003-03-01 Andrew Cagney <cagney@redhat.com>
8452
8453 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8454 INIT_EXTRA_FRAME_INFO.
8455 * gdbarch.h, gdbarch.c: Regenerate.
8456 * arm-tdep.c: Update comments.
8457 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8458 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8459 * frame.h, avr-tdep.c: Ditto.
8460 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8461 (create_new_frame, legacy_get_prev_frame): Ditto.
8462 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8463 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8464 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8465 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8466 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8467 * v850-tdep.c (v850_gdbarch_init): Ditto.
8468 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8469 * sh-tdep.c (sh_gdbarch_init): Ditto.
8470 * s390-tdep.c (s390_gdbarch_init): Ditto.
8471 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8472 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8473 * mips-tdep.c (mips_gdbarch_init): Ditto.
8474 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8475 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8476 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8477 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8478 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8479 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8480 * frv-tdep.c (frv_gdbarch_init): Ditto.
8481 * cris-tdep.c (cris_gdbarch_init): Ditto.
8482 * avr-tdep.c (avr_gdbarch_init): Ditto.
8483 * arm-tdep.c (arm_gdbarch_init): Ditto.
8484 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8485 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8486
8487 2003-03-01 Andrew Cagney <cagney@redhat.com>
8488
8489 * gdbarch.sh (register_type): New function with predicate.
8490 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8491 * gdbarch.h, gdbarch.c: Re-generate.
8492 * arch-utils.c (generic_register_byte): Use generic_register_size.
8493 (generic_register_size): When available, use
8494 gdbarch_register_type.
8495 * regcache.c (init_regcache_descr): When available, initialize the
8496 register type array using gdbarch_register_type. If the
8497 architecture supplies gdbarch_register_type, do not use the legacy
8498 regcache layout.
8499 * d10v-tdep.c (d10v_register_type): Replace
8500 d10v_register_virtual_type.
8501 (d10v_gdbarch_init): Set register_type instead of
8502 register_virtual_type.
8503
8504 2003-03-01 Andrew Cagney <cagney@redhat.com>
8505
8506 * Makefile.in (ax-gdb.o): Update dependencies.
8507 * ax-gdb.c: Include "regcache.h".
8508 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8509 * findvar.c (value_of_register): Ditto.
8510 * infcmd.c (default_print_registers_info): Ditto.
8511
8512 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8513
8514 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8515 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8516
8517 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8518
8519 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8520 of STREQ.
8521
8522 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8523
8524 * Makefile.in (dwarf2loc.o): Update dependencies.
8525 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8526 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8527 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8528 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8529 (locexpr_tracepoint_var_ref): New function.
8530 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8531
8532 2003-02-28 Andrew Cagney <cagney@redhat.com>
8533
8534 * regcache.c (register_size): New function.
8535 * regcache.h (register_size): Declare
8536 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8537 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8538
8539 2003-02-28 David Carlton <carlton@math.stanford.edu>
8540
8541 * linespec.c (decode_compound): Extract code into find_method.
8542 (find_method): New.
8543
8544 2003-02-28 J. Brobecker <brobecker@gnat.com>
8545
8546 * Makefile.in: Add rules to build and link in observer.o.
8547
8548 2003-02-27 J. Brobecker <brobecker@gnat.com>
8549
8550 * observer.c: Minor comments edits.
8551
8552 2003-02-27 J. Brobecker <brobecker@gnat.com>
8553
8554 * observer.h, observer.c: New file.
8555
8556 2003-02-27 Andrew Cagney <cagney@redhat.com>
8557
8558 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8559
8560 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8561
8562 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8563 (M6812_OP_STS_EXT): Likewise.
8564 (m6811_prologue): Use the above to recognize prologue.
8565 (m6812_prologue): Likewise.
8566
8567 2003-02-27 David Carlton <carlton@math.stanford.edu>
8568
8569 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8570 SYMBOL_PRINT_NAME.
8571 (compare_psymbols): Ditto.
8572 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8573
8574 2003-02-27 Michael Snyder <msnyder@redhat.com>
8575
8576 * f-lang.c (build_fortran_types): New function.
8577 (_initialize_f_language): Gdbarch-register built-in fortran types.
8578 * doublest.c (extract_floating): Fix warning text.
8579
8580 2003-02-27 Andrew Cagney <cagney@redhat.com>
8581
8582 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8583 predicate. Replaces PUSH_DUMMY_FRAME.
8584 * gdbarch.h, gdbarch.c: Regnerate.
8585 * valops.c (hand_function_call): Update. Call
8586 generic_push_dummy_frame directly.
8587 * vax-tdep.c (vax_gdbarch_init): Update.
8588 * sparc-tdep.c (sparc_gdbarch_init): Update.
8589 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8590 * m68k-tdep.c (m68k_gdbarch_init): Update.
8591 * hppa-tdep.c (hppa_gdbarch_init): Update.
8592 * alpha-tdep.c (alpha_gdbarch_init): Update.
8593 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8594 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8595 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8596 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8597 push_dummy_frame to generic_push_dummy_frame.
8598 * v850-tdep.c (v850_gdbarch_init): Ditto.
8599 * sh-tdep.c (sh_gdbarch_init): Ditto.
8600 * s390-tdep.c (s390_gdbarch_init): Ditto.
8601 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8602 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8603 * mips-tdep.c (mips_gdbarch_init): Ditto.
8604 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8605 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8606 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8607 * i386-tdep.c (i386_gdbarch_init): Ditto.
8608 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8609 * frv-tdep.c (frv_gdbarch_init): Ditto.
8610 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8611 * cris-tdep.c (cris_gdbarch_init): Ditto.
8612 * avr-tdep.c (avr_gdbarch_init): Ditto.
8613 * arm-tdep.c (arm_gdbarch_init): Ditto.
8614
8615 2003-02-26 Kevin Buettner <kevinb@redhat.com>
8616
8617 * mips-tdep.c (show_mips_abi): New function.
8618 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8619 command ``show mips abi''.
8620
8621 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8622
8623 From Elena Zannoni <ezannoni@redhat.com>
8624 * dbxread.c (process_one_symbol): Only record line 0 if one or
8625 more sline entries have been seen for the function.
8626
8627 2003-02-26 Michael Chastain <mec@shout.net>
8628
8629 * configure: Regenerate with autoconf 000227.
8630
8631 2003-02-26 Michael Chastain <mec@shout.net>
8632
8633 Close PR build/660.
8634 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8635 for old libc5/glibc.
8636 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8637
8638 2003-02-26 Kris Warkentin <kewarken@qnx.com>
8639
8640 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8641 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8642
8643 2003-02-26 Michael Chastain <mec@shout.net>
8644
8645 * configure.in: New variable HAVE_UINTPTR_T.
8646 * configure, config.in: Regenerated.
8647
8648 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
8649
8650 Fix PR build/1097.
8651 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8652
8653 2003-02-25 Andrew Cagney <cagney@redhat.com>
8654
8655 * frame.c (get_prev_frame): Add comment on check for
8656 inside_entry_func. Only check for inside_entry_file when not a
8657 dummy and not a sentinel. Check that the new frame is not inner
8658 to the old frame.
8659
8660 2003-02-25 Andrew Cagney <cagney@redhat.com>
8661
8662 * frame.c (frame_debug): New variable.
8663 (_initialize_frame): Add "set/show debug frame" command.
8664 (get_prev_frame): When frame_debug, print reason why unwind
8665 failed.
8666
8667 2003-02-25 Michael Chastain <mec@shout.net>
8668
8669 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8670 to avoid uintptr_t definition problems.
8671
8672 2003-02-25 David Carlton <carlton@math.stanford.edu>
8673
8674 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8675 (SYMBOL_LINKAGE_NAME): Ditto.
8676 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8677 SYMBOL_LINKAGE_NAME.
8678 (struct general_symbol_info): Expand comment.
8679 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8680 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8681 (SYMBOL_MATCHES_REGEXP): Ditto.
8682 * symtab.c (symbol_natural_name): New function.
8683 * objfiles.h: Replace all uses of SYMBOL_NAME by
8684 DEPRECATED_SYMBOL_NAME.
8685 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8686 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8687 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8688 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8689 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8690 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8691 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8692 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8693 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8694 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8695 * ada-exp.y: Ditto.
8696 * ada-exp.y: Update copyright.
8697 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8698 * cp-valprint.c: Ditto.
8699
8700 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8701
8702 * infptrace.c (detach): Do not flag error if ptrace detach fails
8703 and errno is set to ESRCH.
8704
8705 2003-02-24 Andrew Cagney <cagney@redhat.com>
8706
8707 * infptrace.c (udot_info): Change type of udot_off to long. Use
8708 paddr when printing udot_off's value.
8709
8710 2003-02-24 David Carlton <carlton@math.stanford.edu>
8711
8712 * symtab.c (make_symbol_overload_list): Only read in partial
8713 symtabs containing a matching partial symbol.
8714
8715 2003-02-24 David Carlton <carlton@math.stanford.edu>
8716
8717 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8718 do the comparison, not strcmp.
8719 * symfile.c (compare_psymbols): Ditto.
8720 * defs.h: Declare strcmp_iw_ordered.
8721 * utils.c (strcmp_iw_ordered): New function.
8722
8723 2003-02-24 Jim Blandy <jimb@redhat.com>
8724
8725 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8726 support, shared libs): Remove my name from here, to better reflect
8727 reality.
8728
8729 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8730
8731 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8732 (target_ops): Add to_have_continuable_watchpoint.
8733 * target.c (update_current_target): Add INHERIT line for
8734 to_have_continuable_watchpoint.
8735 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8736 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8737 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8738 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8739
8740 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
8741
8742 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8743 maintainership.
8744
8745 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8746
8747 * solib.c (solib_open): Call target defined search function after
8748 failing with solib-search-path.
8749 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8750 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8751
8752 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8753
8754 * MAINTAINERS: Add myself to Write After section.
8755
8756 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8757
8758 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8759
8760 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8761
8762 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8763 (m68hc11_add_reggroups): New function.
8764 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8765 (m68hc11_gdbarch_init): Install the reggroups.
8766 (_initialize_m68hc11_tdep): Initialize them.
8767
8768 2003-02-21 James E Wilson <wilson@tuliptree.org>
8769
8770 * MAINTAINERS: Update my email address.
8771
8772 2003-02-21 David Carlton <carlton@math.stanford.edu>
8773
8774 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8775
8776 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
8777
8778 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8779 * symtab.h: Add opaque declarations of struct axs_value and
8780 struct agent_expr.
8781 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8782 (struct location_funcs): New type.
8783 (struct symbol): Add "loc" to aux_value.
8784 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8785 * dwarf2read.c: Include "dwarf2expr.h".
8786 (dwarf2_symbol_mark_computed): New function.
8787 (read_func_scope): Use it.
8788 (var_decode_location): New function.
8789 (new_symbol): Use it.
8790 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8791
8792 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8793 (dwarf2expr_h, dwarf2loc_h): New variables.
8794 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8795 (dwarf2expr.o, dwarf2loc.o): New rules.
8796 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8797 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8798 LOC_COMPUTED_ARG.
8799 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8800 * m2-exp.y (yylex): Likewise.
8801 * printcmd.c (address_info, print_frame_args): Likewise.
8802 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8803 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8804 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8805 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8806 * symtab.c (lookup_block_symbol): Likewise.
8807
8808 2003-02-20 Adam Fedor <fedor@gnu.org>
8809
8810 * symtab.h: Remove objc_specific struct
8811 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8812 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8813 Have language_objc use cplus_specific struct.
8814
8815 2003-02-20 Tom Tromey <tromey@redhat.com>
8816
8817 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8818 TYPE_NAME, when printing a String value. PR java/1075.
8819
8820 2003-02-20 Adam Fedor <fedor@gnu.org>
8821
8822 * objc-lang.h (find_methods): Remove declaration.
8823 * objc-lang.c (find_methods): Make static.
8824
8825 2003-02-20 Christopher Faylor <cgf@redhat.com>
8826
8827 * win32-nat.c (get_image_name): Check return value from
8828 ReadProcessMemory.
8829 (child_xfer_memory): Ditto.
8830
8831 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
8832
8833 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8834 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8835 '${exec_prefix}' (in addition to the expansion thereof) as
8836 relocatable.
8837 * configure: Rebuilt.
8838
8839 2003-02-20 David Carlton <carlton@math.stanford.edu>
8840
8841 * symtab.c (search_symbols): Revert the search_symbols part of my
8842 2002-12-23 patch. Add comment.
8843
8844 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8845
8846 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8847 * dbxread.c (elfstab_build_psymtabs): Don't call
8848 install_minimal_symbols.
8849 (stabsect_build_psymtabs): Likewise.
8850 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8851 earlier.
8852 * somread.c (som_symfile_read): Call install_minimal_symbols
8853 and do_cleanups earlier.
8854 * nlmread.c (nlm_symfile_read): Likewise.
8855 * mdebugread.c (elfmdebug_build_psymtabs): Call
8856 install_minimal_symbols and make appropriate cleanups.
8857
8858 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8859
8860 * solib.c (reload_shared_libraries): New function.
8861 (_initialize_solib): Add callbacks for ``set solib-search-path''
8862 and ``set solib-absolute-prefix''.
8863
8864 2003-02-20 David Carlton <carlton@math.stanford.edu>
8865
8866 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8867 expand comment.
8868 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8869 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8870 * ada-typeprint.c (ada_typedef_print): Ditto.
8871 * ax-gdb.c (gen_var_ref): Ditto.
8872 * breakpoint.c (print_one_breakpoint): Ditto.
8873 * buildsym.c (finish_block): Ditto.
8874 * c-valprint.c (c_val_print): Ditto.
8875 * expprint.c (print_subexp): Ditto.
8876 * findvar.c (locate_var_value): Ditto.
8877 * infcmd.c (jump_command): Ditto.
8878 * linespec.c (decode_line_2, decode_compound): Ditto.
8879 * maint.c (maintenance_translate_address): Ditto.
8880 * objc-lang.c (compare_selectors, compare_classes): Ditto.
8881 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8882 Ditto.
8883 * p-valprint.c (pascal_val_print): Ditto.
8884 * stabsread.c (define_symbol): Ditto.
8885 * stack.c (print_frame, frame_info, print_block_frame_locals)
8886 (print_frame_arg_vars, return_command): Ditto.
8887 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8888 * symmisc.c (print_symbol): Ditto.
8889 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8890 (compare_search_syms, print_symbol_info, print_msymbol_info)
8891 (rbreak_command): Ditto.
8892 * tracepoint.c (tracepoints_info): Ditto.
8893 * typeprint.c (typedef_print): Ditto.
8894 * valops.c (value_of_variable, hand_function_call): Ditto.
8895 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8896 * ada-typeprint.c: Update Copyright.
8897 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8898 * tracepoint.c, cli/cli-cmds.c: Ditto.
8899
8900 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8901
8902 * frame.c (generic_unwind_get_saved_register): Make non-static.
8903 * frame.h (generic_unwind_get_saved_register): Declare.
8904 * mips-tdep.c (read_next_frame_reg): Fetch register from
8905 current regcache when frame is NULL.
8906 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8907 that must be NULL.
8908 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8909 instead of frame_register_unwind().
8910
8911 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8912
8913 * remote-sim.c (gdbsim_insert_breakpoint)
8914 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8915 code.
8916
8917 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8918
8919 * remote.c (_initialize_remote): Add commands "set/show remote
8920 hardware-watchpoint-limit" and "set/show remote
8921 hardware-breakpoint-limit".
8922 (remote_hw_watchpoint_limit): Initialize to -1.
8923 (remote_hw_breakpoint_limit): Ditto.
8924 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8925
8926 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8927
8928 * coff-pe-read.c: New file - support reading of minimal symbols from a
8929 portable executable using the export table.
8930 * coff-pe-read.h: New file.
8931 * coffread.c: Include coff-pe-read.h.
8932 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8933 debugging symbols found.
8934 * Makefile.in (SFILES): Add coff-pe-read.o.
8935 (coff_pe_read_h): Define.
8936 (COMMON_OBS): Add coff-pe-read.o.
8937 (coffread.o): Add coff_pe_read_h dependency.
8938 (coff-pe-read.o): New target.
8939
8940 2003-02-19 David Carlton <carlton@math.stanford.edu>
8941
8942 * Makefile.in (SFILES): Add block.c.
8943 (block_h): New.
8944 (COMMON_OBS): Add block.o.
8945 (block.o): New.
8946 (x86-64-tdep.o): Add $(block_h).
8947 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8948 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8949 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8950 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8951 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8952 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8953 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8954 * value.h: Add opaque declaration for struct block.
8955 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8956 * ada-lang.h: Ditto.
8957 * x86-64-tdep.c: #include "block.h"
8958 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8959 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8960 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8961 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8962 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8963 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8964 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8965 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8966 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8967 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8968 * symtab.c (block_function): Ditto.
8969 (contained_in): Ditto.
8970 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8971 block.h. Add opaque declaration for struct block.
8972 * symtab.h: Move block_function and contained_in declarations to
8973 block.h. Add opaque declarations for struct block, struct
8974 blockvector.
8975 (struct block): Move to block.h.
8976 (struct blockvector): Ditto.
8977 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8978 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8979 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8980 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8981 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8982 Ditto.
8983 * block.c: New file.
8984 * block.h: New file.
8985
8986 2003-02-19 Theodore A. Roth <troth@openavr.org>
8987
8988 * avr-tdep.c (avr_extract_return_value): Remove function.
8989 (avr_store_return_value): Remove function.
8990 (avr_extract_struct_value_address): Remove function.
8991 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8992
8993 2003-02-19 Andrew Cagney <ac131313@redhat.com>
8994
8995 * rs6000-tdep.c: Include "gdb_assert.h".
8996 (registers_e500): Add "acc" and "spefscr".
8997 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8998 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8999 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9000 really is "r0".
9001 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9002
9003 2003-02-18 Keith Seitz <keiths@redhat.com>
9004
9005 * Makefile.in: Add gdbtk-interps.c.
9006
9007 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9008
9009 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9010 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9011
9012 2003-02-18 Andrew Cagney <cagney@redhat.com>
9013
9014 * symtab.h (struct objfile): Add opaque declaration.
9015
9016 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
9017
9018 From Jim Ingham <jingham@apple.com>:
9019 * dbxread.c (process_one_symbol): Use last_function_start rather
9020 than function_start_offset to find the real beginning of the
9021 current function. The latter is just the text section offset on
9022 some systems, the former is always the real function start.
9023
9024 2003-02-17 Andrew Cagney <cagney@redhat.com>
9025
9026 * configure.in: Revert ${target} != ${host}.
9027
9028 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9029
9030 * configure.in (Makefile): Use the test ${target} != ${host},
9031 instead of the absence of the "nm.h" file, to determine of the
9032 configuration non-native.
9033 * configure: Regenerate.
9034
9035 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
9036
9037 From Brian Ford <ford@vss.fsi.com>
9038
9039 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9040 conditionalize tui_active test.
9041 (lookup_cmd_1): Ditto.
9042
9043 2003-02-14 Mark Kettenis <kettenis@gnu.org>
9044
9045 * configure.in: Add check for _etext.
9046 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9047 available.
9048 * config.in, configure: regenerated.
9049
9050 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
9051
9052 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9053
9054 2003-02-14 Andrew Cagney <ac131313@redhat.com>
9055
9056 * main.c (tui_version): Delete variable.
9057 (captured_main): When --tui, set interpreter_p to "tui" instead of
9058 enabling tui_version.
9059 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9060 tui_version.
9061 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9062 * cli/cli-cmds.c (disassemble_command): Ditto.
9063 * defs.h (tui_version): Delete declaration.
9064 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9065 (tui-interp.o): Add rules.
9066 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9067
9068 2003-02-14 Christopher Faylor <cgf@redhat.com>
9069
9070 * win32-nat.c (register_loaded_dll): Correctly set address range for
9071 just-loaded dll.
9072
9073 2003-02-12 Jason Molenda (jmolenda@apple.com)
9074
9075 * symmisc.c (print_objfile_statistics): Include information about
9076 the number of psymtabs and symtabs in each object file.
9077
9078 2003-02-13 Keith R Seitz <keiths@redhat.com>
9079
9080 * main.h (struct captured_main_args): Add interpreter_p.
9081 * main.c (captured_main): Initialize interpreter_p from context.
9082 * gdb.c (main): Set interpreter_p argument.
9083 * Makefile.in (gdb.o): Add dependency for interps.h.
9084
9085 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9086
9087 * event-top.c (cli_command_loop): Delete declaration.
9088 (_initialize_event_loop): Delete function setting event_loop_hook.
9089 * event-top.h (cli_command_loop): Declare. Update copyright.
9090 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9091 * interps.c (current_interp_command_loop): When event_loop_p, call
9092 cli_command_loop.
9093
9094 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9095
9096 * interps.h (interp_command_loop_ftype): Change return type to
9097 void.
9098
9099 2003-02-12 Michal Ludvig <mludvig@suse.cz>
9100
9101 * x86-64-tdep.c (x86_64_extract_return_value)
9102 (x86_64_store_return_value): Use regcache instead of regbuf.
9103 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9104 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9105
9106 2003-02-11 Andrew Cagney <ac131313@redhat.com>
9107
9108 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9109 * aclocal.m4: Regenerate.
9110 * configure: Regenerate.
9111
9112 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9113 TCL_LD_SEARCH_FLAGS.
9114
9115 2003-02-10 Michal Ludvig <mludvig@suse.cz>
9116
9117 * dwarf2cfi.c: Reindented.
9118
9119 2003-02-09 Andrew Cagney <ac131313@redhat.com>
9120
9121 * interps.c (clear_interpreter_hooks): Convert function definition
9122 to ISO C.
9123
9124 2003-02-07 David Carlton <carlton@math.stanford.edu>
9125
9126 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9127
9128 2003-02-07 Kevin Buettner <kevinb@redhat.com>
9129
9130 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9131 (struct type): ...to here.
9132 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9133 field.
9134 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9135 (replace_type): Set length on all type variants for a given type.
9136
9137 2003-02-07 Andrew Cagney <ac131313@redhat.com>
9138
9139 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9140 <sys/stat.h>.
9141 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9142
9143 2003-02-06 Andrew Cagney <ac131313@redhat.com>
9144
9145 * Makefile.in (symm-nat.o): Update dependencies.
9146 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9147 (lynx-nat.o, ia64-linux-nat.): Ditto.
9148 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9149 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9150 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9151
9152 * Makefile.in (inflow_h): Define.
9153 (procfs.o, inflow.o, procfs.o): Update dependencies.
9154 * inftarg.c (child_stop): Delete extern declaration of
9155 inferior_process_group. Include "inflow.h".
9156 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9157 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9158 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9159 (our_process_group, inferior_process_group): Extern declarations.
9160
9161 * procfs.c: Include "gdb_assert.h".
9162
9163 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9164 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9165 * jv-typeprint.c (java_type_print_base): Ditto.
9166 * typeprint.c (typedef_print): Eliminate STREQ.
9167 * cli/cli-script.c (define_command, define_command): Ditto.
9168 * main.c (captured_main): Ditto.
9169 * values.c (lookup_internalvar): Ditto.
9170 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9171 within `if' conditional.
9172 * linespec.c (decode_line_2): Ditto.
9173 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9174 (bfd_openw_with_cleanup): Ditto.
9175
9176 2003-02-07 Mark Kettenis <kettenis@gnu.org>
9177
9178 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9179 legacy_extract_return_value and store_return_value to
9180 legacy_return_value.
9181
9182 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9183
9184 * win32-nat.c (get_relocated_section_addrs): New function. Find
9185 section load addresses for symbol handling in relocated DLLs.
9186 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9187
9188 2003-02-05 Fred Fish <fnf@intrinsity.com>
9189
9190 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9191 '=' and '!='.
9192 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9193 with '&' and '=='.
9194 (angel_RDI_info): Ditto.
9195 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9196 with '&' and '!='.
9197 (threads_continue_all_with_signals): Ditto.
9198
9199 2003-02-05 Jim Ingham <jingham@apple.com>
9200 Keith Seitz <keiths@redhat.com>
9201 Elena Zannoni <ezannoni@redhat.com>
9202 Andrew Cagney <ac131313@redhat.com>
9203
9204 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9205 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9206 (SUBDIR_MI_OBS): Add "mi-interp.o".
9207 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9208 (SFILES): Add "interps.c".
9209 (COMMON_OBS): Add "interps.o".
9210 (interps_h, mi_main_h): Define.
9211 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9212 (mi-main.o, main.o, event-top.o): Update dependencies.
9213 * cli/cli-interp.c: New file.
9214 * interps.h, interps.c: New files.
9215 * top.c: (gdb_init): Don't install the default interpreter, handed
9216 by captured_main.
9217 * main.c: Include "interps.h".
9218 (interpreter_p): Note that it should malloc'ed.
9219 (captured_command_loop): Call current_interp_command_loop.
9220 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9221 xfree and xstrdup when updating interpreter_p. Install the
9222 default interpreter. Add hack to stop mi1's copyright notice
9223 being encoded.
9224 * event-top.h (gdb_setup_readline): Declare.
9225 (gdb_disable_readline): Declare.
9226 * event-top.c: Include "interps.h".
9227 (display_gdb_prompt): Call current_interp_display_prompt_p.
9228 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9229 gdb_stdlog, and gdb_stdtarg.
9230 (_initialize_event_loop): Don't call gdb_setup_readline.
9231 * cli-out.c (cli_out_set_stream): New function.
9232 * cli-out.h (cli_out_set_stream): Declare.
9233
9234 2003-02-06 Mark Kettenis <kettenis@gnu.org>
9235
9236 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9237 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9238 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9239 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9240 config/i386/i386v42mp.mt: Removed.
9241
9242 2003-02-05 Mark Kettenis <kettenis@gnu.org>
9243
9244 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9245 GDB_OSABI_SOLARIS.
9246
9247 2003-02-05 Michael Chastain <mec@shout.net>
9248
9249 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9250 2.12.1 and earlier versions.
9251
9252 2003-02-05 Andrew Cagney <ac131313@redhat.com>
9253
9254 Remove orphaned hosts, targets and files.
9255 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9256 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9257 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9258 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9259 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9260 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9261 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9262 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9263 * config/sparc/tm-sp64sim.h: Delete.
9264 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9265 hosts.
9266 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9267 mips*-dec-mach3* targets.
9268
9269 2003-02-04 Michael Chastain <mec@shout.net>
9270
9271 * NEWS: Fix typo: sepcifying -> specifying.
9272
9273 2003-02-04 Michael Chastain <mec@shout.net>
9274
9275 * dwarfread.c: Add documentation on the state of dwarf-1,
9276 looking towards obsoletion.
9277
9278 2003-02-03 Michael Chastain <mec@shout.net>
9279
9280 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9281 gdb/testsuite/gdb.c++/pr-1023.exp.
9282
9283 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9284
9285 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9286 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9287
9288 * utils.c (init_page_info): Delete reference to MPW in comments.
9289 * main.c (captured_main): Delete #ifdef MPW.
9290
9291 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9292
9293 * NEWS: Note that the m32r-*-elf* is obsolete.
9294 * monitor.c (monitor_expect): Obsolete reference to m32r.
9295 * configure.tgt: Mark m32r-*-elf* as obsolete.
9296 * MAINTAINERS: Mark m32k as obsolete.
9297 * m32r-rom.c: Obsolete file.
9298 * config/m32r/m32r.mt: Obsolete file.
9299 * config/m32r/tm-m32r.h: Obsolete file.
9300 * m32r-stub.c: Obsolete file.
9301 * m32r-tdep.c: Obsolete file.
9302
9303 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9304
9305 * NEWS: Mention that the z8k-zilog-none is obsolete.
9306 * MAINTAINERS: Mark z8k as obsolete.
9307 * configure.tgt: Obsolete the z8k-*-coff* target.
9308 * config/z8k/z8k.mt: Obsolete file.
9309 * config/z8k/tm-z8k.h: Obsolete file.
9310 * z8k-tdep.c: Obsolete file.
9311
9312 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9313
9314 * NEWS: Mention that the mn10200-elf is obsolete.
9315 * configure.tgt: Obsolete mn10200-*-* target.
9316 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9317 mention that the mn10200 is obsolete.
9318 * breakpoint.h: Ditto.
9319 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9320 * config/mn10200/mn10200.mt: Obsolete file.
9321 * config/mn10200/tm-mn10200.h: Obsolete file.
9322 * mn10200-tdep.c: Obsolete file.
9323
9324 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9325
9326 * MAINTAINERS: Mark h8500 as obsolete.
9327 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9328 * findvar.c (value_from_register): Ditto.
9329 * h8500-tdep.c: Mark file as obsolete.
9330 * config/h8500/h8500.mt: Ditto.
9331 * config/h8500/tm-h8500.h: Ditto.
9332 * NEWS: Mention that h8500 is obsolete.
9333
9334 2003-02-04 David Carlton <carlton@math.stanford.edu>
9335
9336 * objfiles.c (allocate_objfile): Always set name. Add comment at
9337 start of function.
9338 * jv-lang.c (get_dynamics_objfile): Add comment.
9339
9340 2003-02-04 David Carlton <carlton@math.stanford.edu>
9341
9342 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9343 * printcmd.c (build_address_symbolic): Replace uses of
9344 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9345 SYMBOL_NAME, and asm_demangle.
9346 Update copyright.
9347
9348 2003-02-04 David Carlton <carlton@math.stanford.edu>
9349
9350 * linespec.c (decode_compound): Extract code into
9351 lookup_prefix_sym.
9352 (lookup_prefix_sym): New function.
9353
9354 2003-02-04 David Carlton <carlton@math.stanford.edu>
9355
9356 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9357 FLOAT_COERCION_BADNESS.
9358 * gdbtypes.c (rank_one_type): Replace all uses of
9359 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9360
9361 2003-02-04 Jim Blandy <jimb@redhat.com>
9362
9363 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9364 section, let dwarf_macinfo_section point to it, not
9365 dwarf_loc_section.
9366
9367 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9368
9369 Pointed out by Anton Blanchard <anton@samba.org>.
9370 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9371 (ppc_linux_at_sigtramp_return_path): Use it.
9372
9373 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9374
9375 * defs.h (streq): Add prototype.
9376 * utils.c (streq): New function.
9377
9378 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9379 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9380 * mdebugread.c (new_symbol): Likewise.
9381 * stabsread.c (define_symbol): Likewise.
9382 * coffread.c (process_coff_symbol): Likewise.
9383 * dwarfread.c (new_symbol): Likewise.
9384
9385 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9386 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9387 here.
9388 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9389 SYMBOL_INIT_DEMANGLED_NAME.
9390 * objfiles.c: Include "hashtab.h".
9391 (allocate_objfile): Call htab_set_functions_ex for the
9392 demangled_names_hash.
9393 (free_objfile): Call htab_delete for the demangled_names_hash.
9394 * objfiles.h (struct htab): Add declaration.
9395 (struct objfile): Add demangled_names_hash.
9396 * symfile.c: Include "hashtab.h".
9397 (reread_symbols): Call htab_delete for the demangled_names_hash.
9398 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9399 SYMBOL_NAME in the bcache.
9400 * symtab.c: Include "hashtab.h". Update comments.
9401 (create_demangled_names_hash, symbol_set_names): New functions.
9402 (symbol_find_demangled_name): New function, broken out from
9403 symbol_init_demangled_names.
9404 (symbol_init_demangled_names): Use it.
9405 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9406 (SYMBOL_SET_NAMES): New macro.
9407 (symbol_set_names): Add prototype.
9408
9409 2003-02-03 Jim Blandy <jimb@redhat.com>
9410
9411 Use a single, consistent representation for an empty minimal
9412 symbol table in an objfile.
9413 * objfiles.c (terminate_minimal_symbol_table): New function.
9414 (allocate_objfile): Call it.
9415 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9416 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9417 non-NULL.
9418 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9419 objfile has minimal symbols, compare minimal_symbol_count to zero,
9420 instead of comparing msymbols with NULL.
9421 * objfiles.c (have_minimal_symbols): Same.
9422 * solib-sunos.c (solib_add_common_symbols): Call
9423 terminate_minimal_symbol_table.
9424 * symfile.c (reread_symbols): Same.
9425
9426 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9427
9428 * s390-tdep.c (s390_address_class_type_flags)
9429 (s390_address_class_type_flags_to_name)
9430 (s390_address_class_name_to_type_flags): New functions.
9431 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9432 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9433
9434 2003-02-03 Michael Snyder <msnyder@redhat.com>
9435
9436 * arm-tdep.c: Fix spell-o in comment.
9437
9438 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9439
9440 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9441 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9442 error messages to contain BFD filename.
9443
9444 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9445
9446 Fix PR gdb/742 gdb/743 gdb/877
9447 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9448 (do_mixed_source_and_assembly): Use
9449 make_cleanup_ui_out_tuple_begin_end and
9450 make_cleanup_ui_out_tuple_begin_end.
9451 (do_mixed_source_and_assembly): Ditto.
9452 * thread.c (do_captured_list_thread_ids): Ditto.
9453 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9454 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9455 ui_out_tuple_end): Delete prototypes.
9456 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9457 ui_out_list_end, ui_out_tuple_end): Delete.
9458
9459 From Kevin Buettner <kevinb@redhat.com>:
9460 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9461 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9462 (do_cleanup_table_end): New functions.
9463 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9464 Use cleanups to invoke_ui_out_tuple_end().
9465 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9466 * cli/cli-setshow.c (cmd_show_list): Use
9467 make_cleanup_ui_out_tuple_begin_end.
9468
9469 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9470
9471 * frame.c (frame_unwind_register): New function.
9472 (frame_unwind_unsigned_register): Use.
9473 (frame_unwind_signed_register): Use.
9474 (frame_read_register): New function.
9475 * frame.h (frame_unwind_register): Declare.
9476 (frame_read_register): Declare.
9477
9478 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9479 and frame_unwind_register instead of read_memory, write_register
9480 and deprecated_write_register_bytes.
9481
9482 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9483
9484 * frame.h: Note that namelen can be negative.
9485 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9486 NAME's length.
9487
9488 * NEWS: Mention that the d10v's `regs' command is deprecated.
9489 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9490 (d10v_print_registers_info): New function.
9491 (show_regs): Call d10v_print_registers_info.
9492 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9493
9494 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9495
9496 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9497 lost in the previous patch.
9498
9499 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9500
9501 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9502 * stack.c (print_frame_info_base): Output complete FRAME tuple
9503 for synthesized frames.
9504
9505 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9506
9507 * mips-nat.c (zerobuf): Delete.
9508 (fetch_inferior_registers): Alloc local zerobuf.
9509 (fetch_core_registers): Alloc local zerobuf.
9510 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9511 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9512 * thread-db.c (thread_db_store_registers): Ditto.
9513 * sh-tdep.c (sh_do_register): Ditto.
9514 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9515 * remote-sim.c (gdbsim_store_register): Ditto.
9516 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9517 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9518 * monitor.c (monitor_supply_register): Ditto.
9519 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9520 * mips-nat.c (fetch_inferior_registers): Ditto.
9521 * m68klinux-nat.c (fetch_register): Ditto.
9522 * lynx-nat.c (fetch_inferior_registers): Ditto.
9523 (fetch_inferior_registers): Ditto.
9524 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9525 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9526 (hpux_thread_store_registers): Ditto.
9527 * hppah-nat.c (fetch_register): Ditto.
9528 * hppab-nat.c (fetch_register): Ditto.
9529 * hppa-tdep.c (pa_register_look_aside): Ditto.
9530 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9531 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9532
9533 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9534
9535 * gdbarch.sh: Explictly specify all method levels. When a
9536 variable with an empty level, provide a non-multi-arch default.
9537 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9538 * gdbarch.h: Re-generate.
9539 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9540 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9541
9542 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9543
9544 * defs.h (host_pointer_to_address): Delete declaration.
9545 (address_to_host_pointer): Delete declaration.
9546 * utils.c (host_pointer_to_address): Delete function.
9547 (address_to_host_pointer): Delete function.
9548 * procfs.c (procfs_address_to_host_pointer): New function.
9549 * procfs.c (proc_set_watchpoint): Use.
9550 (procfs_can_use_hw_breakpoint): Update comments.
9551 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9552 (som_solib_add): Use.
9553 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9554 * hppa-tdep.c (unwind_command): Use.
9555
9556 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9557
9558 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9559 strlen d_name.
9560
9561 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9562 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9563 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9564 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9565 (define_symbol): Update.
9566 * symfile.c (generic_load): Remove references to nindy.
9567 * symtab.c: Remove references to nindy.
9568
9569 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9570
9571 * infcmd.c (print_float_info): Delete code conditional on
9572 FLOAT_INFO.
9573 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9574 * config/m68k/nm-apollo68b.h: Ditto.
9575 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9576 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9577 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9578
9579 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9580
9581 * config/i386/tm-i386os9k.h: Removed.
9582
9583 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9584 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9585 they're identical to i[3456]86-*-sysv* now.
9586 * config/i386/i386v32.mh: Removed.
9587 * config/i386/xm-i386v32.h: Removed.
9588 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9589
9590 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9591
9592 * config/i386/i386dgux.mh: Removed.
9593 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9594
9595 * configure.in: Fix typo.
9596 * configure: Regenerated.
9597
9598 2003-01-31 David Carlton <carlton@math.stanford.edu>
9599
9600 * dwarf2read.c (dwarf2_locate_sections): Set
9601 dwarf_ranges_section.
9602
9603 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9604
9605 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9606 * utils.c: Update comments documenting legitimate uses of PTR.
9607
9608 * utils.c: Re-indent.
9609
9610 * config/djgpp/fnchange.lst: Delete nindy files.
9611 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9612 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9613 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9614 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9615 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9616 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9617 * Makefile.in (init.c): Remove nindy references.
9618 (saber_gdb): Delete rule.
9619 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9620 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9621 and a68v-nat.c.
9622 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9623 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9624 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9625 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9626 nindy-share/stop.h.
9627 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9628 * saber.suppress: Delete file.
9629
9630 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
9631
9632 * dbxread.c (stabs_data): New static variable.
9633 (fill_symbuf): Support an in-memory buffer for stabs data.
9634 (stabs_seek): New function.
9635 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9636 (read_ofile_symtab): Use stabs_seek.
9637 (elfstab_build_psymtabs): Take an asection* instead of
9638 an offset and size. Relocate the stabs data if necessary.
9639 Save the section* for dbx_psymtab_to_symtab.
9640 * dwarf2read.c: Add section variables for each debug section.
9641 (dwarf2_locate_sections): Fill them in.
9642 (dwarf2_read_section): Take an asection* argument.
9643 Relocate the section contents if necessary.
9644 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9645 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9646 it to dwarf2_read_section.
9647 (dwarf2_build_frame_info): Update callers.
9648 * elfread.c (elf_symfile_read): Update call to
9649 elfstab_build_psymtabs.
9650 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9651 (DBX_STAB_SECTION): New macro.
9652 * stabsread.h (elfstab_build_psymtabs): Update prototype.
9653 * symfile.c (symfile_dummy_outputs): New function.
9654 (symfile_relocate_debug_section): New function.
9655 * symfile.h (symfile_relocate_debug_section): Add prototype.
9656
9657 2003-01-31 Richard Henderson <rth@redhat.com>
9658
9659 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9660 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9661 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9662 * alpha-tdep.c (alpha_register_name): Add "unique".
9663 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9664 (ALPHA_UNIQUE_REGNUM): New.
9665 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9666
9667 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9668
9669 * README: Remove reference to Ericsson 1800 monitor.
9670 * Makefile.in (remote-es.o): Delete rule.
9671 (ALLDEPFILES): Delete remote-es.c.
9672 * remote-es.c: Delete file.
9673 * config/m68k/es1800.mt: Delete file.
9674 * config/djgpp/fnchange.lst: Update.
9675 * configure.tgt: Delete m68*-ericsson-* target.
9676
9677 2003-01-31 Adam Fedor <fedor@gnu.org>
9678
9679 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9680 Remove duplicate/shadowing variable of same name.
9681
9682 2003-01-30 Jim Blandy <jimb@redhat.com>
9683
9684 * symfile.c (find_separate_debug_file): Assert that the objfile's
9685 directory name we compute ends with a slash, and then assume that
9686 that's so everywhere we use it.
9687
9688 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
9689
9690 * valops.c (value_assign): Flush frame cache after stores to memory
9691 also.
9692
9693 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9694
9695 * Makefile.in (mon960-rom.o): Delete rule.
9696 * mon960-rom.c: Delete file.
9697
9698 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9699
9700 * d10v-tdep.c: Include "frame-unwind.h".
9701 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9702 list.
9703 (next_addr, uses_frame): Delete.
9704 (struct d10v_unwind_cache): Define.
9705 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9706 Use info instead of next_addr and uses_frame globals.
9707 (d10v_frame_init_saved_regs): Delete function.
9708 (d10v_init_extra_frame_info): Delete function.
9709 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9710 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9711 init_frame_pc or frame_saved_pc.
9712 (d10v_pop_frame): Delete function.
9713 (do_d10v_pop_frame): Delete function.
9714 (d10v_frame_chain): Delete function.
9715 (d10v_frame_chain_valid): Delete function.
9716 (d10v_frame_pc_unwind): New function.
9717 (d10v_frame_id_unwind): New function.
9718 (saved_regs_unwinder): New function.
9719 (d10v_frame_register_unwind): New function.
9720 (d10v_frame_pop): New function.
9721 (d10v_frame_unwind): New variable.
9722 (d10v_frame_p): New function.
9723 (d10v_frame_saved_pc): Delete function.
9724 * Makefile.in (d10v-tdep.o): Update dependencies.
9725
9726 2003-01-30 J. Brobecker <brobecker@gnat.com>
9727
9728 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9729 causing some regressions due to a change in the default value
9730 for this macro.
9731
9732 2003-01-29 Richard Henderson <rth@redhat.com>
9733 Elena Zannoni <ezannoni@redhat.com>
9734 Daniel Jacobowitz <drow@mvista.com>
9735
9736 Fix PR gdb/961.
9737 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
9738 variables.
9739 (RANGES_SECTION): New.
9740 (dwarf_ranges_buffer): New variable.
9741 (struct comp_unit_head): Add member "die".
9742 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9743 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9744 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9745 (dwarf2_locate_sections): Likewise.
9746 (dwarf2_build_psymtabs): Read .debug_ranges.
9747 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9748 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9749 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9750 Look for DW_AT_ranges and return the bounding box.
9751
9752 2003-01-29 Brian Ford <ford@vss.fsi.com>
9753
9754 * win32-nat.c (cygwin_pid): Removed as unused.
9755 (child_attach): Try fall back to Cygwin pid.
9756
9757 2003-01-29 Jim Blandy <jimb@redhat.com>
9758
9759 * objfiles.h (struct objfile): Doc fix.
9760
9761 2003-01-29 Andrew Cagney <ac131313@redhat.com>
9762
9763 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9764 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9765 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9766 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9767 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9768 (FRAME_SAVED_PC): Change to a function with predicate.
9769 * gdbarch.h, gdbarch.c: Re-generate.
9770
9771 2003-01-28 Andrew Cagney <ac131313@redhat.com>
9772
9773 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9774
9775 * complaints.c (complain): Delete function.
9776 * complaints.h (struct deprecated_complaint): Delete definition.
9777 (complain): Delete declaration.
9778
9779 2003-01-28 Kevin Buettner <kevinb@redhat.com>
9780
9781 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9782 dummy frames.
9783
9784 2003-01-27 Andrew Cagney <ac131313@redhat.com>
9785
9786 * sentinel-frame.h, sentinel-frame.c: New files.
9787 * Makefile.in (frame.o): Update dependencies.
9788 (SFILES): Add sentinel-frame.c.
9789 (sentinel_frame_h): Define.
9790 (COMMON_OBS): Add sentinel-frame.o.
9791 (sentinel-frame.o): Specify dependencies.
9792 * frame.c: Include "sentinel-frame.h".
9793 (frame_register_unwind): Rewrite assuming that there is always a a
9794 ->next frame.
9795 (frame_register, generic_unwind_get_saved_register): Ditto.
9796 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9797 (create_sentinel_frame, unwind_to_current_frame): New functions.
9798 (get_current_frame): Rewrite using create_sentinel_frame and
9799 unwind_to_current_frame. When possible, always create a frame.
9800 (create_new_frame): Set next to the sentinel frame.
9801 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9802 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9803 ID cache when necessary.
9804 (frame_saved_regs_id_unwind): Use frame_relative_level.
9805 (deprecated_generic_get_saved_register): Use frame_relative_level,
9806 get_frame_saved_regs, get_frame_pc, get_frame_base and
9807 get_next_frame.
9808 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9809 frame_register.
9810
9811 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9812
9813 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9814
9815 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9816
9817 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9818 (maintenance_set_profile_cmd): Use error () instead of warning ().
9819
9820 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9821
9822 * configure.in: Check that -pg works if using --enable-profiling.
9823 Check for monstartup and _mcleanup regardless of --enable-profiling.
9824 * maint.c: Check for monstartup and _mcleanup before using them.
9825 * config.in: Regenerated.
9826 * configure: Regenerated.
9827
9828 2003-01-24 Nick Clifton <nickc@redhat.com>
9829
9830 * Add sh2e support:
9831
9832 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9833
9834 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9835 (sh2e_show_regs): New.
9836 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9837 * config/sh/tm-sh.h: Added sh2e to comments.
9838
9839 2003-01-23 Jim Blandy <jimb@redhat.com>
9840
9841 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9842 symbols found)" message here; we haven't checked for a separate
9843 debug info file yet, so we don't know yet.
9844 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9845 we've looked everywhere. Also, there's no need to print a special
9846 message when we're loading the separate debug info file: the one
9847 symbol_file_add prints is fine.
9848
9849 2003-01-23 Alexander Larsson <alexl@redhat.com>
9850 Jim Blandy <jimb@redhat.com>
9851
9852 Add support for executables whose debug info has been separated
9853 out into a separate file, leaving only a link behind.
9854 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9855 and separate_debug_objfile_backlink.
9856 (put_objfile_before): New declaration.
9857 * symfile.c: #include "filenames.h".
9858 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9859 debug info in a separate file, read that, too. Save the addrs
9860 argument, so we can use it again to read the separated debug info;
9861 syms_from_objfile modifies the table we pass it.
9862 (reread_symbols): After re-reading an objfile, call
9863 reread_separate_symbols to refresh its separate debug info
9864 objfile, if it has one.
9865 (reread_separate_symbols, find_separate_debug_file,
9866 get_debug_link_info, separate_debug_file_exists): New functions.
9867 (debug_file_directory): New global var.
9868 (_initialize_symfile): Initialize debug_file_directory, and
9869 provide the new `set debug-file-directory' command to let the user
9870 change it.
9871 * objfiles.c (free_objfile): If this objfile has its debug info in
9872 a separate objfile, free that one too. If this is itself a
9873 separate debug info objfile, clear our parent's backlink.
9874 (put_objfile_before): New function.
9875 * utils.c (gnu_debuglink_crc32): New function.
9876 * defs.h (gnu_debuglink_crc32): New declaration.
9877 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9878 * configure.in: Handle --with-separate-debug-dir config option.
9879 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9880 * acconfig.h (DEBUGDIR): New macro.
9881 * configure, aclocal.m4, config.in: Regenerated.
9882
9883 2003-01-22 Jim Blandy <jimb@redhat.com>
9884
9885 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9886 like the old symbol_file_add, but taking new arguments: you can
9887 now pass in either a `struct section_addr_info' list to say where
9888 each section is loaded, or a `struct section_offsets' table. Pass
9889 these new arguments through to syms_from_objfile as appropriate.
9890 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9891 with the appropriate quiescent values for the new arguments.
9892
9893 * symfile.c: #include "gdb_assert.h".
9894 (syms_from_objfile): Add the ability to pass in a section offset
9895 table directly, as an alternative to the section_addr_info table.
9896 Document arguments better.
9897 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9898 * symfile.h (syms_from_objfile): Update declaration.
9899 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9900 syms_from_objfile.
9901 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9902
9903 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
9904
9905 Original patch by Tom Tromey <tromey@cygnus.com> and
9906 Jason Molenda <jmolenda@apple.com>.
9907 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9908 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9909 * NEWS: Mention profiling.
9910 * configure.in (--enable-gdbtk): Fix typo.
9911 (--enable-profiling): New. Set PROFILE_CFLAGS.
9912 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9913 Fill in function.
9914 (profiling_state): New variable.
9915 (mcleanup_wrapper): New function.
9916 (_initialize_maint): Remove NOTYET, fix call to
9917 add_setshow_boolean_cmd for "maint set profile".
9918 * configure: Regenerated.
9919
9920 2003-01-21 Martin M. Hunt <hunt@redhat.com>
9921
9922 * Makefile.in (install-gdbtk): Install PNG images too.
9923
9924 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9925
9926 * exec.c (text_start): Delete global variable.
9927 (exec_file_attach): Make text_start local to the function.
9928 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9929 * valops.c (hand_function_call): Delete code that handles
9930 BEFORE_TEXT_END and AFTER_TEXT_END.
9931 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9932 of CALL_DUMMY_LOCATION.
9933 * gdbarch.c: Regenerate.
9934 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9935 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9936 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9937 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9938 (text_end): Delete extern declaration.
9939
9940 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9941
9942 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9943 * blockframe.c (backtrace_below_main): Move to "frame.c".
9944 (frame_chain_valid): Delete check for backtrace_below_main.
9945 (_initialize_blockframe): Delete initialization, move ``set
9946 backtrace-below-main'' command to "frame.c".
9947 (do_flush_frames_sfunc): Delete function.
9948 * frame.c: Include "command.h" and "gdbcmd.h".
9949 (frame_type_from_pc): New function.
9950 (create_new_frame): Use frame_type_from_pc.
9951 (legacy_get_prev_frame): New function.
9952 (get_prev_frame): Rewrite. When an old style frame, call
9953 legacy_get_prev_frame. Otherwize, unwind the PC first.
9954 (_initialize_frame): Add ``set backtrace-below-main'' command.
9955 * Makefile.in (frame.o): Update dependencies.
9956
9957 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9958
9959 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9960 DEPRECATED_REGISTERS_INFO.
9961
9962 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9963
9964 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9965 Maintainers'. Update `Various Maintainers'.
9966
9967 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9968
9969 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9970 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9971 Suppress actual parameters when `-'.
9972 * gdbarch.h, gdbarch.c: Regenerate.
9973
9974 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9975
9976 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9977 code handling dummy frames.
9978
9979 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9980
9981 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9982 (struct frame_unwind): Add field pop.
9983 * frame.h (frame_pop): Declare.
9984 * frame.c (frame_saved_regs_pop): New function.
9985 (trad_frame_unwinder): Add frame_saved_regs_pop.
9986 (frame_pop): New function.
9987 * dummy-frame.c (dummy_frame_pop): New function.
9988 (discard_innermost_dummy): New function.
9989 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9990 (dummy_frame_unwind): Add dummy_frame_pop.
9991 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9992 * valops.c (hand_function_call): Ditto.
9993 * stack.c (return_command): Ditto.
9994
9995 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9996
9997 * cris-tdep.c: Fix function declaration indentation.
9998 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9999 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10000 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10001 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10002 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10003 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10004
10005 2003-01-18 Michael Chastain <mec@shout.net>
10006
10007 * README (Unpacking and Installation -- quick overview):
10008 Warn against ".../gdb-5.3/gdb/configure".
10009
10010 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10011
10012 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10013 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10014 (struct frame_unwind): Declare opaque.
10015 (dummy_frame_p): Declare function.
10016 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10017 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10018 * dummy-frame.c: Include "frame-unwind.h".
10019 (dummy_frame_p): New function.
10020 (dummy_frame_unwind): New variable.
10021 * frame.c: Include "frame-unwind.h".
10022 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10023 to use the new unwind field.
10024 (set_unwind_by_pc): Delete function.
10025 (create_new_frame, get_prev_frame): Set unwind field using
10026 frame_unwind_find_by_pc.
10027 (trad_frame_unwind, trad_frame_unwinder): New variables.
10028 * frame.h (trad_frame_unwind): Declare variable.
10029 (frame_id_unwind_ftype): Delete declaration.
10030 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10031 (struct frame_unwind): Declare opaque.
10032 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10033 register_unwind with a single unwind pointer.
10034 * frame-unwind.h, frame-unwind.c: New files.
10035 * Makefile.in (SFILES): Add frame-unwind.c.
10036 (frame_unwind_h): Define.
10037 (COMMON_OBS): Add frame-unwind.o.
10038 (frame-unwind.o): Specify dependencies.
10039 (frame.o, dummy-frame.o): Update dependencies.
10040
10041 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10042
10043 * ada-valprint.c: Eliminate PTR.
10044 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10045 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10046 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10047 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10048 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10049 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10050 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10051
10052 2003-01-17 Andrew Cagney <ac131313@redhat.com>
10053
10054 * main.c (captured_main): Don't use PTR.
10055 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10056 * gdbtypes.c (lookup_primitive_typename): Ditto.
10057 (lookup_struct_elt_type): Ditto.
10058 * f-valprint.c (info_common_command): Ditto.
10059 (list_all_visible_commons): Ditto.
10060 * jv-typeprint.c (java_type_print_base): Ditto.
10061
10062 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10063 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10064 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10065 i386-interix-nat.c and i386-interix-tdep.c. Rename
10066 m68klinux-nat.c and m68klinux-tdep.c. Rename
10067 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10068 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10069 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10070 * main.c (captured_main): Use xfree, not free.
10071
10072 2003-01-16 Andrew Cagney <ac131313@redhat.com>
10073
10074 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10075 ID back using a parameter.
10076 * frame.c (frame_id_unwind): Update call.
10077 (frame_saved_regs_id_unwind): Update.
10078 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10079 * dummy-frame.h (struct frame_id): Add opaque declaration.
10080 (dummy_frame_id_unwind): Update declaration.
10081
10082 2003-01-15 Andrew Cagney <ac131313@redhat.com>
10083
10084 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10085
10086 2003-01-15 Stephen P. Smith <ischis2@cox.net>
10087
10088 * MAINTAINERS (Stephen P. Smith): Updated email address.
10089
10090 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
10091
10092 Fix PR gdb/898
10093 * breakpoint.c (until_break_command): Add new argument. Use it to
10094 decide whether to stop only at the current frame or not.
10095 * breakpoint.h (until_break_command): Update prototype.
10096 * infcmd.c (until_command): Add new argument to until_break_command
10097 call.
10098 (advance_command): New function.
10099 (_initialize_infcmd): Update help string for 'until' command.
10100 Add new 'advance' command.
10101
10102 2003-01-14 David Carlton <carlton@math.stanford.edu>
10103
10104 * linespec.c (decode_line_1): Normalize comments.
10105 (set_flags): Ditto.
10106 (locate_first_half): Ditto.
10107 (decode_compound): Ditto.
10108 (symtab_from_filename): Ditto.
10109 (decode_all_digits): Ditto.
10110 (decode_dollar): Ditto.
10111 (find_methods): Ditto.
10112 (find_toplevel_char): Ditto.
10113
10114 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10115
10116 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10117 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10118 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10119 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10120 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10121 * language.c, language.h, m32r-tdep.c: Update copyright.
10122 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10123 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10124 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10125 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10126 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10127 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10128
10129 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10130
10131 * stabsread.h (process_later, resolve_cfront_continuation):
10132 Obsolete.
10133 Update copyright years.
10134 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10135 Update copyright year.
10136 * dbxread.c(struct cont_elem): Obsolete.
10137 (process_later, process_now): Obsolete functions.
10138 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10139 Update copyright year.
10140 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10141 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10142 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10143 (parse_partial_symbols): Obsolete cfront support.
10144 * stabsread.c
10145 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10146 macros.
10147 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10148 read_cfront_baseclasses, read_cfront_member_functions,
10149 resolve_cfront_continuation,read_cfront_static_fields,
10150 copy_cfront_struct_fields): Obsolete functions.
10151 (define_symbol, read_one_struct_field): Obsolete cfront support.
10152 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10153 Update Copyright year.
10154
10155 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10156
10157 * stack.c (print_frame_info, print_stack_frame_base_stub,
10158 print_stack_frame_base, show_and_print_stack_frame_stub,
10159 show_and_print_stack_frame, print_only_stack_frame_stub,
10160 print_only_stack_frame): Delete functions.
10161 (print_stack_frame_stub): Call print_frame_info instead of
10162 print_frame_info_base.
10163 (print_frame_info_base): Rename to print_frame_info.
10164 (backtrace_command_1): Call print_frame_info, instead of
10165 print_frame_info_base.
10166 (current_frame_command): Call print_stack_frame, instead of
10167 print_only_stack_frame.
10168 (frame_command): Call print_stack_frame, instead of
10169 show_and_print_stack_frame.
10170 (up_command): Ditto.
10171 (down_command): Ditto.
10172 * frame.h (print_only_stack_frame): Delete prototype.
10173 * infrun.c (normal_stop): Call print_stack_frame, instead of
10174 show_and_print_stack_frame.
10175 * thread.c (info_threads_command): Call print_stack_frame, instead
10176 of print_only_stack_frame.
10177
10178 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10179
10180 * README (Graphical interface to GDB): Update URL. Point at
10181 gdb/links/.
10182
10183 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10184 version match.
10185
10186 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10187
10188 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10189 lines.
10190
10191 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10192
10193 * thread-db.c (attach_thread): Prototype.
10194 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10195 thread information (ti), and valid flags (th_valid, ti_valid).
10196 (attach_thread): Move target_pid_to_str call to after the thread
10197 is added to GDB's list. Initialize the cache.
10198 (thread_get_info_callback, thread_db_map_id2thr)
10199 (thread_db_get_info): New functions.
10200 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10201 (thread_db_store_registers, thread_db_thread_alive)
10202 (thread_db_get_thread_local_address): Use them.
10203 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10204 of calling error() for threads in unknown state.
10205
10206 (clear_lwpid_callback): New function.
10207 (thread_db_resume): Use it to clear the cache.
10208
10209 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10210
10211 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10212 (resume_callback): Remove dead code.
10213
10214 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10215
10216 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10217 predicate.
10218 * gdbarch.h, gdbarch.c: Regenerate.
10219 * stack.c (frame_info): Only initialize the saved registers when
10220 FRAME_INIT_SAVED_REGS_P.
10221 * frame.c (frame_saved_regs_register_unwind): Assert
10222 FRAME_INIT_SAVED_REGS_P.
10223 (deprecated_generic_get_saved_register): Ditto.
10224
10225 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10226
10227 * source.c (openp): Squelch warning about "filename".
10228
10229 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10230
10231 * source.c (openp): If the file does not exist don't necessarily
10232 search the path.
10233
10234 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10235
10236 Fix PR gdb/872.
10237 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10238 (integer_types_same_name_p): New function.
10239 (rank_one_type): Use it.
10240 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10241
10242 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10243
10244 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10245 variables.
10246 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10247 * configure.in: Add --with-sysroot.
10248 * configure: Regenerated.
10249 * main.c (gdb_sysroot): New variable.
10250 (captured_main): Initialize gdb_sysroot.
10251 * defs.h (gdb_sysroot): New extern declaration.
10252 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10253
10254 2003-01-12 Michael Chastain <mec@shout.net>
10255
10256 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10257
10258 2003-01-12 Michael Chastain <mec@shout.net>
10259
10260 * top.c (print_gdb_version): Bump copyright year to 2003.
10261
10262 2003-01-12 David Carlton <carlton@bactrian.org>
10263
10264 * linespec.c (symtab_from_filename): Rename variable 's' to
10265 'file_symtab'.
10266
10267 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10268
10269 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10270 dummy frame.
10271 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10272
10273 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10274
10275 * d10v-tdep.c: Include "gdb_assert.h".
10276 (d10v_store_return_value): Rewrite to match current interface.
10277 (d10v_extract_struct_value_address): Ditto.
10278 (d10v_extract_return_value): Ditto.
10279 (d10v_gdbarch_init): Set store_restore_value,
10280 extract_struct_value_address and extract_return_value.
10281
10282 2003-01-12 J. Brobecker <brobecker@gnat.com>
10283
10284 * hpread.c (set_namestring): New procedure replacing the
10285 SET_NAMESTRING macro.
10286 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10287 by calls to set_namestring.
10288
10289 2003-01-11 J. Brobecker <brobecker@gnat.com>
10290
10291 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10292 a compilation warning.
10293 (hpread_process_one_debug_symbol): Likewise.
10294
10295 2003-01-10 David Carlton <carlton@math.stanford.edu>
10296
10297 * linespec.c (decode_line_1): Rename variable 's' to
10298 'file_symtab'.
10299 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10300 (decode_dollar): Ditto.
10301 (decode_variable): Ditto.
10302 (symbol_found): Ditto.
10303
10304 2003-01-09 Michael Chastain <mec@shout.net>
10305
10306 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10307
10308 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10309
10310 * win32-nat.c (set_process_privilege): New function.
10311 (child_attach): Call set_process_privilege() to enable the
10312 SE_DEBUG_NAME user privilege if available in process token.
10313
10314 2003-01-10 J. Brobecker <brobecker@gnat.com>
10315
10316 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10317 compilation error in the previous revision.
10318
10319 2003-01-09 David Carlton <carlton@math.stanford.edu>
10320
10321 * linespec.c: Update copyright.
10322
10323 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10324
10325 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10326 than inferior_ptid.
10327 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10328
10329 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10330
10331 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10332 Update comments.
10333 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10334 (frame_saved_regs_zalloc): Update.
10335 (frame_saved_regs_register_unwind): Update.
10336 (create_new_frame): Update.
10337 (get_prev_frame): Update.
10338 (frame_extra_info_zalloc): Update.
10339 (deprecated_get_frame_saved_regs): Update.
10340 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10341 * cris-tdep.c: Update comment.
10342
10343 * somsolib.h: Fix function indentation.
10344 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10345 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10346 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10347 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10348 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10349
10350 * infrun.c (follow_fork): Use ISO C definition.
10351 * expprint.c (print_subexp): Use xfree instead of free.
10352 * charset.c: Include "gdb_string.h" instead of <string.h>.
10353 (register_iconv_charsets): Use ISO C definition.
10354 (host_charset, target_charset): Ditto.
10355 * Makefile.in (charset.o): Update dependencies.
10356 (mi-cmd-env.o): Update dependencies.
10357
10358 2003-01-08 Andrew Cagney <cagney@redhat.com>
10359
10360 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10361 get_frame_base.
10362
10363 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10364
10365 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10366 build directories. Save edited gdb output in Mbuild.log. If a
10367 build fails, remove any final GDB executable.
10368
10369 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10370
10371 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10372 replacing hex constants with function names and stripping leading
10373 file name directory prefixes.
10374
10375 2003-01-08 Andrew Cagney <cagney@redhat.com>
10376
10377 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10378 get_frame_base.
10379
10380 2003-01-08 David Carlton <carlton@math.stanford.edu>
10381
10382 * linespec.c (decode_line_1): Move code into decode_variable.
10383 (decode_variable): New function.
10384
10385 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10386
10387 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10388
10389 2003-01-08 Andrew Cagney <cagney@redhat.com>
10390
10391 * cris-tdep.c (cris_frame_init_saved_regs): Use
10392 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10393 saved_regs buffer.
10394 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10395 (sh64_nofp_frame_init_saved_regs): Ditto.
10396 (sh_fp_frame_init_saved_regs): Ditto.
10397 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10398 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10399 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10400 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10401
10402 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10403
10404 * minsyms.c (lookup_minimal_symbol): Update comment.
10405 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10406 (lookup_minimal_symbol_solib_trampoline): Likewise.
10407
10408 2003-01-08 Andrew Cagney <cagney@redhat.com>
10409
10410 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10411 frame_relative_level.
10412
10413 * alpha-tdep.c: Use get_frame_extra_info.
10414 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10415 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10416 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10417 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10418
10419 * alpha-tdep.c: Use get_next_frame.
10420 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10421 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10422 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10423 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10424 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10425 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10426 * xstormy16-tdep.c: Ditto.
10427
10428 2003-01-07 Andrew Cagney <cagney@redhat.com>
10429
10430 * alpha-tdep.c: Use get_frame_base.
10431 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10432 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10433 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10434 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10435 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10436 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10437 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10438 * config/sparc/tm-sparc.h: Ditto.
10439
10440 2003-01-07 Andrew Cagney <cagney@redhat.com>
10441
10442 * frame.c (deprecated_get_frame_context): New function.
10443 (deprecated_set_frame_context): New function.
10444 * frame.h (deprecated_get_frame_context): Declare.
10445 (deprecated_set_frame_context): Declare.
10446 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10447 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10448
10449 2003-01-07 Andrew Cagney <cagney@redhat.com>
10450
10451 * frame.c (deprecated_set_frame_next_hack): New function.
10452 (deprecated_set_frame_prev_hack): New function.
10453 * frame.h (deprecated_set_frame_next_hack): Declare.
10454 (deprecated_set_frame_prev_hack): Declare.
10455 * mcore-tdep.c (analyze_dummy_frame): Use
10456 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10457 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10458
10459 2003-01-07 David Carlton <carlton@math.stanford.edu>
10460
10461 * linespec.c (decode_line_1): Move code into decode_dollar.
10462 (decode_dollar): New function.
10463
10464 2003-01-07 Andrew Cagney <cagney@redhat.com>
10465
10466 * arm-tdep.c (arm_init_extra_frame_info): Use
10467 deprecated_update_frame_base_hack.
10468 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10469 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10470 (fix_frame_pointer): Ditto.
10471 (mn10300_analyze_prologue): Ditto.
10472
10473 2003-01-07 Andrew Cagney <cagney@redhat.com>
10474
10475 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10476 extra_info using frame_extra_info_zalloc.
10477 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10478 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10479 (sh64_init_extra_frame_info): Ditto.
10480 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10481 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10482 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10483 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10484 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10485 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10486 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10487 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10488 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10489 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10490 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10491 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10492
10493 * mn10300-tdep.c (analyze_dummy_frame): Use
10494 deprecated_set_frame_extra_info_hack.
10495 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10496
10497 2003-01-07 J. Brobecker <brobecker@gnat.com>
10498
10499 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10500 class is not scText. These do not define "real" procedures.
10501 (parse_partial_symbols): Likewise.
10502
10503 2003-01-06 Michael Snyder <msnyder@redhat.com>
10504
10505 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10506
10507 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10508
10509 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10510 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10511 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10512 deprecated_frame_xmalloc_with_cleanup.
10513 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10514 deprecated_frame_xmalloc.
10515 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10516 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10517
10518 2003-01-06 Andrew Cagney <cagney@redhat.com>
10519
10520 * x86-64-linux-tdep.c: Include "osabi.h".
10521 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10522
10523 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10524
10525 2003-01-06 Andrew Cagney <cagney@redhat.com>
10526
10527 * MAINTAINERS (Target Instruction Set Architectures): Update
10528 arm-elf. Can be built with -Werror, has been multiarched.
10529
10530 * value.h (unpack_long): Make buffer parameter constant.
10531 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10532 * scm-lang.h (scm_parse): Ditto.
10533 * defs.h (extract_typed_address, extract_address): Ditto.
10534 (extract_long_unsigned_integer): Ditto.
10535 * inferior.h (unsigned_pointer_to_address): Ditto.
10536 (signed_pointer_to_address): Ditto.
10537 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10538 * gdbarch.h, gdbarch.c: Regenerate.
10539 * findvar.c (extract_long_unsigned_integer): Update.
10540 (extract_address): Update.
10541 (extract_typed_address): Update.
10542 (unsigned_pointer_to_address): Update.
10543 * values.c (unpack_long): Update.
10544 (unpack_double): Update.
10545 (unpack_pointer): Update.
10546 (unpack_field_as_long): Update.
10547 * d10v-tdep.c (d10v_pointer_to_address): Update.
10548 * avr-tdep.c (avr_pointer_to_address): Update.
10549 * scm-lang.c (scm_unpack): Update.
10550 * findvar.c (signed_pointer_to_address): Update.
10551
10552 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10553
10554 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10555 since it is in i386-tdep.c.
10556
10557 2003-01-06 J. Brobecker <brobecker@gnat.com>
10558
10559 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10560 failure introduced in the previous change.
10561
10562 2003-01-05 Michael Chastain <mec@shout.net>
10563
10564 * README: Remove references to deleted remote-*.c files:
10565 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10566 remote-nrom.c, remote-os9k.c, remote-udi.c.
10567
10568 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10569
10570 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10571 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10572 i386_get_longjmp_target.
10573
10574 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10575
10576 * arm-tdep.c (prologue_cache): Change to a pointer.
10577 (_initialize_arm_tdep): Allocate prologue_cache.
10578 (check_prologue_cache): Update.
10579 (save_prologue_cache): Update.
10580 (arm_gdbarch_init): Update.
10581
10582 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10583
10584 * stabsread.c (update_method_name_from_physname): Call complaint()
10585 instead of error.
10586
10587 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10588
10589 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10590 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10591 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10592
10593 * blockframe.c: Include "gdbcmd.h" and "command.h".
10594 (backtrace_below_main): New variable.
10595 (file_frame_chain_valid, func_frame_chain_valid)
10596 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10597 (generic_func_frame_chain_valid): Remove functions.
10598 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10599 (_initialize_blockframe): New function.
10600 * Makefile.in (blockframe.o): Update dependencies.
10601 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10602 comment. Call frame_chain_valid ().
10603 * frame.h: Remove old prototypes. Add prototype for
10604 frame_chain_valid and update comments to match.
10605 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10606 Remove old comment.
10607 * gdbarch.h: Regenerated.
10608 * gdbarch.c: Regenerated.
10609
10610 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10611 set_gdbarch_frame_chain_valid.
10612 * avr-tdep.c (avr_gdbarch_init): Likewise.
10613 * cris-tdep.c (cris_gdbarch_init): Likewise.
10614 * frv-tdep.c (frv_gdbarch_init): Likewise.
10615 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10616 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10617 (i386_nw_init_abi): Likewise.
10618 (i386_gdbarch_init): Likewise.
10619 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10620 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10621 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10622 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10623 * mips-tdep.c (mips_gdbarch_init): Likewise.
10624 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10625 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10626 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10627 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10628 * s390-tdep.c (s390_gdbarch_init): Likewise.
10629 * sh-tdep.c (sh_gdbarch_init): Likewise.
10630 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10631 * v850-tdep.c (v850_gdbarch_init): Likewise.
10632 * vax-tdep.c (vax_gdbarch_init): Likewise.
10633 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10634
10635 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10636 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10637 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10638 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10639 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10640 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10641 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10642 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10643
10644 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10645
10646 * Makefile.in (acconfig_h): Remove incorrect macro.
10647 (config_h): Define.
10648 (osabi.o): Update dependencies.
10649 * configure.tgt: Set gdb_osabi based on target triplet.
10650 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10651 * configure: Regenerated.
10652 * config.in: Regenerated.
10653 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10654 (GDB_OSABI_DEFAULT): Define if not already defined.
10655 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10656 (set_osabi_string): New variables.
10657 (gdbarch_register_osabi): Add new OS ABI to
10658 gdb_osabi_available_names.
10659 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10660 (set_osabi, show_osabi): New functions.
10661 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10662
10663 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10664
10665 * arch-utils.c (gdbarch_info_init): Set osabi to
10666 GDB_OSABI_UNINITIALIZED.
10667 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10668 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10669 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10670 * gdbarch.c: Regenerated.
10671 * gdbarch.h: Regenerated.
10672 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10673 there's no BFD.
10674 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10675 * osabi.h (enum gdb_osabi): Move to defs.h.
10676 (gdbarch_init_osabi): Update prototype.
10677 * defs.h (enum gdb_osabi): Moved here.
10678 * Makefile.in: Update dependencies.
10679
10680 * alpha-tdep.h: Don't include "osabi.h".
10681 (struct gdbarch_tdep): Remove osabi member.
10682 * alpha-tdep.c: Include "osabi.h".
10683 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10684 iterate over arches. Update call to gdbarch_init_osabi.
10685 (alpha_dump_tdep): Don't dump osabi.
10686 * alpha-linux-tdep.c: Include "osabi.h".
10687 * alpha-osf1-tdep.c: Include "osabi.h".
10688 * alphafbsd-tdep.c: Include "osabi.h".
10689 * alphanbsd-tdep.c: Include "osabi.h".
10690
10691 * arm-tdep.h: Don't include "osabi.h".
10692 (struct gdbarch_tdep): Remove osabi member.
10693 * arm-tdep.c: Include "osabi.h".
10694 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10695 iterate over arches. Update call to gdbarch_init_osabi.
10696 (arm_dump_tdep): Don't dump osabi.
10697 * arm-linux-tdep.c: Include "osabi.h".
10698 * armnbsd-tdep.c: Include "osabi.h".
10699
10700 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10701 Update call to gdbarch_init_osabi.
10702
10703 * i386-tdep.h: Don't include "osabi.h".
10704 (struct gdbarch_tdep): Remove osabi member.
10705 * i386-tdep.c: Include "osabi.h".
10706 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10707 iterate over arches. Update call to gdbarch_init_osabi.
10708 (i386_dump_tdep): Don't dump osabi.
10709 * i386-linux-tdep.c: Include "osabi.h".
10710 * i386-sol2-tdep.c: Include "osabi.h".
10711 * i386bsd-tdep.c: Include "osabi.h".
10712 * i386gnu-tdep.c: Include "osabi.h".
10713 * i386ly-tdep.c: Include "osabi.h".
10714 * i386nbsd-tdep.c: Include "osabi.h".
10715 * i386obsd-tdep.c: Include "osabi.h".
10716
10717 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10718 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10719 check osabi when iterating over arches. Update call to
10720 gdbarch_init_osabi.
10721 (mips_dump_tdep): Don't dump osabi.
10722
10723 * ns32k-tdep.h: Don't include "osabi.h".
10724 (struct gdbarch_tdep): Remove.
10725 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10726 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10727 allocate tdep. Update call to gdbarch_init_osabi.
10728 (ns32k_dump_tdep): Remove.
10729 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10730 * ns32knbsd-tdep.c: Include "osabi.h".
10731
10732 * ppc-tdep.h: Don't include "osabi.h".
10733 (struct gdbarch_tdep): Remove osabi member.
10734 * rs6000-tdep.c: Include "osabi.h".
10735 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10736 osabi when iterating over arches. Update call to
10737 gdbarch_init_osabi.
10738 (rs6000_dump_tdep): Don't dump osabi.
10739 * ppc-linux-tdep.c: Include "osabi.h".
10740 * ppcnbsd-tdep.c: Include "osabi.h".
10741
10742 * sh-tdep.h: Don't include "osabi.h".
10743 (struct gdbarch_tdep): Remove osabi member.
10744 * sh-tdep.c: Include "osabi.h".
10745 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10746 iterate over arches. Update call to gdbarch_init_osabi.
10747 (sh_dump_tdep): Don't dump osabi.
10748 * shnbsd-tdep.c: Include "osabi.h".
10749
10750 * sparc-tdep.c: Include "osabi.h".
10751 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10752 iterate over arches. Update call to gdbarch_init_osabi.
10753 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10754 tdep structure.
10755
10756 * vax-tdep.h: Don't include "osabi.h".
10757 (struct gdbarch_tdep): Remove.
10758 * vax-tdep.c: Include "osabi.h".
10759 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10760 iterate over arches. Don't allocate tdep. Update call
10761 to gdbarch_init_osabi.
10762 (vax_dump_tdep): Remove.
10763 (_initialize_vax_tdep): Update call to gdbarch_register.
10764
10765 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10766
10767 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10768 entirely.
10769 (breakpoint_re_set_one): Don't fetch the value for a disabled
10770 watchpoint.
10771
10772 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10773
10774 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10775 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10776 (COERCE_FLOAT_TO_DOUBLE): Remove.
10777 * gdbarch.c: Regenerate.
10778 * gdbarch.h: Regenerate.
10779 * Makefile.in: Remove value_h from gdbarch_h.
10780 * valops.c (coerce_float_to_double): New variable.
10781 (default_coerce_float_to_double): Remove.
10782 (standard_coerce_float_to_double): Remove.
10783 (value_arg_coerce): Use coerce_float_to_double.
10784 (_initialize_valops): Add "set coerce-float-to-double".
10785 * value.h (default_coerce_float_to_double): Remove prototype.
10786 (standard_coerce_float_to_double): Remove prototype.
10787
10788 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10789 prototyped.
10790 * mdebugread.c (parse_symbol): Likewise.
10791 * stabsread.c (define_symbol): Mark all functions as prototyped.
10792
10793 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10794 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10795 set_gdbarch_coerce_float_to_double.
10796 * arm-tdep.c (arm_gdbarch_init): Likewise.
10797 * frv-tdep.c (frv_gdbarch_init): Likewise.
10798 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10799 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10800 * mips-tdep.c (mips_gdbarch_init): Likewise.
10801 (mips_coerce_float_to_double): Remove.
10802 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10803 (rs6000_coerce_float_to_double): Remove.
10804 * s390-tdep.c (s390_gdbarch_init): Likewise.
10805 * sh-tdep.c (sh_gdbarch_init): Likewise.
10806 (sh_coerce_float_to_double): Remove.
10807 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10808 (sparc_coerce_float_to_double): Remove.
10809 * v850-tdep.c (v850_gdbarch_init): Likewise.
10810 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10811 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10812 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10813 (hppa_coerce_float_to_double): Remove prototype.
10814 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10815
10816 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10817
10818 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10819
10820 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10821
10822 Suggested by Stewart Brown <sb24@avaya.com>:
10823 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10824 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10825 (c_type_print_varspec_suffix): Likewise.
10826
10827 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10828
10829 * configure.in: Don't set and AC_SUBST SUBDIRS.
10830 * configure: Regenerated.
10831
10832 * configure.in: Remove code dealing with shared libraries.
10833 * Makefile.in: Remove HLDFLAGS and HLDENV.
10834 * configure: Regenerated.
10835
10836 2003-01-04 Andrew Cagney <ac131313@redhat.com>
10837
10838 * frame.c (deprecated_frame_xmalloc): New function.
10839 (deprecated_set_frame_saved_regs_hack): New function.
10840 (deprecated_set_frame_extra_info_hack): New function.
10841 * frame.h (deprecated_frame_xmalloc): Declare.
10842 (deprecated_set_frame_saved_regs_hack): Declare.
10843 (deprecated_set_frame_extra_info_hack): Declare.
10844
10845 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10846
10847 * configure.in: Move code that provides the --enable-gdbtk option
10848 right after the code that handles the --enable-tui option, and
10849 polish it somewhat.
10850 * configure: Regenerated.
10851
10852 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10853 AC_CHECK_FUNCS and remove the old check for pread64.
10854 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10855 * acconfig.h (_GNU_SOURCE): Add.
10856 (HAVE_PREAD64): Remove.
10857 * configure, aclocal.m4, config.in: Regenerated.
10858
10859 2003-01-03 Andrew Cagney <ac131313@redhat.com>
10860
10861 * alpha-tdep.c: Use get_frame_saved_regs.
10862 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10863 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10864 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10865 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10866 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10867
10868 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10869
10870 * configure.in: Remove all use of the SUBDIRS variable; add
10871 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10872 code providing the --enable-multi-ice option, and move it right in
10873 front of the code that checks whether gdbserver is supported.
10874 Polish that too.
10875 * configure: Regenerated.
10876 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10877 @SUBDIRS@.
10878
10879 2003-01-03 Andrew Cagney <cagney@redhat.com>
10880
10881 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10882 * avr-tdep.c, cris-tdep.c: Ditto.
10883 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10884 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10885
10886 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10887
10888 * configure.in: Remove --enable-netrom option.
10889 * configure: Regenerated.
10890
10891 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10892
10893 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10894 declaration for `struct re_pattern_buffer' instead.
10895 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10896
10897 2003-01-03 J. Brobecker <brobecker@gnat.com>
10898
10899 * mdebugread.c (parse_symbol): Count until the stEnd matching
10900 the structure name.
10901
10902 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10903
10904 * configure.in: Remove --with-cpu option.
10905 subscripts. Remove evil changequotes here.
10906 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10907 * config.in, configure: Regenerated.
10908
10909 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10910 * configure.in: Cleanup section that sources GDB and BFD configure
10911 subscripts. Remove evil changequotes here.
10912 * config.in, configure: Regenerated.
10913
10914 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10915
10916 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10917 frame accessor methods.
10918 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10919 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10920 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10921 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10922 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10923 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10924 * z8k-tdep.c: Ditto.
10925
10926 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10927
10928 * configure.in: Remove UI_OUT configuration code.
10929 * ada-lang.c: Update assuming UI_OUT is always true.
10930 * Makefile.in (UIOUT_CFLAGS): Remove.
10931 * configure: Regenerated.
10932 * TODO: Remove blurb about elimination of -DUI_OUT.
10933
10934 * configure.in: Move code that provides the --enable-gdbcli,
10935 --enable-gdbmi options right before the code that handles the
10936 --enable-tui option. Polish a bit.
10937 * configure: Regenerated.
10938
10939 * configure.in: Rewrite check for GNU regex and the
10940 --without-included regex option, and move it into the "Checks for
10941 library functions" section. This makes us use the system regex
10942 again by default on systems with version 2 of the GNU C library.
10943 This was apparently broken.
10944 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10945 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10946 * config.in, configure: Regenerated.
10947
10948 * configure.in: Move code that provides the --enable-tui option
10949 before the "Checks for libraries" section. Polish the code
10950 somewhat and set need_curses to yes if we build the TUI. Rewrite
10951 code that looks for a library providing termcap functionality to
10952 match more closely what's done in the Readline library, and move
10953 it into to the "Checks for libraries" section.
10954 * configure: Regenerated.
10955 * Makefile.in (TERMCAP): Remove variable.
10956 * config/i386/go32.mh (TERMCAP): Remove variable.
10957
10958 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10959
10960 * MAINTAINERS: Mention gdb_mbuild.sh.
10961 * gdb_mbuild.sh: Rewrite.
10962
10963 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10964
10965 * configure.in: Fix typo in last change.
10966 * config.in, configure: Regenerated.
10967
10968 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10969
10970 * valarith.c (value_binop): Delete obsolete code and comments.
10971 * configure.host: Ditto.
10972 * buildsym.h (make_blockvector): Ditto.
10973 * buildsym.c (make_blockvector): Ditto.
10974 * defs.h (enum language): Ditto.
10975 (chill_demangle): Ditto.
10976 * elfread.c (elf_symtab_read): Ditto.
10977 * dwarfread.c (CHILL_PRODUCER): Ditto.
10978 (set_cu_language): Ditto.
10979 (handle_producer): Ditto.
10980 * expprint.c (print_subexp): Ditto.
10981 * gdbtypes.c (chill_varying_type): Ditto.
10982 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10983 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10984 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10985 (chill_varying_type): Ditto.
10986 * language.h (_LANG_chill): Ditto.
10987 * language.c (binop_result_type, integral_type): Ditto.
10988 (character_type, string_type, structured_type): Ditto.
10989 (lang_bool_type, binop_type_check): Ditto.
10990 * stabsread.h (os9k_stabs): Ditto.
10991 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10992 (define_symbol, read_type, read_struct_fields): Ditto.
10993 (read_array_type, read_enum_type, read_huge_number): Ditto.
10994 (read_range_type, start_stabs): Ditto.
10995 * symfile.c (init_filename_language_table): Ditto.
10996 (add_psymbol_with_dem_name_to_list): Ditto.
10997 * symtab.c (symbol_init_language_specific): Ditto.
10998 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10999 * symtab.h (struct general_symbol_info): Ditto.
11000 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11001 * typeprint.c (typedef_print): Ditto.
11002 * utils.c (fprintf_symbol_filtered): Ditto.
11003 * valops.c (value_cast, search_struct_field, value_slice): Delete
11004 obsolete code.
11005 (varying_to_slice): Delete function.
11006 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11007 (varying_to_slice): Delete declaration.
11008 * MAINTAINERS: Update.
11009
11010 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11011
11012 * configure.in: Reorganize "Checks for library functions section"
11013 a bit. Remove check for `btowc' and `isascii' functions.
11014 * configure: Regenerated.
11015
11016 * acconfig.h (_MSE_INT_H): Remove.
11017 * configure.in: Create "Checks for header files" section, and move
11018 appropriate tests there. Don't check for objlist.h, wchar.h,
11019 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11020 misdetection fix. Also add "Checks for types", "Checks for
11021 compiler characteristics" and "Checks for library functions"
11022 sections.
11023 * config.in, configure: Regenerated.
11024
11025 * configure.in: Create "Checks for programs" section, and move
11026 appropriate tests there.
11027
11028 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11029
11030 * configure.in: Create "Checks for libraries" section, and move
11031 appropriate tests there. Cleanup check for wctype in libw. Use
11032 AC_SEARCH_LIBS to see whether we need libsocket.
11033 * configure: Regenerated.
11034
11035 For older changes see ChangeLog-2002
11036 \f
11037 Local Variables:
11038 mode: change-log
11039 left-margin: 8
11040 fill-column: 74
11041 version-control: never
11042 End:
This page took 0.245536 seconds and 3 git commands to generate.