* i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-08-31 Mark Kettenis <kettenis@gnu.org>
2
3 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
4 Only define PTRACE_GET_THREAD_AREA is not already defined.
5 Various style fixes in code and comments and some additional
6 spelling fixes in comments. Move after functions dealing with
7 debug registers.
8 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
9 Fix coding-style.
10
11 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
12 frame_unwind_register_unsigned instead of
13 frame_unwind_unsigned_register.
14
15 2003-08-30 Mark Kettenis <kettenis@gnu.org>
16
17 * configure.in: Search for gethostbyname in libnsl.
18 * configure: Regenerated.
19
20 2003-08-29 Mark Kettenis <kettenis@gnu.org>
21
22 * configure.in: Remove redundant AC_MSG_RESULT in check for
23 uintptr_t in stdint.h.
24 * configure: Regenerated.
25
26 * amd64-nat.h (struct regcache): Add opaque declaration.
27
28 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
29 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
30 Change "register array" to "register cache" in comments.
31 (x86_64_linux_gregset64_reg_offset): New variable.
32 (GETREGS_SUPPLIES): Remove macro.
33 (supply_gregset): Call amd64_supply_native_gregset instead of
34 x86_64_linux_supply_gregset.
35 (fill_gregset): Rename `regno' to `regnum'. Call
36 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
37 (store_regs): Rename `regno' to `regnum'.
38 (store_fpregs): Rename `regno' to `regnum'.
39 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
40 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
41 Reorganize function a bit.
42 (store_inferior_registers): Rename `regno' to `regnum'. Use
43 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
44 Reorganize function a bit.
45 (_initialize_x86_64_linux_nat): New function.
46 * config/i386/x86-64linux.mh.
47
48 2003-08-29 Andrew Cagney <cagney@redhat.com>
49
50 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
51 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
52 (target_remove_watchpoint): Delete macro.
53 (target_insert_watchpoint): Delete macro.
54 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
55 (remote_mips_stopped_by_watchpoint): Delete declaration.
56 (remote_mips_remove_watchpoint): Delete declaration.
57 (remote_mips_set_watchpoint): Delete declaration.
58 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
59 * remote-mips.c (_initialize_remote_mips): Set
60 "to_insert_watchpoint", "to_stopped_by_watchpoint",
61 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
62 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
63 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
64 (mips_stopped_by_watchpoint): Rename
65 remote_mips_stopped_by_watchpoint.
66 (mips_can_hardware_watchpoint): Rename
67 remote_mips_can_use_hardware_watchpoint, update function
68 signature.
69
70 2003-08-29 Mark Kettenis <kettenis@gnu.org>
71
72 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
73 USER_DS. We haven't given them a register number yet.
74
75 * amd64-nat.h: New file.
76 * amd64-nat.c: New file.
77 * amd64fbsd-nat.c: Include "amd64-nat.h".
78 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
79 (amd64fbsd32_r_reg_offset): New variable.
80 (supply_gregset): Simply call amd64_supply_native_gregset.
81 (fill_gregset): Rename `regno' to `regnum'. Simply call
82 amd64_collect_native_gregset.
83 (fill_fpregset): Rename `regno' to `regnum'.
84 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
85 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
86 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
87 `fpregset_t'. Call amd64_supply_native_gregset instead of
88 supply_gregset. Call x86_64_supply_fxsave instead of
89 supply_fpregset.
90 (store_inferior_registers): Rename `regno' to `regnum'. Replace
91 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
92 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
93 `fpregset_t'. Call amd64_collect_native_gregset instead of
94 fill_gregset. Call x86_64_collect_fxsave instead of
95 fill_fpregset.
96 (_initialize_am64fbsd_nat): Initialize
97 amd64_native_gregset32_reg_offset and
98 amd64_native_gregset64_reg_offset.
99 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
100
101 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
102 null pointer. Fix typo in comment.
103
104 * regcache.c (supply_register): Reimplement to call
105 regcache_raw_supply.
106 (regcache_collect): Reimplement by calling regcache_raw_collect.
107
108 2003-08-28 Mark Kettenis <kettenis@gnu.org>
109
110 * regcache.c (register_buffer): Consitify first argument.
111 (regcache_raw_supply, regcache_raw_collect): New
112 functions.
113
114 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
115
116 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
117 by Nathan J. Williams.
118
119 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
120
121 * lin-lwp.c (wait_lwp): New function, copied from
122 stop_wait_callback. Clean up.
123 (stop_wait_callback): Use wait_lwp.
124
125 2003-08-28 Andrew Cagney <cagney@redhat.com>
126
127 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
128 flavour and disassembler options.
129 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
130 (mips_gdbarch_init): Set "print_insn". Delete initialization of
131 deprecated_tm_print_insn_info.
132
133 2003-08-27 Andrew Cagney <cagney@redhat.com>
134
135 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
136 Use target_read_memory.
137 (s390_get_frame_info): Update. Do not reference
138 deprecated_tm_print_insn_info.
139 (s390_check_function_end, s390_is_sigreturn): Ditto.
140
141 2003-08-27 Andrew Cagney <cagney@redhat.com>
142
143 * Makefile.in (cris-tdep.o): Update dependencies.
144 * cris-tdep.c: Include "gdb_assert.h".
145 (cris_gdbarch_init): Set print_insn.
146 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
147 (cris_delayed_get_disassembler): Simplify, directly call the
148 disassembler returned by cris_get_disassembler.
149 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
150 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
151 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
152 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
153 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
154 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
155 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
156 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
157 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
158 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
159 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
160 (gdb_print_insn_sparc): Delete function.
161 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
162 deprecated_tm_print_insn_info.
163 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
164 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
165 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
166 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
167 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
168 * s390-tdep.c (gdb_print_insn_s390): Delete function.
169 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
170 (s390_gdbarch_init): Set print_insn.
171
172 2003-08-27 Andrew Cagney <cagney@redhat.com>
173
174 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
175 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
176 * infcall.c (call_function_by_hand): Convert the entry point
177 address into a code address.
178
179 2003-08-27 Andrew Cagney <cagney@redhat.com>
180
181 * dsrec.c: Include "gdb_string.h".
182 * Makefile.in (dsrec.o): Update dependencies.
183
184 2003-08-27 Michael Chastain <mec@shout.net>
185
186 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
187
188 2003-08-27 Andrew Cagney <cagney@redhat.com>
189
190 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
191 (alpha_osf1_init_abi): Do not set call_dummy_address.
192
193 2003-08-27 David Carlton <carlton@kealia.com>
194
195 From Randolph Chung <tausq@debian.org>:
196 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
197 compiles with -Wformat-nonliteral -Werror.
198
199 2003-08-26 Jim Blandy <jimb@redhat.com>
200
201 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
202 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
203 bfd_lookup_symbol, since we only want symbols in code sections.
204 (look_for_base): Pass zero as the SECT_FLAGS argument to
205 bfd_lookup_symbol, since we're not concerned about which section
206 the symbol is in.
207
208 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
209
210 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
211 we are frameless or the return address register is already known.
212
213 2003-08-26 Andrew Cagney <cagney@redhat.com>
214
215 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
216 in size. Add comments.
217
218 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
219
220 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
221 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
222
223 2003-08-26 Jason Merrill <jason@redhat.com>
224
225 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
226 case out of #ifdef MIPS block.
227
228 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
229
230 PR java/1322
231 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
232 available before calling SECT_OFF_TEXT.
233 * PROBLEMS: Remove description of java/1322.
234
235 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
236
237 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
238 bof, and nat0-nat127 as pseudo-registers.
239 (ia64_frame_cache): New struct used to cache frame info.
240 (ia64_register_reggroup_p): New routine used to override default
241 register grouping so registers without names are still saved and
242 restored.
243 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
244 pseudo values.
245 (ia64_pseudo_register_read): New routine to read pseudo-registers.
246 (ia64_pseudo_register_write): New routine to write pseudo-registers.
247 (ia64_alloc_frame_cache): New routine to create a new
248 ia64_frame_cache.
249 (examine_prologue): Change prototype to add next_frame pointer.
250 Assume frameless until otherwise proven. Verify that the cfm for
251 current frame matches the cfm that should occur for the prologues
252 alloc insn and if equal, mark as not frameless. At end of routine,
253 if not frameless, calculate registers for the previous frame and store
254 in the cache, if a cache is provided.
255 (ia64_skip_prologue): Use new prototype when calling examine_prologue
256 and pass 0 for next_frame.
257 (ia64_store_return_value): Change to use convert_typed_floating()
258 instead of calling ia64_convert_to_raw().
259 (ia64_extract_return_value): Change to use convert_typed_floating()
260 instead of calling ia64_convert_to_virtual().
261 (ia64_frame_cache): New routine to support new frame model.
262 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
263 (ia64_frame_sniffer): Ditto.
264 (ia64_sigtramp_frame_init_saved_regs): Ditto.
265 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
266 (ia64_sigtramp_frame_prev_register): Ditto.
267 (ia64_sigtramp_frame_sniffer): Ditto.
268 (ia64_frame_base_address): Ditto.
269 (ia64_extract_struct_value_address): Change to issue error message.
270 (ia64_frame_align): New routine to align sp.
271 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
272 (ia64_push_arguments): Removed. Logic moved to
273 ia64_push_dummy_call().
274 (ia64_push_return_address): Ditto.
275 (ia64_unwind_dummy_id): New function.
276 (ia64_unwind_pc): Ditto.
277 (ia64_convert_register_p): Ditto.
278 (ia64_register_to_value): Ditto.
279 (ia64_value_to_register): Ditto.
280 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
281 (ia64_register_byte, ia64_register_raw_size): Ditto.
282 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
283 (ia64_saved_pc_after_call): Ditto.
284 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
285 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
286 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
287 (ia64_register_convert_to_raw): Ditto.
288 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
289 (ia64_init_extra_frame_info): Ditto.
290 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
291 (ia64_gdbarch_init): Remove registering of deprecated functions that
292 are no longer used. Add registration of new gdbarch functions.
293 Remove registering deprecated_write_sp. Replace
294 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
295 Delete set_gdbarch_deprecated_register_convertible(),
296 set_gdbarch_deprecated_register_convert_to_virtual(), and
297 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
298 set_gdbarch_deprecated_register_size(),
299 set_gdbarch_deprecated_register_bytes(),
300 set_gdbarch_pcregnum(),
301 set_gdbarch_deprecated_register_byte(),
302 set_gdbarch_deprecated_register_raw_size(),
303 set_gdbarch_deprecated_max_register_raw_size(),
304 set_gdbarch_deprecated_register_virtual_size(),
305 and set_gdbarch_deprecated_max_register_virtual_size() calls.
306 Replace set_gdbarch_deprecated_extract_return_value() with
307 set_gdbarch_extract_return_value(). Remove calls to:
308 set_gdbarch_deprecated_saved_pc_after_call();
309 set_gdbarch_deprecated_frame_chain(),
310 set_gdbarch_deprecated_frame_saved_pc(),
311 set_gdbarch_deprecated_frame_init_saved_regs(),
312 set_gdbarch_deprecated_get_saved_register(),
313 set_gdbarch_deprecated_call_dummy_words(),
314 set_gdbarch_deprecated_sizeof_call_dummy_words(),
315 set_gdbarch_deprecated_init_extra_frame_info(),
316 set_gdbarch_deprecated_frame_args_address(),
317 set_gdbarch_deprecated_frame_locals_address(),
318 and set_gdbarch_deprecated_dummy_write_sp().
319 Add set_gdbarch_convert_register_p(),
320 set_gdbarch_register_to_value(),
321 set_gdbarch_value_to_register(),
322 set_gdbarch_push_dummy_call(),
323 set_gdbarch_frame_align(),
324 set_gdbarch_unwind_dummy_id(),
325 set_gdbarch_unwind_pc(),
326 frame_unwind_append_sniffer(),
327 frame_unwind_append_sniffer(),
328 and frame_base_set_default().
329
330 2003-08-25 Chris Demetriou <cgd@broadcom.com>
331
332 * configure.tgt: Document need for special "mipsisa64" handling.
333 (mipsisa64*-*-linux64): Handle as target linux64.
334 (mipsisa64*-*-*): Handle as target embed64.
335
336 2003-08-18 Michael Chastain <mec@shout.net>
337
338 * PROBLEMS: Document pr gdb/1322, the Java anonymous
339 objfile bug.
340
341 2003-08-24 Mark Kettenis <kettenis@gnu.org>
342
343 * i387-tdep.h: Update copyright date.
344 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
345
346 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
347 CFLAGS games to reflect reality.
348
349 2003-08-24 Andrew Cagney <cagney@redhat.com>
350
351 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
352 GDB_MULTI_ARCH is always non-zero.
353 * osabi.c (_initialize_gdb_osabi): Ditto.
354 (gdbarch_init_osabi): Ditto.
355 * sparc-tdep.c: Ditto for #if code.
356
357 2003-08-23 Mark Kettenis <kettenis@gnu.org>
358
359 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
360 Update comments.
361 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
362 comments.
363 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
364 x86_64_supply_fxsave.
365 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
366 x86_64_supply_fxsave.
367 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
368 x86_64_supply_fxsave.
369
370 2003-08-23 Andreas Jaeger <aj@suse.de>
371
372 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
373 i387_supply_fxsave.
374
375 2003-08-23 Mark Kettenis <kettenis@gnu.org>
376
377 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
378 i387_supply_register.
379 (go32_fetch_registers): Adjust call to i387_supply_fsave.
380 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
381 i387_supply_fsave.
382 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
383 i387_supply_fxsave.
384 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
385 i387_supply_fsave.
386 * i386bsd-nat.c (supply_fpregset): Adjust call to
387 i387_supply_fsave.
388 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
389 call to i387_supply_fxsave. Call i387_supply_fsave instead of
390 supply_fpregset.
391 (store_inferior_registers): Remove extraneous whitespace. Call
392 i387_fill_fsave instead of fill_fpregset.
393 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
394 (supply_fpregset): Likewise.
395 * i386v4-nat.c (supply_fpregset): Adjust call to
396 i387_supply_fsave.
397 * i386-interix-nat.c (supply_fpregset): Adjust call to
398 i387_supply_fsave.
399 * i386-linux-nat.c (supply_fpregset): Adjust call to
400 i387_supply_fsave.
401 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
402 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
403 i387supply_fsave and i387_supply_fxsave.
404 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
405 Incorporate code from `i387_supply_register.
406 (i387_supply_register): Remove.
407 (i387_supply_fxsave): Add `regnum' argument.
408 Update comments.
409 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
410 prototype.
411 (i387_supply_register): remove prototype.
412 Update comments.
413
414 2003-08-22 Michael Chastain <mec@shout.net>
415
416 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
417 Add lines for files in gdb/testsuite/gdb.cp/* that are
418 still not 8.3 unique.
419
420 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
421
422 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
423 TYPE_VPTR_FIELDNO is valid.
424
425 2003-08-19 Mark Kettenis <kettenis@gnu.org>
426
427 * utils.c (set_width_command): Remove prototypes.
428 (set_screen_size): New prototype.
429 (init_page_info): Simplify by fetching the screen size from
430 Readline. Call set_screen_size.
431 (set_screen_size): New function.
432 (set_width): Add missing whitespace in comment.
433 (set_width_command): Call set_screen_size.
434 (set_height_command): New function.
435 (initialize_utils): Fix formatting. Make "set height" command
436 call set_height_command. Remove redundant code that turns off
437 pagination if output isn't a terminal. Remove redundant call to
438 set_width_command.
439
440 2003-08-22 Mark Kettenis <kettenis@gnu.org>
441
442 * sparc64-tdep.h (sparc64_regnum): Fix comment.
443 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
444 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
445 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
446 `case' keyword.
447 (sparc64_register_info): Give the reister with number
448 SPARC64_STATE_REGNUM a name.
449 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
450 %asi and %ccr.
451 (sparc64_push_dummy_call): Take BIAS into account when checking
452 stcak alignment.
453 (sparc_software_single_step): Remove assertions that check whether
454 NPC and NNPC were zero.
455 (sparc_supply_rwindow): Make public. Merge functionality with
456 sparc64_supply_rwindow.
457 (sparc_fill_rwindow): Make public. Merge functionality with
458 sparc64_fill_rwindow.
459 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
460 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
461 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
462 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
463 sparc_supply_rwindow instead of sparc64_supply_rwindow.
464
465 * reggroups.c: Add whitespace after declarations of local
466 variables in functions.
467
468 2003-08-21 Michael Chastain <mec@shout.net>
469
470 * gdbtypes.h: Change array bound type from an int to enum.
471
472 2003-08-21 Andrew Cagney <cagney@redhat.com>
473
474 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
475 * config/sparc/tm-sparc.h: Ditto.
476 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
477 unconditionally.
478 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
479
480 2003-07-13 Mark Kettenis <kettenis@gnu.org>
481
482 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
483 (register_objfile_data, set_objfile_data, objfile_data): New
484 prototypes.
485 * objfiles.c (objfile_alloc_data, objfile_free_data): New
486 prototypes.
487 (allocate_objfile): Call objfile_alloc_data.
488 (free_objfile): Call objfile_free_data.
489 (struct objfile_data): New.
490 (struct objfile_data_registration): New.
491 (struct objfile_data_registry): New.
492 (objfile_data_registry): New variable.
493 (register_objfile_data): New function.
494 (objfile_alloc_data, objfile_free_data): New functions.
495 (set_objfile_data, objfile_data): New functions.
496 * dwarf2-frame.c (dwarf2_frame_data): New variable.
497 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
498 (_initialize_dwarf2_frame): New function and prototype.
499
500 2003-08-21 Andrew Cagney <cagney@redhat.com>
501
502 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
503 a specific architecture.
504 * arch-utils.h (set_architecture_from_arch_mach): Delete
505 declaration.
506 (target_architecture_hook): Delete declaration.
507 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
508 (default_float_format): Assume GDB_MULTI_ARCH.
509 (default_double_format): Assume GDB_MULTI_ARCH.
510 (set_endian_from_file): Delete function.
511 (arch_ok): Delete function.
512 (set_arch): Delete function.
513 (set_architecture_from_arch_mach): Delete function.
514 (set_architecture_from_file): Delete function.
515 (set_architecture): Assume GDB_MULTI_ARCH.
516 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
517
518 2003-08-21 Mark Kettenis <kettenis@gnu.org>
519
520 Rewrite FreeBSD/sparc64 native configuration.
521 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
522 * sparc64fbsd-nat.c: New file.
523 * sparc64fbsd-tdep.c: New file.
524 * sparc64-tdep.c sparc64-tdep.h: New files.
525 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
526 sparc64fbsd-tdep.o): New dependencies.
527 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
528 and sparc64fbsd-tdep.c.
529 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
530 * config/sparc/fbsd.mh: Remove copyright notice.
531 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
532 sparcbsd-nat.o.
533 * config/sparc/fbsd.mt: Remove copyright notice.
534 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
535 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
536 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
537 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
538 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
539 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
540 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
541 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
542 "sparc/tm-sp64.h".
543 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
544 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
545
546 2003-08-21 Michael Chastain <mec@shout.net>
547
548 * symtab.h: Add doco on the space critical structures and
549 some measurements of space usage.
550
551 2003-08-21 Michael Snyder <msnyder@redhat.com>
552
553 * tracepoint.c (trace_dump_command): Trace break address
554 is subject to DECR_PC_AFTER_BREAK.
555 (set_traceframe_context): Make "trace_line" an int.
556 Fixes suggested by Mark Newman <mark.newman@lmco.com>
557
558 2003-08-20 Michael Snyder <msnyder@redhat.com>
559
560 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
561 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
562 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
563 argument passing.
564 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
565 functions, replace sh_push_dummy_call.
566 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
567
568 2003-08-20 Michael Chastain <mec@shout.net>
569
570 * gdbtypes.h (struct main_type): Rearrange to save space.
571
572 2003-08-20 Michael Snyder <msnyder@redhat.com>
573
574 * trad-frame.c: Comment typo fix.
575
576 2003-08-20 Michael Snyder <msnyder@redhat.com>
577 Kevin Buettner <kevinb@redhat.com>
578
579 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
580 (frv_frame_init_saved_regs): Add declaration.
581 (frame_extra_info): Add new field ``saved_regs''.
582 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
583 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
584 Update frame related code.
585 (frv_extract_struct_value_address): Adjust formatting.
586 * Makefile.in (frv-tdep.o): Update dependencies.
587 * config/frv/tm-frv.h (target_insert_watchpoint)
588 (target_remove_watchpoint, target_insert_hw_breakpoint)
589 (target_remove_hw_breakpoint): Delete these macros.
590 (remote_insert_watchpoint, remote_remove_watchpoint)
591 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
592 these declarations.
593
594 2003-08-20 Michael Chastain <mec@shout.net>
595
596 * defs.h (ENUM_BITFIELD): New macro.
597 * symtab.h (ENUM_BITFIELD): Use it.
598 (BYTE_BITFIELD): Remove old macro, which was already disabled.
599
600 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
601
602 * MAINTAINERS (write after approval): Add myself.
603
604 2003-08-18 Andrew Cagney <cagney@redhat.com>
605
606 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
607 * gdbarch.h, gdbarch.c: Re-generate.
608 * infcall.c (call_function_by_hand): Adjust the SP by
609 frame_red_zone_size before allocating any stack space.
610 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
611 * x86-64-tdep.c (x86_64_frame_align): New function.
612 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
613
614 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
615 Remove code adjusting SP so that it skips over the Red Zone.
616
617 2003-08-18 Mark Kettenis <kettenis@gnu.org>
618
619 * NEWS (New native configurations): Mention FreeBSD/amd64.
620
621 2003-08-18 Andrew Cagney <cagney@redhat.com>
622
623 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
624 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
625 "m68k_frame_p".
626 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
627
628 2003-08-18 Mark Kettenis <kettenis@gnu.org>
629
630 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
631
632 2003-08-18 Michal Ludvig <mludvig@suse.cz>
633
634 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
635 Define.
636 * i386-linux-nat.c: Include "linux-nat.h".
637 (child_post_startup_inferior): New function.
638
639 2003-08-18 Mark Kettenis <kettenis@gnu.org>
640
641 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
642 at the start of a frameless function. This probably fixes PR
643 backtrace/1338.
644
645 2003-08-17 Michael Chastain <mec@shout.net>
646
647 * symfile.c (find_sym_fns): Remove special case for apollo target.
648
649 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
650
651 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
652 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
653 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
654 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
655 (linux_supports_tracevforkdone): New function.
656 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
657 TRACEVFORKDONE.
658 (child_follow_fork): Handle vfork.
659 (linux_handle_extended_wait): Likewise. Also handle exec.
660 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
661 * NEWS: Mention fork tracing.
662
663 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
664
665 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
666
667 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
668
669 * Makefile.in (i386-linux-nat.o): Update dependencies.
670 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
671 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
672 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
673 * i386-linux-nat.c: Include "linux-nat.h".
674 (child_post_startup_inferior): New function.
675 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
676 * infptrace.c (kill_inferior): Wrap in #ifdef.
677 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
678 attaching to each LWP.
679 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
680 (init_lin_lwp_ops): Fill in some more operations.
681 * linux-nat.h (linux_enable_event_reporting)
682 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
683 prototypes.
684 * linux-nat.c (linux_enable_event_reporting): New function.
685 (child_post_attach, linux_child_post_startup_inferior)
686 (child_post_startup_inferior, child_follow_fork)
687 (linux_handle_extended_wait, kill_inferior): New functions.
688
689 2003-08-16 Andrew Cagney <cagney@redhat.com>
690
691 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
692 * gdbarch.h, gdbarch.c: Re-generate.
693
694 2003-08-16 Mark Kettenis <kettenis@gnu.org>
695
696 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
697
698 2003-08-16 Andrew Cagney <cagney@redhat.com>
699
700 * NEWS: Mention that "set prompt-escape-char" was deleted.
701 * top.c (get_prompt_1): Delete function.
702 (gdb_prompt_escape):
703 (init_main): Do not clear "gdb_prompt_escape". Delete "set
704 prompt-escape-char" command.
705 (MAX_PROMPT_SIZE): Delete macro.
706 (get_prompt): Simplify, do not call get_prompt_1.
707
708 2003-08-16 Andrew Cagney <cagney@redhat.com>
709
710 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
711 -Werror. -Wformat-nonliteral problems.
712
713 2003-08-15 J. Brobecker <brobecker@gnat.com>
714
715 Further multiarching work mostly for hppa64-*-hpux11:
716 * hppa-tdep.h: New file.
717 * hppa-tdep.c: #include hppa-tdep.c.
718 (hppa32_num_regs): Renamed from hppa_num_regs.
719 (hppa64_num_regs): New constant.
720 (hppa64_call_dummy_breakpoint_offset): New constant.
721 (hppa32_call_dummy_length): New constant.
722 (hppa64_call_dummy_length): New constant.
723 (hppa32_stack_align): Make name 32bit explicit.
724 (hppa32_register_virtual_type): Likewise.
725 (hppa32_extract_return_value): Likewise.
726 (hppa32_use_struct_convention): Likewise.
727 (hppa32_store_return_value): Likewise.
728 (hppa64_register_virtual_type): New function.
729 (hppa64_extract_return_value): New function.
730 (hppa64_use_struct_convention): New function.
731 (hppa64_store_return_value): New function.
732 (hppa_frame_locals_address): Remove declaration, function does
733 not exist anymore.
734 (hppa_register_byte): Add support for PA64 ABI.
735 (hppa_gdbarch_init): Add support for PA64 ABI.
736 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
737 Make name 32bit explicit.
738 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
739 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
740 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
741 (hppa64_hpux_frame_base_before_sigtramp): New function.
742 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
743 * config/pa/tm-hppa64.h: Remove macros that are no longer
744 necessary now that the gdbarch vector is properly setup.
745 Transform some macros into function calls. Some minor cleanup.
746 * config/pa/tm-hppah.h: Update function calls in macros
747 following the function renaming in hppa-hpux-tdep.c.
748 * Makefile.in (hppa_tdep_h): New variable.
749 (hppa-tdep.o): Add dependency over hppa_tdep_h.
750
751 2003-08-14 Michael Snyder <msnyder@redhat.com>
752
753 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
754
755 2003-08-13 J. Brobecker <brobecker@gnat.com>
756
757 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
758 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
759 routine.
760
761 2003-08-13 Michael Snyder <msnyder@redhat.com>
762
763 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
764 (frv_saved_pc_after_call): Use deprecated ftype.
765 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
766 (frv_remote_translate_xfer_address): Remove.
767 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
768
769 2003-08-13 J. Brobecker <brobecker@gnat.com>
770
771 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
772 initialization after the common gdbarch initialization, not before.
773
774 2003-08-13 J. Brobecker <brobecker@gnat.com>
775
776 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
777 (ADDR_BITS_REMOVE): Remove, redundant.
778
779 2003-08-13 J. Brobecker <brobecker@gnat.com>
780
781 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
782 gdbarch method to clear the 2 low bits of text addresses.
783
784 2003-08-12 Andrew Cagney <cagney@redhat.com>
785
786 * Makefile.in (dsrec.o): Update dependencies.
787 * dsrec.c: Include "gdb_assert.h".
788 (make_srec): Use snprintf instead of sprintf, use a literal format
789 string.
790
791 2003-08-12 Andrew Cagney <cagney@redhat.com>
792
793 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
794 FRAME_OBSTACK_ZALLOC.
795
796 2003-08-12 Kevin Buettner <kevinb@redhat.com>
797
798 * i386-tdep.c (i386_gdbarch_init): Enable default support for
799 SSE registers.
800
801 2003-08-10 Mark Kettenis <kettenis@gnu.org>
802
803 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
804 amd64fbsd_sc_reg_offset): Add extern declarations.
805 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
806 declarations.
807
808 2003-08-11 Ben Elliston <bje@wasabisystems.com>
809
810 * MAINTAINERS (write after approval): Update my mail address.
811
812 2003-08-10 Andrew Cagney <cagney@redhat.com>
813
814 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
815
816 2003-08-10 Mark Kettenis <kettenis@gnu.org>
817
818 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
819 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
820 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
821 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
822 i386bsd_sc_reg_offset): Add extern declarations.
823 * i386obsd-nat.c: Include "i386-tdep.h"
824 (_initialize_i386obsd_nat): Remove extern declarations.
825 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
826 declarations.
827 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
828 declarations.
829
830 * i386-tdep.c (i386_register_to_value): Use get_frame_register
831 instead of frame_read_register.
832 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
833 instead of frame_read_register. Use I386_ESP_REGNUM instead of
834 SP_REGNUM.
835 (i386_frame_prev_register): Use frame_unwind_register_unsigned
836 instead of frame_unwind_unsigned_register. Use
837 I386_EFLAGS_REGISTER instead of PS_REGNUM.
838 (i386_get_longjmp_target): Use regcache_read_unsigned_register
839 instead of read_register. Use builtin_type_void_data_ptr instead
840 of builtin_type_void_func_ptr when extracting the address of the
841 jmp_buf.
842 (i386_extract_return_value, i386_store_return_value,
843 i386_pseudo_register_read, i386_pseudo_register_write): Use
844 register_size instead REGISTER_RAW_SIZE.
845
846 2003-08-10 Andrew Cagney <cagney@redhat.com>
847
848 * infcall.c (call_function_by_hand): Use xstrprintf instead of
849 sprintf. Make "name" constant.
850
851 2003-08-10 Mark Kettenis <kettenis@gnu.org>
852
853 * i387-tdep.c (i387_register_to_value): Use get_frame_register
854 instead of frame_read_register.
855 (i387_print_float_info): Use get_frame_register and
856 get_frame_register_unsigned instead of frame_register_read.
857
858 * i386fbsd-nat.c: Include "i386-tdep.h".
859 (child_resume): Make `eflags' an ULONGEST. Use
860 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
861 instead of register_read and register_write.
862
863 * i386bsd-nat.c (fetch_inferior_registers,
864 store_inferior_registers): Don't use && at the end of a line.
865 (_initialize_i386bsd_nat): Fix typo.
866
867 * frame.c (_initialize_frame): Add missing backslash.
868
869 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
870 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
871 and supply_register instead of manipulating the register buffer
872 directly.
873
874 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
875 * config/i386/nm-i386sol2.h
876 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
877
878 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
879 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
880 instructions that GCC likes to mingle into the prologue. Fixes
881 gdb/1253 and gdb/1255.
882
883 2003-08-09 Andrew Cagney <cagney@redhat.com>
884
885 Fix GDB PR cli/926.
886 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
887 * command.h (add_setshow_uinteger_cmd): Declare.
888 * frame.c (set_backtrace_cmd): New function.
889 (show_backtrace_cmd): New function.
890 * frame.c (_initialize_frame): Replace "set/show
891 backtrace-below-main" with "set/show backtrace past-main". Add
892 command "set/show backtrace limit".
893 (backtrace_past_main): Rename "backtrace_below_main".
894 (backtrace_limit): New variable.
895 (get_prev_frame): Update. Check the backtrace_limit.
896
897 2003-08-09 Andrew Cagney <cagney@redhat.com>
898
899 * defs.h (xstrprintf): Declare.
900 * utils.c (xstrprintf): New function.
901 * breakpoint.c (insert_breakpoints): Replace sprintf and
902 non-literal format strings, with xstrprintf and cleanups.
903 (delete_breakpoint,breakpoint_re_set): Ditto.
904 (commands_command, insert_breakpoints): Ditto.
905 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
906 (break_at_finish_command_1): Ditto.
907
908 2003-08-09 Andrew Cagney <cagney@redhat.com>
909
910 * MAINTAINERS (language support): List Adam Fedor as Objective C
911 maintainer.
912
913 2003-08-08 J. Brobecker <brobecker@gnat.com>
914
915 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
916 are now multiarched.
917
918 2003-08-08 J. Brobecker <brobecker@gnat.com>
919
920 * config/pa/tm-hppa64.h: Remove lots of macros that are no
921 longer necessary now that hppa64 is partially multiarch'ed.
922
923 2003-08-08 Andrew Cagney <cagney@redhat.com>
924
925 * interps.c (interp_set): Check for a NULL "old_interp".
926
927 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
928
929 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
930 (install-only): Support DESTDIR.
931 (uninstall): Likewise.
932 (install-gdbtk): Likewise.
933
934 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
935
936 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
937 contains something meaningful at all times.
938
939 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
940
941 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
942
943 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
944
945 * MAINTAINERS (write after approval): Added self.
946
947 2003-08-07 Andrew Cagney <cagney@redhat.com>
948
949 * inferior.h (AT_SYMBOL): Define.
950 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
951 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
952 * mips-tdep.c (mips_call_dummy_address): Delete function.
953 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
954 set call_dummy_address.
955
956 2003-08-07 Andrew Cagney <cagney@redhat.com>
957
958 * language.c (op_error): Delete function.
959 (binop_type_check): Delete function.
960 * language.h (type_op_error, range_op_error): Delete macros.
961 (op_error): Delete declaration.
962
963 2003-08-07 Andrew Cagney <cagney@redhat.com>
964
965 * interps.h (INTERP_MI2, INTERP_MI3): Define.
966
967 2003-08-07 Michal Ludvig <mludvig@suse.cz>
968
969 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
970 (x86_64_push_arguments): Skip the red zone.
971
972 2003-08-05 Andrew Cagney <cagney@redhat.com>
973
974 * reggroups.c (reggroup_next): Check for the final entry.
975
976 2003-08-04 Andrew Cagney <cagney@redhat.com>
977
978 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
979 * cli/cli-script.c (define_command): Call query directly, instead
980 of passing it a buffer.
981 * ocd.c (ocd_error): Pass error a constant format string.
982 * remote-mips.c (mips_error): Use fputs_filtered.
983
984 * solib-svr4.c (_initialize_svr4_solib): Update
985 register_gdbarch_data call.
986 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
987
988 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
989 (register_gdbarch_data): Delete "free" parameter. Update
990 comments.
991 * gdbarch.h, gdbarch.c: Re-generate.
992 * reggroups.c (_initialize_reggroup): Update.
993 * gnu-v3-abi.c (init_gnuv3_ops): Update.
994 * frame-base.c (_initialize_frame_base): Update.
995 * frame-unwind.c (_initialize_frame_unwind): Update.
996 * user-regs.c (_initialize_user_regs): Update.
997 * remote.c (_initialize_remote): Update.
998 * regcache.c (_initialize_regcache): Update.
999
1000 * regcache.c (xfree_regcache_descr): Delete function.
1001 (_initialize_regcache): Update call to register_gdbarch_data.
1002 (init_regcache_descr, init_legacy_regcache_descr): Use
1003 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1004
1005 * remote.c (free_remote_state): Delete function.
1006 (_initialize_remote): Update register_gdbarch_data.
1007 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1008 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1009
1010 2003-08-04 Andrew Cagney <cagney@redhat.com>
1011
1012 * reggroups.c (struct reggroup_el): Define.
1013 (struct reggroups): Delete field "nr_group". Replace array
1014 "group" with a "first" to "last" linked list.
1015 (reggroups_init): Update. Allocate using gdbarch's obstack.
1016 (reggroups_free): Delete function.
1017 (add_group): Update. Add "el" parameter.
1018 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1019 (default_groups): Update.
1020 (reggroup_next): Replace reggroups.
1021 (reggroups_dump): Update.
1022 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1023 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1024 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1025
1026 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1027
1028 * Makefile.in (tui-interp.o): Update dependencies.
1029
1030 2003-08-04 David Carlton <carlton@kealia.com>
1031
1032 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1033 to internal_error call.
1034 * source.c (forward_search_command): Add "%s" format argument.
1035 (reverse_search_command): Ditto.
1036 * top.c (quit_confirm): Ditto.
1037 * cli/cli-setshow.c (do_setshow_command): Ditto.
1038 * cp-valprint.c (cp_print_class_method): Replace
1039 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1040 (cp_print_class_member): Ditto.
1041 * event-top.c (command_line_handler): Ditto.
1042 * linux-proc.c (linux_info_proc_cmd): Ditto.
1043 * p-typeprint.c (pascal_type_print_base): Ditto.
1044 * p-valprint.c (pascal_object_print_class_method): Ditto.
1045 (pascal_object_print_class_member): Ditto.
1046 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1047 * remote.c (remote_cisco_section_offsets): Ditto.
1048 * top.c (command_line_input): Ditto.
1049 * utils.c (vwarning,error_stream,quit): Ditto.
1050 * valprint.c (print_floating,print_binary_chars)
1051 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1052
1053 2003-08-04 Andrew Cagney <cagney@redhat.com>
1054
1055 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1056
1057 2003-08-02 Andrew Cagney <cagney@redhat.com>
1058
1059 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1060 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1061 amd64fbsd-nat.c.
1062
1063 2003-08-02 Andrew Cagney <cagney@redhat.com>
1064
1065 * Makefile.in: Update all dependencies and definitions.
1066
1067 2003-08-02 Adam Fedor <fedor@gnu.org>
1068
1069 * linespec.c (is_objc_method_format): New function
1070 (decode_line_1, locate_first_half): Use it.
1071 Fixes PR objc/1298
1072
1073 2003-08-01 Andrew Cagney <cagney@redhat.com>
1074
1075 * NEWS: Mention that m32r is multi-arch.
1076 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1077 * configure.tgt: Recognize m32r-*-*.
1078 * config/m32r/tm-m32r.h: Delete file.
1079 * config/m32r/m32r.mt: New file.
1080 * m32r-rom.c (m32r_upload_command): Use hostent only when
1081 gethostname succeeds, in order to avoid a compilation
1082 warning.
1083 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1084 compiler warning.
1085
1086 2003-08-01 Michael Snyder <msnyder@redhat.com>
1087
1088 * sh-tdep.c (sh_frame_align): New gdbarch method.
1089 (sh_gdbarch_init): Set up frame_align method.
1090
1091 2003-07-31 Michael Snyder <msnyder@redhat.com>
1092
1093 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1094 which is already covered by the new frames infrastructure.
1095
1096 2003-07-31 Andrew Cagney <cagney@redhat.com>
1097
1098 * user-regs.c (struct user_reg): Add "next" link.
1099 (struct user_regs): Replace "user" with "first" and "last" links.
1100 (append_user_reg): Add pre-allocated "reg" parameter.
1101 (builtin_user_regs): Provide initial value for "last".
1102 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1103 (user_regs_init): Allocate memory from the gdbarch obstack.
1104 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1105 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1106 linked list.
1107 (usernum_to_user_reg): New function.
1108 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1109 (value_of_user_reg): Use usernum_to_user_reg.
1110 (user_regs_free): Delete function.
1111 (_initialize_user_regs): Update register_gdbarch_data call.
1112
1113 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
1114
1115 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1116
1117 2003-07-30 Michael Snyder <msnyder@redhat.com>
1118
1119 * value.h (value_being_returned): Add a struct_addr argument.
1120 * infcall.c (call_function_by_hand): Pass struct_addr to
1121 value_being_returned.
1122 * infcmd.c (print_return_value): Pass zero as struct_addr.
1123 * values.c (value_being_returned): If struct_addr is passed,
1124 use it instead of trying to recover it from the inferior.
1125
1126 2003-07-30 Kevin Buettner <kevinb@redhat.com>
1127
1128 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1129 the prologue analyzer won't need to attempt to extract the pc
1130 value from the woefully incomplete dummy frame.
1131 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1132 possible. Disable code which modifies the frame.
1133
1134 2003-07-28 Andrew Cagney <cagney@redhat.com>
1135
1136 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1137 to level 2.
1138 (annotate_breakpoints_table, annotate_record): Ditto.
1139 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1140 (annotate_field_name_end, annotate_field_value): Ditto.
1141 (annotate_field_end, annotate_frame_source_begin): Ditto.
1142 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1143 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1144 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1145 (annotate_frame_address_end, annotate_frame_address): Ditto.
1146 (annotate_frame_args, annotate_frame_end): Ditto.
1147 (annotate_frame_where, annotate_arg_begin): Ditto.
1148 (annotate_arg_name_end, annotate_arg_value): Ditto.
1149 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1150 (annotate_function_call, annotate_signal_name): Ditto.
1151 (annotate_signal_string, annotate_signal_name_end): Ditto.
1152 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1153 (annotate_value_begin, annotate_value_history_value): Ditto.
1154 (annotate_value_history_end, annotate_value_end): Ditto.
1155 (annotate_display_begin, annotate_display_number_end): Ditto.
1156 (annotate_display_format, annotate_display_expression): Ditto.
1157 (annotate_display_expression_end, annotate_display_value): Ditto.
1158 (annotate_display_end, annotate_array_section_begin): Ditto.
1159 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1160 (annotate_elt, annotate_array_section_end): Ditto.
1161
1162 2003-07-28 Andrew Cagney <cagney@redhat.com>
1163
1164 * regcache.c (struct regcache_descr): Update comments on
1165 nr_raw_registers.
1166 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1167 sizeof_raw_register_valid_p.
1168 (init_regcache_descr): Set nr_raw_registers and
1169 sizeof_raw_register_valid_p before calling
1170 init_legacy_regcache_descr.
1171
1172 2003-07-28 Andrew Cagney <cagney@redhat.com>
1173
1174 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1175 MOD NUM_REGS.
1176
1177 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
1178
1179 * thread.c (info_threads_command): Use get_selected_frame ().
1180 Check that there is at least one non-sentinel frame.
1181
1182 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1183
1184 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1185 (m68hc11_pop_frame): Remove.
1186 (m68hc11_frame_saved_pc): Remove.
1187 (m68hc11_frame_chain): Remove.
1188 (m68hc11_frame_init_saved_regs): Remove.
1189 (m68hc11_init_extra_frame_info): Remove.
1190 (m68hc11_store_struct_return): Remove.
1191 (m68hc11_saved_pc_after_call): Remove.
1192
1193 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1194
1195 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1196 frame unwind information.
1197 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1198 and adapted for frame unwinding.
1199 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1200 (m68hc11_unwind_pc): New function.
1201 (m68hc11_frame_unwind_cache): New function to analyze frames.
1202 (m68hc11_frame_this_id): New function to create new frame struct.
1203 (m68hc11_frame_prev_register): New function to unwind a register from
1204 the frame.
1205 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1206 (m68hc11_frame_p): New function for the above.
1207 (m68hc11_frame_base_address): New function to return fp of frame.
1208 (m68hc11_frame_args_address): Update for frame.
1209 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1210 (m68hc11_unwind_sp): New function.
1211 (m68hc11_unwind_dummy_id): New function.
1212 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1213 calls.
1214
1215 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1216
1217 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1218 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1219 when we are beyond the current pc.
1220
1221 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1222
1223 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1224 from m68hc11_push_arguments.
1225 (m68hc11_push_arguments): Remove.
1226 (m68hc11_push_return_address): Remove.
1227 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1228 handlers; remove deprecated_extra_stack_alignment_needed.
1229
1230 2003-07-27 Andrew Cagney <cagney@redhat.com>
1231
1232 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1233 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1234 REAL_PC and not the pointer.
1235 * hppa-hpux-tdep.c: Include frame.h
1236
1237 2003-07-27 Andrew Cagney <cagney@redhat.com>
1238
1239 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1240 GDB_MULTI_ACH_PARTIAL.
1241
1242 2003-07-27 Andrew Cagney <cagney@redhat.com>
1243
1244 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1245 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1246 operator at start and not end of line.
1247 (decode_prologue): Ditto.
1248 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1249 frame_unwind_register_unsigned instead of
1250 frame_unwind_unsigned_register.
1251 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1252 read_register.
1253 (m32r_push_dummy_call): Use register_size instead of
1254 REGISTER_RAW_SIZE.
1255 (m32r_frame_sniffer): Replace m32r_frame_p.
1256 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1257 * m32r-rom.c (report_transfer_performance): Delete extern
1258 declaration.
1259 (m32r_load, m32r_upload_command): Use print_transfer_performance
1260 instead of report_transfer_performance.
1261 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1262 / add_show_from_set.
1263
1264 2003-07-26 Andrew Cagney <cagney@redhat.com>
1265
1266 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1267 store_return_value and extract_struct_value_address.
1268
1269 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
1270
1271 PR c++/1267
1272 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1273 NULL, default to the section containing PC.
1274
1275 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1276
1277 * NEWS: Mention "regs" deprecated for m68hc11 too.
1278
1279 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1280 (m68hc11_print_register): New function to print out one register.
1281 (m68hc11_print_registers_info): New function to print registers.
1282 (show_regs): Deprecate and use the above.
1283 (m68hc11_gdbarch_init): Install the print_registers_info.
1284
1285 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1286
1287 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1288 that we have a SIGTRAP before returning non-zero.
1289
1290 2003-07-23 Michal Ludvig <mludvig@suse.cz>
1291 Elena Zannoni <ezannoni@redhat.com>
1292
1293 * linespec.c (decode_line_2): Avoid crash if
1294 find_function_start_sal() returns empty record.
1295
1296 2003-07-23 Andreas Schwab <schwab@suse.de>
1297
1298 * ia64-tdep.c (ia64_print_insn): New function.
1299 (ia64_gdbarch_init): Set print_insn to it.
1300 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1301 deprecated_tm_print_insn_info.
1302
1303 2003-07-22 Michael Snyder <msnyder@redhat.com>
1304
1305 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1306 handle 8-bit returns (long long).
1307 (h8300h_extract_return_value): Ditto.
1308 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1309
1310 2003-07-22 Andrew Cagney <cagney@redhat.com>
1311
1312 * gdbarch.c Include "gdb_obstack.h".
1313 (struct gdbarch): Add an "obstack".
1314 (alloc_gdbarch_data): Allocate the gdbarch data using
1315 GDBARCH_OBSTACK_CALLOC.
1316 (free_gdbarch_data): Delete function.
1317 (gdbarch_obstack_zalloc): New function.
1318 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1319 Assert that the architecture is not initialized.
1320 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1321 vector from the obstack.
1322 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1323 architecture obstack.
1324 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1325 (set_gdbarch_data): Assert that the data is not initialized.
1326 (struct gdbarch_data): Delete member "free".
1327 (register_gdbarch_data): Do not initialize "free".
1328 * gdbarch.h, gdbarch.c: Re-generate.
1329
1330 2003-07-22 Andrew Cagney <cagney@redhat.com>
1331
1332 * configure.in (build_warnings): Add -Wformat-nonliteral.
1333 * configure: Re-generate.
1334
1335 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1336
1337 * dwarf2loc.c (locexpr_describe_location): Fix typos.
1338
1339 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1340
1341 * findvar.c (read_var_value): Remove case for thread local storage
1342 variables. It is now entirely handled by the dwarf2 location
1343 expression code.
1344 * printcmd.c (address_info): Ditto.
1345 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1346 enumeration value.
1347 (struct symbol): Remove objfile field, which was used by
1348 LOC_THREAD_LOCAL_STATIC only.
1349 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1350 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1351 usage of objfile pointer.
1352 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1353 thread local variables.
1354 Add include of objfiles.h.
1355 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1356 storage variables.
1357 * Makefile.in (dwarf2loc.o): Update dependencies.
1358
1359 2003-07-22 Andrew Cagney <cagney@redhat.com>
1360
1361 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1362 get_frame_base.
1363 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1364 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1365 (struct value): Add opaque declaration.
1366 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1367
1368 2003-07-21 Andrew Cagney <cagney@redhat.com>
1369
1370 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1371 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1372
1373 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1374
1375 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1376 regcache_cooked_read_unsigned instead of read_register.
1377 (m68hc11_saved_pc_after_call): Likewise.
1378 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1379 instead of write_register.
1380 (m68hc11_register_type): New function.
1381 (m68hc11_register_virtual_type): Remove.
1382 (m68hc11_store_return_value): Convert to use the regcache.
1383 (m68hc11_extract_struct_value_address): Likewise.
1384 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1385 m68hc11_register_type; undeprecate store_return_value and
1386 extract_struct_value_address.
1387
1388 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1389
1390 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1391 and translate to use regcache.
1392 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1393
1394 2003-07-18 Andrew Cagney <cagney@redhat.com>
1395
1396 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1397 * gdbarch.h, gdbarch.c: Re-generate.
1398 * i386-tdep.c (i386_gdbarch_init): Do not set
1399 DWARF2_BUILD_FRAME_INFO.
1400 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1401 unconditionally.
1402 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1403 DWARF2_BUILD_FRAME_INFO.
1404
1405 2003-07-18 Andrew Cagney <cagney@redhat.com>
1406
1407 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1408 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1409
1410 2003-07-18 Andrew Cagney <cagney@redhat.com>
1411
1412 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1413 frame_unwind_address_in_block, instead of frame_pc_unwind.
1414 (dwarf2_frame_cache): Ditto.
1415
1416 2003-07-18 Andrew Cagney <cagney@redhat.com>
1417
1418 * user-regs.h (struct gdbarch): Declare opaque.
1419 * ui-out.h (struct ui_file): Declare opaque.
1420 * dwarf2-frame.h (struct frame_info): Declare opaque.
1421
1422 2003-07-18 Kris Warkentin <kewarken@qnx.com>
1423
1424 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1425 #include "...".
1426 (procfs_meminfo): Change strerror to safe_strerror.
1427 (procfs_can_run): Remove K&R badness.
1428
1429 2003-07-17 Michael Snyder <msnyder@redhat.com>
1430
1431 * remote-sim.c: Comment typo fix.
1432
1433 2003-07-17 Andrew Cagney <cagney@redhat.com>
1434
1435 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1436 configure.
1437 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1438 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1439 GDB_MULTI_ARCH_PARTIAL.
1440
1441 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
1442
1443 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1444 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1445 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1446
1447 2003-07-16 Theodore A. Roth <troth@openavr.org>
1448
1449 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1450 found.
1451 (avr_frame_unwind_cache): Don't unwind FP for main.
1452 Update a comment.
1453 Save the computed prev_sp.
1454 (avr_saved_regs_unwinder): Remove function.
1455 (avr_frame_prev_register): Use PC unwind logic from
1456 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1457
1458 2003-07-16 Andrew Cagney <cagney@redhat.com>
1459
1460 * frame-base.h (frame_base_p_ftype): Delete definition.
1461 (frame_base_append_predicate): Delete declaration.
1462 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1463 (frame_unwind_append_predicate): Delete declaration.
1464 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1465 (append_predicate): Delete parameter "p".
1466 (frame_unwind_append_predicate): Delete function.
1467 (frame_unwind_append_sniffer): Update call to append_predicate.
1468 (frame_unwind_free): Delete function.
1469 (_initialize_frame_unwind): Pass NULL as "free" to
1470 register_gdbarch_data.
1471 (frame_unwind_init): Append the dummy_frame_sniffer.
1472 (frame_unwind_find_by_frame): Simplify.
1473 * frame-base.c (struct frame_base_table): Delete field "p".
1474 (append_predicate): Delete parameter "p".
1475 (frame_base_append_predicate): Delete function.
1476 (frame_base_append_sniffer): Update call to append_predicate.
1477 (frame_base_free): Delete function.
1478 (frame_base_find_by_frame): Simplify.
1479 (_initialize_frame_base): Pass NULL as "free" to
1480 register_gdbarch_data.
1481 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1482 (x86_64_sigtramp_frame_sniffer): Replace
1483 "x86_64_sigtramp_frame_p".
1484 (x86_64_init_abi): Set the frame unwind sniffers.
1485 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1486 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1487 (m68k_gdbarch_init): Set the frame unwind sniffers.
1488 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1489 "i386_sigtramp_frame_p".
1490 (i386_frame_sniffer): Replace "i386_frame_p".
1491 (i386_gdbarch_init): Set the frame unwind sniffers.
1492 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1493 (avr_gdbarch_init): Set the frame unwind sniffers.
1494 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1495 "alpha_sigtramp_frame_p"
1496 (alpha_heuristic_frame_sniffer): Replace
1497 "alpha_heuristic_frame_p".
1498 (alpha_gdbarch_init): Set the frame unwind sniffers.
1499 (alpha_dwarf2_init_abi): Ditto.
1500 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1501 "alpha_debug_frame_p".
1502 (alpha_mdebug_frame_base_sniffer): Replace
1503 "alpha_mdebug_frame_base_p".
1504 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1505 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1506 (d10v_gdbarch_init): Set the frame unwind sniffer.
1507 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1508 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1509 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1510 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1511 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1512 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1513
1514 2003-07-16 Michael Snyder <msnyder@redhat.com>
1515
1516 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1517 should go thru sh_dsp_register_sim_regno, else the dsp regs
1518 will not get the right values.
1519
1520 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1521
1522 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1523 deprecated_store_floating by call to store_typed_floating.
1524 (sh_sh4_register_convert_to_raw): Substitute call to
1525 deprecated_extract_floating by call to extract_typed_floating.
1526
1527 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1528
1529 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1530
1531 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1532
1533 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1534 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1535 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1536 as possible.
1537 (do_pseudo_register): Remove.
1538 (sh_push_dummy_code): New function.
1539 (sh64_store_struct_return): Rename from sh_store_struct_return.
1540 Only called for sh64 now.
1541 (sh_extract_struct_value_address): Regcache'ify.
1542 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1543 and accomodate new tasks.
1544 (sh64_push_return_address): Rename from sh_push_return_address.
1545 Only called for sh64 now.
1546 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1547 Regcache'ify.
1548 (sh3e_sh4_extract_return_value): Regcache'ify.
1549 (sh_default_store_return_value): Ditto.
1550 (sh3e_sh4_store_return_value): Ditto.
1551 (sh_default_register_byte): Remove.
1552 (sh_sh4_register_byte): Remove.
1553 (sh_default_register_raw_size): Remove.
1554 (sh_sh4_register_raw_size): Remove.
1555 (sh_register_virtual_size): Remove.
1556 (sh_sh3e_register_virtual_type): Remove.
1557 (sh_sh3e_register_type): New function.
1558 (sh_sh4_register_virtual_type): Remove.
1559 (sh_sh4_register_type): New function.
1560 (sh_default_register_virtual_type): Remove.
1561 (sh_default_register_type): New function.
1562 (do_fv_register_info): Add parameters to accomodate call from
1563 sh_print_registers_info.
1564 (do_dr_register_info): Ditto.
1565 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1566 Add parameters to accomodate call from sh_print_registers_info.
1567 (sh_do_fp_register): Ditto.
1568 (sh64_do_pseudo_register): Call do_dr_register_info,
1569 do_fv_register_info and sh_do_fp_register with default parameters.
1570 (sh_do_register): Add parameters to accomodate call from
1571 sh_print_registers_info.
1572 (sh_print_register): Ditto.
1573 (sh_print_registers_info): Rename from sh_do_registers_info.
1574 Add parameters to be used as gdbarch_print_registers_info
1575 implementation. Accomodate removed do_pseudo_register function
1576 pointer.
1577 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1578 function pointer. Call sh_print_register with default parameters.
1579 (sh64_do_registers_info): Call sh_print_registers_info instead of
1580 sh_do_registers_info.
1581 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1582 detection of deprecated vs. non-deprecated functionality.
1583 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1584 function pointer assignments by direct function calls.
1585
1586 2003-07-15 Andrew Cagney <cagney@redhat.com>
1587
1588 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1589 (frame_register_unwind, create_new_frame): Ditto.
1590 (legacy_get_prev_frame, get_frame_type): Ditto.
1591 (get_frame_base_address): Use frame_base_find_by_frame.
1592 (get_frame_locals_address): Use frame_base_find_by_frame.
1593 (get_frame_args_address): Use frame_base_find_by_frame.
1594 * frame-base.h (frame_base_sniffer_ftype): Declare.
1595 (frame_base_append_sniffer): Declare.
1596 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1597 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1598 (frame_base_append_sniffer): New function.
1599 (frame_base_append_predicate): Add a NULL sniffer.
1600 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1601 (struct frame_base_table): Add "sniffer".
1602 (frame_base_free): Free the "sniffer" table.
1603 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1604 (frame_unwind_append_sniffer): Declare.
1605 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1606 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1607 (struct frame_unwind_table): Add "sniffer", delete "middle".
1608 (append_predicate): Add "sniffer" parameter, append the sniffer.
1609 (frame_unwind_init): Update append_predicate call.
1610 (frame_unwind_append_sniffer): New function.
1611 (frame_unwind_append_predicate): Update append_predicate call.
1612 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1613
1614 2003-07-15 Andrew Cagney <cagney@redhat.com>
1615
1616 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1617 before code inhibiting repeated unwind attempts. Add to
1618 commentary on that test's problems.
1619 * blockframe.c (inside_main_func): Look for "main" in the minimal
1620 symbol table.
1621 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1622 identical.
1623
1624 2003-07-15 Andrew Cagney <cagney@redhat.com>
1625
1626 * complaints.c (struct explanation): Define.
1627 (struct complaints): Change type of "explanation" to "struct
1628 explanation".
1629 (symfile_explanations): Convert to a "struct explanation" table.
1630 (vcomplaint): Update.
1631
1632 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1633
1634 * x86-64-linux-nat.c (regmap): Removed.
1635 (supply_gregset, fill_gregset): Call
1636 x86_64_linux_(fill,supply)_gregset functions.
1637 * x86-64-linux-tdep.c (USER_*): New defines.
1638 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1639 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1640 New functions.
1641 (fetch_core_registers): Ditto.
1642 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1643 * x86-64-linux-tdep.h: New file.
1644 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1645 and core-regset.o.
1646 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1647
1648 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1649
1650 * x86-64-tdep.c (x86_64_store_return_value): Use
1651 regcache_cooked_write_part instead of regcache_cooked_write.
1652
1653 * configure.host: Add x86_64-*-freebsd*.
1654 * configure.tgt: Add x86_64-*-freebsd*.
1655 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1656 * amd64fbsd-nat.c: New file.
1657 * amd64fbsd-tdep.c: New file.
1658 * config/i386/nm-fbsd64.h: New file.
1659 * config/i386/fbsd64.mh: New file.
1660 * config/i386/fbsd64.mt: New file.
1661
1662 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1663
1664 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1665 `sc_regs_offset' and `sc_fpregs_offset'.
1666 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1667 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1668 (alpha_sigtramp_register_address): Rewrite to use new members of
1669 `struct gdbarch_tdep'.
1670 (alpha_gdbarch_init): Initialize new members of struct
1671 gdbarch_tdep'.
1672 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1673 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1674 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1675 (alphafbsd_pc_in_sigtramp): Implement.
1676 (alphafbsd_sigtramp_offset): New function.
1677 (alphafbsd_sigcontext_addr): New function.
1678 (alphafbsd_init_abi): Initialize signal trampoline related members
1679 of `struct gdbarch_tdep'.
1680 (_initialize_alphafbsd_tdep): Add prototype.
1681
1682 2003-07-11 Theodore A. Roth <troth@openavr.org>
1683
1684 * Makefile.in (install-only): Quote sed expression when generating
1685 transformed_name.
1686
1687 2003-07-11 Richard Henderson <rth@redhat.com>
1688
1689 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1690 * dwarf2-frame.c: Include complaints.h.
1691 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1692 variable initialization; return NULL on error.
1693 (decode_frame_entry): New.
1694
1695 2003-07-11 Andrew Cagney <cagney@redhat.com>
1696
1697 * frame.h (frame_address_in_block): Delete declaration.
1698 * blockframe.c (frame_address_in_block): Delete function.
1699 (get_frame_block): Use get_frame_address_in_block.
1700 (block_innermost_frame): Ditto.
1701 * stack.c (print_frame, backtrace_command_1): Ditto.
1702
1703 * frame.h (get_frame_address_in_block): Declare.
1704 (frame_unwind_address_in_block): Declare.
1705 * frame.c (frame_unwind_address_in_block): New function.
1706 (get_frame_address_in_block): New function.
1707
1708 2003-07-10 Andrew Cagney <cagney@redhat.com>
1709
1710 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1711 pre-default. Note: re-generate has no effect.
1712
1713 2003-07-10 Andrew Cagney <cagney@redhat.com>
1714
1715 * gdbarch.sh: When a variable, but not a function, compare against
1716 0. Fix problem in previous patch.
1717 * gdbarch.c: Re-generate.
1718
1719 2003-07-10 Andrew Cagney <cagney@redhat.com>
1720
1721 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1722 functions against NULL, not 0.
1723 * gdbarch.c: Re-generate.
1724
1725 2003-07-10 Fred Fish <fnf@ninemoons.com>
1726
1727 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1728 null string instead of a null pointer.
1729 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1730
1731 2003-07-09 Michael Snyder <msnyder@redhat.com>
1732
1733 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1734
1735 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1736
1737 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1738 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1739 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1740 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1741 * x86-64-tdep.c: ... from here.
1742
1743 2003-07-09 Andreas Schwab <schwab@suse.de>
1744
1745 * m68k-tdep.h (enum struct_return): Define.
1746 (struct gdbarch_tdep): Add struct_return.
1747 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1748 bytes are padded to the right, not to the left. Pass struct value
1749 address in register %a1, not on stack.
1750 (m68k_use_struct_convention): New function.
1751 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1752 struct_return in tdep to pcc_struct_return.
1753 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1754 reg_struct_return.
1755
1756 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1757
1758 * somread.c (som_symfile_offsets): Fix compilation error.
1759
1760 2003-07-09 Andrew Cagney <cagney@redhat.com>
1761
1762 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1763 Add comments about the checks.
1764
1765 2003-07-08 Andrew Cagney <cagney@redhat.com>
1766
1767 * Makefile.in: Make dependency section headers consistent.
1768 (config_h): Move to $BUILD headers section.
1769 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1770 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1771 (ada-exp.tab.c): Move to YACC/LEX section.
1772 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1773 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1774
1775 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1776
1777 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1778 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1779 of strerror with safe_strerror, use ISO C function definitions,
1780 and replace instances of sprintf with snprintf.
1781
1782 2003-07-07 Andrew Cagney <cagney@redhat.com>
1783
1784 * frame.c (get_prev_frame): Enable check for identical frames.
1785 Update comments. Update error messages.
1786
1787 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1788
1789 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1790
1791 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1792
1793 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1794 sort_symtab_syms, no longer necessary.
1795
1796 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1797
1798 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1799
1800 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1801
1802 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1803 (mips_register_byte): Likewise.
1804
1805 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1806
1807 * Makefile.in (sparc_tdep_h): New.
1808 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1809 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1810 * sparc-linux-nat.c: Include "sparc-tdep.h".
1811 * sparc-nat.c: Likewise.
1812 * sparc-tdep.c: Likewise.
1813 * sparc64nbsd-nat.c: Likewise.
1814 * sparcnbsd-nat.c: Likewise.
1815 * sparcnbsd-tdep.c: Likewise.
1816 * sparc-tdep.h: New file.
1817 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1818 and sparc_npc_regnum.
1819
1820 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1821
1822 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1823 (mips_linux_cannot_store_register): List supported instead of
1824 unsupported registers.
1825
1826 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1827
1828 * disasm.c (dump_insns): Separate instructions from addresses.
1829
1830 2003-07-07 Andreas Schwab <schwab@suse.de>
1831
1832 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1833 dependencies.
1834 * m68k-tdep.c (NUM_FREGS): Delete.
1835 (SIG_PC_FP_OFFSET): Delete.
1836 (TARGET_M68K): Delete.
1837 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1838 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1839 P_MOVEL_SP, P_MOVEML_SP): Define.
1840 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1841 P_TRAP): Delete.
1842 (m68k_register_raw_size): Delete.
1843 (m68k_register_virtual_size): Delete.
1844 (m68k_register_type): Renamed from m68k_register_virtual_type and
1845 add gdbarch argument.
1846 (m68k_store_struct_return): Delete.
1847 (m68k_deprecated_extract_return_value): Delete.
1848 (m68k_deprecated_extract_struct_value_address): Delete.
1849 (m68k_frame_chain): Delete.
1850 (m68k_frame_saved_pc): Delete.
1851 (m68k_fix_call_dummy): Delete.
1852 (m68k_push_dummy_frame): Delete.
1853 (m68k_pop_frame): Delete.
1854 (m68k_extract_return_value): New function.
1855 (m68k_store_return_value): Rewrite using regcache.
1856 (m68k_extract_struct_value_address): Rewrite using regcache.
1857 (m68k_push_dummy_call): New function.
1858 (struct m68k_frame_cache): Define.
1859 (m68k_alloc_frame_cache): New function.
1860 (m68k_analyze_frame_setup): New function.
1861 (m68k_analyze_register_saves): New function.
1862 (m68k_analyze_prologue): New function.
1863 (m68k_skip_prologue): Rewrite using above functions.
1864 (m68k_unwind_pc): New function.
1865 (m68k_frame_cache): New function.
1866 (m68k_frame_this_id): New function.
1867 (m68k_frame_prev_register): New function.
1868 (m68k_frame_unwind): New variable.
1869 (m68k_frame_p): New function.
1870 (m68k_sigtramp_frame_cache): New function.
1871 (m68k_sigtramp_frame_this_id): New function.
1872 (m68k_sigtramp_frame_prev_register): New function.
1873 (m68k_sigtramp_frame_unwind): New variable.
1874 (m68k_sigtramp_frame_p): New function.
1875 (m68k_frame_base_address): New function.
1876 (m68k_frame_base): New function.
1877 (m68k_unwind_dummy_id): New function.
1878 (fill_gregset): Use regcache_collect.
1879 (fill_fpregset): Likewise.
1880 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1881 defined.
1882 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1883 deprecated_init_frame_pc, deprecated_store_struct_return,
1884 deprecated_extract_return_value, deprecated_store_return_value,
1885 deprecated_frame_chain, deprecated_frame_saved_pc,
1886 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1887 deprecated_register_virtual_size,
1888 deprecated_max_register_raw_size,
1889 deprecated_max_register_virtual_size,
1890 deprecated_register_virtual_type, deprecated_register_size,
1891 deprecated_register_byte, deprecated_register_bytes,
1892 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1893 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1894 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1895 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1896 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1897 deprecated_push_dummy_frame, deprecated_pop_frame,
1898 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1899 only if SYSCALL_TRAP is defined. Set extract_return_value,
1900 store_return_value, extract_struct_value_address, register_type,
1901 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1902 predicates.
1903 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1904 M68K_MAX_REGISTER_SIZE): Define.
1905 (struct m68k_sigtramp_info): Define.
1906 (struct gdbarch_tdep): Add get_sigtramp_info.
1907 * m68klinux-nat.c (fetch_register): Use register_size instead of
1908 REGISTER_RAW_SIZE. Don't put assignment in if.
1909 (store_register): Likewise.
1910 (fetch_inferior_registers): Likewise.
1911 (store_inferior_registers): Likewise.
1912 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1913 (m68k_linux_frame_saved_pc): Delete.
1914 (m68k_linux_sigcontext_reg_offset,
1915 m68k_linux_ucontext_reg_offset): Define.
1916 (m68k_linux_get_sigtramp_info): New function.
1917 (m68k_linux_extract_return_value): Rewrite using regcache.
1918 (m68k_linux_store_return_value): Likewise.
1919 (m68k_linux_extract_struct_value_address): Likewise.
1920 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1921 Don't set deprecated_frame_saved_pc,
1922 deprecated_extract_return_value, deprecated_store_return_value,
1923 deprecated_extract_struct_value_address. Set
1924 extract_return_value, store_return_value,
1925 extract_struct_value_address.
1926
1927 2003-07-07 Andrew Cagney <cagney@redhat.com>
1928
1929 * expprint.c: Include "user-regs.h" instead of "frame.h".
1930 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1931 frame_map_regnum_to_name.
1932 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1933 (frame_map_name_to_regnum): Simplify, call
1934 user_reg_map_name_to_regnum.
1935 (frame_map_regnum_to_name): Simplify, call
1936 user_reg_map_regnum_to_name.
1937 (frame_register_unwind): Update.
1938 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1939 (_initialize_frame_reg): Call user_reg_add_builtin.
1940 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1941 (value_of_register): Use value_of_user_reg.
1942 * eval.c (evaluate_subexp_standard): Update.
1943 * parse.c (write_dollar_variable): Update.
1944 * d10v-tdep.c (d10v_print_registers_info): Update.
1945 * infcmd.c (registers_info): Update.
1946 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1947 (builtin_regs_h): Delete macro.
1948 (user_regs_h): Define.
1949 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1950 (builtin-regs.o): Delete target.
1951 (user-regs.o): Specify dependencies.
1952 (expprint.o): Update dependencies.
1953 (findvar.o): Update dependencies.
1954 (frame.o): Update dependencies.
1955 (std-regs.o): Update dependencies.
1956
1957 2003-07-06 Christopher Faylor <cgf@redhat.com>
1958
1959 * win32-nat.c (solib_symbols_add): Use one variable for all section
1960 address stuff. Pass variable rather than address of variable to
1961 safe_symbol_file_add.
1962
1963 2003-07-06 Andreas Schwab <schwab@suse.de>
1964
1965 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1966
1967 2003-07-04 Joel Brobecker <brobecker@gnat.com>
1968
1969 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1970
1971 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1972
1973 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1974
1975 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1976
1977 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1978 * config/i386/nto.mh: New file.
1979 * config/i386/nm-nto.h: New file.
1980 * configure.host: Add i[3456]86-*-nto*.
1981
1982 2003-07-03 Joel Brobecker <brobecker@gnat.com>
1983
1984 * remote-vx.c (vx_add_symbols): Fix compilation error.
1985
1986 2003-07-03 Andrew Cagney <cagney@redhat.com>
1987
1988 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1989 * gdbarch.h, gdbarch.c: Re-generate.
1990 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1991 (legacy_register_name): Declare.
1992 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1993 (REGISTER_NAME): Define.
1994 * sparc-tdep.c (legacy_register_name): New function.
1995 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1996 (REGISTER_NAME): Define.
1997 (hppa64_register_name): Declare.
1998 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1999 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2000 (hppa64_register_name): New function.
2001 (hppa_register_name): New function.
2002 * arch-utils.c (legacy_register_name): Delete.
2003 * arch-utils.h (legacy_register_name): Delete.
2004
2005 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
2006
2007 * cli/cli-interp.c (cli_interpreter_resume): Update the
2008 cli_uiout's stream to gdb_stdout.
2009
2010 2003-07-03 Andrew Cagney <cagney@redhat.com>
2011
2012 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2013 predicate.
2014 * gdbarch.h, gdbarch.c: Re-generate.
2015 * regcache.c (init_regcache_descr): Use legacy code when either
2016 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2017
2018 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2019
2020 * NEWS: Move "set logging" entry into GDB 6.0 section.
2021
2022 2003-07-02 Jim Blandy <jimb@redhat.com>
2023
2024 * s390-tdep.c (struct frame_extra_info): new member:
2025 'stack_bought_valid'.
2026 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2027 initialize fextra_info->stack_bought.
2028 (s390_frameless_function_invocation): Don't trust the value of
2029 fextra_info_ptr->stack_bought unless
2030 fextra_info->stack_bought_valid is set.
2031
2032 New S390 prologue analyzer.
2033 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2034 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2035 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2036 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2037 compute_x_addr, s390_on_stack, s390_store,
2038 s390_get_signal_frame_info): New functions.
2039 (S390_NUM_SPILL_SLOTS): New macro.
2040 (s390_get_frame_info): Rewritten.
2041 (is_arg_reg): Deleted.
2042
2043 Break out the decoding of S/390 instructions into separate
2044 functions, to make it more legible, and easier to check
2045 against the spec.
2046 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2047 is_rx, is_rxe): New functions.
2048 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2049 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2050 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2051 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2052 enums for opcode values. (Is this an improvement?)
2053
2054 2003-07-02 Andrew Cagney <cagney@redhat.com>
2055
2056 * i386-tdep.c: Revert change committed as part of trad-frame code
2057 below.
2058
2059 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2060
2061 * breakpoint.c (insert_catchpoint): Make static.
2062
2063 2003-07-02 Andreas Schwab <schwab@suse.de>
2064
2065 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2066 former ia64_push_arguments and ia64_push_return_address, and use
2067 regcache functions instead of read/write_register.
2068 (ia64_gdbarch_init): Set push_dummy_call instead of
2069 deprecated_push_arguments and deprecated_push_return_address.
2070
2071 2003-07-01 Andreas Jaeger <aj@suse.de>
2072
2073 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2074 before the call.
2075 Set %rax only to number of SSE registers used.
2076
2077 2003-07-01 Andrew Cagney <cagney@redhat.com>
2078
2079 * trad-frame.h: Update comments, a -1 .addr is reserved.
2080 (trad_frame_value_p, trad_frame_addr_p): Declare.
2081 (trad_frame_reg_p): Declare.
2082 (trad_frame_set_value): Rename trad_frame_register_value.
2083 (trad_frame_set_unknown): Declare.
2084 * trad-frame.c (trad_frame_realreg_p): New function.
2085 (trad_frame_addr_p, trad_frame_value_p): New function.
2086 (trad_frame_set_unknown): New function.
2087 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2088 (trad_frame_prev_register): Use trad_frame_realreg_p,
2089 trad_frame_addr_p and trad_frame_value_p.
2090 (trad_frame_set_value): Rename trad_frame_register_value.
2091 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2092 and trad_frame_set_value.
2093
2094 2003-06-30 Jim Blandy <jimb@redhat.com>
2095
2096 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2097 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2098 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2099 for 16 registers, and then 32 more bytes.
2100 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2101 New macros.
2102 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2103 Move up in the file, since it's now used by is_simple_arg.
2104 (is_simple_arg): Don't assume registers are four bytes long.
2105 Exclude all double arguments. Extended floats are not simple
2106 args.
2107 (is_power_of_two): New function.
2108 (pass_by_copy_ref): Call is_power_of_two, and check that the
2109 length fits in a register, rather than listing all the acceptable
2110 sizes. Extended floats are not passed by reference.
2111 (s390_push_arguments): Don't assume registers are four bytes long.
2112 Reserve an argument register to point to the buffer for structures
2113 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2114 S390_STACK_FRAME_OVERHEAD.
2115
2116 2003-06-30 Andreas Schwab <schwab@suse.de>
2117
2118 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2119 format error message.
2120
2121 2003-06-30 Joel Brobecker <brobecker@gnat.com>
2122
2123 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2124
2125 2003-06-30 David Carlton <carlton@kealia.com>
2126
2127 Band-aid for PR c++/1245.
2128 * Makefile.in (cp-support.o): Depend on complaints_h.
2129 * cp-support.c: Include complaints.h. Add declaration for
2130 find_last_component.
2131 (cp_find_first_component): Separate code into
2132 cp_find_first_component_aux.
2133 (cp_find_first_component_aux): Call demangled_name_complaint.
2134 (demangled_name_complaint): New.
2135
2136 2003-06-30 Andrew Cagney <cagney@redhat.com>
2137
2138 * remote.c (remote_write_bytes): Explicitly compute and then use
2139 the payload size. Update comments to reflect. Fixes problem of
2140 GDB not sending small packets as found by Fred Fish.
2141
2142 2003-06-30 Andrew Cagney <cagney@redhat.com>
2143
2144 * remote.c (remote_async_wait): Fix -Wformat problem.
2145
2146 2003-06-29 Andrew Cagney <cagney@redhat.com>
2147
2148 * remote.c (remote_wait): Call error, and not warning, when the
2149 packet is corrupt.
2150 (remote_async_wait): Ditto.
2151
2152 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2153
2154 * sparc-tdep.c (sparc_y_regnum): Make external again.
2155
2156 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2157
2158 * cli/cli-logging.c (pop_output_files): Add void to function
2159 definition.
2160
2161 2003-06-29 Andrew Cagney <cagney@redhat.com>
2162
2163 * frame.c (frame_register_unwind): Use unsigned char when dumping
2164 the buffer contents.
2165
2166 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
2167
2168 * cli/cli-logging.c: New file.
2169 * cli-out.c (struct ui_out_data): Add original_stream.
2170 (cli_redirect): New function.
2171 (cli_ui_out_impl): Add cli_redirect.
2172 (cli_out_new): Initialize original_stream.
2173 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2174 (uo_redirect, ui_out_redirect): New.
2175 * ui-out.h (struct ui_out_impl): Add redirect member.
2176 (redirect_ftype): New.
2177 (ui_out_redirect): Add prototype.
2178 * Makefile.in: Add rules for cli-logging.c.
2179 * NEWS: Mention "set logging".
2180
2181 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2182
2183 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2184
2185 2003-06-27 Andrew Cagney <cagney@redhat.com>
2186
2187 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2188 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2189 * avr-tdep.c (avr_call_dummy_address): Delete function.
2190 (avr_gdbarch_init): Do not set call_dummy_address.
2191
2192 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2193
2194 * symfile.c (syms_from_objfile): Move variables to inner block.
2195 Move the checks for the non-mainline case a bit earlier to avoid
2196 doing some useless computations.
2197
2198 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2199
2200 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2201
2202 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
2203
2204 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2205 sections.
2206
2207 2003-06-26 Michael Chastain <mec@shout.net>
2208
2209 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2210 gdb/testsuite/gdb.c++/pr-1210.exp.
2211
2212 2003-06-26 Andrew Cagney <cagney@redhat.com>
2213
2214 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2215 altivec_expression.h and altivec_registers.h.
2216
2217 2003-06-26 Andrew Cagney <cagney@redhat.com>
2218
2219 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2220 info->mach when MIPS16. Patch suggested by Fred Fish.
2221
2222 2003-06-26 Andrew Cagney <cagney@redhat.com>
2223
2224 * utils.c (internal_vproblem): Print the problem to a reason
2225 buffer and then pass to query. Make the msg variable more local.
2226
2227 2003-06-26 Andrew Cagney <cagney@redhat.com>
2228
2229 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2230 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2231 * gdbarch.h, gdbarch.c: Re-generate.
2232 * frame-base.c (default_frame_args_address): Update. Use
2233 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2234 not available.
2235 (default_frame_locals_address): Ditto for
2236 DEPRECATED_FRAME_LOCALS_ADDRESS.
2237 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2238 (vax_frame_num_args): Update.
2239 (vax_gdbarch_init): Update.
2240 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2241 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2242 * mcore-tdep.c (mcore_gdbarch_init): Update.
2243 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2244 * ia64-tdep.c (ia64_gdbarch_init): Update.
2245 * symtab.h (address_class): Update comments.
2246 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2247 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2248 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2249 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2250 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2251 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2252 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2253 * alpha-mdebug-tdep.c: Update.
2254 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2255
2256 2003-06-26 Andreas Jaeger <aj@suse.de>
2257
2258 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2259 of SSE registers so that varargs functions work. Rework handling
2260 of passing arguments on the stack.
2261 (x86_64_store_return_value): Return double and float values in SSE
2262 register.
2263
2264 2003-06-24 Michael Chastain <mec@shout.net>
2265
2266 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2267 the "constructor breakpoints ignored" bug.
2268
2269 2003-06-25 David Carlton <carlton@kealia.com>
2270
2271 * MAINTAINERS: Update e-mail address.
2272
2273 2003-06-24 Jim Blandy <jimb@redhat.com>
2274
2275 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2276
2277 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2278 function.
2279 (ppc_linux_init_abi): Register it as the
2280 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2281
2282 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2283 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2284 method.
2285
2286 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2287 (ppc64_standard_linkage_target): Use it.
2288
2289 2003-06-23 Andrew Cagney <cagney@redhat.com>
2290
2291 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2292 for 0 "int0" and 4 "int32" sized registers.
2293 * gdbtypes.c (builtin_type_int0): Define.
2294 (build_gdbtypes): Initialize builtin_type_int0.
2295 * gdbtypes.h (builtin_type_int0): Declare.
2296
2297 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2298
2299 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2300 as characters are unsigned.
2301
2302 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2303
2304 PR gdb/1179
2305 * dwarfread.c (struct_type): Skip static fields without crashing.
2306
2307 2003-06-22 Andrew Cagney <cagney@redhat.com>
2308
2309 GDB 6.0 branch created.
2310 * README: Update.
2311 * PROBLEMS: Update. Empty.
2312 * NEWS: Update.
2313
2314 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2315
2316 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2317 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2318
2319 2003-06-22 Andrew Cagney <cagney@redhat.com>
2320
2321 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2322 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2323 Velikov.
2324
2325 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2326
2327 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2328 compilers.
2329
2330 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2331
2332 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2333 argument of val_print.
2334 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2335 to the address argument of baseclass_offset or target_read_memory.
2336 Do add it to the argument of cp_print_value_fields.
2337
2338 2003-06-21 Andrew Cagney <cagney@redhat.com>
2339
2340 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2341 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2342 instead of 0..NUM_REGS.
2343 (mips_register_reggroup_p): New function.
2344 (mips_pseudo_register_write): New function.
2345 (mips_pseudo_register_read): New function.
2346 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2347 based on the register's type.
2348 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2349 cooked.
2350 (mips_get_saved_register): Simplify. Assert that REGNO is a
2351 pseudo / cooked.
2352 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2353 (mips_register_type): Replace mips_register_virtual_type. Map
2354 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2355 when available.
2356 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2357 that the register is cooked / virtual.
2358 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2359 Only get the extra info when needed.
2360 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2361 (mips32_heuristic_proc_desc): Fetch the cooked register.
2362 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2363 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2364 (mips_print_register): Use gdbarch_register_type, instead of
2365 REGISTER_VIRTUAL_TYPE.
2366 (print_gp_register_row): Use gdbarch_register_type, instead of
2367 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2368 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2369 Print the pseudo / cooked registers.
2370 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2371 Print the pseudo / cooked registers.
2372 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2373 REG_NUM is pseudo / cooked.
2374 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2375 (mips_n32n64_xfer_return_value): Ditto.
2376 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2377 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2378 (mips_register_sim_regno): New function.
2379 (mips_gdbarch_init): Set deprecated_register_byte,
2380 register_group_p, pseudo_register_write, pseudo_register_read,
2381 register_sim_regno, and num_pseudo_regs. Set register_type,
2382 instead of register_virtual_type.
2383 * Makefile.in (mips-tdep.o): Update dependencies.
2384 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2385 REGISTER_VIRTUAL_TYPE.
2386 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2387 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2388 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2389 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2390 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2391
2392 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2393
2394 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2395 * cli/cli-cmds.c: Include "gdb_vfork.h".
2396 (shell_escape): Use vfork.
2397
2398 2003-06-21 Andrew Cagney <cagney@redhat.com>
2399
2400 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2401 32 bit floating-point register saves.
2402
2403 * frame.h (deprecated_unwind_get_saved_register): Delete.
2404 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2405 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2406 and deprecated_get_next_frame_hack instead of
2407 deprecated_unwind_get_saved_register.
2408
2409 * mips-tdep.c (mips_dump_tdep): Do not print
2410 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2411
2412 * frame.c (get_frame_register): New function.
2413 (frame_unwind_register_signed): New function.
2414 (get_frame_register_signed): New function.
2415 (frame_unwind_register_unsigned): New function.
2416 (get_frame_register_unsigned): New function.
2417 * frame.h: Add comments on naming schema.
2418 (get_frame_register, frame_unwind_register_signed): Declare.
2419 (get_frame_register_signed, get_frame_register_signed): Declare.
2420 (frame_unwind_register_unsigned): Declare.
2421 (get_frame_register_unsigned): Declare.
2422
2423 2003-06-20 Theodore A. Roth <troth@openavr.org>
2424
2425 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2426
2427 2003-06-20 Theodore A. Roth <troth@openavr.org>
2428
2429 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2430 (avr_read_sp): Ditto.
2431
2432 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
2433
2434 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2435 * config/arm/nm-linux.h: Likewise.
2436 * config/arm/tm-linux.h: Likewise.
2437 * config/ia64/nm-linux.h: Likewise.
2438 * config/ia64/tm-ia64.h: Likewise.
2439 * config/s390/tm-linux.h: Likewise.
2440 * config/s390/tm-s390.h: Likewise.
2441 * s390-nat.c: Likewise.
2442 * s390-tdep.c: Likewise.
2443
2444 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2445 * config/ia64/linux.mt: Likewise.
2446 * config/m68k/linux.mh: Likewise.
2447 * config/mips/linux.mt: Likewise.
2448 * config/powerpc/linux.mh: Likewise.
2449 * config/sh/linux.mt: Likewise.
2450
2451 2003-06-19 Kris Warkentin <kewarken@qnx.com>
2452
2453 * solib.c (solib_open): Change tests for whether to search
2454 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2455 comments.
2456
2457 2003-06-19 Theodore A. Roth <troth@openavr.org>
2458
2459 * avr-tdep.c (avr_frame_address): Delete function.
2460 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2461 set_gdbarch_frame_args_address.
2462
2463 2003-06-19 Andrew Cagney <cagney@redhat.com>
2464
2465 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2466 (REGISTER_CONVERT_FROM_TYPE): Delete.
2467 (mips_register_convert_to_type): Delete declaration.
2468 (mips_register_convert_from_type): Delete declaration.
2469 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2470 kernel/.
2471
2472 2003-06-19 Michael Snyder <msnyder@redhat.com>
2473
2474 * linux-nat.h: New file.
2475 * linux-nat.c: Include linux-nat.h.
2476 * lin-lwp.c: Include linux-nat.h.
2477 Move struct lwp_info def to linux-nat.h.
2478 * linux-proc.c: Include linux-nat.h.
2479 (linux_make_note_section): Iterate over lwps instead of threads.
2480 (linux_do_thread_registers): Use lwp instead of merged pid.
2481 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2482 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2483 Add dependency on linux_nat_h.
2484
2485 2003-06-19 Theodore A. Roth <troth@openavr.org>
2486
2487 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2488
2489 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2490
2491 * varobj.c (get_type, get_target_type): Use check_typedef.
2492
2493 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2494
2495 * breakpoint.c (insert_catchpoint): Call internal_error.
2496
2497 2003-06-19 Theodore A. Roth <troth@openavr.org>
2498
2499 * avr-tdep.c (avr_push_dummy_code): Delete function.
2500 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2501
2502 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2503
2504 * arch-utils.c (default_prepare_to_proceed): Remove.
2505 (generic_prepare_to_proceed): Remove.
2506 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2507 (generic_prepare_to_proceed): Remove prototype.
2508 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2509 * gdbarch.c: Regenerate.
2510 * gdbarch.h: Regenerate.
2511 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2512 * hppah-nat.c (hppa_switched_threads): Remove.
2513 * infrun.c (prepare_to_proceed): New static function, copied from
2514 generic_prepare_to_proceed. Remove select_it argument.
2515 (proceed): Call prepare_to_proceed.
2516 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2517 variables.
2518 (ptrace_wait): Don't set the removed variables.
2519 (hppa_switched_threads): Remove.
2520 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2521 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2522 (lin_lwp_prepare_to_proceed): Remove prototype.
2523 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2524 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2525
2526 2003-06-18 Theodore A. Roth <troth@openavr.org>
2527
2528 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2529 trad-frame.h.
2530 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2531 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2532 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2533 (AVR_PROLOGUE_*): Enumerate prologue types.
2534 (struct frame_extra_info): Remove.
2535 (struct avr_unwind_cache): Define.
2536 (avr_write_sp): Delete function.
2537 (avr_read_fp): Ditto.
2538 (avr_init_extra_frame_info): Ditto.
2539 (avr_pop_frame): Ditto.
2540 (avr_frame_saved_pc): Ditto.
2541 (avr_saved_pc_after_call): Ditto.
2542 (avr_push_return_address): Ditto.
2543 (avr_frame_chain): Ditto.
2544 (avr_store_struct_return): Ditto.
2545 (avr_push_arguments): Ditto.
2546 (avr_scan_prologue): Update comments. Changed to set up the info for
2547 cache unwinding. Now returns end of prologue PC.
2548 (avr_skip_prologue): Better handling of functions lacking a prologue
2549 by using avr_scan_prologue.
2550 (avr_scan_arg_moves): New function.
2551 (avr_saved_regs_unwinder): Ditto.
2552 (avr_frame_unwind_cache): Ditto.
2553 (avr_unwind_pc): Ditto.
2554 (avr_frame_this_id): Ditto.
2555 (avr_frame_prev_register): Ditto.
2556 (avr_frame_p): Ditto.
2557 (avr_frame_base_address ): Ditto.
2558 (avr_unwind_dummy_id): Ditto.
2559 (avr_push_dummy_code): Ditto.
2560 (push_stack_item): Ditto.
2561 (pop_stack_item): Ditto.
2562 (avr_push_dummy_call): Ditto.
2563 (struct stack_item): Define.
2564 (avr_frame_unwind): Declare structure.
2565 (avr_frame_base): Ditto.
2566 (avr_gdbarch_init): Remove calls to
2567 set_gdbarch_deprecated_init_frame_pc,
2568 set_gdbarch_deprecated_target_read_fp,
2569 set_gdbarch_deprecated_dummy_write_sp,
2570 set_gdbarch_deprecated_fp_regnum,
2571 set_gdbarch_deprecated_push_arguments,
2572 set_gdbarch_deprecated_push_return_address,
2573 set_gdbarch_deprecated_pop_frame,
2574 set_gdbarch_deprecated_store_struct_return,
2575 set_gdbarch_deprecated_frame_init_saved_regs,
2576 set_gdbarch_deprecated_init_extra_frame_info,
2577 set_gdbarch_deprecated_frame_chain,
2578 set_gdbarch_deprecated_frame_saved_pc,
2579 set_gdbarch_deprecated_saved_pc_after_call.
2580 Add calls to set_gdbarch_push_dummy_call,
2581 set_gdbarch_push_dummy_code,
2582 frame_unwind_append_predicate,
2583 frame_base_set_default,
2584 set_gdbarch_unwind_dummy_id,
2585 set_gdbarch_unwind_pc.
2586 Wrap a long line.
2587
2588 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2589
2590 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2591 registers for H8/300S.
2592 (h8300_print_registers_info): Ditto.
2593 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2594
2595 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2596
2597 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2598 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2599 (lin_lwp_wait): Likewise. Update comments.
2600 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2601 (pull_pid_from_list, linux_record_stopped_pid): New.
2602
2603 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2604
2605 * ada-lang.c (scan_discrim_bound): Name first argument.
2606 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2607 declared by ALL_BLOCK_SYMBOLS.
2608
2609 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2610
2611 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2612 ("regcache.h"): Include it.
2613 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2614
2615 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2616
2617 * NEWS: Mention gdbserver detach change and "disconnect" command.
2618 * infcmd.c (disconnect_command): New function.
2619 (_initialize_infcmd): Add ``disconnect'' command.
2620 * remote.c (remote_async_detach): Delete.
2621 (remote_detach): Merge remote_async_detach.
2622 (remote_disconnect): New.
2623 (init_remote_ops): Set to_disconnect.
2624 (init_remote_cisco_ops): Likewise.
2625 (init_remote_async_ops): Likewise. Use remote_detach.
2626 * target.c (cleanup_target): Default to_disconnect.
2627 (update_current_target): Inherit to_disconnect.
2628 (target_disconnect, debug_to_disconnect): New functions.
2629 (setup_target_debug): Set to_disconnect.
2630 * target.h (struct target_ops): Add to_disconnect.
2631 (target_disconnect): Add prototype.
2632
2633 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2634
2635 * breakpoint.c (insert_catchpoint): New function.
2636 (insert_breakpoints): Use catch_exceptions to call
2637 insert_catchpoint. Disable catchpoints if they fail to insert.
2638
2639 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2640
2641 * symfile.c (reread_symbols): Clear sym_private.
2642
2643 2003-06-17 Andrew Cagney <cagney@redhat.com>
2644
2645 * trad-frame.h (struct frame_info): Add opaque declaration.
2646 * remote-fileio.h (struct cmd_list_element): Add opaque
2647 declaration.
2648 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2649 comments.
2650
2651 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2652
2653 * remote.c (remote_prepare_to_store): Replace call to
2654 deprecated_read_register_bytes with multiple regcache_raw_read
2655 calls.
2656
2657 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2658
2659 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2660 (nto_find_and_open_solib): Likewise.
2661 (nto_init_solib_absolute_prefix): Likewise.
2662 (_initialize_nto_tdep): Fix indentation.
2663
2664 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2665
2666 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2667
2668 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2669
2670 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2671
2672 2003-06-17 Jim Blandy <jimb@redhat.com>
2673
2674 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2675
2676 2003-06-16 Theodore A. Roth <troth@openavr.org>
2677
2678 * avr-tdep.c (avr_extract_return_value): New function.
2679 (avr_gdbarch_init): Set extract_return_value method.
2680
2681 2003-06-16 Andrew Cagney <cagney@redhat.com>
2682
2683 * frame.h (deprecated_get_next_frame_hack): Declare.
2684 * frame.c (legacy_saved_regs_prev_register): Only require
2685 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2686 there are always saved regs.
2687 (deprecated_generic_get_saved_register): Do not require
2688 DEPRECATED_FRAME_INIT_SAVED_REGS.
2689 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2690 use frame ID unwind instead.
2691 (deprecated_get_next_frame_hack): New function.
2692
2693 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2694
2695 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2696 (h8300_push_dummy_call): ...this function. Some minor optimization.
2697 (h8300_push_return_address): Remove.
2698 (h8300_gdbarch_init): Remove calls to
2699 set_gdbarch_deprecated_dummy_write_sp,
2700 set_gdbarch_deprecated_push_arguments and
2701 set_gdbarch_deprecated_push_return_address.
2702 Add call to set_gdbarch_push_dummy_call.
2703
2704 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2705
2706 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2707 (E_PSEUDO_EXR_REGNUM): Ditto.
2708 (h8300_is_argument_spill): Check for instructions moving argument
2709 registers into safe registers.
2710 (h8300_skip_prologue): Check for stm instruction to push registers
2711 used for register variables onto stack.
2712 (gdb_print_insn_h8300): Remove.
2713 (h8300_examine_prologue): Add a comment.
2714 (h8300_register_name): Take pseudo registers into account.
2715 (h8300s_register_name): Ditto.
2716 (h8300sx_register_name): Ditto.
2717 (h8300_print_register): Ditto.
2718 (h8300_print_registers_info): Define "nice" printing order.
2719 (h8300_saved_pc_after_call): Take pseudo registers into account.
2720 (h8300_register_type): Ditto. Return type used for remote connection
2721 when requesting real CCR or EXR register, return actual type when
2722 requesting pseudo CCR or EXR.
2723 (h8300_pseudo_register_read): New function.
2724 (h8300_pseudo_register_write): Ditto.
2725 (h8300_dbg_reg_to_regnum): Ditto.
2726 (h8300s_dbg_reg_to_regnum): Ditto.
2727 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2728 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2729 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2730 set_gdbarch_print_insn architecture dependent.
2731 Call set_gdbarch_pseudo_register_read and
2732 set_gdbarch_pseudo_register_write.
2733 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2734
2735 2003-06-16 Andrew Cagney <cagney@redhat.com>
2736
2737 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2738 * gdbarch.h, gdbarch.c: Re-generate.
2739 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2740 * s390-tdep.c (s390_gdbarch_init): Update.
2741 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2742 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2743 * mips-tdep.c (mips_gdbarch_init): Update.
2744 * mcore-tdep.c (mcore_gdbarch_init): Update.
2745 * cris-tdep.c (cris_gdbarch_init): Update.
2746 * infcall.c (call_function_by_hand): Update.
2747 * ia64-tdep.c (ia64_push_arguments): Update comment.
2748 * frame.c (legacy_get_prev_frame): Do not assume
2749 SAVE_DUMMY_FRAME_TOS_P.
2750 * dummy-frame.c (find_dummy_frame): Update comment.
2751
2752 2003-06-16 Andrew Cagney <cagney@redhat.com>
2753
2754 * regcache.c (do_cooked_read): Do not use register_valid_p.
2755
2756 2003-06-15 Theodore A. Roth <troth@openavr.org>
2757
2758 * avr-tdep.c (avr_register_type): Remove a blank line.
2759 (avr_scan_prologue): Correct some comments.
2760
2761 2003-06-15 Theodore A. Roth <troth@openavr.org>
2762
2763 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2764 prologue types.
2765 Properly scan prologues generated by gcc with the -mcall-prologues
2766 option.
2767 Add code to scan -mcall-prologues for mega devices.
2768
2769 2003-06-15 Theodore A. Roth <troth@openavr.org>
2770
2771 * avr-tdep.c (avr_register_byte): Delete function.
2772 (avr_register_raw_size): Delete function.
2773 (avr_register_virtual_size): Delete function.
2774 (avr_register_virtual_type): Delete function.
2775 (avr_register_type): New function.
2776 (avr_address_to_pointer): Remove unused code.
2777 (avr_read_fp): Need to read FP as two separate bytes due to change to
2778 avr_register_type() usage.
2779 (avr_gdbarch_init): Don't set deprecated_register_size.
2780 Don't set deprecated_register_bytes.
2781 Don't set deprecated_register_byte.
2782 Don't set deprecated_register_raw_size.
2783 Don't set deprecated_max_register_raw_size.
2784 Don't set deprecated_register_virtual_size.
2785 Don't set deprecated_max_register_virtual_size.
2786 Don't set deprecated_register_virtual_type.
2787 Set register_type method.
2788
2789 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2790
2791 * Makefile.in (linux-nat.o): Add rule.
2792 * linux-nat.c: New file.
2793 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2794 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2795 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2796 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2797 * config/arm/linux.mh (NATDEPFILES): Likewise.
2798 * config/i386/linux.mh (NATDEPFILES): Likewise.
2799 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2800 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2801 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2802 * config/mips/linux.mh (NATDEPFILES): Likewise.
2803 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2804 * config/s390/s390.mh (NATDEPFILES): Likewise.
2805 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2806
2807 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2808
2809 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2810 replace out-of-date comment.
2811
2812 2003-06-15 Andrew Cagney <cagney@redhat.com>
2813
2814 * rdi-share/host.h (Fail): Change to a varargs function.
2815 * remote-rdi.c (Fail): Update.
2816
2817 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2818
2819 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2820 (i386_convert_register_p, i386_register_to_value,
2821 i386_register_from_value): Handle types longer than 8 bytes.
2822
2823 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2824
2825 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2826 Move floating-point code to new function in i387-tdep.c.
2827 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2828 New functions containing code moved here from i386-tdep.c.
2829 * i387-tdep.h: Add opaque declaration for `struct type'.
2830 (i387_register_to_value, i387_value_to_register): New prototypes.
2831 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2832 (x86_64_init_abi): Set convert_register_p, register_to_value and
2833 value_to_register here.
2834
2835 2003-06-14 Andrew Cagney <cagney@redhat.com>
2836
2837 * mips-tdep.c (mips_register_to_value): Make static.
2838 (mips_value_to_register): Make static.
2839 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2840 * ia64-tdep.c (ia64_register_raw_size): Make static.
2841 (ia64_register_virtual_size): Make static.
2842 (ia64_register_byte): Make static.
2843 * i387-tdep.c: Include "i387-tdep.h".
2844 (print_387_control_word): Delete function.
2845 (print_387_status_word): Delete function.
2846 (print_387_status_bits): Delete function.
2847 (print_387_control_bits): Delete function.
2848 * Makefile.in (i387-tdep.o): Update dependencies.
2849 * rdi-share/host.h (Fail): Declare.
2850 * remote-rdi.c (Fail): Update to match declaration.
2851
2852 2003-06-14 Andrew Cagney <cagney@redhat.com>
2853
2854 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2855 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2856 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2857 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2858 * README: Delete reference to remote-array.
2859 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2860 (remote-array.o): Delete target.
2861 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2862 * remote-array.c: Delete file.
2863
2864 2003-06-14 Andrew Cagney <cagney@redhat.com>
2865 Mark Kettenis <kettenis@gnu.org>
2866
2867 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2868 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2869 parameter with "frame".
2870 * gdbarch.h, gdbarch.c: Re-generate.
2871 * frame.h (put_frame_register): Declare.
2872 * frame.c (put_frame_register): New function.
2873 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2874 (legacy_register_to_value): Rewrite, use "frame" to get the
2875 register value.
2876 (legacy_value_to_register): Rewrite, use "frame" to find the
2877 register's location before storing.
2878 * arch-utils.h (legacy_convert_register_p): Update.
2879 (legacy_register_to_value, legacy_value_to_register): Update.
2880 * findvar.c (value_from_register): Rewrite, eliminate use of
2881 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2882 "frame" to REGISTER_TO_VALUE.
2883 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2884 lval_reg_frame_relative + lval_register branch of the switch. Do
2885 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2886 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2887 I386_EDI_REGNUM): New defines.
2888 (i386_next_regnum, i386_convert_register_p,
2889 i386_register_to_value, i386_value_to_register): New functions.
2890 (i386_register_convertible, i386_register_convert_to_virtual,
2891 i386_convert_to_raw): Remove functions.
2892 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2893 value_to_register instead of register_convertible,
2894 register_convert_to_virtual and register_convert_to_raw.
2895 * mips-tdep.c (mips_convert_register_p): New function.
2896 (mips_value_to_register): Replace mips_register_convert_from_type.
2897 (mips_register_to_value): Replace mips_register_convert_to_type.
2898 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2899 register_to_value.
2900 * alpha-tdep.c (alpha_convert_register_p): Update.
2901 (alpha_value_to_register): Update, store the register.
2902 (alpha_register_to_value): Update, fetch the register.
2903
2904 2003-06-14 Theodore A. Roth <troth@openavr.org>
2905
2906 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2907 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2908 Don't set deprecated_call_dummy_words.
2909 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2910 Don't set remote_translate_xfer_address.
2911 (avr_io_reg_read_command): Remove commented out debug printf.
2912 Wrap a long line.
2913
2914 2003-06-14 Theodore A. Roth <troth@openavr.org>
2915
2916 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2917 causes gdb to seg fault.
2918
2919 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
2920
2921 * sparc-nat.c (fetch_inferior_registers): Correct
2922 a reference to "registers".
2923
2924 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2925
2926 * Makefile.in (exc_request_U_h): Define
2927 (exc_request_S_h): Likewise.
2928 (msg_reply_S_h): Likewise.
2929 (msg_U_h): Likewise.
2930 (notify_S_h): Likewise.
2931 (process_reply_S_h): Likewise.
2932 (gnu-nat.o): Depend on gdb_obstack_h
2933 * gnu-nat.c: Include "gdb_obstack.h".
2934
2935 2003-06-13 Andrew Cagney <cagney@redhat.com>
2936
2937 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2938 * gdbarch.h, gdbarch.c: Re-generate.
2939
2940 2003-06-13 Andrew Cagney <cagney@redhat.com>
2941
2942 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2943 when deprecated REGISTER macros can be deleted.
2944 * gdbarch.h, gdbarch.c: Re-generate.
2945
2946 2003-06-13 Jim Blandy <jimb@redhat.com>
2947
2948 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2949 Linux entry point symbols for _dl_debug_state, too.
2950
2951 2003-06-13 Andrew Cagney <cagney@redhat.com>
2952
2953 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2954 available, do not use the FP register, and always save the TOS.
2955 * dummy-frame.c (dummy_frame_this_id): Do not assert
2956 SAVE_DUMMY_FRAME_TOS.
2957 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2958 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2959 (i386_push_dummy_call): Add 8 to the returned SP.
2960 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2961 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2962 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2963 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2964 (x86_64_push_dummy_call): Return "sp + 16".
2965 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2966 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2967 save_dummy_frame_tos.
2968
2969 2003-06-13 Jim Blandy <jimb@redhat.com>
2970
2971 * frv-tdep.c (frv_use_struct_convention): Delete static
2972 declaration for function deleted in my change of 2003-06-12.
2973
2974 2003-06-13 Theodore A. Roth <troth@openavr.org>
2975
2976 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2977 (avr_pointer_to_address): Shift code addrs left 1 bit.
2978 (avr_convert_from_func_ptr_addr): Delete function since operation is
2979 better handled by avr_address_to_pointer and avr_pointer_to_address.
2980 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2981
2982 2003-06-13 Mark Kettenis <kettenis@gnu.org>
2983
2984 From Kelley Cook <kelleycook@wideopenwest.com>:
2985 * configure.host: Accept i[34567]86 variants.
2986 * configure.tgt: Likewise.
2987 * nlm/configure.in: Likewise.
2988 * nlm/configure: Regenerated.
2989
2990 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2991
2992 * arm-tdep.c (solib-svr4.h): Dont' include it.
2993 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2994 * arm-linux-tdep.c: ... here. Make static.
2995 (arm_linux_init_abi): Register it.
2996 (solib-svr4.h): Include it.
2997 * Makefile.in: Update dependencies.
2998 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2999 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3000
3001 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3002
3003 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3004 indicate registers used for return values.
3005 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3006 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3007 members.
3008 (h8300_init_extra_frame_info): Ditto.
3009 (h8300_frame_locals_address): Removed.
3010 (h8300_frame_args_address): Removed.
3011 (h8300_extract_return_value): Use new regcache structure. Only care
3012 for 16 bit CPUs.
3013 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3014 (h8300_store_return_value): Use new regcache structure. Only care
3015 for 16 bit CPUs.
3016 (h8300h_store_return_value): Same function for 32 bit CPUs.
3017 (h8300_store_struct_return): Removed.
3018 (h8300_extract_struct_value_address): Use new regcache structure.
3019 (h8300h_extract_struct_value_address): Removed.
3020 (h8300_push_dummy_code): New function.
3021 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3022 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3023 set_gdbarch_store_return_value architecture dependent.
3024 Call set_gdbarch_push_dummy_code and
3025 set_gdbarch_extract_struct_value_address.
3026 Remove calls to set_gdbarch_frame_args_address,
3027 set_gdbarch_frame_locals_address,
3028 set_gdbarch_deprecated_store_struct_return,
3029 set_gdbarch_deprecated_extract_return_value,
3030 set_gdbarch_deprecated_extract_struct_value_address,
3031 set_gdbarch_deprecated_call_dummy_words and
3032 set_gdbarch_deprecated_sizeof_call_dummy_words.
3033
3034 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3035
3036 * h8300-tdep.c (h8300_register_byte): Remove.
3037 (h8300h_register_byte): Remove.
3038 (h8300_register_virtual_type): Remove. Substitute by...
3039 (h8300_register_type): New function.
3040 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3041 (h8300h_extract_struct_value_address): Ditto.
3042 (h8300_gdbarch_init): Drop calls to
3043 set_gdbarch_deprecated_register_byte and
3044 set_gdbarch_deprecated_register_virtual_type.
3045 Add call to set_gdbarch_register_type.
3046
3047 2003-06-13 Andrew Cagney <cagney@redhat.com>
3048
3049 * gdbarch.sh: Update comments on registers.
3050 (deprecated_register_byte): Rename register_byte.
3051 (deprecated_register_raw_size): Rename register_raw_size.
3052 (deprecated_register_virtual_size): Rename register_virtual_size.
3053 (deprecated_register_virtual_type): Rename register_virtual_type.
3054 * gdbarch.h, gdbarch.c: Re-generate.
3055 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3056 * vax-tdep.c (vax_gdbarch_init): Update.
3057 * v850-tdep.c (v850_gdbarch_init): Update.
3058 * sparc-tdep.c (sparc_gdbarch_init): Update.
3059 * sh-tdep.c (sh_gdbarch_init): Update.
3060 * s390-tdep.c (s390_gdbarch_init): Update.
3061 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3062 * ns32k-tdep.c: Update.
3063 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3064 * mips-tdep.c (mips_gdbarch_init): Update.
3065 * mcore-tdep.c (mcore_gdbarch_init): Update.
3066 * m68k-tdep.c (m68k_gdbarch_init): Update.
3067 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3068 * ia64-tdep.c (ia64_gdbarch_init): Update.
3069 * hppa-tdep.c (hppa_gdbarch_init): Update.
3070 * h8300-tdep.c (h8300_gdbarch_init): Update.
3071 * frv-tdep.c (frv_gdbarch_init): Update.
3072 * cris-tdep.c (cris_gdbarch_init): Update.
3073 * avr-tdep.c (avr_gdbarch_init): Update.
3074 * alpha-tdep.c (alpha_gdbarch_init): Update.
3075 * arm-tdep.c (arm_gdbarch_init): Update.
3076
3077 2003-06-13 Andrew Cagney <cagney@redhat.com>
3078
3079 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3080 mips_o32_use_struct_convention with always_use_struct_convention.
3081
3082 2003-06-12 David Carlton <carlton@kealia.com>
3083
3084 * cp-namespace.c (cp_set_block_scope): Comment out
3085 processing_has_namespace_info branch.
3086
3087 2003-06-12 Jim Blandy <jimb@redhat.com>
3088
3089 Recognize and skip 64-bit PowerPC Linux linkage functions.
3090 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3091 insn_pattern, insns_match_pattern, d_field, ds_field): New
3092 functions, macros, and types for working with PPC instructions.
3093 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3094 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3095 ppc64_skip_trampoline_code): New functions, variables, and macros
3096 for recognizing and skipping linkage functions.
3097 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3098 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3099
3100 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3101 register offsets for both the 32- and 64-bit interfaces.
3102
3103 Actually finish the job started by my change of 2003-05-29.
3104 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3105 other #definition of this.
3106 (ppc_linux_skip_trampoline_code): Remove declaration.
3107 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3108 static.
3109 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3110 method for GDBARCH.
3111
3112 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3113 'long' on ppc64-*-linux*.
3114
3115 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3116 isn't #defined, assume the register doesn't exist: act as if
3117 tdep->ppc_mq_regnum were -1.
3118
3119 * configure.host, configure.tgt: Add entries for
3120 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3121 powerpc/linux.mt.
3122 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3123 New files.
3124
3125 * arch-utils.c (always_use_struct_convention): New function.
3126 * arch-utils.h (always_use_struct_convention): New prototype.
3127 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3128 (alpha_gdbarch_init): Register always_use_struct_convention,
3129 instead of alpha_use_struct_convention.
3130 * cris-tdep.c (cris_use_struct_convention): Delete.
3131 (cris_gdbarch_init): Register always_use_struct_convention,
3132 instead of cris_use_struct_convention.
3133 * frv-tdep.c (frv_use_struct_convention): Delete.
3134 (frv_gdbarch_init): Register always_use_struct_convention,
3135 instead of frv_use_struct_convention.
3136 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3137 (h8300_gdbarch_init): Register always_use_struct_convention,
3138 instead of h8300_use_struct_convention.
3139 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3140 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3141 instead of mips_o32_use_struct_convention.
3142
3143 2003-06-12 Andrew Cagney <cagney@redhat.com>
3144
3145 * wince.c: Include "mips-tdep.h".
3146 * mips-tdep.h (mips_next_pc): Declare.
3147 * mcore-tdep.c: Make more local functions static.
3148 * Makefile.in (wince.o): Update dependencies.
3149
3150 2003-06-12 David Carlton <carlton@kealia.com>
3151
3152 * symtab.c (lookup_symbol_aux_minsyms): Replace
3153 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3154 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3155 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3156 SYMBOL_NATURAL_NAME.
3157
3158 2003-06-12 Andreas Schwab <schwab@suse.de>
3159
3160 * Makefile.in (tuiDisassem.o): Update dependencies.
3161
3162 2003-06-12 David Carlton <carlton@bactrian.org>
3163
3164 * symtab.h: Delete declaration of make_symbol_overload_list.
3165 Add declaration of lookup_partial_symbol.
3166 * symtab.c (remove_params): Move to cp-support.c.
3167 (overload_list_add_symbol, make_symbol_overload_list)
3168 (sym_return_val_size, sym_return_val_index): Ditto.
3169 (lookup_partial_symbol): Make extern.
3170 * cp-support.h: Add declaration of make_symbol_overload_list.
3171 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3172 symtab.h, and block.h.
3173 (remove_params): Move here from symtab.c.
3174 (overload_list_add_symbol, make_symbol_overload_list)
3175 (sym_return_val_size, sym_return_val_index): Ditto.
3176 * valops.c: Include cp-support.h.
3177 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3178 frame_h, and block_h.
3179 (valops.o): Depend on cp_support_h.
3180
3181 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
3182
3183 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3184 substitute by NUM_REGS throughout.
3185 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3186 (h8300s_register_name): New function for H8S registers.
3187 (h8300sx_register_name): Ditto for H8SX registers.
3188 (h8300_print_register): Revise register printing, avoid depending
3189 on 32 bit long.
3190 (h8300_register_byte): Only care for H8/300 registers.
3191 (h8300h_register_byte): New function for any other architecture.
3192 (h8300_register_raw_size): Remove.
3193 (h8300_register_virtual_type): Revise to return actually useful
3194 type.
3195 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3196 (h8300h_extract_struct_value_address): New function for any other
3197 architecture.
3198 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3199 set_gdbarch_register_name, set_gdbarch_register_byte,
3200 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3201 Remove calls to set_gdbarch_deprecated_register_size,
3202 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3203 set_gdbarch_deprecated_max_register_raw_size,
3204 set_gdbarch_register_virtual_size and
3205 set_gdbarch_deprecated_max_register_virtual_size entirely.
3206 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3207 set_gdbarch_long_double_bit.
3208
3209 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3210
3211 * doublest.c (convert_doublest_to_floatformat): When dealing
3212 with the implied integer bit, only alter mant_bits if we are
3213 processing a full 32 bits of mantissa.
3214
3215 2003-06-11 David Carlton <carlton@bactrian.org>
3216
3217 * dictionary.h: New.
3218 * dictionary.c: New.
3219 * block.h: Add opaque declaration for struct dictionary.
3220 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3221 'sym' members.
3222 (BLOCK_DICT): New macro.
3223 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3224 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3225 BLOCK_SHOULD_SORT.
3226 (ALL_BLOCK_SYMBOLS): Update definition.
3227 * Makefile.in (SFILES): Add dictionary.c.
3228 (dictionary_h): New.
3229 (COMMON_OBS): Add dictionary.o.
3230 (dictionary.o): New.
3231 (ada-lang.o): Depend on dictionary_h.
3232 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3233 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3234 (mi-cmd-stack.o): Ditto.
3235 (gdbtk-cmds.o): Update dependencies.
3236 (gdbtk-stack.o): Ditto.
3237 * ada-lang.c: Include dictionary.h.
3238 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3239 (fill_in_ada_prototype, debug_print_block): Ditto.
3240 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3241 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3242 'is_sorted'.
3243 * mdebugread.c: Include dictionary.h.
3244 (struct parse_stack): Delete 'maxsyms' member.
3245 (parse_symbol): Update calls to new_block. Delete calls to
3246 shrink_block. Use dictionary methods.
3247 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3248 Update calls to new_symtab. Don't maintain maxsyms data.
3249 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3250 (add_symbol): Just call dict_add_symbol.
3251 (new_symtab): Delete 'maxsyms' argument.
3252 (new_symtab): Update calls to new_block.
3253 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3254 (shrink_block): Delete function.
3255 (fixup_sigtramp): Update call to new_block. Add symbol via
3256 dict_add_symbol.
3257 * jv-lang.c: Include dictionary.h.
3258 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3259 appropriately. Set class_symtab->free_func. Make sure the
3260 blockvector is big enough to hold two blocks.
3261 (add_class_symtab_symbol): Use dictionary methods.
3262 (free_class_block): New function.
3263 (type_from_class): Replace explicit iteration by
3264 ALL_BLOCK_SYMBOLS.
3265 * symtab.h (struct symtab): Replace 'free_ptr' method by
3266 'free_func'.
3267 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3268 sort_symtab_syms.
3269 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3270 sort_symtab_syms.
3271 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3272 Include dictionary.h.
3273 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3274 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3275 sort_symtab_syms.
3276 * objfiles.c: Include dictionary.h.
3277 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3278 * buildsym.c: Include dictionary.h.
3279 (finish_block): Use dictionary methods.
3280 (end_symtab): Set free_func to NULL, not free_ptr.
3281 * tracepoint.c: Include dictionary.h.
3282 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3283 (scope_info): Ditto.
3284 * stack.c: Include dictionary.h.
3285 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3286 (print_block_frame_labels, print_frame_arg_vars)
3287 (print_frame_args): Ditto.
3288 * symmisc.c (free_symtab_block): Use dictionary methods.
3289 (dump_symtab): Ditto.
3290 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3291 Include dictionary.h.
3292 * symfile.h: Delete declarations of sort_block_syms,
3293 sort_symtab_syms.
3294 * symfile.c (sort_block_syms): Delete.
3295 (sort_symtab_syms): Delete.
3296 * symtab.c: Include dictionary.h.
3297 (lookup_block_symbol): Use dictionary iterators.
3298 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3299 (search_symbols, make_symbol_completion_list): Ditto.
3300 (make_symbol_overload_list): Ditto.
3301 * valops.c (value_of_local): Use dict_empty.
3302 Include dictionary.h.
3303
3304 2003-06-11 J. Brobecker <brobecker@gnat.com>
3305
3306 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3307
3308 2003-06-11 David Carlton <carlton@bactrian.org>
3309
3310 * block.h (BLOCK_SHOULD_SORT): Delete.
3311 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3312 blocks.
3313 * ada-lang.c (ada_add_block_symbols): Ditto.
3314 * symfile.c (sort_block_syms): Delete.
3315 (sort_symtab_syms): Ditto.
3316 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3317 declarations.
3318 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3319 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3320 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3321 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3322 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3323 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3324 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3325
3326 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3327
3328 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3329 bits to 128.
3330
3331 2003-06-11 Andrew Cagney <cagney@redhat.com>
3332
3333 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3334 REGISTER_CONVERTIBLE.
3335 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3336 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3337 * gdbarch.h, gdbarch.c: Re-generate.
3338 * arch-utils.h (deprecated_register_convertible_not): Rename
3339 generic_register_convertible_not.
3340 * arch-utils.c (deprecated_register_convertible_not): Rename
3341 generic_register_convertible.
3342 (legacy_convert_register_p, legacy_register_to_value): Update.
3343 * sh-tdep.c (sh64_push_arguments): Update.
3344 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3345 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3346 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3347 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3348 * arch-utils.c (legacy_value_to_register): Update.
3349 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3350 (rs6000_register_convert_to_raw): Make parameter "from" const.
3351 * mips-tdep.c (mips_gdbarch_init): Update.
3352 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3353 * infcmd.c (default_print_registers_info): Update.
3354 * ia64-tdep.c (ia64_gdbarch_init): Update.
3355 (ia64_register_convert_to_raw): Make parameter "from" const.
3356 * i386-tdep.c (i386_gdbarch_init): Update.
3357 (i386_register_convert_to_raw): Update.
3358
3359 2003-06-11 Andrew Cagney <cagney@redhat.com>
3360
3361 * remote-fileio.c: Include "remote-fileio.h".
3362 * Makefile.in (remote-fileio.o): Update dependencies.
3363 (remote_fileio_h): Fix typo.
3364
3365 2003-06-11 Andrew Cagney <cagney@redhat.com>
3366
3367 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3368 (xstormy16_save_dummy_frame_tos): Make static.
3369 (_initialize_xstormy16_tdep): Add declaration.
3370 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3371 * v850-tdep.c: Make local functions static.
3372 (_initialize_v850_tdep): Add declaration.
3373 * sparc-tdep.c: Make local functions static.
3374 (_initialize_sparc_tdep): Add declaration.
3375 * sh-tdep.c: Make local functions static.
3376 (_initialize_sh_tdep): Add declaration.
3377 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3378 * s390-tdep.c: Make local functions static.
3379 (_initialize_s390_tdep): Add declaration.
3380 * dbxread.c (find_stab_function_addr): Make static.
3381 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3382 * ocd.c (_initialize_remote_ocd): Add declaration.
3383 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3384 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3385 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3386 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3387 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3388 * remote-array.c (_initialize_array): Add declaration.
3389 (_initialize_remote_monitors): Add declaration.
3390 * remote-mips.c: Make local functions static.
3391 (_initialize_remote_mips): Add declaration.
3392 * mcore-tdep.c: Make all local functions static.
3393 (_initialize_mcore_tdep): Add declaration.
3394 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3395 * abug-rom.c (_initialize_abug_rom): Add declaration.
3396 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3397 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3398 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3399 * remote-est.c (_initialize_est): Add declaration.
3400 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3401 (m68hc11_call_dummy_address): Make static.
3402 * ia64-tdep.c: Make local functions static.
3403 (_initialize_ia64_tdep): Add declaration.
3404 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3405 * monitor.c (monitor_wait_filter): Make static.
3406 (_initialize_remote_monitors): Add declaration.
3407 * remote-hms.c (_initialize_remote_hms): Add declaration.
3408 * remote-e7000.c (fetch_regs_from_dump): Make static.
3409 (expect_n): Make static.
3410 (_initialize_remote_e7000): Add declaration.
3411 * ser-e7kpc.c: Always include "defs.h".
3412 (_initialize_ser_e7000pc): Add declaration.
3413 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3414 * cris-tdep.c: Make all but one function static.
3415 (_initialize_cris_tdep): Add declaration.
3416 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3417 * solib.c (update_solib_list): Make static.
3418 (_initialize_solib): Add declaration.
3419 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3420 (_initialize_avr_tdep): Add declaration.
3421 * remote-rdi.c (voiddummy): Make static.
3422 (_initialize_remote_rdi): Add declaration.
3423 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3424 * remote-rdp.c (send_rdp): Make static.
3425 (_initialize_remote_rdp): Add declaration.
3426 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3427
3428 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
3429
3430 * remote-fileio.c: Make ari happy.
3431
3432 2003-06-10 J. Brobecker <brobecker@gnat.com>
3433
3434 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3435 fetching the trailing bytes of the buffer we are about to write.
3436
3437 2003-06-10 Andrew Cagney <cagney@redhat.com>
3438
3439 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3440 * Makefile.in (remote-fileio.o): Update dependencies.
3441 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3442 include <setjmp.h>, or <sys/types.h> conditional on USG.
3443 (remote_fio_jmp_buf): Delete global variable.
3444
3445 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
3446 Martin M. Hunt <hunt@redhat.com>
3447
3448 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3449 (SFILES): Add remote-fileio.c.
3450 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3451 dependencies for building remote.o.
3452 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3453 * remote-fileio.h: New header file defining remote File-I/O interface.
3454 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3455 static storage class.
3456 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3457 'F' packet.
3458 (_initialize_remote): Call initialize_remote_fileio().
3459 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3460 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3461 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3462 (captured_main): Initialize new ui_files.
3463 * ui-file.c: Add read and fgets input functions.
3464 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3465 (null_file_read): New function.
3466 (ui_file_read): New function.
3467 (set_ui_file_read): New function.
3468 (stdio_file_read): New function.
3469 * ui-file.h: New type ui_file_read_ftype.
3470 (set_ui_file_read): Declare.
3471 (ui_file_read): Declare.
3472
3473 2003-06-09 Andrew Cagney <cagney@redhat.com>
3474
3475 * frame.h (deprecated_unwind_get_saved_register): Rename
3476 generic_unwind_get_saved_register, update comments.
3477 * mips-tdep.c (mips_get_saved_register): Update.
3478 * frame.c (deprecated_unwind_get_saved_register): Update.
3479
3480 2003-06-09 Andrew Cagney <cagney@redhat.com>
3481
3482 * vax-tdep.c (vax_frame_locals_address): Delete function.
3483 (vax_gdbarch_init): Do not set frame_locals_address.
3484 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3485 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3486 * s390-tdep.c (s390_frame_args_address): Delete function.
3487 (s390_gdbarch_init): Do not set frame_args_address or
3488 frame_locals_address.
3489 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3490 (ns32k_gdbarch_init): Do not set frame_locals_address.
3491 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3492 (hppa_frame_locals_address): Delete function.
3493 (hppa_gdbarch_init): Do not set frame_args_address, or
3494 frame_locals_address.
3495 * arm-tdep.c (arm_frame_args_address): Delete.
3496 (arm_frame_locals_address): Delete.
3497 (arm_gdbarch_init): Do not set frame_args_address, or
3498 frame_locals_address.
3499
3500 2003-06-09 Andrew Cagney <cagney@redhat.com>
3501
3502 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3503 * gdbarch.h, gdbarch.c: Re-generate.
3504 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3505 * arch-utils.c (frame_num_args_unknown): Delete function.
3506 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3507 (frame_info): Use FRAME_NUM_ARGS_P.
3508 * arm-tdep.c (arm_frame_num_args): Delete function.
3509 (arm_gdbarch_init): Do not set frame_num_args.
3510 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3511 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3512 (hppa_gdbarch_init): Do not set frame_num_args.
3513 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3514 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3515 frame_num_args to default frame_num_args_unknown.
3516 * v850-tdep.c (v850_gdbarch_init): Ditto.
3517 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3518 * sh-tdep.c (sh_gdbarch_init): Ditto.
3519 * s390-tdep.c (s390_gdbarch_init): Ditto.
3520 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3521 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3522 * mips-tdep.c (mips_gdbarch_init): Ditto.
3523 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3524 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3525 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3526 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3527 * i386-tdep.c (i386_gdbarch_init): Ditto.
3528 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3529 * frv-tdep.c (frv_gdbarch_init): Ditto.
3530 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3531 * cris-tdep.c (cris_gdbarch_init): Ditto.
3532 * avr-tdep.c (avr_gdbarch_init): Ditto.
3533 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3534
3535 2003-06-09 Andrew Cagney <cagney@redhat.com>
3536
3537 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3538 (print_frame_args): Moved to "stack.c".
3539 * stack.c: Include "gdb_assert.h".
3540 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3541 (print_frame_args): Moved from "printcmd.c".
3542 * frame.h (print_frame_args): Delete declaration.
3543 * Makefile.in (stack.o): Update dependencies.
3544
3545 2003-06-08 Andrew Cagney <cagney@redhat.com>
3546
3547 * frame.c (get_prev_frame): Remove reference to
3548 frame_args_address_correct in comments.
3549 * frame-base.c (default_frame_args_address): Delete code
3550 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3551 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3552 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3553 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3554 (vax_frame_args_address_correct): Delete declaration.
3555
3556 2003-06-08 Andrew Cagney <cagney@redhat.com>
3557
3558 * gdbarch.sh (UNWIND_SP): Add.
3559 * gdbarch.h, gdbarch.c: Re-generate.
3560 * frame.c (frame_sp_unwind): New function.
3561 (get_frame_sp): New function.
3562 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3563 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3564 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3565 value.
3566 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3567 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3568
3569 2003-06-08 Andrew Cagney <cagney@redhat.com>
3570
3571 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3572 REMOTE_BREAKPOINT.
3573 * remote.c: Update.
3574 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3575 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3576 * config/m68k/tm-sun3.h: Update.
3577 * config/m68k/tm-m68klynx.h: Update.
3578 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3579
3580 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3581 trad_frame". Update comments.
3582 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3583 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3584 (trad_frame_register_value, trad_frame_prev_register): Update.
3585
3586 2003-06-08 Andrew Cagney <cagney@redhat.com>
3587
3588 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3589 from GCC's acinclude.m4.
3590 * configure.in: Check for getopt's delcaration.
3591 * aclocal.m4, config.in, configure: Re-generate.
3592 * main.c (error_init): Delete declaration.
3593 * defs.h (error_init): Declare.
3594 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3595 (rs6000_convert_from_func_ptr_addr): Make static.
3596 (_initialize_rs6000_tdep): Add declaration.
3597 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3598 (show_commands, set_verbose, show_history): Delete declaration.
3599 * top.h (set_verbose): Add declaration.
3600 (show_history, set_history, show_commands): Add declaration.
3601 (do_restore_instream_cleanup): Add declaration.
3602 * objc-lang.c (specialcmp): Make static.
3603 (print_object_command): Make static.
3604 (find_objc_msgsend): Make static.
3605 (find_objc_msgcall_submethod_helper): Make static.
3606 (find_objc_msgcall_submethod): Make static.
3607 (_initialize_objc_language): Add declaration.
3608 (find_implementation_from_class): Make static.
3609 (find_implementation): Make static.
3610 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3611 * objc-lang.h (lookup_struct_typedef): Add declaration.
3612 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3613 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3614 (do_restore_user_call_depth): Make static.
3615 (do_restore_instream_cleanup): Delete declaration.
3616 (dont_repeat): Delete declaration.
3617 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3618 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3619 * reggroups.c (_initialize_reggroup): Add declaration.
3620 * cp-support.c (_initialize_cp_support): Add declaration.
3621 * cp-abi.c (_initialize_cp_abi): Add declaration.
3622 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3623 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3624 (_initialize_gnu_v3_abi): Add declaration.
3625 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3626 (_initialize_gnu_v2_abi): Add declaration.
3627 * frame-base.c (_initialize_frame_base): Add declaration.
3628 * doublest.c (floatformat_from_length): Make static.
3629 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3630 * frame.c (create_sentinel_frame): Make static.
3631 (_initialize_frame): Add declaration.
3632 * top.c (do_catch_errors): Make static.
3633 (gdb_rl_operate_and_get_next_completion): Make static.
3634 * typeprint.c: Include "typeprint.h".
3635 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3636 (sentinel_frame_this_id): Make static.
3637 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3638 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3639 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3640 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3641 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3642 * maint.c (maintenance_print_architecture): Make static.
3643 * signals/signals.c (_initialize_signals): Add declaration.
3644 * std-regs.c (_initialize_frame_reg): Add declaration.
3645 * jv-exp.y (push_variable): ISO C definition.
3646 (push_qualified_expression_name): Ditto.
3647 * memattr.c (_initialize_mem): Add declaration.
3648 * remote.c (remote_check_watch_resources): Make static.
3649 (remote_stopped_by_watchpoint): Make static.
3650 (remote_stopped_data_address): Make static.
3651 * d10v-tdep.c (nr_dmap_regs): Make static.
3652 (a0_regnum): Make static.
3653 (d10v_frame_unwind_cache): Make static.
3654 (d10v_frame_p): Make static.
3655 * osabi.c (show_osabi): Make static.
3656 (_initialize_gdb_osabi): Add extern declaration.
3657 * gdbtypes.c (make_qualified_type): Make static.
3658 (safe_parse_type): Make static.
3659 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3660 * macrotab.c (macro_bcache_free): Make static.
3661 * interps.c (interp_set_quiet): Make static.
3662 (interpreter_exec_cmd): Make static.
3663 * stack.h (select_frame_command): New file.
3664 * stack.c: Include "stack.h".
3665 (select_frame_command_wrapper): Delete function.
3666 (select_frame_command): Make global.
3667 * infcall.c: Include "infcall.h".
3668 * linespec.c: Include "linespec.h".
3669 * symfile.c (sections_overlap): Make static.
3670 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3671 * charset.c (_initialize_charset): Add missing prototype.
3672 * regcache.c (init_legacy_regcache_descr): Make static.
3673 (do_regcache_xfree): Make static.
3674 (regcache_xfer_part): Make static.
3675 (_initialize_regcache): Add missing prototype.
3676 * breakpoint.c (parse_breakpoint_sals): Make static.
3677 (breakpoint_sals_to_pc): Make static.
3678 * interps.h (clear_interpreter_hooks): ISO C declaration.
3679 * Makefile.in (stack_h): Define.
3680 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3681 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3682
3683 2003-06-08 Andrew Cagney <cagney@redhat.com>
3684
3685 * Makefile.in (d10v-tdep.o): Update dependencies.
3686 (SFILES): Add trad-frame.c.
3687 (trad_frame_h): Define.
3688 (COMMON_OBS): Add trad-frame.o.
3689 (trad-frame.o): Specify dependencies.
3690 * d10v-tdep.c: Include "trad-frame.h".
3691 (saved_regs_unwinder): Delete function.
3692 (d10v_frame_prev_register): Use trad_frame_prev_register.
3693 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3694 trad_frame", delete "regs" and "prev_sp".
3695 (prologue_find_regs): Use trad-frame.
3696 * trad-frame.h, trad-frame.c: New files.
3697
3698 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3699
3700 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3701
3702 2003-06-07 Adam Fedor <fedor@gnu.org>
3703
3704 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3705 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3706 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3707 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3708 resolve_msgsend_super, resolve_msgsend_super_stret):
3709 Use it.
3710
3711 2003-06-07 Andrew Cagney <cagney@redhat.com>
3712
3713 * symfile.h: Re-indent, clean up comments.
3714
3715 2003-06-07 Andrew Cagney <cagney@redhat.com>
3716
3717 * inferior.h (deprecated_write_sp): Replace
3718 generic_target_write_sp.
3719 * regcache.c (deprecated_write_sp): Replace
3720 generic_target_write_sp.
3721 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3722 * vax-tdep.c (vax_gdbarch_init): Update.
3723 * v850-tdep.c (v850_gdbarch_init): Update.
3724 * sparc-tdep.c (sparc_gdbarch_init): Update.
3725 * sh-tdep.c (sh_gdbarch_init): Update.
3726 * s390-tdep.c (s390_gdbarch_init): Update.
3727 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3728 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3729 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3730 * mcore-tdep.c (mcore_gdbarch_init): Update.
3731 * m68k-tdep.c (m68k_gdbarch_init): Update.
3732 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3733 * ia64-tdep.c (ia64_gdbarch_init): Update.
3734 * h8300-tdep.c (h8300_gdbarch_init): Update.
3735 * frv-tdep.c (frv_gdbarch_init): Update.
3736 * cris-tdep.c (cris_gdbarch_init): Update.
3737 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3738
3739 2003-06-07 Andrew Cagney <cagney@redhat.com>
3740
3741 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3742 Assert that PC_REGNUM is valid.
3743 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3744
3745 2003-06-07 Andrew Cagney <cagney@redhat.com>
3746
3747 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3748 * gdbarch.h, gdbarch.c: Regenerate.
3749 * mn10300-tdep.c: Include "gdb_assert.h".
3750 (mn10300_read_fp): New function.
3751 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3752 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3753 * ia64-tdep.c: Include "gdb_assert.h".
3754 (ia64_read_fp): New function.
3755 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3756 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3757 * regcache.c (generic_target_read_sp): Delete function.
3758 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3759 * inferior.h (generic_target_read_sp): Delete declaration.
3760 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3761 generic_target_read_sp.
3762 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3763 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3764 * sh-tdep.c (sh_gdbarch_init): Ditto.
3765 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3766 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3767
3768 2003-06-07 Andrew Cagney <cagney@redhat.com>
3769
3770 * gdbarch.sh: Comment each field of startup_gdbarch.
3771 * gdbarch.h, gdbarch.c: Re-generate.
3772
3773 2003-06-07 Andrew Cagney <cagney@redhat.com>
3774
3775 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3776 * gdbarch.h, gdbarch.c: Re-generate.
3777 * regcache.c: Update comments on read_pc et.al.
3778 (generic_target_read_pc): Delete function.
3779 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3780 * inferior.h (generic_target_read_pc): Delete declaration.
3781 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3782 generic_target_read_pc.
3783 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3784 * sh-tdep.c (sh_gdbarch_init): Ditto.
3785 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3786 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3787
3788 2003-06-07 Andrew Cagney <cagney@redhat.com>
3789
3790 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3791 "index" with "special_local_sect". Use strcmp instead of STREQ.
3792 Append period to coments.
3793
3794 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3795
3796 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3797 (elfstab_offset_sections): Likewise.
3798 * gdb-stabs.h (stab_section_info): Likewise.
3799 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3800 * objfiles.c (objfile_relocate): Likewise.
3801 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3802 * remote.c (get_offsets): Likewise.
3803 (remote_cisco_objfile_relocate): Likewise.
3804 * somread.c (som_symfile_offsets): Likewise.
3805 * symfile.c (alloc_section_addr_info): New function.
3806 (build_section_addr_info_from_section_tab): Use it.
3807 (free_section_addr_info): Adjust.
3808 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3809 (syms_from_objfile): Allocate local_addr dynamically.
3810 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3811 dynamically.
3812 (add_symbol_file_command): Allocate sect_opts dynamically.
3813 (reread_symbols): Avoid use of SECT_OFF_MAX.
3814 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3815 (alloc_section_addr_info): Declare it.
3816 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3817 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3818 dynamically.
3819 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3820
3821 2003-06-06 Andrew Cagney <cagney@redhat.com>
3822
3823 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3824 (d10v_frame_unwind_cache): Do not set "return_pc".
3825
3826 2003-06-06 Michael Snyder <msnyder@redhat.com>
3827
3828 * h8300-tdep.c: Make tidy (long lines).
3829
3830 2003-06-06 Michal Ludvig <mludvig@suse.cz>
3831
3832 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3833 to regcache_collect().
3834
3835 2003-06-05 J. Brobecker <brobecker@gnat.com>
3836
3837 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3838 pc_in_sigtramp multiarch method.
3839 (hppa_hpux_som_init_abi): Use it.
3840 (hppa_hpux_elf_init_abi): Likewise.
3841 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3842 macro has been multiarched.
3843 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3844 macro here, as hppa64 isn't multiarched yet.
3845
3846 2003-06-05 Andrew Cagney <cagney@redhat.com>
3847
3848 * Makefile.in (value_h): Add $(frame_h).
3849 * value.h: Include "frame.h".
3850 (struct value): Replace "frame_addr" with "frame_id".
3851 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3852 * values.c (allocate_value): Use VALUE_FRAME_ID.
3853 (value_copy): Use VALUE_FRAME_ID.
3854 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3855 * valops.c (value_assign): Update. Use frame_find_by_id.
3856
3857 2003-06-05 Michal Ludvig <mludvig@suse.cz>
3858
3859 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3860 in each pass.
3861
3862 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3863
3864 * thread-db.c (check_event): For create/death event breakpoints,
3865 loop through all messages to ensure that we read the message
3866 corresponding to the breakpoint we are at.
3867
3868 2003-06-04 Michael Snyder <msnyder@redhat.com>
3869
3870 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3871
3872 2003-06-04 Mark Kettenis <kettenis@gnu.org>
3873
3874 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3875 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3876 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3877 when handling .eh_frame sections.
3878
3879 2003-06-04 J. Brobecker <brobecker@gnat.com>
3880
3881 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3882 prepare_to_proceed procedure instead of the hppa-specific one.
3883 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3884
3885 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
3886
3887 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3888 * config.in: Regenerated.
3889 * configure.in: Add test for syscall function and check for
3890 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3891 * configure: Regenerated.
3892 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3893 <sys/syscall.h>.
3894 (kill_lwp): New function that uses tkill syscall or
3895 uses kill, depending on whether threading model is nptl or not.
3896 All callers of kill() changed to use kill_lwp().
3897 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3898 see if all threads have already exited in the nptl model.
3899 (stop_and_resume_callback): New callback function used by the
3900 lin_lwp_wait thread exit handling code.
3901 (stop_wait_callback): Check for threads already having exited and
3902 delete such threads fromt the lwp list when discovered.
3903 (stop_callback): Don't assert retcode of kill call.
3904
3905 Roland McGrath <roland@redhat.com>
3906 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3907 nptl libthread_db.
3908
3909 2003-06-03 Richard Henderson <rth@redhat.com>
3910
3911 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3912 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3913 (alpha_sigtramp_frame_prev_register): Likewise.
3914 (alpha_heuristic_frame_prev_register): Likewise.
3915 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3916
3917 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3918 alpha-specific register id names.
3919 (alpha_mdebug_frame_unwind_cache): Likewise.
3920 (alpha_mdebug_frame_prev_register): Likewise.
3921
3922 2003-06-03 Richard Henderson <rth@redhat.com>
3923
3924 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3925 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3926 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3927 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3928 unwind routines.
3929 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3930 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3931 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3932
3933 * alpha-linux-tdep.c: Remove unnecessary includes.
3934 * Makefile.in (alpha-linux-tdep.o): Update.
3935
3936 2003-06-03 Richard Henderson <rth@redhat.com>
3937
3938 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3939 (alphabsd_fill_fpreg): Likewise.
3940
3941 2003-06-03 J. Brobecker <brobecker@gnat.com>
3942
3943 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3944 references to struct frame_info fields by calls to the equivalent
3945 accessors. Necessary now that frame_info is opaque.
3946
3947 2003-06-03 J. Brobecker <brobecker@gnat.com>
3948
3949 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3950 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3951 structure, field no longer exists.
3952
3953 2003-06-03 J. Brobecker <brobecker@gnat.com>
3954
3955 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3956 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3957
3958 2003-06-03 J. Brobecker <brobecker@gnat.com>
3959
3960 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3961 references to struct frame_info fields by calls to the equivalent
3962 accessors. Necessary now that frame_info is opaque.
3963
3964 2003-06-03 J. Brobecker <brobecker@gnat.com>
3965
3966 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3967 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3968 structure, field no longer exists.
3969
3970 2003-06-03 Theodore A. Roth <troth@openavr.org>
3971
3972 * remote.c (init_remote_state): Compute sizeof_g_packet by
3973 accumulation of the size of all registers instead of blindly using
3974 DEPRECATED_REGISTER_BYTES.
3975
3976 2003-06-03 Michael Snyder <msnyder@redhat.com>
3977
3978 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3979 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3980 for h8300sx.
3981
3982 2003-06-03 J. Brobecker <brobecker@gnat.com>
3983
3984 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3985 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3986
3987 2003-06-03 Andrew Cagney <cagney@redhat.com>
3988
3989 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3990 (sparc_convert_to_raw): Delete function.
3991 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3992 register_convert_to_virtual.
3993
3994 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3995
3996 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3997 layer if not dealing with a statically-linked threaded program.
3998
3999 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4000
4001 * solib.c (solib_open): Update comment to reflect actual search order.
4002
4003 2003-06-03 Andrew Cagney <cagney@redhat.com>
4004
4005 * frame.c (get_frame_memory_signed): New function.
4006 (get_frame_memory, get_frame_memory_unsigned): New function.
4007 (get_frame_arch): New function.
4008 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4009 (get_frame_memory, get_frame_unsigned_memory): Declare.
4010 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4011 get_frame_memory_unsigned and get_frame_arch.
4012 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4013
4014 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4015
4016 * MAINTAINERS (write after approval): Add myself.
4017
4018 2003-06-03 Jim Blandy <jimb@redhat.com>
4019
4020 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4021 elements of gregset_t are 64 bits each, but access registers
4022 are still 32 bits, so they're packed two per gregset_t
4023 element. Unpack/pack them properly.
4024
4025 2003-06-02 David Carlton <carlton@bactrian.org>
4026
4027 * linespec.c (find_methods): Break out code into
4028 add_matching_methods and add_constructors.
4029 (add_matching_methods): New.
4030 (add_constructors): Ditto.
4031
4032 2003-06-02 Andrew Cagney <cagney@redhat.com>
4033
4034 * sparc-tdep.c (sparc_print_registers): Delete call to
4035 REGISTER_CONVERTIBLE.
4036 (sparc_gdbarch_init): Do not set register_convertible.
4037 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4038 * frv-tdep.c (frv_gdbarch_init): Ditto.
4039 * cris-tdep.c (cris_gdbarch_init): Ditto.
4040
4041 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
4042
4043 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4044 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4045 (syms_from_objfile): Ditto.
4046
4047 2003-06-03 Andreas Schwab <schwab@suse.de>
4048
4049 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4050 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4051
4052 2003-06-02 Richard Henderson <rth@redhat.com>
4053
4054 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4055 a member of all_reggroup.
4056
4057 2003-06-02 Richard Henderson <rth@redhat.com>
4058
4059 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4060 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4061 (alpha_lds, alpha_sts): New.
4062 (alpha_convert_register_p): Change from _register_convertible.
4063 (alpha_register_to_value): Change from _convert_to_virtual;
4064 restructure and fail for type sizes other than 4 or 8.
4065 (alpha_value_to_register): Similarly.
4066 (alpha_extract_return_value): Use alpha_sts.
4067 (alpha_store_return_value): Use alpha_lds.
4068 (alpha_gdbarch_init): Update hooks.
4069
4070 2003-06-02 Richard Henderson <rth@redhat.com>
4071
4072 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4073 regnum identifiers.
4074 (alpha_sigtramp_register_address): Likewise.
4075
4076 2003-06-02 Richard Henderson <rth@redhat.com>
4077
4078 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4079 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4080 * alpha-tdep.h: Declare them.
4081
4082 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4083 Remove zerobuf. Don't error on UNIQUE.
4084 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4085 (ALPHA_REGSET_UNIQUE): Provide default.
4086 (supply_gregset): Use alpha_supply_int_regs.
4087 (fill_gregset): Use alpha_fill_int_regs.
4088 (supply_fpregset): Use alpha_supply_fp_regs.
4089 (fill_fpregset): Use alpha_fill_fp_regs.
4090 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4091 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4092 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4093 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4094 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4095 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4096
4097 2003-06-02 Richard Henderson <rth@redhat.com>
4098
4099 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4100
4101 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4102 (alpha_store_return_value): Likewise.
4103
4104 2003-06-02 David Carlton <carlton@math.stanford.edu>
4105
4106 * block.c (contained_in): Add 'const' to arguments.
4107 (block_function): Ditto.
4108 * block.h: Update declarations for block_function and
4109 contained_in.
4110
4111 2003-06-02 David Carlton <carlton@math.stanford.edu>
4112
4113 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4114 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4115 * p-valprint.c (pascal_val_print): Ditto.
4116 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4117
4118 2003-06-02 Richard Henderson <rth@redhat.com>
4119
4120 * alpha-tdep.c (alpha_push_dummy_call): Use
4121 builtin_type_ieee_double_little instead of builtin_type_double.
4122
4123 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4124 sign-extension of 32-bit values.
4125 (alpha_store_return_value): Similarly.
4126
4127 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4128 (alpha_extract_return_value): Likewise.
4129 (alpha_store_return_value): Likewise.
4130
4131 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4132 (alpha_store_return_value): Error on IEEE Quad floats.
4133
4134 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4135 (alpha_extract_struct_value_address): Likewise.
4136 (alpha_store_return_value): Likewise.
4137 (alpha_store_struct_return): Remove.
4138 (alpha_gdbarch_init): Update hook registration to match.
4139
4140 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4141 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4142 macros where appropriate.
4143 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4144 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4145
4146 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4147 for SP, GP; void_func_ptr for PC; non-language-specific types
4148 for all others.
4149 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4150
4151 2003-06-02 Richard Henderson <rth@redhat.com>
4152
4153 * top.h (lim_at_start): Declare.
4154 * main.c (captured_main): Set it.
4155 * top.c (lim_at_start): Define.
4156 (command_loop): Use it instead of &environ.
4157 * event-top.c (command_handler): Likewise.
4158
4159 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4160
4161 * mipsnbsd-tdep.c: Update copyright years.
4162 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4163
4164 2003-06-01 Richard Henderson <rth@redhat.com>
4165
4166 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4167 (alpha-linux-tdep.o): Update dependencies.
4168 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4169 * alpha-mdebug-tdep.c: Remove unneeded includes.
4170
4171 2003-06-01 Richard Henderson <rth@redhat.com>
4172
4173 * alpha-tdep.c (alpha_register_reggroup_p): New.
4174 (alpha_gdbarch_init): Register it.
4175
4176 2003-06-02 Andrew Cagney <cagney@redhat.com>
4177
4178 * dwarfread.c: Eliminate "register"
4179 (decode_die_type): Eliminate assignment within "if".
4180 (struct_type, decode_array_element_type): Ditto.
4181 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4182 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4183 (decode_modified_type, completedieinfo): Ditto.
4184 * block.c: Eliminate "register".
4185 (blockvector_for_pc_sect): Eliminate assignment within "if".
4186 * cp-support.h (struct symbol): Opaque declaration.
4187 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4188
4189 2003-06-01 Richard Henderson <rth@redhat.com>
4190
4191 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4192 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4193
4194 2003-06-01 Adam Fedor <fedor@gnu.org>
4195
4196 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4197 * gdbarch.[ch]: Regenerate.
4198 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4199 (hppa_gdbarch_init): Set it in the gdbarch vector.
4200 * i386-tdep.c (i386_fetch_pointer_argument): New
4201 (i386_gdbarch_init): Set it into gdbarch.
4202 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4203 (rs6000_gdbarch_init): Set it in gdbarch.
4204 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4205 (sparc_gdbarch_init): Set it in gdbarch.
4206
4207 2003-06-01 Andrew Cagney <cagney@redhat.com>
4208
4209 * defs.h (extract_address): Delete declaration.
4210 * findvar.c (extract_address): Delete function.
4211 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4212 extract_address with the inline equivalent,
4213 extract_unsigned_integer.
4214 (xstormy16_extract_struct_value_address): Ditto.
4215 (xstormy16_pointer_to_address): Ditto.
4216 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4217 * v850-tdep.c (v850_push_arguments): Ditto.
4218 (v850_extract_return_value): Ditto.
4219 (v850_extract_struct_value_address): Ditto.
4220 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4221 (sparcnbsd_get_longjmp_target_64): Ditto.
4222 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4223 (get_longjmp_target): Ditto.
4224 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4225 (sh64_extract_struct_value_address): Ditto.
4226 (sh_push_arguments): Ditto.
4227 (sh64_push_arguments): Ditto.
4228 * remote-vxsparc.c (vx_read_register): Ditto.
4229 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4230 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4231 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4232 * mipsv4-nat.c (get_longjmp_target): Ditto.
4233 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4234 * mips-nat.c (get_longjmp_target): Ditto.
4235 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4236 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4237 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4238 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4239 * irix5-nat.c (get_longjmp_target): Ditto.
4240 * irix4-nat.c (get_longjmp_target): Ditto.
4241 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4242 (ia64_push_arguments): Ditto.
4243 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4244 * h8300-tdep.c (h8300_push_arguments): Ditto.
4245 (h8300_store_return_value): Ditto.
4246 (h8300_extract_struct_value_address): Ditto.
4247 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4248 (frv_push_arguments): Ditto.
4249 * avr-tdep.c (avr_pointer_to_address): Ditto.
4250 (avr_push_arguments): Ditto.
4251 * arm-tdep.c (arm_push_dummy_call): Ditto.
4252 (arm_get_longjmp_target): Ditto.
4253 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4254 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4255 (alpha_get_longjmp_target): Ditto.
4256
4257 * solib-irix.c (extract_mips_address): Inline extract_address,
4258 replacing it with extract_signed_integer.
4259 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4260 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4261 (first_link_map_member, open_symbol_file_object): Ditto.
4262 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4263 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4264 (LM_NEXT, LM_NAME): Ditto.
4265
4266 2003-06-01 Richard Henderson <rth@redhat.com>
4267
4268 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4269 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4270 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4271 (alpha_cannot_store_register): Likewise.
4272 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4273 * alpha-nat.c (supply_gregset): Likewise.
4274 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4275
4276 2003-06-01 Andrew Cagney <cagney@redhat.com>
4277
4278 * infcall.c (call_function_by_hand): Update comment on
4279 DEPRECATED_DUMMY_WRITE_SP.
4280
4281 * mips-tdep.c (mips_gdbarch_init): Do not set
4282 deprecated_dummy_write_sp.
4283 (mips_eabi_push_dummy_call): Set the SP register.
4284 (mips_o64_push_dummy_call): Set the SP register.
4285 (mips_o32_push_dummy_call): Set the SP register.
4286 (mips_n32n64_push_dummy_call): Set the SP register.
4287
4288 2003-06-01 Richard Henderson <rth@redhat.com>
4289
4290 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4291 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4292 (supply_gregset): Likewise.
4293 * alpha-tdep.c (alpha_store_return_value): Likewise.
4294 (alpha_get_longjmp_target): Likewise.
4295 (alpha_register_name): Constify array.
4296 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4297 deprecated_register_size, deprecated_register_bytes,
4298 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4299 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4300 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4301
4302 2003-06-01 Richard Henderson <rth@redhat.com>
4303
4304 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4305 from arg_reg_buffer to regcache to avoid double conversion.
4306
4307 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4308
4309 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4310 SP_REGNUM.
4311 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4312 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4313
4314 2003-06-01 Richard Henderson <rth@redhat.com>
4315
4316 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4317 (decode_frame_entry): Set it. Skip FDE augmentation.
4318
4319 2003-06-01 Richard Henderson <rth@redhat.com>
4320
4321 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4322 not overlapping PC_REGNUM.
4323
4324 2003-06-01 Richard Henderson <rth@redhat.com>
4325
4326 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4327 alpha_push_arguments. Don't dump argument register data to
4328 the target stack. Fix float and 128-bit long double semantics.
4329 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4330 (alpha_fix_call_dummy): Remove.
4331 (alpha_call_dummy_words): Remove.
4332 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4333
4334 2003-06-01 Richard Henderson <rth@redhat.com>
4335
4336 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4337
4338 2003-06-01 Andrew Cagney <cagney@redhat.com>
4339
4340 * mips-tdep.c (is_mips16_addr): New function.
4341 (make_mips16_addr, unmake_mips16_addr): New functions.
4342 (pc_is_mips16, mips_fetch_instruction): Use.
4343 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4344 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4345 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4346 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4347 TARGET_MIPS.
4348 * config/mips/tm-mips.h: Update copyright.
4349 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4350 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4351 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4352 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4353 (TM_PRINT_INSN_MACH): Delete.
4354 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4355
4356 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4357 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4358 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4359 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4360 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4361 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4362 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4363 mips*-*-riscos* and mips*-*-sysv* onto mips.
4364 * config/mips/mips64.mt: New file.
4365 * config/mips/mips.mt: New file.
4366 * config/mips/littlemips.mt: Delete file.
4367 * config/mips/decstation.mt: Delete file.
4368 * config/mips/vr4300el.mt: Delete file.
4369 * config/mips/vr5000el.mt: Delete file.
4370 * config/mips/vr5000.mt: Delete file.
4371 * config/mips/vr4100.mt: Delete file.
4372 * config/mips/vr4xxxel.mt: Delete file.
4373 * config/mips/vr4300.mt: Delete file.
4374 * config/mips/vr4xxx.mt: Delete file.
4375 * config/mips/bigmips.mt: Delete file.
4376 * config/mips/bigmips64.mt: Delete file.
4377 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4378 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4379 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4380 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4381 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4382 "tm-bigmips.h".
4383 * config/mips/tm-irix3.h: Ditto.
4384 * config/mips/tm-mipsv4.h: Ditto.
4385 * config/mips/tm-embed.h: Ditto.
4386 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4387 "tm-bigmips64.h".
4388 * config/mips/tm-vr5000el.h: Delete file.
4389 * config/mips/tm-tx39l.h: Delete file.
4390 * config/mips/tm-vr4300el.h: Delete file.
4391 * config/mips/tm-vr4xxxel.h: Delete file.
4392 * config/mips/tm-vr4300.h: Delete file.
4393 * config/mips/tm-vr4100.h: Delete file.
4394 * config/mips/tm-vr4xxx.h: Delete file.
4395 * config/mips/tm-vr5000.h: Delete file.
4396 * config/mips/tm-embedl64.h: Delete file.
4397 * config/mips/tm-embedl.h: Delete file.
4398 * config/mips/tm-embed64.h: Delete file.
4399 * config/mips/tm-bigmips64.h: Delete file.
4400 * config/mips/tm-bigmips.h: Delete file.
4401
4402 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4403
4404 Fix gdb/1216.
4405 * shnbsd-nat.c: Include "sh-tdep.h".
4406
4407 From Richard Henderson <rth@redhat.com>:
4408 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4409
4410 2003-05-31 Andrew Cagney <cagney@redhat.com>
4411
4412 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4413 forward declaration.
4414 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4415 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4416 (mips_find_saved_regs): Use set_reg_offset.
4417 (mips_frame_init_saved_regs): Delete function.
4418 (mips_pop_frame): Call mips_find_saved_regs instead of
4419 DEPRECATED_FRAME_INIT_SAVED_REGS.
4420
4421 2003-05-31 Andrew Cagney <cagney@redhat.com>
4422
4423 * mips-tdep.c (mips_gdbarch_init): Do not set
4424 deprecated_max_register_raw_size, register_virtual_size, and
4425 deprecated_max_register_virtual_size.
4426
4427 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4428
4429 * i386-tdep.c: Include "dwarf2-frame.h".
4430 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4431 * Makefile.in (i386-tdep.o): Update dependencies.
4432
4433 * dwarf2-frame.c, dwarf2-frame.h: New files.
4434 * Makefile.in (SFILES): Add dwarf2-frame.c.
4435 (dwarf2_frame_h): Define.
4436 (COMMON_OBS): Add dwarf2-frame.o.
4437 (dwarf2-frame.o): Add dependencies.
4438
4439 2003-05-31 Andreas Jaeger <aj@suse.de>
4440
4441 * x86-64-linux-nat.c: Fix comment.
4442
4443 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4444
4445 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4446 function signature.
4447
4448 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4449 have a sigcontext_addr handler.
4450 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4451 sigcontext_addr handler.
4452
4453 2003-05-31 Andrew Cagney <cagney@redhat.com>
4454
4455 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4456 (print_fp_register_row): Replace do_fp_register_row.
4457 (mips_print_fp_register): Add "file" and "frame" parameters.
4458 (mips_print_register): Add "file" and "frame" parameters.
4459 (mips_print_registers_info): Replace mips_do_registers_info.
4460 (mips_gdbarch_init): Set print_registers_info instead of
4461 deprecated_do_registers_info.
4462 (mips_read_fp_register_single): Add "frame" parameter.
4463 (mips_read_fp_register_double): Add "frame" parameter.
4464
4465 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4466
4467 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4468 Fixes a bug where GDB would print the wrong register names for
4469 targets without SSE.
4470
4471 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4472 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4473 registers.
4474
4475 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4476 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4477 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4478 TDEP->sc_sp_offset.
4479
4480 From Michal Ludvig <mludvig@suse.cz>:
4481 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4482 and `sc_num_regs'.
4483 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4484 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4485 I386_ST0_REGNUM): Move here from...
4486 * i386-tdep.c: ... here.
4487 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4488 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4489 registers if possible.
4490 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4491 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4492 Remove variables.
4493 (i386bsd_sc_reg_offset): New variable.
4494 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4495 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4496 TDEP->sc_sp_offset.
4497 (i386fbsd_sc_reg_offset): New variable.
4498 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4499 TDEP->sc_num_regs.
4500 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4501 variables.
4502 (i386fbsd4_sc_reg_offset): New variable.
4503 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4504 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4505 TDEP->sc_sp_offset.
4506 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4507 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4508 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4509 Remove variables.
4510 (i386nbsd_sc_reg_offset): New variable.
4511 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4512 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4513 TDEP->sc_sp_offset.
4514 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4515 Remove variables.
4516 (i386obsd_sc_reg_offset): New variable.
4517 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4518 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4519 TDEP->sc_sp_offset.
4520 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4521 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4522 for frame pointer offset in `struct sigcontext'.
4523
4524 2003-05-31 Andrew Cagney <cagney@redhat.com>
4525
4526 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4527 architecture methods call_dummy_words, sizeof_call_dummy_words,
4528 push_return_address, store_struct_return, and fix_call_dummy. Set
4529 push_dummy_call instead of deprecated_push_arguments.
4530 (mips_store_struct_return): Delete function.
4531 (mips_fix_call_dummy): Delete function.
4532 (mips_push_return_address): Delete function.
4533 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4534 RA_REGNUM and T9_REGNUM.
4535 (mips_n32n64_push_dummy_call): Ditto for
4536 mips_n32n64_push_arguments.
4537 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4538 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4539
4540 2003-05-31 Andrew Cagney <cagney@redhat.com>
4541
4542 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4543 "dummy_addr" to "bp_addr".
4544 * infcall.c (call_function_by_hand): Pass "funaddr" to
4545 gdbarch_push_dummy_call.
4546 * gdbarch.h, gdbarch.c: Re-generate.
4547 * i386-tdep.c (i386_push_dummy_call): Update.
4548 * arm-tdep.c (arm_push_dummy_call): Update.
4549 * d10v-tdep.c (d10v_push_dummy_call): Update.
4550
4551 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4552
4553 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4554 variable declarations.
4555 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4556 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4557 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4558 x86_64_init_frame_pc, x86_64_init_frame_pc,
4559 x86_64_function_has_prologue): Remove prototypes.
4560 (X86_64_NUM_GREGS): New define.
4561 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4562 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4563 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4564 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4565 XMM1_REGNUM): Remove defines.
4566 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4567 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4568 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4569 X86_64_XMM1_REGNUM): New defines.
4570 (struct x86_64_register_info): Renamed from `struct
4571 register_info'. Remove `size' member.
4572 (x86_64_register_info_table): Remove variable.
4573 (x86_64_register_info): New variable.
4574 (X86_64_NUM_REGS): New define.
4575 (X86_64_NUM_GREGS): Remove define.
4576 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4577 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4578 Remove variables.
4579 (x86_54_dwarf2_reg_to_regnum): Remove function.
4580 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4581 (x86_64_dwarf_reg_to_regnum): New function.
4582 (x86_64_register_name): Rewrite.
4583 (x86_64_register_raw_size): Remove function.
4584 (x86_64_register_byte_table): Remove variable.
4585 (x86_64_register_byte): Remove function.
4586 (x86_64_register_virtual_type): Remove function.
4587 (x86_64_register_type): New function.
4588 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4589 x86_64_register_convert_to_raw): Remove functions.
4590 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4591 (x86_64_use_struct_convention): Make static. Adjust for renamed
4592 defines.
4593 (x86_64_frame_init_saved_regs): Remove function.
4594 (x86_64_push_arguments): Make static. Change to accept a regcache
4595 as argument.
4596 (x86_64_store_return_value, x86_64_extract_return_value): Make
4597 static. Rewrite based on i386 counterparts.
4598 (x86_64_push_dummy_call): New function.
4599 (X86_64_NUM_SAVED_REGS): New define.
4600 (x86_64_register_number): Remove function.
4601 (x86_64_store_struct_return): Remove function.
4602 (x86_64_frameless_function_invocation,
4603 x86_64_function_has_prologue): Remove functions.
4604 (PROLOG_BUFSIZE): Remove define.
4605 (struct x86_64_frame_cache): New structure.
4606 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4607 x86_64_frame_cache, x86_64_frame_this_id,
4608 x86_64_frame_prev_register, x86_64_frame_p,
4609 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4610 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4611 functions.
4612 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4613 variables.
4614 (x86_64_skip_prologue): Rewrite in terms of
4615 x86_64_analyze_prologue.
4616 (x86_64_frame_base_address): New function.
4617 (x86_64_frame_base): New variable.
4618 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4619 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4620 set deprecated_fp_regnum, deprecated_register_size,
4621 deprecated_register_bytes, register_raw_size, register_byte,
4622 register_virtual_type, register_convertiable,
4623 register_convert_to_virtual, convert_to_raw,
4624 deprecated_get_saved_register, deprecated_target_read_fp,
4625 deprecated_push_arguments, deprecated_push_return_address,
4626 deprecated_pop_frame, deprecated_store_struct_return,
4627 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4628 frameless_function_invocation, deprecated_frame_saved_pc,
4629 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4630 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4631 deprecated_init_frame_pc and virtual_frame_pointer. Call
4632 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4633 and x86_64_frame_p. Call frame_base_set_default to register
4634 x86_64_frame_base.
4635 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4636 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4637 (_initialize_x86_64_tdep): Remove function.
4638 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4639 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4640 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4641 define.
4642 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4643 (x86_64_linux_sigcontext_addr): Rewrite.
4644 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4645 x86_64_linux_frame_saved_pc): Remove functions.
4646 (x86_64_linux_pc_in_sigtramp): Renamed from
4647 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4648 trampoline.
4649 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4650 Remove_functions.
4651 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4652 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4653 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4654 (x86_64_regmap): Rename to regmap.
4655 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4656 x86_64_num_gregs.
4657 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4658 x86_64_regmap.
4659 (x86_64_fxsave_offset): Remove function.
4660 (supply_fpregset): Simply call x86_64_supply_fxsave.
4661 (fill_fpregset): Simply call x86_64_fill_fxsave.
4662 (fetch_inferior_registers, store_inferior_registers): Avoid
4663 asignment in if-statement.
4664 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4665 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4666 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4667 (fetch_core_registers): Remove function.
4668 (linux_elf_core_fns): Remove.
4669 (offsetoff): Don't define.
4670 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4671 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4672 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4673 add core-regset.o.
4674 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4675 protection against multiple includes instead of NM_X86_64_h. Add
4676 various comments. Include "config/nm-linux.h". Don't include
4677 <signal.h>.
4678 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4679 GET_THREAD_SIGNALS): Remove defines.
4680 (x86_64_register_u_addr, kernel_u_size,
4681 lin_thread_get_thread_signals): Remove prototypes.
4682 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4683 [HAVE_LINK_H]: Don't include "solib.h".
4684 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4685 * config/i386/tm-x86-64linux.h: Fix comments.
4686 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4687 x86-64-tdep.o): Update dependencies.
4688
4689 2003-05-30 Andrew Cagney <cagney@redhat.com>
4690
4691 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4692 Change parameter type to a "struct regcache *".
4693
4694 * gdbarch.sh: Regardless of the multi-arch level, always define
4695 the macro when not already defined.
4696 * gdbarch.h, gdbarch.c: Re-generate.
4697
4698 2003-05-30 Richard Henderson <rth@redhat.com>
4699
4700 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4701 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4702 (alpha_mdebug_frame_this_id): Likewise.
4703 (alpha_mdebug_frame_prev_register): Likewise.
4704 (alpha_mdebug_frame_base_address): Likewise.
4705 (alpha_mdebug_frame_locals_address): Likewise.
4706 (alpha_mdebug_frame_args_address): Likewise.
4707 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4708 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4709 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4710 loop increment.
4711 (alpha_heuristic_frame_this_id): Make static.
4712 (alpha_heuristic_frame_prev_register): Likewise.
4713 (alpha_heuristic_frame_base_address): Likewise.
4714 * alpha-tdep.h: Update.
4715
4716 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4717
4718 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4719 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4720 defenitions.
4721 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4722 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4723 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4724 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4725 I386_ST0_REGNUM): New defines.
4726 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4727 codestream_get): Remove define.
4728 (codestream_next_addr, condestream_addr, condestream_buf,
4729 codestream_off, codestream_cnt): Remove variables.
4730 (codestream_fill, codestream_seek, codestream_read): Remove
4731 functions.
4732 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4733 functionality.
4734 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4735 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4736 i386_frame_saved_pc, i386_saved_pc_after_call,
4737 i386_frame_num_args, i386_frame_init_saved_regs,
4738 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4739 i386_push_arguments): Remove functions.
4740 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4741 functionality. Use i386_analyze_prologue instead of
4742 i386_get_frame_setup.
4743 (I386_NUM_SAVED_REGS): New define.
4744 (struct i386_frame_cache): New structure.
4745 (i386_alloc_frame_cache, i386_analyze_struct_return,
4746 i386_skip_probe, i386_analyze_frame_setup,
4747 i386_analyze_register_saves, i386_analyze_prologue,
4748 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4749 i386_frame_prev_register, i386_sigtramp_frame_cache,
4750 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4751 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4752 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4753 New functions.
4754 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4755 New variables.
4756 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4757 I386_EAX_REGNUM and I386_EDX_REGNUM.
4758 (i386_extract_return_value, i386_store_return_value): Use
4759 I386_ST0_REGNUM where appropriate.
4760 (i386_extract_struct_value_address): Rewrite to use extract_address.
4761 (i386_svr4_pc_in_sigtramp): Add comment.
4762 (i386_svr4_sigcontext_addr): Rewrite.
4763 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4764 TDEP->sc_sp_offset.
4765 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4766 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4767 of new defines. Set push_dummy_call, don't set
4768 deprecated_push_arguments, deprecated_push_return_address,
4769 deprecated_pop_frame. Don't set parm_boundary. Don't set
4770 deprecated_frame_chain, deprecated_frame_saved_pc,
4771 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4772 save_dummy_frame_tos, unwind_pc. Call
4773 frame_unwind_append_predicate and frame_base_set_default. Don't
4774 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4775 Don't set frameless_function_invocation. Don't set
4776 deprecated_register_bytes, deprecated_register_size,
4777 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4778 * i386-linux-tdep.c: Fix formatting in some comments.
4779 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4780 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4781 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4782 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4783 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4784 redundant parentheses.
4785 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4786 (i386_linux_sigcontext_addr): Use it. Rewrite.
4787 (find_minsym_and_objfile): Change name of second argument.
4788 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4789 changed. Use frame_pc_unwind instead of
4790 DEPRECATED_SAVED_PC_AFTER_CALL.
4791 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4792 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4793 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4794 unwinder.
4795 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4796 "dummy-frame.h".
4797 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4798 (_initialize_i386_cygwin_tdep): New prototype.
4799 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4800 deprecated_frame_chain_valid.
4801 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4802 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4803 Rely on the SVR4 defaults.
4804 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4805 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4806
4807 2003-05-30 Andrew Cagney <cagney@redhat.com>
4808
4809 * infcall.c (call_function_by_hand): Always call
4810 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4811
4812 2003-05-30 Richard Henderson <rth@redhat.com>
4813
4814 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4815 increment.
4816
4817 2003-05-29 Jim Blandy <jimb@redhat.com>
4818
4819 Use gdbarch methods for solib stuff on PowerPC Linux.
4820 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4821 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4822 show through.
4823 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4824 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4825 giving the same effect as the #definitions above.
4826
4827 2003-05-29 Adam Fedor <fedor@gnu.org>
4828
4829 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4830 (find_implementation_from_class): Replace it with the standard
4831 case i.e. do nothing.
4832
4833 2003-05-29 Richard Henderson <rth@redhat.com>
4834
4835 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4836 (alpha_linux_sigtramp_offset): Use it. Make static.
4837 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4838 update for new frame model.
4839 * alpha-mdebug-tdep.c: New file.
4840 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4841 (alpha_osf1_init_abi): Install it.
4842 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4843 (linked_proc_desc_table): Remove.
4844 (alpha_frame_past_sigtramp_frame): Remove.
4845 (alpha_dynamic_sigtramp_offset): Remove.
4846 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4847 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4848 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4849 (push_sigtramp_desc): Remove.
4850 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4851 (alpha_cannot_store_register): Likewise.
4852 (alpha_sigcontext_addr): Remove.
4853 (alpha_find_saved_regs): Remove.
4854 (alpha_frame_init_saved_regs): Remove.
4855 (alpha_init_frame_pc_first): Remove.
4856 (read_next_frame_reg): Remove.
4857 (alpha_frame_saved_pc): Remove.
4858 (alpha_saved_pc_after_call): Remove.
4859 (temp_proc_desc, temp_saved_regs): Remove.
4860 (alpha_about_to_return): Remove.
4861 (cached_proc_desc): Remove.
4862 (alpha_frame_chain): Remove.
4863 (alpha_print_extra_frame_info): Remove.
4864 (alpha_init_extra_frame_info): Remove.
4865 (alpha_frame_locals_address): Remove.
4866 (alpha_frame_args_address): Remove.
4867 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4868 (alpha_push_dummy_frame): Remove.
4869 (alpha_pop_frame): Remove.
4870 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4871 (alpha_read_insn): New.
4872 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4873 for different insn encodings.
4874 (alpha_in_lenient_prologue): Remove.
4875 (struct alpha_sigtramp_unwind_cache): New.
4876 (alpha_sigtramp_frame_unwind_cache): New.
4877 (alpha_sigtramp_register_address): New.
4878 (alpha_sigtramp_frame_this_id): New.
4879 (alpha_sigtramp_frame_prev_register): New.
4880 (alpha_sigtramp_frame_unwind): New.
4881 (alpha_sigtramp_frame_p): New.
4882 (struct alpha_heuristic_unwind_cache): New.
4883 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4884 don't count nop insns that occur between functions.
4885 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4886 heuristic_proc_desc, but without the mdebug wrapping.
4887 (alpha_heuristic_frame_this_id): New.
4888 (alpha_heuristic_frame_prev_register): New.
4889 (alpha_heuristic_frame_unwind): New.
4890 (alpha_heuristic_frame_p): New.
4891 (alpha_heuristic_frame_base_address): New.
4892 (alpha_heuristic_frame_base): New.
4893 (alpha_unwind_dummy_id): New.
4894 (alpha_unwind_pc): New.
4895 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4896 frame related deprecated initializations; install replacements.
4897 (alpha_dump_tdep): Remove.
4898 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4899 (alpha_read_insn, alpha_after_prologue,
4900 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4901 alpha_heuristic_frame_prev_register,
4902 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4903 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4904 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4905 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4906
4907 2003-05-29 Andrew Cagney <cagney@redhat.com>
4908
4909 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4910 dependant on the availability of ASSERT_FUNCTION.
4911 (ASSERT_FUNCTION): Do not define when there is no function name.
4912
4913 2003-05-29 Kevin Buettner <kevinb@redhat.com>
4914
4915 From Jimi X <jimix@watson.ibm.com>:
4916 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4917
4918 2003-05-28 Jim Blandy <jimb@redhat.com>
4919
4920 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4921 argument to ptrace to int; the system headers should give it the
4922 right type, and pointers don't fit in ints on powerpc64-*-*.
4923
4924 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4925
4926 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4927 DW_TAG_catch_block.
4928
4929 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4930
4931 * stabsread.c (dbx_lookup_type): Make static.
4932 (read_type): Ditto.
4933 (add_undefined_type): Ditto.
4934 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4935 not export.
4936
4937 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4938
4939 * hpread.c (hpread_has_name): Make static.
4940 (hpread_psymtab_to_symtab): Ditto.
4941 (file_exists): Ditto.
4942 (hpread_call_pxdb): Ditto.
4943 (hpread_pxdb_needed): Ditto.
4944 (hpread_quick_traverse): Ditto.
4945 (hpread_get_header): Ditto.
4946 (hpread_get_lntt): Ditto.
4947 (hpread_get_slt): Ditto.
4948 (class_of): Ditto.
4949
4950 2003-05-25 Andreas Schwab <schwab@suse.de>
4951
4952 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4953 stack_align and deprecated_extra_stack_alignment_needed.
4954 (m68k_stack_align): Delete.
4955
4956 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4957 (m68k_register_virtual_size): Likewise.
4958 (altos_skip_prologue): Remove obsolete function.
4959 (isi_frame_num_args): Likewise.
4960 (news_frame_num_args): Likewise.
4961 (m68k_fix_call_dummy): Make static.
4962 (m68k_push_dummy_frame): Likewise.
4963 (m68k_pop_frame): Likewise.
4964 (m68k_skip_prologue): Likewise.
4965 (m68k_frame_init_saved_regs): Likewise.
4966 (m68k_saved_pc_after_call): Likewise.
4967 (m68k_get_longjmp_target): Make multi-arch.
4968 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4969 structure. Register m68k_get_longjmp_target if enabled.
4970 * m68k-tdep.h (struct gdbarch_tdep): Define.
4971 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4972
4973 * Makefile.in (config.status): Also depend on configure.tgt
4974 and configure.host.
4975 (m68klinux-tdep.o): Update dependencies.
4976 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4977 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4978 (M68K_LINUX_JB_PC): Define.
4979 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4980 and take additional parameter.
4981 (m68k_linux_sigtramp_saved_pc): Update.
4982 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4983 m68k_linux_pc_in_sigtramp, in_plt_section,
4984 find_solib_trampoline_target.
4985 * config/m68k/tm-linux.h: Don't include any tm headers.
4986 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4987 (JB_ELEMENT_SIZE): Likewise.
4988 (JB_PC): Likewise.
4989 (GET_LONGJMP_TARGET): Likewise.
4990 (IN_SIGTRAMP): Likewise.
4991 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4992
4993 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4994
4995 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4996 (sparc32_push_arguments): Re-implement by calling
4997 sparc32_do_push_arguments.
4998
4999 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5000
5001 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5002 SPARC_O1_REGNUM): New defines.
5003 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5004 (sparc32_store_return_value): New function.
5005 (sparc_extract_struct_value_address): Rewrite to operate on a
5006 regcache.
5007 (sparc_gdbarch_init): Don't set
5008 deprecated_extract_struct_value_address. Set
5009 extract_struct_value_address instead. Don't set
5010 deprecated_extract_return_value and deprecated_store_return_value
5011 for 32-bit targets. Set extract_return_value and
5012 store_return_value instead.
5013 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5014 DEPRECTAED_EXTRACT_RETURN_VALUE,
5015 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5016 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5017 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5018 (sparc_store_return_value): Remove prototype.
5019 (sparc32_store_return_value): New prototype.
5020 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5021 Adjust prototypes.
5022
5023 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5024
5025 * sparcnbsd-tdep.c: Include "gdb_string.h".
5026
5027 2003-05-23 Andrew Cagney <cagney@redhat.com>
5028
5029 * p-valprint.c (pascal_val_print): Replace extract_address with
5030 the inline equivalent extract_unsigned_integer.
5031 * jv-valprint.c (java_value_print): Ditto.
5032 * ada-valprint.c (ada_val_print_1): Ditto.
5033 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5034
5035 2003-05-23 Theodore A. Roth <troth@openavr.org>
5036
5037 * blockframe.c (frameless_look_for_prologue): Remove unused
5038 after_prologue variable.
5039
5040 2003-05-23 Mark Kettenis <kettenis@gnu.org>
5041
5042 * blockframe.c (get_pc_function_start): Rewrite to avoid
5043 asignments in if-statements.
5044
5045 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5046
5047 Committed by Elena Zannoni <ezannoni@redhat.com>.
5048 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5049 files, don't relocate absolute symbols (and do use mst_abs).
5050
5051 2003-05-23 Andrew Cagney <cagney@redhat.com>
5052
5053 * objc-lang.c: Include "gdb_assert.h".
5054 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5055 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5056 (gdb_check, gdb_check_fatal): Delete functions.
5057 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5058 gdb_assert.
5059 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5060 * Makefile.in (objc-lang.o): Update dependencies.
5061
5062 2003-05-22 Ian Lance Taylor <ian@airs.com>
5063
5064 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5065 with fprintf_filtered, not fprintf_unfiltered.
5066
5067 2003-05-22 Andrew Cagney <cagney@redhat.com>
5068
5069 * stack.c (frame_info): Inline extract_address, replacing it with
5070 extract_unsigned_integer.
5071 * findvar.c (unsigned_pointer_to_address): Ditto.
5072 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5073 * dwarf2expr.c (dwarf2_read_address): Ditto.
5074 * frame.c (frame_pc_unwind): Update comment.
5075 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5076
5077 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5078
5079 * infptrace.c (detach): Call print_sys_errmsg rather than
5080 perror_with_name to issue warning message when errno is non-zero
5081 after calling ptrace detach.
5082
5083 2003-05-21 J. Brobecker <brobecker@gnat.com>
5084
5085 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5086 macro definitions from here...
5087 * hppa-tdep.c: ...to there.
5088
5089 2003-05-20 Kevin Buettner <kevinb@redhat.com>
5090
5091 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5092 register_ptrace_addr(). Fix all callers.
5093
5094 2003-05-21 Andreas Schwab <schwab@suse.de>
5095
5096 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5097 dependencies.
5098 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5099 end.
5100 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5101 (_initialize_m68k_linux_tdep): New function.
5102 (m68k_linux_frame_saved_pc): Make static.
5103 (m68k_linux_extract_return_value): Likewise.
5104 (m68k_linux_store_return_value): Likewise.
5105 (m68k_linux_extract_struct_value_address): Likewise.
5106 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5107 Remove.
5108 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5109 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5110 (DEPRECATED_FRAME_SAVED_PC): Remove.
5111
5112 2003-05-20 Kris Warkentin <kewarken@qnx.com>
5113
5114 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5115 regset numbering rather than our own.
5116
5117 2003-05-19 David Carlton <carlton@bactrian.org>
5118
5119 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5120
5121 2003-05-19 David Carlton <carlton@bactrian.org>
5122
5123 Partial fix for PR c++/827.
5124 * cp-support.h: Include symtab.h.
5125 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5126 * cp-namespace.c: Update contributors.
5127 (cp_lookup_symbol_nonlocal): New.
5128 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5129 (lookup_symbol_file): Ditto.
5130 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5131 * block.h: Declare block_scope, block_using, block_global_block.
5132 * block.c (block_scope): New.
5133 (block_using, block_global_block): Ditto.
5134 * Makefile.in (cp_support_h): Depend on symtab_h.
5135 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5136
5137 2003-05-19 David Carlton <carlton@bactrian.org>
5138
5139 * language.h (struct language_defn): Add 'la_value_of_this'
5140 and 'la_lookup_symbol_nonlocal' members.
5141 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5142 lookup_symbol_static, lookup_symbol_global,
5143 lookup_symbol_aux_block.
5144 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5145 if we should search fields of this and how to do static/global
5146 lookup.
5147 (lookup_symbol_aux_block): Make extern.
5148 (basic_lookup_symbol_nonlocal): New.
5149 (lookup_symbol_static, lookup_symbol_global): Ditto.
5150 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5151 'la_lookup_symbol_nonlocal' members.
5152 * c-lang.c (c_language_defn, cplus_language_defn)
5153 (asm_language_defn, minimal_language_defn): Ditto.
5154 * jv-lang.c (java_language_defn): Ditto.
5155 * language.c (unknown_language_defn, auto_language_defn)
5156 (local_language_defn): Ditto.
5157 * m2-lang.c (m2_language_defn): Ditto.
5158 * objc-lang.c (objc_language_defn): Ditto.
5159 * scm-lang.c (scm_language_defn): Ditto.
5160 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5161 * p-lang.c (pascal_language_defn): Ditto for both.
5162 * Makefile.in (f-lang.o): Depend on value_h.
5163 (p-lang.o): Ditto.
5164
5165 2003-05-19 David Carlton <carlton@bactrian.org>
5166
5167 * block.h: Declare block_static_block.
5168 * block.c (block_static_block): New.
5169 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5170 lookup_symbol_aux_local, calling block_static_block instead.
5171 (lookup_symbol_aux_local): Delete 'static_block' argument.
5172
5173 2003-05-19 David Carlton <carlton@bactrian.org>
5174
5175 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5176
5177 2003-05-19 Michal Ludvig <mludvig@suse.cz>
5178
5179 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5180 register numbers mapping.
5181
5182 2003-05-18 Adam Fedor <fedor@gnu.org>
5183
5184 * symtab.c (completion_list_objc_symbol): New function.
5185 (make_symbol_completion_list): Use it to add ObjC symbols
5186 when looking though the list.
5187 (language_search_unquoted_string): New function.
5188 (make_file_symbol_completion_list): Use it.
5189
5190 2003-05-18 Andreas Schwab <schwab@suse.de>
5191
5192 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5193 dependencies.
5194 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5195 as m68k_linux_extract_return_value.
5196 (DEPRECATED_STORE_RETURN_VALUE): Define as
5197 m68k_linux_store_return_value.
5198 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5199 m68k_linux_extract_struct_value_address.
5200 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5201 get_next_frame, get_frame_base, get_frame_pc.
5202 (m68k_linux_frame_saved_pc): Use get_frame_base.
5203 (m68k_linux_extract_return_value): New function.
5204 (m68k_linux_store_return_value): New function.
5205 (m68k_linux_extract_struct_value_address): New function.
5206 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5207
5208 * c-exp.y (typebase): Remove duplicate occurence of
5209 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5210 of lookup_signed_typename.
5211
5212 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5213
5214 * dwarf2loc.c (find_location_expression): Change type of second
5215 argument to `size_t *'.
5216 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5217 for size variable.
5218
5219 2003-05-18 David Carlton <carlton@bactrian.org>
5220
5221 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5222 'linkage_name'. Add comment.
5223 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5224 'linkage_name'.
5225 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5226 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5227 (lookup_block_symbol): Ditto.
5228
5229 2003-05-16 Andrew Cagney <cagney@redhat.com>
5230
5231 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5232 * gdbarch.h, gdbarch.c: Re-generate.
5233 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5234 * TODO (REGISTER_BYTES): Delete reference.
5235 * alpha-tdep.c (alpha_gdbarch_init): Update.
5236 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5237 * x86-64-tdep.c (x86_64_init_abi): Update.
5238 * vax-tdep.c (vax_gdbarch_init): Update.
5239 * v850-tdep.c (v850_gdbarch_init): Update.
5240 * sparc-tdep.c (sparc_gdbarch_init): Update.
5241 * sh-tdep.c (sh_gdbarch_init): Update.
5242 * s390-tdep.c (s390_gdbarch_init): Update.
5243 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5244 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5245 (ns32k_gdbarch_init_32382): Update.
5246 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5247 * mcore-tdep.c (mcore_gdbarch_init): Update.
5248 * m68k-tdep.c (m68k_gdbarch_init): Update.
5249 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5250 * ia64-tdep.c (ia64_gdbarch_init): Update.
5251 * i386-tdep.c (i386_gdbarch_init): Update.
5252 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5253 * hppa-tdep.c (hppa_gdbarch_init): Update.
5254 * h8300-tdep.c (h8300_gdbarch_init): Update.
5255 * frv-tdep.c (frv_gdbarch_init): Update.
5256 * cris-tdep.c (cris_gdbarch_init): Update.
5257 * avr-tdep.c (avr_gdbarch_init): Update.
5258 * arm-tdep.c (arm_gdbarch_init): Update.
5259 * sparc-tdep.c (sparc_pop_frame): Update.
5260 * rs6000-tdep.c (rs6000_pop_frame): Update.
5261 * remote.c (init_remote_state): Update.
5262 (remote_prepare_to_store): Update.
5263 * remote-vx.c (vx_prepare_to_store): Update.
5264 * remote-sds.c (sds_fetch_registers): Update.
5265 (sds_prepare_to_store): Update.
5266 * remote-array.c: Update.
5267 * regcache.c (init_legacy_regcache_descr): Update.
5268 (init_regcache_descr): Update.
5269 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5270 (mips_o64_extract_return_value): Update.
5271 * irix5-nat.c (fetch_core_registers): Update.
5272 * irix4-nat.c (fetch_core_registers): Update.
5273 * i386-tdep.h: Update.
5274 * hppa-tdep.c (pa_do_registers_info): Update.
5275 (pa_do_strcat_registers_info): Update.
5276 * cris-tdep.c (cris_register_bytes_ok): Update.
5277 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5278 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5279 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5280 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5281 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5282 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5283 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5284 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5285 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5286 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5287 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5288 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5289 (REGISTER_BYTES_OK): Update.
5290 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5291 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5292
5293 2003-05-16 Ian Lance Taylor <ian@airs.com>
5294
5295 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5296 (vax_print_insn, print_insn_arg): Remove static functions.
5297 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5298 print_insn_vax from opcodes library.
5299 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5300
5301 2003-05-15 Andrew Cagney <cagney@redhat.com>
5302
5303 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5304 * target.h (memory_breakpoint_from_pc): Delete declaration.
5305 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5306 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5307 * monitor.c (monitor_insert_breakpoint): Use
5308 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5309 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5310 * gdbarch.h, gdbarch.c: Re-generate.
5311 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5312 (sparc_gdbarch_init): Set breakpoint_from_pc to
5313 sparc_breakpoint_from_pc.
5314 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5315 (BREAKPOINT_FROM_PC): Define.
5316 (sparc_breakpoint_from_pc): Declare.
5317 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5318 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5319 (BREAKPOINT_FROM_PC): Define.
5320 (BREAKPOINT): Delete macro.
5321 * target.h: Update comment.
5322 * s390-tdep.c (s390_gdbarch_init): Update comments.
5323 * remote.c: Update comments.
5324 * remote-mips.c: Update comments.
5325 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5326 * mem-break.c: Update comment.
5327 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5328 (ia64_memory_insert_breakpoint): Update.
5329 * config/sparc/tm-sparc.h: Update comment.
5330 * config/pa/tm-hppa64.h: Update comment.
5331 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5332 (rs6000_breakpoint_from_pc): Update.
5333 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5334 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5335 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5336 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5337 (mips_breakpoint_from_pc): Update.
5338 (mips_dump_tdep): Update.
5339
5340 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5341 * minsyms.c (lookup_minimal_symbol): Inline
5342 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5343
5344 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5345 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5346 * p-lang.c (pascal_printstr): Ditto.
5347 * objc-lang.c (objc_printstr): Ditto.
5348 * m2-lang.c (m2_printstr): Ditto.
5349 * jv-valprint.c (java_print_value_fields): Ditto.
5350 * f-lang.c (f_printstr): Ditto.
5351 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5352 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5353 for repeat_count_threshold.
5354 * Makefile.in (cp-valprint.o): Update dependencies.
5355
5356 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
5357
5358 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5359 (examine_prologue): Support looking through leaf functions, knowing
5360 they start with mov r2,r12. Support skipping over indirect stores
5361 of the input registers. Upon hitting a non-nop branch instruction
5362 or predicated instruction, bail out by setting lim_pc to the current
5363 pc value in the loop. At the end, if the lim_pc value is still
5364 beyond our calculated value and we have trust_limit set,
5365 use the lim_pc value.
5366
5367 2003-05-15 Andrew Cagney <cagney@redhat.com>
5368
5369 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5370 generic_find_dummy_frame.
5371 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5372 (deprecated_generic_find_dummy_frame): Update.
5373 (deprecated_read_register_dummy): Update.
5374 * frame.c (deprecated_generic_get_saved_register): Update.
5375
5376 2003-05-15 Theodore A. Roth <troth@openavr.org>
5377
5378 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5379 (avr_gdbarch_init): Set breakpoint_from_pc method.
5380
5381 2003-05-15 Andrew Cagney <cagney@redhat.com>
5382
5383 * regcache.c (build_regcache): Set deprecated_register_valid
5384 directly.
5385 (deprecated_grub_regcache_for_register_valid): Delete function.
5386 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5387 declaration.
5388
5389 2003-05-15 David Carlton <carlton@bactrian.org>
5390
5391 Committed by Elena Zannoni <ezannoni@redhat.com>
5392 * symtab.c (lookup_symbol_aux): Delete calls to
5393 lookup_symbol_aux_minsyms.
5394 (lookup_symbol_aux_minsyms): Comment out function and
5395 prototype. Delete lookup by mangled name.
5396
5397 2003-05-14 Kevin Buettner <kevinb@redhat.com>
5398
5399 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5400 correctly indicate an empty stack and ``stack_allocated'' to the
5401 indicate the number of elements initially allocated.
5402 (dwarf_expr_grow_stack): Simplify method for computing new
5403 stack size. Don't loop infinitely if ``stack_len'' is zero.
5404 (execute_stack_op): Move ``ctx->in_reg'' initialization
5405 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5406 be used in conjuction with DW_OP_piece. Revise error message
5407 accordingly.
5408
5409 2003-05-14 Theodore A. Roth <troth@openavr.org>
5410
5411 * MAINTAINERS: Update my email address.
5412 * avr-tdep.c: Ditto.
5413
5414 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
5415
5416 * symtab.h (enum domain_enum): Rename from namespace_enum.
5417 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5418 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5419 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5420 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5421 TYPES_NAMESPACE, METHODS_NAMESPACE.
5422 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5423 (struct symbol, struct partial_symbol): Rename field
5424 'namespace_enum namespace' to 'domain_enum domain'.
5425 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5426 Delete old define kludge for namespace.
5427
5428 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5429 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5430 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5431 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5432 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5433 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5434 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5435 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5436 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5437 occurrences of the above.
5438
5439 2003-05-14 Ian Lance Taylor <ian@airs.com>
5440
5441 * Makefile.in (install-only): Use $(SHELL) when running
5442 mkinstalldirs.
5443
5444 2003-05-13 Ian Lance Taylor <ian@airs.com>
5445
5446 * MAINTAINERS (write after approval): Add myself.
5447
5448 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5449 second and third arguments.
5450 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5451 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5452
5453 2003-05-13 Andrew Cagney <cagney@redhat.com>
5454
5455 * defs.h (store_address): Delete declaration.
5456 findvar.c (store_address): Delete function.
5457 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5458 store_unsigned_integer.
5459 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5460 * v850-tdep.c (v850_push_arguments): Ditto.
5461 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5462 * sh-tdep.c (sh64_get_saved_register): Ditto.
5463 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5464 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5465 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5466 (mips_get_saved_register): Ditto.
5467 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5468 (find_func_descr, ia64_push_arguments): Ditto.
5469 * i386-tdep.c (i386_push_arguments): Ditto.
5470 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5471 * frv-tdep.c (frv_push_arguments): Ditto.
5472 * frame.c (legacy_saved_regs_prev_register): Ditto.
5473 (deprecated_generic_get_saved_register): Ditto.
5474 * findvar.c (unsigned_address_to_pointer): Ditto.
5475 * dwarf2read.c (dwarf2_const_value): Ditto.
5476 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5477 * alpha-tdep.c (alpha_push_arguments): Ditto.
5478
5479 2003-05-12 J. Brobecker <brobecker@gnat.com>
5480
5481 * NEWS: Mention that the hppa-hpux port has been partially
5482 multiarched (32bit ABIT only, so far).
5483
5484 2003-05-11 Andrew Cagney <cagney@redhat.com>
5485
5486 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5487 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5488 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5489 sim/testsuite/sim/arm/misaligned2.ms, and
5490 sim/testsuite/sim/arm/misaligned3.ms.
5491 * disasm.h (struct ui_file): Add opaque struct declaration.
5492 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5493 * frame.h (struct ui_file): Ditto.
5494
5495 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5496
5497 * value.h: Pretty print.
5498
5499 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5500
5501 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5502
5503 2003-05-08 Andrew Cagney <cagney@redhat.com>
5504
5505 * regcache.h (max_register_size): Delete declaration.
5506 * regcache.c (max_register_size): Delete function.
5507 (struct regcache_descr): Delete field "max_register_size".
5508 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5509 registers fit in MAX_REGISTER_SIZE.
5510 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5511 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5512 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5513 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5514 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5515 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5516 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5517 * dve3900-rom.c, hppa-tdep.c: Ditto.
5518
5519 2003-05-08 David Carlton <carlton@math.stanford.edu>
5520
5521 * valops.c (push_word): Fix typo.
5522
5523 2003-05-08 Andrew Cagney <cagney@redhat.com>
5524
5525 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5526 * gdbarch.h: Re-generate.
5527 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5528 (legacy_max_register_raw_size): Delete declaration.
5529 * regcache.c (legacy_max_register_raw_size): Delete function.
5530 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5531 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5532 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5533 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5534 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5535 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5536 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5537 * findvar.c, dwarf2cfi.c: Ditto.
5538
5539 2003-05-08 Andrew Cagney <cagney@redhat.com>
5540
5541 * mips-tdep.c (read_signed_register): New function, moved to here
5542 from "regcache.c".
5543 (read_signed_register_pid): Ditto.
5544 * regcache.c (read_signed_register_pid): Delete function, moved to
5545 "mips-tdep.c".
5546 (read_signed_register): Ditto.
5547 * regcache.h (read_signed_register): Delete declaration.
5548 (read_signed_register_pid): Delete declaration.
5549
5550 2003-05-08 Andrew Cagney <cagney@redhat.com>
5551
5552 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5553 * gdbarch.h: Re-generate.
5554 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5555 (legacy_max_register_virtual_size): Delete declaration.
5556 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5557 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5558 * tracepoint.c (memrange_sortmerge): Ditto.
5559 * sparc-tdep.c (sparc_print_registers): Ditto.
5560 * regcache.c (legacy_max_register_virtual_size): Delete function.
5561
5562 2002-05-08 J. Brobecker <brobecker@gnat.com>
5563
5564 * fork-child.c (escape_bang_in_quoted_argument): New function.
5565 (fork_inferior): Escape '!' characters in quoted arguments
5566 only when needed.
5567
5568 2003-05-08 J. Brobecker <brobecker@gnat.com>
5569
5570 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5571 the language of the CU is not currently supported by GDB.
5572
5573 2003-05-08 J. Brobecker <brobecker@gnat.com>
5574
5575 * defs.h (language): Add language_minimal enum value.
5576 * c-lang.c (minimal_language_defn): New language definition.
5577 (_initialize_c_language): Add the new minimal language to the list
5578 of languages known to GDB.
5579
5580 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5581
5582 * frame.c (get_frame_type): Don't attempt to lazily initialize
5583 frame's unwinder for legacy frames.
5584
5585 2003-05-07 Andrew Cagney <cagney@redhat.com>
5586
5587 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5588 and "regcache" parameters.
5589 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5590
5591 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5592
5593 * dwarf2read.c (dwarf_decode_lines): Only use output of
5594 check_cu_functions() when calling record_line(). Do not update
5595 the current address.
5596
5597 2003-05-07 Andrew Cagney <cagney@redhat.com>
5598
5599 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5600 code.
5601
5602 2003-05-07 Jim Blandy <jimb@redhat.com>
5603
5604 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5605 'maint info symtabs' and 'maint info psymtabs'.
5606 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5607 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5608 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5609 Declarations updated.
5610 * maint.c (maintenance_list_command): Delete.
5611 (_initialize_maint_cmds): Update calls to add_cmd.
5612 * gdbcmd.h (maintenancelistlist): Delete declaration.
5613 * cli/cli-cmds.c (maintenancelistlist): Delete.
5614 (init_cmd_lists): Don't initialize it.
5615 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5616
5617 2003-05-07 Andrew Cagney <cagney@redhat.com>
5618
5619 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5620 "regcache".
5621 (d10v_print_registers_info): Update.
5622 (d10v_dmap_register, d10v_imap_register): Delete functions.
5623 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5624 and "imap_register".
5625 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5626 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5627 * arch-utils.c (generic_remote_translate_xfer_address): Add
5628 "regcache" and "gdbarch" parameters.
5629 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5630 parameter. Change class to multi-arch.
5631 * gdbarch.h, gdbarch.c: Re-generate.
5632 * remote.c (remote_xfer_memory): Use
5633 gdbarch_remote_translate_xfer_address.
5634
5635 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5636
5637 * infrun.c (prev_pc): Move declaration ahead of proceed().
5638 (proceed): Refresh prev_pc value before resuming.
5639 (stop_stepping): Remove code to refresh prev_pc.
5640
5641 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5642
5643 * nto-tdep.c: Removed stray comment.
5644
5645 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5646
5647 * i386-nto-tdep.c: Fix old K&R function definitions.
5648 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5649 Also change add_show_from_set() call to add_setshow_cmd().
5650 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5651
5652 2003-05-05 Andrew Cagney <cagney@redhat.com>
5653
5654 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5655 (fprint_dummy_frames): New function.
5656 (maintenance_print_dummy_frames): New function.
5657 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5658 * frame.c (fprint_frame_id): Make global.
5659 * frame.h (fprint_frame_id): Declare.
5660 * Makefile.in (dummy-frame.o): Update dependencies.
5661
5662 2003-05-05 Andrew Cagney <cagney@redhat.com>
5663
5664 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5665 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5666 SIZEOF_CALL_DUMMY_WORDS.
5667 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5668 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5669 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5670 CALL_DUMMY_BREAKPOINT_OFFSET.
5671 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5672 CALL_DUMMY_START_OFFSET.
5673 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5674 * gdbarch.h, gdbarch.c: Re-generate.
5675 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5676 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5677 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5678 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5679 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5680 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5681 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5682 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5683 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5684 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5685 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5686 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5687 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5688 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5689 * config/sparc/tm-sparc.h: Update.
5690
5691 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5692
5693 * configure.tgt: Add i[3456]86-*-nto*.
5694 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5695 * nto-tdep.c: New file. Neutrino target support routines.
5696 * nto-tdep.h: New file. Neutrino target header.
5697 * config/tm-qnxnto.h: New file.
5698 * config/i386/i386nto.mt: New file.
5699 * config/i386/tm-i386nto.h: New file.
5700
5701 2003-05-04 Andrew Cagney <cagney@redhat.com>
5702
5703 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5704 (load_infrun_state): Ditto.
5705 (struct thread_info): Drop "prev_func_name" field.
5706 * thread.c (load_infrun_state): Update.
5707 (save_infrun_state): Update.
5708 * infrun.c (prev_func_name): Delete variable.
5709 (init_wait_for_inferior): Do not clear prev_func_name.
5710 (stop_stepping, keep_going, context_switch): Do not swap
5711 prev_func_name.
5712 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5713 instead of PC_IN_SIGTRAMP.
5714
5715 2003-05-04 Andrew Cagney <cagney@redhat.com>
5716
5717 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5718 REGISTER_BYTE with register_offset_hack.
5719 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5720 that REGISTER_BYTE is consistent with the regcache.
5721 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5722 * gdbarch.h, gdbarch.c: Regenerate.
5723
5724 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5725
5726 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5727 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5728
5729 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5730
5731 2003-05-03 J. Brobecker <brobecker@gnat.com>
5732
5733 From Thierry Schneider <tpschneider1@yahoo.com>
5734 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5735 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5736 (mi-cmd-symbol.o): Add rule.
5737
5738 2003-05-03 Andrew Cagney <cagney@redhat.com>
5739
5740 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5741 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5742 * gdbarch.h, gdbarch.c: Re-generate.
5743 * d10v-tdep.c (d10v_push_dummy_code): New function.
5744 (d10v_gdbarch_init): Set push_dummy_code.
5745 * infcall.c (legacy_push_dummy_code): New function.
5746 (generic_push_dummy_code): New function.
5747 (push_dummy_code): New function.
5748 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5749 instead of dummy_addr, to push_dummy_call. Move call to
5750 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5751 switch.
5752 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5753
5754 2003-05-03 Andrew Cagney <cagney@redhat.com>
5755
5756 * disasm.h (print_insn): Declare.
5757 * disasm.c (init_gdb_disassemble_info): New function.
5758 (gdb_disassembly): Call init_gdb_disassemble_info.
5759 (gdb_print_insn): New function.
5760 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5761 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5762 * mcore-tdep.c: Include "disasm.h"
5763 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5764 * d10v-tdep.c: Include "disasm.h".
5765 (display_trace): Call gdb_print_insn, instead of print_insn.
5766 (print_insn): Delete function.
5767 * printcmd.c: Include "disasm.h".
5768 (print_insn): Delete function.
5769 (print_formatted): Call gdb_print_insn, instead of print_insn.
5770 * Makefile.in (printcmd.o): Update dependencies.
5771 (mcore-tdep.o, d10v-tdep.o): Ditto.
5772
5773 2003-05-02 Andrew Cagney <cagney@redhat.com>
5774
5775 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5776 PC_REGNUM, re-indent.
5777 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5778 PC_REGNUM isn't set.
5779
5780 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5781 * gdbarch.h, gdbarch.c: Re-generate.
5782 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5783 register_virtual_size, pc_regnum, or register_bytes.
5784 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5785 (d10v_register_type): Use D10V_PC_REGNUM.
5786 (d10v_print_registers_info, d10v_read_pc): Ditto.
5787 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5788 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5789
5790 2003-05-02 David Carlton <carlton@bactrian.org>
5791
5792 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5793 the name with mstrsave.
5794
5795 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5796
5797 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5798 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5799 (host_charset_name, target_charset_name): New vars for use by
5800 set/show commands.
5801 (host_charset_enum, target_charset_enum): New enums for set/show
5802 commands.
5803 (set_charset_sfunc, set_host_charset_sfunc,
5804 set_target_charset_sfunc): New functions.
5805 (set_host_charset, set_target_charset): Make static.
5806 (list_charsets, set_host_charset_command,
5807 set_target_charset_command): Delete functions.
5808 (show_charset_command): Rewrite as....
5809 (show_charset): Hook this up with the set/show command mechanism.
5810 (_initialize_charset): Change names of charsets to match the
5811 set/show enums. Use host_charset_name and target_charset_name.
5812 Use set/show mechanism for charset, host-charset, target-charset
5813 commands. Do not make 'show host-charset' and 'show
5814 target-charset' be aliases of 'show charset'.
5815
5816 * charset.h (set_host_charset, set_target_charset): Don't export,
5817 they are not used outside the file.
5818
5819 2003-05-01 Andrew Cagney <cagney@redhat.com>
5820
5821 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5822 (gdb_disassembly): Make "di" non static, always initialize and
5823 cleanup. Always use dis_asm_read_memory.
5824 (gdb_dis_asm_read_memory): Delete function.
5825
5826 2003-05-01 Andrew Cagney <cagney@redhat.com>
5827
5828 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5829 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5830
5831 2003-04-30 Andrew Cagney <cagney@redhat.com>
5832
5833 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5834 "tm_print_insn_info".
5835 (TARGET_PRINT_INSN_INFO): Delete macro.
5836 (dis_asm_read_memory): Delete function declaration.
5837 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5838 (tm_print_insn_info): Delete variable definition.
5839 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5840 * gdbarch.h, gdbarch.c: Re-generate.
5841 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5842 "deprecated_tm_print_insn_info".
5843 * mcore-tdep.c (mcore_dump_insn): Ditto.
5844 * mips-tdep.c (mips_gdbarch_init): Ditto.
5845 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5846 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5847 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5848 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5849 instead of TARGET_PRINT_INSN_INFO, add comment.
5850 * s390-tdep.c (s390_get_frame_info): Instead of
5851 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5852 (s390_check_function_end, s390_is_sigreturn): Ditto.
5853 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5854 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5855 * disasm.c: Include "gdbcore.h".
5856 (_initialize_disasm): New function, initialize
5857 "deprecated_tm_print_insn_info".
5858 (deprecated_tm_print_insn_info): New variable.
5859 (dis_asm_read_memory): Moved from "corefile.c", made static.
5860 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5861 * Makefile.in (disasm.o): Update dependencies.
5862
5863 2003-04-30 Andrew Cagney <cagney@redhat.com>
5864
5865 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5866
5867 2003-04-29 Adam Fedor <fedor@gnu.org>
5868
5869 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5870 * infcall.c (find_function_addr): Make non-static.
5871 * infcall.h (find_function_addr): Declare.
5872 * Makefile.in (eval.o): Update dependencies.
5873
5874 2003-04-28 Adam Fedor <fedor@gnu.org>
5875
5876 * symtab.c (symbol_find_demangled_name): Check for and demangle
5877 ObjC symbols.
5878 (symbol_init_demangled_name): Init for language_objc as well.
5879
5880 2003-04-28 Andrew Cagney <cagney@redhat.com>
5881
5882 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5883 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5884 * gdbarch.h, gdbarch.c: Re-generate.
5885 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5886 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5887 * inferior.h (deprecated_read_fp): Rename read_fp.
5888 (generic_target_read_fp): Delete declaration.
5889 * regcache.c (generic_target_read_fp): Delete function.
5890 (deprecated_read_fp): Replace read_fp, use
5891 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5892 * d10v-tdep.c (d10v_read_fp): Delete function.
5893 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5894
5895 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5896 deprecated_target_read_fp to generic_target_read_fp.
5897 * sh-tdep.c (sh_gdbarch_init): Ditto.
5898 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5899 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5900 * frv-tdep.c (frv_gdbarch_init): Ditto.
5901
5902 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5903 deprecated_fp_regnum.
5904 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5905 * vax-tdep.c (vax_gdbarch_init): Ditto.
5906 * v850-tdep.c (v850_gdbarch_init): Ditto.
5907 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5908 * sh-tdep.c (sh_gdbarch_init): Ditto.
5909 * s390-tdep.c (s390_gdbarch_init): Ditto.
5910 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5911 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5912 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5913 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5914 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5915 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5916 * i386-tdep.c (i386_gdbarch_init): Ditto.
5917 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5918 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5919 * frv-tdep.c (frv_gdbarch_init): Ditto.
5920 * cris-tdep.c (cris_gdbarch_init): Ditto.
5921 * avr-tdep.c (avr_gdbarch_init): Ditto.
5922 * arm-tdep.c (arm_gdbarch_init): Ditto.
5923 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5924
5925 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5926 * v850-tdep.c (v850_gdbarch_init): Ditto.
5927 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5928 * sh-tdep.c (sh_gdbarch_init): Ditto.
5929 * s390-tdep.c (s390_gdbarch_init): Ditto.
5930 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5931 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5932 * mips-tdep.c (mips_gdbarch_init): Ditto.
5933 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5934 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5935 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5936 * frv-tdep.c (frv_gdbarch_init): Ditto.
5937 * avr-tdep.c (avr_gdbarch_init): Ditto.
5938 * arm-tdep.c (arm_gdbarch_init): Ditto.
5939
5940 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5941 DEPRECATED_FP_REGNUM.
5942 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5943 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5944 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5945 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5946 (sparc32_register_virtual_type): Ditto.
5947 * sh-tdep.c (sh64_frame_chain): Ditto.
5948 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5949 (sh_nofp_frame_init_saved_regs): Ditto.
5950 (sh64_nofp_frame_init_saved_regs): Ditto.
5951 (sh_fp_frame_init_saved_regs): Ditto.
5952 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5953 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5954 * procfs.c (procfs_fetch_registers): Ditto.
5955 (procfs_store_registers): Ditto.
5956 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5957 (store_inferior_registers, fetch_core_registers): Ditto.
5958 (fetch_kcore_registers, clear_regs): Ditto.
5959 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5960 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5961 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5962 * nlm/i386.c (do_status): Ditto.
5963 * mipsv4-nat.c (supply_gregset): Ditto.
5964 * mips-tdep.c: Ditto for comments.
5965 * mips-nat.c (fetch_inferior_registers): Ditto.
5966 (store_inferior_registers, fetch_core_registers): Ditto.
5967 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5968 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5969 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5970 (i386_do_pop_frame, i386_register_type): Ditto.
5971 * hppa-tdep.c (hppa_frame_chain): Ditto.
5972 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5973 (hppa_pop_frame, hppa_read_fp): Ditto.
5974 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5975 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5976 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5977 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5978 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5979 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5980 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5981 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5982 * blockframe.c: Ditto for comments.
5983 * arch-utils.h: Ditto for comments.
5984 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5985 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5986 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5987 * alpha-tdep.h: Ditto for comments.
5988 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5989 (alpha_cannot_store_register): Ditto.
5990 (alpha_push_dummy_frame): Ditto.
5991 * alpha-nat.c (supply_gregset): Ditto.
5992
5993 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5994 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5995 * config/sparc/tm-sparc.h: Update comment.
5996
5997 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5998 deprecated_read_fp instead of TARGET_READ_FP.
5999 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6000 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6001 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6002 deprecated_read_fp instead of read_fp.
6003 * s390-tdep.c (s390_push_arguments): Ditto.
6004 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6005 * frame.h: Ditto in comments.
6006 * frame.c (legacy_get_prev_frame): Ditto.
6007 * dummy-frame.c (dummy_frame_this_id): Ditto.
6008 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6009
6010 2003-04-28 Andrew Cagney <cagney@redhat.com>
6011
6012 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6013 * gdbarch.h, gdbarch.c: Re-generate.
6014 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6015 * vax-tdep.c (_initialize_vax_tdep): Update.
6016 * v850-tdep.c (_initialize_v850_tdep): Update.
6017 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6018 * s390-tdep.c (_initialize_s390_tdep): Update.
6019 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6020 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6021 * mips-tdep.c (_initialize_mips_tdep): Update.
6022 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6023 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6024 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6025 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6026 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6027 * frv-tdep.c (_initialize_frv_tdep): Update.
6028 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6029 (_initialize_cris_tdep): Update.
6030 * arch-utils.c (legacy_print_insn): Update.
6031 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6032
6033 2003-04-26 Adam Fedor <fedor@gnu.org>
6034
6035 * linespec.c (decode_objc): New function to decode ObjC calls
6036 (decode_line_1): Check for ObjC calls (using decode_objc)
6037 * Makefile (linespec.o): Update dependencies.
6038
6039 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
6040
6041 * breakpoint.h (struct breakpoint_ops): New.
6042 (struct breakpoint): Add ops member.
6043
6044 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6045 (mention): Use new breakpoint ops member.
6046 (set_raw_breakpoint): Initialize ops field to NULL.
6047 (print_exception_catchpoint, print_one_exception_catchpoint)
6048 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6049 (gnu_v3_exception_catchpoint_ops): New.
6050 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6051
6052 2003-04-25 Adam Fedor <fedor@gnu.org>
6053
6054 * Makefile.in (COMMON_OBS): Add objc-lang.o
6055
6056 2003-04-25 Andrew Cagney <cagney@redhat.com>
6057
6058 * d10v-tdep.c (print_insn): Delete function.
6059 (display_trace): Use TARGET_PRINT_INSN.
6060 (_initialize_d10v_tdep): Do not set tm_print_insn.
6061 (d10v_gdbarch_init): Set print_insn.
6062
6063 2003-04-25 Andrew Cagney <cagney@redhat.com>
6064
6065 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6066 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6067 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6068 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6069 (nr_dmap_regs, a0_regnum): ... new functions.
6070 (d10v_print_registers_info): Use a0_regnum, use register_size.
6071 (d10v_register_byte): Delete function.
6072 (d10v_register_raw_size): Delete function.
6073 (d10v_register_type): Use a0_regnum.
6074 (d10v_print_registers_info): Use a0_regnum.
6075 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6076 (d10v_gdbarch_init): Do not set register_byte or
6077 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6078 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6079 extract_address.
6080 (trace_command): Use XCALLOC.
6081 (print_insn): Delete reference to tm_print_insn.
6082 (saved_regs_unwinder): Use store_unsigned_integer instead of
6083 store_address.
6084 * frame.h (FRAME_OBSTACK_CALLOC): Define
6085
6086 2003-04-25 David Carlton <carlton@bactrian.org>
6087
6088 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6089
6090 2003-04-24 Adam Fedor <fedor@gnu.org>
6091
6092 * objc-lang.c: Include "valprint.h"
6093 * Makefile.in (objc-lang.o): Update dependencies.
6094
6095 2003-04-24 Adam Fedor <fedor@gnu.org>
6096
6097 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6098 architecture dependant compilation and mark as unimplemented
6099 (until they get put in the gdbarch vector).
6100
6101 2003-04-23 David Carlton <carlton@bactrian.org>
6102
6103 * cp-support.c (cp_find_first_component): Accept 'operator' in
6104 more locations.
6105
6106 2003-04-23 Andrew Cagney <cagney@redhat.com>
6107
6108 * infcall.c (call_function_by_hand): Eliminate redundant
6109 indentation. Move "saved_async" and "old_cleanups" to where they
6110 are needed.
6111
6112 2003-04-23 Andrew Cagney <cagney@redhat.com>
6113
6114 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6115 and "buffer". Move the "name" code to where it is needed.
6116
6117 2003-04-23 Andrew Cagney <cagney@redhat.com>
6118
6119 * infcall.c (call_function_by_hand): Move variables "start_sp",
6120 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6121 code to ON_STACK switch branch.
6122
6123 2003-04-23 Andrew Cagney <cagney@redhat.com>
6124
6125 * infcall.c (call_function_by_hand): Make declaration of "i",
6126 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6127 lint.
6128
6129 2003-04-23 Andrew Cagney <cagney@redhat.com>
6130
6131 * infcall.c (call_function_by_hand): Delete variable
6132 "n_method_args". Localize "param_type"'s declaration to the loop
6133 that it is used. Reinstate code assigning to said variable -
6134 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6135 Rationalize code using "param_type".
6136
6137 2003-04-22 Andrew Cagney <cagney@redhat.com>
6138
6139 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6140 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6141 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6142 to DEPRECATED_PUSH_RETURN_ADDRESS.
6143
6144 2003-04-22 Kevin Buettner <kevinb@redhat.com>
6145
6146 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6147 on the DWARF2 register number prior to fetching a register.
6148
6149 2003-04-22 J. Brobecker <brobecker@gnat.com>
6150
6151 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6152 Update all the tests using SOFT_FLOAT considering the fact that
6153 this macro was always set to 0.
6154 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6155 considering the fact that this macro was always set to 0.
6156 * hppa-tdep.h (hppa_store_return_value): Likewise.
6157 (hppa_extract_return_value): Likewise.
6158
6159 2003-04-22 J. Brobecker <brobecker@gnat.com>
6160
6161 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6162 the hppa-pro target only.
6163
6164 2003-04-21 J. Brobecker <brobecker@gnat.com>
6165
6166 Ongoing multi-arch conversion effort for HP/UX:
6167 * config/pa/tm-hppa.h: Move all macro that are no longer
6168 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6169 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6170
6171 2003-04-21 J. Brobecker <brobecker@gnat.com>
6172
6173 * config/pa/tm-hppa.h: Obsolete a section that was only used
6174 for hppa-pro.
6175
6176 2003-04-21 J. Brobecker <brobecker@gnat.com>
6177
6178 Ongoing multi-arch conversion for HP/UX.
6179 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6180 if already defined (allows hppa64 to stay non-multiarched for now).
6181 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6182
6183 2003-04-21 Andrew Cagney <cagney@redhat.com>
6184
6185 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6186
6187 2003-04-21 Andrew Cagney <cagney@redhat.com>
6188
6189 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6190 "i386_num_mmx_regs".
6191
6192 2003-04-21 Andrew Cagney <cagney@redhat.com>
6193
6194 * infcall.c: New file.
6195 * infcall.h: New file.
6196 * valarith.c: Include "infcall.h".
6197 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6198 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6199 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6200 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6201 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6202 (SFILES): Add "infcall.c"
6203 (COMMON_OBS): Add "infcall.o".
6204 (infcall.o): Specify dependencies.
6205 * value.h (call_function_by_hand): Delete declaration.
6206 * inferior.h (run_stack_dummy): Delete declaration.
6207 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6208 (run_stack_dummy): Move to "infcall.c", merged into
6209 call_function_by_hand.
6210 * valops.c (call_function_by_hand): Moved to "infcall.c".
6211 (find_function_addr, value_arg_coerce): Ditto.
6212 (unwindonsignal_p, coerce_float_to_double): Ditto.
6213 (_initialize_valops): Move "set/show coerce-float-to-double", and
6214 "set/show unwindonsignal" commands to "infcall.c".
6215 * v850-tdep.c, target.h: Update comments.
6216 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6217 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6218 (sh64_init_extra_frame_info): Update comments.
6219 * mn10300-tdep.c: Update comments.
6220 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6221 * config/sparc/tm-sparc.h: Update comments.
6222 * breakpoint.h: Update comments.
6223 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6224 * arm-tdep.c: Update comment.
6225
6226 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6227
6228 * i386-tdep.c (i386_num_register_names): New variable.
6229 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6230 (MM0_REGNUM): Remove redundant parentheses in define.
6231 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6232 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6233 i386_mxcsr_regnum_p): Remove redundant parentheses.
6234 (i386_register_name): Use i386_num_register_names.
6235
6236 * i386-tdep.c (i386_extract_return_value,
6237 i386_store_return_value): Correct check for availability of
6238 floating-point registers.
6239
6240 * i386-tdep.c (i386_frame_num_args): Remove function.
6241 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6242
6243 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6244 mmx_regnum_to_fp_regnum. Adjust all callers.
6245
6246 * i386-tdep.c (i386_get_longjmp_target): Use
6247 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6248 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6249 extract_address.
6250
6251 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6252
6253 * core-regset.c: Update comments to reflect reality. Re-order
6254 includes.
6255 (fetch_core_registers): Use switch instead of if. Remove
6256 redundant prototype.
6257
6258 2003-04-18 Jim Blandy <jimb@redhat.com>
6259
6260 * s390-tdep.c (s390_frame_align): New function.
6261 (s390_gdbarch_init): Register it with the gdbarch object.
6262
6263 2003-04-17 Richard Henderson <rth@redhat.com>
6264
6265 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6266
6267 2003-04-17 Michael Snyder <msnyder@redhat.com>
6268 Karen Bennet <bennet@redhat.com>
6269
6270 Committed by Elena Zannoni <ezannoni@redhat.com>
6271 * gdb_gcore.sh: New script to create a core dump of a process.
6272
6273 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
6274
6275 * values.c (value_being_returned): Don't fetch the return
6276 value if the return type is void.
6277
6278 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6279
6280 * thread-db.c: Reindented.
6281
6282 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6283
6284 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6285 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6286 as types.
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312 2003-04-16 Kevin Buettner <kevinb@redhat.com>
6313
6314 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6315 the size of ``long double'' to 16, instead of 8.
6316
6317 2003-04-16 Mark Kettenis <kettenis@gnu.org>
6318
6319 * i386-linux-nat.c: Add some whitespace to make things more
6320 readable.
6321 (fetch_register, store_register, fetch_inferior_registers,
6322 store_inferior_registers): Get rid of assignment in if-statement.
6323 (store_register): Fix typo in error message.
6324
6325 2003-04-16 Andrew Cagney <cagney@redhat.com>
6326
6327 * utils.c (xmmalloc): Always allocate something, matches
6328 libiberty/xmalloc's semantics.
6329 (xmrealloc, xmcalloc): Ditto.
6330
6331 2003-04-16 Andrew Cagney <cagney@redhat.com>
6332
6333 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6334 update comments.
6335 (get_frame_type): Initialize unwind and type when needed.
6336 (get_frame_id, frame_register_unwind): Ditto.
6337
6338 2003-04-16 Andrew Cagney <cagney@redhat.com>
6339
6340 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6341 obsolete.
6342 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6343 * sparcl-stub.c: Obsolete file.
6344 * config/sparc/tm-sparclet.h: Obsolete file.
6345 * sparclet-stub.c: Obsolete file.
6346 * sparclet-rom.c: Obsolete file.
6347 * sparcl-tdep.c: Obsolete file.
6348 * config/sparc/tm-sparclite.h: Obsolete file.
6349 * config/sparc/sparclite.mt: Obsolete file.
6350 * config/sparc/sparclet.mt: Obsolete file.
6351 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6352 sparc86x-*-* obsolete.
6353
6354 2003-04-15 David Carlton <carlton@math.stanford.edu>
6355
6356 * Makefile.in (SFILES): Add cp-namespace.c.
6357 (COMMON_OBS): Add cp-namespace.o.
6358 (block.o): Depend on gdb_obstack_h and cp_support_h.
6359 (buildsym.o): Depend on cp_support_h.
6360 (cp-namespace.o): New.
6361 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6362 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6363 (dwarf2read.o): Depend on cp_support_h.
6364 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6365 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6366 processing_current_namespace.
6367 (read_namespace): Update processing_current_namespace; check for
6368 anonymous namespaces.
6369 (dwarf2_name): New function.
6370 (dwarf2_extension): Ditto.
6371 * cp-support.h: Update copyright, contributors.
6372 Add inclusion guards.
6373 Add opaque declaration for structs obstack, block, symbol.
6374 (struct using_direct): New struct.
6375 Add declarations for cp_find_first_component,
6376 cp_entire_prefix_len, processing_has_namespace_info,
6377 processing_current_namespace, cp_is_anonymous,
6378 cp_add_using_directive, cp_initialize_namespace,
6379 cp_finalize_namespace, cp_set_block_scope,
6380 cp_scan_for_anonymous_namespaces.
6381 * cp-namespace.c: New file.
6382 * cp-support.c: Update copyright.
6383 Include ctype.h, gdb_assert.h, gdbcmd.h.
6384 New variable maint_cplus_cmd_list.
6385 (cp_find_first_component): New function.
6386 (cp_entire_prefix_len, maint_cplus_command)
6387 (first_component_command, _initialize_cp_support): Ditto.
6388 * buildsym.c: Include cp-support.h.
6389 New variable using_list.
6390 (add_symbol_to_list): Check for anonymous namespaces.
6391 (finish_block): Set block's scope.
6392 (start_symtab): Initialize C++ namespace support.
6393 (end_symtab): Finalize C++ namespace support.
6394 * block.h: Add opaque declarations for structs
6395 block_namespace_info, using_direct, and obstack.
6396 Add declarations for block_set_scope and block_set_using.
6397 (struct block): Add 'language_specific' member.
6398 (BLOCK_NAMESPACE): New macro.
6399 * block.c: Include gdb_obstack.h and cp-support.h.
6400 (struct block_namespace_info): New struct.
6401 (block_set_scope): New function.
6402 (block_set_using, block_initialize_namespace): Ditto.
6403
6404 2003-04-14 Kevin Buettner <kevinb@redhat.com>
6405
6406 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6407 (locate_base): Return early if there aren't any link map offsets.
6408 (svr4_solib_create_inferior_hook): Warn if shared library support
6409 is unavailable.
6410
6411 2003-04-14 David Carlton <carlton@math.stanford.edu>
6412
6413 * symtab.c (symbol_set_names): Add prefix when storing Java names
6414 in hash table. Fix for PR java/1039.
6415
6416 2003-04-14 David Carlton <carlton@math.stanford.edu>
6417
6418 * symtab.c (symbol_set_names): Rename 'name' arg to
6419 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6420 * symtab.h: Change 'name' argument in declaration of
6421 symbol_set_names to 'linkage_name'.
6422 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6423
6424 2003-04-14 Andrew Cagney <cagney@redhat.com>
6425
6426 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6427 return the fully sign-extended register value.
6428 (get_frame_pointer): Ditto.
6429 (mips_pop_frame): Initialize "proc_desc" after checking for a
6430 dummy frame.
6431
6432 2003-04-14 Andrew Cagney <cagney@redhat.com>
6433
6434 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6435 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6436 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6437 (mips_push_register): Delete function.
6438 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6439 PUSH_FP_REGNUM.
6440
6441 2003-04-14 Jim Blandy <jimb@redhat.com>
6442
6443 * symmisc.c: #include "gdb_regex.h".
6444 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6445 functions.
6446 * maint.c (maintenance_list_command): New function.
6447 (_initialize_maint_cmds): Register the above as commands.
6448 * symtab.h (maintenance_list_symtabs,
6449 maintenance_list_psymtabs): New declarations.
6450 * cli/cli-cmds.c (maintenancelistlist): New variable.
6451 (init_cmd_lists): Initialize it.
6452 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6453 * gdbcmd.h (maintenancelistlist): New declaration.
6454 * Makefile.in (symmisc.o): Update dependencies.
6455
6456 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
6457
6458 * s390-nat.c: Include asm/types.h for addr_t.
6459
6460 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
6461
6462 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6463 actually incoming type.
6464
6465 2003-04-13 Andrew Cagney <cagney@redhat.com>
6466
6467 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6468 get_next_frame and get_frame_saved_regs.
6469
6470 2003-04-13 Andrew Cagney <cagney@redhat.com>
6471
6472 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6473 of gdbarch_num_regs.
6474
6475 2003-04-13 Andrew Cagney <cagney@redhat.com>
6476
6477 * frame.h: Mention what replaced what in "struct frame_info".
6478 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6479 deprecated_update_frame_base_hack and
6480 deprecated_update_frame_pc_hack.
6481 * hppa-tdep.c: Ditto.
6482
6483 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6484
6485 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6486 to read_reg and update its comment. Remove regnum member.
6487 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6488 Don't call read_reg when setting in_reg. Call read_reg to get
6489 the frame base if it's in a register. Return the register number
6490 on the stack instead of in the context. Remove extra arguments
6491 to read_reg.
6492 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6493 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6494 the register number on the expression stack.
6495 (needs_frame_read_reg): Remove extra arguments.
6496
6497 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6498
6499 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6500 made non-static.
6501 (execute_stack_op): All callers updated.
6502 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6503 * dwarf2loc.c (find_location_expression): New function.
6504 (dwarf_expr_frame_base): Call it.
6505 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6506 (dwarf2_tracepoint_var_ref): New function, broken out from
6507 locexpr_tracepoint_var_ref.
6508 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6509 Make static.
6510 (loclist_read_variable, loclist_read_needs_frame): New functions.
6511 (loclist_describe_location, loclist_tracepoint_var_ref): New
6512 functions.
6513 (dwarf2_loclist_funcs): New struct location_funcs.
6514 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6515 (struct dwarf2_locexpr_baton): Add comments.
6516 (dwarf2_loclist_funcs): New extern.
6517 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6518 base_address and base_known.
6519 (dwarf_loc_buffer): New variable.
6520 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6521 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6522 (dwarf2_has_info): Initialize dwarf_loc_offset.
6523 (dwarf2_build_psymtabs): Read in .debug_loc.
6524 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6525 DWARF_LOC_SIZE.
6526 (psymtab_to_symtab_1): Likewise. Move base address calculation
6527 here, from...
6528 (dwarf2_get_pc_bounds): ... here. Use the base address from
6529 cu_header.
6530 (dwarf2_symbol_mark_computed): Handle location lists.
6531
6532 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6533
6534 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6535 if the linkage name demangled successfully.
6536
6537 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6538
6539 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6540 disassmbly_flavour): Removed.
6541
6542 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6543
6544 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6545
6546 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6547
6548 2003-04-12 Andrew Cagney <cagney@redhat.com>
6549
6550 * frame.h (struct frame_info): Move definition from here ...
6551 * frame.c (struct frame_info): ... to here.
6552
6553 2003-04-12 Andrew Cagney <cagney@redhat.com>
6554
6555 * gdbthread.h (save_infrun_state): Delete parameter
6556 "prev_func_start".
6557 (struct thread_info): Delete field "prev_func_start".
6558 (load_infrun_state): Ditto.
6559 * thread.c (load_infrun_state, save_infrun_state): Update.
6560 * infrun.c (prev_func_start): Delete variable.
6561 (context_switch, init_wait_for_inferior): Update.
6562 (stop_stepping, keep_going): Update.
6563
6564 2003-04-12 Andrew Cagney <cagney@redhat.com>
6565
6566 * gdbarch.sh: Add missing opaque declarations.
6567 * gdbarch.h: Regnerate.
6568 * symtab.h: Add missing opaque declarations.
6569 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6570 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6571 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6572 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6573 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6574 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6575 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6576 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6577 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6578 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6579 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6580 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6581 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6582
6583 2003-04-11 Andrew Cagney <cagney@redhat.com>
6584
6585 * frame.c (get_frame_id): Return this frame's "id".
6586 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6587 function start.
6588 (legacy_saved_regs_this_id): Replace function body with
6589 internal-error.
6590 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6591 FRAME_OBSTACK_ZALLOC.
6592 (create_new_frame): Mark the frame ID as valid.
6593
6594 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6595
6596 * Makefile.in (libbfd_h): Added missing setting.
6597 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6598 according to the selected ABI.
6599
6600 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6601
6602 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6603
6604 2003-04-11 Andrew Cagney <cagney@redhat.com>
6605
6606 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6607 SAVED_PC_AFTER_CALL.
6608 * gdbarch.h, gdbarch.c: Regenerate.
6609 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6610 * x86-64-tdep.c (x86_64_init_abi): Update.
6611 * vax-tdep.c (vax_gdbarch_init): Update.
6612 * v850-tdep.c (v850_gdbarch_init): Update.
6613 * sparc-tdep.c (sparc_gdbarch_init): Update.
6614 * sh-tdep.c (sh_gdbarch_init): Update.
6615 * s390-tdep.c (s390_gdbarch_init): Update.
6616 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6617 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6618 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6619 * mips-tdep.c (mips_gdbarch_init): Update.
6620 * mcore-tdep.c (mcore_gdbarch_init): Update.
6621 * m68k-tdep.c (m68k_gdbarch_init): Update.
6622 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6623 * ia64-tdep.c (ia64_gdbarch_init): Update.
6624 (ia64_saved_pc_after_call): Update declaration.
6625 * i386ly-tdep.c (i386lynx_init_abi): Update.
6626 * i386-tdep.c (i386_gdbarch_init): Update.
6627 * hppa-tdep.c (hppa_gdbarch_init): Update.
6628 * h8300-tdep.c (h8300_gdbarch_init): Update.
6629 * frv-tdep.c (frv_gdbarch_init): Update.
6630 * cris-tdep.c (cris_gdbarch_init): Update.
6631 * avr-tdep.c (avr_gdbarch_init): Update.
6632 * arm-tdep.c (arm_gdbarch_init): Update.
6633 * alpha-tdep.c (alpha_gdbarch_init): Update.
6634 * ns32knbsd-nat.c (frame_num_args): Update.
6635 * ns32k-tdep.c (umax_frame_num_args): Update.
6636 * mips-tdep.c (mips_init_frame_pc_first): Update.
6637 * infrun.c (step_over_function): Update.
6638 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6639 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6640 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6641 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6642 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6643 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6644 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6645 * arch-utils.c (init_frame_pc_default): Update.
6646 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6647 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6648 declaration.
6649
6650 2003-04-11 Andrew Cagney <cagney@redhat.com>
6651
6652 * i387-tdep.c: Update copyright.
6653 (i387_to_double): Delete function.
6654 (double_to_i387): Delete function.
6655
6656 2003-04-10 Andrew Cagney <cagney@redhat.com>
6657
6658 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6659 frame's function's address. Simplify.
6660 (d10v_frame_unwind_cache): Check that the frame's function is
6661 non-zero.
6662
6663 2003-04-10 Jim Blandy <jimb@redhat.com>
6664
6665 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6666 call to set_gdbarch_deprecated_push_arguments.
6667
6668 2003-04-10 Andrew Cagney <cagney@redhat.com>
6669
6670 * frame.c (fprint_frame_id): New function.
6671 (fprint_frame_type, fprint_frame): New function.
6672 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6673 (create_sentinel_frame, get_frame_id): Ditto.
6674 (frame_id_p, frame_id_eq): Ditto.
6675 (frame_id_inner, create_new_frame): Ditto.
6676 (legacy_get_prev_frame, get_prev_frame): Ditto.
6677 (deprecated_update_frame_pc_hack): Ditto.
6678 (frame_register_unwind): Ditto.
6679 (deprecated_update_frame_base_hack): Ditto.
6680
6681 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6682
6683 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6684 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6685 frame_chain function.
6686 * Makefile.in: Add dependencies due to above change.
6687
6688 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6689
6690 * blockframe.c (legacy_frame_chain_valid): Move call to
6691 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6692 inside_entry_file.
6693
6694 2003-04-09 Andrew Cagney <cagney@redhat.com>
6695
6696 * frame.h (struct frame_id): Replace "pc" and "base" with
6697 "stack_addr" and "code_addr". Update comments.
6698 (frame_id_build): Update parameter names and comment.
6699 (struct frame_info): Replace "id_p" and "id" with "this_id".
6700 * dummy-frame.c (dummy_frame_this_id): Update.
6701 * breakpoint.c (print_one_breakpoint): Update.
6702 * frame.c (get_frame_id): Update.
6703 (get_frame_base, frame_id_build): Update.
6704 (create_sentinel_frame, legacy_get_prev_frame): Update.
6705 (deprecated_update_frame_base_hack): Update.
6706 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6707 (frame_id_inner): Ditto.
6708
6709 2003-04-09 Andrew Cagney <cagney@redhat.com>
6710
6711 * defs.h (gdb_print_host_address): Make "addr" parameter a
6712 pointer constant.
6713 * utils.c (gdb_print_host_address): Update.
6714
6715 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6716
6717 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6718 register number for R0 is 0.
6719
6720 2003-04-09 J. Brobecker <brobecker@gnat.com>
6721
6722 * frame.h (struct gdbarch): Add opaque structure definition
6723 to avoid a compilation warning on LynxOS 4.0.
6724
6725 2003-04-09 Andrew Cagney <cagney@redhat.com>
6726
6727 * frame.h (struct frame_info): Delete field "pc". Replace
6728 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6729 structure.
6730 * frame.c (frame_pc_unwind): Update.
6731 (create_sentinel_frame): Do not set "pc".
6732 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6733 (get_frame_pc): Call frame_pc_unwind.
6734 (deprecated_update_frame_pc_hack): Update.
6735 (create_new_frame): Use "pc" not "->pc".
6736
6737 2003-04-09 Andrew Cagney <cagney@redhat.com>
6738
6739 * frame.c (get_frame_id): Eliminate code updating "frame".
6740 (legacy_get_prev_frame): Ditto.
6741 (get_frame_base): Return id.base directly.
6742 (deprecated_update_frame_base_hack): Update "id.base".
6743 * frame.h (struct frame_info): Delete field "frame".
6744
6745 2003-04-09 Andrew Cagney <cagney@redhat.com>
6746
6747 * NEWS: Mention that the "Sequent family" is obsolete.
6748 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6749 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6750 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6751 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6752 * config/i386/tm-ptx4.h: Obsolete file.
6753 * config/i386/tm-ptx.h: Obsolete file.
6754 * symm-tdep.c: Obsolete file.
6755 * config/i386/symmetry.mt: Obsolete file.
6756 * config/i386/tm-symmetry.h: Obsolete file.
6757 * symm-nat.c: Obsolete file.
6758 * config/i386/nm-symmetry.h: Obsolete file.
6759 * config/i386/xm-symmetry.h: Obsolete file.
6760 * config/i386/symmetry.mh: Obsolete file.
6761 * config/i386/nm-ptx4.h: Obsolete file.
6762 * config/i386/ptx4.mh: Obsolete file.
6763 * config/i386/ptx.mt: Obsolete file.
6764 * config/i386/ptx.mh: Obsolete file.
6765 * config/i386/xm-ptx4.h: Obsolete file.
6766 * config/i386/xm-ptx.h: Obsolete file.
6767
6768 2003-04-09 Andrew Cagney <cagney@redhat.com>
6769
6770 Obsolete mips*-*-mach3*.
6771 * NEWS: Mention that mips*-*-mach3* is obsolete.
6772 * m3-nat.c: Obsolete file.
6773 * config/nm-m3.h: Obsolete file.
6774 * config/mips/tm-mipsm3.h: Obsolete file.
6775 * config/mips/mipsm3.mt: Obsolete file.
6776 * config/mips/mipsm3.mh: Obsolete file.
6777 * config/mips/xm-mipsm3.h: Obsolete file.
6778 * mipsm3-nat.c: Obsolete file.
6779 * configure.host: Obsolete mips-dec-mach3*.
6780 * configure.tgt: Obsolete mips*-*-mach3*.
6781
6782 2003-04-09 Andrew Cagney <cagney@redhat.com>
6783
6784 * doublest.h: Update copyright.
6785 (deprecated_store_floating, deprecated_extract_floating): Rename
6786 store_floating and extract_floating. Update comments.
6787 * doublest.c: Update copyright.
6788 (extract_floating_by_length): Replace extract_floating.
6789 (store_floating_by_length): Replace store_floating.
6790 (deprecated_extract_floating): New function.
6791 (deprecated_store_floating): New function.
6792 (extract_typed_floating): Call extract_floating_by_length.
6793 (store_typed_floating): Call store_floating_by_length.
6794 * x86-64-tdep.c (x86_64_store_return_value): Update.
6795 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6796 (sh64_extract_return_value): Update.
6797 (sh_sh4_register_convert_to_virtual): Update.
6798 (sh_sh64_register_convert_to_virtual): Update.
6799 (sh_sh4_register_convert_to_raw): Update.
6800 (sh_sh64_register_convert_to_raw): Update.
6801 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6802 (rs6000_register_convert_to_raw): Update.
6803 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6804 (ia64_register_convert_to_raw): Update.
6805 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6806 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6807 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6808 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6809 (alpha_register_convert_to_raw): Update.
6810
6811 2003-04-08 Andrew Cagney <cagney@redhat.com>
6812
6813 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6814 * gdbarch.h, gdbarch.c: Re-generate.
6815 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6816 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6817 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6818 conditionally, use frame_pc_unwind as an alternative. Add
6819 comments.
6820 * arch-utils.c (init_frame_pc_default): Only call
6821 SAVED_PC_AFTER_CALL when available.
6822
6823 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6824
6825 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6826 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6827 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6828 (start_remote): Ditto.
6829 (handle_inferior_event): Ditto.
6830 (save_inferior_status): Ditto.
6831 (restore_inferior_status): Ditto.
6832 * infcmd.c (attach_command): Ditto.
6833 * fork-child.c (startup_inferior): Ditto.
6834 * inferior.h (stop_soon): Rename from stop_soon_quietly.
6835 * alpha-tdep.c (heuristic_proc_start): Ditto.
6836 * mips-tdep.c (heuristic_proc_start): Ditto.
6837 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6838 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6839 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6840 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6841 * remote-vx.c (vx_create_inferior): Ditto.
6842
6843 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6844
6845 * infrun.c (stop_soon_quietly): Make it an enum, to better
6846 override the default behavior of handle_inferior_event.
6847 (clear_proceed_status): Update uses of stop_soon_quietly to
6848 reflect that it is now an enum.
6849 (start_remote): Ditto.
6850 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6851 is set to handle the new GNU/Linux kernel behavior for
6852 attach/sigstop. Update uses of stop_soon_quietly.
6853 * inferior.h (enum stop_kind): New enum.
6854 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6855 Reset normal handle_inferior_event behavior, afterwards.
6856 * fork-child.c (startup_inferior): Update.
6857 * alpha-tdep.c (heuristic_proc_start): Update.
6858 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6859 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6860 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6861 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6862 * remote-vx.c (vx_create_inferior): Update.
6863 * mips-tdep.c (heuristic_proc_start): Update.
6864
6865 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
6866
6867 * disasm.c (dump_insns): Move variables inside loop, or they will
6868 be freed more than once, causing wild memory corruptions.
6869 (gdb_disassembly): Look for the substring "-thread",
6870 instead of "-threads" in the target name, to make sure to find
6871 the 'multi-thread' target. Also, make sure we do the right thing
6872 with the "core" target.
6873
6874 2003-04-07 Kevin Buettner <kevinb@redhat.com>
6875
6876 * mips-tdep.c (mips_print_fp_register): New function, created from
6877 do_fp_register_row(). Registers are now (also) printed as hex.
6878 Only one register is printed per row.
6879 (mips_print_register, do_fp_register_row): Print floating point
6880 registers with mips_print_fp_register().
6881
6882 2003-04-06 Andrew Cagney <cagney@redhat.com>
6883
6884 * valprint.h (inspect_it): Add extern declaration.
6885 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6886 (selectors_info, classes_info): Ditto.
6887 (find_objc_msgcall): Fix indentation.
6888 (objc_printstr): Delete extern declarations.
6889
6890 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6891
6892 2003-04-06 Andrew Cagney <cagney@redhat.com>
6893
6894 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6895 Update comment.
6896 * frame.c (legacy_saved_regs_this_id): Update.
6897 (legacy_get_prev_frame): Update.
6898 * xstormy16-tdep.c: Update comment.
6899 * sparc-tdep.c (sparc_frame_chain): Update comment.
6900 * blockframe.c (legacy_frame_chain_valid): Update.
6901
6902 2003-04-06 Andrew Cagney <cagney@redhat.com>
6903
6904 * valprint.c (val_print_type_code_int): Delete #ifdef
6905 PRINT_TYPELESS_INTEGER code.
6906
6907 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6908 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6909 multi-arch definition.
6910 * gdbarch.h: Re-generate.
6911
6912 2003-04-05 Andrew Cagney <cagney@redhat.com>
6913
6914 Eliminate FRAME_FIND_SAVED_REGS.
6915 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6916 Change FSR parameter to a pointer.
6917 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6918 Assume FSR parameter is a pointer.
6919 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6920 Make fsr a pointer.
6921 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6922 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6923 saved_regs a pointer.
6924 (hppa_frame_saved_pc): Ditto.
6925 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6926 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6927 pointer.
6928 (restore_pc_queue): Make fsr a pointer.
6929 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6930 (hppa_frame_chain): Make saved_regs a pointer, call
6931 hppa_frame_init_saved_regs.
6932 * sparc-tdep.c: Include "gdb_assert.h".
6933 (sparc_frame_find_saved_regs): Replace internal_error with
6934 gdb_assert.
6935 * remote-vxsparc.c (vx_read_register): Delete reference to
6936 FRAME_FIND_SAVED_REGS.
6937 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6938 * gdbarch.h: Regenerate.
6939 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6940 (deprecated_get_frame_saved_regs): Delete declaration.
6941 (struct frame_saved_regs): Delete definition.
6942 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6943 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6944 (hppa_frame_find_saved_regs): Delete declaration.
6945 (FRAME_FIND_SAVED_REGS): Delete macro.
6946 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6947 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6948 FRAME_FIND_SAVED_REGS in comment.
6949
6950 2003-04-05 Andrew Cagney <cagney@redhat.com>
6951
6952 * frame.c (frame_func_unwind, get_frame_func): New functions.
6953 * frame.h (get_frame_func, frame_func_unwind): Declare.
6954 (struct frame_info): Add field "prev_func" for caching the
6955 previous frame's function address.
6956 * arm-tdep.c (arm_frameless_function_invocation): Combine
6957 get_pc_function_start and get_frame_pc into get_frame_func.
6958 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6959 (sh64_nofp_frame_init_saved_regs): Ditto.
6960 * s390-tdep.c (s390_function_start): Ditto.
6961 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6962 (rs6000_frameless_function_invocation): Ditto.
6963 (rs6000_frame_saved_pc): Ditto.
6964 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6965 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6966 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6967 (i386_frame_init_saved_regs): Ditto.
6968 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6969 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6970 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6971 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6972 * blockframe.c (frameless_look_for_prologue): Ditto.
6973
6974 2003-04-05 Andrew Cagney <cagney@redhat.com>
6975
6976 * frame.c (legacy_get_prev_frame): Link prev to next at the
6977 function start. Update comments.
6978
6979 2003-04-05 Andrew Cagney <cagney@redhat.com>
6980
6981 * frame.c (get_frame_id): Update comment.
6982 (legacy_get_prev_frame): Update comment.
6983 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6984 * gdbarch.h: Regenerate.
6985 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6986 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6987
6988 2003-04-05 Andrew Cagney <cagney@redhat.com>
6989
6990 * stack.c (print_frame_info): Use get_frame_pc.
6991
6992 2003-04-04 Andrew Cagney <cagney@redhat.com>
6993
6994 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6995 the frame's type from the unwinder.
6996 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6997 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6998 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6999 (get_frame_base_address): Use get_frame_type.
7000 (get_frame_locals_address, get_frame_args_address): Ditto.
7001 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7002 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7003 (struct frame_info): Add comment explaining why the frame contains
7004 a "type" field.
7005 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7006 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7007 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7008 NORMAL_FRAME.
7009 * frame-unwind.h: Include "frame.h".
7010 (struct frame_unwind): Add "type" field.
7011 * Makefile.in (frame_unwind_h): Add $(frame_h).
7012
7013 2003-04-04 Andrew Cagney <cagney@redhat.com>
7014
7015 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7016 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7017 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7018 get_frame_base.
7019 (d10v_unwind_dummy_id): Use frame_id_build.
7020 * frame.c (find_frame_sal): Use get_frame_pc.
7021 (create_new_frame): Use deprecated_update_frame_pc_hack and
7022 deprecated_update_frame_base_hack.
7023 (create_sentinel_frame): Add comment about ->pc going away.
7024 (get_prev_frame): Add comment about ->pc going away.
7025 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7026 frame_id_build, deprecated_update_frame_pc_hack and
7027 deprecated_update_frame_base_hack.
7028 (select_frame): Use get_frame_pc.
7029 (legacy_saved_regs_this_id): Use frame_id_build.
7030
7031 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
7032
7033 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7034 signed integer case.
7035 (classify_argument): Handle enumerations and references.
7036
7037 2003-04-04 Andrew Cagney <cagney@redhat.com>
7038
7039 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7040 ID to NULL.
7041
7042 2003-04-01 Adam Fedor <fedor@gnu.org>
7043
7044 * gdb/objc-lang.c (selectors_info): Replace calls to
7045 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7046 SYMBOL_NATURAL_NAME.
7047 (classes_info, find_methods): Likewise.
7048
7049 2003-04-03 Kevin Buettner <kevinb@redhat.com>
7050
7051 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7052 ``mach'' to the value determined by bfd_default_set_arch_mach().
7053
7054 2003-04-02 Bob Rossi <bob_rossi@cox.net>
7055
7056 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7057 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7058 (mi-cmd-file.o): Update dependencies.
7059
7060 2003-04-01 Kevin Buettner <kevinb@redhat.com>
7061
7062 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7063 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7064
7065 2003-04-01 Adam Fedor <fedor@gnu.org>
7066
7067 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7068 * language.h (struct language_defn): Add la_demangle.
7069 (language_demangle): Declare.
7070 * language.c (language_demangle): New function.
7071 (unk_lang_demangle): Likewise.
7072 (unknown_language_defn, auto_language_defn, local_language_defn):
7073 Add ukn_lang_demangle.
7074 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7075 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7076 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7077 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7078 * jv-lang.c (java_demangle): New function
7079 (java_language_defn): Use it for la_demangle element.
7080 * objc-lang.c (objc_demangle): Add options argument
7081 (objc_language_defn): Use objc_demangle for la_demangle element.
7082 * maint.c (maintenance_demangle): Replace switch with
7083 call to language_demangle.
7084 * utils.c (fprintf_symbol_filtered): Likewise.
7085
7086 2003-04-01 Andrew Cagney <cagney@redhat.com>
7087
7088 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7089 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7090 PRINT_TYPELESS_INTEGER.
7091 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7092 PUSH_RETURN_ADDRESS.
7093
7094 2003-04-01 Andrew Cagney <cagney@redhat.com>
7095
7096 * Makefile.in (d10v-tdep.o): Update dependencies.
7097 * d10v-tdep.c: Include "frame-base.h".
7098 (d10v_frame_unwind): Make constant.
7099 (d10v_frame_base_address): New function.
7100 (d10v_frame_base): New variable.
7101 (d10v_gdbarch_init): Set frame_base default.
7102 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7103 comment for base.
7104 (d10v_frame_unwind_cache): Set and use "prev_sp".
7105 (d10v_frame_this_id): Use the previous frame's inner most stack
7106 address and this frame's func address for the frame ID. Use
7107 frame_id_build. Don't analyze beyond the current instruction.
7108
7109 2003-04-01 Andrew Cagney <cagney@redhat.com>
7110
7111 * frame.h (get_frame_locals_address, get_frame_args_address):
7112 Refer to the base address, instead of the address of the first
7113 local or parameter.
7114
7115 2003-04-01 Andrew Cagney <cagney@redhat.com>
7116
7117 Add frame debug info addresses:
7118 * frame-base.c: New file.
7119 * frame-base.h: New file.
7120 * frame.h (struct frame_base): Add opaque declaration.
7121 (get_frame_base): Update comment.
7122 (get_frame_base_address): Declare.
7123 (get_frame_locals_address): Declare.
7124 (get_frame_args_address): Declare.
7125 (struct frame_info): Add "base" and "base_cache". Update
7126 comments on the unwinder.
7127 * frame.c: Include "frame-base.h".
7128 (get_frame_locals_address): New function.
7129 (get_frame_base_address): New function.
7130 (get_frame_args_address): New function.
7131 * findvar.c (read_var_value): Use get_frame_locals_address and
7132 get_frame_args_address.
7133 * stack.c (frame_info): Use get_frame_locals_address and
7134 get_frame_args_address.
7135 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7136 moved to "frame-base.c".
7137 * printcmd.c (print_frame_nameless_args): Ditto.
7138 * symtab.h (address_class): Update comments.
7139 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7140 get_frame_base_address.
7141 * dwarf2expr.c (execute_stack_op): Ditto.
7142 * Makefile.in (frame_base_h): Define.
7143 (frame.o): Update dependencies.
7144 (frame-base.o): Add dependencies.
7145 (SFILES): Add frame-base.c.
7146 (COMMON_OBS): Add frame-base.o.
7147
7148 2003-04-01 Andrew Cagney <cagney@redhat.com>
7149
7150 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7151 CALL_DUMMY_LENGTH): Ditto.
7152 * gdbarch.c: Re-generate.
7153 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7154 (CALL_DUMMY_LENGTH): Delete macro.
7155 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7156 * arm-tdep.c (arm_gdbarch_init): Ditto.
7157 * avr-tdep.c (avr_gdbarch_init): Ditto.
7158 * cris-tdep.c (cris_gdbarch_init): Ditto.
7159 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7160 * frv-tdep.c (frv_gdbarch_init): Ditto.
7161 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7162 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7163 * i386-tdep.c (i386_gdbarch_init): Ditto.
7164 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7165 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7166 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7167 * mips-tdep.c (mips_gdbarch_init): Ditto.
7168 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7169 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7170 * s390-tdep.c (s390_gdbarch_init): Ditto.
7171 * sh-tdep.c (sh_gdbarch_init): Ditto.
7172 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7173 * v850-tdep.c (v850_gdbarch_init): Ditto.
7174 * vax-tdep.c (vax_gdbarch_init): Ditto.
7175 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7176
7177 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
7178
7179 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7180
7181 2003-04-01 Andrew Cagney <cagney@redhat.com>
7182
7183 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7184 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7185 * gdbarch.h, gdbarch.c: Re-generate.
7186 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7187 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7188 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7189 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7190 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7191 * infcmd.c (run_stack_dummy): Simplify assuming
7192 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7193 * infrun.c (handle_inferior_event): Ditto.
7194 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7195 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7196 * arm-tdep.c (arm_gdbarch_init): Ditto.
7197 * avr-tdep.c (avr_gdbarch_init): Ditto.
7198 * cris-tdep.c (cris_gdbarch_init): Ditto.
7199 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7200 * frv-tdep.c (frv_gdbarch_init): Ditto.
7201 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7202 * i386-tdep.c (i386_gdbarch_init): Ditto.
7203 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7204 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7205 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7206 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7207 * mips-tdep.c (mips_gdbarch_init): Ditto.
7208 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7209 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7210 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7211 * s390-tdep.c (s390_gdbarch_init): Ditto.
7212 * sh-tdep.c (sh_gdbarch_init): Ditto.
7213 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7214 * v850-tdep.c (v850_gdbarch_init): Ditto.
7215 * vax-tdep.c (vax_gdbarch_init): Ditto.
7216 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7217
7218 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
7219
7220 * symfile.c (symfile_relocate_debug_section): Update call to
7221 bfd_simple_get_relocated_section_contents.
7222
7223 2003-03-31 Andrew Cagney <cagney@redhat.com>
7224
7225 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7226 * gdbarch.h, gdbarch.c: Regenerate.
7227 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7228 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7229 available.
7230 * frame.h (generic_fix_call_dummy): Delete declaration.
7231 * dummy-frame.h: Update comment.
7232 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7233 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7234 fix_call_dummy.
7235 * sh-tdep.c (sh_gdbarch_init): Ditto.
7236 * s390-tdep.c (s390_gdbarch_init): Ditto.
7237 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7238 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7239 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7240 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7241 * i386-tdep.c (i386_gdbarch_init): Ditto.
7242 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7243 * frv-tdep.c (frv_gdbarch_init): Ditto.
7244 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7245 * cris-tdep.c (cris_gdbarch_init): Ditto.
7246 * avr-tdep.c (avr_gdbarch_init): Ditto.
7247 * arm-tdep.c (arm_gdbarch_init): Ditto.
7248
7249 2003-03-31 J. Brobecker <brobecker@gnat.com>
7250
7251 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7252 (INIT_FRAME_AP): Likewise.
7253 (EXTRA_FRAME_INFO): Likewise.
7254
7255 2003-03-31 Andrew Cagney <cagney@redhat.com>
7256
7257 * gdbarch.sh: Include "symfile.h".
7258 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7259 * gdbarch.h, gdbarch.c: Re-generate.
7260 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7261 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7262 call_dummy_address, the default is at entry_point_address.
7263 * v850-tdep.c (v850_gdbarch_init): Ditto.
7264 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7265 * sh-tdep.c (sh_gdbarch_init): Ditto.
7266 * s390-tdep.c (s390_gdbarch_init): Ditto.
7267 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7268 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7269 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7270 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7271 * i386-tdep.c (i386_gdbarch_init): Ditto.
7272 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7273 * frv-tdep.c (frv_gdbarch_init): Ditto.
7274 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7275 * cris-tdep.c (cris_gdbarch_init): Ditto.
7276 * arm-tdep.c (arm_gdbarch_init): Ditto.
7277
7278 2003-03-31 Andrew Cagney <cagney@redhat.com>
7279
7280 * gdbarch.sh (CALL_DUMMY_P): Delete.
7281 * gdbarch.h, gdbarch.c: Re-generate.
7282 * inferior.h (CALL_DUMMY_P): Delete macro.
7283 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7284 * vax-tdep.c (vax_gdbarch_init): Update.
7285 * v850-tdep.c (v850_gdbarch_init): Update.
7286 * sparc-tdep.c (sparc_gdbarch_init): Update.
7287 * sh-tdep.c (sh_gdbarch_init): Update.
7288 * s390-tdep.c (s390_gdbarch_init): Update.
7289 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7290 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7291 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7292 * mips-tdep.c (mips_gdbarch_init): Update.
7293 * mcore-tdep.c (mcore_gdbarch_init): Update.
7294 * m68k-tdep.c (m68k_gdbarch_init): Update.
7295 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7296 * ia64-tdep.c (ia64_gdbarch_init): Update.
7297 * i386-tdep.c (i386_gdbarch_init): Update.
7298 * h8300-tdep.c (h8300_gdbarch_init): Update.
7299 * frv-tdep.c (frv_gdbarch_init): Update.
7300 * d10v-tdep.c (d10v_gdbarch_init): Update.
7301 * cris-tdep.c (cris_gdbarch_init): Update.
7302 * breakpoint.c (deprecated_frame_in_dummy): Update.
7303 * avr-tdep.c (avr_gdbarch_init): Update.
7304 * alpha-tdep.c (alpha_gdbarch_init): Update.
7305 * arm-tdep.c (arm_gdbarch_init): Update.
7306 * dummy-frame.c (dummy_frame_this_id): Update comments.
7307 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7308 * frame.c (legacy_get_prev_frame): Ditto.
7309 * valops.c (call_function_by_hand): Delete function.
7310 (hand_function_call): Rename to call_function_by_hand
7311
7312 2003-03-30 Andrew Cagney <cagney@redhat.com>
7313
7314 2002-11-10 Klee Dienes <kdienes@apple.com>
7315 * value.h (struct value): Update comment.
7316
7317 2003-03-30 Andrew Cagney <cagney@redhat.com>
7318
7319 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7320 D10V_FP_REGNUM.
7321 (d10v_gdbarch_init): Do not set fp_regnum.
7322
7323 * frame.c (get_frame_base): Force ID initialization.
7324 (get_prev_frame): Move computation of the frame ID from here ...
7325 (get_frame_id): ... to here.
7326 (legacy_get_prev_frame): Mark the frame ID as valid.
7327 * frame.h (struct frame_info): Add field "id_p".
7328
7329 2003-03-30 Mark Kettenis <kettenis@gnu.org>
7330
7331 * i386-tdep.c (i386_store_struct_return): Removed.
7332 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7333
7334 2003-03-30 Andrew Cagney <cagney@redhat.com>
7335
7336 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7337 * gdbarch.h, gdbarch.c: Regenerate.
7338 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7339 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7340 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7341 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7342 * i386-tdep.c (i386_gdbarch_init): Ditto.
7343 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7344 * cris-tdep.c (cris_gdbarch_init): Ditto.
7345 * vax-tdep.c (vax_gdbarch_init): Ditto.
7346 * s390-tdep.c (s390_gdbarch_init): Ditto.
7347 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7348 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7349 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7350 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7351 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7352 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7353 * sparc-tdep.c (sparc_gdbarch_init): Update.
7354 * sh-tdep.c (sh_gdbarch_init): Update.
7355 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7356 * mips-tdep.c (mips_gdbarch_init): Update.
7357 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7358 * ia64-tdep.c (ia64_gdbarch_init): Update.
7359 * frv-tdep.c (frv_gdbarch_init): Update.
7360 * avr-tdep.c (avr_gdbarch_init): Update.
7361 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7362 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7363 instead of when push_dummy_call is not available.
7364
7365 2003-03-30 Andrew Cagney <cagney@redhat.com>
7366
7367 * infttrace.c: Include "gdbthread.h".
7368 (parent_attach_all): Fix function signature.
7369 (call_ptrace): Update call.
7370 * Makefile.in (infttrace.o): Update dependencies.
7371
7372 2003-03-30 Andrew Cagney <cagney@redhat.com>
7373
7374 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7375 PUSH_RETURN_ADDRESS.
7376 * gdbarch.h, gdbarch.c: Regenerate.
7377 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7378 * x86-64-tdep.c (x86_64_init_abi): Update.
7379 * v850-tdep.c (v850_gdbarch_init): Update.
7380 * sparc-tdep.c (sparc_gdbarch_init): Update.
7381 * sh-tdep.c (sh_gdbarch_init): Update.
7382 * s390-tdep.c (s390_gdbarch_init): Update.
7383 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7384 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7385 * mips-tdep.c (mips_gdbarch_init): Update.
7386 * mcore-tdep.c (mcore_gdbarch_init): Update.
7387 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7388 * ia64-tdep.c (ia64_gdbarch_init): Update.
7389 * i386-tdep.c (i386_gdbarch_init): Update.
7390 * h8300-tdep.c (h8300_gdbarch_init): Update.
7391 * frv-tdep.c (frv_gdbarch_init): Update.
7392 * cris-tdep.c (cris_gdbarch_init): Update.
7393 * avr-tdep.c (avr_gdbarch_init): Update.
7394 * arm-tdep.c (arm_gdbarch_init): Update.
7395 * valops.c (hand_function_call): Update.
7396
7397 2003-03-29 Andrew Cagney <cagney@redhat.com>
7398
7399 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7400 sizeof_call_dummy_words.
7401 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7402 define.
7403 * gdbarch.h: Regenerate.
7404
7405 2003-03-29 Andrew Cagney <cagney@redhat.com>
7406
7407 * infttrace.h: New file.
7408 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7409 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7410 (hpread_read_doc_function_type): Detect an initialized type1.
7411 (hpread_quick_traverse): Initialize mod_name_string.
7412 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7413 (som_solib_get_solib_by_pc): Declare.
7414 (so_lib_thread_start_addr): Declare.
7415 (no_shared_libraries): Declare.
7416 * somread.c (init_import_symbols): Make static. Add forward
7417 declaration.
7418 * config/pa/nm-hppah.h: Include "infttrace.h" for
7419 parent_attach_all.
7420 (hppa_insert_hw_watchpoint): Declare.
7421 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7422 * hppah-nat.c: Include "gdb_string.h".
7423 (parent_attach_all): Delete extern declaration, moved to
7424 "infttrace.h".
7425 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7426 int.
7427 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7428 * Makefile.in (infttrace_h): Define.
7429 (hpread.o): Update dependencies.
7430 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7431 * hppa-hpux-tdep.c: Include "gdb_string.h".
7432 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7433 * infrun.c (handle_inferior_event): Always initialize
7434 stepped_after_stopped_by_watchpoint. Add default and remove
7435 fallthrough in switch statement.
7436 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7437 parameter to int.
7438 (hppa_remove_hw_watchpoint): Ditto.
7439
7440 2003-03-29 Andrew Cagney <cagney@redhat.com>
7441
7442 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7443 offset.
7444
7445 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
7446
7447 * arm-tdep.c (arm_push_arguments): Delete.
7448 (struct stack_item): New type.
7449 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7450 (arm_store_struct_return): Delte.
7451 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7452 arm_push_arguments or arm_store_struct_return.
7453
7454 2003-03-28 Andrew Cagney <cagney@redhat.com>
7455
7456 * Makefile.in (d10v-tdep.o): Update dependencies.
7457 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7458 * d10v-tdep.c: Include "remote.h".
7459 (target_resume_hook): Delete extern declaration.
7460 (target_wait_loop_hook): Ditto.
7461 (tdisassemble_command): Eliminate assignment in "if" conditional.
7462 (d10v_ts2_register_sim_regno): Eliminate call to
7463 legacy_register_sim_regno.
7464 (d10v_ts3_register_sim_regno): Ditto.
7465
7466 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7467
7468 * thread.c: Reindented.
7469 * lin-lwp.c: Ditto.
7470 * linux-proc.c: Ditto.
7471
7472 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7473
7474 * MAINTAINERS (write after approval): Add myself.
7475
7476 2003-03-27 Theodore A. Roth <troth@openavr.org>
7477
7478 * objc-exp.y: Add missing semi-colons.
7479
7480 2003-03-27 Andrew Cagney <cagney@redhat.com>
7481
7482 * regcache.c (write_sp): Delete function and references.
7483 * inferior.h (write_sp): Delete declaration.
7484 * valops.c (hand_function_call): Replace write_sp with
7485 TARGET_WRITE_SP.
7486 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7487 (sparc_pop_frame): Ditto.
7488
7489 2003-03-27 Andrew Cagney <cagney@redhat.com>
7490
7491 * NEWS: Mention removal of support for hppa*-*-bsd* and
7492 hppa*-*-osf* natives, and hppa*-*-pro* target.
7493 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7494 * config/pa/xm-pa.h: Obsolete file.
7495 * config/pa/xm-hppab.h: Obsolete file.
7496 * config/pa/nm-hppab.h: Obsolete file.
7497 * config/pa/tm-hppab.h: Obsolete file.
7498 * config/pa/tm-hppao.h: Obsolete file.
7499 * config/pa/nm-hppao.h: Obsolete file.
7500 * config/pa/tm-pro.h: Obsolete file.
7501 * config/pa/hppaosf.mt: Obsolete file.
7502 * config/pa/hppaosf.mh: Obsolete file.
7503 * config/pa/hppapro.mt: Obsolete file.
7504 * config/pa/hppabsd.mt: Obsolete file.
7505 * config/pa/hppabsd.mh: Obsolete file.
7506 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7507 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7508 hppa*-*-osf*.
7509
7510 2003-03-27 Andrew Cagney <cagney@redhat.com>
7511
7512 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7513 push_arguments. Don't set push_return_address or write_sp.
7514 (d10v_push_dummy_call): Replace d10v_push_arguments.
7515 (d10v_push_return_address, d10v_write_sp): Delete function,
7516 handled by push_dummy_call.
7517
7518 2003-03-26 Andrew Cagney <cagney@redhat.com>
7519
7520 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7521 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7522 regcache and dummy_addr parameters.
7523 * gdbarch.h, gdbarch.c: Re-generate.
7524 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7525 available; assume it will handle stack alignment and return
7526 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7527 legacy_push_arguments.
7528 (legacy_push_arguments): Rename default_push_arguments.
7529 * value.h (legacy_push_arguments): Rename default_push_arguments.
7530 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7531 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7532 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7533 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7534 * config/i386/tm-symmetry.h: Update.
7535 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7536 * x86-64-tdep.c (x86_64_init_abi): Update.
7537 * v850-tdep.c (v850_gdbarch_init): Update.
7538 * sparc-tdep.c (sparc_gdbarch_init): Update.
7539 * sh-tdep.c (sh_gdbarch_init): Update.
7540 * s390-tdep.c (s390_gdbarch_init): Update.
7541 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7542 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7543 * mips-tdep.c (mips_gdbarch_init): Update.
7544 * mcore-tdep.c (mcore_gdbarch_init): Update.
7545 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7546 * ia64-tdep.c (ia64_gdbarch_init): Update.
7547 * i386-tdep.c (i386_gdbarch_init): Update.
7548 * hppa-tdep.c (hppa_gdbarch_init): Update.
7549 * h8300-tdep.c (h8300_gdbarch_init): Update.
7550 * frv-tdep.c (frv_gdbarch_init): Update.
7551 * d10v-tdep.c (d10v_gdbarch_init): Update.
7552 * cris-tdep.c (cris_gdbarch_init): Update.
7553 * avr-tdep.c (avr_gdbarch_init): Update.
7554 * arm-tdep.c (arm_gdbarch_init): Update.
7555 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7556 * alpha-tdep.c (alpha_gdbarch_init): Update.
7557
7558 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7559
7560 * signals/signals.c (do_target_signal_to_host): Correct realtime
7561 signal range test.
7562
7563 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7564
7565 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7566 (struct sal_chain, map_catch_names): Remove.
7567 (catch_exception_command_1): Don't call
7568 handle_gnu_4_16_catch_command.
7569
7570 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7571
7572 From Mark Dettinger <dettinge@de.ibm.com>:
7573 * dwarf2cfi.c (read_2u): Increment pointer by two.
7574
7575 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7576
7577 * signals/signals.c: Fix typos in last change.
7578
7579 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7580
7581 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7582 not already defined. Use __SIGRTMIN if available.
7583 (target_signal_from_host): Remove SIGRTMIN block.
7584 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7585 the signal is within the realtime range.
7586
7587 2003-03-25 Adam Fedor <fedor@gnu.org>
7588
7589 * Makefile.in (infrun.o): Add $(language_h)
7590 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7591 for language specific trampolines.
7592 * language.h (struct language_defn): Add skip_trampoline.
7593 (skip_language_trampoline): Declare.
7594 * language.c (unk_lang_trampoline, skip_language_trampoline):
7595 New functions.
7596 (unknown_language_defn, auto_language_defn, local_language_defn):
7597 Add ukn_lang_trampoline.
7598 * ada-lang.c (ada_language_defn): Add NULL for language
7599 specific skip_trampoline.
7600 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7601 scm-lang.c: Likewise.
7602 * objc-lang.c (objc_skip_trampoline): New function.
7603 (objc_language_defn): Add objc_skip_trampoline.
7604
7605 2003-03-25 Andrew Cagney <cagney@redhat.com>
7606
7607 * frame.c (get_prev_frame): Delay validating a frame's ID -
7608 non-NULL, didn't go backwards - until an attempt to unwind it to
7609 the previous frame.
7610
7611 2003-03-25 Andrew Cagney <cagney@redhat.com>
7612
7613 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7614 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7615 * gdbarch.h, gdbarch.c: Re-generate.
7616 * config/sparc/tm-sparc.h
7617 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7618 * sparc-tdep.c (sparc_gdbarch_init): Set
7619 deprecated_extra_stack_alignment_needed.
7620 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7621 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7622 extra_stack_alignment_needed.
7623 * v850-tdep.c (v850_gdbarch_init): Ditto.
7624 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7625 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7626 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7627 * cris-tdep.c (cris_gdbarch_init): Ditto.
7628 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7629 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7630
7631 2003-03-25 Andrew Cagney <cagney@redhat.com>
7632
7633 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7634 STORE_STRUCT_RETURN.
7635 * gdbarch.h, gdbarch.c: Regenerate.
7636 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7637 (d10v_push_arguments): Set the struct return register.
7638 (d10v_gdbarch_init): Update.
7639 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7640 * x86-64-tdep.c (x86_64_init_abi): Update.
7641 * vax-tdep.c (vax_gdbarch_init): Update.
7642 * v850-tdep.c (v850_gdbarch_init): Update.
7643 * sparc-tdep.c (sparc_gdbarch_init): Update.
7644 * sh-tdep.c (sh_gdbarch_init): Update.
7645 * s390-tdep.c (s390_gdbarch_init): Update.
7646 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7647 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7648 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7649 * mips-tdep.c (mips_gdbarch_init): Update.
7650 * mcore-tdep.c (mcore_gdbarch_init): Update.
7651 * m68k-tdep.c (m68k_gdbarch_init): Update.
7652 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7653 * ia64-tdep.c (ia64_gdbarch_init): Update.
7654 * i386-tdep.c (i386_gdbarch_init): Update.
7655 * hppa-tdep.c (hppa_gdbarch_init): Update.
7656 * h8300-tdep.c (h8300_gdbarch_init): Update.
7657 * frv-tdep.c (frv_gdbarch_init): Update.
7658 * cris-tdep.c (cris_gdbarch_init): Update.
7659 * avr-tdep.c (avr_gdbarch_init): Update.
7660 * arm-tdep.c (arm_gdbarch_init): Update.
7661 * alpha-tdep.c (alpha_gdbarch_init): Update.
7662
7663 2003-03-25 Andrew Cagney <cagney@redhat.com>
7664
7665 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7666 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7667 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7668 * gdbarch.h, gdbarch.c: Regenerate.
7669 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7670 call_dummy_stack_adjust_p.
7671 * vax-tdep.c (vax_gdbarch_init): Ditto.
7672 * v850-tdep.c (v850_gdbarch_init): Ditto.
7673 * sh-tdep.c (sh_gdbarch_init): Ditto.
7674 * s390-tdep.c (s390_gdbarch_init): Ditto.
7675 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7676 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7677 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7678 * mips-tdep.c (mips_gdbarch_init): Ditto.
7679 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7680 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7681 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7682 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7683 * i386-tdep.c (i386_gdbarch_init): Ditto.
7684 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7685 * frv-tdep.c (frv_gdbarch_init): Ditto.
7686 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7687 * cris-tdep.c (cris_gdbarch_init): Ditto.
7688 * avr-tdep.c (avr_gdbarch_init): Ditto.
7689 * arm-tdep.c (arm_gdbarch_init): Ditto.
7690 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7691 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7692 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7693 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7694 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7695 call_dummy_stack_adjust_p.
7696 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7697 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7698 * sparc-tdep.c (sparc32_push_arguments): Update.
7699 * valops.c (hand_function_call): Update.
7700
7701 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7702
7703 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7704 set_gdbarch_char_signed.
7705
7706 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7707
7708 PR cli/548
7709 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7710
7711 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7712
7713 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7714 (_initialize_arm_tdep): Don't set tm_print_insn.
7715
7716 2003-03-24 Adam Fedor <fedor@gnu.org>
7717
7718 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7719 * objc-lang.h: Add multiple inclusion protection.
7720 (start_msglist, add_msglist, end_msglist): Additional declarations.
7721
7722 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7723
7724 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7725 value was renamed to ARM_FLOAT_SOFT_FPA.
7726
7727 2003-03-23 Andrew Cagney <cagney@redhat.com>
7728
7729 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7730 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7731 * gdbarch.h, gdbarch.c: Regenerate.
7732 * valops.c (hand_function_call): Update.
7733 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7734 * frame.c (legacy_saved_regs_this_id): Update.
7735 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7736 * dummy-frame.h: Update.
7737 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7738 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7739 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7740 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7741 * config/m68k/tm-sun3.h: Update.
7742 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7743 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7744 * x86-64-tdep.c (x86_64_init_abi): Update.
7745 * vax-tdep.c (vax_gdbarch_init): Update.
7746 * v850-tdep.c (v850_gdbarch_init): Update.
7747 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7748 * sh-tdep.c (sh_gdbarch_init): Update.
7749 * s390-tdep.c (s390_gdbarch_init): Update.
7750 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7751 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7752 (frame_get_saved_regs): Update.
7753 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7754 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7755 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7756 * mips-tdep.c (mips_gdbarch_init): Update.
7757 * mcore-tdep.c (mcore_gdbarch_init): Update.
7758 * m68k-tdep.c (m68k_gdbarch_init): Update.
7759 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7760 * ia64-tdep.c (ia64_gdbarch_init): Update.
7761 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7762 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7763 (i386_interix_back_one_frame): Update.
7764 * hppa-tdep.c (hppa_gdbarch_init): Update.
7765 (hppa_init_extra_frame_info): Update.
7766 * h8300-tdep.c (h8300_gdbarch_init): Update.
7767 * frv-tdep.c (frv_gdbarch_init): Update.
7768 * cris-tdep.c (cris_gdbarch_init): Update.
7769 * avr-tdep.c (avr_gdbarch_init): Update.
7770 * arm-tdep.c (arm_gdbarch_init): Update.
7771 * alpha-tdep.c (alpha_gdbarch_init): Update.
7772
7773 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7774
7775 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7776 (arm_get_fp_model): Declare.
7777 * arm-tdep.c (fp_model_strings): New string array.
7778 (arm_fp_model, current_fp_model): New variables.
7779 (arm_get_fp_model): New function.
7780 (arm_set_fp): New function.
7781 (set_fp_model_sfunc): New function.
7782 (show_fp_model): New function.
7783 (_initialize_arm_tdep): Add new command to set/show the FPU.
7784 (arm_extract_return_value): Use arm_get_fp_model.
7785 (arm_store_return_value): Likewise.
7786 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7787 to initialize the floating-point data types.
7788 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7789 model is FPA.
7790
7791 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7792
7793 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7794 the current setting of each value.
7795 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7796 new_set and new_show. Use add_setshow_cmd_full and
7797 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7798 commands and add new version as subcommands of "set/show arm".
7799
7800 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7801
7802 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7803 (set_arm_command, show_arm_command): New functions.
7804 (_initialize_arm_tdep): Add them.
7805 (num_disassembly_options): Renamed from num_flavor_options.
7806 (valid_disassembly_styles): Renamed from valid_flavors.
7807 (disassembly_style): Renamed from disassembly_flavor.
7808 (set_disassembly_style_sfunc): Renamed from
7809 set_disassembly_flavor_sfunc.
7810 (set_disassembly_style): Renamed from set_disassembly_flavor.
7811 (arm_othernames): Updated.
7812 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7813 command. Add "set/show arm disassembly" commands. Deprecate
7814 "othernames" command.
7815
7816 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7817
7818 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7819 (arm-tdep.o): Depend on elf_arm_h.
7820
7821 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7822
7823 * Makefile.in (coff_internal_h): Define.
7824 (arm-tdep.o): Update dependencies.
7825
7826 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7827
7828 * arm-tdep.c (prologue_cache): Delete.
7829 (check_prologue_cache, save_prologue_cache): Delete.
7830 (arm_scan_prologue): Don't check or update the prologue_cache.
7831 (arm_gdb_arch_init): Don't initialize it.
7832 (_initialize_arm_tdep): Likewise.
7833
7834 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7835
7836 * MAINTAINERS (tui): Maintainer of tui code.
7837
7838 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
7839
7840 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7841 (i386-cygwin-tdep.o): Add dependencies.
7842 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7843 * i386-cygwin-tdep.c: New file.
7844 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7845 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7846
7847 2003-03-20 Andrew Cagney <cagney@redhat.com>
7848
7849 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7850 (handle_inferior_event): Remove code calling
7851 DYNAMIC_TRAMPOLINE_NEXTPC.
7852
7853 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7854 already has a full path.
7855
7856 * main.c (gdb_main): Return 1.
7857 (captured_main): Call error to report an invalid interpreter.
7858
7859 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7860 * alpha-osf1-tdep.c: Include "gdb_string.h".
7861
7862 2003-03-19 J. Brobecker <brobecker@gnat.com>
7863
7864 Continuing work to convert the hppa targets to multiarch partial.
7865
7866 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7867 method, now that hppa_push_dummy_frame has a conformant prototype.
7868 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7869 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7870 for the switch to multiarch partial.
7871
7872 2003-03-19 Kevin Buettner <kevinb@redhat.com>
7873
7874 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7875 when iss is issNull.
7876
7877 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7878
7879 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7880 NUM_REGS bounds check.
7881
7882 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7883
7884 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7885 * mips-tdep.c (gdb_assert.h): Include.
7886 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7887 (mips_register_name): Handle integer registers explicitly. Add
7888 bounds checking.
7889 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7890 (mips_lsi33k_reg_names): Don't list integer registers; they're
7891 handled by mips_register_name() now.
7892 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7893 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7894 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7895 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7896 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7897
7898 2003-03-18 Andrew Cagney <cagney@redhat.com>
7899
7900 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7901 a void pointer.
7902 * gdbtypes.h (print_scalar_formatted): Update declaration.
7903 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7904
7905 2003-03-18 J. Brobecker <brobecker@gnat.com>
7906
7907 * infrun.c (observer.h): Add #include.
7908 (normal_stop): Add call to observer_notify_normal_stop.
7909 * Makefile.in (infrun.o): Add dependency on observer.h.
7910
7911 2003-03-18 J. Brobecker <brobecker@gnat.com>
7912
7913 Continuing work to convert the hppa targets to multiarch partial.
7914 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7915 parameter. Reformat comment.
7916 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7917 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7918 to match new profile.
7919
7920 2003-03-18 J. Brobecker <brobecker@gnat.com>
7921
7922 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7923 appear to be working in any case.
7924
7925 2003-03-18 J. Brobecker <brobecker@gnat.com>
7926
7927 * observer.c (observer_test_first_observer): New static variable.
7928 (observer_test_second_observer): Likewise.
7929 (observer_test_third_observer): Likewise.
7930 (observer_test_first_notification_function): New static function.
7931 (observer_test_second_notification_function): Likewise.
7932 (observer_test_third_notification_function): Likewise.
7933
7934 2003-03-17 J. Brobecker <brobecker@gnat.com>
7935
7936 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7937 * somsolib.c (gdb_assert.h): Likewise.
7938 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7939 (somsolib.o): Likewise.
7940
7941 2003-03-17 Andrew Cagney <cagney@redhat.com>
7942
7943 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7944 BFD. Simplify setting of di.endian.
7945
7946 2003-03-17 Andrew Cagney <cagney@redhat.com>
7947
7948 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7949 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7950
7951 From Elena Zannoni <ezannoni@redhat.com>
7952 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7953 vector and floating-point parameters.
7954 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7955 convention.
7956 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7957
7958 2003-03-17 Fernando Nasser <fnasser@redhat.com>
7959
7960 * MAINTAINERS: Remove my name from several maintainership roles.
7961
7962 2003-03-17 Andrew Cagney <cagney@redhat.com>
7963
7964 Fix frame off-by-one bug.
7965 * frame-unwind.h (frame_this_id_ftype): Replace
7966 frame_unwind_id_ftype.
7967 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7968 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7969 with "prev_register".
7970 * frame-unwind.c (frame_unwind_find_by_pc): Return
7971 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7972 comment.
7973 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7974 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7975 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7976 (dummy_frame_unwind): Update.
7977 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7978 sentinel_frame_register_unwind.
7979 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7980 (sentinel_frame_unwinder): Update.
7981 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7982 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7983 * frame.c (create_sentinel_frame): Update. Initialize
7984 "prologue_cache" instead of "unwind_cache".
7985 (frame_register_unwind): Call this frame's prev_register with the
7986 next frame and this frame's prologue cache.
7987 (get_prev_frame): Simplify. Always call prev frame's this_id with
7988 this frame and prev frame's prologue cache. Document that this
7989 call is shifted one to the left when compared to the
7990 frame_register_unwind call.
7991 (legacy_saved_regs_prev_register): Replace
7992 frame_saved_regs_register_unwind.
7993 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7994 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7995 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7996 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7997 (d10v_frame_unwind): Update.
7998 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7999 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8000 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8001 "saved_regs" with "this_saved_regs".
8002
8003 2003-03-16 Andrew Cagney <cagney@redhat.com>
8004
8005 * frame.c (frame_pop): Don't call target_store_registers. Fix
8006 problem reported by Mark Kettenis.
8007
8008 2003-03-16 Mark Kettenis <kettenis@gnu.org>
8009
8010 * i386-tdep.c (i386_register_type): Renamed from
8011 i386_register_virtual_type. Adjust function signature.
8012 (i386_gdbarch_init): Set register_type instead of
8013 deprecated_max_register_raw_size,
8014 deprecated_max_register_virtual_size and register_virtual_type.
8015
8016 2003-03-14 Andrew Cagney <cagney@redhat.com>
8017
8018 * frame.c (get_prev_frame): When a legacy frame, always call
8019 legacy_get_prev_frame. Simplify unwind code using assumption that
8020 the unwinder is new.
8021 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8022 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8023 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8024
8025 2003-03-14 Andrew Cagney <cagney@redhat.com>
8026
8027 * frame.c (get_saved_register): Delete function.
8028 * frame.h (get_saved_register): Delete declaration.
8029 * xstormy16-tdep.c: Update comment.
8030 * regcache.h: Update comments.
8031 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8032 get_saved_register and extract_address, use
8033 frame_read_unsigned_register.
8034 (sparc_frame_saved_pc): Ditto.
8035 (sparc_get_saved_register): Instead of get_saved_register, use
8036 frame_register.
8037 (sparc_pop_frame): Ditto.
8038 * findvar.c: Update comments.
8039 (value_of_register): Call frame_register instead of
8040 get_saved_register.
8041 (value_from_register): Ditto.
8042 * config/sparc/tm-sparc.h: Update comment.
8043 * breakpoint.c: Update comment.
8044
8045 2003-03-14 Andrew Cagney <cagney@redhat.com>
8046
8047 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8048 GET_SAVED_REGISTER.
8049 * gdbarch.h, gdbarch.c: Re-generate.
8050 * frame.h: Update comments.
8051 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8052 * x86-64-tdep.c (x86_64_init_abi): Update.
8053 * sparc-tdep.c (sparc_gdbarch_init): Update.
8054 * sh-tdep.c (sh_gdbarch_init): Update.
8055 * mips-tdep.c (mips_gdbarch_init): Update.
8056 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8057 * cris-tdep.c (cris_gdbarch_init): Update.
8058 * ia64-tdep.c (ia64_gdbarch_init): Update.
8059 * frame.c (frame_register): Update.
8060 (get_saved_register): Update.
8061 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8062
8063 2003-03-13 Andrew Cagney <cagney@redhat.com>
8064
8065 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8066 * gdbarch.h, gdbarch.c: Regenerate.
8067 * valops.c (hand_function_call): Update comment.
8068 * stack.c (return_command): Update comment.
8069 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8070 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8071 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8072 * x86-64-tdep.c (x86_64_init_abi): Update.
8073 * vax-tdep.c (vax_gdbarch_init): Update.
8074 * v850-tdep.c (v850_gdbarch_init): Update.
8075 * sparc-tdep.c (sparc_gdbarch_init): Update.
8076 * sh-tdep.c (sh_gdbarch_init): Update.
8077 * s390-tdep.c (s390_gdbarch_init): Update.
8078 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8079 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8080 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8081 * mips-tdep.c (mips_gdbarch_init): Update.
8082 * mcore-tdep.c (mcore_gdbarch_init): Update.
8083 * m68k-tdep.c (m68k_gdbarch_init): Update.
8084 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8085 * ia64-tdep.c (ia64_gdbarch_init): Update.
8086 * i386-tdep.c (i386_gdbarch_init): Update.
8087 * hppa-tdep.c (hppa_gdbarch_init): Update.
8088 * h8300-tdep.c (h8300_gdbarch_init): Update.
8089 * frv-tdep.c (frv_gdbarch_init): Update.
8090 * cris-tdep.c (cris_gdbarch_init): Update.
8091 * avr-tdep.c (avr_gdbarch_init): Update.
8092 * arm-tdep.c (arm_gdbarch_init): Update.
8093 * alpha-tdep.c (alpha_gdbarch_init): Update.
8094
8095 2003-03-13 Andrew Cagney <cagney@redhat.com>
8096
8097 * frame.c (legacy_frame_p): New function.
8098 (get_prev_frame): Use legacy_frame_p.
8099 * frame.h (legacy_frame_p): Declare.
8100
8101 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8102
8103 * MAINTAINERS (write after approval): Alphabetically
8104 listing corrected.
8105
8106 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8107
8108 * MAINTAINERS (write after approval): Add myself.
8109
8110 2003-03-12 Andrew Cagney <cagney@redhat.com>
8111
8112 * frame.c (get_prev_frame): Rename the frame parameter to
8113 "this_frame".
8114 (get_next_frame, legacy_get_prev_frame): Ditto.
8115
8116 2003-03-12 Andrew Cagney <cagney@redhat.com>
8117
8118 * frame.c (get_current_frame): Check target_has_registers before
8119 checking target_has_stack.
8120 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8121 instead of deprecated_selected_frame.
8122 * findvar.c (value_of_register): Pass "frame", not
8123 deprecated_selected_frame, to value_of_builtin_reg.
8124
8125 2003-03-12 Andrew Cagney <cagney@redhat.com>
8126
8127 * regcache.c (regcache_cooked_write_signed): New function.
8128 (regcache_cooked_write_unsigned): New function.
8129 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8130 (regcache_cooked_read_signed): Fix regnum in range assertion.
8131 * regcache.h (regcache_cooked_write_signed): Declare.
8132 (regcache_cooked_write_unsigned): Declare.
8133
8134 2003-03-12 Andrew Cagney <cagney@redhat.com>
8135
8136 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8137 * gdbarch.h, gdbarch.c: Re-generate.
8138 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8139 * x86-64-tdep.h: Update.
8140 * x86-64-tdep.c (x86_64_init_abi): Update.
8141 * v850-tdep.c (v850_gdbarch_init): Update.
8142 * sparc-tdep.c (sparc_gdbarch_init): Update.
8143 * sh-tdep.c (sh_gdbarch_init): Update.
8144 * s390-tdep.c (s390_gdbarch_init): Update.
8145 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8146 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8147 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8148 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8149 * mips-tdep.c (mips_gdbarch_init): Update.
8150 * mcore-tdep.c (mcore_gdbarch_init): Update.
8151 * m68k-tdep.c (m68k_gdbarch_init): Update.
8152 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8153 * ia64-tdep.c (ia64_gdbarch_init): Update.
8154 * i386-tdep.c (i386_gdbarch_init): Update.
8155 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8156 * hppa-tdep.c (hppa_gdbarch_init): Update.
8157 * h8300-tdep.c (h8300_gdbarch_init): Update.
8158 * frv-tdep.c (frv_gdbarch_init): Update.
8159 * cris-tdep.c (cris_gdbarch_init): Update.
8160 * avr-tdep.c (avr_gdbarch_init): Update.
8161 * arm-tdep.c (arm_gdbarch_init): Update.
8162 * alpha-tdep.c (alpha_gdbarch_init): Update.
8163 * sh-tdep.c (sh_init_extra_frame_info): Update.
8164 (sh64_init_extra_frame_info): Update.
8165 * ns32knbsd-nat.c (frame_num_args): Update.
8166 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8167 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8168 (xstormy16_frame_chain_valid): Update.
8169 * vax-tdep.c (vax_saved_pc_after_call): Update.
8170 * v850-tdep.c (v850_frame_chain): Update.
8171 (v850_pop_frame): Update.
8172 (v850_init_extra_frame_info): Update.
8173 * sparc-tdep.c (setup_arbitrary_frame): Update.
8174 * ns32k-tdep.c (umax_frame_num_args): Update.
8175 * s390-tdep.c (s390_pop_frame_regular): Update.
8176 * mn10300-tdep.c (mn10300_frame_chain): Update.
8177 (mn10300_pop_frame_regular): Update.
8178 (mn10300_init_extra_frame_info): Update.
8179 * mips-tdep.c (mips_init_frame_pc_first): Update.
8180 (mips_frame_chain): Update.
8181 (mips_pop_frame): Update.
8182 * mcore-tdep.c (mcore_frame_chain): Update.
8183 (mcore_pop_frame): Update.
8184 (mcore_init_extra_frame_info): Update.
8185 * arch-utils.c (init_frame_pc_default): Update.
8186 * m68k-tdep.c (isi_frame_num_args): Update.
8187 (delta68_frame_num_args): Update.
8188 (news_frame_num_args): Update.
8189 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8190 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8191 (alpha_frame_chain): Update.
8192 (alpha_pop_frame): Update.
8193 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8194 (hppa_init_extra_frame_info): Update.
8195 (hppa_frame_chain): Update.
8196 (hppa_frame_chain_valid): Update.
8197 * cris-tdep.c (cris_init_extra_frame_info): Update.
8198 * avr-tdep.c (avr_init_extra_frame_info): Update.
8199 * arm-tdep.c (arm_frame_chain_valid): Update.
8200 (arm_init_extra_frame_info): Update.
8201 (arm_pop_frame): Update.
8202 * frame.c (frame_pc_unwind): Update.
8203 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8204 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8205 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8206 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8207 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8208 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8209
8210 2003-03-12 Andrew Cagney <cagney@redhat.com>
8211
8212 Eliminate the need for POP_FRAME.
8213 * frame.c (do_frame_unwind_register): New function.
8214 (frame_pop): When no POP_FRAME, pop the frame using register
8215 unwind and a scratch regcache.
8216 (frame_saved_regs_pop): Delete function.
8217 (trad_frame_unwinder): Update.
8218 * d10v-tdep.c (d10v_frame_pop): Delete function.
8219 (d10v_frame_unwind): Update.
8220 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8221 (sentinel_frame_unwinder): Update.
8222 * dummy-frame.c (dummy_frame_pop): Delete function.
8223 (dummy_frame_unwind): Update.
8224 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8225 (struct frame_unwind): Update.
8226
8227 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8228
8229 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8230 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8231 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8232 Do range checks on register number obtained from debugging info.
8233 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8234 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8235 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8236 mapping function.
8237 (do_fp_register_row): Fix typo which caused double type to be
8238 used when attempting to unpack a float.
8239
8240 2003-03-11 J. Brobecker <brobecker@gnat.com>
8241
8242 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8243
8244 2003-03-11 Andrew Cagney <cagney@redhat.com>
8245
8246 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8247 frame. Problem found by Corinna Vinschen.
8248
8249 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8250
8251 * doublest.c (floatformat_from_length): Accept also
8252 the real size of 'long double' type.
8253
8254 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
8255
8256 From Klee Dienes <kdienes@apple.com>:
8257 * breakpoint.c (bpstat_copy): Copy the command lines as well
8258 as the old value, to match what is freed in bpstat_clear.
8259
8260 2003-03-10 David Carlton <carlton@math.stanford.edu>
8261
8262 * minsyms.c (add_minsym_to_hash_table): Replace
8263 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8264 (compare_minimal_symbols, compact_minimal_symbols)
8265 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8266 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8267 of DEPRECATED_SYMBOL_MATCHES_NAME.
8268 (lookup_minimal_symbol_solib_trampoline): Ditto.
8269
8270 2003-03-10 Andrew Cagney <cagney@redhat.com>
8271
8272 * regcache.h (regcache_cooked_read_ftype): Define.
8273 (regcache_save, regcache_restore): Add a cooked_read parameter.
8274 * regcache.c (regcache_save, regcache_restore): Update.
8275 (do_cooked_read): New function.
8276 (regcache_cpy): Pass do_cooked_read to regcache_save and
8277 regcache_restore.
8278
8279 2003-03-10 Andrew Cagney <cagney@redhat.com>
8280
8281 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8282 * gdbarch.h, gdbarch.c: Re-generate.
8283 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8284 * x86-64-tdep.h: Update.
8285 * x86-64-tdep.c (x86_64_init_abi): Update.
8286 * v850-tdep.c (v850_gdbarch_init): Update.
8287 * sparc-tdep.c (sparc_gdbarch_init): Update.
8288 * sh-tdep.c (sh_gdbarch_init): Update.
8289 * s390-tdep.c (s390_gdbarch_init): Update.
8290 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8291 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8292 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8293 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8294 * mips-tdep.c (mips_gdbarch_init): Update.
8295 * mcore-tdep.c (mcore_gdbarch_init): Update.
8296 * m68k-tdep.c (m68k_gdbarch_init): Update.
8297 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8298 * ia64-tdep.c (ia64_gdbarch_init): Update.
8299 * i386-tdep.c (i386_gdbarch_init): Update.
8300 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8301 * hppa-tdep.c (hppa_gdbarch_init): Update.
8302 * h8300-tdep.c (h8300_gdbarch_init): Update.
8303 * frv-tdep.c (frv_gdbarch_init): Update.
8304 * cris-tdep.c (cris_gdbarch_init): Update.
8305 * avr-tdep.c (avr_gdbarch_init): Update.
8306 * arm-tdep.c (arm_gdbarch_init): Update.
8307 * alpha-tdep.c (alpha_gdbarch_init): Update.
8308 * sh-tdep.c (sh_init_extra_frame_info): Update.
8309 (sh64_init_extra_frame_info): Update.
8310 * ns32knbsd-nat.c (frame_num_args): Update.
8311 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8312 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8313 (xstormy16_frame_chain_valid): Update.
8314 * vax-tdep.c (vax_saved_pc_after_call): Update.
8315 * v850-tdep.c (v850_frame_chain): Update.
8316 (v850_pop_frame): Update.
8317 (v850_init_extra_frame_info): Update.
8318 * sparc-tdep.c (setup_arbitrary_frame): Update.
8319 * ns32k-tdep.c (umax_frame_num_args): Update.
8320 * s390-tdep.c (s390_pop_frame_regular): Update.
8321 * mn10300-tdep.c (mn10300_frame_chain): Update.
8322 (mn10300_pop_frame_regular): Update.
8323 (mn10300_init_extra_frame_info): Update.
8324 * mips-tdep.c (mips_init_frame_pc_first): Update.
8325 (mips_frame_chain): Update.
8326 (mips_pop_frame): Update.
8327 * mcore-tdep.c (mcore_frame_chain): Update.
8328 (mcore_pop_frame): Update.
8329 (mcore_init_extra_frame_info): Update.
8330 * arch-utils.c (init_frame_pc_default): Update.
8331 * m68k-tdep.c (isi_frame_num_args): Update.
8332 (delta68_frame_num_args): Update.
8333 (news_frame_num_args): Update.
8334 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8335 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8336 (alpha_frame_chain): Update.
8337 (alpha_pop_frame): Update.
8338 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8339 (hppa_init_extra_frame_info): Update.
8340 (hppa_frame_chain): Update.
8341 (hppa_frame_chain_valid): Update.
8342 * cris-tdep.c (cris_init_extra_frame_info): Update.
8343 * avr-tdep.c (avr_init_extra_frame_info): Update.
8344 * arm-tdep.c (arm_frame_chain_valid): Update.
8345 (arm_init_extra_frame_info): Update.
8346 (arm_pop_frame): Update.
8347 * frame.c (frame_pc_unwind): Update.
8348 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8349 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8350 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8351 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8352 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8353 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8354
8355 2003-03-10 Andrew Cagney <cagney@redhat.com>
8356
8357 * gdbarch.sh (gdbarch_unwind_pc): New method.
8358 * gdbarch.h, gdbarch.c: Regenerate.
8359 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8360 but use read_pc and FRAME_SAVED_PC as fall backs.
8361 (frame_saved_regs_pc_unwind): Delete function.
8362 (trad_frame_unwinder): Update.
8363 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8364 (struct frame_unwind): Update.
8365 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8366 (dummy_frame_unwind): Update.
8367 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8368 (sentinel_frame_unwinder): Update.
8369 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8370 (d10v_frame_unwind): Update.
8371 (d10v_unwind_pc): New function.
8372 (d10v_gdbarch_init): Set unwind_pc.
8373
8374 2003-03-10 Andrew Cagney <cagney@redhat.com>
8375
8376 * gdbarch.h: Re-generate.
8377
8378 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8379 PC.
8380 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8381 the PC register.
8382
8383 2003-03-08 Mark Kettenis <kettenis@gnu.org>
8384
8385 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8386
8387 2003-03-08 Andrew Cagney <cagney@redhat.com>
8388
8389 * cli-out.c: Update copyright.
8390 (cli_out_data): Define typedef. Use instead of ui_out_data.
8391
8392 2003-03-08 Andrew Cagney <cagney@redhat.com>
8393
8394 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8395 the result.
8396
8397 2003-03-07 Andrew Cagney <cagney@redhat.com>
8398
8399 * gdbarch.sh: Don't generate two macro definitions when an
8400 undefined macro taking no arguments.
8401 * gdbarch.h: Regenerate.
8402
8403 2002-03-07 Michal Ludvig <mludvig@suse.cz>
8404
8405 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8406 (x86_64_unwind_dummy_id): New functions.
8407 (x86_64_init_abi): Register these two new functions.
8408
8409 2003-03-07 Michal Ludvig <mludvig@suse.cz>
8410
8411 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8412 (x86_64_skip_prologue): Move prologue detection to
8413 separate function.
8414 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8415
8416 2003-03-05 Andrew Cagney <cagney@redhat.com>
8417
8418 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8419 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8420 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8421 to use unwind_dummy_id when a dummy frame.
8422 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8423 predicate.
8424 * gdbarch.h, gdbarch.c: Regneerate.
8425
8426 2003-03-05 Andrew Cagney <cagney@redhat.com>
8427
8428 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8429 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8430 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8431 values.
8432
8433 2003-03-05 Andrew Cagney <cagney@redhat.com>
8434
8435 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8436 (struct d10v_unwind_cache): Delete field "frameless". Replace
8437 "next_addr" with "sp_offset". Add "r11_offset".
8438 (d10v_frame_unwind_cache): Update.
8439 (prologue_find_regs): Update. When "mv r11, sp", save the
8440 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8441 RN was saved in r11_offset.
8442
8443 2003-03-05 Andrew Cagney <cagney@redhat.com>
8444
8445 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8446 cached PC value in the next frame.
8447
8448 2003-03-05 Andrew Cagney <cagney@redhat.com>
8449
8450 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8451 "id_unwind_cache" with "id".
8452 (frame_id_unwind): Delete declaration.
8453 * frame.c (frame_id_unwind): Delete function.
8454 (get_prev_frame): Call the frame id unwind method directly. Store
8455 the returned next frame's ID value in NEXT_FRAME. Note that there
8456 is a problem with the wrong unwind ID being called with the wrong
8457 unwind cache.
8458
8459 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8460
8461 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8462
8463 2003-03-05 James Ingham <jingham@apple.com>
8464 Daniel Jacobowitz <drow@mvista.com>
8465
8466 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8467 (auto_cp_abi): New variable.
8468 (current_cp_abi, num_cp_abis): Make static.
8469 (CP_ABI_MAX): Define.
8470 (cp_abis): Turn into an array.
8471 (value_virtual_fn_field): Fix formatting.
8472 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8473 takes a pointer.
8474 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8475 (list_cp_abis, _initialize_cp_abi): New functions.
8476 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8477 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8478 switch_to_cp_abi. Update prototype for register_cp_abi.
8479 * Makefile.in (cp-abi.o): Update dependencies.
8480 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8481 instead of switch_to_cp_abi.
8482 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8483 register_cp_abi.
8484 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8485 register_cp_abi.
8486 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8487
8488 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8489
8490 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8491 * dwarf2loc.c: Include "regcache.h".
8492 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8493 register_size.
8494 * Makefile.in (dwarf2loc.o): Update dependencies.
8495
8496 2003-03-04 Theodore A. Roth <troth@openavr.org>
8497
8498 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8499 number of io registers reported by remote target is not a multiple of
8500 step.
8501
8502 2003-03-04 David Carlton <carlton@math.stanford.edu>
8503
8504 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8505 (lookup_symbol_aux_psymtabs): Update call to
8506 lookup_partial_symbol.
8507 (lookup_transparent_type, find_main_psymtab)
8508 (make_symbol_overload_list): Ditto.
8509
8510 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8511
8512 * MAINTAINERS (Write after approval): Update my email address.
8513
8514 2003-03-03 Andrew Cagney <cagney@redhat.com>
8515
8516 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8517 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8518 predicate. Replace MAX_REGISTER_RAW_SIZE.
8519 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8520 MAX_REGISTER_VIRTUAL_SIZE.
8521 * regcache.c (legacy_max_register_raw_size): New function.
8522 (legacy_max_register_virtual_size): New function.
8523 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8524 (MAX_REGISTER_RAW_SIZE): Define.
8525 (legacy_max_register_raw_size): Declare.
8526 (legacy_max_register_virtual_size): Declare.
8527 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8528 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8529 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8530 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8531 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8532 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8533 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8534 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8535 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8536 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8537 * vax-tdep.c (vax_gdbarch_init): Update.
8538 * v850-tdep.c (v850_gdbarch_init): Update.
8539 * sparc-tdep.c (sparc_gdbarch_init): Update.
8540 * sh-tdep.c (sh_gdbarch_init): Update.
8541 * s390-tdep.c (s390_gdbarch_init): Update.
8542 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8543 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8544 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8545 * mips-tdep.c (mips_gdbarch_init): Update.
8546 * mcore-tdep.c (mcore_gdbarch_init): Update.
8547 * m68k-tdep.c (m68k_gdbarch_init): Update.
8548 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8549 * ia64-tdep.c (ia64_gdbarch_init): Update.
8550 * i386-tdep.c (i386_gdbarch_init): Update.
8551 * hppa-tdep.c (hppa_gdbarch_init): Update.
8552 * h8300-tdep.c (h8300_gdbarch_init): Update.
8553 * frv-tdep.c (frv_gdbarch_init): Update.
8554 * cris-tdep.c (cris_gdbarch_init): Update.
8555 * avr-tdep.c (avr_gdbarch_init): Update.
8556 * arm-tdep.c (arm_gdbarch_init): Update.
8557 * alpha-tdep.c (alpha_gdbarch_init): Update.
8558 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8559 max_register_raw_size or max_register_virtual_size.
8560
8561 2003-03-03 David Carlton <carlton@math.stanford.edu>
8562
8563 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8564 SYMBOL_MATCHES_NAME, add comment.
8565 (SYMBOL_MATCHES_NATURAL_NAME): New.
8566 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8567 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8568 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8569 * symtab.c (lookup_partial_symbol): Use
8570 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8571 unhelpful comment.
8572 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8573 SYMBOL_MATCHES_NAME.
8574 Fix for PR c++/33.
8575
8576 2003-03-03 David Carlton <carlton@math.stanford.edu>
8577
8578 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8579 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8580 by regexp matching against SYMBOL_NATURAL_NAME.
8581
8582 2003-03-03 David Carlton <carlton@math.stanford.edu>
8583
8584 * linespec.c (find_method): Extract code into collect_methods.
8585 (collect_methods): New.
8586
8587 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8588
8589 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8590 get_frame_base.
8591
8592 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8593 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8594
8595 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8596
8597 * arch-utils.c (generic_register_byte): Fix to use the loop index
8598 and not regnum when summing the size of all registers up to regnum.
8599
8600 2003-03-01 Andrew Cagney <cagney@redhat.com>
8601
8602 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8603 FRAME_INIT_SAVED_REGS.
8604 * gdbarch.h, gdbarch.c: Regenerate.
8605 * stack.c (frame_info): Update.
8606 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8607 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8608 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8609 * ns32k-tdep.c (ns32k_pop_frame): Update.
8610 * mips-tdep.c (mips_pop_frame): Update.
8611 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8612 * ia64-tdep.c (ia64_frame_chain): Update.
8613 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8614 (ia64_frameless_function_invocation): Update.
8615 (ia64_init_extra_frame_info): Update.
8616 (ia64_pop_frame_regular): Update.
8617 * frame.h (struct frame_info): Update comment.
8618 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8619 * frame.c (frame_saved_regs_register_unwind): Update.
8620 (frame_saved_regs_register_unwind): Update.
8621 (deprecated_generic_get_saved_register): Update.
8622 * cris-tdep.c: Update comment.
8623 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8624 Rename macro.
8625 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8626 * x86-64-tdep.c (x86_64_init_abi): Update.
8627 * vax-tdep.c (vax_gdbarch_init): Update.
8628 * v850-tdep.c (v850_gdbarch_init): Update.
8629 * sparc-tdep.c (sparc_gdbarch_init): Update.
8630 * sh-tdep.c (sh_gdbarch_init): Update.
8631 * s390-tdep.c (s390_gdbarch_init): Update.
8632 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8633 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8634 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8635 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8636 * mips-tdep.c (mips_gdbarch_init): Update.
8637 * mcore-tdep.c (mcore_gdbarch_init): Update.
8638 * m68k-tdep.c (m68k_gdbarch_init): Update.
8639 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8640 * ia64-tdep.c (ia64_gdbarch_init): Update.
8641 * i386-tdep.c (i386_gdbarch_init): Update.
8642 * frv-tdep.c (frv_gdbarch_init): Update.
8643 * avr-tdep.c (avr_gdbarch_init): Update.
8644 * arm-tdep.c (arm_gdbarch_init): Update.
8645 * alpha-tdep.c (alpha_gdbarch_init): Update.
8646
8647 2003-03-01 Andrew Cagney <cagney@redhat.com>
8648
8649 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8650 option enum and switch. When no windows, set the interpreter to
8651 INTERP_CONSOLE.
8652
8653 2003-03-01 Andrew Cagney <cagney@redhat.com>
8654
8655 * main.c (captured_main): Replace magic option characters with an
8656 enum.
8657
8658 2003-03-01 Andrew Cagney <cagney@redhat.com>
8659
8660 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8661 INIT_EXTRA_FRAME_INFO.
8662 * gdbarch.h, gdbarch.c: Regenerate.
8663 * arm-tdep.c: Update comments.
8664 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8665 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8666 * frame.h, avr-tdep.c: Ditto.
8667 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8668 (create_new_frame, legacy_get_prev_frame): Ditto.
8669 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8670 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8671 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8672 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8673 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8674 * v850-tdep.c (v850_gdbarch_init): Ditto.
8675 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8676 * sh-tdep.c (sh_gdbarch_init): Ditto.
8677 * s390-tdep.c (s390_gdbarch_init): Ditto.
8678 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8679 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8680 * mips-tdep.c (mips_gdbarch_init): Ditto.
8681 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8682 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8683 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8684 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8685 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8686 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8687 * frv-tdep.c (frv_gdbarch_init): Ditto.
8688 * cris-tdep.c (cris_gdbarch_init): Ditto.
8689 * avr-tdep.c (avr_gdbarch_init): Ditto.
8690 * arm-tdep.c (arm_gdbarch_init): Ditto.
8691 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8692 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8693
8694 2003-03-01 Andrew Cagney <cagney@redhat.com>
8695
8696 * gdbarch.sh (register_type): New function with predicate.
8697 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8698 * gdbarch.h, gdbarch.c: Re-generate.
8699 * arch-utils.c (generic_register_byte): Use generic_register_size.
8700 (generic_register_size): When available, use
8701 gdbarch_register_type.
8702 * regcache.c (init_regcache_descr): When available, initialize the
8703 register type array using gdbarch_register_type. If the
8704 architecture supplies gdbarch_register_type, do not use the legacy
8705 regcache layout.
8706 * d10v-tdep.c (d10v_register_type): Replace
8707 d10v_register_virtual_type.
8708 (d10v_gdbarch_init): Set register_type instead of
8709 register_virtual_type.
8710
8711 2003-03-01 Andrew Cagney <cagney@redhat.com>
8712
8713 * Makefile.in (ax-gdb.o): Update dependencies.
8714 * ax-gdb.c: Include "regcache.h".
8715 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8716 * findvar.c (value_of_register): Ditto.
8717 * infcmd.c (default_print_registers_info): Ditto.
8718
8719 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8720
8721 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8722 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8723
8724 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8725
8726 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8727 of STREQ.
8728
8729 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8730
8731 * Makefile.in (dwarf2loc.o): Update dependencies.
8732 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8733 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8734 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8735 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8736 (locexpr_tracepoint_var_ref): New function.
8737 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8738
8739 2003-02-28 Andrew Cagney <cagney@redhat.com>
8740
8741 * regcache.c (register_size): New function.
8742 * regcache.h (register_size): Declare
8743 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8744 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8745
8746 2003-02-28 David Carlton <carlton@math.stanford.edu>
8747
8748 * linespec.c (decode_compound): Extract code into find_method.
8749 (find_method): New.
8750
8751 2003-02-28 J. Brobecker <brobecker@gnat.com>
8752
8753 * Makefile.in: Add rules to build and link in observer.o.
8754
8755 2003-02-27 J. Brobecker <brobecker@gnat.com>
8756
8757 * observer.c: Minor comments edits.
8758
8759 2003-02-27 J. Brobecker <brobecker@gnat.com>
8760
8761 * observer.h, observer.c: New file.
8762
8763 2003-02-27 Andrew Cagney <cagney@redhat.com>
8764
8765 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8766
8767 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8768
8769 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8770 (M6812_OP_STS_EXT): Likewise.
8771 (m6811_prologue): Use the above to recognize prologue.
8772 (m6812_prologue): Likewise.
8773
8774 2003-02-27 David Carlton <carlton@math.stanford.edu>
8775
8776 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8777 SYMBOL_PRINT_NAME.
8778 (compare_psymbols): Ditto.
8779 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8780
8781 2003-02-27 Michael Snyder <msnyder@redhat.com>
8782
8783 * f-lang.c (build_fortran_types): New function.
8784 (_initialize_f_language): Gdbarch-register built-in fortran types.
8785 * doublest.c (extract_floating): Fix warning text.
8786
8787 2003-02-27 Andrew Cagney <cagney@redhat.com>
8788
8789 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8790 predicate. Replaces PUSH_DUMMY_FRAME.
8791 * gdbarch.h, gdbarch.c: Regnerate.
8792 * valops.c (hand_function_call): Update. Call
8793 generic_push_dummy_frame directly.
8794 * vax-tdep.c (vax_gdbarch_init): Update.
8795 * sparc-tdep.c (sparc_gdbarch_init): Update.
8796 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8797 * m68k-tdep.c (m68k_gdbarch_init): Update.
8798 * hppa-tdep.c (hppa_gdbarch_init): Update.
8799 * alpha-tdep.c (alpha_gdbarch_init): Update.
8800 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8801 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8802 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8803 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8804 push_dummy_frame to generic_push_dummy_frame.
8805 * v850-tdep.c (v850_gdbarch_init): Ditto.
8806 * sh-tdep.c (sh_gdbarch_init): Ditto.
8807 * s390-tdep.c (s390_gdbarch_init): Ditto.
8808 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8809 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8810 * mips-tdep.c (mips_gdbarch_init): Ditto.
8811 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8812 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8813 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8814 * i386-tdep.c (i386_gdbarch_init): Ditto.
8815 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8816 * frv-tdep.c (frv_gdbarch_init): Ditto.
8817 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8818 * cris-tdep.c (cris_gdbarch_init): Ditto.
8819 * avr-tdep.c (avr_gdbarch_init): Ditto.
8820 * arm-tdep.c (arm_gdbarch_init): Ditto.
8821
8822 2003-02-26 Kevin Buettner <kevinb@redhat.com>
8823
8824 * mips-tdep.c (show_mips_abi): New function.
8825 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8826 command ``show mips abi''.
8827
8828 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8829
8830 From Elena Zannoni <ezannoni@redhat.com>
8831 * dbxread.c (process_one_symbol): Only record line 0 if one or
8832 more sline entries have been seen for the function.
8833
8834 2003-02-26 Michael Chastain <mec@shout.net>
8835
8836 * configure: Regenerate with autoconf 000227.
8837
8838 2003-02-26 Michael Chastain <mec@shout.net>
8839
8840 Close PR build/660.
8841 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8842 for old libc5/glibc.
8843 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8844
8845 2003-02-26 Kris Warkentin <kewarken@qnx.com>
8846
8847 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8848 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8849
8850 2003-02-26 Michael Chastain <mec@shout.net>
8851
8852 * configure.in: New variable HAVE_UINTPTR_T.
8853 * configure, config.in: Regenerated.
8854
8855 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
8856
8857 Fix PR build/1097.
8858 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8859
8860 2003-02-25 Andrew Cagney <cagney@redhat.com>
8861
8862 * frame.c (get_prev_frame): Add comment on check for
8863 inside_entry_func. Only check for inside_entry_file when not a
8864 dummy and not a sentinel. Check that the new frame is not inner
8865 to the old frame.
8866
8867 2003-02-25 Andrew Cagney <cagney@redhat.com>
8868
8869 * frame.c (frame_debug): New variable.
8870 (_initialize_frame): Add "set/show debug frame" command.
8871 (get_prev_frame): When frame_debug, print reason why unwind
8872 failed.
8873
8874 2003-02-25 Michael Chastain <mec@shout.net>
8875
8876 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8877 to avoid uintptr_t definition problems.
8878
8879 2003-02-25 David Carlton <carlton@math.stanford.edu>
8880
8881 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8882 (SYMBOL_LINKAGE_NAME): Ditto.
8883 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8884 SYMBOL_LINKAGE_NAME.
8885 (struct general_symbol_info): Expand comment.
8886 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8887 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8888 (SYMBOL_MATCHES_REGEXP): Ditto.
8889 * symtab.c (symbol_natural_name): New function.
8890 * objfiles.h: Replace all uses of SYMBOL_NAME by
8891 DEPRECATED_SYMBOL_NAME.
8892 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8893 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8894 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8895 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8896 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8897 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8898 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8899 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8900 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8901 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8902 * ada-exp.y: Ditto.
8903 * ada-exp.y: Update copyright.
8904 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8905 * cp-valprint.c: Ditto.
8906
8907 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8908
8909 * infptrace.c (detach): Do not flag error if ptrace detach fails
8910 and errno is set to ESRCH.
8911
8912 2003-02-24 Andrew Cagney <cagney@redhat.com>
8913
8914 * infptrace.c (udot_info): Change type of udot_off to long. Use
8915 paddr when printing udot_off's value.
8916
8917 2003-02-24 David Carlton <carlton@math.stanford.edu>
8918
8919 * symtab.c (make_symbol_overload_list): Only read in partial
8920 symtabs containing a matching partial symbol.
8921
8922 2003-02-24 David Carlton <carlton@math.stanford.edu>
8923
8924 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8925 do the comparison, not strcmp.
8926 * symfile.c (compare_psymbols): Ditto.
8927 * defs.h: Declare strcmp_iw_ordered.
8928 * utils.c (strcmp_iw_ordered): New function.
8929
8930 2003-02-24 Jim Blandy <jimb@redhat.com>
8931
8932 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8933 support, shared libs): Remove my name from here, to better reflect
8934 reality.
8935
8936 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8937
8938 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8939 (target_ops): Add to_have_continuable_watchpoint.
8940 * target.c (update_current_target): Add INHERIT line for
8941 to_have_continuable_watchpoint.
8942 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8943 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8944 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8945 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8946
8947 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
8948
8949 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8950 maintainership.
8951
8952 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8953
8954 * solib.c (solib_open): Call target defined search function after
8955 failing with solib-search-path.
8956 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8957 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8958
8959 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8960
8961 * MAINTAINERS: Add myself to Write After section.
8962
8963 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8964
8965 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8966
8967 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8968
8969 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8970 (m68hc11_add_reggroups): New function.
8971 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8972 (m68hc11_gdbarch_init): Install the reggroups.
8973 (_initialize_m68hc11_tdep): Initialize them.
8974
8975 2003-02-21 James E Wilson <wilson@tuliptree.org>
8976
8977 * MAINTAINERS: Update my email address.
8978
8979 2003-02-21 David Carlton <carlton@math.stanford.edu>
8980
8981 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8982
8983 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
8984
8985 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8986 * symtab.h: Add opaque declarations of struct axs_value and
8987 struct agent_expr.
8988 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8989 (struct location_funcs): New type.
8990 (struct symbol): Add "loc" to aux_value.
8991 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8992 * dwarf2read.c: Include "dwarf2expr.h".
8993 (dwarf2_symbol_mark_computed): New function.
8994 (read_func_scope): Use it.
8995 (var_decode_location): New function.
8996 (new_symbol): Use it.
8997 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8998
8999 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9000 (dwarf2expr_h, dwarf2loc_h): New variables.
9001 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9002 (dwarf2expr.o, dwarf2loc.o): New rules.
9003 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9004 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9005 LOC_COMPUTED_ARG.
9006 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9007 * m2-exp.y (yylex): Likewise.
9008 * printcmd.c (address_info, print_frame_args): Likewise.
9009 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9010 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9011 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9012 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9013 * symtab.c (lookup_block_symbol): Likewise.
9014
9015 2003-02-20 Adam Fedor <fedor@gnu.org>
9016
9017 * symtab.h: Remove objc_specific struct
9018 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9019 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9020 Have language_objc use cplus_specific struct.
9021
9022 2003-02-20 Tom Tromey <tromey@redhat.com>
9023
9024 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9025 TYPE_NAME, when printing a String value. PR java/1075.
9026
9027 2003-02-20 Adam Fedor <fedor@gnu.org>
9028
9029 * objc-lang.h (find_methods): Remove declaration.
9030 * objc-lang.c (find_methods): Make static.
9031
9032 2003-02-20 Christopher Faylor <cgf@redhat.com>
9033
9034 * win32-nat.c (get_image_name): Check return value from
9035 ReadProcessMemory.
9036 (child_xfer_memory): Ditto.
9037
9038 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
9039
9040 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9041 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9042 '${exec_prefix}' (in addition to the expansion thereof) as
9043 relocatable.
9044 * configure: Rebuilt.
9045
9046 2003-02-20 David Carlton <carlton@math.stanford.edu>
9047
9048 * symtab.c (search_symbols): Revert the search_symbols part of my
9049 2002-12-23 patch. Add comment.
9050
9051 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9052
9053 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9054 * dbxread.c (elfstab_build_psymtabs): Don't call
9055 install_minimal_symbols.
9056 (stabsect_build_psymtabs): Likewise.
9057 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9058 earlier.
9059 * somread.c (som_symfile_read): Call install_minimal_symbols
9060 and do_cleanups earlier.
9061 * nlmread.c (nlm_symfile_read): Likewise.
9062 * mdebugread.c (elfmdebug_build_psymtabs): Call
9063 install_minimal_symbols and make appropriate cleanups.
9064
9065 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9066
9067 * solib.c (reload_shared_libraries): New function.
9068 (_initialize_solib): Add callbacks for ``set solib-search-path''
9069 and ``set solib-absolute-prefix''.
9070
9071 2003-02-20 David Carlton <carlton@math.stanford.edu>
9072
9073 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9074 expand comment.
9075 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9076 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9077 * ada-typeprint.c (ada_typedef_print): Ditto.
9078 * ax-gdb.c (gen_var_ref): Ditto.
9079 * breakpoint.c (print_one_breakpoint): Ditto.
9080 * buildsym.c (finish_block): Ditto.
9081 * c-valprint.c (c_val_print): Ditto.
9082 * expprint.c (print_subexp): Ditto.
9083 * findvar.c (locate_var_value): Ditto.
9084 * infcmd.c (jump_command): Ditto.
9085 * linespec.c (decode_line_2, decode_compound): Ditto.
9086 * maint.c (maintenance_translate_address): Ditto.
9087 * objc-lang.c (compare_selectors, compare_classes): Ditto.
9088 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9089 Ditto.
9090 * p-valprint.c (pascal_val_print): Ditto.
9091 * stabsread.c (define_symbol): Ditto.
9092 * stack.c (print_frame, frame_info, print_block_frame_locals)
9093 (print_frame_arg_vars, return_command): Ditto.
9094 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9095 * symmisc.c (print_symbol): Ditto.
9096 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9097 (compare_search_syms, print_symbol_info, print_msymbol_info)
9098 (rbreak_command): Ditto.
9099 * tracepoint.c (tracepoints_info): Ditto.
9100 * typeprint.c (typedef_print): Ditto.
9101 * valops.c (value_of_variable, hand_function_call): Ditto.
9102 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9103 * ada-typeprint.c: Update Copyright.
9104 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9105 * tracepoint.c, cli/cli-cmds.c: Ditto.
9106
9107 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9108
9109 * frame.c (generic_unwind_get_saved_register): Make non-static.
9110 * frame.h (generic_unwind_get_saved_register): Declare.
9111 * mips-tdep.c (read_next_frame_reg): Fetch register from
9112 current regcache when frame is NULL.
9113 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9114 that must be NULL.
9115 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9116 instead of frame_register_unwind().
9117
9118 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9119
9120 * remote-sim.c (gdbsim_insert_breakpoint)
9121 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9122 code.
9123
9124 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9125
9126 * remote.c (_initialize_remote): Add commands "set/show remote
9127 hardware-watchpoint-limit" and "set/show remote
9128 hardware-breakpoint-limit".
9129 (remote_hw_watchpoint_limit): Initialize to -1.
9130 (remote_hw_breakpoint_limit): Ditto.
9131 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9132
9133 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9134
9135 * coff-pe-read.c: New file - support reading of minimal symbols from a
9136 portable executable using the export table.
9137 * coff-pe-read.h: New file.
9138 * coffread.c: Include coff-pe-read.h.
9139 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9140 debugging symbols found.
9141 * Makefile.in (SFILES): Add coff-pe-read.o.
9142 (coff_pe_read_h): Define.
9143 (COMMON_OBS): Add coff-pe-read.o.
9144 (coffread.o): Add coff_pe_read_h dependency.
9145 (coff-pe-read.o): New target.
9146
9147 2003-02-19 David Carlton <carlton@math.stanford.edu>
9148
9149 * Makefile.in (SFILES): Add block.c.
9150 (block_h): New.
9151 (COMMON_OBS): Add block.o.
9152 (block.o): New.
9153 (x86-64-tdep.o): Add $(block_h).
9154 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9155 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9156 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9157 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9158 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9159 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9160 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9161 * value.h: Add opaque declaration for struct block.
9162 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9163 * ada-lang.h: Ditto.
9164 * x86-64-tdep.c: #include "block.h"
9165 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9166 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9167 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9168 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9169 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9170 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9171 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9172 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9173 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9174 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9175 * symtab.c (block_function): Ditto.
9176 (contained_in): Ditto.
9177 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9178 block.h. Add opaque declaration for struct block.
9179 * symtab.h: Move block_function and contained_in declarations to
9180 block.h. Add opaque declarations for struct block, struct
9181 blockvector.
9182 (struct block): Move to block.h.
9183 (struct blockvector): Ditto.
9184 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9185 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9186 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9187 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9188 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9189 Ditto.
9190 * block.c: New file.
9191 * block.h: New file.
9192
9193 2003-02-19 Theodore A. Roth <troth@openavr.org>
9194
9195 * avr-tdep.c (avr_extract_return_value): Remove function.
9196 (avr_store_return_value): Remove function.
9197 (avr_extract_struct_value_address): Remove function.
9198 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9199
9200 2003-02-19 Andrew Cagney <ac131313@redhat.com>
9201
9202 * rs6000-tdep.c: Include "gdb_assert.h".
9203 (registers_e500): Add "acc" and "spefscr".
9204 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9205 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9206 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9207 really is "r0".
9208 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9209
9210 2003-02-18 Keith Seitz <keiths@redhat.com>
9211
9212 * Makefile.in: Add gdbtk-interps.c.
9213
9214 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9215
9216 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9217 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9218
9219 2003-02-18 Andrew Cagney <cagney@redhat.com>
9220
9221 * symtab.h (struct objfile): Add opaque declaration.
9222
9223 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
9224
9225 From Jim Ingham <jingham@apple.com>:
9226 * dbxread.c (process_one_symbol): Use last_function_start rather
9227 than function_start_offset to find the real beginning of the
9228 current function. The latter is just the text section offset on
9229 some systems, the former is always the real function start.
9230
9231 2003-02-17 Andrew Cagney <cagney@redhat.com>
9232
9233 * configure.in: Revert ${target} != ${host}.
9234
9235 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9236
9237 * configure.in (Makefile): Use the test ${target} != ${host},
9238 instead of the absence of the "nm.h" file, to determine of the
9239 configuration non-native.
9240 * configure: Regenerate.
9241
9242 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
9243
9244 From Brian Ford <ford@vss.fsi.com>
9245
9246 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9247 conditionalize tui_active test.
9248 (lookup_cmd_1): Ditto.
9249
9250 2003-02-14 Mark Kettenis <kettenis@gnu.org>
9251
9252 * configure.in: Add check for _etext.
9253 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9254 available.
9255 * config.in, configure: regenerated.
9256
9257 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
9258
9259 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9260
9261 2003-02-14 Andrew Cagney <ac131313@redhat.com>
9262
9263 * main.c (tui_version): Delete variable.
9264 (captured_main): When --tui, set interpreter_p to "tui" instead of
9265 enabling tui_version.
9266 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9267 tui_version.
9268 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9269 * cli/cli-cmds.c (disassemble_command): Ditto.
9270 * defs.h (tui_version): Delete declaration.
9271 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9272 (tui-interp.o): Add rules.
9273 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9274
9275 2003-02-14 Christopher Faylor <cgf@redhat.com>
9276
9277 * win32-nat.c (register_loaded_dll): Correctly set address range for
9278 just-loaded dll.
9279
9280 2003-02-12 Jason Molenda (jmolenda@apple.com)
9281
9282 * symmisc.c (print_objfile_statistics): Include information about
9283 the number of psymtabs and symtabs in each object file.
9284
9285 2003-02-13 Keith R Seitz <keiths@redhat.com>
9286
9287 * main.h (struct captured_main_args): Add interpreter_p.
9288 * main.c (captured_main): Initialize interpreter_p from context.
9289 * gdb.c (main): Set interpreter_p argument.
9290 * Makefile.in (gdb.o): Add dependency for interps.h.
9291
9292 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9293
9294 * event-top.c (cli_command_loop): Delete declaration.
9295 (_initialize_event_loop): Delete function setting event_loop_hook.
9296 * event-top.h (cli_command_loop): Declare. Update copyright.
9297 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9298 * interps.c (current_interp_command_loop): When event_loop_p, call
9299 cli_command_loop.
9300
9301 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9302
9303 * interps.h (interp_command_loop_ftype): Change return type to
9304 void.
9305
9306 2003-02-12 Michal Ludvig <mludvig@suse.cz>
9307
9308 * x86-64-tdep.c (x86_64_extract_return_value)
9309 (x86_64_store_return_value): Use regcache instead of regbuf.
9310 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9311 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9312
9313 2003-02-11 Andrew Cagney <ac131313@redhat.com>
9314
9315 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9316 * aclocal.m4: Regenerate.
9317 * configure: Regenerate.
9318
9319 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9320 TCL_LD_SEARCH_FLAGS.
9321
9322 2003-02-10 Michal Ludvig <mludvig@suse.cz>
9323
9324 * dwarf2cfi.c: Reindented.
9325
9326 2003-02-09 Andrew Cagney <ac131313@redhat.com>
9327
9328 * interps.c (clear_interpreter_hooks): Convert function definition
9329 to ISO C.
9330
9331 2003-02-07 David Carlton <carlton@math.stanford.edu>
9332
9333 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9334
9335 2003-02-07 Kevin Buettner <kevinb@redhat.com>
9336
9337 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9338 (struct type): ...to here.
9339 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9340 field.
9341 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9342 (replace_type): Set length on all type variants for a given type.
9343
9344 2003-02-07 Andrew Cagney <ac131313@redhat.com>
9345
9346 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9347 <sys/stat.h>.
9348 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9349
9350 2003-02-06 Andrew Cagney <ac131313@redhat.com>
9351
9352 * Makefile.in (symm-nat.o): Update dependencies.
9353 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9354 (lynx-nat.o, ia64-linux-nat.): Ditto.
9355 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9356 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9357 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9358
9359 * Makefile.in (inflow_h): Define.
9360 (procfs.o, inflow.o, procfs.o): Update dependencies.
9361 * inftarg.c (child_stop): Delete extern declaration of
9362 inferior_process_group. Include "inflow.h".
9363 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9364 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9365 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9366 (our_process_group, inferior_process_group): Extern declarations.
9367
9368 * procfs.c: Include "gdb_assert.h".
9369
9370 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9371 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9372 * jv-typeprint.c (java_type_print_base): Ditto.
9373 * typeprint.c (typedef_print): Eliminate STREQ.
9374 * cli/cli-script.c (define_command, define_command): Ditto.
9375 * main.c (captured_main): Ditto.
9376 * values.c (lookup_internalvar): Ditto.
9377 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9378 within `if' conditional.
9379 * linespec.c (decode_line_2): Ditto.
9380 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9381 (bfd_openw_with_cleanup): Ditto.
9382
9383 2003-02-07 Mark Kettenis <kettenis@gnu.org>
9384
9385 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9386 legacy_extract_return_value and store_return_value to
9387 legacy_return_value.
9388
9389 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9390
9391 * win32-nat.c (get_relocated_section_addrs): New function. Find
9392 section load addresses for symbol handling in relocated DLLs.
9393 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9394
9395 2003-02-05 Fred Fish <fnf@intrinsity.com>
9396
9397 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9398 '=' and '!='.
9399 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9400 with '&' and '=='.
9401 (angel_RDI_info): Ditto.
9402 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9403 with '&' and '!='.
9404 (threads_continue_all_with_signals): Ditto.
9405
9406 2003-02-05 Jim Ingham <jingham@apple.com>
9407 Keith Seitz <keiths@redhat.com>
9408 Elena Zannoni <ezannoni@redhat.com>
9409 Andrew Cagney <ac131313@redhat.com>
9410
9411 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9412 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9413 (SUBDIR_MI_OBS): Add "mi-interp.o".
9414 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9415 (SFILES): Add "interps.c".
9416 (COMMON_OBS): Add "interps.o".
9417 (interps_h, mi_main_h): Define.
9418 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9419 (mi-main.o, main.o, event-top.o): Update dependencies.
9420 * cli/cli-interp.c: New file.
9421 * interps.h, interps.c: New files.
9422 * top.c: (gdb_init): Don't install the default interpreter, handed
9423 by captured_main.
9424 * main.c: Include "interps.h".
9425 (interpreter_p): Note that it should malloc'ed.
9426 (captured_command_loop): Call current_interp_command_loop.
9427 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9428 xfree and xstrdup when updating interpreter_p. Install the
9429 default interpreter. Add hack to stop mi1's copyright notice
9430 being encoded.
9431 * event-top.h (gdb_setup_readline): Declare.
9432 (gdb_disable_readline): Declare.
9433 * event-top.c: Include "interps.h".
9434 (display_gdb_prompt): Call current_interp_display_prompt_p.
9435 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9436 gdb_stdlog, and gdb_stdtarg.
9437 (_initialize_event_loop): Don't call gdb_setup_readline.
9438 * cli-out.c (cli_out_set_stream): New function.
9439 * cli-out.h (cli_out_set_stream): Declare.
9440
9441 2003-02-06 Mark Kettenis <kettenis@gnu.org>
9442
9443 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9444 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9445 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9446 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9447 config/i386/i386v42mp.mt: Removed.
9448
9449 2003-02-05 Mark Kettenis <kettenis@gnu.org>
9450
9451 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9452 GDB_OSABI_SOLARIS.
9453
9454 2003-02-05 Michael Chastain <mec@shout.net>
9455
9456 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9457 2.12.1 and earlier versions.
9458
9459 2003-02-05 Andrew Cagney <ac131313@redhat.com>
9460
9461 Remove orphaned hosts, targets and files.
9462 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9463 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9464 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9465 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9466 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9467 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9468 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9469 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9470 * config/sparc/tm-sp64sim.h: Delete.
9471 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9472 hosts.
9473 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9474 mips*-dec-mach3* targets.
9475
9476 2003-02-04 Michael Chastain <mec@shout.net>
9477
9478 * NEWS: Fix typo: sepcifying -> specifying.
9479
9480 2003-02-04 Michael Chastain <mec@shout.net>
9481
9482 * dwarfread.c: Add documentation on the state of dwarf-1,
9483 looking towards obsoletion.
9484
9485 2003-02-03 Michael Chastain <mec@shout.net>
9486
9487 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9488 gdb/testsuite/gdb.c++/pr-1023.exp.
9489
9490 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9491
9492 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9493 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9494
9495 * utils.c (init_page_info): Delete reference to MPW in comments.
9496 * main.c (captured_main): Delete #ifdef MPW.
9497
9498 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9499
9500 * NEWS: Note that the m32r-*-elf* is obsolete.
9501 * monitor.c (monitor_expect): Obsolete reference to m32r.
9502 * configure.tgt: Mark m32r-*-elf* as obsolete.
9503 * MAINTAINERS: Mark m32k as obsolete.
9504 * m32r-rom.c: Obsolete file.
9505 * config/m32r/m32r.mt: Obsolete file.
9506 * config/m32r/tm-m32r.h: Obsolete file.
9507 * m32r-stub.c: Obsolete file.
9508 * m32r-tdep.c: Obsolete file.
9509
9510 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9511
9512 * NEWS: Mention that the z8k-zilog-none is obsolete.
9513 * MAINTAINERS: Mark z8k as obsolete.
9514 * configure.tgt: Obsolete the z8k-*-coff* target.
9515 * config/z8k/z8k.mt: Obsolete file.
9516 * config/z8k/tm-z8k.h: Obsolete file.
9517 * z8k-tdep.c: Obsolete file.
9518
9519 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9520
9521 * NEWS: Mention that the mn10200-elf is obsolete.
9522 * configure.tgt: Obsolete mn10200-*-* target.
9523 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9524 mention that the mn10200 is obsolete.
9525 * breakpoint.h: Ditto.
9526 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9527 * config/mn10200/mn10200.mt: Obsolete file.
9528 * config/mn10200/tm-mn10200.h: Obsolete file.
9529 * mn10200-tdep.c: Obsolete file.
9530
9531 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9532
9533 * MAINTAINERS: Mark h8500 as obsolete.
9534 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9535 * findvar.c (value_from_register): Ditto.
9536 * h8500-tdep.c: Mark file as obsolete.
9537 * config/h8500/h8500.mt: Ditto.
9538 * config/h8500/tm-h8500.h: Ditto.
9539 * NEWS: Mention that h8500 is obsolete.
9540
9541 2003-02-04 David Carlton <carlton@math.stanford.edu>
9542
9543 * objfiles.c (allocate_objfile): Always set name. Add comment at
9544 start of function.
9545 * jv-lang.c (get_dynamics_objfile): Add comment.
9546
9547 2003-02-04 David Carlton <carlton@math.stanford.edu>
9548
9549 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9550 * printcmd.c (build_address_symbolic): Replace uses of
9551 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9552 SYMBOL_NAME, and asm_demangle.
9553 Update copyright.
9554
9555 2003-02-04 David Carlton <carlton@math.stanford.edu>
9556
9557 * linespec.c (decode_compound): Extract code into
9558 lookup_prefix_sym.
9559 (lookup_prefix_sym): New function.
9560
9561 2003-02-04 David Carlton <carlton@math.stanford.edu>
9562
9563 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9564 FLOAT_COERCION_BADNESS.
9565 * gdbtypes.c (rank_one_type): Replace all uses of
9566 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9567
9568 2003-02-04 Jim Blandy <jimb@redhat.com>
9569
9570 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9571 section, let dwarf_macinfo_section point to it, not
9572 dwarf_loc_section.
9573
9574 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9575
9576 Pointed out by Anton Blanchard <anton@samba.org>.
9577 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9578 (ppc_linux_at_sigtramp_return_path): Use it.
9579
9580 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9581
9582 * defs.h (streq): Add prototype.
9583 * utils.c (streq): New function.
9584
9585 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9586 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9587 * mdebugread.c (new_symbol): Likewise.
9588 * stabsread.c (define_symbol): Likewise.
9589 * coffread.c (process_coff_symbol): Likewise.
9590 * dwarfread.c (new_symbol): Likewise.
9591
9592 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9593 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9594 here.
9595 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9596 SYMBOL_INIT_DEMANGLED_NAME.
9597 * objfiles.c: Include "hashtab.h".
9598 (allocate_objfile): Call htab_set_functions_ex for the
9599 demangled_names_hash.
9600 (free_objfile): Call htab_delete for the demangled_names_hash.
9601 * objfiles.h (struct htab): Add declaration.
9602 (struct objfile): Add demangled_names_hash.
9603 * symfile.c: Include "hashtab.h".
9604 (reread_symbols): Call htab_delete for the demangled_names_hash.
9605 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9606 SYMBOL_NAME in the bcache.
9607 * symtab.c: Include "hashtab.h". Update comments.
9608 (create_demangled_names_hash, symbol_set_names): New functions.
9609 (symbol_find_demangled_name): New function, broken out from
9610 symbol_init_demangled_names.
9611 (symbol_init_demangled_names): Use it.
9612 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9613 (SYMBOL_SET_NAMES): New macro.
9614 (symbol_set_names): Add prototype.
9615
9616 2003-02-03 Jim Blandy <jimb@redhat.com>
9617
9618 Use a single, consistent representation for an empty minimal
9619 symbol table in an objfile.
9620 * objfiles.c (terminate_minimal_symbol_table): New function.
9621 (allocate_objfile): Call it.
9622 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9623 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9624 non-NULL.
9625 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9626 objfile has minimal symbols, compare minimal_symbol_count to zero,
9627 instead of comparing msymbols with NULL.
9628 * objfiles.c (have_minimal_symbols): Same.
9629 * solib-sunos.c (solib_add_common_symbols): Call
9630 terminate_minimal_symbol_table.
9631 * symfile.c (reread_symbols): Same.
9632
9633 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9634
9635 * s390-tdep.c (s390_address_class_type_flags)
9636 (s390_address_class_type_flags_to_name)
9637 (s390_address_class_name_to_type_flags): New functions.
9638 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9639 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9640
9641 2003-02-03 Michael Snyder <msnyder@redhat.com>
9642
9643 * arm-tdep.c: Fix spell-o in comment.
9644
9645 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9646
9647 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9648 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9649 error messages to contain BFD filename.
9650
9651 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9652
9653 Fix PR gdb/742 gdb/743 gdb/877
9654 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9655 (do_mixed_source_and_assembly): Use
9656 make_cleanup_ui_out_tuple_begin_end and
9657 make_cleanup_ui_out_tuple_begin_end.
9658 (do_mixed_source_and_assembly): Ditto.
9659 * thread.c (do_captured_list_thread_ids): Ditto.
9660 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9661 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9662 ui_out_tuple_end): Delete prototypes.
9663 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9664 ui_out_list_end, ui_out_tuple_end): Delete.
9665
9666 From Kevin Buettner <kevinb@redhat.com>:
9667 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9668 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9669 (do_cleanup_table_end): New functions.
9670 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9671 Use cleanups to invoke_ui_out_tuple_end().
9672 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9673 * cli/cli-setshow.c (cmd_show_list): Use
9674 make_cleanup_ui_out_tuple_begin_end.
9675
9676 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9677
9678 * frame.c (frame_unwind_register): New function.
9679 (frame_unwind_unsigned_register): Use.
9680 (frame_unwind_signed_register): Use.
9681 (frame_read_register): New function.
9682 * frame.h (frame_unwind_register): Declare.
9683 (frame_read_register): Declare.
9684
9685 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9686 and frame_unwind_register instead of read_memory, write_register
9687 and deprecated_write_register_bytes.
9688
9689 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9690
9691 * frame.h: Note that namelen can be negative.
9692 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9693 NAME's length.
9694
9695 * NEWS: Mention that the d10v's `regs' command is deprecated.
9696 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9697 (d10v_print_registers_info): New function.
9698 (show_regs): Call d10v_print_registers_info.
9699 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9700
9701 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9702
9703 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9704 lost in the previous patch.
9705
9706 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9707
9708 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9709 * stack.c (print_frame_info_base): Output complete FRAME tuple
9710 for synthesized frames.
9711
9712 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9713
9714 * mips-nat.c (zerobuf): Delete.
9715 (fetch_inferior_registers): Alloc local zerobuf.
9716 (fetch_core_registers): Alloc local zerobuf.
9717 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9718 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9719 * thread-db.c (thread_db_store_registers): Ditto.
9720 * sh-tdep.c (sh_do_register): Ditto.
9721 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9722 * remote-sim.c (gdbsim_store_register): Ditto.
9723 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9724 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9725 * monitor.c (monitor_supply_register): Ditto.
9726 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9727 * mips-nat.c (fetch_inferior_registers): Ditto.
9728 * m68klinux-nat.c (fetch_register): Ditto.
9729 * lynx-nat.c (fetch_inferior_registers): Ditto.
9730 (fetch_inferior_registers): Ditto.
9731 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9732 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9733 (hpux_thread_store_registers): Ditto.
9734 * hppah-nat.c (fetch_register): Ditto.
9735 * hppab-nat.c (fetch_register): Ditto.
9736 * hppa-tdep.c (pa_register_look_aside): Ditto.
9737 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9738 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9739
9740 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9741
9742 * gdbarch.sh: Explictly specify all method levels. When a
9743 variable with an empty level, provide a non-multi-arch default.
9744 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9745 * gdbarch.h: Re-generate.
9746 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9747 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9748
9749 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9750
9751 * defs.h (host_pointer_to_address): Delete declaration.
9752 (address_to_host_pointer): Delete declaration.
9753 * utils.c (host_pointer_to_address): Delete function.
9754 (address_to_host_pointer): Delete function.
9755 * procfs.c (procfs_address_to_host_pointer): New function.
9756 * procfs.c (proc_set_watchpoint): Use.
9757 (procfs_can_use_hw_breakpoint): Update comments.
9758 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9759 (som_solib_add): Use.
9760 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9761 * hppa-tdep.c (unwind_command): Use.
9762
9763 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9764
9765 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9766 strlen d_name.
9767
9768 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9769 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9770 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9771 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9772 (define_symbol): Update.
9773 * symfile.c (generic_load): Remove references to nindy.
9774 * symtab.c: Remove references to nindy.
9775
9776 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9777
9778 * infcmd.c (print_float_info): Delete code conditional on
9779 FLOAT_INFO.
9780 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9781 * config/m68k/nm-apollo68b.h: Ditto.
9782 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9783 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9784 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9785
9786 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9787
9788 * config/i386/tm-i386os9k.h: Removed.
9789
9790 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9791 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9792 they're identical to i[3456]86-*-sysv* now.
9793 * config/i386/i386v32.mh: Removed.
9794 * config/i386/xm-i386v32.h: Removed.
9795 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9796
9797 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9798
9799 * config/i386/i386dgux.mh: Removed.
9800 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9801
9802 * configure.in: Fix typo.
9803 * configure: Regenerated.
9804
9805 2003-01-31 David Carlton <carlton@math.stanford.edu>
9806
9807 * dwarf2read.c (dwarf2_locate_sections): Set
9808 dwarf_ranges_section.
9809
9810 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9811
9812 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9813 * utils.c: Update comments documenting legitimate uses of PTR.
9814
9815 * utils.c: Re-indent.
9816
9817 * config/djgpp/fnchange.lst: Delete nindy files.
9818 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9819 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9820 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9821 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9822 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9823 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9824 * Makefile.in (init.c): Remove nindy references.
9825 (saber_gdb): Delete rule.
9826 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9827 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9828 and a68v-nat.c.
9829 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9830 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9831 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9832 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9833 nindy-share/stop.h.
9834 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9835 * saber.suppress: Delete file.
9836
9837 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
9838
9839 * dbxread.c (stabs_data): New static variable.
9840 (fill_symbuf): Support an in-memory buffer for stabs data.
9841 (stabs_seek): New function.
9842 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9843 (read_ofile_symtab): Use stabs_seek.
9844 (elfstab_build_psymtabs): Take an asection* instead of
9845 an offset and size. Relocate the stabs data if necessary.
9846 Save the section* for dbx_psymtab_to_symtab.
9847 * dwarf2read.c: Add section variables for each debug section.
9848 (dwarf2_locate_sections): Fill them in.
9849 (dwarf2_read_section): Take an asection* argument.
9850 Relocate the section contents if necessary.
9851 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9852 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9853 it to dwarf2_read_section.
9854 (dwarf2_build_frame_info): Update callers.
9855 * elfread.c (elf_symfile_read): Update call to
9856 elfstab_build_psymtabs.
9857 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9858 (DBX_STAB_SECTION): New macro.
9859 * stabsread.h (elfstab_build_psymtabs): Update prototype.
9860 * symfile.c (symfile_dummy_outputs): New function.
9861 (symfile_relocate_debug_section): New function.
9862 * symfile.h (symfile_relocate_debug_section): Add prototype.
9863
9864 2003-01-31 Richard Henderson <rth@redhat.com>
9865
9866 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9867 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9868 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9869 * alpha-tdep.c (alpha_register_name): Add "unique".
9870 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9871 (ALPHA_UNIQUE_REGNUM): New.
9872 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9873
9874 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9875
9876 * README: Remove reference to Ericsson 1800 monitor.
9877 * Makefile.in (remote-es.o): Delete rule.
9878 (ALLDEPFILES): Delete remote-es.c.
9879 * remote-es.c: Delete file.
9880 * config/m68k/es1800.mt: Delete file.
9881 * config/djgpp/fnchange.lst: Update.
9882 * configure.tgt: Delete m68*-ericsson-* target.
9883
9884 2003-01-31 Adam Fedor <fedor@gnu.org>
9885
9886 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9887 Remove duplicate/shadowing variable of same name.
9888
9889 2003-01-30 Jim Blandy <jimb@redhat.com>
9890
9891 * symfile.c (find_separate_debug_file): Assert that the objfile's
9892 directory name we compute ends with a slash, and then assume that
9893 that's so everywhere we use it.
9894
9895 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
9896
9897 * valops.c (value_assign): Flush frame cache after stores to memory
9898 also.
9899
9900 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9901
9902 * Makefile.in (mon960-rom.o): Delete rule.
9903 * mon960-rom.c: Delete file.
9904
9905 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9906
9907 * d10v-tdep.c: Include "frame-unwind.h".
9908 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9909 list.
9910 (next_addr, uses_frame): Delete.
9911 (struct d10v_unwind_cache): Define.
9912 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9913 Use info instead of next_addr and uses_frame globals.
9914 (d10v_frame_init_saved_regs): Delete function.
9915 (d10v_init_extra_frame_info): Delete function.
9916 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9917 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9918 init_frame_pc or frame_saved_pc.
9919 (d10v_pop_frame): Delete function.
9920 (do_d10v_pop_frame): Delete function.
9921 (d10v_frame_chain): Delete function.
9922 (d10v_frame_chain_valid): Delete function.
9923 (d10v_frame_pc_unwind): New function.
9924 (d10v_frame_id_unwind): New function.
9925 (saved_regs_unwinder): New function.
9926 (d10v_frame_register_unwind): New function.
9927 (d10v_frame_pop): New function.
9928 (d10v_frame_unwind): New variable.
9929 (d10v_frame_p): New function.
9930 (d10v_frame_saved_pc): Delete function.
9931 * Makefile.in (d10v-tdep.o): Update dependencies.
9932
9933 2003-01-30 J. Brobecker <brobecker@gnat.com>
9934
9935 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9936 causing some regressions due to a change in the default value
9937 for this macro.
9938
9939 2003-01-29 Richard Henderson <rth@redhat.com>
9940 Elena Zannoni <ezannoni@redhat.com>
9941 Daniel Jacobowitz <drow@mvista.com>
9942
9943 Fix PR gdb/961.
9944 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
9945 variables.
9946 (RANGES_SECTION): New.
9947 (dwarf_ranges_buffer): New variable.
9948 (struct comp_unit_head): Add member "die".
9949 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9950 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9951 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9952 (dwarf2_locate_sections): Likewise.
9953 (dwarf2_build_psymtabs): Read .debug_ranges.
9954 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9955 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9956 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9957 Look for DW_AT_ranges and return the bounding box.
9958
9959 2003-01-29 Brian Ford <ford@vss.fsi.com>
9960
9961 * win32-nat.c (cygwin_pid): Removed as unused.
9962 (child_attach): Try fall back to Cygwin pid.
9963
9964 2003-01-29 Jim Blandy <jimb@redhat.com>
9965
9966 * objfiles.h (struct objfile): Doc fix.
9967
9968 2003-01-29 Andrew Cagney <ac131313@redhat.com>
9969
9970 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9971 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9972 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9973 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9974 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9975 (FRAME_SAVED_PC): Change to a function with predicate.
9976 * gdbarch.h, gdbarch.c: Re-generate.
9977
9978 2003-01-28 Andrew Cagney <ac131313@redhat.com>
9979
9980 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9981
9982 * complaints.c (complain): Delete function.
9983 * complaints.h (struct deprecated_complaint): Delete definition.
9984 (complain): Delete declaration.
9985
9986 2003-01-28 Kevin Buettner <kevinb@redhat.com>
9987
9988 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9989 dummy frames.
9990
9991 2003-01-27 Andrew Cagney <ac131313@redhat.com>
9992
9993 * sentinel-frame.h, sentinel-frame.c: New files.
9994 * Makefile.in (frame.o): Update dependencies.
9995 (SFILES): Add sentinel-frame.c.
9996 (sentinel_frame_h): Define.
9997 (COMMON_OBS): Add sentinel-frame.o.
9998 (sentinel-frame.o): Specify dependencies.
9999 * frame.c: Include "sentinel-frame.h".
10000 (frame_register_unwind): Rewrite assuming that there is always a a
10001 ->next frame.
10002 (frame_register, generic_unwind_get_saved_register): Ditto.
10003 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10004 (create_sentinel_frame, unwind_to_current_frame): New functions.
10005 (get_current_frame): Rewrite using create_sentinel_frame and
10006 unwind_to_current_frame. When possible, always create a frame.
10007 (create_new_frame): Set next to the sentinel frame.
10008 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10009 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10010 ID cache when necessary.
10011 (frame_saved_regs_id_unwind): Use frame_relative_level.
10012 (deprecated_generic_get_saved_register): Use frame_relative_level,
10013 get_frame_saved_regs, get_frame_pc, get_frame_base and
10014 get_next_frame.
10015 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10016 frame_register.
10017
10018 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10019
10020 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10021
10022 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10023
10024 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10025 (maintenance_set_profile_cmd): Use error () instead of warning ().
10026
10027 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10028
10029 * configure.in: Check that -pg works if using --enable-profiling.
10030 Check for monstartup and _mcleanup regardless of --enable-profiling.
10031 * maint.c: Check for monstartup and _mcleanup before using them.
10032 * config.in: Regenerated.
10033 * configure: Regenerated.
10034
10035 2003-01-24 Nick Clifton <nickc@redhat.com>
10036
10037 * Add sh2e support:
10038
10039 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10040
10041 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10042 (sh2e_show_regs): New.
10043 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10044 * config/sh/tm-sh.h: Added sh2e to comments.
10045
10046 2003-01-23 Jim Blandy <jimb@redhat.com>
10047
10048 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10049 symbols found)" message here; we haven't checked for a separate
10050 debug info file yet, so we don't know yet.
10051 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10052 we've looked everywhere. Also, there's no need to print a special
10053 message when we're loading the separate debug info file: the one
10054 symbol_file_add prints is fine.
10055
10056 2003-01-23 Alexander Larsson <alexl@redhat.com>
10057 Jim Blandy <jimb@redhat.com>
10058
10059 Add support for executables whose debug info has been separated
10060 out into a separate file, leaving only a link behind.
10061 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10062 and separate_debug_objfile_backlink.
10063 (put_objfile_before): New declaration.
10064 * symfile.c: #include "filenames.h".
10065 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10066 debug info in a separate file, read that, too. Save the addrs
10067 argument, so we can use it again to read the separated debug info;
10068 syms_from_objfile modifies the table we pass it.
10069 (reread_symbols): After re-reading an objfile, call
10070 reread_separate_symbols to refresh its separate debug info
10071 objfile, if it has one.
10072 (reread_separate_symbols, find_separate_debug_file,
10073 get_debug_link_info, separate_debug_file_exists): New functions.
10074 (debug_file_directory): New global var.
10075 (_initialize_symfile): Initialize debug_file_directory, and
10076 provide the new `set debug-file-directory' command to let the user
10077 change it.
10078 * objfiles.c (free_objfile): If this objfile has its debug info in
10079 a separate objfile, free that one too. If this is itself a
10080 separate debug info objfile, clear our parent's backlink.
10081 (put_objfile_before): New function.
10082 * utils.c (gnu_debuglink_crc32): New function.
10083 * defs.h (gnu_debuglink_crc32): New declaration.
10084 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10085 * configure.in: Handle --with-separate-debug-dir config option.
10086 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10087 * acconfig.h (DEBUGDIR): New macro.
10088 * configure, aclocal.m4, config.in: Regenerated.
10089
10090 2003-01-22 Jim Blandy <jimb@redhat.com>
10091
10092 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10093 like the old symbol_file_add, but taking new arguments: you can
10094 now pass in either a `struct section_addr_info' list to say where
10095 each section is loaded, or a `struct section_offsets' table. Pass
10096 these new arguments through to syms_from_objfile as appropriate.
10097 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10098 with the appropriate quiescent values for the new arguments.
10099
10100 * symfile.c: #include "gdb_assert.h".
10101 (syms_from_objfile): Add the ability to pass in a section offset
10102 table directly, as an alternative to the section_addr_info table.
10103 Document arguments better.
10104 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10105 * symfile.h (syms_from_objfile): Update declaration.
10106 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10107 syms_from_objfile.
10108 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10109
10110 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
10111
10112 Original patch by Tom Tromey <tromey@cygnus.com> and
10113 Jason Molenda <jmolenda@apple.com>.
10114 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10115 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10116 * NEWS: Mention profiling.
10117 * configure.in (--enable-gdbtk): Fix typo.
10118 (--enable-profiling): New. Set PROFILE_CFLAGS.
10119 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10120 Fill in function.
10121 (profiling_state): New variable.
10122 (mcleanup_wrapper): New function.
10123 (_initialize_maint): Remove NOTYET, fix call to
10124 add_setshow_boolean_cmd for "maint set profile".
10125 * configure: Regenerated.
10126
10127 2003-01-21 Martin M. Hunt <hunt@redhat.com>
10128
10129 * Makefile.in (install-gdbtk): Install PNG images too.
10130
10131 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10132
10133 * exec.c (text_start): Delete global variable.
10134 (exec_file_attach): Make text_start local to the function.
10135 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10136 * valops.c (hand_function_call): Delete code that handles
10137 BEFORE_TEXT_END and AFTER_TEXT_END.
10138 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10139 of CALL_DUMMY_LOCATION.
10140 * gdbarch.c: Regenerate.
10141 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10142 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10143 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10144 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10145 (text_end): Delete extern declaration.
10146
10147 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10148
10149 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10150 * blockframe.c (backtrace_below_main): Move to "frame.c".
10151 (frame_chain_valid): Delete check for backtrace_below_main.
10152 (_initialize_blockframe): Delete initialization, move ``set
10153 backtrace-below-main'' command to "frame.c".
10154 (do_flush_frames_sfunc): Delete function.
10155 * frame.c: Include "command.h" and "gdbcmd.h".
10156 (frame_type_from_pc): New function.
10157 (create_new_frame): Use frame_type_from_pc.
10158 (legacy_get_prev_frame): New function.
10159 (get_prev_frame): Rewrite. When an old style frame, call
10160 legacy_get_prev_frame. Otherwize, unwind the PC first.
10161 (_initialize_frame): Add ``set backtrace-below-main'' command.
10162 * Makefile.in (frame.o): Update dependencies.
10163
10164 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10165
10166 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10167 DEPRECATED_REGISTERS_INFO.
10168
10169 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10170
10171 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10172 Maintainers'. Update `Various Maintainers'.
10173
10174 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10175
10176 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10177 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10178 Suppress actual parameters when `-'.
10179 * gdbarch.h, gdbarch.c: Regenerate.
10180
10181 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10182
10183 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10184 code handling dummy frames.
10185
10186 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10187
10188 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10189 (struct frame_unwind): Add field pop.
10190 * frame.h (frame_pop): Declare.
10191 * frame.c (frame_saved_regs_pop): New function.
10192 (trad_frame_unwinder): Add frame_saved_regs_pop.
10193 (frame_pop): New function.
10194 * dummy-frame.c (dummy_frame_pop): New function.
10195 (discard_innermost_dummy): New function.
10196 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10197 (dummy_frame_unwind): Add dummy_frame_pop.
10198 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10199 * valops.c (hand_function_call): Ditto.
10200 * stack.c (return_command): Ditto.
10201
10202 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10203
10204 * cris-tdep.c: Fix function declaration indentation.
10205 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10206 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10207 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10208 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10209 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10210 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10211
10212 2003-01-18 Michael Chastain <mec@shout.net>
10213
10214 * README (Unpacking and Installation -- quick overview):
10215 Warn against ".../gdb-5.3/gdb/configure".
10216
10217 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10218
10219 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10220 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10221 (struct frame_unwind): Declare opaque.
10222 (dummy_frame_p): Declare function.
10223 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10224 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10225 * dummy-frame.c: Include "frame-unwind.h".
10226 (dummy_frame_p): New function.
10227 (dummy_frame_unwind): New variable.
10228 * frame.c: Include "frame-unwind.h".
10229 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10230 to use the new unwind field.
10231 (set_unwind_by_pc): Delete function.
10232 (create_new_frame, get_prev_frame): Set unwind field using
10233 frame_unwind_find_by_pc.
10234 (trad_frame_unwind, trad_frame_unwinder): New variables.
10235 * frame.h (trad_frame_unwind): Declare variable.
10236 (frame_id_unwind_ftype): Delete declaration.
10237 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10238 (struct frame_unwind): Declare opaque.
10239 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10240 register_unwind with a single unwind pointer.
10241 * frame-unwind.h, frame-unwind.c: New files.
10242 * Makefile.in (SFILES): Add frame-unwind.c.
10243 (frame_unwind_h): Define.
10244 (COMMON_OBS): Add frame-unwind.o.
10245 (frame-unwind.o): Specify dependencies.
10246 (frame.o, dummy-frame.o): Update dependencies.
10247
10248 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10249
10250 * ada-valprint.c: Eliminate PTR.
10251 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10252 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10253 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10254 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10255 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10256 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10257 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10258
10259 2003-01-17 Andrew Cagney <ac131313@redhat.com>
10260
10261 * main.c (captured_main): Don't use PTR.
10262 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10263 * gdbtypes.c (lookup_primitive_typename): Ditto.
10264 (lookup_struct_elt_type): Ditto.
10265 * f-valprint.c (info_common_command): Ditto.
10266 (list_all_visible_commons): Ditto.
10267 * jv-typeprint.c (java_type_print_base): Ditto.
10268
10269 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10270 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10271 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10272 i386-interix-nat.c and i386-interix-tdep.c. Rename
10273 m68klinux-nat.c and m68klinux-tdep.c. Rename
10274 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10275 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10276 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10277 * main.c (captured_main): Use xfree, not free.
10278
10279 2003-01-16 Andrew Cagney <ac131313@redhat.com>
10280
10281 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10282 ID back using a parameter.
10283 * frame.c (frame_id_unwind): Update call.
10284 (frame_saved_regs_id_unwind): Update.
10285 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10286 * dummy-frame.h (struct frame_id): Add opaque declaration.
10287 (dummy_frame_id_unwind): Update declaration.
10288
10289 2003-01-15 Andrew Cagney <ac131313@redhat.com>
10290
10291 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10292
10293 2003-01-15 Stephen P. Smith <ischis2@cox.net>
10294
10295 * MAINTAINERS (Stephen P. Smith): Updated email address.
10296
10297 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
10298
10299 Fix PR gdb/898
10300 * breakpoint.c (until_break_command): Add new argument. Use it to
10301 decide whether to stop only at the current frame or not.
10302 * breakpoint.h (until_break_command): Update prototype.
10303 * infcmd.c (until_command): Add new argument to until_break_command
10304 call.
10305 (advance_command): New function.
10306 (_initialize_infcmd): Update help string for 'until' command.
10307 Add new 'advance' command.
10308
10309 2003-01-14 David Carlton <carlton@math.stanford.edu>
10310
10311 * linespec.c (decode_line_1): Normalize comments.
10312 (set_flags): Ditto.
10313 (locate_first_half): Ditto.
10314 (decode_compound): Ditto.
10315 (symtab_from_filename): Ditto.
10316 (decode_all_digits): Ditto.
10317 (decode_dollar): Ditto.
10318 (find_methods): Ditto.
10319 (find_toplevel_char): Ditto.
10320
10321 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10322
10323 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10324 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10325 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10326 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10327 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10328 * language.c, language.h, m32r-tdep.c: Update copyright.
10329 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10330 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10331 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10332 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10333 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10334 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10335
10336 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10337
10338 * stabsread.h (process_later, resolve_cfront_continuation):
10339 Obsolete.
10340 Update copyright years.
10341 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10342 Update copyright year.
10343 * dbxread.c(struct cont_elem): Obsolete.
10344 (process_later, process_now): Obsolete functions.
10345 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10346 Update copyright year.
10347 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10348 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10349 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10350 (parse_partial_symbols): Obsolete cfront support.
10351 * stabsread.c
10352 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10353 macros.
10354 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10355 read_cfront_baseclasses, read_cfront_member_functions,
10356 resolve_cfront_continuation,read_cfront_static_fields,
10357 copy_cfront_struct_fields): Obsolete functions.
10358 (define_symbol, read_one_struct_field): Obsolete cfront support.
10359 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10360 Update Copyright year.
10361
10362 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10363
10364 * stack.c (print_frame_info, print_stack_frame_base_stub,
10365 print_stack_frame_base, show_and_print_stack_frame_stub,
10366 show_and_print_stack_frame, print_only_stack_frame_stub,
10367 print_only_stack_frame): Delete functions.
10368 (print_stack_frame_stub): Call print_frame_info instead of
10369 print_frame_info_base.
10370 (print_frame_info_base): Rename to print_frame_info.
10371 (backtrace_command_1): Call print_frame_info, instead of
10372 print_frame_info_base.
10373 (current_frame_command): Call print_stack_frame, instead of
10374 print_only_stack_frame.
10375 (frame_command): Call print_stack_frame, instead of
10376 show_and_print_stack_frame.
10377 (up_command): Ditto.
10378 (down_command): Ditto.
10379 * frame.h (print_only_stack_frame): Delete prototype.
10380 * infrun.c (normal_stop): Call print_stack_frame, instead of
10381 show_and_print_stack_frame.
10382 * thread.c (info_threads_command): Call print_stack_frame, instead
10383 of print_only_stack_frame.
10384
10385 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10386
10387 * README (Graphical interface to GDB): Update URL. Point at
10388 gdb/links/.
10389
10390 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10391 version match.
10392
10393 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10394
10395 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10396 lines.
10397
10398 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10399
10400 * thread-db.c (attach_thread): Prototype.
10401 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10402 thread information (ti), and valid flags (th_valid, ti_valid).
10403 (attach_thread): Move target_pid_to_str call to after the thread
10404 is added to GDB's list. Initialize the cache.
10405 (thread_get_info_callback, thread_db_map_id2thr)
10406 (thread_db_get_info): New functions.
10407 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10408 (thread_db_store_registers, thread_db_thread_alive)
10409 (thread_db_get_thread_local_address): Use them.
10410 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10411 of calling error() for threads in unknown state.
10412
10413 (clear_lwpid_callback): New function.
10414 (thread_db_resume): Use it to clear the cache.
10415
10416 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10417
10418 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10419 (resume_callback): Remove dead code.
10420
10421 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10422
10423 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10424 predicate.
10425 * gdbarch.h, gdbarch.c: Regenerate.
10426 * stack.c (frame_info): Only initialize the saved registers when
10427 FRAME_INIT_SAVED_REGS_P.
10428 * frame.c (frame_saved_regs_register_unwind): Assert
10429 FRAME_INIT_SAVED_REGS_P.
10430 (deprecated_generic_get_saved_register): Ditto.
10431
10432 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10433
10434 * source.c (openp): Squelch warning about "filename".
10435
10436 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10437
10438 * source.c (openp): If the file does not exist don't necessarily
10439 search the path.
10440
10441 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10442
10443 Fix PR gdb/872.
10444 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10445 (integer_types_same_name_p): New function.
10446 (rank_one_type): Use it.
10447 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10448
10449 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10450
10451 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10452 variables.
10453 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10454 * configure.in: Add --with-sysroot.
10455 * configure: Regenerated.
10456 * main.c (gdb_sysroot): New variable.
10457 (captured_main): Initialize gdb_sysroot.
10458 * defs.h (gdb_sysroot): New extern declaration.
10459 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10460
10461 2003-01-12 Michael Chastain <mec@shout.net>
10462
10463 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10464
10465 2003-01-12 Michael Chastain <mec@shout.net>
10466
10467 * top.c (print_gdb_version): Bump copyright year to 2003.
10468
10469 2003-01-12 David Carlton <carlton@bactrian.org>
10470
10471 * linespec.c (symtab_from_filename): Rename variable 's' to
10472 'file_symtab'.
10473
10474 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10475
10476 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10477 dummy frame.
10478 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10479
10480 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10481
10482 * d10v-tdep.c: Include "gdb_assert.h".
10483 (d10v_store_return_value): Rewrite to match current interface.
10484 (d10v_extract_struct_value_address): Ditto.
10485 (d10v_extract_return_value): Ditto.
10486 (d10v_gdbarch_init): Set store_restore_value,
10487 extract_struct_value_address and extract_return_value.
10488
10489 2003-01-12 J. Brobecker <brobecker@gnat.com>
10490
10491 * hpread.c (set_namestring): New procedure replacing the
10492 SET_NAMESTRING macro.
10493 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10494 by calls to set_namestring.
10495
10496 2003-01-11 J. Brobecker <brobecker@gnat.com>
10497
10498 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10499 a compilation warning.
10500 (hpread_process_one_debug_symbol): Likewise.
10501
10502 2003-01-10 David Carlton <carlton@math.stanford.edu>
10503
10504 * linespec.c (decode_line_1): Rename variable 's' to
10505 'file_symtab'.
10506 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10507 (decode_dollar): Ditto.
10508 (decode_variable): Ditto.
10509 (symbol_found): Ditto.
10510
10511 2003-01-09 Michael Chastain <mec@shout.net>
10512
10513 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10514
10515 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10516
10517 * win32-nat.c (set_process_privilege): New function.
10518 (child_attach): Call set_process_privilege() to enable the
10519 SE_DEBUG_NAME user privilege if available in process token.
10520
10521 2003-01-10 J. Brobecker <brobecker@gnat.com>
10522
10523 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10524 compilation error in the previous revision.
10525
10526 2003-01-09 David Carlton <carlton@math.stanford.edu>
10527
10528 * linespec.c: Update copyright.
10529
10530 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10531
10532 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10533 than inferior_ptid.
10534 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10535
10536 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10537
10538 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10539 Update comments.
10540 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10541 (frame_saved_regs_zalloc): Update.
10542 (frame_saved_regs_register_unwind): Update.
10543 (create_new_frame): Update.
10544 (get_prev_frame): Update.
10545 (frame_extra_info_zalloc): Update.
10546 (deprecated_get_frame_saved_regs): Update.
10547 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10548 * cris-tdep.c: Update comment.
10549
10550 * somsolib.h: Fix function indentation.
10551 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10552 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10553 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10554 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10555 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10556
10557 * infrun.c (follow_fork): Use ISO C definition.
10558 * expprint.c (print_subexp): Use xfree instead of free.
10559 * charset.c: Include "gdb_string.h" instead of <string.h>.
10560 (register_iconv_charsets): Use ISO C definition.
10561 (host_charset, target_charset): Ditto.
10562 * Makefile.in (charset.o): Update dependencies.
10563 (mi-cmd-env.o): Update dependencies.
10564
10565 2003-01-08 Andrew Cagney <cagney@redhat.com>
10566
10567 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10568 get_frame_base.
10569
10570 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10571
10572 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10573 build directories. Save edited gdb output in Mbuild.log. If a
10574 build fails, remove any final GDB executable.
10575
10576 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10577
10578 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10579 replacing hex constants with function names and stripping leading
10580 file name directory prefixes.
10581
10582 2003-01-08 Andrew Cagney <cagney@redhat.com>
10583
10584 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10585 get_frame_base.
10586
10587 2003-01-08 David Carlton <carlton@math.stanford.edu>
10588
10589 * linespec.c (decode_line_1): Move code into decode_variable.
10590 (decode_variable): New function.
10591
10592 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10593
10594 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10595
10596 2003-01-08 Andrew Cagney <cagney@redhat.com>
10597
10598 * cris-tdep.c (cris_frame_init_saved_regs): Use
10599 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10600 saved_regs buffer.
10601 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10602 (sh64_nofp_frame_init_saved_regs): Ditto.
10603 (sh_fp_frame_init_saved_regs): Ditto.
10604 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10605 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10606 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10607 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10608
10609 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10610
10611 * minsyms.c (lookup_minimal_symbol): Update comment.
10612 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10613 (lookup_minimal_symbol_solib_trampoline): Likewise.
10614
10615 2003-01-08 Andrew Cagney <cagney@redhat.com>
10616
10617 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10618 frame_relative_level.
10619
10620 * alpha-tdep.c: Use get_frame_extra_info.
10621 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10622 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10623 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10624 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10625
10626 * alpha-tdep.c: Use get_next_frame.
10627 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10628 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10629 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10630 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10631 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10632 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10633 * xstormy16-tdep.c: Ditto.
10634
10635 2003-01-07 Andrew Cagney <cagney@redhat.com>
10636
10637 * alpha-tdep.c: Use get_frame_base.
10638 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10639 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10640 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10641 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10642 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10643 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10644 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10645 * config/sparc/tm-sparc.h: Ditto.
10646
10647 2003-01-07 Andrew Cagney <cagney@redhat.com>
10648
10649 * frame.c (deprecated_get_frame_context): New function.
10650 (deprecated_set_frame_context): New function.
10651 * frame.h (deprecated_get_frame_context): Declare.
10652 (deprecated_set_frame_context): Declare.
10653 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10654 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10655
10656 2003-01-07 Andrew Cagney <cagney@redhat.com>
10657
10658 * frame.c (deprecated_set_frame_next_hack): New function.
10659 (deprecated_set_frame_prev_hack): New function.
10660 * frame.h (deprecated_set_frame_next_hack): Declare.
10661 (deprecated_set_frame_prev_hack): Declare.
10662 * mcore-tdep.c (analyze_dummy_frame): Use
10663 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10664 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10665
10666 2003-01-07 David Carlton <carlton@math.stanford.edu>
10667
10668 * linespec.c (decode_line_1): Move code into decode_dollar.
10669 (decode_dollar): New function.
10670
10671 2003-01-07 Andrew Cagney <cagney@redhat.com>
10672
10673 * arm-tdep.c (arm_init_extra_frame_info): Use
10674 deprecated_update_frame_base_hack.
10675 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10676 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10677 (fix_frame_pointer): Ditto.
10678 (mn10300_analyze_prologue): Ditto.
10679
10680 2003-01-07 Andrew Cagney <cagney@redhat.com>
10681
10682 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10683 extra_info using frame_extra_info_zalloc.
10684 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10685 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10686 (sh64_init_extra_frame_info): Ditto.
10687 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10688 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10689 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10690 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10691 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10692 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10693 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10694 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10695 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10696 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10697 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10698 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10699
10700 * mn10300-tdep.c (analyze_dummy_frame): Use
10701 deprecated_set_frame_extra_info_hack.
10702 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10703
10704 2003-01-07 J. Brobecker <brobecker@gnat.com>
10705
10706 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10707 class is not scText. These do not define "real" procedures.
10708 (parse_partial_symbols): Likewise.
10709
10710 2003-01-06 Michael Snyder <msnyder@redhat.com>
10711
10712 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10713
10714 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10715
10716 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10717 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10718 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10719 deprecated_frame_xmalloc_with_cleanup.
10720 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10721 deprecated_frame_xmalloc.
10722 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10723 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10724
10725 2003-01-06 Andrew Cagney <cagney@redhat.com>
10726
10727 * x86-64-linux-tdep.c: Include "osabi.h".
10728 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10729
10730 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10731
10732 2003-01-06 Andrew Cagney <cagney@redhat.com>
10733
10734 * MAINTAINERS (Target Instruction Set Architectures): Update
10735 arm-elf. Can be built with -Werror, has been multiarched.
10736
10737 * value.h (unpack_long): Make buffer parameter constant.
10738 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10739 * scm-lang.h (scm_parse): Ditto.
10740 * defs.h (extract_typed_address, extract_address): Ditto.
10741 (extract_long_unsigned_integer): Ditto.
10742 * inferior.h (unsigned_pointer_to_address): Ditto.
10743 (signed_pointer_to_address): Ditto.
10744 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10745 * gdbarch.h, gdbarch.c: Regenerate.
10746 * findvar.c (extract_long_unsigned_integer): Update.
10747 (extract_address): Update.
10748 (extract_typed_address): Update.
10749 (unsigned_pointer_to_address): Update.
10750 * values.c (unpack_long): Update.
10751 (unpack_double): Update.
10752 (unpack_pointer): Update.
10753 (unpack_field_as_long): Update.
10754 * d10v-tdep.c (d10v_pointer_to_address): Update.
10755 * avr-tdep.c (avr_pointer_to_address): Update.
10756 * scm-lang.c (scm_unpack): Update.
10757 * findvar.c (signed_pointer_to_address): Update.
10758
10759 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10760
10761 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10762 since it is in i386-tdep.c.
10763
10764 2003-01-06 J. Brobecker <brobecker@gnat.com>
10765
10766 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10767 failure introduced in the previous change.
10768
10769 2003-01-05 Michael Chastain <mec@shout.net>
10770
10771 * README: Remove references to deleted remote-*.c files:
10772 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10773 remote-nrom.c, remote-os9k.c, remote-udi.c.
10774
10775 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10776
10777 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10778 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10779 i386_get_longjmp_target.
10780
10781 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10782
10783 * arm-tdep.c (prologue_cache): Change to a pointer.
10784 (_initialize_arm_tdep): Allocate prologue_cache.
10785 (check_prologue_cache): Update.
10786 (save_prologue_cache): Update.
10787 (arm_gdbarch_init): Update.
10788
10789 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10790
10791 * stabsread.c (update_method_name_from_physname): Call complaint()
10792 instead of error.
10793
10794 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10795
10796 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10797 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10798 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10799
10800 * blockframe.c: Include "gdbcmd.h" and "command.h".
10801 (backtrace_below_main): New variable.
10802 (file_frame_chain_valid, func_frame_chain_valid)
10803 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10804 (generic_func_frame_chain_valid): Remove functions.
10805 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10806 (_initialize_blockframe): New function.
10807 * Makefile.in (blockframe.o): Update dependencies.
10808 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10809 comment. Call frame_chain_valid ().
10810 * frame.h: Remove old prototypes. Add prototype for
10811 frame_chain_valid and update comments to match.
10812 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10813 Remove old comment.
10814 * gdbarch.h: Regenerated.
10815 * gdbarch.c: Regenerated.
10816
10817 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10818 set_gdbarch_frame_chain_valid.
10819 * avr-tdep.c (avr_gdbarch_init): Likewise.
10820 * cris-tdep.c (cris_gdbarch_init): Likewise.
10821 * frv-tdep.c (frv_gdbarch_init): Likewise.
10822 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10823 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10824 (i386_nw_init_abi): Likewise.
10825 (i386_gdbarch_init): Likewise.
10826 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10827 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10828 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10829 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10830 * mips-tdep.c (mips_gdbarch_init): Likewise.
10831 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10832 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10833 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10834 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10835 * s390-tdep.c (s390_gdbarch_init): Likewise.
10836 * sh-tdep.c (sh_gdbarch_init): Likewise.
10837 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10838 * v850-tdep.c (v850_gdbarch_init): Likewise.
10839 * vax-tdep.c (vax_gdbarch_init): Likewise.
10840 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10841
10842 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10843 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10844 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10845 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10846 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10847 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10848 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10849 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10850
10851 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10852
10853 * Makefile.in (acconfig_h): Remove incorrect macro.
10854 (config_h): Define.
10855 (osabi.o): Update dependencies.
10856 * configure.tgt: Set gdb_osabi based on target triplet.
10857 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10858 * configure: Regenerated.
10859 * config.in: Regenerated.
10860 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10861 (GDB_OSABI_DEFAULT): Define if not already defined.
10862 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10863 (set_osabi_string): New variables.
10864 (gdbarch_register_osabi): Add new OS ABI to
10865 gdb_osabi_available_names.
10866 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10867 (set_osabi, show_osabi): New functions.
10868 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10869
10870 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10871
10872 * arch-utils.c (gdbarch_info_init): Set osabi to
10873 GDB_OSABI_UNINITIALIZED.
10874 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10875 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10876 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10877 * gdbarch.c: Regenerated.
10878 * gdbarch.h: Regenerated.
10879 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10880 there's no BFD.
10881 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10882 * osabi.h (enum gdb_osabi): Move to defs.h.
10883 (gdbarch_init_osabi): Update prototype.
10884 * defs.h (enum gdb_osabi): Moved here.
10885 * Makefile.in: Update dependencies.
10886
10887 * alpha-tdep.h: Don't include "osabi.h".
10888 (struct gdbarch_tdep): Remove osabi member.
10889 * alpha-tdep.c: Include "osabi.h".
10890 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10891 iterate over arches. Update call to gdbarch_init_osabi.
10892 (alpha_dump_tdep): Don't dump osabi.
10893 * alpha-linux-tdep.c: Include "osabi.h".
10894 * alpha-osf1-tdep.c: Include "osabi.h".
10895 * alphafbsd-tdep.c: Include "osabi.h".
10896 * alphanbsd-tdep.c: Include "osabi.h".
10897
10898 * arm-tdep.h: Don't include "osabi.h".
10899 (struct gdbarch_tdep): Remove osabi member.
10900 * arm-tdep.c: Include "osabi.h".
10901 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10902 iterate over arches. Update call to gdbarch_init_osabi.
10903 (arm_dump_tdep): Don't dump osabi.
10904 * arm-linux-tdep.c: Include "osabi.h".
10905 * armnbsd-tdep.c: Include "osabi.h".
10906
10907 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10908 Update call to gdbarch_init_osabi.
10909
10910 * i386-tdep.h: Don't include "osabi.h".
10911 (struct gdbarch_tdep): Remove osabi member.
10912 * i386-tdep.c: Include "osabi.h".
10913 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10914 iterate over arches. Update call to gdbarch_init_osabi.
10915 (i386_dump_tdep): Don't dump osabi.
10916 * i386-linux-tdep.c: Include "osabi.h".
10917 * i386-sol2-tdep.c: Include "osabi.h".
10918 * i386bsd-tdep.c: Include "osabi.h".
10919 * i386gnu-tdep.c: Include "osabi.h".
10920 * i386ly-tdep.c: Include "osabi.h".
10921 * i386nbsd-tdep.c: Include "osabi.h".
10922 * i386obsd-tdep.c: Include "osabi.h".
10923
10924 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10925 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10926 check osabi when iterating over arches. Update call to
10927 gdbarch_init_osabi.
10928 (mips_dump_tdep): Don't dump osabi.
10929
10930 * ns32k-tdep.h: Don't include "osabi.h".
10931 (struct gdbarch_tdep): Remove.
10932 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10933 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10934 allocate tdep. Update call to gdbarch_init_osabi.
10935 (ns32k_dump_tdep): Remove.
10936 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10937 * ns32knbsd-tdep.c: Include "osabi.h".
10938
10939 * ppc-tdep.h: Don't include "osabi.h".
10940 (struct gdbarch_tdep): Remove osabi member.
10941 * rs6000-tdep.c: Include "osabi.h".
10942 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10943 osabi when iterating over arches. Update call to
10944 gdbarch_init_osabi.
10945 (rs6000_dump_tdep): Don't dump osabi.
10946 * ppc-linux-tdep.c: Include "osabi.h".
10947 * ppcnbsd-tdep.c: Include "osabi.h".
10948
10949 * sh-tdep.h: Don't include "osabi.h".
10950 (struct gdbarch_tdep): Remove osabi member.
10951 * sh-tdep.c: Include "osabi.h".
10952 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10953 iterate over arches. Update call to gdbarch_init_osabi.
10954 (sh_dump_tdep): Don't dump osabi.
10955 * shnbsd-tdep.c: Include "osabi.h".
10956
10957 * sparc-tdep.c: Include "osabi.h".
10958 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10959 iterate over arches. Update call to gdbarch_init_osabi.
10960 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10961 tdep structure.
10962
10963 * vax-tdep.h: Don't include "osabi.h".
10964 (struct gdbarch_tdep): Remove.
10965 * vax-tdep.c: Include "osabi.h".
10966 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10967 iterate over arches. Don't allocate tdep. Update call
10968 to gdbarch_init_osabi.
10969 (vax_dump_tdep): Remove.
10970 (_initialize_vax_tdep): Update call to gdbarch_register.
10971
10972 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10973
10974 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10975 entirely.
10976 (breakpoint_re_set_one): Don't fetch the value for a disabled
10977 watchpoint.
10978
10979 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10980
10981 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10982 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10983 (COERCE_FLOAT_TO_DOUBLE): Remove.
10984 * gdbarch.c: Regenerate.
10985 * gdbarch.h: Regenerate.
10986 * Makefile.in: Remove value_h from gdbarch_h.
10987 * valops.c (coerce_float_to_double): New variable.
10988 (default_coerce_float_to_double): Remove.
10989 (standard_coerce_float_to_double): Remove.
10990 (value_arg_coerce): Use coerce_float_to_double.
10991 (_initialize_valops): Add "set coerce-float-to-double".
10992 * value.h (default_coerce_float_to_double): Remove prototype.
10993 (standard_coerce_float_to_double): Remove prototype.
10994
10995 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10996 prototyped.
10997 * mdebugread.c (parse_symbol): Likewise.
10998 * stabsread.c (define_symbol): Mark all functions as prototyped.
10999
11000 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11001 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11002 set_gdbarch_coerce_float_to_double.
11003 * arm-tdep.c (arm_gdbarch_init): Likewise.
11004 * frv-tdep.c (frv_gdbarch_init): Likewise.
11005 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11006 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11007 * mips-tdep.c (mips_gdbarch_init): Likewise.
11008 (mips_coerce_float_to_double): Remove.
11009 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11010 (rs6000_coerce_float_to_double): Remove.
11011 * s390-tdep.c (s390_gdbarch_init): Likewise.
11012 * sh-tdep.c (sh_gdbarch_init): Likewise.
11013 (sh_coerce_float_to_double): Remove.
11014 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11015 (sparc_coerce_float_to_double): Remove.
11016 * v850-tdep.c (v850_gdbarch_init): Likewise.
11017 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11018 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11019 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11020 (hppa_coerce_float_to_double): Remove prototype.
11021 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11022
11023 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11024
11025 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11026
11027 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11028
11029 Suggested by Stewart Brown <sb24@avaya.com>:
11030 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11031 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11032 (c_type_print_varspec_suffix): Likewise.
11033
11034 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11035
11036 * configure.in: Don't set and AC_SUBST SUBDIRS.
11037 * configure: Regenerated.
11038
11039 * configure.in: Remove code dealing with shared libraries.
11040 * Makefile.in: Remove HLDFLAGS and HLDENV.
11041 * configure: Regenerated.
11042
11043 2003-01-04 Andrew Cagney <ac131313@redhat.com>
11044
11045 * frame.c (deprecated_frame_xmalloc): New function.
11046 (deprecated_set_frame_saved_regs_hack): New function.
11047 (deprecated_set_frame_extra_info_hack): New function.
11048 * frame.h (deprecated_frame_xmalloc): Declare.
11049 (deprecated_set_frame_saved_regs_hack): Declare.
11050 (deprecated_set_frame_extra_info_hack): Declare.
11051
11052 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11053
11054 * configure.in: Move code that provides the --enable-gdbtk option
11055 right after the code that handles the --enable-tui option, and
11056 polish it somewhat.
11057 * configure: Regenerated.
11058
11059 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11060 AC_CHECK_FUNCS and remove the old check for pread64.
11061 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11062 * acconfig.h (_GNU_SOURCE): Add.
11063 (HAVE_PREAD64): Remove.
11064 * configure, aclocal.m4, config.in: Regenerated.
11065
11066 2003-01-03 Andrew Cagney <ac131313@redhat.com>
11067
11068 * alpha-tdep.c: Use get_frame_saved_regs.
11069 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11070 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11071 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11072 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11073 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11074
11075 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11076
11077 * configure.in: Remove all use of the SUBDIRS variable; add
11078 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11079 code providing the --enable-multi-ice option, and move it right in
11080 front of the code that checks whether gdbserver is supported.
11081 Polish that too.
11082 * configure: Regenerated.
11083 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11084 @SUBDIRS@.
11085
11086 2003-01-03 Andrew Cagney <cagney@redhat.com>
11087
11088 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11089 * avr-tdep.c, cris-tdep.c: Ditto.
11090 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11091 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11092
11093 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11094
11095 * configure.in: Remove --enable-netrom option.
11096 * configure: Regenerated.
11097
11098 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11099
11100 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11101 declaration for `struct re_pattern_buffer' instead.
11102 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11103
11104 2003-01-03 J. Brobecker <brobecker@gnat.com>
11105
11106 * mdebugread.c (parse_symbol): Count until the stEnd matching
11107 the structure name.
11108
11109 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11110
11111 * configure.in: Remove --with-cpu option.
11112 subscripts. Remove evil changequotes here.
11113 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11114 * config.in, configure: Regenerated.
11115
11116 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11117 * configure.in: Cleanup section that sources GDB and BFD configure
11118 subscripts. Remove evil changequotes here.
11119 * config.in, configure: Regenerated.
11120
11121 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11122
11123 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11124 frame accessor methods.
11125 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11126 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11127 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11128 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11129 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11130 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11131 * z8k-tdep.c: Ditto.
11132
11133 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11134
11135 * configure.in: Remove UI_OUT configuration code.
11136 * ada-lang.c: Update assuming UI_OUT is always true.
11137 * Makefile.in (UIOUT_CFLAGS): Remove.
11138 * configure: Regenerated.
11139 * TODO: Remove blurb about elimination of -DUI_OUT.
11140
11141 * configure.in: Move code that provides the --enable-gdbcli,
11142 --enable-gdbmi options right before the code that handles the
11143 --enable-tui option. Polish a bit.
11144 * configure: Regenerated.
11145
11146 * configure.in: Rewrite check for GNU regex and the
11147 --without-included regex option, and move it into the "Checks for
11148 library functions" section. This makes us use the system regex
11149 again by default on systems with version 2 of the GNU C library.
11150 This was apparently broken.
11151 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11152 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11153 * config.in, configure: Regenerated.
11154
11155 * configure.in: Move code that provides the --enable-tui option
11156 before the "Checks for libraries" section. Polish the code
11157 somewhat and set need_curses to yes if we build the TUI. Rewrite
11158 code that looks for a library providing termcap functionality to
11159 match more closely what's done in the Readline library, and move
11160 it into to the "Checks for libraries" section.
11161 * configure: Regenerated.
11162 * Makefile.in (TERMCAP): Remove variable.
11163 * config/i386/go32.mh (TERMCAP): Remove variable.
11164
11165 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11166
11167 * MAINTAINERS: Mention gdb_mbuild.sh.
11168 * gdb_mbuild.sh: Rewrite.
11169
11170 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11171
11172 * configure.in: Fix typo in last change.
11173 * config.in, configure: Regenerated.
11174
11175 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11176
11177 * valarith.c (value_binop): Delete obsolete code and comments.
11178 * configure.host: Ditto.
11179 * buildsym.h (make_blockvector): Ditto.
11180 * buildsym.c (make_blockvector): Ditto.
11181 * defs.h (enum language): Ditto.
11182 (chill_demangle): Ditto.
11183 * elfread.c (elf_symtab_read): Ditto.
11184 * dwarfread.c (CHILL_PRODUCER): Ditto.
11185 (set_cu_language): Ditto.
11186 (handle_producer): Ditto.
11187 * expprint.c (print_subexp): Ditto.
11188 * gdbtypes.c (chill_varying_type): Ditto.
11189 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11190 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11191 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11192 (chill_varying_type): Ditto.
11193 * language.h (_LANG_chill): Ditto.
11194 * language.c (binop_result_type, integral_type): Ditto.
11195 (character_type, string_type, structured_type): Ditto.
11196 (lang_bool_type, binop_type_check): Ditto.
11197 * stabsread.h (os9k_stabs): Ditto.
11198 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11199 (define_symbol, read_type, read_struct_fields): Ditto.
11200 (read_array_type, read_enum_type, read_huge_number): Ditto.
11201 (read_range_type, start_stabs): Ditto.
11202 * symfile.c (init_filename_language_table): Ditto.
11203 (add_psymbol_with_dem_name_to_list): Ditto.
11204 * symtab.c (symbol_init_language_specific): Ditto.
11205 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11206 * symtab.h (struct general_symbol_info): Ditto.
11207 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11208 * typeprint.c (typedef_print): Ditto.
11209 * utils.c (fprintf_symbol_filtered): Ditto.
11210 * valops.c (value_cast, search_struct_field, value_slice): Delete
11211 obsolete code.
11212 (varying_to_slice): Delete function.
11213 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11214 (varying_to_slice): Delete declaration.
11215 * MAINTAINERS: Update.
11216
11217 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11218
11219 * configure.in: Reorganize "Checks for library functions section"
11220 a bit. Remove check for `btowc' and `isascii' functions.
11221 * configure: Regenerated.
11222
11223 * acconfig.h (_MSE_INT_H): Remove.
11224 * configure.in: Create "Checks for header files" section, and move
11225 appropriate tests there. Don't check for objlist.h, wchar.h,
11226 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11227 misdetection fix. Also add "Checks for types", "Checks for
11228 compiler characteristics" and "Checks for library functions"
11229 sections.
11230 * config.in, configure: Regenerated.
11231
11232 * configure.in: Create "Checks for programs" section, and move
11233 appropriate tests there.
11234
11235 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11236
11237 * configure.in: Create "Checks for libraries" section, and move
11238 appropriate tests there. Cleanup check for wctype in libw. Use
11239 AC_SEARCH_LIBS to see whether we need libsocket.
11240 * configure: Regenerated.
11241
11242 For older changes see ChangeLog-2002
11243 \f
11244 Local Variables:
11245 mode: change-log
11246 left-margin: 8
11247 fill-column: 74
11248 version-control: never
11249 End:
This page took 0.829472 seconds and 4 git commands to generate.