* configure.in: Remove redundant AC_MSG_RESULT in check for
[binutils-gdb.git] / gdb / ChangeLog
1 2003-08-29 Mark Kettenis <kettenis@gnu.org>
2
3 * configure.in: Remove redundant AC_MSG_RESULT in check for
4 uintptr_t in stdint.h.
5 * configure: Regenerated.
6
7 * amd64-nat.h (struct regcache): Add opaque declaration.
8
9 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
10 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
11 Change "register array" to "register cache" in comments.
12 (x86_64_linux_gregset64_reg_offset): New variable.
13 (GETREGS_SUPPLIES): Remove macro.
14 (supply_gregset): Call amd64_supply_native_gregset instead of
15 x86_64_linux_supply_gregset.
16 (fill_gregset): Rename `regno' to `regnum'. Call
17 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
18 (store_regs): Rename `regno' to `regnum'.
19 (store_fpregs): Rename `regno' to `regnum'.
20 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
21 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
22 Reorganize function a bit.
23 (store_inferior_registers): Rename `regno' to `regnum'. Use
24 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
25 Reorganize function a bit.
26 (_initialize_x86_64_linux_nat): New function.
27 * config/i386/x86-64linux.mh.
28
29 2003-08-29 Andrew Cagney <cagney@redhat.com>
30
31 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
32 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
33 (target_remove_watchpoint): Delete macro.
34 (target_insert_watchpoint): Delete macro.
35 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
36 (remote_mips_stopped_by_watchpoint): Delete declaration.
37 (remote_mips_remove_watchpoint): Delete declaration.
38 (remote_mips_set_watchpoint): Delete declaration.
39 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
40 * remote-mips.c (_initialize_remote_mips): Set
41 "to_insert_watchpoint", "to_stopped_by_watchpoint",
42 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
43 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
44 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
45 (mips_stopped_by_watchpoint): Rename
46 remote_mips_stopped_by_watchpoint.
47 (mips_can_hardware_watchpoint): Rename
48 remote_mips_can_use_hardware_watchpoint, update function
49 signature.
50
51 2003-08-29 Mark Kettenis <kettenis@gnu.org>
52
53 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
54 USER_DS. We haven't given them a register number yet.
55
56 * amd64-nat.h: New file.
57 * amd64-nat.c: New file.
58 * amd64fbsd-nat.c: Include "amd64-nat.h".
59 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
60 (amd64fbsd32_r_reg_offset): New variable.
61 (supply_gregset): Simply call amd64_supply_native_gregset.
62 (fill_gregset): Rename `regno' to `regnum'. Simply call
63 amd64_collect_native_gregset.
64 (fill_fpregset): Rename `regno' to `regnum'.
65 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
66 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
67 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
68 `fpregset_t'. Call amd64_supply_native_gregset instead of
69 supply_gregset. Call x86_64_supply_fxsave instead of
70 supply_fpregset.
71 (store_inferior_registers): Rename `regno' to `regnum'. Replace
72 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
73 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
74 `fpregset_t'. Call amd64_collect_native_gregset instead of
75 fill_gregset. Call x86_64_collect_fxsave instead of
76 fill_fpregset.
77 (_initialize_am64fbsd_nat): Initialize
78 amd64_native_gregset32_reg_offset and
79 amd64_native_gregset64_reg_offset.
80 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
81
82 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
83 null pointer. Fix typo in comment.
84
85 * regcache.c (supply_register): Reimplement to call
86 regcache_raw_supply.
87 (regcache_collect): Reimplement by calling regcache_raw_collect.
88
89 2003-08-28 Mark Kettenis <kettenis@gnu.org>
90
91 * regcache.c (register_buffer): Consitify first argument.
92 (regcache_raw_supply, regcache_raw_collect): New
93 functions.
94
95 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
96
97 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
98 by Nathan J. Williams.
99
100 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
101
102 * lin-lwp.c (wait_lwp): New function, copied from
103 stop_wait_callback. Clean up.
104 (stop_wait_callback): Use wait_lwp.
105
106 2003-08-28 Andrew Cagney <cagney@redhat.com>
107
108 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
109 flavour and disassembler options.
110 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
111 (mips_gdbarch_init): Set "print_insn". Delete initialization of
112 deprecated_tm_print_insn_info.
113
114 2003-08-27 Andrew Cagney <cagney@redhat.com>
115
116 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
117 Use target_read_memory.
118 (s390_get_frame_info): Update. Do not reference
119 deprecated_tm_print_insn_info.
120 (s390_check_function_end, s390_is_sigreturn): Ditto.
121
122 2003-08-27 Andrew Cagney <cagney@redhat.com>
123
124 * Makefile.in (cris-tdep.o): Update dependencies.
125 * cris-tdep.c: Include "gdb_assert.h".
126 (cris_gdbarch_init): Set print_insn.
127 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
128 (cris_delayed_get_disassembler): Simplify, directly call the
129 disassembler returned by cris_get_disassembler.
130 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
131 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
132 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
133 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
134 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
135 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
136 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
137 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
138 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
139 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
140 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
141 (gdb_print_insn_sparc): Delete function.
142 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
143 deprecated_tm_print_insn_info.
144 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
145 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
146 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
147 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
148 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
149 * s390-tdep.c (gdb_print_insn_s390): Delete function.
150 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
151 (s390_gdbarch_init): Set print_insn.
152
153 2003-08-27 Andrew Cagney <cagney@redhat.com>
154
155 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
156 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
157 * infcall.c (call_function_by_hand): Convert the entry point
158 address into a code address.
159
160 2003-08-27 Andrew Cagney <cagney@redhat.com>
161
162 * dsrec.c: Include "gdb_string.h".
163 * Makefile.in (dsrec.o): Update dependencies.
164
165 2003-08-27 Michael Chastain <mec@shout.net>
166
167 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
168
169 2003-08-27 Andrew Cagney <cagney@redhat.com>
170
171 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
172 (alpha_osf1_init_abi): Do not set call_dummy_address.
173
174 2003-08-27 David Carlton <carlton@kealia.com>
175
176 From Randolph Chung <tausq@debian.org>:
177 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
178 compiles with -Wformat-nonliteral -Werror.
179
180 2003-08-26 Jim Blandy <jimb@redhat.com>
181
182 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
183 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
184 bfd_lookup_symbol, since we only want symbols in code sections.
185 (look_for_base): Pass zero as the SECT_FLAGS argument to
186 bfd_lookup_symbol, since we're not concerned about which section
187 the symbol is in.
188
189 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
190
191 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
192 we are frameless or the return address register is already known.
193
194 2003-08-26 Andrew Cagney <cagney@redhat.com>
195
196 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
197 in size. Add comments.
198
199 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
200
201 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
202 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
203
204 2003-08-26 Jason Merrill <jason@redhat.com>
205
206 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
207 case out of #ifdef MIPS block.
208
209 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
210
211 PR java/1322
212 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
213 available before calling SECT_OFF_TEXT.
214 * PROBLEMS: Remove description of java/1322.
215
216 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
217
218 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
219 bof, and nat0-nat127 as pseudo-registers.
220 (ia64_frame_cache): New struct used to cache frame info.
221 (ia64_register_reggroup_p): New routine used to override default
222 register grouping so registers without names are still saved and
223 restored.
224 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
225 pseudo values.
226 (ia64_pseudo_register_read): New routine to read pseudo-registers.
227 (ia64_pseudo_register_write): New routine to write pseudo-registers.
228 (ia64_alloc_frame_cache): New routine to create a new
229 ia64_frame_cache.
230 (examine_prologue): Change prototype to add next_frame pointer.
231 Assume frameless until otherwise proven. Verify that the cfm for
232 current frame matches the cfm that should occur for the prologues
233 alloc insn and if equal, mark as not frameless. At end of routine,
234 if not frameless, calculate registers for the previous frame and store
235 in the cache, if a cache is provided.
236 (ia64_skip_prologue): Use new prototype when calling examine_prologue
237 and pass 0 for next_frame.
238 (ia64_store_return_value): Change to use convert_typed_floating()
239 instead of calling ia64_convert_to_raw().
240 (ia64_extract_return_value): Change to use convert_typed_floating()
241 instead of calling ia64_convert_to_virtual().
242 (ia64_frame_cache): New routine to support new frame model.
243 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
244 (ia64_frame_sniffer): Ditto.
245 (ia64_sigtramp_frame_init_saved_regs): Ditto.
246 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
247 (ia64_sigtramp_frame_prev_register): Ditto.
248 (ia64_sigtramp_frame_sniffer): Ditto.
249 (ia64_frame_base_address): Ditto.
250 (ia64_extract_struct_value_address): Change to issue error message.
251 (ia64_frame_align): New routine to align sp.
252 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
253 (ia64_push_arguments): Removed. Logic moved to
254 ia64_push_dummy_call().
255 (ia64_push_return_address): Ditto.
256 (ia64_unwind_dummy_id): New function.
257 (ia64_unwind_pc): Ditto.
258 (ia64_convert_register_p): Ditto.
259 (ia64_register_to_value): Ditto.
260 (ia64_value_to_register): Ditto.
261 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
262 (ia64_register_byte, ia64_register_raw_size): Ditto.
263 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
264 (ia64_saved_pc_after_call): Ditto.
265 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
266 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
267 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
268 (ia64_register_convert_to_raw): Ditto.
269 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
270 (ia64_init_extra_frame_info): Ditto.
271 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
272 (ia64_gdbarch_init): Remove registering of deprecated functions that
273 are no longer used. Add registration of new gdbarch functions.
274 Remove registering deprecated_write_sp. Replace
275 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
276 Delete set_gdbarch_deprecated_register_convertible(),
277 set_gdbarch_deprecated_register_convert_to_virtual(), and
278 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
279 set_gdbarch_deprecated_register_size(),
280 set_gdbarch_deprecated_register_bytes(),
281 set_gdbarch_pcregnum(),
282 set_gdbarch_deprecated_register_byte(),
283 set_gdbarch_deprecated_register_raw_size(),
284 set_gdbarch_deprecated_max_register_raw_size(),
285 set_gdbarch_deprecated_register_virtual_size(),
286 and set_gdbarch_deprecated_max_register_virtual_size() calls.
287 Replace set_gdbarch_deprecated_extract_return_value() with
288 set_gdbarch_extract_return_value(). Remove calls to:
289 set_gdbarch_deprecated_saved_pc_after_call();
290 set_gdbarch_deprecated_frame_chain(),
291 set_gdbarch_deprecated_frame_saved_pc(),
292 set_gdbarch_deprecated_frame_init_saved_regs(),
293 set_gdbarch_deprecated_get_saved_register(),
294 set_gdbarch_deprecated_call_dummy_words(),
295 set_gdbarch_deprecated_sizeof_call_dummy_words(),
296 set_gdbarch_deprecated_init_extra_frame_info(),
297 set_gdbarch_deprecated_frame_args_address(),
298 set_gdbarch_deprecated_frame_locals_address(),
299 and set_gdbarch_deprecated_dummy_write_sp().
300 Add set_gdbarch_convert_register_p(),
301 set_gdbarch_register_to_value(),
302 set_gdbarch_value_to_register(),
303 set_gdbarch_push_dummy_call(),
304 set_gdbarch_frame_align(),
305 set_gdbarch_unwind_dummy_id(),
306 set_gdbarch_unwind_pc(),
307 frame_unwind_append_sniffer(),
308 frame_unwind_append_sniffer(),
309 and frame_base_set_default().
310
311 2003-08-25 Chris Demetriou <cgd@broadcom.com>
312
313 * configure.tgt: Document need for special "mipsisa64" handling.
314 (mipsisa64*-*-linux64): Handle as target linux64.
315 (mipsisa64*-*-*): Handle as target embed64.
316
317 2003-08-18 Michael Chastain <mec@shout.net>
318
319 * PROBLEMS: Document pr gdb/1322, the Java anonymous
320 objfile bug.
321
322 2003-08-24 Mark Kettenis <kettenis@gnu.org>
323
324 * i387-tdep.h: Update copyright date.
325 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
326
327 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
328 CFLAGS games to reflect reality.
329
330 2003-08-24 Andrew Cagney <cagney@redhat.com>
331
332 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
333 GDB_MULTI_ARCH is always non-zero.
334 * osabi.c (_initialize_gdb_osabi): Ditto.
335 (gdbarch_init_osabi): Ditto.
336 * sparc-tdep.c: Ditto for #if code.
337
338 2003-08-23 Mark Kettenis <kettenis@gnu.org>
339
340 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
341 Update comments.
342 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
343 comments.
344 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
345 x86_64_supply_fxsave.
346 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
347 x86_64_supply_fxsave.
348 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
349 x86_64_supply_fxsave.
350
351 2003-08-23 Andreas Jaeger <aj@suse.de>
352
353 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
354 i387_supply_fxsave.
355
356 2003-08-23 Mark Kettenis <kettenis@gnu.org>
357
358 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
359 i387_supply_register.
360 (go32_fetch_registers): Adjust call to i387_supply_fsave.
361 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
362 i387_supply_fsave.
363 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
364 i387_supply_fxsave.
365 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
366 i387_supply_fsave.
367 * i386bsd-nat.c (supply_fpregset): Adjust call to
368 i387_supply_fsave.
369 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
370 call to i387_supply_fxsave. Call i387_supply_fsave instead of
371 supply_fpregset.
372 (store_inferior_registers): Remove extraneous whitespace. Call
373 i387_fill_fsave instead of fill_fpregset.
374 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
375 (supply_fpregset): Likewise.
376 * i386v4-nat.c (supply_fpregset): Adjust call to
377 i387_supply_fsave.
378 * i386-interix-nat.c (supply_fpregset): Adjust call to
379 i387_supply_fsave.
380 * i386-linux-nat.c (supply_fpregset): Adjust call to
381 i387_supply_fsave.
382 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
383 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
384 i387supply_fsave and i387_supply_fxsave.
385 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
386 Incorporate code from `i387_supply_register.
387 (i387_supply_register): Remove.
388 (i387_supply_fxsave): Add `regnum' argument.
389 Update comments.
390 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
391 prototype.
392 (i387_supply_register): remove prototype.
393 Update comments.
394
395 2003-08-22 Michael Chastain <mec@shout.net>
396
397 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
398 Add lines for files in gdb/testsuite/gdb.cp/* that are
399 still not 8.3 unique.
400
401 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
402
403 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
404 TYPE_VPTR_FIELDNO is valid.
405
406 2003-08-19 Mark Kettenis <kettenis@gnu.org>
407
408 * utils.c (set_width_command): Remove prototypes.
409 (set_screen_size): New prototype.
410 (init_page_info): Simplify by fetching the screen size from
411 Readline. Call set_screen_size.
412 (set_screen_size): New function.
413 (set_width): Add missing whitespace in comment.
414 (set_width_command): Call set_screen_size.
415 (set_height_command): New function.
416 (initialize_utils): Fix formatting. Make "set height" command
417 call set_height_command. Remove redundant code that turns off
418 pagination if output isn't a terminal. Remove redundant call to
419 set_width_command.
420
421 2003-08-22 Mark Kettenis <kettenis@gnu.org>
422
423 * sparc64-tdep.h (sparc64_regnum): Fix comment.
424 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
425 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
426 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
427 `case' keyword.
428 (sparc64_register_info): Give the reister with number
429 SPARC64_STATE_REGNUM a name.
430 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
431 %asi and %ccr.
432 (sparc64_push_dummy_call): Take BIAS into account when checking
433 stcak alignment.
434 (sparc_software_single_step): Remove assertions that check whether
435 NPC and NNPC were zero.
436 (sparc_supply_rwindow): Make public. Merge functionality with
437 sparc64_supply_rwindow.
438 (sparc_fill_rwindow): Make public. Merge functionality with
439 sparc64_fill_rwindow.
440 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
441 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
442 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
443 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
444 sparc_supply_rwindow instead of sparc64_supply_rwindow.
445
446 * reggroups.c: Add whitespace after declarations of local
447 variables in functions.
448
449 2003-08-21 Michael Chastain <mec@shout.net>
450
451 * gdbtypes.h: Change array bound type from an int to enum.
452
453 2003-08-21 Andrew Cagney <cagney@redhat.com>
454
455 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
456 * config/sparc/tm-sparc.h: Ditto.
457 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
458 unconditionally.
459 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
460
461 2003-07-13 Mark Kettenis <kettenis@gnu.org>
462
463 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
464 (register_objfile_data, set_objfile_data, objfile_data): New
465 prototypes.
466 * objfiles.c (objfile_alloc_data, objfile_free_data): New
467 prototypes.
468 (allocate_objfile): Call objfile_alloc_data.
469 (free_objfile): Call objfile_free_data.
470 (struct objfile_data): New.
471 (struct objfile_data_registration): New.
472 (struct objfile_data_registry): New.
473 (objfile_data_registry): New variable.
474 (register_objfile_data): New function.
475 (objfile_alloc_data, objfile_free_data): New functions.
476 (set_objfile_data, objfile_data): New functions.
477 * dwarf2-frame.c (dwarf2_frame_data): New variable.
478 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
479 (_initialize_dwarf2_frame): New function and prototype.
480
481 2003-08-21 Andrew Cagney <cagney@redhat.com>
482
483 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
484 a specific architecture.
485 * arch-utils.h (set_architecture_from_arch_mach): Delete
486 declaration.
487 (target_architecture_hook): Delete declaration.
488 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
489 (default_float_format): Assume GDB_MULTI_ARCH.
490 (default_double_format): Assume GDB_MULTI_ARCH.
491 (set_endian_from_file): Delete function.
492 (arch_ok): Delete function.
493 (set_arch): Delete function.
494 (set_architecture_from_arch_mach): Delete function.
495 (set_architecture_from_file): Delete function.
496 (set_architecture): Assume GDB_MULTI_ARCH.
497 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
498
499 2003-08-21 Mark Kettenis <kettenis@gnu.org>
500
501 Rewrite FreeBSD/sparc64 native configuration.
502 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
503 * sparc64fbsd-nat.c: New file.
504 * sparc64fbsd-tdep.c: New file.
505 * sparc64-tdep.c sparc64-tdep.h: New files.
506 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
507 sparc64fbsd-tdep.o): New dependencies.
508 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
509 and sparc64fbsd-tdep.c.
510 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
511 * config/sparc/fbsd.mh: Remove copyright notice.
512 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
513 sparcbsd-nat.o.
514 * config/sparc/fbsd.mt: Remove copyright notice.
515 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
516 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
517 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
518 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
519 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
520 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
521 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
522 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
523 "sparc/tm-sp64.h".
524 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
525 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
526
527 2003-08-21 Michael Chastain <mec@shout.net>
528
529 * symtab.h: Add doco on the space critical structures and
530 some measurements of space usage.
531
532 2003-08-21 Michael Snyder <msnyder@redhat.com>
533
534 * tracepoint.c (trace_dump_command): Trace break address
535 is subject to DECR_PC_AFTER_BREAK.
536 (set_traceframe_context): Make "trace_line" an int.
537 Fixes suggested by Mark Newman <mark.newman@lmco.com>
538
539 2003-08-20 Michael Snyder <msnyder@redhat.com>
540
541 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
542 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
543 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
544 argument passing.
545 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
546 functions, replace sh_push_dummy_call.
547 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
548
549 2003-08-20 Michael Chastain <mec@shout.net>
550
551 * gdbtypes.h (struct main_type): Rearrange to save space.
552
553 2003-08-20 Michael Snyder <msnyder@redhat.com>
554
555 * trad-frame.c: Comment typo fix.
556
557 2003-08-20 Michael Snyder <msnyder@redhat.com>
558 Kevin Buettner <kevinb@redhat.com>
559
560 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
561 (frv_frame_init_saved_regs): Add declaration.
562 (frame_extra_info): Add new field ``saved_regs''.
563 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
564 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
565 Update frame related code.
566 (frv_extract_struct_value_address): Adjust formatting.
567 * Makefile.in (frv-tdep.o): Update dependencies.
568 * config/frv/tm-frv.h (target_insert_watchpoint)
569 (target_remove_watchpoint, target_insert_hw_breakpoint)
570 (target_remove_hw_breakpoint): Delete these macros.
571 (remote_insert_watchpoint, remote_remove_watchpoint)
572 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
573 these declarations.
574
575 2003-08-20 Michael Chastain <mec@shout.net>
576
577 * defs.h (ENUM_BITFIELD): New macro.
578 * symtab.h (ENUM_BITFIELD): Use it.
579 (BYTE_BITFIELD): Remove old macro, which was already disabled.
580
581 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
582
583 * MAINTAINERS (write after approval): Add myself.
584
585 2003-08-18 Andrew Cagney <cagney@redhat.com>
586
587 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
588 * gdbarch.h, gdbarch.c: Re-generate.
589 * infcall.c (call_function_by_hand): Adjust the SP by
590 frame_red_zone_size before allocating any stack space.
591 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
592 * x86-64-tdep.c (x86_64_frame_align): New function.
593 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
594
595 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
596 Remove code adjusting SP so that it skips over the Red Zone.
597
598 2003-08-18 Mark Kettenis <kettenis@gnu.org>
599
600 * NEWS (New native configurations): Mention FreeBSD/amd64.
601
602 2003-08-18 Andrew Cagney <cagney@redhat.com>
603
604 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
605 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
606 "m68k_frame_p".
607 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
608
609 2003-08-18 Mark Kettenis <kettenis@gnu.org>
610
611 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
612
613 2003-08-18 Michal Ludvig <mludvig@suse.cz>
614
615 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
616 Define.
617 * i386-linux-nat.c: Include "linux-nat.h".
618 (child_post_startup_inferior): New function.
619
620 2003-08-18 Mark Kettenis <kettenis@gnu.org>
621
622 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
623 at the start of a frameless function. This probably fixes PR
624 backtrace/1338.
625
626 2003-08-17 Michael Chastain <mec@shout.net>
627
628 * symfile.c (find_sym_fns): Remove special case for apollo target.
629
630 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
631
632 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
633 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
634 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
635 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
636 (linux_supports_tracevforkdone): New function.
637 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
638 TRACEVFORKDONE.
639 (child_follow_fork): Handle vfork.
640 (linux_handle_extended_wait): Likewise. Also handle exec.
641 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
642 * NEWS: Mention fork tracing.
643
644 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
645
646 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
647
648 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
649
650 * Makefile.in (i386-linux-nat.o): Update dependencies.
651 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
652 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
653 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
654 * i386-linux-nat.c: Include "linux-nat.h".
655 (child_post_startup_inferior): New function.
656 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
657 * infptrace.c (kill_inferior): Wrap in #ifdef.
658 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
659 attaching to each LWP.
660 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
661 (init_lin_lwp_ops): Fill in some more operations.
662 * linux-nat.h (linux_enable_event_reporting)
663 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
664 prototypes.
665 * linux-nat.c (linux_enable_event_reporting): New function.
666 (child_post_attach, linux_child_post_startup_inferior)
667 (child_post_startup_inferior, child_follow_fork)
668 (linux_handle_extended_wait, kill_inferior): New functions.
669
670 2003-08-16 Andrew Cagney <cagney@redhat.com>
671
672 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
673 * gdbarch.h, gdbarch.c: Re-generate.
674
675 2003-08-16 Mark Kettenis <kettenis@gnu.org>
676
677 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
678
679 2003-08-16 Andrew Cagney <cagney@redhat.com>
680
681 * NEWS: Mention that "set prompt-escape-char" was deleted.
682 * top.c (get_prompt_1): Delete function.
683 (gdb_prompt_escape):
684 (init_main): Do not clear "gdb_prompt_escape". Delete "set
685 prompt-escape-char" command.
686 (MAX_PROMPT_SIZE): Delete macro.
687 (get_prompt): Simplify, do not call get_prompt_1.
688
689 2003-08-16 Andrew Cagney <cagney@redhat.com>
690
691 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
692 -Werror. -Wformat-nonliteral problems.
693
694 2003-08-15 J. Brobecker <brobecker@gnat.com>
695
696 Further multiarching work mostly for hppa64-*-hpux11:
697 * hppa-tdep.h: New file.
698 * hppa-tdep.c: #include hppa-tdep.c.
699 (hppa32_num_regs): Renamed from hppa_num_regs.
700 (hppa64_num_regs): New constant.
701 (hppa64_call_dummy_breakpoint_offset): New constant.
702 (hppa32_call_dummy_length): New constant.
703 (hppa64_call_dummy_length): New constant.
704 (hppa32_stack_align): Make name 32bit explicit.
705 (hppa32_register_virtual_type): Likewise.
706 (hppa32_extract_return_value): Likewise.
707 (hppa32_use_struct_convention): Likewise.
708 (hppa32_store_return_value): Likewise.
709 (hppa64_register_virtual_type): New function.
710 (hppa64_extract_return_value): New function.
711 (hppa64_use_struct_convention): New function.
712 (hppa64_store_return_value): New function.
713 (hppa_frame_locals_address): Remove declaration, function does
714 not exist anymore.
715 (hppa_register_byte): Add support for PA64 ABI.
716 (hppa_gdbarch_init): Add support for PA64 ABI.
717 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
718 Make name 32bit explicit.
719 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
720 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
721 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
722 (hppa64_hpux_frame_base_before_sigtramp): New function.
723 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
724 * config/pa/tm-hppa64.h: Remove macros that are no longer
725 necessary now that the gdbarch vector is properly setup.
726 Transform some macros into function calls. Some minor cleanup.
727 * config/pa/tm-hppah.h: Update function calls in macros
728 following the function renaming in hppa-hpux-tdep.c.
729 * Makefile.in (hppa_tdep_h): New variable.
730 (hppa-tdep.o): Add dependency over hppa_tdep_h.
731
732 2003-08-14 Michael Snyder <msnyder@redhat.com>
733
734 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
735
736 2003-08-13 J. Brobecker <brobecker@gnat.com>
737
738 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
739 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
740 routine.
741
742 2003-08-13 Michael Snyder <msnyder@redhat.com>
743
744 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
745 (frv_saved_pc_after_call): Use deprecated ftype.
746 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
747 (frv_remote_translate_xfer_address): Remove.
748 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
749
750 2003-08-13 J. Brobecker <brobecker@gnat.com>
751
752 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
753 initialization after the common gdbarch initialization, not before.
754
755 2003-08-13 J. Brobecker <brobecker@gnat.com>
756
757 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
758 (ADDR_BITS_REMOVE): Remove, redundant.
759
760 2003-08-13 J. Brobecker <brobecker@gnat.com>
761
762 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
763 gdbarch method to clear the 2 low bits of text addresses.
764
765 2003-08-12 Andrew Cagney <cagney@redhat.com>
766
767 * Makefile.in (dsrec.o): Update dependencies.
768 * dsrec.c: Include "gdb_assert.h".
769 (make_srec): Use snprintf instead of sprintf, use a literal format
770 string.
771
772 2003-08-12 Andrew Cagney <cagney@redhat.com>
773
774 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
775 FRAME_OBSTACK_ZALLOC.
776
777 2003-08-12 Kevin Buettner <kevinb@redhat.com>
778
779 * i386-tdep.c (i386_gdbarch_init): Enable default support for
780 SSE registers.
781
782 2003-08-10 Mark Kettenis <kettenis@gnu.org>
783
784 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
785 amd64fbsd_sc_reg_offset): Add extern declarations.
786 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
787 declarations.
788
789 2003-08-11 Ben Elliston <bje@wasabisystems.com>
790
791 * MAINTAINERS (write after approval): Update my mail address.
792
793 2003-08-10 Andrew Cagney <cagney@redhat.com>
794
795 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
796
797 2003-08-10 Mark Kettenis <kettenis@gnu.org>
798
799 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
800 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
801 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
802 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
803 i386bsd_sc_reg_offset): Add extern declarations.
804 * i386obsd-nat.c: Include "i386-tdep.h"
805 (_initialize_i386obsd_nat): Remove extern declarations.
806 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
807 declarations.
808 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
809 declarations.
810
811 * i386-tdep.c (i386_register_to_value): Use get_frame_register
812 instead of frame_read_register.
813 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
814 instead of frame_read_register. Use I386_ESP_REGNUM instead of
815 SP_REGNUM.
816 (i386_frame_prev_register): Use frame_unwind_register_unsigned
817 instead of frame_unwind_unsigned_register. Use
818 I386_EFLAGS_REGISTER instead of PS_REGNUM.
819 (i386_get_longjmp_target): Use regcache_read_unsigned_register
820 instead of read_register. Use builtin_type_void_data_ptr instead
821 of builtin_type_void_func_ptr when extracting the address of the
822 jmp_buf.
823 (i386_extract_return_value, i386_store_return_value,
824 i386_pseudo_register_read, i386_pseudo_register_write): Use
825 register_size instead REGISTER_RAW_SIZE.
826
827 2003-08-10 Andrew Cagney <cagney@redhat.com>
828
829 * infcall.c (call_function_by_hand): Use xstrprintf instead of
830 sprintf. Make "name" constant.
831
832 2003-08-10 Mark Kettenis <kettenis@gnu.org>
833
834 * i387-tdep.c (i387_register_to_value): Use get_frame_register
835 instead of frame_read_register.
836 (i387_print_float_info): Use get_frame_register and
837 get_frame_register_unsigned instead of frame_register_read.
838
839 * i386fbsd-nat.c: Include "i386-tdep.h".
840 (child_resume): Make `eflags' an ULONGEST. Use
841 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
842 instead of register_read and register_write.
843
844 * i386bsd-nat.c (fetch_inferior_registers,
845 store_inferior_registers): Don't use && at the end of a line.
846 (_initialize_i386bsd_nat): Fix typo.
847
848 * frame.c (_initialize_frame): Add missing backslash.
849
850 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
851 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
852 and supply_register instead of manipulating the register buffer
853 directly.
854
855 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
856 * config/i386/nm-i386sol2.h
857 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
858
859 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
860 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
861 instructions that GCC likes to mingle into the prologue. Fixes
862 gdb/1253 and gdb/1255.
863
864 2003-08-09 Andrew Cagney <cagney@redhat.com>
865
866 Fix GDB PR cli/926.
867 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
868 * command.h (add_setshow_uinteger_cmd): Declare.
869 * frame.c (set_backtrace_cmd): New function.
870 (show_backtrace_cmd): New function.
871 * frame.c (_initialize_frame): Replace "set/show
872 backtrace-below-main" with "set/show backtrace past-main". Add
873 command "set/show backtrace limit".
874 (backtrace_past_main): Rename "backtrace_below_main".
875 (backtrace_limit): New variable.
876 (get_prev_frame): Update. Check the backtrace_limit.
877
878 2003-08-09 Andrew Cagney <cagney@redhat.com>
879
880 * defs.h (xstrprintf): Declare.
881 * utils.c (xstrprintf): New function.
882 * breakpoint.c (insert_breakpoints): Replace sprintf and
883 non-literal format strings, with xstrprintf and cleanups.
884 (delete_breakpoint,breakpoint_re_set): Ditto.
885 (commands_command, insert_breakpoints): Ditto.
886 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
887 (break_at_finish_command_1): Ditto.
888
889 2003-08-09 Andrew Cagney <cagney@redhat.com>
890
891 * MAINTAINERS (language support): List Adam Fedor as Objective C
892 maintainer.
893
894 2003-08-08 J. Brobecker <brobecker@gnat.com>
895
896 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
897 are now multiarched.
898
899 2003-08-08 J. Brobecker <brobecker@gnat.com>
900
901 * config/pa/tm-hppa64.h: Remove lots of macros that are no
902 longer necessary now that hppa64 is partially multiarch'ed.
903
904 2003-08-08 Andrew Cagney <cagney@redhat.com>
905
906 * interps.c (interp_set): Check for a NULL "old_interp".
907
908 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
909
910 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
911 (install-only): Support DESTDIR.
912 (uninstall): Likewise.
913 (install-gdbtk): Likewise.
914
915 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
916
917 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
918 contains something meaningful at all times.
919
920 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
921
922 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
923
924 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
925
926 * MAINTAINERS (write after approval): Added self.
927
928 2003-08-07 Andrew Cagney <cagney@redhat.com>
929
930 * inferior.h (AT_SYMBOL): Define.
931 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
932 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
933 * mips-tdep.c (mips_call_dummy_address): Delete function.
934 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
935 set call_dummy_address.
936
937 2003-08-07 Andrew Cagney <cagney@redhat.com>
938
939 * language.c (op_error): Delete function.
940 (binop_type_check): Delete function.
941 * language.h (type_op_error, range_op_error): Delete macros.
942 (op_error): Delete declaration.
943
944 2003-08-07 Andrew Cagney <cagney@redhat.com>
945
946 * interps.h (INTERP_MI2, INTERP_MI3): Define.
947
948 2003-08-07 Michal Ludvig <mludvig@suse.cz>
949
950 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
951 (x86_64_push_arguments): Skip the red zone.
952
953 2003-08-05 Andrew Cagney <cagney@redhat.com>
954
955 * reggroups.c (reggroup_next): Check for the final entry.
956
957 2003-08-04 Andrew Cagney <cagney@redhat.com>
958
959 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
960 * cli/cli-script.c (define_command): Call query directly, instead
961 of passing it a buffer.
962 * ocd.c (ocd_error): Pass error a constant format string.
963 * remote-mips.c (mips_error): Use fputs_filtered.
964
965 * solib-svr4.c (_initialize_svr4_solib): Update
966 register_gdbarch_data call.
967 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
968
969 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
970 (register_gdbarch_data): Delete "free" parameter. Update
971 comments.
972 * gdbarch.h, gdbarch.c: Re-generate.
973 * reggroups.c (_initialize_reggroup): Update.
974 * gnu-v3-abi.c (init_gnuv3_ops): Update.
975 * frame-base.c (_initialize_frame_base): Update.
976 * frame-unwind.c (_initialize_frame_unwind): Update.
977 * user-regs.c (_initialize_user_regs): Update.
978 * remote.c (_initialize_remote): Update.
979 * regcache.c (_initialize_regcache): Update.
980
981 * regcache.c (xfree_regcache_descr): Delete function.
982 (_initialize_regcache): Update call to register_gdbarch_data.
983 (init_regcache_descr, init_legacy_regcache_descr): Use
984 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
985
986 * remote.c (free_remote_state): Delete function.
987 (_initialize_remote): Update register_gdbarch_data.
988 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
989 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
990
991 2003-08-04 Andrew Cagney <cagney@redhat.com>
992
993 * reggroups.c (struct reggroup_el): Define.
994 (struct reggroups): Delete field "nr_group". Replace array
995 "group" with a "first" to "last" linked list.
996 (reggroups_init): Update. Allocate using gdbarch's obstack.
997 (reggroups_free): Delete function.
998 (add_group): Update. Add "el" parameter.
999 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1000 (default_groups): Update.
1001 (reggroup_next): Replace reggroups.
1002 (reggroups_dump): Update.
1003 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1004 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1005 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1006
1007 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1008
1009 * Makefile.in (tui-interp.o): Update dependencies.
1010
1011 2003-08-04 David Carlton <carlton@kealia.com>
1012
1013 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1014 to internal_error call.
1015 * source.c (forward_search_command): Add "%s" format argument.
1016 (reverse_search_command): Ditto.
1017 * top.c (quit_confirm): Ditto.
1018 * cli/cli-setshow.c (do_setshow_command): Ditto.
1019 * cp-valprint.c (cp_print_class_method): Replace
1020 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1021 (cp_print_class_member): Ditto.
1022 * event-top.c (command_line_handler): Ditto.
1023 * linux-proc.c (linux_info_proc_cmd): Ditto.
1024 * p-typeprint.c (pascal_type_print_base): Ditto.
1025 * p-valprint.c (pascal_object_print_class_method): Ditto.
1026 (pascal_object_print_class_member): Ditto.
1027 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1028 * remote.c (remote_cisco_section_offsets): Ditto.
1029 * top.c (command_line_input): Ditto.
1030 * utils.c (vwarning,error_stream,quit): Ditto.
1031 * valprint.c (print_floating,print_binary_chars)
1032 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1033
1034 2003-08-04 Andrew Cagney <cagney@redhat.com>
1035
1036 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1037
1038 2003-08-02 Andrew Cagney <cagney@redhat.com>
1039
1040 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1041 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1042 amd64fbsd-nat.c.
1043
1044 2003-08-02 Andrew Cagney <cagney@redhat.com>
1045
1046 * Makefile.in: Update all dependencies and definitions.
1047
1048 2003-08-02 Adam Fedor <fedor@gnu.org>
1049
1050 * linespec.c (is_objc_method_format): New function
1051 (decode_line_1, locate_first_half): Use it.
1052 Fixes PR objc/1298
1053
1054 2003-08-01 Andrew Cagney <cagney@redhat.com>
1055
1056 * NEWS: Mention that m32r is multi-arch.
1057 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1058 * configure.tgt: Recognize m32r-*-*.
1059 * config/m32r/tm-m32r.h: Delete file.
1060 * config/m32r/m32r.mt: New file.
1061 * m32r-rom.c (m32r_upload_command): Use hostent only when
1062 gethostname succeeds, in order to avoid a compilation
1063 warning.
1064 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1065 compiler warning.
1066
1067 2003-08-01 Michael Snyder <msnyder@redhat.com>
1068
1069 * sh-tdep.c (sh_frame_align): New gdbarch method.
1070 (sh_gdbarch_init): Set up frame_align method.
1071
1072 2003-07-31 Michael Snyder <msnyder@redhat.com>
1073
1074 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1075 which is already covered by the new frames infrastructure.
1076
1077 2003-07-31 Andrew Cagney <cagney@redhat.com>
1078
1079 * user-regs.c (struct user_reg): Add "next" link.
1080 (struct user_regs): Replace "user" with "first" and "last" links.
1081 (append_user_reg): Add pre-allocated "reg" parameter.
1082 (builtin_user_regs): Provide initial value for "last".
1083 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1084 (user_regs_init): Allocate memory from the gdbarch obstack.
1085 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1086 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1087 linked list.
1088 (usernum_to_user_reg): New function.
1089 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1090 (value_of_user_reg): Use usernum_to_user_reg.
1091 (user_regs_free): Delete function.
1092 (_initialize_user_regs): Update register_gdbarch_data call.
1093
1094 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
1095
1096 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1097
1098 2003-07-30 Michael Snyder <msnyder@redhat.com>
1099
1100 * value.h (value_being_returned): Add a struct_addr argument.
1101 * infcall.c (call_function_by_hand): Pass struct_addr to
1102 value_being_returned.
1103 * infcmd.c (print_return_value): Pass zero as struct_addr.
1104 * values.c (value_being_returned): If struct_addr is passed,
1105 use it instead of trying to recover it from the inferior.
1106
1107 2003-07-30 Kevin Buettner <kevinb@redhat.com>
1108
1109 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1110 the prologue analyzer won't need to attempt to extract the pc
1111 value from the woefully incomplete dummy frame.
1112 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1113 possible. Disable code which modifies the frame.
1114
1115 2003-07-28 Andrew Cagney <cagney@redhat.com>
1116
1117 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1118 to level 2.
1119 (annotate_breakpoints_table, annotate_record): Ditto.
1120 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1121 (annotate_field_name_end, annotate_field_value): Ditto.
1122 (annotate_field_end, annotate_frame_source_begin): Ditto.
1123 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1124 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1125 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1126 (annotate_frame_address_end, annotate_frame_address): Ditto.
1127 (annotate_frame_args, annotate_frame_end): Ditto.
1128 (annotate_frame_where, annotate_arg_begin): Ditto.
1129 (annotate_arg_name_end, annotate_arg_value): Ditto.
1130 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1131 (annotate_function_call, annotate_signal_name): Ditto.
1132 (annotate_signal_string, annotate_signal_name_end): Ditto.
1133 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1134 (annotate_value_begin, annotate_value_history_value): Ditto.
1135 (annotate_value_history_end, annotate_value_end): Ditto.
1136 (annotate_display_begin, annotate_display_number_end): Ditto.
1137 (annotate_display_format, annotate_display_expression): Ditto.
1138 (annotate_display_expression_end, annotate_display_value): Ditto.
1139 (annotate_display_end, annotate_array_section_begin): Ditto.
1140 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1141 (annotate_elt, annotate_array_section_end): Ditto.
1142
1143 2003-07-28 Andrew Cagney <cagney@redhat.com>
1144
1145 * regcache.c (struct regcache_descr): Update comments on
1146 nr_raw_registers.
1147 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1148 sizeof_raw_register_valid_p.
1149 (init_regcache_descr): Set nr_raw_registers and
1150 sizeof_raw_register_valid_p before calling
1151 init_legacy_regcache_descr.
1152
1153 2003-07-28 Andrew Cagney <cagney@redhat.com>
1154
1155 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1156 MOD NUM_REGS.
1157
1158 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
1159
1160 * thread.c (info_threads_command): Use get_selected_frame ().
1161 Check that there is at least one non-sentinel frame.
1162
1163 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1164
1165 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1166 (m68hc11_pop_frame): Remove.
1167 (m68hc11_frame_saved_pc): Remove.
1168 (m68hc11_frame_chain): Remove.
1169 (m68hc11_frame_init_saved_regs): Remove.
1170 (m68hc11_init_extra_frame_info): Remove.
1171 (m68hc11_store_struct_return): Remove.
1172 (m68hc11_saved_pc_after_call): Remove.
1173
1174 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1175
1176 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1177 frame unwind information.
1178 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1179 and adapted for frame unwinding.
1180 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1181 (m68hc11_unwind_pc): New function.
1182 (m68hc11_frame_unwind_cache): New function to analyze frames.
1183 (m68hc11_frame_this_id): New function to create new frame struct.
1184 (m68hc11_frame_prev_register): New function to unwind a register from
1185 the frame.
1186 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1187 (m68hc11_frame_p): New function for the above.
1188 (m68hc11_frame_base_address): New function to return fp of frame.
1189 (m68hc11_frame_args_address): Update for frame.
1190 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1191 (m68hc11_unwind_sp): New function.
1192 (m68hc11_unwind_dummy_id): New function.
1193 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1194 calls.
1195
1196 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1197
1198 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1199 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1200 when we are beyond the current pc.
1201
1202 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1203
1204 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1205 from m68hc11_push_arguments.
1206 (m68hc11_push_arguments): Remove.
1207 (m68hc11_push_return_address): Remove.
1208 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1209 handlers; remove deprecated_extra_stack_alignment_needed.
1210
1211 2003-07-27 Andrew Cagney <cagney@redhat.com>
1212
1213 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1214 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1215 REAL_PC and not the pointer.
1216 * hppa-hpux-tdep.c: Include frame.h
1217
1218 2003-07-27 Andrew Cagney <cagney@redhat.com>
1219
1220 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1221 GDB_MULTI_ACH_PARTIAL.
1222
1223 2003-07-27 Andrew Cagney <cagney@redhat.com>
1224
1225 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1226 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1227 operator at start and not end of line.
1228 (decode_prologue): Ditto.
1229 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1230 frame_unwind_register_unsigned instead of
1231 frame_unwind_unsigned_register.
1232 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1233 read_register.
1234 (m32r_push_dummy_call): Use register_size instead of
1235 REGISTER_RAW_SIZE.
1236 (m32r_frame_sniffer): Replace m32r_frame_p.
1237 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1238 * m32r-rom.c (report_transfer_performance): Delete extern
1239 declaration.
1240 (m32r_load, m32r_upload_command): Use print_transfer_performance
1241 instead of report_transfer_performance.
1242 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1243 / add_show_from_set.
1244
1245 2003-07-26 Andrew Cagney <cagney@redhat.com>
1246
1247 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1248 store_return_value and extract_struct_value_address.
1249
1250 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
1251
1252 PR c++/1267
1253 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1254 NULL, default to the section containing PC.
1255
1256 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1257
1258 * NEWS: Mention "regs" deprecated for m68hc11 too.
1259
1260 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1261 (m68hc11_print_register): New function to print out one register.
1262 (m68hc11_print_registers_info): New function to print registers.
1263 (show_regs): Deprecate and use the above.
1264 (m68hc11_gdbarch_init): Install the print_registers_info.
1265
1266 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1267
1268 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1269 that we have a SIGTRAP before returning non-zero.
1270
1271 2003-07-23 Michal Ludvig <mludvig@suse.cz>
1272 Elena Zannoni <ezannoni@redhat.com>
1273
1274 * linespec.c (decode_line_2): Avoid crash if
1275 find_function_start_sal() returns empty record.
1276
1277 2003-07-23 Andreas Schwab <schwab@suse.de>
1278
1279 * ia64-tdep.c (ia64_print_insn): New function.
1280 (ia64_gdbarch_init): Set print_insn to it.
1281 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1282 deprecated_tm_print_insn_info.
1283
1284 2003-07-22 Michael Snyder <msnyder@redhat.com>
1285
1286 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1287 handle 8-bit returns (long long).
1288 (h8300h_extract_return_value): Ditto.
1289 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1290
1291 2003-07-22 Andrew Cagney <cagney@redhat.com>
1292
1293 * gdbarch.c Include "gdb_obstack.h".
1294 (struct gdbarch): Add an "obstack".
1295 (alloc_gdbarch_data): Allocate the gdbarch data using
1296 GDBARCH_OBSTACK_CALLOC.
1297 (free_gdbarch_data): Delete function.
1298 (gdbarch_obstack_zalloc): New function.
1299 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1300 Assert that the architecture is not initialized.
1301 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1302 vector from the obstack.
1303 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1304 architecture obstack.
1305 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1306 (set_gdbarch_data): Assert that the data is not initialized.
1307 (struct gdbarch_data): Delete member "free".
1308 (register_gdbarch_data): Do not initialize "free".
1309 * gdbarch.h, gdbarch.c: Re-generate.
1310
1311 2003-07-22 Andrew Cagney <cagney@redhat.com>
1312
1313 * configure.in (build_warnings): Add -Wformat-nonliteral.
1314 * configure: Re-generate.
1315
1316 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1317
1318 * dwarf2loc.c (locexpr_describe_location): Fix typos.
1319
1320 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1321
1322 * findvar.c (read_var_value): Remove case for thread local storage
1323 variables. It is now entirely handled by the dwarf2 location
1324 expression code.
1325 * printcmd.c (address_info): Ditto.
1326 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1327 enumeration value.
1328 (struct symbol): Remove objfile field, which was used by
1329 LOC_THREAD_LOCAL_STATIC only.
1330 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1331 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1332 usage of objfile pointer.
1333 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1334 thread local variables.
1335 Add include of objfiles.h.
1336 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1337 storage variables.
1338 * Makefile.in (dwarf2loc.o): Update dependencies.
1339
1340 2003-07-22 Andrew Cagney <cagney@redhat.com>
1341
1342 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1343 get_frame_base.
1344 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1345 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1346 (struct value): Add opaque declaration.
1347 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1348
1349 2003-07-21 Andrew Cagney <cagney@redhat.com>
1350
1351 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1352 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1353
1354 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1355
1356 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1357 regcache_cooked_read_unsigned instead of read_register.
1358 (m68hc11_saved_pc_after_call): Likewise.
1359 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1360 instead of write_register.
1361 (m68hc11_register_type): New function.
1362 (m68hc11_register_virtual_type): Remove.
1363 (m68hc11_store_return_value): Convert to use the regcache.
1364 (m68hc11_extract_struct_value_address): Likewise.
1365 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1366 m68hc11_register_type; undeprecate store_return_value and
1367 extract_struct_value_address.
1368
1369 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1370
1371 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1372 and translate to use regcache.
1373 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1374
1375 2003-07-18 Andrew Cagney <cagney@redhat.com>
1376
1377 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1378 * gdbarch.h, gdbarch.c: Re-generate.
1379 * i386-tdep.c (i386_gdbarch_init): Do not set
1380 DWARF2_BUILD_FRAME_INFO.
1381 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1382 unconditionally.
1383 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1384 DWARF2_BUILD_FRAME_INFO.
1385
1386 2003-07-18 Andrew Cagney <cagney@redhat.com>
1387
1388 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1389 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1390
1391 2003-07-18 Andrew Cagney <cagney@redhat.com>
1392
1393 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1394 frame_unwind_address_in_block, instead of frame_pc_unwind.
1395 (dwarf2_frame_cache): Ditto.
1396
1397 2003-07-18 Andrew Cagney <cagney@redhat.com>
1398
1399 * user-regs.h (struct gdbarch): Declare opaque.
1400 * ui-out.h (struct ui_file): Declare opaque.
1401 * dwarf2-frame.h (struct frame_info): Declare opaque.
1402
1403 2003-07-18 Kris Warkentin <kewarken@qnx.com>
1404
1405 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1406 #include "...".
1407 (procfs_meminfo): Change strerror to safe_strerror.
1408 (procfs_can_run): Remove K&R badness.
1409
1410 2003-07-17 Michael Snyder <msnyder@redhat.com>
1411
1412 * remote-sim.c: Comment typo fix.
1413
1414 2003-07-17 Andrew Cagney <cagney@redhat.com>
1415
1416 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1417 configure.
1418 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1419 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1420 GDB_MULTI_ARCH_PARTIAL.
1421
1422 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
1423
1424 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1425 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1426 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1427
1428 2003-07-16 Theodore A. Roth <troth@openavr.org>
1429
1430 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1431 found.
1432 (avr_frame_unwind_cache): Don't unwind FP for main.
1433 Update a comment.
1434 Save the computed prev_sp.
1435 (avr_saved_regs_unwinder): Remove function.
1436 (avr_frame_prev_register): Use PC unwind logic from
1437 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1438
1439 2003-07-16 Andrew Cagney <cagney@redhat.com>
1440
1441 * frame-base.h (frame_base_p_ftype): Delete definition.
1442 (frame_base_append_predicate): Delete declaration.
1443 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1444 (frame_unwind_append_predicate): Delete declaration.
1445 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1446 (append_predicate): Delete parameter "p".
1447 (frame_unwind_append_predicate): Delete function.
1448 (frame_unwind_append_sniffer): Update call to append_predicate.
1449 (frame_unwind_free): Delete function.
1450 (_initialize_frame_unwind): Pass NULL as "free" to
1451 register_gdbarch_data.
1452 (frame_unwind_init): Append the dummy_frame_sniffer.
1453 (frame_unwind_find_by_frame): Simplify.
1454 * frame-base.c (struct frame_base_table): Delete field "p".
1455 (append_predicate): Delete parameter "p".
1456 (frame_base_append_predicate): Delete function.
1457 (frame_base_append_sniffer): Update call to append_predicate.
1458 (frame_base_free): Delete function.
1459 (frame_base_find_by_frame): Simplify.
1460 (_initialize_frame_base): Pass NULL as "free" to
1461 register_gdbarch_data.
1462 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1463 (x86_64_sigtramp_frame_sniffer): Replace
1464 "x86_64_sigtramp_frame_p".
1465 (x86_64_init_abi): Set the frame unwind sniffers.
1466 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1467 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1468 (m68k_gdbarch_init): Set the frame unwind sniffers.
1469 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1470 "i386_sigtramp_frame_p".
1471 (i386_frame_sniffer): Replace "i386_frame_p".
1472 (i386_gdbarch_init): Set the frame unwind sniffers.
1473 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1474 (avr_gdbarch_init): Set the frame unwind sniffers.
1475 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1476 "alpha_sigtramp_frame_p"
1477 (alpha_heuristic_frame_sniffer): Replace
1478 "alpha_heuristic_frame_p".
1479 (alpha_gdbarch_init): Set the frame unwind sniffers.
1480 (alpha_dwarf2_init_abi): Ditto.
1481 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1482 "alpha_debug_frame_p".
1483 (alpha_mdebug_frame_base_sniffer): Replace
1484 "alpha_mdebug_frame_base_p".
1485 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1486 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1487 (d10v_gdbarch_init): Set the frame unwind sniffer.
1488 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1489 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1490 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1491 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1492 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1493 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1494
1495 2003-07-16 Michael Snyder <msnyder@redhat.com>
1496
1497 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1498 should go thru sh_dsp_register_sim_regno, else the dsp regs
1499 will not get the right values.
1500
1501 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1502
1503 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1504 deprecated_store_floating by call to store_typed_floating.
1505 (sh_sh4_register_convert_to_raw): Substitute call to
1506 deprecated_extract_floating by call to extract_typed_floating.
1507
1508 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1509
1510 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1511
1512 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1513
1514 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1515 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1516 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1517 as possible.
1518 (do_pseudo_register): Remove.
1519 (sh_push_dummy_code): New function.
1520 (sh64_store_struct_return): Rename from sh_store_struct_return.
1521 Only called for sh64 now.
1522 (sh_extract_struct_value_address): Regcache'ify.
1523 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1524 and accomodate new tasks.
1525 (sh64_push_return_address): Rename from sh_push_return_address.
1526 Only called for sh64 now.
1527 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1528 Regcache'ify.
1529 (sh3e_sh4_extract_return_value): Regcache'ify.
1530 (sh_default_store_return_value): Ditto.
1531 (sh3e_sh4_store_return_value): Ditto.
1532 (sh_default_register_byte): Remove.
1533 (sh_sh4_register_byte): Remove.
1534 (sh_default_register_raw_size): Remove.
1535 (sh_sh4_register_raw_size): Remove.
1536 (sh_register_virtual_size): Remove.
1537 (sh_sh3e_register_virtual_type): Remove.
1538 (sh_sh3e_register_type): New function.
1539 (sh_sh4_register_virtual_type): Remove.
1540 (sh_sh4_register_type): New function.
1541 (sh_default_register_virtual_type): Remove.
1542 (sh_default_register_type): New function.
1543 (do_fv_register_info): Add parameters to accomodate call from
1544 sh_print_registers_info.
1545 (do_dr_register_info): Ditto.
1546 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1547 Add parameters to accomodate call from sh_print_registers_info.
1548 (sh_do_fp_register): Ditto.
1549 (sh64_do_pseudo_register): Call do_dr_register_info,
1550 do_fv_register_info and sh_do_fp_register with default parameters.
1551 (sh_do_register): Add parameters to accomodate call from
1552 sh_print_registers_info.
1553 (sh_print_register): Ditto.
1554 (sh_print_registers_info): Rename from sh_do_registers_info.
1555 Add parameters to be used as gdbarch_print_registers_info
1556 implementation. Accomodate removed do_pseudo_register function
1557 pointer.
1558 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1559 function pointer. Call sh_print_register with default parameters.
1560 (sh64_do_registers_info): Call sh_print_registers_info instead of
1561 sh_do_registers_info.
1562 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1563 detection of deprecated vs. non-deprecated functionality.
1564 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1565 function pointer assignments by direct function calls.
1566
1567 2003-07-15 Andrew Cagney <cagney@redhat.com>
1568
1569 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1570 (frame_register_unwind, create_new_frame): Ditto.
1571 (legacy_get_prev_frame, get_frame_type): Ditto.
1572 (get_frame_base_address): Use frame_base_find_by_frame.
1573 (get_frame_locals_address): Use frame_base_find_by_frame.
1574 (get_frame_args_address): Use frame_base_find_by_frame.
1575 * frame-base.h (frame_base_sniffer_ftype): Declare.
1576 (frame_base_append_sniffer): Declare.
1577 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1578 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1579 (frame_base_append_sniffer): New function.
1580 (frame_base_append_predicate): Add a NULL sniffer.
1581 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1582 (struct frame_base_table): Add "sniffer".
1583 (frame_base_free): Free the "sniffer" table.
1584 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1585 (frame_unwind_append_sniffer): Declare.
1586 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1587 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1588 (struct frame_unwind_table): Add "sniffer", delete "middle".
1589 (append_predicate): Add "sniffer" parameter, append the sniffer.
1590 (frame_unwind_init): Update append_predicate call.
1591 (frame_unwind_append_sniffer): New function.
1592 (frame_unwind_append_predicate): Update append_predicate call.
1593 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1594
1595 2003-07-15 Andrew Cagney <cagney@redhat.com>
1596
1597 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1598 before code inhibiting repeated unwind attempts. Add to
1599 commentary on that test's problems.
1600 * blockframe.c (inside_main_func): Look for "main" in the minimal
1601 symbol table.
1602 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1603 identical.
1604
1605 2003-07-15 Andrew Cagney <cagney@redhat.com>
1606
1607 * complaints.c (struct explanation): Define.
1608 (struct complaints): Change type of "explanation" to "struct
1609 explanation".
1610 (symfile_explanations): Convert to a "struct explanation" table.
1611 (vcomplaint): Update.
1612
1613 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1614
1615 * x86-64-linux-nat.c (regmap): Removed.
1616 (supply_gregset, fill_gregset): Call
1617 x86_64_linux_(fill,supply)_gregset functions.
1618 * x86-64-linux-tdep.c (USER_*): New defines.
1619 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1620 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1621 New functions.
1622 (fetch_core_registers): Ditto.
1623 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1624 * x86-64-linux-tdep.h: New file.
1625 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1626 and core-regset.o.
1627 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1628
1629 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1630
1631 * x86-64-tdep.c (x86_64_store_return_value): Use
1632 regcache_cooked_write_part instead of regcache_cooked_write.
1633
1634 * configure.host: Add x86_64-*-freebsd*.
1635 * configure.tgt: Add x86_64-*-freebsd*.
1636 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1637 * amd64fbsd-nat.c: New file.
1638 * amd64fbsd-tdep.c: New file.
1639 * config/i386/nm-fbsd64.h: New file.
1640 * config/i386/fbsd64.mh: New file.
1641 * config/i386/fbsd64.mt: New file.
1642
1643 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1644
1645 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1646 `sc_regs_offset' and `sc_fpregs_offset'.
1647 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1648 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1649 (alpha_sigtramp_register_address): Rewrite to use new members of
1650 `struct gdbarch_tdep'.
1651 (alpha_gdbarch_init): Initialize new members of struct
1652 gdbarch_tdep'.
1653 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1654 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1655 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1656 (alphafbsd_pc_in_sigtramp): Implement.
1657 (alphafbsd_sigtramp_offset): New function.
1658 (alphafbsd_sigcontext_addr): New function.
1659 (alphafbsd_init_abi): Initialize signal trampoline related members
1660 of `struct gdbarch_tdep'.
1661 (_initialize_alphafbsd_tdep): Add prototype.
1662
1663 2003-07-11 Theodore A. Roth <troth@openavr.org>
1664
1665 * Makefile.in (install-only): Quote sed expression when generating
1666 transformed_name.
1667
1668 2003-07-11 Richard Henderson <rth@redhat.com>
1669
1670 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1671 * dwarf2-frame.c: Include complaints.h.
1672 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1673 variable initialization; return NULL on error.
1674 (decode_frame_entry): New.
1675
1676 2003-07-11 Andrew Cagney <cagney@redhat.com>
1677
1678 * frame.h (frame_address_in_block): Delete declaration.
1679 * blockframe.c (frame_address_in_block): Delete function.
1680 (get_frame_block): Use get_frame_address_in_block.
1681 (block_innermost_frame): Ditto.
1682 * stack.c (print_frame, backtrace_command_1): Ditto.
1683
1684 * frame.h (get_frame_address_in_block): Declare.
1685 (frame_unwind_address_in_block): Declare.
1686 * frame.c (frame_unwind_address_in_block): New function.
1687 (get_frame_address_in_block): New function.
1688
1689 2003-07-10 Andrew Cagney <cagney@redhat.com>
1690
1691 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1692 pre-default. Note: re-generate has no effect.
1693
1694 2003-07-10 Andrew Cagney <cagney@redhat.com>
1695
1696 * gdbarch.sh: When a variable, but not a function, compare against
1697 0. Fix problem in previous patch.
1698 * gdbarch.c: Re-generate.
1699
1700 2003-07-10 Andrew Cagney <cagney@redhat.com>
1701
1702 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1703 functions against NULL, not 0.
1704 * gdbarch.c: Re-generate.
1705
1706 2003-07-10 Fred Fish <fnf@ninemoons.com>
1707
1708 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1709 null string instead of a null pointer.
1710 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1711
1712 2003-07-09 Michael Snyder <msnyder@redhat.com>
1713
1714 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1715
1716 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1717
1718 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1719 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1720 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1721 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1722 * x86-64-tdep.c: ... from here.
1723
1724 2003-07-09 Andreas Schwab <schwab@suse.de>
1725
1726 * m68k-tdep.h (enum struct_return): Define.
1727 (struct gdbarch_tdep): Add struct_return.
1728 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1729 bytes are padded to the right, not to the left. Pass struct value
1730 address in register %a1, not on stack.
1731 (m68k_use_struct_convention): New function.
1732 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1733 struct_return in tdep to pcc_struct_return.
1734 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1735 reg_struct_return.
1736
1737 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1738
1739 * somread.c (som_symfile_offsets): Fix compilation error.
1740
1741 2003-07-09 Andrew Cagney <cagney@redhat.com>
1742
1743 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1744 Add comments about the checks.
1745
1746 2003-07-08 Andrew Cagney <cagney@redhat.com>
1747
1748 * Makefile.in: Make dependency section headers consistent.
1749 (config_h): Move to $BUILD headers section.
1750 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1751 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1752 (ada-exp.tab.c): Move to YACC/LEX section.
1753 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1754 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1755
1756 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1757
1758 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1759 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1760 of strerror with safe_strerror, use ISO C function definitions,
1761 and replace instances of sprintf with snprintf.
1762
1763 2003-07-07 Andrew Cagney <cagney@redhat.com>
1764
1765 * frame.c (get_prev_frame): Enable check for identical frames.
1766 Update comments. Update error messages.
1767
1768 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1769
1770 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1771
1772 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1773
1774 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1775 sort_symtab_syms, no longer necessary.
1776
1777 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1778
1779 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1780
1781 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1782
1783 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1784 (mips_register_byte): Likewise.
1785
1786 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1787
1788 * Makefile.in (sparc_tdep_h): New.
1789 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1790 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1791 * sparc-linux-nat.c: Include "sparc-tdep.h".
1792 * sparc-nat.c: Likewise.
1793 * sparc-tdep.c: Likewise.
1794 * sparc64nbsd-nat.c: Likewise.
1795 * sparcnbsd-nat.c: Likewise.
1796 * sparcnbsd-tdep.c: Likewise.
1797 * sparc-tdep.h: New file.
1798 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1799 and sparc_npc_regnum.
1800
1801 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1802
1803 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1804 (mips_linux_cannot_store_register): List supported instead of
1805 unsupported registers.
1806
1807 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1808
1809 * disasm.c (dump_insns): Separate instructions from addresses.
1810
1811 2003-07-07 Andreas Schwab <schwab@suse.de>
1812
1813 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1814 dependencies.
1815 * m68k-tdep.c (NUM_FREGS): Delete.
1816 (SIG_PC_FP_OFFSET): Delete.
1817 (TARGET_M68K): Delete.
1818 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1819 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1820 P_MOVEL_SP, P_MOVEML_SP): Define.
1821 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1822 P_TRAP): Delete.
1823 (m68k_register_raw_size): Delete.
1824 (m68k_register_virtual_size): Delete.
1825 (m68k_register_type): Renamed from m68k_register_virtual_type and
1826 add gdbarch argument.
1827 (m68k_store_struct_return): Delete.
1828 (m68k_deprecated_extract_return_value): Delete.
1829 (m68k_deprecated_extract_struct_value_address): Delete.
1830 (m68k_frame_chain): Delete.
1831 (m68k_frame_saved_pc): Delete.
1832 (m68k_fix_call_dummy): Delete.
1833 (m68k_push_dummy_frame): Delete.
1834 (m68k_pop_frame): Delete.
1835 (m68k_extract_return_value): New function.
1836 (m68k_store_return_value): Rewrite using regcache.
1837 (m68k_extract_struct_value_address): Rewrite using regcache.
1838 (m68k_push_dummy_call): New function.
1839 (struct m68k_frame_cache): Define.
1840 (m68k_alloc_frame_cache): New function.
1841 (m68k_analyze_frame_setup): New function.
1842 (m68k_analyze_register_saves): New function.
1843 (m68k_analyze_prologue): New function.
1844 (m68k_skip_prologue): Rewrite using above functions.
1845 (m68k_unwind_pc): New function.
1846 (m68k_frame_cache): New function.
1847 (m68k_frame_this_id): New function.
1848 (m68k_frame_prev_register): New function.
1849 (m68k_frame_unwind): New variable.
1850 (m68k_frame_p): New function.
1851 (m68k_sigtramp_frame_cache): New function.
1852 (m68k_sigtramp_frame_this_id): New function.
1853 (m68k_sigtramp_frame_prev_register): New function.
1854 (m68k_sigtramp_frame_unwind): New variable.
1855 (m68k_sigtramp_frame_p): New function.
1856 (m68k_frame_base_address): New function.
1857 (m68k_frame_base): New function.
1858 (m68k_unwind_dummy_id): New function.
1859 (fill_gregset): Use regcache_collect.
1860 (fill_fpregset): Likewise.
1861 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1862 defined.
1863 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1864 deprecated_init_frame_pc, deprecated_store_struct_return,
1865 deprecated_extract_return_value, deprecated_store_return_value,
1866 deprecated_frame_chain, deprecated_frame_saved_pc,
1867 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1868 deprecated_register_virtual_size,
1869 deprecated_max_register_raw_size,
1870 deprecated_max_register_virtual_size,
1871 deprecated_register_virtual_type, deprecated_register_size,
1872 deprecated_register_byte, deprecated_register_bytes,
1873 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1874 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1875 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1876 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1877 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1878 deprecated_push_dummy_frame, deprecated_pop_frame,
1879 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1880 only if SYSCALL_TRAP is defined. Set extract_return_value,
1881 store_return_value, extract_struct_value_address, register_type,
1882 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1883 predicates.
1884 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1885 M68K_MAX_REGISTER_SIZE): Define.
1886 (struct m68k_sigtramp_info): Define.
1887 (struct gdbarch_tdep): Add get_sigtramp_info.
1888 * m68klinux-nat.c (fetch_register): Use register_size instead of
1889 REGISTER_RAW_SIZE. Don't put assignment in if.
1890 (store_register): Likewise.
1891 (fetch_inferior_registers): Likewise.
1892 (store_inferior_registers): Likewise.
1893 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1894 (m68k_linux_frame_saved_pc): Delete.
1895 (m68k_linux_sigcontext_reg_offset,
1896 m68k_linux_ucontext_reg_offset): Define.
1897 (m68k_linux_get_sigtramp_info): New function.
1898 (m68k_linux_extract_return_value): Rewrite using regcache.
1899 (m68k_linux_store_return_value): Likewise.
1900 (m68k_linux_extract_struct_value_address): Likewise.
1901 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1902 Don't set deprecated_frame_saved_pc,
1903 deprecated_extract_return_value, deprecated_store_return_value,
1904 deprecated_extract_struct_value_address. Set
1905 extract_return_value, store_return_value,
1906 extract_struct_value_address.
1907
1908 2003-07-07 Andrew Cagney <cagney@redhat.com>
1909
1910 * expprint.c: Include "user-regs.h" instead of "frame.h".
1911 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1912 frame_map_regnum_to_name.
1913 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1914 (frame_map_name_to_regnum): Simplify, call
1915 user_reg_map_name_to_regnum.
1916 (frame_map_regnum_to_name): Simplify, call
1917 user_reg_map_regnum_to_name.
1918 (frame_register_unwind): Update.
1919 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1920 (_initialize_frame_reg): Call user_reg_add_builtin.
1921 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1922 (value_of_register): Use value_of_user_reg.
1923 * eval.c (evaluate_subexp_standard): Update.
1924 * parse.c (write_dollar_variable): Update.
1925 * d10v-tdep.c (d10v_print_registers_info): Update.
1926 * infcmd.c (registers_info): Update.
1927 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1928 (builtin_regs_h): Delete macro.
1929 (user_regs_h): Define.
1930 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1931 (builtin-regs.o): Delete target.
1932 (user-regs.o): Specify dependencies.
1933 (expprint.o): Update dependencies.
1934 (findvar.o): Update dependencies.
1935 (frame.o): Update dependencies.
1936 (std-regs.o): Update dependencies.
1937
1938 2003-07-06 Christopher Faylor <cgf@redhat.com>
1939
1940 * win32-nat.c (solib_symbols_add): Use one variable for all section
1941 address stuff. Pass variable rather than address of variable to
1942 safe_symbol_file_add.
1943
1944 2003-07-06 Andreas Schwab <schwab@suse.de>
1945
1946 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1947
1948 2003-07-04 Joel Brobecker <brobecker@gnat.com>
1949
1950 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1951
1952 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1953
1954 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1955
1956 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1957
1958 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1959 * config/i386/nto.mh: New file.
1960 * config/i386/nm-nto.h: New file.
1961 * configure.host: Add i[3456]86-*-nto*.
1962
1963 2003-07-03 Joel Brobecker <brobecker@gnat.com>
1964
1965 * remote-vx.c (vx_add_symbols): Fix compilation error.
1966
1967 2003-07-03 Andrew Cagney <cagney@redhat.com>
1968
1969 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1970 * gdbarch.h, gdbarch.c: Re-generate.
1971 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1972 (legacy_register_name): Declare.
1973 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1974 (REGISTER_NAME): Define.
1975 * sparc-tdep.c (legacy_register_name): New function.
1976 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1977 (REGISTER_NAME): Define.
1978 (hppa64_register_name): Declare.
1979 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1980 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1981 (hppa64_register_name): New function.
1982 (hppa_register_name): New function.
1983 * arch-utils.c (legacy_register_name): Delete.
1984 * arch-utils.h (legacy_register_name): Delete.
1985
1986 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
1987
1988 * cli/cli-interp.c (cli_interpreter_resume): Update the
1989 cli_uiout's stream to gdb_stdout.
1990
1991 2003-07-03 Andrew Cagney <cagney@redhat.com>
1992
1993 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1994 predicate.
1995 * gdbarch.h, gdbarch.c: Re-generate.
1996 * regcache.c (init_regcache_descr): Use legacy code when either
1997 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1998
1999 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2000
2001 * NEWS: Move "set logging" entry into GDB 6.0 section.
2002
2003 2003-07-02 Jim Blandy <jimb@redhat.com>
2004
2005 * s390-tdep.c (struct frame_extra_info): new member:
2006 'stack_bought_valid'.
2007 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2008 initialize fextra_info->stack_bought.
2009 (s390_frameless_function_invocation): Don't trust the value of
2010 fextra_info_ptr->stack_bought unless
2011 fextra_info->stack_bought_valid is set.
2012
2013 New S390 prologue analyzer.
2014 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2015 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2016 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2017 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2018 compute_x_addr, s390_on_stack, s390_store,
2019 s390_get_signal_frame_info): New functions.
2020 (S390_NUM_SPILL_SLOTS): New macro.
2021 (s390_get_frame_info): Rewritten.
2022 (is_arg_reg): Deleted.
2023
2024 Break out the decoding of S/390 instructions into separate
2025 functions, to make it more legible, and easier to check
2026 against the spec.
2027 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2028 is_rx, is_rxe): New functions.
2029 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2030 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2031 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2032 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2033 enums for opcode values. (Is this an improvement?)
2034
2035 2003-07-02 Andrew Cagney <cagney@redhat.com>
2036
2037 * i386-tdep.c: Revert change committed as part of trad-frame code
2038 below.
2039
2040 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2041
2042 * breakpoint.c (insert_catchpoint): Make static.
2043
2044 2003-07-02 Andreas Schwab <schwab@suse.de>
2045
2046 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2047 former ia64_push_arguments and ia64_push_return_address, and use
2048 regcache functions instead of read/write_register.
2049 (ia64_gdbarch_init): Set push_dummy_call instead of
2050 deprecated_push_arguments and deprecated_push_return_address.
2051
2052 2003-07-01 Andreas Jaeger <aj@suse.de>
2053
2054 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2055 before the call.
2056 Set %rax only to number of SSE registers used.
2057
2058 2003-07-01 Andrew Cagney <cagney@redhat.com>
2059
2060 * trad-frame.h: Update comments, a -1 .addr is reserved.
2061 (trad_frame_value_p, trad_frame_addr_p): Declare.
2062 (trad_frame_reg_p): Declare.
2063 (trad_frame_set_value): Rename trad_frame_register_value.
2064 (trad_frame_set_unknown): Declare.
2065 * trad-frame.c (trad_frame_realreg_p): New function.
2066 (trad_frame_addr_p, trad_frame_value_p): New function.
2067 (trad_frame_set_unknown): New function.
2068 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2069 (trad_frame_prev_register): Use trad_frame_realreg_p,
2070 trad_frame_addr_p and trad_frame_value_p.
2071 (trad_frame_set_value): Rename trad_frame_register_value.
2072 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2073 and trad_frame_set_value.
2074
2075 2003-06-30 Jim Blandy <jimb@redhat.com>
2076
2077 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2078 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2079 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2080 for 16 registers, and then 32 more bytes.
2081 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2082 New macros.
2083 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2084 Move up in the file, since it's now used by is_simple_arg.
2085 (is_simple_arg): Don't assume registers are four bytes long.
2086 Exclude all double arguments. Extended floats are not simple
2087 args.
2088 (is_power_of_two): New function.
2089 (pass_by_copy_ref): Call is_power_of_two, and check that the
2090 length fits in a register, rather than listing all the acceptable
2091 sizes. Extended floats are not passed by reference.
2092 (s390_push_arguments): Don't assume registers are four bytes long.
2093 Reserve an argument register to point to the buffer for structures
2094 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2095 S390_STACK_FRAME_OVERHEAD.
2096
2097 2003-06-30 Andreas Schwab <schwab@suse.de>
2098
2099 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2100 format error message.
2101
2102 2003-06-30 Joel Brobecker <brobecker@gnat.com>
2103
2104 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2105
2106 2003-06-30 David Carlton <carlton@kealia.com>
2107
2108 Band-aid for PR c++/1245.
2109 * Makefile.in (cp-support.o): Depend on complaints_h.
2110 * cp-support.c: Include complaints.h. Add declaration for
2111 find_last_component.
2112 (cp_find_first_component): Separate code into
2113 cp_find_first_component_aux.
2114 (cp_find_first_component_aux): Call demangled_name_complaint.
2115 (demangled_name_complaint): New.
2116
2117 2003-06-30 Andrew Cagney <cagney@redhat.com>
2118
2119 * remote.c (remote_write_bytes): Explicitly compute and then use
2120 the payload size. Update comments to reflect. Fixes problem of
2121 GDB not sending small packets as found by Fred Fish.
2122
2123 2003-06-30 Andrew Cagney <cagney@redhat.com>
2124
2125 * remote.c (remote_async_wait): Fix -Wformat problem.
2126
2127 2003-06-29 Andrew Cagney <cagney@redhat.com>
2128
2129 * remote.c (remote_wait): Call error, and not warning, when the
2130 packet is corrupt.
2131 (remote_async_wait): Ditto.
2132
2133 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2134
2135 * sparc-tdep.c (sparc_y_regnum): Make external again.
2136
2137 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2138
2139 * cli/cli-logging.c (pop_output_files): Add void to function
2140 definition.
2141
2142 2003-06-29 Andrew Cagney <cagney@redhat.com>
2143
2144 * frame.c (frame_register_unwind): Use unsigned char when dumping
2145 the buffer contents.
2146
2147 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
2148
2149 * cli/cli-logging.c: New file.
2150 * cli-out.c (struct ui_out_data): Add original_stream.
2151 (cli_redirect): New function.
2152 (cli_ui_out_impl): Add cli_redirect.
2153 (cli_out_new): Initialize original_stream.
2154 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2155 (uo_redirect, ui_out_redirect): New.
2156 * ui-out.h (struct ui_out_impl): Add redirect member.
2157 (redirect_ftype): New.
2158 (ui_out_redirect): Add prototype.
2159 * Makefile.in: Add rules for cli-logging.c.
2160 * NEWS: Mention "set logging".
2161
2162 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2163
2164 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2165
2166 2003-06-27 Andrew Cagney <cagney@redhat.com>
2167
2168 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2169 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2170 * avr-tdep.c (avr_call_dummy_address): Delete function.
2171 (avr_gdbarch_init): Do not set call_dummy_address.
2172
2173 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2174
2175 * symfile.c (syms_from_objfile): Move variables to inner block.
2176 Move the checks for the non-mainline case a bit earlier to avoid
2177 doing some useless computations.
2178
2179 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2180
2181 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2182
2183 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
2184
2185 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2186 sections.
2187
2188 2003-06-26 Michael Chastain <mec@shout.net>
2189
2190 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2191 gdb/testsuite/gdb.c++/pr-1210.exp.
2192
2193 2003-06-26 Andrew Cagney <cagney@redhat.com>
2194
2195 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2196 altivec_expression.h and altivec_registers.h.
2197
2198 2003-06-26 Andrew Cagney <cagney@redhat.com>
2199
2200 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2201 info->mach when MIPS16. Patch suggested by Fred Fish.
2202
2203 2003-06-26 Andrew Cagney <cagney@redhat.com>
2204
2205 * utils.c (internal_vproblem): Print the problem to a reason
2206 buffer and then pass to query. Make the msg variable more local.
2207
2208 2003-06-26 Andrew Cagney <cagney@redhat.com>
2209
2210 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2211 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2212 * gdbarch.h, gdbarch.c: Re-generate.
2213 * frame-base.c (default_frame_args_address): Update. Use
2214 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2215 not available.
2216 (default_frame_locals_address): Ditto for
2217 DEPRECATED_FRAME_LOCALS_ADDRESS.
2218 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2219 (vax_frame_num_args): Update.
2220 (vax_gdbarch_init): Update.
2221 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2222 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2223 * mcore-tdep.c (mcore_gdbarch_init): Update.
2224 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2225 * ia64-tdep.c (ia64_gdbarch_init): Update.
2226 * symtab.h (address_class): Update comments.
2227 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2228 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2229 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2230 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2231 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2232 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2233 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2234 * alpha-mdebug-tdep.c: Update.
2235 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2236
2237 2003-06-26 Andreas Jaeger <aj@suse.de>
2238
2239 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2240 of SSE registers so that varargs functions work. Rework handling
2241 of passing arguments on the stack.
2242 (x86_64_store_return_value): Return double and float values in SSE
2243 register.
2244
2245 2003-06-24 Michael Chastain <mec@shout.net>
2246
2247 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2248 the "constructor breakpoints ignored" bug.
2249
2250 2003-06-25 David Carlton <carlton@kealia.com>
2251
2252 * MAINTAINERS: Update e-mail address.
2253
2254 2003-06-24 Jim Blandy <jimb@redhat.com>
2255
2256 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2257
2258 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2259 function.
2260 (ppc_linux_init_abi): Register it as the
2261 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2262
2263 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2264 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2265 method.
2266
2267 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2268 (ppc64_standard_linkage_target): Use it.
2269
2270 2003-06-23 Andrew Cagney <cagney@redhat.com>
2271
2272 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2273 for 0 "int0" and 4 "int32" sized registers.
2274 * gdbtypes.c (builtin_type_int0): Define.
2275 (build_gdbtypes): Initialize builtin_type_int0.
2276 * gdbtypes.h (builtin_type_int0): Declare.
2277
2278 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2279
2280 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2281 as characters are unsigned.
2282
2283 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2284
2285 PR gdb/1179
2286 * dwarfread.c (struct_type): Skip static fields without crashing.
2287
2288 2003-06-22 Andrew Cagney <cagney@redhat.com>
2289
2290 GDB 6.0 branch created.
2291 * README: Update.
2292 * PROBLEMS: Update. Empty.
2293 * NEWS: Update.
2294
2295 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2296
2297 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2298 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2299
2300 2003-06-22 Andrew Cagney <cagney@redhat.com>
2301
2302 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2303 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2304 Velikov.
2305
2306 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2307
2308 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2309 compilers.
2310
2311 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2312
2313 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2314 argument of val_print.
2315 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2316 to the address argument of baseclass_offset or target_read_memory.
2317 Do add it to the argument of cp_print_value_fields.
2318
2319 2003-06-21 Andrew Cagney <cagney@redhat.com>
2320
2321 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2322 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2323 instead of 0..NUM_REGS.
2324 (mips_register_reggroup_p): New function.
2325 (mips_pseudo_register_write): New function.
2326 (mips_pseudo_register_read): New function.
2327 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2328 based on the register's type.
2329 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2330 cooked.
2331 (mips_get_saved_register): Simplify. Assert that REGNO is a
2332 pseudo / cooked.
2333 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2334 (mips_register_type): Replace mips_register_virtual_type. Map
2335 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2336 when available.
2337 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2338 that the register is cooked / virtual.
2339 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2340 Only get the extra info when needed.
2341 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2342 (mips32_heuristic_proc_desc): Fetch the cooked register.
2343 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2344 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2345 (mips_print_register): Use gdbarch_register_type, instead of
2346 REGISTER_VIRTUAL_TYPE.
2347 (print_gp_register_row): Use gdbarch_register_type, instead of
2348 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2349 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2350 Print the pseudo / cooked registers.
2351 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2352 Print the pseudo / cooked registers.
2353 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2354 REG_NUM is pseudo / cooked.
2355 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2356 (mips_n32n64_xfer_return_value): Ditto.
2357 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2358 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2359 (mips_register_sim_regno): New function.
2360 (mips_gdbarch_init): Set deprecated_register_byte,
2361 register_group_p, pseudo_register_write, pseudo_register_read,
2362 register_sim_regno, and num_pseudo_regs. Set register_type,
2363 instead of register_virtual_type.
2364 * Makefile.in (mips-tdep.o): Update dependencies.
2365 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2366 REGISTER_VIRTUAL_TYPE.
2367 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2368 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2369 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2370 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2371 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2372
2373 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2374
2375 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2376 * cli/cli-cmds.c: Include "gdb_vfork.h".
2377 (shell_escape): Use vfork.
2378
2379 2003-06-21 Andrew Cagney <cagney@redhat.com>
2380
2381 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2382 32 bit floating-point register saves.
2383
2384 * frame.h (deprecated_unwind_get_saved_register): Delete.
2385 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2386 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2387 and deprecated_get_next_frame_hack instead of
2388 deprecated_unwind_get_saved_register.
2389
2390 * mips-tdep.c (mips_dump_tdep): Do not print
2391 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2392
2393 * frame.c (get_frame_register): New function.
2394 (frame_unwind_register_signed): New function.
2395 (get_frame_register_signed): New function.
2396 (frame_unwind_register_unsigned): New function.
2397 (get_frame_register_unsigned): New function.
2398 * frame.h: Add comments on naming schema.
2399 (get_frame_register, frame_unwind_register_signed): Declare.
2400 (get_frame_register_signed, get_frame_register_signed): Declare.
2401 (frame_unwind_register_unsigned): Declare.
2402 (get_frame_register_unsigned): Declare.
2403
2404 2003-06-20 Theodore A. Roth <troth@openavr.org>
2405
2406 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2407
2408 2003-06-20 Theodore A. Roth <troth@openavr.org>
2409
2410 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2411 (avr_read_sp): Ditto.
2412
2413 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
2414
2415 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2416 * config/arm/nm-linux.h: Likewise.
2417 * config/arm/tm-linux.h: Likewise.
2418 * config/ia64/nm-linux.h: Likewise.
2419 * config/ia64/tm-ia64.h: Likewise.
2420 * config/s390/tm-linux.h: Likewise.
2421 * config/s390/tm-s390.h: Likewise.
2422 * s390-nat.c: Likewise.
2423 * s390-tdep.c: Likewise.
2424
2425 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2426 * config/ia64/linux.mt: Likewise.
2427 * config/m68k/linux.mh: Likewise.
2428 * config/mips/linux.mt: Likewise.
2429 * config/powerpc/linux.mh: Likewise.
2430 * config/sh/linux.mt: Likewise.
2431
2432 2003-06-19 Kris Warkentin <kewarken@qnx.com>
2433
2434 * solib.c (solib_open): Change tests for whether to search
2435 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2436 comments.
2437
2438 2003-06-19 Theodore A. Roth <troth@openavr.org>
2439
2440 * avr-tdep.c (avr_frame_address): Delete function.
2441 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2442 set_gdbarch_frame_args_address.
2443
2444 2003-06-19 Andrew Cagney <cagney@redhat.com>
2445
2446 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2447 (REGISTER_CONVERT_FROM_TYPE): Delete.
2448 (mips_register_convert_to_type): Delete declaration.
2449 (mips_register_convert_from_type): Delete declaration.
2450 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2451 kernel/.
2452
2453 2003-06-19 Michael Snyder <msnyder@redhat.com>
2454
2455 * linux-nat.h: New file.
2456 * linux-nat.c: Include linux-nat.h.
2457 * lin-lwp.c: Include linux-nat.h.
2458 Move struct lwp_info def to linux-nat.h.
2459 * linux-proc.c: Include linux-nat.h.
2460 (linux_make_note_section): Iterate over lwps instead of threads.
2461 (linux_do_thread_registers): Use lwp instead of merged pid.
2462 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2463 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2464 Add dependency on linux_nat_h.
2465
2466 2003-06-19 Theodore A. Roth <troth@openavr.org>
2467
2468 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2469
2470 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2471
2472 * varobj.c (get_type, get_target_type): Use check_typedef.
2473
2474 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2475
2476 * breakpoint.c (insert_catchpoint): Call internal_error.
2477
2478 2003-06-19 Theodore A. Roth <troth@openavr.org>
2479
2480 * avr-tdep.c (avr_push_dummy_code): Delete function.
2481 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2482
2483 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2484
2485 * arch-utils.c (default_prepare_to_proceed): Remove.
2486 (generic_prepare_to_proceed): Remove.
2487 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2488 (generic_prepare_to_proceed): Remove prototype.
2489 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2490 * gdbarch.c: Regenerate.
2491 * gdbarch.h: Regenerate.
2492 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2493 * hppah-nat.c (hppa_switched_threads): Remove.
2494 * infrun.c (prepare_to_proceed): New static function, copied from
2495 generic_prepare_to_proceed. Remove select_it argument.
2496 (proceed): Call prepare_to_proceed.
2497 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2498 variables.
2499 (ptrace_wait): Don't set the removed variables.
2500 (hppa_switched_threads): Remove.
2501 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2502 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2503 (lin_lwp_prepare_to_proceed): Remove prototype.
2504 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2505 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2506
2507 2003-06-18 Theodore A. Roth <troth@openavr.org>
2508
2509 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2510 trad-frame.h.
2511 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2512 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2513 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2514 (AVR_PROLOGUE_*): Enumerate prologue types.
2515 (struct frame_extra_info): Remove.
2516 (struct avr_unwind_cache): Define.
2517 (avr_write_sp): Delete function.
2518 (avr_read_fp): Ditto.
2519 (avr_init_extra_frame_info): Ditto.
2520 (avr_pop_frame): Ditto.
2521 (avr_frame_saved_pc): Ditto.
2522 (avr_saved_pc_after_call): Ditto.
2523 (avr_push_return_address): Ditto.
2524 (avr_frame_chain): Ditto.
2525 (avr_store_struct_return): Ditto.
2526 (avr_push_arguments): Ditto.
2527 (avr_scan_prologue): Update comments. Changed to set up the info for
2528 cache unwinding. Now returns end of prologue PC.
2529 (avr_skip_prologue): Better handling of functions lacking a prologue
2530 by using avr_scan_prologue.
2531 (avr_scan_arg_moves): New function.
2532 (avr_saved_regs_unwinder): Ditto.
2533 (avr_frame_unwind_cache): Ditto.
2534 (avr_unwind_pc): Ditto.
2535 (avr_frame_this_id): Ditto.
2536 (avr_frame_prev_register): Ditto.
2537 (avr_frame_p): Ditto.
2538 (avr_frame_base_address ): Ditto.
2539 (avr_unwind_dummy_id): Ditto.
2540 (avr_push_dummy_code): Ditto.
2541 (push_stack_item): Ditto.
2542 (pop_stack_item): Ditto.
2543 (avr_push_dummy_call): Ditto.
2544 (struct stack_item): Define.
2545 (avr_frame_unwind): Declare structure.
2546 (avr_frame_base): Ditto.
2547 (avr_gdbarch_init): Remove calls to
2548 set_gdbarch_deprecated_init_frame_pc,
2549 set_gdbarch_deprecated_target_read_fp,
2550 set_gdbarch_deprecated_dummy_write_sp,
2551 set_gdbarch_deprecated_fp_regnum,
2552 set_gdbarch_deprecated_push_arguments,
2553 set_gdbarch_deprecated_push_return_address,
2554 set_gdbarch_deprecated_pop_frame,
2555 set_gdbarch_deprecated_store_struct_return,
2556 set_gdbarch_deprecated_frame_init_saved_regs,
2557 set_gdbarch_deprecated_init_extra_frame_info,
2558 set_gdbarch_deprecated_frame_chain,
2559 set_gdbarch_deprecated_frame_saved_pc,
2560 set_gdbarch_deprecated_saved_pc_after_call.
2561 Add calls to set_gdbarch_push_dummy_call,
2562 set_gdbarch_push_dummy_code,
2563 frame_unwind_append_predicate,
2564 frame_base_set_default,
2565 set_gdbarch_unwind_dummy_id,
2566 set_gdbarch_unwind_pc.
2567 Wrap a long line.
2568
2569 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2570
2571 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2572 registers for H8/300S.
2573 (h8300_print_registers_info): Ditto.
2574 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2575
2576 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2577
2578 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2579 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2580 (lin_lwp_wait): Likewise. Update comments.
2581 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2582 (pull_pid_from_list, linux_record_stopped_pid): New.
2583
2584 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2585
2586 * ada-lang.c (scan_discrim_bound): Name first argument.
2587 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2588 declared by ALL_BLOCK_SYMBOLS.
2589
2590 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2591
2592 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2593 ("regcache.h"): Include it.
2594 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2595
2596 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2597
2598 * NEWS: Mention gdbserver detach change and "disconnect" command.
2599 * infcmd.c (disconnect_command): New function.
2600 (_initialize_infcmd): Add ``disconnect'' command.
2601 * remote.c (remote_async_detach): Delete.
2602 (remote_detach): Merge remote_async_detach.
2603 (remote_disconnect): New.
2604 (init_remote_ops): Set to_disconnect.
2605 (init_remote_cisco_ops): Likewise.
2606 (init_remote_async_ops): Likewise. Use remote_detach.
2607 * target.c (cleanup_target): Default to_disconnect.
2608 (update_current_target): Inherit to_disconnect.
2609 (target_disconnect, debug_to_disconnect): New functions.
2610 (setup_target_debug): Set to_disconnect.
2611 * target.h (struct target_ops): Add to_disconnect.
2612 (target_disconnect): Add prototype.
2613
2614 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2615
2616 * breakpoint.c (insert_catchpoint): New function.
2617 (insert_breakpoints): Use catch_exceptions to call
2618 insert_catchpoint. Disable catchpoints if they fail to insert.
2619
2620 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2621
2622 * symfile.c (reread_symbols): Clear sym_private.
2623
2624 2003-06-17 Andrew Cagney <cagney@redhat.com>
2625
2626 * trad-frame.h (struct frame_info): Add opaque declaration.
2627 * remote-fileio.h (struct cmd_list_element): Add opaque
2628 declaration.
2629 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2630 comments.
2631
2632 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2633
2634 * remote.c (remote_prepare_to_store): Replace call to
2635 deprecated_read_register_bytes with multiple regcache_raw_read
2636 calls.
2637
2638 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2639
2640 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2641 (nto_find_and_open_solib): Likewise.
2642 (nto_init_solib_absolute_prefix): Likewise.
2643 (_initialize_nto_tdep): Fix indentation.
2644
2645 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2646
2647 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2648
2649 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2650
2651 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2652
2653 2003-06-17 Jim Blandy <jimb@redhat.com>
2654
2655 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2656
2657 2003-06-16 Theodore A. Roth <troth@openavr.org>
2658
2659 * avr-tdep.c (avr_extract_return_value): New function.
2660 (avr_gdbarch_init): Set extract_return_value method.
2661
2662 2003-06-16 Andrew Cagney <cagney@redhat.com>
2663
2664 * frame.h (deprecated_get_next_frame_hack): Declare.
2665 * frame.c (legacy_saved_regs_prev_register): Only require
2666 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2667 there are always saved regs.
2668 (deprecated_generic_get_saved_register): Do not require
2669 DEPRECATED_FRAME_INIT_SAVED_REGS.
2670 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2671 use frame ID unwind instead.
2672 (deprecated_get_next_frame_hack): New function.
2673
2674 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2675
2676 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2677 (h8300_push_dummy_call): ...this function. Some minor optimization.
2678 (h8300_push_return_address): Remove.
2679 (h8300_gdbarch_init): Remove calls to
2680 set_gdbarch_deprecated_dummy_write_sp,
2681 set_gdbarch_deprecated_push_arguments and
2682 set_gdbarch_deprecated_push_return_address.
2683 Add call to set_gdbarch_push_dummy_call.
2684
2685 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2686
2687 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2688 (E_PSEUDO_EXR_REGNUM): Ditto.
2689 (h8300_is_argument_spill): Check for instructions moving argument
2690 registers into safe registers.
2691 (h8300_skip_prologue): Check for stm instruction to push registers
2692 used for register variables onto stack.
2693 (gdb_print_insn_h8300): Remove.
2694 (h8300_examine_prologue): Add a comment.
2695 (h8300_register_name): Take pseudo registers into account.
2696 (h8300s_register_name): Ditto.
2697 (h8300sx_register_name): Ditto.
2698 (h8300_print_register): Ditto.
2699 (h8300_print_registers_info): Define "nice" printing order.
2700 (h8300_saved_pc_after_call): Take pseudo registers into account.
2701 (h8300_register_type): Ditto. Return type used for remote connection
2702 when requesting real CCR or EXR register, return actual type when
2703 requesting pseudo CCR or EXR.
2704 (h8300_pseudo_register_read): New function.
2705 (h8300_pseudo_register_write): Ditto.
2706 (h8300_dbg_reg_to_regnum): Ditto.
2707 (h8300s_dbg_reg_to_regnum): Ditto.
2708 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2709 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2710 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2711 set_gdbarch_print_insn architecture dependent.
2712 Call set_gdbarch_pseudo_register_read and
2713 set_gdbarch_pseudo_register_write.
2714 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2715
2716 2003-06-16 Andrew Cagney <cagney@redhat.com>
2717
2718 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2719 * gdbarch.h, gdbarch.c: Re-generate.
2720 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2721 * s390-tdep.c (s390_gdbarch_init): Update.
2722 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2723 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2724 * mips-tdep.c (mips_gdbarch_init): Update.
2725 * mcore-tdep.c (mcore_gdbarch_init): Update.
2726 * cris-tdep.c (cris_gdbarch_init): Update.
2727 * infcall.c (call_function_by_hand): Update.
2728 * ia64-tdep.c (ia64_push_arguments): Update comment.
2729 * frame.c (legacy_get_prev_frame): Do not assume
2730 SAVE_DUMMY_FRAME_TOS_P.
2731 * dummy-frame.c (find_dummy_frame): Update comment.
2732
2733 2003-06-16 Andrew Cagney <cagney@redhat.com>
2734
2735 * regcache.c (do_cooked_read): Do not use register_valid_p.
2736
2737 2003-06-15 Theodore A. Roth <troth@openavr.org>
2738
2739 * avr-tdep.c (avr_register_type): Remove a blank line.
2740 (avr_scan_prologue): Correct some comments.
2741
2742 2003-06-15 Theodore A. Roth <troth@openavr.org>
2743
2744 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2745 prologue types.
2746 Properly scan prologues generated by gcc with the -mcall-prologues
2747 option.
2748 Add code to scan -mcall-prologues for mega devices.
2749
2750 2003-06-15 Theodore A. Roth <troth@openavr.org>
2751
2752 * avr-tdep.c (avr_register_byte): Delete function.
2753 (avr_register_raw_size): Delete function.
2754 (avr_register_virtual_size): Delete function.
2755 (avr_register_virtual_type): Delete function.
2756 (avr_register_type): New function.
2757 (avr_address_to_pointer): Remove unused code.
2758 (avr_read_fp): Need to read FP as two separate bytes due to change to
2759 avr_register_type() usage.
2760 (avr_gdbarch_init): Don't set deprecated_register_size.
2761 Don't set deprecated_register_bytes.
2762 Don't set deprecated_register_byte.
2763 Don't set deprecated_register_raw_size.
2764 Don't set deprecated_max_register_raw_size.
2765 Don't set deprecated_register_virtual_size.
2766 Don't set deprecated_max_register_virtual_size.
2767 Don't set deprecated_register_virtual_type.
2768 Set register_type method.
2769
2770 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2771
2772 * Makefile.in (linux-nat.o): Add rule.
2773 * linux-nat.c: New file.
2774 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2775 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2776 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2777 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2778 * config/arm/linux.mh (NATDEPFILES): Likewise.
2779 * config/i386/linux.mh (NATDEPFILES): Likewise.
2780 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2781 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2782 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2783 * config/mips/linux.mh (NATDEPFILES): Likewise.
2784 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2785 * config/s390/s390.mh (NATDEPFILES): Likewise.
2786 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2787
2788 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2789
2790 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2791 replace out-of-date comment.
2792
2793 2003-06-15 Andrew Cagney <cagney@redhat.com>
2794
2795 * rdi-share/host.h (Fail): Change to a varargs function.
2796 * remote-rdi.c (Fail): Update.
2797
2798 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2799
2800 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2801 (i386_convert_register_p, i386_register_to_value,
2802 i386_register_from_value): Handle types longer than 8 bytes.
2803
2804 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2805
2806 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2807 Move floating-point code to new function in i387-tdep.c.
2808 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2809 New functions containing code moved here from i386-tdep.c.
2810 * i387-tdep.h: Add opaque declaration for `struct type'.
2811 (i387_register_to_value, i387_value_to_register): New prototypes.
2812 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2813 (x86_64_init_abi): Set convert_register_p, register_to_value and
2814 value_to_register here.
2815
2816 2003-06-14 Andrew Cagney <cagney@redhat.com>
2817
2818 * mips-tdep.c (mips_register_to_value): Make static.
2819 (mips_value_to_register): Make static.
2820 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2821 * ia64-tdep.c (ia64_register_raw_size): Make static.
2822 (ia64_register_virtual_size): Make static.
2823 (ia64_register_byte): Make static.
2824 * i387-tdep.c: Include "i387-tdep.h".
2825 (print_387_control_word): Delete function.
2826 (print_387_status_word): Delete function.
2827 (print_387_status_bits): Delete function.
2828 (print_387_control_bits): Delete function.
2829 * Makefile.in (i387-tdep.o): Update dependencies.
2830 * rdi-share/host.h (Fail): Declare.
2831 * remote-rdi.c (Fail): Update to match declaration.
2832
2833 2003-06-14 Andrew Cagney <cagney@redhat.com>
2834
2835 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2836 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2837 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2838 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2839 * README: Delete reference to remote-array.
2840 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2841 (remote-array.o): Delete target.
2842 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2843 * remote-array.c: Delete file.
2844
2845 2003-06-14 Andrew Cagney <cagney@redhat.com>
2846 Mark Kettenis <kettenis@gnu.org>
2847
2848 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2849 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2850 parameter with "frame".
2851 * gdbarch.h, gdbarch.c: Re-generate.
2852 * frame.h (put_frame_register): Declare.
2853 * frame.c (put_frame_register): New function.
2854 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2855 (legacy_register_to_value): Rewrite, use "frame" to get the
2856 register value.
2857 (legacy_value_to_register): Rewrite, use "frame" to find the
2858 register's location before storing.
2859 * arch-utils.h (legacy_convert_register_p): Update.
2860 (legacy_register_to_value, legacy_value_to_register): Update.
2861 * findvar.c (value_from_register): Rewrite, eliminate use of
2862 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2863 "frame" to REGISTER_TO_VALUE.
2864 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2865 lval_reg_frame_relative + lval_register branch of the switch. Do
2866 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2867 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2868 I386_EDI_REGNUM): New defines.
2869 (i386_next_regnum, i386_convert_register_p,
2870 i386_register_to_value, i386_value_to_register): New functions.
2871 (i386_register_convertible, i386_register_convert_to_virtual,
2872 i386_convert_to_raw): Remove functions.
2873 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2874 value_to_register instead of register_convertible,
2875 register_convert_to_virtual and register_convert_to_raw.
2876 * mips-tdep.c (mips_convert_register_p): New function.
2877 (mips_value_to_register): Replace mips_register_convert_from_type.
2878 (mips_register_to_value): Replace mips_register_convert_to_type.
2879 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2880 register_to_value.
2881 * alpha-tdep.c (alpha_convert_register_p): Update.
2882 (alpha_value_to_register): Update, store the register.
2883 (alpha_register_to_value): Update, fetch the register.
2884
2885 2003-06-14 Theodore A. Roth <troth@openavr.org>
2886
2887 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2888 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2889 Don't set deprecated_call_dummy_words.
2890 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2891 Don't set remote_translate_xfer_address.
2892 (avr_io_reg_read_command): Remove commented out debug printf.
2893 Wrap a long line.
2894
2895 2003-06-14 Theodore A. Roth <troth@openavr.org>
2896
2897 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2898 causes gdb to seg fault.
2899
2900 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
2901
2902 * sparc-nat.c (fetch_inferior_registers): Correct
2903 a reference to "registers".
2904
2905 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2906
2907 * Makefile.in (exc_request_U_h): Define
2908 (exc_request_S_h): Likewise.
2909 (msg_reply_S_h): Likewise.
2910 (msg_U_h): Likewise.
2911 (notify_S_h): Likewise.
2912 (process_reply_S_h): Likewise.
2913 (gnu-nat.o): Depend on gdb_obstack_h
2914 * gnu-nat.c: Include "gdb_obstack.h".
2915
2916 2003-06-13 Andrew Cagney <cagney@redhat.com>
2917
2918 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2919 * gdbarch.h, gdbarch.c: Re-generate.
2920
2921 2003-06-13 Andrew Cagney <cagney@redhat.com>
2922
2923 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2924 when deprecated REGISTER macros can be deleted.
2925 * gdbarch.h, gdbarch.c: Re-generate.
2926
2927 2003-06-13 Jim Blandy <jimb@redhat.com>
2928
2929 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2930 Linux entry point symbols for _dl_debug_state, too.
2931
2932 2003-06-13 Andrew Cagney <cagney@redhat.com>
2933
2934 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2935 available, do not use the FP register, and always save the TOS.
2936 * dummy-frame.c (dummy_frame_this_id): Do not assert
2937 SAVE_DUMMY_FRAME_TOS.
2938 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2939 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2940 (i386_push_dummy_call): Add 8 to the returned SP.
2941 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2942 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2943 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2944 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2945 (x86_64_push_dummy_call): Return "sp + 16".
2946 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2947 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2948 save_dummy_frame_tos.
2949
2950 2003-06-13 Jim Blandy <jimb@redhat.com>
2951
2952 * frv-tdep.c (frv_use_struct_convention): Delete static
2953 declaration for function deleted in my change of 2003-06-12.
2954
2955 2003-06-13 Theodore A. Roth <troth@openavr.org>
2956
2957 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2958 (avr_pointer_to_address): Shift code addrs left 1 bit.
2959 (avr_convert_from_func_ptr_addr): Delete function since operation is
2960 better handled by avr_address_to_pointer and avr_pointer_to_address.
2961 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2962
2963 2003-06-13 Mark Kettenis <kettenis@gnu.org>
2964
2965 From Kelley Cook <kelleycook@wideopenwest.com>:
2966 * configure.host: Accept i[34567]86 variants.
2967 * configure.tgt: Likewise.
2968 * nlm/configure.in: Likewise.
2969 * nlm/configure: Regenerated.
2970
2971 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2972
2973 * arm-tdep.c (solib-svr4.h): Dont' include it.
2974 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2975 * arm-linux-tdep.c: ... here. Make static.
2976 (arm_linux_init_abi): Register it.
2977 (solib-svr4.h): Include it.
2978 * Makefile.in: Update dependencies.
2979 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2980 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2981
2982 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2983
2984 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2985 indicate registers used for return values.
2986 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2987 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2988 members.
2989 (h8300_init_extra_frame_info): Ditto.
2990 (h8300_frame_locals_address): Removed.
2991 (h8300_frame_args_address): Removed.
2992 (h8300_extract_return_value): Use new regcache structure. Only care
2993 for 16 bit CPUs.
2994 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2995 (h8300_store_return_value): Use new regcache structure. Only care
2996 for 16 bit CPUs.
2997 (h8300h_store_return_value): Same function for 32 bit CPUs.
2998 (h8300_store_struct_return): Removed.
2999 (h8300_extract_struct_value_address): Use new regcache structure.
3000 (h8300h_extract_struct_value_address): Removed.
3001 (h8300_push_dummy_code): New function.
3002 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3003 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3004 set_gdbarch_store_return_value architecture dependent.
3005 Call set_gdbarch_push_dummy_code and
3006 set_gdbarch_extract_struct_value_address.
3007 Remove calls to set_gdbarch_frame_args_address,
3008 set_gdbarch_frame_locals_address,
3009 set_gdbarch_deprecated_store_struct_return,
3010 set_gdbarch_deprecated_extract_return_value,
3011 set_gdbarch_deprecated_extract_struct_value_address,
3012 set_gdbarch_deprecated_call_dummy_words and
3013 set_gdbarch_deprecated_sizeof_call_dummy_words.
3014
3015 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3016
3017 * h8300-tdep.c (h8300_register_byte): Remove.
3018 (h8300h_register_byte): Remove.
3019 (h8300_register_virtual_type): Remove. Substitute by...
3020 (h8300_register_type): New function.
3021 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3022 (h8300h_extract_struct_value_address): Ditto.
3023 (h8300_gdbarch_init): Drop calls to
3024 set_gdbarch_deprecated_register_byte and
3025 set_gdbarch_deprecated_register_virtual_type.
3026 Add call to set_gdbarch_register_type.
3027
3028 2003-06-13 Andrew Cagney <cagney@redhat.com>
3029
3030 * gdbarch.sh: Update comments on registers.
3031 (deprecated_register_byte): Rename register_byte.
3032 (deprecated_register_raw_size): Rename register_raw_size.
3033 (deprecated_register_virtual_size): Rename register_virtual_size.
3034 (deprecated_register_virtual_type): Rename register_virtual_type.
3035 * gdbarch.h, gdbarch.c: Re-generate.
3036 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3037 * vax-tdep.c (vax_gdbarch_init): Update.
3038 * v850-tdep.c (v850_gdbarch_init): Update.
3039 * sparc-tdep.c (sparc_gdbarch_init): Update.
3040 * sh-tdep.c (sh_gdbarch_init): Update.
3041 * s390-tdep.c (s390_gdbarch_init): Update.
3042 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3043 * ns32k-tdep.c: Update.
3044 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3045 * mips-tdep.c (mips_gdbarch_init): Update.
3046 * mcore-tdep.c (mcore_gdbarch_init): Update.
3047 * m68k-tdep.c (m68k_gdbarch_init): Update.
3048 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3049 * ia64-tdep.c (ia64_gdbarch_init): Update.
3050 * hppa-tdep.c (hppa_gdbarch_init): Update.
3051 * h8300-tdep.c (h8300_gdbarch_init): Update.
3052 * frv-tdep.c (frv_gdbarch_init): Update.
3053 * cris-tdep.c (cris_gdbarch_init): Update.
3054 * avr-tdep.c (avr_gdbarch_init): Update.
3055 * alpha-tdep.c (alpha_gdbarch_init): Update.
3056 * arm-tdep.c (arm_gdbarch_init): Update.
3057
3058 2003-06-13 Andrew Cagney <cagney@redhat.com>
3059
3060 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3061 mips_o32_use_struct_convention with always_use_struct_convention.
3062
3063 2003-06-12 David Carlton <carlton@kealia.com>
3064
3065 * cp-namespace.c (cp_set_block_scope): Comment out
3066 processing_has_namespace_info branch.
3067
3068 2003-06-12 Jim Blandy <jimb@redhat.com>
3069
3070 Recognize and skip 64-bit PowerPC Linux linkage functions.
3071 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3072 insn_pattern, insns_match_pattern, d_field, ds_field): New
3073 functions, macros, and types for working with PPC instructions.
3074 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3075 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3076 ppc64_skip_trampoline_code): New functions, variables, and macros
3077 for recognizing and skipping linkage functions.
3078 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3079 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3080
3081 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3082 register offsets for both the 32- and 64-bit interfaces.
3083
3084 Actually finish the job started by my change of 2003-05-29.
3085 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3086 other #definition of this.
3087 (ppc_linux_skip_trampoline_code): Remove declaration.
3088 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3089 static.
3090 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3091 method for GDBARCH.
3092
3093 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3094 'long' on ppc64-*-linux*.
3095
3096 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3097 isn't #defined, assume the register doesn't exist: act as if
3098 tdep->ppc_mq_regnum were -1.
3099
3100 * configure.host, configure.tgt: Add entries for
3101 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3102 powerpc/linux.mt.
3103 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3104 New files.
3105
3106 * arch-utils.c (always_use_struct_convention): New function.
3107 * arch-utils.h (always_use_struct_convention): New prototype.
3108 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3109 (alpha_gdbarch_init): Register always_use_struct_convention,
3110 instead of alpha_use_struct_convention.
3111 * cris-tdep.c (cris_use_struct_convention): Delete.
3112 (cris_gdbarch_init): Register always_use_struct_convention,
3113 instead of cris_use_struct_convention.
3114 * frv-tdep.c (frv_use_struct_convention): Delete.
3115 (frv_gdbarch_init): Register always_use_struct_convention,
3116 instead of frv_use_struct_convention.
3117 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3118 (h8300_gdbarch_init): Register always_use_struct_convention,
3119 instead of h8300_use_struct_convention.
3120 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3121 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3122 instead of mips_o32_use_struct_convention.
3123
3124 2003-06-12 Andrew Cagney <cagney@redhat.com>
3125
3126 * wince.c: Include "mips-tdep.h".
3127 * mips-tdep.h (mips_next_pc): Declare.
3128 * mcore-tdep.c: Make more local functions static.
3129 * Makefile.in (wince.o): Update dependencies.
3130
3131 2003-06-12 David Carlton <carlton@kealia.com>
3132
3133 * symtab.c (lookup_symbol_aux_minsyms): Replace
3134 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3135 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3136 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3137 SYMBOL_NATURAL_NAME.
3138
3139 2003-06-12 Andreas Schwab <schwab@suse.de>
3140
3141 * Makefile.in (tuiDisassem.o): Update dependencies.
3142
3143 2003-06-12 David Carlton <carlton@bactrian.org>
3144
3145 * symtab.h: Delete declaration of make_symbol_overload_list.
3146 Add declaration of lookup_partial_symbol.
3147 * symtab.c (remove_params): Move to cp-support.c.
3148 (overload_list_add_symbol, make_symbol_overload_list)
3149 (sym_return_val_size, sym_return_val_index): Ditto.
3150 (lookup_partial_symbol): Make extern.
3151 * cp-support.h: Add declaration of make_symbol_overload_list.
3152 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3153 symtab.h, and block.h.
3154 (remove_params): Move here from symtab.c.
3155 (overload_list_add_symbol, make_symbol_overload_list)
3156 (sym_return_val_size, sym_return_val_index): Ditto.
3157 * valops.c: Include cp-support.h.
3158 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3159 frame_h, and block_h.
3160 (valops.o): Depend on cp_support_h.
3161
3162 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
3163
3164 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3165 substitute by NUM_REGS throughout.
3166 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3167 (h8300s_register_name): New function for H8S registers.
3168 (h8300sx_register_name): Ditto for H8SX registers.
3169 (h8300_print_register): Revise register printing, avoid depending
3170 on 32 bit long.
3171 (h8300_register_byte): Only care for H8/300 registers.
3172 (h8300h_register_byte): New function for any other architecture.
3173 (h8300_register_raw_size): Remove.
3174 (h8300_register_virtual_type): Revise to return actually useful
3175 type.
3176 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3177 (h8300h_extract_struct_value_address): New function for any other
3178 architecture.
3179 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3180 set_gdbarch_register_name, set_gdbarch_register_byte,
3181 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3182 Remove calls to set_gdbarch_deprecated_register_size,
3183 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3184 set_gdbarch_deprecated_max_register_raw_size,
3185 set_gdbarch_register_virtual_size and
3186 set_gdbarch_deprecated_max_register_virtual_size entirely.
3187 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3188 set_gdbarch_long_double_bit.
3189
3190 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3191
3192 * doublest.c (convert_doublest_to_floatformat): When dealing
3193 with the implied integer bit, only alter mant_bits if we are
3194 processing a full 32 bits of mantissa.
3195
3196 2003-06-11 David Carlton <carlton@bactrian.org>
3197
3198 * dictionary.h: New.
3199 * dictionary.c: New.
3200 * block.h: Add opaque declaration for struct dictionary.
3201 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3202 'sym' members.
3203 (BLOCK_DICT): New macro.
3204 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3205 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3206 BLOCK_SHOULD_SORT.
3207 (ALL_BLOCK_SYMBOLS): Update definition.
3208 * Makefile.in (SFILES): Add dictionary.c.
3209 (dictionary_h): New.
3210 (COMMON_OBS): Add dictionary.o.
3211 (dictionary.o): New.
3212 (ada-lang.o): Depend on dictionary_h.
3213 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3214 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3215 (mi-cmd-stack.o): Ditto.
3216 (gdbtk-cmds.o): Update dependencies.
3217 (gdbtk-stack.o): Ditto.
3218 * ada-lang.c: Include dictionary.h.
3219 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3220 (fill_in_ada_prototype, debug_print_block): Ditto.
3221 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3222 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3223 'is_sorted'.
3224 * mdebugread.c: Include dictionary.h.
3225 (struct parse_stack): Delete 'maxsyms' member.
3226 (parse_symbol): Update calls to new_block. Delete calls to
3227 shrink_block. Use dictionary methods.
3228 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3229 Update calls to new_symtab. Don't maintain maxsyms data.
3230 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3231 (add_symbol): Just call dict_add_symbol.
3232 (new_symtab): Delete 'maxsyms' argument.
3233 (new_symtab): Update calls to new_block.
3234 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3235 (shrink_block): Delete function.
3236 (fixup_sigtramp): Update call to new_block. Add symbol via
3237 dict_add_symbol.
3238 * jv-lang.c: Include dictionary.h.
3239 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3240 appropriately. Set class_symtab->free_func. Make sure the
3241 blockvector is big enough to hold two blocks.
3242 (add_class_symtab_symbol): Use dictionary methods.
3243 (free_class_block): New function.
3244 (type_from_class): Replace explicit iteration by
3245 ALL_BLOCK_SYMBOLS.
3246 * symtab.h (struct symtab): Replace 'free_ptr' method by
3247 'free_func'.
3248 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3249 sort_symtab_syms.
3250 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3251 sort_symtab_syms.
3252 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3253 Include dictionary.h.
3254 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3255 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3256 sort_symtab_syms.
3257 * objfiles.c: Include dictionary.h.
3258 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3259 * buildsym.c: Include dictionary.h.
3260 (finish_block): Use dictionary methods.
3261 (end_symtab): Set free_func to NULL, not free_ptr.
3262 * tracepoint.c: Include dictionary.h.
3263 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3264 (scope_info): Ditto.
3265 * stack.c: Include dictionary.h.
3266 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3267 (print_block_frame_labels, print_frame_arg_vars)
3268 (print_frame_args): Ditto.
3269 * symmisc.c (free_symtab_block): Use dictionary methods.
3270 (dump_symtab): Ditto.
3271 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3272 Include dictionary.h.
3273 * symfile.h: Delete declarations of sort_block_syms,
3274 sort_symtab_syms.
3275 * symfile.c (sort_block_syms): Delete.
3276 (sort_symtab_syms): Delete.
3277 * symtab.c: Include dictionary.h.
3278 (lookup_block_symbol): Use dictionary iterators.
3279 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3280 (search_symbols, make_symbol_completion_list): Ditto.
3281 (make_symbol_overload_list): Ditto.
3282 * valops.c (value_of_local): Use dict_empty.
3283 Include dictionary.h.
3284
3285 2003-06-11 J. Brobecker <brobecker@gnat.com>
3286
3287 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3288
3289 2003-06-11 David Carlton <carlton@bactrian.org>
3290
3291 * block.h (BLOCK_SHOULD_SORT): Delete.
3292 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3293 blocks.
3294 * ada-lang.c (ada_add_block_symbols): Ditto.
3295 * symfile.c (sort_block_syms): Delete.
3296 (sort_symtab_syms): Ditto.
3297 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3298 declarations.
3299 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3300 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3301 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3302 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3303 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3304 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3305 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3306
3307 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3308
3309 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3310 bits to 128.
3311
3312 2003-06-11 Andrew Cagney <cagney@redhat.com>
3313
3314 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3315 REGISTER_CONVERTIBLE.
3316 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3317 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3318 * gdbarch.h, gdbarch.c: Re-generate.
3319 * arch-utils.h (deprecated_register_convertible_not): Rename
3320 generic_register_convertible_not.
3321 * arch-utils.c (deprecated_register_convertible_not): Rename
3322 generic_register_convertible.
3323 (legacy_convert_register_p, legacy_register_to_value): Update.
3324 * sh-tdep.c (sh64_push_arguments): Update.
3325 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3326 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3327 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3328 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3329 * arch-utils.c (legacy_value_to_register): Update.
3330 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3331 (rs6000_register_convert_to_raw): Make parameter "from" const.
3332 * mips-tdep.c (mips_gdbarch_init): Update.
3333 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3334 * infcmd.c (default_print_registers_info): Update.
3335 * ia64-tdep.c (ia64_gdbarch_init): Update.
3336 (ia64_register_convert_to_raw): Make parameter "from" const.
3337 * i386-tdep.c (i386_gdbarch_init): Update.
3338 (i386_register_convert_to_raw): Update.
3339
3340 2003-06-11 Andrew Cagney <cagney@redhat.com>
3341
3342 * remote-fileio.c: Include "remote-fileio.h".
3343 * Makefile.in (remote-fileio.o): Update dependencies.
3344 (remote_fileio_h): Fix typo.
3345
3346 2003-06-11 Andrew Cagney <cagney@redhat.com>
3347
3348 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3349 (xstormy16_save_dummy_frame_tos): Make static.
3350 (_initialize_xstormy16_tdep): Add declaration.
3351 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3352 * v850-tdep.c: Make local functions static.
3353 (_initialize_v850_tdep): Add declaration.
3354 * sparc-tdep.c: Make local functions static.
3355 (_initialize_sparc_tdep): Add declaration.
3356 * sh-tdep.c: Make local functions static.
3357 (_initialize_sh_tdep): Add declaration.
3358 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3359 * s390-tdep.c: Make local functions static.
3360 (_initialize_s390_tdep): Add declaration.
3361 * dbxread.c (find_stab_function_addr): Make static.
3362 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3363 * ocd.c (_initialize_remote_ocd): Add declaration.
3364 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3365 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3366 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3367 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3368 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3369 * remote-array.c (_initialize_array): Add declaration.
3370 (_initialize_remote_monitors): Add declaration.
3371 * remote-mips.c: Make local functions static.
3372 (_initialize_remote_mips): Add declaration.
3373 * mcore-tdep.c: Make all local functions static.
3374 (_initialize_mcore_tdep): Add declaration.
3375 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3376 * abug-rom.c (_initialize_abug_rom): Add declaration.
3377 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3378 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3379 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3380 * remote-est.c (_initialize_est): Add declaration.
3381 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3382 (m68hc11_call_dummy_address): Make static.
3383 * ia64-tdep.c: Make local functions static.
3384 (_initialize_ia64_tdep): Add declaration.
3385 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3386 * monitor.c (monitor_wait_filter): Make static.
3387 (_initialize_remote_monitors): Add declaration.
3388 * remote-hms.c (_initialize_remote_hms): Add declaration.
3389 * remote-e7000.c (fetch_regs_from_dump): Make static.
3390 (expect_n): Make static.
3391 (_initialize_remote_e7000): Add declaration.
3392 * ser-e7kpc.c: Always include "defs.h".
3393 (_initialize_ser_e7000pc): Add declaration.
3394 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3395 * cris-tdep.c: Make all but one function static.
3396 (_initialize_cris_tdep): Add declaration.
3397 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3398 * solib.c (update_solib_list): Make static.
3399 (_initialize_solib): Add declaration.
3400 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3401 (_initialize_avr_tdep): Add declaration.
3402 * remote-rdi.c (voiddummy): Make static.
3403 (_initialize_remote_rdi): Add declaration.
3404 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3405 * remote-rdp.c (send_rdp): Make static.
3406 (_initialize_remote_rdp): Add declaration.
3407 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3408
3409 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
3410
3411 * remote-fileio.c: Make ari happy.
3412
3413 2003-06-10 J. Brobecker <brobecker@gnat.com>
3414
3415 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3416 fetching the trailing bytes of the buffer we are about to write.
3417
3418 2003-06-10 Andrew Cagney <cagney@redhat.com>
3419
3420 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3421 * Makefile.in (remote-fileio.o): Update dependencies.
3422 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3423 include <setjmp.h>, or <sys/types.h> conditional on USG.
3424 (remote_fio_jmp_buf): Delete global variable.
3425
3426 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
3427 Martin M. Hunt <hunt@redhat.com>
3428
3429 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3430 (SFILES): Add remote-fileio.c.
3431 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3432 dependencies for building remote.o.
3433 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3434 * remote-fileio.h: New header file defining remote File-I/O interface.
3435 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3436 static storage class.
3437 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3438 'F' packet.
3439 (_initialize_remote): Call initialize_remote_fileio().
3440 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3441 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3442 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3443 (captured_main): Initialize new ui_files.
3444 * ui-file.c: Add read and fgets input functions.
3445 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3446 (null_file_read): New function.
3447 (ui_file_read): New function.
3448 (set_ui_file_read): New function.
3449 (stdio_file_read): New function.
3450 * ui-file.h: New type ui_file_read_ftype.
3451 (set_ui_file_read): Declare.
3452 (ui_file_read): Declare.
3453
3454 2003-06-09 Andrew Cagney <cagney@redhat.com>
3455
3456 * frame.h (deprecated_unwind_get_saved_register): Rename
3457 generic_unwind_get_saved_register, update comments.
3458 * mips-tdep.c (mips_get_saved_register): Update.
3459 * frame.c (deprecated_unwind_get_saved_register): Update.
3460
3461 2003-06-09 Andrew Cagney <cagney@redhat.com>
3462
3463 * vax-tdep.c (vax_frame_locals_address): Delete function.
3464 (vax_gdbarch_init): Do not set frame_locals_address.
3465 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3466 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3467 * s390-tdep.c (s390_frame_args_address): Delete function.
3468 (s390_gdbarch_init): Do not set frame_args_address or
3469 frame_locals_address.
3470 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3471 (ns32k_gdbarch_init): Do not set frame_locals_address.
3472 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3473 (hppa_frame_locals_address): Delete function.
3474 (hppa_gdbarch_init): Do not set frame_args_address, or
3475 frame_locals_address.
3476 * arm-tdep.c (arm_frame_args_address): Delete.
3477 (arm_frame_locals_address): Delete.
3478 (arm_gdbarch_init): Do not set frame_args_address, or
3479 frame_locals_address.
3480
3481 2003-06-09 Andrew Cagney <cagney@redhat.com>
3482
3483 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3484 * gdbarch.h, gdbarch.c: Re-generate.
3485 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3486 * arch-utils.c (frame_num_args_unknown): Delete function.
3487 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3488 (frame_info): Use FRAME_NUM_ARGS_P.
3489 * arm-tdep.c (arm_frame_num_args): Delete function.
3490 (arm_gdbarch_init): Do not set frame_num_args.
3491 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3492 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3493 (hppa_gdbarch_init): Do not set frame_num_args.
3494 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3495 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3496 frame_num_args to default frame_num_args_unknown.
3497 * v850-tdep.c (v850_gdbarch_init): Ditto.
3498 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3499 * sh-tdep.c (sh_gdbarch_init): Ditto.
3500 * s390-tdep.c (s390_gdbarch_init): Ditto.
3501 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3502 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3503 * mips-tdep.c (mips_gdbarch_init): Ditto.
3504 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3505 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3506 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3507 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3508 * i386-tdep.c (i386_gdbarch_init): Ditto.
3509 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3510 * frv-tdep.c (frv_gdbarch_init): Ditto.
3511 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3512 * cris-tdep.c (cris_gdbarch_init): Ditto.
3513 * avr-tdep.c (avr_gdbarch_init): Ditto.
3514 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3515
3516 2003-06-09 Andrew Cagney <cagney@redhat.com>
3517
3518 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3519 (print_frame_args): Moved to "stack.c".
3520 * stack.c: Include "gdb_assert.h".
3521 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3522 (print_frame_args): Moved from "printcmd.c".
3523 * frame.h (print_frame_args): Delete declaration.
3524 * Makefile.in (stack.o): Update dependencies.
3525
3526 2003-06-08 Andrew Cagney <cagney@redhat.com>
3527
3528 * frame.c (get_prev_frame): Remove reference to
3529 frame_args_address_correct in comments.
3530 * frame-base.c (default_frame_args_address): Delete code
3531 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3532 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3533 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3534 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3535 (vax_frame_args_address_correct): Delete declaration.
3536
3537 2003-06-08 Andrew Cagney <cagney@redhat.com>
3538
3539 * gdbarch.sh (UNWIND_SP): Add.
3540 * gdbarch.h, gdbarch.c: Re-generate.
3541 * frame.c (frame_sp_unwind): New function.
3542 (get_frame_sp): New function.
3543 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3544 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3545 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3546 value.
3547 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3548 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3549
3550 2003-06-08 Andrew Cagney <cagney@redhat.com>
3551
3552 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3553 REMOTE_BREAKPOINT.
3554 * remote.c: Update.
3555 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3556 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3557 * config/m68k/tm-sun3.h: Update.
3558 * config/m68k/tm-m68klynx.h: Update.
3559 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3560
3561 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3562 trad_frame". Update comments.
3563 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3564 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3565 (trad_frame_register_value, trad_frame_prev_register): Update.
3566
3567 2003-06-08 Andrew Cagney <cagney@redhat.com>
3568
3569 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3570 from GCC's acinclude.m4.
3571 * configure.in: Check for getopt's delcaration.
3572 * aclocal.m4, config.in, configure: Re-generate.
3573 * main.c (error_init): Delete declaration.
3574 * defs.h (error_init): Declare.
3575 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3576 (rs6000_convert_from_func_ptr_addr): Make static.
3577 (_initialize_rs6000_tdep): Add declaration.
3578 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3579 (show_commands, set_verbose, show_history): Delete declaration.
3580 * top.h (set_verbose): Add declaration.
3581 (show_history, set_history, show_commands): Add declaration.
3582 (do_restore_instream_cleanup): Add declaration.
3583 * objc-lang.c (specialcmp): Make static.
3584 (print_object_command): Make static.
3585 (find_objc_msgsend): Make static.
3586 (find_objc_msgcall_submethod_helper): Make static.
3587 (find_objc_msgcall_submethod): Make static.
3588 (_initialize_objc_language): Add declaration.
3589 (find_implementation_from_class): Make static.
3590 (find_implementation): Make static.
3591 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3592 * objc-lang.h (lookup_struct_typedef): Add declaration.
3593 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3594 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3595 (do_restore_user_call_depth): Make static.
3596 (do_restore_instream_cleanup): Delete declaration.
3597 (dont_repeat): Delete declaration.
3598 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3599 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3600 * reggroups.c (_initialize_reggroup): Add declaration.
3601 * cp-support.c (_initialize_cp_support): Add declaration.
3602 * cp-abi.c (_initialize_cp_abi): Add declaration.
3603 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3604 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3605 (_initialize_gnu_v3_abi): Add declaration.
3606 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3607 (_initialize_gnu_v2_abi): Add declaration.
3608 * frame-base.c (_initialize_frame_base): Add declaration.
3609 * doublest.c (floatformat_from_length): Make static.
3610 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3611 * frame.c (create_sentinel_frame): Make static.
3612 (_initialize_frame): Add declaration.
3613 * top.c (do_catch_errors): Make static.
3614 (gdb_rl_operate_and_get_next_completion): Make static.
3615 * typeprint.c: Include "typeprint.h".
3616 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3617 (sentinel_frame_this_id): Make static.
3618 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3619 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3620 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3621 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3622 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3623 * maint.c (maintenance_print_architecture): Make static.
3624 * signals/signals.c (_initialize_signals): Add declaration.
3625 * std-regs.c (_initialize_frame_reg): Add declaration.
3626 * jv-exp.y (push_variable): ISO C definition.
3627 (push_qualified_expression_name): Ditto.
3628 * memattr.c (_initialize_mem): Add declaration.
3629 * remote.c (remote_check_watch_resources): Make static.
3630 (remote_stopped_by_watchpoint): Make static.
3631 (remote_stopped_data_address): Make static.
3632 * d10v-tdep.c (nr_dmap_regs): Make static.
3633 (a0_regnum): Make static.
3634 (d10v_frame_unwind_cache): Make static.
3635 (d10v_frame_p): Make static.
3636 * osabi.c (show_osabi): Make static.
3637 (_initialize_gdb_osabi): Add extern declaration.
3638 * gdbtypes.c (make_qualified_type): Make static.
3639 (safe_parse_type): Make static.
3640 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3641 * macrotab.c (macro_bcache_free): Make static.
3642 * interps.c (interp_set_quiet): Make static.
3643 (interpreter_exec_cmd): Make static.
3644 * stack.h (select_frame_command): New file.
3645 * stack.c: Include "stack.h".
3646 (select_frame_command_wrapper): Delete function.
3647 (select_frame_command): Make global.
3648 * infcall.c: Include "infcall.h".
3649 * linespec.c: Include "linespec.h".
3650 * symfile.c (sections_overlap): Make static.
3651 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3652 * charset.c (_initialize_charset): Add missing prototype.
3653 * regcache.c (init_legacy_regcache_descr): Make static.
3654 (do_regcache_xfree): Make static.
3655 (regcache_xfer_part): Make static.
3656 (_initialize_regcache): Add missing prototype.
3657 * breakpoint.c (parse_breakpoint_sals): Make static.
3658 (breakpoint_sals_to_pc): Make static.
3659 * interps.h (clear_interpreter_hooks): ISO C declaration.
3660 * Makefile.in (stack_h): Define.
3661 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3662 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3663
3664 2003-06-08 Andrew Cagney <cagney@redhat.com>
3665
3666 * Makefile.in (d10v-tdep.o): Update dependencies.
3667 (SFILES): Add trad-frame.c.
3668 (trad_frame_h): Define.
3669 (COMMON_OBS): Add trad-frame.o.
3670 (trad-frame.o): Specify dependencies.
3671 * d10v-tdep.c: Include "trad-frame.h".
3672 (saved_regs_unwinder): Delete function.
3673 (d10v_frame_prev_register): Use trad_frame_prev_register.
3674 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3675 trad_frame", delete "regs" and "prev_sp".
3676 (prologue_find_regs): Use trad-frame.
3677 * trad-frame.h, trad-frame.c: New files.
3678
3679 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3680
3681 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3682
3683 2003-06-07 Adam Fedor <fedor@gnu.org>
3684
3685 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3686 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3687 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3688 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3689 resolve_msgsend_super, resolve_msgsend_super_stret):
3690 Use it.
3691
3692 2003-06-07 Andrew Cagney <cagney@redhat.com>
3693
3694 * symfile.h: Re-indent, clean up comments.
3695
3696 2003-06-07 Andrew Cagney <cagney@redhat.com>
3697
3698 * inferior.h (deprecated_write_sp): Replace
3699 generic_target_write_sp.
3700 * regcache.c (deprecated_write_sp): Replace
3701 generic_target_write_sp.
3702 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3703 * vax-tdep.c (vax_gdbarch_init): Update.
3704 * v850-tdep.c (v850_gdbarch_init): Update.
3705 * sparc-tdep.c (sparc_gdbarch_init): Update.
3706 * sh-tdep.c (sh_gdbarch_init): Update.
3707 * s390-tdep.c (s390_gdbarch_init): Update.
3708 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3709 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3710 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3711 * mcore-tdep.c (mcore_gdbarch_init): Update.
3712 * m68k-tdep.c (m68k_gdbarch_init): Update.
3713 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3714 * ia64-tdep.c (ia64_gdbarch_init): Update.
3715 * h8300-tdep.c (h8300_gdbarch_init): Update.
3716 * frv-tdep.c (frv_gdbarch_init): Update.
3717 * cris-tdep.c (cris_gdbarch_init): Update.
3718 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3719
3720 2003-06-07 Andrew Cagney <cagney@redhat.com>
3721
3722 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3723 Assert that PC_REGNUM is valid.
3724 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3725
3726 2003-06-07 Andrew Cagney <cagney@redhat.com>
3727
3728 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3729 * gdbarch.h, gdbarch.c: Regenerate.
3730 * mn10300-tdep.c: Include "gdb_assert.h".
3731 (mn10300_read_fp): New function.
3732 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3733 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3734 * ia64-tdep.c: Include "gdb_assert.h".
3735 (ia64_read_fp): New function.
3736 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3737 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3738 * regcache.c (generic_target_read_sp): Delete function.
3739 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3740 * inferior.h (generic_target_read_sp): Delete declaration.
3741 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3742 generic_target_read_sp.
3743 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3744 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3745 * sh-tdep.c (sh_gdbarch_init): Ditto.
3746 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3747 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3748
3749 2003-06-07 Andrew Cagney <cagney@redhat.com>
3750
3751 * gdbarch.sh: Comment each field of startup_gdbarch.
3752 * gdbarch.h, gdbarch.c: Re-generate.
3753
3754 2003-06-07 Andrew Cagney <cagney@redhat.com>
3755
3756 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3757 * gdbarch.h, gdbarch.c: Re-generate.
3758 * regcache.c: Update comments on read_pc et.al.
3759 (generic_target_read_pc): Delete function.
3760 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3761 * inferior.h (generic_target_read_pc): Delete declaration.
3762 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3763 generic_target_read_pc.
3764 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3765 * sh-tdep.c (sh_gdbarch_init): Ditto.
3766 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3767 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3768
3769 2003-06-07 Andrew Cagney <cagney@redhat.com>
3770
3771 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3772 "index" with "special_local_sect". Use strcmp instead of STREQ.
3773 Append period to coments.
3774
3775 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3776
3777 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3778 (elfstab_offset_sections): Likewise.
3779 * gdb-stabs.h (stab_section_info): Likewise.
3780 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3781 * objfiles.c (objfile_relocate): Likewise.
3782 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3783 * remote.c (get_offsets): Likewise.
3784 (remote_cisco_objfile_relocate): Likewise.
3785 * somread.c (som_symfile_offsets): Likewise.
3786 * symfile.c (alloc_section_addr_info): New function.
3787 (build_section_addr_info_from_section_tab): Use it.
3788 (free_section_addr_info): Adjust.
3789 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3790 (syms_from_objfile): Allocate local_addr dynamically.
3791 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3792 dynamically.
3793 (add_symbol_file_command): Allocate sect_opts dynamically.
3794 (reread_symbols): Avoid use of SECT_OFF_MAX.
3795 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3796 (alloc_section_addr_info): Declare it.
3797 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3798 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3799 dynamically.
3800 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3801
3802 2003-06-06 Andrew Cagney <cagney@redhat.com>
3803
3804 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3805 (d10v_frame_unwind_cache): Do not set "return_pc".
3806
3807 2003-06-06 Michael Snyder <msnyder@redhat.com>
3808
3809 * h8300-tdep.c: Make tidy (long lines).
3810
3811 2003-06-06 Michal Ludvig <mludvig@suse.cz>
3812
3813 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3814 to regcache_collect().
3815
3816 2003-06-05 J. Brobecker <brobecker@gnat.com>
3817
3818 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3819 pc_in_sigtramp multiarch method.
3820 (hppa_hpux_som_init_abi): Use it.
3821 (hppa_hpux_elf_init_abi): Likewise.
3822 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3823 macro has been multiarched.
3824 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3825 macro here, as hppa64 isn't multiarched yet.
3826
3827 2003-06-05 Andrew Cagney <cagney@redhat.com>
3828
3829 * Makefile.in (value_h): Add $(frame_h).
3830 * value.h: Include "frame.h".
3831 (struct value): Replace "frame_addr" with "frame_id".
3832 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3833 * values.c (allocate_value): Use VALUE_FRAME_ID.
3834 (value_copy): Use VALUE_FRAME_ID.
3835 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3836 * valops.c (value_assign): Update. Use frame_find_by_id.
3837
3838 2003-06-05 Michal Ludvig <mludvig@suse.cz>
3839
3840 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3841 in each pass.
3842
3843 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3844
3845 * thread-db.c (check_event): For create/death event breakpoints,
3846 loop through all messages to ensure that we read the message
3847 corresponding to the breakpoint we are at.
3848
3849 2003-06-04 Michael Snyder <msnyder@redhat.com>
3850
3851 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3852
3853 2003-06-04 Mark Kettenis <kettenis@gnu.org>
3854
3855 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3856 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3857 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3858 when handling .eh_frame sections.
3859
3860 2003-06-04 J. Brobecker <brobecker@gnat.com>
3861
3862 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3863 prepare_to_proceed procedure instead of the hppa-specific one.
3864 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3865
3866 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
3867
3868 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3869 * config.in: Regenerated.
3870 * configure.in: Add test for syscall function and check for
3871 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3872 * configure: Regenerated.
3873 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3874 <sys/syscall.h>.
3875 (kill_lwp): New function that uses tkill syscall or
3876 uses kill, depending on whether threading model is nptl or not.
3877 All callers of kill() changed to use kill_lwp().
3878 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3879 see if all threads have already exited in the nptl model.
3880 (stop_and_resume_callback): New callback function used by the
3881 lin_lwp_wait thread exit handling code.
3882 (stop_wait_callback): Check for threads already having exited and
3883 delete such threads fromt the lwp list when discovered.
3884 (stop_callback): Don't assert retcode of kill call.
3885
3886 Roland McGrath <roland@redhat.com>
3887 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3888 nptl libthread_db.
3889
3890 2003-06-03 Richard Henderson <rth@redhat.com>
3891
3892 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3893 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3894 (alpha_sigtramp_frame_prev_register): Likewise.
3895 (alpha_heuristic_frame_prev_register): Likewise.
3896 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3897
3898 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3899 alpha-specific register id names.
3900 (alpha_mdebug_frame_unwind_cache): Likewise.
3901 (alpha_mdebug_frame_prev_register): Likewise.
3902
3903 2003-06-03 Richard Henderson <rth@redhat.com>
3904
3905 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3906 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3907 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3908 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3909 unwind routines.
3910 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3911 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3912 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3913
3914 * alpha-linux-tdep.c: Remove unnecessary includes.
3915 * Makefile.in (alpha-linux-tdep.o): Update.
3916
3917 2003-06-03 Richard Henderson <rth@redhat.com>
3918
3919 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3920 (alphabsd_fill_fpreg): Likewise.
3921
3922 2003-06-03 J. Brobecker <brobecker@gnat.com>
3923
3924 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3925 references to struct frame_info fields by calls to the equivalent
3926 accessors. Necessary now that frame_info is opaque.
3927
3928 2003-06-03 J. Brobecker <brobecker@gnat.com>
3929
3930 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3931 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3932 structure, field no longer exists.
3933
3934 2003-06-03 J. Brobecker <brobecker@gnat.com>
3935
3936 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3937 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3938
3939 2003-06-03 J. Brobecker <brobecker@gnat.com>
3940
3941 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3942 references to struct frame_info fields by calls to the equivalent
3943 accessors. Necessary now that frame_info is opaque.
3944
3945 2003-06-03 J. Brobecker <brobecker@gnat.com>
3946
3947 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3948 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3949 structure, field no longer exists.
3950
3951 2003-06-03 Theodore A. Roth <troth@openavr.org>
3952
3953 * remote.c (init_remote_state): Compute sizeof_g_packet by
3954 accumulation of the size of all registers instead of blindly using
3955 DEPRECATED_REGISTER_BYTES.
3956
3957 2003-06-03 Michael Snyder <msnyder@redhat.com>
3958
3959 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3960 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3961 for h8300sx.
3962
3963 2003-06-03 J. Brobecker <brobecker@gnat.com>
3964
3965 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3966 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3967
3968 2003-06-03 Andrew Cagney <cagney@redhat.com>
3969
3970 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3971 (sparc_convert_to_raw): Delete function.
3972 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3973 register_convert_to_virtual.
3974
3975 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3976
3977 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3978 layer if not dealing with a statically-linked threaded program.
3979
3980 2003-06-03 Kris Warkentin <kewarken@qnx.com>
3981
3982 * solib.c (solib_open): Update comment to reflect actual search order.
3983
3984 2003-06-03 Andrew Cagney <cagney@redhat.com>
3985
3986 * frame.c (get_frame_memory_signed): New function.
3987 (get_frame_memory, get_frame_memory_unsigned): New function.
3988 (get_frame_arch): New function.
3989 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3990 (get_frame_memory, get_frame_unsigned_memory): Declare.
3991 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3992 get_frame_memory_unsigned and get_frame_arch.
3993 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3994
3995 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3996
3997 * MAINTAINERS (write after approval): Add myself.
3998
3999 2003-06-03 Jim Blandy <jimb@redhat.com>
4000
4001 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4002 elements of gregset_t are 64 bits each, but access registers
4003 are still 32 bits, so they're packed two per gregset_t
4004 element. Unpack/pack them properly.
4005
4006 2003-06-02 David Carlton <carlton@bactrian.org>
4007
4008 * linespec.c (find_methods): Break out code into
4009 add_matching_methods and add_constructors.
4010 (add_matching_methods): New.
4011 (add_constructors): Ditto.
4012
4013 2003-06-02 Andrew Cagney <cagney@redhat.com>
4014
4015 * sparc-tdep.c (sparc_print_registers): Delete call to
4016 REGISTER_CONVERTIBLE.
4017 (sparc_gdbarch_init): Do not set register_convertible.
4018 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4019 * frv-tdep.c (frv_gdbarch_init): Ditto.
4020 * cris-tdep.c (cris_gdbarch_init): Ditto.
4021
4022 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
4023
4024 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4025 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4026 (syms_from_objfile): Ditto.
4027
4028 2003-06-03 Andreas Schwab <schwab@suse.de>
4029
4030 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4031 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4032
4033 2003-06-02 Richard Henderson <rth@redhat.com>
4034
4035 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4036 a member of all_reggroup.
4037
4038 2003-06-02 Richard Henderson <rth@redhat.com>
4039
4040 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4041 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4042 (alpha_lds, alpha_sts): New.
4043 (alpha_convert_register_p): Change from _register_convertible.
4044 (alpha_register_to_value): Change from _convert_to_virtual;
4045 restructure and fail for type sizes other than 4 or 8.
4046 (alpha_value_to_register): Similarly.
4047 (alpha_extract_return_value): Use alpha_sts.
4048 (alpha_store_return_value): Use alpha_lds.
4049 (alpha_gdbarch_init): Update hooks.
4050
4051 2003-06-02 Richard Henderson <rth@redhat.com>
4052
4053 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4054 regnum identifiers.
4055 (alpha_sigtramp_register_address): Likewise.
4056
4057 2003-06-02 Richard Henderson <rth@redhat.com>
4058
4059 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4060 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4061 * alpha-tdep.h: Declare them.
4062
4063 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4064 Remove zerobuf. Don't error on UNIQUE.
4065 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4066 (ALPHA_REGSET_UNIQUE): Provide default.
4067 (supply_gregset): Use alpha_supply_int_regs.
4068 (fill_gregset): Use alpha_fill_int_regs.
4069 (supply_fpregset): Use alpha_supply_fp_regs.
4070 (fill_fpregset): Use alpha_fill_fp_regs.
4071 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4072 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4073 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4074 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4075 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4076 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4077
4078 2003-06-02 Richard Henderson <rth@redhat.com>
4079
4080 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4081
4082 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4083 (alpha_store_return_value): Likewise.
4084
4085 2003-06-02 David Carlton <carlton@math.stanford.edu>
4086
4087 * block.c (contained_in): Add 'const' to arguments.
4088 (block_function): Ditto.
4089 * block.h: Update declarations for block_function and
4090 contained_in.
4091
4092 2003-06-02 David Carlton <carlton@math.stanford.edu>
4093
4094 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4095 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4096 * p-valprint.c (pascal_val_print): Ditto.
4097 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4098
4099 2003-06-02 Richard Henderson <rth@redhat.com>
4100
4101 * alpha-tdep.c (alpha_push_dummy_call): Use
4102 builtin_type_ieee_double_little instead of builtin_type_double.
4103
4104 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4105 sign-extension of 32-bit values.
4106 (alpha_store_return_value): Similarly.
4107
4108 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4109 (alpha_extract_return_value): Likewise.
4110 (alpha_store_return_value): Likewise.
4111
4112 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4113 (alpha_store_return_value): Error on IEEE Quad floats.
4114
4115 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4116 (alpha_extract_struct_value_address): Likewise.
4117 (alpha_store_return_value): Likewise.
4118 (alpha_store_struct_return): Remove.
4119 (alpha_gdbarch_init): Update hook registration to match.
4120
4121 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4122 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4123 macros where appropriate.
4124 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4125 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4126
4127 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4128 for SP, GP; void_func_ptr for PC; non-language-specific types
4129 for all others.
4130 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4131
4132 2003-06-02 Richard Henderson <rth@redhat.com>
4133
4134 * top.h (lim_at_start): Declare.
4135 * main.c (captured_main): Set it.
4136 * top.c (lim_at_start): Define.
4137 (command_loop): Use it instead of &environ.
4138 * event-top.c (command_handler): Likewise.
4139
4140 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4141
4142 * mipsnbsd-tdep.c: Update copyright years.
4143 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4144
4145 2003-06-01 Richard Henderson <rth@redhat.com>
4146
4147 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4148 (alpha-linux-tdep.o): Update dependencies.
4149 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4150 * alpha-mdebug-tdep.c: Remove unneeded includes.
4151
4152 2003-06-01 Richard Henderson <rth@redhat.com>
4153
4154 * alpha-tdep.c (alpha_register_reggroup_p): New.
4155 (alpha_gdbarch_init): Register it.
4156
4157 2003-06-02 Andrew Cagney <cagney@redhat.com>
4158
4159 * dwarfread.c: Eliminate "register"
4160 (decode_die_type): Eliminate assignment within "if".
4161 (struct_type, decode_array_element_type): Ditto.
4162 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4163 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4164 (decode_modified_type, completedieinfo): Ditto.
4165 * block.c: Eliminate "register".
4166 (blockvector_for_pc_sect): Eliminate assignment within "if".
4167 * cp-support.h (struct symbol): Opaque declaration.
4168 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4169
4170 2003-06-01 Richard Henderson <rth@redhat.com>
4171
4172 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4173 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4174
4175 2003-06-01 Adam Fedor <fedor@gnu.org>
4176
4177 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4178 * gdbarch.[ch]: Regenerate.
4179 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4180 (hppa_gdbarch_init): Set it in the gdbarch vector.
4181 * i386-tdep.c (i386_fetch_pointer_argument): New
4182 (i386_gdbarch_init): Set it into gdbarch.
4183 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4184 (rs6000_gdbarch_init): Set it in gdbarch.
4185 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4186 (sparc_gdbarch_init): Set it in gdbarch.
4187
4188 2003-06-01 Andrew Cagney <cagney@redhat.com>
4189
4190 * defs.h (extract_address): Delete declaration.
4191 * findvar.c (extract_address): Delete function.
4192 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4193 extract_address with the inline equivalent,
4194 extract_unsigned_integer.
4195 (xstormy16_extract_struct_value_address): Ditto.
4196 (xstormy16_pointer_to_address): Ditto.
4197 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4198 * v850-tdep.c (v850_push_arguments): Ditto.
4199 (v850_extract_return_value): Ditto.
4200 (v850_extract_struct_value_address): Ditto.
4201 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4202 (sparcnbsd_get_longjmp_target_64): Ditto.
4203 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4204 (get_longjmp_target): Ditto.
4205 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4206 (sh64_extract_struct_value_address): Ditto.
4207 (sh_push_arguments): Ditto.
4208 (sh64_push_arguments): Ditto.
4209 * remote-vxsparc.c (vx_read_register): Ditto.
4210 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4211 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4212 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4213 * mipsv4-nat.c (get_longjmp_target): Ditto.
4214 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4215 * mips-nat.c (get_longjmp_target): Ditto.
4216 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4217 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4218 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4219 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4220 * irix5-nat.c (get_longjmp_target): Ditto.
4221 * irix4-nat.c (get_longjmp_target): Ditto.
4222 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4223 (ia64_push_arguments): Ditto.
4224 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4225 * h8300-tdep.c (h8300_push_arguments): Ditto.
4226 (h8300_store_return_value): Ditto.
4227 (h8300_extract_struct_value_address): Ditto.
4228 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4229 (frv_push_arguments): Ditto.
4230 * avr-tdep.c (avr_pointer_to_address): Ditto.
4231 (avr_push_arguments): Ditto.
4232 * arm-tdep.c (arm_push_dummy_call): Ditto.
4233 (arm_get_longjmp_target): Ditto.
4234 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4235 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4236 (alpha_get_longjmp_target): Ditto.
4237
4238 * solib-irix.c (extract_mips_address): Inline extract_address,
4239 replacing it with extract_signed_integer.
4240 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4241 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4242 (first_link_map_member, open_symbol_file_object): Ditto.
4243 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4244 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4245 (LM_NEXT, LM_NAME): Ditto.
4246
4247 2003-06-01 Richard Henderson <rth@redhat.com>
4248
4249 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4250 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4251 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4252 (alpha_cannot_store_register): Likewise.
4253 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4254 * alpha-nat.c (supply_gregset): Likewise.
4255 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4256
4257 2003-06-01 Andrew Cagney <cagney@redhat.com>
4258
4259 * infcall.c (call_function_by_hand): Update comment on
4260 DEPRECATED_DUMMY_WRITE_SP.
4261
4262 * mips-tdep.c (mips_gdbarch_init): Do not set
4263 deprecated_dummy_write_sp.
4264 (mips_eabi_push_dummy_call): Set the SP register.
4265 (mips_o64_push_dummy_call): Set the SP register.
4266 (mips_o32_push_dummy_call): Set the SP register.
4267 (mips_n32n64_push_dummy_call): Set the SP register.
4268
4269 2003-06-01 Richard Henderson <rth@redhat.com>
4270
4271 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4272 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4273 (supply_gregset): Likewise.
4274 * alpha-tdep.c (alpha_store_return_value): Likewise.
4275 (alpha_get_longjmp_target): Likewise.
4276 (alpha_register_name): Constify array.
4277 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4278 deprecated_register_size, deprecated_register_bytes,
4279 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4280 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4281 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4282
4283 2003-06-01 Richard Henderson <rth@redhat.com>
4284
4285 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4286 from arg_reg_buffer to regcache to avoid double conversion.
4287
4288 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4289
4290 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4291 SP_REGNUM.
4292 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4293 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4294
4295 2003-06-01 Richard Henderson <rth@redhat.com>
4296
4297 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4298 (decode_frame_entry): Set it. Skip FDE augmentation.
4299
4300 2003-06-01 Richard Henderson <rth@redhat.com>
4301
4302 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4303 not overlapping PC_REGNUM.
4304
4305 2003-06-01 Richard Henderson <rth@redhat.com>
4306
4307 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4308 alpha_push_arguments. Don't dump argument register data to
4309 the target stack. Fix float and 128-bit long double semantics.
4310 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4311 (alpha_fix_call_dummy): Remove.
4312 (alpha_call_dummy_words): Remove.
4313 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4314
4315 2003-06-01 Richard Henderson <rth@redhat.com>
4316
4317 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4318
4319 2003-06-01 Andrew Cagney <cagney@redhat.com>
4320
4321 * mips-tdep.c (is_mips16_addr): New function.
4322 (make_mips16_addr, unmake_mips16_addr): New functions.
4323 (pc_is_mips16, mips_fetch_instruction): Use.
4324 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4325 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4326 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4327 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4328 TARGET_MIPS.
4329 * config/mips/tm-mips.h: Update copyright.
4330 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4331 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4332 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4333 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4334 (TM_PRINT_INSN_MACH): Delete.
4335 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4336
4337 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4338 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4339 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4340 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4341 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4342 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4343 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4344 mips*-*-riscos* and mips*-*-sysv* onto mips.
4345 * config/mips/mips64.mt: New file.
4346 * config/mips/mips.mt: New file.
4347 * config/mips/littlemips.mt: Delete file.
4348 * config/mips/decstation.mt: Delete file.
4349 * config/mips/vr4300el.mt: Delete file.
4350 * config/mips/vr5000el.mt: Delete file.
4351 * config/mips/vr5000.mt: Delete file.
4352 * config/mips/vr4100.mt: Delete file.
4353 * config/mips/vr4xxxel.mt: Delete file.
4354 * config/mips/vr4300.mt: Delete file.
4355 * config/mips/vr4xxx.mt: Delete file.
4356 * config/mips/bigmips.mt: Delete file.
4357 * config/mips/bigmips64.mt: Delete file.
4358 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4359 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4360 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4361 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4362 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4363 "tm-bigmips.h".
4364 * config/mips/tm-irix3.h: Ditto.
4365 * config/mips/tm-mipsv4.h: Ditto.
4366 * config/mips/tm-embed.h: Ditto.
4367 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4368 "tm-bigmips64.h".
4369 * config/mips/tm-vr5000el.h: Delete file.
4370 * config/mips/tm-tx39l.h: Delete file.
4371 * config/mips/tm-vr4300el.h: Delete file.
4372 * config/mips/tm-vr4xxxel.h: Delete file.
4373 * config/mips/tm-vr4300.h: Delete file.
4374 * config/mips/tm-vr4100.h: Delete file.
4375 * config/mips/tm-vr4xxx.h: Delete file.
4376 * config/mips/tm-vr5000.h: Delete file.
4377 * config/mips/tm-embedl64.h: Delete file.
4378 * config/mips/tm-embedl.h: Delete file.
4379 * config/mips/tm-embed64.h: Delete file.
4380 * config/mips/tm-bigmips64.h: Delete file.
4381 * config/mips/tm-bigmips.h: Delete file.
4382
4383 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4384
4385 Fix gdb/1216.
4386 * shnbsd-nat.c: Include "sh-tdep.h".
4387
4388 From Richard Henderson <rth@redhat.com>:
4389 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4390
4391 2003-05-31 Andrew Cagney <cagney@redhat.com>
4392
4393 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4394 forward declaration.
4395 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4396 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4397 (mips_find_saved_regs): Use set_reg_offset.
4398 (mips_frame_init_saved_regs): Delete function.
4399 (mips_pop_frame): Call mips_find_saved_regs instead of
4400 DEPRECATED_FRAME_INIT_SAVED_REGS.
4401
4402 2003-05-31 Andrew Cagney <cagney@redhat.com>
4403
4404 * mips-tdep.c (mips_gdbarch_init): Do not set
4405 deprecated_max_register_raw_size, register_virtual_size, and
4406 deprecated_max_register_virtual_size.
4407
4408 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4409
4410 * i386-tdep.c: Include "dwarf2-frame.h".
4411 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4412 * Makefile.in (i386-tdep.o): Update dependencies.
4413
4414 * dwarf2-frame.c, dwarf2-frame.h: New files.
4415 * Makefile.in (SFILES): Add dwarf2-frame.c.
4416 (dwarf2_frame_h): Define.
4417 (COMMON_OBS): Add dwarf2-frame.o.
4418 (dwarf2-frame.o): Add dependencies.
4419
4420 2003-05-31 Andreas Jaeger <aj@suse.de>
4421
4422 * x86-64-linux-nat.c: Fix comment.
4423
4424 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4425
4426 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4427 function signature.
4428
4429 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4430 have a sigcontext_addr handler.
4431 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4432 sigcontext_addr handler.
4433
4434 2003-05-31 Andrew Cagney <cagney@redhat.com>
4435
4436 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4437 (print_fp_register_row): Replace do_fp_register_row.
4438 (mips_print_fp_register): Add "file" and "frame" parameters.
4439 (mips_print_register): Add "file" and "frame" parameters.
4440 (mips_print_registers_info): Replace mips_do_registers_info.
4441 (mips_gdbarch_init): Set print_registers_info instead of
4442 deprecated_do_registers_info.
4443 (mips_read_fp_register_single): Add "frame" parameter.
4444 (mips_read_fp_register_double): Add "frame" parameter.
4445
4446 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4447
4448 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4449 Fixes a bug where GDB would print the wrong register names for
4450 targets without SSE.
4451
4452 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4453 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4454 registers.
4455
4456 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4457 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4458 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4459 TDEP->sc_sp_offset.
4460
4461 From Michal Ludvig <mludvig@suse.cz>:
4462 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4463 and `sc_num_regs'.
4464 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4465 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4466 I386_ST0_REGNUM): Move here from...
4467 * i386-tdep.c: ... here.
4468 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4469 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4470 registers if possible.
4471 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4472 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4473 Remove variables.
4474 (i386bsd_sc_reg_offset): New variable.
4475 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4476 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4477 TDEP->sc_sp_offset.
4478 (i386fbsd_sc_reg_offset): New variable.
4479 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4480 TDEP->sc_num_regs.
4481 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4482 variables.
4483 (i386fbsd4_sc_reg_offset): New variable.
4484 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4485 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4486 TDEP->sc_sp_offset.
4487 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4488 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4489 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4490 Remove variables.
4491 (i386nbsd_sc_reg_offset): New variable.
4492 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4493 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4494 TDEP->sc_sp_offset.
4495 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4496 Remove variables.
4497 (i386obsd_sc_reg_offset): New variable.
4498 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4499 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4500 TDEP->sc_sp_offset.
4501 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4502 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4503 for frame pointer offset in `struct sigcontext'.
4504
4505 2003-05-31 Andrew Cagney <cagney@redhat.com>
4506
4507 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4508 architecture methods call_dummy_words, sizeof_call_dummy_words,
4509 push_return_address, store_struct_return, and fix_call_dummy. Set
4510 push_dummy_call instead of deprecated_push_arguments.
4511 (mips_store_struct_return): Delete function.
4512 (mips_fix_call_dummy): Delete function.
4513 (mips_push_return_address): Delete function.
4514 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4515 RA_REGNUM and T9_REGNUM.
4516 (mips_n32n64_push_dummy_call): Ditto for
4517 mips_n32n64_push_arguments.
4518 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4519 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4520
4521 2003-05-31 Andrew Cagney <cagney@redhat.com>
4522
4523 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4524 "dummy_addr" to "bp_addr".
4525 * infcall.c (call_function_by_hand): Pass "funaddr" to
4526 gdbarch_push_dummy_call.
4527 * gdbarch.h, gdbarch.c: Re-generate.
4528 * i386-tdep.c (i386_push_dummy_call): Update.
4529 * arm-tdep.c (arm_push_dummy_call): Update.
4530 * d10v-tdep.c (d10v_push_dummy_call): Update.
4531
4532 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4533
4534 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4535 variable declarations.
4536 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4537 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4538 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4539 x86_64_init_frame_pc, x86_64_init_frame_pc,
4540 x86_64_function_has_prologue): Remove prototypes.
4541 (X86_64_NUM_GREGS): New define.
4542 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4543 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4544 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4545 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4546 XMM1_REGNUM): Remove defines.
4547 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4548 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4549 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4550 X86_64_XMM1_REGNUM): New defines.
4551 (struct x86_64_register_info): Renamed from `struct
4552 register_info'. Remove `size' member.
4553 (x86_64_register_info_table): Remove variable.
4554 (x86_64_register_info): New variable.
4555 (X86_64_NUM_REGS): New define.
4556 (X86_64_NUM_GREGS): Remove define.
4557 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4558 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4559 Remove variables.
4560 (x86_54_dwarf2_reg_to_regnum): Remove function.
4561 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4562 (x86_64_dwarf_reg_to_regnum): New function.
4563 (x86_64_register_name): Rewrite.
4564 (x86_64_register_raw_size): Remove function.
4565 (x86_64_register_byte_table): Remove variable.
4566 (x86_64_register_byte): Remove function.
4567 (x86_64_register_virtual_type): Remove function.
4568 (x86_64_register_type): New function.
4569 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4570 x86_64_register_convert_to_raw): Remove functions.
4571 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4572 (x86_64_use_struct_convention): Make static. Adjust for renamed
4573 defines.
4574 (x86_64_frame_init_saved_regs): Remove function.
4575 (x86_64_push_arguments): Make static. Change to accept a regcache
4576 as argument.
4577 (x86_64_store_return_value, x86_64_extract_return_value): Make
4578 static. Rewrite based on i386 counterparts.
4579 (x86_64_push_dummy_call): New function.
4580 (X86_64_NUM_SAVED_REGS): New define.
4581 (x86_64_register_number): Remove function.
4582 (x86_64_store_struct_return): Remove function.
4583 (x86_64_frameless_function_invocation,
4584 x86_64_function_has_prologue): Remove functions.
4585 (PROLOG_BUFSIZE): Remove define.
4586 (struct x86_64_frame_cache): New structure.
4587 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4588 x86_64_frame_cache, x86_64_frame_this_id,
4589 x86_64_frame_prev_register, x86_64_frame_p,
4590 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4591 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4592 functions.
4593 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4594 variables.
4595 (x86_64_skip_prologue): Rewrite in terms of
4596 x86_64_analyze_prologue.
4597 (x86_64_frame_base_address): New function.
4598 (x86_64_frame_base): New variable.
4599 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4600 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4601 set deprecated_fp_regnum, deprecated_register_size,
4602 deprecated_register_bytes, register_raw_size, register_byte,
4603 register_virtual_type, register_convertiable,
4604 register_convert_to_virtual, convert_to_raw,
4605 deprecated_get_saved_register, deprecated_target_read_fp,
4606 deprecated_push_arguments, deprecated_push_return_address,
4607 deprecated_pop_frame, deprecated_store_struct_return,
4608 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4609 frameless_function_invocation, deprecated_frame_saved_pc,
4610 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4611 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4612 deprecated_init_frame_pc and virtual_frame_pointer. Call
4613 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4614 and x86_64_frame_p. Call frame_base_set_default to register
4615 x86_64_frame_base.
4616 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4617 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4618 (_initialize_x86_64_tdep): Remove function.
4619 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4620 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4621 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4622 define.
4623 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4624 (x86_64_linux_sigcontext_addr): Rewrite.
4625 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4626 x86_64_linux_frame_saved_pc): Remove functions.
4627 (x86_64_linux_pc_in_sigtramp): Renamed from
4628 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4629 trampoline.
4630 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4631 Remove_functions.
4632 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4633 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4634 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4635 (x86_64_regmap): Rename to regmap.
4636 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4637 x86_64_num_gregs.
4638 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4639 x86_64_regmap.
4640 (x86_64_fxsave_offset): Remove function.
4641 (supply_fpregset): Simply call x86_64_supply_fxsave.
4642 (fill_fpregset): Simply call x86_64_fill_fxsave.
4643 (fetch_inferior_registers, store_inferior_registers): Avoid
4644 asignment in if-statement.
4645 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4646 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4647 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4648 (fetch_core_registers): Remove function.
4649 (linux_elf_core_fns): Remove.
4650 (offsetoff): Don't define.
4651 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4652 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4653 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4654 add core-regset.o.
4655 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4656 protection against multiple includes instead of NM_X86_64_h. Add
4657 various comments. Include "config/nm-linux.h". Don't include
4658 <signal.h>.
4659 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4660 GET_THREAD_SIGNALS): Remove defines.
4661 (x86_64_register_u_addr, kernel_u_size,
4662 lin_thread_get_thread_signals): Remove prototypes.
4663 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4664 [HAVE_LINK_H]: Don't include "solib.h".
4665 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4666 * config/i386/tm-x86-64linux.h: Fix comments.
4667 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4668 x86-64-tdep.o): Update dependencies.
4669
4670 2003-05-30 Andrew Cagney <cagney@redhat.com>
4671
4672 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4673 Change parameter type to a "struct regcache *".
4674
4675 * gdbarch.sh: Regardless of the multi-arch level, always define
4676 the macro when not already defined.
4677 * gdbarch.h, gdbarch.c: Re-generate.
4678
4679 2003-05-30 Richard Henderson <rth@redhat.com>
4680
4681 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4682 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4683 (alpha_mdebug_frame_this_id): Likewise.
4684 (alpha_mdebug_frame_prev_register): Likewise.
4685 (alpha_mdebug_frame_base_address): Likewise.
4686 (alpha_mdebug_frame_locals_address): Likewise.
4687 (alpha_mdebug_frame_args_address): Likewise.
4688 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4689 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4690 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4691 loop increment.
4692 (alpha_heuristic_frame_this_id): Make static.
4693 (alpha_heuristic_frame_prev_register): Likewise.
4694 (alpha_heuristic_frame_base_address): Likewise.
4695 * alpha-tdep.h: Update.
4696
4697 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4698
4699 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4700 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4701 defenitions.
4702 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4703 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4704 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4705 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4706 I386_ST0_REGNUM): New defines.
4707 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4708 codestream_get): Remove define.
4709 (codestream_next_addr, condestream_addr, condestream_buf,
4710 codestream_off, codestream_cnt): Remove variables.
4711 (codestream_fill, codestream_seek, codestream_read): Remove
4712 functions.
4713 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4714 functionality.
4715 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4716 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4717 i386_frame_saved_pc, i386_saved_pc_after_call,
4718 i386_frame_num_args, i386_frame_init_saved_regs,
4719 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4720 i386_push_arguments): Remove functions.
4721 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4722 functionality. Use i386_analyze_prologue instead of
4723 i386_get_frame_setup.
4724 (I386_NUM_SAVED_REGS): New define.
4725 (struct i386_frame_cache): New structure.
4726 (i386_alloc_frame_cache, i386_analyze_struct_return,
4727 i386_skip_probe, i386_analyze_frame_setup,
4728 i386_analyze_register_saves, i386_analyze_prologue,
4729 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4730 i386_frame_prev_register, i386_sigtramp_frame_cache,
4731 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4732 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4733 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4734 New functions.
4735 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4736 New variables.
4737 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4738 I386_EAX_REGNUM and I386_EDX_REGNUM.
4739 (i386_extract_return_value, i386_store_return_value): Use
4740 I386_ST0_REGNUM where appropriate.
4741 (i386_extract_struct_value_address): Rewrite to use extract_address.
4742 (i386_svr4_pc_in_sigtramp): Add comment.
4743 (i386_svr4_sigcontext_addr): Rewrite.
4744 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4745 TDEP->sc_sp_offset.
4746 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4747 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4748 of new defines. Set push_dummy_call, don't set
4749 deprecated_push_arguments, deprecated_push_return_address,
4750 deprecated_pop_frame. Don't set parm_boundary. Don't set
4751 deprecated_frame_chain, deprecated_frame_saved_pc,
4752 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4753 save_dummy_frame_tos, unwind_pc. Call
4754 frame_unwind_append_predicate and frame_base_set_default. Don't
4755 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4756 Don't set frameless_function_invocation. Don't set
4757 deprecated_register_bytes, deprecated_register_size,
4758 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4759 * i386-linux-tdep.c: Fix formatting in some comments.
4760 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4761 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4762 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4763 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4764 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4765 redundant parentheses.
4766 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4767 (i386_linux_sigcontext_addr): Use it. Rewrite.
4768 (find_minsym_and_objfile): Change name of second argument.
4769 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4770 changed. Use frame_pc_unwind instead of
4771 DEPRECATED_SAVED_PC_AFTER_CALL.
4772 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4773 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4774 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4775 unwinder.
4776 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4777 "dummy-frame.h".
4778 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4779 (_initialize_i386_cygwin_tdep): New prototype.
4780 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4781 deprecated_frame_chain_valid.
4782 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4783 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4784 Rely on the SVR4 defaults.
4785 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4786 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4787
4788 2003-05-30 Andrew Cagney <cagney@redhat.com>
4789
4790 * infcall.c (call_function_by_hand): Always call
4791 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4792
4793 2003-05-30 Richard Henderson <rth@redhat.com>
4794
4795 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4796 increment.
4797
4798 2003-05-29 Jim Blandy <jimb@redhat.com>
4799
4800 Use gdbarch methods for solib stuff on PowerPC Linux.
4801 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4802 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4803 show through.
4804 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4805 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4806 giving the same effect as the #definitions above.
4807
4808 2003-05-29 Adam Fedor <fedor@gnu.org>
4809
4810 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4811 (find_implementation_from_class): Replace it with the standard
4812 case i.e. do nothing.
4813
4814 2003-05-29 Richard Henderson <rth@redhat.com>
4815
4816 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4817 (alpha_linux_sigtramp_offset): Use it. Make static.
4818 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4819 update for new frame model.
4820 * alpha-mdebug-tdep.c: New file.
4821 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4822 (alpha_osf1_init_abi): Install it.
4823 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4824 (linked_proc_desc_table): Remove.
4825 (alpha_frame_past_sigtramp_frame): Remove.
4826 (alpha_dynamic_sigtramp_offset): Remove.
4827 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4828 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4829 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4830 (push_sigtramp_desc): Remove.
4831 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4832 (alpha_cannot_store_register): Likewise.
4833 (alpha_sigcontext_addr): Remove.
4834 (alpha_find_saved_regs): Remove.
4835 (alpha_frame_init_saved_regs): Remove.
4836 (alpha_init_frame_pc_first): Remove.
4837 (read_next_frame_reg): Remove.
4838 (alpha_frame_saved_pc): Remove.
4839 (alpha_saved_pc_after_call): Remove.
4840 (temp_proc_desc, temp_saved_regs): Remove.
4841 (alpha_about_to_return): Remove.
4842 (cached_proc_desc): Remove.
4843 (alpha_frame_chain): Remove.
4844 (alpha_print_extra_frame_info): Remove.
4845 (alpha_init_extra_frame_info): Remove.
4846 (alpha_frame_locals_address): Remove.
4847 (alpha_frame_args_address): Remove.
4848 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4849 (alpha_push_dummy_frame): Remove.
4850 (alpha_pop_frame): Remove.
4851 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4852 (alpha_read_insn): New.
4853 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4854 for different insn encodings.
4855 (alpha_in_lenient_prologue): Remove.
4856 (struct alpha_sigtramp_unwind_cache): New.
4857 (alpha_sigtramp_frame_unwind_cache): New.
4858 (alpha_sigtramp_register_address): New.
4859 (alpha_sigtramp_frame_this_id): New.
4860 (alpha_sigtramp_frame_prev_register): New.
4861 (alpha_sigtramp_frame_unwind): New.
4862 (alpha_sigtramp_frame_p): New.
4863 (struct alpha_heuristic_unwind_cache): New.
4864 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4865 don't count nop insns that occur between functions.
4866 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4867 heuristic_proc_desc, but without the mdebug wrapping.
4868 (alpha_heuristic_frame_this_id): New.
4869 (alpha_heuristic_frame_prev_register): New.
4870 (alpha_heuristic_frame_unwind): New.
4871 (alpha_heuristic_frame_p): New.
4872 (alpha_heuristic_frame_base_address): New.
4873 (alpha_heuristic_frame_base): New.
4874 (alpha_unwind_dummy_id): New.
4875 (alpha_unwind_pc): New.
4876 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4877 frame related deprecated initializations; install replacements.
4878 (alpha_dump_tdep): Remove.
4879 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4880 (alpha_read_insn, alpha_after_prologue,
4881 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4882 alpha_heuristic_frame_prev_register,
4883 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4884 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4885 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4886 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4887
4888 2003-05-29 Andrew Cagney <cagney@redhat.com>
4889
4890 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4891 dependant on the availability of ASSERT_FUNCTION.
4892 (ASSERT_FUNCTION): Do not define when there is no function name.
4893
4894 2003-05-29 Kevin Buettner <kevinb@redhat.com>
4895
4896 From Jimi X <jimix@watson.ibm.com>:
4897 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4898
4899 2003-05-28 Jim Blandy <jimb@redhat.com>
4900
4901 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4902 argument to ptrace to int; the system headers should give it the
4903 right type, and pointers don't fit in ints on powerpc64-*-*.
4904
4905 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4906
4907 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4908 DW_TAG_catch_block.
4909
4910 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4911
4912 * stabsread.c (dbx_lookup_type): Make static.
4913 (read_type): Ditto.
4914 (add_undefined_type): Ditto.
4915 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4916 not export.
4917
4918 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4919
4920 * hpread.c (hpread_has_name): Make static.
4921 (hpread_psymtab_to_symtab): Ditto.
4922 (file_exists): Ditto.
4923 (hpread_call_pxdb): Ditto.
4924 (hpread_pxdb_needed): Ditto.
4925 (hpread_quick_traverse): Ditto.
4926 (hpread_get_header): Ditto.
4927 (hpread_get_lntt): Ditto.
4928 (hpread_get_slt): Ditto.
4929 (class_of): Ditto.
4930
4931 2003-05-25 Andreas Schwab <schwab@suse.de>
4932
4933 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4934 stack_align and deprecated_extra_stack_alignment_needed.
4935 (m68k_stack_align): Delete.
4936
4937 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4938 (m68k_register_virtual_size): Likewise.
4939 (altos_skip_prologue): Remove obsolete function.
4940 (isi_frame_num_args): Likewise.
4941 (news_frame_num_args): Likewise.
4942 (m68k_fix_call_dummy): Make static.
4943 (m68k_push_dummy_frame): Likewise.
4944 (m68k_pop_frame): Likewise.
4945 (m68k_skip_prologue): Likewise.
4946 (m68k_frame_init_saved_regs): Likewise.
4947 (m68k_saved_pc_after_call): Likewise.
4948 (m68k_get_longjmp_target): Make multi-arch.
4949 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4950 structure. Register m68k_get_longjmp_target if enabled.
4951 * m68k-tdep.h (struct gdbarch_tdep): Define.
4952 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4953
4954 * Makefile.in (config.status): Also depend on configure.tgt
4955 and configure.host.
4956 (m68klinux-tdep.o): Update dependencies.
4957 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4958 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4959 (M68K_LINUX_JB_PC): Define.
4960 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4961 and take additional parameter.
4962 (m68k_linux_sigtramp_saved_pc): Update.
4963 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4964 m68k_linux_pc_in_sigtramp, in_plt_section,
4965 find_solib_trampoline_target.
4966 * config/m68k/tm-linux.h: Don't include any tm headers.
4967 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4968 (JB_ELEMENT_SIZE): Likewise.
4969 (JB_PC): Likewise.
4970 (GET_LONGJMP_TARGET): Likewise.
4971 (IN_SIGTRAMP): Likewise.
4972 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4973
4974 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4975
4976 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4977 (sparc32_push_arguments): Re-implement by calling
4978 sparc32_do_push_arguments.
4979
4980 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4981
4982 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4983 SPARC_O1_REGNUM): New defines.
4984 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4985 (sparc32_store_return_value): New function.
4986 (sparc_extract_struct_value_address): Rewrite to operate on a
4987 regcache.
4988 (sparc_gdbarch_init): Don't set
4989 deprecated_extract_struct_value_address. Set
4990 extract_struct_value_address instead. Don't set
4991 deprecated_extract_return_value and deprecated_store_return_value
4992 for 32-bit targets. Set extract_return_value and
4993 store_return_value instead.
4994 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4995 DEPRECTAED_EXTRACT_RETURN_VALUE,
4996 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4997 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4998 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4999 (sparc_store_return_value): Remove prototype.
5000 (sparc32_store_return_value): New prototype.
5001 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5002 Adjust prototypes.
5003
5004 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5005
5006 * sparcnbsd-tdep.c: Include "gdb_string.h".
5007
5008 2003-05-23 Andrew Cagney <cagney@redhat.com>
5009
5010 * p-valprint.c (pascal_val_print): Replace extract_address with
5011 the inline equivalent extract_unsigned_integer.
5012 * jv-valprint.c (java_value_print): Ditto.
5013 * ada-valprint.c (ada_val_print_1): Ditto.
5014 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5015
5016 2003-05-23 Theodore A. Roth <troth@openavr.org>
5017
5018 * blockframe.c (frameless_look_for_prologue): Remove unused
5019 after_prologue variable.
5020
5021 2003-05-23 Mark Kettenis <kettenis@gnu.org>
5022
5023 * blockframe.c (get_pc_function_start): Rewrite to avoid
5024 asignments in if-statements.
5025
5026 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5027
5028 Committed by Elena Zannoni <ezannoni@redhat.com>.
5029 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5030 files, don't relocate absolute symbols (and do use mst_abs).
5031
5032 2003-05-23 Andrew Cagney <cagney@redhat.com>
5033
5034 * objc-lang.c: Include "gdb_assert.h".
5035 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5036 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5037 (gdb_check, gdb_check_fatal): Delete functions.
5038 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5039 gdb_assert.
5040 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5041 * Makefile.in (objc-lang.o): Update dependencies.
5042
5043 2003-05-22 Ian Lance Taylor <ian@airs.com>
5044
5045 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5046 with fprintf_filtered, not fprintf_unfiltered.
5047
5048 2003-05-22 Andrew Cagney <cagney@redhat.com>
5049
5050 * stack.c (frame_info): Inline extract_address, replacing it with
5051 extract_unsigned_integer.
5052 * findvar.c (unsigned_pointer_to_address): Ditto.
5053 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5054 * dwarf2expr.c (dwarf2_read_address): Ditto.
5055 * frame.c (frame_pc_unwind): Update comment.
5056 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5057
5058 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5059
5060 * infptrace.c (detach): Call print_sys_errmsg rather than
5061 perror_with_name to issue warning message when errno is non-zero
5062 after calling ptrace detach.
5063
5064 2003-05-21 J. Brobecker <brobecker@gnat.com>
5065
5066 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5067 macro definitions from here...
5068 * hppa-tdep.c: ...to there.
5069
5070 2003-05-20 Kevin Buettner <kevinb@redhat.com>
5071
5072 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5073 register_ptrace_addr(). Fix all callers.
5074
5075 2003-05-21 Andreas Schwab <schwab@suse.de>
5076
5077 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5078 dependencies.
5079 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5080 end.
5081 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5082 (_initialize_m68k_linux_tdep): New function.
5083 (m68k_linux_frame_saved_pc): Make static.
5084 (m68k_linux_extract_return_value): Likewise.
5085 (m68k_linux_store_return_value): Likewise.
5086 (m68k_linux_extract_struct_value_address): Likewise.
5087 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5088 Remove.
5089 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5090 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5091 (DEPRECATED_FRAME_SAVED_PC): Remove.
5092
5093 2003-05-20 Kris Warkentin <kewarken@qnx.com>
5094
5095 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5096 regset numbering rather than our own.
5097
5098 2003-05-19 David Carlton <carlton@bactrian.org>
5099
5100 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5101
5102 2003-05-19 David Carlton <carlton@bactrian.org>
5103
5104 Partial fix for PR c++/827.
5105 * cp-support.h: Include symtab.h.
5106 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5107 * cp-namespace.c: Update contributors.
5108 (cp_lookup_symbol_nonlocal): New.
5109 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5110 (lookup_symbol_file): Ditto.
5111 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5112 * block.h: Declare block_scope, block_using, block_global_block.
5113 * block.c (block_scope): New.
5114 (block_using, block_global_block): Ditto.
5115 * Makefile.in (cp_support_h): Depend on symtab_h.
5116 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5117
5118 2003-05-19 David Carlton <carlton@bactrian.org>
5119
5120 * language.h (struct language_defn): Add 'la_value_of_this'
5121 and 'la_lookup_symbol_nonlocal' members.
5122 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5123 lookup_symbol_static, lookup_symbol_global,
5124 lookup_symbol_aux_block.
5125 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5126 if we should search fields of this and how to do static/global
5127 lookup.
5128 (lookup_symbol_aux_block): Make extern.
5129 (basic_lookup_symbol_nonlocal): New.
5130 (lookup_symbol_static, lookup_symbol_global): Ditto.
5131 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5132 'la_lookup_symbol_nonlocal' members.
5133 * c-lang.c (c_language_defn, cplus_language_defn)
5134 (asm_language_defn, minimal_language_defn): Ditto.
5135 * jv-lang.c (java_language_defn): Ditto.
5136 * language.c (unknown_language_defn, auto_language_defn)
5137 (local_language_defn): Ditto.
5138 * m2-lang.c (m2_language_defn): Ditto.
5139 * objc-lang.c (objc_language_defn): Ditto.
5140 * scm-lang.c (scm_language_defn): Ditto.
5141 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5142 * p-lang.c (pascal_language_defn): Ditto for both.
5143 * Makefile.in (f-lang.o): Depend on value_h.
5144 (p-lang.o): Ditto.
5145
5146 2003-05-19 David Carlton <carlton@bactrian.org>
5147
5148 * block.h: Declare block_static_block.
5149 * block.c (block_static_block): New.
5150 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5151 lookup_symbol_aux_local, calling block_static_block instead.
5152 (lookup_symbol_aux_local): Delete 'static_block' argument.
5153
5154 2003-05-19 David Carlton <carlton@bactrian.org>
5155
5156 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5157
5158 2003-05-19 Michal Ludvig <mludvig@suse.cz>
5159
5160 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5161 register numbers mapping.
5162
5163 2003-05-18 Adam Fedor <fedor@gnu.org>
5164
5165 * symtab.c (completion_list_objc_symbol): New function.
5166 (make_symbol_completion_list): Use it to add ObjC symbols
5167 when looking though the list.
5168 (language_search_unquoted_string): New function.
5169 (make_file_symbol_completion_list): Use it.
5170
5171 2003-05-18 Andreas Schwab <schwab@suse.de>
5172
5173 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5174 dependencies.
5175 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5176 as m68k_linux_extract_return_value.
5177 (DEPRECATED_STORE_RETURN_VALUE): Define as
5178 m68k_linux_store_return_value.
5179 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5180 m68k_linux_extract_struct_value_address.
5181 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5182 get_next_frame, get_frame_base, get_frame_pc.
5183 (m68k_linux_frame_saved_pc): Use get_frame_base.
5184 (m68k_linux_extract_return_value): New function.
5185 (m68k_linux_store_return_value): New function.
5186 (m68k_linux_extract_struct_value_address): New function.
5187 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5188
5189 * c-exp.y (typebase): Remove duplicate occurence of
5190 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5191 of lookup_signed_typename.
5192
5193 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5194
5195 * dwarf2loc.c (find_location_expression): Change type of second
5196 argument to `size_t *'.
5197 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5198 for size variable.
5199
5200 2003-05-18 David Carlton <carlton@bactrian.org>
5201
5202 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5203 'linkage_name'. Add comment.
5204 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5205 'linkage_name'.
5206 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5207 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5208 (lookup_block_symbol): Ditto.
5209
5210 2003-05-16 Andrew Cagney <cagney@redhat.com>
5211
5212 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5213 * gdbarch.h, gdbarch.c: Re-generate.
5214 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5215 * TODO (REGISTER_BYTES): Delete reference.
5216 * alpha-tdep.c (alpha_gdbarch_init): Update.
5217 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5218 * x86-64-tdep.c (x86_64_init_abi): Update.
5219 * vax-tdep.c (vax_gdbarch_init): Update.
5220 * v850-tdep.c (v850_gdbarch_init): Update.
5221 * sparc-tdep.c (sparc_gdbarch_init): Update.
5222 * sh-tdep.c (sh_gdbarch_init): Update.
5223 * s390-tdep.c (s390_gdbarch_init): Update.
5224 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5225 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5226 (ns32k_gdbarch_init_32382): Update.
5227 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5228 * mcore-tdep.c (mcore_gdbarch_init): Update.
5229 * m68k-tdep.c (m68k_gdbarch_init): Update.
5230 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5231 * ia64-tdep.c (ia64_gdbarch_init): Update.
5232 * i386-tdep.c (i386_gdbarch_init): Update.
5233 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5234 * hppa-tdep.c (hppa_gdbarch_init): Update.
5235 * h8300-tdep.c (h8300_gdbarch_init): Update.
5236 * frv-tdep.c (frv_gdbarch_init): Update.
5237 * cris-tdep.c (cris_gdbarch_init): Update.
5238 * avr-tdep.c (avr_gdbarch_init): Update.
5239 * arm-tdep.c (arm_gdbarch_init): Update.
5240 * sparc-tdep.c (sparc_pop_frame): Update.
5241 * rs6000-tdep.c (rs6000_pop_frame): Update.
5242 * remote.c (init_remote_state): Update.
5243 (remote_prepare_to_store): Update.
5244 * remote-vx.c (vx_prepare_to_store): Update.
5245 * remote-sds.c (sds_fetch_registers): Update.
5246 (sds_prepare_to_store): Update.
5247 * remote-array.c: Update.
5248 * regcache.c (init_legacy_regcache_descr): Update.
5249 (init_regcache_descr): Update.
5250 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5251 (mips_o64_extract_return_value): Update.
5252 * irix5-nat.c (fetch_core_registers): Update.
5253 * irix4-nat.c (fetch_core_registers): Update.
5254 * i386-tdep.h: Update.
5255 * hppa-tdep.c (pa_do_registers_info): Update.
5256 (pa_do_strcat_registers_info): Update.
5257 * cris-tdep.c (cris_register_bytes_ok): Update.
5258 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5259 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5260 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5261 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5262 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5263 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5264 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5265 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5266 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5267 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5268 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5269 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5270 (REGISTER_BYTES_OK): Update.
5271 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5272 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5273
5274 2003-05-16 Ian Lance Taylor <ian@airs.com>
5275
5276 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5277 (vax_print_insn, print_insn_arg): Remove static functions.
5278 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5279 print_insn_vax from opcodes library.
5280 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5281
5282 2003-05-15 Andrew Cagney <cagney@redhat.com>
5283
5284 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5285 * target.h (memory_breakpoint_from_pc): Delete declaration.
5286 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5287 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5288 * monitor.c (monitor_insert_breakpoint): Use
5289 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5290 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5291 * gdbarch.h, gdbarch.c: Re-generate.
5292 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5293 (sparc_gdbarch_init): Set breakpoint_from_pc to
5294 sparc_breakpoint_from_pc.
5295 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5296 (BREAKPOINT_FROM_PC): Define.
5297 (sparc_breakpoint_from_pc): Declare.
5298 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5299 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5300 (BREAKPOINT_FROM_PC): Define.
5301 (BREAKPOINT): Delete macro.
5302 * target.h: Update comment.
5303 * s390-tdep.c (s390_gdbarch_init): Update comments.
5304 * remote.c: Update comments.
5305 * remote-mips.c: Update comments.
5306 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5307 * mem-break.c: Update comment.
5308 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5309 (ia64_memory_insert_breakpoint): Update.
5310 * config/sparc/tm-sparc.h: Update comment.
5311 * config/pa/tm-hppa64.h: Update comment.
5312 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5313 (rs6000_breakpoint_from_pc): Update.
5314 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5315 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5316 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5317 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5318 (mips_breakpoint_from_pc): Update.
5319 (mips_dump_tdep): Update.
5320
5321 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5322 * minsyms.c (lookup_minimal_symbol): Inline
5323 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5324
5325 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5326 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5327 * p-lang.c (pascal_printstr): Ditto.
5328 * objc-lang.c (objc_printstr): Ditto.
5329 * m2-lang.c (m2_printstr): Ditto.
5330 * jv-valprint.c (java_print_value_fields): Ditto.
5331 * f-lang.c (f_printstr): Ditto.
5332 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5333 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5334 for repeat_count_threshold.
5335 * Makefile.in (cp-valprint.o): Update dependencies.
5336
5337 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
5338
5339 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5340 (examine_prologue): Support looking through leaf functions, knowing
5341 they start with mov r2,r12. Support skipping over indirect stores
5342 of the input registers. Upon hitting a non-nop branch instruction
5343 or predicated instruction, bail out by setting lim_pc to the current
5344 pc value in the loop. At the end, if the lim_pc value is still
5345 beyond our calculated value and we have trust_limit set,
5346 use the lim_pc value.
5347
5348 2003-05-15 Andrew Cagney <cagney@redhat.com>
5349
5350 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5351 generic_find_dummy_frame.
5352 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5353 (deprecated_generic_find_dummy_frame): Update.
5354 (deprecated_read_register_dummy): Update.
5355 * frame.c (deprecated_generic_get_saved_register): Update.
5356
5357 2003-05-15 Theodore A. Roth <troth@openavr.org>
5358
5359 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5360 (avr_gdbarch_init): Set breakpoint_from_pc method.
5361
5362 2003-05-15 Andrew Cagney <cagney@redhat.com>
5363
5364 * regcache.c (build_regcache): Set deprecated_register_valid
5365 directly.
5366 (deprecated_grub_regcache_for_register_valid): Delete function.
5367 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5368 declaration.
5369
5370 2003-05-15 David Carlton <carlton@bactrian.org>
5371
5372 Committed by Elena Zannoni <ezannoni@redhat.com>
5373 * symtab.c (lookup_symbol_aux): Delete calls to
5374 lookup_symbol_aux_minsyms.
5375 (lookup_symbol_aux_minsyms): Comment out function and
5376 prototype. Delete lookup by mangled name.
5377
5378 2003-05-14 Kevin Buettner <kevinb@redhat.com>
5379
5380 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5381 correctly indicate an empty stack and ``stack_allocated'' to the
5382 indicate the number of elements initially allocated.
5383 (dwarf_expr_grow_stack): Simplify method for computing new
5384 stack size. Don't loop infinitely if ``stack_len'' is zero.
5385 (execute_stack_op): Move ``ctx->in_reg'' initialization
5386 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5387 be used in conjuction with DW_OP_piece. Revise error message
5388 accordingly.
5389
5390 2003-05-14 Theodore A. Roth <troth@openavr.org>
5391
5392 * MAINTAINERS: Update my email address.
5393 * avr-tdep.c: Ditto.
5394
5395 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
5396
5397 * symtab.h (enum domain_enum): Rename from namespace_enum.
5398 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5399 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5400 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5401 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5402 TYPES_NAMESPACE, METHODS_NAMESPACE.
5403 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5404 (struct symbol, struct partial_symbol): Rename field
5405 'namespace_enum namespace' to 'domain_enum domain'.
5406 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5407 Delete old define kludge for namespace.
5408
5409 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5410 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5411 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5412 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5413 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5414 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5415 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5416 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5417 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5418 occurrences of the above.
5419
5420 2003-05-14 Ian Lance Taylor <ian@airs.com>
5421
5422 * Makefile.in (install-only): Use $(SHELL) when running
5423 mkinstalldirs.
5424
5425 2003-05-13 Ian Lance Taylor <ian@airs.com>
5426
5427 * MAINTAINERS (write after approval): Add myself.
5428
5429 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5430 second and third arguments.
5431 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5432 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5433
5434 2003-05-13 Andrew Cagney <cagney@redhat.com>
5435
5436 * defs.h (store_address): Delete declaration.
5437 findvar.c (store_address): Delete function.
5438 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5439 store_unsigned_integer.
5440 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5441 * v850-tdep.c (v850_push_arguments): Ditto.
5442 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5443 * sh-tdep.c (sh64_get_saved_register): Ditto.
5444 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5445 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5446 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5447 (mips_get_saved_register): Ditto.
5448 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5449 (find_func_descr, ia64_push_arguments): Ditto.
5450 * i386-tdep.c (i386_push_arguments): Ditto.
5451 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5452 * frv-tdep.c (frv_push_arguments): Ditto.
5453 * frame.c (legacy_saved_regs_prev_register): Ditto.
5454 (deprecated_generic_get_saved_register): Ditto.
5455 * findvar.c (unsigned_address_to_pointer): Ditto.
5456 * dwarf2read.c (dwarf2_const_value): Ditto.
5457 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5458 * alpha-tdep.c (alpha_push_arguments): Ditto.
5459
5460 2003-05-12 J. Brobecker <brobecker@gnat.com>
5461
5462 * NEWS: Mention that the hppa-hpux port has been partially
5463 multiarched (32bit ABIT only, so far).
5464
5465 2003-05-11 Andrew Cagney <cagney@redhat.com>
5466
5467 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5468 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5469 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5470 sim/testsuite/sim/arm/misaligned2.ms, and
5471 sim/testsuite/sim/arm/misaligned3.ms.
5472 * disasm.h (struct ui_file): Add opaque struct declaration.
5473 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5474 * frame.h (struct ui_file): Ditto.
5475
5476 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5477
5478 * value.h: Pretty print.
5479
5480 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5481
5482 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5483
5484 2003-05-08 Andrew Cagney <cagney@redhat.com>
5485
5486 * regcache.h (max_register_size): Delete declaration.
5487 * regcache.c (max_register_size): Delete function.
5488 (struct regcache_descr): Delete field "max_register_size".
5489 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5490 registers fit in MAX_REGISTER_SIZE.
5491 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5492 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5493 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5494 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5495 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5496 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5497 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5498 * dve3900-rom.c, hppa-tdep.c: Ditto.
5499
5500 2003-05-08 David Carlton <carlton@math.stanford.edu>
5501
5502 * valops.c (push_word): Fix typo.
5503
5504 2003-05-08 Andrew Cagney <cagney@redhat.com>
5505
5506 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5507 * gdbarch.h: Re-generate.
5508 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5509 (legacy_max_register_raw_size): Delete declaration.
5510 * regcache.c (legacy_max_register_raw_size): Delete function.
5511 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5512 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5513 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5514 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5515 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5516 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5517 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5518 * findvar.c, dwarf2cfi.c: Ditto.
5519
5520 2003-05-08 Andrew Cagney <cagney@redhat.com>
5521
5522 * mips-tdep.c (read_signed_register): New function, moved to here
5523 from "regcache.c".
5524 (read_signed_register_pid): Ditto.
5525 * regcache.c (read_signed_register_pid): Delete function, moved to
5526 "mips-tdep.c".
5527 (read_signed_register): Ditto.
5528 * regcache.h (read_signed_register): Delete declaration.
5529 (read_signed_register_pid): Delete declaration.
5530
5531 2003-05-08 Andrew Cagney <cagney@redhat.com>
5532
5533 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5534 * gdbarch.h: Re-generate.
5535 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5536 (legacy_max_register_virtual_size): Delete declaration.
5537 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5538 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5539 * tracepoint.c (memrange_sortmerge): Ditto.
5540 * sparc-tdep.c (sparc_print_registers): Ditto.
5541 * regcache.c (legacy_max_register_virtual_size): Delete function.
5542
5543 2002-05-08 J. Brobecker <brobecker@gnat.com>
5544
5545 * fork-child.c (escape_bang_in_quoted_argument): New function.
5546 (fork_inferior): Escape '!' characters in quoted arguments
5547 only when needed.
5548
5549 2003-05-08 J. Brobecker <brobecker@gnat.com>
5550
5551 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5552 the language of the CU is not currently supported by GDB.
5553
5554 2003-05-08 J. Brobecker <brobecker@gnat.com>
5555
5556 * defs.h (language): Add language_minimal enum value.
5557 * c-lang.c (minimal_language_defn): New language definition.
5558 (_initialize_c_language): Add the new minimal language to the list
5559 of languages known to GDB.
5560
5561 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5562
5563 * frame.c (get_frame_type): Don't attempt to lazily initialize
5564 frame's unwinder for legacy frames.
5565
5566 2003-05-07 Andrew Cagney <cagney@redhat.com>
5567
5568 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5569 and "regcache" parameters.
5570 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5571
5572 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5573
5574 * dwarf2read.c (dwarf_decode_lines): Only use output of
5575 check_cu_functions() when calling record_line(). Do not update
5576 the current address.
5577
5578 2003-05-07 Andrew Cagney <cagney@redhat.com>
5579
5580 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5581 code.
5582
5583 2003-05-07 Jim Blandy <jimb@redhat.com>
5584
5585 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5586 'maint info symtabs' and 'maint info psymtabs'.
5587 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5588 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5589 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5590 Declarations updated.
5591 * maint.c (maintenance_list_command): Delete.
5592 (_initialize_maint_cmds): Update calls to add_cmd.
5593 * gdbcmd.h (maintenancelistlist): Delete declaration.
5594 * cli/cli-cmds.c (maintenancelistlist): Delete.
5595 (init_cmd_lists): Don't initialize it.
5596 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5597
5598 2003-05-07 Andrew Cagney <cagney@redhat.com>
5599
5600 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5601 "regcache".
5602 (d10v_print_registers_info): Update.
5603 (d10v_dmap_register, d10v_imap_register): Delete functions.
5604 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5605 and "imap_register".
5606 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5607 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5608 * arch-utils.c (generic_remote_translate_xfer_address): Add
5609 "regcache" and "gdbarch" parameters.
5610 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5611 parameter. Change class to multi-arch.
5612 * gdbarch.h, gdbarch.c: Re-generate.
5613 * remote.c (remote_xfer_memory): Use
5614 gdbarch_remote_translate_xfer_address.
5615
5616 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5617
5618 * infrun.c (prev_pc): Move declaration ahead of proceed().
5619 (proceed): Refresh prev_pc value before resuming.
5620 (stop_stepping): Remove code to refresh prev_pc.
5621
5622 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5623
5624 * nto-tdep.c: Removed stray comment.
5625
5626 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5627
5628 * i386-nto-tdep.c: Fix old K&R function definitions.
5629 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5630 Also change add_show_from_set() call to add_setshow_cmd().
5631 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5632
5633 2003-05-05 Andrew Cagney <cagney@redhat.com>
5634
5635 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5636 (fprint_dummy_frames): New function.
5637 (maintenance_print_dummy_frames): New function.
5638 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5639 * frame.c (fprint_frame_id): Make global.
5640 * frame.h (fprint_frame_id): Declare.
5641 * Makefile.in (dummy-frame.o): Update dependencies.
5642
5643 2003-05-05 Andrew Cagney <cagney@redhat.com>
5644
5645 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5646 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5647 SIZEOF_CALL_DUMMY_WORDS.
5648 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5649 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5650 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5651 CALL_DUMMY_BREAKPOINT_OFFSET.
5652 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5653 CALL_DUMMY_START_OFFSET.
5654 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5655 * gdbarch.h, gdbarch.c: Re-generate.
5656 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5657 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5658 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5659 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5660 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5661 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5662 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5663 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5664 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5665 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5666 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5667 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5668 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5669 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5670 * config/sparc/tm-sparc.h: Update.
5671
5672 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5673
5674 * configure.tgt: Add i[3456]86-*-nto*.
5675 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5676 * nto-tdep.c: New file. Neutrino target support routines.
5677 * nto-tdep.h: New file. Neutrino target header.
5678 * config/tm-qnxnto.h: New file.
5679 * config/i386/i386nto.mt: New file.
5680 * config/i386/tm-i386nto.h: New file.
5681
5682 2003-05-04 Andrew Cagney <cagney@redhat.com>
5683
5684 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5685 (load_infrun_state): Ditto.
5686 (struct thread_info): Drop "prev_func_name" field.
5687 * thread.c (load_infrun_state): Update.
5688 (save_infrun_state): Update.
5689 * infrun.c (prev_func_name): Delete variable.
5690 (init_wait_for_inferior): Do not clear prev_func_name.
5691 (stop_stepping, keep_going, context_switch): Do not swap
5692 prev_func_name.
5693 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5694 instead of PC_IN_SIGTRAMP.
5695
5696 2003-05-04 Andrew Cagney <cagney@redhat.com>
5697
5698 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5699 REGISTER_BYTE with register_offset_hack.
5700 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5701 that REGISTER_BYTE is consistent with the regcache.
5702 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5703 * gdbarch.h, gdbarch.c: Regenerate.
5704
5705 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5706
5707 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5708 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5709
5710 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5711
5712 2003-05-03 J. Brobecker <brobecker@gnat.com>
5713
5714 From Thierry Schneider <tpschneider1@yahoo.com>
5715 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5716 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5717 (mi-cmd-symbol.o): Add rule.
5718
5719 2003-05-03 Andrew Cagney <cagney@redhat.com>
5720
5721 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5722 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5723 * gdbarch.h, gdbarch.c: Re-generate.
5724 * d10v-tdep.c (d10v_push_dummy_code): New function.
5725 (d10v_gdbarch_init): Set push_dummy_code.
5726 * infcall.c (legacy_push_dummy_code): New function.
5727 (generic_push_dummy_code): New function.
5728 (push_dummy_code): New function.
5729 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5730 instead of dummy_addr, to push_dummy_call. Move call to
5731 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5732 switch.
5733 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5734
5735 2003-05-03 Andrew Cagney <cagney@redhat.com>
5736
5737 * disasm.h (print_insn): Declare.
5738 * disasm.c (init_gdb_disassemble_info): New function.
5739 (gdb_disassembly): Call init_gdb_disassemble_info.
5740 (gdb_print_insn): New function.
5741 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5742 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5743 * mcore-tdep.c: Include "disasm.h"
5744 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5745 * d10v-tdep.c: Include "disasm.h".
5746 (display_trace): Call gdb_print_insn, instead of print_insn.
5747 (print_insn): Delete function.
5748 * printcmd.c: Include "disasm.h".
5749 (print_insn): Delete function.
5750 (print_formatted): Call gdb_print_insn, instead of print_insn.
5751 * Makefile.in (printcmd.o): Update dependencies.
5752 (mcore-tdep.o, d10v-tdep.o): Ditto.
5753
5754 2003-05-02 Andrew Cagney <cagney@redhat.com>
5755
5756 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5757 PC_REGNUM, re-indent.
5758 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5759 PC_REGNUM isn't set.
5760
5761 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5762 * gdbarch.h, gdbarch.c: Re-generate.
5763 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5764 register_virtual_size, pc_regnum, or register_bytes.
5765 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5766 (d10v_register_type): Use D10V_PC_REGNUM.
5767 (d10v_print_registers_info, d10v_read_pc): Ditto.
5768 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5769 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5770
5771 2003-05-02 David Carlton <carlton@bactrian.org>
5772
5773 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5774 the name with mstrsave.
5775
5776 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5777
5778 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5779 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5780 (host_charset_name, target_charset_name): New vars for use by
5781 set/show commands.
5782 (host_charset_enum, target_charset_enum): New enums for set/show
5783 commands.
5784 (set_charset_sfunc, set_host_charset_sfunc,
5785 set_target_charset_sfunc): New functions.
5786 (set_host_charset, set_target_charset): Make static.
5787 (list_charsets, set_host_charset_command,
5788 set_target_charset_command): Delete functions.
5789 (show_charset_command): Rewrite as....
5790 (show_charset): Hook this up with the set/show command mechanism.
5791 (_initialize_charset): Change names of charsets to match the
5792 set/show enums. Use host_charset_name and target_charset_name.
5793 Use set/show mechanism for charset, host-charset, target-charset
5794 commands. Do not make 'show host-charset' and 'show
5795 target-charset' be aliases of 'show charset'.
5796
5797 * charset.h (set_host_charset, set_target_charset): Don't export,
5798 they are not used outside the file.
5799
5800 2003-05-01 Andrew Cagney <cagney@redhat.com>
5801
5802 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5803 (gdb_disassembly): Make "di" non static, always initialize and
5804 cleanup. Always use dis_asm_read_memory.
5805 (gdb_dis_asm_read_memory): Delete function.
5806
5807 2003-05-01 Andrew Cagney <cagney@redhat.com>
5808
5809 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5810 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5811
5812 2003-04-30 Andrew Cagney <cagney@redhat.com>
5813
5814 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5815 "tm_print_insn_info".
5816 (TARGET_PRINT_INSN_INFO): Delete macro.
5817 (dis_asm_read_memory): Delete function declaration.
5818 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5819 (tm_print_insn_info): Delete variable definition.
5820 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5821 * gdbarch.h, gdbarch.c: Re-generate.
5822 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5823 "deprecated_tm_print_insn_info".
5824 * mcore-tdep.c (mcore_dump_insn): Ditto.
5825 * mips-tdep.c (mips_gdbarch_init): Ditto.
5826 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5827 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5828 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5829 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5830 instead of TARGET_PRINT_INSN_INFO, add comment.
5831 * s390-tdep.c (s390_get_frame_info): Instead of
5832 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5833 (s390_check_function_end, s390_is_sigreturn): Ditto.
5834 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5835 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5836 * disasm.c: Include "gdbcore.h".
5837 (_initialize_disasm): New function, initialize
5838 "deprecated_tm_print_insn_info".
5839 (deprecated_tm_print_insn_info): New variable.
5840 (dis_asm_read_memory): Moved from "corefile.c", made static.
5841 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5842 * Makefile.in (disasm.o): Update dependencies.
5843
5844 2003-04-30 Andrew Cagney <cagney@redhat.com>
5845
5846 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5847
5848 2003-04-29 Adam Fedor <fedor@gnu.org>
5849
5850 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5851 * infcall.c (find_function_addr): Make non-static.
5852 * infcall.h (find_function_addr): Declare.
5853 * Makefile.in (eval.o): Update dependencies.
5854
5855 2003-04-28 Adam Fedor <fedor@gnu.org>
5856
5857 * symtab.c (symbol_find_demangled_name): Check for and demangle
5858 ObjC symbols.
5859 (symbol_init_demangled_name): Init for language_objc as well.
5860
5861 2003-04-28 Andrew Cagney <cagney@redhat.com>
5862
5863 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5864 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5865 * gdbarch.h, gdbarch.c: Re-generate.
5866 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5867 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5868 * inferior.h (deprecated_read_fp): Rename read_fp.
5869 (generic_target_read_fp): Delete declaration.
5870 * regcache.c (generic_target_read_fp): Delete function.
5871 (deprecated_read_fp): Replace read_fp, use
5872 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5873 * d10v-tdep.c (d10v_read_fp): Delete function.
5874 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5875
5876 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5877 deprecated_target_read_fp to generic_target_read_fp.
5878 * sh-tdep.c (sh_gdbarch_init): Ditto.
5879 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5880 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5881 * frv-tdep.c (frv_gdbarch_init): Ditto.
5882
5883 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5884 deprecated_fp_regnum.
5885 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5886 * vax-tdep.c (vax_gdbarch_init): Ditto.
5887 * v850-tdep.c (v850_gdbarch_init): Ditto.
5888 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5889 * sh-tdep.c (sh_gdbarch_init): Ditto.
5890 * s390-tdep.c (s390_gdbarch_init): Ditto.
5891 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5892 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5893 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5894 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5895 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5896 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5897 * i386-tdep.c (i386_gdbarch_init): Ditto.
5898 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5899 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5900 * frv-tdep.c (frv_gdbarch_init): Ditto.
5901 * cris-tdep.c (cris_gdbarch_init): Ditto.
5902 * avr-tdep.c (avr_gdbarch_init): Ditto.
5903 * arm-tdep.c (arm_gdbarch_init): Ditto.
5904 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5905
5906 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5907 * v850-tdep.c (v850_gdbarch_init): Ditto.
5908 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5909 * sh-tdep.c (sh_gdbarch_init): Ditto.
5910 * s390-tdep.c (s390_gdbarch_init): Ditto.
5911 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5912 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5913 * mips-tdep.c (mips_gdbarch_init): Ditto.
5914 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5915 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5916 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5917 * frv-tdep.c (frv_gdbarch_init): Ditto.
5918 * avr-tdep.c (avr_gdbarch_init): Ditto.
5919 * arm-tdep.c (arm_gdbarch_init): Ditto.
5920
5921 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5922 DEPRECATED_FP_REGNUM.
5923 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5924 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5925 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5926 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5927 (sparc32_register_virtual_type): Ditto.
5928 * sh-tdep.c (sh64_frame_chain): Ditto.
5929 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5930 (sh_nofp_frame_init_saved_regs): Ditto.
5931 (sh64_nofp_frame_init_saved_regs): Ditto.
5932 (sh_fp_frame_init_saved_regs): Ditto.
5933 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5934 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5935 * procfs.c (procfs_fetch_registers): Ditto.
5936 (procfs_store_registers): Ditto.
5937 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5938 (store_inferior_registers, fetch_core_registers): Ditto.
5939 (fetch_kcore_registers, clear_regs): Ditto.
5940 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5941 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5942 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5943 * nlm/i386.c (do_status): Ditto.
5944 * mipsv4-nat.c (supply_gregset): Ditto.
5945 * mips-tdep.c: Ditto for comments.
5946 * mips-nat.c (fetch_inferior_registers): Ditto.
5947 (store_inferior_registers, fetch_core_registers): Ditto.
5948 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5949 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5950 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5951 (i386_do_pop_frame, i386_register_type): Ditto.
5952 * hppa-tdep.c (hppa_frame_chain): Ditto.
5953 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5954 (hppa_pop_frame, hppa_read_fp): Ditto.
5955 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5956 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5957 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5958 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5959 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5960 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5961 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5962 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5963 * blockframe.c: Ditto for comments.
5964 * arch-utils.h: Ditto for comments.
5965 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5966 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5967 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5968 * alpha-tdep.h: Ditto for comments.
5969 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5970 (alpha_cannot_store_register): Ditto.
5971 (alpha_push_dummy_frame): Ditto.
5972 * alpha-nat.c (supply_gregset): Ditto.
5973
5974 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5975 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5976 * config/sparc/tm-sparc.h: Update comment.
5977
5978 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5979 deprecated_read_fp instead of TARGET_READ_FP.
5980 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5981 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5982 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5983 deprecated_read_fp instead of read_fp.
5984 * s390-tdep.c (s390_push_arguments): Ditto.
5985 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5986 * frame.h: Ditto in comments.
5987 * frame.c (legacy_get_prev_frame): Ditto.
5988 * dummy-frame.c (dummy_frame_this_id): Ditto.
5989 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5990
5991 2003-04-28 Andrew Cagney <cagney@redhat.com>
5992
5993 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5994 * gdbarch.h, gdbarch.c: Re-generate.
5995 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5996 * vax-tdep.c (_initialize_vax_tdep): Update.
5997 * v850-tdep.c (_initialize_v850_tdep): Update.
5998 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5999 * s390-tdep.c (_initialize_s390_tdep): Update.
6000 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6001 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6002 * mips-tdep.c (_initialize_mips_tdep): Update.
6003 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6004 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6005 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6006 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6007 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6008 * frv-tdep.c (_initialize_frv_tdep): Update.
6009 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6010 (_initialize_cris_tdep): Update.
6011 * arch-utils.c (legacy_print_insn): Update.
6012 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6013
6014 2003-04-26 Adam Fedor <fedor@gnu.org>
6015
6016 * linespec.c (decode_objc): New function to decode ObjC calls
6017 (decode_line_1): Check for ObjC calls (using decode_objc)
6018 * Makefile (linespec.o): Update dependencies.
6019
6020 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
6021
6022 * breakpoint.h (struct breakpoint_ops): New.
6023 (struct breakpoint): Add ops member.
6024
6025 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6026 (mention): Use new breakpoint ops member.
6027 (set_raw_breakpoint): Initialize ops field to NULL.
6028 (print_exception_catchpoint, print_one_exception_catchpoint)
6029 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6030 (gnu_v3_exception_catchpoint_ops): New.
6031 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6032
6033 2003-04-25 Adam Fedor <fedor@gnu.org>
6034
6035 * Makefile.in (COMMON_OBS): Add objc-lang.o
6036
6037 2003-04-25 Andrew Cagney <cagney@redhat.com>
6038
6039 * d10v-tdep.c (print_insn): Delete function.
6040 (display_trace): Use TARGET_PRINT_INSN.
6041 (_initialize_d10v_tdep): Do not set tm_print_insn.
6042 (d10v_gdbarch_init): Set print_insn.
6043
6044 2003-04-25 Andrew Cagney <cagney@redhat.com>
6045
6046 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6047 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6048 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6049 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6050 (nr_dmap_regs, a0_regnum): ... new functions.
6051 (d10v_print_registers_info): Use a0_regnum, use register_size.
6052 (d10v_register_byte): Delete function.
6053 (d10v_register_raw_size): Delete function.
6054 (d10v_register_type): Use a0_regnum.
6055 (d10v_print_registers_info): Use a0_regnum.
6056 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6057 (d10v_gdbarch_init): Do not set register_byte or
6058 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6059 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6060 extract_address.
6061 (trace_command): Use XCALLOC.
6062 (print_insn): Delete reference to tm_print_insn.
6063 (saved_regs_unwinder): Use store_unsigned_integer instead of
6064 store_address.
6065 * frame.h (FRAME_OBSTACK_CALLOC): Define
6066
6067 2003-04-25 David Carlton <carlton@bactrian.org>
6068
6069 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6070
6071 2003-04-24 Adam Fedor <fedor@gnu.org>
6072
6073 * objc-lang.c: Include "valprint.h"
6074 * Makefile.in (objc-lang.o): Update dependencies.
6075
6076 2003-04-24 Adam Fedor <fedor@gnu.org>
6077
6078 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6079 architecture dependant compilation and mark as unimplemented
6080 (until they get put in the gdbarch vector).
6081
6082 2003-04-23 David Carlton <carlton@bactrian.org>
6083
6084 * cp-support.c (cp_find_first_component): Accept 'operator' in
6085 more locations.
6086
6087 2003-04-23 Andrew Cagney <cagney@redhat.com>
6088
6089 * infcall.c (call_function_by_hand): Eliminate redundant
6090 indentation. Move "saved_async" and "old_cleanups" to where they
6091 are needed.
6092
6093 2003-04-23 Andrew Cagney <cagney@redhat.com>
6094
6095 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6096 and "buffer". Move the "name" code to where it is needed.
6097
6098 2003-04-23 Andrew Cagney <cagney@redhat.com>
6099
6100 * infcall.c (call_function_by_hand): Move variables "start_sp",
6101 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6102 code to ON_STACK switch branch.
6103
6104 2003-04-23 Andrew Cagney <cagney@redhat.com>
6105
6106 * infcall.c (call_function_by_hand): Make declaration of "i",
6107 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6108 lint.
6109
6110 2003-04-23 Andrew Cagney <cagney@redhat.com>
6111
6112 * infcall.c (call_function_by_hand): Delete variable
6113 "n_method_args". Localize "param_type"'s declaration to the loop
6114 that it is used. Reinstate code assigning to said variable -
6115 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6116 Rationalize code using "param_type".
6117
6118 2003-04-22 Andrew Cagney <cagney@redhat.com>
6119
6120 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6121 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6122 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6123 to DEPRECATED_PUSH_RETURN_ADDRESS.
6124
6125 2003-04-22 Kevin Buettner <kevinb@redhat.com>
6126
6127 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6128 on the DWARF2 register number prior to fetching a register.
6129
6130 2003-04-22 J. Brobecker <brobecker@gnat.com>
6131
6132 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6133 Update all the tests using SOFT_FLOAT considering the fact that
6134 this macro was always set to 0.
6135 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6136 considering the fact that this macro was always set to 0.
6137 * hppa-tdep.h (hppa_store_return_value): Likewise.
6138 (hppa_extract_return_value): Likewise.
6139
6140 2003-04-22 J. Brobecker <brobecker@gnat.com>
6141
6142 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6143 the hppa-pro target only.
6144
6145 2003-04-21 J. Brobecker <brobecker@gnat.com>
6146
6147 Ongoing multi-arch conversion effort for HP/UX:
6148 * config/pa/tm-hppa.h: Move all macro that are no longer
6149 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6150 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6151
6152 2003-04-21 J. Brobecker <brobecker@gnat.com>
6153
6154 * config/pa/tm-hppa.h: Obsolete a section that was only used
6155 for hppa-pro.
6156
6157 2003-04-21 J. Brobecker <brobecker@gnat.com>
6158
6159 Ongoing multi-arch conversion for HP/UX.
6160 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6161 if already defined (allows hppa64 to stay non-multiarched for now).
6162 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6163
6164 2003-04-21 Andrew Cagney <cagney@redhat.com>
6165
6166 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6167
6168 2003-04-21 Andrew Cagney <cagney@redhat.com>
6169
6170 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6171 "i386_num_mmx_regs".
6172
6173 2003-04-21 Andrew Cagney <cagney@redhat.com>
6174
6175 * infcall.c: New file.
6176 * infcall.h: New file.
6177 * valarith.c: Include "infcall.h".
6178 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6179 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6180 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6181 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6182 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6183 (SFILES): Add "infcall.c"
6184 (COMMON_OBS): Add "infcall.o".
6185 (infcall.o): Specify dependencies.
6186 * value.h (call_function_by_hand): Delete declaration.
6187 * inferior.h (run_stack_dummy): Delete declaration.
6188 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6189 (run_stack_dummy): Move to "infcall.c", merged into
6190 call_function_by_hand.
6191 * valops.c (call_function_by_hand): Moved to "infcall.c".
6192 (find_function_addr, value_arg_coerce): Ditto.
6193 (unwindonsignal_p, coerce_float_to_double): Ditto.
6194 (_initialize_valops): Move "set/show coerce-float-to-double", and
6195 "set/show unwindonsignal" commands to "infcall.c".
6196 * v850-tdep.c, target.h: Update comments.
6197 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6198 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6199 (sh64_init_extra_frame_info): Update comments.
6200 * mn10300-tdep.c: Update comments.
6201 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6202 * config/sparc/tm-sparc.h: Update comments.
6203 * breakpoint.h: Update comments.
6204 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6205 * arm-tdep.c: Update comment.
6206
6207 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6208
6209 * i386-tdep.c (i386_num_register_names): New variable.
6210 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6211 (MM0_REGNUM): Remove redundant parentheses in define.
6212 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6213 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6214 i386_mxcsr_regnum_p): Remove redundant parentheses.
6215 (i386_register_name): Use i386_num_register_names.
6216
6217 * i386-tdep.c (i386_extract_return_value,
6218 i386_store_return_value): Correct check for availability of
6219 floating-point registers.
6220
6221 * i386-tdep.c (i386_frame_num_args): Remove function.
6222 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6223
6224 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6225 mmx_regnum_to_fp_regnum. Adjust all callers.
6226
6227 * i386-tdep.c (i386_get_longjmp_target): Use
6228 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6229 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6230 extract_address.
6231
6232 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6233
6234 * core-regset.c: Update comments to reflect reality. Re-order
6235 includes.
6236 (fetch_core_registers): Use switch instead of if. Remove
6237 redundant prototype.
6238
6239 2003-04-18 Jim Blandy <jimb@redhat.com>
6240
6241 * s390-tdep.c (s390_frame_align): New function.
6242 (s390_gdbarch_init): Register it with the gdbarch object.
6243
6244 2003-04-17 Richard Henderson <rth@redhat.com>
6245
6246 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6247
6248 2003-04-17 Michael Snyder <msnyder@redhat.com>
6249 Karen Bennet <bennet@redhat.com>
6250
6251 Committed by Elena Zannoni <ezannoni@redhat.com>
6252 * gdb_gcore.sh: New script to create a core dump of a process.
6253
6254 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
6255
6256 * values.c (value_being_returned): Don't fetch the return
6257 value if the return type is void.
6258
6259 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6260
6261 * thread-db.c: Reindented.
6262
6263 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6264
6265 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6266 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6267 as types.
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293 2003-04-16 Kevin Buettner <kevinb@redhat.com>
6294
6295 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6296 the size of ``long double'' to 16, instead of 8.
6297
6298 2003-04-16 Mark Kettenis <kettenis@gnu.org>
6299
6300 * i386-linux-nat.c: Add some whitespace to make things more
6301 readable.
6302 (fetch_register, store_register, fetch_inferior_registers,
6303 store_inferior_registers): Get rid of assignment in if-statement.
6304 (store_register): Fix typo in error message.
6305
6306 2003-04-16 Andrew Cagney <cagney@redhat.com>
6307
6308 * utils.c (xmmalloc): Always allocate something, matches
6309 libiberty/xmalloc's semantics.
6310 (xmrealloc, xmcalloc): Ditto.
6311
6312 2003-04-16 Andrew Cagney <cagney@redhat.com>
6313
6314 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6315 update comments.
6316 (get_frame_type): Initialize unwind and type when needed.
6317 (get_frame_id, frame_register_unwind): Ditto.
6318
6319 2003-04-16 Andrew Cagney <cagney@redhat.com>
6320
6321 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6322 obsolete.
6323 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6324 * sparcl-stub.c: Obsolete file.
6325 * config/sparc/tm-sparclet.h: Obsolete file.
6326 * sparclet-stub.c: Obsolete file.
6327 * sparclet-rom.c: Obsolete file.
6328 * sparcl-tdep.c: Obsolete file.
6329 * config/sparc/tm-sparclite.h: Obsolete file.
6330 * config/sparc/sparclite.mt: Obsolete file.
6331 * config/sparc/sparclet.mt: Obsolete file.
6332 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6333 sparc86x-*-* obsolete.
6334
6335 2003-04-15 David Carlton <carlton@math.stanford.edu>
6336
6337 * Makefile.in (SFILES): Add cp-namespace.c.
6338 (COMMON_OBS): Add cp-namespace.o.
6339 (block.o): Depend on gdb_obstack_h and cp_support_h.
6340 (buildsym.o): Depend on cp_support_h.
6341 (cp-namespace.o): New.
6342 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6343 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6344 (dwarf2read.o): Depend on cp_support_h.
6345 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6346 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6347 processing_current_namespace.
6348 (read_namespace): Update processing_current_namespace; check for
6349 anonymous namespaces.
6350 (dwarf2_name): New function.
6351 (dwarf2_extension): Ditto.
6352 * cp-support.h: Update copyright, contributors.
6353 Add inclusion guards.
6354 Add opaque declaration for structs obstack, block, symbol.
6355 (struct using_direct): New struct.
6356 Add declarations for cp_find_first_component,
6357 cp_entire_prefix_len, processing_has_namespace_info,
6358 processing_current_namespace, cp_is_anonymous,
6359 cp_add_using_directive, cp_initialize_namespace,
6360 cp_finalize_namespace, cp_set_block_scope,
6361 cp_scan_for_anonymous_namespaces.
6362 * cp-namespace.c: New file.
6363 * cp-support.c: Update copyright.
6364 Include ctype.h, gdb_assert.h, gdbcmd.h.
6365 New variable maint_cplus_cmd_list.
6366 (cp_find_first_component): New function.
6367 (cp_entire_prefix_len, maint_cplus_command)
6368 (first_component_command, _initialize_cp_support): Ditto.
6369 * buildsym.c: Include cp-support.h.
6370 New variable using_list.
6371 (add_symbol_to_list): Check for anonymous namespaces.
6372 (finish_block): Set block's scope.
6373 (start_symtab): Initialize C++ namespace support.
6374 (end_symtab): Finalize C++ namespace support.
6375 * block.h: Add opaque declarations for structs
6376 block_namespace_info, using_direct, and obstack.
6377 Add declarations for block_set_scope and block_set_using.
6378 (struct block): Add 'language_specific' member.
6379 (BLOCK_NAMESPACE): New macro.
6380 * block.c: Include gdb_obstack.h and cp-support.h.
6381 (struct block_namespace_info): New struct.
6382 (block_set_scope): New function.
6383 (block_set_using, block_initialize_namespace): Ditto.
6384
6385 2003-04-14 Kevin Buettner <kevinb@redhat.com>
6386
6387 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6388 (locate_base): Return early if there aren't any link map offsets.
6389 (svr4_solib_create_inferior_hook): Warn if shared library support
6390 is unavailable.
6391
6392 2003-04-14 David Carlton <carlton@math.stanford.edu>
6393
6394 * symtab.c (symbol_set_names): Add prefix when storing Java names
6395 in hash table. Fix for PR java/1039.
6396
6397 2003-04-14 David Carlton <carlton@math.stanford.edu>
6398
6399 * symtab.c (symbol_set_names): Rename 'name' arg to
6400 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6401 * symtab.h: Change 'name' argument in declaration of
6402 symbol_set_names to 'linkage_name'.
6403 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6404
6405 2003-04-14 Andrew Cagney <cagney@redhat.com>
6406
6407 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6408 return the fully sign-extended register value.
6409 (get_frame_pointer): Ditto.
6410 (mips_pop_frame): Initialize "proc_desc" after checking for a
6411 dummy frame.
6412
6413 2003-04-14 Andrew Cagney <cagney@redhat.com>
6414
6415 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6416 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6417 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6418 (mips_push_register): Delete function.
6419 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6420 PUSH_FP_REGNUM.
6421
6422 2003-04-14 Jim Blandy <jimb@redhat.com>
6423
6424 * symmisc.c: #include "gdb_regex.h".
6425 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6426 functions.
6427 * maint.c (maintenance_list_command): New function.
6428 (_initialize_maint_cmds): Register the above as commands.
6429 * symtab.h (maintenance_list_symtabs,
6430 maintenance_list_psymtabs): New declarations.
6431 * cli/cli-cmds.c (maintenancelistlist): New variable.
6432 (init_cmd_lists): Initialize it.
6433 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6434 * gdbcmd.h (maintenancelistlist): New declaration.
6435 * Makefile.in (symmisc.o): Update dependencies.
6436
6437 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
6438
6439 * s390-nat.c: Include asm/types.h for addr_t.
6440
6441 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
6442
6443 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6444 actually incoming type.
6445
6446 2003-04-13 Andrew Cagney <cagney@redhat.com>
6447
6448 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6449 get_next_frame and get_frame_saved_regs.
6450
6451 2003-04-13 Andrew Cagney <cagney@redhat.com>
6452
6453 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6454 of gdbarch_num_regs.
6455
6456 2003-04-13 Andrew Cagney <cagney@redhat.com>
6457
6458 * frame.h: Mention what replaced what in "struct frame_info".
6459 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6460 deprecated_update_frame_base_hack and
6461 deprecated_update_frame_pc_hack.
6462 * hppa-tdep.c: Ditto.
6463
6464 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6465
6466 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6467 to read_reg and update its comment. Remove regnum member.
6468 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6469 Don't call read_reg when setting in_reg. Call read_reg to get
6470 the frame base if it's in a register. Return the register number
6471 on the stack instead of in the context. Remove extra arguments
6472 to read_reg.
6473 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6474 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6475 the register number on the expression stack.
6476 (needs_frame_read_reg): Remove extra arguments.
6477
6478 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6479
6480 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6481 made non-static.
6482 (execute_stack_op): All callers updated.
6483 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6484 * dwarf2loc.c (find_location_expression): New function.
6485 (dwarf_expr_frame_base): Call it.
6486 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6487 (dwarf2_tracepoint_var_ref): New function, broken out from
6488 locexpr_tracepoint_var_ref.
6489 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6490 Make static.
6491 (loclist_read_variable, loclist_read_needs_frame): New functions.
6492 (loclist_describe_location, loclist_tracepoint_var_ref): New
6493 functions.
6494 (dwarf2_loclist_funcs): New struct location_funcs.
6495 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6496 (struct dwarf2_locexpr_baton): Add comments.
6497 (dwarf2_loclist_funcs): New extern.
6498 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6499 base_address and base_known.
6500 (dwarf_loc_buffer): New variable.
6501 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6502 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6503 (dwarf2_has_info): Initialize dwarf_loc_offset.
6504 (dwarf2_build_psymtabs): Read in .debug_loc.
6505 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6506 DWARF_LOC_SIZE.
6507 (psymtab_to_symtab_1): Likewise. Move base address calculation
6508 here, from...
6509 (dwarf2_get_pc_bounds): ... here. Use the base address from
6510 cu_header.
6511 (dwarf2_symbol_mark_computed): Handle location lists.
6512
6513 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6514
6515 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6516 if the linkage name demangled successfully.
6517
6518 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6519
6520 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6521 disassmbly_flavour): Removed.
6522
6523 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6524
6525 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6526
6527 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6528
6529 2003-04-12 Andrew Cagney <cagney@redhat.com>
6530
6531 * frame.h (struct frame_info): Move definition from here ...
6532 * frame.c (struct frame_info): ... to here.
6533
6534 2003-04-12 Andrew Cagney <cagney@redhat.com>
6535
6536 * gdbthread.h (save_infrun_state): Delete parameter
6537 "prev_func_start".
6538 (struct thread_info): Delete field "prev_func_start".
6539 (load_infrun_state): Ditto.
6540 * thread.c (load_infrun_state, save_infrun_state): Update.
6541 * infrun.c (prev_func_start): Delete variable.
6542 (context_switch, init_wait_for_inferior): Update.
6543 (stop_stepping, keep_going): Update.
6544
6545 2003-04-12 Andrew Cagney <cagney@redhat.com>
6546
6547 * gdbarch.sh: Add missing opaque declarations.
6548 * gdbarch.h: Regnerate.
6549 * symtab.h: Add missing opaque declarations.
6550 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6551 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6552 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6553 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6554 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6555 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6556 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6557 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6558 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6559 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6560 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6561 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6562 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6563
6564 2003-04-11 Andrew Cagney <cagney@redhat.com>
6565
6566 * frame.c (get_frame_id): Return this frame's "id".
6567 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6568 function start.
6569 (legacy_saved_regs_this_id): Replace function body with
6570 internal-error.
6571 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6572 FRAME_OBSTACK_ZALLOC.
6573 (create_new_frame): Mark the frame ID as valid.
6574
6575 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6576
6577 * Makefile.in (libbfd_h): Added missing setting.
6578 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6579 according to the selected ABI.
6580
6581 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6582
6583 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6584
6585 2003-04-11 Andrew Cagney <cagney@redhat.com>
6586
6587 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6588 SAVED_PC_AFTER_CALL.
6589 * gdbarch.h, gdbarch.c: Regenerate.
6590 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6591 * x86-64-tdep.c (x86_64_init_abi): Update.
6592 * vax-tdep.c (vax_gdbarch_init): Update.
6593 * v850-tdep.c (v850_gdbarch_init): Update.
6594 * sparc-tdep.c (sparc_gdbarch_init): Update.
6595 * sh-tdep.c (sh_gdbarch_init): Update.
6596 * s390-tdep.c (s390_gdbarch_init): Update.
6597 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6598 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6599 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6600 * mips-tdep.c (mips_gdbarch_init): Update.
6601 * mcore-tdep.c (mcore_gdbarch_init): Update.
6602 * m68k-tdep.c (m68k_gdbarch_init): Update.
6603 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6604 * ia64-tdep.c (ia64_gdbarch_init): Update.
6605 (ia64_saved_pc_after_call): Update declaration.
6606 * i386ly-tdep.c (i386lynx_init_abi): Update.
6607 * i386-tdep.c (i386_gdbarch_init): Update.
6608 * hppa-tdep.c (hppa_gdbarch_init): Update.
6609 * h8300-tdep.c (h8300_gdbarch_init): Update.
6610 * frv-tdep.c (frv_gdbarch_init): Update.
6611 * cris-tdep.c (cris_gdbarch_init): Update.
6612 * avr-tdep.c (avr_gdbarch_init): Update.
6613 * arm-tdep.c (arm_gdbarch_init): Update.
6614 * alpha-tdep.c (alpha_gdbarch_init): Update.
6615 * ns32knbsd-nat.c (frame_num_args): Update.
6616 * ns32k-tdep.c (umax_frame_num_args): Update.
6617 * mips-tdep.c (mips_init_frame_pc_first): Update.
6618 * infrun.c (step_over_function): Update.
6619 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6620 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6621 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6622 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6623 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6624 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6625 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6626 * arch-utils.c (init_frame_pc_default): Update.
6627 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6628 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6629 declaration.
6630
6631 2003-04-11 Andrew Cagney <cagney@redhat.com>
6632
6633 * i387-tdep.c: Update copyright.
6634 (i387_to_double): Delete function.
6635 (double_to_i387): Delete function.
6636
6637 2003-04-10 Andrew Cagney <cagney@redhat.com>
6638
6639 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6640 frame's function's address. Simplify.
6641 (d10v_frame_unwind_cache): Check that the frame's function is
6642 non-zero.
6643
6644 2003-04-10 Jim Blandy <jimb@redhat.com>
6645
6646 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6647 call to set_gdbarch_deprecated_push_arguments.
6648
6649 2003-04-10 Andrew Cagney <cagney@redhat.com>
6650
6651 * frame.c (fprint_frame_id): New function.
6652 (fprint_frame_type, fprint_frame): New function.
6653 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6654 (create_sentinel_frame, get_frame_id): Ditto.
6655 (frame_id_p, frame_id_eq): Ditto.
6656 (frame_id_inner, create_new_frame): Ditto.
6657 (legacy_get_prev_frame, get_prev_frame): Ditto.
6658 (deprecated_update_frame_pc_hack): Ditto.
6659 (frame_register_unwind): Ditto.
6660 (deprecated_update_frame_base_hack): Ditto.
6661
6662 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6663
6664 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6665 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6666 frame_chain function.
6667 * Makefile.in: Add dependencies due to above change.
6668
6669 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6670
6671 * blockframe.c (legacy_frame_chain_valid): Move call to
6672 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6673 inside_entry_file.
6674
6675 2003-04-09 Andrew Cagney <cagney@redhat.com>
6676
6677 * frame.h (struct frame_id): Replace "pc" and "base" with
6678 "stack_addr" and "code_addr". Update comments.
6679 (frame_id_build): Update parameter names and comment.
6680 (struct frame_info): Replace "id_p" and "id" with "this_id".
6681 * dummy-frame.c (dummy_frame_this_id): Update.
6682 * breakpoint.c (print_one_breakpoint): Update.
6683 * frame.c (get_frame_id): Update.
6684 (get_frame_base, frame_id_build): Update.
6685 (create_sentinel_frame, legacy_get_prev_frame): Update.
6686 (deprecated_update_frame_base_hack): Update.
6687 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6688 (frame_id_inner): Ditto.
6689
6690 2003-04-09 Andrew Cagney <cagney@redhat.com>
6691
6692 * defs.h (gdb_print_host_address): Make "addr" parameter a
6693 pointer constant.
6694 * utils.c (gdb_print_host_address): Update.
6695
6696 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6697
6698 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6699 register number for R0 is 0.
6700
6701 2003-04-09 J. Brobecker <brobecker@gnat.com>
6702
6703 * frame.h (struct gdbarch): Add opaque structure definition
6704 to avoid a compilation warning on LynxOS 4.0.
6705
6706 2003-04-09 Andrew Cagney <cagney@redhat.com>
6707
6708 * frame.h (struct frame_info): Delete field "pc". Replace
6709 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6710 structure.
6711 * frame.c (frame_pc_unwind): Update.
6712 (create_sentinel_frame): Do not set "pc".
6713 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6714 (get_frame_pc): Call frame_pc_unwind.
6715 (deprecated_update_frame_pc_hack): Update.
6716 (create_new_frame): Use "pc" not "->pc".
6717
6718 2003-04-09 Andrew Cagney <cagney@redhat.com>
6719
6720 * frame.c (get_frame_id): Eliminate code updating "frame".
6721 (legacy_get_prev_frame): Ditto.
6722 (get_frame_base): Return id.base directly.
6723 (deprecated_update_frame_base_hack): Update "id.base".
6724 * frame.h (struct frame_info): Delete field "frame".
6725
6726 2003-04-09 Andrew Cagney <cagney@redhat.com>
6727
6728 * NEWS: Mention that the "Sequent family" is obsolete.
6729 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6730 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6731 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6732 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6733 * config/i386/tm-ptx4.h: Obsolete file.
6734 * config/i386/tm-ptx.h: Obsolete file.
6735 * symm-tdep.c: Obsolete file.
6736 * config/i386/symmetry.mt: Obsolete file.
6737 * config/i386/tm-symmetry.h: Obsolete file.
6738 * symm-nat.c: Obsolete file.
6739 * config/i386/nm-symmetry.h: Obsolete file.
6740 * config/i386/xm-symmetry.h: Obsolete file.
6741 * config/i386/symmetry.mh: Obsolete file.
6742 * config/i386/nm-ptx4.h: Obsolete file.
6743 * config/i386/ptx4.mh: Obsolete file.
6744 * config/i386/ptx.mt: Obsolete file.
6745 * config/i386/ptx.mh: Obsolete file.
6746 * config/i386/xm-ptx4.h: Obsolete file.
6747 * config/i386/xm-ptx.h: Obsolete file.
6748
6749 2003-04-09 Andrew Cagney <cagney@redhat.com>
6750
6751 Obsolete mips*-*-mach3*.
6752 * NEWS: Mention that mips*-*-mach3* is obsolete.
6753 * m3-nat.c: Obsolete file.
6754 * config/nm-m3.h: Obsolete file.
6755 * config/mips/tm-mipsm3.h: Obsolete file.
6756 * config/mips/mipsm3.mt: Obsolete file.
6757 * config/mips/mipsm3.mh: Obsolete file.
6758 * config/mips/xm-mipsm3.h: Obsolete file.
6759 * mipsm3-nat.c: Obsolete file.
6760 * configure.host: Obsolete mips-dec-mach3*.
6761 * configure.tgt: Obsolete mips*-*-mach3*.
6762
6763 2003-04-09 Andrew Cagney <cagney@redhat.com>
6764
6765 * doublest.h: Update copyright.
6766 (deprecated_store_floating, deprecated_extract_floating): Rename
6767 store_floating and extract_floating. Update comments.
6768 * doublest.c: Update copyright.
6769 (extract_floating_by_length): Replace extract_floating.
6770 (store_floating_by_length): Replace store_floating.
6771 (deprecated_extract_floating): New function.
6772 (deprecated_store_floating): New function.
6773 (extract_typed_floating): Call extract_floating_by_length.
6774 (store_typed_floating): Call store_floating_by_length.
6775 * x86-64-tdep.c (x86_64_store_return_value): Update.
6776 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6777 (sh64_extract_return_value): Update.
6778 (sh_sh4_register_convert_to_virtual): Update.
6779 (sh_sh64_register_convert_to_virtual): Update.
6780 (sh_sh4_register_convert_to_raw): Update.
6781 (sh_sh64_register_convert_to_raw): Update.
6782 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6783 (rs6000_register_convert_to_raw): Update.
6784 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6785 (ia64_register_convert_to_raw): Update.
6786 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6787 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6788 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6789 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6790 (alpha_register_convert_to_raw): Update.
6791
6792 2003-04-08 Andrew Cagney <cagney@redhat.com>
6793
6794 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6795 * gdbarch.h, gdbarch.c: Re-generate.
6796 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6797 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6798 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6799 conditionally, use frame_pc_unwind as an alternative. Add
6800 comments.
6801 * arch-utils.c (init_frame_pc_default): Only call
6802 SAVED_PC_AFTER_CALL when available.
6803
6804 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6805
6806 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6807 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6808 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6809 (start_remote): Ditto.
6810 (handle_inferior_event): Ditto.
6811 (save_inferior_status): Ditto.
6812 (restore_inferior_status): Ditto.
6813 * infcmd.c (attach_command): Ditto.
6814 * fork-child.c (startup_inferior): Ditto.
6815 * inferior.h (stop_soon): Rename from stop_soon_quietly.
6816 * alpha-tdep.c (heuristic_proc_start): Ditto.
6817 * mips-tdep.c (heuristic_proc_start): Ditto.
6818 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6819 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6820 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6821 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6822 * remote-vx.c (vx_create_inferior): Ditto.
6823
6824 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6825
6826 * infrun.c (stop_soon_quietly): Make it an enum, to better
6827 override the default behavior of handle_inferior_event.
6828 (clear_proceed_status): Update uses of stop_soon_quietly to
6829 reflect that it is now an enum.
6830 (start_remote): Ditto.
6831 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6832 is set to handle the new GNU/Linux kernel behavior for
6833 attach/sigstop. Update uses of stop_soon_quietly.
6834 * inferior.h (enum stop_kind): New enum.
6835 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6836 Reset normal handle_inferior_event behavior, afterwards.
6837 * fork-child.c (startup_inferior): Update.
6838 * alpha-tdep.c (heuristic_proc_start): Update.
6839 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6840 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6841 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6842 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6843 * remote-vx.c (vx_create_inferior): Update.
6844 * mips-tdep.c (heuristic_proc_start): Update.
6845
6846 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
6847
6848 * disasm.c (dump_insns): Move variables inside loop, or they will
6849 be freed more than once, causing wild memory corruptions.
6850 (gdb_disassembly): Look for the substring "-thread",
6851 instead of "-threads" in the target name, to make sure to find
6852 the 'multi-thread' target. Also, make sure we do the right thing
6853 with the "core" target.
6854
6855 2003-04-07 Kevin Buettner <kevinb@redhat.com>
6856
6857 * mips-tdep.c (mips_print_fp_register): New function, created from
6858 do_fp_register_row(). Registers are now (also) printed as hex.
6859 Only one register is printed per row.
6860 (mips_print_register, do_fp_register_row): Print floating point
6861 registers with mips_print_fp_register().
6862
6863 2003-04-06 Andrew Cagney <cagney@redhat.com>
6864
6865 * valprint.h (inspect_it): Add extern declaration.
6866 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6867 (selectors_info, classes_info): Ditto.
6868 (find_objc_msgcall): Fix indentation.
6869 (objc_printstr): Delete extern declarations.
6870
6871 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6872
6873 2003-04-06 Andrew Cagney <cagney@redhat.com>
6874
6875 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6876 Update comment.
6877 * frame.c (legacy_saved_regs_this_id): Update.
6878 (legacy_get_prev_frame): Update.
6879 * xstormy16-tdep.c: Update comment.
6880 * sparc-tdep.c (sparc_frame_chain): Update comment.
6881 * blockframe.c (legacy_frame_chain_valid): Update.
6882
6883 2003-04-06 Andrew Cagney <cagney@redhat.com>
6884
6885 * valprint.c (val_print_type_code_int): Delete #ifdef
6886 PRINT_TYPELESS_INTEGER code.
6887
6888 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6889 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6890 multi-arch definition.
6891 * gdbarch.h: Re-generate.
6892
6893 2003-04-05 Andrew Cagney <cagney@redhat.com>
6894
6895 Eliminate FRAME_FIND_SAVED_REGS.
6896 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6897 Change FSR parameter to a pointer.
6898 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6899 Assume FSR parameter is a pointer.
6900 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6901 Make fsr a pointer.
6902 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6903 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6904 saved_regs a pointer.
6905 (hppa_frame_saved_pc): Ditto.
6906 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6907 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6908 pointer.
6909 (restore_pc_queue): Make fsr a pointer.
6910 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6911 (hppa_frame_chain): Make saved_regs a pointer, call
6912 hppa_frame_init_saved_regs.
6913 * sparc-tdep.c: Include "gdb_assert.h".
6914 (sparc_frame_find_saved_regs): Replace internal_error with
6915 gdb_assert.
6916 * remote-vxsparc.c (vx_read_register): Delete reference to
6917 FRAME_FIND_SAVED_REGS.
6918 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6919 * gdbarch.h: Regenerate.
6920 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6921 (deprecated_get_frame_saved_regs): Delete declaration.
6922 (struct frame_saved_regs): Delete definition.
6923 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6924 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6925 (hppa_frame_find_saved_regs): Delete declaration.
6926 (FRAME_FIND_SAVED_REGS): Delete macro.
6927 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6928 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6929 FRAME_FIND_SAVED_REGS in comment.
6930
6931 2003-04-05 Andrew Cagney <cagney@redhat.com>
6932
6933 * frame.c (frame_func_unwind, get_frame_func): New functions.
6934 * frame.h (get_frame_func, frame_func_unwind): Declare.
6935 (struct frame_info): Add field "prev_func" for caching the
6936 previous frame's function address.
6937 * arm-tdep.c (arm_frameless_function_invocation): Combine
6938 get_pc_function_start and get_frame_pc into get_frame_func.
6939 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6940 (sh64_nofp_frame_init_saved_regs): Ditto.
6941 * s390-tdep.c (s390_function_start): Ditto.
6942 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6943 (rs6000_frameless_function_invocation): Ditto.
6944 (rs6000_frame_saved_pc): Ditto.
6945 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6946 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6947 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6948 (i386_frame_init_saved_regs): Ditto.
6949 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6950 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6951 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6952 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6953 * blockframe.c (frameless_look_for_prologue): Ditto.
6954
6955 2003-04-05 Andrew Cagney <cagney@redhat.com>
6956
6957 * frame.c (legacy_get_prev_frame): Link prev to next at the
6958 function start. Update comments.
6959
6960 2003-04-05 Andrew Cagney <cagney@redhat.com>
6961
6962 * frame.c (get_frame_id): Update comment.
6963 (legacy_get_prev_frame): Update comment.
6964 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6965 * gdbarch.h: Regenerate.
6966 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6967 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6968
6969 2003-04-05 Andrew Cagney <cagney@redhat.com>
6970
6971 * stack.c (print_frame_info): Use get_frame_pc.
6972
6973 2003-04-04 Andrew Cagney <cagney@redhat.com>
6974
6975 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6976 the frame's type from the unwinder.
6977 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6978 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6979 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6980 (get_frame_base_address): Use get_frame_type.
6981 (get_frame_locals_address, get_frame_args_address): Ditto.
6982 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6983 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6984 (struct frame_info): Add comment explaining why the frame contains
6985 a "type" field.
6986 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6987 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6988 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6989 NORMAL_FRAME.
6990 * frame-unwind.h: Include "frame.h".
6991 (struct frame_unwind): Add "type" field.
6992 * Makefile.in (frame_unwind_h): Add $(frame_h).
6993
6994 2003-04-04 Andrew Cagney <cagney@redhat.com>
6995
6996 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6997 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6998 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6999 get_frame_base.
7000 (d10v_unwind_dummy_id): Use frame_id_build.
7001 * frame.c (find_frame_sal): Use get_frame_pc.
7002 (create_new_frame): Use deprecated_update_frame_pc_hack and
7003 deprecated_update_frame_base_hack.
7004 (create_sentinel_frame): Add comment about ->pc going away.
7005 (get_prev_frame): Add comment about ->pc going away.
7006 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7007 frame_id_build, deprecated_update_frame_pc_hack and
7008 deprecated_update_frame_base_hack.
7009 (select_frame): Use get_frame_pc.
7010 (legacy_saved_regs_this_id): Use frame_id_build.
7011
7012 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
7013
7014 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7015 signed integer case.
7016 (classify_argument): Handle enumerations and references.
7017
7018 2003-04-04 Andrew Cagney <cagney@redhat.com>
7019
7020 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7021 ID to NULL.
7022
7023 2003-04-01 Adam Fedor <fedor@gnu.org>
7024
7025 * gdb/objc-lang.c (selectors_info): Replace calls to
7026 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7027 SYMBOL_NATURAL_NAME.
7028 (classes_info, find_methods): Likewise.
7029
7030 2003-04-03 Kevin Buettner <kevinb@redhat.com>
7031
7032 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7033 ``mach'' to the value determined by bfd_default_set_arch_mach().
7034
7035 2003-04-02 Bob Rossi <bob_rossi@cox.net>
7036
7037 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7038 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7039 (mi-cmd-file.o): Update dependencies.
7040
7041 2003-04-01 Kevin Buettner <kevinb@redhat.com>
7042
7043 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7044 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7045
7046 2003-04-01 Adam Fedor <fedor@gnu.org>
7047
7048 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7049 * language.h (struct language_defn): Add la_demangle.
7050 (language_demangle): Declare.
7051 * language.c (language_demangle): New function.
7052 (unk_lang_demangle): Likewise.
7053 (unknown_language_defn, auto_language_defn, local_language_defn):
7054 Add ukn_lang_demangle.
7055 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7056 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7057 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7058 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7059 * jv-lang.c (java_demangle): New function
7060 (java_language_defn): Use it for la_demangle element.
7061 * objc-lang.c (objc_demangle): Add options argument
7062 (objc_language_defn): Use objc_demangle for la_demangle element.
7063 * maint.c (maintenance_demangle): Replace switch with
7064 call to language_demangle.
7065 * utils.c (fprintf_symbol_filtered): Likewise.
7066
7067 2003-04-01 Andrew Cagney <cagney@redhat.com>
7068
7069 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7070 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7071 PRINT_TYPELESS_INTEGER.
7072 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7073 PUSH_RETURN_ADDRESS.
7074
7075 2003-04-01 Andrew Cagney <cagney@redhat.com>
7076
7077 * Makefile.in (d10v-tdep.o): Update dependencies.
7078 * d10v-tdep.c: Include "frame-base.h".
7079 (d10v_frame_unwind): Make constant.
7080 (d10v_frame_base_address): New function.
7081 (d10v_frame_base): New variable.
7082 (d10v_gdbarch_init): Set frame_base default.
7083 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7084 comment for base.
7085 (d10v_frame_unwind_cache): Set and use "prev_sp".
7086 (d10v_frame_this_id): Use the previous frame's inner most stack
7087 address and this frame's func address for the frame ID. Use
7088 frame_id_build. Don't analyze beyond the current instruction.
7089
7090 2003-04-01 Andrew Cagney <cagney@redhat.com>
7091
7092 * frame.h (get_frame_locals_address, get_frame_args_address):
7093 Refer to the base address, instead of the address of the first
7094 local or parameter.
7095
7096 2003-04-01 Andrew Cagney <cagney@redhat.com>
7097
7098 Add frame debug info addresses:
7099 * frame-base.c: New file.
7100 * frame-base.h: New file.
7101 * frame.h (struct frame_base): Add opaque declaration.
7102 (get_frame_base): Update comment.
7103 (get_frame_base_address): Declare.
7104 (get_frame_locals_address): Declare.
7105 (get_frame_args_address): Declare.
7106 (struct frame_info): Add "base" and "base_cache". Update
7107 comments on the unwinder.
7108 * frame.c: Include "frame-base.h".
7109 (get_frame_locals_address): New function.
7110 (get_frame_base_address): New function.
7111 (get_frame_args_address): New function.
7112 * findvar.c (read_var_value): Use get_frame_locals_address and
7113 get_frame_args_address.
7114 * stack.c (frame_info): Use get_frame_locals_address and
7115 get_frame_args_address.
7116 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7117 moved to "frame-base.c".
7118 * printcmd.c (print_frame_nameless_args): Ditto.
7119 * symtab.h (address_class): Update comments.
7120 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7121 get_frame_base_address.
7122 * dwarf2expr.c (execute_stack_op): Ditto.
7123 * Makefile.in (frame_base_h): Define.
7124 (frame.o): Update dependencies.
7125 (frame-base.o): Add dependencies.
7126 (SFILES): Add frame-base.c.
7127 (COMMON_OBS): Add frame-base.o.
7128
7129 2003-04-01 Andrew Cagney <cagney@redhat.com>
7130
7131 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7132 CALL_DUMMY_LENGTH): Ditto.
7133 * gdbarch.c: Re-generate.
7134 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7135 (CALL_DUMMY_LENGTH): Delete macro.
7136 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7137 * arm-tdep.c (arm_gdbarch_init): Ditto.
7138 * avr-tdep.c (avr_gdbarch_init): Ditto.
7139 * cris-tdep.c (cris_gdbarch_init): Ditto.
7140 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7141 * frv-tdep.c (frv_gdbarch_init): Ditto.
7142 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7143 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7144 * i386-tdep.c (i386_gdbarch_init): Ditto.
7145 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7146 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7147 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7148 * mips-tdep.c (mips_gdbarch_init): Ditto.
7149 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7150 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7151 * s390-tdep.c (s390_gdbarch_init): Ditto.
7152 * sh-tdep.c (sh_gdbarch_init): Ditto.
7153 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7154 * v850-tdep.c (v850_gdbarch_init): Ditto.
7155 * vax-tdep.c (vax_gdbarch_init): Ditto.
7156 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7157
7158 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
7159
7160 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7161
7162 2003-04-01 Andrew Cagney <cagney@redhat.com>
7163
7164 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7165 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7166 * gdbarch.h, gdbarch.c: Re-generate.
7167 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7168 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7169 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7170 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7171 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7172 * infcmd.c (run_stack_dummy): Simplify assuming
7173 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7174 * infrun.c (handle_inferior_event): Ditto.
7175 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7176 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7177 * arm-tdep.c (arm_gdbarch_init): Ditto.
7178 * avr-tdep.c (avr_gdbarch_init): Ditto.
7179 * cris-tdep.c (cris_gdbarch_init): Ditto.
7180 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7181 * frv-tdep.c (frv_gdbarch_init): Ditto.
7182 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7183 * i386-tdep.c (i386_gdbarch_init): Ditto.
7184 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7185 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7186 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7187 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7188 * mips-tdep.c (mips_gdbarch_init): Ditto.
7189 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7190 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7191 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7192 * s390-tdep.c (s390_gdbarch_init): Ditto.
7193 * sh-tdep.c (sh_gdbarch_init): Ditto.
7194 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7195 * v850-tdep.c (v850_gdbarch_init): Ditto.
7196 * vax-tdep.c (vax_gdbarch_init): Ditto.
7197 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7198
7199 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
7200
7201 * symfile.c (symfile_relocate_debug_section): Update call to
7202 bfd_simple_get_relocated_section_contents.
7203
7204 2003-03-31 Andrew Cagney <cagney@redhat.com>
7205
7206 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7207 * gdbarch.h, gdbarch.c: Regenerate.
7208 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7209 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7210 available.
7211 * frame.h (generic_fix_call_dummy): Delete declaration.
7212 * dummy-frame.h: Update comment.
7213 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7214 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7215 fix_call_dummy.
7216 * sh-tdep.c (sh_gdbarch_init): Ditto.
7217 * s390-tdep.c (s390_gdbarch_init): Ditto.
7218 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7219 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7220 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7221 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7222 * i386-tdep.c (i386_gdbarch_init): Ditto.
7223 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7224 * frv-tdep.c (frv_gdbarch_init): Ditto.
7225 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7226 * cris-tdep.c (cris_gdbarch_init): Ditto.
7227 * avr-tdep.c (avr_gdbarch_init): Ditto.
7228 * arm-tdep.c (arm_gdbarch_init): Ditto.
7229
7230 2003-03-31 J. Brobecker <brobecker@gnat.com>
7231
7232 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7233 (INIT_FRAME_AP): Likewise.
7234 (EXTRA_FRAME_INFO): Likewise.
7235
7236 2003-03-31 Andrew Cagney <cagney@redhat.com>
7237
7238 * gdbarch.sh: Include "symfile.h".
7239 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7240 * gdbarch.h, gdbarch.c: Re-generate.
7241 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7242 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7243 call_dummy_address, the default is at entry_point_address.
7244 * v850-tdep.c (v850_gdbarch_init): Ditto.
7245 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7246 * sh-tdep.c (sh_gdbarch_init): Ditto.
7247 * s390-tdep.c (s390_gdbarch_init): Ditto.
7248 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7249 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7250 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7251 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7252 * i386-tdep.c (i386_gdbarch_init): Ditto.
7253 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7254 * frv-tdep.c (frv_gdbarch_init): Ditto.
7255 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7256 * cris-tdep.c (cris_gdbarch_init): Ditto.
7257 * arm-tdep.c (arm_gdbarch_init): Ditto.
7258
7259 2003-03-31 Andrew Cagney <cagney@redhat.com>
7260
7261 * gdbarch.sh (CALL_DUMMY_P): Delete.
7262 * gdbarch.h, gdbarch.c: Re-generate.
7263 * inferior.h (CALL_DUMMY_P): Delete macro.
7264 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7265 * vax-tdep.c (vax_gdbarch_init): Update.
7266 * v850-tdep.c (v850_gdbarch_init): Update.
7267 * sparc-tdep.c (sparc_gdbarch_init): Update.
7268 * sh-tdep.c (sh_gdbarch_init): Update.
7269 * s390-tdep.c (s390_gdbarch_init): Update.
7270 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7271 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7272 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7273 * mips-tdep.c (mips_gdbarch_init): Update.
7274 * mcore-tdep.c (mcore_gdbarch_init): Update.
7275 * m68k-tdep.c (m68k_gdbarch_init): Update.
7276 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7277 * ia64-tdep.c (ia64_gdbarch_init): Update.
7278 * i386-tdep.c (i386_gdbarch_init): Update.
7279 * h8300-tdep.c (h8300_gdbarch_init): Update.
7280 * frv-tdep.c (frv_gdbarch_init): Update.
7281 * d10v-tdep.c (d10v_gdbarch_init): Update.
7282 * cris-tdep.c (cris_gdbarch_init): Update.
7283 * breakpoint.c (deprecated_frame_in_dummy): Update.
7284 * avr-tdep.c (avr_gdbarch_init): Update.
7285 * alpha-tdep.c (alpha_gdbarch_init): Update.
7286 * arm-tdep.c (arm_gdbarch_init): Update.
7287 * dummy-frame.c (dummy_frame_this_id): Update comments.
7288 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7289 * frame.c (legacy_get_prev_frame): Ditto.
7290 * valops.c (call_function_by_hand): Delete function.
7291 (hand_function_call): Rename to call_function_by_hand
7292
7293 2003-03-30 Andrew Cagney <cagney@redhat.com>
7294
7295 2002-11-10 Klee Dienes <kdienes@apple.com>
7296 * value.h (struct value): Update comment.
7297
7298 2003-03-30 Andrew Cagney <cagney@redhat.com>
7299
7300 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7301 D10V_FP_REGNUM.
7302 (d10v_gdbarch_init): Do not set fp_regnum.
7303
7304 * frame.c (get_frame_base): Force ID initialization.
7305 (get_prev_frame): Move computation of the frame ID from here ...
7306 (get_frame_id): ... to here.
7307 (legacy_get_prev_frame): Mark the frame ID as valid.
7308 * frame.h (struct frame_info): Add field "id_p".
7309
7310 2003-03-30 Mark Kettenis <kettenis@gnu.org>
7311
7312 * i386-tdep.c (i386_store_struct_return): Removed.
7313 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7314
7315 2003-03-30 Andrew Cagney <cagney@redhat.com>
7316
7317 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7318 * gdbarch.h, gdbarch.c: Regenerate.
7319 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7320 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7321 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7322 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7323 * i386-tdep.c (i386_gdbarch_init): Ditto.
7324 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7325 * cris-tdep.c (cris_gdbarch_init): Ditto.
7326 * vax-tdep.c (vax_gdbarch_init): Ditto.
7327 * s390-tdep.c (s390_gdbarch_init): Ditto.
7328 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7329 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7330 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7331 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7332 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7333 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7334 * sparc-tdep.c (sparc_gdbarch_init): Update.
7335 * sh-tdep.c (sh_gdbarch_init): Update.
7336 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7337 * mips-tdep.c (mips_gdbarch_init): Update.
7338 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7339 * ia64-tdep.c (ia64_gdbarch_init): Update.
7340 * frv-tdep.c (frv_gdbarch_init): Update.
7341 * avr-tdep.c (avr_gdbarch_init): Update.
7342 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7343 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7344 instead of when push_dummy_call is not available.
7345
7346 2003-03-30 Andrew Cagney <cagney@redhat.com>
7347
7348 * infttrace.c: Include "gdbthread.h".
7349 (parent_attach_all): Fix function signature.
7350 (call_ptrace): Update call.
7351 * Makefile.in (infttrace.o): Update dependencies.
7352
7353 2003-03-30 Andrew Cagney <cagney@redhat.com>
7354
7355 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7356 PUSH_RETURN_ADDRESS.
7357 * gdbarch.h, gdbarch.c: Regenerate.
7358 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7359 * x86-64-tdep.c (x86_64_init_abi): Update.
7360 * v850-tdep.c (v850_gdbarch_init): Update.
7361 * sparc-tdep.c (sparc_gdbarch_init): Update.
7362 * sh-tdep.c (sh_gdbarch_init): Update.
7363 * s390-tdep.c (s390_gdbarch_init): Update.
7364 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7365 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7366 * mips-tdep.c (mips_gdbarch_init): Update.
7367 * mcore-tdep.c (mcore_gdbarch_init): Update.
7368 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7369 * ia64-tdep.c (ia64_gdbarch_init): Update.
7370 * i386-tdep.c (i386_gdbarch_init): Update.
7371 * h8300-tdep.c (h8300_gdbarch_init): Update.
7372 * frv-tdep.c (frv_gdbarch_init): Update.
7373 * cris-tdep.c (cris_gdbarch_init): Update.
7374 * avr-tdep.c (avr_gdbarch_init): Update.
7375 * arm-tdep.c (arm_gdbarch_init): Update.
7376 * valops.c (hand_function_call): Update.
7377
7378 2003-03-29 Andrew Cagney <cagney@redhat.com>
7379
7380 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7381 sizeof_call_dummy_words.
7382 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7383 define.
7384 * gdbarch.h: Regenerate.
7385
7386 2003-03-29 Andrew Cagney <cagney@redhat.com>
7387
7388 * infttrace.h: New file.
7389 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7390 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7391 (hpread_read_doc_function_type): Detect an initialized type1.
7392 (hpread_quick_traverse): Initialize mod_name_string.
7393 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7394 (som_solib_get_solib_by_pc): Declare.
7395 (so_lib_thread_start_addr): Declare.
7396 (no_shared_libraries): Declare.
7397 * somread.c (init_import_symbols): Make static. Add forward
7398 declaration.
7399 * config/pa/nm-hppah.h: Include "infttrace.h" for
7400 parent_attach_all.
7401 (hppa_insert_hw_watchpoint): Declare.
7402 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7403 * hppah-nat.c: Include "gdb_string.h".
7404 (parent_attach_all): Delete extern declaration, moved to
7405 "infttrace.h".
7406 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7407 int.
7408 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7409 * Makefile.in (infttrace_h): Define.
7410 (hpread.o): Update dependencies.
7411 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7412 * hppa-hpux-tdep.c: Include "gdb_string.h".
7413 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7414 * infrun.c (handle_inferior_event): Always initialize
7415 stepped_after_stopped_by_watchpoint. Add default and remove
7416 fallthrough in switch statement.
7417 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7418 parameter to int.
7419 (hppa_remove_hw_watchpoint): Ditto.
7420
7421 2003-03-29 Andrew Cagney <cagney@redhat.com>
7422
7423 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7424 offset.
7425
7426 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
7427
7428 * arm-tdep.c (arm_push_arguments): Delete.
7429 (struct stack_item): New type.
7430 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7431 (arm_store_struct_return): Delte.
7432 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7433 arm_push_arguments or arm_store_struct_return.
7434
7435 2003-03-28 Andrew Cagney <cagney@redhat.com>
7436
7437 * Makefile.in (d10v-tdep.o): Update dependencies.
7438 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7439 * d10v-tdep.c: Include "remote.h".
7440 (target_resume_hook): Delete extern declaration.
7441 (target_wait_loop_hook): Ditto.
7442 (tdisassemble_command): Eliminate assignment in "if" conditional.
7443 (d10v_ts2_register_sim_regno): Eliminate call to
7444 legacy_register_sim_regno.
7445 (d10v_ts3_register_sim_regno): Ditto.
7446
7447 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7448
7449 * thread.c: Reindented.
7450 * lin-lwp.c: Ditto.
7451 * linux-proc.c: Ditto.
7452
7453 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7454
7455 * MAINTAINERS (write after approval): Add myself.
7456
7457 2003-03-27 Theodore A. Roth <troth@openavr.org>
7458
7459 * objc-exp.y: Add missing semi-colons.
7460
7461 2003-03-27 Andrew Cagney <cagney@redhat.com>
7462
7463 * regcache.c (write_sp): Delete function and references.
7464 * inferior.h (write_sp): Delete declaration.
7465 * valops.c (hand_function_call): Replace write_sp with
7466 TARGET_WRITE_SP.
7467 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7468 (sparc_pop_frame): Ditto.
7469
7470 2003-03-27 Andrew Cagney <cagney@redhat.com>
7471
7472 * NEWS: Mention removal of support for hppa*-*-bsd* and
7473 hppa*-*-osf* natives, and hppa*-*-pro* target.
7474 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7475 * config/pa/xm-pa.h: Obsolete file.
7476 * config/pa/xm-hppab.h: Obsolete file.
7477 * config/pa/nm-hppab.h: Obsolete file.
7478 * config/pa/tm-hppab.h: Obsolete file.
7479 * config/pa/tm-hppao.h: Obsolete file.
7480 * config/pa/nm-hppao.h: Obsolete file.
7481 * config/pa/tm-pro.h: Obsolete file.
7482 * config/pa/hppaosf.mt: Obsolete file.
7483 * config/pa/hppaosf.mh: Obsolete file.
7484 * config/pa/hppapro.mt: Obsolete file.
7485 * config/pa/hppabsd.mt: Obsolete file.
7486 * config/pa/hppabsd.mh: Obsolete file.
7487 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7488 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7489 hppa*-*-osf*.
7490
7491 2003-03-27 Andrew Cagney <cagney@redhat.com>
7492
7493 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7494 push_arguments. Don't set push_return_address or write_sp.
7495 (d10v_push_dummy_call): Replace d10v_push_arguments.
7496 (d10v_push_return_address, d10v_write_sp): Delete function,
7497 handled by push_dummy_call.
7498
7499 2003-03-26 Andrew Cagney <cagney@redhat.com>
7500
7501 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7502 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7503 regcache and dummy_addr parameters.
7504 * gdbarch.h, gdbarch.c: Re-generate.
7505 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7506 available; assume it will handle stack alignment and return
7507 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7508 legacy_push_arguments.
7509 (legacy_push_arguments): Rename default_push_arguments.
7510 * value.h (legacy_push_arguments): Rename default_push_arguments.
7511 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7512 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7513 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7514 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7515 * config/i386/tm-symmetry.h: Update.
7516 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7517 * x86-64-tdep.c (x86_64_init_abi): Update.
7518 * v850-tdep.c (v850_gdbarch_init): Update.
7519 * sparc-tdep.c (sparc_gdbarch_init): Update.
7520 * sh-tdep.c (sh_gdbarch_init): Update.
7521 * s390-tdep.c (s390_gdbarch_init): Update.
7522 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7523 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7524 * mips-tdep.c (mips_gdbarch_init): Update.
7525 * mcore-tdep.c (mcore_gdbarch_init): Update.
7526 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7527 * ia64-tdep.c (ia64_gdbarch_init): Update.
7528 * i386-tdep.c (i386_gdbarch_init): Update.
7529 * hppa-tdep.c (hppa_gdbarch_init): Update.
7530 * h8300-tdep.c (h8300_gdbarch_init): Update.
7531 * frv-tdep.c (frv_gdbarch_init): Update.
7532 * d10v-tdep.c (d10v_gdbarch_init): Update.
7533 * cris-tdep.c (cris_gdbarch_init): Update.
7534 * avr-tdep.c (avr_gdbarch_init): Update.
7535 * arm-tdep.c (arm_gdbarch_init): Update.
7536 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7537 * alpha-tdep.c (alpha_gdbarch_init): Update.
7538
7539 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7540
7541 * signals/signals.c (do_target_signal_to_host): Correct realtime
7542 signal range test.
7543
7544 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7545
7546 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7547 (struct sal_chain, map_catch_names): Remove.
7548 (catch_exception_command_1): Don't call
7549 handle_gnu_4_16_catch_command.
7550
7551 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7552
7553 From Mark Dettinger <dettinge@de.ibm.com>:
7554 * dwarf2cfi.c (read_2u): Increment pointer by two.
7555
7556 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7557
7558 * signals/signals.c: Fix typos in last change.
7559
7560 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7561
7562 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7563 not already defined. Use __SIGRTMIN if available.
7564 (target_signal_from_host): Remove SIGRTMIN block.
7565 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7566 the signal is within the realtime range.
7567
7568 2003-03-25 Adam Fedor <fedor@gnu.org>
7569
7570 * Makefile.in (infrun.o): Add $(language_h)
7571 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7572 for language specific trampolines.
7573 * language.h (struct language_defn): Add skip_trampoline.
7574 (skip_language_trampoline): Declare.
7575 * language.c (unk_lang_trampoline, skip_language_trampoline):
7576 New functions.
7577 (unknown_language_defn, auto_language_defn, local_language_defn):
7578 Add ukn_lang_trampoline.
7579 * ada-lang.c (ada_language_defn): Add NULL for language
7580 specific skip_trampoline.
7581 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7582 scm-lang.c: Likewise.
7583 * objc-lang.c (objc_skip_trampoline): New function.
7584 (objc_language_defn): Add objc_skip_trampoline.
7585
7586 2003-03-25 Andrew Cagney <cagney@redhat.com>
7587
7588 * frame.c (get_prev_frame): Delay validating a frame's ID -
7589 non-NULL, didn't go backwards - until an attempt to unwind it to
7590 the previous frame.
7591
7592 2003-03-25 Andrew Cagney <cagney@redhat.com>
7593
7594 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7595 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7596 * gdbarch.h, gdbarch.c: Re-generate.
7597 * config/sparc/tm-sparc.h
7598 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7599 * sparc-tdep.c (sparc_gdbarch_init): Set
7600 deprecated_extra_stack_alignment_needed.
7601 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7602 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7603 extra_stack_alignment_needed.
7604 * v850-tdep.c (v850_gdbarch_init): Ditto.
7605 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7606 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7607 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7608 * cris-tdep.c (cris_gdbarch_init): Ditto.
7609 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7610 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7611
7612 2003-03-25 Andrew Cagney <cagney@redhat.com>
7613
7614 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7615 STORE_STRUCT_RETURN.
7616 * gdbarch.h, gdbarch.c: Regenerate.
7617 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7618 (d10v_push_arguments): Set the struct return register.
7619 (d10v_gdbarch_init): Update.
7620 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7621 * x86-64-tdep.c (x86_64_init_abi): Update.
7622 * vax-tdep.c (vax_gdbarch_init): Update.
7623 * v850-tdep.c (v850_gdbarch_init): Update.
7624 * sparc-tdep.c (sparc_gdbarch_init): Update.
7625 * sh-tdep.c (sh_gdbarch_init): Update.
7626 * s390-tdep.c (s390_gdbarch_init): Update.
7627 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7628 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7629 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7630 * mips-tdep.c (mips_gdbarch_init): Update.
7631 * mcore-tdep.c (mcore_gdbarch_init): Update.
7632 * m68k-tdep.c (m68k_gdbarch_init): Update.
7633 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7634 * ia64-tdep.c (ia64_gdbarch_init): Update.
7635 * i386-tdep.c (i386_gdbarch_init): Update.
7636 * hppa-tdep.c (hppa_gdbarch_init): Update.
7637 * h8300-tdep.c (h8300_gdbarch_init): Update.
7638 * frv-tdep.c (frv_gdbarch_init): Update.
7639 * cris-tdep.c (cris_gdbarch_init): Update.
7640 * avr-tdep.c (avr_gdbarch_init): Update.
7641 * arm-tdep.c (arm_gdbarch_init): Update.
7642 * alpha-tdep.c (alpha_gdbarch_init): Update.
7643
7644 2003-03-25 Andrew Cagney <cagney@redhat.com>
7645
7646 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7647 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7648 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7649 * gdbarch.h, gdbarch.c: Regenerate.
7650 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7651 call_dummy_stack_adjust_p.
7652 * vax-tdep.c (vax_gdbarch_init): Ditto.
7653 * v850-tdep.c (v850_gdbarch_init): Ditto.
7654 * sh-tdep.c (sh_gdbarch_init): Ditto.
7655 * s390-tdep.c (s390_gdbarch_init): Ditto.
7656 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7657 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7658 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7659 * mips-tdep.c (mips_gdbarch_init): Ditto.
7660 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7661 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7662 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7663 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7664 * i386-tdep.c (i386_gdbarch_init): Ditto.
7665 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7666 * frv-tdep.c (frv_gdbarch_init): Ditto.
7667 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7668 * cris-tdep.c (cris_gdbarch_init): Ditto.
7669 * avr-tdep.c (avr_gdbarch_init): Ditto.
7670 * arm-tdep.c (arm_gdbarch_init): Ditto.
7671 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7672 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7673 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7674 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7675 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7676 call_dummy_stack_adjust_p.
7677 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7678 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7679 * sparc-tdep.c (sparc32_push_arguments): Update.
7680 * valops.c (hand_function_call): Update.
7681
7682 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7683
7684 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7685 set_gdbarch_char_signed.
7686
7687 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7688
7689 PR cli/548
7690 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7691
7692 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7693
7694 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7695 (_initialize_arm_tdep): Don't set tm_print_insn.
7696
7697 2003-03-24 Adam Fedor <fedor@gnu.org>
7698
7699 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7700 * objc-lang.h: Add multiple inclusion protection.
7701 (start_msglist, add_msglist, end_msglist): Additional declarations.
7702
7703 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7704
7705 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7706 value was renamed to ARM_FLOAT_SOFT_FPA.
7707
7708 2003-03-23 Andrew Cagney <cagney@redhat.com>
7709
7710 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7711 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7712 * gdbarch.h, gdbarch.c: Regenerate.
7713 * valops.c (hand_function_call): Update.
7714 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7715 * frame.c (legacy_saved_regs_this_id): Update.
7716 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7717 * dummy-frame.h: Update.
7718 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7719 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7720 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7721 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7722 * config/m68k/tm-sun3.h: Update.
7723 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7724 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7725 * x86-64-tdep.c (x86_64_init_abi): Update.
7726 * vax-tdep.c (vax_gdbarch_init): Update.
7727 * v850-tdep.c (v850_gdbarch_init): Update.
7728 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7729 * sh-tdep.c (sh_gdbarch_init): Update.
7730 * s390-tdep.c (s390_gdbarch_init): Update.
7731 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7732 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7733 (frame_get_saved_regs): Update.
7734 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7735 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7736 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7737 * mips-tdep.c (mips_gdbarch_init): Update.
7738 * mcore-tdep.c (mcore_gdbarch_init): Update.
7739 * m68k-tdep.c (m68k_gdbarch_init): Update.
7740 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7741 * ia64-tdep.c (ia64_gdbarch_init): Update.
7742 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7743 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7744 (i386_interix_back_one_frame): Update.
7745 * hppa-tdep.c (hppa_gdbarch_init): Update.
7746 (hppa_init_extra_frame_info): Update.
7747 * h8300-tdep.c (h8300_gdbarch_init): Update.
7748 * frv-tdep.c (frv_gdbarch_init): Update.
7749 * cris-tdep.c (cris_gdbarch_init): Update.
7750 * avr-tdep.c (avr_gdbarch_init): Update.
7751 * arm-tdep.c (arm_gdbarch_init): Update.
7752 * alpha-tdep.c (alpha_gdbarch_init): Update.
7753
7754 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7755
7756 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7757 (arm_get_fp_model): Declare.
7758 * arm-tdep.c (fp_model_strings): New string array.
7759 (arm_fp_model, current_fp_model): New variables.
7760 (arm_get_fp_model): New function.
7761 (arm_set_fp): New function.
7762 (set_fp_model_sfunc): New function.
7763 (show_fp_model): New function.
7764 (_initialize_arm_tdep): Add new command to set/show the FPU.
7765 (arm_extract_return_value): Use arm_get_fp_model.
7766 (arm_store_return_value): Likewise.
7767 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7768 to initialize the floating-point data types.
7769 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7770 model is FPA.
7771
7772 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7773
7774 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7775 the current setting of each value.
7776 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7777 new_set and new_show. Use add_setshow_cmd_full and
7778 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7779 commands and add new version as subcommands of "set/show arm".
7780
7781 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7782
7783 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7784 (set_arm_command, show_arm_command): New functions.
7785 (_initialize_arm_tdep): Add them.
7786 (num_disassembly_options): Renamed from num_flavor_options.
7787 (valid_disassembly_styles): Renamed from valid_flavors.
7788 (disassembly_style): Renamed from disassembly_flavor.
7789 (set_disassembly_style_sfunc): Renamed from
7790 set_disassembly_flavor_sfunc.
7791 (set_disassembly_style): Renamed from set_disassembly_flavor.
7792 (arm_othernames): Updated.
7793 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7794 command. Add "set/show arm disassembly" commands. Deprecate
7795 "othernames" command.
7796
7797 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7798
7799 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7800 (arm-tdep.o): Depend on elf_arm_h.
7801
7802 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7803
7804 * Makefile.in (coff_internal_h): Define.
7805 (arm-tdep.o): Update dependencies.
7806
7807 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7808
7809 * arm-tdep.c (prologue_cache): Delete.
7810 (check_prologue_cache, save_prologue_cache): Delete.
7811 (arm_scan_prologue): Don't check or update the prologue_cache.
7812 (arm_gdb_arch_init): Don't initialize it.
7813 (_initialize_arm_tdep): Likewise.
7814
7815 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7816
7817 * MAINTAINERS (tui): Maintainer of tui code.
7818
7819 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
7820
7821 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7822 (i386-cygwin-tdep.o): Add dependencies.
7823 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7824 * i386-cygwin-tdep.c: New file.
7825 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7826 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7827
7828 2003-03-20 Andrew Cagney <cagney@redhat.com>
7829
7830 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7831 (handle_inferior_event): Remove code calling
7832 DYNAMIC_TRAMPOLINE_NEXTPC.
7833
7834 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7835 already has a full path.
7836
7837 * main.c (gdb_main): Return 1.
7838 (captured_main): Call error to report an invalid interpreter.
7839
7840 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7841 * alpha-osf1-tdep.c: Include "gdb_string.h".
7842
7843 2003-03-19 J. Brobecker <brobecker@gnat.com>
7844
7845 Continuing work to convert the hppa targets to multiarch partial.
7846
7847 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7848 method, now that hppa_push_dummy_frame has a conformant prototype.
7849 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7850 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7851 for the switch to multiarch partial.
7852
7853 2003-03-19 Kevin Buettner <kevinb@redhat.com>
7854
7855 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7856 when iss is issNull.
7857
7858 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7859
7860 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7861 NUM_REGS bounds check.
7862
7863 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7864
7865 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7866 * mips-tdep.c (gdb_assert.h): Include.
7867 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7868 (mips_register_name): Handle integer registers explicitly. Add
7869 bounds checking.
7870 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7871 (mips_lsi33k_reg_names): Don't list integer registers; they're
7872 handled by mips_register_name() now.
7873 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7874 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7875 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7876 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7877 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7878
7879 2003-03-18 Andrew Cagney <cagney@redhat.com>
7880
7881 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7882 a void pointer.
7883 * gdbtypes.h (print_scalar_formatted): Update declaration.
7884 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7885
7886 2003-03-18 J. Brobecker <brobecker@gnat.com>
7887
7888 * infrun.c (observer.h): Add #include.
7889 (normal_stop): Add call to observer_notify_normal_stop.
7890 * Makefile.in (infrun.o): Add dependency on observer.h.
7891
7892 2003-03-18 J. Brobecker <brobecker@gnat.com>
7893
7894 Continuing work to convert the hppa targets to multiarch partial.
7895 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7896 parameter. Reformat comment.
7897 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7898 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7899 to match new profile.
7900
7901 2003-03-18 J. Brobecker <brobecker@gnat.com>
7902
7903 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7904 appear to be working in any case.
7905
7906 2003-03-18 J. Brobecker <brobecker@gnat.com>
7907
7908 * observer.c (observer_test_first_observer): New static variable.
7909 (observer_test_second_observer): Likewise.
7910 (observer_test_third_observer): Likewise.
7911 (observer_test_first_notification_function): New static function.
7912 (observer_test_second_notification_function): Likewise.
7913 (observer_test_third_notification_function): Likewise.
7914
7915 2003-03-17 J. Brobecker <brobecker@gnat.com>
7916
7917 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7918 * somsolib.c (gdb_assert.h): Likewise.
7919 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7920 (somsolib.o): Likewise.
7921
7922 2003-03-17 Andrew Cagney <cagney@redhat.com>
7923
7924 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7925 BFD. Simplify setting of di.endian.
7926
7927 2003-03-17 Andrew Cagney <cagney@redhat.com>
7928
7929 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7930 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7931
7932 From Elena Zannoni <ezannoni@redhat.com>
7933 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7934 vector and floating-point parameters.
7935 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7936 convention.
7937 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7938
7939 2003-03-17 Fernando Nasser <fnasser@redhat.com>
7940
7941 * MAINTAINERS: Remove my name from several maintainership roles.
7942
7943 2003-03-17 Andrew Cagney <cagney@redhat.com>
7944
7945 Fix frame off-by-one bug.
7946 * frame-unwind.h (frame_this_id_ftype): Replace
7947 frame_unwind_id_ftype.
7948 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7949 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7950 with "prev_register".
7951 * frame-unwind.c (frame_unwind_find_by_pc): Return
7952 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7953 comment.
7954 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7955 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7956 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7957 (dummy_frame_unwind): Update.
7958 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7959 sentinel_frame_register_unwind.
7960 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7961 (sentinel_frame_unwinder): Update.
7962 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7963 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7964 * frame.c (create_sentinel_frame): Update. Initialize
7965 "prologue_cache" instead of "unwind_cache".
7966 (frame_register_unwind): Call this frame's prev_register with the
7967 next frame and this frame's prologue cache.
7968 (get_prev_frame): Simplify. Always call prev frame's this_id with
7969 this frame and prev frame's prologue cache. Document that this
7970 call is shifted one to the left when compared to the
7971 frame_register_unwind call.
7972 (legacy_saved_regs_prev_register): Replace
7973 frame_saved_regs_register_unwind.
7974 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7975 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7976 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7977 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7978 (d10v_frame_unwind): Update.
7979 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7980 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7981 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7982 "saved_regs" with "this_saved_regs".
7983
7984 2003-03-16 Andrew Cagney <cagney@redhat.com>
7985
7986 * frame.c (frame_pop): Don't call target_store_registers. Fix
7987 problem reported by Mark Kettenis.
7988
7989 2003-03-16 Mark Kettenis <kettenis@gnu.org>
7990
7991 * i386-tdep.c (i386_register_type): Renamed from
7992 i386_register_virtual_type. Adjust function signature.
7993 (i386_gdbarch_init): Set register_type instead of
7994 deprecated_max_register_raw_size,
7995 deprecated_max_register_virtual_size and register_virtual_type.
7996
7997 2003-03-14 Andrew Cagney <cagney@redhat.com>
7998
7999 * frame.c (get_prev_frame): When a legacy frame, always call
8000 legacy_get_prev_frame. Simplify unwind code using assumption that
8001 the unwinder is new.
8002 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8003 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8004 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8005
8006 2003-03-14 Andrew Cagney <cagney@redhat.com>
8007
8008 * frame.c (get_saved_register): Delete function.
8009 * frame.h (get_saved_register): Delete declaration.
8010 * xstormy16-tdep.c: Update comment.
8011 * regcache.h: Update comments.
8012 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8013 get_saved_register and extract_address, use
8014 frame_read_unsigned_register.
8015 (sparc_frame_saved_pc): Ditto.
8016 (sparc_get_saved_register): Instead of get_saved_register, use
8017 frame_register.
8018 (sparc_pop_frame): Ditto.
8019 * findvar.c: Update comments.
8020 (value_of_register): Call frame_register instead of
8021 get_saved_register.
8022 (value_from_register): Ditto.
8023 * config/sparc/tm-sparc.h: Update comment.
8024 * breakpoint.c: Update comment.
8025
8026 2003-03-14 Andrew Cagney <cagney@redhat.com>
8027
8028 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8029 GET_SAVED_REGISTER.
8030 * gdbarch.h, gdbarch.c: Re-generate.
8031 * frame.h: Update comments.
8032 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8033 * x86-64-tdep.c (x86_64_init_abi): Update.
8034 * sparc-tdep.c (sparc_gdbarch_init): Update.
8035 * sh-tdep.c (sh_gdbarch_init): Update.
8036 * mips-tdep.c (mips_gdbarch_init): Update.
8037 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8038 * cris-tdep.c (cris_gdbarch_init): Update.
8039 * ia64-tdep.c (ia64_gdbarch_init): Update.
8040 * frame.c (frame_register): Update.
8041 (get_saved_register): Update.
8042 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8043
8044 2003-03-13 Andrew Cagney <cagney@redhat.com>
8045
8046 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8047 * gdbarch.h, gdbarch.c: Regenerate.
8048 * valops.c (hand_function_call): Update comment.
8049 * stack.c (return_command): Update comment.
8050 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8051 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8052 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8053 * x86-64-tdep.c (x86_64_init_abi): Update.
8054 * vax-tdep.c (vax_gdbarch_init): Update.
8055 * v850-tdep.c (v850_gdbarch_init): Update.
8056 * sparc-tdep.c (sparc_gdbarch_init): Update.
8057 * sh-tdep.c (sh_gdbarch_init): Update.
8058 * s390-tdep.c (s390_gdbarch_init): Update.
8059 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8060 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8061 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8062 * mips-tdep.c (mips_gdbarch_init): Update.
8063 * mcore-tdep.c (mcore_gdbarch_init): Update.
8064 * m68k-tdep.c (m68k_gdbarch_init): Update.
8065 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8066 * ia64-tdep.c (ia64_gdbarch_init): Update.
8067 * i386-tdep.c (i386_gdbarch_init): Update.
8068 * hppa-tdep.c (hppa_gdbarch_init): Update.
8069 * h8300-tdep.c (h8300_gdbarch_init): Update.
8070 * frv-tdep.c (frv_gdbarch_init): Update.
8071 * cris-tdep.c (cris_gdbarch_init): Update.
8072 * avr-tdep.c (avr_gdbarch_init): Update.
8073 * arm-tdep.c (arm_gdbarch_init): Update.
8074 * alpha-tdep.c (alpha_gdbarch_init): Update.
8075
8076 2003-03-13 Andrew Cagney <cagney@redhat.com>
8077
8078 * frame.c (legacy_frame_p): New function.
8079 (get_prev_frame): Use legacy_frame_p.
8080 * frame.h (legacy_frame_p): Declare.
8081
8082 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8083
8084 * MAINTAINERS (write after approval): Alphabetically
8085 listing corrected.
8086
8087 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8088
8089 * MAINTAINERS (write after approval): Add myself.
8090
8091 2003-03-12 Andrew Cagney <cagney@redhat.com>
8092
8093 * frame.c (get_prev_frame): Rename the frame parameter to
8094 "this_frame".
8095 (get_next_frame, legacy_get_prev_frame): Ditto.
8096
8097 2003-03-12 Andrew Cagney <cagney@redhat.com>
8098
8099 * frame.c (get_current_frame): Check target_has_registers before
8100 checking target_has_stack.
8101 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8102 instead of deprecated_selected_frame.
8103 * findvar.c (value_of_register): Pass "frame", not
8104 deprecated_selected_frame, to value_of_builtin_reg.
8105
8106 2003-03-12 Andrew Cagney <cagney@redhat.com>
8107
8108 * regcache.c (regcache_cooked_write_signed): New function.
8109 (regcache_cooked_write_unsigned): New function.
8110 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8111 (regcache_cooked_read_signed): Fix regnum in range assertion.
8112 * regcache.h (regcache_cooked_write_signed): Declare.
8113 (regcache_cooked_write_unsigned): Declare.
8114
8115 2003-03-12 Andrew Cagney <cagney@redhat.com>
8116
8117 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8118 * gdbarch.h, gdbarch.c: Re-generate.
8119 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8120 * x86-64-tdep.h: Update.
8121 * x86-64-tdep.c (x86_64_init_abi): Update.
8122 * v850-tdep.c (v850_gdbarch_init): Update.
8123 * sparc-tdep.c (sparc_gdbarch_init): Update.
8124 * sh-tdep.c (sh_gdbarch_init): Update.
8125 * s390-tdep.c (s390_gdbarch_init): Update.
8126 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8127 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8128 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8129 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8130 * mips-tdep.c (mips_gdbarch_init): Update.
8131 * mcore-tdep.c (mcore_gdbarch_init): Update.
8132 * m68k-tdep.c (m68k_gdbarch_init): Update.
8133 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8134 * ia64-tdep.c (ia64_gdbarch_init): Update.
8135 * i386-tdep.c (i386_gdbarch_init): Update.
8136 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8137 * hppa-tdep.c (hppa_gdbarch_init): Update.
8138 * h8300-tdep.c (h8300_gdbarch_init): Update.
8139 * frv-tdep.c (frv_gdbarch_init): Update.
8140 * cris-tdep.c (cris_gdbarch_init): Update.
8141 * avr-tdep.c (avr_gdbarch_init): Update.
8142 * arm-tdep.c (arm_gdbarch_init): Update.
8143 * alpha-tdep.c (alpha_gdbarch_init): Update.
8144 * sh-tdep.c (sh_init_extra_frame_info): Update.
8145 (sh64_init_extra_frame_info): Update.
8146 * ns32knbsd-nat.c (frame_num_args): Update.
8147 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8148 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8149 (xstormy16_frame_chain_valid): Update.
8150 * vax-tdep.c (vax_saved_pc_after_call): Update.
8151 * v850-tdep.c (v850_frame_chain): Update.
8152 (v850_pop_frame): Update.
8153 (v850_init_extra_frame_info): Update.
8154 * sparc-tdep.c (setup_arbitrary_frame): Update.
8155 * ns32k-tdep.c (umax_frame_num_args): Update.
8156 * s390-tdep.c (s390_pop_frame_regular): Update.
8157 * mn10300-tdep.c (mn10300_frame_chain): Update.
8158 (mn10300_pop_frame_regular): Update.
8159 (mn10300_init_extra_frame_info): Update.
8160 * mips-tdep.c (mips_init_frame_pc_first): Update.
8161 (mips_frame_chain): Update.
8162 (mips_pop_frame): Update.
8163 * mcore-tdep.c (mcore_frame_chain): Update.
8164 (mcore_pop_frame): Update.
8165 (mcore_init_extra_frame_info): Update.
8166 * arch-utils.c (init_frame_pc_default): Update.
8167 * m68k-tdep.c (isi_frame_num_args): Update.
8168 (delta68_frame_num_args): Update.
8169 (news_frame_num_args): Update.
8170 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8171 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8172 (alpha_frame_chain): Update.
8173 (alpha_pop_frame): Update.
8174 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8175 (hppa_init_extra_frame_info): Update.
8176 (hppa_frame_chain): Update.
8177 (hppa_frame_chain_valid): Update.
8178 * cris-tdep.c (cris_init_extra_frame_info): Update.
8179 * avr-tdep.c (avr_init_extra_frame_info): Update.
8180 * arm-tdep.c (arm_frame_chain_valid): Update.
8181 (arm_init_extra_frame_info): Update.
8182 (arm_pop_frame): Update.
8183 * frame.c (frame_pc_unwind): Update.
8184 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8185 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8186 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8187 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8188 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8189 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8190
8191 2003-03-12 Andrew Cagney <cagney@redhat.com>
8192
8193 Eliminate the need for POP_FRAME.
8194 * frame.c (do_frame_unwind_register): New function.
8195 (frame_pop): When no POP_FRAME, pop the frame using register
8196 unwind and a scratch regcache.
8197 (frame_saved_regs_pop): Delete function.
8198 (trad_frame_unwinder): Update.
8199 * d10v-tdep.c (d10v_frame_pop): Delete function.
8200 (d10v_frame_unwind): Update.
8201 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8202 (sentinel_frame_unwinder): Update.
8203 * dummy-frame.c (dummy_frame_pop): Delete function.
8204 (dummy_frame_unwind): Update.
8205 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8206 (struct frame_unwind): Update.
8207
8208 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8209
8210 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8211 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8212 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8213 Do range checks on register number obtained from debugging info.
8214 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8215 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8216 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8217 mapping function.
8218 (do_fp_register_row): Fix typo which caused double type to be
8219 used when attempting to unpack a float.
8220
8221 2003-03-11 J. Brobecker <brobecker@gnat.com>
8222
8223 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8224
8225 2003-03-11 Andrew Cagney <cagney@redhat.com>
8226
8227 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8228 frame. Problem found by Corinna Vinschen.
8229
8230 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8231
8232 * doublest.c (floatformat_from_length): Accept also
8233 the real size of 'long double' type.
8234
8235 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
8236
8237 From Klee Dienes <kdienes@apple.com>:
8238 * breakpoint.c (bpstat_copy): Copy the command lines as well
8239 as the old value, to match what is freed in bpstat_clear.
8240
8241 2003-03-10 David Carlton <carlton@math.stanford.edu>
8242
8243 * minsyms.c (add_minsym_to_hash_table): Replace
8244 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8245 (compare_minimal_symbols, compact_minimal_symbols)
8246 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8247 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8248 of DEPRECATED_SYMBOL_MATCHES_NAME.
8249 (lookup_minimal_symbol_solib_trampoline): Ditto.
8250
8251 2003-03-10 Andrew Cagney <cagney@redhat.com>
8252
8253 * regcache.h (regcache_cooked_read_ftype): Define.
8254 (regcache_save, regcache_restore): Add a cooked_read parameter.
8255 * regcache.c (regcache_save, regcache_restore): Update.
8256 (do_cooked_read): New function.
8257 (regcache_cpy): Pass do_cooked_read to regcache_save and
8258 regcache_restore.
8259
8260 2003-03-10 Andrew Cagney <cagney@redhat.com>
8261
8262 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8263 * gdbarch.h, gdbarch.c: Re-generate.
8264 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8265 * x86-64-tdep.h: Update.
8266 * x86-64-tdep.c (x86_64_init_abi): Update.
8267 * v850-tdep.c (v850_gdbarch_init): Update.
8268 * sparc-tdep.c (sparc_gdbarch_init): Update.
8269 * sh-tdep.c (sh_gdbarch_init): Update.
8270 * s390-tdep.c (s390_gdbarch_init): Update.
8271 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8272 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8273 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8274 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8275 * mips-tdep.c (mips_gdbarch_init): Update.
8276 * mcore-tdep.c (mcore_gdbarch_init): Update.
8277 * m68k-tdep.c (m68k_gdbarch_init): Update.
8278 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8279 * ia64-tdep.c (ia64_gdbarch_init): Update.
8280 * i386-tdep.c (i386_gdbarch_init): Update.
8281 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8282 * hppa-tdep.c (hppa_gdbarch_init): Update.
8283 * h8300-tdep.c (h8300_gdbarch_init): Update.
8284 * frv-tdep.c (frv_gdbarch_init): Update.
8285 * cris-tdep.c (cris_gdbarch_init): Update.
8286 * avr-tdep.c (avr_gdbarch_init): Update.
8287 * arm-tdep.c (arm_gdbarch_init): Update.
8288 * alpha-tdep.c (alpha_gdbarch_init): Update.
8289 * sh-tdep.c (sh_init_extra_frame_info): Update.
8290 (sh64_init_extra_frame_info): Update.
8291 * ns32knbsd-nat.c (frame_num_args): Update.
8292 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8293 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8294 (xstormy16_frame_chain_valid): Update.
8295 * vax-tdep.c (vax_saved_pc_after_call): Update.
8296 * v850-tdep.c (v850_frame_chain): Update.
8297 (v850_pop_frame): Update.
8298 (v850_init_extra_frame_info): Update.
8299 * sparc-tdep.c (setup_arbitrary_frame): Update.
8300 * ns32k-tdep.c (umax_frame_num_args): Update.
8301 * s390-tdep.c (s390_pop_frame_regular): Update.
8302 * mn10300-tdep.c (mn10300_frame_chain): Update.
8303 (mn10300_pop_frame_regular): Update.
8304 (mn10300_init_extra_frame_info): Update.
8305 * mips-tdep.c (mips_init_frame_pc_first): Update.
8306 (mips_frame_chain): Update.
8307 (mips_pop_frame): Update.
8308 * mcore-tdep.c (mcore_frame_chain): Update.
8309 (mcore_pop_frame): Update.
8310 (mcore_init_extra_frame_info): Update.
8311 * arch-utils.c (init_frame_pc_default): Update.
8312 * m68k-tdep.c (isi_frame_num_args): Update.
8313 (delta68_frame_num_args): Update.
8314 (news_frame_num_args): Update.
8315 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8316 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8317 (alpha_frame_chain): Update.
8318 (alpha_pop_frame): Update.
8319 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8320 (hppa_init_extra_frame_info): Update.
8321 (hppa_frame_chain): Update.
8322 (hppa_frame_chain_valid): Update.
8323 * cris-tdep.c (cris_init_extra_frame_info): Update.
8324 * avr-tdep.c (avr_init_extra_frame_info): Update.
8325 * arm-tdep.c (arm_frame_chain_valid): Update.
8326 (arm_init_extra_frame_info): Update.
8327 (arm_pop_frame): Update.
8328 * frame.c (frame_pc_unwind): Update.
8329 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8330 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8331 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8332 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8333 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8334 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8335
8336 2003-03-10 Andrew Cagney <cagney@redhat.com>
8337
8338 * gdbarch.sh (gdbarch_unwind_pc): New method.
8339 * gdbarch.h, gdbarch.c: Regenerate.
8340 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8341 but use read_pc and FRAME_SAVED_PC as fall backs.
8342 (frame_saved_regs_pc_unwind): Delete function.
8343 (trad_frame_unwinder): Update.
8344 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8345 (struct frame_unwind): Update.
8346 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8347 (dummy_frame_unwind): Update.
8348 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8349 (sentinel_frame_unwinder): Update.
8350 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8351 (d10v_frame_unwind): Update.
8352 (d10v_unwind_pc): New function.
8353 (d10v_gdbarch_init): Set unwind_pc.
8354
8355 2003-03-10 Andrew Cagney <cagney@redhat.com>
8356
8357 * gdbarch.h: Re-generate.
8358
8359 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8360 PC.
8361 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8362 the PC register.
8363
8364 2003-03-08 Mark Kettenis <kettenis@gnu.org>
8365
8366 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8367
8368 2003-03-08 Andrew Cagney <cagney@redhat.com>
8369
8370 * cli-out.c: Update copyright.
8371 (cli_out_data): Define typedef. Use instead of ui_out_data.
8372
8373 2003-03-08 Andrew Cagney <cagney@redhat.com>
8374
8375 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8376 the result.
8377
8378 2003-03-07 Andrew Cagney <cagney@redhat.com>
8379
8380 * gdbarch.sh: Don't generate two macro definitions when an
8381 undefined macro taking no arguments.
8382 * gdbarch.h: Regenerate.
8383
8384 2002-03-07 Michal Ludvig <mludvig@suse.cz>
8385
8386 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8387 (x86_64_unwind_dummy_id): New functions.
8388 (x86_64_init_abi): Register these two new functions.
8389
8390 2003-03-07 Michal Ludvig <mludvig@suse.cz>
8391
8392 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8393 (x86_64_skip_prologue): Move prologue detection to
8394 separate function.
8395 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8396
8397 2003-03-05 Andrew Cagney <cagney@redhat.com>
8398
8399 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8400 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8401 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8402 to use unwind_dummy_id when a dummy frame.
8403 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8404 predicate.
8405 * gdbarch.h, gdbarch.c: Regneerate.
8406
8407 2003-03-05 Andrew Cagney <cagney@redhat.com>
8408
8409 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8410 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8411 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8412 values.
8413
8414 2003-03-05 Andrew Cagney <cagney@redhat.com>
8415
8416 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8417 (struct d10v_unwind_cache): Delete field "frameless". Replace
8418 "next_addr" with "sp_offset". Add "r11_offset".
8419 (d10v_frame_unwind_cache): Update.
8420 (prologue_find_regs): Update. When "mv r11, sp", save the
8421 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8422 RN was saved in r11_offset.
8423
8424 2003-03-05 Andrew Cagney <cagney@redhat.com>
8425
8426 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8427 cached PC value in the next frame.
8428
8429 2003-03-05 Andrew Cagney <cagney@redhat.com>
8430
8431 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8432 "id_unwind_cache" with "id".
8433 (frame_id_unwind): Delete declaration.
8434 * frame.c (frame_id_unwind): Delete function.
8435 (get_prev_frame): Call the frame id unwind method directly. Store
8436 the returned next frame's ID value in NEXT_FRAME. Note that there
8437 is a problem with the wrong unwind ID being called with the wrong
8438 unwind cache.
8439
8440 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8441
8442 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8443
8444 2003-03-05 James Ingham <jingham@apple.com>
8445 Daniel Jacobowitz <drow@mvista.com>
8446
8447 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8448 (auto_cp_abi): New variable.
8449 (current_cp_abi, num_cp_abis): Make static.
8450 (CP_ABI_MAX): Define.
8451 (cp_abis): Turn into an array.
8452 (value_virtual_fn_field): Fix formatting.
8453 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8454 takes a pointer.
8455 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8456 (list_cp_abis, _initialize_cp_abi): New functions.
8457 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8458 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8459 switch_to_cp_abi. Update prototype for register_cp_abi.
8460 * Makefile.in (cp-abi.o): Update dependencies.
8461 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8462 instead of switch_to_cp_abi.
8463 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8464 register_cp_abi.
8465 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8466 register_cp_abi.
8467 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8468
8469 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8470
8471 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8472 * dwarf2loc.c: Include "regcache.h".
8473 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8474 register_size.
8475 * Makefile.in (dwarf2loc.o): Update dependencies.
8476
8477 2003-03-04 Theodore A. Roth <troth@openavr.org>
8478
8479 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8480 number of io registers reported by remote target is not a multiple of
8481 step.
8482
8483 2003-03-04 David Carlton <carlton@math.stanford.edu>
8484
8485 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8486 (lookup_symbol_aux_psymtabs): Update call to
8487 lookup_partial_symbol.
8488 (lookup_transparent_type, find_main_psymtab)
8489 (make_symbol_overload_list): Ditto.
8490
8491 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8492
8493 * MAINTAINERS (Write after approval): Update my email address.
8494
8495 2003-03-03 Andrew Cagney <cagney@redhat.com>
8496
8497 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8498 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8499 predicate. Replace MAX_REGISTER_RAW_SIZE.
8500 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8501 MAX_REGISTER_VIRTUAL_SIZE.
8502 * regcache.c (legacy_max_register_raw_size): New function.
8503 (legacy_max_register_virtual_size): New function.
8504 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8505 (MAX_REGISTER_RAW_SIZE): Define.
8506 (legacy_max_register_raw_size): Declare.
8507 (legacy_max_register_virtual_size): Declare.
8508 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8509 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8510 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8511 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8512 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8513 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8514 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8515 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8516 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8517 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8518 * vax-tdep.c (vax_gdbarch_init): Update.
8519 * v850-tdep.c (v850_gdbarch_init): Update.
8520 * sparc-tdep.c (sparc_gdbarch_init): Update.
8521 * sh-tdep.c (sh_gdbarch_init): Update.
8522 * s390-tdep.c (s390_gdbarch_init): Update.
8523 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8524 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8525 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8526 * mips-tdep.c (mips_gdbarch_init): Update.
8527 * mcore-tdep.c (mcore_gdbarch_init): Update.
8528 * m68k-tdep.c (m68k_gdbarch_init): Update.
8529 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8530 * ia64-tdep.c (ia64_gdbarch_init): Update.
8531 * i386-tdep.c (i386_gdbarch_init): Update.
8532 * hppa-tdep.c (hppa_gdbarch_init): Update.
8533 * h8300-tdep.c (h8300_gdbarch_init): Update.
8534 * frv-tdep.c (frv_gdbarch_init): Update.
8535 * cris-tdep.c (cris_gdbarch_init): Update.
8536 * avr-tdep.c (avr_gdbarch_init): Update.
8537 * arm-tdep.c (arm_gdbarch_init): Update.
8538 * alpha-tdep.c (alpha_gdbarch_init): Update.
8539 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8540 max_register_raw_size or max_register_virtual_size.
8541
8542 2003-03-03 David Carlton <carlton@math.stanford.edu>
8543
8544 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8545 SYMBOL_MATCHES_NAME, add comment.
8546 (SYMBOL_MATCHES_NATURAL_NAME): New.
8547 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8548 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8549 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8550 * symtab.c (lookup_partial_symbol): Use
8551 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8552 unhelpful comment.
8553 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8554 SYMBOL_MATCHES_NAME.
8555 Fix for PR c++/33.
8556
8557 2003-03-03 David Carlton <carlton@math.stanford.edu>
8558
8559 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8560 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8561 by regexp matching against SYMBOL_NATURAL_NAME.
8562
8563 2003-03-03 David Carlton <carlton@math.stanford.edu>
8564
8565 * linespec.c (find_method): Extract code into collect_methods.
8566 (collect_methods): New.
8567
8568 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8569
8570 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8571 get_frame_base.
8572
8573 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8574 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8575
8576 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8577
8578 * arch-utils.c (generic_register_byte): Fix to use the loop index
8579 and not regnum when summing the size of all registers up to regnum.
8580
8581 2003-03-01 Andrew Cagney <cagney@redhat.com>
8582
8583 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8584 FRAME_INIT_SAVED_REGS.
8585 * gdbarch.h, gdbarch.c: Regenerate.
8586 * stack.c (frame_info): Update.
8587 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8588 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8589 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8590 * ns32k-tdep.c (ns32k_pop_frame): Update.
8591 * mips-tdep.c (mips_pop_frame): Update.
8592 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8593 * ia64-tdep.c (ia64_frame_chain): Update.
8594 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8595 (ia64_frameless_function_invocation): Update.
8596 (ia64_init_extra_frame_info): Update.
8597 (ia64_pop_frame_regular): Update.
8598 * frame.h (struct frame_info): Update comment.
8599 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8600 * frame.c (frame_saved_regs_register_unwind): Update.
8601 (frame_saved_regs_register_unwind): Update.
8602 (deprecated_generic_get_saved_register): Update.
8603 * cris-tdep.c: Update comment.
8604 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8605 Rename macro.
8606 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8607 * x86-64-tdep.c (x86_64_init_abi): Update.
8608 * vax-tdep.c (vax_gdbarch_init): Update.
8609 * v850-tdep.c (v850_gdbarch_init): Update.
8610 * sparc-tdep.c (sparc_gdbarch_init): Update.
8611 * sh-tdep.c (sh_gdbarch_init): Update.
8612 * s390-tdep.c (s390_gdbarch_init): Update.
8613 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8614 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8615 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8616 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8617 * mips-tdep.c (mips_gdbarch_init): Update.
8618 * mcore-tdep.c (mcore_gdbarch_init): Update.
8619 * m68k-tdep.c (m68k_gdbarch_init): Update.
8620 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8621 * ia64-tdep.c (ia64_gdbarch_init): Update.
8622 * i386-tdep.c (i386_gdbarch_init): Update.
8623 * frv-tdep.c (frv_gdbarch_init): Update.
8624 * avr-tdep.c (avr_gdbarch_init): Update.
8625 * arm-tdep.c (arm_gdbarch_init): Update.
8626 * alpha-tdep.c (alpha_gdbarch_init): Update.
8627
8628 2003-03-01 Andrew Cagney <cagney@redhat.com>
8629
8630 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8631 option enum and switch. When no windows, set the interpreter to
8632 INTERP_CONSOLE.
8633
8634 2003-03-01 Andrew Cagney <cagney@redhat.com>
8635
8636 * main.c (captured_main): Replace magic option characters with an
8637 enum.
8638
8639 2003-03-01 Andrew Cagney <cagney@redhat.com>
8640
8641 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8642 INIT_EXTRA_FRAME_INFO.
8643 * gdbarch.h, gdbarch.c: Regenerate.
8644 * arm-tdep.c: Update comments.
8645 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8646 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8647 * frame.h, avr-tdep.c: Ditto.
8648 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8649 (create_new_frame, legacy_get_prev_frame): Ditto.
8650 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8651 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8652 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8653 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8654 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8655 * v850-tdep.c (v850_gdbarch_init): Ditto.
8656 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8657 * sh-tdep.c (sh_gdbarch_init): Ditto.
8658 * s390-tdep.c (s390_gdbarch_init): Ditto.
8659 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8660 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8661 * mips-tdep.c (mips_gdbarch_init): Ditto.
8662 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8663 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8664 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8665 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8666 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8667 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8668 * frv-tdep.c (frv_gdbarch_init): Ditto.
8669 * cris-tdep.c (cris_gdbarch_init): Ditto.
8670 * avr-tdep.c (avr_gdbarch_init): Ditto.
8671 * arm-tdep.c (arm_gdbarch_init): Ditto.
8672 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8673 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8674
8675 2003-03-01 Andrew Cagney <cagney@redhat.com>
8676
8677 * gdbarch.sh (register_type): New function with predicate.
8678 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8679 * gdbarch.h, gdbarch.c: Re-generate.
8680 * arch-utils.c (generic_register_byte): Use generic_register_size.
8681 (generic_register_size): When available, use
8682 gdbarch_register_type.
8683 * regcache.c (init_regcache_descr): When available, initialize the
8684 register type array using gdbarch_register_type. If the
8685 architecture supplies gdbarch_register_type, do not use the legacy
8686 regcache layout.
8687 * d10v-tdep.c (d10v_register_type): Replace
8688 d10v_register_virtual_type.
8689 (d10v_gdbarch_init): Set register_type instead of
8690 register_virtual_type.
8691
8692 2003-03-01 Andrew Cagney <cagney@redhat.com>
8693
8694 * Makefile.in (ax-gdb.o): Update dependencies.
8695 * ax-gdb.c: Include "regcache.h".
8696 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8697 * findvar.c (value_of_register): Ditto.
8698 * infcmd.c (default_print_registers_info): Ditto.
8699
8700 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8701
8702 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8703 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8704
8705 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8706
8707 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8708 of STREQ.
8709
8710 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8711
8712 * Makefile.in (dwarf2loc.o): Update dependencies.
8713 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8714 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8715 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8716 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8717 (locexpr_tracepoint_var_ref): New function.
8718 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8719
8720 2003-02-28 Andrew Cagney <cagney@redhat.com>
8721
8722 * regcache.c (register_size): New function.
8723 * regcache.h (register_size): Declare
8724 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8725 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8726
8727 2003-02-28 David Carlton <carlton@math.stanford.edu>
8728
8729 * linespec.c (decode_compound): Extract code into find_method.
8730 (find_method): New.
8731
8732 2003-02-28 J. Brobecker <brobecker@gnat.com>
8733
8734 * Makefile.in: Add rules to build and link in observer.o.
8735
8736 2003-02-27 J. Brobecker <brobecker@gnat.com>
8737
8738 * observer.c: Minor comments edits.
8739
8740 2003-02-27 J. Brobecker <brobecker@gnat.com>
8741
8742 * observer.h, observer.c: New file.
8743
8744 2003-02-27 Andrew Cagney <cagney@redhat.com>
8745
8746 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8747
8748 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8749
8750 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8751 (M6812_OP_STS_EXT): Likewise.
8752 (m6811_prologue): Use the above to recognize prologue.
8753 (m6812_prologue): Likewise.
8754
8755 2003-02-27 David Carlton <carlton@math.stanford.edu>
8756
8757 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8758 SYMBOL_PRINT_NAME.
8759 (compare_psymbols): Ditto.
8760 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8761
8762 2003-02-27 Michael Snyder <msnyder@redhat.com>
8763
8764 * f-lang.c (build_fortran_types): New function.
8765 (_initialize_f_language): Gdbarch-register built-in fortran types.
8766 * doublest.c (extract_floating): Fix warning text.
8767
8768 2003-02-27 Andrew Cagney <cagney@redhat.com>
8769
8770 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8771 predicate. Replaces PUSH_DUMMY_FRAME.
8772 * gdbarch.h, gdbarch.c: Regnerate.
8773 * valops.c (hand_function_call): Update. Call
8774 generic_push_dummy_frame directly.
8775 * vax-tdep.c (vax_gdbarch_init): Update.
8776 * sparc-tdep.c (sparc_gdbarch_init): Update.
8777 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8778 * m68k-tdep.c (m68k_gdbarch_init): Update.
8779 * hppa-tdep.c (hppa_gdbarch_init): Update.
8780 * alpha-tdep.c (alpha_gdbarch_init): Update.
8781 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8782 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8783 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8784 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8785 push_dummy_frame to generic_push_dummy_frame.
8786 * v850-tdep.c (v850_gdbarch_init): Ditto.
8787 * sh-tdep.c (sh_gdbarch_init): Ditto.
8788 * s390-tdep.c (s390_gdbarch_init): Ditto.
8789 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8790 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8791 * mips-tdep.c (mips_gdbarch_init): Ditto.
8792 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8793 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8794 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8795 * i386-tdep.c (i386_gdbarch_init): Ditto.
8796 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8797 * frv-tdep.c (frv_gdbarch_init): Ditto.
8798 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8799 * cris-tdep.c (cris_gdbarch_init): Ditto.
8800 * avr-tdep.c (avr_gdbarch_init): Ditto.
8801 * arm-tdep.c (arm_gdbarch_init): Ditto.
8802
8803 2003-02-26 Kevin Buettner <kevinb@redhat.com>
8804
8805 * mips-tdep.c (show_mips_abi): New function.
8806 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8807 command ``show mips abi''.
8808
8809 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8810
8811 From Elena Zannoni <ezannoni@redhat.com>
8812 * dbxread.c (process_one_symbol): Only record line 0 if one or
8813 more sline entries have been seen for the function.
8814
8815 2003-02-26 Michael Chastain <mec@shout.net>
8816
8817 * configure: Regenerate with autoconf 000227.
8818
8819 2003-02-26 Michael Chastain <mec@shout.net>
8820
8821 Close PR build/660.
8822 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8823 for old libc5/glibc.
8824 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8825
8826 2003-02-26 Kris Warkentin <kewarken@qnx.com>
8827
8828 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8829 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8830
8831 2003-02-26 Michael Chastain <mec@shout.net>
8832
8833 * configure.in: New variable HAVE_UINTPTR_T.
8834 * configure, config.in: Regenerated.
8835
8836 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
8837
8838 Fix PR build/1097.
8839 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8840
8841 2003-02-25 Andrew Cagney <cagney@redhat.com>
8842
8843 * frame.c (get_prev_frame): Add comment on check for
8844 inside_entry_func. Only check for inside_entry_file when not a
8845 dummy and not a sentinel. Check that the new frame is not inner
8846 to the old frame.
8847
8848 2003-02-25 Andrew Cagney <cagney@redhat.com>
8849
8850 * frame.c (frame_debug): New variable.
8851 (_initialize_frame): Add "set/show debug frame" command.
8852 (get_prev_frame): When frame_debug, print reason why unwind
8853 failed.
8854
8855 2003-02-25 Michael Chastain <mec@shout.net>
8856
8857 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8858 to avoid uintptr_t definition problems.
8859
8860 2003-02-25 David Carlton <carlton@math.stanford.edu>
8861
8862 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8863 (SYMBOL_LINKAGE_NAME): Ditto.
8864 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8865 SYMBOL_LINKAGE_NAME.
8866 (struct general_symbol_info): Expand comment.
8867 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8868 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8869 (SYMBOL_MATCHES_REGEXP): Ditto.
8870 * symtab.c (symbol_natural_name): New function.
8871 * objfiles.h: Replace all uses of SYMBOL_NAME by
8872 DEPRECATED_SYMBOL_NAME.
8873 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8874 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8875 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8876 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8877 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8878 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8879 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8880 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8881 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8882 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8883 * ada-exp.y: Ditto.
8884 * ada-exp.y: Update copyright.
8885 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8886 * cp-valprint.c: Ditto.
8887
8888 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8889
8890 * infptrace.c (detach): Do not flag error if ptrace detach fails
8891 and errno is set to ESRCH.
8892
8893 2003-02-24 Andrew Cagney <cagney@redhat.com>
8894
8895 * infptrace.c (udot_info): Change type of udot_off to long. Use
8896 paddr when printing udot_off's value.
8897
8898 2003-02-24 David Carlton <carlton@math.stanford.edu>
8899
8900 * symtab.c (make_symbol_overload_list): Only read in partial
8901 symtabs containing a matching partial symbol.
8902
8903 2003-02-24 David Carlton <carlton@math.stanford.edu>
8904
8905 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8906 do the comparison, not strcmp.
8907 * symfile.c (compare_psymbols): Ditto.
8908 * defs.h: Declare strcmp_iw_ordered.
8909 * utils.c (strcmp_iw_ordered): New function.
8910
8911 2003-02-24 Jim Blandy <jimb@redhat.com>
8912
8913 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8914 support, shared libs): Remove my name from here, to better reflect
8915 reality.
8916
8917 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8918
8919 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8920 (target_ops): Add to_have_continuable_watchpoint.
8921 * target.c (update_current_target): Add INHERIT line for
8922 to_have_continuable_watchpoint.
8923 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8924 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8925 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8926 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8927
8928 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
8929
8930 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8931 maintainership.
8932
8933 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8934
8935 * solib.c (solib_open): Call target defined search function after
8936 failing with solib-search-path.
8937 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8938 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8939
8940 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8941
8942 * MAINTAINERS: Add myself to Write After section.
8943
8944 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8945
8946 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8947
8948 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8949
8950 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8951 (m68hc11_add_reggroups): New function.
8952 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8953 (m68hc11_gdbarch_init): Install the reggroups.
8954 (_initialize_m68hc11_tdep): Initialize them.
8955
8956 2003-02-21 James E Wilson <wilson@tuliptree.org>
8957
8958 * MAINTAINERS: Update my email address.
8959
8960 2003-02-21 David Carlton <carlton@math.stanford.edu>
8961
8962 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8963
8964 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
8965
8966 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8967 * symtab.h: Add opaque declarations of struct axs_value and
8968 struct agent_expr.
8969 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8970 (struct location_funcs): New type.
8971 (struct symbol): Add "loc" to aux_value.
8972 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8973 * dwarf2read.c: Include "dwarf2expr.h".
8974 (dwarf2_symbol_mark_computed): New function.
8975 (read_func_scope): Use it.
8976 (var_decode_location): New function.
8977 (new_symbol): Use it.
8978 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8979
8980 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8981 (dwarf2expr_h, dwarf2loc_h): New variables.
8982 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8983 (dwarf2expr.o, dwarf2loc.o): New rules.
8984 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8985 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8986 LOC_COMPUTED_ARG.
8987 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8988 * m2-exp.y (yylex): Likewise.
8989 * printcmd.c (address_info, print_frame_args): Likewise.
8990 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8991 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8992 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8993 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8994 * symtab.c (lookup_block_symbol): Likewise.
8995
8996 2003-02-20 Adam Fedor <fedor@gnu.org>
8997
8998 * symtab.h: Remove objc_specific struct
8999 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9000 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9001 Have language_objc use cplus_specific struct.
9002
9003 2003-02-20 Tom Tromey <tromey@redhat.com>
9004
9005 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9006 TYPE_NAME, when printing a String value. PR java/1075.
9007
9008 2003-02-20 Adam Fedor <fedor@gnu.org>
9009
9010 * objc-lang.h (find_methods): Remove declaration.
9011 * objc-lang.c (find_methods): Make static.
9012
9013 2003-02-20 Christopher Faylor <cgf@redhat.com>
9014
9015 * win32-nat.c (get_image_name): Check return value from
9016 ReadProcessMemory.
9017 (child_xfer_memory): Ditto.
9018
9019 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
9020
9021 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9022 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9023 '${exec_prefix}' (in addition to the expansion thereof) as
9024 relocatable.
9025 * configure: Rebuilt.
9026
9027 2003-02-20 David Carlton <carlton@math.stanford.edu>
9028
9029 * symtab.c (search_symbols): Revert the search_symbols part of my
9030 2002-12-23 patch. Add comment.
9031
9032 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9033
9034 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9035 * dbxread.c (elfstab_build_psymtabs): Don't call
9036 install_minimal_symbols.
9037 (stabsect_build_psymtabs): Likewise.
9038 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9039 earlier.
9040 * somread.c (som_symfile_read): Call install_minimal_symbols
9041 and do_cleanups earlier.
9042 * nlmread.c (nlm_symfile_read): Likewise.
9043 * mdebugread.c (elfmdebug_build_psymtabs): Call
9044 install_minimal_symbols and make appropriate cleanups.
9045
9046 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9047
9048 * solib.c (reload_shared_libraries): New function.
9049 (_initialize_solib): Add callbacks for ``set solib-search-path''
9050 and ``set solib-absolute-prefix''.
9051
9052 2003-02-20 David Carlton <carlton@math.stanford.edu>
9053
9054 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9055 expand comment.
9056 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9057 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9058 * ada-typeprint.c (ada_typedef_print): Ditto.
9059 * ax-gdb.c (gen_var_ref): Ditto.
9060 * breakpoint.c (print_one_breakpoint): Ditto.
9061 * buildsym.c (finish_block): Ditto.
9062 * c-valprint.c (c_val_print): Ditto.
9063 * expprint.c (print_subexp): Ditto.
9064 * findvar.c (locate_var_value): Ditto.
9065 * infcmd.c (jump_command): Ditto.
9066 * linespec.c (decode_line_2, decode_compound): Ditto.
9067 * maint.c (maintenance_translate_address): Ditto.
9068 * objc-lang.c (compare_selectors, compare_classes): Ditto.
9069 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9070 Ditto.
9071 * p-valprint.c (pascal_val_print): Ditto.
9072 * stabsread.c (define_symbol): Ditto.
9073 * stack.c (print_frame, frame_info, print_block_frame_locals)
9074 (print_frame_arg_vars, return_command): Ditto.
9075 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9076 * symmisc.c (print_symbol): Ditto.
9077 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9078 (compare_search_syms, print_symbol_info, print_msymbol_info)
9079 (rbreak_command): Ditto.
9080 * tracepoint.c (tracepoints_info): Ditto.
9081 * typeprint.c (typedef_print): Ditto.
9082 * valops.c (value_of_variable, hand_function_call): Ditto.
9083 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9084 * ada-typeprint.c: Update Copyright.
9085 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9086 * tracepoint.c, cli/cli-cmds.c: Ditto.
9087
9088 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9089
9090 * frame.c (generic_unwind_get_saved_register): Make non-static.
9091 * frame.h (generic_unwind_get_saved_register): Declare.
9092 * mips-tdep.c (read_next_frame_reg): Fetch register from
9093 current regcache when frame is NULL.
9094 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9095 that must be NULL.
9096 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9097 instead of frame_register_unwind().
9098
9099 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9100
9101 * remote-sim.c (gdbsim_insert_breakpoint)
9102 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9103 code.
9104
9105 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9106
9107 * remote.c (_initialize_remote): Add commands "set/show remote
9108 hardware-watchpoint-limit" and "set/show remote
9109 hardware-breakpoint-limit".
9110 (remote_hw_watchpoint_limit): Initialize to -1.
9111 (remote_hw_breakpoint_limit): Ditto.
9112 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9113
9114 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9115
9116 * coff-pe-read.c: New file - support reading of minimal symbols from a
9117 portable executable using the export table.
9118 * coff-pe-read.h: New file.
9119 * coffread.c: Include coff-pe-read.h.
9120 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9121 debugging symbols found.
9122 * Makefile.in (SFILES): Add coff-pe-read.o.
9123 (coff_pe_read_h): Define.
9124 (COMMON_OBS): Add coff-pe-read.o.
9125 (coffread.o): Add coff_pe_read_h dependency.
9126 (coff-pe-read.o): New target.
9127
9128 2003-02-19 David Carlton <carlton@math.stanford.edu>
9129
9130 * Makefile.in (SFILES): Add block.c.
9131 (block_h): New.
9132 (COMMON_OBS): Add block.o.
9133 (block.o): New.
9134 (x86-64-tdep.o): Add $(block_h).
9135 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9136 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9137 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9138 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9139 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9140 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9141 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9142 * value.h: Add opaque declaration for struct block.
9143 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9144 * ada-lang.h: Ditto.
9145 * x86-64-tdep.c: #include "block.h"
9146 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9147 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9148 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9149 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9150 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9151 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9152 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9153 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9154 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9155 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9156 * symtab.c (block_function): Ditto.
9157 (contained_in): Ditto.
9158 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9159 block.h. Add opaque declaration for struct block.
9160 * symtab.h: Move block_function and contained_in declarations to
9161 block.h. Add opaque declarations for struct block, struct
9162 blockvector.
9163 (struct block): Move to block.h.
9164 (struct blockvector): Ditto.
9165 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9166 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9167 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9168 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9169 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9170 Ditto.
9171 * block.c: New file.
9172 * block.h: New file.
9173
9174 2003-02-19 Theodore A. Roth <troth@openavr.org>
9175
9176 * avr-tdep.c (avr_extract_return_value): Remove function.
9177 (avr_store_return_value): Remove function.
9178 (avr_extract_struct_value_address): Remove function.
9179 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9180
9181 2003-02-19 Andrew Cagney <ac131313@redhat.com>
9182
9183 * rs6000-tdep.c: Include "gdb_assert.h".
9184 (registers_e500): Add "acc" and "spefscr".
9185 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9186 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9187 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9188 really is "r0".
9189 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9190
9191 2003-02-18 Keith Seitz <keiths@redhat.com>
9192
9193 * Makefile.in: Add gdbtk-interps.c.
9194
9195 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9196
9197 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9198 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9199
9200 2003-02-18 Andrew Cagney <cagney@redhat.com>
9201
9202 * symtab.h (struct objfile): Add opaque declaration.
9203
9204 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
9205
9206 From Jim Ingham <jingham@apple.com>:
9207 * dbxread.c (process_one_symbol): Use last_function_start rather
9208 than function_start_offset to find the real beginning of the
9209 current function. The latter is just the text section offset on
9210 some systems, the former is always the real function start.
9211
9212 2003-02-17 Andrew Cagney <cagney@redhat.com>
9213
9214 * configure.in: Revert ${target} != ${host}.
9215
9216 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9217
9218 * configure.in (Makefile): Use the test ${target} != ${host},
9219 instead of the absence of the "nm.h" file, to determine of the
9220 configuration non-native.
9221 * configure: Regenerate.
9222
9223 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
9224
9225 From Brian Ford <ford@vss.fsi.com>
9226
9227 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9228 conditionalize tui_active test.
9229 (lookup_cmd_1): Ditto.
9230
9231 2003-02-14 Mark Kettenis <kettenis@gnu.org>
9232
9233 * configure.in: Add check for _etext.
9234 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9235 available.
9236 * config.in, configure: regenerated.
9237
9238 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
9239
9240 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9241
9242 2003-02-14 Andrew Cagney <ac131313@redhat.com>
9243
9244 * main.c (tui_version): Delete variable.
9245 (captured_main): When --tui, set interpreter_p to "tui" instead of
9246 enabling tui_version.
9247 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9248 tui_version.
9249 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9250 * cli/cli-cmds.c (disassemble_command): Ditto.
9251 * defs.h (tui_version): Delete declaration.
9252 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9253 (tui-interp.o): Add rules.
9254 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9255
9256 2003-02-14 Christopher Faylor <cgf@redhat.com>
9257
9258 * win32-nat.c (register_loaded_dll): Correctly set address range for
9259 just-loaded dll.
9260
9261 2003-02-12 Jason Molenda (jmolenda@apple.com)
9262
9263 * symmisc.c (print_objfile_statistics): Include information about
9264 the number of psymtabs and symtabs in each object file.
9265
9266 2003-02-13 Keith R Seitz <keiths@redhat.com>
9267
9268 * main.h (struct captured_main_args): Add interpreter_p.
9269 * main.c (captured_main): Initialize interpreter_p from context.
9270 * gdb.c (main): Set interpreter_p argument.
9271 * Makefile.in (gdb.o): Add dependency for interps.h.
9272
9273 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9274
9275 * event-top.c (cli_command_loop): Delete declaration.
9276 (_initialize_event_loop): Delete function setting event_loop_hook.
9277 * event-top.h (cli_command_loop): Declare. Update copyright.
9278 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9279 * interps.c (current_interp_command_loop): When event_loop_p, call
9280 cli_command_loop.
9281
9282 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9283
9284 * interps.h (interp_command_loop_ftype): Change return type to
9285 void.
9286
9287 2003-02-12 Michal Ludvig <mludvig@suse.cz>
9288
9289 * x86-64-tdep.c (x86_64_extract_return_value)
9290 (x86_64_store_return_value): Use regcache instead of regbuf.
9291 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9292 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9293
9294 2003-02-11 Andrew Cagney <ac131313@redhat.com>
9295
9296 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9297 * aclocal.m4: Regenerate.
9298 * configure: Regenerate.
9299
9300 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9301 TCL_LD_SEARCH_FLAGS.
9302
9303 2003-02-10 Michal Ludvig <mludvig@suse.cz>
9304
9305 * dwarf2cfi.c: Reindented.
9306
9307 2003-02-09 Andrew Cagney <ac131313@redhat.com>
9308
9309 * interps.c (clear_interpreter_hooks): Convert function definition
9310 to ISO C.
9311
9312 2003-02-07 David Carlton <carlton@math.stanford.edu>
9313
9314 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9315
9316 2003-02-07 Kevin Buettner <kevinb@redhat.com>
9317
9318 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9319 (struct type): ...to here.
9320 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9321 field.
9322 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9323 (replace_type): Set length on all type variants for a given type.
9324
9325 2003-02-07 Andrew Cagney <ac131313@redhat.com>
9326
9327 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9328 <sys/stat.h>.
9329 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9330
9331 2003-02-06 Andrew Cagney <ac131313@redhat.com>
9332
9333 * Makefile.in (symm-nat.o): Update dependencies.
9334 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9335 (lynx-nat.o, ia64-linux-nat.): Ditto.
9336 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9337 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9338 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9339
9340 * Makefile.in (inflow_h): Define.
9341 (procfs.o, inflow.o, procfs.o): Update dependencies.
9342 * inftarg.c (child_stop): Delete extern declaration of
9343 inferior_process_group. Include "inflow.h".
9344 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9345 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9346 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9347 (our_process_group, inferior_process_group): Extern declarations.
9348
9349 * procfs.c: Include "gdb_assert.h".
9350
9351 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9352 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9353 * jv-typeprint.c (java_type_print_base): Ditto.
9354 * typeprint.c (typedef_print): Eliminate STREQ.
9355 * cli/cli-script.c (define_command, define_command): Ditto.
9356 * main.c (captured_main): Ditto.
9357 * values.c (lookup_internalvar): Ditto.
9358 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9359 within `if' conditional.
9360 * linespec.c (decode_line_2): Ditto.
9361 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9362 (bfd_openw_with_cleanup): Ditto.
9363
9364 2003-02-07 Mark Kettenis <kettenis@gnu.org>
9365
9366 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9367 legacy_extract_return_value and store_return_value to
9368 legacy_return_value.
9369
9370 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9371
9372 * win32-nat.c (get_relocated_section_addrs): New function. Find
9373 section load addresses for symbol handling in relocated DLLs.
9374 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9375
9376 2003-02-05 Fred Fish <fnf@intrinsity.com>
9377
9378 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9379 '=' and '!='.
9380 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9381 with '&' and '=='.
9382 (angel_RDI_info): Ditto.
9383 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9384 with '&' and '!='.
9385 (threads_continue_all_with_signals): Ditto.
9386
9387 2003-02-05 Jim Ingham <jingham@apple.com>
9388 Keith Seitz <keiths@redhat.com>
9389 Elena Zannoni <ezannoni@redhat.com>
9390 Andrew Cagney <ac131313@redhat.com>
9391
9392 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9393 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9394 (SUBDIR_MI_OBS): Add "mi-interp.o".
9395 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9396 (SFILES): Add "interps.c".
9397 (COMMON_OBS): Add "interps.o".
9398 (interps_h, mi_main_h): Define.
9399 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9400 (mi-main.o, main.o, event-top.o): Update dependencies.
9401 * cli/cli-interp.c: New file.
9402 * interps.h, interps.c: New files.
9403 * top.c: (gdb_init): Don't install the default interpreter, handed
9404 by captured_main.
9405 * main.c: Include "interps.h".
9406 (interpreter_p): Note that it should malloc'ed.
9407 (captured_command_loop): Call current_interp_command_loop.
9408 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9409 xfree and xstrdup when updating interpreter_p. Install the
9410 default interpreter. Add hack to stop mi1's copyright notice
9411 being encoded.
9412 * event-top.h (gdb_setup_readline): Declare.
9413 (gdb_disable_readline): Declare.
9414 * event-top.c: Include "interps.h".
9415 (display_gdb_prompt): Call current_interp_display_prompt_p.
9416 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9417 gdb_stdlog, and gdb_stdtarg.
9418 (_initialize_event_loop): Don't call gdb_setup_readline.
9419 * cli-out.c (cli_out_set_stream): New function.
9420 * cli-out.h (cli_out_set_stream): Declare.
9421
9422 2003-02-06 Mark Kettenis <kettenis@gnu.org>
9423
9424 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9425 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9426 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9427 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9428 config/i386/i386v42mp.mt: Removed.
9429
9430 2003-02-05 Mark Kettenis <kettenis@gnu.org>
9431
9432 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9433 GDB_OSABI_SOLARIS.
9434
9435 2003-02-05 Michael Chastain <mec@shout.net>
9436
9437 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9438 2.12.1 and earlier versions.
9439
9440 2003-02-05 Andrew Cagney <ac131313@redhat.com>
9441
9442 Remove orphaned hosts, targets and files.
9443 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9444 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9445 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9446 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9447 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9448 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9449 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9450 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9451 * config/sparc/tm-sp64sim.h: Delete.
9452 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9453 hosts.
9454 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9455 mips*-dec-mach3* targets.
9456
9457 2003-02-04 Michael Chastain <mec@shout.net>
9458
9459 * NEWS: Fix typo: sepcifying -> specifying.
9460
9461 2003-02-04 Michael Chastain <mec@shout.net>
9462
9463 * dwarfread.c: Add documentation on the state of dwarf-1,
9464 looking towards obsoletion.
9465
9466 2003-02-03 Michael Chastain <mec@shout.net>
9467
9468 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9469 gdb/testsuite/gdb.c++/pr-1023.exp.
9470
9471 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9472
9473 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9474 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9475
9476 * utils.c (init_page_info): Delete reference to MPW in comments.
9477 * main.c (captured_main): Delete #ifdef MPW.
9478
9479 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9480
9481 * NEWS: Note that the m32r-*-elf* is obsolete.
9482 * monitor.c (monitor_expect): Obsolete reference to m32r.
9483 * configure.tgt: Mark m32r-*-elf* as obsolete.
9484 * MAINTAINERS: Mark m32k as obsolete.
9485 * m32r-rom.c: Obsolete file.
9486 * config/m32r/m32r.mt: Obsolete file.
9487 * config/m32r/tm-m32r.h: Obsolete file.
9488 * m32r-stub.c: Obsolete file.
9489 * m32r-tdep.c: Obsolete file.
9490
9491 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9492
9493 * NEWS: Mention that the z8k-zilog-none is obsolete.
9494 * MAINTAINERS: Mark z8k as obsolete.
9495 * configure.tgt: Obsolete the z8k-*-coff* target.
9496 * config/z8k/z8k.mt: Obsolete file.
9497 * config/z8k/tm-z8k.h: Obsolete file.
9498 * z8k-tdep.c: Obsolete file.
9499
9500 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9501
9502 * NEWS: Mention that the mn10200-elf is obsolete.
9503 * configure.tgt: Obsolete mn10200-*-* target.
9504 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9505 mention that the mn10200 is obsolete.
9506 * breakpoint.h: Ditto.
9507 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9508 * config/mn10200/mn10200.mt: Obsolete file.
9509 * config/mn10200/tm-mn10200.h: Obsolete file.
9510 * mn10200-tdep.c: Obsolete file.
9511
9512 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9513
9514 * MAINTAINERS: Mark h8500 as obsolete.
9515 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9516 * findvar.c (value_from_register): Ditto.
9517 * h8500-tdep.c: Mark file as obsolete.
9518 * config/h8500/h8500.mt: Ditto.
9519 * config/h8500/tm-h8500.h: Ditto.
9520 * NEWS: Mention that h8500 is obsolete.
9521
9522 2003-02-04 David Carlton <carlton@math.stanford.edu>
9523
9524 * objfiles.c (allocate_objfile): Always set name. Add comment at
9525 start of function.
9526 * jv-lang.c (get_dynamics_objfile): Add comment.
9527
9528 2003-02-04 David Carlton <carlton@math.stanford.edu>
9529
9530 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9531 * printcmd.c (build_address_symbolic): Replace uses of
9532 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9533 SYMBOL_NAME, and asm_demangle.
9534 Update copyright.
9535
9536 2003-02-04 David Carlton <carlton@math.stanford.edu>
9537
9538 * linespec.c (decode_compound): Extract code into
9539 lookup_prefix_sym.
9540 (lookup_prefix_sym): New function.
9541
9542 2003-02-04 David Carlton <carlton@math.stanford.edu>
9543
9544 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9545 FLOAT_COERCION_BADNESS.
9546 * gdbtypes.c (rank_one_type): Replace all uses of
9547 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9548
9549 2003-02-04 Jim Blandy <jimb@redhat.com>
9550
9551 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9552 section, let dwarf_macinfo_section point to it, not
9553 dwarf_loc_section.
9554
9555 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9556
9557 Pointed out by Anton Blanchard <anton@samba.org>.
9558 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9559 (ppc_linux_at_sigtramp_return_path): Use it.
9560
9561 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9562
9563 * defs.h (streq): Add prototype.
9564 * utils.c (streq): New function.
9565
9566 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9567 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9568 * mdebugread.c (new_symbol): Likewise.
9569 * stabsread.c (define_symbol): Likewise.
9570 * coffread.c (process_coff_symbol): Likewise.
9571 * dwarfread.c (new_symbol): Likewise.
9572
9573 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9574 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9575 here.
9576 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9577 SYMBOL_INIT_DEMANGLED_NAME.
9578 * objfiles.c: Include "hashtab.h".
9579 (allocate_objfile): Call htab_set_functions_ex for the
9580 demangled_names_hash.
9581 (free_objfile): Call htab_delete for the demangled_names_hash.
9582 * objfiles.h (struct htab): Add declaration.
9583 (struct objfile): Add demangled_names_hash.
9584 * symfile.c: Include "hashtab.h".
9585 (reread_symbols): Call htab_delete for the demangled_names_hash.
9586 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9587 SYMBOL_NAME in the bcache.
9588 * symtab.c: Include "hashtab.h". Update comments.
9589 (create_demangled_names_hash, symbol_set_names): New functions.
9590 (symbol_find_demangled_name): New function, broken out from
9591 symbol_init_demangled_names.
9592 (symbol_init_demangled_names): Use it.
9593 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9594 (SYMBOL_SET_NAMES): New macro.
9595 (symbol_set_names): Add prototype.
9596
9597 2003-02-03 Jim Blandy <jimb@redhat.com>
9598
9599 Use a single, consistent representation for an empty minimal
9600 symbol table in an objfile.
9601 * objfiles.c (terminate_minimal_symbol_table): New function.
9602 (allocate_objfile): Call it.
9603 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9604 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9605 non-NULL.
9606 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9607 objfile has minimal symbols, compare minimal_symbol_count to zero,
9608 instead of comparing msymbols with NULL.
9609 * objfiles.c (have_minimal_symbols): Same.
9610 * solib-sunos.c (solib_add_common_symbols): Call
9611 terminate_minimal_symbol_table.
9612 * symfile.c (reread_symbols): Same.
9613
9614 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9615
9616 * s390-tdep.c (s390_address_class_type_flags)
9617 (s390_address_class_type_flags_to_name)
9618 (s390_address_class_name_to_type_flags): New functions.
9619 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9620 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9621
9622 2003-02-03 Michael Snyder <msnyder@redhat.com>
9623
9624 * arm-tdep.c: Fix spell-o in comment.
9625
9626 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9627
9628 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9629 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9630 error messages to contain BFD filename.
9631
9632 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9633
9634 Fix PR gdb/742 gdb/743 gdb/877
9635 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9636 (do_mixed_source_and_assembly): Use
9637 make_cleanup_ui_out_tuple_begin_end and
9638 make_cleanup_ui_out_tuple_begin_end.
9639 (do_mixed_source_and_assembly): Ditto.
9640 * thread.c (do_captured_list_thread_ids): Ditto.
9641 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9642 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9643 ui_out_tuple_end): Delete prototypes.
9644 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9645 ui_out_list_end, ui_out_tuple_end): Delete.
9646
9647 From Kevin Buettner <kevinb@redhat.com>:
9648 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9649 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9650 (do_cleanup_table_end): New functions.
9651 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9652 Use cleanups to invoke_ui_out_tuple_end().
9653 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9654 * cli/cli-setshow.c (cmd_show_list): Use
9655 make_cleanup_ui_out_tuple_begin_end.
9656
9657 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9658
9659 * frame.c (frame_unwind_register): New function.
9660 (frame_unwind_unsigned_register): Use.
9661 (frame_unwind_signed_register): Use.
9662 (frame_read_register): New function.
9663 * frame.h (frame_unwind_register): Declare.
9664 (frame_read_register): Declare.
9665
9666 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9667 and frame_unwind_register instead of read_memory, write_register
9668 and deprecated_write_register_bytes.
9669
9670 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9671
9672 * frame.h: Note that namelen can be negative.
9673 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9674 NAME's length.
9675
9676 * NEWS: Mention that the d10v's `regs' command is deprecated.
9677 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9678 (d10v_print_registers_info): New function.
9679 (show_regs): Call d10v_print_registers_info.
9680 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9681
9682 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9683
9684 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9685 lost in the previous patch.
9686
9687 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9688
9689 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9690 * stack.c (print_frame_info_base): Output complete FRAME tuple
9691 for synthesized frames.
9692
9693 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9694
9695 * mips-nat.c (zerobuf): Delete.
9696 (fetch_inferior_registers): Alloc local zerobuf.
9697 (fetch_core_registers): Alloc local zerobuf.
9698 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9699 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9700 * thread-db.c (thread_db_store_registers): Ditto.
9701 * sh-tdep.c (sh_do_register): Ditto.
9702 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9703 * remote-sim.c (gdbsim_store_register): Ditto.
9704 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9705 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9706 * monitor.c (monitor_supply_register): Ditto.
9707 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9708 * mips-nat.c (fetch_inferior_registers): Ditto.
9709 * m68klinux-nat.c (fetch_register): Ditto.
9710 * lynx-nat.c (fetch_inferior_registers): Ditto.
9711 (fetch_inferior_registers): Ditto.
9712 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9713 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9714 (hpux_thread_store_registers): Ditto.
9715 * hppah-nat.c (fetch_register): Ditto.
9716 * hppab-nat.c (fetch_register): Ditto.
9717 * hppa-tdep.c (pa_register_look_aside): Ditto.
9718 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9719 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9720
9721 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9722
9723 * gdbarch.sh: Explictly specify all method levels. When a
9724 variable with an empty level, provide a non-multi-arch default.
9725 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9726 * gdbarch.h: Re-generate.
9727 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9728 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9729
9730 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9731
9732 * defs.h (host_pointer_to_address): Delete declaration.
9733 (address_to_host_pointer): Delete declaration.
9734 * utils.c (host_pointer_to_address): Delete function.
9735 (address_to_host_pointer): Delete function.
9736 * procfs.c (procfs_address_to_host_pointer): New function.
9737 * procfs.c (proc_set_watchpoint): Use.
9738 (procfs_can_use_hw_breakpoint): Update comments.
9739 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9740 (som_solib_add): Use.
9741 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9742 * hppa-tdep.c (unwind_command): Use.
9743
9744 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9745
9746 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9747 strlen d_name.
9748
9749 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9750 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9751 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9752 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9753 (define_symbol): Update.
9754 * symfile.c (generic_load): Remove references to nindy.
9755 * symtab.c: Remove references to nindy.
9756
9757 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9758
9759 * infcmd.c (print_float_info): Delete code conditional on
9760 FLOAT_INFO.
9761 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9762 * config/m68k/nm-apollo68b.h: Ditto.
9763 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9764 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9765 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9766
9767 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9768
9769 * config/i386/tm-i386os9k.h: Removed.
9770
9771 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9772 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9773 they're identical to i[3456]86-*-sysv* now.
9774 * config/i386/i386v32.mh: Removed.
9775 * config/i386/xm-i386v32.h: Removed.
9776 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9777
9778 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9779
9780 * config/i386/i386dgux.mh: Removed.
9781 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9782
9783 * configure.in: Fix typo.
9784 * configure: Regenerated.
9785
9786 2003-01-31 David Carlton <carlton@math.stanford.edu>
9787
9788 * dwarf2read.c (dwarf2_locate_sections): Set
9789 dwarf_ranges_section.
9790
9791 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9792
9793 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9794 * utils.c: Update comments documenting legitimate uses of PTR.
9795
9796 * utils.c: Re-indent.
9797
9798 * config/djgpp/fnchange.lst: Delete nindy files.
9799 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9800 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9801 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9802 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9803 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9804 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9805 * Makefile.in (init.c): Remove nindy references.
9806 (saber_gdb): Delete rule.
9807 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9808 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9809 and a68v-nat.c.
9810 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9811 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9812 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9813 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9814 nindy-share/stop.h.
9815 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9816 * saber.suppress: Delete file.
9817
9818 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
9819
9820 * dbxread.c (stabs_data): New static variable.
9821 (fill_symbuf): Support an in-memory buffer for stabs data.
9822 (stabs_seek): New function.
9823 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9824 (read_ofile_symtab): Use stabs_seek.
9825 (elfstab_build_psymtabs): Take an asection* instead of
9826 an offset and size. Relocate the stabs data if necessary.
9827 Save the section* for dbx_psymtab_to_symtab.
9828 * dwarf2read.c: Add section variables for each debug section.
9829 (dwarf2_locate_sections): Fill them in.
9830 (dwarf2_read_section): Take an asection* argument.
9831 Relocate the section contents if necessary.
9832 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9833 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9834 it to dwarf2_read_section.
9835 (dwarf2_build_frame_info): Update callers.
9836 * elfread.c (elf_symfile_read): Update call to
9837 elfstab_build_psymtabs.
9838 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9839 (DBX_STAB_SECTION): New macro.
9840 * stabsread.h (elfstab_build_psymtabs): Update prototype.
9841 * symfile.c (symfile_dummy_outputs): New function.
9842 (symfile_relocate_debug_section): New function.
9843 * symfile.h (symfile_relocate_debug_section): Add prototype.
9844
9845 2003-01-31 Richard Henderson <rth@redhat.com>
9846
9847 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9848 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9849 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9850 * alpha-tdep.c (alpha_register_name): Add "unique".
9851 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9852 (ALPHA_UNIQUE_REGNUM): New.
9853 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9854
9855 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9856
9857 * README: Remove reference to Ericsson 1800 monitor.
9858 * Makefile.in (remote-es.o): Delete rule.
9859 (ALLDEPFILES): Delete remote-es.c.
9860 * remote-es.c: Delete file.
9861 * config/m68k/es1800.mt: Delete file.
9862 * config/djgpp/fnchange.lst: Update.
9863 * configure.tgt: Delete m68*-ericsson-* target.
9864
9865 2003-01-31 Adam Fedor <fedor@gnu.org>
9866
9867 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9868 Remove duplicate/shadowing variable of same name.
9869
9870 2003-01-30 Jim Blandy <jimb@redhat.com>
9871
9872 * symfile.c (find_separate_debug_file): Assert that the objfile's
9873 directory name we compute ends with a slash, and then assume that
9874 that's so everywhere we use it.
9875
9876 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
9877
9878 * valops.c (value_assign): Flush frame cache after stores to memory
9879 also.
9880
9881 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9882
9883 * Makefile.in (mon960-rom.o): Delete rule.
9884 * mon960-rom.c: Delete file.
9885
9886 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9887
9888 * d10v-tdep.c: Include "frame-unwind.h".
9889 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9890 list.
9891 (next_addr, uses_frame): Delete.
9892 (struct d10v_unwind_cache): Define.
9893 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9894 Use info instead of next_addr and uses_frame globals.
9895 (d10v_frame_init_saved_regs): Delete function.
9896 (d10v_init_extra_frame_info): Delete function.
9897 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9898 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9899 init_frame_pc or frame_saved_pc.
9900 (d10v_pop_frame): Delete function.
9901 (do_d10v_pop_frame): Delete function.
9902 (d10v_frame_chain): Delete function.
9903 (d10v_frame_chain_valid): Delete function.
9904 (d10v_frame_pc_unwind): New function.
9905 (d10v_frame_id_unwind): New function.
9906 (saved_regs_unwinder): New function.
9907 (d10v_frame_register_unwind): New function.
9908 (d10v_frame_pop): New function.
9909 (d10v_frame_unwind): New variable.
9910 (d10v_frame_p): New function.
9911 (d10v_frame_saved_pc): Delete function.
9912 * Makefile.in (d10v-tdep.o): Update dependencies.
9913
9914 2003-01-30 J. Brobecker <brobecker@gnat.com>
9915
9916 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9917 causing some regressions due to a change in the default value
9918 for this macro.
9919
9920 2003-01-29 Richard Henderson <rth@redhat.com>
9921 Elena Zannoni <ezannoni@redhat.com>
9922 Daniel Jacobowitz <drow@mvista.com>
9923
9924 Fix PR gdb/961.
9925 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
9926 variables.
9927 (RANGES_SECTION): New.
9928 (dwarf_ranges_buffer): New variable.
9929 (struct comp_unit_head): Add member "die".
9930 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9931 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9932 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9933 (dwarf2_locate_sections): Likewise.
9934 (dwarf2_build_psymtabs): Read .debug_ranges.
9935 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9936 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9937 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9938 Look for DW_AT_ranges and return the bounding box.
9939
9940 2003-01-29 Brian Ford <ford@vss.fsi.com>
9941
9942 * win32-nat.c (cygwin_pid): Removed as unused.
9943 (child_attach): Try fall back to Cygwin pid.
9944
9945 2003-01-29 Jim Blandy <jimb@redhat.com>
9946
9947 * objfiles.h (struct objfile): Doc fix.
9948
9949 2003-01-29 Andrew Cagney <ac131313@redhat.com>
9950
9951 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9952 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9953 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9954 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9955 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9956 (FRAME_SAVED_PC): Change to a function with predicate.
9957 * gdbarch.h, gdbarch.c: Re-generate.
9958
9959 2003-01-28 Andrew Cagney <ac131313@redhat.com>
9960
9961 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9962
9963 * complaints.c (complain): Delete function.
9964 * complaints.h (struct deprecated_complaint): Delete definition.
9965 (complain): Delete declaration.
9966
9967 2003-01-28 Kevin Buettner <kevinb@redhat.com>
9968
9969 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9970 dummy frames.
9971
9972 2003-01-27 Andrew Cagney <ac131313@redhat.com>
9973
9974 * sentinel-frame.h, sentinel-frame.c: New files.
9975 * Makefile.in (frame.o): Update dependencies.
9976 (SFILES): Add sentinel-frame.c.
9977 (sentinel_frame_h): Define.
9978 (COMMON_OBS): Add sentinel-frame.o.
9979 (sentinel-frame.o): Specify dependencies.
9980 * frame.c: Include "sentinel-frame.h".
9981 (frame_register_unwind): Rewrite assuming that there is always a a
9982 ->next frame.
9983 (frame_register, generic_unwind_get_saved_register): Ditto.
9984 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9985 (create_sentinel_frame, unwind_to_current_frame): New functions.
9986 (get_current_frame): Rewrite using create_sentinel_frame and
9987 unwind_to_current_frame. When possible, always create a frame.
9988 (create_new_frame): Set next to the sentinel frame.
9989 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9990 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9991 ID cache when necessary.
9992 (frame_saved_regs_id_unwind): Use frame_relative_level.
9993 (deprecated_generic_get_saved_register): Use frame_relative_level,
9994 get_frame_saved_regs, get_frame_pc, get_frame_base and
9995 get_next_frame.
9996 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9997 frame_register.
9998
9999 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10000
10001 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10002
10003 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10004
10005 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10006 (maintenance_set_profile_cmd): Use error () instead of warning ().
10007
10008 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10009
10010 * configure.in: Check that -pg works if using --enable-profiling.
10011 Check for monstartup and _mcleanup regardless of --enable-profiling.
10012 * maint.c: Check for monstartup and _mcleanup before using them.
10013 * config.in: Regenerated.
10014 * configure: Regenerated.
10015
10016 2003-01-24 Nick Clifton <nickc@redhat.com>
10017
10018 * Add sh2e support:
10019
10020 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10021
10022 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10023 (sh2e_show_regs): New.
10024 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10025 * config/sh/tm-sh.h: Added sh2e to comments.
10026
10027 2003-01-23 Jim Blandy <jimb@redhat.com>
10028
10029 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10030 symbols found)" message here; we haven't checked for a separate
10031 debug info file yet, so we don't know yet.
10032 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10033 we've looked everywhere. Also, there's no need to print a special
10034 message when we're loading the separate debug info file: the one
10035 symbol_file_add prints is fine.
10036
10037 2003-01-23 Alexander Larsson <alexl@redhat.com>
10038 Jim Blandy <jimb@redhat.com>
10039
10040 Add support for executables whose debug info has been separated
10041 out into a separate file, leaving only a link behind.
10042 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10043 and separate_debug_objfile_backlink.
10044 (put_objfile_before): New declaration.
10045 * symfile.c: #include "filenames.h".
10046 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10047 debug info in a separate file, read that, too. Save the addrs
10048 argument, so we can use it again to read the separated debug info;
10049 syms_from_objfile modifies the table we pass it.
10050 (reread_symbols): After re-reading an objfile, call
10051 reread_separate_symbols to refresh its separate debug info
10052 objfile, if it has one.
10053 (reread_separate_symbols, find_separate_debug_file,
10054 get_debug_link_info, separate_debug_file_exists): New functions.
10055 (debug_file_directory): New global var.
10056 (_initialize_symfile): Initialize debug_file_directory, and
10057 provide the new `set debug-file-directory' command to let the user
10058 change it.
10059 * objfiles.c (free_objfile): If this objfile has its debug info in
10060 a separate objfile, free that one too. If this is itself a
10061 separate debug info objfile, clear our parent's backlink.
10062 (put_objfile_before): New function.
10063 * utils.c (gnu_debuglink_crc32): New function.
10064 * defs.h (gnu_debuglink_crc32): New declaration.
10065 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10066 * configure.in: Handle --with-separate-debug-dir config option.
10067 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10068 * acconfig.h (DEBUGDIR): New macro.
10069 * configure, aclocal.m4, config.in: Regenerated.
10070
10071 2003-01-22 Jim Blandy <jimb@redhat.com>
10072
10073 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10074 like the old symbol_file_add, but taking new arguments: you can
10075 now pass in either a `struct section_addr_info' list to say where
10076 each section is loaded, or a `struct section_offsets' table. Pass
10077 these new arguments through to syms_from_objfile as appropriate.
10078 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10079 with the appropriate quiescent values for the new arguments.
10080
10081 * symfile.c: #include "gdb_assert.h".
10082 (syms_from_objfile): Add the ability to pass in a section offset
10083 table directly, as an alternative to the section_addr_info table.
10084 Document arguments better.
10085 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10086 * symfile.h (syms_from_objfile): Update declaration.
10087 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10088 syms_from_objfile.
10089 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10090
10091 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
10092
10093 Original patch by Tom Tromey <tromey@cygnus.com> and
10094 Jason Molenda <jmolenda@apple.com>.
10095 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10096 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10097 * NEWS: Mention profiling.
10098 * configure.in (--enable-gdbtk): Fix typo.
10099 (--enable-profiling): New. Set PROFILE_CFLAGS.
10100 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10101 Fill in function.
10102 (profiling_state): New variable.
10103 (mcleanup_wrapper): New function.
10104 (_initialize_maint): Remove NOTYET, fix call to
10105 add_setshow_boolean_cmd for "maint set profile".
10106 * configure: Regenerated.
10107
10108 2003-01-21 Martin M. Hunt <hunt@redhat.com>
10109
10110 * Makefile.in (install-gdbtk): Install PNG images too.
10111
10112 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10113
10114 * exec.c (text_start): Delete global variable.
10115 (exec_file_attach): Make text_start local to the function.
10116 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10117 * valops.c (hand_function_call): Delete code that handles
10118 BEFORE_TEXT_END and AFTER_TEXT_END.
10119 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10120 of CALL_DUMMY_LOCATION.
10121 * gdbarch.c: Regenerate.
10122 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10123 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10124 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10125 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10126 (text_end): Delete extern declaration.
10127
10128 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10129
10130 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10131 * blockframe.c (backtrace_below_main): Move to "frame.c".
10132 (frame_chain_valid): Delete check for backtrace_below_main.
10133 (_initialize_blockframe): Delete initialization, move ``set
10134 backtrace-below-main'' command to "frame.c".
10135 (do_flush_frames_sfunc): Delete function.
10136 * frame.c: Include "command.h" and "gdbcmd.h".
10137 (frame_type_from_pc): New function.
10138 (create_new_frame): Use frame_type_from_pc.
10139 (legacy_get_prev_frame): New function.
10140 (get_prev_frame): Rewrite. When an old style frame, call
10141 legacy_get_prev_frame. Otherwize, unwind the PC first.
10142 (_initialize_frame): Add ``set backtrace-below-main'' command.
10143 * Makefile.in (frame.o): Update dependencies.
10144
10145 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10146
10147 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10148 DEPRECATED_REGISTERS_INFO.
10149
10150 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10151
10152 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10153 Maintainers'. Update `Various Maintainers'.
10154
10155 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10156
10157 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10158 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10159 Suppress actual parameters when `-'.
10160 * gdbarch.h, gdbarch.c: Regenerate.
10161
10162 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10163
10164 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10165 code handling dummy frames.
10166
10167 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10168
10169 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10170 (struct frame_unwind): Add field pop.
10171 * frame.h (frame_pop): Declare.
10172 * frame.c (frame_saved_regs_pop): New function.
10173 (trad_frame_unwinder): Add frame_saved_regs_pop.
10174 (frame_pop): New function.
10175 * dummy-frame.c (dummy_frame_pop): New function.
10176 (discard_innermost_dummy): New function.
10177 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10178 (dummy_frame_unwind): Add dummy_frame_pop.
10179 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10180 * valops.c (hand_function_call): Ditto.
10181 * stack.c (return_command): Ditto.
10182
10183 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10184
10185 * cris-tdep.c: Fix function declaration indentation.
10186 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10187 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10188 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10189 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10190 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10191 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10192
10193 2003-01-18 Michael Chastain <mec@shout.net>
10194
10195 * README (Unpacking and Installation -- quick overview):
10196 Warn against ".../gdb-5.3/gdb/configure".
10197
10198 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10199
10200 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10201 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10202 (struct frame_unwind): Declare opaque.
10203 (dummy_frame_p): Declare function.
10204 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10205 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10206 * dummy-frame.c: Include "frame-unwind.h".
10207 (dummy_frame_p): New function.
10208 (dummy_frame_unwind): New variable.
10209 * frame.c: Include "frame-unwind.h".
10210 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10211 to use the new unwind field.
10212 (set_unwind_by_pc): Delete function.
10213 (create_new_frame, get_prev_frame): Set unwind field using
10214 frame_unwind_find_by_pc.
10215 (trad_frame_unwind, trad_frame_unwinder): New variables.
10216 * frame.h (trad_frame_unwind): Declare variable.
10217 (frame_id_unwind_ftype): Delete declaration.
10218 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10219 (struct frame_unwind): Declare opaque.
10220 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10221 register_unwind with a single unwind pointer.
10222 * frame-unwind.h, frame-unwind.c: New files.
10223 * Makefile.in (SFILES): Add frame-unwind.c.
10224 (frame_unwind_h): Define.
10225 (COMMON_OBS): Add frame-unwind.o.
10226 (frame-unwind.o): Specify dependencies.
10227 (frame.o, dummy-frame.o): Update dependencies.
10228
10229 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10230
10231 * ada-valprint.c: Eliminate PTR.
10232 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10233 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10234 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10235 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10236 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10237 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10238 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10239
10240 2003-01-17 Andrew Cagney <ac131313@redhat.com>
10241
10242 * main.c (captured_main): Don't use PTR.
10243 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10244 * gdbtypes.c (lookup_primitive_typename): Ditto.
10245 (lookup_struct_elt_type): Ditto.
10246 * f-valprint.c (info_common_command): Ditto.
10247 (list_all_visible_commons): Ditto.
10248 * jv-typeprint.c (java_type_print_base): Ditto.
10249
10250 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10251 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10252 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10253 i386-interix-nat.c and i386-interix-tdep.c. Rename
10254 m68klinux-nat.c and m68klinux-tdep.c. Rename
10255 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10256 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10257 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10258 * main.c (captured_main): Use xfree, not free.
10259
10260 2003-01-16 Andrew Cagney <ac131313@redhat.com>
10261
10262 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10263 ID back using a parameter.
10264 * frame.c (frame_id_unwind): Update call.
10265 (frame_saved_regs_id_unwind): Update.
10266 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10267 * dummy-frame.h (struct frame_id): Add opaque declaration.
10268 (dummy_frame_id_unwind): Update declaration.
10269
10270 2003-01-15 Andrew Cagney <ac131313@redhat.com>
10271
10272 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10273
10274 2003-01-15 Stephen P. Smith <ischis2@cox.net>
10275
10276 * MAINTAINERS (Stephen P. Smith): Updated email address.
10277
10278 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
10279
10280 Fix PR gdb/898
10281 * breakpoint.c (until_break_command): Add new argument. Use it to
10282 decide whether to stop only at the current frame or not.
10283 * breakpoint.h (until_break_command): Update prototype.
10284 * infcmd.c (until_command): Add new argument to until_break_command
10285 call.
10286 (advance_command): New function.
10287 (_initialize_infcmd): Update help string for 'until' command.
10288 Add new 'advance' command.
10289
10290 2003-01-14 David Carlton <carlton@math.stanford.edu>
10291
10292 * linespec.c (decode_line_1): Normalize comments.
10293 (set_flags): Ditto.
10294 (locate_first_half): Ditto.
10295 (decode_compound): Ditto.
10296 (symtab_from_filename): Ditto.
10297 (decode_all_digits): Ditto.
10298 (decode_dollar): Ditto.
10299 (find_methods): Ditto.
10300 (find_toplevel_char): Ditto.
10301
10302 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10303
10304 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10305 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10306 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10307 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10308 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10309 * language.c, language.h, m32r-tdep.c: Update copyright.
10310 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10311 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10312 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10313 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10314 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10315 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10316
10317 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10318
10319 * stabsread.h (process_later, resolve_cfront_continuation):
10320 Obsolete.
10321 Update copyright years.
10322 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10323 Update copyright year.
10324 * dbxread.c(struct cont_elem): Obsolete.
10325 (process_later, process_now): Obsolete functions.
10326 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10327 Update copyright year.
10328 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10329 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10330 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10331 (parse_partial_symbols): Obsolete cfront support.
10332 * stabsread.c
10333 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10334 macros.
10335 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10336 read_cfront_baseclasses, read_cfront_member_functions,
10337 resolve_cfront_continuation,read_cfront_static_fields,
10338 copy_cfront_struct_fields): Obsolete functions.
10339 (define_symbol, read_one_struct_field): Obsolete cfront support.
10340 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10341 Update Copyright year.
10342
10343 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10344
10345 * stack.c (print_frame_info, print_stack_frame_base_stub,
10346 print_stack_frame_base, show_and_print_stack_frame_stub,
10347 show_and_print_stack_frame, print_only_stack_frame_stub,
10348 print_only_stack_frame): Delete functions.
10349 (print_stack_frame_stub): Call print_frame_info instead of
10350 print_frame_info_base.
10351 (print_frame_info_base): Rename to print_frame_info.
10352 (backtrace_command_1): Call print_frame_info, instead of
10353 print_frame_info_base.
10354 (current_frame_command): Call print_stack_frame, instead of
10355 print_only_stack_frame.
10356 (frame_command): Call print_stack_frame, instead of
10357 show_and_print_stack_frame.
10358 (up_command): Ditto.
10359 (down_command): Ditto.
10360 * frame.h (print_only_stack_frame): Delete prototype.
10361 * infrun.c (normal_stop): Call print_stack_frame, instead of
10362 show_and_print_stack_frame.
10363 * thread.c (info_threads_command): Call print_stack_frame, instead
10364 of print_only_stack_frame.
10365
10366 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10367
10368 * README (Graphical interface to GDB): Update URL. Point at
10369 gdb/links/.
10370
10371 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10372 version match.
10373
10374 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10375
10376 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10377 lines.
10378
10379 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10380
10381 * thread-db.c (attach_thread): Prototype.
10382 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10383 thread information (ti), and valid flags (th_valid, ti_valid).
10384 (attach_thread): Move target_pid_to_str call to after the thread
10385 is added to GDB's list. Initialize the cache.
10386 (thread_get_info_callback, thread_db_map_id2thr)
10387 (thread_db_get_info): New functions.
10388 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10389 (thread_db_store_registers, thread_db_thread_alive)
10390 (thread_db_get_thread_local_address): Use them.
10391 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10392 of calling error() for threads in unknown state.
10393
10394 (clear_lwpid_callback): New function.
10395 (thread_db_resume): Use it to clear the cache.
10396
10397 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10398
10399 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10400 (resume_callback): Remove dead code.
10401
10402 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10403
10404 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10405 predicate.
10406 * gdbarch.h, gdbarch.c: Regenerate.
10407 * stack.c (frame_info): Only initialize the saved registers when
10408 FRAME_INIT_SAVED_REGS_P.
10409 * frame.c (frame_saved_regs_register_unwind): Assert
10410 FRAME_INIT_SAVED_REGS_P.
10411 (deprecated_generic_get_saved_register): Ditto.
10412
10413 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10414
10415 * source.c (openp): Squelch warning about "filename".
10416
10417 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10418
10419 * source.c (openp): If the file does not exist don't necessarily
10420 search the path.
10421
10422 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10423
10424 Fix PR gdb/872.
10425 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10426 (integer_types_same_name_p): New function.
10427 (rank_one_type): Use it.
10428 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10429
10430 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10431
10432 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10433 variables.
10434 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10435 * configure.in: Add --with-sysroot.
10436 * configure: Regenerated.
10437 * main.c (gdb_sysroot): New variable.
10438 (captured_main): Initialize gdb_sysroot.
10439 * defs.h (gdb_sysroot): New extern declaration.
10440 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10441
10442 2003-01-12 Michael Chastain <mec@shout.net>
10443
10444 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10445
10446 2003-01-12 Michael Chastain <mec@shout.net>
10447
10448 * top.c (print_gdb_version): Bump copyright year to 2003.
10449
10450 2003-01-12 David Carlton <carlton@bactrian.org>
10451
10452 * linespec.c (symtab_from_filename): Rename variable 's' to
10453 'file_symtab'.
10454
10455 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10456
10457 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10458 dummy frame.
10459 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10460
10461 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10462
10463 * d10v-tdep.c: Include "gdb_assert.h".
10464 (d10v_store_return_value): Rewrite to match current interface.
10465 (d10v_extract_struct_value_address): Ditto.
10466 (d10v_extract_return_value): Ditto.
10467 (d10v_gdbarch_init): Set store_restore_value,
10468 extract_struct_value_address and extract_return_value.
10469
10470 2003-01-12 J. Brobecker <brobecker@gnat.com>
10471
10472 * hpread.c (set_namestring): New procedure replacing the
10473 SET_NAMESTRING macro.
10474 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10475 by calls to set_namestring.
10476
10477 2003-01-11 J. Brobecker <brobecker@gnat.com>
10478
10479 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10480 a compilation warning.
10481 (hpread_process_one_debug_symbol): Likewise.
10482
10483 2003-01-10 David Carlton <carlton@math.stanford.edu>
10484
10485 * linespec.c (decode_line_1): Rename variable 's' to
10486 'file_symtab'.
10487 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10488 (decode_dollar): Ditto.
10489 (decode_variable): Ditto.
10490 (symbol_found): Ditto.
10491
10492 2003-01-09 Michael Chastain <mec@shout.net>
10493
10494 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10495
10496 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10497
10498 * win32-nat.c (set_process_privilege): New function.
10499 (child_attach): Call set_process_privilege() to enable the
10500 SE_DEBUG_NAME user privilege if available in process token.
10501
10502 2003-01-10 J. Brobecker <brobecker@gnat.com>
10503
10504 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10505 compilation error in the previous revision.
10506
10507 2003-01-09 David Carlton <carlton@math.stanford.edu>
10508
10509 * linespec.c: Update copyright.
10510
10511 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10512
10513 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10514 than inferior_ptid.
10515 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10516
10517 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10518
10519 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10520 Update comments.
10521 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10522 (frame_saved_regs_zalloc): Update.
10523 (frame_saved_regs_register_unwind): Update.
10524 (create_new_frame): Update.
10525 (get_prev_frame): Update.
10526 (frame_extra_info_zalloc): Update.
10527 (deprecated_get_frame_saved_regs): Update.
10528 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10529 * cris-tdep.c: Update comment.
10530
10531 * somsolib.h: Fix function indentation.
10532 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10533 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10534 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10535 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10536 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10537
10538 * infrun.c (follow_fork): Use ISO C definition.
10539 * expprint.c (print_subexp): Use xfree instead of free.
10540 * charset.c: Include "gdb_string.h" instead of <string.h>.
10541 (register_iconv_charsets): Use ISO C definition.
10542 (host_charset, target_charset): Ditto.
10543 * Makefile.in (charset.o): Update dependencies.
10544 (mi-cmd-env.o): Update dependencies.
10545
10546 2003-01-08 Andrew Cagney <cagney@redhat.com>
10547
10548 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10549 get_frame_base.
10550
10551 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10552
10553 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10554 build directories. Save edited gdb output in Mbuild.log. If a
10555 build fails, remove any final GDB executable.
10556
10557 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10558
10559 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10560 replacing hex constants with function names and stripping leading
10561 file name directory prefixes.
10562
10563 2003-01-08 Andrew Cagney <cagney@redhat.com>
10564
10565 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10566 get_frame_base.
10567
10568 2003-01-08 David Carlton <carlton@math.stanford.edu>
10569
10570 * linespec.c (decode_line_1): Move code into decode_variable.
10571 (decode_variable): New function.
10572
10573 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10574
10575 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10576
10577 2003-01-08 Andrew Cagney <cagney@redhat.com>
10578
10579 * cris-tdep.c (cris_frame_init_saved_regs): Use
10580 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10581 saved_regs buffer.
10582 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10583 (sh64_nofp_frame_init_saved_regs): Ditto.
10584 (sh_fp_frame_init_saved_regs): Ditto.
10585 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10586 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10587 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10588 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10589
10590 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10591
10592 * minsyms.c (lookup_minimal_symbol): Update comment.
10593 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10594 (lookup_minimal_symbol_solib_trampoline): Likewise.
10595
10596 2003-01-08 Andrew Cagney <cagney@redhat.com>
10597
10598 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10599 frame_relative_level.
10600
10601 * alpha-tdep.c: Use get_frame_extra_info.
10602 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10603 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10604 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10605 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10606
10607 * alpha-tdep.c: Use get_next_frame.
10608 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10609 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10610 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10611 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10612 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10613 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10614 * xstormy16-tdep.c: Ditto.
10615
10616 2003-01-07 Andrew Cagney <cagney@redhat.com>
10617
10618 * alpha-tdep.c: Use get_frame_base.
10619 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10620 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10621 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10622 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10623 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10624 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10625 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10626 * config/sparc/tm-sparc.h: Ditto.
10627
10628 2003-01-07 Andrew Cagney <cagney@redhat.com>
10629
10630 * frame.c (deprecated_get_frame_context): New function.
10631 (deprecated_set_frame_context): New function.
10632 * frame.h (deprecated_get_frame_context): Declare.
10633 (deprecated_set_frame_context): Declare.
10634 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10635 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10636
10637 2003-01-07 Andrew Cagney <cagney@redhat.com>
10638
10639 * frame.c (deprecated_set_frame_next_hack): New function.
10640 (deprecated_set_frame_prev_hack): New function.
10641 * frame.h (deprecated_set_frame_next_hack): Declare.
10642 (deprecated_set_frame_prev_hack): Declare.
10643 * mcore-tdep.c (analyze_dummy_frame): Use
10644 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10645 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10646
10647 2003-01-07 David Carlton <carlton@math.stanford.edu>
10648
10649 * linespec.c (decode_line_1): Move code into decode_dollar.
10650 (decode_dollar): New function.
10651
10652 2003-01-07 Andrew Cagney <cagney@redhat.com>
10653
10654 * arm-tdep.c (arm_init_extra_frame_info): Use
10655 deprecated_update_frame_base_hack.
10656 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10657 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10658 (fix_frame_pointer): Ditto.
10659 (mn10300_analyze_prologue): Ditto.
10660
10661 2003-01-07 Andrew Cagney <cagney@redhat.com>
10662
10663 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10664 extra_info using frame_extra_info_zalloc.
10665 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10666 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10667 (sh64_init_extra_frame_info): Ditto.
10668 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10669 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10670 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10671 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10672 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10673 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10674 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10675 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10676 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10677 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10678 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10679 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10680
10681 * mn10300-tdep.c (analyze_dummy_frame): Use
10682 deprecated_set_frame_extra_info_hack.
10683 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10684
10685 2003-01-07 J. Brobecker <brobecker@gnat.com>
10686
10687 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10688 class is not scText. These do not define "real" procedures.
10689 (parse_partial_symbols): Likewise.
10690
10691 2003-01-06 Michael Snyder <msnyder@redhat.com>
10692
10693 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10694
10695 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10696
10697 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10698 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10699 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10700 deprecated_frame_xmalloc_with_cleanup.
10701 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10702 deprecated_frame_xmalloc.
10703 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10704 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10705
10706 2003-01-06 Andrew Cagney <cagney@redhat.com>
10707
10708 * x86-64-linux-tdep.c: Include "osabi.h".
10709 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10710
10711 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10712
10713 2003-01-06 Andrew Cagney <cagney@redhat.com>
10714
10715 * MAINTAINERS (Target Instruction Set Architectures): Update
10716 arm-elf. Can be built with -Werror, has been multiarched.
10717
10718 * value.h (unpack_long): Make buffer parameter constant.
10719 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10720 * scm-lang.h (scm_parse): Ditto.
10721 * defs.h (extract_typed_address, extract_address): Ditto.
10722 (extract_long_unsigned_integer): Ditto.
10723 * inferior.h (unsigned_pointer_to_address): Ditto.
10724 (signed_pointer_to_address): Ditto.
10725 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10726 * gdbarch.h, gdbarch.c: Regenerate.
10727 * findvar.c (extract_long_unsigned_integer): Update.
10728 (extract_address): Update.
10729 (extract_typed_address): Update.
10730 (unsigned_pointer_to_address): Update.
10731 * values.c (unpack_long): Update.
10732 (unpack_double): Update.
10733 (unpack_pointer): Update.
10734 (unpack_field_as_long): Update.
10735 * d10v-tdep.c (d10v_pointer_to_address): Update.
10736 * avr-tdep.c (avr_pointer_to_address): Update.
10737 * scm-lang.c (scm_unpack): Update.
10738 * findvar.c (signed_pointer_to_address): Update.
10739
10740 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10741
10742 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10743 since it is in i386-tdep.c.
10744
10745 2003-01-06 J. Brobecker <brobecker@gnat.com>
10746
10747 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10748 failure introduced in the previous change.
10749
10750 2003-01-05 Michael Chastain <mec@shout.net>
10751
10752 * README: Remove references to deleted remote-*.c files:
10753 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10754 remote-nrom.c, remote-os9k.c, remote-udi.c.
10755
10756 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10757
10758 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10759 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10760 i386_get_longjmp_target.
10761
10762 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10763
10764 * arm-tdep.c (prologue_cache): Change to a pointer.
10765 (_initialize_arm_tdep): Allocate prologue_cache.
10766 (check_prologue_cache): Update.
10767 (save_prologue_cache): Update.
10768 (arm_gdbarch_init): Update.
10769
10770 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10771
10772 * stabsread.c (update_method_name_from_physname): Call complaint()
10773 instead of error.
10774
10775 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10776
10777 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10778 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10779 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10780
10781 * blockframe.c: Include "gdbcmd.h" and "command.h".
10782 (backtrace_below_main): New variable.
10783 (file_frame_chain_valid, func_frame_chain_valid)
10784 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10785 (generic_func_frame_chain_valid): Remove functions.
10786 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10787 (_initialize_blockframe): New function.
10788 * Makefile.in (blockframe.o): Update dependencies.
10789 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10790 comment. Call frame_chain_valid ().
10791 * frame.h: Remove old prototypes. Add prototype for
10792 frame_chain_valid and update comments to match.
10793 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10794 Remove old comment.
10795 * gdbarch.h: Regenerated.
10796 * gdbarch.c: Regenerated.
10797
10798 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10799 set_gdbarch_frame_chain_valid.
10800 * avr-tdep.c (avr_gdbarch_init): Likewise.
10801 * cris-tdep.c (cris_gdbarch_init): Likewise.
10802 * frv-tdep.c (frv_gdbarch_init): Likewise.
10803 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10804 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10805 (i386_nw_init_abi): Likewise.
10806 (i386_gdbarch_init): Likewise.
10807 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10808 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10809 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10810 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10811 * mips-tdep.c (mips_gdbarch_init): Likewise.
10812 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10813 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10814 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10815 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10816 * s390-tdep.c (s390_gdbarch_init): Likewise.
10817 * sh-tdep.c (sh_gdbarch_init): Likewise.
10818 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10819 * v850-tdep.c (v850_gdbarch_init): Likewise.
10820 * vax-tdep.c (vax_gdbarch_init): Likewise.
10821 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10822
10823 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10824 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10825 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10826 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10827 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10828 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10829 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10830 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10831
10832 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10833
10834 * Makefile.in (acconfig_h): Remove incorrect macro.
10835 (config_h): Define.
10836 (osabi.o): Update dependencies.
10837 * configure.tgt: Set gdb_osabi based on target triplet.
10838 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10839 * configure: Regenerated.
10840 * config.in: Regenerated.
10841 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10842 (GDB_OSABI_DEFAULT): Define if not already defined.
10843 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10844 (set_osabi_string): New variables.
10845 (gdbarch_register_osabi): Add new OS ABI to
10846 gdb_osabi_available_names.
10847 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10848 (set_osabi, show_osabi): New functions.
10849 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10850
10851 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10852
10853 * arch-utils.c (gdbarch_info_init): Set osabi to
10854 GDB_OSABI_UNINITIALIZED.
10855 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10856 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10857 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10858 * gdbarch.c: Regenerated.
10859 * gdbarch.h: Regenerated.
10860 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10861 there's no BFD.
10862 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10863 * osabi.h (enum gdb_osabi): Move to defs.h.
10864 (gdbarch_init_osabi): Update prototype.
10865 * defs.h (enum gdb_osabi): Moved here.
10866 * Makefile.in: Update dependencies.
10867
10868 * alpha-tdep.h: Don't include "osabi.h".
10869 (struct gdbarch_tdep): Remove osabi member.
10870 * alpha-tdep.c: Include "osabi.h".
10871 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10872 iterate over arches. Update call to gdbarch_init_osabi.
10873 (alpha_dump_tdep): Don't dump osabi.
10874 * alpha-linux-tdep.c: Include "osabi.h".
10875 * alpha-osf1-tdep.c: Include "osabi.h".
10876 * alphafbsd-tdep.c: Include "osabi.h".
10877 * alphanbsd-tdep.c: Include "osabi.h".
10878
10879 * arm-tdep.h: Don't include "osabi.h".
10880 (struct gdbarch_tdep): Remove osabi member.
10881 * arm-tdep.c: Include "osabi.h".
10882 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10883 iterate over arches. Update call to gdbarch_init_osabi.
10884 (arm_dump_tdep): Don't dump osabi.
10885 * arm-linux-tdep.c: Include "osabi.h".
10886 * armnbsd-tdep.c: Include "osabi.h".
10887
10888 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10889 Update call to gdbarch_init_osabi.
10890
10891 * i386-tdep.h: Don't include "osabi.h".
10892 (struct gdbarch_tdep): Remove osabi member.
10893 * i386-tdep.c: Include "osabi.h".
10894 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10895 iterate over arches. Update call to gdbarch_init_osabi.
10896 (i386_dump_tdep): Don't dump osabi.
10897 * i386-linux-tdep.c: Include "osabi.h".
10898 * i386-sol2-tdep.c: Include "osabi.h".
10899 * i386bsd-tdep.c: Include "osabi.h".
10900 * i386gnu-tdep.c: Include "osabi.h".
10901 * i386ly-tdep.c: Include "osabi.h".
10902 * i386nbsd-tdep.c: Include "osabi.h".
10903 * i386obsd-tdep.c: Include "osabi.h".
10904
10905 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10906 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10907 check osabi when iterating over arches. Update call to
10908 gdbarch_init_osabi.
10909 (mips_dump_tdep): Don't dump osabi.
10910
10911 * ns32k-tdep.h: Don't include "osabi.h".
10912 (struct gdbarch_tdep): Remove.
10913 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10914 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10915 allocate tdep. Update call to gdbarch_init_osabi.
10916 (ns32k_dump_tdep): Remove.
10917 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10918 * ns32knbsd-tdep.c: Include "osabi.h".
10919
10920 * ppc-tdep.h: Don't include "osabi.h".
10921 (struct gdbarch_tdep): Remove osabi member.
10922 * rs6000-tdep.c: Include "osabi.h".
10923 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10924 osabi when iterating over arches. Update call to
10925 gdbarch_init_osabi.
10926 (rs6000_dump_tdep): Don't dump osabi.
10927 * ppc-linux-tdep.c: Include "osabi.h".
10928 * ppcnbsd-tdep.c: Include "osabi.h".
10929
10930 * sh-tdep.h: Don't include "osabi.h".
10931 (struct gdbarch_tdep): Remove osabi member.
10932 * sh-tdep.c: Include "osabi.h".
10933 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10934 iterate over arches. Update call to gdbarch_init_osabi.
10935 (sh_dump_tdep): Don't dump osabi.
10936 * shnbsd-tdep.c: Include "osabi.h".
10937
10938 * sparc-tdep.c: Include "osabi.h".
10939 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10940 iterate over arches. Update call to gdbarch_init_osabi.
10941 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10942 tdep structure.
10943
10944 * vax-tdep.h: Don't include "osabi.h".
10945 (struct gdbarch_tdep): Remove.
10946 * vax-tdep.c: Include "osabi.h".
10947 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10948 iterate over arches. Don't allocate tdep. Update call
10949 to gdbarch_init_osabi.
10950 (vax_dump_tdep): Remove.
10951 (_initialize_vax_tdep): Update call to gdbarch_register.
10952
10953 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10954
10955 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10956 entirely.
10957 (breakpoint_re_set_one): Don't fetch the value for a disabled
10958 watchpoint.
10959
10960 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10961
10962 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10963 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10964 (COERCE_FLOAT_TO_DOUBLE): Remove.
10965 * gdbarch.c: Regenerate.
10966 * gdbarch.h: Regenerate.
10967 * Makefile.in: Remove value_h from gdbarch_h.
10968 * valops.c (coerce_float_to_double): New variable.
10969 (default_coerce_float_to_double): Remove.
10970 (standard_coerce_float_to_double): Remove.
10971 (value_arg_coerce): Use coerce_float_to_double.
10972 (_initialize_valops): Add "set coerce-float-to-double".
10973 * value.h (default_coerce_float_to_double): Remove prototype.
10974 (standard_coerce_float_to_double): Remove prototype.
10975
10976 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10977 prototyped.
10978 * mdebugread.c (parse_symbol): Likewise.
10979 * stabsread.c (define_symbol): Mark all functions as prototyped.
10980
10981 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10982 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10983 set_gdbarch_coerce_float_to_double.
10984 * arm-tdep.c (arm_gdbarch_init): Likewise.
10985 * frv-tdep.c (frv_gdbarch_init): Likewise.
10986 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10987 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10988 * mips-tdep.c (mips_gdbarch_init): Likewise.
10989 (mips_coerce_float_to_double): Remove.
10990 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10991 (rs6000_coerce_float_to_double): Remove.
10992 * s390-tdep.c (s390_gdbarch_init): Likewise.
10993 * sh-tdep.c (sh_gdbarch_init): Likewise.
10994 (sh_coerce_float_to_double): Remove.
10995 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10996 (sparc_coerce_float_to_double): Remove.
10997 * v850-tdep.c (v850_gdbarch_init): Likewise.
10998 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10999 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11000 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11001 (hppa_coerce_float_to_double): Remove prototype.
11002 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11003
11004 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11005
11006 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11007
11008 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11009
11010 Suggested by Stewart Brown <sb24@avaya.com>:
11011 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11012 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11013 (c_type_print_varspec_suffix): Likewise.
11014
11015 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11016
11017 * configure.in: Don't set and AC_SUBST SUBDIRS.
11018 * configure: Regenerated.
11019
11020 * configure.in: Remove code dealing with shared libraries.
11021 * Makefile.in: Remove HLDFLAGS and HLDENV.
11022 * configure: Regenerated.
11023
11024 2003-01-04 Andrew Cagney <ac131313@redhat.com>
11025
11026 * frame.c (deprecated_frame_xmalloc): New function.
11027 (deprecated_set_frame_saved_regs_hack): New function.
11028 (deprecated_set_frame_extra_info_hack): New function.
11029 * frame.h (deprecated_frame_xmalloc): Declare.
11030 (deprecated_set_frame_saved_regs_hack): Declare.
11031 (deprecated_set_frame_extra_info_hack): Declare.
11032
11033 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11034
11035 * configure.in: Move code that provides the --enable-gdbtk option
11036 right after the code that handles the --enable-tui option, and
11037 polish it somewhat.
11038 * configure: Regenerated.
11039
11040 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11041 AC_CHECK_FUNCS and remove the old check for pread64.
11042 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11043 * acconfig.h (_GNU_SOURCE): Add.
11044 (HAVE_PREAD64): Remove.
11045 * configure, aclocal.m4, config.in: Regenerated.
11046
11047 2003-01-03 Andrew Cagney <ac131313@redhat.com>
11048
11049 * alpha-tdep.c: Use get_frame_saved_regs.
11050 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11051 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11052 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11053 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11054 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11055
11056 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11057
11058 * configure.in: Remove all use of the SUBDIRS variable; add
11059 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11060 code providing the --enable-multi-ice option, and move it right in
11061 front of the code that checks whether gdbserver is supported.
11062 Polish that too.
11063 * configure: Regenerated.
11064 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11065 @SUBDIRS@.
11066
11067 2003-01-03 Andrew Cagney <cagney@redhat.com>
11068
11069 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11070 * avr-tdep.c, cris-tdep.c: Ditto.
11071 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11072 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11073
11074 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11075
11076 * configure.in: Remove --enable-netrom option.
11077 * configure: Regenerated.
11078
11079 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11080
11081 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11082 declaration for `struct re_pattern_buffer' instead.
11083 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11084
11085 2003-01-03 J. Brobecker <brobecker@gnat.com>
11086
11087 * mdebugread.c (parse_symbol): Count until the stEnd matching
11088 the structure name.
11089
11090 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11091
11092 * configure.in: Remove --with-cpu option.
11093 subscripts. Remove evil changequotes here.
11094 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11095 * config.in, configure: Regenerated.
11096
11097 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11098 * configure.in: Cleanup section that sources GDB and BFD configure
11099 subscripts. Remove evil changequotes here.
11100 * config.in, configure: Regenerated.
11101
11102 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11103
11104 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11105 frame accessor methods.
11106 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11107 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11108 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11109 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11110 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11111 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11112 * z8k-tdep.c: Ditto.
11113
11114 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11115
11116 * configure.in: Remove UI_OUT configuration code.
11117 * ada-lang.c: Update assuming UI_OUT is always true.
11118 * Makefile.in (UIOUT_CFLAGS): Remove.
11119 * configure: Regenerated.
11120 * TODO: Remove blurb about elimination of -DUI_OUT.
11121
11122 * configure.in: Move code that provides the --enable-gdbcli,
11123 --enable-gdbmi options right before the code that handles the
11124 --enable-tui option. Polish a bit.
11125 * configure: Regenerated.
11126
11127 * configure.in: Rewrite check for GNU regex and the
11128 --without-included regex option, and move it into the "Checks for
11129 library functions" section. This makes us use the system regex
11130 again by default on systems with version 2 of the GNU C library.
11131 This was apparently broken.
11132 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11133 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11134 * config.in, configure: Regenerated.
11135
11136 * configure.in: Move code that provides the --enable-tui option
11137 before the "Checks for libraries" section. Polish the code
11138 somewhat and set need_curses to yes if we build the TUI. Rewrite
11139 code that looks for a library providing termcap functionality to
11140 match more closely what's done in the Readline library, and move
11141 it into to the "Checks for libraries" section.
11142 * configure: Regenerated.
11143 * Makefile.in (TERMCAP): Remove variable.
11144 * config/i386/go32.mh (TERMCAP): Remove variable.
11145
11146 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11147
11148 * MAINTAINERS: Mention gdb_mbuild.sh.
11149 * gdb_mbuild.sh: Rewrite.
11150
11151 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11152
11153 * configure.in: Fix typo in last change.
11154 * config.in, configure: Regenerated.
11155
11156 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11157
11158 * valarith.c (value_binop): Delete obsolete code and comments.
11159 * configure.host: Ditto.
11160 * buildsym.h (make_blockvector): Ditto.
11161 * buildsym.c (make_blockvector): Ditto.
11162 * defs.h (enum language): Ditto.
11163 (chill_demangle): Ditto.
11164 * elfread.c (elf_symtab_read): Ditto.
11165 * dwarfread.c (CHILL_PRODUCER): Ditto.
11166 (set_cu_language): Ditto.
11167 (handle_producer): Ditto.
11168 * expprint.c (print_subexp): Ditto.
11169 * gdbtypes.c (chill_varying_type): Ditto.
11170 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11171 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11172 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11173 (chill_varying_type): Ditto.
11174 * language.h (_LANG_chill): Ditto.
11175 * language.c (binop_result_type, integral_type): Ditto.
11176 (character_type, string_type, structured_type): Ditto.
11177 (lang_bool_type, binop_type_check): Ditto.
11178 * stabsread.h (os9k_stabs): Ditto.
11179 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11180 (define_symbol, read_type, read_struct_fields): Ditto.
11181 (read_array_type, read_enum_type, read_huge_number): Ditto.
11182 (read_range_type, start_stabs): Ditto.
11183 * symfile.c (init_filename_language_table): Ditto.
11184 (add_psymbol_with_dem_name_to_list): Ditto.
11185 * symtab.c (symbol_init_language_specific): Ditto.
11186 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11187 * symtab.h (struct general_symbol_info): Ditto.
11188 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11189 * typeprint.c (typedef_print): Ditto.
11190 * utils.c (fprintf_symbol_filtered): Ditto.
11191 * valops.c (value_cast, search_struct_field, value_slice): Delete
11192 obsolete code.
11193 (varying_to_slice): Delete function.
11194 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11195 (varying_to_slice): Delete declaration.
11196 * MAINTAINERS: Update.
11197
11198 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11199
11200 * configure.in: Reorganize "Checks for library functions section"
11201 a bit. Remove check for `btowc' and `isascii' functions.
11202 * configure: Regenerated.
11203
11204 * acconfig.h (_MSE_INT_H): Remove.
11205 * configure.in: Create "Checks for header files" section, and move
11206 appropriate tests there. Don't check for objlist.h, wchar.h,
11207 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11208 misdetection fix. Also add "Checks for types", "Checks for
11209 compiler characteristics" and "Checks for library functions"
11210 sections.
11211 * config.in, configure: Regenerated.
11212
11213 * configure.in: Create "Checks for programs" section, and move
11214 appropriate tests there.
11215
11216 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11217
11218 * configure.in: Create "Checks for libraries" section, and move
11219 appropriate tests there. Cleanup check for wctype in libw. Use
11220 AC_SEARCH_LIBS to see whether we need libsocket.
11221 * configure: Regenerated.
11222
11223 For older changes see ChangeLog-2002
11224 \f
11225 Local Variables:
11226 mode: change-log
11227 left-margin: 8
11228 fill-column: 74
11229 version-control: never
11230 End: