2003-08-27 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-08-27 Andrew Cagney <cagney@redhat.com>
2
3 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
4 (alpha_osf1_init_abi): Do not set call_dummy_address.
5
6 2003-08-27 David Carlton <carlton@kealia.com>
7
8 From Randolph Chung <tausq@debian.org>:
9 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
10 compiles with -Wformat-nonliteral -Werror.
11
12 2003-08-26 Jim Blandy <jimb@redhat.com>
13
14 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
15 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
16 bfd_lookup_symbol, since we only want symbols in code sections.
17 (look_for_base): Pass zero as the SECT_FLAGS argument to
18 bfd_lookup_symbol, since we're not concerned about which section
19 the symbol is in.
20
21 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
22
23 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
24 we are frameless or the return address register is already known.
25
26 2003-08-26 Andrew Cagney <cagney@redhat.com>
27
28 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
29 in size. Add comments.
30
31 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
32
33 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
34 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
35
36 2003-08-26 Jason Merrill <jason@redhat.com>
37
38 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
39 case out of #ifdef MIPS block.
40
41 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
42
43 PR java/1322
44 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
45 available before calling SECT_OFF_TEXT.
46 * PROBLEMS: Remove description of java/1322.
47
48 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
49
50 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
51 bof, and nat0-nat127 as pseudo-registers.
52 (ia64_frame_cache): New struct used to cache frame info.
53 (ia64_register_reggroup_p): New routine used to override default
54 register grouping so registers without names are still saved and
55 restored.
56 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
57 pseudo values.
58 (ia64_pseudo_register_read): New routine to read pseudo-registers.
59 (ia64_pseudo_register_write): New routine to write pseudo-registers.
60 (ia64_alloc_frame_cache): New routine to create a new
61 ia64_frame_cache.
62 (examine_prologue): Change prototype to add next_frame pointer.
63 Assume frameless until otherwise proven. Verify that the cfm for
64 current frame matches the cfm that should occur for the prologues
65 alloc insn and if equal, mark as not frameless. At end of routine,
66 if not frameless, calculate registers for the previous frame and store
67 in the cache, if a cache is provided.
68 (ia64_skip_prologue): Use new prototype when calling examine_prologue
69 and pass 0 for next_frame.
70 (ia64_store_return_value): Change to use convert_typed_floating()
71 instead of calling ia64_convert_to_raw().
72 (ia64_extract_return_value): Change to use convert_typed_floating()
73 instead of calling ia64_convert_to_virtual().
74 (ia64_frame_cache): New routine to support new frame model.
75 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
76 (ia64_frame_sniffer): Ditto.
77 (ia64_sigtramp_frame_init_saved_regs): Ditto.
78 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
79 (ia64_sigtramp_frame_prev_register): Ditto.
80 (ia64_sigtramp_frame_sniffer): Ditto.
81 (ia64_frame_base_address): Ditto.
82 (ia64_extract_struct_value_address): Change to issue error message.
83 (ia64_frame_align): New routine to align sp.
84 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
85 (ia64_push_arguments): Removed. Logic moved to
86 ia64_push_dummy_call().
87 (ia64_push_return_address): Ditto.
88 (ia64_unwind_dummy_id): New function.
89 (ia64_unwind_pc): Ditto.
90 (ia64_convert_register_p): Ditto.
91 (ia64_register_to_value): Ditto.
92 (ia64_value_to_register): Ditto.
93 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
94 (ia64_register_byte, ia64_register_raw_size): Ditto.
95 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
96 (ia64_saved_pc_after_call): Ditto.
97 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
98 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
99 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
100 (ia64_register_convert_to_raw): Ditto.
101 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
102 (ia64_init_extra_frame_info): Ditto.
103 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
104 (ia64_gdbarch_init): Remove registering of deprecated functions that
105 are no longer used. Add registration of new gdbarch functions.
106 Remove registering deprecated_write_sp. Replace
107 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
108 Delete set_gdbarch_deprecated_register_convertible(),
109 set_gdbarch_deprecated_register_convert_to_virtual(), and
110 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
111 set_gdbarch_deprecated_register_size(),
112 set_gdbarch_deprecated_register_bytes(),
113 set_gdbarch_pcregnum(),
114 set_gdbarch_deprecated_register_byte(),
115 set_gdbarch_deprecated_register_raw_size(),
116 set_gdbarch_deprecated_max_register_raw_size(),
117 set_gdbarch_deprecated_register_virtual_size(),
118 and set_gdbarch_deprecated_max_register_virtual_size() calls.
119 Replace set_gdbarch_deprecated_extract_return_value() with
120 set_gdbarch_extract_return_value(). Remove calls to:
121 set_gdbarch_deprecated_saved_pc_after_call();
122 set_gdbarch_deprecated_frame_chain(),
123 set_gdbarch_deprecated_frame_saved_pc(),
124 set_gdbarch_deprecated_frame_init_saved_regs(),
125 set_gdbarch_deprecated_get_saved_register(),
126 set_gdbarch_deprecated_call_dummy_words(),
127 set_gdbarch_deprecated_sizeof_call_dummy_words(),
128 set_gdbarch_deprecated_init_extra_frame_info(),
129 set_gdbarch_deprecated_frame_args_address(),
130 set_gdbarch_deprecated_frame_locals_address(),
131 and set_gdbarch_deprecated_dummy_write_sp().
132 Add set_gdbarch_convert_register_p(),
133 set_gdbarch_register_to_value(),
134 set_gdbarch_value_to_register(),
135 set_gdbarch_push_dummy_call(),
136 set_gdbarch_frame_align(),
137 set_gdbarch_unwind_dummy_id(),
138 set_gdbarch_unwind_pc(),
139 frame_unwind_append_sniffer(),
140 frame_unwind_append_sniffer(),
141 and frame_base_set_default().
142
143 2003-08-25 Chris Demetriou <cgd@broadcom.com>
144
145 * configure.tgt: Document need for special "mipsisa64" handling.
146 (mipsisa64*-*-linux64): Handle as target linux64.
147 (mipsisa64*-*-*): Handle as target embed64.
148
149 2003-08-18 Michael Chastain <mec@shout.net>
150
151 * PROBLEMS: Document pr gdb/1322, the Java anonymous
152 objfile bug.
153
154 2003-08-24 Mark Kettenis <kettenis@gnu.org>
155
156 * i387-tdep.h: Update copyright date.
157 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
158
159 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
160 CFLAGS games to reflect reality.
161
162 2003-08-24 Andrew Cagney <cagney@redhat.com>
163
164 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
165 GDB_MULTI_ARCH is always non-zero.
166 * osabi.c (_initialize_gdb_osabi): Ditto.
167 (gdbarch_init_osabi): Ditto.
168 * sparc-tdep.c: Ditto for #if code.
169
170 2003-08-23 Mark Kettenis <kettenis@gnu.org>
171
172 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
173 Update comments.
174 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
175 comments.
176 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
177 x86_64_supply_fxsave.
178 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
179 x86_64_supply_fxsave.
180 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
181 x86_64_supply_fxsave.
182
183 2003-08-23 Andreas Jaeger <aj@suse.de>
184
185 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
186 i387_supply_fxsave.
187
188 2003-08-23 Mark Kettenis <kettenis@gnu.org>
189
190 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
191 i387_supply_register.
192 (go32_fetch_registers): Adjust call to i387_supply_fsave.
193 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
194 i387_supply_fsave.
195 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
196 i387_supply_fxsave.
197 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
198 i387_supply_fsave.
199 * i386bsd-nat.c (supply_fpregset): Adjust call to
200 i387_supply_fsave.
201 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
202 call to i387_supply_fxsave. Call i387_supply_fsave instead of
203 supply_fpregset.
204 (store_inferior_registers): Remove extraneous whitespace. Call
205 i387_fill_fsave instead of fill_fpregset.
206 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
207 (supply_fpregset): Likewise.
208 * i386v4-nat.c (supply_fpregset): Adjust call to
209 i387_supply_fsave.
210 * i386-interix-nat.c (supply_fpregset): Adjust call to
211 i387_supply_fsave.
212 * i386-linux-nat.c (supply_fpregset): Adjust call to
213 i387_supply_fsave.
214 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
215 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
216 i387supply_fsave and i387_supply_fxsave.
217 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
218 Incorporate code from `i387_supply_register.
219 (i387_supply_register): Remove.
220 (i387_supply_fxsave): Add `regnum' argument.
221 Update comments.
222 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
223 prototype.
224 (i387_supply_register): remove prototype.
225 Update comments.
226
227 2003-08-22 Michael Chastain <mec@shout.net>
228
229 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
230 Add lines for files in gdb/testsuite/gdb.cp/* that are
231 still not 8.3 unique.
232
233 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
234
235 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
236 TYPE_VPTR_FIELDNO is valid.
237
238 2003-08-19 Mark Kettenis <kettenis@gnu.org>
239
240 * utils.c (set_width_command): Remove prototypes.
241 (set_screen_size): New prototype.
242 (init_page_info): Simplify by fetching the screen size from
243 Readline. Call set_screen_size.
244 (set_screen_size): New function.
245 (set_width): Add missing whitespace in comment.
246 (set_width_command): Call set_screen_size.
247 (set_height_command): New function.
248 (initialize_utils): Fix formatting. Make "set height" command
249 call set_height_command. Remove redundant code that turns off
250 pagination if output isn't a terminal. Remove redundant call to
251 set_width_command.
252
253 2003-08-22 Mark Kettenis <kettenis@gnu.org>
254
255 * sparc64-tdep.h (sparc64_regnum): Fix comment.
256 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
257 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
258 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
259 `case' keyword.
260 (sparc64_register_info): Give the reister with number
261 SPARC64_STATE_REGNUM a name.
262 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
263 %asi and %ccr.
264 (sparc64_push_dummy_call): Take BIAS into account when checking
265 stcak alignment.
266 (sparc_software_single_step): Remove assertions that check whether
267 NPC and NNPC were zero.
268 (sparc_supply_rwindow): Make public. Merge functionality with
269 sparc64_supply_rwindow.
270 (sparc_fill_rwindow): Make public. Merge functionality with
271 sparc64_fill_rwindow.
272 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
273 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
274 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
275 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
276 sparc_supply_rwindow instead of sparc64_supply_rwindow.
277
278 * reggroups.c: Add whitespace after declarations of local
279 variables in functions.
280
281 2003-08-21 Michael Chastain <mec@shout.net>
282
283 * gdbtypes.h: Change array bound type from an int to enum.
284
285 2003-08-21 Andrew Cagney <cagney@redhat.com>
286
287 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
288 * config/sparc/tm-sparc.h: Ditto.
289 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
290 unconditionally.
291 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
292
293 2003-07-13 Mark Kettenis <kettenis@gnu.org>
294
295 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
296 (register_objfile_data, set_objfile_data, objfile_data): New
297 prototypes.
298 * objfiles.c (objfile_alloc_data, objfile_free_data): New
299 prototypes.
300 (allocate_objfile): Call objfile_alloc_data.
301 (free_objfile): Call objfile_free_data.
302 (struct objfile_data): New.
303 (struct objfile_data_registration): New.
304 (struct objfile_data_registry): New.
305 (objfile_data_registry): New variable.
306 (register_objfile_data): New function.
307 (objfile_alloc_data, objfile_free_data): New functions.
308 (set_objfile_data, objfile_data): New functions.
309 * dwarf2-frame.c (dwarf2_frame_data): New variable.
310 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
311 (_initialize_dwarf2_frame): New function and prototype.
312
313 2003-08-21 Andrew Cagney <cagney@redhat.com>
314
315 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
316 a specific architecture.
317 * arch-utils.h (set_architecture_from_arch_mach): Delete
318 declaration.
319 (target_architecture_hook): Delete declaration.
320 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
321 (default_float_format): Assume GDB_MULTI_ARCH.
322 (default_double_format): Assume GDB_MULTI_ARCH.
323 (set_endian_from_file): Delete function.
324 (arch_ok): Delete function.
325 (set_arch): Delete function.
326 (set_architecture_from_arch_mach): Delete function.
327 (set_architecture_from_file): Delete function.
328 (set_architecture): Assume GDB_MULTI_ARCH.
329 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
330
331 2003-08-21 Mark Kettenis <kettenis@gnu.org>
332
333 Rewrite FreeBSD/sparc64 native configuration.
334 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
335 * sparc64fbsd-nat.c: New file.
336 * sparc64fbsd-tdep.c: New file.
337 * sparc64-tdep.c sparc64-tdep.h: New files.
338 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
339 sparc64fbsd-tdep.o): New dependencies.
340 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
341 and sparc64fbsd-tdep.c.
342 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
343 * config/sparc/fbsd.mh: Remove copyright notice.
344 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
345 sparcbsd-nat.o.
346 * config/sparc/fbsd.mt: Remove copyright notice.
347 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
348 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
349 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
350 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
351 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
352 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
353 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
354 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
355 "sparc/tm-sp64.h".
356 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
357 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
358
359 2003-08-21 Michael Chastain <mec@shout.net>
360
361 * symtab.h: Add doco on the space critical structures and
362 some measurements of space usage.
363
364 2003-08-21 Michael Snyder <msnyder@redhat.com>
365
366 * tracepoint.c (trace_dump_command): Trace break address
367 is subject to DECR_PC_AFTER_BREAK.
368 (set_traceframe_context): Make "trace_line" an int.
369 Fixes suggested by Mark Newman <mark.newman@lmco.com>
370
371 2003-08-20 Michael Snyder <msnyder@redhat.com>
372
373 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
374 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
375 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
376 argument passing.
377 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
378 functions, replace sh_push_dummy_call.
379 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
380
381 2003-08-20 Michael Chastain <mec@shout.net>
382
383 * gdbtypes.h (struct main_type): Rearrange to save space.
384
385 2003-08-20 Michael Snyder <msnyder@redhat.com>
386
387 * trad-frame.c: Comment typo fix.
388
389 2003-08-20 Michael Snyder <msnyder@redhat.com>
390 Kevin Buettner <kevinb@redhat.com>
391
392 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
393 (frv_frame_init_saved_regs): Add declaration.
394 (frame_extra_info): Add new field ``saved_regs''.
395 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
396 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
397 Update frame related code.
398 (frv_extract_struct_value_address): Adjust formatting.
399 * Makefile.in (frv-tdep.o): Update dependencies.
400 * config/frv/tm-frv.h (target_insert_watchpoint)
401 (target_remove_watchpoint, target_insert_hw_breakpoint)
402 (target_remove_hw_breakpoint): Delete these macros.
403 (remote_insert_watchpoint, remote_remove_watchpoint)
404 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
405 these declarations.
406
407 2003-08-20 Michael Chastain <mec@shout.net>
408
409 * defs.h (ENUM_BITFIELD): New macro.
410 * symtab.h (ENUM_BITFIELD): Use it.
411 (BYTE_BITFIELD): Remove old macro, which was already disabled.
412
413 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
414
415 * MAINTAINERS (write after approval): Add myself.
416
417 2003-08-18 Andrew Cagney <cagney@redhat.com>
418
419 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
420 * gdbarch.h, gdbarch.c: Re-generate.
421 * infcall.c (call_function_by_hand): Adjust the SP by
422 frame_red_zone_size before allocating any stack space.
423 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
424 * x86-64-tdep.c (x86_64_frame_align): New function.
425 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
426
427 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
428 Remove code adjusting SP so that it skips over the Red Zone.
429
430 2003-08-18 Mark Kettenis <kettenis@gnu.org>
431
432 * NEWS (New native configurations): Mention FreeBSD/amd64.
433
434 2003-08-18 Andrew Cagney <cagney@redhat.com>
435
436 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
437 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
438 "m68k_frame_p".
439 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
440
441 2003-08-18 Mark Kettenis <kettenis@gnu.org>
442
443 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
444
445 2003-08-18 Michal Ludvig <mludvig@suse.cz>
446
447 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
448 Define.
449 * i386-linux-nat.c: Include "linux-nat.h".
450 (child_post_startup_inferior): New function.
451
452 2003-08-18 Mark Kettenis <kettenis@gnu.org>
453
454 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
455 at the start of a frameless function. This probably fixes PR
456 backtrace/1338.
457
458 2003-08-17 Michael Chastain <mec@shout.net>
459
460 * symfile.c (find_sym_fns): Remove special case for apollo target.
461
462 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
463
464 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
465 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
466 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
467 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
468 (linux_supports_tracevforkdone): New function.
469 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
470 TRACEVFORKDONE.
471 (child_follow_fork): Handle vfork.
472 (linux_handle_extended_wait): Likewise. Also handle exec.
473 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
474 * NEWS: Mention fork tracing.
475
476 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
477
478 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
479
480 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
481
482 * Makefile.in (i386-linux-nat.o): Update dependencies.
483 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
484 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
485 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
486 * i386-linux-nat.c: Include "linux-nat.h".
487 (child_post_startup_inferior): New function.
488 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
489 * infptrace.c (kill_inferior): Wrap in #ifdef.
490 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
491 attaching to each LWP.
492 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
493 (init_lin_lwp_ops): Fill in some more operations.
494 * linux-nat.h (linux_enable_event_reporting)
495 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
496 prototypes.
497 * linux-nat.c (linux_enable_event_reporting): New function.
498 (child_post_attach, linux_child_post_startup_inferior)
499 (child_post_startup_inferior, child_follow_fork)
500 (linux_handle_extended_wait, kill_inferior): New functions.
501
502 2003-08-16 Andrew Cagney <cagney@redhat.com>
503
504 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
505 * gdbarch.h, gdbarch.c: Re-generate.
506
507 2003-08-16 Mark Kettenis <kettenis@gnu.org>
508
509 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
510
511 2003-08-16 Andrew Cagney <cagney@redhat.com>
512
513 * NEWS: Mention that "set prompt-escape-char" was deleted.
514 * top.c (get_prompt_1): Delete function.
515 (gdb_prompt_escape):
516 (init_main): Do not clear "gdb_prompt_escape". Delete "set
517 prompt-escape-char" command.
518 (MAX_PROMPT_SIZE): Delete macro.
519 (get_prompt): Simplify, do not call get_prompt_1.
520
521 2003-08-16 Andrew Cagney <cagney@redhat.com>
522
523 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
524 -Werror. -Wformat-nonliteral problems.
525
526 2003-08-15 J. Brobecker <brobecker@gnat.com>
527
528 Further multiarching work mostly for hppa64-*-hpux11:
529 * hppa-tdep.h: New file.
530 * hppa-tdep.c: #include hppa-tdep.c.
531 (hppa32_num_regs): Renamed from hppa_num_regs.
532 (hppa64_num_regs): New constant.
533 (hppa64_call_dummy_breakpoint_offset): New constant.
534 (hppa32_call_dummy_length): New constant.
535 (hppa64_call_dummy_length): New constant.
536 (hppa32_stack_align): Make name 32bit explicit.
537 (hppa32_register_virtual_type): Likewise.
538 (hppa32_extract_return_value): Likewise.
539 (hppa32_use_struct_convention): Likewise.
540 (hppa32_store_return_value): Likewise.
541 (hppa64_register_virtual_type): New function.
542 (hppa64_extract_return_value): New function.
543 (hppa64_use_struct_convention): New function.
544 (hppa64_store_return_value): New function.
545 (hppa_frame_locals_address): Remove declaration, function does
546 not exist anymore.
547 (hppa_register_byte): Add support for PA64 ABI.
548 (hppa_gdbarch_init): Add support for PA64 ABI.
549 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
550 Make name 32bit explicit.
551 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
552 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
553 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
554 (hppa64_hpux_frame_base_before_sigtramp): New function.
555 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
556 * config/pa/tm-hppa64.h: Remove macros that are no longer
557 necessary now that the gdbarch vector is properly setup.
558 Transform some macros into function calls. Some minor cleanup.
559 * config/pa/tm-hppah.h: Update function calls in macros
560 following the function renaming in hppa-hpux-tdep.c.
561 * Makefile.in (hppa_tdep_h): New variable.
562 (hppa-tdep.o): Add dependency over hppa_tdep_h.
563
564 2003-08-14 Michael Snyder <msnyder@redhat.com>
565
566 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
567
568 2003-08-13 J. Brobecker <brobecker@gnat.com>
569
570 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
571 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
572 routine.
573
574 2003-08-13 Michael Snyder <msnyder@redhat.com>
575
576 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
577 (frv_saved_pc_after_call): Use deprecated ftype.
578 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
579 (frv_remote_translate_xfer_address): Remove.
580 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
581
582 2003-08-13 J. Brobecker <brobecker@gnat.com>
583
584 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
585 initialization after the common gdbarch initialization, not before.
586
587 2003-08-13 J. Brobecker <brobecker@gnat.com>
588
589 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
590 (ADDR_BITS_REMOVE): Remove, redundant.
591
592 2003-08-13 J. Brobecker <brobecker@gnat.com>
593
594 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
595 gdbarch method to clear the 2 low bits of text addresses.
596
597 2003-08-12 Andrew Cagney <cagney@redhat.com>
598
599 * Makefile.in (dsrec.o): Update dependencies.
600 * dsrec.c: Include "gdb_assert.h".
601 (make_srec): Use snprintf instead of sprintf, use a literal format
602 string.
603
604 2003-08-12 Andrew Cagney <cagney@redhat.com>
605
606 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
607 FRAME_OBSTACK_ZALLOC.
608
609 2003-08-12 Kevin Buettner <kevinb@redhat.com>
610
611 * i386-tdep.c (i386_gdbarch_init): Enable default support for
612 SSE registers.
613
614 2003-08-10 Mark Kettenis <kettenis@gnu.org>
615
616 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
617 amd64fbsd_sc_reg_offset): Add extern declarations.
618 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
619 declarations.
620
621 2003-08-11 Ben Elliston <bje@wasabisystems.com>
622
623 * MAINTAINERS (write after approval): Update my mail address.
624
625 2003-08-10 Andrew Cagney <cagney@redhat.com>
626
627 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
628
629 2003-08-10 Mark Kettenis <kettenis@gnu.org>
630
631 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
632 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
633 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
634 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
635 i386bsd_sc_reg_offset): Add extern declarations.
636 * i386obsd-nat.c: Include "i386-tdep.h"
637 (_initialize_i386obsd_nat): Remove extern declarations.
638 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
639 declarations.
640 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
641 declarations.
642
643 * i386-tdep.c (i386_register_to_value): Use get_frame_register
644 instead of frame_read_register.
645 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
646 instead of frame_read_register. Use I386_ESP_REGNUM instead of
647 SP_REGNUM.
648 (i386_frame_prev_register): Use frame_unwind_register_unsigned
649 instead of frame_unwind_unsigned_register. Use
650 I386_EFLAGS_REGISTER instead of PS_REGNUM.
651 (i386_get_longjmp_target): Use regcache_read_unsigned_register
652 instead of read_register. Use builtin_type_void_data_ptr instead
653 of builtin_type_void_func_ptr when extracting the address of the
654 jmp_buf.
655 (i386_extract_return_value, i386_store_return_value,
656 i386_pseudo_register_read, i386_pseudo_register_write): Use
657 register_size instead REGISTER_RAW_SIZE.
658
659 2003-08-10 Andrew Cagney <cagney@redhat.com>
660
661 * infcall.c (call_function_by_hand): Use xstrprintf instead of
662 sprintf. Make "name" constant.
663
664 2003-08-10 Mark Kettenis <kettenis@gnu.org>
665
666 * i387-tdep.c (i387_register_to_value): Use get_frame_register
667 instead of frame_read_register.
668 (i387_print_float_info): Use get_frame_register and
669 get_frame_register_unsigned instead of frame_register_read.
670
671 * i386fbsd-nat.c: Include "i386-tdep.h".
672 (child_resume): Make `eflags' an ULONGEST. Use
673 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
674 instead of register_read and register_write.
675
676 * i386bsd-nat.c (fetch_inferior_registers,
677 store_inferior_registers): Don't use && at the end of a line.
678 (_initialize_i386bsd_nat): Fix typo.
679
680 * frame.c (_initialize_frame): Add missing backslash.
681
682 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
683 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
684 and supply_register instead of manipulating the register buffer
685 directly.
686
687 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
688 * config/i386/nm-i386sol2.h
689 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
690
691 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
692 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
693 instructions that GCC likes to mingle into the prologue. Fixes
694 gdb/1253 and gdb/1255.
695
696 2003-08-09 Andrew Cagney <cagney@redhat.com>
697
698 Fix GDB PR cli/926.
699 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
700 * command.h (add_setshow_uinteger_cmd): Declare.
701 * frame.c (set_backtrace_cmd): New function.
702 (show_backtrace_cmd): New function.
703 * frame.c (_initialize_frame): Replace "set/show
704 backtrace-below-main" with "set/show backtrace past-main". Add
705 command "set/show backtrace limit".
706 (backtrace_past_main): Rename "backtrace_below_main".
707 (backtrace_limit): New variable.
708 (get_prev_frame): Update. Check the backtrace_limit.
709
710 2003-08-09 Andrew Cagney <cagney@redhat.com>
711
712 * defs.h (xstrprintf): Declare.
713 * utils.c (xstrprintf): New function.
714 * breakpoint.c (insert_breakpoints): Replace sprintf and
715 non-literal format strings, with xstrprintf and cleanups.
716 (delete_breakpoint,breakpoint_re_set): Ditto.
717 (commands_command, insert_breakpoints): Ditto.
718 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
719 (break_at_finish_command_1): Ditto.
720
721 2003-08-09 Andrew Cagney <cagney@redhat.com>
722
723 * MAINTAINERS (language support): List Adam Fedor as Objective C
724 maintainer.
725
726 2003-08-08 J. Brobecker <brobecker@gnat.com>
727
728 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
729 are now multiarched.
730
731 2003-08-08 J. Brobecker <brobecker@gnat.com>
732
733 * config/pa/tm-hppa64.h: Remove lots of macros that are no
734 longer necessary now that hppa64 is partially multiarch'ed.
735
736 2003-08-08 Andrew Cagney <cagney@redhat.com>
737
738 * interps.c (interp_set): Check for a NULL "old_interp".
739
740 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
741
742 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
743 (install-only): Support DESTDIR.
744 (uninstall): Likewise.
745 (install-gdbtk): Likewise.
746
747 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
748
749 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
750 contains something meaningful at all times.
751
752 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
753
754 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
755
756 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
757
758 * MAINTAINERS (write after approval): Added self.
759
760 2003-08-07 Andrew Cagney <cagney@redhat.com>
761
762 * inferior.h (AT_SYMBOL): Define.
763 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
764 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
765 * mips-tdep.c (mips_call_dummy_address): Delete function.
766 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
767 set call_dummy_address.
768
769 2003-08-07 Andrew Cagney <cagney@redhat.com>
770
771 * language.c (op_error): Delete function.
772 (binop_type_check): Delete function.
773 * language.h (type_op_error, range_op_error): Delete macros.
774 (op_error): Delete declaration.
775
776 2003-08-07 Andrew Cagney <cagney@redhat.com>
777
778 * interps.h (INTERP_MI2, INTERP_MI3): Define.
779
780 2003-08-07 Michal Ludvig <mludvig@suse.cz>
781
782 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
783 (x86_64_push_arguments): Skip the red zone.
784
785 2003-08-05 Andrew Cagney <cagney@redhat.com>
786
787 * reggroups.c (reggroup_next): Check for the final entry.
788
789 2003-08-04 Andrew Cagney <cagney@redhat.com>
790
791 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
792 * cli/cli-script.c (define_command): Call query directly, instead
793 of passing it a buffer.
794 * ocd.c (ocd_error): Pass error a constant format string.
795 * remote-mips.c (mips_error): Use fputs_filtered.
796
797 * solib-svr4.c (_initialize_svr4_solib): Update
798 register_gdbarch_data call.
799 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
800
801 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
802 (register_gdbarch_data): Delete "free" parameter. Update
803 comments.
804 * gdbarch.h, gdbarch.c: Re-generate.
805 * reggroups.c (_initialize_reggroup): Update.
806 * gnu-v3-abi.c (init_gnuv3_ops): Update.
807 * frame-base.c (_initialize_frame_base): Update.
808 * frame-unwind.c (_initialize_frame_unwind): Update.
809 * user-regs.c (_initialize_user_regs): Update.
810 * remote.c (_initialize_remote): Update.
811 * regcache.c (_initialize_regcache): Update.
812
813 * regcache.c (xfree_regcache_descr): Delete function.
814 (_initialize_regcache): Update call to register_gdbarch_data.
815 (init_regcache_descr, init_legacy_regcache_descr): Use
816 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
817
818 * remote.c (free_remote_state): Delete function.
819 (_initialize_remote): Update register_gdbarch_data.
820 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
821 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
822
823 2003-08-04 Andrew Cagney <cagney@redhat.com>
824
825 * reggroups.c (struct reggroup_el): Define.
826 (struct reggroups): Delete field "nr_group". Replace array
827 "group" with a "first" to "last" linked list.
828 (reggroups_init): Update. Allocate using gdbarch's obstack.
829 (reggroups_free): Delete function.
830 (add_group): Update. Add "el" parameter.
831 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
832 (default_groups): Update.
833 (reggroup_next): Replace reggroups.
834 (reggroups_dump): Update.
835 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
836 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
837 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
838
839 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
840
841 * Makefile.in (tui-interp.o): Update dependencies.
842
843 2003-08-04 David Carlton <carlton@kealia.com>
844
845 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
846 to internal_error call.
847 * source.c (forward_search_command): Add "%s" format argument.
848 (reverse_search_command): Ditto.
849 * top.c (quit_confirm): Ditto.
850 * cli/cli-setshow.c (do_setshow_command): Ditto.
851 * cp-valprint.c (cp_print_class_method): Replace
852 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
853 (cp_print_class_member): Ditto.
854 * event-top.c (command_line_handler): Ditto.
855 * linux-proc.c (linux_info_proc_cmd): Ditto.
856 * p-typeprint.c (pascal_type_print_base): Ditto.
857 * p-valprint.c (pascal_object_print_class_method): Ditto.
858 (pascal_object_print_class_member): Ditto.
859 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
860 * remote.c (remote_cisco_section_offsets): Ditto.
861 * top.c (command_line_input): Ditto.
862 * utils.c (vwarning,error_stream,quit): Ditto.
863 * valprint.c (print_floating,print_binary_chars)
864 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
865
866 2003-08-04 Andrew Cagney <cagney@redhat.com>
867
868 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
869
870 2003-08-02 Andrew Cagney <cagney@redhat.com>
871
872 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
873 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
874 amd64fbsd-nat.c.
875
876 2003-08-02 Andrew Cagney <cagney@redhat.com>
877
878 * Makefile.in: Update all dependencies and definitions.
879
880 2003-08-02 Adam Fedor <fedor@gnu.org>
881
882 * linespec.c (is_objc_method_format): New function
883 (decode_line_1, locate_first_half): Use it.
884 Fixes PR objc/1298
885
886 2003-08-01 Andrew Cagney <cagney@redhat.com>
887
888 * NEWS: Mention that m32r is multi-arch.
889 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
890 * configure.tgt: Recognize m32r-*-*.
891 * config/m32r/tm-m32r.h: Delete file.
892 * config/m32r/m32r.mt: New file.
893 * m32r-rom.c (m32r_upload_command): Use hostent only when
894 gethostname succeeds, in order to avoid a compilation
895 warning.
896 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
897 compiler warning.
898
899 2003-08-01 Michael Snyder <msnyder@redhat.com>
900
901 * sh-tdep.c (sh_frame_align): New gdbarch method.
902 (sh_gdbarch_init): Set up frame_align method.
903
904 2003-07-31 Michael Snyder <msnyder@redhat.com>
905
906 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
907 which is already covered by the new frames infrastructure.
908
909 2003-07-31 Andrew Cagney <cagney@redhat.com>
910
911 * user-regs.c (struct user_reg): Add "next" link.
912 (struct user_regs): Replace "user" with "first" and "last" links.
913 (append_user_reg): Add pre-allocated "reg" parameter.
914 (builtin_user_regs): Provide initial value for "last".
915 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
916 (user_regs_init): Allocate memory from the gdbarch obstack.
917 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
918 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
919 linked list.
920 (usernum_to_user_reg): New function.
921 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
922 (value_of_user_reg): Use usernum_to_user_reg.
923 (user_regs_free): Delete function.
924 (_initialize_user_regs): Update register_gdbarch_data call.
925
926 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
927
928 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
929
930 2003-07-30 Michael Snyder <msnyder@redhat.com>
931
932 * value.h (value_being_returned): Add a struct_addr argument.
933 * infcall.c (call_function_by_hand): Pass struct_addr to
934 value_being_returned.
935 * infcmd.c (print_return_value): Pass zero as struct_addr.
936 * values.c (value_being_returned): If struct_addr is passed,
937 use it instead of trying to recover it from the inferior.
938
939 2003-07-30 Kevin Buettner <kevinb@redhat.com>
940
941 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
942 the prologue analyzer won't need to attempt to extract the pc
943 value from the woefully incomplete dummy frame.
944 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
945 possible. Disable code which modifies the frame.
946
947 2003-07-28 Andrew Cagney <cagney@redhat.com>
948
949 * annotate.c (annotate_breakpoints_headers): Restrict annotation
950 to level 2.
951 (annotate_breakpoints_table, annotate_record): Ditto.
952 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
953 (annotate_field_name_end, annotate_field_value): Ditto.
954 (annotate_field_end, annotate_frame_source_begin): Ditto.
955 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
956 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
957 (annotate_frame_begin, annotate_frame_function_name): Ditto.
958 (annotate_frame_address_end, annotate_frame_address): Ditto.
959 (annotate_frame_args, annotate_frame_end): Ditto.
960 (annotate_frame_where, annotate_arg_begin): Ditto.
961 (annotate_arg_name_end, annotate_arg_value): Ditto.
962 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
963 (annotate_function_call, annotate_signal_name): Ditto.
964 (annotate_signal_string, annotate_signal_name_end): Ditto.
965 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
966 (annotate_value_begin, annotate_value_history_value): Ditto.
967 (annotate_value_history_end, annotate_value_end): Ditto.
968 (annotate_display_begin, annotate_display_number_end): Ditto.
969 (annotate_display_format, annotate_display_expression): Ditto.
970 (annotate_display_expression_end, annotate_display_value): Ditto.
971 (annotate_display_end, annotate_array_section_begin): Ditto.
972 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
973 (annotate_elt, annotate_array_section_end): Ditto.
974
975 2003-07-28 Andrew Cagney <cagney@redhat.com>
976
977 * regcache.c (struct regcache_descr): Update comments on
978 nr_raw_registers.
979 (init_legacy_regcache_descr): Don't set nr_raw_registers or
980 sizeof_raw_register_valid_p.
981 (init_regcache_descr): Set nr_raw_registers and
982 sizeof_raw_register_valid_p before calling
983 init_legacy_regcache_descr.
984
985 2003-07-28 Andrew Cagney <cagney@redhat.com>
986
987 * mips-tdep.c (print_gp_register_row): Print the GPR's register
988 MOD NUM_REGS.
989
990 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
991
992 * thread.c (info_threads_command): Use get_selected_frame ().
993 Check that there is at least one non-sentinel frame.
994
995 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
996
997 * m68hc11-tdep.c (struct frame_extra_info): Remove.
998 (m68hc11_pop_frame): Remove.
999 (m68hc11_frame_saved_pc): Remove.
1000 (m68hc11_frame_chain): Remove.
1001 (m68hc11_frame_init_saved_regs): Remove.
1002 (m68hc11_init_extra_frame_info): Remove.
1003 (m68hc11_store_struct_return): Remove.
1004 (m68hc11_saved_pc_after_call): Remove.
1005
1006 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1007
1008 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1009 frame unwind information.
1010 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1011 and adapted for frame unwinding.
1012 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1013 (m68hc11_unwind_pc): New function.
1014 (m68hc11_frame_unwind_cache): New function to analyze frames.
1015 (m68hc11_frame_this_id): New function to create new frame struct.
1016 (m68hc11_frame_prev_register): New function to unwind a register from
1017 the frame.
1018 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1019 (m68hc11_frame_p): New function for the above.
1020 (m68hc11_frame_base_address): New function to return fp of frame.
1021 (m68hc11_frame_args_address): Update for frame.
1022 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1023 (m68hc11_unwind_sp): New function.
1024 (m68hc11_unwind_dummy_id): New function.
1025 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1026 calls.
1027
1028 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1029
1030 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1031 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1032 when we are beyond the current pc.
1033
1034 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1035
1036 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1037 from m68hc11_push_arguments.
1038 (m68hc11_push_arguments): Remove.
1039 (m68hc11_push_return_address): Remove.
1040 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1041 handlers; remove deprecated_extra_stack_alignment_needed.
1042
1043 2003-07-27 Andrew Cagney <cagney@redhat.com>
1044
1045 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1046 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1047 REAL_PC and not the pointer.
1048 * hppa-hpux-tdep.c: Include frame.h
1049
1050 2003-07-27 Andrew Cagney <cagney@redhat.com>
1051
1052 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1053 GDB_MULTI_ACH_PARTIAL.
1054
1055 2003-07-27 Andrew Cagney <cagney@redhat.com>
1056
1057 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1058 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1059 operator at start and not end of line.
1060 (decode_prologue): Ditto.
1061 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1062 frame_unwind_register_unsigned instead of
1063 frame_unwind_unsigned_register.
1064 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1065 read_register.
1066 (m32r_push_dummy_call): Use register_size instead of
1067 REGISTER_RAW_SIZE.
1068 (m32r_frame_sniffer): Replace m32r_frame_p.
1069 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1070 * m32r-rom.c (report_transfer_performance): Delete extern
1071 declaration.
1072 (m32r_load, m32r_upload_command): Use print_transfer_performance
1073 instead of report_transfer_performance.
1074 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1075 / add_show_from_set.
1076
1077 2003-07-26 Andrew Cagney <cagney@redhat.com>
1078
1079 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1080 store_return_value and extract_struct_value_address.
1081
1082 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
1083
1084 PR c++/1267
1085 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1086 NULL, default to the section containing PC.
1087
1088 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1089
1090 * NEWS: Mention "regs" deprecated for m68hc11 too.
1091
1092 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1093 (m68hc11_print_register): New function to print out one register.
1094 (m68hc11_print_registers_info): New function to print registers.
1095 (show_regs): Deprecate and use the above.
1096 (m68hc11_gdbarch_init): Install the print_registers_info.
1097
1098 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1099
1100 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1101 that we have a SIGTRAP before returning non-zero.
1102
1103 2003-07-23 Michal Ludvig <mludvig@suse.cz>
1104 Elena Zannoni <ezannoni@redhat.com>
1105
1106 * linespec.c (decode_line_2): Avoid crash if
1107 find_function_start_sal() returns empty record.
1108
1109 2003-07-23 Andreas Schwab <schwab@suse.de>
1110
1111 * ia64-tdep.c (ia64_print_insn): New function.
1112 (ia64_gdbarch_init): Set print_insn to it.
1113 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1114 deprecated_tm_print_insn_info.
1115
1116 2003-07-22 Michael Snyder <msnyder@redhat.com>
1117
1118 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1119 handle 8-bit returns (long long).
1120 (h8300h_extract_return_value): Ditto.
1121 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1122
1123 2003-07-22 Andrew Cagney <cagney@redhat.com>
1124
1125 * gdbarch.c Include "gdb_obstack.h".
1126 (struct gdbarch): Add an "obstack".
1127 (alloc_gdbarch_data): Allocate the gdbarch data using
1128 GDBARCH_OBSTACK_CALLOC.
1129 (free_gdbarch_data): Delete function.
1130 (gdbarch_obstack_zalloc): New function.
1131 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1132 Assert that the architecture is not initialized.
1133 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1134 vector from the obstack.
1135 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1136 architecture obstack.
1137 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1138 (set_gdbarch_data): Assert that the data is not initialized.
1139 (struct gdbarch_data): Delete member "free".
1140 (register_gdbarch_data): Do not initialize "free".
1141 * gdbarch.h, gdbarch.c: Re-generate.
1142
1143 2003-07-22 Andrew Cagney <cagney@redhat.com>
1144
1145 * configure.in (build_warnings): Add -Wformat-nonliteral.
1146 * configure: Re-generate.
1147
1148 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1149
1150 * dwarf2loc.c (locexpr_describe_location): Fix typos.
1151
1152 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1153
1154 * findvar.c (read_var_value): Remove case for thread local storage
1155 variables. It is now entirely handled by the dwarf2 location
1156 expression code.
1157 * printcmd.c (address_info): Ditto.
1158 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1159 enumeration value.
1160 (struct symbol): Remove objfile field, which was used by
1161 LOC_THREAD_LOCAL_STATIC only.
1162 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1163 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1164 usage of objfile pointer.
1165 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1166 thread local variables.
1167 Add include of objfiles.h.
1168 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1169 storage variables.
1170 * Makefile.in (dwarf2loc.o): Update dependencies.
1171
1172 2003-07-22 Andrew Cagney <cagney@redhat.com>
1173
1174 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1175 get_frame_base.
1176 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1177 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1178 (struct value): Add opaque declaration.
1179 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1180
1181 2003-07-21 Andrew Cagney <cagney@redhat.com>
1182
1183 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1184 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1185
1186 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1187
1188 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1189 regcache_cooked_read_unsigned instead of read_register.
1190 (m68hc11_saved_pc_after_call): Likewise.
1191 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1192 instead of write_register.
1193 (m68hc11_register_type): New function.
1194 (m68hc11_register_virtual_type): Remove.
1195 (m68hc11_store_return_value): Convert to use the regcache.
1196 (m68hc11_extract_struct_value_address): Likewise.
1197 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1198 m68hc11_register_type; undeprecate store_return_value and
1199 extract_struct_value_address.
1200
1201 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1202
1203 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1204 and translate to use regcache.
1205 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1206
1207 2003-07-18 Andrew Cagney <cagney@redhat.com>
1208
1209 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1210 * gdbarch.h, gdbarch.c: Re-generate.
1211 * i386-tdep.c (i386_gdbarch_init): Do not set
1212 DWARF2_BUILD_FRAME_INFO.
1213 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1214 unconditionally.
1215 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1216 DWARF2_BUILD_FRAME_INFO.
1217
1218 2003-07-18 Andrew Cagney <cagney@redhat.com>
1219
1220 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1221 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1222
1223 2003-07-18 Andrew Cagney <cagney@redhat.com>
1224
1225 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1226 frame_unwind_address_in_block, instead of frame_pc_unwind.
1227 (dwarf2_frame_cache): Ditto.
1228
1229 2003-07-18 Andrew Cagney <cagney@redhat.com>
1230
1231 * user-regs.h (struct gdbarch): Declare opaque.
1232 * ui-out.h (struct ui_file): Declare opaque.
1233 * dwarf2-frame.h (struct frame_info): Declare opaque.
1234
1235 2003-07-18 Kris Warkentin <kewarken@qnx.com>
1236
1237 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1238 #include "...".
1239 (procfs_meminfo): Change strerror to safe_strerror.
1240 (procfs_can_run): Remove K&R badness.
1241
1242 2003-07-17 Michael Snyder <msnyder@redhat.com>
1243
1244 * remote-sim.c: Comment typo fix.
1245
1246 2003-07-17 Andrew Cagney <cagney@redhat.com>
1247
1248 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1249 configure.
1250 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1251 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1252 GDB_MULTI_ARCH_PARTIAL.
1253
1254 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
1255
1256 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1257 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1258 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1259
1260 2003-07-16 Theodore A. Roth <troth@openavr.org>
1261
1262 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1263 found.
1264 (avr_frame_unwind_cache): Don't unwind FP for main.
1265 Update a comment.
1266 Save the computed prev_sp.
1267 (avr_saved_regs_unwinder): Remove function.
1268 (avr_frame_prev_register): Use PC unwind logic from
1269 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1270
1271 2003-07-16 Andrew Cagney <cagney@redhat.com>
1272
1273 * frame-base.h (frame_base_p_ftype): Delete definition.
1274 (frame_base_append_predicate): Delete declaration.
1275 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1276 (frame_unwind_append_predicate): Delete declaration.
1277 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1278 (append_predicate): Delete parameter "p".
1279 (frame_unwind_append_predicate): Delete function.
1280 (frame_unwind_append_sniffer): Update call to append_predicate.
1281 (frame_unwind_free): Delete function.
1282 (_initialize_frame_unwind): Pass NULL as "free" to
1283 register_gdbarch_data.
1284 (frame_unwind_init): Append the dummy_frame_sniffer.
1285 (frame_unwind_find_by_frame): Simplify.
1286 * frame-base.c (struct frame_base_table): Delete field "p".
1287 (append_predicate): Delete parameter "p".
1288 (frame_base_append_predicate): Delete function.
1289 (frame_base_append_sniffer): Update call to append_predicate.
1290 (frame_base_free): Delete function.
1291 (frame_base_find_by_frame): Simplify.
1292 (_initialize_frame_base): Pass NULL as "free" to
1293 register_gdbarch_data.
1294 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1295 (x86_64_sigtramp_frame_sniffer): Replace
1296 "x86_64_sigtramp_frame_p".
1297 (x86_64_init_abi): Set the frame unwind sniffers.
1298 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1299 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1300 (m68k_gdbarch_init): Set the frame unwind sniffers.
1301 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1302 "i386_sigtramp_frame_p".
1303 (i386_frame_sniffer): Replace "i386_frame_p".
1304 (i386_gdbarch_init): Set the frame unwind sniffers.
1305 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1306 (avr_gdbarch_init): Set the frame unwind sniffers.
1307 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1308 "alpha_sigtramp_frame_p"
1309 (alpha_heuristic_frame_sniffer): Replace
1310 "alpha_heuristic_frame_p".
1311 (alpha_gdbarch_init): Set the frame unwind sniffers.
1312 (alpha_dwarf2_init_abi): Ditto.
1313 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1314 "alpha_debug_frame_p".
1315 (alpha_mdebug_frame_base_sniffer): Replace
1316 "alpha_mdebug_frame_base_p".
1317 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1318 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1319 (d10v_gdbarch_init): Set the frame unwind sniffer.
1320 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1321 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1322 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1323 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1324 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1325 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1326
1327 2003-07-16 Michael Snyder <msnyder@redhat.com>
1328
1329 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1330 should go thru sh_dsp_register_sim_regno, else the dsp regs
1331 will not get the right values.
1332
1333 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1334
1335 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1336 deprecated_store_floating by call to store_typed_floating.
1337 (sh_sh4_register_convert_to_raw): Substitute call to
1338 deprecated_extract_floating by call to extract_typed_floating.
1339
1340 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1341
1342 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1343
1344 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1345
1346 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1347 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1348 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1349 as possible.
1350 (do_pseudo_register): Remove.
1351 (sh_push_dummy_code): New function.
1352 (sh64_store_struct_return): Rename from sh_store_struct_return.
1353 Only called for sh64 now.
1354 (sh_extract_struct_value_address): Regcache'ify.
1355 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1356 and accomodate new tasks.
1357 (sh64_push_return_address): Rename from sh_push_return_address.
1358 Only called for sh64 now.
1359 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1360 Regcache'ify.
1361 (sh3e_sh4_extract_return_value): Regcache'ify.
1362 (sh_default_store_return_value): Ditto.
1363 (sh3e_sh4_store_return_value): Ditto.
1364 (sh_default_register_byte): Remove.
1365 (sh_sh4_register_byte): Remove.
1366 (sh_default_register_raw_size): Remove.
1367 (sh_sh4_register_raw_size): Remove.
1368 (sh_register_virtual_size): Remove.
1369 (sh_sh3e_register_virtual_type): Remove.
1370 (sh_sh3e_register_type): New function.
1371 (sh_sh4_register_virtual_type): Remove.
1372 (sh_sh4_register_type): New function.
1373 (sh_default_register_virtual_type): Remove.
1374 (sh_default_register_type): New function.
1375 (do_fv_register_info): Add parameters to accomodate call from
1376 sh_print_registers_info.
1377 (do_dr_register_info): Ditto.
1378 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1379 Add parameters to accomodate call from sh_print_registers_info.
1380 (sh_do_fp_register): Ditto.
1381 (sh64_do_pseudo_register): Call do_dr_register_info,
1382 do_fv_register_info and sh_do_fp_register with default parameters.
1383 (sh_do_register): Add parameters to accomodate call from
1384 sh_print_registers_info.
1385 (sh_print_register): Ditto.
1386 (sh_print_registers_info): Rename from sh_do_registers_info.
1387 Add parameters to be used as gdbarch_print_registers_info
1388 implementation. Accomodate removed do_pseudo_register function
1389 pointer.
1390 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1391 function pointer. Call sh_print_register with default parameters.
1392 (sh64_do_registers_info): Call sh_print_registers_info instead of
1393 sh_do_registers_info.
1394 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1395 detection of deprecated vs. non-deprecated functionality.
1396 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1397 function pointer assignments by direct function calls.
1398
1399 2003-07-15 Andrew Cagney <cagney@redhat.com>
1400
1401 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1402 (frame_register_unwind, create_new_frame): Ditto.
1403 (legacy_get_prev_frame, get_frame_type): Ditto.
1404 (get_frame_base_address): Use frame_base_find_by_frame.
1405 (get_frame_locals_address): Use frame_base_find_by_frame.
1406 (get_frame_args_address): Use frame_base_find_by_frame.
1407 * frame-base.h (frame_base_sniffer_ftype): Declare.
1408 (frame_base_append_sniffer): Declare.
1409 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1410 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1411 (frame_base_append_sniffer): New function.
1412 (frame_base_append_predicate): Add a NULL sniffer.
1413 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1414 (struct frame_base_table): Add "sniffer".
1415 (frame_base_free): Free the "sniffer" table.
1416 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1417 (frame_unwind_append_sniffer): Declare.
1418 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1419 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1420 (struct frame_unwind_table): Add "sniffer", delete "middle".
1421 (append_predicate): Add "sniffer" parameter, append the sniffer.
1422 (frame_unwind_init): Update append_predicate call.
1423 (frame_unwind_append_sniffer): New function.
1424 (frame_unwind_append_predicate): Update append_predicate call.
1425 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1426
1427 2003-07-15 Andrew Cagney <cagney@redhat.com>
1428
1429 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1430 before code inhibiting repeated unwind attempts. Add to
1431 commentary on that test's problems.
1432 * blockframe.c (inside_main_func): Look for "main" in the minimal
1433 symbol table.
1434 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1435 identical.
1436
1437 2003-07-15 Andrew Cagney <cagney@redhat.com>
1438
1439 * complaints.c (struct explanation): Define.
1440 (struct complaints): Change type of "explanation" to "struct
1441 explanation".
1442 (symfile_explanations): Convert to a "struct explanation" table.
1443 (vcomplaint): Update.
1444
1445 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1446
1447 * x86-64-linux-nat.c (regmap): Removed.
1448 (supply_gregset, fill_gregset): Call
1449 x86_64_linux_(fill,supply)_gregset functions.
1450 * x86-64-linux-tdep.c (USER_*): New defines.
1451 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1452 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1453 New functions.
1454 (fetch_core_registers): Ditto.
1455 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1456 * x86-64-linux-tdep.h: New file.
1457 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1458 and core-regset.o.
1459 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1460
1461 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1462
1463 * x86-64-tdep.c (x86_64_store_return_value): Use
1464 regcache_cooked_write_part instead of regcache_cooked_write.
1465
1466 * configure.host: Add x86_64-*-freebsd*.
1467 * configure.tgt: Add x86_64-*-freebsd*.
1468 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1469 * amd64fbsd-nat.c: New file.
1470 * amd64fbsd-tdep.c: New file.
1471 * config/i386/nm-fbsd64.h: New file.
1472 * config/i386/fbsd64.mh: New file.
1473 * config/i386/fbsd64.mt: New file.
1474
1475 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1476
1477 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1478 `sc_regs_offset' and `sc_fpregs_offset'.
1479 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1480 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1481 (alpha_sigtramp_register_address): Rewrite to use new members of
1482 `struct gdbarch_tdep'.
1483 (alpha_gdbarch_init): Initialize new members of struct
1484 gdbarch_tdep'.
1485 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1486 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1487 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1488 (alphafbsd_pc_in_sigtramp): Implement.
1489 (alphafbsd_sigtramp_offset): New function.
1490 (alphafbsd_sigcontext_addr): New function.
1491 (alphafbsd_init_abi): Initialize signal trampoline related members
1492 of `struct gdbarch_tdep'.
1493 (_initialize_alphafbsd_tdep): Add prototype.
1494
1495 2003-07-11 Theodore A. Roth <troth@openavr.org>
1496
1497 * Makefile.in (install-only): Quote sed expression when generating
1498 transformed_name.
1499
1500 2003-07-11 Richard Henderson <rth@redhat.com>
1501
1502 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1503 * dwarf2-frame.c: Include complaints.h.
1504 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1505 variable initialization; return NULL on error.
1506 (decode_frame_entry): New.
1507
1508 2003-07-11 Andrew Cagney <cagney@redhat.com>
1509
1510 * frame.h (frame_address_in_block): Delete declaration.
1511 * blockframe.c (frame_address_in_block): Delete function.
1512 (get_frame_block): Use get_frame_address_in_block.
1513 (block_innermost_frame): Ditto.
1514 * stack.c (print_frame, backtrace_command_1): Ditto.
1515
1516 * frame.h (get_frame_address_in_block): Declare.
1517 (frame_unwind_address_in_block): Declare.
1518 * frame.c (frame_unwind_address_in_block): New function.
1519 (get_frame_address_in_block): New function.
1520
1521 2003-07-10 Andrew Cagney <cagney@redhat.com>
1522
1523 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1524 pre-default. Note: re-generate has no effect.
1525
1526 2003-07-10 Andrew Cagney <cagney@redhat.com>
1527
1528 * gdbarch.sh: When a variable, but not a function, compare against
1529 0. Fix problem in previous patch.
1530 * gdbarch.c: Re-generate.
1531
1532 2003-07-10 Andrew Cagney <cagney@redhat.com>
1533
1534 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1535 functions against NULL, not 0.
1536 * gdbarch.c: Re-generate.
1537
1538 2003-07-10 Fred Fish <fnf@ninemoons.com>
1539
1540 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1541 null string instead of a null pointer.
1542 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1543
1544 2003-07-09 Michael Snyder <msnyder@redhat.com>
1545
1546 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1547
1548 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1549
1550 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1551 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1552 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1553 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1554 * x86-64-tdep.c: ... from here.
1555
1556 2003-07-09 Andreas Schwab <schwab@suse.de>
1557
1558 * m68k-tdep.h (enum struct_return): Define.
1559 (struct gdbarch_tdep): Add struct_return.
1560 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1561 bytes are padded to the right, not to the left. Pass struct value
1562 address in register %a1, not on stack.
1563 (m68k_use_struct_convention): New function.
1564 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1565 struct_return in tdep to pcc_struct_return.
1566 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1567 reg_struct_return.
1568
1569 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1570
1571 * somread.c (som_symfile_offsets): Fix compilation error.
1572
1573 2003-07-09 Andrew Cagney <cagney@redhat.com>
1574
1575 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1576 Add comments about the checks.
1577
1578 2003-07-08 Andrew Cagney <cagney@redhat.com>
1579
1580 * Makefile.in: Make dependency section headers consistent.
1581 (config_h): Move to $BUILD headers section.
1582 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1583 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1584 (ada-exp.tab.c): Move to YACC/LEX section.
1585 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1586 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1587
1588 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1589
1590 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1591 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1592 of strerror with safe_strerror, use ISO C function definitions,
1593 and replace instances of sprintf with snprintf.
1594
1595 2003-07-07 Andrew Cagney <cagney@redhat.com>
1596
1597 * frame.c (get_prev_frame): Enable check for identical frames.
1598 Update comments. Update error messages.
1599
1600 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1601
1602 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1603
1604 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1605
1606 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1607 sort_symtab_syms, no longer necessary.
1608
1609 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1610
1611 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1612
1613 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1614
1615 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1616 (mips_register_byte): Likewise.
1617
1618 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1619
1620 * Makefile.in (sparc_tdep_h): New.
1621 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1622 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1623 * sparc-linux-nat.c: Include "sparc-tdep.h".
1624 * sparc-nat.c: Likewise.
1625 * sparc-tdep.c: Likewise.
1626 * sparc64nbsd-nat.c: Likewise.
1627 * sparcnbsd-nat.c: Likewise.
1628 * sparcnbsd-tdep.c: Likewise.
1629 * sparc-tdep.h: New file.
1630 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1631 and sparc_npc_regnum.
1632
1633 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1634
1635 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1636 (mips_linux_cannot_store_register): List supported instead of
1637 unsupported registers.
1638
1639 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1640
1641 * disasm.c (dump_insns): Separate instructions from addresses.
1642
1643 2003-07-07 Andreas Schwab <schwab@suse.de>
1644
1645 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1646 dependencies.
1647 * m68k-tdep.c (NUM_FREGS): Delete.
1648 (SIG_PC_FP_OFFSET): Delete.
1649 (TARGET_M68K): Delete.
1650 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1651 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1652 P_MOVEL_SP, P_MOVEML_SP): Define.
1653 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1654 P_TRAP): Delete.
1655 (m68k_register_raw_size): Delete.
1656 (m68k_register_virtual_size): Delete.
1657 (m68k_register_type): Renamed from m68k_register_virtual_type and
1658 add gdbarch argument.
1659 (m68k_store_struct_return): Delete.
1660 (m68k_deprecated_extract_return_value): Delete.
1661 (m68k_deprecated_extract_struct_value_address): Delete.
1662 (m68k_frame_chain): Delete.
1663 (m68k_frame_saved_pc): Delete.
1664 (m68k_fix_call_dummy): Delete.
1665 (m68k_push_dummy_frame): Delete.
1666 (m68k_pop_frame): Delete.
1667 (m68k_extract_return_value): New function.
1668 (m68k_store_return_value): Rewrite using regcache.
1669 (m68k_extract_struct_value_address): Rewrite using regcache.
1670 (m68k_push_dummy_call): New function.
1671 (struct m68k_frame_cache): Define.
1672 (m68k_alloc_frame_cache): New function.
1673 (m68k_analyze_frame_setup): New function.
1674 (m68k_analyze_register_saves): New function.
1675 (m68k_analyze_prologue): New function.
1676 (m68k_skip_prologue): Rewrite using above functions.
1677 (m68k_unwind_pc): New function.
1678 (m68k_frame_cache): New function.
1679 (m68k_frame_this_id): New function.
1680 (m68k_frame_prev_register): New function.
1681 (m68k_frame_unwind): New variable.
1682 (m68k_frame_p): New function.
1683 (m68k_sigtramp_frame_cache): New function.
1684 (m68k_sigtramp_frame_this_id): New function.
1685 (m68k_sigtramp_frame_prev_register): New function.
1686 (m68k_sigtramp_frame_unwind): New variable.
1687 (m68k_sigtramp_frame_p): New function.
1688 (m68k_frame_base_address): New function.
1689 (m68k_frame_base): New function.
1690 (m68k_unwind_dummy_id): New function.
1691 (fill_gregset): Use regcache_collect.
1692 (fill_fpregset): Likewise.
1693 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1694 defined.
1695 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1696 deprecated_init_frame_pc, deprecated_store_struct_return,
1697 deprecated_extract_return_value, deprecated_store_return_value,
1698 deprecated_frame_chain, deprecated_frame_saved_pc,
1699 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1700 deprecated_register_virtual_size,
1701 deprecated_max_register_raw_size,
1702 deprecated_max_register_virtual_size,
1703 deprecated_register_virtual_type, deprecated_register_size,
1704 deprecated_register_byte, deprecated_register_bytes,
1705 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1706 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1707 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1708 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1709 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1710 deprecated_push_dummy_frame, deprecated_pop_frame,
1711 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1712 only if SYSCALL_TRAP is defined. Set extract_return_value,
1713 store_return_value, extract_struct_value_address, register_type,
1714 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1715 predicates.
1716 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1717 M68K_MAX_REGISTER_SIZE): Define.
1718 (struct m68k_sigtramp_info): Define.
1719 (struct gdbarch_tdep): Add get_sigtramp_info.
1720 * m68klinux-nat.c (fetch_register): Use register_size instead of
1721 REGISTER_RAW_SIZE. Don't put assignment in if.
1722 (store_register): Likewise.
1723 (fetch_inferior_registers): Likewise.
1724 (store_inferior_registers): Likewise.
1725 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1726 (m68k_linux_frame_saved_pc): Delete.
1727 (m68k_linux_sigcontext_reg_offset,
1728 m68k_linux_ucontext_reg_offset): Define.
1729 (m68k_linux_get_sigtramp_info): New function.
1730 (m68k_linux_extract_return_value): Rewrite using regcache.
1731 (m68k_linux_store_return_value): Likewise.
1732 (m68k_linux_extract_struct_value_address): Likewise.
1733 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1734 Don't set deprecated_frame_saved_pc,
1735 deprecated_extract_return_value, deprecated_store_return_value,
1736 deprecated_extract_struct_value_address. Set
1737 extract_return_value, store_return_value,
1738 extract_struct_value_address.
1739
1740 2003-07-07 Andrew Cagney <cagney@redhat.com>
1741
1742 * expprint.c: Include "user-regs.h" instead of "frame.h".
1743 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1744 frame_map_regnum_to_name.
1745 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1746 (frame_map_name_to_regnum): Simplify, call
1747 user_reg_map_name_to_regnum.
1748 (frame_map_regnum_to_name): Simplify, call
1749 user_reg_map_regnum_to_name.
1750 (frame_register_unwind): Update.
1751 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1752 (_initialize_frame_reg): Call user_reg_add_builtin.
1753 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1754 (value_of_register): Use value_of_user_reg.
1755 * eval.c (evaluate_subexp_standard): Update.
1756 * parse.c (write_dollar_variable): Update.
1757 * d10v-tdep.c (d10v_print_registers_info): Update.
1758 * infcmd.c (registers_info): Update.
1759 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1760 (builtin_regs_h): Delete macro.
1761 (user_regs_h): Define.
1762 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1763 (builtin-regs.o): Delete target.
1764 (user-regs.o): Specify dependencies.
1765 (expprint.o): Update dependencies.
1766 (findvar.o): Update dependencies.
1767 (frame.o): Update dependencies.
1768 (std-regs.o): Update dependencies.
1769
1770 2003-07-06 Christopher Faylor <cgf@redhat.com>
1771
1772 * win32-nat.c (solib_symbols_add): Use one variable for all section
1773 address stuff. Pass variable rather than address of variable to
1774 safe_symbol_file_add.
1775
1776 2003-07-06 Andreas Schwab <schwab@suse.de>
1777
1778 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1779
1780 2003-07-04 Joel Brobecker <brobecker@gnat.com>
1781
1782 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1783
1784 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1785
1786 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1787
1788 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1789
1790 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1791 * config/i386/nto.mh: New file.
1792 * config/i386/nm-nto.h: New file.
1793 * configure.host: Add i[3456]86-*-nto*.
1794
1795 2003-07-03 Joel Brobecker <brobecker@gnat.com>
1796
1797 * remote-vx.c (vx_add_symbols): Fix compilation error.
1798
1799 2003-07-03 Andrew Cagney <cagney@redhat.com>
1800
1801 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1802 * gdbarch.h, gdbarch.c: Re-generate.
1803 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1804 (legacy_register_name): Declare.
1805 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1806 (REGISTER_NAME): Define.
1807 * sparc-tdep.c (legacy_register_name): New function.
1808 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1809 (REGISTER_NAME): Define.
1810 (hppa64_register_name): Declare.
1811 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1812 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1813 (hppa64_register_name): New function.
1814 (hppa_register_name): New function.
1815 * arch-utils.c (legacy_register_name): Delete.
1816 * arch-utils.h (legacy_register_name): Delete.
1817
1818 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
1819
1820 * cli/cli-interp.c (cli_interpreter_resume): Update the
1821 cli_uiout's stream to gdb_stdout.
1822
1823 2003-07-03 Andrew Cagney <cagney@redhat.com>
1824
1825 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1826 predicate.
1827 * gdbarch.h, gdbarch.c: Re-generate.
1828 * regcache.c (init_regcache_descr): Use legacy code when either
1829 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1830
1831 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1832
1833 * NEWS: Move "set logging" entry into GDB 6.0 section.
1834
1835 2003-07-02 Jim Blandy <jimb@redhat.com>
1836
1837 * s390-tdep.c (struct frame_extra_info): new member:
1838 'stack_bought_valid'.
1839 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1840 initialize fextra_info->stack_bought.
1841 (s390_frameless_function_invocation): Don't trust the value of
1842 fextra_info_ptr->stack_bought unless
1843 fextra_info->stack_bought_valid is set.
1844
1845 New S390 prologue analyzer.
1846 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1847 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1848 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1849 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1850 compute_x_addr, s390_on_stack, s390_store,
1851 s390_get_signal_frame_info): New functions.
1852 (S390_NUM_SPILL_SLOTS): New macro.
1853 (s390_get_frame_info): Rewritten.
1854 (is_arg_reg): Deleted.
1855
1856 Break out the decoding of S/390 instructions into separate
1857 functions, to make it more legible, and easier to check
1858 against the spec.
1859 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1860 is_rx, is_rxe): New functions.
1861 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1862 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1863 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1864 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1865 enums for opcode values. (Is this an improvement?)
1866
1867 2003-07-02 Andrew Cagney <cagney@redhat.com>
1868
1869 * i386-tdep.c: Revert change committed as part of trad-frame code
1870 below.
1871
1872 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1873
1874 * breakpoint.c (insert_catchpoint): Make static.
1875
1876 2003-07-02 Andreas Schwab <schwab@suse.de>
1877
1878 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1879 former ia64_push_arguments and ia64_push_return_address, and use
1880 regcache functions instead of read/write_register.
1881 (ia64_gdbarch_init): Set push_dummy_call instead of
1882 deprecated_push_arguments and deprecated_push_return_address.
1883
1884 2003-07-01 Andreas Jaeger <aj@suse.de>
1885
1886 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1887 before the call.
1888 Set %rax only to number of SSE registers used.
1889
1890 2003-07-01 Andrew Cagney <cagney@redhat.com>
1891
1892 * trad-frame.h: Update comments, a -1 .addr is reserved.
1893 (trad_frame_value_p, trad_frame_addr_p): Declare.
1894 (trad_frame_reg_p): Declare.
1895 (trad_frame_set_value): Rename trad_frame_register_value.
1896 (trad_frame_set_unknown): Declare.
1897 * trad-frame.c (trad_frame_realreg_p): New function.
1898 (trad_frame_addr_p, trad_frame_value_p): New function.
1899 (trad_frame_set_unknown): New function.
1900 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1901 (trad_frame_prev_register): Use trad_frame_realreg_p,
1902 trad_frame_addr_p and trad_frame_value_p.
1903 (trad_frame_set_value): Rename trad_frame_register_value.
1904 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1905 and trad_frame_set_value.
1906
1907 2003-06-30 Jim Blandy <jimb@redhat.com>
1908
1909 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1910 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1911 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1912 for 16 registers, and then 32 more bytes.
1913 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1914 New macros.
1915 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1916 Move up in the file, since it's now used by is_simple_arg.
1917 (is_simple_arg): Don't assume registers are four bytes long.
1918 Exclude all double arguments. Extended floats are not simple
1919 args.
1920 (is_power_of_two): New function.
1921 (pass_by_copy_ref): Call is_power_of_two, and check that the
1922 length fits in a register, rather than listing all the acceptable
1923 sizes. Extended floats are not passed by reference.
1924 (s390_push_arguments): Don't assume registers are four bytes long.
1925 Reserve an argument register to point to the buffer for structures
1926 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1927 S390_STACK_FRAME_OVERHEAD.
1928
1929 2003-06-30 Andreas Schwab <schwab@suse.de>
1930
1931 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1932 format error message.
1933
1934 2003-06-30 Joel Brobecker <brobecker@gnat.com>
1935
1936 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1937
1938 2003-06-30 David Carlton <carlton@kealia.com>
1939
1940 Band-aid for PR c++/1245.
1941 * Makefile.in (cp-support.o): Depend on complaints_h.
1942 * cp-support.c: Include complaints.h. Add declaration for
1943 find_last_component.
1944 (cp_find_first_component): Separate code into
1945 cp_find_first_component_aux.
1946 (cp_find_first_component_aux): Call demangled_name_complaint.
1947 (demangled_name_complaint): New.
1948
1949 2003-06-30 Andrew Cagney <cagney@redhat.com>
1950
1951 * remote.c (remote_write_bytes): Explicitly compute and then use
1952 the payload size. Update comments to reflect. Fixes problem of
1953 GDB not sending small packets as found by Fred Fish.
1954
1955 2003-06-30 Andrew Cagney <cagney@redhat.com>
1956
1957 * remote.c (remote_async_wait): Fix -Wformat problem.
1958
1959 2003-06-29 Andrew Cagney <cagney@redhat.com>
1960
1961 * remote.c (remote_wait): Call error, and not warning, when the
1962 packet is corrupt.
1963 (remote_async_wait): Ditto.
1964
1965 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1966
1967 * sparc-tdep.c (sparc_y_regnum): Make external again.
1968
1969 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1970
1971 * cli/cli-logging.c (pop_output_files): Add void to function
1972 definition.
1973
1974 2003-06-29 Andrew Cagney <cagney@redhat.com>
1975
1976 * frame.c (frame_register_unwind): Use unsigned char when dumping
1977 the buffer contents.
1978
1979 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1980
1981 * cli/cli-logging.c: New file.
1982 * cli-out.c (struct ui_out_data): Add original_stream.
1983 (cli_redirect): New function.
1984 (cli_ui_out_impl): Add cli_redirect.
1985 (cli_out_new): Initialize original_stream.
1986 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1987 (uo_redirect, ui_out_redirect): New.
1988 * ui-out.h (struct ui_out_impl): Add redirect member.
1989 (redirect_ftype): New.
1990 (ui_out_redirect): Add prototype.
1991 * Makefile.in: Add rules for cli-logging.c.
1992 * NEWS: Mention "set logging".
1993
1994 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1995
1996 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1997
1998 2003-06-27 Andrew Cagney <cagney@redhat.com>
1999
2000 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2001 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2002 * avr-tdep.c (avr_call_dummy_address): Delete function.
2003 (avr_gdbarch_init): Do not set call_dummy_address.
2004
2005 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2006
2007 * symfile.c (syms_from_objfile): Move variables to inner block.
2008 Move the checks for the non-mainline case a bit earlier to avoid
2009 doing some useless computations.
2010
2011 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2012
2013 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2014
2015 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
2016
2017 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2018 sections.
2019
2020 2003-06-26 Michael Chastain <mec@shout.net>
2021
2022 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2023 gdb/testsuite/gdb.c++/pr-1210.exp.
2024
2025 2003-06-26 Andrew Cagney <cagney@redhat.com>
2026
2027 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2028 altivec_expression.h and altivec_registers.h.
2029
2030 2003-06-26 Andrew Cagney <cagney@redhat.com>
2031
2032 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2033 info->mach when MIPS16. Patch suggested by Fred Fish.
2034
2035 2003-06-26 Andrew Cagney <cagney@redhat.com>
2036
2037 * utils.c (internal_vproblem): Print the problem to a reason
2038 buffer and then pass to query. Make the msg variable more local.
2039
2040 2003-06-26 Andrew Cagney <cagney@redhat.com>
2041
2042 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2043 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2044 * gdbarch.h, gdbarch.c: Re-generate.
2045 * frame-base.c (default_frame_args_address): Update. Use
2046 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2047 not available.
2048 (default_frame_locals_address): Ditto for
2049 DEPRECATED_FRAME_LOCALS_ADDRESS.
2050 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2051 (vax_frame_num_args): Update.
2052 (vax_gdbarch_init): Update.
2053 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2054 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2055 * mcore-tdep.c (mcore_gdbarch_init): Update.
2056 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2057 * ia64-tdep.c (ia64_gdbarch_init): Update.
2058 * symtab.h (address_class): Update comments.
2059 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2060 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2061 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2062 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2063 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2064 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2065 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2066 * alpha-mdebug-tdep.c: Update.
2067 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2068
2069 2003-06-26 Andreas Jaeger <aj@suse.de>
2070
2071 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2072 of SSE registers so that varargs functions work. Rework handling
2073 of passing arguments on the stack.
2074 (x86_64_store_return_value): Return double and float values in SSE
2075 register.
2076
2077 2003-06-24 Michael Chastain <mec@shout.net>
2078
2079 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2080 the "constructor breakpoints ignored" bug.
2081
2082 2003-06-25 David Carlton <carlton@kealia.com>
2083
2084 * MAINTAINERS: Update e-mail address.
2085
2086 2003-06-24 Jim Blandy <jimb@redhat.com>
2087
2088 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2089
2090 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2091 function.
2092 (ppc_linux_init_abi): Register it as the
2093 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2094
2095 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2096 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2097 method.
2098
2099 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2100 (ppc64_standard_linkage_target): Use it.
2101
2102 2003-06-23 Andrew Cagney <cagney@redhat.com>
2103
2104 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2105 for 0 "int0" and 4 "int32" sized registers.
2106 * gdbtypes.c (builtin_type_int0): Define.
2107 (build_gdbtypes): Initialize builtin_type_int0.
2108 * gdbtypes.h (builtin_type_int0): Declare.
2109
2110 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2111
2112 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2113 as characters are unsigned.
2114
2115 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2116
2117 PR gdb/1179
2118 * dwarfread.c (struct_type): Skip static fields without crashing.
2119
2120 2003-06-22 Andrew Cagney <cagney@redhat.com>
2121
2122 GDB 6.0 branch created.
2123 * README: Update.
2124 * PROBLEMS: Update. Empty.
2125 * NEWS: Update.
2126
2127 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2128
2129 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2130 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2131
2132 2003-06-22 Andrew Cagney <cagney@redhat.com>
2133
2134 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2135 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2136 Velikov.
2137
2138 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2139
2140 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2141 compilers.
2142
2143 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2144
2145 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2146 argument of val_print.
2147 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2148 to the address argument of baseclass_offset or target_read_memory.
2149 Do add it to the argument of cp_print_value_fields.
2150
2151 2003-06-21 Andrew Cagney <cagney@redhat.com>
2152
2153 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2154 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2155 instead of 0..NUM_REGS.
2156 (mips_register_reggroup_p): New function.
2157 (mips_pseudo_register_write): New function.
2158 (mips_pseudo_register_read): New function.
2159 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2160 based on the register's type.
2161 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2162 cooked.
2163 (mips_get_saved_register): Simplify. Assert that REGNO is a
2164 pseudo / cooked.
2165 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2166 (mips_register_type): Replace mips_register_virtual_type. Map
2167 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2168 when available.
2169 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2170 that the register is cooked / virtual.
2171 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2172 Only get the extra info when needed.
2173 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2174 (mips32_heuristic_proc_desc): Fetch the cooked register.
2175 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2176 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2177 (mips_print_register): Use gdbarch_register_type, instead of
2178 REGISTER_VIRTUAL_TYPE.
2179 (print_gp_register_row): Use gdbarch_register_type, instead of
2180 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2181 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2182 Print the pseudo / cooked registers.
2183 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2184 Print the pseudo / cooked registers.
2185 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2186 REG_NUM is pseudo / cooked.
2187 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2188 (mips_n32n64_xfer_return_value): Ditto.
2189 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2190 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2191 (mips_register_sim_regno): New function.
2192 (mips_gdbarch_init): Set deprecated_register_byte,
2193 register_group_p, pseudo_register_write, pseudo_register_read,
2194 register_sim_regno, and num_pseudo_regs. Set register_type,
2195 instead of register_virtual_type.
2196 * Makefile.in (mips-tdep.o): Update dependencies.
2197 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2198 REGISTER_VIRTUAL_TYPE.
2199 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2200 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2201 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2202 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2203 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2204
2205 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2206
2207 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2208 * cli/cli-cmds.c: Include "gdb_vfork.h".
2209 (shell_escape): Use vfork.
2210
2211 2003-06-21 Andrew Cagney <cagney@redhat.com>
2212
2213 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2214 32 bit floating-point register saves.
2215
2216 * frame.h (deprecated_unwind_get_saved_register): Delete.
2217 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2218 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2219 and deprecated_get_next_frame_hack instead of
2220 deprecated_unwind_get_saved_register.
2221
2222 * mips-tdep.c (mips_dump_tdep): Do not print
2223 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2224
2225 * frame.c (get_frame_register): New function.
2226 (frame_unwind_register_signed): New function.
2227 (get_frame_register_signed): New function.
2228 (frame_unwind_register_unsigned): New function.
2229 (get_frame_register_unsigned): New function.
2230 * frame.h: Add comments on naming schema.
2231 (get_frame_register, frame_unwind_register_signed): Declare.
2232 (get_frame_register_signed, get_frame_register_signed): Declare.
2233 (frame_unwind_register_unsigned): Declare.
2234 (get_frame_register_unsigned): Declare.
2235
2236 2003-06-20 Theodore A. Roth <troth@openavr.org>
2237
2238 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2239
2240 2003-06-20 Theodore A. Roth <troth@openavr.org>
2241
2242 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2243 (avr_read_sp): Ditto.
2244
2245 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
2246
2247 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2248 * config/arm/nm-linux.h: Likewise.
2249 * config/arm/tm-linux.h: Likewise.
2250 * config/ia64/nm-linux.h: Likewise.
2251 * config/ia64/tm-ia64.h: Likewise.
2252 * config/s390/tm-linux.h: Likewise.
2253 * config/s390/tm-s390.h: Likewise.
2254 * s390-nat.c: Likewise.
2255 * s390-tdep.c: Likewise.
2256
2257 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2258 * config/ia64/linux.mt: Likewise.
2259 * config/m68k/linux.mh: Likewise.
2260 * config/mips/linux.mt: Likewise.
2261 * config/powerpc/linux.mh: Likewise.
2262 * config/sh/linux.mt: Likewise.
2263
2264 2003-06-19 Kris Warkentin <kewarken@qnx.com>
2265
2266 * solib.c (solib_open): Change tests for whether to search
2267 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2268 comments.
2269
2270 2003-06-19 Theodore A. Roth <troth@openavr.org>
2271
2272 * avr-tdep.c (avr_frame_address): Delete function.
2273 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2274 set_gdbarch_frame_args_address.
2275
2276 2003-06-19 Andrew Cagney <cagney@redhat.com>
2277
2278 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2279 (REGISTER_CONVERT_FROM_TYPE): Delete.
2280 (mips_register_convert_to_type): Delete declaration.
2281 (mips_register_convert_from_type): Delete declaration.
2282 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2283 kernel/.
2284
2285 2003-06-19 Michael Snyder <msnyder@redhat.com>
2286
2287 * linux-nat.h: New file.
2288 * linux-nat.c: Include linux-nat.h.
2289 * lin-lwp.c: Include linux-nat.h.
2290 Move struct lwp_info def to linux-nat.h.
2291 * linux-proc.c: Include linux-nat.h.
2292 (linux_make_note_section): Iterate over lwps instead of threads.
2293 (linux_do_thread_registers): Use lwp instead of merged pid.
2294 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2295 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2296 Add dependency on linux_nat_h.
2297
2298 2003-06-19 Theodore A. Roth <troth@openavr.org>
2299
2300 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2301
2302 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2303
2304 * varobj.c (get_type, get_target_type): Use check_typedef.
2305
2306 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2307
2308 * breakpoint.c (insert_catchpoint): Call internal_error.
2309
2310 2003-06-19 Theodore A. Roth <troth@openavr.org>
2311
2312 * avr-tdep.c (avr_push_dummy_code): Delete function.
2313 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2314
2315 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2316
2317 * arch-utils.c (default_prepare_to_proceed): Remove.
2318 (generic_prepare_to_proceed): Remove.
2319 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2320 (generic_prepare_to_proceed): Remove prototype.
2321 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2322 * gdbarch.c: Regenerate.
2323 * gdbarch.h: Regenerate.
2324 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2325 * hppah-nat.c (hppa_switched_threads): Remove.
2326 * infrun.c (prepare_to_proceed): New static function, copied from
2327 generic_prepare_to_proceed. Remove select_it argument.
2328 (proceed): Call prepare_to_proceed.
2329 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2330 variables.
2331 (ptrace_wait): Don't set the removed variables.
2332 (hppa_switched_threads): Remove.
2333 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2334 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2335 (lin_lwp_prepare_to_proceed): Remove prototype.
2336 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2337 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2338
2339 2003-06-18 Theodore A. Roth <troth@openavr.org>
2340
2341 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2342 trad-frame.h.
2343 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2344 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2345 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2346 (AVR_PROLOGUE_*): Enumerate prologue types.
2347 (struct frame_extra_info): Remove.
2348 (struct avr_unwind_cache): Define.
2349 (avr_write_sp): Delete function.
2350 (avr_read_fp): Ditto.
2351 (avr_init_extra_frame_info): Ditto.
2352 (avr_pop_frame): Ditto.
2353 (avr_frame_saved_pc): Ditto.
2354 (avr_saved_pc_after_call): Ditto.
2355 (avr_push_return_address): Ditto.
2356 (avr_frame_chain): Ditto.
2357 (avr_store_struct_return): Ditto.
2358 (avr_push_arguments): Ditto.
2359 (avr_scan_prologue): Update comments. Changed to set up the info for
2360 cache unwinding. Now returns end of prologue PC.
2361 (avr_skip_prologue): Better handling of functions lacking a prologue
2362 by using avr_scan_prologue.
2363 (avr_scan_arg_moves): New function.
2364 (avr_saved_regs_unwinder): Ditto.
2365 (avr_frame_unwind_cache): Ditto.
2366 (avr_unwind_pc): Ditto.
2367 (avr_frame_this_id): Ditto.
2368 (avr_frame_prev_register): Ditto.
2369 (avr_frame_p): Ditto.
2370 (avr_frame_base_address ): Ditto.
2371 (avr_unwind_dummy_id): Ditto.
2372 (avr_push_dummy_code): Ditto.
2373 (push_stack_item): Ditto.
2374 (pop_stack_item): Ditto.
2375 (avr_push_dummy_call): Ditto.
2376 (struct stack_item): Define.
2377 (avr_frame_unwind): Declare structure.
2378 (avr_frame_base): Ditto.
2379 (avr_gdbarch_init): Remove calls to
2380 set_gdbarch_deprecated_init_frame_pc,
2381 set_gdbarch_deprecated_target_read_fp,
2382 set_gdbarch_deprecated_dummy_write_sp,
2383 set_gdbarch_deprecated_fp_regnum,
2384 set_gdbarch_deprecated_push_arguments,
2385 set_gdbarch_deprecated_push_return_address,
2386 set_gdbarch_deprecated_pop_frame,
2387 set_gdbarch_deprecated_store_struct_return,
2388 set_gdbarch_deprecated_frame_init_saved_regs,
2389 set_gdbarch_deprecated_init_extra_frame_info,
2390 set_gdbarch_deprecated_frame_chain,
2391 set_gdbarch_deprecated_frame_saved_pc,
2392 set_gdbarch_deprecated_saved_pc_after_call.
2393 Add calls to set_gdbarch_push_dummy_call,
2394 set_gdbarch_push_dummy_code,
2395 frame_unwind_append_predicate,
2396 frame_base_set_default,
2397 set_gdbarch_unwind_dummy_id,
2398 set_gdbarch_unwind_pc.
2399 Wrap a long line.
2400
2401 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2402
2403 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2404 registers for H8/300S.
2405 (h8300_print_registers_info): Ditto.
2406 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2407
2408 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2409
2410 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2411 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2412 (lin_lwp_wait): Likewise. Update comments.
2413 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2414 (pull_pid_from_list, linux_record_stopped_pid): New.
2415
2416 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2417
2418 * ada-lang.c (scan_discrim_bound): Name first argument.
2419 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2420 declared by ALL_BLOCK_SYMBOLS.
2421
2422 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2423
2424 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2425 ("regcache.h"): Include it.
2426 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2427
2428 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2429
2430 * NEWS: Mention gdbserver detach change and "disconnect" command.
2431 * infcmd.c (disconnect_command): New function.
2432 (_initialize_infcmd): Add ``disconnect'' command.
2433 * remote.c (remote_async_detach): Delete.
2434 (remote_detach): Merge remote_async_detach.
2435 (remote_disconnect): New.
2436 (init_remote_ops): Set to_disconnect.
2437 (init_remote_cisco_ops): Likewise.
2438 (init_remote_async_ops): Likewise. Use remote_detach.
2439 * target.c (cleanup_target): Default to_disconnect.
2440 (update_current_target): Inherit to_disconnect.
2441 (target_disconnect, debug_to_disconnect): New functions.
2442 (setup_target_debug): Set to_disconnect.
2443 * target.h (struct target_ops): Add to_disconnect.
2444 (target_disconnect): Add prototype.
2445
2446 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2447
2448 * breakpoint.c (insert_catchpoint): New function.
2449 (insert_breakpoints): Use catch_exceptions to call
2450 insert_catchpoint. Disable catchpoints if they fail to insert.
2451
2452 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2453
2454 * symfile.c (reread_symbols): Clear sym_private.
2455
2456 2003-06-17 Andrew Cagney <cagney@redhat.com>
2457
2458 * trad-frame.h (struct frame_info): Add opaque declaration.
2459 * remote-fileio.h (struct cmd_list_element): Add opaque
2460 declaration.
2461 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2462 comments.
2463
2464 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2465
2466 * remote.c (remote_prepare_to_store): Replace call to
2467 deprecated_read_register_bytes with multiple regcache_raw_read
2468 calls.
2469
2470 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2471
2472 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2473 (nto_find_and_open_solib): Likewise.
2474 (nto_init_solib_absolute_prefix): Likewise.
2475 (_initialize_nto_tdep): Fix indentation.
2476
2477 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2478
2479 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2480
2481 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2482
2483 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2484
2485 2003-06-17 Jim Blandy <jimb@redhat.com>
2486
2487 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2488
2489 2003-06-16 Theodore A. Roth <troth@openavr.org>
2490
2491 * avr-tdep.c (avr_extract_return_value): New function.
2492 (avr_gdbarch_init): Set extract_return_value method.
2493
2494 2003-06-16 Andrew Cagney <cagney@redhat.com>
2495
2496 * frame.h (deprecated_get_next_frame_hack): Declare.
2497 * frame.c (legacy_saved_regs_prev_register): Only require
2498 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2499 there are always saved regs.
2500 (deprecated_generic_get_saved_register): Do not require
2501 DEPRECATED_FRAME_INIT_SAVED_REGS.
2502 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2503 use frame ID unwind instead.
2504 (deprecated_get_next_frame_hack): New function.
2505
2506 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2507
2508 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2509 (h8300_push_dummy_call): ...this function. Some minor optimization.
2510 (h8300_push_return_address): Remove.
2511 (h8300_gdbarch_init): Remove calls to
2512 set_gdbarch_deprecated_dummy_write_sp,
2513 set_gdbarch_deprecated_push_arguments and
2514 set_gdbarch_deprecated_push_return_address.
2515 Add call to set_gdbarch_push_dummy_call.
2516
2517 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2518
2519 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2520 (E_PSEUDO_EXR_REGNUM): Ditto.
2521 (h8300_is_argument_spill): Check for instructions moving argument
2522 registers into safe registers.
2523 (h8300_skip_prologue): Check for stm instruction to push registers
2524 used for register variables onto stack.
2525 (gdb_print_insn_h8300): Remove.
2526 (h8300_examine_prologue): Add a comment.
2527 (h8300_register_name): Take pseudo registers into account.
2528 (h8300s_register_name): Ditto.
2529 (h8300sx_register_name): Ditto.
2530 (h8300_print_register): Ditto.
2531 (h8300_print_registers_info): Define "nice" printing order.
2532 (h8300_saved_pc_after_call): Take pseudo registers into account.
2533 (h8300_register_type): Ditto. Return type used for remote connection
2534 when requesting real CCR or EXR register, return actual type when
2535 requesting pseudo CCR or EXR.
2536 (h8300_pseudo_register_read): New function.
2537 (h8300_pseudo_register_write): Ditto.
2538 (h8300_dbg_reg_to_regnum): Ditto.
2539 (h8300s_dbg_reg_to_regnum): Ditto.
2540 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2541 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2542 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2543 set_gdbarch_print_insn architecture dependent.
2544 Call set_gdbarch_pseudo_register_read and
2545 set_gdbarch_pseudo_register_write.
2546 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2547
2548 2003-06-16 Andrew Cagney <cagney@redhat.com>
2549
2550 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2551 * gdbarch.h, gdbarch.c: Re-generate.
2552 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2553 * s390-tdep.c (s390_gdbarch_init): Update.
2554 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2555 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2556 * mips-tdep.c (mips_gdbarch_init): Update.
2557 * mcore-tdep.c (mcore_gdbarch_init): Update.
2558 * cris-tdep.c (cris_gdbarch_init): Update.
2559 * infcall.c (call_function_by_hand): Update.
2560 * ia64-tdep.c (ia64_push_arguments): Update comment.
2561 * frame.c (legacy_get_prev_frame): Do not assume
2562 SAVE_DUMMY_FRAME_TOS_P.
2563 * dummy-frame.c (find_dummy_frame): Update comment.
2564
2565 2003-06-16 Andrew Cagney <cagney@redhat.com>
2566
2567 * regcache.c (do_cooked_read): Do not use register_valid_p.
2568
2569 2003-06-15 Theodore A. Roth <troth@openavr.org>
2570
2571 * avr-tdep.c (avr_register_type): Remove a blank line.
2572 (avr_scan_prologue): Correct some comments.
2573
2574 2003-06-15 Theodore A. Roth <troth@openavr.org>
2575
2576 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2577 prologue types.
2578 Properly scan prologues generated by gcc with the -mcall-prologues
2579 option.
2580 Add code to scan -mcall-prologues for mega devices.
2581
2582 2003-06-15 Theodore A. Roth <troth@openavr.org>
2583
2584 * avr-tdep.c (avr_register_byte): Delete function.
2585 (avr_register_raw_size): Delete function.
2586 (avr_register_virtual_size): Delete function.
2587 (avr_register_virtual_type): Delete function.
2588 (avr_register_type): New function.
2589 (avr_address_to_pointer): Remove unused code.
2590 (avr_read_fp): Need to read FP as two separate bytes due to change to
2591 avr_register_type() usage.
2592 (avr_gdbarch_init): Don't set deprecated_register_size.
2593 Don't set deprecated_register_bytes.
2594 Don't set deprecated_register_byte.
2595 Don't set deprecated_register_raw_size.
2596 Don't set deprecated_max_register_raw_size.
2597 Don't set deprecated_register_virtual_size.
2598 Don't set deprecated_max_register_virtual_size.
2599 Don't set deprecated_register_virtual_type.
2600 Set register_type method.
2601
2602 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2603
2604 * Makefile.in (linux-nat.o): Add rule.
2605 * linux-nat.c: New file.
2606 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2607 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2608 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2609 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2610 * config/arm/linux.mh (NATDEPFILES): Likewise.
2611 * config/i386/linux.mh (NATDEPFILES): Likewise.
2612 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2613 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2614 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2615 * config/mips/linux.mh (NATDEPFILES): Likewise.
2616 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2617 * config/s390/s390.mh (NATDEPFILES): Likewise.
2618 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2619
2620 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2621
2622 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2623 replace out-of-date comment.
2624
2625 2003-06-15 Andrew Cagney <cagney@redhat.com>
2626
2627 * rdi-share/host.h (Fail): Change to a varargs function.
2628 * remote-rdi.c (Fail): Update.
2629
2630 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2631
2632 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2633 (i386_convert_register_p, i386_register_to_value,
2634 i386_register_from_value): Handle types longer than 8 bytes.
2635
2636 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2637
2638 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2639 Move floating-point code to new function in i387-tdep.c.
2640 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2641 New functions containing code moved here from i386-tdep.c.
2642 * i387-tdep.h: Add opaque declaration for `struct type'.
2643 (i387_register_to_value, i387_value_to_register): New prototypes.
2644 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2645 (x86_64_init_abi): Set convert_register_p, register_to_value and
2646 value_to_register here.
2647
2648 2003-06-14 Andrew Cagney <cagney@redhat.com>
2649
2650 * mips-tdep.c (mips_register_to_value): Make static.
2651 (mips_value_to_register): Make static.
2652 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2653 * ia64-tdep.c (ia64_register_raw_size): Make static.
2654 (ia64_register_virtual_size): Make static.
2655 (ia64_register_byte): Make static.
2656 * i387-tdep.c: Include "i387-tdep.h".
2657 (print_387_control_word): Delete function.
2658 (print_387_status_word): Delete function.
2659 (print_387_status_bits): Delete function.
2660 (print_387_control_bits): Delete function.
2661 * Makefile.in (i387-tdep.o): Update dependencies.
2662 * rdi-share/host.h (Fail): Declare.
2663 * remote-rdi.c (Fail): Update to match declaration.
2664
2665 2003-06-14 Andrew Cagney <cagney@redhat.com>
2666
2667 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2668 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2669 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2670 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2671 * README: Delete reference to remote-array.
2672 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2673 (remote-array.o): Delete target.
2674 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2675 * remote-array.c: Delete file.
2676
2677 2003-06-14 Andrew Cagney <cagney@redhat.com>
2678 Mark Kettenis <kettenis@gnu.org>
2679
2680 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2681 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2682 parameter with "frame".
2683 * gdbarch.h, gdbarch.c: Re-generate.
2684 * frame.h (put_frame_register): Declare.
2685 * frame.c (put_frame_register): New function.
2686 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2687 (legacy_register_to_value): Rewrite, use "frame" to get the
2688 register value.
2689 (legacy_value_to_register): Rewrite, use "frame" to find the
2690 register's location before storing.
2691 * arch-utils.h (legacy_convert_register_p): Update.
2692 (legacy_register_to_value, legacy_value_to_register): Update.
2693 * findvar.c (value_from_register): Rewrite, eliminate use of
2694 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2695 "frame" to REGISTER_TO_VALUE.
2696 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2697 lval_reg_frame_relative + lval_register branch of the switch. Do
2698 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2699 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2700 I386_EDI_REGNUM): New defines.
2701 (i386_next_regnum, i386_convert_register_p,
2702 i386_register_to_value, i386_value_to_register): New functions.
2703 (i386_register_convertible, i386_register_convert_to_virtual,
2704 i386_convert_to_raw): Remove functions.
2705 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2706 value_to_register instead of register_convertible,
2707 register_convert_to_virtual and register_convert_to_raw.
2708 * mips-tdep.c (mips_convert_register_p): New function.
2709 (mips_value_to_register): Replace mips_register_convert_from_type.
2710 (mips_register_to_value): Replace mips_register_convert_to_type.
2711 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2712 register_to_value.
2713 * alpha-tdep.c (alpha_convert_register_p): Update.
2714 (alpha_value_to_register): Update, store the register.
2715 (alpha_register_to_value): Update, fetch the register.
2716
2717 2003-06-14 Theodore A. Roth <troth@openavr.org>
2718
2719 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2720 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2721 Don't set deprecated_call_dummy_words.
2722 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2723 Don't set remote_translate_xfer_address.
2724 (avr_io_reg_read_command): Remove commented out debug printf.
2725 Wrap a long line.
2726
2727 2003-06-14 Theodore A. Roth <troth@openavr.org>
2728
2729 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2730 causes gdb to seg fault.
2731
2732 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
2733
2734 * sparc-nat.c (fetch_inferior_registers): Correct
2735 a reference to "registers".
2736
2737 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2738
2739 * Makefile.in (exc_request_U_h): Define
2740 (exc_request_S_h): Likewise.
2741 (msg_reply_S_h): Likewise.
2742 (msg_U_h): Likewise.
2743 (notify_S_h): Likewise.
2744 (process_reply_S_h): Likewise.
2745 (gnu-nat.o): Depend on gdb_obstack_h
2746 * gnu-nat.c: Include "gdb_obstack.h".
2747
2748 2003-06-13 Andrew Cagney <cagney@redhat.com>
2749
2750 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2751 * gdbarch.h, gdbarch.c: Re-generate.
2752
2753 2003-06-13 Andrew Cagney <cagney@redhat.com>
2754
2755 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2756 when deprecated REGISTER macros can be deleted.
2757 * gdbarch.h, gdbarch.c: Re-generate.
2758
2759 2003-06-13 Jim Blandy <jimb@redhat.com>
2760
2761 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2762 Linux entry point symbols for _dl_debug_state, too.
2763
2764 2003-06-13 Andrew Cagney <cagney@redhat.com>
2765
2766 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2767 available, do not use the FP register, and always save the TOS.
2768 * dummy-frame.c (dummy_frame_this_id): Do not assert
2769 SAVE_DUMMY_FRAME_TOS.
2770 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2771 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2772 (i386_push_dummy_call): Add 8 to the returned SP.
2773 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2774 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2775 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2776 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2777 (x86_64_push_dummy_call): Return "sp + 16".
2778 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2779 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2780 save_dummy_frame_tos.
2781
2782 2003-06-13 Jim Blandy <jimb@redhat.com>
2783
2784 * frv-tdep.c (frv_use_struct_convention): Delete static
2785 declaration for function deleted in my change of 2003-06-12.
2786
2787 2003-06-13 Theodore A. Roth <troth@openavr.org>
2788
2789 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2790 (avr_pointer_to_address): Shift code addrs left 1 bit.
2791 (avr_convert_from_func_ptr_addr): Delete function since operation is
2792 better handled by avr_address_to_pointer and avr_pointer_to_address.
2793 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2794
2795 2003-06-13 Mark Kettenis <kettenis@gnu.org>
2796
2797 From Kelley Cook <kelleycook@wideopenwest.com>:
2798 * configure.host: Accept i[34567]86 variants.
2799 * configure.tgt: Likewise.
2800 * nlm/configure.in: Likewise.
2801 * nlm/configure: Regenerated.
2802
2803 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2804
2805 * arm-tdep.c (solib-svr4.h): Dont' include it.
2806 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2807 * arm-linux-tdep.c: ... here. Make static.
2808 (arm_linux_init_abi): Register it.
2809 (solib-svr4.h): Include it.
2810 * Makefile.in: Update dependencies.
2811 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2812 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2813
2814 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2815
2816 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2817 indicate registers used for return values.
2818 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2819 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2820 members.
2821 (h8300_init_extra_frame_info): Ditto.
2822 (h8300_frame_locals_address): Removed.
2823 (h8300_frame_args_address): Removed.
2824 (h8300_extract_return_value): Use new regcache structure. Only care
2825 for 16 bit CPUs.
2826 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2827 (h8300_store_return_value): Use new regcache structure. Only care
2828 for 16 bit CPUs.
2829 (h8300h_store_return_value): Same function for 32 bit CPUs.
2830 (h8300_store_struct_return): Removed.
2831 (h8300_extract_struct_value_address): Use new regcache structure.
2832 (h8300h_extract_struct_value_address): Removed.
2833 (h8300_push_dummy_code): New function.
2834 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2835 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2836 set_gdbarch_store_return_value architecture dependent.
2837 Call set_gdbarch_push_dummy_code and
2838 set_gdbarch_extract_struct_value_address.
2839 Remove calls to set_gdbarch_frame_args_address,
2840 set_gdbarch_frame_locals_address,
2841 set_gdbarch_deprecated_store_struct_return,
2842 set_gdbarch_deprecated_extract_return_value,
2843 set_gdbarch_deprecated_extract_struct_value_address,
2844 set_gdbarch_deprecated_call_dummy_words and
2845 set_gdbarch_deprecated_sizeof_call_dummy_words.
2846
2847 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2848
2849 * h8300-tdep.c (h8300_register_byte): Remove.
2850 (h8300h_register_byte): Remove.
2851 (h8300_register_virtual_type): Remove. Substitute by...
2852 (h8300_register_type): New function.
2853 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2854 (h8300h_extract_struct_value_address): Ditto.
2855 (h8300_gdbarch_init): Drop calls to
2856 set_gdbarch_deprecated_register_byte and
2857 set_gdbarch_deprecated_register_virtual_type.
2858 Add call to set_gdbarch_register_type.
2859
2860 2003-06-13 Andrew Cagney <cagney@redhat.com>
2861
2862 * gdbarch.sh: Update comments on registers.
2863 (deprecated_register_byte): Rename register_byte.
2864 (deprecated_register_raw_size): Rename register_raw_size.
2865 (deprecated_register_virtual_size): Rename register_virtual_size.
2866 (deprecated_register_virtual_type): Rename register_virtual_type.
2867 * gdbarch.h, gdbarch.c: Re-generate.
2868 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2869 * vax-tdep.c (vax_gdbarch_init): Update.
2870 * v850-tdep.c (v850_gdbarch_init): Update.
2871 * sparc-tdep.c (sparc_gdbarch_init): Update.
2872 * sh-tdep.c (sh_gdbarch_init): Update.
2873 * s390-tdep.c (s390_gdbarch_init): Update.
2874 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2875 * ns32k-tdep.c: Update.
2876 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2877 * mips-tdep.c (mips_gdbarch_init): Update.
2878 * mcore-tdep.c (mcore_gdbarch_init): Update.
2879 * m68k-tdep.c (m68k_gdbarch_init): Update.
2880 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2881 * ia64-tdep.c (ia64_gdbarch_init): Update.
2882 * hppa-tdep.c (hppa_gdbarch_init): Update.
2883 * h8300-tdep.c (h8300_gdbarch_init): Update.
2884 * frv-tdep.c (frv_gdbarch_init): Update.
2885 * cris-tdep.c (cris_gdbarch_init): Update.
2886 * avr-tdep.c (avr_gdbarch_init): Update.
2887 * alpha-tdep.c (alpha_gdbarch_init): Update.
2888 * arm-tdep.c (arm_gdbarch_init): Update.
2889
2890 2003-06-13 Andrew Cagney <cagney@redhat.com>
2891
2892 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2893 mips_o32_use_struct_convention with always_use_struct_convention.
2894
2895 2003-06-12 David Carlton <carlton@kealia.com>
2896
2897 * cp-namespace.c (cp_set_block_scope): Comment out
2898 processing_has_namespace_info branch.
2899
2900 2003-06-12 Jim Blandy <jimb@redhat.com>
2901
2902 Recognize and skip 64-bit PowerPC Linux linkage functions.
2903 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2904 insn_pattern, insns_match_pattern, d_field, ds_field): New
2905 functions, macros, and types for working with PPC instructions.
2906 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2907 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2908 ppc64_skip_trampoline_code): New functions, variables, and macros
2909 for recognizing and skipping linkage functions.
2910 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2911 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2912
2913 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2914 register offsets for both the 32- and 64-bit interfaces.
2915
2916 Actually finish the job started by my change of 2003-05-29.
2917 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2918 other #definition of this.
2919 (ppc_linux_skip_trampoline_code): Remove declaration.
2920 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2921 static.
2922 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2923 method for GDBARCH.
2924
2925 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2926 'long' on ppc64-*-linux*.
2927
2928 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2929 isn't #defined, assume the register doesn't exist: act as if
2930 tdep->ppc_mq_regnum were -1.
2931
2932 * configure.host, configure.tgt: Add entries for
2933 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2934 powerpc/linux.mt.
2935 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2936 New files.
2937
2938 * arch-utils.c (always_use_struct_convention): New function.
2939 * arch-utils.h (always_use_struct_convention): New prototype.
2940 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2941 (alpha_gdbarch_init): Register always_use_struct_convention,
2942 instead of alpha_use_struct_convention.
2943 * cris-tdep.c (cris_use_struct_convention): Delete.
2944 (cris_gdbarch_init): Register always_use_struct_convention,
2945 instead of cris_use_struct_convention.
2946 * frv-tdep.c (frv_use_struct_convention): Delete.
2947 (frv_gdbarch_init): Register always_use_struct_convention,
2948 instead of frv_use_struct_convention.
2949 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2950 (h8300_gdbarch_init): Register always_use_struct_convention,
2951 instead of h8300_use_struct_convention.
2952 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
2953 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2954 instead of mips_o32_use_struct_convention.
2955
2956 2003-06-12 Andrew Cagney <cagney@redhat.com>
2957
2958 * wince.c: Include "mips-tdep.h".
2959 * mips-tdep.h (mips_next_pc): Declare.
2960 * mcore-tdep.c: Make more local functions static.
2961 * Makefile.in (wince.o): Update dependencies.
2962
2963 2003-06-12 David Carlton <carlton@kealia.com>
2964
2965 * symtab.c (lookup_symbol_aux_minsyms): Replace
2966 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2967 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2968 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2969 SYMBOL_NATURAL_NAME.
2970
2971 2003-06-12 Andreas Schwab <schwab@suse.de>
2972
2973 * Makefile.in (tuiDisassem.o): Update dependencies.
2974
2975 2003-06-12 David Carlton <carlton@bactrian.org>
2976
2977 * symtab.h: Delete declaration of make_symbol_overload_list.
2978 Add declaration of lookup_partial_symbol.
2979 * symtab.c (remove_params): Move to cp-support.c.
2980 (overload_list_add_symbol, make_symbol_overload_list)
2981 (sym_return_val_size, sym_return_val_index): Ditto.
2982 (lookup_partial_symbol): Make extern.
2983 * cp-support.h: Add declaration of make_symbol_overload_list.
2984 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2985 symtab.h, and block.h.
2986 (remove_params): Move here from symtab.c.
2987 (overload_list_add_symbol, make_symbol_overload_list)
2988 (sym_return_val_size, sym_return_val_index): Ditto.
2989 * valops.c: Include cp-support.h.
2990 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2991 frame_h, and block_h.
2992 (valops.o): Depend on cp_support_h.
2993
2994 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
2995
2996 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2997 substitute by NUM_REGS throughout.
2998 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2999 (h8300s_register_name): New function for H8S registers.
3000 (h8300sx_register_name): Ditto for H8SX registers.
3001 (h8300_print_register): Revise register printing, avoid depending
3002 on 32 bit long.
3003 (h8300_register_byte): Only care for H8/300 registers.
3004 (h8300h_register_byte): New function for any other architecture.
3005 (h8300_register_raw_size): Remove.
3006 (h8300_register_virtual_type): Revise to return actually useful
3007 type.
3008 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3009 (h8300h_extract_struct_value_address): New function for any other
3010 architecture.
3011 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3012 set_gdbarch_register_name, set_gdbarch_register_byte,
3013 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3014 Remove calls to set_gdbarch_deprecated_register_size,
3015 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3016 set_gdbarch_deprecated_max_register_raw_size,
3017 set_gdbarch_register_virtual_size and
3018 set_gdbarch_deprecated_max_register_virtual_size entirely.
3019 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3020 set_gdbarch_long_double_bit.
3021
3022 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3023
3024 * doublest.c (convert_doublest_to_floatformat): When dealing
3025 with the implied integer bit, only alter mant_bits if we are
3026 processing a full 32 bits of mantissa.
3027
3028 2003-06-11 David Carlton <carlton@bactrian.org>
3029
3030 * dictionary.h: New.
3031 * dictionary.c: New.
3032 * block.h: Add opaque declaration for struct dictionary.
3033 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3034 'sym' members.
3035 (BLOCK_DICT): New macro.
3036 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3037 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3038 BLOCK_SHOULD_SORT.
3039 (ALL_BLOCK_SYMBOLS): Update definition.
3040 * Makefile.in (SFILES): Add dictionary.c.
3041 (dictionary_h): New.
3042 (COMMON_OBS): Add dictionary.o.
3043 (dictionary.o): New.
3044 (ada-lang.o): Depend on dictionary_h.
3045 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3046 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3047 (mi-cmd-stack.o): Ditto.
3048 (gdbtk-cmds.o): Update dependencies.
3049 (gdbtk-stack.o): Ditto.
3050 * ada-lang.c: Include dictionary.h.
3051 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3052 (fill_in_ada_prototype, debug_print_block): Ditto.
3053 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3054 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3055 'is_sorted'.
3056 * mdebugread.c: Include dictionary.h.
3057 (struct parse_stack): Delete 'maxsyms' member.
3058 (parse_symbol): Update calls to new_block. Delete calls to
3059 shrink_block. Use dictionary methods.
3060 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3061 Update calls to new_symtab. Don't maintain maxsyms data.
3062 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3063 (add_symbol): Just call dict_add_symbol.
3064 (new_symtab): Delete 'maxsyms' argument.
3065 (new_symtab): Update calls to new_block.
3066 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3067 (shrink_block): Delete function.
3068 (fixup_sigtramp): Update call to new_block. Add symbol via
3069 dict_add_symbol.
3070 * jv-lang.c: Include dictionary.h.
3071 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3072 appropriately. Set class_symtab->free_func. Make sure the
3073 blockvector is big enough to hold two blocks.
3074 (add_class_symtab_symbol): Use dictionary methods.
3075 (free_class_block): New function.
3076 (type_from_class): Replace explicit iteration by
3077 ALL_BLOCK_SYMBOLS.
3078 * symtab.h (struct symtab): Replace 'free_ptr' method by
3079 'free_func'.
3080 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3081 sort_symtab_syms.
3082 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3083 sort_symtab_syms.
3084 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3085 Include dictionary.h.
3086 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3087 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3088 sort_symtab_syms.
3089 * objfiles.c: Include dictionary.h.
3090 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3091 * buildsym.c: Include dictionary.h.
3092 (finish_block): Use dictionary methods.
3093 (end_symtab): Set free_func to NULL, not free_ptr.
3094 * tracepoint.c: Include dictionary.h.
3095 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3096 (scope_info): Ditto.
3097 * stack.c: Include dictionary.h.
3098 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3099 (print_block_frame_labels, print_frame_arg_vars)
3100 (print_frame_args): Ditto.
3101 * symmisc.c (free_symtab_block): Use dictionary methods.
3102 (dump_symtab): Ditto.
3103 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3104 Include dictionary.h.
3105 * symfile.h: Delete declarations of sort_block_syms,
3106 sort_symtab_syms.
3107 * symfile.c (sort_block_syms): Delete.
3108 (sort_symtab_syms): Delete.
3109 * symtab.c: Include dictionary.h.
3110 (lookup_block_symbol): Use dictionary iterators.
3111 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3112 (search_symbols, make_symbol_completion_list): Ditto.
3113 (make_symbol_overload_list): Ditto.
3114 * valops.c (value_of_local): Use dict_empty.
3115 Include dictionary.h.
3116
3117 2003-06-11 J. Brobecker <brobecker@gnat.com>
3118
3119 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3120
3121 2003-06-11 David Carlton <carlton@bactrian.org>
3122
3123 * block.h (BLOCK_SHOULD_SORT): Delete.
3124 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3125 blocks.
3126 * ada-lang.c (ada_add_block_symbols): Ditto.
3127 * symfile.c (sort_block_syms): Delete.
3128 (sort_symtab_syms): Ditto.
3129 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3130 declarations.
3131 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3132 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3133 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3134 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3135 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3136 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3137 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3138
3139 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3140
3141 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3142 bits to 128.
3143
3144 2003-06-11 Andrew Cagney <cagney@redhat.com>
3145
3146 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3147 REGISTER_CONVERTIBLE.
3148 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3149 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3150 * gdbarch.h, gdbarch.c: Re-generate.
3151 * arch-utils.h (deprecated_register_convertible_not): Rename
3152 generic_register_convertible_not.
3153 * arch-utils.c (deprecated_register_convertible_not): Rename
3154 generic_register_convertible.
3155 (legacy_convert_register_p, legacy_register_to_value): Update.
3156 * sh-tdep.c (sh64_push_arguments): Update.
3157 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3158 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3159 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3160 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3161 * arch-utils.c (legacy_value_to_register): Update.
3162 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3163 (rs6000_register_convert_to_raw): Make parameter "from" const.
3164 * mips-tdep.c (mips_gdbarch_init): Update.
3165 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3166 * infcmd.c (default_print_registers_info): Update.
3167 * ia64-tdep.c (ia64_gdbarch_init): Update.
3168 (ia64_register_convert_to_raw): Make parameter "from" const.
3169 * i386-tdep.c (i386_gdbarch_init): Update.
3170 (i386_register_convert_to_raw): Update.
3171
3172 2003-06-11 Andrew Cagney <cagney@redhat.com>
3173
3174 * remote-fileio.c: Include "remote-fileio.h".
3175 * Makefile.in (remote-fileio.o): Update dependencies.
3176 (remote_fileio_h): Fix typo.
3177
3178 2003-06-11 Andrew Cagney <cagney@redhat.com>
3179
3180 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3181 (xstormy16_save_dummy_frame_tos): Make static.
3182 (_initialize_xstormy16_tdep): Add declaration.
3183 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3184 * v850-tdep.c: Make local functions static.
3185 (_initialize_v850_tdep): Add declaration.
3186 * sparc-tdep.c: Make local functions static.
3187 (_initialize_sparc_tdep): Add declaration.
3188 * sh-tdep.c: Make local functions static.
3189 (_initialize_sh_tdep): Add declaration.
3190 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3191 * s390-tdep.c: Make local functions static.
3192 (_initialize_s390_tdep): Add declaration.
3193 * dbxread.c (find_stab_function_addr): Make static.
3194 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3195 * ocd.c (_initialize_remote_ocd): Add declaration.
3196 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3197 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3198 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3199 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3200 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3201 * remote-array.c (_initialize_array): Add declaration.
3202 (_initialize_remote_monitors): Add declaration.
3203 * remote-mips.c: Make local functions static.
3204 (_initialize_remote_mips): Add declaration.
3205 * mcore-tdep.c: Make all local functions static.
3206 (_initialize_mcore_tdep): Add declaration.
3207 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3208 * abug-rom.c (_initialize_abug_rom): Add declaration.
3209 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3210 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3211 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3212 * remote-est.c (_initialize_est): Add declaration.
3213 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3214 (m68hc11_call_dummy_address): Make static.
3215 * ia64-tdep.c: Make local functions static.
3216 (_initialize_ia64_tdep): Add declaration.
3217 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3218 * monitor.c (monitor_wait_filter): Make static.
3219 (_initialize_remote_monitors): Add declaration.
3220 * remote-hms.c (_initialize_remote_hms): Add declaration.
3221 * remote-e7000.c (fetch_regs_from_dump): Make static.
3222 (expect_n): Make static.
3223 (_initialize_remote_e7000): Add declaration.
3224 * ser-e7kpc.c: Always include "defs.h".
3225 (_initialize_ser_e7000pc): Add declaration.
3226 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3227 * cris-tdep.c: Make all but one function static.
3228 (_initialize_cris_tdep): Add declaration.
3229 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3230 * solib.c (update_solib_list): Make static.
3231 (_initialize_solib): Add declaration.
3232 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3233 (_initialize_avr_tdep): Add declaration.
3234 * remote-rdi.c (voiddummy): Make static.
3235 (_initialize_remote_rdi): Add declaration.
3236 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3237 * remote-rdp.c (send_rdp): Make static.
3238 (_initialize_remote_rdp): Add declaration.
3239 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3240
3241 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
3242
3243 * remote-fileio.c: Make ari happy.
3244
3245 2003-06-10 J. Brobecker <brobecker@gnat.com>
3246
3247 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3248 fetching the trailing bytes of the buffer we are about to write.
3249
3250 2003-06-10 Andrew Cagney <cagney@redhat.com>
3251
3252 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3253 * Makefile.in (remote-fileio.o): Update dependencies.
3254 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3255 include <setjmp.h>, or <sys/types.h> conditional on USG.
3256 (remote_fio_jmp_buf): Delete global variable.
3257
3258 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
3259 Martin M. Hunt <hunt@redhat.com>
3260
3261 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3262 (SFILES): Add remote-fileio.c.
3263 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3264 dependencies for building remote.o.
3265 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3266 * remote-fileio.h: New header file defining remote File-I/O interface.
3267 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3268 static storage class.
3269 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3270 'F' packet.
3271 (_initialize_remote): Call initialize_remote_fileio().
3272 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3273 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3274 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3275 (captured_main): Initialize new ui_files.
3276 * ui-file.c: Add read and fgets input functions.
3277 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3278 (null_file_read): New function.
3279 (ui_file_read): New function.
3280 (set_ui_file_read): New function.
3281 (stdio_file_read): New function.
3282 * ui-file.h: New type ui_file_read_ftype.
3283 (set_ui_file_read): Declare.
3284 (ui_file_read): Declare.
3285
3286 2003-06-09 Andrew Cagney <cagney@redhat.com>
3287
3288 * frame.h (deprecated_unwind_get_saved_register): Rename
3289 generic_unwind_get_saved_register, update comments.
3290 * mips-tdep.c (mips_get_saved_register): Update.
3291 * frame.c (deprecated_unwind_get_saved_register): Update.
3292
3293 2003-06-09 Andrew Cagney <cagney@redhat.com>
3294
3295 * vax-tdep.c (vax_frame_locals_address): Delete function.
3296 (vax_gdbarch_init): Do not set frame_locals_address.
3297 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3298 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3299 * s390-tdep.c (s390_frame_args_address): Delete function.
3300 (s390_gdbarch_init): Do not set frame_args_address or
3301 frame_locals_address.
3302 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3303 (ns32k_gdbarch_init): Do not set frame_locals_address.
3304 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3305 (hppa_frame_locals_address): Delete function.
3306 (hppa_gdbarch_init): Do not set frame_args_address, or
3307 frame_locals_address.
3308 * arm-tdep.c (arm_frame_args_address): Delete.
3309 (arm_frame_locals_address): Delete.
3310 (arm_gdbarch_init): Do not set frame_args_address, or
3311 frame_locals_address.
3312
3313 2003-06-09 Andrew Cagney <cagney@redhat.com>
3314
3315 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3316 * gdbarch.h, gdbarch.c: Re-generate.
3317 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3318 * arch-utils.c (frame_num_args_unknown): Delete function.
3319 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3320 (frame_info): Use FRAME_NUM_ARGS_P.
3321 * arm-tdep.c (arm_frame_num_args): Delete function.
3322 (arm_gdbarch_init): Do not set frame_num_args.
3323 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3324 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3325 (hppa_gdbarch_init): Do not set frame_num_args.
3326 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3327 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3328 frame_num_args to default frame_num_args_unknown.
3329 * v850-tdep.c (v850_gdbarch_init): Ditto.
3330 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3331 * sh-tdep.c (sh_gdbarch_init): Ditto.
3332 * s390-tdep.c (s390_gdbarch_init): Ditto.
3333 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3334 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3335 * mips-tdep.c (mips_gdbarch_init): Ditto.
3336 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3337 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3338 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3339 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3340 * i386-tdep.c (i386_gdbarch_init): Ditto.
3341 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3342 * frv-tdep.c (frv_gdbarch_init): Ditto.
3343 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3344 * cris-tdep.c (cris_gdbarch_init): Ditto.
3345 * avr-tdep.c (avr_gdbarch_init): Ditto.
3346 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3347
3348 2003-06-09 Andrew Cagney <cagney@redhat.com>
3349
3350 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3351 (print_frame_args): Moved to "stack.c".
3352 * stack.c: Include "gdb_assert.h".
3353 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3354 (print_frame_args): Moved from "printcmd.c".
3355 * frame.h (print_frame_args): Delete declaration.
3356 * Makefile.in (stack.o): Update dependencies.
3357
3358 2003-06-08 Andrew Cagney <cagney@redhat.com>
3359
3360 * frame.c (get_prev_frame): Remove reference to
3361 frame_args_address_correct in comments.
3362 * frame-base.c (default_frame_args_address): Delete code
3363 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3364 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3365 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3366 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3367 (vax_frame_args_address_correct): Delete declaration.
3368
3369 2003-06-08 Andrew Cagney <cagney@redhat.com>
3370
3371 * gdbarch.sh (UNWIND_SP): Add.
3372 * gdbarch.h, gdbarch.c: Re-generate.
3373 * frame.c (frame_sp_unwind): New function.
3374 (get_frame_sp): New function.
3375 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3376 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3377 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3378 value.
3379 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3380 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3381
3382 2003-06-08 Andrew Cagney <cagney@redhat.com>
3383
3384 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3385 REMOTE_BREAKPOINT.
3386 * remote.c: Update.
3387 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3388 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3389 * config/m68k/tm-sun3.h: Update.
3390 * config/m68k/tm-m68klynx.h: Update.
3391 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3392
3393 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3394 trad_frame". Update comments.
3395 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3396 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3397 (trad_frame_register_value, trad_frame_prev_register): Update.
3398
3399 2003-06-08 Andrew Cagney <cagney@redhat.com>
3400
3401 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3402 from GCC's acinclude.m4.
3403 * configure.in: Check for getopt's delcaration.
3404 * aclocal.m4, config.in, configure: Re-generate.
3405 * main.c (error_init): Delete declaration.
3406 * defs.h (error_init): Declare.
3407 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3408 (rs6000_convert_from_func_ptr_addr): Make static.
3409 (_initialize_rs6000_tdep): Add declaration.
3410 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3411 (show_commands, set_verbose, show_history): Delete declaration.
3412 * top.h (set_verbose): Add declaration.
3413 (show_history, set_history, show_commands): Add declaration.
3414 (do_restore_instream_cleanup): Add declaration.
3415 * objc-lang.c (specialcmp): Make static.
3416 (print_object_command): Make static.
3417 (find_objc_msgsend): Make static.
3418 (find_objc_msgcall_submethod_helper): Make static.
3419 (find_objc_msgcall_submethod): Make static.
3420 (_initialize_objc_language): Add declaration.
3421 (find_implementation_from_class): Make static.
3422 (find_implementation): Make static.
3423 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3424 * objc-lang.h (lookup_struct_typedef): Add declaration.
3425 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3426 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3427 (do_restore_user_call_depth): Make static.
3428 (do_restore_instream_cleanup): Delete declaration.
3429 (dont_repeat): Delete declaration.
3430 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3431 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3432 * reggroups.c (_initialize_reggroup): Add declaration.
3433 * cp-support.c (_initialize_cp_support): Add declaration.
3434 * cp-abi.c (_initialize_cp_abi): Add declaration.
3435 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3436 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3437 (_initialize_gnu_v3_abi): Add declaration.
3438 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3439 (_initialize_gnu_v2_abi): Add declaration.
3440 * frame-base.c (_initialize_frame_base): Add declaration.
3441 * doublest.c (floatformat_from_length): Make static.
3442 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3443 * frame.c (create_sentinel_frame): Make static.
3444 (_initialize_frame): Add declaration.
3445 * top.c (do_catch_errors): Make static.
3446 (gdb_rl_operate_and_get_next_completion): Make static.
3447 * typeprint.c: Include "typeprint.h".
3448 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3449 (sentinel_frame_this_id): Make static.
3450 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3451 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3452 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3453 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3454 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3455 * maint.c (maintenance_print_architecture): Make static.
3456 * signals/signals.c (_initialize_signals): Add declaration.
3457 * std-regs.c (_initialize_frame_reg): Add declaration.
3458 * jv-exp.y (push_variable): ISO C definition.
3459 (push_qualified_expression_name): Ditto.
3460 * memattr.c (_initialize_mem): Add declaration.
3461 * remote.c (remote_check_watch_resources): Make static.
3462 (remote_stopped_by_watchpoint): Make static.
3463 (remote_stopped_data_address): Make static.
3464 * d10v-tdep.c (nr_dmap_regs): Make static.
3465 (a0_regnum): Make static.
3466 (d10v_frame_unwind_cache): Make static.
3467 (d10v_frame_p): Make static.
3468 * osabi.c (show_osabi): Make static.
3469 (_initialize_gdb_osabi): Add extern declaration.
3470 * gdbtypes.c (make_qualified_type): Make static.
3471 (safe_parse_type): Make static.
3472 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3473 * macrotab.c (macro_bcache_free): Make static.
3474 * interps.c (interp_set_quiet): Make static.
3475 (interpreter_exec_cmd): Make static.
3476 * stack.h (select_frame_command): New file.
3477 * stack.c: Include "stack.h".
3478 (select_frame_command_wrapper): Delete function.
3479 (select_frame_command): Make global.
3480 * infcall.c: Include "infcall.h".
3481 * linespec.c: Include "linespec.h".
3482 * symfile.c (sections_overlap): Make static.
3483 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3484 * charset.c (_initialize_charset): Add missing prototype.
3485 * regcache.c (init_legacy_regcache_descr): Make static.
3486 (do_regcache_xfree): Make static.
3487 (regcache_xfer_part): Make static.
3488 (_initialize_regcache): Add missing prototype.
3489 * breakpoint.c (parse_breakpoint_sals): Make static.
3490 (breakpoint_sals_to_pc): Make static.
3491 * interps.h (clear_interpreter_hooks): ISO C declaration.
3492 * Makefile.in (stack_h): Define.
3493 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3494 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3495
3496 2003-06-08 Andrew Cagney <cagney@redhat.com>
3497
3498 * Makefile.in (d10v-tdep.o): Update dependencies.
3499 (SFILES): Add trad-frame.c.
3500 (trad_frame_h): Define.
3501 (COMMON_OBS): Add trad-frame.o.
3502 (trad-frame.o): Specify dependencies.
3503 * d10v-tdep.c: Include "trad-frame.h".
3504 (saved_regs_unwinder): Delete function.
3505 (d10v_frame_prev_register): Use trad_frame_prev_register.
3506 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3507 trad_frame", delete "regs" and "prev_sp".
3508 (prologue_find_regs): Use trad-frame.
3509 * trad-frame.h, trad-frame.c: New files.
3510
3511 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3512
3513 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3514
3515 2003-06-07 Adam Fedor <fedor@gnu.org>
3516
3517 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3518 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3519 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3520 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3521 resolve_msgsend_super, resolve_msgsend_super_stret):
3522 Use it.
3523
3524 2003-06-07 Andrew Cagney <cagney@redhat.com>
3525
3526 * symfile.h: Re-indent, clean up comments.
3527
3528 2003-06-07 Andrew Cagney <cagney@redhat.com>
3529
3530 * inferior.h (deprecated_write_sp): Replace
3531 generic_target_write_sp.
3532 * regcache.c (deprecated_write_sp): Replace
3533 generic_target_write_sp.
3534 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3535 * vax-tdep.c (vax_gdbarch_init): Update.
3536 * v850-tdep.c (v850_gdbarch_init): Update.
3537 * sparc-tdep.c (sparc_gdbarch_init): Update.
3538 * sh-tdep.c (sh_gdbarch_init): Update.
3539 * s390-tdep.c (s390_gdbarch_init): Update.
3540 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3541 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3542 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3543 * mcore-tdep.c (mcore_gdbarch_init): Update.
3544 * m68k-tdep.c (m68k_gdbarch_init): Update.
3545 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3546 * ia64-tdep.c (ia64_gdbarch_init): Update.
3547 * h8300-tdep.c (h8300_gdbarch_init): Update.
3548 * frv-tdep.c (frv_gdbarch_init): Update.
3549 * cris-tdep.c (cris_gdbarch_init): Update.
3550 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3551
3552 2003-06-07 Andrew Cagney <cagney@redhat.com>
3553
3554 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3555 Assert that PC_REGNUM is valid.
3556 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3557
3558 2003-06-07 Andrew Cagney <cagney@redhat.com>
3559
3560 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3561 * gdbarch.h, gdbarch.c: Regenerate.
3562 * mn10300-tdep.c: Include "gdb_assert.h".
3563 (mn10300_read_fp): New function.
3564 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3565 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3566 * ia64-tdep.c: Include "gdb_assert.h".
3567 (ia64_read_fp): New function.
3568 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3569 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3570 * regcache.c (generic_target_read_sp): Delete function.
3571 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3572 * inferior.h (generic_target_read_sp): Delete declaration.
3573 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3574 generic_target_read_sp.
3575 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
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 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3580
3581 2003-06-07 Andrew Cagney <cagney@redhat.com>
3582
3583 * gdbarch.sh: Comment each field of startup_gdbarch.
3584 * gdbarch.h, gdbarch.c: Re-generate.
3585
3586 2003-06-07 Andrew Cagney <cagney@redhat.com>
3587
3588 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3589 * gdbarch.h, gdbarch.c: Re-generate.
3590 * regcache.c: Update comments on read_pc et.al.
3591 (generic_target_read_pc): Delete function.
3592 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3593 * inferior.h (generic_target_read_pc): Delete declaration.
3594 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3595 generic_target_read_pc.
3596 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3597 * sh-tdep.c (sh_gdbarch_init): Ditto.
3598 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3599 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3600
3601 2003-06-07 Andrew Cagney <cagney@redhat.com>
3602
3603 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3604 "index" with "special_local_sect". Use strcmp instead of STREQ.
3605 Append period to coments.
3606
3607 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3608
3609 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3610 (elfstab_offset_sections): Likewise.
3611 * gdb-stabs.h (stab_section_info): Likewise.
3612 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3613 * objfiles.c (objfile_relocate): Likewise.
3614 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3615 * remote.c (get_offsets): Likewise.
3616 (remote_cisco_objfile_relocate): Likewise.
3617 * somread.c (som_symfile_offsets): Likewise.
3618 * symfile.c (alloc_section_addr_info): New function.
3619 (build_section_addr_info_from_section_tab): Use it.
3620 (free_section_addr_info): Adjust.
3621 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3622 (syms_from_objfile): Allocate local_addr dynamically.
3623 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3624 dynamically.
3625 (add_symbol_file_command): Allocate sect_opts dynamically.
3626 (reread_symbols): Avoid use of SECT_OFF_MAX.
3627 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3628 (alloc_section_addr_info): Declare it.
3629 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3630 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3631 dynamically.
3632 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3633
3634 2003-06-06 Andrew Cagney <cagney@redhat.com>
3635
3636 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3637 (d10v_frame_unwind_cache): Do not set "return_pc".
3638
3639 2003-06-06 Michael Snyder <msnyder@redhat.com>
3640
3641 * h8300-tdep.c: Make tidy (long lines).
3642
3643 2003-06-06 Michal Ludvig <mludvig@suse.cz>
3644
3645 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3646 to regcache_collect().
3647
3648 2003-06-05 J. Brobecker <brobecker@gnat.com>
3649
3650 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3651 pc_in_sigtramp multiarch method.
3652 (hppa_hpux_som_init_abi): Use it.
3653 (hppa_hpux_elf_init_abi): Likewise.
3654 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3655 macro has been multiarched.
3656 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3657 macro here, as hppa64 isn't multiarched yet.
3658
3659 2003-06-05 Andrew Cagney <cagney@redhat.com>
3660
3661 * Makefile.in (value_h): Add $(frame_h).
3662 * value.h: Include "frame.h".
3663 (struct value): Replace "frame_addr" with "frame_id".
3664 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3665 * values.c (allocate_value): Use VALUE_FRAME_ID.
3666 (value_copy): Use VALUE_FRAME_ID.
3667 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3668 * valops.c (value_assign): Update. Use frame_find_by_id.
3669
3670 2003-06-05 Michal Ludvig <mludvig@suse.cz>
3671
3672 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3673 in each pass.
3674
3675 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3676
3677 * thread-db.c (check_event): For create/death event breakpoints,
3678 loop through all messages to ensure that we read the message
3679 corresponding to the breakpoint we are at.
3680
3681 2003-06-04 Michael Snyder <msnyder@redhat.com>
3682
3683 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3684
3685 2003-06-04 Mark Kettenis <kettenis@gnu.org>
3686
3687 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3688 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3689 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3690 when handling .eh_frame sections.
3691
3692 2003-06-04 J. Brobecker <brobecker@gnat.com>
3693
3694 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3695 prepare_to_proceed procedure instead of the hppa-specific one.
3696 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3697
3698 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
3699
3700 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3701 * config.in: Regenerated.
3702 * configure.in: Add test for syscall function and check for
3703 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3704 * configure: Regenerated.
3705 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3706 <sys/syscall.h>.
3707 (kill_lwp): New function that uses tkill syscall or
3708 uses kill, depending on whether threading model is nptl or not.
3709 All callers of kill() changed to use kill_lwp().
3710 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3711 see if all threads have already exited in the nptl model.
3712 (stop_and_resume_callback): New callback function used by the
3713 lin_lwp_wait thread exit handling code.
3714 (stop_wait_callback): Check for threads already having exited and
3715 delete such threads fromt the lwp list when discovered.
3716 (stop_callback): Don't assert retcode of kill call.
3717
3718 Roland McGrath <roland@redhat.com>
3719 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3720 nptl libthread_db.
3721
3722 2003-06-03 Richard Henderson <rth@redhat.com>
3723
3724 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3725 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3726 (alpha_sigtramp_frame_prev_register): Likewise.
3727 (alpha_heuristic_frame_prev_register): Likewise.
3728 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3729
3730 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3731 alpha-specific register id names.
3732 (alpha_mdebug_frame_unwind_cache): Likewise.
3733 (alpha_mdebug_frame_prev_register): Likewise.
3734
3735 2003-06-03 Richard Henderson <rth@redhat.com>
3736
3737 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3738 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3739 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3740 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3741 unwind routines.
3742 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3743 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3744 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3745
3746 * alpha-linux-tdep.c: Remove unnecessary includes.
3747 * Makefile.in (alpha-linux-tdep.o): Update.
3748
3749 2003-06-03 Richard Henderson <rth@redhat.com>
3750
3751 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3752 (alphabsd_fill_fpreg): Likewise.
3753
3754 2003-06-03 J. Brobecker <brobecker@gnat.com>
3755
3756 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3757 references to struct frame_info fields by calls to the equivalent
3758 accessors. Necessary now that frame_info is opaque.
3759
3760 2003-06-03 J. Brobecker <brobecker@gnat.com>
3761
3762 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3763 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3764 structure, field no longer exists.
3765
3766 2003-06-03 J. Brobecker <brobecker@gnat.com>
3767
3768 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3769 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3770
3771 2003-06-03 J. Brobecker <brobecker@gnat.com>
3772
3773 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3774 references to struct frame_info fields by calls to the equivalent
3775 accessors. Necessary now that frame_info is opaque.
3776
3777 2003-06-03 J. Brobecker <brobecker@gnat.com>
3778
3779 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3780 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3781 structure, field no longer exists.
3782
3783 2003-06-03 Theodore A. Roth <troth@openavr.org>
3784
3785 * remote.c (init_remote_state): Compute sizeof_g_packet by
3786 accumulation of the size of all registers instead of blindly using
3787 DEPRECATED_REGISTER_BYTES.
3788
3789 2003-06-03 Michael Snyder <msnyder@redhat.com>
3790
3791 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3792 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3793 for h8300sx.
3794
3795 2003-06-03 J. Brobecker <brobecker@gnat.com>
3796
3797 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3798 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3799
3800 2003-06-03 Andrew Cagney <cagney@redhat.com>
3801
3802 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3803 (sparc_convert_to_raw): Delete function.
3804 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3805 register_convert_to_virtual.
3806
3807 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3808
3809 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3810 layer if not dealing with a statically-linked threaded program.
3811
3812 2003-06-03 Kris Warkentin <kewarken@qnx.com>
3813
3814 * solib.c (solib_open): Update comment to reflect actual search order.
3815
3816 2003-06-03 Andrew Cagney <cagney@redhat.com>
3817
3818 * frame.c (get_frame_memory_signed): New function.
3819 (get_frame_memory, get_frame_memory_unsigned): New function.
3820 (get_frame_arch): New function.
3821 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3822 (get_frame_memory, get_frame_unsigned_memory): Declare.
3823 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3824 get_frame_memory_unsigned and get_frame_arch.
3825 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3826
3827 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3828
3829 * MAINTAINERS (write after approval): Add myself.
3830
3831 2003-06-03 Jim Blandy <jimb@redhat.com>
3832
3833 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3834 elements of gregset_t are 64 bits each, but access registers
3835 are still 32 bits, so they're packed two per gregset_t
3836 element. Unpack/pack them properly.
3837
3838 2003-06-02 David Carlton <carlton@bactrian.org>
3839
3840 * linespec.c (find_methods): Break out code into
3841 add_matching_methods and add_constructors.
3842 (add_matching_methods): New.
3843 (add_constructors): Ditto.
3844
3845 2003-06-02 Andrew Cagney <cagney@redhat.com>
3846
3847 * sparc-tdep.c (sparc_print_registers): Delete call to
3848 REGISTER_CONVERTIBLE.
3849 (sparc_gdbarch_init): Do not set register_convertible.
3850 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3851 * frv-tdep.c (frv_gdbarch_init): Ditto.
3852 * cris-tdep.c (cris_gdbarch_init): Ditto.
3853
3854 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
3855
3856 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3857 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3858 (syms_from_objfile): Ditto.
3859
3860 2003-06-03 Andreas Schwab <schwab@suse.de>
3861
3862 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3863 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3864
3865 2003-06-02 Richard Henderson <rth@redhat.com>
3866
3867 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3868 a member of all_reggroup.
3869
3870 2003-06-02 Richard Henderson <rth@redhat.com>
3871
3872 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3873 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3874 (alpha_lds, alpha_sts): New.
3875 (alpha_convert_register_p): Change from _register_convertible.
3876 (alpha_register_to_value): Change from _convert_to_virtual;
3877 restructure and fail for type sizes other than 4 or 8.
3878 (alpha_value_to_register): Similarly.
3879 (alpha_extract_return_value): Use alpha_sts.
3880 (alpha_store_return_value): Use alpha_lds.
3881 (alpha_gdbarch_init): Update hooks.
3882
3883 2003-06-02 Richard Henderson <rth@redhat.com>
3884
3885 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3886 regnum identifiers.
3887 (alpha_sigtramp_register_address): Likewise.
3888
3889 2003-06-02 Richard Henderson <rth@redhat.com>
3890
3891 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3892 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3893 * alpha-tdep.h: Declare them.
3894
3895 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3896 Remove zerobuf. Don't error on UNIQUE.
3897 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3898 (ALPHA_REGSET_UNIQUE): Provide default.
3899 (supply_gregset): Use alpha_supply_int_regs.
3900 (fill_gregset): Use alpha_fill_int_regs.
3901 (supply_fpregset): Use alpha_supply_fp_regs.
3902 (fill_fpregset): Use alpha_fill_fp_regs.
3903 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3904 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3905 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3906 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3907 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3908 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3909
3910 2003-06-02 Richard Henderson <rth@redhat.com>
3911
3912 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3913
3914 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3915 (alpha_store_return_value): Likewise.
3916
3917 2003-06-02 David Carlton <carlton@math.stanford.edu>
3918
3919 * block.c (contained_in): Add 'const' to arguments.
3920 (block_function): Ditto.
3921 * block.h: Update declarations for block_function and
3922 contained_in.
3923
3924 2003-06-02 David Carlton <carlton@math.stanford.edu>
3925
3926 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3927 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3928 * p-valprint.c (pascal_val_print): Ditto.
3929 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3930
3931 2003-06-02 Richard Henderson <rth@redhat.com>
3932
3933 * alpha-tdep.c (alpha_push_dummy_call): Use
3934 builtin_type_ieee_double_little instead of builtin_type_double.
3935
3936 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
3937 sign-extension of 32-bit values.
3938 (alpha_store_return_value): Similarly.
3939
3940 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3941 (alpha_extract_return_value): Likewise.
3942 (alpha_store_return_value): Likewise.
3943
3944 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3945 (alpha_store_return_value): Error on IEEE Quad floats.
3946
3947 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3948 (alpha_extract_struct_value_address): Likewise.
3949 (alpha_store_return_value): Likewise.
3950 (alpha_store_struct_return): Remove.
3951 (alpha_gdbarch_init): Update hook registration to match.
3952
3953 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3954 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3955 macros where appropriate.
3956 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3957 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
3958
3959 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3960 for SP, GP; void_func_ptr for PC; non-language-specific types
3961 for all others.
3962 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
3963
3964 2003-06-02 Richard Henderson <rth@redhat.com>
3965
3966 * top.h (lim_at_start): Declare.
3967 * main.c (captured_main): Set it.
3968 * top.c (lim_at_start): Define.
3969 (command_loop): Use it instead of &environ.
3970 * event-top.c (command_handler): Likewise.
3971
3972 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3973
3974 * mipsnbsd-tdep.c: Update copyright years.
3975 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3976
3977 2003-06-01 Richard Henderson <rth@redhat.com>
3978
3979 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3980 (alpha-linux-tdep.o): Update dependencies.
3981 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3982 * alpha-mdebug-tdep.c: Remove unneeded includes.
3983
3984 2003-06-01 Richard Henderson <rth@redhat.com>
3985
3986 * alpha-tdep.c (alpha_register_reggroup_p): New.
3987 (alpha_gdbarch_init): Register it.
3988
3989 2003-06-02 Andrew Cagney <cagney@redhat.com>
3990
3991 * dwarfread.c: Eliminate "register"
3992 (decode_die_type): Eliminate assignment within "if".
3993 (struct_type, decode_array_element_type): Ditto.
3994 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3995 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3996 (decode_modified_type, completedieinfo): Ditto.
3997 * block.c: Eliminate "register".
3998 (blockvector_for_pc_sect): Eliminate assignment within "if".
3999 * cp-support.h (struct symbol): Opaque declaration.
4000 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4001
4002 2003-06-01 Richard Henderson <rth@redhat.com>
4003
4004 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4005 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4006
4007 2003-06-01 Adam Fedor <fedor@gnu.org>
4008
4009 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4010 * gdbarch.[ch]: Regenerate.
4011 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4012 (hppa_gdbarch_init): Set it in the gdbarch vector.
4013 * i386-tdep.c (i386_fetch_pointer_argument): New
4014 (i386_gdbarch_init): Set it into gdbarch.
4015 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4016 (rs6000_gdbarch_init): Set it in gdbarch.
4017 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4018 (sparc_gdbarch_init): Set it in gdbarch.
4019
4020 2003-06-01 Andrew Cagney <cagney@redhat.com>
4021
4022 * defs.h (extract_address): Delete declaration.
4023 * findvar.c (extract_address): Delete function.
4024 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4025 extract_address with the inline equivalent,
4026 extract_unsigned_integer.
4027 (xstormy16_extract_struct_value_address): Ditto.
4028 (xstormy16_pointer_to_address): Ditto.
4029 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4030 * v850-tdep.c (v850_push_arguments): Ditto.
4031 (v850_extract_return_value): Ditto.
4032 (v850_extract_struct_value_address): Ditto.
4033 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4034 (sparcnbsd_get_longjmp_target_64): Ditto.
4035 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4036 (get_longjmp_target): Ditto.
4037 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4038 (sh64_extract_struct_value_address): Ditto.
4039 (sh_push_arguments): Ditto.
4040 (sh64_push_arguments): Ditto.
4041 * remote-vxsparc.c (vx_read_register): Ditto.
4042 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4043 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4044 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4045 * mipsv4-nat.c (get_longjmp_target): Ditto.
4046 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4047 * mips-nat.c (get_longjmp_target): Ditto.
4048 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4049 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4050 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4051 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4052 * irix5-nat.c (get_longjmp_target): Ditto.
4053 * irix4-nat.c (get_longjmp_target): Ditto.
4054 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4055 (ia64_push_arguments): Ditto.
4056 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4057 * h8300-tdep.c (h8300_push_arguments): Ditto.
4058 (h8300_store_return_value): Ditto.
4059 (h8300_extract_struct_value_address): Ditto.
4060 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4061 (frv_push_arguments): Ditto.
4062 * avr-tdep.c (avr_pointer_to_address): Ditto.
4063 (avr_push_arguments): Ditto.
4064 * arm-tdep.c (arm_push_dummy_call): Ditto.
4065 (arm_get_longjmp_target): Ditto.
4066 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4067 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4068 (alpha_get_longjmp_target): Ditto.
4069
4070 * solib-irix.c (extract_mips_address): Inline extract_address,
4071 replacing it with extract_signed_integer.
4072 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4073 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4074 (first_link_map_member, open_symbol_file_object): Ditto.
4075 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4076 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4077 (LM_NEXT, LM_NAME): Ditto.
4078
4079 2003-06-01 Richard Henderson <rth@redhat.com>
4080
4081 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4082 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4083 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4084 (alpha_cannot_store_register): Likewise.
4085 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4086 * alpha-nat.c (supply_gregset): Likewise.
4087 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4088
4089 2003-06-01 Andrew Cagney <cagney@redhat.com>
4090
4091 * infcall.c (call_function_by_hand): Update comment on
4092 DEPRECATED_DUMMY_WRITE_SP.
4093
4094 * mips-tdep.c (mips_gdbarch_init): Do not set
4095 deprecated_dummy_write_sp.
4096 (mips_eabi_push_dummy_call): Set the SP register.
4097 (mips_o64_push_dummy_call): Set the SP register.
4098 (mips_o32_push_dummy_call): Set the SP register.
4099 (mips_n32n64_push_dummy_call): Set the SP register.
4100
4101 2003-06-01 Richard Henderson <rth@redhat.com>
4102
4103 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4104 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4105 (supply_gregset): Likewise.
4106 * alpha-tdep.c (alpha_store_return_value): Likewise.
4107 (alpha_get_longjmp_target): Likewise.
4108 (alpha_register_name): Constify array.
4109 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4110 deprecated_register_size, deprecated_register_bytes,
4111 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4112 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4113 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4114
4115 2003-06-01 Richard Henderson <rth@redhat.com>
4116
4117 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4118 from arg_reg_buffer to regcache to avoid double conversion.
4119
4120 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4121
4122 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4123 SP_REGNUM.
4124 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4125 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4126
4127 2003-06-01 Richard Henderson <rth@redhat.com>
4128
4129 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4130 (decode_frame_entry): Set it. Skip FDE augmentation.
4131
4132 2003-06-01 Richard Henderson <rth@redhat.com>
4133
4134 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4135 not overlapping PC_REGNUM.
4136
4137 2003-06-01 Richard Henderson <rth@redhat.com>
4138
4139 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4140 alpha_push_arguments. Don't dump argument register data to
4141 the target stack. Fix float and 128-bit long double semantics.
4142 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4143 (alpha_fix_call_dummy): Remove.
4144 (alpha_call_dummy_words): Remove.
4145 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4146
4147 2003-06-01 Richard Henderson <rth@redhat.com>
4148
4149 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4150
4151 2003-06-01 Andrew Cagney <cagney@redhat.com>
4152
4153 * mips-tdep.c (is_mips16_addr): New function.
4154 (make_mips16_addr, unmake_mips16_addr): New functions.
4155 (pc_is_mips16, mips_fetch_instruction): Use.
4156 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4157 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4158 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4159 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4160 TARGET_MIPS.
4161 * config/mips/tm-mips.h: Update copyright.
4162 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4163 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4164 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4165 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4166 (TM_PRINT_INSN_MACH): Delete.
4167 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4168
4169 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4170 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4171 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4172 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4173 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4174 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4175 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4176 mips*-*-riscos* and mips*-*-sysv* onto mips.
4177 * config/mips/mips64.mt: New file.
4178 * config/mips/mips.mt: New file.
4179 * config/mips/littlemips.mt: Delete file.
4180 * config/mips/decstation.mt: Delete file.
4181 * config/mips/vr4300el.mt: Delete file.
4182 * config/mips/vr5000el.mt: Delete file.
4183 * config/mips/vr5000.mt: Delete file.
4184 * config/mips/vr4100.mt: Delete file.
4185 * config/mips/vr4xxxel.mt: Delete file.
4186 * config/mips/vr4300.mt: Delete file.
4187 * config/mips/vr4xxx.mt: Delete file.
4188 * config/mips/bigmips.mt: Delete file.
4189 * config/mips/bigmips64.mt: Delete file.
4190 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4191 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4192 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4193 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4194 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4195 "tm-bigmips.h".
4196 * config/mips/tm-irix3.h: Ditto.
4197 * config/mips/tm-mipsv4.h: Ditto.
4198 * config/mips/tm-embed.h: Ditto.
4199 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4200 "tm-bigmips64.h".
4201 * config/mips/tm-vr5000el.h: Delete file.
4202 * config/mips/tm-tx39l.h: Delete file.
4203 * config/mips/tm-vr4300el.h: Delete file.
4204 * config/mips/tm-vr4xxxel.h: Delete file.
4205 * config/mips/tm-vr4300.h: Delete file.
4206 * config/mips/tm-vr4100.h: Delete file.
4207 * config/mips/tm-vr4xxx.h: Delete file.
4208 * config/mips/tm-vr5000.h: Delete file.
4209 * config/mips/tm-embedl64.h: Delete file.
4210 * config/mips/tm-embedl.h: Delete file.
4211 * config/mips/tm-embed64.h: Delete file.
4212 * config/mips/tm-bigmips64.h: Delete file.
4213 * config/mips/tm-bigmips.h: Delete file.
4214
4215 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4216
4217 Fix gdb/1216.
4218 * shnbsd-nat.c: Include "sh-tdep.h".
4219
4220 From Richard Henderson <rth@redhat.com>:
4221 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4222
4223 2003-05-31 Andrew Cagney <cagney@redhat.com>
4224
4225 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4226 forward declaration.
4227 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4228 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4229 (mips_find_saved_regs): Use set_reg_offset.
4230 (mips_frame_init_saved_regs): Delete function.
4231 (mips_pop_frame): Call mips_find_saved_regs instead of
4232 DEPRECATED_FRAME_INIT_SAVED_REGS.
4233
4234 2003-05-31 Andrew Cagney <cagney@redhat.com>
4235
4236 * mips-tdep.c (mips_gdbarch_init): Do not set
4237 deprecated_max_register_raw_size, register_virtual_size, and
4238 deprecated_max_register_virtual_size.
4239
4240 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4241
4242 * i386-tdep.c: Include "dwarf2-frame.h".
4243 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4244 * Makefile.in (i386-tdep.o): Update dependencies.
4245
4246 * dwarf2-frame.c, dwarf2-frame.h: New files.
4247 * Makefile.in (SFILES): Add dwarf2-frame.c.
4248 (dwarf2_frame_h): Define.
4249 (COMMON_OBS): Add dwarf2-frame.o.
4250 (dwarf2-frame.o): Add dependencies.
4251
4252 2003-05-31 Andreas Jaeger <aj@suse.de>
4253
4254 * x86-64-linux-nat.c: Fix comment.
4255
4256 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4257
4258 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4259 function signature.
4260
4261 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4262 have a sigcontext_addr handler.
4263 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4264 sigcontext_addr handler.
4265
4266 2003-05-31 Andrew Cagney <cagney@redhat.com>
4267
4268 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4269 (print_fp_register_row): Replace do_fp_register_row.
4270 (mips_print_fp_register): Add "file" and "frame" parameters.
4271 (mips_print_register): Add "file" and "frame" parameters.
4272 (mips_print_registers_info): Replace mips_do_registers_info.
4273 (mips_gdbarch_init): Set print_registers_info instead of
4274 deprecated_do_registers_info.
4275 (mips_read_fp_register_single): Add "frame" parameter.
4276 (mips_read_fp_register_double): Add "frame" parameter.
4277
4278 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4279
4280 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4281 Fixes a bug where GDB would print the wrong register names for
4282 targets without SSE.
4283
4284 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4285 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4286 registers.
4287
4288 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4289 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4290 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4291 TDEP->sc_sp_offset.
4292
4293 From Michal Ludvig <mludvig@suse.cz>:
4294 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4295 and `sc_num_regs'.
4296 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4297 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4298 I386_ST0_REGNUM): Move here from...
4299 * i386-tdep.c: ... here.
4300 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4301 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4302 registers if possible.
4303 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4304 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4305 Remove variables.
4306 (i386bsd_sc_reg_offset): New variable.
4307 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4308 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4309 TDEP->sc_sp_offset.
4310 (i386fbsd_sc_reg_offset): New variable.
4311 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4312 TDEP->sc_num_regs.
4313 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4314 variables.
4315 (i386fbsd4_sc_reg_offset): New variable.
4316 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4317 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4318 TDEP->sc_sp_offset.
4319 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4320 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4321 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4322 Remove variables.
4323 (i386nbsd_sc_reg_offset): New variable.
4324 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4325 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4326 TDEP->sc_sp_offset.
4327 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4328 Remove variables.
4329 (i386obsd_sc_reg_offset): New variable.
4330 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4331 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4332 TDEP->sc_sp_offset.
4333 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4334 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4335 for frame pointer offset in `struct sigcontext'.
4336
4337 2003-05-31 Andrew Cagney <cagney@redhat.com>
4338
4339 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4340 architecture methods call_dummy_words, sizeof_call_dummy_words,
4341 push_return_address, store_struct_return, and fix_call_dummy. Set
4342 push_dummy_call instead of deprecated_push_arguments.
4343 (mips_store_struct_return): Delete function.
4344 (mips_fix_call_dummy): Delete function.
4345 (mips_push_return_address): Delete function.
4346 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4347 RA_REGNUM and T9_REGNUM.
4348 (mips_n32n64_push_dummy_call): Ditto for
4349 mips_n32n64_push_arguments.
4350 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4351 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4352
4353 2003-05-31 Andrew Cagney <cagney@redhat.com>
4354
4355 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4356 "dummy_addr" to "bp_addr".
4357 * infcall.c (call_function_by_hand): Pass "funaddr" to
4358 gdbarch_push_dummy_call.
4359 * gdbarch.h, gdbarch.c: Re-generate.
4360 * i386-tdep.c (i386_push_dummy_call): Update.
4361 * arm-tdep.c (arm_push_dummy_call): Update.
4362 * d10v-tdep.c (d10v_push_dummy_call): Update.
4363
4364 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4365
4366 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4367 variable declarations.
4368 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4369 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4370 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4371 x86_64_init_frame_pc, x86_64_init_frame_pc,
4372 x86_64_function_has_prologue): Remove prototypes.
4373 (X86_64_NUM_GREGS): New define.
4374 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4375 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4376 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4377 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4378 XMM1_REGNUM): Remove defines.
4379 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4380 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4381 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4382 X86_64_XMM1_REGNUM): New defines.
4383 (struct x86_64_register_info): Renamed from `struct
4384 register_info'. Remove `size' member.
4385 (x86_64_register_info_table): Remove variable.
4386 (x86_64_register_info): New variable.
4387 (X86_64_NUM_REGS): New define.
4388 (X86_64_NUM_GREGS): Remove define.
4389 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4390 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4391 Remove variables.
4392 (x86_54_dwarf2_reg_to_regnum): Remove function.
4393 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4394 (x86_64_dwarf_reg_to_regnum): New function.
4395 (x86_64_register_name): Rewrite.
4396 (x86_64_register_raw_size): Remove function.
4397 (x86_64_register_byte_table): Remove variable.
4398 (x86_64_register_byte): Remove function.
4399 (x86_64_register_virtual_type): Remove function.
4400 (x86_64_register_type): New function.
4401 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4402 x86_64_register_convert_to_raw): Remove functions.
4403 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4404 (x86_64_use_struct_convention): Make static. Adjust for renamed
4405 defines.
4406 (x86_64_frame_init_saved_regs): Remove function.
4407 (x86_64_push_arguments): Make static. Change to accept a regcache
4408 as argument.
4409 (x86_64_store_return_value, x86_64_extract_return_value): Make
4410 static. Rewrite based on i386 counterparts.
4411 (x86_64_push_dummy_call): New function.
4412 (X86_64_NUM_SAVED_REGS): New define.
4413 (x86_64_register_number): Remove function.
4414 (x86_64_store_struct_return): Remove function.
4415 (x86_64_frameless_function_invocation,
4416 x86_64_function_has_prologue): Remove functions.
4417 (PROLOG_BUFSIZE): Remove define.
4418 (struct x86_64_frame_cache): New structure.
4419 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4420 x86_64_frame_cache, x86_64_frame_this_id,
4421 x86_64_frame_prev_register, x86_64_frame_p,
4422 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4423 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4424 functions.
4425 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4426 variables.
4427 (x86_64_skip_prologue): Rewrite in terms of
4428 x86_64_analyze_prologue.
4429 (x86_64_frame_base_address): New function.
4430 (x86_64_frame_base): New variable.
4431 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4432 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4433 set deprecated_fp_regnum, deprecated_register_size,
4434 deprecated_register_bytes, register_raw_size, register_byte,
4435 register_virtual_type, register_convertiable,
4436 register_convert_to_virtual, convert_to_raw,
4437 deprecated_get_saved_register, deprecated_target_read_fp,
4438 deprecated_push_arguments, deprecated_push_return_address,
4439 deprecated_pop_frame, deprecated_store_struct_return,
4440 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4441 frameless_function_invocation, deprecated_frame_saved_pc,
4442 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4443 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4444 deprecated_init_frame_pc and virtual_frame_pointer. Call
4445 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4446 and x86_64_frame_p. Call frame_base_set_default to register
4447 x86_64_frame_base.
4448 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4449 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4450 (_initialize_x86_64_tdep): Remove function.
4451 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4452 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4453 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4454 define.
4455 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4456 (x86_64_linux_sigcontext_addr): Rewrite.
4457 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4458 x86_64_linux_frame_saved_pc): Remove functions.
4459 (x86_64_linux_pc_in_sigtramp): Renamed from
4460 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4461 trampoline.
4462 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4463 Remove_functions.
4464 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4465 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4466 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4467 (x86_64_regmap): Rename to regmap.
4468 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4469 x86_64_num_gregs.
4470 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4471 x86_64_regmap.
4472 (x86_64_fxsave_offset): Remove function.
4473 (supply_fpregset): Simply call x86_64_supply_fxsave.
4474 (fill_fpregset): Simply call x86_64_fill_fxsave.
4475 (fetch_inferior_registers, store_inferior_registers): Avoid
4476 asignment in if-statement.
4477 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4478 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4479 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4480 (fetch_core_registers): Remove function.
4481 (linux_elf_core_fns): Remove.
4482 (offsetoff): Don't define.
4483 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4484 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4485 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4486 add core-regset.o.
4487 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4488 protection against multiple includes instead of NM_X86_64_h. Add
4489 various comments. Include "config/nm-linux.h". Don't include
4490 <signal.h>.
4491 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4492 GET_THREAD_SIGNALS): Remove defines.
4493 (x86_64_register_u_addr, kernel_u_size,
4494 lin_thread_get_thread_signals): Remove prototypes.
4495 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4496 [HAVE_LINK_H]: Don't include "solib.h".
4497 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4498 * config/i386/tm-x86-64linux.h: Fix comments.
4499 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4500 x86-64-tdep.o): Update dependencies.
4501
4502 2003-05-30 Andrew Cagney <cagney@redhat.com>
4503
4504 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4505 Change parameter type to a "struct regcache *".
4506
4507 * gdbarch.sh: Regardless of the multi-arch level, always define
4508 the macro when not already defined.
4509 * gdbarch.h, gdbarch.c: Re-generate.
4510
4511 2003-05-30 Richard Henderson <rth@redhat.com>
4512
4513 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4514 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4515 (alpha_mdebug_frame_this_id): Likewise.
4516 (alpha_mdebug_frame_prev_register): Likewise.
4517 (alpha_mdebug_frame_base_address): Likewise.
4518 (alpha_mdebug_frame_locals_address): Likewise.
4519 (alpha_mdebug_frame_args_address): Likewise.
4520 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4521 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4522 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4523 loop increment.
4524 (alpha_heuristic_frame_this_id): Make static.
4525 (alpha_heuristic_frame_prev_register): Likewise.
4526 (alpha_heuristic_frame_base_address): Likewise.
4527 * alpha-tdep.h: Update.
4528
4529 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4530
4531 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4532 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4533 defenitions.
4534 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4535 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4536 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4537 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4538 I386_ST0_REGNUM): New defines.
4539 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4540 codestream_get): Remove define.
4541 (codestream_next_addr, condestream_addr, condestream_buf,
4542 codestream_off, codestream_cnt): Remove variables.
4543 (codestream_fill, codestream_seek, codestream_read): Remove
4544 functions.
4545 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4546 functionality.
4547 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4548 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4549 i386_frame_saved_pc, i386_saved_pc_after_call,
4550 i386_frame_num_args, i386_frame_init_saved_regs,
4551 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4552 i386_push_arguments): Remove functions.
4553 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4554 functionality. Use i386_analyze_prologue instead of
4555 i386_get_frame_setup.
4556 (I386_NUM_SAVED_REGS): New define.
4557 (struct i386_frame_cache): New structure.
4558 (i386_alloc_frame_cache, i386_analyze_struct_return,
4559 i386_skip_probe, i386_analyze_frame_setup,
4560 i386_analyze_register_saves, i386_analyze_prologue,
4561 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4562 i386_frame_prev_register, i386_sigtramp_frame_cache,
4563 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4564 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4565 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4566 New functions.
4567 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4568 New variables.
4569 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4570 I386_EAX_REGNUM and I386_EDX_REGNUM.
4571 (i386_extract_return_value, i386_store_return_value): Use
4572 I386_ST0_REGNUM where appropriate.
4573 (i386_extract_struct_value_address): Rewrite to use extract_address.
4574 (i386_svr4_pc_in_sigtramp): Add comment.
4575 (i386_svr4_sigcontext_addr): Rewrite.
4576 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4577 TDEP->sc_sp_offset.
4578 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4579 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4580 of new defines. Set push_dummy_call, don't set
4581 deprecated_push_arguments, deprecated_push_return_address,
4582 deprecated_pop_frame. Don't set parm_boundary. Don't set
4583 deprecated_frame_chain, deprecated_frame_saved_pc,
4584 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4585 save_dummy_frame_tos, unwind_pc. Call
4586 frame_unwind_append_predicate and frame_base_set_default. Don't
4587 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4588 Don't set frameless_function_invocation. Don't set
4589 deprecated_register_bytes, deprecated_register_size,
4590 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4591 * i386-linux-tdep.c: Fix formatting in some comments.
4592 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4593 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4594 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4595 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4596 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4597 redundant parentheses.
4598 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4599 (i386_linux_sigcontext_addr): Use it. Rewrite.
4600 (find_minsym_and_objfile): Change name of second argument.
4601 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4602 changed. Use frame_pc_unwind instead of
4603 DEPRECATED_SAVED_PC_AFTER_CALL.
4604 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4605 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4606 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4607 unwinder.
4608 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4609 "dummy-frame.h".
4610 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4611 (_initialize_i386_cygwin_tdep): New prototype.
4612 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4613 deprecated_frame_chain_valid.
4614 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4615 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4616 Rely on the SVR4 defaults.
4617 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4618 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4619
4620 2003-05-30 Andrew Cagney <cagney@redhat.com>
4621
4622 * infcall.c (call_function_by_hand): Always call
4623 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4624
4625 2003-05-30 Richard Henderson <rth@redhat.com>
4626
4627 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4628 increment.
4629
4630 2003-05-29 Jim Blandy <jimb@redhat.com>
4631
4632 Use gdbarch methods for solib stuff on PowerPC Linux.
4633 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4634 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4635 show through.
4636 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4637 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4638 giving the same effect as the #definitions above.
4639
4640 2003-05-29 Adam Fedor <fedor@gnu.org>
4641
4642 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4643 (find_implementation_from_class): Replace it with the standard
4644 case i.e. do nothing.
4645
4646 2003-05-29 Richard Henderson <rth@redhat.com>
4647
4648 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4649 (alpha_linux_sigtramp_offset): Use it. Make static.
4650 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4651 update for new frame model.
4652 * alpha-mdebug-tdep.c: New file.
4653 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4654 (alpha_osf1_init_abi): Install it.
4655 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4656 (linked_proc_desc_table): Remove.
4657 (alpha_frame_past_sigtramp_frame): Remove.
4658 (alpha_dynamic_sigtramp_offset): Remove.
4659 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4660 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4661 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4662 (push_sigtramp_desc): Remove.
4663 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4664 (alpha_cannot_store_register): Likewise.
4665 (alpha_sigcontext_addr): Remove.
4666 (alpha_find_saved_regs): Remove.
4667 (alpha_frame_init_saved_regs): Remove.
4668 (alpha_init_frame_pc_first): Remove.
4669 (read_next_frame_reg): Remove.
4670 (alpha_frame_saved_pc): Remove.
4671 (alpha_saved_pc_after_call): Remove.
4672 (temp_proc_desc, temp_saved_regs): Remove.
4673 (alpha_about_to_return): Remove.
4674 (cached_proc_desc): Remove.
4675 (alpha_frame_chain): Remove.
4676 (alpha_print_extra_frame_info): Remove.
4677 (alpha_init_extra_frame_info): Remove.
4678 (alpha_frame_locals_address): Remove.
4679 (alpha_frame_args_address): Remove.
4680 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4681 (alpha_push_dummy_frame): Remove.
4682 (alpha_pop_frame): Remove.
4683 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4684 (alpha_read_insn): New.
4685 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4686 for different insn encodings.
4687 (alpha_in_lenient_prologue): Remove.
4688 (struct alpha_sigtramp_unwind_cache): New.
4689 (alpha_sigtramp_frame_unwind_cache): New.
4690 (alpha_sigtramp_register_address): New.
4691 (alpha_sigtramp_frame_this_id): New.
4692 (alpha_sigtramp_frame_prev_register): New.
4693 (alpha_sigtramp_frame_unwind): New.
4694 (alpha_sigtramp_frame_p): New.
4695 (struct alpha_heuristic_unwind_cache): New.
4696 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4697 don't count nop insns that occur between functions.
4698 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4699 heuristic_proc_desc, but without the mdebug wrapping.
4700 (alpha_heuristic_frame_this_id): New.
4701 (alpha_heuristic_frame_prev_register): New.
4702 (alpha_heuristic_frame_unwind): New.
4703 (alpha_heuristic_frame_p): New.
4704 (alpha_heuristic_frame_base_address): New.
4705 (alpha_heuristic_frame_base): New.
4706 (alpha_unwind_dummy_id): New.
4707 (alpha_unwind_pc): New.
4708 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4709 frame related deprecated initializations; install replacements.
4710 (alpha_dump_tdep): Remove.
4711 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4712 (alpha_read_insn, alpha_after_prologue,
4713 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4714 alpha_heuristic_frame_prev_register,
4715 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4716 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4717 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4718 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4719
4720 2003-05-29 Andrew Cagney <cagney@redhat.com>
4721
4722 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4723 dependant on the availability of ASSERT_FUNCTION.
4724 (ASSERT_FUNCTION): Do not define when there is no function name.
4725
4726 2003-05-29 Kevin Buettner <kevinb@redhat.com>
4727
4728 From Jimi X <jimix@watson.ibm.com>:
4729 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4730
4731 2003-05-28 Jim Blandy <jimb@redhat.com>
4732
4733 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4734 argument to ptrace to int; the system headers should give it the
4735 right type, and pointers don't fit in ints on powerpc64-*-*.
4736
4737 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4738
4739 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4740 DW_TAG_catch_block.
4741
4742 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4743
4744 * stabsread.c (dbx_lookup_type): Make static.
4745 (read_type): Ditto.
4746 (add_undefined_type): Ditto.
4747 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4748 not export.
4749
4750 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4751
4752 * hpread.c (hpread_has_name): Make static.
4753 (hpread_psymtab_to_symtab): Ditto.
4754 (file_exists): Ditto.
4755 (hpread_call_pxdb): Ditto.
4756 (hpread_pxdb_needed): Ditto.
4757 (hpread_quick_traverse): Ditto.
4758 (hpread_get_header): Ditto.
4759 (hpread_get_lntt): Ditto.
4760 (hpread_get_slt): Ditto.
4761 (class_of): Ditto.
4762
4763 2003-05-25 Andreas Schwab <schwab@suse.de>
4764
4765 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4766 stack_align and deprecated_extra_stack_alignment_needed.
4767 (m68k_stack_align): Delete.
4768
4769 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4770 (m68k_register_virtual_size): Likewise.
4771 (altos_skip_prologue): Remove obsolete function.
4772 (isi_frame_num_args): Likewise.
4773 (news_frame_num_args): Likewise.
4774 (m68k_fix_call_dummy): Make static.
4775 (m68k_push_dummy_frame): Likewise.
4776 (m68k_pop_frame): Likewise.
4777 (m68k_skip_prologue): Likewise.
4778 (m68k_frame_init_saved_regs): Likewise.
4779 (m68k_saved_pc_after_call): Likewise.
4780 (m68k_get_longjmp_target): Make multi-arch.
4781 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4782 structure. Register m68k_get_longjmp_target if enabled.
4783 * m68k-tdep.h (struct gdbarch_tdep): Define.
4784 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4785
4786 * Makefile.in (config.status): Also depend on configure.tgt
4787 and configure.host.
4788 (m68klinux-tdep.o): Update dependencies.
4789 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4790 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4791 (M68K_LINUX_JB_PC): Define.
4792 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4793 and take additional parameter.
4794 (m68k_linux_sigtramp_saved_pc): Update.
4795 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4796 m68k_linux_pc_in_sigtramp, in_plt_section,
4797 find_solib_trampoline_target.
4798 * config/m68k/tm-linux.h: Don't include any tm headers.
4799 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4800 (JB_ELEMENT_SIZE): Likewise.
4801 (JB_PC): Likewise.
4802 (GET_LONGJMP_TARGET): Likewise.
4803 (IN_SIGTRAMP): Likewise.
4804 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4805
4806 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4807
4808 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4809 (sparc32_push_arguments): Re-implement by calling
4810 sparc32_do_push_arguments.
4811
4812 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4813
4814 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4815 SPARC_O1_REGNUM): New defines.
4816 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4817 (sparc32_store_return_value): New function.
4818 (sparc_extract_struct_value_address): Rewrite to operate on a
4819 regcache.
4820 (sparc_gdbarch_init): Don't set
4821 deprecated_extract_struct_value_address. Set
4822 extract_struct_value_address instead. Don't set
4823 deprecated_extract_return_value and deprecated_store_return_value
4824 for 32-bit targets. Set extract_return_value and
4825 store_return_value instead.
4826 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4827 DEPRECTAED_EXTRACT_RETURN_VALUE,
4828 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4829 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4830 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4831 (sparc_store_return_value): Remove prototype.
4832 (sparc32_store_return_value): New prototype.
4833 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4834 Adjust prototypes.
4835
4836 2003-05-24 Mark Kettenis <kettenis@gnu.org>
4837
4838 * sparcnbsd-tdep.c: Include "gdb_string.h".
4839
4840 2003-05-23 Andrew Cagney <cagney@redhat.com>
4841
4842 * p-valprint.c (pascal_val_print): Replace extract_address with
4843 the inline equivalent extract_unsigned_integer.
4844 * jv-valprint.c (java_value_print): Ditto.
4845 * ada-valprint.c (ada_val_print_1): Ditto.
4846 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4847
4848 2003-05-23 Theodore A. Roth <troth@openavr.org>
4849
4850 * blockframe.c (frameless_look_for_prologue): Remove unused
4851 after_prologue variable.
4852
4853 2003-05-23 Mark Kettenis <kettenis@gnu.org>
4854
4855 * blockframe.c (get_pc_function_start): Rewrite to avoid
4856 asignments in if-statements.
4857
4858 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4859
4860 Committed by Elena Zannoni <ezannoni@redhat.com>.
4861 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4862 files, don't relocate absolute symbols (and do use mst_abs).
4863
4864 2003-05-23 Andrew Cagney <cagney@redhat.com>
4865
4866 * objc-lang.c: Include "gdb_assert.h".
4867 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4868 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4869 (gdb_check, gdb_check_fatal): Delete functions.
4870 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4871 gdb_assert.
4872 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4873 * Makefile.in (objc-lang.o): Update dependencies.
4874
4875 2003-05-22 Ian Lance Taylor <ian@airs.com>
4876
4877 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4878 with fprintf_filtered, not fprintf_unfiltered.
4879
4880 2003-05-22 Andrew Cagney <cagney@redhat.com>
4881
4882 * stack.c (frame_info): Inline extract_address, replacing it with
4883 extract_unsigned_integer.
4884 * findvar.c (unsigned_pointer_to_address): Ditto.
4885 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4886 * dwarf2expr.c (dwarf2_read_address): Ditto.
4887 * frame.c (frame_pc_unwind): Update comment.
4888 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4889
4890 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4891
4892 * infptrace.c (detach): Call print_sys_errmsg rather than
4893 perror_with_name to issue warning message when errno is non-zero
4894 after calling ptrace detach.
4895
4896 2003-05-21 J. Brobecker <brobecker@gnat.com>
4897
4898 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4899 macro definitions from here...
4900 * hppa-tdep.c: ...to there.
4901
4902 2003-05-20 Kevin Buettner <kevinb@redhat.com>
4903
4904 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4905 register_ptrace_addr(). Fix all callers.
4906
4907 2003-05-21 Andreas Schwab <schwab@suse.de>
4908
4909 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4910 dependencies.
4911 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4912 end.
4913 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4914 (_initialize_m68k_linux_tdep): New function.
4915 (m68k_linux_frame_saved_pc): Make static.
4916 (m68k_linux_extract_return_value): Likewise.
4917 (m68k_linux_store_return_value): Likewise.
4918 (m68k_linux_extract_struct_value_address): Likewise.
4919 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4920 Remove.
4921 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4922 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4923 (DEPRECATED_FRAME_SAVED_PC): Remove.
4924
4925 2003-05-20 Kris Warkentin <kewarken@qnx.com>
4926
4927 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4928 regset numbering rather than our own.
4929
4930 2003-05-19 David Carlton <carlton@bactrian.org>
4931
4932 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4933
4934 2003-05-19 David Carlton <carlton@bactrian.org>
4935
4936 Partial fix for PR c++/827.
4937 * cp-support.h: Include symtab.h.
4938 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4939 * cp-namespace.c: Update contributors.
4940 (cp_lookup_symbol_nonlocal): New.
4941 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4942 (lookup_symbol_file): Ditto.
4943 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4944 * block.h: Declare block_scope, block_using, block_global_block.
4945 * block.c (block_scope): New.
4946 (block_using, block_global_block): Ditto.
4947 * Makefile.in (cp_support_h): Depend on symtab_h.
4948 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4949
4950 2003-05-19 David Carlton <carlton@bactrian.org>
4951
4952 * language.h (struct language_defn): Add 'la_value_of_this'
4953 and 'la_lookup_symbol_nonlocal' members.
4954 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4955 lookup_symbol_static, lookup_symbol_global,
4956 lookup_symbol_aux_block.
4957 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4958 if we should search fields of this and how to do static/global
4959 lookup.
4960 (lookup_symbol_aux_block): Make extern.
4961 (basic_lookup_symbol_nonlocal): New.
4962 (lookup_symbol_static, lookup_symbol_global): Ditto.
4963 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4964 'la_lookup_symbol_nonlocal' members.
4965 * c-lang.c (c_language_defn, cplus_language_defn)
4966 (asm_language_defn, minimal_language_defn): Ditto.
4967 * jv-lang.c (java_language_defn): Ditto.
4968 * language.c (unknown_language_defn, auto_language_defn)
4969 (local_language_defn): Ditto.
4970 * m2-lang.c (m2_language_defn): Ditto.
4971 * objc-lang.c (objc_language_defn): Ditto.
4972 * scm-lang.c (scm_language_defn): Ditto.
4973 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4974 * p-lang.c (pascal_language_defn): Ditto for both.
4975 * Makefile.in (f-lang.o): Depend on value_h.
4976 (p-lang.o): Ditto.
4977
4978 2003-05-19 David Carlton <carlton@bactrian.org>
4979
4980 * block.h: Declare block_static_block.
4981 * block.c (block_static_block): New.
4982 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4983 lookup_symbol_aux_local, calling block_static_block instead.
4984 (lookup_symbol_aux_local): Delete 'static_block' argument.
4985
4986 2003-05-19 David Carlton <carlton@bactrian.org>
4987
4988 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4989
4990 2003-05-19 Michal Ludvig <mludvig@suse.cz>
4991
4992 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4993 register numbers mapping.
4994
4995 2003-05-18 Adam Fedor <fedor@gnu.org>
4996
4997 * symtab.c (completion_list_objc_symbol): New function.
4998 (make_symbol_completion_list): Use it to add ObjC symbols
4999 when looking though the list.
5000 (language_search_unquoted_string): New function.
5001 (make_file_symbol_completion_list): Use it.
5002
5003 2003-05-18 Andreas Schwab <schwab@suse.de>
5004
5005 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5006 dependencies.
5007 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5008 as m68k_linux_extract_return_value.
5009 (DEPRECATED_STORE_RETURN_VALUE): Define as
5010 m68k_linux_store_return_value.
5011 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5012 m68k_linux_extract_struct_value_address.
5013 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5014 get_next_frame, get_frame_base, get_frame_pc.
5015 (m68k_linux_frame_saved_pc): Use get_frame_base.
5016 (m68k_linux_extract_return_value): New function.
5017 (m68k_linux_store_return_value): New function.
5018 (m68k_linux_extract_struct_value_address): New function.
5019 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5020
5021 * c-exp.y (typebase): Remove duplicate occurence of
5022 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5023 of lookup_signed_typename.
5024
5025 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5026
5027 * dwarf2loc.c (find_location_expression): Change type of second
5028 argument to `size_t *'.
5029 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5030 for size variable.
5031
5032 2003-05-18 David Carlton <carlton@bactrian.org>
5033
5034 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5035 'linkage_name'. Add comment.
5036 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5037 'linkage_name'.
5038 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5039 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5040 (lookup_block_symbol): Ditto.
5041
5042 2003-05-16 Andrew Cagney <cagney@redhat.com>
5043
5044 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5045 * gdbarch.h, gdbarch.c: Re-generate.
5046 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5047 * TODO (REGISTER_BYTES): Delete reference.
5048 * alpha-tdep.c (alpha_gdbarch_init): Update.
5049 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5050 * x86-64-tdep.c (x86_64_init_abi): Update.
5051 * vax-tdep.c (vax_gdbarch_init): Update.
5052 * v850-tdep.c (v850_gdbarch_init): Update.
5053 * sparc-tdep.c (sparc_gdbarch_init): Update.
5054 * sh-tdep.c (sh_gdbarch_init): Update.
5055 * s390-tdep.c (s390_gdbarch_init): Update.
5056 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5057 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5058 (ns32k_gdbarch_init_32382): Update.
5059 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5060 * mcore-tdep.c (mcore_gdbarch_init): Update.
5061 * m68k-tdep.c (m68k_gdbarch_init): Update.
5062 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5063 * ia64-tdep.c (ia64_gdbarch_init): Update.
5064 * i386-tdep.c (i386_gdbarch_init): Update.
5065 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5066 * hppa-tdep.c (hppa_gdbarch_init): Update.
5067 * h8300-tdep.c (h8300_gdbarch_init): Update.
5068 * frv-tdep.c (frv_gdbarch_init): Update.
5069 * cris-tdep.c (cris_gdbarch_init): Update.
5070 * avr-tdep.c (avr_gdbarch_init): Update.
5071 * arm-tdep.c (arm_gdbarch_init): Update.
5072 * sparc-tdep.c (sparc_pop_frame): Update.
5073 * rs6000-tdep.c (rs6000_pop_frame): Update.
5074 * remote.c (init_remote_state): Update.
5075 (remote_prepare_to_store): Update.
5076 * remote-vx.c (vx_prepare_to_store): Update.
5077 * remote-sds.c (sds_fetch_registers): Update.
5078 (sds_prepare_to_store): Update.
5079 * remote-array.c: Update.
5080 * regcache.c (init_legacy_regcache_descr): Update.
5081 (init_regcache_descr): Update.
5082 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5083 (mips_o64_extract_return_value): Update.
5084 * irix5-nat.c (fetch_core_registers): Update.
5085 * irix4-nat.c (fetch_core_registers): Update.
5086 * i386-tdep.h: Update.
5087 * hppa-tdep.c (pa_do_registers_info): Update.
5088 (pa_do_strcat_registers_info): Update.
5089 * cris-tdep.c (cris_register_bytes_ok): Update.
5090 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5091 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5092 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5093 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5094 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5095 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5096 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5097 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5098 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5099 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5100 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5101 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5102 (REGISTER_BYTES_OK): Update.
5103 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5104 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5105
5106 2003-05-16 Ian Lance Taylor <ian@airs.com>
5107
5108 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5109 (vax_print_insn, print_insn_arg): Remove static functions.
5110 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5111 print_insn_vax from opcodes library.
5112 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5113
5114 2003-05-15 Andrew Cagney <cagney@redhat.com>
5115
5116 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5117 * target.h (memory_breakpoint_from_pc): Delete declaration.
5118 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5119 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5120 * monitor.c (monitor_insert_breakpoint): Use
5121 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5122 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5123 * gdbarch.h, gdbarch.c: Re-generate.
5124 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5125 (sparc_gdbarch_init): Set breakpoint_from_pc to
5126 sparc_breakpoint_from_pc.
5127 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5128 (BREAKPOINT_FROM_PC): Define.
5129 (sparc_breakpoint_from_pc): Declare.
5130 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5131 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5132 (BREAKPOINT_FROM_PC): Define.
5133 (BREAKPOINT): Delete macro.
5134 * target.h: Update comment.
5135 * s390-tdep.c (s390_gdbarch_init): Update comments.
5136 * remote.c: Update comments.
5137 * remote-mips.c: Update comments.
5138 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5139 * mem-break.c: Update comment.
5140 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5141 (ia64_memory_insert_breakpoint): Update.
5142 * config/sparc/tm-sparc.h: Update comment.
5143 * config/pa/tm-hppa64.h: Update comment.
5144 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5145 (rs6000_breakpoint_from_pc): Update.
5146 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5147 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5148 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5149 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5150 (mips_breakpoint_from_pc): Update.
5151 (mips_dump_tdep): Update.
5152
5153 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5154 * minsyms.c (lookup_minimal_symbol): Inline
5155 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5156
5157 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5158 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5159 * p-lang.c (pascal_printstr): Ditto.
5160 * objc-lang.c (objc_printstr): Ditto.
5161 * m2-lang.c (m2_printstr): Ditto.
5162 * jv-valprint.c (java_print_value_fields): Ditto.
5163 * f-lang.c (f_printstr): Ditto.
5164 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5165 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5166 for repeat_count_threshold.
5167 * Makefile.in (cp-valprint.o): Update dependencies.
5168
5169 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
5170
5171 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5172 (examine_prologue): Support looking through leaf functions, knowing
5173 they start with mov r2,r12. Support skipping over indirect stores
5174 of the input registers. Upon hitting a non-nop branch instruction
5175 or predicated instruction, bail out by setting lim_pc to the current
5176 pc value in the loop. At the end, if the lim_pc value is still
5177 beyond our calculated value and we have trust_limit set,
5178 use the lim_pc value.
5179
5180 2003-05-15 Andrew Cagney <cagney@redhat.com>
5181
5182 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5183 generic_find_dummy_frame.
5184 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5185 (deprecated_generic_find_dummy_frame): Update.
5186 (deprecated_read_register_dummy): Update.
5187 * frame.c (deprecated_generic_get_saved_register): Update.
5188
5189 2003-05-15 Theodore A. Roth <troth@openavr.org>
5190
5191 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5192 (avr_gdbarch_init): Set breakpoint_from_pc method.
5193
5194 2003-05-15 Andrew Cagney <cagney@redhat.com>
5195
5196 * regcache.c (build_regcache): Set deprecated_register_valid
5197 directly.
5198 (deprecated_grub_regcache_for_register_valid): Delete function.
5199 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5200 declaration.
5201
5202 2003-05-15 David Carlton <carlton@bactrian.org>
5203
5204 Committed by Elena Zannoni <ezannoni@redhat.com>
5205 * symtab.c (lookup_symbol_aux): Delete calls to
5206 lookup_symbol_aux_minsyms.
5207 (lookup_symbol_aux_minsyms): Comment out function and
5208 prototype. Delete lookup by mangled name.
5209
5210 2003-05-14 Kevin Buettner <kevinb@redhat.com>
5211
5212 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5213 correctly indicate an empty stack and ``stack_allocated'' to the
5214 indicate the number of elements initially allocated.
5215 (dwarf_expr_grow_stack): Simplify method for computing new
5216 stack size. Don't loop infinitely if ``stack_len'' is zero.
5217 (execute_stack_op): Move ``ctx->in_reg'' initialization
5218 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5219 be used in conjuction with DW_OP_piece. Revise error message
5220 accordingly.
5221
5222 2003-05-14 Theodore A. Roth <troth@openavr.org>
5223
5224 * MAINTAINERS: Update my email address.
5225 * avr-tdep.c: Ditto.
5226
5227 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
5228
5229 * symtab.h (enum domain_enum): Rename from namespace_enum.
5230 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5231 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5232 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5233 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5234 TYPES_NAMESPACE, METHODS_NAMESPACE.
5235 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5236 (struct symbol, struct partial_symbol): Rename field
5237 'namespace_enum namespace' to 'domain_enum domain'.
5238 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5239 Delete old define kludge for namespace.
5240
5241 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5242 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5243 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5244 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5245 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5246 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5247 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5248 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5249 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5250 occurrences of the above.
5251
5252 2003-05-14 Ian Lance Taylor <ian@airs.com>
5253
5254 * Makefile.in (install-only): Use $(SHELL) when running
5255 mkinstalldirs.
5256
5257 2003-05-13 Ian Lance Taylor <ian@airs.com>
5258
5259 * MAINTAINERS (write after approval): Add myself.
5260
5261 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5262 second and third arguments.
5263 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5264 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5265
5266 2003-05-13 Andrew Cagney <cagney@redhat.com>
5267
5268 * defs.h (store_address): Delete declaration.
5269 findvar.c (store_address): Delete function.
5270 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5271 store_unsigned_integer.
5272 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5273 * v850-tdep.c (v850_push_arguments): Ditto.
5274 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5275 * sh-tdep.c (sh64_get_saved_register): Ditto.
5276 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5277 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5278 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5279 (mips_get_saved_register): Ditto.
5280 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5281 (find_func_descr, ia64_push_arguments): Ditto.
5282 * i386-tdep.c (i386_push_arguments): Ditto.
5283 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5284 * frv-tdep.c (frv_push_arguments): Ditto.
5285 * frame.c (legacy_saved_regs_prev_register): Ditto.
5286 (deprecated_generic_get_saved_register): Ditto.
5287 * findvar.c (unsigned_address_to_pointer): Ditto.
5288 * dwarf2read.c (dwarf2_const_value): Ditto.
5289 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5290 * alpha-tdep.c (alpha_push_arguments): Ditto.
5291
5292 2003-05-12 J. Brobecker <brobecker@gnat.com>
5293
5294 * NEWS: Mention that the hppa-hpux port has been partially
5295 multiarched (32bit ABIT only, so far).
5296
5297 2003-05-11 Andrew Cagney <cagney@redhat.com>
5298
5299 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5300 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5301 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5302 sim/testsuite/sim/arm/misaligned2.ms, and
5303 sim/testsuite/sim/arm/misaligned3.ms.
5304 * disasm.h (struct ui_file): Add opaque struct declaration.
5305 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5306 * frame.h (struct ui_file): Ditto.
5307
5308 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5309
5310 * value.h: Pretty print.
5311
5312 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5313
5314 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5315
5316 2003-05-08 Andrew Cagney <cagney@redhat.com>
5317
5318 * regcache.h (max_register_size): Delete declaration.
5319 * regcache.c (max_register_size): Delete function.
5320 (struct regcache_descr): Delete field "max_register_size".
5321 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5322 registers fit in MAX_REGISTER_SIZE.
5323 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5324 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5325 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5326 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5327 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5328 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5329 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5330 * dve3900-rom.c, hppa-tdep.c: Ditto.
5331
5332 2003-05-08 David Carlton <carlton@math.stanford.edu>
5333
5334 * valops.c (push_word): Fix typo.
5335
5336 2003-05-08 Andrew Cagney <cagney@redhat.com>
5337
5338 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5339 * gdbarch.h: Re-generate.
5340 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5341 (legacy_max_register_raw_size): Delete declaration.
5342 * regcache.c (legacy_max_register_raw_size): Delete function.
5343 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5344 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5345 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5346 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5347 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5348 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5349 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5350 * findvar.c, dwarf2cfi.c: Ditto.
5351
5352 2003-05-08 Andrew Cagney <cagney@redhat.com>
5353
5354 * mips-tdep.c (read_signed_register): New function, moved to here
5355 from "regcache.c".
5356 (read_signed_register_pid): Ditto.
5357 * regcache.c (read_signed_register_pid): Delete function, moved to
5358 "mips-tdep.c".
5359 (read_signed_register): Ditto.
5360 * regcache.h (read_signed_register): Delete declaration.
5361 (read_signed_register_pid): Delete declaration.
5362
5363 2003-05-08 Andrew Cagney <cagney@redhat.com>
5364
5365 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5366 * gdbarch.h: Re-generate.
5367 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5368 (legacy_max_register_virtual_size): Delete declaration.
5369 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5370 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5371 * tracepoint.c (memrange_sortmerge): Ditto.
5372 * sparc-tdep.c (sparc_print_registers): Ditto.
5373 * regcache.c (legacy_max_register_virtual_size): Delete function.
5374
5375 2002-05-08 J. Brobecker <brobecker@gnat.com>
5376
5377 * fork-child.c (escape_bang_in_quoted_argument): New function.
5378 (fork_inferior): Escape '!' characters in quoted arguments
5379 only when needed.
5380
5381 2003-05-08 J. Brobecker <brobecker@gnat.com>
5382
5383 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5384 the language of the CU is not currently supported by GDB.
5385
5386 2003-05-08 J. Brobecker <brobecker@gnat.com>
5387
5388 * defs.h (language): Add language_minimal enum value.
5389 * c-lang.c (minimal_language_defn): New language definition.
5390 (_initialize_c_language): Add the new minimal language to the list
5391 of languages known to GDB.
5392
5393 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5394
5395 * frame.c (get_frame_type): Don't attempt to lazily initialize
5396 frame's unwinder for legacy frames.
5397
5398 2003-05-07 Andrew Cagney <cagney@redhat.com>
5399
5400 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5401 and "regcache" parameters.
5402 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5403
5404 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5405
5406 * dwarf2read.c (dwarf_decode_lines): Only use output of
5407 check_cu_functions() when calling record_line(). Do not update
5408 the current address.
5409
5410 2003-05-07 Andrew Cagney <cagney@redhat.com>
5411
5412 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5413 code.
5414
5415 2003-05-07 Jim Blandy <jimb@redhat.com>
5416
5417 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5418 'maint info symtabs' and 'maint info psymtabs'.
5419 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5420 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5421 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5422 Declarations updated.
5423 * maint.c (maintenance_list_command): Delete.
5424 (_initialize_maint_cmds): Update calls to add_cmd.
5425 * gdbcmd.h (maintenancelistlist): Delete declaration.
5426 * cli/cli-cmds.c (maintenancelistlist): Delete.
5427 (init_cmd_lists): Don't initialize it.
5428 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5429
5430 2003-05-07 Andrew Cagney <cagney@redhat.com>
5431
5432 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5433 "regcache".
5434 (d10v_print_registers_info): Update.
5435 (d10v_dmap_register, d10v_imap_register): Delete functions.
5436 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5437 and "imap_register".
5438 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5439 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5440 * arch-utils.c (generic_remote_translate_xfer_address): Add
5441 "regcache" and "gdbarch" parameters.
5442 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5443 parameter. Change class to multi-arch.
5444 * gdbarch.h, gdbarch.c: Re-generate.
5445 * remote.c (remote_xfer_memory): Use
5446 gdbarch_remote_translate_xfer_address.
5447
5448 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5449
5450 * infrun.c (prev_pc): Move declaration ahead of proceed().
5451 (proceed): Refresh prev_pc value before resuming.
5452 (stop_stepping): Remove code to refresh prev_pc.
5453
5454 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5455
5456 * nto-tdep.c: Removed stray comment.
5457
5458 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5459
5460 * i386-nto-tdep.c: Fix old K&R function definitions.
5461 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5462 Also change add_show_from_set() call to add_setshow_cmd().
5463 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5464
5465 2003-05-05 Andrew Cagney <cagney@redhat.com>
5466
5467 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5468 (fprint_dummy_frames): New function.
5469 (maintenance_print_dummy_frames): New function.
5470 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5471 * frame.c (fprint_frame_id): Make global.
5472 * frame.h (fprint_frame_id): Declare.
5473 * Makefile.in (dummy-frame.o): Update dependencies.
5474
5475 2003-05-05 Andrew Cagney <cagney@redhat.com>
5476
5477 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5478 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5479 SIZEOF_CALL_DUMMY_WORDS.
5480 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5481 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5482 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5483 CALL_DUMMY_BREAKPOINT_OFFSET.
5484 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5485 CALL_DUMMY_START_OFFSET.
5486 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5487 * gdbarch.h, gdbarch.c: Re-generate.
5488 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5489 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5490 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5491 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5492 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5493 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5494 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5495 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5496 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5497 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5498 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5499 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5500 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5501 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5502 * config/sparc/tm-sparc.h: Update.
5503
5504 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5505
5506 * configure.tgt: Add i[3456]86-*-nto*.
5507 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5508 * nto-tdep.c: New file. Neutrino target support routines.
5509 * nto-tdep.h: New file. Neutrino target header.
5510 * config/tm-qnxnto.h: New file.
5511 * config/i386/i386nto.mt: New file.
5512 * config/i386/tm-i386nto.h: New file.
5513
5514 2003-05-04 Andrew Cagney <cagney@redhat.com>
5515
5516 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5517 (load_infrun_state): Ditto.
5518 (struct thread_info): Drop "prev_func_name" field.
5519 * thread.c (load_infrun_state): Update.
5520 (save_infrun_state): Update.
5521 * infrun.c (prev_func_name): Delete variable.
5522 (init_wait_for_inferior): Do not clear prev_func_name.
5523 (stop_stepping, keep_going, context_switch): Do not swap
5524 prev_func_name.
5525 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5526 instead of PC_IN_SIGTRAMP.
5527
5528 2003-05-04 Andrew Cagney <cagney@redhat.com>
5529
5530 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5531 REGISTER_BYTE with register_offset_hack.
5532 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5533 that REGISTER_BYTE is consistent with the regcache.
5534 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5535 * gdbarch.h, gdbarch.c: Regenerate.
5536
5537 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5538
5539 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5540 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5541
5542 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5543
5544 2003-05-03 J. Brobecker <brobecker@gnat.com>
5545
5546 From Thierry Schneider <tpschneider1@yahoo.com>
5547 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5548 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5549 (mi-cmd-symbol.o): Add rule.
5550
5551 2003-05-03 Andrew Cagney <cagney@redhat.com>
5552
5553 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5554 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5555 * gdbarch.h, gdbarch.c: Re-generate.
5556 * d10v-tdep.c (d10v_push_dummy_code): New function.
5557 (d10v_gdbarch_init): Set push_dummy_code.
5558 * infcall.c (legacy_push_dummy_code): New function.
5559 (generic_push_dummy_code): New function.
5560 (push_dummy_code): New function.
5561 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5562 instead of dummy_addr, to push_dummy_call. Move call to
5563 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5564 switch.
5565 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5566
5567 2003-05-03 Andrew Cagney <cagney@redhat.com>
5568
5569 * disasm.h (print_insn): Declare.
5570 * disasm.c (init_gdb_disassemble_info): New function.
5571 (gdb_disassembly): Call init_gdb_disassemble_info.
5572 (gdb_print_insn): New function.
5573 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5574 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5575 * mcore-tdep.c: Include "disasm.h"
5576 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5577 * d10v-tdep.c: Include "disasm.h".
5578 (display_trace): Call gdb_print_insn, instead of print_insn.
5579 (print_insn): Delete function.
5580 * printcmd.c: Include "disasm.h".
5581 (print_insn): Delete function.
5582 (print_formatted): Call gdb_print_insn, instead of print_insn.
5583 * Makefile.in (printcmd.o): Update dependencies.
5584 (mcore-tdep.o, d10v-tdep.o): Ditto.
5585
5586 2003-05-02 Andrew Cagney <cagney@redhat.com>
5587
5588 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5589 PC_REGNUM, re-indent.
5590 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5591 PC_REGNUM isn't set.
5592
5593 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5594 * gdbarch.h, gdbarch.c: Re-generate.
5595 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5596 register_virtual_size, pc_regnum, or register_bytes.
5597 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5598 (d10v_register_type): Use D10V_PC_REGNUM.
5599 (d10v_print_registers_info, d10v_read_pc): Ditto.
5600 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5601 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5602
5603 2003-05-02 David Carlton <carlton@bactrian.org>
5604
5605 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5606 the name with mstrsave.
5607
5608 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5609
5610 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5611 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5612 (host_charset_name, target_charset_name): New vars for use by
5613 set/show commands.
5614 (host_charset_enum, target_charset_enum): New enums for set/show
5615 commands.
5616 (set_charset_sfunc, set_host_charset_sfunc,
5617 set_target_charset_sfunc): New functions.
5618 (set_host_charset, set_target_charset): Make static.
5619 (list_charsets, set_host_charset_command,
5620 set_target_charset_command): Delete functions.
5621 (show_charset_command): Rewrite as....
5622 (show_charset): Hook this up with the set/show command mechanism.
5623 (_initialize_charset): Change names of charsets to match the
5624 set/show enums. Use host_charset_name and target_charset_name.
5625 Use set/show mechanism for charset, host-charset, target-charset
5626 commands. Do not make 'show host-charset' and 'show
5627 target-charset' be aliases of 'show charset'.
5628
5629 * charset.h (set_host_charset, set_target_charset): Don't export,
5630 they are not used outside the file.
5631
5632 2003-05-01 Andrew Cagney <cagney@redhat.com>
5633
5634 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5635 (gdb_disassembly): Make "di" non static, always initialize and
5636 cleanup. Always use dis_asm_read_memory.
5637 (gdb_dis_asm_read_memory): Delete function.
5638
5639 2003-05-01 Andrew Cagney <cagney@redhat.com>
5640
5641 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5642 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5643
5644 2003-04-30 Andrew Cagney <cagney@redhat.com>
5645
5646 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5647 "tm_print_insn_info".
5648 (TARGET_PRINT_INSN_INFO): Delete macro.
5649 (dis_asm_read_memory): Delete function declaration.
5650 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5651 (tm_print_insn_info): Delete variable definition.
5652 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5653 * gdbarch.h, gdbarch.c: Re-generate.
5654 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5655 "deprecated_tm_print_insn_info".
5656 * mcore-tdep.c (mcore_dump_insn): Ditto.
5657 * mips-tdep.c (mips_gdbarch_init): Ditto.
5658 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5659 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5660 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5661 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5662 instead of TARGET_PRINT_INSN_INFO, add comment.
5663 * s390-tdep.c (s390_get_frame_info): Instead of
5664 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5665 (s390_check_function_end, s390_is_sigreturn): Ditto.
5666 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5667 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5668 * disasm.c: Include "gdbcore.h".
5669 (_initialize_disasm): New function, initialize
5670 "deprecated_tm_print_insn_info".
5671 (deprecated_tm_print_insn_info): New variable.
5672 (dis_asm_read_memory): Moved from "corefile.c", made static.
5673 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5674 * Makefile.in (disasm.o): Update dependencies.
5675
5676 2003-04-30 Andrew Cagney <cagney@redhat.com>
5677
5678 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5679
5680 2003-04-29 Adam Fedor <fedor@gnu.org>
5681
5682 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5683 * infcall.c (find_function_addr): Make non-static.
5684 * infcall.h (find_function_addr): Declare.
5685 * Makefile.in (eval.o): Update dependencies.
5686
5687 2003-04-28 Adam Fedor <fedor@gnu.org>
5688
5689 * symtab.c (symbol_find_demangled_name): Check for and demangle
5690 ObjC symbols.
5691 (symbol_init_demangled_name): Init for language_objc as well.
5692
5693 2003-04-28 Andrew Cagney <cagney@redhat.com>
5694
5695 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5696 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5697 * gdbarch.h, gdbarch.c: Re-generate.
5698 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5699 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5700 * inferior.h (deprecated_read_fp): Rename read_fp.
5701 (generic_target_read_fp): Delete declaration.
5702 * regcache.c (generic_target_read_fp): Delete function.
5703 (deprecated_read_fp): Replace read_fp, use
5704 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5705 * d10v-tdep.c (d10v_read_fp): Delete function.
5706 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5707
5708 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5709 deprecated_target_read_fp to generic_target_read_fp.
5710 * sh-tdep.c (sh_gdbarch_init): Ditto.
5711 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5712 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5713 * frv-tdep.c (frv_gdbarch_init): Ditto.
5714
5715 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5716 deprecated_fp_regnum.
5717 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5718 * vax-tdep.c (vax_gdbarch_init): Ditto.
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 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5726 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5727 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5728 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5729 * i386-tdep.c (i386_gdbarch_init): Ditto.
5730 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5731 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5732 * frv-tdep.c (frv_gdbarch_init): Ditto.
5733 * cris-tdep.c (cris_gdbarch_init): Ditto.
5734 * avr-tdep.c (avr_gdbarch_init): Ditto.
5735 * arm-tdep.c (arm_gdbarch_init): Ditto.
5736 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5737
5738 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5739 * v850-tdep.c (v850_gdbarch_init): Ditto.
5740 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5741 * sh-tdep.c (sh_gdbarch_init): Ditto.
5742 * s390-tdep.c (s390_gdbarch_init): Ditto.
5743 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5744 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5745 * mips-tdep.c (mips_gdbarch_init): Ditto.
5746 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5747 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5748 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5749 * frv-tdep.c (frv_gdbarch_init): Ditto.
5750 * avr-tdep.c (avr_gdbarch_init): Ditto.
5751 * arm-tdep.c (arm_gdbarch_init): Ditto.
5752
5753 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5754 DEPRECATED_FP_REGNUM.
5755 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5756 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5757 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5758 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5759 (sparc32_register_virtual_type): Ditto.
5760 * sh-tdep.c (sh64_frame_chain): Ditto.
5761 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5762 (sh_nofp_frame_init_saved_regs): Ditto.
5763 (sh64_nofp_frame_init_saved_regs): Ditto.
5764 (sh_fp_frame_init_saved_regs): Ditto.
5765 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5766 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5767 * procfs.c (procfs_fetch_registers): Ditto.
5768 (procfs_store_registers): Ditto.
5769 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5770 (store_inferior_registers, fetch_core_registers): Ditto.
5771 (fetch_kcore_registers, clear_regs): Ditto.
5772 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5773 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5774 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5775 * nlm/i386.c (do_status): Ditto.
5776 * mipsv4-nat.c (supply_gregset): Ditto.
5777 * mips-tdep.c: Ditto for comments.
5778 * mips-nat.c (fetch_inferior_registers): Ditto.
5779 (store_inferior_registers, fetch_core_registers): Ditto.
5780 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5781 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5782 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5783 (i386_do_pop_frame, i386_register_type): Ditto.
5784 * hppa-tdep.c (hppa_frame_chain): Ditto.
5785 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5786 (hppa_pop_frame, hppa_read_fp): Ditto.
5787 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5788 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5789 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5790 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5791 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5792 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5793 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5794 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5795 * blockframe.c: Ditto for comments.
5796 * arch-utils.h: Ditto for comments.
5797 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5798 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5799 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5800 * alpha-tdep.h: Ditto for comments.
5801 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5802 (alpha_cannot_store_register): Ditto.
5803 (alpha_push_dummy_frame): Ditto.
5804 * alpha-nat.c (supply_gregset): Ditto.
5805
5806 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5807 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5808 * config/sparc/tm-sparc.h: Update comment.
5809
5810 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5811 deprecated_read_fp instead of TARGET_READ_FP.
5812 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5813 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5814 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5815 deprecated_read_fp instead of read_fp.
5816 * s390-tdep.c (s390_push_arguments): Ditto.
5817 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5818 * frame.h: Ditto in comments.
5819 * frame.c (legacy_get_prev_frame): Ditto.
5820 * dummy-frame.c (dummy_frame_this_id): Ditto.
5821 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5822
5823 2003-04-28 Andrew Cagney <cagney@redhat.com>
5824
5825 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5826 * gdbarch.h, gdbarch.c: Re-generate.
5827 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5828 * vax-tdep.c (_initialize_vax_tdep): Update.
5829 * v850-tdep.c (_initialize_v850_tdep): Update.
5830 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5831 * s390-tdep.c (_initialize_s390_tdep): Update.
5832 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5833 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5834 * mips-tdep.c (_initialize_mips_tdep): Update.
5835 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5836 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5837 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5838 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5839 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5840 * frv-tdep.c (_initialize_frv_tdep): Update.
5841 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5842 (_initialize_cris_tdep): Update.
5843 * arch-utils.c (legacy_print_insn): Update.
5844 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5845
5846 2003-04-26 Adam Fedor <fedor@gnu.org>
5847
5848 * linespec.c (decode_objc): New function to decode ObjC calls
5849 (decode_line_1): Check for ObjC calls (using decode_objc)
5850 * Makefile (linespec.o): Update dependencies.
5851
5852 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
5853
5854 * breakpoint.h (struct breakpoint_ops): New.
5855 (struct breakpoint): Add ops member.
5856
5857 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5858 (mention): Use new breakpoint ops member.
5859 (set_raw_breakpoint): Initialize ops field to NULL.
5860 (print_exception_catchpoint, print_one_exception_catchpoint)
5861 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5862 (gnu_v3_exception_catchpoint_ops): New.
5863 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5864
5865 2003-04-25 Adam Fedor <fedor@gnu.org>
5866
5867 * Makefile.in (COMMON_OBS): Add objc-lang.o
5868
5869 2003-04-25 Andrew Cagney <cagney@redhat.com>
5870
5871 * d10v-tdep.c (print_insn): Delete function.
5872 (display_trace): Use TARGET_PRINT_INSN.
5873 (_initialize_d10v_tdep): Do not set tm_print_insn.
5874 (d10v_gdbarch_init): Set print_insn.
5875
5876 2003-04-25 Andrew Cagney <cagney@redhat.com>
5877
5878 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5879 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5880 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5881 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5882 (nr_dmap_regs, a0_regnum): ... new functions.
5883 (d10v_print_registers_info): Use a0_regnum, use register_size.
5884 (d10v_register_byte): Delete function.
5885 (d10v_register_raw_size): Delete function.
5886 (d10v_register_type): Use a0_regnum.
5887 (d10v_print_registers_info): Use a0_regnum.
5888 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5889 (d10v_gdbarch_init): Do not set register_byte or
5890 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5891 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5892 extract_address.
5893 (trace_command): Use XCALLOC.
5894 (print_insn): Delete reference to tm_print_insn.
5895 (saved_regs_unwinder): Use store_unsigned_integer instead of
5896 store_address.
5897 * frame.h (FRAME_OBSTACK_CALLOC): Define
5898
5899 2003-04-25 David Carlton <carlton@bactrian.org>
5900
5901 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5902
5903 2003-04-24 Adam Fedor <fedor@gnu.org>
5904
5905 * objc-lang.c: Include "valprint.h"
5906 * Makefile.in (objc-lang.o): Update dependencies.
5907
5908 2003-04-24 Adam Fedor <fedor@gnu.org>
5909
5910 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5911 architecture dependant compilation and mark as unimplemented
5912 (until they get put in the gdbarch vector).
5913
5914 2003-04-23 David Carlton <carlton@bactrian.org>
5915
5916 * cp-support.c (cp_find_first_component): Accept 'operator' in
5917 more locations.
5918
5919 2003-04-23 Andrew Cagney <cagney@redhat.com>
5920
5921 * infcall.c (call_function_by_hand): Eliminate redundant
5922 indentation. Move "saved_async" and "old_cleanups" to where they
5923 are needed.
5924
5925 2003-04-23 Andrew Cagney <cagney@redhat.com>
5926
5927 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5928 and "buffer". Move the "name" code to where it is needed.
5929
5930 2003-04-23 Andrew Cagney <cagney@redhat.com>
5931
5932 * infcall.c (call_function_by_hand): Move variables "start_sp",
5933 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5934 code to ON_STACK switch branch.
5935
5936 2003-04-23 Andrew Cagney <cagney@redhat.com>
5937
5938 * infcall.c (call_function_by_hand): Make declaration of "i",
5939 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5940 lint.
5941
5942 2003-04-23 Andrew Cagney <cagney@redhat.com>
5943
5944 * infcall.c (call_function_by_hand): Delete variable
5945 "n_method_args". Localize "param_type"'s declaration to the loop
5946 that it is used. Reinstate code assigning to said variable -
5947 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5948 Rationalize code using "param_type".
5949
5950 2003-04-22 Andrew Cagney <cagney@redhat.com>
5951
5952 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5953 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5954 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5955 to DEPRECATED_PUSH_RETURN_ADDRESS.
5956
5957 2003-04-22 Kevin Buettner <kevinb@redhat.com>
5958
5959 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5960 on the DWARF2 register number prior to fetching a register.
5961
5962 2003-04-22 J. Brobecker <brobecker@gnat.com>
5963
5964 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5965 Update all the tests using SOFT_FLOAT considering the fact that
5966 this macro was always set to 0.
5967 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5968 considering the fact that this macro was always set to 0.
5969 * hppa-tdep.h (hppa_store_return_value): Likewise.
5970 (hppa_extract_return_value): Likewise.
5971
5972 2003-04-22 J. Brobecker <brobecker@gnat.com>
5973
5974 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5975 the hppa-pro target only.
5976
5977 2003-04-21 J. Brobecker <brobecker@gnat.com>
5978
5979 Ongoing multi-arch conversion effort for HP/UX:
5980 * config/pa/tm-hppa.h: Move all macro that are no longer
5981 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5982 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5983
5984 2003-04-21 J. Brobecker <brobecker@gnat.com>
5985
5986 * config/pa/tm-hppa.h: Obsolete a section that was only used
5987 for hppa-pro.
5988
5989 2003-04-21 J. Brobecker <brobecker@gnat.com>
5990
5991 Ongoing multi-arch conversion for HP/UX.
5992 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5993 if already defined (allows hppa64 to stay non-multiarched for now).
5994 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5995
5996 2003-04-21 Andrew Cagney <cagney@redhat.com>
5997
5998 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5999
6000 2003-04-21 Andrew Cagney <cagney@redhat.com>
6001
6002 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6003 "i386_num_mmx_regs".
6004
6005 2003-04-21 Andrew Cagney <cagney@redhat.com>
6006
6007 * infcall.c: New file.
6008 * infcall.h: New file.
6009 * valarith.c: Include "infcall.h".
6010 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6011 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6012 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6013 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6014 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6015 (SFILES): Add "infcall.c"
6016 (COMMON_OBS): Add "infcall.o".
6017 (infcall.o): Specify dependencies.
6018 * value.h (call_function_by_hand): Delete declaration.
6019 * inferior.h (run_stack_dummy): Delete declaration.
6020 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6021 (run_stack_dummy): Move to "infcall.c", merged into
6022 call_function_by_hand.
6023 * valops.c (call_function_by_hand): Moved to "infcall.c".
6024 (find_function_addr, value_arg_coerce): Ditto.
6025 (unwindonsignal_p, coerce_float_to_double): Ditto.
6026 (_initialize_valops): Move "set/show coerce-float-to-double", and
6027 "set/show unwindonsignal" commands to "infcall.c".
6028 * v850-tdep.c, target.h: Update comments.
6029 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6030 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6031 (sh64_init_extra_frame_info): Update comments.
6032 * mn10300-tdep.c: Update comments.
6033 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6034 * config/sparc/tm-sparc.h: Update comments.
6035 * breakpoint.h: Update comments.
6036 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6037 * arm-tdep.c: Update comment.
6038
6039 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6040
6041 * i386-tdep.c (i386_num_register_names): New variable.
6042 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6043 (MM0_REGNUM): Remove redundant parentheses in define.
6044 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6045 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6046 i386_mxcsr_regnum_p): Remove redundant parentheses.
6047 (i386_register_name): Use i386_num_register_names.
6048
6049 * i386-tdep.c (i386_extract_return_value,
6050 i386_store_return_value): Correct check for availability of
6051 floating-point registers.
6052
6053 * i386-tdep.c (i386_frame_num_args): Remove function.
6054 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6055
6056 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6057 mmx_regnum_to_fp_regnum. Adjust all callers.
6058
6059 * i386-tdep.c (i386_get_longjmp_target): Use
6060 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6061 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6062 extract_address.
6063
6064 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6065
6066 * core-regset.c: Update comments to reflect reality. Re-order
6067 includes.
6068 (fetch_core_registers): Use switch instead of if. Remove
6069 redundant prototype.
6070
6071 2003-04-18 Jim Blandy <jimb@redhat.com>
6072
6073 * s390-tdep.c (s390_frame_align): New function.
6074 (s390_gdbarch_init): Register it with the gdbarch object.
6075
6076 2003-04-17 Richard Henderson <rth@redhat.com>
6077
6078 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6079
6080 2003-04-17 Michael Snyder <msnyder@redhat.com>
6081 Karen Bennet <bennet@redhat.com>
6082
6083 Committed by Elena Zannoni <ezannoni@redhat.com>
6084 * gdb_gcore.sh: New script to create a core dump of a process.
6085
6086 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
6087
6088 * values.c (value_being_returned): Don't fetch the return
6089 value if the return type is void.
6090
6091 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6092
6093 * thread-db.c: Reindented.
6094
6095 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6096
6097 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6098 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6099 as types.
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125 2003-04-16 Kevin Buettner <kevinb@redhat.com>
6126
6127 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6128 the size of ``long double'' to 16, instead of 8.
6129
6130 2003-04-16 Mark Kettenis <kettenis@gnu.org>
6131
6132 * i386-linux-nat.c: Add some whitespace to make things more
6133 readable.
6134 (fetch_register, store_register, fetch_inferior_registers,
6135 store_inferior_registers): Get rid of assignment in if-statement.
6136 (store_register): Fix typo in error message.
6137
6138 2003-04-16 Andrew Cagney <cagney@redhat.com>
6139
6140 * utils.c (xmmalloc): Always allocate something, matches
6141 libiberty/xmalloc's semantics.
6142 (xmrealloc, xmcalloc): Ditto.
6143
6144 2003-04-16 Andrew Cagney <cagney@redhat.com>
6145
6146 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6147 update comments.
6148 (get_frame_type): Initialize unwind and type when needed.
6149 (get_frame_id, frame_register_unwind): Ditto.
6150
6151 2003-04-16 Andrew Cagney <cagney@redhat.com>
6152
6153 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6154 obsolete.
6155 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6156 * sparcl-stub.c: Obsolete file.
6157 * config/sparc/tm-sparclet.h: Obsolete file.
6158 * sparclet-stub.c: Obsolete file.
6159 * sparclet-rom.c: Obsolete file.
6160 * sparcl-tdep.c: Obsolete file.
6161 * config/sparc/tm-sparclite.h: Obsolete file.
6162 * config/sparc/sparclite.mt: Obsolete file.
6163 * config/sparc/sparclet.mt: Obsolete file.
6164 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6165 sparc86x-*-* obsolete.
6166
6167 2003-04-15 David Carlton <carlton@math.stanford.edu>
6168
6169 * Makefile.in (SFILES): Add cp-namespace.c.
6170 (COMMON_OBS): Add cp-namespace.o.
6171 (block.o): Depend on gdb_obstack_h and cp_support_h.
6172 (buildsym.o): Depend on cp_support_h.
6173 (cp-namespace.o): New.
6174 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6175 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6176 (dwarf2read.o): Depend on cp_support_h.
6177 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6178 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6179 processing_current_namespace.
6180 (read_namespace): Update processing_current_namespace; check for
6181 anonymous namespaces.
6182 (dwarf2_name): New function.
6183 (dwarf2_extension): Ditto.
6184 * cp-support.h: Update copyright, contributors.
6185 Add inclusion guards.
6186 Add opaque declaration for structs obstack, block, symbol.
6187 (struct using_direct): New struct.
6188 Add declarations for cp_find_first_component,
6189 cp_entire_prefix_len, processing_has_namespace_info,
6190 processing_current_namespace, cp_is_anonymous,
6191 cp_add_using_directive, cp_initialize_namespace,
6192 cp_finalize_namespace, cp_set_block_scope,
6193 cp_scan_for_anonymous_namespaces.
6194 * cp-namespace.c: New file.
6195 * cp-support.c: Update copyright.
6196 Include ctype.h, gdb_assert.h, gdbcmd.h.
6197 New variable maint_cplus_cmd_list.
6198 (cp_find_first_component): New function.
6199 (cp_entire_prefix_len, maint_cplus_command)
6200 (first_component_command, _initialize_cp_support): Ditto.
6201 * buildsym.c: Include cp-support.h.
6202 New variable using_list.
6203 (add_symbol_to_list): Check for anonymous namespaces.
6204 (finish_block): Set block's scope.
6205 (start_symtab): Initialize C++ namespace support.
6206 (end_symtab): Finalize C++ namespace support.
6207 * block.h: Add opaque declarations for structs
6208 block_namespace_info, using_direct, and obstack.
6209 Add declarations for block_set_scope and block_set_using.
6210 (struct block): Add 'language_specific' member.
6211 (BLOCK_NAMESPACE): New macro.
6212 * block.c: Include gdb_obstack.h and cp-support.h.
6213 (struct block_namespace_info): New struct.
6214 (block_set_scope): New function.
6215 (block_set_using, block_initialize_namespace): Ditto.
6216
6217 2003-04-14 Kevin Buettner <kevinb@redhat.com>
6218
6219 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6220 (locate_base): Return early if there aren't any link map offsets.
6221 (svr4_solib_create_inferior_hook): Warn if shared library support
6222 is unavailable.
6223
6224 2003-04-14 David Carlton <carlton@math.stanford.edu>
6225
6226 * symtab.c (symbol_set_names): Add prefix when storing Java names
6227 in hash table. Fix for PR java/1039.
6228
6229 2003-04-14 David Carlton <carlton@math.stanford.edu>
6230
6231 * symtab.c (symbol_set_names): Rename 'name' arg to
6232 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6233 * symtab.h: Change 'name' argument in declaration of
6234 symbol_set_names to 'linkage_name'.
6235 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6236
6237 2003-04-14 Andrew Cagney <cagney@redhat.com>
6238
6239 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6240 return the fully sign-extended register value.
6241 (get_frame_pointer): Ditto.
6242 (mips_pop_frame): Initialize "proc_desc" after checking for a
6243 dummy frame.
6244
6245 2003-04-14 Andrew Cagney <cagney@redhat.com>
6246
6247 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6248 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6249 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6250 (mips_push_register): Delete function.
6251 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6252 PUSH_FP_REGNUM.
6253
6254 2003-04-14 Jim Blandy <jimb@redhat.com>
6255
6256 * symmisc.c: #include "gdb_regex.h".
6257 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6258 functions.
6259 * maint.c (maintenance_list_command): New function.
6260 (_initialize_maint_cmds): Register the above as commands.
6261 * symtab.h (maintenance_list_symtabs,
6262 maintenance_list_psymtabs): New declarations.
6263 * cli/cli-cmds.c (maintenancelistlist): New variable.
6264 (init_cmd_lists): Initialize it.
6265 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6266 * gdbcmd.h (maintenancelistlist): New declaration.
6267 * Makefile.in (symmisc.o): Update dependencies.
6268
6269 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
6270
6271 * s390-nat.c: Include asm/types.h for addr_t.
6272
6273 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
6274
6275 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6276 actually incoming type.
6277
6278 2003-04-13 Andrew Cagney <cagney@redhat.com>
6279
6280 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6281 get_next_frame and get_frame_saved_regs.
6282
6283 2003-04-13 Andrew Cagney <cagney@redhat.com>
6284
6285 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6286 of gdbarch_num_regs.
6287
6288 2003-04-13 Andrew Cagney <cagney@redhat.com>
6289
6290 * frame.h: Mention what replaced what in "struct frame_info".
6291 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6292 deprecated_update_frame_base_hack and
6293 deprecated_update_frame_pc_hack.
6294 * hppa-tdep.c: Ditto.
6295
6296 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6297
6298 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6299 to read_reg and update its comment. Remove regnum member.
6300 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6301 Don't call read_reg when setting in_reg. Call read_reg to get
6302 the frame base if it's in a register. Return the register number
6303 on the stack instead of in the context. Remove extra arguments
6304 to read_reg.
6305 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6306 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6307 the register number on the expression stack.
6308 (needs_frame_read_reg): Remove extra arguments.
6309
6310 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6311
6312 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6313 made non-static.
6314 (execute_stack_op): All callers updated.
6315 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6316 * dwarf2loc.c (find_location_expression): New function.
6317 (dwarf_expr_frame_base): Call it.
6318 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6319 (dwarf2_tracepoint_var_ref): New function, broken out from
6320 locexpr_tracepoint_var_ref.
6321 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6322 Make static.
6323 (loclist_read_variable, loclist_read_needs_frame): New functions.
6324 (loclist_describe_location, loclist_tracepoint_var_ref): New
6325 functions.
6326 (dwarf2_loclist_funcs): New struct location_funcs.
6327 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6328 (struct dwarf2_locexpr_baton): Add comments.
6329 (dwarf2_loclist_funcs): New extern.
6330 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6331 base_address and base_known.
6332 (dwarf_loc_buffer): New variable.
6333 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6334 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6335 (dwarf2_has_info): Initialize dwarf_loc_offset.
6336 (dwarf2_build_psymtabs): Read in .debug_loc.
6337 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6338 DWARF_LOC_SIZE.
6339 (psymtab_to_symtab_1): Likewise. Move base address calculation
6340 here, from...
6341 (dwarf2_get_pc_bounds): ... here. Use the base address from
6342 cu_header.
6343 (dwarf2_symbol_mark_computed): Handle location lists.
6344
6345 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6346
6347 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6348 if the linkage name demangled successfully.
6349
6350 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6351
6352 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6353 disassmbly_flavour): Removed.
6354
6355 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6356
6357 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6358
6359 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6360
6361 2003-04-12 Andrew Cagney <cagney@redhat.com>
6362
6363 * frame.h (struct frame_info): Move definition from here ...
6364 * frame.c (struct frame_info): ... to here.
6365
6366 2003-04-12 Andrew Cagney <cagney@redhat.com>
6367
6368 * gdbthread.h (save_infrun_state): Delete parameter
6369 "prev_func_start".
6370 (struct thread_info): Delete field "prev_func_start".
6371 (load_infrun_state): Ditto.
6372 * thread.c (load_infrun_state, save_infrun_state): Update.
6373 * infrun.c (prev_func_start): Delete variable.
6374 (context_switch, init_wait_for_inferior): Update.
6375 (stop_stepping, keep_going): Update.
6376
6377 2003-04-12 Andrew Cagney <cagney@redhat.com>
6378
6379 * gdbarch.sh: Add missing opaque declarations.
6380 * gdbarch.h: Regnerate.
6381 * symtab.h: Add missing opaque declarations.
6382 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6383 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6384 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6385 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6386 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6387 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6388 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6389 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6390 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6391 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6392 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6393 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6394 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6395
6396 2003-04-11 Andrew Cagney <cagney@redhat.com>
6397
6398 * frame.c (get_frame_id): Return this frame's "id".
6399 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6400 function start.
6401 (legacy_saved_regs_this_id): Replace function body with
6402 internal-error.
6403 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6404 FRAME_OBSTACK_ZALLOC.
6405 (create_new_frame): Mark the frame ID as valid.
6406
6407 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6408
6409 * Makefile.in (libbfd_h): Added missing setting.
6410 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6411 according to the selected ABI.
6412
6413 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6414
6415 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6416
6417 2003-04-11 Andrew Cagney <cagney@redhat.com>
6418
6419 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6420 SAVED_PC_AFTER_CALL.
6421 * gdbarch.h, gdbarch.c: Regenerate.
6422 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6423 * x86-64-tdep.c (x86_64_init_abi): Update.
6424 * vax-tdep.c (vax_gdbarch_init): Update.
6425 * v850-tdep.c (v850_gdbarch_init): Update.
6426 * sparc-tdep.c (sparc_gdbarch_init): Update.
6427 * sh-tdep.c (sh_gdbarch_init): Update.
6428 * s390-tdep.c (s390_gdbarch_init): Update.
6429 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6430 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6431 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6432 * mips-tdep.c (mips_gdbarch_init): Update.
6433 * mcore-tdep.c (mcore_gdbarch_init): Update.
6434 * m68k-tdep.c (m68k_gdbarch_init): Update.
6435 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6436 * ia64-tdep.c (ia64_gdbarch_init): Update.
6437 (ia64_saved_pc_after_call): Update declaration.
6438 * i386ly-tdep.c (i386lynx_init_abi): Update.
6439 * i386-tdep.c (i386_gdbarch_init): Update.
6440 * hppa-tdep.c (hppa_gdbarch_init): Update.
6441 * h8300-tdep.c (h8300_gdbarch_init): Update.
6442 * frv-tdep.c (frv_gdbarch_init): Update.
6443 * cris-tdep.c (cris_gdbarch_init): Update.
6444 * avr-tdep.c (avr_gdbarch_init): Update.
6445 * arm-tdep.c (arm_gdbarch_init): Update.
6446 * alpha-tdep.c (alpha_gdbarch_init): Update.
6447 * ns32knbsd-nat.c (frame_num_args): Update.
6448 * ns32k-tdep.c (umax_frame_num_args): Update.
6449 * mips-tdep.c (mips_init_frame_pc_first): Update.
6450 * infrun.c (step_over_function): Update.
6451 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6452 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6453 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6454 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6455 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6456 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6457 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6458 * arch-utils.c (init_frame_pc_default): Update.
6459 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6460 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6461 declaration.
6462
6463 2003-04-11 Andrew Cagney <cagney@redhat.com>
6464
6465 * i387-tdep.c: Update copyright.
6466 (i387_to_double): Delete function.
6467 (double_to_i387): Delete function.
6468
6469 2003-04-10 Andrew Cagney <cagney@redhat.com>
6470
6471 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6472 frame's function's address. Simplify.
6473 (d10v_frame_unwind_cache): Check that the frame's function is
6474 non-zero.
6475
6476 2003-04-10 Jim Blandy <jimb@redhat.com>
6477
6478 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6479 call to set_gdbarch_deprecated_push_arguments.
6480
6481 2003-04-10 Andrew Cagney <cagney@redhat.com>
6482
6483 * frame.c (fprint_frame_id): New function.
6484 (fprint_frame_type, fprint_frame): New function.
6485 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6486 (create_sentinel_frame, get_frame_id): Ditto.
6487 (frame_id_p, frame_id_eq): Ditto.
6488 (frame_id_inner, create_new_frame): Ditto.
6489 (legacy_get_prev_frame, get_prev_frame): Ditto.
6490 (deprecated_update_frame_pc_hack): Ditto.
6491 (frame_register_unwind): Ditto.
6492 (deprecated_update_frame_base_hack): Ditto.
6493
6494 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6495
6496 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6497 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6498 frame_chain function.
6499 * Makefile.in: Add dependencies due to above change.
6500
6501 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6502
6503 * blockframe.c (legacy_frame_chain_valid): Move call to
6504 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6505 inside_entry_file.
6506
6507 2003-04-09 Andrew Cagney <cagney@redhat.com>
6508
6509 * frame.h (struct frame_id): Replace "pc" and "base" with
6510 "stack_addr" and "code_addr". Update comments.
6511 (frame_id_build): Update parameter names and comment.
6512 (struct frame_info): Replace "id_p" and "id" with "this_id".
6513 * dummy-frame.c (dummy_frame_this_id): Update.
6514 * breakpoint.c (print_one_breakpoint): Update.
6515 * frame.c (get_frame_id): Update.
6516 (get_frame_base, frame_id_build): Update.
6517 (create_sentinel_frame, legacy_get_prev_frame): Update.
6518 (deprecated_update_frame_base_hack): Update.
6519 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6520 (frame_id_inner): Ditto.
6521
6522 2003-04-09 Andrew Cagney <cagney@redhat.com>
6523
6524 * defs.h (gdb_print_host_address): Make "addr" parameter a
6525 pointer constant.
6526 * utils.c (gdb_print_host_address): Update.
6527
6528 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6529
6530 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6531 register number for R0 is 0.
6532
6533 2003-04-09 J. Brobecker <brobecker@gnat.com>
6534
6535 * frame.h (struct gdbarch): Add opaque structure definition
6536 to avoid a compilation warning on LynxOS 4.0.
6537
6538 2003-04-09 Andrew Cagney <cagney@redhat.com>
6539
6540 * frame.h (struct frame_info): Delete field "pc". Replace
6541 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6542 structure.
6543 * frame.c (frame_pc_unwind): Update.
6544 (create_sentinel_frame): Do not set "pc".
6545 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6546 (get_frame_pc): Call frame_pc_unwind.
6547 (deprecated_update_frame_pc_hack): Update.
6548 (create_new_frame): Use "pc" not "->pc".
6549
6550 2003-04-09 Andrew Cagney <cagney@redhat.com>
6551
6552 * frame.c (get_frame_id): Eliminate code updating "frame".
6553 (legacy_get_prev_frame): Ditto.
6554 (get_frame_base): Return id.base directly.
6555 (deprecated_update_frame_base_hack): Update "id.base".
6556 * frame.h (struct frame_info): Delete field "frame".
6557
6558 2003-04-09 Andrew Cagney <cagney@redhat.com>
6559
6560 * NEWS: Mention that the "Sequent family" is obsolete.
6561 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6562 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6563 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6564 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6565 * config/i386/tm-ptx4.h: Obsolete file.
6566 * config/i386/tm-ptx.h: Obsolete file.
6567 * symm-tdep.c: Obsolete file.
6568 * config/i386/symmetry.mt: Obsolete file.
6569 * config/i386/tm-symmetry.h: Obsolete file.
6570 * symm-nat.c: Obsolete file.
6571 * config/i386/nm-symmetry.h: Obsolete file.
6572 * config/i386/xm-symmetry.h: Obsolete file.
6573 * config/i386/symmetry.mh: Obsolete file.
6574 * config/i386/nm-ptx4.h: Obsolete file.
6575 * config/i386/ptx4.mh: Obsolete file.
6576 * config/i386/ptx.mt: Obsolete file.
6577 * config/i386/ptx.mh: Obsolete file.
6578 * config/i386/xm-ptx4.h: Obsolete file.
6579 * config/i386/xm-ptx.h: Obsolete file.
6580
6581 2003-04-09 Andrew Cagney <cagney@redhat.com>
6582
6583 Obsolete mips*-*-mach3*.
6584 * NEWS: Mention that mips*-*-mach3* is obsolete.
6585 * m3-nat.c: Obsolete file.
6586 * config/nm-m3.h: Obsolete file.
6587 * config/mips/tm-mipsm3.h: Obsolete file.
6588 * config/mips/mipsm3.mt: Obsolete file.
6589 * config/mips/mipsm3.mh: Obsolete file.
6590 * config/mips/xm-mipsm3.h: Obsolete file.
6591 * mipsm3-nat.c: Obsolete file.
6592 * configure.host: Obsolete mips-dec-mach3*.
6593 * configure.tgt: Obsolete mips*-*-mach3*.
6594
6595 2003-04-09 Andrew Cagney <cagney@redhat.com>
6596
6597 * doublest.h: Update copyright.
6598 (deprecated_store_floating, deprecated_extract_floating): Rename
6599 store_floating and extract_floating. Update comments.
6600 * doublest.c: Update copyright.
6601 (extract_floating_by_length): Replace extract_floating.
6602 (store_floating_by_length): Replace store_floating.
6603 (deprecated_extract_floating): New function.
6604 (deprecated_store_floating): New function.
6605 (extract_typed_floating): Call extract_floating_by_length.
6606 (store_typed_floating): Call store_floating_by_length.
6607 * x86-64-tdep.c (x86_64_store_return_value): Update.
6608 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6609 (sh64_extract_return_value): Update.
6610 (sh_sh4_register_convert_to_virtual): Update.
6611 (sh_sh64_register_convert_to_virtual): Update.
6612 (sh_sh4_register_convert_to_raw): Update.
6613 (sh_sh64_register_convert_to_raw): Update.
6614 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6615 (rs6000_register_convert_to_raw): Update.
6616 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6617 (ia64_register_convert_to_raw): Update.
6618 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6619 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6620 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6621 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6622 (alpha_register_convert_to_raw): Update.
6623
6624 2003-04-08 Andrew Cagney <cagney@redhat.com>
6625
6626 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6627 * gdbarch.h, gdbarch.c: Re-generate.
6628 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6629 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6630 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6631 conditionally, use frame_pc_unwind as an alternative. Add
6632 comments.
6633 * arch-utils.c (init_frame_pc_default): Only call
6634 SAVED_PC_AFTER_CALL when available.
6635
6636 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6637
6638 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6639 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6640 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6641 (start_remote): Ditto.
6642 (handle_inferior_event): Ditto.
6643 (save_inferior_status): Ditto.
6644 (restore_inferior_status): Ditto.
6645 * infcmd.c (attach_command): Ditto.
6646 * fork-child.c (startup_inferior): Ditto.
6647 * inferior.h (stop_soon): Rename from stop_soon_quietly.
6648 * alpha-tdep.c (heuristic_proc_start): Ditto.
6649 * mips-tdep.c (heuristic_proc_start): Ditto.
6650 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6651 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6652 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6653 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6654 * remote-vx.c (vx_create_inferior): Ditto.
6655
6656 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6657
6658 * infrun.c (stop_soon_quietly): Make it an enum, to better
6659 override the default behavior of handle_inferior_event.
6660 (clear_proceed_status): Update uses of stop_soon_quietly to
6661 reflect that it is now an enum.
6662 (start_remote): Ditto.
6663 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6664 is set to handle the new GNU/Linux kernel behavior for
6665 attach/sigstop. Update uses of stop_soon_quietly.
6666 * inferior.h (enum stop_kind): New enum.
6667 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6668 Reset normal handle_inferior_event behavior, afterwards.
6669 * fork-child.c (startup_inferior): Update.
6670 * alpha-tdep.c (heuristic_proc_start): Update.
6671 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6672 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6673 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6674 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6675 * remote-vx.c (vx_create_inferior): Update.
6676 * mips-tdep.c (heuristic_proc_start): Update.
6677
6678 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
6679
6680 * disasm.c (dump_insns): Move variables inside loop, or they will
6681 be freed more than once, causing wild memory corruptions.
6682 (gdb_disassembly): Look for the substring "-thread",
6683 instead of "-threads" in the target name, to make sure to find
6684 the 'multi-thread' target. Also, make sure we do the right thing
6685 with the "core" target.
6686
6687 2003-04-07 Kevin Buettner <kevinb@redhat.com>
6688
6689 * mips-tdep.c (mips_print_fp_register): New function, created from
6690 do_fp_register_row(). Registers are now (also) printed as hex.
6691 Only one register is printed per row.
6692 (mips_print_register, do_fp_register_row): Print floating point
6693 registers with mips_print_fp_register().
6694
6695 2003-04-06 Andrew Cagney <cagney@redhat.com>
6696
6697 * valprint.h (inspect_it): Add extern declaration.
6698 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6699 (selectors_info, classes_info): Ditto.
6700 (find_objc_msgcall): Fix indentation.
6701 (objc_printstr): Delete extern declarations.
6702
6703 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6704
6705 2003-04-06 Andrew Cagney <cagney@redhat.com>
6706
6707 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6708 Update comment.
6709 * frame.c (legacy_saved_regs_this_id): Update.
6710 (legacy_get_prev_frame): Update.
6711 * xstormy16-tdep.c: Update comment.
6712 * sparc-tdep.c (sparc_frame_chain): Update comment.
6713 * blockframe.c (legacy_frame_chain_valid): Update.
6714
6715 2003-04-06 Andrew Cagney <cagney@redhat.com>
6716
6717 * valprint.c (val_print_type_code_int): Delete #ifdef
6718 PRINT_TYPELESS_INTEGER code.
6719
6720 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6721 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6722 multi-arch definition.
6723 * gdbarch.h: Re-generate.
6724
6725 2003-04-05 Andrew Cagney <cagney@redhat.com>
6726
6727 Eliminate FRAME_FIND_SAVED_REGS.
6728 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6729 Change FSR parameter to a pointer.
6730 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6731 Assume FSR parameter is a pointer.
6732 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6733 Make fsr a pointer.
6734 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6735 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6736 saved_regs a pointer.
6737 (hppa_frame_saved_pc): Ditto.
6738 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6739 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6740 pointer.
6741 (restore_pc_queue): Make fsr a pointer.
6742 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6743 (hppa_frame_chain): Make saved_regs a pointer, call
6744 hppa_frame_init_saved_regs.
6745 * sparc-tdep.c: Include "gdb_assert.h".
6746 (sparc_frame_find_saved_regs): Replace internal_error with
6747 gdb_assert.
6748 * remote-vxsparc.c (vx_read_register): Delete reference to
6749 FRAME_FIND_SAVED_REGS.
6750 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6751 * gdbarch.h: Regenerate.
6752 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6753 (deprecated_get_frame_saved_regs): Delete declaration.
6754 (struct frame_saved_regs): Delete definition.
6755 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6756 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6757 (hppa_frame_find_saved_regs): Delete declaration.
6758 (FRAME_FIND_SAVED_REGS): Delete macro.
6759 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6760 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6761 FRAME_FIND_SAVED_REGS in comment.
6762
6763 2003-04-05 Andrew Cagney <cagney@redhat.com>
6764
6765 * frame.c (frame_func_unwind, get_frame_func): New functions.
6766 * frame.h (get_frame_func, frame_func_unwind): Declare.
6767 (struct frame_info): Add field "prev_func" for caching the
6768 previous frame's function address.
6769 * arm-tdep.c (arm_frameless_function_invocation): Combine
6770 get_pc_function_start and get_frame_pc into get_frame_func.
6771 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6772 (sh64_nofp_frame_init_saved_regs): Ditto.
6773 * s390-tdep.c (s390_function_start): Ditto.
6774 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6775 (rs6000_frameless_function_invocation): Ditto.
6776 (rs6000_frame_saved_pc): Ditto.
6777 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6778 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6779 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6780 (i386_frame_init_saved_regs): Ditto.
6781 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6782 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6783 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6784 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6785 * blockframe.c (frameless_look_for_prologue): Ditto.
6786
6787 2003-04-05 Andrew Cagney <cagney@redhat.com>
6788
6789 * frame.c (legacy_get_prev_frame): Link prev to next at the
6790 function start. Update comments.
6791
6792 2003-04-05 Andrew Cagney <cagney@redhat.com>
6793
6794 * frame.c (get_frame_id): Update comment.
6795 (legacy_get_prev_frame): Update comment.
6796 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6797 * gdbarch.h: Regenerate.
6798 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6799 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6800
6801 2003-04-05 Andrew Cagney <cagney@redhat.com>
6802
6803 * stack.c (print_frame_info): Use get_frame_pc.
6804
6805 2003-04-04 Andrew Cagney <cagney@redhat.com>
6806
6807 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6808 the frame's type from the unwinder.
6809 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6810 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6811 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6812 (get_frame_base_address): Use get_frame_type.
6813 (get_frame_locals_address, get_frame_args_address): Ditto.
6814 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6815 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6816 (struct frame_info): Add comment explaining why the frame contains
6817 a "type" field.
6818 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6819 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6820 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6821 NORMAL_FRAME.
6822 * frame-unwind.h: Include "frame.h".
6823 (struct frame_unwind): Add "type" field.
6824 * Makefile.in (frame_unwind_h): Add $(frame_h).
6825
6826 2003-04-04 Andrew Cagney <cagney@redhat.com>
6827
6828 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6829 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6830 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6831 get_frame_base.
6832 (d10v_unwind_dummy_id): Use frame_id_build.
6833 * frame.c (find_frame_sal): Use get_frame_pc.
6834 (create_new_frame): Use deprecated_update_frame_pc_hack and
6835 deprecated_update_frame_base_hack.
6836 (create_sentinel_frame): Add comment about ->pc going away.
6837 (get_prev_frame): Add comment about ->pc going away.
6838 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6839 frame_id_build, deprecated_update_frame_pc_hack and
6840 deprecated_update_frame_base_hack.
6841 (select_frame): Use get_frame_pc.
6842 (legacy_saved_regs_this_id): Use frame_id_build.
6843
6844 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
6845
6846 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6847 signed integer case.
6848 (classify_argument): Handle enumerations and references.
6849
6850 2003-04-04 Andrew Cagney <cagney@redhat.com>
6851
6852 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6853 ID to NULL.
6854
6855 2003-04-01 Adam Fedor <fedor@gnu.org>
6856
6857 * gdb/objc-lang.c (selectors_info): Replace calls to
6858 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6859 SYMBOL_NATURAL_NAME.
6860 (classes_info, find_methods): Likewise.
6861
6862 2003-04-03 Kevin Buettner <kevinb@redhat.com>
6863
6864 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6865 ``mach'' to the value determined by bfd_default_set_arch_mach().
6866
6867 2003-04-02 Bob Rossi <bob_rossi@cox.net>
6868
6869 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6870 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6871 (mi-cmd-file.o): Update dependencies.
6872
6873 2003-04-01 Kevin Buettner <kevinb@redhat.com>
6874
6875 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6876 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6877
6878 2003-04-01 Adam Fedor <fedor@gnu.org>
6879
6880 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6881 * language.h (struct language_defn): Add la_demangle.
6882 (language_demangle): Declare.
6883 * language.c (language_demangle): New function.
6884 (unk_lang_demangle): Likewise.
6885 (unknown_language_defn, auto_language_defn, local_language_defn):
6886 Add ukn_lang_demangle.
6887 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6888 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6889 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6890 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6891 * jv-lang.c (java_demangle): New function
6892 (java_language_defn): Use it for la_demangle element.
6893 * objc-lang.c (objc_demangle): Add options argument
6894 (objc_language_defn): Use objc_demangle for la_demangle element.
6895 * maint.c (maintenance_demangle): Replace switch with
6896 call to language_demangle.
6897 * utils.c (fprintf_symbol_filtered): Likewise.
6898
6899 2003-04-01 Andrew Cagney <cagney@redhat.com>
6900
6901 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6902 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6903 PRINT_TYPELESS_INTEGER.
6904 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6905 PUSH_RETURN_ADDRESS.
6906
6907 2003-04-01 Andrew Cagney <cagney@redhat.com>
6908
6909 * Makefile.in (d10v-tdep.o): Update dependencies.
6910 * d10v-tdep.c: Include "frame-base.h".
6911 (d10v_frame_unwind): Make constant.
6912 (d10v_frame_base_address): New function.
6913 (d10v_frame_base): New variable.
6914 (d10v_gdbarch_init): Set frame_base default.
6915 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6916 comment for base.
6917 (d10v_frame_unwind_cache): Set and use "prev_sp".
6918 (d10v_frame_this_id): Use the previous frame's inner most stack
6919 address and this frame's func address for the frame ID. Use
6920 frame_id_build. Don't analyze beyond the current instruction.
6921
6922 2003-04-01 Andrew Cagney <cagney@redhat.com>
6923
6924 * frame.h (get_frame_locals_address, get_frame_args_address):
6925 Refer to the base address, instead of the address of the first
6926 local or parameter.
6927
6928 2003-04-01 Andrew Cagney <cagney@redhat.com>
6929
6930 Add frame debug info addresses:
6931 * frame-base.c: New file.
6932 * frame-base.h: New file.
6933 * frame.h (struct frame_base): Add opaque declaration.
6934 (get_frame_base): Update comment.
6935 (get_frame_base_address): Declare.
6936 (get_frame_locals_address): Declare.
6937 (get_frame_args_address): Declare.
6938 (struct frame_info): Add "base" and "base_cache". Update
6939 comments on the unwinder.
6940 * frame.c: Include "frame-base.h".
6941 (get_frame_locals_address): New function.
6942 (get_frame_base_address): New function.
6943 (get_frame_args_address): New function.
6944 * findvar.c (read_var_value): Use get_frame_locals_address and
6945 get_frame_args_address.
6946 * stack.c (frame_info): Use get_frame_locals_address and
6947 get_frame_args_address.
6948 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6949 moved to "frame-base.c".
6950 * printcmd.c (print_frame_nameless_args): Ditto.
6951 * symtab.h (address_class): Update comments.
6952 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6953 get_frame_base_address.
6954 * dwarf2expr.c (execute_stack_op): Ditto.
6955 * Makefile.in (frame_base_h): Define.
6956 (frame.o): Update dependencies.
6957 (frame-base.o): Add dependencies.
6958 (SFILES): Add frame-base.c.
6959 (COMMON_OBS): Add frame-base.o.
6960
6961 2003-04-01 Andrew Cagney <cagney@redhat.com>
6962
6963 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6964 CALL_DUMMY_LENGTH): Ditto.
6965 * gdbarch.c: Re-generate.
6966 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6967 (CALL_DUMMY_LENGTH): Delete macro.
6968 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6969 * arm-tdep.c (arm_gdbarch_init): Ditto.
6970 * avr-tdep.c (avr_gdbarch_init): Ditto.
6971 * cris-tdep.c (cris_gdbarch_init): Ditto.
6972 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6973 * frv-tdep.c (frv_gdbarch_init): Ditto.
6974 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6975 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6976 * i386-tdep.c (i386_gdbarch_init): Ditto.
6977 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6978 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6979 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6980 * mips-tdep.c (mips_gdbarch_init): Ditto.
6981 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6982 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6983 * s390-tdep.c (s390_gdbarch_init): Ditto.
6984 * sh-tdep.c (sh_gdbarch_init): Ditto.
6985 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6986 * v850-tdep.c (v850_gdbarch_init): Ditto.
6987 * vax-tdep.c (vax_gdbarch_init): Ditto.
6988 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6989
6990 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
6991
6992 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6993
6994 2003-04-01 Andrew Cagney <cagney@redhat.com>
6995
6996 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6997 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6998 * gdbarch.h, gdbarch.c: Re-generate.
6999 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7000 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7001 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7002 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7003 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7004 * infcmd.c (run_stack_dummy): Simplify assuming
7005 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7006 * infrun.c (handle_inferior_event): Ditto.
7007 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7008 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7009 * arm-tdep.c (arm_gdbarch_init): Ditto.
7010 * avr-tdep.c (avr_gdbarch_init): Ditto.
7011 * cris-tdep.c (cris_gdbarch_init): Ditto.
7012 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7013 * frv-tdep.c (frv_gdbarch_init): Ditto.
7014 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7015 * i386-tdep.c (i386_gdbarch_init): Ditto.
7016 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7017 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7018 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7019 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7020 * mips-tdep.c (mips_gdbarch_init): Ditto.
7021 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7022 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7023 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7024 * s390-tdep.c (s390_gdbarch_init): Ditto.
7025 * sh-tdep.c (sh_gdbarch_init): Ditto.
7026 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7027 * v850-tdep.c (v850_gdbarch_init): Ditto.
7028 * vax-tdep.c (vax_gdbarch_init): Ditto.
7029 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7030
7031 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
7032
7033 * symfile.c (symfile_relocate_debug_section): Update call to
7034 bfd_simple_get_relocated_section_contents.
7035
7036 2003-03-31 Andrew Cagney <cagney@redhat.com>
7037
7038 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7039 * gdbarch.h, gdbarch.c: Regenerate.
7040 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7041 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7042 available.
7043 * frame.h (generic_fix_call_dummy): Delete declaration.
7044 * dummy-frame.h: Update comment.
7045 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7046 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7047 fix_call_dummy.
7048 * sh-tdep.c (sh_gdbarch_init): Ditto.
7049 * s390-tdep.c (s390_gdbarch_init): Ditto.
7050 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7051 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7052 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7053 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7054 * i386-tdep.c (i386_gdbarch_init): Ditto.
7055 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7056 * frv-tdep.c (frv_gdbarch_init): Ditto.
7057 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7058 * cris-tdep.c (cris_gdbarch_init): Ditto.
7059 * avr-tdep.c (avr_gdbarch_init): Ditto.
7060 * arm-tdep.c (arm_gdbarch_init): Ditto.
7061
7062 2003-03-31 J. Brobecker <brobecker@gnat.com>
7063
7064 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7065 (INIT_FRAME_AP): Likewise.
7066 (EXTRA_FRAME_INFO): Likewise.
7067
7068 2003-03-31 Andrew Cagney <cagney@redhat.com>
7069
7070 * gdbarch.sh: Include "symfile.h".
7071 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7072 * gdbarch.h, gdbarch.c: Re-generate.
7073 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7074 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7075 call_dummy_address, the default is at entry_point_address.
7076 * v850-tdep.c (v850_gdbarch_init): Ditto.
7077 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7078 * sh-tdep.c (sh_gdbarch_init): Ditto.
7079 * s390-tdep.c (s390_gdbarch_init): Ditto.
7080 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7081 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7082 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7083 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7084 * i386-tdep.c (i386_gdbarch_init): Ditto.
7085 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7086 * frv-tdep.c (frv_gdbarch_init): Ditto.
7087 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7088 * cris-tdep.c (cris_gdbarch_init): Ditto.
7089 * arm-tdep.c (arm_gdbarch_init): Ditto.
7090
7091 2003-03-31 Andrew Cagney <cagney@redhat.com>
7092
7093 * gdbarch.sh (CALL_DUMMY_P): Delete.
7094 * gdbarch.h, gdbarch.c: Re-generate.
7095 * inferior.h (CALL_DUMMY_P): Delete macro.
7096 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7097 * vax-tdep.c (vax_gdbarch_init): Update.
7098 * v850-tdep.c (v850_gdbarch_init): Update.
7099 * sparc-tdep.c (sparc_gdbarch_init): Update.
7100 * sh-tdep.c (sh_gdbarch_init): Update.
7101 * s390-tdep.c (s390_gdbarch_init): Update.
7102 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7103 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7104 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7105 * mips-tdep.c (mips_gdbarch_init): Update.
7106 * mcore-tdep.c (mcore_gdbarch_init): Update.
7107 * m68k-tdep.c (m68k_gdbarch_init): Update.
7108 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7109 * ia64-tdep.c (ia64_gdbarch_init): Update.
7110 * i386-tdep.c (i386_gdbarch_init): Update.
7111 * h8300-tdep.c (h8300_gdbarch_init): Update.
7112 * frv-tdep.c (frv_gdbarch_init): Update.
7113 * d10v-tdep.c (d10v_gdbarch_init): Update.
7114 * cris-tdep.c (cris_gdbarch_init): Update.
7115 * breakpoint.c (deprecated_frame_in_dummy): Update.
7116 * avr-tdep.c (avr_gdbarch_init): Update.
7117 * alpha-tdep.c (alpha_gdbarch_init): Update.
7118 * arm-tdep.c (arm_gdbarch_init): Update.
7119 * dummy-frame.c (dummy_frame_this_id): Update comments.
7120 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7121 * frame.c (legacy_get_prev_frame): Ditto.
7122 * valops.c (call_function_by_hand): Delete function.
7123 (hand_function_call): Rename to call_function_by_hand
7124
7125 2003-03-30 Andrew Cagney <cagney@redhat.com>
7126
7127 2002-11-10 Klee Dienes <kdienes@apple.com>
7128 * value.h (struct value): Update comment.
7129
7130 2003-03-30 Andrew Cagney <cagney@redhat.com>
7131
7132 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7133 D10V_FP_REGNUM.
7134 (d10v_gdbarch_init): Do not set fp_regnum.
7135
7136 * frame.c (get_frame_base): Force ID initialization.
7137 (get_prev_frame): Move computation of the frame ID from here ...
7138 (get_frame_id): ... to here.
7139 (legacy_get_prev_frame): Mark the frame ID as valid.
7140 * frame.h (struct frame_info): Add field "id_p".
7141
7142 2003-03-30 Mark Kettenis <kettenis@gnu.org>
7143
7144 * i386-tdep.c (i386_store_struct_return): Removed.
7145 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7146
7147 2003-03-30 Andrew Cagney <cagney@redhat.com>
7148
7149 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7150 * gdbarch.h, gdbarch.c: Regenerate.
7151 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7152 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7153 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7154 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7155 * i386-tdep.c (i386_gdbarch_init): Ditto.
7156 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7157 * cris-tdep.c (cris_gdbarch_init): Ditto.
7158 * vax-tdep.c (vax_gdbarch_init): Ditto.
7159 * s390-tdep.c (s390_gdbarch_init): Ditto.
7160 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7161 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7162 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7163 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7164 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7165 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7166 * sparc-tdep.c (sparc_gdbarch_init): Update.
7167 * sh-tdep.c (sh_gdbarch_init): Update.
7168 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7169 * mips-tdep.c (mips_gdbarch_init): Update.
7170 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7171 * ia64-tdep.c (ia64_gdbarch_init): Update.
7172 * frv-tdep.c (frv_gdbarch_init): Update.
7173 * avr-tdep.c (avr_gdbarch_init): Update.
7174 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7175 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7176 instead of when push_dummy_call is not available.
7177
7178 2003-03-30 Andrew Cagney <cagney@redhat.com>
7179
7180 * infttrace.c: Include "gdbthread.h".
7181 (parent_attach_all): Fix function signature.
7182 (call_ptrace): Update call.
7183 * Makefile.in (infttrace.o): Update dependencies.
7184
7185 2003-03-30 Andrew Cagney <cagney@redhat.com>
7186
7187 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7188 PUSH_RETURN_ADDRESS.
7189 * gdbarch.h, gdbarch.c: Regenerate.
7190 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7191 * x86-64-tdep.c (x86_64_init_abi): Update.
7192 * v850-tdep.c (v850_gdbarch_init): Update.
7193 * sparc-tdep.c (sparc_gdbarch_init): Update.
7194 * sh-tdep.c (sh_gdbarch_init): Update.
7195 * s390-tdep.c (s390_gdbarch_init): Update.
7196 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7197 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7198 * mips-tdep.c (mips_gdbarch_init): Update.
7199 * mcore-tdep.c (mcore_gdbarch_init): Update.
7200 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7201 * ia64-tdep.c (ia64_gdbarch_init): Update.
7202 * i386-tdep.c (i386_gdbarch_init): Update.
7203 * h8300-tdep.c (h8300_gdbarch_init): Update.
7204 * frv-tdep.c (frv_gdbarch_init): Update.
7205 * cris-tdep.c (cris_gdbarch_init): Update.
7206 * avr-tdep.c (avr_gdbarch_init): Update.
7207 * arm-tdep.c (arm_gdbarch_init): Update.
7208 * valops.c (hand_function_call): Update.
7209
7210 2003-03-29 Andrew Cagney <cagney@redhat.com>
7211
7212 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7213 sizeof_call_dummy_words.
7214 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7215 define.
7216 * gdbarch.h: Regenerate.
7217
7218 2003-03-29 Andrew Cagney <cagney@redhat.com>
7219
7220 * infttrace.h: New file.
7221 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7222 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7223 (hpread_read_doc_function_type): Detect an initialized type1.
7224 (hpread_quick_traverse): Initialize mod_name_string.
7225 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7226 (som_solib_get_solib_by_pc): Declare.
7227 (so_lib_thread_start_addr): Declare.
7228 (no_shared_libraries): Declare.
7229 * somread.c (init_import_symbols): Make static. Add forward
7230 declaration.
7231 * config/pa/nm-hppah.h: Include "infttrace.h" for
7232 parent_attach_all.
7233 (hppa_insert_hw_watchpoint): Declare.
7234 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7235 * hppah-nat.c: Include "gdb_string.h".
7236 (parent_attach_all): Delete extern declaration, moved to
7237 "infttrace.h".
7238 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7239 int.
7240 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7241 * Makefile.in (infttrace_h): Define.
7242 (hpread.o): Update dependencies.
7243 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7244 * hppa-hpux-tdep.c: Include "gdb_string.h".
7245 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7246 * infrun.c (handle_inferior_event): Always initialize
7247 stepped_after_stopped_by_watchpoint. Add default and remove
7248 fallthrough in switch statement.
7249 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7250 parameter to int.
7251 (hppa_remove_hw_watchpoint): Ditto.
7252
7253 2003-03-29 Andrew Cagney <cagney@redhat.com>
7254
7255 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7256 offset.
7257
7258 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
7259
7260 * arm-tdep.c (arm_push_arguments): Delete.
7261 (struct stack_item): New type.
7262 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7263 (arm_store_struct_return): Delte.
7264 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7265 arm_push_arguments or arm_store_struct_return.
7266
7267 2003-03-28 Andrew Cagney <cagney@redhat.com>
7268
7269 * Makefile.in (d10v-tdep.o): Update dependencies.
7270 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7271 * d10v-tdep.c: Include "remote.h".
7272 (target_resume_hook): Delete extern declaration.
7273 (target_wait_loop_hook): Ditto.
7274 (tdisassemble_command): Eliminate assignment in "if" conditional.
7275 (d10v_ts2_register_sim_regno): Eliminate call to
7276 legacy_register_sim_regno.
7277 (d10v_ts3_register_sim_regno): Ditto.
7278
7279 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7280
7281 * thread.c: Reindented.
7282 * lin-lwp.c: Ditto.
7283 * linux-proc.c: Ditto.
7284
7285 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7286
7287 * MAINTAINERS (write after approval): Add myself.
7288
7289 2003-03-27 Theodore A. Roth <troth@openavr.org>
7290
7291 * objc-exp.y: Add missing semi-colons.
7292
7293 2003-03-27 Andrew Cagney <cagney@redhat.com>
7294
7295 * regcache.c (write_sp): Delete function and references.
7296 * inferior.h (write_sp): Delete declaration.
7297 * valops.c (hand_function_call): Replace write_sp with
7298 TARGET_WRITE_SP.
7299 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7300 (sparc_pop_frame): Ditto.
7301
7302 2003-03-27 Andrew Cagney <cagney@redhat.com>
7303
7304 * NEWS: Mention removal of support for hppa*-*-bsd* and
7305 hppa*-*-osf* natives, and hppa*-*-pro* target.
7306 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7307 * config/pa/xm-pa.h: Obsolete file.
7308 * config/pa/xm-hppab.h: Obsolete file.
7309 * config/pa/nm-hppab.h: Obsolete file.
7310 * config/pa/tm-hppab.h: Obsolete file.
7311 * config/pa/tm-hppao.h: Obsolete file.
7312 * config/pa/nm-hppao.h: Obsolete file.
7313 * config/pa/tm-pro.h: Obsolete file.
7314 * config/pa/hppaosf.mt: Obsolete file.
7315 * config/pa/hppaosf.mh: Obsolete file.
7316 * config/pa/hppapro.mt: Obsolete file.
7317 * config/pa/hppabsd.mt: Obsolete file.
7318 * config/pa/hppabsd.mh: Obsolete file.
7319 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7320 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7321 hppa*-*-osf*.
7322
7323 2003-03-27 Andrew Cagney <cagney@redhat.com>
7324
7325 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7326 push_arguments. Don't set push_return_address or write_sp.
7327 (d10v_push_dummy_call): Replace d10v_push_arguments.
7328 (d10v_push_return_address, d10v_write_sp): Delete function,
7329 handled by push_dummy_call.
7330
7331 2003-03-26 Andrew Cagney <cagney@redhat.com>
7332
7333 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7334 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7335 regcache and dummy_addr parameters.
7336 * gdbarch.h, gdbarch.c: Re-generate.
7337 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7338 available; assume it will handle stack alignment and return
7339 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7340 legacy_push_arguments.
7341 (legacy_push_arguments): Rename default_push_arguments.
7342 * value.h (legacy_push_arguments): Rename default_push_arguments.
7343 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7344 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7345 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7346 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7347 * config/i386/tm-symmetry.h: Update.
7348 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7349 * x86-64-tdep.c (x86_64_init_abi): Update.
7350 * v850-tdep.c (v850_gdbarch_init): Update.
7351 * sparc-tdep.c (sparc_gdbarch_init): Update.
7352 * sh-tdep.c (sh_gdbarch_init): Update.
7353 * s390-tdep.c (s390_gdbarch_init): Update.
7354 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7355 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7356 * mips-tdep.c (mips_gdbarch_init): Update.
7357 * mcore-tdep.c (mcore_gdbarch_init): Update.
7358 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7359 * ia64-tdep.c (ia64_gdbarch_init): Update.
7360 * i386-tdep.c (i386_gdbarch_init): Update.
7361 * hppa-tdep.c (hppa_gdbarch_init): Update.
7362 * h8300-tdep.c (h8300_gdbarch_init): Update.
7363 * frv-tdep.c (frv_gdbarch_init): Update.
7364 * d10v-tdep.c (d10v_gdbarch_init): Update.
7365 * cris-tdep.c (cris_gdbarch_init): Update.
7366 * avr-tdep.c (avr_gdbarch_init): Update.
7367 * arm-tdep.c (arm_gdbarch_init): Update.
7368 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7369 * alpha-tdep.c (alpha_gdbarch_init): Update.
7370
7371 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7372
7373 * signals/signals.c (do_target_signal_to_host): Correct realtime
7374 signal range test.
7375
7376 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7377
7378 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7379 (struct sal_chain, map_catch_names): Remove.
7380 (catch_exception_command_1): Don't call
7381 handle_gnu_4_16_catch_command.
7382
7383 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7384
7385 From Mark Dettinger <dettinge@de.ibm.com>:
7386 * dwarf2cfi.c (read_2u): Increment pointer by two.
7387
7388 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7389
7390 * signals/signals.c: Fix typos in last change.
7391
7392 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7393
7394 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7395 not already defined. Use __SIGRTMIN if available.
7396 (target_signal_from_host): Remove SIGRTMIN block.
7397 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7398 the signal is within the realtime range.
7399
7400 2003-03-25 Adam Fedor <fedor@gnu.org>
7401
7402 * Makefile.in (infrun.o): Add $(language_h)
7403 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7404 for language specific trampolines.
7405 * language.h (struct language_defn): Add skip_trampoline.
7406 (skip_language_trampoline): Declare.
7407 * language.c (unk_lang_trampoline, skip_language_trampoline):
7408 New functions.
7409 (unknown_language_defn, auto_language_defn, local_language_defn):
7410 Add ukn_lang_trampoline.
7411 * ada-lang.c (ada_language_defn): Add NULL for language
7412 specific skip_trampoline.
7413 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7414 scm-lang.c: Likewise.
7415 * objc-lang.c (objc_skip_trampoline): New function.
7416 (objc_language_defn): Add objc_skip_trampoline.
7417
7418 2003-03-25 Andrew Cagney <cagney@redhat.com>
7419
7420 * frame.c (get_prev_frame): Delay validating a frame's ID -
7421 non-NULL, didn't go backwards - until an attempt to unwind it to
7422 the previous frame.
7423
7424 2003-03-25 Andrew Cagney <cagney@redhat.com>
7425
7426 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7427 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7428 * gdbarch.h, gdbarch.c: Re-generate.
7429 * config/sparc/tm-sparc.h
7430 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7431 * sparc-tdep.c (sparc_gdbarch_init): Set
7432 deprecated_extra_stack_alignment_needed.
7433 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7434 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7435 extra_stack_alignment_needed.
7436 * v850-tdep.c (v850_gdbarch_init): Ditto.
7437 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7438 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7439 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7440 * cris-tdep.c (cris_gdbarch_init): Ditto.
7441 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7442 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7443
7444 2003-03-25 Andrew Cagney <cagney@redhat.com>
7445
7446 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7447 STORE_STRUCT_RETURN.
7448 * gdbarch.h, gdbarch.c: Regenerate.
7449 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7450 (d10v_push_arguments): Set the struct return register.
7451 (d10v_gdbarch_init): Update.
7452 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7453 * x86-64-tdep.c (x86_64_init_abi): Update.
7454 * vax-tdep.c (vax_gdbarch_init): Update.
7455 * v850-tdep.c (v850_gdbarch_init): Update.
7456 * sparc-tdep.c (sparc_gdbarch_init): Update.
7457 * sh-tdep.c (sh_gdbarch_init): Update.
7458 * s390-tdep.c (s390_gdbarch_init): Update.
7459 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7460 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7461 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7462 * mips-tdep.c (mips_gdbarch_init): Update.
7463 * mcore-tdep.c (mcore_gdbarch_init): Update.
7464 * m68k-tdep.c (m68k_gdbarch_init): Update.
7465 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7466 * ia64-tdep.c (ia64_gdbarch_init): Update.
7467 * i386-tdep.c (i386_gdbarch_init): Update.
7468 * hppa-tdep.c (hppa_gdbarch_init): Update.
7469 * h8300-tdep.c (h8300_gdbarch_init): Update.
7470 * frv-tdep.c (frv_gdbarch_init): Update.
7471 * cris-tdep.c (cris_gdbarch_init): Update.
7472 * avr-tdep.c (avr_gdbarch_init): Update.
7473 * arm-tdep.c (arm_gdbarch_init): Update.
7474 * alpha-tdep.c (alpha_gdbarch_init): Update.
7475
7476 2003-03-25 Andrew Cagney <cagney@redhat.com>
7477
7478 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7479 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7480 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7481 * gdbarch.h, gdbarch.c: Regenerate.
7482 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7483 call_dummy_stack_adjust_p.
7484 * vax-tdep.c (vax_gdbarch_init): Ditto.
7485 * v850-tdep.c (v850_gdbarch_init): Ditto.
7486 * sh-tdep.c (sh_gdbarch_init): Ditto.
7487 * s390-tdep.c (s390_gdbarch_init): Ditto.
7488 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7489 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7490 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7491 * mips-tdep.c (mips_gdbarch_init): Ditto.
7492 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7493 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7494 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7495 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7496 * i386-tdep.c (i386_gdbarch_init): Ditto.
7497 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7498 * frv-tdep.c (frv_gdbarch_init): Ditto.
7499 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7500 * cris-tdep.c (cris_gdbarch_init): Ditto.
7501 * avr-tdep.c (avr_gdbarch_init): Ditto.
7502 * arm-tdep.c (arm_gdbarch_init): Ditto.
7503 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7504 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7505 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7506 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7507 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7508 call_dummy_stack_adjust_p.
7509 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7510 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7511 * sparc-tdep.c (sparc32_push_arguments): Update.
7512 * valops.c (hand_function_call): Update.
7513
7514 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7515
7516 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7517 set_gdbarch_char_signed.
7518
7519 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7520
7521 PR cli/548
7522 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7523
7524 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7525
7526 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7527 (_initialize_arm_tdep): Don't set tm_print_insn.
7528
7529 2003-03-24 Adam Fedor <fedor@gnu.org>
7530
7531 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7532 * objc-lang.h: Add multiple inclusion protection.
7533 (start_msglist, add_msglist, end_msglist): Additional declarations.
7534
7535 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7536
7537 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7538 value was renamed to ARM_FLOAT_SOFT_FPA.
7539
7540 2003-03-23 Andrew Cagney <cagney@redhat.com>
7541
7542 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7543 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7544 * gdbarch.h, gdbarch.c: Regenerate.
7545 * valops.c (hand_function_call): Update.
7546 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7547 * frame.c (legacy_saved_regs_this_id): Update.
7548 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7549 * dummy-frame.h: Update.
7550 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7551 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7552 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7553 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7554 * config/m68k/tm-sun3.h: Update.
7555 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7556 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7557 * x86-64-tdep.c (x86_64_init_abi): Update.
7558 * vax-tdep.c (vax_gdbarch_init): Update.
7559 * v850-tdep.c (v850_gdbarch_init): Update.
7560 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7561 * sh-tdep.c (sh_gdbarch_init): Update.
7562 * s390-tdep.c (s390_gdbarch_init): Update.
7563 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7564 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7565 (frame_get_saved_regs): Update.
7566 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7567 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7568 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7569 * mips-tdep.c (mips_gdbarch_init): Update.
7570 * mcore-tdep.c (mcore_gdbarch_init): Update.
7571 * m68k-tdep.c (m68k_gdbarch_init): Update.
7572 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7573 * ia64-tdep.c (ia64_gdbarch_init): Update.
7574 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7575 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7576 (i386_interix_back_one_frame): Update.
7577 * hppa-tdep.c (hppa_gdbarch_init): Update.
7578 (hppa_init_extra_frame_info): Update.
7579 * h8300-tdep.c (h8300_gdbarch_init): Update.
7580 * frv-tdep.c (frv_gdbarch_init): Update.
7581 * cris-tdep.c (cris_gdbarch_init): Update.
7582 * avr-tdep.c (avr_gdbarch_init): Update.
7583 * arm-tdep.c (arm_gdbarch_init): Update.
7584 * alpha-tdep.c (alpha_gdbarch_init): Update.
7585
7586 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7587
7588 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7589 (arm_get_fp_model): Declare.
7590 * arm-tdep.c (fp_model_strings): New string array.
7591 (arm_fp_model, current_fp_model): New variables.
7592 (arm_get_fp_model): New function.
7593 (arm_set_fp): New function.
7594 (set_fp_model_sfunc): New function.
7595 (show_fp_model): New function.
7596 (_initialize_arm_tdep): Add new command to set/show the FPU.
7597 (arm_extract_return_value): Use arm_get_fp_model.
7598 (arm_store_return_value): Likewise.
7599 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7600 to initialize the floating-point data types.
7601 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7602 model is FPA.
7603
7604 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7605
7606 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7607 the current setting of each value.
7608 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7609 new_set and new_show. Use add_setshow_cmd_full and
7610 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7611 commands and add new version as subcommands of "set/show arm".
7612
7613 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7614
7615 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7616 (set_arm_command, show_arm_command): New functions.
7617 (_initialize_arm_tdep): Add them.
7618 (num_disassembly_options): Renamed from num_flavor_options.
7619 (valid_disassembly_styles): Renamed from valid_flavors.
7620 (disassembly_style): Renamed from disassembly_flavor.
7621 (set_disassembly_style_sfunc): Renamed from
7622 set_disassembly_flavor_sfunc.
7623 (set_disassembly_style): Renamed from set_disassembly_flavor.
7624 (arm_othernames): Updated.
7625 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7626 command. Add "set/show arm disassembly" commands. Deprecate
7627 "othernames" command.
7628
7629 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7630
7631 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7632 (arm-tdep.o): Depend on elf_arm_h.
7633
7634 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7635
7636 * Makefile.in (coff_internal_h): Define.
7637 (arm-tdep.o): Update dependencies.
7638
7639 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7640
7641 * arm-tdep.c (prologue_cache): Delete.
7642 (check_prologue_cache, save_prologue_cache): Delete.
7643 (arm_scan_prologue): Don't check or update the prologue_cache.
7644 (arm_gdb_arch_init): Don't initialize it.
7645 (_initialize_arm_tdep): Likewise.
7646
7647 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7648
7649 * MAINTAINERS (tui): Maintainer of tui code.
7650
7651 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
7652
7653 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7654 (i386-cygwin-tdep.o): Add dependencies.
7655 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7656 * i386-cygwin-tdep.c: New file.
7657 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7658 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7659
7660 2003-03-20 Andrew Cagney <cagney@redhat.com>
7661
7662 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7663 (handle_inferior_event): Remove code calling
7664 DYNAMIC_TRAMPOLINE_NEXTPC.
7665
7666 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7667 already has a full path.
7668
7669 * main.c (gdb_main): Return 1.
7670 (captured_main): Call error to report an invalid interpreter.
7671
7672 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7673 * alpha-osf1-tdep.c: Include "gdb_string.h".
7674
7675 2003-03-19 J. Brobecker <brobecker@gnat.com>
7676
7677 Continuing work to convert the hppa targets to multiarch partial.
7678
7679 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7680 method, now that hppa_push_dummy_frame has a conformant prototype.
7681 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7682 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7683 for the switch to multiarch partial.
7684
7685 2003-03-19 Kevin Buettner <kevinb@redhat.com>
7686
7687 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7688 when iss is issNull.
7689
7690 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7691
7692 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7693 NUM_REGS bounds check.
7694
7695 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7696
7697 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7698 * mips-tdep.c (gdb_assert.h): Include.
7699 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7700 (mips_register_name): Handle integer registers explicitly. Add
7701 bounds checking.
7702 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7703 (mips_lsi33k_reg_names): Don't list integer registers; they're
7704 handled by mips_register_name() now.
7705 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7706 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7707 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7708 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7709 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7710
7711 2003-03-18 Andrew Cagney <cagney@redhat.com>
7712
7713 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7714 a void pointer.
7715 * gdbtypes.h (print_scalar_formatted): Update declaration.
7716 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7717
7718 2003-03-18 J. Brobecker <brobecker@gnat.com>
7719
7720 * infrun.c (observer.h): Add #include.
7721 (normal_stop): Add call to observer_notify_normal_stop.
7722 * Makefile.in (infrun.o): Add dependency on observer.h.
7723
7724 2003-03-18 J. Brobecker <brobecker@gnat.com>
7725
7726 Continuing work to convert the hppa targets to multiarch partial.
7727 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7728 parameter. Reformat comment.
7729 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7730 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7731 to match new profile.
7732
7733 2003-03-18 J. Brobecker <brobecker@gnat.com>
7734
7735 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7736 appear to be working in any case.
7737
7738 2003-03-18 J. Brobecker <brobecker@gnat.com>
7739
7740 * observer.c (observer_test_first_observer): New static variable.
7741 (observer_test_second_observer): Likewise.
7742 (observer_test_third_observer): Likewise.
7743 (observer_test_first_notification_function): New static function.
7744 (observer_test_second_notification_function): Likewise.
7745 (observer_test_third_notification_function): Likewise.
7746
7747 2003-03-17 J. Brobecker <brobecker@gnat.com>
7748
7749 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7750 * somsolib.c (gdb_assert.h): Likewise.
7751 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7752 (somsolib.o): Likewise.
7753
7754 2003-03-17 Andrew Cagney <cagney@redhat.com>
7755
7756 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7757 BFD. Simplify setting of di.endian.
7758
7759 2003-03-17 Andrew Cagney <cagney@redhat.com>
7760
7761 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7762 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7763
7764 From Elena Zannoni <ezannoni@redhat.com>
7765 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7766 vector and floating-point parameters.
7767 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7768 convention.
7769 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7770
7771 2003-03-17 Fernando Nasser <fnasser@redhat.com>
7772
7773 * MAINTAINERS: Remove my name from several maintainership roles.
7774
7775 2003-03-17 Andrew Cagney <cagney@redhat.com>
7776
7777 Fix frame off-by-one bug.
7778 * frame-unwind.h (frame_this_id_ftype): Replace
7779 frame_unwind_id_ftype.
7780 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7781 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7782 with "prev_register".
7783 * frame-unwind.c (frame_unwind_find_by_pc): Return
7784 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7785 comment.
7786 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7787 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7788 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7789 (dummy_frame_unwind): Update.
7790 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7791 sentinel_frame_register_unwind.
7792 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7793 (sentinel_frame_unwinder): Update.
7794 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7795 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7796 * frame.c (create_sentinel_frame): Update. Initialize
7797 "prologue_cache" instead of "unwind_cache".
7798 (frame_register_unwind): Call this frame's prev_register with the
7799 next frame and this frame's prologue cache.
7800 (get_prev_frame): Simplify. Always call prev frame's this_id with
7801 this frame and prev frame's prologue cache. Document that this
7802 call is shifted one to the left when compared to the
7803 frame_register_unwind call.
7804 (legacy_saved_regs_prev_register): Replace
7805 frame_saved_regs_register_unwind.
7806 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7807 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7808 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7809 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7810 (d10v_frame_unwind): Update.
7811 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7812 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7813 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7814 "saved_regs" with "this_saved_regs".
7815
7816 2003-03-16 Andrew Cagney <cagney@redhat.com>
7817
7818 * frame.c (frame_pop): Don't call target_store_registers. Fix
7819 problem reported by Mark Kettenis.
7820
7821 2003-03-16 Mark Kettenis <kettenis@gnu.org>
7822
7823 * i386-tdep.c (i386_register_type): Renamed from
7824 i386_register_virtual_type. Adjust function signature.
7825 (i386_gdbarch_init): Set register_type instead of
7826 deprecated_max_register_raw_size,
7827 deprecated_max_register_virtual_size and register_virtual_type.
7828
7829 2003-03-14 Andrew Cagney <cagney@redhat.com>
7830
7831 * frame.c (get_prev_frame): When a legacy frame, always call
7832 legacy_get_prev_frame. Simplify unwind code using assumption that
7833 the unwinder is new.
7834 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7835 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7836 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7837
7838 2003-03-14 Andrew Cagney <cagney@redhat.com>
7839
7840 * frame.c (get_saved_register): Delete function.
7841 * frame.h (get_saved_register): Delete declaration.
7842 * xstormy16-tdep.c: Update comment.
7843 * regcache.h: Update comments.
7844 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7845 get_saved_register and extract_address, use
7846 frame_read_unsigned_register.
7847 (sparc_frame_saved_pc): Ditto.
7848 (sparc_get_saved_register): Instead of get_saved_register, use
7849 frame_register.
7850 (sparc_pop_frame): Ditto.
7851 * findvar.c: Update comments.
7852 (value_of_register): Call frame_register instead of
7853 get_saved_register.
7854 (value_from_register): Ditto.
7855 * config/sparc/tm-sparc.h: Update comment.
7856 * breakpoint.c: Update comment.
7857
7858 2003-03-14 Andrew Cagney <cagney@redhat.com>
7859
7860 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7861 GET_SAVED_REGISTER.
7862 * gdbarch.h, gdbarch.c: Re-generate.
7863 * frame.h: Update comments.
7864 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7865 * x86-64-tdep.c (x86_64_init_abi): Update.
7866 * sparc-tdep.c (sparc_gdbarch_init): Update.
7867 * sh-tdep.c (sh_gdbarch_init): Update.
7868 * mips-tdep.c (mips_gdbarch_init): Update.
7869 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7870 * cris-tdep.c (cris_gdbarch_init): Update.
7871 * ia64-tdep.c (ia64_gdbarch_init): Update.
7872 * frame.c (frame_register): Update.
7873 (get_saved_register): Update.
7874 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7875
7876 2003-03-13 Andrew Cagney <cagney@redhat.com>
7877
7878 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7879 * gdbarch.h, gdbarch.c: Regenerate.
7880 * valops.c (hand_function_call): Update comment.
7881 * stack.c (return_command): Update comment.
7882 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7883 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7884 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7885 * x86-64-tdep.c (x86_64_init_abi): Update.
7886 * vax-tdep.c (vax_gdbarch_init): Update.
7887 * v850-tdep.c (v850_gdbarch_init): Update.
7888 * sparc-tdep.c (sparc_gdbarch_init): Update.
7889 * sh-tdep.c (sh_gdbarch_init): Update.
7890 * s390-tdep.c (s390_gdbarch_init): Update.
7891 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7892 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7893 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7894 * mips-tdep.c (mips_gdbarch_init): Update.
7895 * mcore-tdep.c (mcore_gdbarch_init): Update.
7896 * m68k-tdep.c (m68k_gdbarch_init): Update.
7897 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7898 * ia64-tdep.c (ia64_gdbarch_init): Update.
7899 * i386-tdep.c (i386_gdbarch_init): Update.
7900 * hppa-tdep.c (hppa_gdbarch_init): Update.
7901 * h8300-tdep.c (h8300_gdbarch_init): Update.
7902 * frv-tdep.c (frv_gdbarch_init): Update.
7903 * cris-tdep.c (cris_gdbarch_init): Update.
7904 * avr-tdep.c (avr_gdbarch_init): Update.
7905 * arm-tdep.c (arm_gdbarch_init): Update.
7906 * alpha-tdep.c (alpha_gdbarch_init): Update.
7907
7908 2003-03-13 Andrew Cagney <cagney@redhat.com>
7909
7910 * frame.c (legacy_frame_p): New function.
7911 (get_prev_frame): Use legacy_frame_p.
7912 * frame.h (legacy_frame_p): Declare.
7913
7914 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7915
7916 * MAINTAINERS (write after approval): Alphabetically
7917 listing corrected.
7918
7919 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7920
7921 * MAINTAINERS (write after approval): Add myself.
7922
7923 2003-03-12 Andrew Cagney <cagney@redhat.com>
7924
7925 * frame.c (get_prev_frame): Rename the frame parameter to
7926 "this_frame".
7927 (get_next_frame, legacy_get_prev_frame): Ditto.
7928
7929 2003-03-12 Andrew Cagney <cagney@redhat.com>
7930
7931 * frame.c (get_current_frame): Check target_has_registers before
7932 checking target_has_stack.
7933 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7934 instead of deprecated_selected_frame.
7935 * findvar.c (value_of_register): Pass "frame", not
7936 deprecated_selected_frame, to value_of_builtin_reg.
7937
7938 2003-03-12 Andrew Cagney <cagney@redhat.com>
7939
7940 * regcache.c (regcache_cooked_write_signed): New function.
7941 (regcache_cooked_write_unsigned): New function.
7942 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7943 (regcache_cooked_read_signed): Fix regnum in range assertion.
7944 * regcache.h (regcache_cooked_write_signed): Declare.
7945 (regcache_cooked_write_unsigned): Declare.
7946
7947 2003-03-12 Andrew Cagney <cagney@redhat.com>
7948
7949 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7950 * gdbarch.h, gdbarch.c: Re-generate.
7951 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7952 * x86-64-tdep.h: Update.
7953 * x86-64-tdep.c (x86_64_init_abi): Update.
7954 * v850-tdep.c (v850_gdbarch_init): Update.
7955 * sparc-tdep.c (sparc_gdbarch_init): Update.
7956 * sh-tdep.c (sh_gdbarch_init): Update.
7957 * s390-tdep.c (s390_gdbarch_init): Update.
7958 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7959 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7960 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7961 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7962 * mips-tdep.c (mips_gdbarch_init): Update.
7963 * mcore-tdep.c (mcore_gdbarch_init): Update.
7964 * m68k-tdep.c (m68k_gdbarch_init): Update.
7965 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7966 * ia64-tdep.c (ia64_gdbarch_init): Update.
7967 * i386-tdep.c (i386_gdbarch_init): Update.
7968 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7969 * hppa-tdep.c (hppa_gdbarch_init): Update.
7970 * h8300-tdep.c (h8300_gdbarch_init): Update.
7971 * frv-tdep.c (frv_gdbarch_init): Update.
7972 * cris-tdep.c (cris_gdbarch_init): Update.
7973 * avr-tdep.c (avr_gdbarch_init): Update.
7974 * arm-tdep.c (arm_gdbarch_init): Update.
7975 * alpha-tdep.c (alpha_gdbarch_init): Update.
7976 * sh-tdep.c (sh_init_extra_frame_info): Update.
7977 (sh64_init_extra_frame_info): Update.
7978 * ns32knbsd-nat.c (frame_num_args): Update.
7979 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7980 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7981 (xstormy16_frame_chain_valid): Update.
7982 * vax-tdep.c (vax_saved_pc_after_call): Update.
7983 * v850-tdep.c (v850_frame_chain): Update.
7984 (v850_pop_frame): Update.
7985 (v850_init_extra_frame_info): Update.
7986 * sparc-tdep.c (setup_arbitrary_frame): Update.
7987 * ns32k-tdep.c (umax_frame_num_args): Update.
7988 * s390-tdep.c (s390_pop_frame_regular): Update.
7989 * mn10300-tdep.c (mn10300_frame_chain): Update.
7990 (mn10300_pop_frame_regular): Update.
7991 (mn10300_init_extra_frame_info): Update.
7992 * mips-tdep.c (mips_init_frame_pc_first): Update.
7993 (mips_frame_chain): Update.
7994 (mips_pop_frame): Update.
7995 * mcore-tdep.c (mcore_frame_chain): Update.
7996 (mcore_pop_frame): Update.
7997 (mcore_init_extra_frame_info): Update.
7998 * arch-utils.c (init_frame_pc_default): Update.
7999 * m68k-tdep.c (isi_frame_num_args): Update.
8000 (delta68_frame_num_args): Update.
8001 (news_frame_num_args): Update.
8002 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8003 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8004 (alpha_frame_chain): Update.
8005 (alpha_pop_frame): Update.
8006 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8007 (hppa_init_extra_frame_info): Update.
8008 (hppa_frame_chain): Update.
8009 (hppa_frame_chain_valid): Update.
8010 * cris-tdep.c (cris_init_extra_frame_info): Update.
8011 * avr-tdep.c (avr_init_extra_frame_info): Update.
8012 * arm-tdep.c (arm_frame_chain_valid): Update.
8013 (arm_init_extra_frame_info): Update.
8014 (arm_pop_frame): Update.
8015 * frame.c (frame_pc_unwind): Update.
8016 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8017 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8018 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8019 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8020 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8021 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8022
8023 2003-03-12 Andrew Cagney <cagney@redhat.com>
8024
8025 Eliminate the need for POP_FRAME.
8026 * frame.c (do_frame_unwind_register): New function.
8027 (frame_pop): When no POP_FRAME, pop the frame using register
8028 unwind and a scratch regcache.
8029 (frame_saved_regs_pop): Delete function.
8030 (trad_frame_unwinder): Update.
8031 * d10v-tdep.c (d10v_frame_pop): Delete function.
8032 (d10v_frame_unwind): Update.
8033 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8034 (sentinel_frame_unwinder): Update.
8035 * dummy-frame.c (dummy_frame_pop): Delete function.
8036 (dummy_frame_unwind): Update.
8037 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8038 (struct frame_unwind): Update.
8039
8040 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8041
8042 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8043 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8044 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8045 Do range checks on register number obtained from debugging info.
8046 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8047 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8048 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8049 mapping function.
8050 (do_fp_register_row): Fix typo which caused double type to be
8051 used when attempting to unpack a float.
8052
8053 2003-03-11 J. Brobecker <brobecker@gnat.com>
8054
8055 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8056
8057 2003-03-11 Andrew Cagney <cagney@redhat.com>
8058
8059 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8060 frame. Problem found by Corinna Vinschen.
8061
8062 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8063
8064 * doublest.c (floatformat_from_length): Accept also
8065 the real size of 'long double' type.
8066
8067 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
8068
8069 From Klee Dienes <kdienes@apple.com>:
8070 * breakpoint.c (bpstat_copy): Copy the command lines as well
8071 as the old value, to match what is freed in bpstat_clear.
8072
8073 2003-03-10 David Carlton <carlton@math.stanford.edu>
8074
8075 * minsyms.c (add_minsym_to_hash_table): Replace
8076 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8077 (compare_minimal_symbols, compact_minimal_symbols)
8078 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8079 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8080 of DEPRECATED_SYMBOL_MATCHES_NAME.
8081 (lookup_minimal_symbol_solib_trampoline): Ditto.
8082
8083 2003-03-10 Andrew Cagney <cagney@redhat.com>
8084
8085 * regcache.h (regcache_cooked_read_ftype): Define.
8086 (regcache_save, regcache_restore): Add a cooked_read parameter.
8087 * regcache.c (regcache_save, regcache_restore): Update.
8088 (do_cooked_read): New function.
8089 (regcache_cpy): Pass do_cooked_read to regcache_save and
8090 regcache_restore.
8091
8092 2003-03-10 Andrew Cagney <cagney@redhat.com>
8093
8094 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8095 * gdbarch.h, gdbarch.c: Re-generate.
8096 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8097 * x86-64-tdep.h: Update.
8098 * x86-64-tdep.c (x86_64_init_abi): Update.
8099 * v850-tdep.c (v850_gdbarch_init): Update.
8100 * sparc-tdep.c (sparc_gdbarch_init): Update.
8101 * sh-tdep.c (sh_gdbarch_init): Update.
8102 * s390-tdep.c (s390_gdbarch_init): Update.
8103 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8104 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8105 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8106 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8107 * mips-tdep.c (mips_gdbarch_init): Update.
8108 * mcore-tdep.c (mcore_gdbarch_init): Update.
8109 * m68k-tdep.c (m68k_gdbarch_init): Update.
8110 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8111 * ia64-tdep.c (ia64_gdbarch_init): Update.
8112 * i386-tdep.c (i386_gdbarch_init): Update.
8113 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8114 * hppa-tdep.c (hppa_gdbarch_init): Update.
8115 * h8300-tdep.c (h8300_gdbarch_init): Update.
8116 * frv-tdep.c (frv_gdbarch_init): Update.
8117 * cris-tdep.c (cris_gdbarch_init): Update.
8118 * avr-tdep.c (avr_gdbarch_init): Update.
8119 * arm-tdep.c (arm_gdbarch_init): Update.
8120 * alpha-tdep.c (alpha_gdbarch_init): Update.
8121 * sh-tdep.c (sh_init_extra_frame_info): Update.
8122 (sh64_init_extra_frame_info): Update.
8123 * ns32knbsd-nat.c (frame_num_args): Update.
8124 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8125 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8126 (xstormy16_frame_chain_valid): Update.
8127 * vax-tdep.c (vax_saved_pc_after_call): Update.
8128 * v850-tdep.c (v850_frame_chain): Update.
8129 (v850_pop_frame): Update.
8130 (v850_init_extra_frame_info): Update.
8131 * sparc-tdep.c (setup_arbitrary_frame): Update.
8132 * ns32k-tdep.c (umax_frame_num_args): Update.
8133 * s390-tdep.c (s390_pop_frame_regular): Update.
8134 * mn10300-tdep.c (mn10300_frame_chain): Update.
8135 (mn10300_pop_frame_regular): Update.
8136 (mn10300_init_extra_frame_info): Update.
8137 * mips-tdep.c (mips_init_frame_pc_first): Update.
8138 (mips_frame_chain): Update.
8139 (mips_pop_frame): Update.
8140 * mcore-tdep.c (mcore_frame_chain): Update.
8141 (mcore_pop_frame): Update.
8142 (mcore_init_extra_frame_info): Update.
8143 * arch-utils.c (init_frame_pc_default): Update.
8144 * m68k-tdep.c (isi_frame_num_args): Update.
8145 (delta68_frame_num_args): Update.
8146 (news_frame_num_args): Update.
8147 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8148 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8149 (alpha_frame_chain): Update.
8150 (alpha_pop_frame): Update.
8151 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8152 (hppa_init_extra_frame_info): Update.
8153 (hppa_frame_chain): Update.
8154 (hppa_frame_chain_valid): Update.
8155 * cris-tdep.c (cris_init_extra_frame_info): Update.
8156 * avr-tdep.c (avr_init_extra_frame_info): Update.
8157 * arm-tdep.c (arm_frame_chain_valid): Update.
8158 (arm_init_extra_frame_info): Update.
8159 (arm_pop_frame): Update.
8160 * frame.c (frame_pc_unwind): Update.
8161 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8162 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8163 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8164 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8165 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8166 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8167
8168 2003-03-10 Andrew Cagney <cagney@redhat.com>
8169
8170 * gdbarch.sh (gdbarch_unwind_pc): New method.
8171 * gdbarch.h, gdbarch.c: Regenerate.
8172 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8173 but use read_pc and FRAME_SAVED_PC as fall backs.
8174 (frame_saved_regs_pc_unwind): Delete function.
8175 (trad_frame_unwinder): Update.
8176 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8177 (struct frame_unwind): Update.
8178 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8179 (dummy_frame_unwind): Update.
8180 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8181 (sentinel_frame_unwinder): Update.
8182 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8183 (d10v_frame_unwind): Update.
8184 (d10v_unwind_pc): New function.
8185 (d10v_gdbarch_init): Set unwind_pc.
8186
8187 2003-03-10 Andrew Cagney <cagney@redhat.com>
8188
8189 * gdbarch.h: Re-generate.
8190
8191 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8192 PC.
8193 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8194 the PC register.
8195
8196 2003-03-08 Mark Kettenis <kettenis@gnu.org>
8197
8198 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8199
8200 2003-03-08 Andrew Cagney <cagney@redhat.com>
8201
8202 * cli-out.c: Update copyright.
8203 (cli_out_data): Define typedef. Use instead of ui_out_data.
8204
8205 2003-03-08 Andrew Cagney <cagney@redhat.com>
8206
8207 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8208 the result.
8209
8210 2003-03-07 Andrew Cagney <cagney@redhat.com>
8211
8212 * gdbarch.sh: Don't generate two macro definitions when an
8213 undefined macro taking no arguments.
8214 * gdbarch.h: Regenerate.
8215
8216 2002-03-07 Michal Ludvig <mludvig@suse.cz>
8217
8218 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8219 (x86_64_unwind_dummy_id): New functions.
8220 (x86_64_init_abi): Register these two new functions.
8221
8222 2003-03-07 Michal Ludvig <mludvig@suse.cz>
8223
8224 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8225 (x86_64_skip_prologue): Move prologue detection to
8226 separate function.
8227 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8228
8229 2003-03-05 Andrew Cagney <cagney@redhat.com>
8230
8231 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8232 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8233 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8234 to use unwind_dummy_id when a dummy frame.
8235 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8236 predicate.
8237 * gdbarch.h, gdbarch.c: Regneerate.
8238
8239 2003-03-05 Andrew Cagney <cagney@redhat.com>
8240
8241 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8242 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8243 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8244 values.
8245
8246 2003-03-05 Andrew Cagney <cagney@redhat.com>
8247
8248 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8249 (struct d10v_unwind_cache): Delete field "frameless". Replace
8250 "next_addr" with "sp_offset". Add "r11_offset".
8251 (d10v_frame_unwind_cache): Update.
8252 (prologue_find_regs): Update. When "mv r11, sp", save the
8253 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8254 RN was saved in r11_offset.
8255
8256 2003-03-05 Andrew Cagney <cagney@redhat.com>
8257
8258 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8259 cached PC value in the next frame.
8260
8261 2003-03-05 Andrew Cagney <cagney@redhat.com>
8262
8263 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8264 "id_unwind_cache" with "id".
8265 (frame_id_unwind): Delete declaration.
8266 * frame.c (frame_id_unwind): Delete function.
8267 (get_prev_frame): Call the frame id unwind method directly. Store
8268 the returned next frame's ID value in NEXT_FRAME. Note that there
8269 is a problem with the wrong unwind ID being called with the wrong
8270 unwind cache.
8271
8272 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8273
8274 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8275
8276 2003-03-05 James Ingham <jingham@apple.com>
8277 Daniel Jacobowitz <drow@mvista.com>
8278
8279 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8280 (auto_cp_abi): New variable.
8281 (current_cp_abi, num_cp_abis): Make static.
8282 (CP_ABI_MAX): Define.
8283 (cp_abis): Turn into an array.
8284 (value_virtual_fn_field): Fix formatting.
8285 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8286 takes a pointer.
8287 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8288 (list_cp_abis, _initialize_cp_abi): New functions.
8289 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8290 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8291 switch_to_cp_abi. Update prototype for register_cp_abi.
8292 * Makefile.in (cp-abi.o): Update dependencies.
8293 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8294 instead of switch_to_cp_abi.
8295 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8296 register_cp_abi.
8297 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8298 register_cp_abi.
8299 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8300
8301 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8302
8303 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8304 * dwarf2loc.c: Include "regcache.h".
8305 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8306 register_size.
8307 * Makefile.in (dwarf2loc.o): Update dependencies.
8308
8309 2003-03-04 Theodore A. Roth <troth@openavr.org>
8310
8311 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8312 number of io registers reported by remote target is not a multiple of
8313 step.
8314
8315 2003-03-04 David Carlton <carlton@math.stanford.edu>
8316
8317 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8318 (lookup_symbol_aux_psymtabs): Update call to
8319 lookup_partial_symbol.
8320 (lookup_transparent_type, find_main_psymtab)
8321 (make_symbol_overload_list): Ditto.
8322
8323 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8324
8325 * MAINTAINERS (Write after approval): Update my email address.
8326
8327 2003-03-03 Andrew Cagney <cagney@redhat.com>
8328
8329 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8330 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8331 predicate. Replace MAX_REGISTER_RAW_SIZE.
8332 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8333 MAX_REGISTER_VIRTUAL_SIZE.
8334 * regcache.c (legacy_max_register_raw_size): New function.
8335 (legacy_max_register_virtual_size): New function.
8336 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8337 (MAX_REGISTER_RAW_SIZE): Define.
8338 (legacy_max_register_raw_size): Declare.
8339 (legacy_max_register_virtual_size): Declare.
8340 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8341 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8342 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8343 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8344 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8345 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8346 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8347 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8348 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8349 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8350 * vax-tdep.c (vax_gdbarch_init): Update.
8351 * v850-tdep.c (v850_gdbarch_init): Update.
8352 * sparc-tdep.c (sparc_gdbarch_init): Update.
8353 * sh-tdep.c (sh_gdbarch_init): Update.
8354 * s390-tdep.c (s390_gdbarch_init): Update.
8355 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8356 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8357 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8358 * mips-tdep.c (mips_gdbarch_init): Update.
8359 * mcore-tdep.c (mcore_gdbarch_init): Update.
8360 * m68k-tdep.c (m68k_gdbarch_init): Update.
8361 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8362 * ia64-tdep.c (ia64_gdbarch_init): Update.
8363 * i386-tdep.c (i386_gdbarch_init): Update.
8364 * hppa-tdep.c (hppa_gdbarch_init): Update.
8365 * h8300-tdep.c (h8300_gdbarch_init): Update.
8366 * frv-tdep.c (frv_gdbarch_init): Update.
8367 * cris-tdep.c (cris_gdbarch_init): Update.
8368 * avr-tdep.c (avr_gdbarch_init): Update.
8369 * arm-tdep.c (arm_gdbarch_init): Update.
8370 * alpha-tdep.c (alpha_gdbarch_init): Update.
8371 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8372 max_register_raw_size or max_register_virtual_size.
8373
8374 2003-03-03 David Carlton <carlton@math.stanford.edu>
8375
8376 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8377 SYMBOL_MATCHES_NAME, add comment.
8378 (SYMBOL_MATCHES_NATURAL_NAME): New.
8379 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8380 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8381 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8382 * symtab.c (lookup_partial_symbol): Use
8383 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8384 unhelpful comment.
8385 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8386 SYMBOL_MATCHES_NAME.
8387 Fix for PR c++/33.
8388
8389 2003-03-03 David Carlton <carlton@math.stanford.edu>
8390
8391 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8392 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8393 by regexp matching against SYMBOL_NATURAL_NAME.
8394
8395 2003-03-03 David Carlton <carlton@math.stanford.edu>
8396
8397 * linespec.c (find_method): Extract code into collect_methods.
8398 (collect_methods): New.
8399
8400 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8401
8402 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8403 get_frame_base.
8404
8405 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8406 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8407
8408 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8409
8410 * arch-utils.c (generic_register_byte): Fix to use the loop index
8411 and not regnum when summing the size of all registers up to regnum.
8412
8413 2003-03-01 Andrew Cagney <cagney@redhat.com>
8414
8415 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8416 FRAME_INIT_SAVED_REGS.
8417 * gdbarch.h, gdbarch.c: Regenerate.
8418 * stack.c (frame_info): Update.
8419 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8420 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8421 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8422 * ns32k-tdep.c (ns32k_pop_frame): Update.
8423 * mips-tdep.c (mips_pop_frame): Update.
8424 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8425 * ia64-tdep.c (ia64_frame_chain): Update.
8426 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8427 (ia64_frameless_function_invocation): Update.
8428 (ia64_init_extra_frame_info): Update.
8429 (ia64_pop_frame_regular): Update.
8430 * frame.h (struct frame_info): Update comment.
8431 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8432 * frame.c (frame_saved_regs_register_unwind): Update.
8433 (frame_saved_regs_register_unwind): Update.
8434 (deprecated_generic_get_saved_register): Update.
8435 * cris-tdep.c: Update comment.
8436 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8437 Rename macro.
8438 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8439 * x86-64-tdep.c (x86_64_init_abi): Update.
8440 * vax-tdep.c (vax_gdbarch_init): Update.
8441 * v850-tdep.c (v850_gdbarch_init): Update.
8442 * sparc-tdep.c (sparc_gdbarch_init): Update.
8443 * sh-tdep.c (sh_gdbarch_init): Update.
8444 * s390-tdep.c (s390_gdbarch_init): Update.
8445 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8446 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8447 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8448 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8449 * mips-tdep.c (mips_gdbarch_init): Update.
8450 * mcore-tdep.c (mcore_gdbarch_init): Update.
8451 * m68k-tdep.c (m68k_gdbarch_init): Update.
8452 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8453 * ia64-tdep.c (ia64_gdbarch_init): Update.
8454 * i386-tdep.c (i386_gdbarch_init): Update.
8455 * frv-tdep.c (frv_gdbarch_init): Update.
8456 * avr-tdep.c (avr_gdbarch_init): Update.
8457 * arm-tdep.c (arm_gdbarch_init): Update.
8458 * alpha-tdep.c (alpha_gdbarch_init): Update.
8459
8460 2003-03-01 Andrew Cagney <cagney@redhat.com>
8461
8462 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8463 option enum and switch. When no windows, set the interpreter to
8464 INTERP_CONSOLE.
8465
8466 2003-03-01 Andrew Cagney <cagney@redhat.com>
8467
8468 * main.c (captured_main): Replace magic option characters with an
8469 enum.
8470
8471 2003-03-01 Andrew Cagney <cagney@redhat.com>
8472
8473 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8474 INIT_EXTRA_FRAME_INFO.
8475 * gdbarch.h, gdbarch.c: Regenerate.
8476 * arm-tdep.c: Update comments.
8477 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8478 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8479 * frame.h, avr-tdep.c: Ditto.
8480 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8481 (create_new_frame, legacy_get_prev_frame): Ditto.
8482 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8483 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8484 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8485 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8486 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8487 * v850-tdep.c (v850_gdbarch_init): Ditto.
8488 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8489 * sh-tdep.c (sh_gdbarch_init): Ditto.
8490 * s390-tdep.c (s390_gdbarch_init): Ditto.
8491 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8492 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8493 * mips-tdep.c (mips_gdbarch_init): Ditto.
8494 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8495 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8496 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8497 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8498 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8499 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8500 * frv-tdep.c (frv_gdbarch_init): Ditto.
8501 * cris-tdep.c (cris_gdbarch_init): Ditto.
8502 * avr-tdep.c (avr_gdbarch_init): Ditto.
8503 * arm-tdep.c (arm_gdbarch_init): Ditto.
8504 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8505 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8506
8507 2003-03-01 Andrew Cagney <cagney@redhat.com>
8508
8509 * gdbarch.sh (register_type): New function with predicate.
8510 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8511 * gdbarch.h, gdbarch.c: Re-generate.
8512 * arch-utils.c (generic_register_byte): Use generic_register_size.
8513 (generic_register_size): When available, use
8514 gdbarch_register_type.
8515 * regcache.c (init_regcache_descr): When available, initialize the
8516 register type array using gdbarch_register_type. If the
8517 architecture supplies gdbarch_register_type, do not use the legacy
8518 regcache layout.
8519 * d10v-tdep.c (d10v_register_type): Replace
8520 d10v_register_virtual_type.
8521 (d10v_gdbarch_init): Set register_type instead of
8522 register_virtual_type.
8523
8524 2003-03-01 Andrew Cagney <cagney@redhat.com>
8525
8526 * Makefile.in (ax-gdb.o): Update dependencies.
8527 * ax-gdb.c: Include "regcache.h".
8528 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8529 * findvar.c (value_of_register): Ditto.
8530 * infcmd.c (default_print_registers_info): Ditto.
8531
8532 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8533
8534 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8535 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8536
8537 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8538
8539 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8540 of STREQ.
8541
8542 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8543
8544 * Makefile.in (dwarf2loc.o): Update dependencies.
8545 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8546 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8547 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8548 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8549 (locexpr_tracepoint_var_ref): New function.
8550 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8551
8552 2003-02-28 Andrew Cagney <cagney@redhat.com>
8553
8554 * regcache.c (register_size): New function.
8555 * regcache.h (register_size): Declare
8556 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8557 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8558
8559 2003-02-28 David Carlton <carlton@math.stanford.edu>
8560
8561 * linespec.c (decode_compound): Extract code into find_method.
8562 (find_method): New.
8563
8564 2003-02-28 J. Brobecker <brobecker@gnat.com>
8565
8566 * Makefile.in: Add rules to build and link in observer.o.
8567
8568 2003-02-27 J. Brobecker <brobecker@gnat.com>
8569
8570 * observer.c: Minor comments edits.
8571
8572 2003-02-27 J. Brobecker <brobecker@gnat.com>
8573
8574 * observer.h, observer.c: New file.
8575
8576 2003-02-27 Andrew Cagney <cagney@redhat.com>
8577
8578 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8579
8580 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8581
8582 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8583 (M6812_OP_STS_EXT): Likewise.
8584 (m6811_prologue): Use the above to recognize prologue.
8585 (m6812_prologue): Likewise.
8586
8587 2003-02-27 David Carlton <carlton@math.stanford.edu>
8588
8589 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8590 SYMBOL_PRINT_NAME.
8591 (compare_psymbols): Ditto.
8592 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8593
8594 2003-02-27 Michael Snyder <msnyder@redhat.com>
8595
8596 * f-lang.c (build_fortran_types): New function.
8597 (_initialize_f_language): Gdbarch-register built-in fortran types.
8598 * doublest.c (extract_floating): Fix warning text.
8599
8600 2003-02-27 Andrew Cagney <cagney@redhat.com>
8601
8602 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8603 predicate. Replaces PUSH_DUMMY_FRAME.
8604 * gdbarch.h, gdbarch.c: Regnerate.
8605 * valops.c (hand_function_call): Update. Call
8606 generic_push_dummy_frame directly.
8607 * vax-tdep.c (vax_gdbarch_init): Update.
8608 * sparc-tdep.c (sparc_gdbarch_init): Update.
8609 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8610 * m68k-tdep.c (m68k_gdbarch_init): Update.
8611 * hppa-tdep.c (hppa_gdbarch_init): Update.
8612 * alpha-tdep.c (alpha_gdbarch_init): Update.
8613 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8614 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8615 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8616 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8617 push_dummy_frame to generic_push_dummy_frame.
8618 * v850-tdep.c (v850_gdbarch_init): Ditto.
8619 * sh-tdep.c (sh_gdbarch_init): Ditto.
8620 * s390-tdep.c (s390_gdbarch_init): Ditto.
8621 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8622 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8623 * mips-tdep.c (mips_gdbarch_init): Ditto.
8624 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8625 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8626 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8627 * i386-tdep.c (i386_gdbarch_init): Ditto.
8628 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8629 * frv-tdep.c (frv_gdbarch_init): Ditto.
8630 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8631 * cris-tdep.c (cris_gdbarch_init): Ditto.
8632 * avr-tdep.c (avr_gdbarch_init): Ditto.
8633 * arm-tdep.c (arm_gdbarch_init): Ditto.
8634
8635 2003-02-26 Kevin Buettner <kevinb@redhat.com>
8636
8637 * mips-tdep.c (show_mips_abi): New function.
8638 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8639 command ``show mips abi''.
8640
8641 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8642
8643 From Elena Zannoni <ezannoni@redhat.com>
8644 * dbxread.c (process_one_symbol): Only record line 0 if one or
8645 more sline entries have been seen for the function.
8646
8647 2003-02-26 Michael Chastain <mec@shout.net>
8648
8649 * configure: Regenerate with autoconf 000227.
8650
8651 2003-02-26 Michael Chastain <mec@shout.net>
8652
8653 Close PR build/660.
8654 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8655 for old libc5/glibc.
8656 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8657
8658 2003-02-26 Kris Warkentin <kewarken@qnx.com>
8659
8660 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8661 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8662
8663 2003-02-26 Michael Chastain <mec@shout.net>
8664
8665 * configure.in: New variable HAVE_UINTPTR_T.
8666 * configure, config.in: Regenerated.
8667
8668 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
8669
8670 Fix PR build/1097.
8671 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8672
8673 2003-02-25 Andrew Cagney <cagney@redhat.com>
8674
8675 * frame.c (get_prev_frame): Add comment on check for
8676 inside_entry_func. Only check for inside_entry_file when not a
8677 dummy and not a sentinel. Check that the new frame is not inner
8678 to the old frame.
8679
8680 2003-02-25 Andrew Cagney <cagney@redhat.com>
8681
8682 * frame.c (frame_debug): New variable.
8683 (_initialize_frame): Add "set/show debug frame" command.
8684 (get_prev_frame): When frame_debug, print reason why unwind
8685 failed.
8686
8687 2003-02-25 Michael Chastain <mec@shout.net>
8688
8689 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8690 to avoid uintptr_t definition problems.
8691
8692 2003-02-25 David Carlton <carlton@math.stanford.edu>
8693
8694 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8695 (SYMBOL_LINKAGE_NAME): Ditto.
8696 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8697 SYMBOL_LINKAGE_NAME.
8698 (struct general_symbol_info): Expand comment.
8699 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8700 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8701 (SYMBOL_MATCHES_REGEXP): Ditto.
8702 * symtab.c (symbol_natural_name): New function.
8703 * objfiles.h: Replace all uses of SYMBOL_NAME by
8704 DEPRECATED_SYMBOL_NAME.
8705 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8706 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8707 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8708 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8709 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8710 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8711 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8712 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8713 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8714 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8715 * ada-exp.y: Ditto.
8716 * ada-exp.y: Update copyright.
8717 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8718 * cp-valprint.c: Ditto.
8719
8720 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8721
8722 * infptrace.c (detach): Do not flag error if ptrace detach fails
8723 and errno is set to ESRCH.
8724
8725 2003-02-24 Andrew Cagney <cagney@redhat.com>
8726
8727 * infptrace.c (udot_info): Change type of udot_off to long. Use
8728 paddr when printing udot_off's value.
8729
8730 2003-02-24 David Carlton <carlton@math.stanford.edu>
8731
8732 * symtab.c (make_symbol_overload_list): Only read in partial
8733 symtabs containing a matching partial symbol.
8734
8735 2003-02-24 David Carlton <carlton@math.stanford.edu>
8736
8737 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8738 do the comparison, not strcmp.
8739 * symfile.c (compare_psymbols): Ditto.
8740 * defs.h: Declare strcmp_iw_ordered.
8741 * utils.c (strcmp_iw_ordered): New function.
8742
8743 2003-02-24 Jim Blandy <jimb@redhat.com>
8744
8745 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8746 support, shared libs): Remove my name from here, to better reflect
8747 reality.
8748
8749 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8750
8751 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8752 (target_ops): Add to_have_continuable_watchpoint.
8753 * target.c (update_current_target): Add INHERIT line for
8754 to_have_continuable_watchpoint.
8755 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8756 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8757 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8758 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8759
8760 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
8761
8762 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8763 maintainership.
8764
8765 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8766
8767 * solib.c (solib_open): Call target defined search function after
8768 failing with solib-search-path.
8769 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8770 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8771
8772 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8773
8774 * MAINTAINERS: Add myself to Write After section.
8775
8776 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8777
8778 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8779
8780 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8781
8782 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8783 (m68hc11_add_reggroups): New function.
8784 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8785 (m68hc11_gdbarch_init): Install the reggroups.
8786 (_initialize_m68hc11_tdep): Initialize them.
8787
8788 2003-02-21 James E Wilson <wilson@tuliptree.org>
8789
8790 * MAINTAINERS: Update my email address.
8791
8792 2003-02-21 David Carlton <carlton@math.stanford.edu>
8793
8794 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8795
8796 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
8797
8798 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8799 * symtab.h: Add opaque declarations of struct axs_value and
8800 struct agent_expr.
8801 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8802 (struct location_funcs): New type.
8803 (struct symbol): Add "loc" to aux_value.
8804 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8805 * dwarf2read.c: Include "dwarf2expr.h".
8806 (dwarf2_symbol_mark_computed): New function.
8807 (read_func_scope): Use it.
8808 (var_decode_location): New function.
8809 (new_symbol): Use it.
8810 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8811
8812 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8813 (dwarf2expr_h, dwarf2loc_h): New variables.
8814 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8815 (dwarf2expr.o, dwarf2loc.o): New rules.
8816 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8817 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8818 LOC_COMPUTED_ARG.
8819 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8820 * m2-exp.y (yylex): Likewise.
8821 * printcmd.c (address_info, print_frame_args): Likewise.
8822 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8823 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8824 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8825 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8826 * symtab.c (lookup_block_symbol): Likewise.
8827
8828 2003-02-20 Adam Fedor <fedor@gnu.org>
8829
8830 * symtab.h: Remove objc_specific struct
8831 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8832 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8833 Have language_objc use cplus_specific struct.
8834
8835 2003-02-20 Tom Tromey <tromey@redhat.com>
8836
8837 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8838 TYPE_NAME, when printing a String value. PR java/1075.
8839
8840 2003-02-20 Adam Fedor <fedor@gnu.org>
8841
8842 * objc-lang.h (find_methods): Remove declaration.
8843 * objc-lang.c (find_methods): Make static.
8844
8845 2003-02-20 Christopher Faylor <cgf@redhat.com>
8846
8847 * win32-nat.c (get_image_name): Check return value from
8848 ReadProcessMemory.
8849 (child_xfer_memory): Ditto.
8850
8851 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
8852
8853 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8854 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8855 '${exec_prefix}' (in addition to the expansion thereof) as
8856 relocatable.
8857 * configure: Rebuilt.
8858
8859 2003-02-20 David Carlton <carlton@math.stanford.edu>
8860
8861 * symtab.c (search_symbols): Revert the search_symbols part of my
8862 2002-12-23 patch. Add comment.
8863
8864 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8865
8866 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8867 * dbxread.c (elfstab_build_psymtabs): Don't call
8868 install_minimal_symbols.
8869 (stabsect_build_psymtabs): Likewise.
8870 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8871 earlier.
8872 * somread.c (som_symfile_read): Call install_minimal_symbols
8873 and do_cleanups earlier.
8874 * nlmread.c (nlm_symfile_read): Likewise.
8875 * mdebugread.c (elfmdebug_build_psymtabs): Call
8876 install_minimal_symbols and make appropriate cleanups.
8877
8878 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8879
8880 * solib.c (reload_shared_libraries): New function.
8881 (_initialize_solib): Add callbacks for ``set solib-search-path''
8882 and ``set solib-absolute-prefix''.
8883
8884 2003-02-20 David Carlton <carlton@math.stanford.edu>
8885
8886 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8887 expand comment.
8888 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8889 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8890 * ada-typeprint.c (ada_typedef_print): Ditto.
8891 * ax-gdb.c (gen_var_ref): Ditto.
8892 * breakpoint.c (print_one_breakpoint): Ditto.
8893 * buildsym.c (finish_block): Ditto.
8894 * c-valprint.c (c_val_print): Ditto.
8895 * expprint.c (print_subexp): Ditto.
8896 * findvar.c (locate_var_value): Ditto.
8897 * infcmd.c (jump_command): Ditto.
8898 * linespec.c (decode_line_2, decode_compound): Ditto.
8899 * maint.c (maintenance_translate_address): Ditto.
8900 * objc-lang.c (compare_selectors, compare_classes): Ditto.
8901 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8902 Ditto.
8903 * p-valprint.c (pascal_val_print): Ditto.
8904 * stabsread.c (define_symbol): Ditto.
8905 * stack.c (print_frame, frame_info, print_block_frame_locals)
8906 (print_frame_arg_vars, return_command): Ditto.
8907 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8908 * symmisc.c (print_symbol): Ditto.
8909 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8910 (compare_search_syms, print_symbol_info, print_msymbol_info)
8911 (rbreak_command): Ditto.
8912 * tracepoint.c (tracepoints_info): Ditto.
8913 * typeprint.c (typedef_print): Ditto.
8914 * valops.c (value_of_variable, hand_function_call): Ditto.
8915 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8916 * ada-typeprint.c: Update Copyright.
8917 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8918 * tracepoint.c, cli/cli-cmds.c: Ditto.
8919
8920 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8921
8922 * frame.c (generic_unwind_get_saved_register): Make non-static.
8923 * frame.h (generic_unwind_get_saved_register): Declare.
8924 * mips-tdep.c (read_next_frame_reg): Fetch register from
8925 current regcache when frame is NULL.
8926 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8927 that must be NULL.
8928 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8929 instead of frame_register_unwind().
8930
8931 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8932
8933 * remote-sim.c (gdbsim_insert_breakpoint)
8934 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8935 code.
8936
8937 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8938
8939 * remote.c (_initialize_remote): Add commands "set/show remote
8940 hardware-watchpoint-limit" and "set/show remote
8941 hardware-breakpoint-limit".
8942 (remote_hw_watchpoint_limit): Initialize to -1.
8943 (remote_hw_breakpoint_limit): Ditto.
8944 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8945
8946 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8947
8948 * coff-pe-read.c: New file - support reading of minimal symbols from a
8949 portable executable using the export table.
8950 * coff-pe-read.h: New file.
8951 * coffread.c: Include coff-pe-read.h.
8952 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8953 debugging symbols found.
8954 * Makefile.in (SFILES): Add coff-pe-read.o.
8955 (coff_pe_read_h): Define.
8956 (COMMON_OBS): Add coff-pe-read.o.
8957 (coffread.o): Add coff_pe_read_h dependency.
8958 (coff-pe-read.o): New target.
8959
8960 2003-02-19 David Carlton <carlton@math.stanford.edu>
8961
8962 * Makefile.in (SFILES): Add block.c.
8963 (block_h): New.
8964 (COMMON_OBS): Add block.o.
8965 (block.o): New.
8966 (x86-64-tdep.o): Add $(block_h).
8967 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8968 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8969 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8970 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8971 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8972 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8973 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8974 * value.h: Add opaque declaration for struct block.
8975 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8976 * ada-lang.h: Ditto.
8977 * x86-64-tdep.c: #include "block.h"
8978 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8979 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8980 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8981 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8982 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8983 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8984 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8985 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8986 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8987 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8988 * symtab.c (block_function): Ditto.
8989 (contained_in): Ditto.
8990 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8991 block.h. Add opaque declaration for struct block.
8992 * symtab.h: Move block_function and contained_in declarations to
8993 block.h. Add opaque declarations for struct block, struct
8994 blockvector.
8995 (struct block): Move to block.h.
8996 (struct blockvector): Ditto.
8997 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8998 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8999 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9000 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9001 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9002 Ditto.
9003 * block.c: New file.
9004 * block.h: New file.
9005
9006 2003-02-19 Theodore A. Roth <troth@openavr.org>
9007
9008 * avr-tdep.c (avr_extract_return_value): Remove function.
9009 (avr_store_return_value): Remove function.
9010 (avr_extract_struct_value_address): Remove function.
9011 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9012
9013 2003-02-19 Andrew Cagney <ac131313@redhat.com>
9014
9015 * rs6000-tdep.c: Include "gdb_assert.h".
9016 (registers_e500): Add "acc" and "spefscr".
9017 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9018 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9019 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9020 really is "r0".
9021 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9022
9023 2003-02-18 Keith Seitz <keiths@redhat.com>
9024
9025 * Makefile.in: Add gdbtk-interps.c.
9026
9027 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9028
9029 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9030 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9031
9032 2003-02-18 Andrew Cagney <cagney@redhat.com>
9033
9034 * symtab.h (struct objfile): Add opaque declaration.
9035
9036 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
9037
9038 From Jim Ingham <jingham@apple.com>:
9039 * dbxread.c (process_one_symbol): Use last_function_start rather
9040 than function_start_offset to find the real beginning of the
9041 current function. The latter is just the text section offset on
9042 some systems, the former is always the real function start.
9043
9044 2003-02-17 Andrew Cagney <cagney@redhat.com>
9045
9046 * configure.in: Revert ${target} != ${host}.
9047
9048 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9049
9050 * configure.in (Makefile): Use the test ${target} != ${host},
9051 instead of the absence of the "nm.h" file, to determine of the
9052 configuration non-native.
9053 * configure: Regenerate.
9054
9055 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
9056
9057 From Brian Ford <ford@vss.fsi.com>
9058
9059 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9060 conditionalize tui_active test.
9061 (lookup_cmd_1): Ditto.
9062
9063 2003-02-14 Mark Kettenis <kettenis@gnu.org>
9064
9065 * configure.in: Add check for _etext.
9066 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9067 available.
9068 * config.in, configure: regenerated.
9069
9070 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
9071
9072 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9073
9074 2003-02-14 Andrew Cagney <ac131313@redhat.com>
9075
9076 * main.c (tui_version): Delete variable.
9077 (captured_main): When --tui, set interpreter_p to "tui" instead of
9078 enabling tui_version.
9079 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9080 tui_version.
9081 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9082 * cli/cli-cmds.c (disassemble_command): Ditto.
9083 * defs.h (tui_version): Delete declaration.
9084 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9085 (tui-interp.o): Add rules.
9086 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9087
9088 2003-02-14 Christopher Faylor <cgf@redhat.com>
9089
9090 * win32-nat.c (register_loaded_dll): Correctly set address range for
9091 just-loaded dll.
9092
9093 2003-02-12 Jason Molenda (jmolenda@apple.com)
9094
9095 * symmisc.c (print_objfile_statistics): Include information about
9096 the number of psymtabs and symtabs in each object file.
9097
9098 2003-02-13 Keith R Seitz <keiths@redhat.com>
9099
9100 * main.h (struct captured_main_args): Add interpreter_p.
9101 * main.c (captured_main): Initialize interpreter_p from context.
9102 * gdb.c (main): Set interpreter_p argument.
9103 * Makefile.in (gdb.o): Add dependency for interps.h.
9104
9105 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9106
9107 * event-top.c (cli_command_loop): Delete declaration.
9108 (_initialize_event_loop): Delete function setting event_loop_hook.
9109 * event-top.h (cli_command_loop): Declare. Update copyright.
9110 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9111 * interps.c (current_interp_command_loop): When event_loop_p, call
9112 cli_command_loop.
9113
9114 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9115
9116 * interps.h (interp_command_loop_ftype): Change return type to
9117 void.
9118
9119 2003-02-12 Michal Ludvig <mludvig@suse.cz>
9120
9121 * x86-64-tdep.c (x86_64_extract_return_value)
9122 (x86_64_store_return_value): Use regcache instead of regbuf.
9123 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9124 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9125
9126 2003-02-11 Andrew Cagney <ac131313@redhat.com>
9127
9128 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9129 * aclocal.m4: Regenerate.
9130 * configure: Regenerate.
9131
9132 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9133 TCL_LD_SEARCH_FLAGS.
9134
9135 2003-02-10 Michal Ludvig <mludvig@suse.cz>
9136
9137 * dwarf2cfi.c: Reindented.
9138
9139 2003-02-09 Andrew Cagney <ac131313@redhat.com>
9140
9141 * interps.c (clear_interpreter_hooks): Convert function definition
9142 to ISO C.
9143
9144 2003-02-07 David Carlton <carlton@math.stanford.edu>
9145
9146 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9147
9148 2003-02-07 Kevin Buettner <kevinb@redhat.com>
9149
9150 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9151 (struct type): ...to here.
9152 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9153 field.
9154 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9155 (replace_type): Set length on all type variants for a given type.
9156
9157 2003-02-07 Andrew Cagney <ac131313@redhat.com>
9158
9159 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9160 <sys/stat.h>.
9161 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9162
9163 2003-02-06 Andrew Cagney <ac131313@redhat.com>
9164
9165 * Makefile.in (symm-nat.o): Update dependencies.
9166 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9167 (lynx-nat.o, ia64-linux-nat.): Ditto.
9168 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9169 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9170 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9171
9172 * Makefile.in (inflow_h): Define.
9173 (procfs.o, inflow.o, procfs.o): Update dependencies.
9174 * inftarg.c (child_stop): Delete extern declaration of
9175 inferior_process_group. Include "inflow.h".
9176 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9177 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9178 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9179 (our_process_group, inferior_process_group): Extern declarations.
9180
9181 * procfs.c: Include "gdb_assert.h".
9182
9183 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9184 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9185 * jv-typeprint.c (java_type_print_base): Ditto.
9186 * typeprint.c (typedef_print): Eliminate STREQ.
9187 * cli/cli-script.c (define_command, define_command): Ditto.
9188 * main.c (captured_main): Ditto.
9189 * values.c (lookup_internalvar): Ditto.
9190 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9191 within `if' conditional.
9192 * linespec.c (decode_line_2): Ditto.
9193 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9194 (bfd_openw_with_cleanup): Ditto.
9195
9196 2003-02-07 Mark Kettenis <kettenis@gnu.org>
9197
9198 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9199 legacy_extract_return_value and store_return_value to
9200 legacy_return_value.
9201
9202 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9203
9204 * win32-nat.c (get_relocated_section_addrs): New function. Find
9205 section load addresses for symbol handling in relocated DLLs.
9206 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9207
9208 2003-02-05 Fred Fish <fnf@intrinsity.com>
9209
9210 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9211 '=' and '!='.
9212 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9213 with '&' and '=='.
9214 (angel_RDI_info): Ditto.
9215 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9216 with '&' and '!='.
9217 (threads_continue_all_with_signals): Ditto.
9218
9219 2003-02-05 Jim Ingham <jingham@apple.com>
9220 Keith Seitz <keiths@redhat.com>
9221 Elena Zannoni <ezannoni@redhat.com>
9222 Andrew Cagney <ac131313@redhat.com>
9223
9224 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9225 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9226 (SUBDIR_MI_OBS): Add "mi-interp.o".
9227 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9228 (SFILES): Add "interps.c".
9229 (COMMON_OBS): Add "interps.o".
9230 (interps_h, mi_main_h): Define.
9231 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9232 (mi-main.o, main.o, event-top.o): Update dependencies.
9233 * cli/cli-interp.c: New file.
9234 * interps.h, interps.c: New files.
9235 * top.c: (gdb_init): Don't install the default interpreter, handed
9236 by captured_main.
9237 * main.c: Include "interps.h".
9238 (interpreter_p): Note that it should malloc'ed.
9239 (captured_command_loop): Call current_interp_command_loop.
9240 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9241 xfree and xstrdup when updating interpreter_p. Install the
9242 default interpreter. Add hack to stop mi1's copyright notice
9243 being encoded.
9244 * event-top.h (gdb_setup_readline): Declare.
9245 (gdb_disable_readline): Declare.
9246 * event-top.c: Include "interps.h".
9247 (display_gdb_prompt): Call current_interp_display_prompt_p.
9248 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9249 gdb_stdlog, and gdb_stdtarg.
9250 (_initialize_event_loop): Don't call gdb_setup_readline.
9251 * cli-out.c (cli_out_set_stream): New function.
9252 * cli-out.h (cli_out_set_stream): Declare.
9253
9254 2003-02-06 Mark Kettenis <kettenis@gnu.org>
9255
9256 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9257 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9258 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9259 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9260 config/i386/i386v42mp.mt: Removed.
9261
9262 2003-02-05 Mark Kettenis <kettenis@gnu.org>
9263
9264 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9265 GDB_OSABI_SOLARIS.
9266
9267 2003-02-05 Michael Chastain <mec@shout.net>
9268
9269 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9270 2.12.1 and earlier versions.
9271
9272 2003-02-05 Andrew Cagney <ac131313@redhat.com>
9273
9274 Remove orphaned hosts, targets and files.
9275 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9276 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9277 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9278 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9279 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9280 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9281 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9282 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9283 * config/sparc/tm-sp64sim.h: Delete.
9284 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9285 hosts.
9286 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9287 mips*-dec-mach3* targets.
9288
9289 2003-02-04 Michael Chastain <mec@shout.net>
9290
9291 * NEWS: Fix typo: sepcifying -> specifying.
9292
9293 2003-02-04 Michael Chastain <mec@shout.net>
9294
9295 * dwarfread.c: Add documentation on the state of dwarf-1,
9296 looking towards obsoletion.
9297
9298 2003-02-03 Michael Chastain <mec@shout.net>
9299
9300 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9301 gdb/testsuite/gdb.c++/pr-1023.exp.
9302
9303 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9304
9305 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9306 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9307
9308 * utils.c (init_page_info): Delete reference to MPW in comments.
9309 * main.c (captured_main): Delete #ifdef MPW.
9310
9311 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9312
9313 * NEWS: Note that the m32r-*-elf* is obsolete.
9314 * monitor.c (monitor_expect): Obsolete reference to m32r.
9315 * configure.tgt: Mark m32r-*-elf* as obsolete.
9316 * MAINTAINERS: Mark m32k as obsolete.
9317 * m32r-rom.c: Obsolete file.
9318 * config/m32r/m32r.mt: Obsolete file.
9319 * config/m32r/tm-m32r.h: Obsolete file.
9320 * m32r-stub.c: Obsolete file.
9321 * m32r-tdep.c: Obsolete file.
9322
9323 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9324
9325 * NEWS: Mention that the z8k-zilog-none is obsolete.
9326 * MAINTAINERS: Mark z8k as obsolete.
9327 * configure.tgt: Obsolete the z8k-*-coff* target.
9328 * config/z8k/z8k.mt: Obsolete file.
9329 * config/z8k/tm-z8k.h: Obsolete file.
9330 * z8k-tdep.c: Obsolete file.
9331
9332 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9333
9334 * NEWS: Mention that the mn10200-elf is obsolete.
9335 * configure.tgt: Obsolete mn10200-*-* target.
9336 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9337 mention that the mn10200 is obsolete.
9338 * breakpoint.h: Ditto.
9339 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9340 * config/mn10200/mn10200.mt: Obsolete file.
9341 * config/mn10200/tm-mn10200.h: Obsolete file.
9342 * mn10200-tdep.c: Obsolete file.
9343
9344 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9345
9346 * MAINTAINERS: Mark h8500 as obsolete.
9347 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9348 * findvar.c (value_from_register): Ditto.
9349 * h8500-tdep.c: Mark file as obsolete.
9350 * config/h8500/h8500.mt: Ditto.
9351 * config/h8500/tm-h8500.h: Ditto.
9352 * NEWS: Mention that h8500 is obsolete.
9353
9354 2003-02-04 David Carlton <carlton@math.stanford.edu>
9355
9356 * objfiles.c (allocate_objfile): Always set name. Add comment at
9357 start of function.
9358 * jv-lang.c (get_dynamics_objfile): Add comment.
9359
9360 2003-02-04 David Carlton <carlton@math.stanford.edu>
9361
9362 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9363 * printcmd.c (build_address_symbolic): Replace uses of
9364 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9365 SYMBOL_NAME, and asm_demangle.
9366 Update copyright.
9367
9368 2003-02-04 David Carlton <carlton@math.stanford.edu>
9369
9370 * linespec.c (decode_compound): Extract code into
9371 lookup_prefix_sym.
9372 (lookup_prefix_sym): New function.
9373
9374 2003-02-04 David Carlton <carlton@math.stanford.edu>
9375
9376 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9377 FLOAT_COERCION_BADNESS.
9378 * gdbtypes.c (rank_one_type): Replace all uses of
9379 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9380
9381 2003-02-04 Jim Blandy <jimb@redhat.com>
9382
9383 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9384 section, let dwarf_macinfo_section point to it, not
9385 dwarf_loc_section.
9386
9387 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9388
9389 Pointed out by Anton Blanchard <anton@samba.org>.
9390 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9391 (ppc_linux_at_sigtramp_return_path): Use it.
9392
9393 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9394
9395 * defs.h (streq): Add prototype.
9396 * utils.c (streq): New function.
9397
9398 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9399 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9400 * mdebugread.c (new_symbol): Likewise.
9401 * stabsread.c (define_symbol): Likewise.
9402 * coffread.c (process_coff_symbol): Likewise.
9403 * dwarfread.c (new_symbol): Likewise.
9404
9405 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9406 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9407 here.
9408 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9409 SYMBOL_INIT_DEMANGLED_NAME.
9410 * objfiles.c: Include "hashtab.h".
9411 (allocate_objfile): Call htab_set_functions_ex for the
9412 demangled_names_hash.
9413 (free_objfile): Call htab_delete for the demangled_names_hash.
9414 * objfiles.h (struct htab): Add declaration.
9415 (struct objfile): Add demangled_names_hash.
9416 * symfile.c: Include "hashtab.h".
9417 (reread_symbols): Call htab_delete for the demangled_names_hash.
9418 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9419 SYMBOL_NAME in the bcache.
9420 * symtab.c: Include "hashtab.h". Update comments.
9421 (create_demangled_names_hash, symbol_set_names): New functions.
9422 (symbol_find_demangled_name): New function, broken out from
9423 symbol_init_demangled_names.
9424 (symbol_init_demangled_names): Use it.
9425 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9426 (SYMBOL_SET_NAMES): New macro.
9427 (symbol_set_names): Add prototype.
9428
9429 2003-02-03 Jim Blandy <jimb@redhat.com>
9430
9431 Use a single, consistent representation for an empty minimal
9432 symbol table in an objfile.
9433 * objfiles.c (terminate_minimal_symbol_table): New function.
9434 (allocate_objfile): Call it.
9435 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9436 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9437 non-NULL.
9438 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9439 objfile has minimal symbols, compare minimal_symbol_count to zero,
9440 instead of comparing msymbols with NULL.
9441 * objfiles.c (have_minimal_symbols): Same.
9442 * solib-sunos.c (solib_add_common_symbols): Call
9443 terminate_minimal_symbol_table.
9444 * symfile.c (reread_symbols): Same.
9445
9446 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9447
9448 * s390-tdep.c (s390_address_class_type_flags)
9449 (s390_address_class_type_flags_to_name)
9450 (s390_address_class_name_to_type_flags): New functions.
9451 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9452 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9453
9454 2003-02-03 Michael Snyder <msnyder@redhat.com>
9455
9456 * arm-tdep.c: Fix spell-o in comment.
9457
9458 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9459
9460 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9461 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9462 error messages to contain BFD filename.
9463
9464 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9465
9466 Fix PR gdb/742 gdb/743 gdb/877
9467 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9468 (do_mixed_source_and_assembly): Use
9469 make_cleanup_ui_out_tuple_begin_end and
9470 make_cleanup_ui_out_tuple_begin_end.
9471 (do_mixed_source_and_assembly): Ditto.
9472 * thread.c (do_captured_list_thread_ids): Ditto.
9473 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9474 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9475 ui_out_tuple_end): Delete prototypes.
9476 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9477 ui_out_list_end, ui_out_tuple_end): Delete.
9478
9479 From Kevin Buettner <kevinb@redhat.com>:
9480 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9481 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9482 (do_cleanup_table_end): New functions.
9483 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9484 Use cleanups to invoke_ui_out_tuple_end().
9485 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9486 * cli/cli-setshow.c (cmd_show_list): Use
9487 make_cleanup_ui_out_tuple_begin_end.
9488
9489 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9490
9491 * frame.c (frame_unwind_register): New function.
9492 (frame_unwind_unsigned_register): Use.
9493 (frame_unwind_signed_register): Use.
9494 (frame_read_register): New function.
9495 * frame.h (frame_unwind_register): Declare.
9496 (frame_read_register): Declare.
9497
9498 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9499 and frame_unwind_register instead of read_memory, write_register
9500 and deprecated_write_register_bytes.
9501
9502 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9503
9504 * frame.h: Note that namelen can be negative.
9505 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9506 NAME's length.
9507
9508 * NEWS: Mention that the d10v's `regs' command is deprecated.
9509 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9510 (d10v_print_registers_info): New function.
9511 (show_regs): Call d10v_print_registers_info.
9512 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9513
9514 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9515
9516 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9517 lost in the previous patch.
9518
9519 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9520
9521 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9522 * stack.c (print_frame_info_base): Output complete FRAME tuple
9523 for synthesized frames.
9524
9525 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9526
9527 * mips-nat.c (zerobuf): Delete.
9528 (fetch_inferior_registers): Alloc local zerobuf.
9529 (fetch_core_registers): Alloc local zerobuf.
9530 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9531 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9532 * thread-db.c (thread_db_store_registers): Ditto.
9533 * sh-tdep.c (sh_do_register): Ditto.
9534 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9535 * remote-sim.c (gdbsim_store_register): Ditto.
9536 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9537 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9538 * monitor.c (monitor_supply_register): Ditto.
9539 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9540 * mips-nat.c (fetch_inferior_registers): Ditto.
9541 * m68klinux-nat.c (fetch_register): Ditto.
9542 * lynx-nat.c (fetch_inferior_registers): Ditto.
9543 (fetch_inferior_registers): Ditto.
9544 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9545 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9546 (hpux_thread_store_registers): Ditto.
9547 * hppah-nat.c (fetch_register): Ditto.
9548 * hppab-nat.c (fetch_register): Ditto.
9549 * hppa-tdep.c (pa_register_look_aside): Ditto.
9550 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9551 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9552
9553 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9554
9555 * gdbarch.sh: Explictly specify all method levels. When a
9556 variable with an empty level, provide a non-multi-arch default.
9557 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9558 * gdbarch.h: Re-generate.
9559 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9560 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9561
9562 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9563
9564 * defs.h (host_pointer_to_address): Delete declaration.
9565 (address_to_host_pointer): Delete declaration.
9566 * utils.c (host_pointer_to_address): Delete function.
9567 (address_to_host_pointer): Delete function.
9568 * procfs.c (procfs_address_to_host_pointer): New function.
9569 * procfs.c (proc_set_watchpoint): Use.
9570 (procfs_can_use_hw_breakpoint): Update comments.
9571 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9572 (som_solib_add): Use.
9573 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9574 * hppa-tdep.c (unwind_command): Use.
9575
9576 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9577
9578 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9579 strlen d_name.
9580
9581 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9582 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9583 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9584 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9585 (define_symbol): Update.
9586 * symfile.c (generic_load): Remove references to nindy.
9587 * symtab.c: Remove references to nindy.
9588
9589 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9590
9591 * infcmd.c (print_float_info): Delete code conditional on
9592 FLOAT_INFO.
9593 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9594 * config/m68k/nm-apollo68b.h: Ditto.
9595 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9596 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9597 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9598
9599 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9600
9601 * config/i386/tm-i386os9k.h: Removed.
9602
9603 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9604 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9605 they're identical to i[3456]86-*-sysv* now.
9606 * config/i386/i386v32.mh: Removed.
9607 * config/i386/xm-i386v32.h: Removed.
9608 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9609
9610 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9611
9612 * config/i386/i386dgux.mh: Removed.
9613 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9614
9615 * configure.in: Fix typo.
9616 * configure: Regenerated.
9617
9618 2003-01-31 David Carlton <carlton@math.stanford.edu>
9619
9620 * dwarf2read.c (dwarf2_locate_sections): Set
9621 dwarf_ranges_section.
9622
9623 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9624
9625 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9626 * utils.c: Update comments documenting legitimate uses of PTR.
9627
9628 * utils.c: Re-indent.
9629
9630 * config/djgpp/fnchange.lst: Delete nindy files.
9631 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9632 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9633 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9634 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9635 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9636 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9637 * Makefile.in (init.c): Remove nindy references.
9638 (saber_gdb): Delete rule.
9639 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9640 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9641 and a68v-nat.c.
9642 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9643 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9644 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9645 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9646 nindy-share/stop.h.
9647 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9648 * saber.suppress: Delete file.
9649
9650 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
9651
9652 * dbxread.c (stabs_data): New static variable.
9653 (fill_symbuf): Support an in-memory buffer for stabs data.
9654 (stabs_seek): New function.
9655 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9656 (read_ofile_symtab): Use stabs_seek.
9657 (elfstab_build_psymtabs): Take an asection* instead of
9658 an offset and size. Relocate the stabs data if necessary.
9659 Save the section* for dbx_psymtab_to_symtab.
9660 * dwarf2read.c: Add section variables for each debug section.
9661 (dwarf2_locate_sections): Fill them in.
9662 (dwarf2_read_section): Take an asection* argument.
9663 Relocate the section contents if necessary.
9664 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9665 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9666 it to dwarf2_read_section.
9667 (dwarf2_build_frame_info): Update callers.
9668 * elfread.c (elf_symfile_read): Update call to
9669 elfstab_build_psymtabs.
9670 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9671 (DBX_STAB_SECTION): New macro.
9672 * stabsread.h (elfstab_build_psymtabs): Update prototype.
9673 * symfile.c (symfile_dummy_outputs): New function.
9674 (symfile_relocate_debug_section): New function.
9675 * symfile.h (symfile_relocate_debug_section): Add prototype.
9676
9677 2003-01-31 Richard Henderson <rth@redhat.com>
9678
9679 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9680 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9681 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9682 * alpha-tdep.c (alpha_register_name): Add "unique".
9683 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9684 (ALPHA_UNIQUE_REGNUM): New.
9685 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9686
9687 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9688
9689 * README: Remove reference to Ericsson 1800 monitor.
9690 * Makefile.in (remote-es.o): Delete rule.
9691 (ALLDEPFILES): Delete remote-es.c.
9692 * remote-es.c: Delete file.
9693 * config/m68k/es1800.mt: Delete file.
9694 * config/djgpp/fnchange.lst: Update.
9695 * configure.tgt: Delete m68*-ericsson-* target.
9696
9697 2003-01-31 Adam Fedor <fedor@gnu.org>
9698
9699 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9700 Remove duplicate/shadowing variable of same name.
9701
9702 2003-01-30 Jim Blandy <jimb@redhat.com>
9703
9704 * symfile.c (find_separate_debug_file): Assert that the objfile's
9705 directory name we compute ends with a slash, and then assume that
9706 that's so everywhere we use it.
9707
9708 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
9709
9710 * valops.c (value_assign): Flush frame cache after stores to memory
9711 also.
9712
9713 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9714
9715 * Makefile.in (mon960-rom.o): Delete rule.
9716 * mon960-rom.c: Delete file.
9717
9718 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9719
9720 * d10v-tdep.c: Include "frame-unwind.h".
9721 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9722 list.
9723 (next_addr, uses_frame): Delete.
9724 (struct d10v_unwind_cache): Define.
9725 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9726 Use info instead of next_addr and uses_frame globals.
9727 (d10v_frame_init_saved_regs): Delete function.
9728 (d10v_init_extra_frame_info): Delete function.
9729 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9730 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9731 init_frame_pc or frame_saved_pc.
9732 (d10v_pop_frame): Delete function.
9733 (do_d10v_pop_frame): Delete function.
9734 (d10v_frame_chain): Delete function.
9735 (d10v_frame_chain_valid): Delete function.
9736 (d10v_frame_pc_unwind): New function.
9737 (d10v_frame_id_unwind): New function.
9738 (saved_regs_unwinder): New function.
9739 (d10v_frame_register_unwind): New function.
9740 (d10v_frame_pop): New function.
9741 (d10v_frame_unwind): New variable.
9742 (d10v_frame_p): New function.
9743 (d10v_frame_saved_pc): Delete function.
9744 * Makefile.in (d10v-tdep.o): Update dependencies.
9745
9746 2003-01-30 J. Brobecker <brobecker@gnat.com>
9747
9748 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9749 causing some regressions due to a change in the default value
9750 for this macro.
9751
9752 2003-01-29 Richard Henderson <rth@redhat.com>
9753 Elena Zannoni <ezannoni@redhat.com>
9754 Daniel Jacobowitz <drow@mvista.com>
9755
9756 Fix PR gdb/961.
9757 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
9758 variables.
9759 (RANGES_SECTION): New.
9760 (dwarf_ranges_buffer): New variable.
9761 (struct comp_unit_head): Add member "die".
9762 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9763 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9764 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9765 (dwarf2_locate_sections): Likewise.
9766 (dwarf2_build_psymtabs): Read .debug_ranges.
9767 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9768 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9769 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9770 Look for DW_AT_ranges and return the bounding box.
9771
9772 2003-01-29 Brian Ford <ford@vss.fsi.com>
9773
9774 * win32-nat.c (cygwin_pid): Removed as unused.
9775 (child_attach): Try fall back to Cygwin pid.
9776
9777 2003-01-29 Jim Blandy <jimb@redhat.com>
9778
9779 * objfiles.h (struct objfile): Doc fix.
9780
9781 2003-01-29 Andrew Cagney <ac131313@redhat.com>
9782
9783 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9784 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9785 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9786 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9787 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9788 (FRAME_SAVED_PC): Change to a function with predicate.
9789 * gdbarch.h, gdbarch.c: Re-generate.
9790
9791 2003-01-28 Andrew Cagney <ac131313@redhat.com>
9792
9793 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9794
9795 * complaints.c (complain): Delete function.
9796 * complaints.h (struct deprecated_complaint): Delete definition.
9797 (complain): Delete declaration.
9798
9799 2003-01-28 Kevin Buettner <kevinb@redhat.com>
9800
9801 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9802 dummy frames.
9803
9804 2003-01-27 Andrew Cagney <ac131313@redhat.com>
9805
9806 * sentinel-frame.h, sentinel-frame.c: New files.
9807 * Makefile.in (frame.o): Update dependencies.
9808 (SFILES): Add sentinel-frame.c.
9809 (sentinel_frame_h): Define.
9810 (COMMON_OBS): Add sentinel-frame.o.
9811 (sentinel-frame.o): Specify dependencies.
9812 * frame.c: Include "sentinel-frame.h".
9813 (frame_register_unwind): Rewrite assuming that there is always a a
9814 ->next frame.
9815 (frame_register, generic_unwind_get_saved_register): Ditto.
9816 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9817 (create_sentinel_frame, unwind_to_current_frame): New functions.
9818 (get_current_frame): Rewrite using create_sentinel_frame and
9819 unwind_to_current_frame. When possible, always create a frame.
9820 (create_new_frame): Set next to the sentinel frame.
9821 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9822 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9823 ID cache when necessary.
9824 (frame_saved_regs_id_unwind): Use frame_relative_level.
9825 (deprecated_generic_get_saved_register): Use frame_relative_level,
9826 get_frame_saved_regs, get_frame_pc, get_frame_base and
9827 get_next_frame.
9828 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9829 frame_register.
9830
9831 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9832
9833 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9834
9835 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9836
9837 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9838 (maintenance_set_profile_cmd): Use error () instead of warning ().
9839
9840 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9841
9842 * configure.in: Check that -pg works if using --enable-profiling.
9843 Check for monstartup and _mcleanup regardless of --enable-profiling.
9844 * maint.c: Check for monstartup and _mcleanup before using them.
9845 * config.in: Regenerated.
9846 * configure: Regenerated.
9847
9848 2003-01-24 Nick Clifton <nickc@redhat.com>
9849
9850 * Add sh2e support:
9851
9852 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9853
9854 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9855 (sh2e_show_regs): New.
9856 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9857 * config/sh/tm-sh.h: Added sh2e to comments.
9858
9859 2003-01-23 Jim Blandy <jimb@redhat.com>
9860
9861 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9862 symbols found)" message here; we haven't checked for a separate
9863 debug info file yet, so we don't know yet.
9864 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9865 we've looked everywhere. Also, there's no need to print a special
9866 message when we're loading the separate debug info file: the one
9867 symbol_file_add prints is fine.
9868
9869 2003-01-23 Alexander Larsson <alexl@redhat.com>
9870 Jim Blandy <jimb@redhat.com>
9871
9872 Add support for executables whose debug info has been separated
9873 out into a separate file, leaving only a link behind.
9874 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9875 and separate_debug_objfile_backlink.
9876 (put_objfile_before): New declaration.
9877 * symfile.c: #include "filenames.h".
9878 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9879 debug info in a separate file, read that, too. Save the addrs
9880 argument, so we can use it again to read the separated debug info;
9881 syms_from_objfile modifies the table we pass it.
9882 (reread_symbols): After re-reading an objfile, call
9883 reread_separate_symbols to refresh its separate debug info
9884 objfile, if it has one.
9885 (reread_separate_symbols, find_separate_debug_file,
9886 get_debug_link_info, separate_debug_file_exists): New functions.
9887 (debug_file_directory): New global var.
9888 (_initialize_symfile): Initialize debug_file_directory, and
9889 provide the new `set debug-file-directory' command to let the user
9890 change it.
9891 * objfiles.c (free_objfile): If this objfile has its debug info in
9892 a separate objfile, free that one too. If this is itself a
9893 separate debug info objfile, clear our parent's backlink.
9894 (put_objfile_before): New function.
9895 * utils.c (gnu_debuglink_crc32): New function.
9896 * defs.h (gnu_debuglink_crc32): New declaration.
9897 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9898 * configure.in: Handle --with-separate-debug-dir config option.
9899 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9900 * acconfig.h (DEBUGDIR): New macro.
9901 * configure, aclocal.m4, config.in: Regenerated.
9902
9903 2003-01-22 Jim Blandy <jimb@redhat.com>
9904
9905 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9906 like the old symbol_file_add, but taking new arguments: you can
9907 now pass in either a `struct section_addr_info' list to say where
9908 each section is loaded, or a `struct section_offsets' table. Pass
9909 these new arguments through to syms_from_objfile as appropriate.
9910 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9911 with the appropriate quiescent values for the new arguments.
9912
9913 * symfile.c: #include "gdb_assert.h".
9914 (syms_from_objfile): Add the ability to pass in a section offset
9915 table directly, as an alternative to the section_addr_info table.
9916 Document arguments better.
9917 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9918 * symfile.h (syms_from_objfile): Update declaration.
9919 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9920 syms_from_objfile.
9921 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9922
9923 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
9924
9925 Original patch by Tom Tromey <tromey@cygnus.com> and
9926 Jason Molenda <jmolenda@apple.com>.
9927 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9928 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9929 * NEWS: Mention profiling.
9930 * configure.in (--enable-gdbtk): Fix typo.
9931 (--enable-profiling): New. Set PROFILE_CFLAGS.
9932 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9933 Fill in function.
9934 (profiling_state): New variable.
9935 (mcleanup_wrapper): New function.
9936 (_initialize_maint): Remove NOTYET, fix call to
9937 add_setshow_boolean_cmd for "maint set profile".
9938 * configure: Regenerated.
9939
9940 2003-01-21 Martin M. Hunt <hunt@redhat.com>
9941
9942 * Makefile.in (install-gdbtk): Install PNG images too.
9943
9944 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9945
9946 * exec.c (text_start): Delete global variable.
9947 (exec_file_attach): Make text_start local to the function.
9948 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9949 * valops.c (hand_function_call): Delete code that handles
9950 BEFORE_TEXT_END and AFTER_TEXT_END.
9951 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9952 of CALL_DUMMY_LOCATION.
9953 * gdbarch.c: Regenerate.
9954 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9955 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9956 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9957 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9958 (text_end): Delete extern declaration.
9959
9960 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9961
9962 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9963 * blockframe.c (backtrace_below_main): Move to "frame.c".
9964 (frame_chain_valid): Delete check for backtrace_below_main.
9965 (_initialize_blockframe): Delete initialization, move ``set
9966 backtrace-below-main'' command to "frame.c".
9967 (do_flush_frames_sfunc): Delete function.
9968 * frame.c: Include "command.h" and "gdbcmd.h".
9969 (frame_type_from_pc): New function.
9970 (create_new_frame): Use frame_type_from_pc.
9971 (legacy_get_prev_frame): New function.
9972 (get_prev_frame): Rewrite. When an old style frame, call
9973 legacy_get_prev_frame. Otherwize, unwind the PC first.
9974 (_initialize_frame): Add ``set backtrace-below-main'' command.
9975 * Makefile.in (frame.o): Update dependencies.
9976
9977 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9978
9979 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9980 DEPRECATED_REGISTERS_INFO.
9981
9982 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9983
9984 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9985 Maintainers'. Update `Various Maintainers'.
9986
9987 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9988
9989 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9990 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9991 Suppress actual parameters when `-'.
9992 * gdbarch.h, gdbarch.c: Regenerate.
9993
9994 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9995
9996 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9997 code handling dummy frames.
9998
9999 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10000
10001 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10002 (struct frame_unwind): Add field pop.
10003 * frame.h (frame_pop): Declare.
10004 * frame.c (frame_saved_regs_pop): New function.
10005 (trad_frame_unwinder): Add frame_saved_regs_pop.
10006 (frame_pop): New function.
10007 * dummy-frame.c (dummy_frame_pop): New function.
10008 (discard_innermost_dummy): New function.
10009 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10010 (dummy_frame_unwind): Add dummy_frame_pop.
10011 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10012 * valops.c (hand_function_call): Ditto.
10013 * stack.c (return_command): Ditto.
10014
10015 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10016
10017 * cris-tdep.c: Fix function declaration indentation.
10018 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10019 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10020 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10021 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10022 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10023 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10024
10025 2003-01-18 Michael Chastain <mec@shout.net>
10026
10027 * README (Unpacking and Installation -- quick overview):
10028 Warn against ".../gdb-5.3/gdb/configure".
10029
10030 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10031
10032 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10033 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10034 (struct frame_unwind): Declare opaque.
10035 (dummy_frame_p): Declare function.
10036 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10037 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10038 * dummy-frame.c: Include "frame-unwind.h".
10039 (dummy_frame_p): New function.
10040 (dummy_frame_unwind): New variable.
10041 * frame.c: Include "frame-unwind.h".
10042 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10043 to use the new unwind field.
10044 (set_unwind_by_pc): Delete function.
10045 (create_new_frame, get_prev_frame): Set unwind field using
10046 frame_unwind_find_by_pc.
10047 (trad_frame_unwind, trad_frame_unwinder): New variables.
10048 * frame.h (trad_frame_unwind): Declare variable.
10049 (frame_id_unwind_ftype): Delete declaration.
10050 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10051 (struct frame_unwind): Declare opaque.
10052 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10053 register_unwind with a single unwind pointer.
10054 * frame-unwind.h, frame-unwind.c: New files.
10055 * Makefile.in (SFILES): Add frame-unwind.c.
10056 (frame_unwind_h): Define.
10057 (COMMON_OBS): Add frame-unwind.o.
10058 (frame-unwind.o): Specify dependencies.
10059 (frame.o, dummy-frame.o): Update dependencies.
10060
10061 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10062
10063 * ada-valprint.c: Eliminate PTR.
10064 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10065 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10066 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10067 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10068 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10069 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10070 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10071
10072 2003-01-17 Andrew Cagney <ac131313@redhat.com>
10073
10074 * main.c (captured_main): Don't use PTR.
10075 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10076 * gdbtypes.c (lookup_primitive_typename): Ditto.
10077 (lookup_struct_elt_type): Ditto.
10078 * f-valprint.c (info_common_command): Ditto.
10079 (list_all_visible_commons): Ditto.
10080 * jv-typeprint.c (java_type_print_base): Ditto.
10081
10082 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10083 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10084 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10085 i386-interix-nat.c and i386-interix-tdep.c. Rename
10086 m68klinux-nat.c and m68klinux-tdep.c. Rename
10087 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10088 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10089 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10090 * main.c (captured_main): Use xfree, not free.
10091
10092 2003-01-16 Andrew Cagney <ac131313@redhat.com>
10093
10094 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10095 ID back using a parameter.
10096 * frame.c (frame_id_unwind): Update call.
10097 (frame_saved_regs_id_unwind): Update.
10098 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10099 * dummy-frame.h (struct frame_id): Add opaque declaration.
10100 (dummy_frame_id_unwind): Update declaration.
10101
10102 2003-01-15 Andrew Cagney <ac131313@redhat.com>
10103
10104 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10105
10106 2003-01-15 Stephen P. Smith <ischis2@cox.net>
10107
10108 * MAINTAINERS (Stephen P. Smith): Updated email address.
10109
10110 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
10111
10112 Fix PR gdb/898
10113 * breakpoint.c (until_break_command): Add new argument. Use it to
10114 decide whether to stop only at the current frame or not.
10115 * breakpoint.h (until_break_command): Update prototype.
10116 * infcmd.c (until_command): Add new argument to until_break_command
10117 call.
10118 (advance_command): New function.
10119 (_initialize_infcmd): Update help string for 'until' command.
10120 Add new 'advance' command.
10121
10122 2003-01-14 David Carlton <carlton@math.stanford.edu>
10123
10124 * linespec.c (decode_line_1): Normalize comments.
10125 (set_flags): Ditto.
10126 (locate_first_half): Ditto.
10127 (decode_compound): Ditto.
10128 (symtab_from_filename): Ditto.
10129 (decode_all_digits): Ditto.
10130 (decode_dollar): Ditto.
10131 (find_methods): Ditto.
10132 (find_toplevel_char): Ditto.
10133
10134 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10135
10136 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10137 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10138 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10139 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10140 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10141 * language.c, language.h, m32r-tdep.c: Update copyright.
10142 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10143 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10144 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10145 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10146 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10147 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10148
10149 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10150
10151 * stabsread.h (process_later, resolve_cfront_continuation):
10152 Obsolete.
10153 Update copyright years.
10154 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10155 Update copyright year.
10156 * dbxread.c(struct cont_elem): Obsolete.
10157 (process_later, process_now): Obsolete functions.
10158 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10159 Update copyright year.
10160 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10161 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10162 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10163 (parse_partial_symbols): Obsolete cfront support.
10164 * stabsread.c
10165 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10166 macros.
10167 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10168 read_cfront_baseclasses, read_cfront_member_functions,
10169 resolve_cfront_continuation,read_cfront_static_fields,
10170 copy_cfront_struct_fields): Obsolete functions.
10171 (define_symbol, read_one_struct_field): Obsolete cfront support.
10172 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10173 Update Copyright year.
10174
10175 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10176
10177 * stack.c (print_frame_info, print_stack_frame_base_stub,
10178 print_stack_frame_base, show_and_print_stack_frame_stub,
10179 show_and_print_stack_frame, print_only_stack_frame_stub,
10180 print_only_stack_frame): Delete functions.
10181 (print_stack_frame_stub): Call print_frame_info instead of
10182 print_frame_info_base.
10183 (print_frame_info_base): Rename to print_frame_info.
10184 (backtrace_command_1): Call print_frame_info, instead of
10185 print_frame_info_base.
10186 (current_frame_command): Call print_stack_frame, instead of
10187 print_only_stack_frame.
10188 (frame_command): Call print_stack_frame, instead of
10189 show_and_print_stack_frame.
10190 (up_command): Ditto.
10191 (down_command): Ditto.
10192 * frame.h (print_only_stack_frame): Delete prototype.
10193 * infrun.c (normal_stop): Call print_stack_frame, instead of
10194 show_and_print_stack_frame.
10195 * thread.c (info_threads_command): Call print_stack_frame, instead
10196 of print_only_stack_frame.
10197
10198 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10199
10200 * README (Graphical interface to GDB): Update URL. Point at
10201 gdb/links/.
10202
10203 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10204 version match.
10205
10206 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10207
10208 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10209 lines.
10210
10211 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10212
10213 * thread-db.c (attach_thread): Prototype.
10214 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10215 thread information (ti), and valid flags (th_valid, ti_valid).
10216 (attach_thread): Move target_pid_to_str call to after the thread
10217 is added to GDB's list. Initialize the cache.
10218 (thread_get_info_callback, thread_db_map_id2thr)
10219 (thread_db_get_info): New functions.
10220 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10221 (thread_db_store_registers, thread_db_thread_alive)
10222 (thread_db_get_thread_local_address): Use them.
10223 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10224 of calling error() for threads in unknown state.
10225
10226 (clear_lwpid_callback): New function.
10227 (thread_db_resume): Use it to clear the cache.
10228
10229 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10230
10231 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10232 (resume_callback): Remove dead code.
10233
10234 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10235
10236 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10237 predicate.
10238 * gdbarch.h, gdbarch.c: Regenerate.
10239 * stack.c (frame_info): Only initialize the saved registers when
10240 FRAME_INIT_SAVED_REGS_P.
10241 * frame.c (frame_saved_regs_register_unwind): Assert
10242 FRAME_INIT_SAVED_REGS_P.
10243 (deprecated_generic_get_saved_register): Ditto.
10244
10245 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10246
10247 * source.c (openp): Squelch warning about "filename".
10248
10249 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10250
10251 * source.c (openp): If the file does not exist don't necessarily
10252 search the path.
10253
10254 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10255
10256 Fix PR gdb/872.
10257 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10258 (integer_types_same_name_p): New function.
10259 (rank_one_type): Use it.
10260 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10261
10262 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10263
10264 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10265 variables.
10266 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10267 * configure.in: Add --with-sysroot.
10268 * configure: Regenerated.
10269 * main.c (gdb_sysroot): New variable.
10270 (captured_main): Initialize gdb_sysroot.
10271 * defs.h (gdb_sysroot): New extern declaration.
10272 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10273
10274 2003-01-12 Michael Chastain <mec@shout.net>
10275
10276 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10277
10278 2003-01-12 Michael Chastain <mec@shout.net>
10279
10280 * top.c (print_gdb_version): Bump copyright year to 2003.
10281
10282 2003-01-12 David Carlton <carlton@bactrian.org>
10283
10284 * linespec.c (symtab_from_filename): Rename variable 's' to
10285 'file_symtab'.
10286
10287 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10288
10289 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10290 dummy frame.
10291 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10292
10293 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10294
10295 * d10v-tdep.c: Include "gdb_assert.h".
10296 (d10v_store_return_value): Rewrite to match current interface.
10297 (d10v_extract_struct_value_address): Ditto.
10298 (d10v_extract_return_value): Ditto.
10299 (d10v_gdbarch_init): Set store_restore_value,
10300 extract_struct_value_address and extract_return_value.
10301
10302 2003-01-12 J. Brobecker <brobecker@gnat.com>
10303
10304 * hpread.c (set_namestring): New procedure replacing the
10305 SET_NAMESTRING macro.
10306 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10307 by calls to set_namestring.
10308
10309 2003-01-11 J. Brobecker <brobecker@gnat.com>
10310
10311 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10312 a compilation warning.
10313 (hpread_process_one_debug_symbol): Likewise.
10314
10315 2003-01-10 David Carlton <carlton@math.stanford.edu>
10316
10317 * linespec.c (decode_line_1): Rename variable 's' to
10318 'file_symtab'.
10319 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10320 (decode_dollar): Ditto.
10321 (decode_variable): Ditto.
10322 (symbol_found): Ditto.
10323
10324 2003-01-09 Michael Chastain <mec@shout.net>
10325
10326 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10327
10328 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10329
10330 * win32-nat.c (set_process_privilege): New function.
10331 (child_attach): Call set_process_privilege() to enable the
10332 SE_DEBUG_NAME user privilege if available in process token.
10333
10334 2003-01-10 J. Brobecker <brobecker@gnat.com>
10335
10336 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10337 compilation error in the previous revision.
10338
10339 2003-01-09 David Carlton <carlton@math.stanford.edu>
10340
10341 * linespec.c: Update copyright.
10342
10343 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10344
10345 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10346 than inferior_ptid.
10347 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10348
10349 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10350
10351 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10352 Update comments.
10353 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10354 (frame_saved_regs_zalloc): Update.
10355 (frame_saved_regs_register_unwind): Update.
10356 (create_new_frame): Update.
10357 (get_prev_frame): Update.
10358 (frame_extra_info_zalloc): Update.
10359 (deprecated_get_frame_saved_regs): Update.
10360 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10361 * cris-tdep.c: Update comment.
10362
10363 * somsolib.h: Fix function indentation.
10364 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10365 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10366 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10367 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10368 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10369
10370 * infrun.c (follow_fork): Use ISO C definition.
10371 * expprint.c (print_subexp): Use xfree instead of free.
10372 * charset.c: Include "gdb_string.h" instead of <string.h>.
10373 (register_iconv_charsets): Use ISO C definition.
10374 (host_charset, target_charset): Ditto.
10375 * Makefile.in (charset.o): Update dependencies.
10376 (mi-cmd-env.o): Update dependencies.
10377
10378 2003-01-08 Andrew Cagney <cagney@redhat.com>
10379
10380 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10381 get_frame_base.
10382
10383 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10384
10385 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10386 build directories. Save edited gdb output in Mbuild.log. If a
10387 build fails, remove any final GDB executable.
10388
10389 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10390
10391 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10392 replacing hex constants with function names and stripping leading
10393 file name directory prefixes.
10394
10395 2003-01-08 Andrew Cagney <cagney@redhat.com>
10396
10397 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10398 get_frame_base.
10399
10400 2003-01-08 David Carlton <carlton@math.stanford.edu>
10401
10402 * linespec.c (decode_line_1): Move code into decode_variable.
10403 (decode_variable): New function.
10404
10405 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10406
10407 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10408
10409 2003-01-08 Andrew Cagney <cagney@redhat.com>
10410
10411 * cris-tdep.c (cris_frame_init_saved_regs): Use
10412 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10413 saved_regs buffer.
10414 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10415 (sh64_nofp_frame_init_saved_regs): Ditto.
10416 (sh_fp_frame_init_saved_regs): Ditto.
10417 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10418 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10419 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10420 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10421
10422 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10423
10424 * minsyms.c (lookup_minimal_symbol): Update comment.
10425 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10426 (lookup_minimal_symbol_solib_trampoline): Likewise.
10427
10428 2003-01-08 Andrew Cagney <cagney@redhat.com>
10429
10430 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10431 frame_relative_level.
10432
10433 * alpha-tdep.c: Use get_frame_extra_info.
10434 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10435 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10436 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10437 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10438
10439 * alpha-tdep.c: Use get_next_frame.
10440 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10441 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10442 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10443 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10444 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10445 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10446 * xstormy16-tdep.c: Ditto.
10447
10448 2003-01-07 Andrew Cagney <cagney@redhat.com>
10449
10450 * alpha-tdep.c: Use get_frame_base.
10451 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10452 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10453 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10454 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10455 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10456 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10457 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10458 * config/sparc/tm-sparc.h: Ditto.
10459
10460 2003-01-07 Andrew Cagney <cagney@redhat.com>
10461
10462 * frame.c (deprecated_get_frame_context): New function.
10463 (deprecated_set_frame_context): New function.
10464 * frame.h (deprecated_get_frame_context): Declare.
10465 (deprecated_set_frame_context): Declare.
10466 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10467 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10468
10469 2003-01-07 Andrew Cagney <cagney@redhat.com>
10470
10471 * frame.c (deprecated_set_frame_next_hack): New function.
10472 (deprecated_set_frame_prev_hack): New function.
10473 * frame.h (deprecated_set_frame_next_hack): Declare.
10474 (deprecated_set_frame_prev_hack): Declare.
10475 * mcore-tdep.c (analyze_dummy_frame): Use
10476 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10477 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10478
10479 2003-01-07 David Carlton <carlton@math.stanford.edu>
10480
10481 * linespec.c (decode_line_1): Move code into decode_dollar.
10482 (decode_dollar): New function.
10483
10484 2003-01-07 Andrew Cagney <cagney@redhat.com>
10485
10486 * arm-tdep.c (arm_init_extra_frame_info): Use
10487 deprecated_update_frame_base_hack.
10488 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10489 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10490 (fix_frame_pointer): Ditto.
10491 (mn10300_analyze_prologue): Ditto.
10492
10493 2003-01-07 Andrew Cagney <cagney@redhat.com>
10494
10495 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10496 extra_info using frame_extra_info_zalloc.
10497 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10498 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10499 (sh64_init_extra_frame_info): Ditto.
10500 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10501 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10502 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10503 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10504 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10505 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10506 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10507 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10508 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10509 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10510 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10511 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10512
10513 * mn10300-tdep.c (analyze_dummy_frame): Use
10514 deprecated_set_frame_extra_info_hack.
10515 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10516
10517 2003-01-07 J. Brobecker <brobecker@gnat.com>
10518
10519 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10520 class is not scText. These do not define "real" procedures.
10521 (parse_partial_symbols): Likewise.
10522
10523 2003-01-06 Michael Snyder <msnyder@redhat.com>
10524
10525 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10526
10527 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10528
10529 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10530 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10531 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10532 deprecated_frame_xmalloc_with_cleanup.
10533 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10534 deprecated_frame_xmalloc.
10535 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10536 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10537
10538 2003-01-06 Andrew Cagney <cagney@redhat.com>
10539
10540 * x86-64-linux-tdep.c: Include "osabi.h".
10541 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10542
10543 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10544
10545 2003-01-06 Andrew Cagney <cagney@redhat.com>
10546
10547 * MAINTAINERS (Target Instruction Set Architectures): Update
10548 arm-elf. Can be built with -Werror, has been multiarched.
10549
10550 * value.h (unpack_long): Make buffer parameter constant.
10551 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10552 * scm-lang.h (scm_parse): Ditto.
10553 * defs.h (extract_typed_address, extract_address): Ditto.
10554 (extract_long_unsigned_integer): Ditto.
10555 * inferior.h (unsigned_pointer_to_address): Ditto.
10556 (signed_pointer_to_address): Ditto.
10557 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10558 * gdbarch.h, gdbarch.c: Regenerate.
10559 * findvar.c (extract_long_unsigned_integer): Update.
10560 (extract_address): Update.
10561 (extract_typed_address): Update.
10562 (unsigned_pointer_to_address): Update.
10563 * values.c (unpack_long): Update.
10564 (unpack_double): Update.
10565 (unpack_pointer): Update.
10566 (unpack_field_as_long): Update.
10567 * d10v-tdep.c (d10v_pointer_to_address): Update.
10568 * avr-tdep.c (avr_pointer_to_address): Update.
10569 * scm-lang.c (scm_unpack): Update.
10570 * findvar.c (signed_pointer_to_address): Update.
10571
10572 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10573
10574 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10575 since it is in i386-tdep.c.
10576
10577 2003-01-06 J. Brobecker <brobecker@gnat.com>
10578
10579 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10580 failure introduced in the previous change.
10581
10582 2003-01-05 Michael Chastain <mec@shout.net>
10583
10584 * README: Remove references to deleted remote-*.c files:
10585 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10586 remote-nrom.c, remote-os9k.c, remote-udi.c.
10587
10588 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10589
10590 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10591 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10592 i386_get_longjmp_target.
10593
10594 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10595
10596 * arm-tdep.c (prologue_cache): Change to a pointer.
10597 (_initialize_arm_tdep): Allocate prologue_cache.
10598 (check_prologue_cache): Update.
10599 (save_prologue_cache): Update.
10600 (arm_gdbarch_init): Update.
10601
10602 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10603
10604 * stabsread.c (update_method_name_from_physname): Call complaint()
10605 instead of error.
10606
10607 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10608
10609 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10610 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10611 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10612
10613 * blockframe.c: Include "gdbcmd.h" and "command.h".
10614 (backtrace_below_main): New variable.
10615 (file_frame_chain_valid, func_frame_chain_valid)
10616 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10617 (generic_func_frame_chain_valid): Remove functions.
10618 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10619 (_initialize_blockframe): New function.
10620 * Makefile.in (blockframe.o): Update dependencies.
10621 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10622 comment. Call frame_chain_valid ().
10623 * frame.h: Remove old prototypes. Add prototype for
10624 frame_chain_valid and update comments to match.
10625 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10626 Remove old comment.
10627 * gdbarch.h: Regenerated.
10628 * gdbarch.c: Regenerated.
10629
10630 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10631 set_gdbarch_frame_chain_valid.
10632 * avr-tdep.c (avr_gdbarch_init): Likewise.
10633 * cris-tdep.c (cris_gdbarch_init): Likewise.
10634 * frv-tdep.c (frv_gdbarch_init): Likewise.
10635 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10636 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10637 (i386_nw_init_abi): Likewise.
10638 (i386_gdbarch_init): Likewise.
10639 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10640 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10641 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10642 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10643 * mips-tdep.c (mips_gdbarch_init): Likewise.
10644 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10645 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10646 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10647 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10648 * s390-tdep.c (s390_gdbarch_init): Likewise.
10649 * sh-tdep.c (sh_gdbarch_init): Likewise.
10650 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10651 * v850-tdep.c (v850_gdbarch_init): Likewise.
10652 * vax-tdep.c (vax_gdbarch_init): Likewise.
10653 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10654
10655 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10656 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10657 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10658 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10659 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10660 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10661 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10662 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10663
10664 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10665
10666 * Makefile.in (acconfig_h): Remove incorrect macro.
10667 (config_h): Define.
10668 (osabi.o): Update dependencies.
10669 * configure.tgt: Set gdb_osabi based on target triplet.
10670 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10671 * configure: Regenerated.
10672 * config.in: Regenerated.
10673 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10674 (GDB_OSABI_DEFAULT): Define if not already defined.
10675 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10676 (set_osabi_string): New variables.
10677 (gdbarch_register_osabi): Add new OS ABI to
10678 gdb_osabi_available_names.
10679 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10680 (set_osabi, show_osabi): New functions.
10681 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10682
10683 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10684
10685 * arch-utils.c (gdbarch_info_init): Set osabi to
10686 GDB_OSABI_UNINITIALIZED.
10687 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10688 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10689 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10690 * gdbarch.c: Regenerated.
10691 * gdbarch.h: Regenerated.
10692 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10693 there's no BFD.
10694 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10695 * osabi.h (enum gdb_osabi): Move to defs.h.
10696 (gdbarch_init_osabi): Update prototype.
10697 * defs.h (enum gdb_osabi): Moved here.
10698 * Makefile.in: Update dependencies.
10699
10700 * alpha-tdep.h: Don't include "osabi.h".
10701 (struct gdbarch_tdep): Remove osabi member.
10702 * alpha-tdep.c: Include "osabi.h".
10703 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10704 iterate over arches. Update call to gdbarch_init_osabi.
10705 (alpha_dump_tdep): Don't dump osabi.
10706 * alpha-linux-tdep.c: Include "osabi.h".
10707 * alpha-osf1-tdep.c: Include "osabi.h".
10708 * alphafbsd-tdep.c: Include "osabi.h".
10709 * alphanbsd-tdep.c: Include "osabi.h".
10710
10711 * arm-tdep.h: Don't include "osabi.h".
10712 (struct gdbarch_tdep): Remove osabi member.
10713 * arm-tdep.c: Include "osabi.h".
10714 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10715 iterate over arches. Update call to gdbarch_init_osabi.
10716 (arm_dump_tdep): Don't dump osabi.
10717 * arm-linux-tdep.c: Include "osabi.h".
10718 * armnbsd-tdep.c: Include "osabi.h".
10719
10720 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10721 Update call to gdbarch_init_osabi.
10722
10723 * i386-tdep.h: Don't include "osabi.h".
10724 (struct gdbarch_tdep): Remove osabi member.
10725 * i386-tdep.c: Include "osabi.h".
10726 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10727 iterate over arches. Update call to gdbarch_init_osabi.
10728 (i386_dump_tdep): Don't dump osabi.
10729 * i386-linux-tdep.c: Include "osabi.h".
10730 * i386-sol2-tdep.c: Include "osabi.h".
10731 * i386bsd-tdep.c: Include "osabi.h".
10732 * i386gnu-tdep.c: Include "osabi.h".
10733 * i386ly-tdep.c: Include "osabi.h".
10734 * i386nbsd-tdep.c: Include "osabi.h".
10735 * i386obsd-tdep.c: Include "osabi.h".
10736
10737 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10738 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10739 check osabi when iterating over arches. Update call to
10740 gdbarch_init_osabi.
10741 (mips_dump_tdep): Don't dump osabi.
10742
10743 * ns32k-tdep.h: Don't include "osabi.h".
10744 (struct gdbarch_tdep): Remove.
10745 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10746 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10747 allocate tdep. Update call to gdbarch_init_osabi.
10748 (ns32k_dump_tdep): Remove.
10749 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10750 * ns32knbsd-tdep.c: Include "osabi.h".
10751
10752 * ppc-tdep.h: Don't include "osabi.h".
10753 (struct gdbarch_tdep): Remove osabi member.
10754 * rs6000-tdep.c: Include "osabi.h".
10755 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10756 osabi when iterating over arches. Update call to
10757 gdbarch_init_osabi.
10758 (rs6000_dump_tdep): Don't dump osabi.
10759 * ppc-linux-tdep.c: Include "osabi.h".
10760 * ppcnbsd-tdep.c: Include "osabi.h".
10761
10762 * sh-tdep.h: Don't include "osabi.h".
10763 (struct gdbarch_tdep): Remove osabi member.
10764 * sh-tdep.c: Include "osabi.h".
10765 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10766 iterate over arches. Update call to gdbarch_init_osabi.
10767 (sh_dump_tdep): Don't dump osabi.
10768 * shnbsd-tdep.c: Include "osabi.h".
10769
10770 * sparc-tdep.c: Include "osabi.h".
10771 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10772 iterate over arches. Update call to gdbarch_init_osabi.
10773 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10774 tdep structure.
10775
10776 * vax-tdep.h: Don't include "osabi.h".
10777 (struct gdbarch_tdep): Remove.
10778 * vax-tdep.c: Include "osabi.h".
10779 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10780 iterate over arches. Don't allocate tdep. Update call
10781 to gdbarch_init_osabi.
10782 (vax_dump_tdep): Remove.
10783 (_initialize_vax_tdep): Update call to gdbarch_register.
10784
10785 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10786
10787 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10788 entirely.
10789 (breakpoint_re_set_one): Don't fetch the value for a disabled
10790 watchpoint.
10791
10792 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10793
10794 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10795 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10796 (COERCE_FLOAT_TO_DOUBLE): Remove.
10797 * gdbarch.c: Regenerate.
10798 * gdbarch.h: Regenerate.
10799 * Makefile.in: Remove value_h from gdbarch_h.
10800 * valops.c (coerce_float_to_double): New variable.
10801 (default_coerce_float_to_double): Remove.
10802 (standard_coerce_float_to_double): Remove.
10803 (value_arg_coerce): Use coerce_float_to_double.
10804 (_initialize_valops): Add "set coerce-float-to-double".
10805 * value.h (default_coerce_float_to_double): Remove prototype.
10806 (standard_coerce_float_to_double): Remove prototype.
10807
10808 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10809 prototyped.
10810 * mdebugread.c (parse_symbol): Likewise.
10811 * stabsread.c (define_symbol): Mark all functions as prototyped.
10812
10813 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10814 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10815 set_gdbarch_coerce_float_to_double.
10816 * arm-tdep.c (arm_gdbarch_init): Likewise.
10817 * frv-tdep.c (frv_gdbarch_init): Likewise.
10818 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10819 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10820 * mips-tdep.c (mips_gdbarch_init): Likewise.
10821 (mips_coerce_float_to_double): Remove.
10822 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10823 (rs6000_coerce_float_to_double): Remove.
10824 * s390-tdep.c (s390_gdbarch_init): Likewise.
10825 * sh-tdep.c (sh_gdbarch_init): Likewise.
10826 (sh_coerce_float_to_double): Remove.
10827 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10828 (sparc_coerce_float_to_double): Remove.
10829 * v850-tdep.c (v850_gdbarch_init): Likewise.
10830 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10831 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10832 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10833 (hppa_coerce_float_to_double): Remove prototype.
10834 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10835
10836 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10837
10838 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10839
10840 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10841
10842 Suggested by Stewart Brown <sb24@avaya.com>:
10843 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10844 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10845 (c_type_print_varspec_suffix): Likewise.
10846
10847 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10848
10849 * configure.in: Don't set and AC_SUBST SUBDIRS.
10850 * configure: Regenerated.
10851
10852 * configure.in: Remove code dealing with shared libraries.
10853 * Makefile.in: Remove HLDFLAGS and HLDENV.
10854 * configure: Regenerated.
10855
10856 2003-01-04 Andrew Cagney <ac131313@redhat.com>
10857
10858 * frame.c (deprecated_frame_xmalloc): New function.
10859 (deprecated_set_frame_saved_regs_hack): New function.
10860 (deprecated_set_frame_extra_info_hack): New function.
10861 * frame.h (deprecated_frame_xmalloc): Declare.
10862 (deprecated_set_frame_saved_regs_hack): Declare.
10863 (deprecated_set_frame_extra_info_hack): Declare.
10864
10865 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10866
10867 * configure.in: Move code that provides the --enable-gdbtk option
10868 right after the code that handles the --enable-tui option, and
10869 polish it somewhat.
10870 * configure: Regenerated.
10871
10872 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10873 AC_CHECK_FUNCS and remove the old check for pread64.
10874 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10875 * acconfig.h (_GNU_SOURCE): Add.
10876 (HAVE_PREAD64): Remove.
10877 * configure, aclocal.m4, config.in: Regenerated.
10878
10879 2003-01-03 Andrew Cagney <ac131313@redhat.com>
10880
10881 * alpha-tdep.c: Use get_frame_saved_regs.
10882 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10883 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10884 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10885 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10886 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10887
10888 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10889
10890 * configure.in: Remove all use of the SUBDIRS variable; add
10891 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10892 code providing the --enable-multi-ice option, and move it right in
10893 front of the code that checks whether gdbserver is supported.
10894 Polish that too.
10895 * configure: Regenerated.
10896 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10897 @SUBDIRS@.
10898
10899 2003-01-03 Andrew Cagney <cagney@redhat.com>
10900
10901 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10902 * avr-tdep.c, cris-tdep.c: Ditto.
10903 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10904 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10905
10906 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10907
10908 * configure.in: Remove --enable-netrom option.
10909 * configure: Regenerated.
10910
10911 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10912
10913 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10914 declaration for `struct re_pattern_buffer' instead.
10915 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10916
10917 2003-01-03 J. Brobecker <brobecker@gnat.com>
10918
10919 * mdebugread.c (parse_symbol): Count until the stEnd matching
10920 the structure name.
10921
10922 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10923
10924 * configure.in: Remove --with-cpu option.
10925 subscripts. Remove evil changequotes here.
10926 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10927 * config.in, configure: Regenerated.
10928
10929 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10930 * configure.in: Cleanup section that sources GDB and BFD configure
10931 subscripts. Remove evil changequotes here.
10932 * config.in, configure: Regenerated.
10933
10934 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10935
10936 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10937 frame accessor methods.
10938 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10939 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10940 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10941 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10942 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10943 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10944 * z8k-tdep.c: Ditto.
10945
10946 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10947
10948 * configure.in: Remove UI_OUT configuration code.
10949 * ada-lang.c: Update assuming UI_OUT is always true.
10950 * Makefile.in (UIOUT_CFLAGS): Remove.
10951 * configure: Regenerated.
10952 * TODO: Remove blurb about elimination of -DUI_OUT.
10953
10954 * configure.in: Move code that provides the --enable-gdbcli,
10955 --enable-gdbmi options right before the code that handles the
10956 --enable-tui option. Polish a bit.
10957 * configure: Regenerated.
10958
10959 * configure.in: Rewrite check for GNU regex and the
10960 --without-included regex option, and move it into the "Checks for
10961 library functions" section. This makes us use the system regex
10962 again by default on systems with version 2 of the GNU C library.
10963 This was apparently broken.
10964 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10965 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10966 * config.in, configure: Regenerated.
10967
10968 * configure.in: Move code that provides the --enable-tui option
10969 before the "Checks for libraries" section. Polish the code
10970 somewhat and set need_curses to yes if we build the TUI. Rewrite
10971 code that looks for a library providing termcap functionality to
10972 match more closely what's done in the Readline library, and move
10973 it into to the "Checks for libraries" section.
10974 * configure: Regenerated.
10975 * Makefile.in (TERMCAP): Remove variable.
10976 * config/i386/go32.mh (TERMCAP): Remove variable.
10977
10978 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10979
10980 * MAINTAINERS: Mention gdb_mbuild.sh.
10981 * gdb_mbuild.sh: Rewrite.
10982
10983 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10984
10985 * configure.in: Fix typo in last change.
10986 * config.in, configure: Regenerated.
10987
10988 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10989
10990 * valarith.c (value_binop): Delete obsolete code and comments.
10991 * configure.host: Ditto.
10992 * buildsym.h (make_blockvector): Ditto.
10993 * buildsym.c (make_blockvector): Ditto.
10994 * defs.h (enum language): Ditto.
10995 (chill_demangle): Ditto.
10996 * elfread.c (elf_symtab_read): Ditto.
10997 * dwarfread.c (CHILL_PRODUCER): Ditto.
10998 (set_cu_language): Ditto.
10999 (handle_producer): Ditto.
11000 * expprint.c (print_subexp): Ditto.
11001 * gdbtypes.c (chill_varying_type): Ditto.
11002 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11003 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11004 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11005 (chill_varying_type): Ditto.
11006 * language.h (_LANG_chill): Ditto.
11007 * language.c (binop_result_type, integral_type): Ditto.
11008 (character_type, string_type, structured_type): Ditto.
11009 (lang_bool_type, binop_type_check): Ditto.
11010 * stabsread.h (os9k_stabs): Ditto.
11011 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11012 (define_symbol, read_type, read_struct_fields): Ditto.
11013 (read_array_type, read_enum_type, read_huge_number): Ditto.
11014 (read_range_type, start_stabs): Ditto.
11015 * symfile.c (init_filename_language_table): Ditto.
11016 (add_psymbol_with_dem_name_to_list): Ditto.
11017 * symtab.c (symbol_init_language_specific): Ditto.
11018 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11019 * symtab.h (struct general_symbol_info): Ditto.
11020 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11021 * typeprint.c (typedef_print): Ditto.
11022 * utils.c (fprintf_symbol_filtered): Ditto.
11023 * valops.c (value_cast, search_struct_field, value_slice): Delete
11024 obsolete code.
11025 (varying_to_slice): Delete function.
11026 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11027 (varying_to_slice): Delete declaration.
11028 * MAINTAINERS: Update.
11029
11030 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11031
11032 * configure.in: Reorganize "Checks for library functions section"
11033 a bit. Remove check for `btowc' and `isascii' functions.
11034 * configure: Regenerated.
11035
11036 * acconfig.h (_MSE_INT_H): Remove.
11037 * configure.in: Create "Checks for header files" section, and move
11038 appropriate tests there. Don't check for objlist.h, wchar.h,
11039 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11040 misdetection fix. Also add "Checks for types", "Checks for
11041 compiler characteristics" and "Checks for library functions"
11042 sections.
11043 * config.in, configure: Regenerated.
11044
11045 * configure.in: Create "Checks for programs" section, and move
11046 appropriate tests there.
11047
11048 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11049
11050 * configure.in: Create "Checks for libraries" section, and move
11051 appropriate tests there. Cleanup check for wctype in libw. Use
11052 AC_SEARCH_LIBS to see whether we need libsocket.
11053 * configure: Regenerated.
11054
11055 For older changes see ChangeLog-2002
11056 \f
11057 Local Variables:
11058 mode: change-log
11059 left-margin: 8
11060 fill-column: 74
11061 version-control: never
11062 End:
This page took 0.277488 seconds and 4 git commands to generate.