* configure.in: Search for gethostbyname in libnsl.
[binutils-gdb.git] / gdb / ChangeLog
1 2003-08-30 Mark Kettenis <kettenis@gnu.org>
2
3 * configure.in: Search for gethostbyname in libnsl.
4 * configure: Regenerated.
5
6 2003-08-29 Mark Kettenis <kettenis@gnu.org>
7
8 * configure.in: Remove redundant AC_MSG_RESULT in check for
9 uintptr_t in stdint.h.
10 * configure: Regenerated.
11
12 * amd64-nat.h (struct regcache): Add opaque declaration.
13
14 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
15 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
16 Change "register array" to "register cache" in comments.
17 (x86_64_linux_gregset64_reg_offset): New variable.
18 (GETREGS_SUPPLIES): Remove macro.
19 (supply_gregset): Call amd64_supply_native_gregset instead of
20 x86_64_linux_supply_gregset.
21 (fill_gregset): Rename `regno' to `regnum'. Call
22 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
23 (store_regs): Rename `regno' to `regnum'.
24 (store_fpregs): Rename `regno' to `regnum'.
25 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
26 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
27 Reorganize function a bit.
28 (store_inferior_registers): Rename `regno' to `regnum'. Use
29 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
30 Reorganize function a bit.
31 (_initialize_x86_64_linux_nat): New function.
32 * config/i386/x86-64linux.mh.
33
34 2003-08-29 Andrew Cagney <cagney@redhat.com>
35
36 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
37 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
38 (target_remove_watchpoint): Delete macro.
39 (target_insert_watchpoint): Delete macro.
40 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
41 (remote_mips_stopped_by_watchpoint): Delete declaration.
42 (remote_mips_remove_watchpoint): Delete declaration.
43 (remote_mips_set_watchpoint): Delete declaration.
44 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
45 * remote-mips.c (_initialize_remote_mips): Set
46 "to_insert_watchpoint", "to_stopped_by_watchpoint",
47 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
48 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
49 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
50 (mips_stopped_by_watchpoint): Rename
51 remote_mips_stopped_by_watchpoint.
52 (mips_can_hardware_watchpoint): Rename
53 remote_mips_can_use_hardware_watchpoint, update function
54 signature.
55
56 2003-08-29 Mark Kettenis <kettenis@gnu.org>
57
58 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
59 USER_DS. We haven't given them a register number yet.
60
61 * amd64-nat.h: New file.
62 * amd64-nat.c: New file.
63 * amd64fbsd-nat.c: Include "amd64-nat.h".
64 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
65 (amd64fbsd32_r_reg_offset): New variable.
66 (supply_gregset): Simply call amd64_supply_native_gregset.
67 (fill_gregset): Rename `regno' to `regnum'. Simply call
68 amd64_collect_native_gregset.
69 (fill_fpregset): Rename `regno' to `regnum'.
70 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
71 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
72 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
73 `fpregset_t'. Call amd64_supply_native_gregset instead of
74 supply_gregset. Call x86_64_supply_fxsave instead of
75 supply_fpregset.
76 (store_inferior_registers): Rename `regno' to `regnum'. Replace
77 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
78 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
79 `fpregset_t'. Call amd64_collect_native_gregset instead of
80 fill_gregset. Call x86_64_collect_fxsave instead of
81 fill_fpregset.
82 (_initialize_am64fbsd_nat): Initialize
83 amd64_native_gregset32_reg_offset and
84 amd64_native_gregset64_reg_offset.
85 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
86
87 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
88 null pointer. Fix typo in comment.
89
90 * regcache.c (supply_register): Reimplement to call
91 regcache_raw_supply.
92 (regcache_collect): Reimplement by calling regcache_raw_collect.
93
94 2003-08-28 Mark Kettenis <kettenis@gnu.org>
95
96 * regcache.c (register_buffer): Consitify first argument.
97 (regcache_raw_supply, regcache_raw_collect): New
98 functions.
99
100 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
101
102 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
103 by Nathan J. Williams.
104
105 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
106
107 * lin-lwp.c (wait_lwp): New function, copied from
108 stop_wait_callback. Clean up.
109 (stop_wait_callback): Use wait_lwp.
110
111 2003-08-28 Andrew Cagney <cagney@redhat.com>
112
113 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
114 flavour and disassembler options.
115 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
116 (mips_gdbarch_init): Set "print_insn". Delete initialization of
117 deprecated_tm_print_insn_info.
118
119 2003-08-27 Andrew Cagney <cagney@redhat.com>
120
121 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
122 Use target_read_memory.
123 (s390_get_frame_info): Update. Do not reference
124 deprecated_tm_print_insn_info.
125 (s390_check_function_end, s390_is_sigreturn): Ditto.
126
127 2003-08-27 Andrew Cagney <cagney@redhat.com>
128
129 * Makefile.in (cris-tdep.o): Update dependencies.
130 * cris-tdep.c: Include "gdb_assert.h".
131 (cris_gdbarch_init): Set print_insn.
132 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
133 (cris_delayed_get_disassembler): Simplify, directly call the
134 disassembler returned by cris_get_disassembler.
135 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
136 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
137 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
138 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
139 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
140 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
141 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
142 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
143 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
144 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
145 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
146 (gdb_print_insn_sparc): Delete function.
147 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
148 deprecated_tm_print_insn_info.
149 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
150 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
151 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
152 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
153 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
154 * s390-tdep.c (gdb_print_insn_s390): Delete function.
155 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
156 (s390_gdbarch_init): Set print_insn.
157
158 2003-08-27 Andrew Cagney <cagney@redhat.com>
159
160 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
161 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
162 * infcall.c (call_function_by_hand): Convert the entry point
163 address into a code address.
164
165 2003-08-27 Andrew Cagney <cagney@redhat.com>
166
167 * dsrec.c: Include "gdb_string.h".
168 * Makefile.in (dsrec.o): Update dependencies.
169
170 2003-08-27 Michael Chastain <mec@shout.net>
171
172 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
173
174 2003-08-27 Andrew Cagney <cagney@redhat.com>
175
176 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
177 (alpha_osf1_init_abi): Do not set call_dummy_address.
178
179 2003-08-27 David Carlton <carlton@kealia.com>
180
181 From Randolph Chung <tausq@debian.org>:
182 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
183 compiles with -Wformat-nonliteral -Werror.
184
185 2003-08-26 Jim Blandy <jimb@redhat.com>
186
187 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
188 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
189 bfd_lookup_symbol, since we only want symbols in code sections.
190 (look_for_base): Pass zero as the SECT_FLAGS argument to
191 bfd_lookup_symbol, since we're not concerned about which section
192 the symbol is in.
193
194 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
195
196 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
197 we are frameless or the return address register is already known.
198
199 2003-08-26 Andrew Cagney <cagney@redhat.com>
200
201 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
202 in size. Add comments.
203
204 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
205
206 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
207 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
208
209 2003-08-26 Jason Merrill <jason@redhat.com>
210
211 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
212 case out of #ifdef MIPS block.
213
214 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
215
216 PR java/1322
217 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
218 available before calling SECT_OFF_TEXT.
219 * PROBLEMS: Remove description of java/1322.
220
221 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
222
223 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
224 bof, and nat0-nat127 as pseudo-registers.
225 (ia64_frame_cache): New struct used to cache frame info.
226 (ia64_register_reggroup_p): New routine used to override default
227 register grouping so registers without names are still saved and
228 restored.
229 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
230 pseudo values.
231 (ia64_pseudo_register_read): New routine to read pseudo-registers.
232 (ia64_pseudo_register_write): New routine to write pseudo-registers.
233 (ia64_alloc_frame_cache): New routine to create a new
234 ia64_frame_cache.
235 (examine_prologue): Change prototype to add next_frame pointer.
236 Assume frameless until otherwise proven. Verify that the cfm for
237 current frame matches the cfm that should occur for the prologues
238 alloc insn and if equal, mark as not frameless. At end of routine,
239 if not frameless, calculate registers for the previous frame and store
240 in the cache, if a cache is provided.
241 (ia64_skip_prologue): Use new prototype when calling examine_prologue
242 and pass 0 for next_frame.
243 (ia64_store_return_value): Change to use convert_typed_floating()
244 instead of calling ia64_convert_to_raw().
245 (ia64_extract_return_value): Change to use convert_typed_floating()
246 instead of calling ia64_convert_to_virtual().
247 (ia64_frame_cache): New routine to support new frame model.
248 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
249 (ia64_frame_sniffer): Ditto.
250 (ia64_sigtramp_frame_init_saved_regs): Ditto.
251 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
252 (ia64_sigtramp_frame_prev_register): Ditto.
253 (ia64_sigtramp_frame_sniffer): Ditto.
254 (ia64_frame_base_address): Ditto.
255 (ia64_extract_struct_value_address): Change to issue error message.
256 (ia64_frame_align): New routine to align sp.
257 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
258 (ia64_push_arguments): Removed. Logic moved to
259 ia64_push_dummy_call().
260 (ia64_push_return_address): Ditto.
261 (ia64_unwind_dummy_id): New function.
262 (ia64_unwind_pc): Ditto.
263 (ia64_convert_register_p): Ditto.
264 (ia64_register_to_value): Ditto.
265 (ia64_value_to_register): Ditto.
266 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
267 (ia64_register_byte, ia64_register_raw_size): Ditto.
268 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
269 (ia64_saved_pc_after_call): Ditto.
270 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
271 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
272 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
273 (ia64_register_convert_to_raw): Ditto.
274 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
275 (ia64_init_extra_frame_info): Ditto.
276 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
277 (ia64_gdbarch_init): Remove registering of deprecated functions that
278 are no longer used. Add registration of new gdbarch functions.
279 Remove registering deprecated_write_sp. Replace
280 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
281 Delete set_gdbarch_deprecated_register_convertible(),
282 set_gdbarch_deprecated_register_convert_to_virtual(), and
283 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
284 set_gdbarch_deprecated_register_size(),
285 set_gdbarch_deprecated_register_bytes(),
286 set_gdbarch_pcregnum(),
287 set_gdbarch_deprecated_register_byte(),
288 set_gdbarch_deprecated_register_raw_size(),
289 set_gdbarch_deprecated_max_register_raw_size(),
290 set_gdbarch_deprecated_register_virtual_size(),
291 and set_gdbarch_deprecated_max_register_virtual_size() calls.
292 Replace set_gdbarch_deprecated_extract_return_value() with
293 set_gdbarch_extract_return_value(). Remove calls to:
294 set_gdbarch_deprecated_saved_pc_after_call();
295 set_gdbarch_deprecated_frame_chain(),
296 set_gdbarch_deprecated_frame_saved_pc(),
297 set_gdbarch_deprecated_frame_init_saved_regs(),
298 set_gdbarch_deprecated_get_saved_register(),
299 set_gdbarch_deprecated_call_dummy_words(),
300 set_gdbarch_deprecated_sizeof_call_dummy_words(),
301 set_gdbarch_deprecated_init_extra_frame_info(),
302 set_gdbarch_deprecated_frame_args_address(),
303 set_gdbarch_deprecated_frame_locals_address(),
304 and set_gdbarch_deprecated_dummy_write_sp().
305 Add set_gdbarch_convert_register_p(),
306 set_gdbarch_register_to_value(),
307 set_gdbarch_value_to_register(),
308 set_gdbarch_push_dummy_call(),
309 set_gdbarch_frame_align(),
310 set_gdbarch_unwind_dummy_id(),
311 set_gdbarch_unwind_pc(),
312 frame_unwind_append_sniffer(),
313 frame_unwind_append_sniffer(),
314 and frame_base_set_default().
315
316 2003-08-25 Chris Demetriou <cgd@broadcom.com>
317
318 * configure.tgt: Document need for special "mipsisa64" handling.
319 (mipsisa64*-*-linux64): Handle as target linux64.
320 (mipsisa64*-*-*): Handle as target embed64.
321
322 2003-08-18 Michael Chastain <mec@shout.net>
323
324 * PROBLEMS: Document pr gdb/1322, the Java anonymous
325 objfile bug.
326
327 2003-08-24 Mark Kettenis <kettenis@gnu.org>
328
329 * i387-tdep.h: Update copyright date.
330 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
331
332 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
333 CFLAGS games to reflect reality.
334
335 2003-08-24 Andrew Cagney <cagney@redhat.com>
336
337 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
338 GDB_MULTI_ARCH is always non-zero.
339 * osabi.c (_initialize_gdb_osabi): Ditto.
340 (gdbarch_init_osabi): Ditto.
341 * sparc-tdep.c: Ditto for #if code.
342
343 2003-08-23 Mark Kettenis <kettenis@gnu.org>
344
345 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
346 Update comments.
347 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
348 comments.
349 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
350 x86_64_supply_fxsave.
351 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
352 x86_64_supply_fxsave.
353 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
354 x86_64_supply_fxsave.
355
356 2003-08-23 Andreas Jaeger <aj@suse.de>
357
358 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
359 i387_supply_fxsave.
360
361 2003-08-23 Mark Kettenis <kettenis@gnu.org>
362
363 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
364 i387_supply_register.
365 (go32_fetch_registers): Adjust call to i387_supply_fsave.
366 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
367 i387_supply_fsave.
368 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
369 i387_supply_fxsave.
370 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
371 i387_supply_fsave.
372 * i386bsd-nat.c (supply_fpregset): Adjust call to
373 i387_supply_fsave.
374 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
375 call to i387_supply_fxsave. Call i387_supply_fsave instead of
376 supply_fpregset.
377 (store_inferior_registers): Remove extraneous whitespace. Call
378 i387_fill_fsave instead of fill_fpregset.
379 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
380 (supply_fpregset): Likewise.
381 * i386v4-nat.c (supply_fpregset): Adjust call to
382 i387_supply_fsave.
383 * i386-interix-nat.c (supply_fpregset): Adjust call to
384 i387_supply_fsave.
385 * i386-linux-nat.c (supply_fpregset): Adjust call to
386 i387_supply_fsave.
387 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
388 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
389 i387supply_fsave and i387_supply_fxsave.
390 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
391 Incorporate code from `i387_supply_register.
392 (i387_supply_register): Remove.
393 (i387_supply_fxsave): Add `regnum' argument.
394 Update comments.
395 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
396 prototype.
397 (i387_supply_register): remove prototype.
398 Update comments.
399
400 2003-08-22 Michael Chastain <mec@shout.net>
401
402 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
403 Add lines for files in gdb/testsuite/gdb.cp/* that are
404 still not 8.3 unique.
405
406 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
407
408 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
409 TYPE_VPTR_FIELDNO is valid.
410
411 2003-08-19 Mark Kettenis <kettenis@gnu.org>
412
413 * utils.c (set_width_command): Remove prototypes.
414 (set_screen_size): New prototype.
415 (init_page_info): Simplify by fetching the screen size from
416 Readline. Call set_screen_size.
417 (set_screen_size): New function.
418 (set_width): Add missing whitespace in comment.
419 (set_width_command): Call set_screen_size.
420 (set_height_command): New function.
421 (initialize_utils): Fix formatting. Make "set height" command
422 call set_height_command. Remove redundant code that turns off
423 pagination if output isn't a terminal. Remove redundant call to
424 set_width_command.
425
426 2003-08-22 Mark Kettenis <kettenis@gnu.org>
427
428 * sparc64-tdep.h (sparc64_regnum): Fix comment.
429 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
430 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
431 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
432 `case' keyword.
433 (sparc64_register_info): Give the reister with number
434 SPARC64_STATE_REGNUM a name.
435 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
436 %asi and %ccr.
437 (sparc64_push_dummy_call): Take BIAS into account when checking
438 stcak alignment.
439 (sparc_software_single_step): Remove assertions that check whether
440 NPC and NNPC were zero.
441 (sparc_supply_rwindow): Make public. Merge functionality with
442 sparc64_supply_rwindow.
443 (sparc_fill_rwindow): Make public. Merge functionality with
444 sparc64_fill_rwindow.
445 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
446 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
447 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
448 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
449 sparc_supply_rwindow instead of sparc64_supply_rwindow.
450
451 * reggroups.c: Add whitespace after declarations of local
452 variables in functions.
453
454 2003-08-21 Michael Chastain <mec@shout.net>
455
456 * gdbtypes.h: Change array bound type from an int to enum.
457
458 2003-08-21 Andrew Cagney <cagney@redhat.com>
459
460 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
461 * config/sparc/tm-sparc.h: Ditto.
462 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
463 unconditionally.
464 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
465
466 2003-07-13 Mark Kettenis <kettenis@gnu.org>
467
468 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
469 (register_objfile_data, set_objfile_data, objfile_data): New
470 prototypes.
471 * objfiles.c (objfile_alloc_data, objfile_free_data): New
472 prototypes.
473 (allocate_objfile): Call objfile_alloc_data.
474 (free_objfile): Call objfile_free_data.
475 (struct objfile_data): New.
476 (struct objfile_data_registration): New.
477 (struct objfile_data_registry): New.
478 (objfile_data_registry): New variable.
479 (register_objfile_data): New function.
480 (objfile_alloc_data, objfile_free_data): New functions.
481 (set_objfile_data, objfile_data): New functions.
482 * dwarf2-frame.c (dwarf2_frame_data): New variable.
483 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
484 (_initialize_dwarf2_frame): New function and prototype.
485
486 2003-08-21 Andrew Cagney <cagney@redhat.com>
487
488 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
489 a specific architecture.
490 * arch-utils.h (set_architecture_from_arch_mach): Delete
491 declaration.
492 (target_architecture_hook): Delete declaration.
493 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
494 (default_float_format): Assume GDB_MULTI_ARCH.
495 (default_double_format): Assume GDB_MULTI_ARCH.
496 (set_endian_from_file): Delete function.
497 (arch_ok): Delete function.
498 (set_arch): Delete function.
499 (set_architecture_from_arch_mach): Delete function.
500 (set_architecture_from_file): Delete function.
501 (set_architecture): Assume GDB_MULTI_ARCH.
502 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
503
504 2003-08-21 Mark Kettenis <kettenis@gnu.org>
505
506 Rewrite FreeBSD/sparc64 native configuration.
507 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
508 * sparc64fbsd-nat.c: New file.
509 * sparc64fbsd-tdep.c: New file.
510 * sparc64-tdep.c sparc64-tdep.h: New files.
511 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
512 sparc64fbsd-tdep.o): New dependencies.
513 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
514 and sparc64fbsd-tdep.c.
515 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
516 * config/sparc/fbsd.mh: Remove copyright notice.
517 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
518 sparcbsd-nat.o.
519 * config/sparc/fbsd.mt: Remove copyright notice.
520 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
521 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
522 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
523 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
524 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
525 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
526 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
527 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
528 "sparc/tm-sp64.h".
529 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
530 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
531
532 2003-08-21 Michael Chastain <mec@shout.net>
533
534 * symtab.h: Add doco on the space critical structures and
535 some measurements of space usage.
536
537 2003-08-21 Michael Snyder <msnyder@redhat.com>
538
539 * tracepoint.c (trace_dump_command): Trace break address
540 is subject to DECR_PC_AFTER_BREAK.
541 (set_traceframe_context): Make "trace_line" an int.
542 Fixes suggested by Mark Newman <mark.newman@lmco.com>
543
544 2003-08-20 Michael Snyder <msnyder@redhat.com>
545
546 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
547 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
548 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
549 argument passing.
550 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
551 functions, replace sh_push_dummy_call.
552 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
553
554 2003-08-20 Michael Chastain <mec@shout.net>
555
556 * gdbtypes.h (struct main_type): Rearrange to save space.
557
558 2003-08-20 Michael Snyder <msnyder@redhat.com>
559
560 * trad-frame.c: Comment typo fix.
561
562 2003-08-20 Michael Snyder <msnyder@redhat.com>
563 Kevin Buettner <kevinb@redhat.com>
564
565 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
566 (frv_frame_init_saved_regs): Add declaration.
567 (frame_extra_info): Add new field ``saved_regs''.
568 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
569 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
570 Update frame related code.
571 (frv_extract_struct_value_address): Adjust formatting.
572 * Makefile.in (frv-tdep.o): Update dependencies.
573 * config/frv/tm-frv.h (target_insert_watchpoint)
574 (target_remove_watchpoint, target_insert_hw_breakpoint)
575 (target_remove_hw_breakpoint): Delete these macros.
576 (remote_insert_watchpoint, remote_remove_watchpoint)
577 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
578 these declarations.
579
580 2003-08-20 Michael Chastain <mec@shout.net>
581
582 * defs.h (ENUM_BITFIELD): New macro.
583 * symtab.h (ENUM_BITFIELD): Use it.
584 (BYTE_BITFIELD): Remove old macro, which was already disabled.
585
586 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
587
588 * MAINTAINERS (write after approval): Add myself.
589
590 2003-08-18 Andrew Cagney <cagney@redhat.com>
591
592 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
593 * gdbarch.h, gdbarch.c: Re-generate.
594 * infcall.c (call_function_by_hand): Adjust the SP by
595 frame_red_zone_size before allocating any stack space.
596 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
597 * x86-64-tdep.c (x86_64_frame_align): New function.
598 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
599
600 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
601 Remove code adjusting SP so that it skips over the Red Zone.
602
603 2003-08-18 Mark Kettenis <kettenis@gnu.org>
604
605 * NEWS (New native configurations): Mention FreeBSD/amd64.
606
607 2003-08-18 Andrew Cagney <cagney@redhat.com>
608
609 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
610 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
611 "m68k_frame_p".
612 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
613
614 2003-08-18 Mark Kettenis <kettenis@gnu.org>
615
616 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
617
618 2003-08-18 Michal Ludvig <mludvig@suse.cz>
619
620 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
621 Define.
622 * i386-linux-nat.c: Include "linux-nat.h".
623 (child_post_startup_inferior): New function.
624
625 2003-08-18 Mark Kettenis <kettenis@gnu.org>
626
627 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
628 at the start of a frameless function. This probably fixes PR
629 backtrace/1338.
630
631 2003-08-17 Michael Chastain <mec@shout.net>
632
633 * symfile.c (find_sym_fns): Remove special case for apollo target.
634
635 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
636
637 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
638 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
639 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
640 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
641 (linux_supports_tracevforkdone): New function.
642 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
643 TRACEVFORKDONE.
644 (child_follow_fork): Handle vfork.
645 (linux_handle_extended_wait): Likewise. Also handle exec.
646 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
647 * NEWS: Mention fork tracing.
648
649 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
650
651 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
652
653 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
654
655 * Makefile.in (i386-linux-nat.o): Update dependencies.
656 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
657 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
658 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
659 * i386-linux-nat.c: Include "linux-nat.h".
660 (child_post_startup_inferior): New function.
661 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
662 * infptrace.c (kill_inferior): Wrap in #ifdef.
663 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
664 attaching to each LWP.
665 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
666 (init_lin_lwp_ops): Fill in some more operations.
667 * linux-nat.h (linux_enable_event_reporting)
668 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
669 prototypes.
670 * linux-nat.c (linux_enable_event_reporting): New function.
671 (child_post_attach, linux_child_post_startup_inferior)
672 (child_post_startup_inferior, child_follow_fork)
673 (linux_handle_extended_wait, kill_inferior): New functions.
674
675 2003-08-16 Andrew Cagney <cagney@redhat.com>
676
677 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
678 * gdbarch.h, gdbarch.c: Re-generate.
679
680 2003-08-16 Mark Kettenis <kettenis@gnu.org>
681
682 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
683
684 2003-08-16 Andrew Cagney <cagney@redhat.com>
685
686 * NEWS: Mention that "set prompt-escape-char" was deleted.
687 * top.c (get_prompt_1): Delete function.
688 (gdb_prompt_escape):
689 (init_main): Do not clear "gdb_prompt_escape". Delete "set
690 prompt-escape-char" command.
691 (MAX_PROMPT_SIZE): Delete macro.
692 (get_prompt): Simplify, do not call get_prompt_1.
693
694 2003-08-16 Andrew Cagney <cagney@redhat.com>
695
696 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
697 -Werror. -Wformat-nonliteral problems.
698
699 2003-08-15 J. Brobecker <brobecker@gnat.com>
700
701 Further multiarching work mostly for hppa64-*-hpux11:
702 * hppa-tdep.h: New file.
703 * hppa-tdep.c: #include hppa-tdep.c.
704 (hppa32_num_regs): Renamed from hppa_num_regs.
705 (hppa64_num_regs): New constant.
706 (hppa64_call_dummy_breakpoint_offset): New constant.
707 (hppa32_call_dummy_length): New constant.
708 (hppa64_call_dummy_length): New constant.
709 (hppa32_stack_align): Make name 32bit explicit.
710 (hppa32_register_virtual_type): Likewise.
711 (hppa32_extract_return_value): Likewise.
712 (hppa32_use_struct_convention): Likewise.
713 (hppa32_store_return_value): Likewise.
714 (hppa64_register_virtual_type): New function.
715 (hppa64_extract_return_value): New function.
716 (hppa64_use_struct_convention): New function.
717 (hppa64_store_return_value): New function.
718 (hppa_frame_locals_address): Remove declaration, function does
719 not exist anymore.
720 (hppa_register_byte): Add support for PA64 ABI.
721 (hppa_gdbarch_init): Add support for PA64 ABI.
722 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
723 Make name 32bit explicit.
724 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
725 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
726 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
727 (hppa64_hpux_frame_base_before_sigtramp): New function.
728 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
729 * config/pa/tm-hppa64.h: Remove macros that are no longer
730 necessary now that the gdbarch vector is properly setup.
731 Transform some macros into function calls. Some minor cleanup.
732 * config/pa/tm-hppah.h: Update function calls in macros
733 following the function renaming in hppa-hpux-tdep.c.
734 * Makefile.in (hppa_tdep_h): New variable.
735 (hppa-tdep.o): Add dependency over hppa_tdep_h.
736
737 2003-08-14 Michael Snyder <msnyder@redhat.com>
738
739 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
740
741 2003-08-13 J. Brobecker <brobecker@gnat.com>
742
743 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
744 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
745 routine.
746
747 2003-08-13 Michael Snyder <msnyder@redhat.com>
748
749 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
750 (frv_saved_pc_after_call): Use deprecated ftype.
751 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
752 (frv_remote_translate_xfer_address): Remove.
753 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
754
755 2003-08-13 J. Brobecker <brobecker@gnat.com>
756
757 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
758 initialization after the common gdbarch initialization, not before.
759
760 2003-08-13 J. Brobecker <brobecker@gnat.com>
761
762 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
763 (ADDR_BITS_REMOVE): Remove, redundant.
764
765 2003-08-13 J. Brobecker <brobecker@gnat.com>
766
767 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
768 gdbarch method to clear the 2 low bits of text addresses.
769
770 2003-08-12 Andrew Cagney <cagney@redhat.com>
771
772 * Makefile.in (dsrec.o): Update dependencies.
773 * dsrec.c: Include "gdb_assert.h".
774 (make_srec): Use snprintf instead of sprintf, use a literal format
775 string.
776
777 2003-08-12 Andrew Cagney <cagney@redhat.com>
778
779 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
780 FRAME_OBSTACK_ZALLOC.
781
782 2003-08-12 Kevin Buettner <kevinb@redhat.com>
783
784 * i386-tdep.c (i386_gdbarch_init): Enable default support for
785 SSE registers.
786
787 2003-08-10 Mark Kettenis <kettenis@gnu.org>
788
789 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
790 amd64fbsd_sc_reg_offset): Add extern declarations.
791 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
792 declarations.
793
794 2003-08-11 Ben Elliston <bje@wasabisystems.com>
795
796 * MAINTAINERS (write after approval): Update my mail address.
797
798 2003-08-10 Andrew Cagney <cagney@redhat.com>
799
800 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
801
802 2003-08-10 Mark Kettenis <kettenis@gnu.org>
803
804 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
805 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
806 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
807 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
808 i386bsd_sc_reg_offset): Add extern declarations.
809 * i386obsd-nat.c: Include "i386-tdep.h"
810 (_initialize_i386obsd_nat): Remove extern declarations.
811 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
812 declarations.
813 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
814 declarations.
815
816 * i386-tdep.c (i386_register_to_value): Use get_frame_register
817 instead of frame_read_register.
818 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
819 instead of frame_read_register. Use I386_ESP_REGNUM instead of
820 SP_REGNUM.
821 (i386_frame_prev_register): Use frame_unwind_register_unsigned
822 instead of frame_unwind_unsigned_register. Use
823 I386_EFLAGS_REGISTER instead of PS_REGNUM.
824 (i386_get_longjmp_target): Use regcache_read_unsigned_register
825 instead of read_register. Use builtin_type_void_data_ptr instead
826 of builtin_type_void_func_ptr when extracting the address of the
827 jmp_buf.
828 (i386_extract_return_value, i386_store_return_value,
829 i386_pseudo_register_read, i386_pseudo_register_write): Use
830 register_size instead REGISTER_RAW_SIZE.
831
832 2003-08-10 Andrew Cagney <cagney@redhat.com>
833
834 * infcall.c (call_function_by_hand): Use xstrprintf instead of
835 sprintf. Make "name" constant.
836
837 2003-08-10 Mark Kettenis <kettenis@gnu.org>
838
839 * i387-tdep.c (i387_register_to_value): Use get_frame_register
840 instead of frame_read_register.
841 (i387_print_float_info): Use get_frame_register and
842 get_frame_register_unsigned instead of frame_register_read.
843
844 * i386fbsd-nat.c: Include "i386-tdep.h".
845 (child_resume): Make `eflags' an ULONGEST. Use
846 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
847 instead of register_read and register_write.
848
849 * i386bsd-nat.c (fetch_inferior_registers,
850 store_inferior_registers): Don't use && at the end of a line.
851 (_initialize_i386bsd_nat): Fix typo.
852
853 * frame.c (_initialize_frame): Add missing backslash.
854
855 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
856 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
857 and supply_register instead of manipulating the register buffer
858 directly.
859
860 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
861 * config/i386/nm-i386sol2.h
862 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
863
864 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
865 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
866 instructions that GCC likes to mingle into the prologue. Fixes
867 gdb/1253 and gdb/1255.
868
869 2003-08-09 Andrew Cagney <cagney@redhat.com>
870
871 Fix GDB PR cli/926.
872 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
873 * command.h (add_setshow_uinteger_cmd): Declare.
874 * frame.c (set_backtrace_cmd): New function.
875 (show_backtrace_cmd): New function.
876 * frame.c (_initialize_frame): Replace "set/show
877 backtrace-below-main" with "set/show backtrace past-main". Add
878 command "set/show backtrace limit".
879 (backtrace_past_main): Rename "backtrace_below_main".
880 (backtrace_limit): New variable.
881 (get_prev_frame): Update. Check the backtrace_limit.
882
883 2003-08-09 Andrew Cagney <cagney@redhat.com>
884
885 * defs.h (xstrprintf): Declare.
886 * utils.c (xstrprintf): New function.
887 * breakpoint.c (insert_breakpoints): Replace sprintf and
888 non-literal format strings, with xstrprintf and cleanups.
889 (delete_breakpoint,breakpoint_re_set): Ditto.
890 (commands_command, insert_breakpoints): Ditto.
891 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
892 (break_at_finish_command_1): Ditto.
893
894 2003-08-09 Andrew Cagney <cagney@redhat.com>
895
896 * MAINTAINERS (language support): List Adam Fedor as Objective C
897 maintainer.
898
899 2003-08-08 J. Brobecker <brobecker@gnat.com>
900
901 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
902 are now multiarched.
903
904 2003-08-08 J. Brobecker <brobecker@gnat.com>
905
906 * config/pa/tm-hppa64.h: Remove lots of macros that are no
907 longer necessary now that hppa64 is partially multiarch'ed.
908
909 2003-08-08 Andrew Cagney <cagney@redhat.com>
910
911 * interps.c (interp_set): Check for a NULL "old_interp".
912
913 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
914
915 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
916 (install-only): Support DESTDIR.
917 (uninstall): Likewise.
918 (install-gdbtk): Likewise.
919
920 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
921
922 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
923 contains something meaningful at all times.
924
925 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
926
927 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
928
929 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
930
931 * MAINTAINERS (write after approval): Added self.
932
933 2003-08-07 Andrew Cagney <cagney@redhat.com>
934
935 * inferior.h (AT_SYMBOL): Define.
936 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
937 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
938 * mips-tdep.c (mips_call_dummy_address): Delete function.
939 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
940 set call_dummy_address.
941
942 2003-08-07 Andrew Cagney <cagney@redhat.com>
943
944 * language.c (op_error): Delete function.
945 (binop_type_check): Delete function.
946 * language.h (type_op_error, range_op_error): Delete macros.
947 (op_error): Delete declaration.
948
949 2003-08-07 Andrew Cagney <cagney@redhat.com>
950
951 * interps.h (INTERP_MI2, INTERP_MI3): Define.
952
953 2003-08-07 Michal Ludvig <mludvig@suse.cz>
954
955 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
956 (x86_64_push_arguments): Skip the red zone.
957
958 2003-08-05 Andrew Cagney <cagney@redhat.com>
959
960 * reggroups.c (reggroup_next): Check for the final entry.
961
962 2003-08-04 Andrew Cagney <cagney@redhat.com>
963
964 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
965 * cli/cli-script.c (define_command): Call query directly, instead
966 of passing it a buffer.
967 * ocd.c (ocd_error): Pass error a constant format string.
968 * remote-mips.c (mips_error): Use fputs_filtered.
969
970 * solib-svr4.c (_initialize_svr4_solib): Update
971 register_gdbarch_data call.
972 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
973
974 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
975 (register_gdbarch_data): Delete "free" parameter. Update
976 comments.
977 * gdbarch.h, gdbarch.c: Re-generate.
978 * reggroups.c (_initialize_reggroup): Update.
979 * gnu-v3-abi.c (init_gnuv3_ops): Update.
980 * frame-base.c (_initialize_frame_base): Update.
981 * frame-unwind.c (_initialize_frame_unwind): Update.
982 * user-regs.c (_initialize_user_regs): Update.
983 * remote.c (_initialize_remote): Update.
984 * regcache.c (_initialize_regcache): Update.
985
986 * regcache.c (xfree_regcache_descr): Delete function.
987 (_initialize_regcache): Update call to register_gdbarch_data.
988 (init_regcache_descr, init_legacy_regcache_descr): Use
989 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
990
991 * remote.c (free_remote_state): Delete function.
992 (_initialize_remote): Update register_gdbarch_data.
993 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
994 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
995
996 2003-08-04 Andrew Cagney <cagney@redhat.com>
997
998 * reggroups.c (struct reggroup_el): Define.
999 (struct reggroups): Delete field "nr_group". Replace array
1000 "group" with a "first" to "last" linked list.
1001 (reggroups_init): Update. Allocate using gdbarch's obstack.
1002 (reggroups_free): Delete function.
1003 (add_group): Update. Add "el" parameter.
1004 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1005 (default_groups): Update.
1006 (reggroup_next): Replace reggroups.
1007 (reggroups_dump): Update.
1008 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1009 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1010 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1011
1012 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1013
1014 * Makefile.in (tui-interp.o): Update dependencies.
1015
1016 2003-08-04 David Carlton <carlton@kealia.com>
1017
1018 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1019 to internal_error call.
1020 * source.c (forward_search_command): Add "%s" format argument.
1021 (reverse_search_command): Ditto.
1022 * top.c (quit_confirm): Ditto.
1023 * cli/cli-setshow.c (do_setshow_command): Ditto.
1024 * cp-valprint.c (cp_print_class_method): Replace
1025 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1026 (cp_print_class_member): Ditto.
1027 * event-top.c (command_line_handler): Ditto.
1028 * linux-proc.c (linux_info_proc_cmd): Ditto.
1029 * p-typeprint.c (pascal_type_print_base): Ditto.
1030 * p-valprint.c (pascal_object_print_class_method): Ditto.
1031 (pascal_object_print_class_member): Ditto.
1032 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1033 * remote.c (remote_cisco_section_offsets): Ditto.
1034 * top.c (command_line_input): Ditto.
1035 * utils.c (vwarning,error_stream,quit): Ditto.
1036 * valprint.c (print_floating,print_binary_chars)
1037 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1038
1039 2003-08-04 Andrew Cagney <cagney@redhat.com>
1040
1041 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1042
1043 2003-08-02 Andrew Cagney <cagney@redhat.com>
1044
1045 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1046 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1047 amd64fbsd-nat.c.
1048
1049 2003-08-02 Andrew Cagney <cagney@redhat.com>
1050
1051 * Makefile.in: Update all dependencies and definitions.
1052
1053 2003-08-02 Adam Fedor <fedor@gnu.org>
1054
1055 * linespec.c (is_objc_method_format): New function
1056 (decode_line_1, locate_first_half): Use it.
1057 Fixes PR objc/1298
1058
1059 2003-08-01 Andrew Cagney <cagney@redhat.com>
1060
1061 * NEWS: Mention that m32r is multi-arch.
1062 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1063 * configure.tgt: Recognize m32r-*-*.
1064 * config/m32r/tm-m32r.h: Delete file.
1065 * config/m32r/m32r.mt: New file.
1066 * m32r-rom.c (m32r_upload_command): Use hostent only when
1067 gethostname succeeds, in order to avoid a compilation
1068 warning.
1069 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1070 compiler warning.
1071
1072 2003-08-01 Michael Snyder <msnyder@redhat.com>
1073
1074 * sh-tdep.c (sh_frame_align): New gdbarch method.
1075 (sh_gdbarch_init): Set up frame_align method.
1076
1077 2003-07-31 Michael Snyder <msnyder@redhat.com>
1078
1079 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1080 which is already covered by the new frames infrastructure.
1081
1082 2003-07-31 Andrew Cagney <cagney@redhat.com>
1083
1084 * user-regs.c (struct user_reg): Add "next" link.
1085 (struct user_regs): Replace "user" with "first" and "last" links.
1086 (append_user_reg): Add pre-allocated "reg" parameter.
1087 (builtin_user_regs): Provide initial value for "last".
1088 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1089 (user_regs_init): Allocate memory from the gdbarch obstack.
1090 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1091 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1092 linked list.
1093 (usernum_to_user_reg): New function.
1094 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1095 (value_of_user_reg): Use usernum_to_user_reg.
1096 (user_regs_free): Delete function.
1097 (_initialize_user_regs): Update register_gdbarch_data call.
1098
1099 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
1100
1101 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1102
1103 2003-07-30 Michael Snyder <msnyder@redhat.com>
1104
1105 * value.h (value_being_returned): Add a struct_addr argument.
1106 * infcall.c (call_function_by_hand): Pass struct_addr to
1107 value_being_returned.
1108 * infcmd.c (print_return_value): Pass zero as struct_addr.
1109 * values.c (value_being_returned): If struct_addr is passed,
1110 use it instead of trying to recover it from the inferior.
1111
1112 2003-07-30 Kevin Buettner <kevinb@redhat.com>
1113
1114 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1115 the prologue analyzer won't need to attempt to extract the pc
1116 value from the woefully incomplete dummy frame.
1117 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1118 possible. Disable code which modifies the frame.
1119
1120 2003-07-28 Andrew Cagney <cagney@redhat.com>
1121
1122 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1123 to level 2.
1124 (annotate_breakpoints_table, annotate_record): Ditto.
1125 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1126 (annotate_field_name_end, annotate_field_value): Ditto.
1127 (annotate_field_end, annotate_frame_source_begin): Ditto.
1128 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1129 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1130 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1131 (annotate_frame_address_end, annotate_frame_address): Ditto.
1132 (annotate_frame_args, annotate_frame_end): Ditto.
1133 (annotate_frame_where, annotate_arg_begin): Ditto.
1134 (annotate_arg_name_end, annotate_arg_value): Ditto.
1135 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1136 (annotate_function_call, annotate_signal_name): Ditto.
1137 (annotate_signal_string, annotate_signal_name_end): Ditto.
1138 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1139 (annotate_value_begin, annotate_value_history_value): Ditto.
1140 (annotate_value_history_end, annotate_value_end): Ditto.
1141 (annotate_display_begin, annotate_display_number_end): Ditto.
1142 (annotate_display_format, annotate_display_expression): Ditto.
1143 (annotate_display_expression_end, annotate_display_value): Ditto.
1144 (annotate_display_end, annotate_array_section_begin): Ditto.
1145 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1146 (annotate_elt, annotate_array_section_end): Ditto.
1147
1148 2003-07-28 Andrew Cagney <cagney@redhat.com>
1149
1150 * regcache.c (struct regcache_descr): Update comments on
1151 nr_raw_registers.
1152 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1153 sizeof_raw_register_valid_p.
1154 (init_regcache_descr): Set nr_raw_registers and
1155 sizeof_raw_register_valid_p before calling
1156 init_legacy_regcache_descr.
1157
1158 2003-07-28 Andrew Cagney <cagney@redhat.com>
1159
1160 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1161 MOD NUM_REGS.
1162
1163 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
1164
1165 * thread.c (info_threads_command): Use get_selected_frame ().
1166 Check that there is at least one non-sentinel frame.
1167
1168 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1169
1170 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1171 (m68hc11_pop_frame): Remove.
1172 (m68hc11_frame_saved_pc): Remove.
1173 (m68hc11_frame_chain): Remove.
1174 (m68hc11_frame_init_saved_regs): Remove.
1175 (m68hc11_init_extra_frame_info): Remove.
1176 (m68hc11_store_struct_return): Remove.
1177 (m68hc11_saved_pc_after_call): Remove.
1178
1179 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1180
1181 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1182 frame unwind information.
1183 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1184 and adapted for frame unwinding.
1185 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1186 (m68hc11_unwind_pc): New function.
1187 (m68hc11_frame_unwind_cache): New function to analyze frames.
1188 (m68hc11_frame_this_id): New function to create new frame struct.
1189 (m68hc11_frame_prev_register): New function to unwind a register from
1190 the frame.
1191 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1192 (m68hc11_frame_p): New function for the above.
1193 (m68hc11_frame_base_address): New function to return fp of frame.
1194 (m68hc11_frame_args_address): Update for frame.
1195 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1196 (m68hc11_unwind_sp): New function.
1197 (m68hc11_unwind_dummy_id): New function.
1198 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1199 calls.
1200
1201 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1202
1203 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1204 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1205 when we are beyond the current pc.
1206
1207 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1208
1209 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1210 from m68hc11_push_arguments.
1211 (m68hc11_push_arguments): Remove.
1212 (m68hc11_push_return_address): Remove.
1213 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1214 handlers; remove deprecated_extra_stack_alignment_needed.
1215
1216 2003-07-27 Andrew Cagney <cagney@redhat.com>
1217
1218 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1219 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1220 REAL_PC and not the pointer.
1221 * hppa-hpux-tdep.c: Include frame.h
1222
1223 2003-07-27 Andrew Cagney <cagney@redhat.com>
1224
1225 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1226 GDB_MULTI_ACH_PARTIAL.
1227
1228 2003-07-27 Andrew Cagney <cagney@redhat.com>
1229
1230 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1231 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1232 operator at start and not end of line.
1233 (decode_prologue): Ditto.
1234 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1235 frame_unwind_register_unsigned instead of
1236 frame_unwind_unsigned_register.
1237 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1238 read_register.
1239 (m32r_push_dummy_call): Use register_size instead of
1240 REGISTER_RAW_SIZE.
1241 (m32r_frame_sniffer): Replace m32r_frame_p.
1242 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1243 * m32r-rom.c (report_transfer_performance): Delete extern
1244 declaration.
1245 (m32r_load, m32r_upload_command): Use print_transfer_performance
1246 instead of report_transfer_performance.
1247 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1248 / add_show_from_set.
1249
1250 2003-07-26 Andrew Cagney <cagney@redhat.com>
1251
1252 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1253 store_return_value and extract_struct_value_address.
1254
1255 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
1256
1257 PR c++/1267
1258 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1259 NULL, default to the section containing PC.
1260
1261 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1262
1263 * NEWS: Mention "regs" deprecated for m68hc11 too.
1264
1265 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1266 (m68hc11_print_register): New function to print out one register.
1267 (m68hc11_print_registers_info): New function to print registers.
1268 (show_regs): Deprecate and use the above.
1269 (m68hc11_gdbarch_init): Install the print_registers_info.
1270
1271 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1272
1273 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1274 that we have a SIGTRAP before returning non-zero.
1275
1276 2003-07-23 Michal Ludvig <mludvig@suse.cz>
1277 Elena Zannoni <ezannoni@redhat.com>
1278
1279 * linespec.c (decode_line_2): Avoid crash if
1280 find_function_start_sal() returns empty record.
1281
1282 2003-07-23 Andreas Schwab <schwab@suse.de>
1283
1284 * ia64-tdep.c (ia64_print_insn): New function.
1285 (ia64_gdbarch_init): Set print_insn to it.
1286 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1287 deprecated_tm_print_insn_info.
1288
1289 2003-07-22 Michael Snyder <msnyder@redhat.com>
1290
1291 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1292 handle 8-bit returns (long long).
1293 (h8300h_extract_return_value): Ditto.
1294 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1295
1296 2003-07-22 Andrew Cagney <cagney@redhat.com>
1297
1298 * gdbarch.c Include "gdb_obstack.h".
1299 (struct gdbarch): Add an "obstack".
1300 (alloc_gdbarch_data): Allocate the gdbarch data using
1301 GDBARCH_OBSTACK_CALLOC.
1302 (free_gdbarch_data): Delete function.
1303 (gdbarch_obstack_zalloc): New function.
1304 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1305 Assert that the architecture is not initialized.
1306 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1307 vector from the obstack.
1308 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1309 architecture obstack.
1310 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1311 (set_gdbarch_data): Assert that the data is not initialized.
1312 (struct gdbarch_data): Delete member "free".
1313 (register_gdbarch_data): Do not initialize "free".
1314 * gdbarch.h, gdbarch.c: Re-generate.
1315
1316 2003-07-22 Andrew Cagney <cagney@redhat.com>
1317
1318 * configure.in (build_warnings): Add -Wformat-nonliteral.
1319 * configure: Re-generate.
1320
1321 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1322
1323 * dwarf2loc.c (locexpr_describe_location): Fix typos.
1324
1325 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1326
1327 * findvar.c (read_var_value): Remove case for thread local storage
1328 variables. It is now entirely handled by the dwarf2 location
1329 expression code.
1330 * printcmd.c (address_info): Ditto.
1331 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1332 enumeration value.
1333 (struct symbol): Remove objfile field, which was used by
1334 LOC_THREAD_LOCAL_STATIC only.
1335 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1336 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1337 usage of objfile pointer.
1338 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1339 thread local variables.
1340 Add include of objfiles.h.
1341 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1342 storage variables.
1343 * Makefile.in (dwarf2loc.o): Update dependencies.
1344
1345 2003-07-22 Andrew Cagney <cagney@redhat.com>
1346
1347 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1348 get_frame_base.
1349 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1350 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1351 (struct value): Add opaque declaration.
1352 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1353
1354 2003-07-21 Andrew Cagney <cagney@redhat.com>
1355
1356 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1357 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1358
1359 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1360
1361 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1362 regcache_cooked_read_unsigned instead of read_register.
1363 (m68hc11_saved_pc_after_call): Likewise.
1364 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1365 instead of write_register.
1366 (m68hc11_register_type): New function.
1367 (m68hc11_register_virtual_type): Remove.
1368 (m68hc11_store_return_value): Convert to use the regcache.
1369 (m68hc11_extract_struct_value_address): Likewise.
1370 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1371 m68hc11_register_type; undeprecate store_return_value and
1372 extract_struct_value_address.
1373
1374 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1375
1376 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1377 and translate to use regcache.
1378 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1379
1380 2003-07-18 Andrew Cagney <cagney@redhat.com>
1381
1382 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1383 * gdbarch.h, gdbarch.c: Re-generate.
1384 * i386-tdep.c (i386_gdbarch_init): Do not set
1385 DWARF2_BUILD_FRAME_INFO.
1386 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1387 unconditionally.
1388 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1389 DWARF2_BUILD_FRAME_INFO.
1390
1391 2003-07-18 Andrew Cagney <cagney@redhat.com>
1392
1393 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1394 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1395
1396 2003-07-18 Andrew Cagney <cagney@redhat.com>
1397
1398 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1399 frame_unwind_address_in_block, instead of frame_pc_unwind.
1400 (dwarf2_frame_cache): Ditto.
1401
1402 2003-07-18 Andrew Cagney <cagney@redhat.com>
1403
1404 * user-regs.h (struct gdbarch): Declare opaque.
1405 * ui-out.h (struct ui_file): Declare opaque.
1406 * dwarf2-frame.h (struct frame_info): Declare opaque.
1407
1408 2003-07-18 Kris Warkentin <kewarken@qnx.com>
1409
1410 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1411 #include "...".
1412 (procfs_meminfo): Change strerror to safe_strerror.
1413 (procfs_can_run): Remove K&R badness.
1414
1415 2003-07-17 Michael Snyder <msnyder@redhat.com>
1416
1417 * remote-sim.c: Comment typo fix.
1418
1419 2003-07-17 Andrew Cagney <cagney@redhat.com>
1420
1421 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1422 configure.
1423 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1424 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1425 GDB_MULTI_ARCH_PARTIAL.
1426
1427 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
1428
1429 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1430 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1431 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1432
1433 2003-07-16 Theodore A. Roth <troth@openavr.org>
1434
1435 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1436 found.
1437 (avr_frame_unwind_cache): Don't unwind FP for main.
1438 Update a comment.
1439 Save the computed prev_sp.
1440 (avr_saved_regs_unwinder): Remove function.
1441 (avr_frame_prev_register): Use PC unwind logic from
1442 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1443
1444 2003-07-16 Andrew Cagney <cagney@redhat.com>
1445
1446 * frame-base.h (frame_base_p_ftype): Delete definition.
1447 (frame_base_append_predicate): Delete declaration.
1448 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1449 (frame_unwind_append_predicate): Delete declaration.
1450 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1451 (append_predicate): Delete parameter "p".
1452 (frame_unwind_append_predicate): Delete function.
1453 (frame_unwind_append_sniffer): Update call to append_predicate.
1454 (frame_unwind_free): Delete function.
1455 (_initialize_frame_unwind): Pass NULL as "free" to
1456 register_gdbarch_data.
1457 (frame_unwind_init): Append the dummy_frame_sniffer.
1458 (frame_unwind_find_by_frame): Simplify.
1459 * frame-base.c (struct frame_base_table): Delete field "p".
1460 (append_predicate): Delete parameter "p".
1461 (frame_base_append_predicate): Delete function.
1462 (frame_base_append_sniffer): Update call to append_predicate.
1463 (frame_base_free): Delete function.
1464 (frame_base_find_by_frame): Simplify.
1465 (_initialize_frame_base): Pass NULL as "free" to
1466 register_gdbarch_data.
1467 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1468 (x86_64_sigtramp_frame_sniffer): Replace
1469 "x86_64_sigtramp_frame_p".
1470 (x86_64_init_abi): Set the frame unwind sniffers.
1471 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1472 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1473 (m68k_gdbarch_init): Set the frame unwind sniffers.
1474 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1475 "i386_sigtramp_frame_p".
1476 (i386_frame_sniffer): Replace "i386_frame_p".
1477 (i386_gdbarch_init): Set the frame unwind sniffers.
1478 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1479 (avr_gdbarch_init): Set the frame unwind sniffers.
1480 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1481 "alpha_sigtramp_frame_p"
1482 (alpha_heuristic_frame_sniffer): Replace
1483 "alpha_heuristic_frame_p".
1484 (alpha_gdbarch_init): Set the frame unwind sniffers.
1485 (alpha_dwarf2_init_abi): Ditto.
1486 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1487 "alpha_debug_frame_p".
1488 (alpha_mdebug_frame_base_sniffer): Replace
1489 "alpha_mdebug_frame_base_p".
1490 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1491 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1492 (d10v_gdbarch_init): Set the frame unwind sniffer.
1493 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1494 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1495 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1496 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1497 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1498 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1499
1500 2003-07-16 Michael Snyder <msnyder@redhat.com>
1501
1502 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1503 should go thru sh_dsp_register_sim_regno, else the dsp regs
1504 will not get the right values.
1505
1506 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1507
1508 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1509 deprecated_store_floating by call to store_typed_floating.
1510 (sh_sh4_register_convert_to_raw): Substitute call to
1511 deprecated_extract_floating by call to extract_typed_floating.
1512
1513 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1514
1515 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1516
1517 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1518
1519 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1520 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1521 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1522 as possible.
1523 (do_pseudo_register): Remove.
1524 (sh_push_dummy_code): New function.
1525 (sh64_store_struct_return): Rename from sh_store_struct_return.
1526 Only called for sh64 now.
1527 (sh_extract_struct_value_address): Regcache'ify.
1528 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1529 and accomodate new tasks.
1530 (sh64_push_return_address): Rename from sh_push_return_address.
1531 Only called for sh64 now.
1532 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1533 Regcache'ify.
1534 (sh3e_sh4_extract_return_value): Regcache'ify.
1535 (sh_default_store_return_value): Ditto.
1536 (sh3e_sh4_store_return_value): Ditto.
1537 (sh_default_register_byte): Remove.
1538 (sh_sh4_register_byte): Remove.
1539 (sh_default_register_raw_size): Remove.
1540 (sh_sh4_register_raw_size): Remove.
1541 (sh_register_virtual_size): Remove.
1542 (sh_sh3e_register_virtual_type): Remove.
1543 (sh_sh3e_register_type): New function.
1544 (sh_sh4_register_virtual_type): Remove.
1545 (sh_sh4_register_type): New function.
1546 (sh_default_register_virtual_type): Remove.
1547 (sh_default_register_type): New function.
1548 (do_fv_register_info): Add parameters to accomodate call from
1549 sh_print_registers_info.
1550 (do_dr_register_info): Ditto.
1551 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1552 Add parameters to accomodate call from sh_print_registers_info.
1553 (sh_do_fp_register): Ditto.
1554 (sh64_do_pseudo_register): Call do_dr_register_info,
1555 do_fv_register_info and sh_do_fp_register with default parameters.
1556 (sh_do_register): Add parameters to accomodate call from
1557 sh_print_registers_info.
1558 (sh_print_register): Ditto.
1559 (sh_print_registers_info): Rename from sh_do_registers_info.
1560 Add parameters to be used as gdbarch_print_registers_info
1561 implementation. Accomodate removed do_pseudo_register function
1562 pointer.
1563 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1564 function pointer. Call sh_print_register with default parameters.
1565 (sh64_do_registers_info): Call sh_print_registers_info instead of
1566 sh_do_registers_info.
1567 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1568 detection of deprecated vs. non-deprecated functionality.
1569 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1570 function pointer assignments by direct function calls.
1571
1572 2003-07-15 Andrew Cagney <cagney@redhat.com>
1573
1574 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1575 (frame_register_unwind, create_new_frame): Ditto.
1576 (legacy_get_prev_frame, get_frame_type): Ditto.
1577 (get_frame_base_address): Use frame_base_find_by_frame.
1578 (get_frame_locals_address): Use frame_base_find_by_frame.
1579 (get_frame_args_address): Use frame_base_find_by_frame.
1580 * frame-base.h (frame_base_sniffer_ftype): Declare.
1581 (frame_base_append_sniffer): Declare.
1582 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1583 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1584 (frame_base_append_sniffer): New function.
1585 (frame_base_append_predicate): Add a NULL sniffer.
1586 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1587 (struct frame_base_table): Add "sniffer".
1588 (frame_base_free): Free the "sniffer" table.
1589 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1590 (frame_unwind_append_sniffer): Declare.
1591 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1592 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1593 (struct frame_unwind_table): Add "sniffer", delete "middle".
1594 (append_predicate): Add "sniffer" parameter, append the sniffer.
1595 (frame_unwind_init): Update append_predicate call.
1596 (frame_unwind_append_sniffer): New function.
1597 (frame_unwind_append_predicate): Update append_predicate call.
1598 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1599
1600 2003-07-15 Andrew Cagney <cagney@redhat.com>
1601
1602 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1603 before code inhibiting repeated unwind attempts. Add to
1604 commentary on that test's problems.
1605 * blockframe.c (inside_main_func): Look for "main" in the minimal
1606 symbol table.
1607 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1608 identical.
1609
1610 2003-07-15 Andrew Cagney <cagney@redhat.com>
1611
1612 * complaints.c (struct explanation): Define.
1613 (struct complaints): Change type of "explanation" to "struct
1614 explanation".
1615 (symfile_explanations): Convert to a "struct explanation" table.
1616 (vcomplaint): Update.
1617
1618 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1619
1620 * x86-64-linux-nat.c (regmap): Removed.
1621 (supply_gregset, fill_gregset): Call
1622 x86_64_linux_(fill,supply)_gregset functions.
1623 * x86-64-linux-tdep.c (USER_*): New defines.
1624 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1625 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1626 New functions.
1627 (fetch_core_registers): Ditto.
1628 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1629 * x86-64-linux-tdep.h: New file.
1630 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1631 and core-regset.o.
1632 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1633
1634 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1635
1636 * x86-64-tdep.c (x86_64_store_return_value): Use
1637 regcache_cooked_write_part instead of regcache_cooked_write.
1638
1639 * configure.host: Add x86_64-*-freebsd*.
1640 * configure.tgt: Add x86_64-*-freebsd*.
1641 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1642 * amd64fbsd-nat.c: New file.
1643 * amd64fbsd-tdep.c: New file.
1644 * config/i386/nm-fbsd64.h: New file.
1645 * config/i386/fbsd64.mh: New file.
1646 * config/i386/fbsd64.mt: New file.
1647
1648 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1649
1650 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1651 `sc_regs_offset' and `sc_fpregs_offset'.
1652 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1653 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1654 (alpha_sigtramp_register_address): Rewrite to use new members of
1655 `struct gdbarch_tdep'.
1656 (alpha_gdbarch_init): Initialize new members of struct
1657 gdbarch_tdep'.
1658 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1659 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1660 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1661 (alphafbsd_pc_in_sigtramp): Implement.
1662 (alphafbsd_sigtramp_offset): New function.
1663 (alphafbsd_sigcontext_addr): New function.
1664 (alphafbsd_init_abi): Initialize signal trampoline related members
1665 of `struct gdbarch_tdep'.
1666 (_initialize_alphafbsd_tdep): Add prototype.
1667
1668 2003-07-11 Theodore A. Roth <troth@openavr.org>
1669
1670 * Makefile.in (install-only): Quote sed expression when generating
1671 transformed_name.
1672
1673 2003-07-11 Richard Henderson <rth@redhat.com>
1674
1675 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1676 * dwarf2-frame.c: Include complaints.h.
1677 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1678 variable initialization; return NULL on error.
1679 (decode_frame_entry): New.
1680
1681 2003-07-11 Andrew Cagney <cagney@redhat.com>
1682
1683 * frame.h (frame_address_in_block): Delete declaration.
1684 * blockframe.c (frame_address_in_block): Delete function.
1685 (get_frame_block): Use get_frame_address_in_block.
1686 (block_innermost_frame): Ditto.
1687 * stack.c (print_frame, backtrace_command_1): Ditto.
1688
1689 * frame.h (get_frame_address_in_block): Declare.
1690 (frame_unwind_address_in_block): Declare.
1691 * frame.c (frame_unwind_address_in_block): New function.
1692 (get_frame_address_in_block): New function.
1693
1694 2003-07-10 Andrew Cagney <cagney@redhat.com>
1695
1696 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1697 pre-default. Note: re-generate has no effect.
1698
1699 2003-07-10 Andrew Cagney <cagney@redhat.com>
1700
1701 * gdbarch.sh: When a variable, but not a function, compare against
1702 0. Fix problem in previous patch.
1703 * gdbarch.c: Re-generate.
1704
1705 2003-07-10 Andrew Cagney <cagney@redhat.com>
1706
1707 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1708 functions against NULL, not 0.
1709 * gdbarch.c: Re-generate.
1710
1711 2003-07-10 Fred Fish <fnf@ninemoons.com>
1712
1713 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1714 null string instead of a null pointer.
1715 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1716
1717 2003-07-09 Michael Snyder <msnyder@redhat.com>
1718
1719 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1720
1721 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1722
1723 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1724 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1725 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1726 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1727 * x86-64-tdep.c: ... from here.
1728
1729 2003-07-09 Andreas Schwab <schwab@suse.de>
1730
1731 * m68k-tdep.h (enum struct_return): Define.
1732 (struct gdbarch_tdep): Add struct_return.
1733 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1734 bytes are padded to the right, not to the left. Pass struct value
1735 address in register %a1, not on stack.
1736 (m68k_use_struct_convention): New function.
1737 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1738 struct_return in tdep to pcc_struct_return.
1739 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1740 reg_struct_return.
1741
1742 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1743
1744 * somread.c (som_symfile_offsets): Fix compilation error.
1745
1746 2003-07-09 Andrew Cagney <cagney@redhat.com>
1747
1748 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1749 Add comments about the checks.
1750
1751 2003-07-08 Andrew Cagney <cagney@redhat.com>
1752
1753 * Makefile.in: Make dependency section headers consistent.
1754 (config_h): Move to $BUILD headers section.
1755 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1756 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1757 (ada-exp.tab.c): Move to YACC/LEX section.
1758 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1759 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1760
1761 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1762
1763 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1764 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1765 of strerror with safe_strerror, use ISO C function definitions,
1766 and replace instances of sprintf with snprintf.
1767
1768 2003-07-07 Andrew Cagney <cagney@redhat.com>
1769
1770 * frame.c (get_prev_frame): Enable check for identical frames.
1771 Update comments. Update error messages.
1772
1773 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1774
1775 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1776
1777 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1778
1779 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1780 sort_symtab_syms, no longer necessary.
1781
1782 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1783
1784 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1785
1786 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1787
1788 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1789 (mips_register_byte): Likewise.
1790
1791 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1792
1793 * Makefile.in (sparc_tdep_h): New.
1794 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1795 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1796 * sparc-linux-nat.c: Include "sparc-tdep.h".
1797 * sparc-nat.c: Likewise.
1798 * sparc-tdep.c: Likewise.
1799 * sparc64nbsd-nat.c: Likewise.
1800 * sparcnbsd-nat.c: Likewise.
1801 * sparcnbsd-tdep.c: Likewise.
1802 * sparc-tdep.h: New file.
1803 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1804 and sparc_npc_regnum.
1805
1806 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1807
1808 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1809 (mips_linux_cannot_store_register): List supported instead of
1810 unsupported registers.
1811
1812 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1813
1814 * disasm.c (dump_insns): Separate instructions from addresses.
1815
1816 2003-07-07 Andreas Schwab <schwab@suse.de>
1817
1818 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1819 dependencies.
1820 * m68k-tdep.c (NUM_FREGS): Delete.
1821 (SIG_PC_FP_OFFSET): Delete.
1822 (TARGET_M68K): Delete.
1823 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1824 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1825 P_MOVEL_SP, P_MOVEML_SP): Define.
1826 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1827 P_TRAP): Delete.
1828 (m68k_register_raw_size): Delete.
1829 (m68k_register_virtual_size): Delete.
1830 (m68k_register_type): Renamed from m68k_register_virtual_type and
1831 add gdbarch argument.
1832 (m68k_store_struct_return): Delete.
1833 (m68k_deprecated_extract_return_value): Delete.
1834 (m68k_deprecated_extract_struct_value_address): Delete.
1835 (m68k_frame_chain): Delete.
1836 (m68k_frame_saved_pc): Delete.
1837 (m68k_fix_call_dummy): Delete.
1838 (m68k_push_dummy_frame): Delete.
1839 (m68k_pop_frame): Delete.
1840 (m68k_extract_return_value): New function.
1841 (m68k_store_return_value): Rewrite using regcache.
1842 (m68k_extract_struct_value_address): Rewrite using regcache.
1843 (m68k_push_dummy_call): New function.
1844 (struct m68k_frame_cache): Define.
1845 (m68k_alloc_frame_cache): New function.
1846 (m68k_analyze_frame_setup): New function.
1847 (m68k_analyze_register_saves): New function.
1848 (m68k_analyze_prologue): New function.
1849 (m68k_skip_prologue): Rewrite using above functions.
1850 (m68k_unwind_pc): New function.
1851 (m68k_frame_cache): New function.
1852 (m68k_frame_this_id): New function.
1853 (m68k_frame_prev_register): New function.
1854 (m68k_frame_unwind): New variable.
1855 (m68k_frame_p): New function.
1856 (m68k_sigtramp_frame_cache): New function.
1857 (m68k_sigtramp_frame_this_id): New function.
1858 (m68k_sigtramp_frame_prev_register): New function.
1859 (m68k_sigtramp_frame_unwind): New variable.
1860 (m68k_sigtramp_frame_p): New function.
1861 (m68k_frame_base_address): New function.
1862 (m68k_frame_base): New function.
1863 (m68k_unwind_dummy_id): New function.
1864 (fill_gregset): Use regcache_collect.
1865 (fill_fpregset): Likewise.
1866 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1867 defined.
1868 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1869 deprecated_init_frame_pc, deprecated_store_struct_return,
1870 deprecated_extract_return_value, deprecated_store_return_value,
1871 deprecated_frame_chain, deprecated_frame_saved_pc,
1872 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1873 deprecated_register_virtual_size,
1874 deprecated_max_register_raw_size,
1875 deprecated_max_register_virtual_size,
1876 deprecated_register_virtual_type, deprecated_register_size,
1877 deprecated_register_byte, deprecated_register_bytes,
1878 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1879 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1880 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1881 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1882 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1883 deprecated_push_dummy_frame, deprecated_pop_frame,
1884 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1885 only if SYSCALL_TRAP is defined. Set extract_return_value,
1886 store_return_value, extract_struct_value_address, register_type,
1887 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1888 predicates.
1889 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1890 M68K_MAX_REGISTER_SIZE): Define.
1891 (struct m68k_sigtramp_info): Define.
1892 (struct gdbarch_tdep): Add get_sigtramp_info.
1893 * m68klinux-nat.c (fetch_register): Use register_size instead of
1894 REGISTER_RAW_SIZE. Don't put assignment in if.
1895 (store_register): Likewise.
1896 (fetch_inferior_registers): Likewise.
1897 (store_inferior_registers): Likewise.
1898 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1899 (m68k_linux_frame_saved_pc): Delete.
1900 (m68k_linux_sigcontext_reg_offset,
1901 m68k_linux_ucontext_reg_offset): Define.
1902 (m68k_linux_get_sigtramp_info): New function.
1903 (m68k_linux_extract_return_value): Rewrite using regcache.
1904 (m68k_linux_store_return_value): Likewise.
1905 (m68k_linux_extract_struct_value_address): Likewise.
1906 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1907 Don't set deprecated_frame_saved_pc,
1908 deprecated_extract_return_value, deprecated_store_return_value,
1909 deprecated_extract_struct_value_address. Set
1910 extract_return_value, store_return_value,
1911 extract_struct_value_address.
1912
1913 2003-07-07 Andrew Cagney <cagney@redhat.com>
1914
1915 * expprint.c: Include "user-regs.h" instead of "frame.h".
1916 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1917 frame_map_regnum_to_name.
1918 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1919 (frame_map_name_to_regnum): Simplify, call
1920 user_reg_map_name_to_regnum.
1921 (frame_map_regnum_to_name): Simplify, call
1922 user_reg_map_regnum_to_name.
1923 (frame_register_unwind): Update.
1924 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1925 (_initialize_frame_reg): Call user_reg_add_builtin.
1926 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1927 (value_of_register): Use value_of_user_reg.
1928 * eval.c (evaluate_subexp_standard): Update.
1929 * parse.c (write_dollar_variable): Update.
1930 * d10v-tdep.c (d10v_print_registers_info): Update.
1931 * infcmd.c (registers_info): Update.
1932 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1933 (builtin_regs_h): Delete macro.
1934 (user_regs_h): Define.
1935 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1936 (builtin-regs.o): Delete target.
1937 (user-regs.o): Specify dependencies.
1938 (expprint.o): Update dependencies.
1939 (findvar.o): Update dependencies.
1940 (frame.o): Update dependencies.
1941 (std-regs.o): Update dependencies.
1942
1943 2003-07-06 Christopher Faylor <cgf@redhat.com>
1944
1945 * win32-nat.c (solib_symbols_add): Use one variable for all section
1946 address stuff. Pass variable rather than address of variable to
1947 safe_symbol_file_add.
1948
1949 2003-07-06 Andreas Schwab <schwab@suse.de>
1950
1951 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1952
1953 2003-07-04 Joel Brobecker <brobecker@gnat.com>
1954
1955 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1956
1957 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1958
1959 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1960
1961 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1962
1963 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1964 * config/i386/nto.mh: New file.
1965 * config/i386/nm-nto.h: New file.
1966 * configure.host: Add i[3456]86-*-nto*.
1967
1968 2003-07-03 Joel Brobecker <brobecker@gnat.com>
1969
1970 * remote-vx.c (vx_add_symbols): Fix compilation error.
1971
1972 2003-07-03 Andrew Cagney <cagney@redhat.com>
1973
1974 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1975 * gdbarch.h, gdbarch.c: Re-generate.
1976 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1977 (legacy_register_name): Declare.
1978 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1979 (REGISTER_NAME): Define.
1980 * sparc-tdep.c (legacy_register_name): New function.
1981 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1982 (REGISTER_NAME): Define.
1983 (hppa64_register_name): Declare.
1984 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1985 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1986 (hppa64_register_name): New function.
1987 (hppa_register_name): New function.
1988 * arch-utils.c (legacy_register_name): Delete.
1989 * arch-utils.h (legacy_register_name): Delete.
1990
1991 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
1992
1993 * cli/cli-interp.c (cli_interpreter_resume): Update the
1994 cli_uiout's stream to gdb_stdout.
1995
1996 2003-07-03 Andrew Cagney <cagney@redhat.com>
1997
1998 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1999 predicate.
2000 * gdbarch.h, gdbarch.c: Re-generate.
2001 * regcache.c (init_regcache_descr): Use legacy code when either
2002 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2003
2004 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2005
2006 * NEWS: Move "set logging" entry into GDB 6.0 section.
2007
2008 2003-07-02 Jim Blandy <jimb@redhat.com>
2009
2010 * s390-tdep.c (struct frame_extra_info): new member:
2011 'stack_bought_valid'.
2012 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2013 initialize fextra_info->stack_bought.
2014 (s390_frameless_function_invocation): Don't trust the value of
2015 fextra_info_ptr->stack_bought unless
2016 fextra_info->stack_bought_valid is set.
2017
2018 New S390 prologue analyzer.
2019 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2020 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2021 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2022 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2023 compute_x_addr, s390_on_stack, s390_store,
2024 s390_get_signal_frame_info): New functions.
2025 (S390_NUM_SPILL_SLOTS): New macro.
2026 (s390_get_frame_info): Rewritten.
2027 (is_arg_reg): Deleted.
2028
2029 Break out the decoding of S/390 instructions into separate
2030 functions, to make it more legible, and easier to check
2031 against the spec.
2032 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2033 is_rx, is_rxe): New functions.
2034 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2035 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2036 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2037 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2038 enums for opcode values. (Is this an improvement?)
2039
2040 2003-07-02 Andrew Cagney <cagney@redhat.com>
2041
2042 * i386-tdep.c: Revert change committed as part of trad-frame code
2043 below.
2044
2045 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2046
2047 * breakpoint.c (insert_catchpoint): Make static.
2048
2049 2003-07-02 Andreas Schwab <schwab@suse.de>
2050
2051 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2052 former ia64_push_arguments and ia64_push_return_address, and use
2053 regcache functions instead of read/write_register.
2054 (ia64_gdbarch_init): Set push_dummy_call instead of
2055 deprecated_push_arguments and deprecated_push_return_address.
2056
2057 2003-07-01 Andreas Jaeger <aj@suse.de>
2058
2059 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2060 before the call.
2061 Set %rax only to number of SSE registers used.
2062
2063 2003-07-01 Andrew Cagney <cagney@redhat.com>
2064
2065 * trad-frame.h: Update comments, a -1 .addr is reserved.
2066 (trad_frame_value_p, trad_frame_addr_p): Declare.
2067 (trad_frame_reg_p): Declare.
2068 (trad_frame_set_value): Rename trad_frame_register_value.
2069 (trad_frame_set_unknown): Declare.
2070 * trad-frame.c (trad_frame_realreg_p): New function.
2071 (trad_frame_addr_p, trad_frame_value_p): New function.
2072 (trad_frame_set_unknown): New function.
2073 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2074 (trad_frame_prev_register): Use trad_frame_realreg_p,
2075 trad_frame_addr_p and trad_frame_value_p.
2076 (trad_frame_set_value): Rename trad_frame_register_value.
2077 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2078 and trad_frame_set_value.
2079
2080 2003-06-30 Jim Blandy <jimb@redhat.com>
2081
2082 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2083 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2084 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2085 for 16 registers, and then 32 more bytes.
2086 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2087 New macros.
2088 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2089 Move up in the file, since it's now used by is_simple_arg.
2090 (is_simple_arg): Don't assume registers are four bytes long.
2091 Exclude all double arguments. Extended floats are not simple
2092 args.
2093 (is_power_of_two): New function.
2094 (pass_by_copy_ref): Call is_power_of_two, and check that the
2095 length fits in a register, rather than listing all the acceptable
2096 sizes. Extended floats are not passed by reference.
2097 (s390_push_arguments): Don't assume registers are four bytes long.
2098 Reserve an argument register to point to the buffer for structures
2099 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2100 S390_STACK_FRAME_OVERHEAD.
2101
2102 2003-06-30 Andreas Schwab <schwab@suse.de>
2103
2104 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2105 format error message.
2106
2107 2003-06-30 Joel Brobecker <brobecker@gnat.com>
2108
2109 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2110
2111 2003-06-30 David Carlton <carlton@kealia.com>
2112
2113 Band-aid for PR c++/1245.
2114 * Makefile.in (cp-support.o): Depend on complaints_h.
2115 * cp-support.c: Include complaints.h. Add declaration for
2116 find_last_component.
2117 (cp_find_first_component): Separate code into
2118 cp_find_first_component_aux.
2119 (cp_find_first_component_aux): Call demangled_name_complaint.
2120 (demangled_name_complaint): New.
2121
2122 2003-06-30 Andrew Cagney <cagney@redhat.com>
2123
2124 * remote.c (remote_write_bytes): Explicitly compute and then use
2125 the payload size. Update comments to reflect. Fixes problem of
2126 GDB not sending small packets as found by Fred Fish.
2127
2128 2003-06-30 Andrew Cagney <cagney@redhat.com>
2129
2130 * remote.c (remote_async_wait): Fix -Wformat problem.
2131
2132 2003-06-29 Andrew Cagney <cagney@redhat.com>
2133
2134 * remote.c (remote_wait): Call error, and not warning, when the
2135 packet is corrupt.
2136 (remote_async_wait): Ditto.
2137
2138 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2139
2140 * sparc-tdep.c (sparc_y_regnum): Make external again.
2141
2142 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2143
2144 * cli/cli-logging.c (pop_output_files): Add void to function
2145 definition.
2146
2147 2003-06-29 Andrew Cagney <cagney@redhat.com>
2148
2149 * frame.c (frame_register_unwind): Use unsigned char when dumping
2150 the buffer contents.
2151
2152 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
2153
2154 * cli/cli-logging.c: New file.
2155 * cli-out.c (struct ui_out_data): Add original_stream.
2156 (cli_redirect): New function.
2157 (cli_ui_out_impl): Add cli_redirect.
2158 (cli_out_new): Initialize original_stream.
2159 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2160 (uo_redirect, ui_out_redirect): New.
2161 * ui-out.h (struct ui_out_impl): Add redirect member.
2162 (redirect_ftype): New.
2163 (ui_out_redirect): Add prototype.
2164 * Makefile.in: Add rules for cli-logging.c.
2165 * NEWS: Mention "set logging".
2166
2167 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2168
2169 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2170
2171 2003-06-27 Andrew Cagney <cagney@redhat.com>
2172
2173 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2174 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2175 * avr-tdep.c (avr_call_dummy_address): Delete function.
2176 (avr_gdbarch_init): Do not set call_dummy_address.
2177
2178 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2179
2180 * symfile.c (syms_from_objfile): Move variables to inner block.
2181 Move the checks for the non-mainline case a bit earlier to avoid
2182 doing some useless computations.
2183
2184 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2185
2186 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2187
2188 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
2189
2190 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2191 sections.
2192
2193 2003-06-26 Michael Chastain <mec@shout.net>
2194
2195 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2196 gdb/testsuite/gdb.c++/pr-1210.exp.
2197
2198 2003-06-26 Andrew Cagney <cagney@redhat.com>
2199
2200 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2201 altivec_expression.h and altivec_registers.h.
2202
2203 2003-06-26 Andrew Cagney <cagney@redhat.com>
2204
2205 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2206 info->mach when MIPS16. Patch suggested by Fred Fish.
2207
2208 2003-06-26 Andrew Cagney <cagney@redhat.com>
2209
2210 * utils.c (internal_vproblem): Print the problem to a reason
2211 buffer and then pass to query. Make the msg variable more local.
2212
2213 2003-06-26 Andrew Cagney <cagney@redhat.com>
2214
2215 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2216 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2217 * gdbarch.h, gdbarch.c: Re-generate.
2218 * frame-base.c (default_frame_args_address): Update. Use
2219 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2220 not available.
2221 (default_frame_locals_address): Ditto for
2222 DEPRECATED_FRAME_LOCALS_ADDRESS.
2223 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2224 (vax_frame_num_args): Update.
2225 (vax_gdbarch_init): Update.
2226 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2227 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2228 * mcore-tdep.c (mcore_gdbarch_init): Update.
2229 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2230 * ia64-tdep.c (ia64_gdbarch_init): Update.
2231 * symtab.h (address_class): Update comments.
2232 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2233 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2234 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2235 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2236 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2237 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2238 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2239 * alpha-mdebug-tdep.c: Update.
2240 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2241
2242 2003-06-26 Andreas Jaeger <aj@suse.de>
2243
2244 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2245 of SSE registers so that varargs functions work. Rework handling
2246 of passing arguments on the stack.
2247 (x86_64_store_return_value): Return double and float values in SSE
2248 register.
2249
2250 2003-06-24 Michael Chastain <mec@shout.net>
2251
2252 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2253 the "constructor breakpoints ignored" bug.
2254
2255 2003-06-25 David Carlton <carlton@kealia.com>
2256
2257 * MAINTAINERS: Update e-mail address.
2258
2259 2003-06-24 Jim Blandy <jimb@redhat.com>
2260
2261 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2262
2263 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2264 function.
2265 (ppc_linux_init_abi): Register it as the
2266 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2267
2268 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2269 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2270 method.
2271
2272 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2273 (ppc64_standard_linkage_target): Use it.
2274
2275 2003-06-23 Andrew Cagney <cagney@redhat.com>
2276
2277 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2278 for 0 "int0" and 4 "int32" sized registers.
2279 * gdbtypes.c (builtin_type_int0): Define.
2280 (build_gdbtypes): Initialize builtin_type_int0.
2281 * gdbtypes.h (builtin_type_int0): Declare.
2282
2283 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2284
2285 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2286 as characters are unsigned.
2287
2288 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2289
2290 PR gdb/1179
2291 * dwarfread.c (struct_type): Skip static fields without crashing.
2292
2293 2003-06-22 Andrew Cagney <cagney@redhat.com>
2294
2295 GDB 6.0 branch created.
2296 * README: Update.
2297 * PROBLEMS: Update. Empty.
2298 * NEWS: Update.
2299
2300 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2301
2302 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2303 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2304
2305 2003-06-22 Andrew Cagney <cagney@redhat.com>
2306
2307 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2308 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2309 Velikov.
2310
2311 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2312
2313 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2314 compilers.
2315
2316 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2317
2318 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2319 argument of val_print.
2320 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2321 to the address argument of baseclass_offset or target_read_memory.
2322 Do add it to the argument of cp_print_value_fields.
2323
2324 2003-06-21 Andrew Cagney <cagney@redhat.com>
2325
2326 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2327 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2328 instead of 0..NUM_REGS.
2329 (mips_register_reggroup_p): New function.
2330 (mips_pseudo_register_write): New function.
2331 (mips_pseudo_register_read): New function.
2332 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2333 based on the register's type.
2334 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2335 cooked.
2336 (mips_get_saved_register): Simplify. Assert that REGNO is a
2337 pseudo / cooked.
2338 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2339 (mips_register_type): Replace mips_register_virtual_type. Map
2340 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2341 when available.
2342 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2343 that the register is cooked / virtual.
2344 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2345 Only get the extra info when needed.
2346 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2347 (mips32_heuristic_proc_desc): Fetch the cooked register.
2348 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2349 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2350 (mips_print_register): Use gdbarch_register_type, instead of
2351 REGISTER_VIRTUAL_TYPE.
2352 (print_gp_register_row): Use gdbarch_register_type, instead of
2353 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2354 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2355 Print the pseudo / cooked registers.
2356 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2357 Print the pseudo / cooked registers.
2358 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2359 REG_NUM is pseudo / cooked.
2360 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2361 (mips_n32n64_xfer_return_value): Ditto.
2362 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2363 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2364 (mips_register_sim_regno): New function.
2365 (mips_gdbarch_init): Set deprecated_register_byte,
2366 register_group_p, pseudo_register_write, pseudo_register_read,
2367 register_sim_regno, and num_pseudo_regs. Set register_type,
2368 instead of register_virtual_type.
2369 * Makefile.in (mips-tdep.o): Update dependencies.
2370 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2371 REGISTER_VIRTUAL_TYPE.
2372 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2373 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2374 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2375 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2376 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2377
2378 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2379
2380 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2381 * cli/cli-cmds.c: Include "gdb_vfork.h".
2382 (shell_escape): Use vfork.
2383
2384 2003-06-21 Andrew Cagney <cagney@redhat.com>
2385
2386 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2387 32 bit floating-point register saves.
2388
2389 * frame.h (deprecated_unwind_get_saved_register): Delete.
2390 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2391 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2392 and deprecated_get_next_frame_hack instead of
2393 deprecated_unwind_get_saved_register.
2394
2395 * mips-tdep.c (mips_dump_tdep): Do not print
2396 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2397
2398 * frame.c (get_frame_register): New function.
2399 (frame_unwind_register_signed): New function.
2400 (get_frame_register_signed): New function.
2401 (frame_unwind_register_unsigned): New function.
2402 (get_frame_register_unsigned): New function.
2403 * frame.h: Add comments on naming schema.
2404 (get_frame_register, frame_unwind_register_signed): Declare.
2405 (get_frame_register_signed, get_frame_register_signed): Declare.
2406 (frame_unwind_register_unsigned): Declare.
2407 (get_frame_register_unsigned): Declare.
2408
2409 2003-06-20 Theodore A. Roth <troth@openavr.org>
2410
2411 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2412
2413 2003-06-20 Theodore A. Roth <troth@openavr.org>
2414
2415 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2416 (avr_read_sp): Ditto.
2417
2418 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
2419
2420 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2421 * config/arm/nm-linux.h: Likewise.
2422 * config/arm/tm-linux.h: Likewise.
2423 * config/ia64/nm-linux.h: Likewise.
2424 * config/ia64/tm-ia64.h: Likewise.
2425 * config/s390/tm-linux.h: Likewise.
2426 * config/s390/tm-s390.h: Likewise.
2427 * s390-nat.c: Likewise.
2428 * s390-tdep.c: Likewise.
2429
2430 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2431 * config/ia64/linux.mt: Likewise.
2432 * config/m68k/linux.mh: Likewise.
2433 * config/mips/linux.mt: Likewise.
2434 * config/powerpc/linux.mh: Likewise.
2435 * config/sh/linux.mt: Likewise.
2436
2437 2003-06-19 Kris Warkentin <kewarken@qnx.com>
2438
2439 * solib.c (solib_open): Change tests for whether to search
2440 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2441 comments.
2442
2443 2003-06-19 Theodore A. Roth <troth@openavr.org>
2444
2445 * avr-tdep.c (avr_frame_address): Delete function.
2446 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2447 set_gdbarch_frame_args_address.
2448
2449 2003-06-19 Andrew Cagney <cagney@redhat.com>
2450
2451 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2452 (REGISTER_CONVERT_FROM_TYPE): Delete.
2453 (mips_register_convert_to_type): Delete declaration.
2454 (mips_register_convert_from_type): Delete declaration.
2455 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2456 kernel/.
2457
2458 2003-06-19 Michael Snyder <msnyder@redhat.com>
2459
2460 * linux-nat.h: New file.
2461 * linux-nat.c: Include linux-nat.h.
2462 * lin-lwp.c: Include linux-nat.h.
2463 Move struct lwp_info def to linux-nat.h.
2464 * linux-proc.c: Include linux-nat.h.
2465 (linux_make_note_section): Iterate over lwps instead of threads.
2466 (linux_do_thread_registers): Use lwp instead of merged pid.
2467 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2468 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2469 Add dependency on linux_nat_h.
2470
2471 2003-06-19 Theodore A. Roth <troth@openavr.org>
2472
2473 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2474
2475 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2476
2477 * varobj.c (get_type, get_target_type): Use check_typedef.
2478
2479 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2480
2481 * breakpoint.c (insert_catchpoint): Call internal_error.
2482
2483 2003-06-19 Theodore A. Roth <troth@openavr.org>
2484
2485 * avr-tdep.c (avr_push_dummy_code): Delete function.
2486 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2487
2488 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2489
2490 * arch-utils.c (default_prepare_to_proceed): Remove.
2491 (generic_prepare_to_proceed): Remove.
2492 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2493 (generic_prepare_to_proceed): Remove prototype.
2494 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2495 * gdbarch.c: Regenerate.
2496 * gdbarch.h: Regenerate.
2497 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2498 * hppah-nat.c (hppa_switched_threads): Remove.
2499 * infrun.c (prepare_to_proceed): New static function, copied from
2500 generic_prepare_to_proceed. Remove select_it argument.
2501 (proceed): Call prepare_to_proceed.
2502 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2503 variables.
2504 (ptrace_wait): Don't set the removed variables.
2505 (hppa_switched_threads): Remove.
2506 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2507 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2508 (lin_lwp_prepare_to_proceed): Remove prototype.
2509 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2510 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2511
2512 2003-06-18 Theodore A. Roth <troth@openavr.org>
2513
2514 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2515 trad-frame.h.
2516 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2517 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2518 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2519 (AVR_PROLOGUE_*): Enumerate prologue types.
2520 (struct frame_extra_info): Remove.
2521 (struct avr_unwind_cache): Define.
2522 (avr_write_sp): Delete function.
2523 (avr_read_fp): Ditto.
2524 (avr_init_extra_frame_info): Ditto.
2525 (avr_pop_frame): Ditto.
2526 (avr_frame_saved_pc): Ditto.
2527 (avr_saved_pc_after_call): Ditto.
2528 (avr_push_return_address): Ditto.
2529 (avr_frame_chain): Ditto.
2530 (avr_store_struct_return): Ditto.
2531 (avr_push_arguments): Ditto.
2532 (avr_scan_prologue): Update comments. Changed to set up the info for
2533 cache unwinding. Now returns end of prologue PC.
2534 (avr_skip_prologue): Better handling of functions lacking a prologue
2535 by using avr_scan_prologue.
2536 (avr_scan_arg_moves): New function.
2537 (avr_saved_regs_unwinder): Ditto.
2538 (avr_frame_unwind_cache): Ditto.
2539 (avr_unwind_pc): Ditto.
2540 (avr_frame_this_id): Ditto.
2541 (avr_frame_prev_register): Ditto.
2542 (avr_frame_p): Ditto.
2543 (avr_frame_base_address ): Ditto.
2544 (avr_unwind_dummy_id): Ditto.
2545 (avr_push_dummy_code): Ditto.
2546 (push_stack_item): Ditto.
2547 (pop_stack_item): Ditto.
2548 (avr_push_dummy_call): Ditto.
2549 (struct stack_item): Define.
2550 (avr_frame_unwind): Declare structure.
2551 (avr_frame_base): Ditto.
2552 (avr_gdbarch_init): Remove calls to
2553 set_gdbarch_deprecated_init_frame_pc,
2554 set_gdbarch_deprecated_target_read_fp,
2555 set_gdbarch_deprecated_dummy_write_sp,
2556 set_gdbarch_deprecated_fp_regnum,
2557 set_gdbarch_deprecated_push_arguments,
2558 set_gdbarch_deprecated_push_return_address,
2559 set_gdbarch_deprecated_pop_frame,
2560 set_gdbarch_deprecated_store_struct_return,
2561 set_gdbarch_deprecated_frame_init_saved_regs,
2562 set_gdbarch_deprecated_init_extra_frame_info,
2563 set_gdbarch_deprecated_frame_chain,
2564 set_gdbarch_deprecated_frame_saved_pc,
2565 set_gdbarch_deprecated_saved_pc_after_call.
2566 Add calls to set_gdbarch_push_dummy_call,
2567 set_gdbarch_push_dummy_code,
2568 frame_unwind_append_predicate,
2569 frame_base_set_default,
2570 set_gdbarch_unwind_dummy_id,
2571 set_gdbarch_unwind_pc.
2572 Wrap a long line.
2573
2574 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2575
2576 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2577 registers for H8/300S.
2578 (h8300_print_registers_info): Ditto.
2579 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2580
2581 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2582
2583 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2584 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2585 (lin_lwp_wait): Likewise. Update comments.
2586 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2587 (pull_pid_from_list, linux_record_stopped_pid): New.
2588
2589 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2590
2591 * ada-lang.c (scan_discrim_bound): Name first argument.
2592 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2593 declared by ALL_BLOCK_SYMBOLS.
2594
2595 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2596
2597 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2598 ("regcache.h"): Include it.
2599 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2600
2601 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2602
2603 * NEWS: Mention gdbserver detach change and "disconnect" command.
2604 * infcmd.c (disconnect_command): New function.
2605 (_initialize_infcmd): Add ``disconnect'' command.
2606 * remote.c (remote_async_detach): Delete.
2607 (remote_detach): Merge remote_async_detach.
2608 (remote_disconnect): New.
2609 (init_remote_ops): Set to_disconnect.
2610 (init_remote_cisco_ops): Likewise.
2611 (init_remote_async_ops): Likewise. Use remote_detach.
2612 * target.c (cleanup_target): Default to_disconnect.
2613 (update_current_target): Inherit to_disconnect.
2614 (target_disconnect, debug_to_disconnect): New functions.
2615 (setup_target_debug): Set to_disconnect.
2616 * target.h (struct target_ops): Add to_disconnect.
2617 (target_disconnect): Add prototype.
2618
2619 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2620
2621 * breakpoint.c (insert_catchpoint): New function.
2622 (insert_breakpoints): Use catch_exceptions to call
2623 insert_catchpoint. Disable catchpoints if they fail to insert.
2624
2625 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2626
2627 * symfile.c (reread_symbols): Clear sym_private.
2628
2629 2003-06-17 Andrew Cagney <cagney@redhat.com>
2630
2631 * trad-frame.h (struct frame_info): Add opaque declaration.
2632 * remote-fileio.h (struct cmd_list_element): Add opaque
2633 declaration.
2634 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2635 comments.
2636
2637 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2638
2639 * remote.c (remote_prepare_to_store): Replace call to
2640 deprecated_read_register_bytes with multiple regcache_raw_read
2641 calls.
2642
2643 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2644
2645 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2646 (nto_find_and_open_solib): Likewise.
2647 (nto_init_solib_absolute_prefix): Likewise.
2648 (_initialize_nto_tdep): Fix indentation.
2649
2650 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2651
2652 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2653
2654 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2655
2656 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2657
2658 2003-06-17 Jim Blandy <jimb@redhat.com>
2659
2660 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2661
2662 2003-06-16 Theodore A. Roth <troth@openavr.org>
2663
2664 * avr-tdep.c (avr_extract_return_value): New function.
2665 (avr_gdbarch_init): Set extract_return_value method.
2666
2667 2003-06-16 Andrew Cagney <cagney@redhat.com>
2668
2669 * frame.h (deprecated_get_next_frame_hack): Declare.
2670 * frame.c (legacy_saved_regs_prev_register): Only require
2671 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2672 there are always saved regs.
2673 (deprecated_generic_get_saved_register): Do not require
2674 DEPRECATED_FRAME_INIT_SAVED_REGS.
2675 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2676 use frame ID unwind instead.
2677 (deprecated_get_next_frame_hack): New function.
2678
2679 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2680
2681 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2682 (h8300_push_dummy_call): ...this function. Some minor optimization.
2683 (h8300_push_return_address): Remove.
2684 (h8300_gdbarch_init): Remove calls to
2685 set_gdbarch_deprecated_dummy_write_sp,
2686 set_gdbarch_deprecated_push_arguments and
2687 set_gdbarch_deprecated_push_return_address.
2688 Add call to set_gdbarch_push_dummy_call.
2689
2690 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2691
2692 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2693 (E_PSEUDO_EXR_REGNUM): Ditto.
2694 (h8300_is_argument_spill): Check for instructions moving argument
2695 registers into safe registers.
2696 (h8300_skip_prologue): Check for stm instruction to push registers
2697 used for register variables onto stack.
2698 (gdb_print_insn_h8300): Remove.
2699 (h8300_examine_prologue): Add a comment.
2700 (h8300_register_name): Take pseudo registers into account.
2701 (h8300s_register_name): Ditto.
2702 (h8300sx_register_name): Ditto.
2703 (h8300_print_register): Ditto.
2704 (h8300_print_registers_info): Define "nice" printing order.
2705 (h8300_saved_pc_after_call): Take pseudo registers into account.
2706 (h8300_register_type): Ditto. Return type used for remote connection
2707 when requesting real CCR or EXR register, return actual type when
2708 requesting pseudo CCR or EXR.
2709 (h8300_pseudo_register_read): New function.
2710 (h8300_pseudo_register_write): Ditto.
2711 (h8300_dbg_reg_to_regnum): Ditto.
2712 (h8300s_dbg_reg_to_regnum): Ditto.
2713 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2714 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2715 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2716 set_gdbarch_print_insn architecture dependent.
2717 Call set_gdbarch_pseudo_register_read and
2718 set_gdbarch_pseudo_register_write.
2719 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2720
2721 2003-06-16 Andrew Cagney <cagney@redhat.com>
2722
2723 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2724 * gdbarch.h, gdbarch.c: Re-generate.
2725 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2726 * s390-tdep.c (s390_gdbarch_init): Update.
2727 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2728 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2729 * mips-tdep.c (mips_gdbarch_init): Update.
2730 * mcore-tdep.c (mcore_gdbarch_init): Update.
2731 * cris-tdep.c (cris_gdbarch_init): Update.
2732 * infcall.c (call_function_by_hand): Update.
2733 * ia64-tdep.c (ia64_push_arguments): Update comment.
2734 * frame.c (legacy_get_prev_frame): Do not assume
2735 SAVE_DUMMY_FRAME_TOS_P.
2736 * dummy-frame.c (find_dummy_frame): Update comment.
2737
2738 2003-06-16 Andrew Cagney <cagney@redhat.com>
2739
2740 * regcache.c (do_cooked_read): Do not use register_valid_p.
2741
2742 2003-06-15 Theodore A. Roth <troth@openavr.org>
2743
2744 * avr-tdep.c (avr_register_type): Remove a blank line.
2745 (avr_scan_prologue): Correct some comments.
2746
2747 2003-06-15 Theodore A. Roth <troth@openavr.org>
2748
2749 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2750 prologue types.
2751 Properly scan prologues generated by gcc with the -mcall-prologues
2752 option.
2753 Add code to scan -mcall-prologues for mega devices.
2754
2755 2003-06-15 Theodore A. Roth <troth@openavr.org>
2756
2757 * avr-tdep.c (avr_register_byte): Delete function.
2758 (avr_register_raw_size): Delete function.
2759 (avr_register_virtual_size): Delete function.
2760 (avr_register_virtual_type): Delete function.
2761 (avr_register_type): New function.
2762 (avr_address_to_pointer): Remove unused code.
2763 (avr_read_fp): Need to read FP as two separate bytes due to change to
2764 avr_register_type() usage.
2765 (avr_gdbarch_init): Don't set deprecated_register_size.
2766 Don't set deprecated_register_bytes.
2767 Don't set deprecated_register_byte.
2768 Don't set deprecated_register_raw_size.
2769 Don't set deprecated_max_register_raw_size.
2770 Don't set deprecated_register_virtual_size.
2771 Don't set deprecated_max_register_virtual_size.
2772 Don't set deprecated_register_virtual_type.
2773 Set register_type method.
2774
2775 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2776
2777 * Makefile.in (linux-nat.o): Add rule.
2778 * linux-nat.c: New file.
2779 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2780 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2781 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2782 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2783 * config/arm/linux.mh (NATDEPFILES): Likewise.
2784 * config/i386/linux.mh (NATDEPFILES): Likewise.
2785 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2786 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2787 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2788 * config/mips/linux.mh (NATDEPFILES): Likewise.
2789 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2790 * config/s390/s390.mh (NATDEPFILES): Likewise.
2791 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2792
2793 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2794
2795 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2796 replace out-of-date comment.
2797
2798 2003-06-15 Andrew Cagney <cagney@redhat.com>
2799
2800 * rdi-share/host.h (Fail): Change to a varargs function.
2801 * remote-rdi.c (Fail): Update.
2802
2803 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2804
2805 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2806 (i386_convert_register_p, i386_register_to_value,
2807 i386_register_from_value): Handle types longer than 8 bytes.
2808
2809 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2810
2811 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2812 Move floating-point code to new function in i387-tdep.c.
2813 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2814 New functions containing code moved here from i386-tdep.c.
2815 * i387-tdep.h: Add opaque declaration for `struct type'.
2816 (i387_register_to_value, i387_value_to_register): New prototypes.
2817 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2818 (x86_64_init_abi): Set convert_register_p, register_to_value and
2819 value_to_register here.
2820
2821 2003-06-14 Andrew Cagney <cagney@redhat.com>
2822
2823 * mips-tdep.c (mips_register_to_value): Make static.
2824 (mips_value_to_register): Make static.
2825 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2826 * ia64-tdep.c (ia64_register_raw_size): Make static.
2827 (ia64_register_virtual_size): Make static.
2828 (ia64_register_byte): Make static.
2829 * i387-tdep.c: Include "i387-tdep.h".
2830 (print_387_control_word): Delete function.
2831 (print_387_status_word): Delete function.
2832 (print_387_status_bits): Delete function.
2833 (print_387_control_bits): Delete function.
2834 * Makefile.in (i387-tdep.o): Update dependencies.
2835 * rdi-share/host.h (Fail): Declare.
2836 * remote-rdi.c (Fail): Update to match declaration.
2837
2838 2003-06-14 Andrew Cagney <cagney@redhat.com>
2839
2840 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2841 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2842 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2843 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2844 * README: Delete reference to remote-array.
2845 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2846 (remote-array.o): Delete target.
2847 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2848 * remote-array.c: Delete file.
2849
2850 2003-06-14 Andrew Cagney <cagney@redhat.com>
2851 Mark Kettenis <kettenis@gnu.org>
2852
2853 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2854 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2855 parameter with "frame".
2856 * gdbarch.h, gdbarch.c: Re-generate.
2857 * frame.h (put_frame_register): Declare.
2858 * frame.c (put_frame_register): New function.
2859 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2860 (legacy_register_to_value): Rewrite, use "frame" to get the
2861 register value.
2862 (legacy_value_to_register): Rewrite, use "frame" to find the
2863 register's location before storing.
2864 * arch-utils.h (legacy_convert_register_p): Update.
2865 (legacy_register_to_value, legacy_value_to_register): Update.
2866 * findvar.c (value_from_register): Rewrite, eliminate use of
2867 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2868 "frame" to REGISTER_TO_VALUE.
2869 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2870 lval_reg_frame_relative + lval_register branch of the switch. Do
2871 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2872 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2873 I386_EDI_REGNUM): New defines.
2874 (i386_next_regnum, i386_convert_register_p,
2875 i386_register_to_value, i386_value_to_register): New functions.
2876 (i386_register_convertible, i386_register_convert_to_virtual,
2877 i386_convert_to_raw): Remove functions.
2878 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2879 value_to_register instead of register_convertible,
2880 register_convert_to_virtual and register_convert_to_raw.
2881 * mips-tdep.c (mips_convert_register_p): New function.
2882 (mips_value_to_register): Replace mips_register_convert_from_type.
2883 (mips_register_to_value): Replace mips_register_convert_to_type.
2884 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2885 register_to_value.
2886 * alpha-tdep.c (alpha_convert_register_p): Update.
2887 (alpha_value_to_register): Update, store the register.
2888 (alpha_register_to_value): Update, fetch the register.
2889
2890 2003-06-14 Theodore A. Roth <troth@openavr.org>
2891
2892 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2893 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2894 Don't set deprecated_call_dummy_words.
2895 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2896 Don't set remote_translate_xfer_address.
2897 (avr_io_reg_read_command): Remove commented out debug printf.
2898 Wrap a long line.
2899
2900 2003-06-14 Theodore A. Roth <troth@openavr.org>
2901
2902 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2903 causes gdb to seg fault.
2904
2905 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
2906
2907 * sparc-nat.c (fetch_inferior_registers): Correct
2908 a reference to "registers".
2909
2910 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2911
2912 * Makefile.in (exc_request_U_h): Define
2913 (exc_request_S_h): Likewise.
2914 (msg_reply_S_h): Likewise.
2915 (msg_U_h): Likewise.
2916 (notify_S_h): Likewise.
2917 (process_reply_S_h): Likewise.
2918 (gnu-nat.o): Depend on gdb_obstack_h
2919 * gnu-nat.c: Include "gdb_obstack.h".
2920
2921 2003-06-13 Andrew Cagney <cagney@redhat.com>
2922
2923 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2924 * gdbarch.h, gdbarch.c: Re-generate.
2925
2926 2003-06-13 Andrew Cagney <cagney@redhat.com>
2927
2928 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2929 when deprecated REGISTER macros can be deleted.
2930 * gdbarch.h, gdbarch.c: Re-generate.
2931
2932 2003-06-13 Jim Blandy <jimb@redhat.com>
2933
2934 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2935 Linux entry point symbols for _dl_debug_state, too.
2936
2937 2003-06-13 Andrew Cagney <cagney@redhat.com>
2938
2939 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2940 available, do not use the FP register, and always save the TOS.
2941 * dummy-frame.c (dummy_frame_this_id): Do not assert
2942 SAVE_DUMMY_FRAME_TOS.
2943 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2944 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2945 (i386_push_dummy_call): Add 8 to the returned SP.
2946 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2947 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2948 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2949 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2950 (x86_64_push_dummy_call): Return "sp + 16".
2951 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2952 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2953 save_dummy_frame_tos.
2954
2955 2003-06-13 Jim Blandy <jimb@redhat.com>
2956
2957 * frv-tdep.c (frv_use_struct_convention): Delete static
2958 declaration for function deleted in my change of 2003-06-12.
2959
2960 2003-06-13 Theodore A. Roth <troth@openavr.org>
2961
2962 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2963 (avr_pointer_to_address): Shift code addrs left 1 bit.
2964 (avr_convert_from_func_ptr_addr): Delete function since operation is
2965 better handled by avr_address_to_pointer and avr_pointer_to_address.
2966 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2967
2968 2003-06-13 Mark Kettenis <kettenis@gnu.org>
2969
2970 From Kelley Cook <kelleycook@wideopenwest.com>:
2971 * configure.host: Accept i[34567]86 variants.
2972 * configure.tgt: Likewise.
2973 * nlm/configure.in: Likewise.
2974 * nlm/configure: Regenerated.
2975
2976 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2977
2978 * arm-tdep.c (solib-svr4.h): Dont' include it.
2979 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2980 * arm-linux-tdep.c: ... here. Make static.
2981 (arm_linux_init_abi): Register it.
2982 (solib-svr4.h): Include it.
2983 * Makefile.in: Update dependencies.
2984 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2985 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2986
2987 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2988
2989 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2990 indicate registers used for return values.
2991 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2992 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2993 members.
2994 (h8300_init_extra_frame_info): Ditto.
2995 (h8300_frame_locals_address): Removed.
2996 (h8300_frame_args_address): Removed.
2997 (h8300_extract_return_value): Use new regcache structure. Only care
2998 for 16 bit CPUs.
2999 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3000 (h8300_store_return_value): Use new regcache structure. Only care
3001 for 16 bit CPUs.
3002 (h8300h_store_return_value): Same function for 32 bit CPUs.
3003 (h8300_store_struct_return): Removed.
3004 (h8300_extract_struct_value_address): Use new regcache structure.
3005 (h8300h_extract_struct_value_address): Removed.
3006 (h8300_push_dummy_code): New function.
3007 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3008 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3009 set_gdbarch_store_return_value architecture dependent.
3010 Call set_gdbarch_push_dummy_code and
3011 set_gdbarch_extract_struct_value_address.
3012 Remove calls to set_gdbarch_frame_args_address,
3013 set_gdbarch_frame_locals_address,
3014 set_gdbarch_deprecated_store_struct_return,
3015 set_gdbarch_deprecated_extract_return_value,
3016 set_gdbarch_deprecated_extract_struct_value_address,
3017 set_gdbarch_deprecated_call_dummy_words and
3018 set_gdbarch_deprecated_sizeof_call_dummy_words.
3019
3020 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3021
3022 * h8300-tdep.c (h8300_register_byte): Remove.
3023 (h8300h_register_byte): Remove.
3024 (h8300_register_virtual_type): Remove. Substitute by...
3025 (h8300_register_type): New function.
3026 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3027 (h8300h_extract_struct_value_address): Ditto.
3028 (h8300_gdbarch_init): Drop calls to
3029 set_gdbarch_deprecated_register_byte and
3030 set_gdbarch_deprecated_register_virtual_type.
3031 Add call to set_gdbarch_register_type.
3032
3033 2003-06-13 Andrew Cagney <cagney@redhat.com>
3034
3035 * gdbarch.sh: Update comments on registers.
3036 (deprecated_register_byte): Rename register_byte.
3037 (deprecated_register_raw_size): Rename register_raw_size.
3038 (deprecated_register_virtual_size): Rename register_virtual_size.
3039 (deprecated_register_virtual_type): Rename register_virtual_type.
3040 * gdbarch.h, gdbarch.c: Re-generate.
3041 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3042 * vax-tdep.c (vax_gdbarch_init): Update.
3043 * v850-tdep.c (v850_gdbarch_init): Update.
3044 * sparc-tdep.c (sparc_gdbarch_init): Update.
3045 * sh-tdep.c (sh_gdbarch_init): Update.
3046 * s390-tdep.c (s390_gdbarch_init): Update.
3047 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3048 * ns32k-tdep.c: Update.
3049 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3050 * mips-tdep.c (mips_gdbarch_init): Update.
3051 * mcore-tdep.c (mcore_gdbarch_init): Update.
3052 * m68k-tdep.c (m68k_gdbarch_init): Update.
3053 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3054 * ia64-tdep.c (ia64_gdbarch_init): Update.
3055 * hppa-tdep.c (hppa_gdbarch_init): Update.
3056 * h8300-tdep.c (h8300_gdbarch_init): Update.
3057 * frv-tdep.c (frv_gdbarch_init): Update.
3058 * cris-tdep.c (cris_gdbarch_init): Update.
3059 * avr-tdep.c (avr_gdbarch_init): Update.
3060 * alpha-tdep.c (alpha_gdbarch_init): Update.
3061 * arm-tdep.c (arm_gdbarch_init): Update.
3062
3063 2003-06-13 Andrew Cagney <cagney@redhat.com>
3064
3065 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3066 mips_o32_use_struct_convention with always_use_struct_convention.
3067
3068 2003-06-12 David Carlton <carlton@kealia.com>
3069
3070 * cp-namespace.c (cp_set_block_scope): Comment out
3071 processing_has_namespace_info branch.
3072
3073 2003-06-12 Jim Blandy <jimb@redhat.com>
3074
3075 Recognize and skip 64-bit PowerPC Linux linkage functions.
3076 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3077 insn_pattern, insns_match_pattern, d_field, ds_field): New
3078 functions, macros, and types for working with PPC instructions.
3079 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3080 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3081 ppc64_skip_trampoline_code): New functions, variables, and macros
3082 for recognizing and skipping linkage functions.
3083 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3084 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3085
3086 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3087 register offsets for both the 32- and 64-bit interfaces.
3088
3089 Actually finish the job started by my change of 2003-05-29.
3090 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3091 other #definition of this.
3092 (ppc_linux_skip_trampoline_code): Remove declaration.
3093 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3094 static.
3095 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3096 method for GDBARCH.
3097
3098 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3099 'long' on ppc64-*-linux*.
3100
3101 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3102 isn't #defined, assume the register doesn't exist: act as if
3103 tdep->ppc_mq_regnum were -1.
3104
3105 * configure.host, configure.tgt: Add entries for
3106 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3107 powerpc/linux.mt.
3108 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3109 New files.
3110
3111 * arch-utils.c (always_use_struct_convention): New function.
3112 * arch-utils.h (always_use_struct_convention): New prototype.
3113 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3114 (alpha_gdbarch_init): Register always_use_struct_convention,
3115 instead of alpha_use_struct_convention.
3116 * cris-tdep.c (cris_use_struct_convention): Delete.
3117 (cris_gdbarch_init): Register always_use_struct_convention,
3118 instead of cris_use_struct_convention.
3119 * frv-tdep.c (frv_use_struct_convention): Delete.
3120 (frv_gdbarch_init): Register always_use_struct_convention,
3121 instead of frv_use_struct_convention.
3122 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3123 (h8300_gdbarch_init): Register always_use_struct_convention,
3124 instead of h8300_use_struct_convention.
3125 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3126 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3127 instead of mips_o32_use_struct_convention.
3128
3129 2003-06-12 Andrew Cagney <cagney@redhat.com>
3130
3131 * wince.c: Include "mips-tdep.h".
3132 * mips-tdep.h (mips_next_pc): Declare.
3133 * mcore-tdep.c: Make more local functions static.
3134 * Makefile.in (wince.o): Update dependencies.
3135
3136 2003-06-12 David Carlton <carlton@kealia.com>
3137
3138 * symtab.c (lookup_symbol_aux_minsyms): Replace
3139 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3140 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3141 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3142 SYMBOL_NATURAL_NAME.
3143
3144 2003-06-12 Andreas Schwab <schwab@suse.de>
3145
3146 * Makefile.in (tuiDisassem.o): Update dependencies.
3147
3148 2003-06-12 David Carlton <carlton@bactrian.org>
3149
3150 * symtab.h: Delete declaration of make_symbol_overload_list.
3151 Add declaration of lookup_partial_symbol.
3152 * symtab.c (remove_params): Move to cp-support.c.
3153 (overload_list_add_symbol, make_symbol_overload_list)
3154 (sym_return_val_size, sym_return_val_index): Ditto.
3155 (lookup_partial_symbol): Make extern.
3156 * cp-support.h: Add declaration of make_symbol_overload_list.
3157 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3158 symtab.h, and block.h.
3159 (remove_params): Move here from symtab.c.
3160 (overload_list_add_symbol, make_symbol_overload_list)
3161 (sym_return_val_size, sym_return_val_index): Ditto.
3162 * valops.c: Include cp-support.h.
3163 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3164 frame_h, and block_h.
3165 (valops.o): Depend on cp_support_h.
3166
3167 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
3168
3169 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3170 substitute by NUM_REGS throughout.
3171 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3172 (h8300s_register_name): New function for H8S registers.
3173 (h8300sx_register_name): Ditto for H8SX registers.
3174 (h8300_print_register): Revise register printing, avoid depending
3175 on 32 bit long.
3176 (h8300_register_byte): Only care for H8/300 registers.
3177 (h8300h_register_byte): New function for any other architecture.
3178 (h8300_register_raw_size): Remove.
3179 (h8300_register_virtual_type): Revise to return actually useful
3180 type.
3181 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3182 (h8300h_extract_struct_value_address): New function for any other
3183 architecture.
3184 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3185 set_gdbarch_register_name, set_gdbarch_register_byte,
3186 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3187 Remove calls to set_gdbarch_deprecated_register_size,
3188 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3189 set_gdbarch_deprecated_max_register_raw_size,
3190 set_gdbarch_register_virtual_size and
3191 set_gdbarch_deprecated_max_register_virtual_size entirely.
3192 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3193 set_gdbarch_long_double_bit.
3194
3195 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3196
3197 * doublest.c (convert_doublest_to_floatformat): When dealing
3198 with the implied integer bit, only alter mant_bits if we are
3199 processing a full 32 bits of mantissa.
3200
3201 2003-06-11 David Carlton <carlton@bactrian.org>
3202
3203 * dictionary.h: New.
3204 * dictionary.c: New.
3205 * block.h: Add opaque declaration for struct dictionary.
3206 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3207 'sym' members.
3208 (BLOCK_DICT): New macro.
3209 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3210 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3211 BLOCK_SHOULD_SORT.
3212 (ALL_BLOCK_SYMBOLS): Update definition.
3213 * Makefile.in (SFILES): Add dictionary.c.
3214 (dictionary_h): New.
3215 (COMMON_OBS): Add dictionary.o.
3216 (dictionary.o): New.
3217 (ada-lang.o): Depend on dictionary_h.
3218 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3219 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3220 (mi-cmd-stack.o): Ditto.
3221 (gdbtk-cmds.o): Update dependencies.
3222 (gdbtk-stack.o): Ditto.
3223 * ada-lang.c: Include dictionary.h.
3224 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3225 (fill_in_ada_prototype, debug_print_block): Ditto.
3226 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3227 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3228 'is_sorted'.
3229 * mdebugread.c: Include dictionary.h.
3230 (struct parse_stack): Delete 'maxsyms' member.
3231 (parse_symbol): Update calls to new_block. Delete calls to
3232 shrink_block. Use dictionary methods.
3233 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3234 Update calls to new_symtab. Don't maintain maxsyms data.
3235 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3236 (add_symbol): Just call dict_add_symbol.
3237 (new_symtab): Delete 'maxsyms' argument.
3238 (new_symtab): Update calls to new_block.
3239 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3240 (shrink_block): Delete function.
3241 (fixup_sigtramp): Update call to new_block. Add symbol via
3242 dict_add_symbol.
3243 * jv-lang.c: Include dictionary.h.
3244 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3245 appropriately. Set class_symtab->free_func. Make sure the
3246 blockvector is big enough to hold two blocks.
3247 (add_class_symtab_symbol): Use dictionary methods.
3248 (free_class_block): New function.
3249 (type_from_class): Replace explicit iteration by
3250 ALL_BLOCK_SYMBOLS.
3251 * symtab.h (struct symtab): Replace 'free_ptr' method by
3252 'free_func'.
3253 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3254 sort_symtab_syms.
3255 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3256 sort_symtab_syms.
3257 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3258 Include dictionary.h.
3259 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3260 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3261 sort_symtab_syms.
3262 * objfiles.c: Include dictionary.h.
3263 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3264 * buildsym.c: Include dictionary.h.
3265 (finish_block): Use dictionary methods.
3266 (end_symtab): Set free_func to NULL, not free_ptr.
3267 * tracepoint.c: Include dictionary.h.
3268 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3269 (scope_info): Ditto.
3270 * stack.c: Include dictionary.h.
3271 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3272 (print_block_frame_labels, print_frame_arg_vars)
3273 (print_frame_args): Ditto.
3274 * symmisc.c (free_symtab_block): Use dictionary methods.
3275 (dump_symtab): Ditto.
3276 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3277 Include dictionary.h.
3278 * symfile.h: Delete declarations of sort_block_syms,
3279 sort_symtab_syms.
3280 * symfile.c (sort_block_syms): Delete.
3281 (sort_symtab_syms): Delete.
3282 * symtab.c: Include dictionary.h.
3283 (lookup_block_symbol): Use dictionary iterators.
3284 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3285 (search_symbols, make_symbol_completion_list): Ditto.
3286 (make_symbol_overload_list): Ditto.
3287 * valops.c (value_of_local): Use dict_empty.
3288 Include dictionary.h.
3289
3290 2003-06-11 J. Brobecker <brobecker@gnat.com>
3291
3292 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3293
3294 2003-06-11 David Carlton <carlton@bactrian.org>
3295
3296 * block.h (BLOCK_SHOULD_SORT): Delete.
3297 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3298 blocks.
3299 * ada-lang.c (ada_add_block_symbols): Ditto.
3300 * symfile.c (sort_block_syms): Delete.
3301 (sort_symtab_syms): Ditto.
3302 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3303 declarations.
3304 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3305 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3306 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3307 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3308 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3309 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3310 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3311
3312 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3313
3314 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3315 bits to 128.
3316
3317 2003-06-11 Andrew Cagney <cagney@redhat.com>
3318
3319 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3320 REGISTER_CONVERTIBLE.
3321 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3322 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3323 * gdbarch.h, gdbarch.c: Re-generate.
3324 * arch-utils.h (deprecated_register_convertible_not): Rename
3325 generic_register_convertible_not.
3326 * arch-utils.c (deprecated_register_convertible_not): Rename
3327 generic_register_convertible.
3328 (legacy_convert_register_p, legacy_register_to_value): Update.
3329 * sh-tdep.c (sh64_push_arguments): Update.
3330 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3331 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3332 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3333 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3334 * arch-utils.c (legacy_value_to_register): Update.
3335 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3336 (rs6000_register_convert_to_raw): Make parameter "from" const.
3337 * mips-tdep.c (mips_gdbarch_init): Update.
3338 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3339 * infcmd.c (default_print_registers_info): Update.
3340 * ia64-tdep.c (ia64_gdbarch_init): Update.
3341 (ia64_register_convert_to_raw): Make parameter "from" const.
3342 * i386-tdep.c (i386_gdbarch_init): Update.
3343 (i386_register_convert_to_raw): Update.
3344
3345 2003-06-11 Andrew Cagney <cagney@redhat.com>
3346
3347 * remote-fileio.c: Include "remote-fileio.h".
3348 * Makefile.in (remote-fileio.o): Update dependencies.
3349 (remote_fileio_h): Fix typo.
3350
3351 2003-06-11 Andrew Cagney <cagney@redhat.com>
3352
3353 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3354 (xstormy16_save_dummy_frame_tos): Make static.
3355 (_initialize_xstormy16_tdep): Add declaration.
3356 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3357 * v850-tdep.c: Make local functions static.
3358 (_initialize_v850_tdep): Add declaration.
3359 * sparc-tdep.c: Make local functions static.
3360 (_initialize_sparc_tdep): Add declaration.
3361 * sh-tdep.c: Make local functions static.
3362 (_initialize_sh_tdep): Add declaration.
3363 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3364 * s390-tdep.c: Make local functions static.
3365 (_initialize_s390_tdep): Add declaration.
3366 * dbxread.c (find_stab_function_addr): Make static.
3367 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3368 * ocd.c (_initialize_remote_ocd): Add declaration.
3369 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3370 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3371 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3372 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3373 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3374 * remote-array.c (_initialize_array): Add declaration.
3375 (_initialize_remote_monitors): Add declaration.
3376 * remote-mips.c: Make local functions static.
3377 (_initialize_remote_mips): Add declaration.
3378 * mcore-tdep.c: Make all local functions static.
3379 (_initialize_mcore_tdep): Add declaration.
3380 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3381 * abug-rom.c (_initialize_abug_rom): Add declaration.
3382 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3383 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3384 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3385 * remote-est.c (_initialize_est): Add declaration.
3386 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3387 (m68hc11_call_dummy_address): Make static.
3388 * ia64-tdep.c: Make local functions static.
3389 (_initialize_ia64_tdep): Add declaration.
3390 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3391 * monitor.c (monitor_wait_filter): Make static.
3392 (_initialize_remote_monitors): Add declaration.
3393 * remote-hms.c (_initialize_remote_hms): Add declaration.
3394 * remote-e7000.c (fetch_regs_from_dump): Make static.
3395 (expect_n): Make static.
3396 (_initialize_remote_e7000): Add declaration.
3397 * ser-e7kpc.c: Always include "defs.h".
3398 (_initialize_ser_e7000pc): Add declaration.
3399 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3400 * cris-tdep.c: Make all but one function static.
3401 (_initialize_cris_tdep): Add declaration.
3402 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3403 * solib.c (update_solib_list): Make static.
3404 (_initialize_solib): Add declaration.
3405 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3406 (_initialize_avr_tdep): Add declaration.
3407 * remote-rdi.c (voiddummy): Make static.
3408 (_initialize_remote_rdi): Add declaration.
3409 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3410 * remote-rdp.c (send_rdp): Make static.
3411 (_initialize_remote_rdp): Add declaration.
3412 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3413
3414 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
3415
3416 * remote-fileio.c: Make ari happy.
3417
3418 2003-06-10 J. Brobecker <brobecker@gnat.com>
3419
3420 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3421 fetching the trailing bytes of the buffer we are about to write.
3422
3423 2003-06-10 Andrew Cagney <cagney@redhat.com>
3424
3425 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3426 * Makefile.in (remote-fileio.o): Update dependencies.
3427 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3428 include <setjmp.h>, or <sys/types.h> conditional on USG.
3429 (remote_fio_jmp_buf): Delete global variable.
3430
3431 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
3432 Martin M. Hunt <hunt@redhat.com>
3433
3434 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3435 (SFILES): Add remote-fileio.c.
3436 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3437 dependencies for building remote.o.
3438 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3439 * remote-fileio.h: New header file defining remote File-I/O interface.
3440 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3441 static storage class.
3442 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3443 'F' packet.
3444 (_initialize_remote): Call initialize_remote_fileio().
3445 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3446 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3447 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3448 (captured_main): Initialize new ui_files.
3449 * ui-file.c: Add read and fgets input functions.
3450 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3451 (null_file_read): New function.
3452 (ui_file_read): New function.
3453 (set_ui_file_read): New function.
3454 (stdio_file_read): New function.
3455 * ui-file.h: New type ui_file_read_ftype.
3456 (set_ui_file_read): Declare.
3457 (ui_file_read): Declare.
3458
3459 2003-06-09 Andrew Cagney <cagney@redhat.com>
3460
3461 * frame.h (deprecated_unwind_get_saved_register): Rename
3462 generic_unwind_get_saved_register, update comments.
3463 * mips-tdep.c (mips_get_saved_register): Update.
3464 * frame.c (deprecated_unwind_get_saved_register): Update.
3465
3466 2003-06-09 Andrew Cagney <cagney@redhat.com>
3467
3468 * vax-tdep.c (vax_frame_locals_address): Delete function.
3469 (vax_gdbarch_init): Do not set frame_locals_address.
3470 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3471 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3472 * s390-tdep.c (s390_frame_args_address): Delete function.
3473 (s390_gdbarch_init): Do not set frame_args_address or
3474 frame_locals_address.
3475 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3476 (ns32k_gdbarch_init): Do not set frame_locals_address.
3477 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3478 (hppa_frame_locals_address): Delete function.
3479 (hppa_gdbarch_init): Do not set frame_args_address, or
3480 frame_locals_address.
3481 * arm-tdep.c (arm_frame_args_address): Delete.
3482 (arm_frame_locals_address): Delete.
3483 (arm_gdbarch_init): Do not set frame_args_address, or
3484 frame_locals_address.
3485
3486 2003-06-09 Andrew Cagney <cagney@redhat.com>
3487
3488 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3489 * gdbarch.h, gdbarch.c: Re-generate.
3490 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3491 * arch-utils.c (frame_num_args_unknown): Delete function.
3492 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3493 (frame_info): Use FRAME_NUM_ARGS_P.
3494 * arm-tdep.c (arm_frame_num_args): Delete function.
3495 (arm_gdbarch_init): Do not set frame_num_args.
3496 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3497 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3498 (hppa_gdbarch_init): Do not set frame_num_args.
3499 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3500 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3501 frame_num_args to default frame_num_args_unknown.
3502 * v850-tdep.c (v850_gdbarch_init): Ditto.
3503 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3504 * sh-tdep.c (sh_gdbarch_init): Ditto.
3505 * s390-tdep.c (s390_gdbarch_init): Ditto.
3506 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3507 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3508 * mips-tdep.c (mips_gdbarch_init): Ditto.
3509 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3510 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3511 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3512 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3513 * i386-tdep.c (i386_gdbarch_init): Ditto.
3514 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3515 * frv-tdep.c (frv_gdbarch_init): Ditto.
3516 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3517 * cris-tdep.c (cris_gdbarch_init): Ditto.
3518 * avr-tdep.c (avr_gdbarch_init): Ditto.
3519 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3520
3521 2003-06-09 Andrew Cagney <cagney@redhat.com>
3522
3523 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3524 (print_frame_args): Moved to "stack.c".
3525 * stack.c: Include "gdb_assert.h".
3526 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3527 (print_frame_args): Moved from "printcmd.c".
3528 * frame.h (print_frame_args): Delete declaration.
3529 * Makefile.in (stack.o): Update dependencies.
3530
3531 2003-06-08 Andrew Cagney <cagney@redhat.com>
3532
3533 * frame.c (get_prev_frame): Remove reference to
3534 frame_args_address_correct in comments.
3535 * frame-base.c (default_frame_args_address): Delete code
3536 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3537 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3538 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3539 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3540 (vax_frame_args_address_correct): Delete declaration.
3541
3542 2003-06-08 Andrew Cagney <cagney@redhat.com>
3543
3544 * gdbarch.sh (UNWIND_SP): Add.
3545 * gdbarch.h, gdbarch.c: Re-generate.
3546 * frame.c (frame_sp_unwind): New function.
3547 (get_frame_sp): New function.
3548 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3549 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3550 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3551 value.
3552 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3553 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3554
3555 2003-06-08 Andrew Cagney <cagney@redhat.com>
3556
3557 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3558 REMOTE_BREAKPOINT.
3559 * remote.c: Update.
3560 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3561 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3562 * config/m68k/tm-sun3.h: Update.
3563 * config/m68k/tm-m68klynx.h: Update.
3564 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3565
3566 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3567 trad_frame". Update comments.
3568 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3569 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3570 (trad_frame_register_value, trad_frame_prev_register): Update.
3571
3572 2003-06-08 Andrew Cagney <cagney@redhat.com>
3573
3574 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3575 from GCC's acinclude.m4.
3576 * configure.in: Check for getopt's delcaration.
3577 * aclocal.m4, config.in, configure: Re-generate.
3578 * main.c (error_init): Delete declaration.
3579 * defs.h (error_init): Declare.
3580 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3581 (rs6000_convert_from_func_ptr_addr): Make static.
3582 (_initialize_rs6000_tdep): Add declaration.
3583 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3584 (show_commands, set_verbose, show_history): Delete declaration.
3585 * top.h (set_verbose): Add declaration.
3586 (show_history, set_history, show_commands): Add declaration.
3587 (do_restore_instream_cleanup): Add declaration.
3588 * objc-lang.c (specialcmp): Make static.
3589 (print_object_command): Make static.
3590 (find_objc_msgsend): Make static.
3591 (find_objc_msgcall_submethod_helper): Make static.
3592 (find_objc_msgcall_submethod): Make static.
3593 (_initialize_objc_language): Add declaration.
3594 (find_implementation_from_class): Make static.
3595 (find_implementation): Make static.
3596 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3597 * objc-lang.h (lookup_struct_typedef): Add declaration.
3598 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3599 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3600 (do_restore_user_call_depth): Make static.
3601 (do_restore_instream_cleanup): Delete declaration.
3602 (dont_repeat): Delete declaration.
3603 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3604 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3605 * reggroups.c (_initialize_reggroup): Add declaration.
3606 * cp-support.c (_initialize_cp_support): Add declaration.
3607 * cp-abi.c (_initialize_cp_abi): Add declaration.
3608 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3609 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3610 (_initialize_gnu_v3_abi): Add declaration.
3611 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3612 (_initialize_gnu_v2_abi): Add declaration.
3613 * frame-base.c (_initialize_frame_base): Add declaration.
3614 * doublest.c (floatformat_from_length): Make static.
3615 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3616 * frame.c (create_sentinel_frame): Make static.
3617 (_initialize_frame): Add declaration.
3618 * top.c (do_catch_errors): Make static.
3619 (gdb_rl_operate_and_get_next_completion): Make static.
3620 * typeprint.c: Include "typeprint.h".
3621 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3622 (sentinel_frame_this_id): Make static.
3623 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3624 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3625 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3626 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3627 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3628 * maint.c (maintenance_print_architecture): Make static.
3629 * signals/signals.c (_initialize_signals): Add declaration.
3630 * std-regs.c (_initialize_frame_reg): Add declaration.
3631 * jv-exp.y (push_variable): ISO C definition.
3632 (push_qualified_expression_name): Ditto.
3633 * memattr.c (_initialize_mem): Add declaration.
3634 * remote.c (remote_check_watch_resources): Make static.
3635 (remote_stopped_by_watchpoint): Make static.
3636 (remote_stopped_data_address): Make static.
3637 * d10v-tdep.c (nr_dmap_regs): Make static.
3638 (a0_regnum): Make static.
3639 (d10v_frame_unwind_cache): Make static.
3640 (d10v_frame_p): Make static.
3641 * osabi.c (show_osabi): Make static.
3642 (_initialize_gdb_osabi): Add extern declaration.
3643 * gdbtypes.c (make_qualified_type): Make static.
3644 (safe_parse_type): Make static.
3645 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3646 * macrotab.c (macro_bcache_free): Make static.
3647 * interps.c (interp_set_quiet): Make static.
3648 (interpreter_exec_cmd): Make static.
3649 * stack.h (select_frame_command): New file.
3650 * stack.c: Include "stack.h".
3651 (select_frame_command_wrapper): Delete function.
3652 (select_frame_command): Make global.
3653 * infcall.c: Include "infcall.h".
3654 * linespec.c: Include "linespec.h".
3655 * symfile.c (sections_overlap): Make static.
3656 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3657 * charset.c (_initialize_charset): Add missing prototype.
3658 * regcache.c (init_legacy_regcache_descr): Make static.
3659 (do_regcache_xfree): Make static.
3660 (regcache_xfer_part): Make static.
3661 (_initialize_regcache): Add missing prototype.
3662 * breakpoint.c (parse_breakpoint_sals): Make static.
3663 (breakpoint_sals_to_pc): Make static.
3664 * interps.h (clear_interpreter_hooks): ISO C declaration.
3665 * Makefile.in (stack_h): Define.
3666 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3667 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3668
3669 2003-06-08 Andrew Cagney <cagney@redhat.com>
3670
3671 * Makefile.in (d10v-tdep.o): Update dependencies.
3672 (SFILES): Add trad-frame.c.
3673 (trad_frame_h): Define.
3674 (COMMON_OBS): Add trad-frame.o.
3675 (trad-frame.o): Specify dependencies.
3676 * d10v-tdep.c: Include "trad-frame.h".
3677 (saved_regs_unwinder): Delete function.
3678 (d10v_frame_prev_register): Use trad_frame_prev_register.
3679 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3680 trad_frame", delete "regs" and "prev_sp".
3681 (prologue_find_regs): Use trad-frame.
3682 * trad-frame.h, trad-frame.c: New files.
3683
3684 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3685
3686 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3687
3688 2003-06-07 Adam Fedor <fedor@gnu.org>
3689
3690 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3691 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3692 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3693 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3694 resolve_msgsend_super, resolve_msgsend_super_stret):
3695 Use it.
3696
3697 2003-06-07 Andrew Cagney <cagney@redhat.com>
3698
3699 * symfile.h: Re-indent, clean up comments.
3700
3701 2003-06-07 Andrew Cagney <cagney@redhat.com>
3702
3703 * inferior.h (deprecated_write_sp): Replace
3704 generic_target_write_sp.
3705 * regcache.c (deprecated_write_sp): Replace
3706 generic_target_write_sp.
3707 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3708 * vax-tdep.c (vax_gdbarch_init): Update.
3709 * v850-tdep.c (v850_gdbarch_init): Update.
3710 * sparc-tdep.c (sparc_gdbarch_init): Update.
3711 * sh-tdep.c (sh_gdbarch_init): Update.
3712 * s390-tdep.c (s390_gdbarch_init): Update.
3713 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3714 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3715 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3716 * mcore-tdep.c (mcore_gdbarch_init): Update.
3717 * m68k-tdep.c (m68k_gdbarch_init): Update.
3718 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3719 * ia64-tdep.c (ia64_gdbarch_init): Update.
3720 * h8300-tdep.c (h8300_gdbarch_init): Update.
3721 * frv-tdep.c (frv_gdbarch_init): Update.
3722 * cris-tdep.c (cris_gdbarch_init): Update.
3723 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3724
3725 2003-06-07 Andrew Cagney <cagney@redhat.com>
3726
3727 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3728 Assert that PC_REGNUM is valid.
3729 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3730
3731 2003-06-07 Andrew Cagney <cagney@redhat.com>
3732
3733 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3734 * gdbarch.h, gdbarch.c: Regenerate.
3735 * mn10300-tdep.c: Include "gdb_assert.h".
3736 (mn10300_read_fp): New function.
3737 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3738 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3739 * ia64-tdep.c: Include "gdb_assert.h".
3740 (ia64_read_fp): New function.
3741 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3742 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3743 * regcache.c (generic_target_read_sp): Delete function.
3744 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3745 * inferior.h (generic_target_read_sp): Delete declaration.
3746 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3747 generic_target_read_sp.
3748 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3749 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3750 * sh-tdep.c (sh_gdbarch_init): Ditto.
3751 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3752 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3753
3754 2003-06-07 Andrew Cagney <cagney@redhat.com>
3755
3756 * gdbarch.sh: Comment each field of startup_gdbarch.
3757 * gdbarch.h, gdbarch.c: Re-generate.
3758
3759 2003-06-07 Andrew Cagney <cagney@redhat.com>
3760
3761 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3762 * gdbarch.h, gdbarch.c: Re-generate.
3763 * regcache.c: Update comments on read_pc et.al.
3764 (generic_target_read_pc): Delete function.
3765 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3766 * inferior.h (generic_target_read_pc): Delete declaration.
3767 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3768 generic_target_read_pc.
3769 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3770 * sh-tdep.c (sh_gdbarch_init): Ditto.
3771 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3772 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3773
3774 2003-06-07 Andrew Cagney <cagney@redhat.com>
3775
3776 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3777 "index" with "special_local_sect". Use strcmp instead of STREQ.
3778 Append period to coments.
3779
3780 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3781
3782 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3783 (elfstab_offset_sections): Likewise.
3784 * gdb-stabs.h (stab_section_info): Likewise.
3785 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3786 * objfiles.c (objfile_relocate): Likewise.
3787 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3788 * remote.c (get_offsets): Likewise.
3789 (remote_cisco_objfile_relocate): Likewise.
3790 * somread.c (som_symfile_offsets): Likewise.
3791 * symfile.c (alloc_section_addr_info): New function.
3792 (build_section_addr_info_from_section_tab): Use it.
3793 (free_section_addr_info): Adjust.
3794 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3795 (syms_from_objfile): Allocate local_addr dynamically.
3796 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3797 dynamically.
3798 (add_symbol_file_command): Allocate sect_opts dynamically.
3799 (reread_symbols): Avoid use of SECT_OFF_MAX.
3800 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3801 (alloc_section_addr_info): Declare it.
3802 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3803 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3804 dynamically.
3805 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3806
3807 2003-06-06 Andrew Cagney <cagney@redhat.com>
3808
3809 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3810 (d10v_frame_unwind_cache): Do not set "return_pc".
3811
3812 2003-06-06 Michael Snyder <msnyder@redhat.com>
3813
3814 * h8300-tdep.c: Make tidy (long lines).
3815
3816 2003-06-06 Michal Ludvig <mludvig@suse.cz>
3817
3818 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3819 to regcache_collect().
3820
3821 2003-06-05 J. Brobecker <brobecker@gnat.com>
3822
3823 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3824 pc_in_sigtramp multiarch method.
3825 (hppa_hpux_som_init_abi): Use it.
3826 (hppa_hpux_elf_init_abi): Likewise.
3827 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3828 macro has been multiarched.
3829 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3830 macro here, as hppa64 isn't multiarched yet.
3831
3832 2003-06-05 Andrew Cagney <cagney@redhat.com>
3833
3834 * Makefile.in (value_h): Add $(frame_h).
3835 * value.h: Include "frame.h".
3836 (struct value): Replace "frame_addr" with "frame_id".
3837 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3838 * values.c (allocate_value): Use VALUE_FRAME_ID.
3839 (value_copy): Use VALUE_FRAME_ID.
3840 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3841 * valops.c (value_assign): Update. Use frame_find_by_id.
3842
3843 2003-06-05 Michal Ludvig <mludvig@suse.cz>
3844
3845 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3846 in each pass.
3847
3848 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3849
3850 * thread-db.c (check_event): For create/death event breakpoints,
3851 loop through all messages to ensure that we read the message
3852 corresponding to the breakpoint we are at.
3853
3854 2003-06-04 Michael Snyder <msnyder@redhat.com>
3855
3856 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3857
3858 2003-06-04 Mark Kettenis <kettenis@gnu.org>
3859
3860 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3861 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3862 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3863 when handling .eh_frame sections.
3864
3865 2003-06-04 J. Brobecker <brobecker@gnat.com>
3866
3867 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3868 prepare_to_proceed procedure instead of the hppa-specific one.
3869 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3870
3871 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
3872
3873 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3874 * config.in: Regenerated.
3875 * configure.in: Add test for syscall function and check for
3876 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3877 * configure: Regenerated.
3878 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3879 <sys/syscall.h>.
3880 (kill_lwp): New function that uses tkill syscall or
3881 uses kill, depending on whether threading model is nptl or not.
3882 All callers of kill() changed to use kill_lwp().
3883 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3884 see if all threads have already exited in the nptl model.
3885 (stop_and_resume_callback): New callback function used by the
3886 lin_lwp_wait thread exit handling code.
3887 (stop_wait_callback): Check for threads already having exited and
3888 delete such threads fromt the lwp list when discovered.
3889 (stop_callback): Don't assert retcode of kill call.
3890
3891 Roland McGrath <roland@redhat.com>
3892 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3893 nptl libthread_db.
3894
3895 2003-06-03 Richard Henderson <rth@redhat.com>
3896
3897 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3898 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3899 (alpha_sigtramp_frame_prev_register): Likewise.
3900 (alpha_heuristic_frame_prev_register): Likewise.
3901 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3902
3903 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3904 alpha-specific register id names.
3905 (alpha_mdebug_frame_unwind_cache): Likewise.
3906 (alpha_mdebug_frame_prev_register): Likewise.
3907
3908 2003-06-03 Richard Henderson <rth@redhat.com>
3909
3910 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3911 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3912 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3913 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3914 unwind routines.
3915 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3916 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3917 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3918
3919 * alpha-linux-tdep.c: Remove unnecessary includes.
3920 * Makefile.in (alpha-linux-tdep.o): Update.
3921
3922 2003-06-03 Richard Henderson <rth@redhat.com>
3923
3924 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3925 (alphabsd_fill_fpreg): Likewise.
3926
3927 2003-06-03 J. Brobecker <brobecker@gnat.com>
3928
3929 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3930 references to struct frame_info fields by calls to the equivalent
3931 accessors. Necessary now that frame_info is opaque.
3932
3933 2003-06-03 J. Brobecker <brobecker@gnat.com>
3934
3935 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3936 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3937 structure, field no longer exists.
3938
3939 2003-06-03 J. Brobecker <brobecker@gnat.com>
3940
3941 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3942 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3943
3944 2003-06-03 J. Brobecker <brobecker@gnat.com>
3945
3946 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3947 references to struct frame_info fields by calls to the equivalent
3948 accessors. Necessary now that frame_info is opaque.
3949
3950 2003-06-03 J. Brobecker <brobecker@gnat.com>
3951
3952 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3953 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3954 structure, field no longer exists.
3955
3956 2003-06-03 Theodore A. Roth <troth@openavr.org>
3957
3958 * remote.c (init_remote_state): Compute sizeof_g_packet by
3959 accumulation of the size of all registers instead of blindly using
3960 DEPRECATED_REGISTER_BYTES.
3961
3962 2003-06-03 Michael Snyder <msnyder@redhat.com>
3963
3964 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3965 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3966 for h8300sx.
3967
3968 2003-06-03 J. Brobecker <brobecker@gnat.com>
3969
3970 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3971 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3972
3973 2003-06-03 Andrew Cagney <cagney@redhat.com>
3974
3975 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3976 (sparc_convert_to_raw): Delete function.
3977 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3978 register_convert_to_virtual.
3979
3980 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3981
3982 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3983 layer if not dealing with a statically-linked threaded program.
3984
3985 2003-06-03 Kris Warkentin <kewarken@qnx.com>
3986
3987 * solib.c (solib_open): Update comment to reflect actual search order.
3988
3989 2003-06-03 Andrew Cagney <cagney@redhat.com>
3990
3991 * frame.c (get_frame_memory_signed): New function.
3992 (get_frame_memory, get_frame_memory_unsigned): New function.
3993 (get_frame_arch): New function.
3994 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3995 (get_frame_memory, get_frame_unsigned_memory): Declare.
3996 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3997 get_frame_memory_unsigned and get_frame_arch.
3998 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3999
4000 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4001
4002 * MAINTAINERS (write after approval): Add myself.
4003
4004 2003-06-03 Jim Blandy <jimb@redhat.com>
4005
4006 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4007 elements of gregset_t are 64 bits each, but access registers
4008 are still 32 bits, so they're packed two per gregset_t
4009 element. Unpack/pack them properly.
4010
4011 2003-06-02 David Carlton <carlton@bactrian.org>
4012
4013 * linespec.c (find_methods): Break out code into
4014 add_matching_methods and add_constructors.
4015 (add_matching_methods): New.
4016 (add_constructors): Ditto.
4017
4018 2003-06-02 Andrew Cagney <cagney@redhat.com>
4019
4020 * sparc-tdep.c (sparc_print_registers): Delete call to
4021 REGISTER_CONVERTIBLE.
4022 (sparc_gdbarch_init): Do not set register_convertible.
4023 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4024 * frv-tdep.c (frv_gdbarch_init): Ditto.
4025 * cris-tdep.c (cris_gdbarch_init): Ditto.
4026
4027 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
4028
4029 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4030 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4031 (syms_from_objfile): Ditto.
4032
4033 2003-06-03 Andreas Schwab <schwab@suse.de>
4034
4035 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4036 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4037
4038 2003-06-02 Richard Henderson <rth@redhat.com>
4039
4040 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4041 a member of all_reggroup.
4042
4043 2003-06-02 Richard Henderson <rth@redhat.com>
4044
4045 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4046 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4047 (alpha_lds, alpha_sts): New.
4048 (alpha_convert_register_p): Change from _register_convertible.
4049 (alpha_register_to_value): Change from _convert_to_virtual;
4050 restructure and fail for type sizes other than 4 or 8.
4051 (alpha_value_to_register): Similarly.
4052 (alpha_extract_return_value): Use alpha_sts.
4053 (alpha_store_return_value): Use alpha_lds.
4054 (alpha_gdbarch_init): Update hooks.
4055
4056 2003-06-02 Richard Henderson <rth@redhat.com>
4057
4058 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4059 regnum identifiers.
4060 (alpha_sigtramp_register_address): Likewise.
4061
4062 2003-06-02 Richard Henderson <rth@redhat.com>
4063
4064 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4065 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4066 * alpha-tdep.h: Declare them.
4067
4068 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4069 Remove zerobuf. Don't error on UNIQUE.
4070 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4071 (ALPHA_REGSET_UNIQUE): Provide default.
4072 (supply_gregset): Use alpha_supply_int_regs.
4073 (fill_gregset): Use alpha_fill_int_regs.
4074 (supply_fpregset): Use alpha_supply_fp_regs.
4075 (fill_fpregset): Use alpha_fill_fp_regs.
4076 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4077 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4078 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4079 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4080 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4081 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4082
4083 2003-06-02 Richard Henderson <rth@redhat.com>
4084
4085 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4086
4087 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4088 (alpha_store_return_value): Likewise.
4089
4090 2003-06-02 David Carlton <carlton@math.stanford.edu>
4091
4092 * block.c (contained_in): Add 'const' to arguments.
4093 (block_function): Ditto.
4094 * block.h: Update declarations for block_function and
4095 contained_in.
4096
4097 2003-06-02 David Carlton <carlton@math.stanford.edu>
4098
4099 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4100 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4101 * p-valprint.c (pascal_val_print): Ditto.
4102 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4103
4104 2003-06-02 Richard Henderson <rth@redhat.com>
4105
4106 * alpha-tdep.c (alpha_push_dummy_call): Use
4107 builtin_type_ieee_double_little instead of builtin_type_double.
4108
4109 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4110 sign-extension of 32-bit values.
4111 (alpha_store_return_value): Similarly.
4112
4113 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4114 (alpha_extract_return_value): Likewise.
4115 (alpha_store_return_value): Likewise.
4116
4117 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4118 (alpha_store_return_value): Error on IEEE Quad floats.
4119
4120 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4121 (alpha_extract_struct_value_address): Likewise.
4122 (alpha_store_return_value): Likewise.
4123 (alpha_store_struct_return): Remove.
4124 (alpha_gdbarch_init): Update hook registration to match.
4125
4126 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4127 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4128 macros where appropriate.
4129 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4130 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4131
4132 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4133 for SP, GP; void_func_ptr for PC; non-language-specific types
4134 for all others.
4135 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4136
4137 2003-06-02 Richard Henderson <rth@redhat.com>
4138
4139 * top.h (lim_at_start): Declare.
4140 * main.c (captured_main): Set it.
4141 * top.c (lim_at_start): Define.
4142 (command_loop): Use it instead of &environ.
4143 * event-top.c (command_handler): Likewise.
4144
4145 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4146
4147 * mipsnbsd-tdep.c: Update copyright years.
4148 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4149
4150 2003-06-01 Richard Henderson <rth@redhat.com>
4151
4152 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4153 (alpha-linux-tdep.o): Update dependencies.
4154 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4155 * alpha-mdebug-tdep.c: Remove unneeded includes.
4156
4157 2003-06-01 Richard Henderson <rth@redhat.com>
4158
4159 * alpha-tdep.c (alpha_register_reggroup_p): New.
4160 (alpha_gdbarch_init): Register it.
4161
4162 2003-06-02 Andrew Cagney <cagney@redhat.com>
4163
4164 * dwarfread.c: Eliminate "register"
4165 (decode_die_type): Eliminate assignment within "if".
4166 (struct_type, decode_array_element_type): Ditto.
4167 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4168 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4169 (decode_modified_type, completedieinfo): Ditto.
4170 * block.c: Eliminate "register".
4171 (blockvector_for_pc_sect): Eliminate assignment within "if".
4172 * cp-support.h (struct symbol): Opaque declaration.
4173 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4174
4175 2003-06-01 Richard Henderson <rth@redhat.com>
4176
4177 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4178 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4179
4180 2003-06-01 Adam Fedor <fedor@gnu.org>
4181
4182 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4183 * gdbarch.[ch]: Regenerate.
4184 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4185 (hppa_gdbarch_init): Set it in the gdbarch vector.
4186 * i386-tdep.c (i386_fetch_pointer_argument): New
4187 (i386_gdbarch_init): Set it into gdbarch.
4188 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4189 (rs6000_gdbarch_init): Set it in gdbarch.
4190 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4191 (sparc_gdbarch_init): Set it in gdbarch.
4192
4193 2003-06-01 Andrew Cagney <cagney@redhat.com>
4194
4195 * defs.h (extract_address): Delete declaration.
4196 * findvar.c (extract_address): Delete function.
4197 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4198 extract_address with the inline equivalent,
4199 extract_unsigned_integer.
4200 (xstormy16_extract_struct_value_address): Ditto.
4201 (xstormy16_pointer_to_address): Ditto.
4202 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4203 * v850-tdep.c (v850_push_arguments): Ditto.
4204 (v850_extract_return_value): Ditto.
4205 (v850_extract_struct_value_address): Ditto.
4206 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4207 (sparcnbsd_get_longjmp_target_64): Ditto.
4208 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4209 (get_longjmp_target): Ditto.
4210 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4211 (sh64_extract_struct_value_address): Ditto.
4212 (sh_push_arguments): Ditto.
4213 (sh64_push_arguments): Ditto.
4214 * remote-vxsparc.c (vx_read_register): Ditto.
4215 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4216 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4217 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4218 * mipsv4-nat.c (get_longjmp_target): Ditto.
4219 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4220 * mips-nat.c (get_longjmp_target): Ditto.
4221 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4222 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4223 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4224 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4225 * irix5-nat.c (get_longjmp_target): Ditto.
4226 * irix4-nat.c (get_longjmp_target): Ditto.
4227 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4228 (ia64_push_arguments): Ditto.
4229 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4230 * h8300-tdep.c (h8300_push_arguments): Ditto.
4231 (h8300_store_return_value): Ditto.
4232 (h8300_extract_struct_value_address): Ditto.
4233 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4234 (frv_push_arguments): Ditto.
4235 * avr-tdep.c (avr_pointer_to_address): Ditto.
4236 (avr_push_arguments): Ditto.
4237 * arm-tdep.c (arm_push_dummy_call): Ditto.
4238 (arm_get_longjmp_target): Ditto.
4239 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4240 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4241 (alpha_get_longjmp_target): Ditto.
4242
4243 * solib-irix.c (extract_mips_address): Inline extract_address,
4244 replacing it with extract_signed_integer.
4245 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4246 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4247 (first_link_map_member, open_symbol_file_object): Ditto.
4248 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4249 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4250 (LM_NEXT, LM_NAME): Ditto.
4251
4252 2003-06-01 Richard Henderson <rth@redhat.com>
4253
4254 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4255 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4256 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4257 (alpha_cannot_store_register): Likewise.
4258 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4259 * alpha-nat.c (supply_gregset): Likewise.
4260 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4261
4262 2003-06-01 Andrew Cagney <cagney@redhat.com>
4263
4264 * infcall.c (call_function_by_hand): Update comment on
4265 DEPRECATED_DUMMY_WRITE_SP.
4266
4267 * mips-tdep.c (mips_gdbarch_init): Do not set
4268 deprecated_dummy_write_sp.
4269 (mips_eabi_push_dummy_call): Set the SP register.
4270 (mips_o64_push_dummy_call): Set the SP register.
4271 (mips_o32_push_dummy_call): Set the SP register.
4272 (mips_n32n64_push_dummy_call): Set the SP register.
4273
4274 2003-06-01 Richard Henderson <rth@redhat.com>
4275
4276 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4277 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4278 (supply_gregset): Likewise.
4279 * alpha-tdep.c (alpha_store_return_value): Likewise.
4280 (alpha_get_longjmp_target): Likewise.
4281 (alpha_register_name): Constify array.
4282 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4283 deprecated_register_size, deprecated_register_bytes,
4284 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4285 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4286 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4287
4288 2003-06-01 Richard Henderson <rth@redhat.com>
4289
4290 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4291 from arg_reg_buffer to regcache to avoid double conversion.
4292
4293 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4294
4295 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4296 SP_REGNUM.
4297 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4298 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4299
4300 2003-06-01 Richard Henderson <rth@redhat.com>
4301
4302 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4303 (decode_frame_entry): Set it. Skip FDE augmentation.
4304
4305 2003-06-01 Richard Henderson <rth@redhat.com>
4306
4307 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4308 not overlapping PC_REGNUM.
4309
4310 2003-06-01 Richard Henderson <rth@redhat.com>
4311
4312 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4313 alpha_push_arguments. Don't dump argument register data to
4314 the target stack. Fix float and 128-bit long double semantics.
4315 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4316 (alpha_fix_call_dummy): Remove.
4317 (alpha_call_dummy_words): Remove.
4318 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4319
4320 2003-06-01 Richard Henderson <rth@redhat.com>
4321
4322 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4323
4324 2003-06-01 Andrew Cagney <cagney@redhat.com>
4325
4326 * mips-tdep.c (is_mips16_addr): New function.
4327 (make_mips16_addr, unmake_mips16_addr): New functions.
4328 (pc_is_mips16, mips_fetch_instruction): Use.
4329 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4330 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4331 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4332 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4333 TARGET_MIPS.
4334 * config/mips/tm-mips.h: Update copyright.
4335 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4336 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4337 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4338 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4339 (TM_PRINT_INSN_MACH): Delete.
4340 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4341
4342 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4343 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4344 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4345 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4346 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4347 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4348 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4349 mips*-*-riscos* and mips*-*-sysv* onto mips.
4350 * config/mips/mips64.mt: New file.
4351 * config/mips/mips.mt: New file.
4352 * config/mips/littlemips.mt: Delete file.
4353 * config/mips/decstation.mt: Delete file.
4354 * config/mips/vr4300el.mt: Delete file.
4355 * config/mips/vr5000el.mt: Delete file.
4356 * config/mips/vr5000.mt: Delete file.
4357 * config/mips/vr4100.mt: Delete file.
4358 * config/mips/vr4xxxel.mt: Delete file.
4359 * config/mips/vr4300.mt: Delete file.
4360 * config/mips/vr4xxx.mt: Delete file.
4361 * config/mips/bigmips.mt: Delete file.
4362 * config/mips/bigmips64.mt: Delete file.
4363 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4364 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4365 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4366 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4367 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4368 "tm-bigmips.h".
4369 * config/mips/tm-irix3.h: Ditto.
4370 * config/mips/tm-mipsv4.h: Ditto.
4371 * config/mips/tm-embed.h: Ditto.
4372 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4373 "tm-bigmips64.h".
4374 * config/mips/tm-vr5000el.h: Delete file.
4375 * config/mips/tm-tx39l.h: Delete file.
4376 * config/mips/tm-vr4300el.h: Delete file.
4377 * config/mips/tm-vr4xxxel.h: Delete file.
4378 * config/mips/tm-vr4300.h: Delete file.
4379 * config/mips/tm-vr4100.h: Delete file.
4380 * config/mips/tm-vr4xxx.h: Delete file.
4381 * config/mips/tm-vr5000.h: Delete file.
4382 * config/mips/tm-embedl64.h: Delete file.
4383 * config/mips/tm-embedl.h: Delete file.
4384 * config/mips/tm-embed64.h: Delete file.
4385 * config/mips/tm-bigmips64.h: Delete file.
4386 * config/mips/tm-bigmips.h: Delete file.
4387
4388 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4389
4390 Fix gdb/1216.
4391 * shnbsd-nat.c: Include "sh-tdep.h".
4392
4393 From Richard Henderson <rth@redhat.com>:
4394 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4395
4396 2003-05-31 Andrew Cagney <cagney@redhat.com>
4397
4398 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4399 forward declaration.
4400 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4401 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4402 (mips_find_saved_regs): Use set_reg_offset.
4403 (mips_frame_init_saved_regs): Delete function.
4404 (mips_pop_frame): Call mips_find_saved_regs instead of
4405 DEPRECATED_FRAME_INIT_SAVED_REGS.
4406
4407 2003-05-31 Andrew Cagney <cagney@redhat.com>
4408
4409 * mips-tdep.c (mips_gdbarch_init): Do not set
4410 deprecated_max_register_raw_size, register_virtual_size, and
4411 deprecated_max_register_virtual_size.
4412
4413 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4414
4415 * i386-tdep.c: Include "dwarf2-frame.h".
4416 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4417 * Makefile.in (i386-tdep.o): Update dependencies.
4418
4419 * dwarf2-frame.c, dwarf2-frame.h: New files.
4420 * Makefile.in (SFILES): Add dwarf2-frame.c.
4421 (dwarf2_frame_h): Define.
4422 (COMMON_OBS): Add dwarf2-frame.o.
4423 (dwarf2-frame.o): Add dependencies.
4424
4425 2003-05-31 Andreas Jaeger <aj@suse.de>
4426
4427 * x86-64-linux-nat.c: Fix comment.
4428
4429 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4430
4431 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4432 function signature.
4433
4434 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4435 have a sigcontext_addr handler.
4436 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4437 sigcontext_addr handler.
4438
4439 2003-05-31 Andrew Cagney <cagney@redhat.com>
4440
4441 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4442 (print_fp_register_row): Replace do_fp_register_row.
4443 (mips_print_fp_register): Add "file" and "frame" parameters.
4444 (mips_print_register): Add "file" and "frame" parameters.
4445 (mips_print_registers_info): Replace mips_do_registers_info.
4446 (mips_gdbarch_init): Set print_registers_info instead of
4447 deprecated_do_registers_info.
4448 (mips_read_fp_register_single): Add "frame" parameter.
4449 (mips_read_fp_register_double): Add "frame" parameter.
4450
4451 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4452
4453 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4454 Fixes a bug where GDB would print the wrong register names for
4455 targets without SSE.
4456
4457 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4458 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4459 registers.
4460
4461 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4462 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4463 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4464 TDEP->sc_sp_offset.
4465
4466 From Michal Ludvig <mludvig@suse.cz>:
4467 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4468 and `sc_num_regs'.
4469 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4470 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4471 I386_ST0_REGNUM): Move here from...
4472 * i386-tdep.c: ... here.
4473 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4474 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4475 registers if possible.
4476 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4477 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4478 Remove variables.
4479 (i386bsd_sc_reg_offset): New variable.
4480 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4481 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4482 TDEP->sc_sp_offset.
4483 (i386fbsd_sc_reg_offset): New variable.
4484 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4485 TDEP->sc_num_regs.
4486 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4487 variables.
4488 (i386fbsd4_sc_reg_offset): New variable.
4489 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4490 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4491 TDEP->sc_sp_offset.
4492 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4493 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4494 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4495 Remove variables.
4496 (i386nbsd_sc_reg_offset): New variable.
4497 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4498 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4499 TDEP->sc_sp_offset.
4500 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4501 Remove variables.
4502 (i386obsd_sc_reg_offset): New variable.
4503 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4504 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4505 TDEP->sc_sp_offset.
4506 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4507 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4508 for frame pointer offset in `struct sigcontext'.
4509
4510 2003-05-31 Andrew Cagney <cagney@redhat.com>
4511
4512 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4513 architecture methods call_dummy_words, sizeof_call_dummy_words,
4514 push_return_address, store_struct_return, and fix_call_dummy. Set
4515 push_dummy_call instead of deprecated_push_arguments.
4516 (mips_store_struct_return): Delete function.
4517 (mips_fix_call_dummy): Delete function.
4518 (mips_push_return_address): Delete function.
4519 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4520 RA_REGNUM and T9_REGNUM.
4521 (mips_n32n64_push_dummy_call): Ditto for
4522 mips_n32n64_push_arguments.
4523 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4524 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4525
4526 2003-05-31 Andrew Cagney <cagney@redhat.com>
4527
4528 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4529 "dummy_addr" to "bp_addr".
4530 * infcall.c (call_function_by_hand): Pass "funaddr" to
4531 gdbarch_push_dummy_call.
4532 * gdbarch.h, gdbarch.c: Re-generate.
4533 * i386-tdep.c (i386_push_dummy_call): Update.
4534 * arm-tdep.c (arm_push_dummy_call): Update.
4535 * d10v-tdep.c (d10v_push_dummy_call): Update.
4536
4537 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4538
4539 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4540 variable declarations.
4541 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4542 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4543 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4544 x86_64_init_frame_pc, x86_64_init_frame_pc,
4545 x86_64_function_has_prologue): Remove prototypes.
4546 (X86_64_NUM_GREGS): New define.
4547 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4548 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4549 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4550 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4551 XMM1_REGNUM): Remove defines.
4552 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4553 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4554 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4555 X86_64_XMM1_REGNUM): New defines.
4556 (struct x86_64_register_info): Renamed from `struct
4557 register_info'. Remove `size' member.
4558 (x86_64_register_info_table): Remove variable.
4559 (x86_64_register_info): New variable.
4560 (X86_64_NUM_REGS): New define.
4561 (X86_64_NUM_GREGS): Remove define.
4562 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4563 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4564 Remove variables.
4565 (x86_54_dwarf2_reg_to_regnum): Remove function.
4566 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4567 (x86_64_dwarf_reg_to_regnum): New function.
4568 (x86_64_register_name): Rewrite.
4569 (x86_64_register_raw_size): Remove function.
4570 (x86_64_register_byte_table): Remove variable.
4571 (x86_64_register_byte): Remove function.
4572 (x86_64_register_virtual_type): Remove function.
4573 (x86_64_register_type): New function.
4574 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4575 x86_64_register_convert_to_raw): Remove functions.
4576 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4577 (x86_64_use_struct_convention): Make static. Adjust for renamed
4578 defines.
4579 (x86_64_frame_init_saved_regs): Remove function.
4580 (x86_64_push_arguments): Make static. Change to accept a regcache
4581 as argument.
4582 (x86_64_store_return_value, x86_64_extract_return_value): Make
4583 static. Rewrite based on i386 counterparts.
4584 (x86_64_push_dummy_call): New function.
4585 (X86_64_NUM_SAVED_REGS): New define.
4586 (x86_64_register_number): Remove function.
4587 (x86_64_store_struct_return): Remove function.
4588 (x86_64_frameless_function_invocation,
4589 x86_64_function_has_prologue): Remove functions.
4590 (PROLOG_BUFSIZE): Remove define.
4591 (struct x86_64_frame_cache): New structure.
4592 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4593 x86_64_frame_cache, x86_64_frame_this_id,
4594 x86_64_frame_prev_register, x86_64_frame_p,
4595 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4596 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4597 functions.
4598 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4599 variables.
4600 (x86_64_skip_prologue): Rewrite in terms of
4601 x86_64_analyze_prologue.
4602 (x86_64_frame_base_address): New function.
4603 (x86_64_frame_base): New variable.
4604 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4605 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4606 set deprecated_fp_regnum, deprecated_register_size,
4607 deprecated_register_bytes, register_raw_size, register_byte,
4608 register_virtual_type, register_convertiable,
4609 register_convert_to_virtual, convert_to_raw,
4610 deprecated_get_saved_register, deprecated_target_read_fp,
4611 deprecated_push_arguments, deprecated_push_return_address,
4612 deprecated_pop_frame, deprecated_store_struct_return,
4613 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4614 frameless_function_invocation, deprecated_frame_saved_pc,
4615 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4616 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4617 deprecated_init_frame_pc and virtual_frame_pointer. Call
4618 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4619 and x86_64_frame_p. Call frame_base_set_default to register
4620 x86_64_frame_base.
4621 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4622 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4623 (_initialize_x86_64_tdep): Remove function.
4624 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4625 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4626 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4627 define.
4628 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4629 (x86_64_linux_sigcontext_addr): Rewrite.
4630 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4631 x86_64_linux_frame_saved_pc): Remove functions.
4632 (x86_64_linux_pc_in_sigtramp): Renamed from
4633 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4634 trampoline.
4635 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4636 Remove_functions.
4637 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4638 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4639 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4640 (x86_64_regmap): Rename to regmap.
4641 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4642 x86_64_num_gregs.
4643 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4644 x86_64_regmap.
4645 (x86_64_fxsave_offset): Remove function.
4646 (supply_fpregset): Simply call x86_64_supply_fxsave.
4647 (fill_fpregset): Simply call x86_64_fill_fxsave.
4648 (fetch_inferior_registers, store_inferior_registers): Avoid
4649 asignment in if-statement.
4650 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4651 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4652 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4653 (fetch_core_registers): Remove function.
4654 (linux_elf_core_fns): Remove.
4655 (offsetoff): Don't define.
4656 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4657 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4658 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4659 add core-regset.o.
4660 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4661 protection against multiple includes instead of NM_X86_64_h. Add
4662 various comments. Include "config/nm-linux.h". Don't include
4663 <signal.h>.
4664 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4665 GET_THREAD_SIGNALS): Remove defines.
4666 (x86_64_register_u_addr, kernel_u_size,
4667 lin_thread_get_thread_signals): Remove prototypes.
4668 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4669 [HAVE_LINK_H]: Don't include "solib.h".
4670 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4671 * config/i386/tm-x86-64linux.h: Fix comments.
4672 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4673 x86-64-tdep.o): Update dependencies.
4674
4675 2003-05-30 Andrew Cagney <cagney@redhat.com>
4676
4677 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4678 Change parameter type to a "struct regcache *".
4679
4680 * gdbarch.sh: Regardless of the multi-arch level, always define
4681 the macro when not already defined.
4682 * gdbarch.h, gdbarch.c: Re-generate.
4683
4684 2003-05-30 Richard Henderson <rth@redhat.com>
4685
4686 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4687 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4688 (alpha_mdebug_frame_this_id): Likewise.
4689 (alpha_mdebug_frame_prev_register): Likewise.
4690 (alpha_mdebug_frame_base_address): Likewise.
4691 (alpha_mdebug_frame_locals_address): Likewise.
4692 (alpha_mdebug_frame_args_address): Likewise.
4693 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4694 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4695 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4696 loop increment.
4697 (alpha_heuristic_frame_this_id): Make static.
4698 (alpha_heuristic_frame_prev_register): Likewise.
4699 (alpha_heuristic_frame_base_address): Likewise.
4700 * alpha-tdep.h: Update.
4701
4702 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4703
4704 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4705 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4706 defenitions.
4707 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4708 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4709 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4710 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4711 I386_ST0_REGNUM): New defines.
4712 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4713 codestream_get): Remove define.
4714 (codestream_next_addr, condestream_addr, condestream_buf,
4715 codestream_off, codestream_cnt): Remove variables.
4716 (codestream_fill, codestream_seek, codestream_read): Remove
4717 functions.
4718 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4719 functionality.
4720 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4721 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4722 i386_frame_saved_pc, i386_saved_pc_after_call,
4723 i386_frame_num_args, i386_frame_init_saved_regs,
4724 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4725 i386_push_arguments): Remove functions.
4726 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4727 functionality. Use i386_analyze_prologue instead of
4728 i386_get_frame_setup.
4729 (I386_NUM_SAVED_REGS): New define.
4730 (struct i386_frame_cache): New structure.
4731 (i386_alloc_frame_cache, i386_analyze_struct_return,
4732 i386_skip_probe, i386_analyze_frame_setup,
4733 i386_analyze_register_saves, i386_analyze_prologue,
4734 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4735 i386_frame_prev_register, i386_sigtramp_frame_cache,
4736 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4737 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4738 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4739 New functions.
4740 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4741 New variables.
4742 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4743 I386_EAX_REGNUM and I386_EDX_REGNUM.
4744 (i386_extract_return_value, i386_store_return_value): Use
4745 I386_ST0_REGNUM where appropriate.
4746 (i386_extract_struct_value_address): Rewrite to use extract_address.
4747 (i386_svr4_pc_in_sigtramp): Add comment.
4748 (i386_svr4_sigcontext_addr): Rewrite.
4749 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4750 TDEP->sc_sp_offset.
4751 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4752 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4753 of new defines. Set push_dummy_call, don't set
4754 deprecated_push_arguments, deprecated_push_return_address,
4755 deprecated_pop_frame. Don't set parm_boundary. Don't set
4756 deprecated_frame_chain, deprecated_frame_saved_pc,
4757 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4758 save_dummy_frame_tos, unwind_pc. Call
4759 frame_unwind_append_predicate and frame_base_set_default. Don't
4760 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4761 Don't set frameless_function_invocation. Don't set
4762 deprecated_register_bytes, deprecated_register_size,
4763 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4764 * i386-linux-tdep.c: Fix formatting in some comments.
4765 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4766 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4767 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4768 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4769 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4770 redundant parentheses.
4771 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4772 (i386_linux_sigcontext_addr): Use it. Rewrite.
4773 (find_minsym_and_objfile): Change name of second argument.
4774 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4775 changed. Use frame_pc_unwind instead of
4776 DEPRECATED_SAVED_PC_AFTER_CALL.
4777 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4778 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4779 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4780 unwinder.
4781 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4782 "dummy-frame.h".
4783 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4784 (_initialize_i386_cygwin_tdep): New prototype.
4785 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4786 deprecated_frame_chain_valid.
4787 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4788 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4789 Rely on the SVR4 defaults.
4790 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4791 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4792
4793 2003-05-30 Andrew Cagney <cagney@redhat.com>
4794
4795 * infcall.c (call_function_by_hand): Always call
4796 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4797
4798 2003-05-30 Richard Henderson <rth@redhat.com>
4799
4800 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4801 increment.
4802
4803 2003-05-29 Jim Blandy <jimb@redhat.com>
4804
4805 Use gdbarch methods for solib stuff on PowerPC Linux.
4806 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4807 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4808 show through.
4809 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4810 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4811 giving the same effect as the #definitions above.
4812
4813 2003-05-29 Adam Fedor <fedor@gnu.org>
4814
4815 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4816 (find_implementation_from_class): Replace it with the standard
4817 case i.e. do nothing.
4818
4819 2003-05-29 Richard Henderson <rth@redhat.com>
4820
4821 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4822 (alpha_linux_sigtramp_offset): Use it. Make static.
4823 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4824 update for new frame model.
4825 * alpha-mdebug-tdep.c: New file.
4826 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4827 (alpha_osf1_init_abi): Install it.
4828 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4829 (linked_proc_desc_table): Remove.
4830 (alpha_frame_past_sigtramp_frame): Remove.
4831 (alpha_dynamic_sigtramp_offset): Remove.
4832 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4833 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4834 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4835 (push_sigtramp_desc): Remove.
4836 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4837 (alpha_cannot_store_register): Likewise.
4838 (alpha_sigcontext_addr): Remove.
4839 (alpha_find_saved_regs): Remove.
4840 (alpha_frame_init_saved_regs): Remove.
4841 (alpha_init_frame_pc_first): Remove.
4842 (read_next_frame_reg): Remove.
4843 (alpha_frame_saved_pc): Remove.
4844 (alpha_saved_pc_after_call): Remove.
4845 (temp_proc_desc, temp_saved_regs): Remove.
4846 (alpha_about_to_return): Remove.
4847 (cached_proc_desc): Remove.
4848 (alpha_frame_chain): Remove.
4849 (alpha_print_extra_frame_info): Remove.
4850 (alpha_init_extra_frame_info): Remove.
4851 (alpha_frame_locals_address): Remove.
4852 (alpha_frame_args_address): Remove.
4853 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4854 (alpha_push_dummy_frame): Remove.
4855 (alpha_pop_frame): Remove.
4856 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4857 (alpha_read_insn): New.
4858 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4859 for different insn encodings.
4860 (alpha_in_lenient_prologue): Remove.
4861 (struct alpha_sigtramp_unwind_cache): New.
4862 (alpha_sigtramp_frame_unwind_cache): New.
4863 (alpha_sigtramp_register_address): New.
4864 (alpha_sigtramp_frame_this_id): New.
4865 (alpha_sigtramp_frame_prev_register): New.
4866 (alpha_sigtramp_frame_unwind): New.
4867 (alpha_sigtramp_frame_p): New.
4868 (struct alpha_heuristic_unwind_cache): New.
4869 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4870 don't count nop insns that occur between functions.
4871 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4872 heuristic_proc_desc, but without the mdebug wrapping.
4873 (alpha_heuristic_frame_this_id): New.
4874 (alpha_heuristic_frame_prev_register): New.
4875 (alpha_heuristic_frame_unwind): New.
4876 (alpha_heuristic_frame_p): New.
4877 (alpha_heuristic_frame_base_address): New.
4878 (alpha_heuristic_frame_base): New.
4879 (alpha_unwind_dummy_id): New.
4880 (alpha_unwind_pc): New.
4881 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4882 frame related deprecated initializations; install replacements.
4883 (alpha_dump_tdep): Remove.
4884 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4885 (alpha_read_insn, alpha_after_prologue,
4886 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4887 alpha_heuristic_frame_prev_register,
4888 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4889 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4890 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4891 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4892
4893 2003-05-29 Andrew Cagney <cagney@redhat.com>
4894
4895 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4896 dependant on the availability of ASSERT_FUNCTION.
4897 (ASSERT_FUNCTION): Do not define when there is no function name.
4898
4899 2003-05-29 Kevin Buettner <kevinb@redhat.com>
4900
4901 From Jimi X <jimix@watson.ibm.com>:
4902 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4903
4904 2003-05-28 Jim Blandy <jimb@redhat.com>
4905
4906 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4907 argument to ptrace to int; the system headers should give it the
4908 right type, and pointers don't fit in ints on powerpc64-*-*.
4909
4910 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4911
4912 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4913 DW_TAG_catch_block.
4914
4915 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4916
4917 * stabsread.c (dbx_lookup_type): Make static.
4918 (read_type): Ditto.
4919 (add_undefined_type): Ditto.
4920 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4921 not export.
4922
4923 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4924
4925 * hpread.c (hpread_has_name): Make static.
4926 (hpread_psymtab_to_symtab): Ditto.
4927 (file_exists): Ditto.
4928 (hpread_call_pxdb): Ditto.
4929 (hpread_pxdb_needed): Ditto.
4930 (hpread_quick_traverse): Ditto.
4931 (hpread_get_header): Ditto.
4932 (hpread_get_lntt): Ditto.
4933 (hpread_get_slt): Ditto.
4934 (class_of): Ditto.
4935
4936 2003-05-25 Andreas Schwab <schwab@suse.de>
4937
4938 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4939 stack_align and deprecated_extra_stack_alignment_needed.
4940 (m68k_stack_align): Delete.
4941
4942 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4943 (m68k_register_virtual_size): Likewise.
4944 (altos_skip_prologue): Remove obsolete function.
4945 (isi_frame_num_args): Likewise.
4946 (news_frame_num_args): Likewise.
4947 (m68k_fix_call_dummy): Make static.
4948 (m68k_push_dummy_frame): Likewise.
4949 (m68k_pop_frame): Likewise.
4950 (m68k_skip_prologue): Likewise.
4951 (m68k_frame_init_saved_regs): Likewise.
4952 (m68k_saved_pc_after_call): Likewise.
4953 (m68k_get_longjmp_target): Make multi-arch.
4954 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4955 structure. Register m68k_get_longjmp_target if enabled.
4956 * m68k-tdep.h (struct gdbarch_tdep): Define.
4957 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4958
4959 * Makefile.in (config.status): Also depend on configure.tgt
4960 and configure.host.
4961 (m68klinux-tdep.o): Update dependencies.
4962 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4963 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4964 (M68K_LINUX_JB_PC): Define.
4965 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4966 and take additional parameter.
4967 (m68k_linux_sigtramp_saved_pc): Update.
4968 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4969 m68k_linux_pc_in_sigtramp, in_plt_section,
4970 find_solib_trampoline_target.
4971 * config/m68k/tm-linux.h: Don't include any tm headers.
4972 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4973 (JB_ELEMENT_SIZE): Likewise.
4974 (JB_PC): Likewise.
4975 (GET_LONGJMP_TARGET): Likewise.
4976 (IN_SIGTRAMP): Likewise.
4977 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4978
4979 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4980
4981 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4982 (sparc32_push_arguments): Re-implement by calling
4983 sparc32_do_push_arguments.
4984
4985 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4986
4987 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4988 SPARC_O1_REGNUM): New defines.
4989 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4990 (sparc32_store_return_value): New function.
4991 (sparc_extract_struct_value_address): Rewrite to operate on a
4992 regcache.
4993 (sparc_gdbarch_init): Don't set
4994 deprecated_extract_struct_value_address. Set
4995 extract_struct_value_address instead. Don't set
4996 deprecated_extract_return_value and deprecated_store_return_value
4997 for 32-bit targets. Set extract_return_value and
4998 store_return_value instead.
4999 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5000 DEPRECTAED_EXTRACT_RETURN_VALUE,
5001 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5002 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5003 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5004 (sparc_store_return_value): Remove prototype.
5005 (sparc32_store_return_value): New prototype.
5006 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5007 Adjust prototypes.
5008
5009 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5010
5011 * sparcnbsd-tdep.c: Include "gdb_string.h".
5012
5013 2003-05-23 Andrew Cagney <cagney@redhat.com>
5014
5015 * p-valprint.c (pascal_val_print): Replace extract_address with
5016 the inline equivalent extract_unsigned_integer.
5017 * jv-valprint.c (java_value_print): Ditto.
5018 * ada-valprint.c (ada_val_print_1): Ditto.
5019 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5020
5021 2003-05-23 Theodore A. Roth <troth@openavr.org>
5022
5023 * blockframe.c (frameless_look_for_prologue): Remove unused
5024 after_prologue variable.
5025
5026 2003-05-23 Mark Kettenis <kettenis@gnu.org>
5027
5028 * blockframe.c (get_pc_function_start): Rewrite to avoid
5029 asignments in if-statements.
5030
5031 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5032
5033 Committed by Elena Zannoni <ezannoni@redhat.com>.
5034 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5035 files, don't relocate absolute symbols (and do use mst_abs).
5036
5037 2003-05-23 Andrew Cagney <cagney@redhat.com>
5038
5039 * objc-lang.c: Include "gdb_assert.h".
5040 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5041 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5042 (gdb_check, gdb_check_fatal): Delete functions.
5043 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5044 gdb_assert.
5045 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5046 * Makefile.in (objc-lang.o): Update dependencies.
5047
5048 2003-05-22 Ian Lance Taylor <ian@airs.com>
5049
5050 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5051 with fprintf_filtered, not fprintf_unfiltered.
5052
5053 2003-05-22 Andrew Cagney <cagney@redhat.com>
5054
5055 * stack.c (frame_info): Inline extract_address, replacing it with
5056 extract_unsigned_integer.
5057 * findvar.c (unsigned_pointer_to_address): Ditto.
5058 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5059 * dwarf2expr.c (dwarf2_read_address): Ditto.
5060 * frame.c (frame_pc_unwind): Update comment.
5061 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5062
5063 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5064
5065 * infptrace.c (detach): Call print_sys_errmsg rather than
5066 perror_with_name to issue warning message when errno is non-zero
5067 after calling ptrace detach.
5068
5069 2003-05-21 J. Brobecker <brobecker@gnat.com>
5070
5071 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5072 macro definitions from here...
5073 * hppa-tdep.c: ...to there.
5074
5075 2003-05-20 Kevin Buettner <kevinb@redhat.com>
5076
5077 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5078 register_ptrace_addr(). Fix all callers.
5079
5080 2003-05-21 Andreas Schwab <schwab@suse.de>
5081
5082 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5083 dependencies.
5084 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5085 end.
5086 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5087 (_initialize_m68k_linux_tdep): New function.
5088 (m68k_linux_frame_saved_pc): Make static.
5089 (m68k_linux_extract_return_value): Likewise.
5090 (m68k_linux_store_return_value): Likewise.
5091 (m68k_linux_extract_struct_value_address): Likewise.
5092 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5093 Remove.
5094 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5095 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5096 (DEPRECATED_FRAME_SAVED_PC): Remove.
5097
5098 2003-05-20 Kris Warkentin <kewarken@qnx.com>
5099
5100 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5101 regset numbering rather than our own.
5102
5103 2003-05-19 David Carlton <carlton@bactrian.org>
5104
5105 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5106
5107 2003-05-19 David Carlton <carlton@bactrian.org>
5108
5109 Partial fix for PR c++/827.
5110 * cp-support.h: Include symtab.h.
5111 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5112 * cp-namespace.c: Update contributors.
5113 (cp_lookup_symbol_nonlocal): New.
5114 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5115 (lookup_symbol_file): Ditto.
5116 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5117 * block.h: Declare block_scope, block_using, block_global_block.
5118 * block.c (block_scope): New.
5119 (block_using, block_global_block): Ditto.
5120 * Makefile.in (cp_support_h): Depend on symtab_h.
5121 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5122
5123 2003-05-19 David Carlton <carlton@bactrian.org>
5124
5125 * language.h (struct language_defn): Add 'la_value_of_this'
5126 and 'la_lookup_symbol_nonlocal' members.
5127 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5128 lookup_symbol_static, lookup_symbol_global,
5129 lookup_symbol_aux_block.
5130 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5131 if we should search fields of this and how to do static/global
5132 lookup.
5133 (lookup_symbol_aux_block): Make extern.
5134 (basic_lookup_symbol_nonlocal): New.
5135 (lookup_symbol_static, lookup_symbol_global): Ditto.
5136 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5137 'la_lookup_symbol_nonlocal' members.
5138 * c-lang.c (c_language_defn, cplus_language_defn)
5139 (asm_language_defn, minimal_language_defn): Ditto.
5140 * jv-lang.c (java_language_defn): Ditto.
5141 * language.c (unknown_language_defn, auto_language_defn)
5142 (local_language_defn): Ditto.
5143 * m2-lang.c (m2_language_defn): Ditto.
5144 * objc-lang.c (objc_language_defn): Ditto.
5145 * scm-lang.c (scm_language_defn): Ditto.
5146 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5147 * p-lang.c (pascal_language_defn): Ditto for both.
5148 * Makefile.in (f-lang.o): Depend on value_h.
5149 (p-lang.o): Ditto.
5150
5151 2003-05-19 David Carlton <carlton@bactrian.org>
5152
5153 * block.h: Declare block_static_block.
5154 * block.c (block_static_block): New.
5155 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5156 lookup_symbol_aux_local, calling block_static_block instead.
5157 (lookup_symbol_aux_local): Delete 'static_block' argument.
5158
5159 2003-05-19 David Carlton <carlton@bactrian.org>
5160
5161 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5162
5163 2003-05-19 Michal Ludvig <mludvig@suse.cz>
5164
5165 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5166 register numbers mapping.
5167
5168 2003-05-18 Adam Fedor <fedor@gnu.org>
5169
5170 * symtab.c (completion_list_objc_symbol): New function.
5171 (make_symbol_completion_list): Use it to add ObjC symbols
5172 when looking though the list.
5173 (language_search_unquoted_string): New function.
5174 (make_file_symbol_completion_list): Use it.
5175
5176 2003-05-18 Andreas Schwab <schwab@suse.de>
5177
5178 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5179 dependencies.
5180 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5181 as m68k_linux_extract_return_value.
5182 (DEPRECATED_STORE_RETURN_VALUE): Define as
5183 m68k_linux_store_return_value.
5184 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5185 m68k_linux_extract_struct_value_address.
5186 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5187 get_next_frame, get_frame_base, get_frame_pc.
5188 (m68k_linux_frame_saved_pc): Use get_frame_base.
5189 (m68k_linux_extract_return_value): New function.
5190 (m68k_linux_store_return_value): New function.
5191 (m68k_linux_extract_struct_value_address): New function.
5192 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5193
5194 * c-exp.y (typebase): Remove duplicate occurence of
5195 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5196 of lookup_signed_typename.
5197
5198 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5199
5200 * dwarf2loc.c (find_location_expression): Change type of second
5201 argument to `size_t *'.
5202 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5203 for size variable.
5204
5205 2003-05-18 David Carlton <carlton@bactrian.org>
5206
5207 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5208 'linkage_name'. Add comment.
5209 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5210 'linkage_name'.
5211 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5212 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5213 (lookup_block_symbol): Ditto.
5214
5215 2003-05-16 Andrew Cagney <cagney@redhat.com>
5216
5217 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5218 * gdbarch.h, gdbarch.c: Re-generate.
5219 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5220 * TODO (REGISTER_BYTES): Delete reference.
5221 * alpha-tdep.c (alpha_gdbarch_init): Update.
5222 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5223 * x86-64-tdep.c (x86_64_init_abi): Update.
5224 * vax-tdep.c (vax_gdbarch_init): Update.
5225 * v850-tdep.c (v850_gdbarch_init): Update.
5226 * sparc-tdep.c (sparc_gdbarch_init): Update.
5227 * sh-tdep.c (sh_gdbarch_init): Update.
5228 * s390-tdep.c (s390_gdbarch_init): Update.
5229 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5230 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5231 (ns32k_gdbarch_init_32382): Update.
5232 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5233 * mcore-tdep.c (mcore_gdbarch_init): Update.
5234 * m68k-tdep.c (m68k_gdbarch_init): Update.
5235 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5236 * ia64-tdep.c (ia64_gdbarch_init): Update.
5237 * i386-tdep.c (i386_gdbarch_init): Update.
5238 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5239 * hppa-tdep.c (hppa_gdbarch_init): Update.
5240 * h8300-tdep.c (h8300_gdbarch_init): Update.
5241 * frv-tdep.c (frv_gdbarch_init): Update.
5242 * cris-tdep.c (cris_gdbarch_init): Update.
5243 * avr-tdep.c (avr_gdbarch_init): Update.
5244 * arm-tdep.c (arm_gdbarch_init): Update.
5245 * sparc-tdep.c (sparc_pop_frame): Update.
5246 * rs6000-tdep.c (rs6000_pop_frame): Update.
5247 * remote.c (init_remote_state): Update.
5248 (remote_prepare_to_store): Update.
5249 * remote-vx.c (vx_prepare_to_store): Update.
5250 * remote-sds.c (sds_fetch_registers): Update.
5251 (sds_prepare_to_store): Update.
5252 * remote-array.c: Update.
5253 * regcache.c (init_legacy_regcache_descr): Update.
5254 (init_regcache_descr): Update.
5255 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5256 (mips_o64_extract_return_value): Update.
5257 * irix5-nat.c (fetch_core_registers): Update.
5258 * irix4-nat.c (fetch_core_registers): Update.
5259 * i386-tdep.h: Update.
5260 * hppa-tdep.c (pa_do_registers_info): Update.
5261 (pa_do_strcat_registers_info): Update.
5262 * cris-tdep.c (cris_register_bytes_ok): Update.
5263 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5264 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5265 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5266 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5267 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5268 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5269 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5270 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5271 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5272 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5273 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5274 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5275 (REGISTER_BYTES_OK): Update.
5276 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5277 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5278
5279 2003-05-16 Ian Lance Taylor <ian@airs.com>
5280
5281 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5282 (vax_print_insn, print_insn_arg): Remove static functions.
5283 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5284 print_insn_vax from opcodes library.
5285 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5286
5287 2003-05-15 Andrew Cagney <cagney@redhat.com>
5288
5289 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5290 * target.h (memory_breakpoint_from_pc): Delete declaration.
5291 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5292 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5293 * monitor.c (monitor_insert_breakpoint): Use
5294 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5295 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5296 * gdbarch.h, gdbarch.c: Re-generate.
5297 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5298 (sparc_gdbarch_init): Set breakpoint_from_pc to
5299 sparc_breakpoint_from_pc.
5300 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5301 (BREAKPOINT_FROM_PC): Define.
5302 (sparc_breakpoint_from_pc): Declare.
5303 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5304 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5305 (BREAKPOINT_FROM_PC): Define.
5306 (BREAKPOINT): Delete macro.
5307 * target.h: Update comment.
5308 * s390-tdep.c (s390_gdbarch_init): Update comments.
5309 * remote.c: Update comments.
5310 * remote-mips.c: Update comments.
5311 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5312 * mem-break.c: Update comment.
5313 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5314 (ia64_memory_insert_breakpoint): Update.
5315 * config/sparc/tm-sparc.h: Update comment.
5316 * config/pa/tm-hppa64.h: Update comment.
5317 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5318 (rs6000_breakpoint_from_pc): Update.
5319 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5320 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5321 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5322 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5323 (mips_breakpoint_from_pc): Update.
5324 (mips_dump_tdep): Update.
5325
5326 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5327 * minsyms.c (lookup_minimal_symbol): Inline
5328 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5329
5330 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5331 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5332 * p-lang.c (pascal_printstr): Ditto.
5333 * objc-lang.c (objc_printstr): Ditto.
5334 * m2-lang.c (m2_printstr): Ditto.
5335 * jv-valprint.c (java_print_value_fields): Ditto.
5336 * f-lang.c (f_printstr): Ditto.
5337 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5338 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5339 for repeat_count_threshold.
5340 * Makefile.in (cp-valprint.o): Update dependencies.
5341
5342 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
5343
5344 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5345 (examine_prologue): Support looking through leaf functions, knowing
5346 they start with mov r2,r12. Support skipping over indirect stores
5347 of the input registers. Upon hitting a non-nop branch instruction
5348 or predicated instruction, bail out by setting lim_pc to the current
5349 pc value in the loop. At the end, if the lim_pc value is still
5350 beyond our calculated value and we have trust_limit set,
5351 use the lim_pc value.
5352
5353 2003-05-15 Andrew Cagney <cagney@redhat.com>
5354
5355 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5356 generic_find_dummy_frame.
5357 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5358 (deprecated_generic_find_dummy_frame): Update.
5359 (deprecated_read_register_dummy): Update.
5360 * frame.c (deprecated_generic_get_saved_register): Update.
5361
5362 2003-05-15 Theodore A. Roth <troth@openavr.org>
5363
5364 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5365 (avr_gdbarch_init): Set breakpoint_from_pc method.
5366
5367 2003-05-15 Andrew Cagney <cagney@redhat.com>
5368
5369 * regcache.c (build_regcache): Set deprecated_register_valid
5370 directly.
5371 (deprecated_grub_regcache_for_register_valid): Delete function.
5372 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5373 declaration.
5374
5375 2003-05-15 David Carlton <carlton@bactrian.org>
5376
5377 Committed by Elena Zannoni <ezannoni@redhat.com>
5378 * symtab.c (lookup_symbol_aux): Delete calls to
5379 lookup_symbol_aux_minsyms.
5380 (lookup_symbol_aux_minsyms): Comment out function and
5381 prototype. Delete lookup by mangled name.
5382
5383 2003-05-14 Kevin Buettner <kevinb@redhat.com>
5384
5385 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5386 correctly indicate an empty stack and ``stack_allocated'' to the
5387 indicate the number of elements initially allocated.
5388 (dwarf_expr_grow_stack): Simplify method for computing new
5389 stack size. Don't loop infinitely if ``stack_len'' is zero.
5390 (execute_stack_op): Move ``ctx->in_reg'' initialization
5391 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5392 be used in conjuction with DW_OP_piece. Revise error message
5393 accordingly.
5394
5395 2003-05-14 Theodore A. Roth <troth@openavr.org>
5396
5397 * MAINTAINERS: Update my email address.
5398 * avr-tdep.c: Ditto.
5399
5400 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
5401
5402 * symtab.h (enum domain_enum): Rename from namespace_enum.
5403 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5404 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5405 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5406 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5407 TYPES_NAMESPACE, METHODS_NAMESPACE.
5408 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5409 (struct symbol, struct partial_symbol): Rename field
5410 'namespace_enum namespace' to 'domain_enum domain'.
5411 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5412 Delete old define kludge for namespace.
5413
5414 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5415 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5416 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5417 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5418 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5419 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5420 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5421 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5422 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5423 occurrences of the above.
5424
5425 2003-05-14 Ian Lance Taylor <ian@airs.com>
5426
5427 * Makefile.in (install-only): Use $(SHELL) when running
5428 mkinstalldirs.
5429
5430 2003-05-13 Ian Lance Taylor <ian@airs.com>
5431
5432 * MAINTAINERS (write after approval): Add myself.
5433
5434 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5435 second and third arguments.
5436 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5437 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5438
5439 2003-05-13 Andrew Cagney <cagney@redhat.com>
5440
5441 * defs.h (store_address): Delete declaration.
5442 findvar.c (store_address): Delete function.
5443 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5444 store_unsigned_integer.
5445 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5446 * v850-tdep.c (v850_push_arguments): Ditto.
5447 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5448 * sh-tdep.c (sh64_get_saved_register): Ditto.
5449 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5450 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5451 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5452 (mips_get_saved_register): Ditto.
5453 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5454 (find_func_descr, ia64_push_arguments): Ditto.
5455 * i386-tdep.c (i386_push_arguments): Ditto.
5456 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5457 * frv-tdep.c (frv_push_arguments): Ditto.
5458 * frame.c (legacy_saved_regs_prev_register): Ditto.
5459 (deprecated_generic_get_saved_register): Ditto.
5460 * findvar.c (unsigned_address_to_pointer): Ditto.
5461 * dwarf2read.c (dwarf2_const_value): Ditto.
5462 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5463 * alpha-tdep.c (alpha_push_arguments): Ditto.
5464
5465 2003-05-12 J. Brobecker <brobecker@gnat.com>
5466
5467 * NEWS: Mention that the hppa-hpux port has been partially
5468 multiarched (32bit ABIT only, so far).
5469
5470 2003-05-11 Andrew Cagney <cagney@redhat.com>
5471
5472 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5473 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5474 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5475 sim/testsuite/sim/arm/misaligned2.ms, and
5476 sim/testsuite/sim/arm/misaligned3.ms.
5477 * disasm.h (struct ui_file): Add opaque struct declaration.
5478 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5479 * frame.h (struct ui_file): Ditto.
5480
5481 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5482
5483 * value.h: Pretty print.
5484
5485 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5486
5487 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5488
5489 2003-05-08 Andrew Cagney <cagney@redhat.com>
5490
5491 * regcache.h (max_register_size): Delete declaration.
5492 * regcache.c (max_register_size): Delete function.
5493 (struct regcache_descr): Delete field "max_register_size".
5494 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5495 registers fit in MAX_REGISTER_SIZE.
5496 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5497 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5498 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5499 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5500 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5501 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5502 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5503 * dve3900-rom.c, hppa-tdep.c: Ditto.
5504
5505 2003-05-08 David Carlton <carlton@math.stanford.edu>
5506
5507 * valops.c (push_word): Fix typo.
5508
5509 2003-05-08 Andrew Cagney <cagney@redhat.com>
5510
5511 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5512 * gdbarch.h: Re-generate.
5513 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5514 (legacy_max_register_raw_size): Delete declaration.
5515 * regcache.c (legacy_max_register_raw_size): Delete function.
5516 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5517 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5518 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5519 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5520 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5521 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5522 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5523 * findvar.c, dwarf2cfi.c: Ditto.
5524
5525 2003-05-08 Andrew Cagney <cagney@redhat.com>
5526
5527 * mips-tdep.c (read_signed_register): New function, moved to here
5528 from "regcache.c".
5529 (read_signed_register_pid): Ditto.
5530 * regcache.c (read_signed_register_pid): Delete function, moved to
5531 "mips-tdep.c".
5532 (read_signed_register): Ditto.
5533 * regcache.h (read_signed_register): Delete declaration.
5534 (read_signed_register_pid): Delete declaration.
5535
5536 2003-05-08 Andrew Cagney <cagney@redhat.com>
5537
5538 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5539 * gdbarch.h: Re-generate.
5540 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5541 (legacy_max_register_virtual_size): Delete declaration.
5542 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5543 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5544 * tracepoint.c (memrange_sortmerge): Ditto.
5545 * sparc-tdep.c (sparc_print_registers): Ditto.
5546 * regcache.c (legacy_max_register_virtual_size): Delete function.
5547
5548 2002-05-08 J. Brobecker <brobecker@gnat.com>
5549
5550 * fork-child.c (escape_bang_in_quoted_argument): New function.
5551 (fork_inferior): Escape '!' characters in quoted arguments
5552 only when needed.
5553
5554 2003-05-08 J. Brobecker <brobecker@gnat.com>
5555
5556 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5557 the language of the CU is not currently supported by GDB.
5558
5559 2003-05-08 J. Brobecker <brobecker@gnat.com>
5560
5561 * defs.h (language): Add language_minimal enum value.
5562 * c-lang.c (minimal_language_defn): New language definition.
5563 (_initialize_c_language): Add the new minimal language to the list
5564 of languages known to GDB.
5565
5566 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5567
5568 * frame.c (get_frame_type): Don't attempt to lazily initialize
5569 frame's unwinder for legacy frames.
5570
5571 2003-05-07 Andrew Cagney <cagney@redhat.com>
5572
5573 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5574 and "regcache" parameters.
5575 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5576
5577 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5578
5579 * dwarf2read.c (dwarf_decode_lines): Only use output of
5580 check_cu_functions() when calling record_line(). Do not update
5581 the current address.
5582
5583 2003-05-07 Andrew Cagney <cagney@redhat.com>
5584
5585 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5586 code.
5587
5588 2003-05-07 Jim Blandy <jimb@redhat.com>
5589
5590 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5591 'maint info symtabs' and 'maint info psymtabs'.
5592 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5593 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5594 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5595 Declarations updated.
5596 * maint.c (maintenance_list_command): Delete.
5597 (_initialize_maint_cmds): Update calls to add_cmd.
5598 * gdbcmd.h (maintenancelistlist): Delete declaration.
5599 * cli/cli-cmds.c (maintenancelistlist): Delete.
5600 (init_cmd_lists): Don't initialize it.
5601 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5602
5603 2003-05-07 Andrew Cagney <cagney@redhat.com>
5604
5605 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5606 "regcache".
5607 (d10v_print_registers_info): Update.
5608 (d10v_dmap_register, d10v_imap_register): Delete functions.
5609 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5610 and "imap_register".
5611 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5612 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5613 * arch-utils.c (generic_remote_translate_xfer_address): Add
5614 "regcache" and "gdbarch" parameters.
5615 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5616 parameter. Change class to multi-arch.
5617 * gdbarch.h, gdbarch.c: Re-generate.
5618 * remote.c (remote_xfer_memory): Use
5619 gdbarch_remote_translate_xfer_address.
5620
5621 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5622
5623 * infrun.c (prev_pc): Move declaration ahead of proceed().
5624 (proceed): Refresh prev_pc value before resuming.
5625 (stop_stepping): Remove code to refresh prev_pc.
5626
5627 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5628
5629 * nto-tdep.c: Removed stray comment.
5630
5631 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5632
5633 * i386-nto-tdep.c: Fix old K&R function definitions.
5634 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5635 Also change add_show_from_set() call to add_setshow_cmd().
5636 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5637
5638 2003-05-05 Andrew Cagney <cagney@redhat.com>
5639
5640 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5641 (fprint_dummy_frames): New function.
5642 (maintenance_print_dummy_frames): New function.
5643 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5644 * frame.c (fprint_frame_id): Make global.
5645 * frame.h (fprint_frame_id): Declare.
5646 * Makefile.in (dummy-frame.o): Update dependencies.
5647
5648 2003-05-05 Andrew Cagney <cagney@redhat.com>
5649
5650 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5651 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5652 SIZEOF_CALL_DUMMY_WORDS.
5653 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5654 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5655 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5656 CALL_DUMMY_BREAKPOINT_OFFSET.
5657 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5658 CALL_DUMMY_START_OFFSET.
5659 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5660 * gdbarch.h, gdbarch.c: Re-generate.
5661 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5662 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5663 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5664 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5665 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5666 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5667 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5668 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5669 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5670 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5671 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5672 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5673 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5674 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5675 * config/sparc/tm-sparc.h: Update.
5676
5677 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5678
5679 * configure.tgt: Add i[3456]86-*-nto*.
5680 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5681 * nto-tdep.c: New file. Neutrino target support routines.
5682 * nto-tdep.h: New file. Neutrino target header.
5683 * config/tm-qnxnto.h: New file.
5684 * config/i386/i386nto.mt: New file.
5685 * config/i386/tm-i386nto.h: New file.
5686
5687 2003-05-04 Andrew Cagney <cagney@redhat.com>
5688
5689 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5690 (load_infrun_state): Ditto.
5691 (struct thread_info): Drop "prev_func_name" field.
5692 * thread.c (load_infrun_state): Update.
5693 (save_infrun_state): Update.
5694 * infrun.c (prev_func_name): Delete variable.
5695 (init_wait_for_inferior): Do not clear prev_func_name.
5696 (stop_stepping, keep_going, context_switch): Do not swap
5697 prev_func_name.
5698 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5699 instead of PC_IN_SIGTRAMP.
5700
5701 2003-05-04 Andrew Cagney <cagney@redhat.com>
5702
5703 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5704 REGISTER_BYTE with register_offset_hack.
5705 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5706 that REGISTER_BYTE is consistent with the regcache.
5707 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5708 * gdbarch.h, gdbarch.c: Regenerate.
5709
5710 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5711
5712 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5713 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5714
5715 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5716
5717 2003-05-03 J. Brobecker <brobecker@gnat.com>
5718
5719 From Thierry Schneider <tpschneider1@yahoo.com>
5720 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5721 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5722 (mi-cmd-symbol.o): Add rule.
5723
5724 2003-05-03 Andrew Cagney <cagney@redhat.com>
5725
5726 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5727 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5728 * gdbarch.h, gdbarch.c: Re-generate.
5729 * d10v-tdep.c (d10v_push_dummy_code): New function.
5730 (d10v_gdbarch_init): Set push_dummy_code.
5731 * infcall.c (legacy_push_dummy_code): New function.
5732 (generic_push_dummy_code): New function.
5733 (push_dummy_code): New function.
5734 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5735 instead of dummy_addr, to push_dummy_call. Move call to
5736 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5737 switch.
5738 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5739
5740 2003-05-03 Andrew Cagney <cagney@redhat.com>
5741
5742 * disasm.h (print_insn): Declare.
5743 * disasm.c (init_gdb_disassemble_info): New function.
5744 (gdb_disassembly): Call init_gdb_disassemble_info.
5745 (gdb_print_insn): New function.
5746 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5747 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5748 * mcore-tdep.c: Include "disasm.h"
5749 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5750 * d10v-tdep.c: Include "disasm.h".
5751 (display_trace): Call gdb_print_insn, instead of print_insn.
5752 (print_insn): Delete function.
5753 * printcmd.c: Include "disasm.h".
5754 (print_insn): Delete function.
5755 (print_formatted): Call gdb_print_insn, instead of print_insn.
5756 * Makefile.in (printcmd.o): Update dependencies.
5757 (mcore-tdep.o, d10v-tdep.o): Ditto.
5758
5759 2003-05-02 Andrew Cagney <cagney@redhat.com>
5760
5761 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5762 PC_REGNUM, re-indent.
5763 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5764 PC_REGNUM isn't set.
5765
5766 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5767 * gdbarch.h, gdbarch.c: Re-generate.
5768 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5769 register_virtual_size, pc_regnum, or register_bytes.
5770 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5771 (d10v_register_type): Use D10V_PC_REGNUM.
5772 (d10v_print_registers_info, d10v_read_pc): Ditto.
5773 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5774 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5775
5776 2003-05-02 David Carlton <carlton@bactrian.org>
5777
5778 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5779 the name with mstrsave.
5780
5781 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5782
5783 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5784 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5785 (host_charset_name, target_charset_name): New vars for use by
5786 set/show commands.
5787 (host_charset_enum, target_charset_enum): New enums for set/show
5788 commands.
5789 (set_charset_sfunc, set_host_charset_sfunc,
5790 set_target_charset_sfunc): New functions.
5791 (set_host_charset, set_target_charset): Make static.
5792 (list_charsets, set_host_charset_command,
5793 set_target_charset_command): Delete functions.
5794 (show_charset_command): Rewrite as....
5795 (show_charset): Hook this up with the set/show command mechanism.
5796 (_initialize_charset): Change names of charsets to match the
5797 set/show enums. Use host_charset_name and target_charset_name.
5798 Use set/show mechanism for charset, host-charset, target-charset
5799 commands. Do not make 'show host-charset' and 'show
5800 target-charset' be aliases of 'show charset'.
5801
5802 * charset.h (set_host_charset, set_target_charset): Don't export,
5803 they are not used outside the file.
5804
5805 2003-05-01 Andrew Cagney <cagney@redhat.com>
5806
5807 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5808 (gdb_disassembly): Make "di" non static, always initialize and
5809 cleanup. Always use dis_asm_read_memory.
5810 (gdb_dis_asm_read_memory): Delete function.
5811
5812 2003-05-01 Andrew Cagney <cagney@redhat.com>
5813
5814 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5815 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5816
5817 2003-04-30 Andrew Cagney <cagney@redhat.com>
5818
5819 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5820 "tm_print_insn_info".
5821 (TARGET_PRINT_INSN_INFO): Delete macro.
5822 (dis_asm_read_memory): Delete function declaration.
5823 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5824 (tm_print_insn_info): Delete variable definition.
5825 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5826 * gdbarch.h, gdbarch.c: Re-generate.
5827 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5828 "deprecated_tm_print_insn_info".
5829 * mcore-tdep.c (mcore_dump_insn): Ditto.
5830 * mips-tdep.c (mips_gdbarch_init): Ditto.
5831 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5832 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5833 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5834 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5835 instead of TARGET_PRINT_INSN_INFO, add comment.
5836 * s390-tdep.c (s390_get_frame_info): Instead of
5837 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5838 (s390_check_function_end, s390_is_sigreturn): Ditto.
5839 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5840 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5841 * disasm.c: Include "gdbcore.h".
5842 (_initialize_disasm): New function, initialize
5843 "deprecated_tm_print_insn_info".
5844 (deprecated_tm_print_insn_info): New variable.
5845 (dis_asm_read_memory): Moved from "corefile.c", made static.
5846 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5847 * Makefile.in (disasm.o): Update dependencies.
5848
5849 2003-04-30 Andrew Cagney <cagney@redhat.com>
5850
5851 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5852
5853 2003-04-29 Adam Fedor <fedor@gnu.org>
5854
5855 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5856 * infcall.c (find_function_addr): Make non-static.
5857 * infcall.h (find_function_addr): Declare.
5858 * Makefile.in (eval.o): Update dependencies.
5859
5860 2003-04-28 Adam Fedor <fedor@gnu.org>
5861
5862 * symtab.c (symbol_find_demangled_name): Check for and demangle
5863 ObjC symbols.
5864 (symbol_init_demangled_name): Init for language_objc as well.
5865
5866 2003-04-28 Andrew Cagney <cagney@redhat.com>
5867
5868 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5869 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5870 * gdbarch.h, gdbarch.c: Re-generate.
5871 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5872 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5873 * inferior.h (deprecated_read_fp): Rename read_fp.
5874 (generic_target_read_fp): Delete declaration.
5875 * regcache.c (generic_target_read_fp): Delete function.
5876 (deprecated_read_fp): Replace read_fp, use
5877 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5878 * d10v-tdep.c (d10v_read_fp): Delete function.
5879 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5880
5881 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5882 deprecated_target_read_fp to generic_target_read_fp.
5883 * sh-tdep.c (sh_gdbarch_init): Ditto.
5884 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5885 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5886 * frv-tdep.c (frv_gdbarch_init): Ditto.
5887
5888 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5889 deprecated_fp_regnum.
5890 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5891 * vax-tdep.c (vax_gdbarch_init): Ditto.
5892 * v850-tdep.c (v850_gdbarch_init): Ditto.
5893 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5894 * sh-tdep.c (sh_gdbarch_init): Ditto.
5895 * s390-tdep.c (s390_gdbarch_init): Ditto.
5896 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5897 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5898 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5899 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5900 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5901 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5902 * i386-tdep.c (i386_gdbarch_init): Ditto.
5903 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5904 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5905 * frv-tdep.c (frv_gdbarch_init): Ditto.
5906 * cris-tdep.c (cris_gdbarch_init): Ditto.
5907 * avr-tdep.c (avr_gdbarch_init): Ditto.
5908 * arm-tdep.c (arm_gdbarch_init): Ditto.
5909 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5910
5911 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5912 * v850-tdep.c (v850_gdbarch_init): Ditto.
5913 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5914 * sh-tdep.c (sh_gdbarch_init): Ditto.
5915 * s390-tdep.c (s390_gdbarch_init): Ditto.
5916 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5917 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5918 * mips-tdep.c (mips_gdbarch_init): Ditto.
5919 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5920 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5921 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5922 * frv-tdep.c (frv_gdbarch_init): Ditto.
5923 * avr-tdep.c (avr_gdbarch_init): Ditto.
5924 * arm-tdep.c (arm_gdbarch_init): Ditto.
5925
5926 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5927 DEPRECATED_FP_REGNUM.
5928 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5929 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5930 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5931 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5932 (sparc32_register_virtual_type): Ditto.
5933 * sh-tdep.c (sh64_frame_chain): Ditto.
5934 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5935 (sh_nofp_frame_init_saved_regs): Ditto.
5936 (sh64_nofp_frame_init_saved_regs): Ditto.
5937 (sh_fp_frame_init_saved_regs): Ditto.
5938 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5939 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5940 * procfs.c (procfs_fetch_registers): Ditto.
5941 (procfs_store_registers): Ditto.
5942 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5943 (store_inferior_registers, fetch_core_registers): Ditto.
5944 (fetch_kcore_registers, clear_regs): Ditto.
5945 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5946 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5947 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5948 * nlm/i386.c (do_status): Ditto.
5949 * mipsv4-nat.c (supply_gregset): Ditto.
5950 * mips-tdep.c: Ditto for comments.
5951 * mips-nat.c (fetch_inferior_registers): Ditto.
5952 (store_inferior_registers, fetch_core_registers): Ditto.
5953 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5954 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5955 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5956 (i386_do_pop_frame, i386_register_type): Ditto.
5957 * hppa-tdep.c (hppa_frame_chain): Ditto.
5958 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5959 (hppa_pop_frame, hppa_read_fp): Ditto.
5960 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5961 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5962 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5963 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5964 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5965 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5966 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5967 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5968 * blockframe.c: Ditto for comments.
5969 * arch-utils.h: Ditto for comments.
5970 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5971 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5972 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5973 * alpha-tdep.h: Ditto for comments.
5974 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5975 (alpha_cannot_store_register): Ditto.
5976 (alpha_push_dummy_frame): Ditto.
5977 * alpha-nat.c (supply_gregset): Ditto.
5978
5979 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5980 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5981 * config/sparc/tm-sparc.h: Update comment.
5982
5983 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5984 deprecated_read_fp instead of TARGET_READ_FP.
5985 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5986 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5987 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5988 deprecated_read_fp instead of read_fp.
5989 * s390-tdep.c (s390_push_arguments): Ditto.
5990 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5991 * frame.h: Ditto in comments.
5992 * frame.c (legacy_get_prev_frame): Ditto.
5993 * dummy-frame.c (dummy_frame_this_id): Ditto.
5994 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5995
5996 2003-04-28 Andrew Cagney <cagney@redhat.com>
5997
5998 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5999 * gdbarch.h, gdbarch.c: Re-generate.
6000 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6001 * vax-tdep.c (_initialize_vax_tdep): Update.
6002 * v850-tdep.c (_initialize_v850_tdep): Update.
6003 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6004 * s390-tdep.c (_initialize_s390_tdep): Update.
6005 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6006 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6007 * mips-tdep.c (_initialize_mips_tdep): Update.
6008 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6009 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6010 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6011 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6012 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6013 * frv-tdep.c (_initialize_frv_tdep): Update.
6014 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6015 (_initialize_cris_tdep): Update.
6016 * arch-utils.c (legacy_print_insn): Update.
6017 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6018
6019 2003-04-26 Adam Fedor <fedor@gnu.org>
6020
6021 * linespec.c (decode_objc): New function to decode ObjC calls
6022 (decode_line_1): Check for ObjC calls (using decode_objc)
6023 * Makefile (linespec.o): Update dependencies.
6024
6025 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
6026
6027 * breakpoint.h (struct breakpoint_ops): New.
6028 (struct breakpoint): Add ops member.
6029
6030 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6031 (mention): Use new breakpoint ops member.
6032 (set_raw_breakpoint): Initialize ops field to NULL.
6033 (print_exception_catchpoint, print_one_exception_catchpoint)
6034 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6035 (gnu_v3_exception_catchpoint_ops): New.
6036 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6037
6038 2003-04-25 Adam Fedor <fedor@gnu.org>
6039
6040 * Makefile.in (COMMON_OBS): Add objc-lang.o
6041
6042 2003-04-25 Andrew Cagney <cagney@redhat.com>
6043
6044 * d10v-tdep.c (print_insn): Delete function.
6045 (display_trace): Use TARGET_PRINT_INSN.
6046 (_initialize_d10v_tdep): Do not set tm_print_insn.
6047 (d10v_gdbarch_init): Set print_insn.
6048
6049 2003-04-25 Andrew Cagney <cagney@redhat.com>
6050
6051 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6052 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6053 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6054 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6055 (nr_dmap_regs, a0_regnum): ... new functions.
6056 (d10v_print_registers_info): Use a0_regnum, use register_size.
6057 (d10v_register_byte): Delete function.
6058 (d10v_register_raw_size): Delete function.
6059 (d10v_register_type): Use a0_regnum.
6060 (d10v_print_registers_info): Use a0_regnum.
6061 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6062 (d10v_gdbarch_init): Do not set register_byte or
6063 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6064 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6065 extract_address.
6066 (trace_command): Use XCALLOC.
6067 (print_insn): Delete reference to tm_print_insn.
6068 (saved_regs_unwinder): Use store_unsigned_integer instead of
6069 store_address.
6070 * frame.h (FRAME_OBSTACK_CALLOC): Define
6071
6072 2003-04-25 David Carlton <carlton@bactrian.org>
6073
6074 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6075
6076 2003-04-24 Adam Fedor <fedor@gnu.org>
6077
6078 * objc-lang.c: Include "valprint.h"
6079 * Makefile.in (objc-lang.o): Update dependencies.
6080
6081 2003-04-24 Adam Fedor <fedor@gnu.org>
6082
6083 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6084 architecture dependant compilation and mark as unimplemented
6085 (until they get put in the gdbarch vector).
6086
6087 2003-04-23 David Carlton <carlton@bactrian.org>
6088
6089 * cp-support.c (cp_find_first_component): Accept 'operator' in
6090 more locations.
6091
6092 2003-04-23 Andrew Cagney <cagney@redhat.com>
6093
6094 * infcall.c (call_function_by_hand): Eliminate redundant
6095 indentation. Move "saved_async" and "old_cleanups" to where they
6096 are needed.
6097
6098 2003-04-23 Andrew Cagney <cagney@redhat.com>
6099
6100 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6101 and "buffer". Move the "name" code to where it is needed.
6102
6103 2003-04-23 Andrew Cagney <cagney@redhat.com>
6104
6105 * infcall.c (call_function_by_hand): Move variables "start_sp",
6106 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6107 code to ON_STACK switch branch.
6108
6109 2003-04-23 Andrew Cagney <cagney@redhat.com>
6110
6111 * infcall.c (call_function_by_hand): Make declaration of "i",
6112 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6113 lint.
6114
6115 2003-04-23 Andrew Cagney <cagney@redhat.com>
6116
6117 * infcall.c (call_function_by_hand): Delete variable
6118 "n_method_args". Localize "param_type"'s declaration to the loop
6119 that it is used. Reinstate code assigning to said variable -
6120 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6121 Rationalize code using "param_type".
6122
6123 2003-04-22 Andrew Cagney <cagney@redhat.com>
6124
6125 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6126 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6127 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6128 to DEPRECATED_PUSH_RETURN_ADDRESS.
6129
6130 2003-04-22 Kevin Buettner <kevinb@redhat.com>
6131
6132 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6133 on the DWARF2 register number prior to fetching a register.
6134
6135 2003-04-22 J. Brobecker <brobecker@gnat.com>
6136
6137 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6138 Update all the tests using SOFT_FLOAT considering the fact that
6139 this macro was always set to 0.
6140 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6141 considering the fact that this macro was always set to 0.
6142 * hppa-tdep.h (hppa_store_return_value): Likewise.
6143 (hppa_extract_return_value): Likewise.
6144
6145 2003-04-22 J. Brobecker <brobecker@gnat.com>
6146
6147 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6148 the hppa-pro target only.
6149
6150 2003-04-21 J. Brobecker <brobecker@gnat.com>
6151
6152 Ongoing multi-arch conversion effort for HP/UX:
6153 * config/pa/tm-hppa.h: Move all macro that are no longer
6154 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6155 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6156
6157 2003-04-21 J. Brobecker <brobecker@gnat.com>
6158
6159 * config/pa/tm-hppa.h: Obsolete a section that was only used
6160 for hppa-pro.
6161
6162 2003-04-21 J. Brobecker <brobecker@gnat.com>
6163
6164 Ongoing multi-arch conversion for HP/UX.
6165 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6166 if already defined (allows hppa64 to stay non-multiarched for now).
6167 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6168
6169 2003-04-21 Andrew Cagney <cagney@redhat.com>
6170
6171 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6172
6173 2003-04-21 Andrew Cagney <cagney@redhat.com>
6174
6175 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6176 "i386_num_mmx_regs".
6177
6178 2003-04-21 Andrew Cagney <cagney@redhat.com>
6179
6180 * infcall.c: New file.
6181 * infcall.h: New file.
6182 * valarith.c: Include "infcall.h".
6183 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6184 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6185 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6186 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6187 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6188 (SFILES): Add "infcall.c"
6189 (COMMON_OBS): Add "infcall.o".
6190 (infcall.o): Specify dependencies.
6191 * value.h (call_function_by_hand): Delete declaration.
6192 * inferior.h (run_stack_dummy): Delete declaration.
6193 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6194 (run_stack_dummy): Move to "infcall.c", merged into
6195 call_function_by_hand.
6196 * valops.c (call_function_by_hand): Moved to "infcall.c".
6197 (find_function_addr, value_arg_coerce): Ditto.
6198 (unwindonsignal_p, coerce_float_to_double): Ditto.
6199 (_initialize_valops): Move "set/show coerce-float-to-double", and
6200 "set/show unwindonsignal" commands to "infcall.c".
6201 * v850-tdep.c, target.h: Update comments.
6202 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6203 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6204 (sh64_init_extra_frame_info): Update comments.
6205 * mn10300-tdep.c: Update comments.
6206 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6207 * config/sparc/tm-sparc.h: Update comments.
6208 * breakpoint.h: Update comments.
6209 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6210 * arm-tdep.c: Update comment.
6211
6212 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6213
6214 * i386-tdep.c (i386_num_register_names): New variable.
6215 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6216 (MM0_REGNUM): Remove redundant parentheses in define.
6217 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6218 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6219 i386_mxcsr_regnum_p): Remove redundant parentheses.
6220 (i386_register_name): Use i386_num_register_names.
6221
6222 * i386-tdep.c (i386_extract_return_value,
6223 i386_store_return_value): Correct check for availability of
6224 floating-point registers.
6225
6226 * i386-tdep.c (i386_frame_num_args): Remove function.
6227 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6228
6229 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6230 mmx_regnum_to_fp_regnum. Adjust all callers.
6231
6232 * i386-tdep.c (i386_get_longjmp_target): Use
6233 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6234 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6235 extract_address.
6236
6237 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6238
6239 * core-regset.c: Update comments to reflect reality. Re-order
6240 includes.
6241 (fetch_core_registers): Use switch instead of if. Remove
6242 redundant prototype.
6243
6244 2003-04-18 Jim Blandy <jimb@redhat.com>
6245
6246 * s390-tdep.c (s390_frame_align): New function.
6247 (s390_gdbarch_init): Register it with the gdbarch object.
6248
6249 2003-04-17 Richard Henderson <rth@redhat.com>
6250
6251 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6252
6253 2003-04-17 Michael Snyder <msnyder@redhat.com>
6254 Karen Bennet <bennet@redhat.com>
6255
6256 Committed by Elena Zannoni <ezannoni@redhat.com>
6257 * gdb_gcore.sh: New script to create a core dump of a process.
6258
6259 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
6260
6261 * values.c (value_being_returned): Don't fetch the return
6262 value if the return type is void.
6263
6264 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6265
6266 * thread-db.c: Reindented.
6267
6268 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6269
6270 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6271 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6272 as types.
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298 2003-04-16 Kevin Buettner <kevinb@redhat.com>
6299
6300 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6301 the size of ``long double'' to 16, instead of 8.
6302
6303 2003-04-16 Mark Kettenis <kettenis@gnu.org>
6304
6305 * i386-linux-nat.c: Add some whitespace to make things more
6306 readable.
6307 (fetch_register, store_register, fetch_inferior_registers,
6308 store_inferior_registers): Get rid of assignment in if-statement.
6309 (store_register): Fix typo in error message.
6310
6311 2003-04-16 Andrew Cagney <cagney@redhat.com>
6312
6313 * utils.c (xmmalloc): Always allocate something, matches
6314 libiberty/xmalloc's semantics.
6315 (xmrealloc, xmcalloc): Ditto.
6316
6317 2003-04-16 Andrew Cagney <cagney@redhat.com>
6318
6319 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6320 update comments.
6321 (get_frame_type): Initialize unwind and type when needed.
6322 (get_frame_id, frame_register_unwind): Ditto.
6323
6324 2003-04-16 Andrew Cagney <cagney@redhat.com>
6325
6326 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6327 obsolete.
6328 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6329 * sparcl-stub.c: Obsolete file.
6330 * config/sparc/tm-sparclet.h: Obsolete file.
6331 * sparclet-stub.c: Obsolete file.
6332 * sparclet-rom.c: Obsolete file.
6333 * sparcl-tdep.c: Obsolete file.
6334 * config/sparc/tm-sparclite.h: Obsolete file.
6335 * config/sparc/sparclite.mt: Obsolete file.
6336 * config/sparc/sparclet.mt: Obsolete file.
6337 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6338 sparc86x-*-* obsolete.
6339
6340 2003-04-15 David Carlton <carlton@math.stanford.edu>
6341
6342 * Makefile.in (SFILES): Add cp-namespace.c.
6343 (COMMON_OBS): Add cp-namespace.o.
6344 (block.o): Depend on gdb_obstack_h and cp_support_h.
6345 (buildsym.o): Depend on cp_support_h.
6346 (cp-namespace.o): New.
6347 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6348 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6349 (dwarf2read.o): Depend on cp_support_h.
6350 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6351 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6352 processing_current_namespace.
6353 (read_namespace): Update processing_current_namespace; check for
6354 anonymous namespaces.
6355 (dwarf2_name): New function.
6356 (dwarf2_extension): Ditto.
6357 * cp-support.h: Update copyright, contributors.
6358 Add inclusion guards.
6359 Add opaque declaration for structs obstack, block, symbol.
6360 (struct using_direct): New struct.
6361 Add declarations for cp_find_first_component,
6362 cp_entire_prefix_len, processing_has_namespace_info,
6363 processing_current_namespace, cp_is_anonymous,
6364 cp_add_using_directive, cp_initialize_namespace,
6365 cp_finalize_namespace, cp_set_block_scope,
6366 cp_scan_for_anonymous_namespaces.
6367 * cp-namespace.c: New file.
6368 * cp-support.c: Update copyright.
6369 Include ctype.h, gdb_assert.h, gdbcmd.h.
6370 New variable maint_cplus_cmd_list.
6371 (cp_find_first_component): New function.
6372 (cp_entire_prefix_len, maint_cplus_command)
6373 (first_component_command, _initialize_cp_support): Ditto.
6374 * buildsym.c: Include cp-support.h.
6375 New variable using_list.
6376 (add_symbol_to_list): Check for anonymous namespaces.
6377 (finish_block): Set block's scope.
6378 (start_symtab): Initialize C++ namespace support.
6379 (end_symtab): Finalize C++ namespace support.
6380 * block.h: Add opaque declarations for structs
6381 block_namespace_info, using_direct, and obstack.
6382 Add declarations for block_set_scope and block_set_using.
6383 (struct block): Add 'language_specific' member.
6384 (BLOCK_NAMESPACE): New macro.
6385 * block.c: Include gdb_obstack.h and cp-support.h.
6386 (struct block_namespace_info): New struct.
6387 (block_set_scope): New function.
6388 (block_set_using, block_initialize_namespace): Ditto.
6389
6390 2003-04-14 Kevin Buettner <kevinb@redhat.com>
6391
6392 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6393 (locate_base): Return early if there aren't any link map offsets.
6394 (svr4_solib_create_inferior_hook): Warn if shared library support
6395 is unavailable.
6396
6397 2003-04-14 David Carlton <carlton@math.stanford.edu>
6398
6399 * symtab.c (symbol_set_names): Add prefix when storing Java names
6400 in hash table. Fix for PR java/1039.
6401
6402 2003-04-14 David Carlton <carlton@math.stanford.edu>
6403
6404 * symtab.c (symbol_set_names): Rename 'name' arg to
6405 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6406 * symtab.h: Change 'name' argument in declaration of
6407 symbol_set_names to 'linkage_name'.
6408 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6409
6410 2003-04-14 Andrew Cagney <cagney@redhat.com>
6411
6412 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6413 return the fully sign-extended register value.
6414 (get_frame_pointer): Ditto.
6415 (mips_pop_frame): Initialize "proc_desc" after checking for a
6416 dummy frame.
6417
6418 2003-04-14 Andrew Cagney <cagney@redhat.com>
6419
6420 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6421 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6422 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6423 (mips_push_register): Delete function.
6424 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6425 PUSH_FP_REGNUM.
6426
6427 2003-04-14 Jim Blandy <jimb@redhat.com>
6428
6429 * symmisc.c: #include "gdb_regex.h".
6430 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6431 functions.
6432 * maint.c (maintenance_list_command): New function.
6433 (_initialize_maint_cmds): Register the above as commands.
6434 * symtab.h (maintenance_list_symtabs,
6435 maintenance_list_psymtabs): New declarations.
6436 * cli/cli-cmds.c (maintenancelistlist): New variable.
6437 (init_cmd_lists): Initialize it.
6438 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6439 * gdbcmd.h (maintenancelistlist): New declaration.
6440 * Makefile.in (symmisc.o): Update dependencies.
6441
6442 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
6443
6444 * s390-nat.c: Include asm/types.h for addr_t.
6445
6446 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
6447
6448 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6449 actually incoming type.
6450
6451 2003-04-13 Andrew Cagney <cagney@redhat.com>
6452
6453 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6454 get_next_frame and get_frame_saved_regs.
6455
6456 2003-04-13 Andrew Cagney <cagney@redhat.com>
6457
6458 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6459 of gdbarch_num_regs.
6460
6461 2003-04-13 Andrew Cagney <cagney@redhat.com>
6462
6463 * frame.h: Mention what replaced what in "struct frame_info".
6464 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6465 deprecated_update_frame_base_hack and
6466 deprecated_update_frame_pc_hack.
6467 * hppa-tdep.c: Ditto.
6468
6469 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6470
6471 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6472 to read_reg and update its comment. Remove regnum member.
6473 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6474 Don't call read_reg when setting in_reg. Call read_reg to get
6475 the frame base if it's in a register. Return the register number
6476 on the stack instead of in the context. Remove extra arguments
6477 to read_reg.
6478 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6479 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6480 the register number on the expression stack.
6481 (needs_frame_read_reg): Remove extra arguments.
6482
6483 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6484
6485 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6486 made non-static.
6487 (execute_stack_op): All callers updated.
6488 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6489 * dwarf2loc.c (find_location_expression): New function.
6490 (dwarf_expr_frame_base): Call it.
6491 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6492 (dwarf2_tracepoint_var_ref): New function, broken out from
6493 locexpr_tracepoint_var_ref.
6494 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6495 Make static.
6496 (loclist_read_variable, loclist_read_needs_frame): New functions.
6497 (loclist_describe_location, loclist_tracepoint_var_ref): New
6498 functions.
6499 (dwarf2_loclist_funcs): New struct location_funcs.
6500 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6501 (struct dwarf2_locexpr_baton): Add comments.
6502 (dwarf2_loclist_funcs): New extern.
6503 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6504 base_address and base_known.
6505 (dwarf_loc_buffer): New variable.
6506 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6507 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6508 (dwarf2_has_info): Initialize dwarf_loc_offset.
6509 (dwarf2_build_psymtabs): Read in .debug_loc.
6510 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6511 DWARF_LOC_SIZE.
6512 (psymtab_to_symtab_1): Likewise. Move base address calculation
6513 here, from...
6514 (dwarf2_get_pc_bounds): ... here. Use the base address from
6515 cu_header.
6516 (dwarf2_symbol_mark_computed): Handle location lists.
6517
6518 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6519
6520 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6521 if the linkage name demangled successfully.
6522
6523 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6524
6525 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6526 disassmbly_flavour): Removed.
6527
6528 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6529
6530 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6531
6532 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6533
6534 2003-04-12 Andrew Cagney <cagney@redhat.com>
6535
6536 * frame.h (struct frame_info): Move definition from here ...
6537 * frame.c (struct frame_info): ... to here.
6538
6539 2003-04-12 Andrew Cagney <cagney@redhat.com>
6540
6541 * gdbthread.h (save_infrun_state): Delete parameter
6542 "prev_func_start".
6543 (struct thread_info): Delete field "prev_func_start".
6544 (load_infrun_state): Ditto.
6545 * thread.c (load_infrun_state, save_infrun_state): Update.
6546 * infrun.c (prev_func_start): Delete variable.
6547 (context_switch, init_wait_for_inferior): Update.
6548 (stop_stepping, keep_going): Update.
6549
6550 2003-04-12 Andrew Cagney <cagney@redhat.com>
6551
6552 * gdbarch.sh: Add missing opaque declarations.
6553 * gdbarch.h: Regnerate.
6554 * symtab.h: Add missing opaque declarations.
6555 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6556 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6557 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6558 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6559 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6560 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6561 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6562 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6563 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6564 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6565 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6566 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6567 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6568
6569 2003-04-11 Andrew Cagney <cagney@redhat.com>
6570
6571 * frame.c (get_frame_id): Return this frame's "id".
6572 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6573 function start.
6574 (legacy_saved_regs_this_id): Replace function body with
6575 internal-error.
6576 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6577 FRAME_OBSTACK_ZALLOC.
6578 (create_new_frame): Mark the frame ID as valid.
6579
6580 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6581
6582 * Makefile.in (libbfd_h): Added missing setting.
6583 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6584 according to the selected ABI.
6585
6586 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6587
6588 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6589
6590 2003-04-11 Andrew Cagney <cagney@redhat.com>
6591
6592 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6593 SAVED_PC_AFTER_CALL.
6594 * gdbarch.h, gdbarch.c: Regenerate.
6595 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6596 * x86-64-tdep.c (x86_64_init_abi): Update.
6597 * vax-tdep.c (vax_gdbarch_init): Update.
6598 * v850-tdep.c (v850_gdbarch_init): Update.
6599 * sparc-tdep.c (sparc_gdbarch_init): Update.
6600 * sh-tdep.c (sh_gdbarch_init): Update.
6601 * s390-tdep.c (s390_gdbarch_init): Update.
6602 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6603 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6604 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6605 * mips-tdep.c (mips_gdbarch_init): Update.
6606 * mcore-tdep.c (mcore_gdbarch_init): Update.
6607 * m68k-tdep.c (m68k_gdbarch_init): Update.
6608 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6609 * ia64-tdep.c (ia64_gdbarch_init): Update.
6610 (ia64_saved_pc_after_call): Update declaration.
6611 * i386ly-tdep.c (i386lynx_init_abi): Update.
6612 * i386-tdep.c (i386_gdbarch_init): Update.
6613 * hppa-tdep.c (hppa_gdbarch_init): Update.
6614 * h8300-tdep.c (h8300_gdbarch_init): Update.
6615 * frv-tdep.c (frv_gdbarch_init): Update.
6616 * cris-tdep.c (cris_gdbarch_init): Update.
6617 * avr-tdep.c (avr_gdbarch_init): Update.
6618 * arm-tdep.c (arm_gdbarch_init): Update.
6619 * alpha-tdep.c (alpha_gdbarch_init): Update.
6620 * ns32knbsd-nat.c (frame_num_args): Update.
6621 * ns32k-tdep.c (umax_frame_num_args): Update.
6622 * mips-tdep.c (mips_init_frame_pc_first): Update.
6623 * infrun.c (step_over_function): Update.
6624 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6625 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6626 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6627 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6628 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6629 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6630 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6631 * arch-utils.c (init_frame_pc_default): Update.
6632 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6633 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6634 declaration.
6635
6636 2003-04-11 Andrew Cagney <cagney@redhat.com>
6637
6638 * i387-tdep.c: Update copyright.
6639 (i387_to_double): Delete function.
6640 (double_to_i387): Delete function.
6641
6642 2003-04-10 Andrew Cagney <cagney@redhat.com>
6643
6644 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6645 frame's function's address. Simplify.
6646 (d10v_frame_unwind_cache): Check that the frame's function is
6647 non-zero.
6648
6649 2003-04-10 Jim Blandy <jimb@redhat.com>
6650
6651 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6652 call to set_gdbarch_deprecated_push_arguments.
6653
6654 2003-04-10 Andrew Cagney <cagney@redhat.com>
6655
6656 * frame.c (fprint_frame_id): New function.
6657 (fprint_frame_type, fprint_frame): New function.
6658 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6659 (create_sentinel_frame, get_frame_id): Ditto.
6660 (frame_id_p, frame_id_eq): Ditto.
6661 (frame_id_inner, create_new_frame): Ditto.
6662 (legacy_get_prev_frame, get_prev_frame): Ditto.
6663 (deprecated_update_frame_pc_hack): Ditto.
6664 (frame_register_unwind): Ditto.
6665 (deprecated_update_frame_base_hack): Ditto.
6666
6667 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6668
6669 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6670 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6671 frame_chain function.
6672 * Makefile.in: Add dependencies due to above change.
6673
6674 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6675
6676 * blockframe.c (legacy_frame_chain_valid): Move call to
6677 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6678 inside_entry_file.
6679
6680 2003-04-09 Andrew Cagney <cagney@redhat.com>
6681
6682 * frame.h (struct frame_id): Replace "pc" and "base" with
6683 "stack_addr" and "code_addr". Update comments.
6684 (frame_id_build): Update parameter names and comment.
6685 (struct frame_info): Replace "id_p" and "id" with "this_id".
6686 * dummy-frame.c (dummy_frame_this_id): Update.
6687 * breakpoint.c (print_one_breakpoint): Update.
6688 * frame.c (get_frame_id): Update.
6689 (get_frame_base, frame_id_build): Update.
6690 (create_sentinel_frame, legacy_get_prev_frame): Update.
6691 (deprecated_update_frame_base_hack): Update.
6692 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6693 (frame_id_inner): Ditto.
6694
6695 2003-04-09 Andrew Cagney <cagney@redhat.com>
6696
6697 * defs.h (gdb_print_host_address): Make "addr" parameter a
6698 pointer constant.
6699 * utils.c (gdb_print_host_address): Update.
6700
6701 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6702
6703 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6704 register number for R0 is 0.
6705
6706 2003-04-09 J. Brobecker <brobecker@gnat.com>
6707
6708 * frame.h (struct gdbarch): Add opaque structure definition
6709 to avoid a compilation warning on LynxOS 4.0.
6710
6711 2003-04-09 Andrew Cagney <cagney@redhat.com>
6712
6713 * frame.h (struct frame_info): Delete field "pc". Replace
6714 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6715 structure.
6716 * frame.c (frame_pc_unwind): Update.
6717 (create_sentinel_frame): Do not set "pc".
6718 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6719 (get_frame_pc): Call frame_pc_unwind.
6720 (deprecated_update_frame_pc_hack): Update.
6721 (create_new_frame): Use "pc" not "->pc".
6722
6723 2003-04-09 Andrew Cagney <cagney@redhat.com>
6724
6725 * frame.c (get_frame_id): Eliminate code updating "frame".
6726 (legacy_get_prev_frame): Ditto.
6727 (get_frame_base): Return id.base directly.
6728 (deprecated_update_frame_base_hack): Update "id.base".
6729 * frame.h (struct frame_info): Delete field "frame".
6730
6731 2003-04-09 Andrew Cagney <cagney@redhat.com>
6732
6733 * NEWS: Mention that the "Sequent family" is obsolete.
6734 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6735 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6736 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6737 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6738 * config/i386/tm-ptx4.h: Obsolete file.
6739 * config/i386/tm-ptx.h: Obsolete file.
6740 * symm-tdep.c: Obsolete file.
6741 * config/i386/symmetry.mt: Obsolete file.
6742 * config/i386/tm-symmetry.h: Obsolete file.
6743 * symm-nat.c: Obsolete file.
6744 * config/i386/nm-symmetry.h: Obsolete file.
6745 * config/i386/xm-symmetry.h: Obsolete file.
6746 * config/i386/symmetry.mh: Obsolete file.
6747 * config/i386/nm-ptx4.h: Obsolete file.
6748 * config/i386/ptx4.mh: Obsolete file.
6749 * config/i386/ptx.mt: Obsolete file.
6750 * config/i386/ptx.mh: Obsolete file.
6751 * config/i386/xm-ptx4.h: Obsolete file.
6752 * config/i386/xm-ptx.h: Obsolete file.
6753
6754 2003-04-09 Andrew Cagney <cagney@redhat.com>
6755
6756 Obsolete mips*-*-mach3*.
6757 * NEWS: Mention that mips*-*-mach3* is obsolete.
6758 * m3-nat.c: Obsolete file.
6759 * config/nm-m3.h: Obsolete file.
6760 * config/mips/tm-mipsm3.h: Obsolete file.
6761 * config/mips/mipsm3.mt: Obsolete file.
6762 * config/mips/mipsm3.mh: Obsolete file.
6763 * config/mips/xm-mipsm3.h: Obsolete file.
6764 * mipsm3-nat.c: Obsolete file.
6765 * configure.host: Obsolete mips-dec-mach3*.
6766 * configure.tgt: Obsolete mips*-*-mach3*.
6767
6768 2003-04-09 Andrew Cagney <cagney@redhat.com>
6769
6770 * doublest.h: Update copyright.
6771 (deprecated_store_floating, deprecated_extract_floating): Rename
6772 store_floating and extract_floating. Update comments.
6773 * doublest.c: Update copyright.
6774 (extract_floating_by_length): Replace extract_floating.
6775 (store_floating_by_length): Replace store_floating.
6776 (deprecated_extract_floating): New function.
6777 (deprecated_store_floating): New function.
6778 (extract_typed_floating): Call extract_floating_by_length.
6779 (store_typed_floating): Call store_floating_by_length.
6780 * x86-64-tdep.c (x86_64_store_return_value): Update.
6781 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6782 (sh64_extract_return_value): Update.
6783 (sh_sh4_register_convert_to_virtual): Update.
6784 (sh_sh64_register_convert_to_virtual): Update.
6785 (sh_sh4_register_convert_to_raw): Update.
6786 (sh_sh64_register_convert_to_raw): Update.
6787 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6788 (rs6000_register_convert_to_raw): Update.
6789 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6790 (ia64_register_convert_to_raw): Update.
6791 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6792 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6793 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6794 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6795 (alpha_register_convert_to_raw): Update.
6796
6797 2003-04-08 Andrew Cagney <cagney@redhat.com>
6798
6799 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6800 * gdbarch.h, gdbarch.c: Re-generate.
6801 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6802 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6803 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6804 conditionally, use frame_pc_unwind as an alternative. Add
6805 comments.
6806 * arch-utils.c (init_frame_pc_default): Only call
6807 SAVED_PC_AFTER_CALL when available.
6808
6809 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6810
6811 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6812 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6813 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6814 (start_remote): Ditto.
6815 (handle_inferior_event): Ditto.
6816 (save_inferior_status): Ditto.
6817 (restore_inferior_status): Ditto.
6818 * infcmd.c (attach_command): Ditto.
6819 * fork-child.c (startup_inferior): Ditto.
6820 * inferior.h (stop_soon): Rename from stop_soon_quietly.
6821 * alpha-tdep.c (heuristic_proc_start): Ditto.
6822 * mips-tdep.c (heuristic_proc_start): Ditto.
6823 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6824 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6825 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6826 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6827 * remote-vx.c (vx_create_inferior): Ditto.
6828
6829 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6830
6831 * infrun.c (stop_soon_quietly): Make it an enum, to better
6832 override the default behavior of handle_inferior_event.
6833 (clear_proceed_status): Update uses of stop_soon_quietly to
6834 reflect that it is now an enum.
6835 (start_remote): Ditto.
6836 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6837 is set to handle the new GNU/Linux kernel behavior for
6838 attach/sigstop. Update uses of stop_soon_quietly.
6839 * inferior.h (enum stop_kind): New enum.
6840 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6841 Reset normal handle_inferior_event behavior, afterwards.
6842 * fork-child.c (startup_inferior): Update.
6843 * alpha-tdep.c (heuristic_proc_start): Update.
6844 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6845 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6846 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6847 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6848 * remote-vx.c (vx_create_inferior): Update.
6849 * mips-tdep.c (heuristic_proc_start): Update.
6850
6851 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
6852
6853 * disasm.c (dump_insns): Move variables inside loop, or they will
6854 be freed more than once, causing wild memory corruptions.
6855 (gdb_disassembly): Look for the substring "-thread",
6856 instead of "-threads" in the target name, to make sure to find
6857 the 'multi-thread' target. Also, make sure we do the right thing
6858 with the "core" target.
6859
6860 2003-04-07 Kevin Buettner <kevinb@redhat.com>
6861
6862 * mips-tdep.c (mips_print_fp_register): New function, created from
6863 do_fp_register_row(). Registers are now (also) printed as hex.
6864 Only one register is printed per row.
6865 (mips_print_register, do_fp_register_row): Print floating point
6866 registers with mips_print_fp_register().
6867
6868 2003-04-06 Andrew Cagney <cagney@redhat.com>
6869
6870 * valprint.h (inspect_it): Add extern declaration.
6871 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6872 (selectors_info, classes_info): Ditto.
6873 (find_objc_msgcall): Fix indentation.
6874 (objc_printstr): Delete extern declarations.
6875
6876 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6877
6878 2003-04-06 Andrew Cagney <cagney@redhat.com>
6879
6880 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6881 Update comment.
6882 * frame.c (legacy_saved_regs_this_id): Update.
6883 (legacy_get_prev_frame): Update.
6884 * xstormy16-tdep.c: Update comment.
6885 * sparc-tdep.c (sparc_frame_chain): Update comment.
6886 * blockframe.c (legacy_frame_chain_valid): Update.
6887
6888 2003-04-06 Andrew Cagney <cagney@redhat.com>
6889
6890 * valprint.c (val_print_type_code_int): Delete #ifdef
6891 PRINT_TYPELESS_INTEGER code.
6892
6893 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6894 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6895 multi-arch definition.
6896 * gdbarch.h: Re-generate.
6897
6898 2003-04-05 Andrew Cagney <cagney@redhat.com>
6899
6900 Eliminate FRAME_FIND_SAVED_REGS.
6901 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6902 Change FSR parameter to a pointer.
6903 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6904 Assume FSR parameter is a pointer.
6905 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6906 Make fsr a pointer.
6907 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6908 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6909 saved_regs a pointer.
6910 (hppa_frame_saved_pc): Ditto.
6911 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6912 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6913 pointer.
6914 (restore_pc_queue): Make fsr a pointer.
6915 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6916 (hppa_frame_chain): Make saved_regs a pointer, call
6917 hppa_frame_init_saved_regs.
6918 * sparc-tdep.c: Include "gdb_assert.h".
6919 (sparc_frame_find_saved_regs): Replace internal_error with
6920 gdb_assert.
6921 * remote-vxsparc.c (vx_read_register): Delete reference to
6922 FRAME_FIND_SAVED_REGS.
6923 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6924 * gdbarch.h: Regenerate.
6925 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6926 (deprecated_get_frame_saved_regs): Delete declaration.
6927 (struct frame_saved_regs): Delete definition.
6928 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6929 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6930 (hppa_frame_find_saved_regs): Delete declaration.
6931 (FRAME_FIND_SAVED_REGS): Delete macro.
6932 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6933 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6934 FRAME_FIND_SAVED_REGS in comment.
6935
6936 2003-04-05 Andrew Cagney <cagney@redhat.com>
6937
6938 * frame.c (frame_func_unwind, get_frame_func): New functions.
6939 * frame.h (get_frame_func, frame_func_unwind): Declare.
6940 (struct frame_info): Add field "prev_func" for caching the
6941 previous frame's function address.
6942 * arm-tdep.c (arm_frameless_function_invocation): Combine
6943 get_pc_function_start and get_frame_pc into get_frame_func.
6944 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6945 (sh64_nofp_frame_init_saved_regs): Ditto.
6946 * s390-tdep.c (s390_function_start): Ditto.
6947 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6948 (rs6000_frameless_function_invocation): Ditto.
6949 (rs6000_frame_saved_pc): Ditto.
6950 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6951 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6952 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6953 (i386_frame_init_saved_regs): Ditto.
6954 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6955 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6956 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6957 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6958 * blockframe.c (frameless_look_for_prologue): Ditto.
6959
6960 2003-04-05 Andrew Cagney <cagney@redhat.com>
6961
6962 * frame.c (legacy_get_prev_frame): Link prev to next at the
6963 function start. Update comments.
6964
6965 2003-04-05 Andrew Cagney <cagney@redhat.com>
6966
6967 * frame.c (get_frame_id): Update comment.
6968 (legacy_get_prev_frame): Update comment.
6969 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6970 * gdbarch.h: Regenerate.
6971 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6972 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6973
6974 2003-04-05 Andrew Cagney <cagney@redhat.com>
6975
6976 * stack.c (print_frame_info): Use get_frame_pc.
6977
6978 2003-04-04 Andrew Cagney <cagney@redhat.com>
6979
6980 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6981 the frame's type from the unwinder.
6982 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6983 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6984 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6985 (get_frame_base_address): Use get_frame_type.
6986 (get_frame_locals_address, get_frame_args_address): Ditto.
6987 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6988 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6989 (struct frame_info): Add comment explaining why the frame contains
6990 a "type" field.
6991 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6992 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6993 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6994 NORMAL_FRAME.
6995 * frame-unwind.h: Include "frame.h".
6996 (struct frame_unwind): Add "type" field.
6997 * Makefile.in (frame_unwind_h): Add $(frame_h).
6998
6999 2003-04-04 Andrew Cagney <cagney@redhat.com>
7000
7001 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7002 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7003 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7004 get_frame_base.
7005 (d10v_unwind_dummy_id): Use frame_id_build.
7006 * frame.c (find_frame_sal): Use get_frame_pc.
7007 (create_new_frame): Use deprecated_update_frame_pc_hack and
7008 deprecated_update_frame_base_hack.
7009 (create_sentinel_frame): Add comment about ->pc going away.
7010 (get_prev_frame): Add comment about ->pc going away.
7011 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7012 frame_id_build, deprecated_update_frame_pc_hack and
7013 deprecated_update_frame_base_hack.
7014 (select_frame): Use get_frame_pc.
7015 (legacy_saved_regs_this_id): Use frame_id_build.
7016
7017 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
7018
7019 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7020 signed integer case.
7021 (classify_argument): Handle enumerations and references.
7022
7023 2003-04-04 Andrew Cagney <cagney@redhat.com>
7024
7025 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7026 ID to NULL.
7027
7028 2003-04-01 Adam Fedor <fedor@gnu.org>
7029
7030 * gdb/objc-lang.c (selectors_info): Replace calls to
7031 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7032 SYMBOL_NATURAL_NAME.
7033 (classes_info, find_methods): Likewise.
7034
7035 2003-04-03 Kevin Buettner <kevinb@redhat.com>
7036
7037 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7038 ``mach'' to the value determined by bfd_default_set_arch_mach().
7039
7040 2003-04-02 Bob Rossi <bob_rossi@cox.net>
7041
7042 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7043 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7044 (mi-cmd-file.o): Update dependencies.
7045
7046 2003-04-01 Kevin Buettner <kevinb@redhat.com>
7047
7048 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7049 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7050
7051 2003-04-01 Adam Fedor <fedor@gnu.org>
7052
7053 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7054 * language.h (struct language_defn): Add la_demangle.
7055 (language_demangle): Declare.
7056 * language.c (language_demangle): New function.
7057 (unk_lang_demangle): Likewise.
7058 (unknown_language_defn, auto_language_defn, local_language_defn):
7059 Add ukn_lang_demangle.
7060 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7061 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7062 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7063 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7064 * jv-lang.c (java_demangle): New function
7065 (java_language_defn): Use it for la_demangle element.
7066 * objc-lang.c (objc_demangle): Add options argument
7067 (objc_language_defn): Use objc_demangle for la_demangle element.
7068 * maint.c (maintenance_demangle): Replace switch with
7069 call to language_demangle.
7070 * utils.c (fprintf_symbol_filtered): Likewise.
7071
7072 2003-04-01 Andrew Cagney <cagney@redhat.com>
7073
7074 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7075 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7076 PRINT_TYPELESS_INTEGER.
7077 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7078 PUSH_RETURN_ADDRESS.
7079
7080 2003-04-01 Andrew Cagney <cagney@redhat.com>
7081
7082 * Makefile.in (d10v-tdep.o): Update dependencies.
7083 * d10v-tdep.c: Include "frame-base.h".
7084 (d10v_frame_unwind): Make constant.
7085 (d10v_frame_base_address): New function.
7086 (d10v_frame_base): New variable.
7087 (d10v_gdbarch_init): Set frame_base default.
7088 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7089 comment for base.
7090 (d10v_frame_unwind_cache): Set and use "prev_sp".
7091 (d10v_frame_this_id): Use the previous frame's inner most stack
7092 address and this frame's func address for the frame ID. Use
7093 frame_id_build. Don't analyze beyond the current instruction.
7094
7095 2003-04-01 Andrew Cagney <cagney@redhat.com>
7096
7097 * frame.h (get_frame_locals_address, get_frame_args_address):
7098 Refer to the base address, instead of the address of the first
7099 local or parameter.
7100
7101 2003-04-01 Andrew Cagney <cagney@redhat.com>
7102
7103 Add frame debug info addresses:
7104 * frame-base.c: New file.
7105 * frame-base.h: New file.
7106 * frame.h (struct frame_base): Add opaque declaration.
7107 (get_frame_base): Update comment.
7108 (get_frame_base_address): Declare.
7109 (get_frame_locals_address): Declare.
7110 (get_frame_args_address): Declare.
7111 (struct frame_info): Add "base" and "base_cache". Update
7112 comments on the unwinder.
7113 * frame.c: Include "frame-base.h".
7114 (get_frame_locals_address): New function.
7115 (get_frame_base_address): New function.
7116 (get_frame_args_address): New function.
7117 * findvar.c (read_var_value): Use get_frame_locals_address and
7118 get_frame_args_address.
7119 * stack.c (frame_info): Use get_frame_locals_address and
7120 get_frame_args_address.
7121 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7122 moved to "frame-base.c".
7123 * printcmd.c (print_frame_nameless_args): Ditto.
7124 * symtab.h (address_class): Update comments.
7125 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7126 get_frame_base_address.
7127 * dwarf2expr.c (execute_stack_op): Ditto.
7128 * Makefile.in (frame_base_h): Define.
7129 (frame.o): Update dependencies.
7130 (frame-base.o): Add dependencies.
7131 (SFILES): Add frame-base.c.
7132 (COMMON_OBS): Add frame-base.o.
7133
7134 2003-04-01 Andrew Cagney <cagney@redhat.com>
7135
7136 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7137 CALL_DUMMY_LENGTH): Ditto.
7138 * gdbarch.c: Re-generate.
7139 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7140 (CALL_DUMMY_LENGTH): Delete macro.
7141 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7142 * arm-tdep.c (arm_gdbarch_init): Ditto.
7143 * avr-tdep.c (avr_gdbarch_init): Ditto.
7144 * cris-tdep.c (cris_gdbarch_init): Ditto.
7145 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7146 * frv-tdep.c (frv_gdbarch_init): Ditto.
7147 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7148 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7149 * i386-tdep.c (i386_gdbarch_init): Ditto.
7150 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7151 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7152 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7153 * mips-tdep.c (mips_gdbarch_init): Ditto.
7154 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7155 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7156 * s390-tdep.c (s390_gdbarch_init): Ditto.
7157 * sh-tdep.c (sh_gdbarch_init): Ditto.
7158 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7159 * v850-tdep.c (v850_gdbarch_init): Ditto.
7160 * vax-tdep.c (vax_gdbarch_init): Ditto.
7161 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7162
7163 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
7164
7165 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7166
7167 2003-04-01 Andrew Cagney <cagney@redhat.com>
7168
7169 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7170 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7171 * gdbarch.h, gdbarch.c: Re-generate.
7172 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7173 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7174 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7175 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7176 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7177 * infcmd.c (run_stack_dummy): Simplify assuming
7178 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7179 * infrun.c (handle_inferior_event): Ditto.
7180 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7181 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7182 * arm-tdep.c (arm_gdbarch_init): Ditto.
7183 * avr-tdep.c (avr_gdbarch_init): Ditto.
7184 * cris-tdep.c (cris_gdbarch_init): Ditto.
7185 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7186 * frv-tdep.c (frv_gdbarch_init): Ditto.
7187 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7188 * i386-tdep.c (i386_gdbarch_init): Ditto.
7189 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7190 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7191 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7192 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7193 * mips-tdep.c (mips_gdbarch_init): Ditto.
7194 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7195 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7196 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7197 * s390-tdep.c (s390_gdbarch_init): Ditto.
7198 * sh-tdep.c (sh_gdbarch_init): Ditto.
7199 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7200 * v850-tdep.c (v850_gdbarch_init): Ditto.
7201 * vax-tdep.c (vax_gdbarch_init): Ditto.
7202 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7203
7204 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
7205
7206 * symfile.c (symfile_relocate_debug_section): Update call to
7207 bfd_simple_get_relocated_section_contents.
7208
7209 2003-03-31 Andrew Cagney <cagney@redhat.com>
7210
7211 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7212 * gdbarch.h, gdbarch.c: Regenerate.
7213 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7214 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7215 available.
7216 * frame.h (generic_fix_call_dummy): Delete declaration.
7217 * dummy-frame.h: Update comment.
7218 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7219 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7220 fix_call_dummy.
7221 * sh-tdep.c (sh_gdbarch_init): Ditto.
7222 * s390-tdep.c (s390_gdbarch_init): Ditto.
7223 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7224 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7225 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7226 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7227 * i386-tdep.c (i386_gdbarch_init): Ditto.
7228 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7229 * frv-tdep.c (frv_gdbarch_init): Ditto.
7230 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7231 * cris-tdep.c (cris_gdbarch_init): Ditto.
7232 * avr-tdep.c (avr_gdbarch_init): Ditto.
7233 * arm-tdep.c (arm_gdbarch_init): Ditto.
7234
7235 2003-03-31 J. Brobecker <brobecker@gnat.com>
7236
7237 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7238 (INIT_FRAME_AP): Likewise.
7239 (EXTRA_FRAME_INFO): Likewise.
7240
7241 2003-03-31 Andrew Cagney <cagney@redhat.com>
7242
7243 * gdbarch.sh: Include "symfile.h".
7244 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7245 * gdbarch.h, gdbarch.c: Re-generate.
7246 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7247 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7248 call_dummy_address, the default is at entry_point_address.
7249 * v850-tdep.c (v850_gdbarch_init): Ditto.
7250 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7251 * sh-tdep.c (sh_gdbarch_init): Ditto.
7252 * s390-tdep.c (s390_gdbarch_init): Ditto.
7253 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7254 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7255 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7256 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7257 * i386-tdep.c (i386_gdbarch_init): Ditto.
7258 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7259 * frv-tdep.c (frv_gdbarch_init): Ditto.
7260 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7261 * cris-tdep.c (cris_gdbarch_init): Ditto.
7262 * arm-tdep.c (arm_gdbarch_init): Ditto.
7263
7264 2003-03-31 Andrew Cagney <cagney@redhat.com>
7265
7266 * gdbarch.sh (CALL_DUMMY_P): Delete.
7267 * gdbarch.h, gdbarch.c: Re-generate.
7268 * inferior.h (CALL_DUMMY_P): Delete macro.
7269 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7270 * vax-tdep.c (vax_gdbarch_init): Update.
7271 * v850-tdep.c (v850_gdbarch_init): Update.
7272 * sparc-tdep.c (sparc_gdbarch_init): Update.
7273 * sh-tdep.c (sh_gdbarch_init): Update.
7274 * s390-tdep.c (s390_gdbarch_init): Update.
7275 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7276 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7277 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7278 * mips-tdep.c (mips_gdbarch_init): Update.
7279 * mcore-tdep.c (mcore_gdbarch_init): Update.
7280 * m68k-tdep.c (m68k_gdbarch_init): Update.
7281 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7282 * ia64-tdep.c (ia64_gdbarch_init): Update.
7283 * i386-tdep.c (i386_gdbarch_init): Update.
7284 * h8300-tdep.c (h8300_gdbarch_init): Update.
7285 * frv-tdep.c (frv_gdbarch_init): Update.
7286 * d10v-tdep.c (d10v_gdbarch_init): Update.
7287 * cris-tdep.c (cris_gdbarch_init): Update.
7288 * breakpoint.c (deprecated_frame_in_dummy): Update.
7289 * avr-tdep.c (avr_gdbarch_init): Update.
7290 * alpha-tdep.c (alpha_gdbarch_init): Update.
7291 * arm-tdep.c (arm_gdbarch_init): Update.
7292 * dummy-frame.c (dummy_frame_this_id): Update comments.
7293 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7294 * frame.c (legacy_get_prev_frame): Ditto.
7295 * valops.c (call_function_by_hand): Delete function.
7296 (hand_function_call): Rename to call_function_by_hand
7297
7298 2003-03-30 Andrew Cagney <cagney@redhat.com>
7299
7300 2002-11-10 Klee Dienes <kdienes@apple.com>
7301 * value.h (struct value): Update comment.
7302
7303 2003-03-30 Andrew Cagney <cagney@redhat.com>
7304
7305 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7306 D10V_FP_REGNUM.
7307 (d10v_gdbarch_init): Do not set fp_regnum.
7308
7309 * frame.c (get_frame_base): Force ID initialization.
7310 (get_prev_frame): Move computation of the frame ID from here ...
7311 (get_frame_id): ... to here.
7312 (legacy_get_prev_frame): Mark the frame ID as valid.
7313 * frame.h (struct frame_info): Add field "id_p".
7314
7315 2003-03-30 Mark Kettenis <kettenis@gnu.org>
7316
7317 * i386-tdep.c (i386_store_struct_return): Removed.
7318 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7319
7320 2003-03-30 Andrew Cagney <cagney@redhat.com>
7321
7322 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7323 * gdbarch.h, gdbarch.c: Regenerate.
7324 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7325 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7326 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7327 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7328 * i386-tdep.c (i386_gdbarch_init): Ditto.
7329 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7330 * cris-tdep.c (cris_gdbarch_init): Ditto.
7331 * vax-tdep.c (vax_gdbarch_init): Ditto.
7332 * s390-tdep.c (s390_gdbarch_init): Ditto.
7333 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7334 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7335 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7336 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7337 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7338 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7339 * sparc-tdep.c (sparc_gdbarch_init): Update.
7340 * sh-tdep.c (sh_gdbarch_init): Update.
7341 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7342 * mips-tdep.c (mips_gdbarch_init): Update.
7343 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7344 * ia64-tdep.c (ia64_gdbarch_init): Update.
7345 * frv-tdep.c (frv_gdbarch_init): Update.
7346 * avr-tdep.c (avr_gdbarch_init): Update.
7347 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7348 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7349 instead of when push_dummy_call is not available.
7350
7351 2003-03-30 Andrew Cagney <cagney@redhat.com>
7352
7353 * infttrace.c: Include "gdbthread.h".
7354 (parent_attach_all): Fix function signature.
7355 (call_ptrace): Update call.
7356 * Makefile.in (infttrace.o): Update dependencies.
7357
7358 2003-03-30 Andrew Cagney <cagney@redhat.com>
7359
7360 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7361 PUSH_RETURN_ADDRESS.
7362 * gdbarch.h, gdbarch.c: Regenerate.
7363 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7364 * x86-64-tdep.c (x86_64_init_abi): Update.
7365 * v850-tdep.c (v850_gdbarch_init): Update.
7366 * sparc-tdep.c (sparc_gdbarch_init): Update.
7367 * sh-tdep.c (sh_gdbarch_init): Update.
7368 * s390-tdep.c (s390_gdbarch_init): Update.
7369 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7370 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7371 * mips-tdep.c (mips_gdbarch_init): Update.
7372 * mcore-tdep.c (mcore_gdbarch_init): Update.
7373 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7374 * ia64-tdep.c (ia64_gdbarch_init): Update.
7375 * i386-tdep.c (i386_gdbarch_init): Update.
7376 * h8300-tdep.c (h8300_gdbarch_init): Update.
7377 * frv-tdep.c (frv_gdbarch_init): Update.
7378 * cris-tdep.c (cris_gdbarch_init): Update.
7379 * avr-tdep.c (avr_gdbarch_init): Update.
7380 * arm-tdep.c (arm_gdbarch_init): Update.
7381 * valops.c (hand_function_call): Update.
7382
7383 2003-03-29 Andrew Cagney <cagney@redhat.com>
7384
7385 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7386 sizeof_call_dummy_words.
7387 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7388 define.
7389 * gdbarch.h: Regenerate.
7390
7391 2003-03-29 Andrew Cagney <cagney@redhat.com>
7392
7393 * infttrace.h: New file.
7394 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7395 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7396 (hpread_read_doc_function_type): Detect an initialized type1.
7397 (hpread_quick_traverse): Initialize mod_name_string.
7398 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7399 (som_solib_get_solib_by_pc): Declare.
7400 (so_lib_thread_start_addr): Declare.
7401 (no_shared_libraries): Declare.
7402 * somread.c (init_import_symbols): Make static. Add forward
7403 declaration.
7404 * config/pa/nm-hppah.h: Include "infttrace.h" for
7405 parent_attach_all.
7406 (hppa_insert_hw_watchpoint): Declare.
7407 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7408 * hppah-nat.c: Include "gdb_string.h".
7409 (parent_attach_all): Delete extern declaration, moved to
7410 "infttrace.h".
7411 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7412 int.
7413 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7414 * Makefile.in (infttrace_h): Define.
7415 (hpread.o): Update dependencies.
7416 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7417 * hppa-hpux-tdep.c: Include "gdb_string.h".
7418 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7419 * infrun.c (handle_inferior_event): Always initialize
7420 stepped_after_stopped_by_watchpoint. Add default and remove
7421 fallthrough in switch statement.
7422 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7423 parameter to int.
7424 (hppa_remove_hw_watchpoint): Ditto.
7425
7426 2003-03-29 Andrew Cagney <cagney@redhat.com>
7427
7428 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7429 offset.
7430
7431 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
7432
7433 * arm-tdep.c (arm_push_arguments): Delete.
7434 (struct stack_item): New type.
7435 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7436 (arm_store_struct_return): Delte.
7437 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7438 arm_push_arguments or arm_store_struct_return.
7439
7440 2003-03-28 Andrew Cagney <cagney@redhat.com>
7441
7442 * Makefile.in (d10v-tdep.o): Update dependencies.
7443 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7444 * d10v-tdep.c: Include "remote.h".
7445 (target_resume_hook): Delete extern declaration.
7446 (target_wait_loop_hook): Ditto.
7447 (tdisassemble_command): Eliminate assignment in "if" conditional.
7448 (d10v_ts2_register_sim_regno): Eliminate call to
7449 legacy_register_sim_regno.
7450 (d10v_ts3_register_sim_regno): Ditto.
7451
7452 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7453
7454 * thread.c: Reindented.
7455 * lin-lwp.c: Ditto.
7456 * linux-proc.c: Ditto.
7457
7458 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7459
7460 * MAINTAINERS (write after approval): Add myself.
7461
7462 2003-03-27 Theodore A. Roth <troth@openavr.org>
7463
7464 * objc-exp.y: Add missing semi-colons.
7465
7466 2003-03-27 Andrew Cagney <cagney@redhat.com>
7467
7468 * regcache.c (write_sp): Delete function and references.
7469 * inferior.h (write_sp): Delete declaration.
7470 * valops.c (hand_function_call): Replace write_sp with
7471 TARGET_WRITE_SP.
7472 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7473 (sparc_pop_frame): Ditto.
7474
7475 2003-03-27 Andrew Cagney <cagney@redhat.com>
7476
7477 * NEWS: Mention removal of support for hppa*-*-bsd* and
7478 hppa*-*-osf* natives, and hppa*-*-pro* target.
7479 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7480 * config/pa/xm-pa.h: Obsolete file.
7481 * config/pa/xm-hppab.h: Obsolete file.
7482 * config/pa/nm-hppab.h: Obsolete file.
7483 * config/pa/tm-hppab.h: Obsolete file.
7484 * config/pa/tm-hppao.h: Obsolete file.
7485 * config/pa/nm-hppao.h: Obsolete file.
7486 * config/pa/tm-pro.h: Obsolete file.
7487 * config/pa/hppaosf.mt: Obsolete file.
7488 * config/pa/hppaosf.mh: Obsolete file.
7489 * config/pa/hppapro.mt: Obsolete file.
7490 * config/pa/hppabsd.mt: Obsolete file.
7491 * config/pa/hppabsd.mh: Obsolete file.
7492 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7493 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7494 hppa*-*-osf*.
7495
7496 2003-03-27 Andrew Cagney <cagney@redhat.com>
7497
7498 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7499 push_arguments. Don't set push_return_address or write_sp.
7500 (d10v_push_dummy_call): Replace d10v_push_arguments.
7501 (d10v_push_return_address, d10v_write_sp): Delete function,
7502 handled by push_dummy_call.
7503
7504 2003-03-26 Andrew Cagney <cagney@redhat.com>
7505
7506 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7507 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7508 regcache and dummy_addr parameters.
7509 * gdbarch.h, gdbarch.c: Re-generate.
7510 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7511 available; assume it will handle stack alignment and return
7512 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7513 legacy_push_arguments.
7514 (legacy_push_arguments): Rename default_push_arguments.
7515 * value.h (legacy_push_arguments): Rename default_push_arguments.
7516 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7517 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7518 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7519 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7520 * config/i386/tm-symmetry.h: Update.
7521 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7522 * x86-64-tdep.c (x86_64_init_abi): Update.
7523 * v850-tdep.c (v850_gdbarch_init): Update.
7524 * sparc-tdep.c (sparc_gdbarch_init): Update.
7525 * sh-tdep.c (sh_gdbarch_init): Update.
7526 * s390-tdep.c (s390_gdbarch_init): Update.
7527 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7528 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7529 * mips-tdep.c (mips_gdbarch_init): Update.
7530 * mcore-tdep.c (mcore_gdbarch_init): Update.
7531 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7532 * ia64-tdep.c (ia64_gdbarch_init): Update.
7533 * i386-tdep.c (i386_gdbarch_init): Update.
7534 * hppa-tdep.c (hppa_gdbarch_init): Update.
7535 * h8300-tdep.c (h8300_gdbarch_init): Update.
7536 * frv-tdep.c (frv_gdbarch_init): Update.
7537 * d10v-tdep.c (d10v_gdbarch_init): Update.
7538 * cris-tdep.c (cris_gdbarch_init): Update.
7539 * avr-tdep.c (avr_gdbarch_init): Update.
7540 * arm-tdep.c (arm_gdbarch_init): Update.
7541 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7542 * alpha-tdep.c (alpha_gdbarch_init): Update.
7543
7544 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7545
7546 * signals/signals.c (do_target_signal_to_host): Correct realtime
7547 signal range test.
7548
7549 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7550
7551 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7552 (struct sal_chain, map_catch_names): Remove.
7553 (catch_exception_command_1): Don't call
7554 handle_gnu_4_16_catch_command.
7555
7556 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7557
7558 From Mark Dettinger <dettinge@de.ibm.com>:
7559 * dwarf2cfi.c (read_2u): Increment pointer by two.
7560
7561 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7562
7563 * signals/signals.c: Fix typos in last change.
7564
7565 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7566
7567 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7568 not already defined. Use __SIGRTMIN if available.
7569 (target_signal_from_host): Remove SIGRTMIN block.
7570 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7571 the signal is within the realtime range.
7572
7573 2003-03-25 Adam Fedor <fedor@gnu.org>
7574
7575 * Makefile.in (infrun.o): Add $(language_h)
7576 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7577 for language specific trampolines.
7578 * language.h (struct language_defn): Add skip_trampoline.
7579 (skip_language_trampoline): Declare.
7580 * language.c (unk_lang_trampoline, skip_language_trampoline):
7581 New functions.
7582 (unknown_language_defn, auto_language_defn, local_language_defn):
7583 Add ukn_lang_trampoline.
7584 * ada-lang.c (ada_language_defn): Add NULL for language
7585 specific skip_trampoline.
7586 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7587 scm-lang.c: Likewise.
7588 * objc-lang.c (objc_skip_trampoline): New function.
7589 (objc_language_defn): Add objc_skip_trampoline.
7590
7591 2003-03-25 Andrew Cagney <cagney@redhat.com>
7592
7593 * frame.c (get_prev_frame): Delay validating a frame's ID -
7594 non-NULL, didn't go backwards - until an attempt to unwind it to
7595 the previous frame.
7596
7597 2003-03-25 Andrew Cagney <cagney@redhat.com>
7598
7599 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7600 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7601 * gdbarch.h, gdbarch.c: Re-generate.
7602 * config/sparc/tm-sparc.h
7603 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7604 * sparc-tdep.c (sparc_gdbarch_init): Set
7605 deprecated_extra_stack_alignment_needed.
7606 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7607 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7608 extra_stack_alignment_needed.
7609 * v850-tdep.c (v850_gdbarch_init): Ditto.
7610 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7611 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7612 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7613 * cris-tdep.c (cris_gdbarch_init): Ditto.
7614 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7615 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7616
7617 2003-03-25 Andrew Cagney <cagney@redhat.com>
7618
7619 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7620 STORE_STRUCT_RETURN.
7621 * gdbarch.h, gdbarch.c: Regenerate.
7622 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7623 (d10v_push_arguments): Set the struct return register.
7624 (d10v_gdbarch_init): Update.
7625 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7626 * x86-64-tdep.c (x86_64_init_abi): Update.
7627 * vax-tdep.c (vax_gdbarch_init): Update.
7628 * v850-tdep.c (v850_gdbarch_init): Update.
7629 * sparc-tdep.c (sparc_gdbarch_init): Update.
7630 * sh-tdep.c (sh_gdbarch_init): Update.
7631 * s390-tdep.c (s390_gdbarch_init): Update.
7632 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7633 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7634 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7635 * mips-tdep.c (mips_gdbarch_init): Update.
7636 * mcore-tdep.c (mcore_gdbarch_init): Update.
7637 * m68k-tdep.c (m68k_gdbarch_init): Update.
7638 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7639 * ia64-tdep.c (ia64_gdbarch_init): Update.
7640 * i386-tdep.c (i386_gdbarch_init): Update.
7641 * hppa-tdep.c (hppa_gdbarch_init): Update.
7642 * h8300-tdep.c (h8300_gdbarch_init): Update.
7643 * frv-tdep.c (frv_gdbarch_init): Update.
7644 * cris-tdep.c (cris_gdbarch_init): Update.
7645 * avr-tdep.c (avr_gdbarch_init): Update.
7646 * arm-tdep.c (arm_gdbarch_init): Update.
7647 * alpha-tdep.c (alpha_gdbarch_init): Update.
7648
7649 2003-03-25 Andrew Cagney <cagney@redhat.com>
7650
7651 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7652 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7653 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7654 * gdbarch.h, gdbarch.c: Regenerate.
7655 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7656 call_dummy_stack_adjust_p.
7657 * vax-tdep.c (vax_gdbarch_init): Ditto.
7658 * v850-tdep.c (v850_gdbarch_init): Ditto.
7659 * sh-tdep.c (sh_gdbarch_init): Ditto.
7660 * s390-tdep.c (s390_gdbarch_init): Ditto.
7661 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7662 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7663 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7664 * mips-tdep.c (mips_gdbarch_init): Ditto.
7665 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7666 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7667 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7668 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7669 * i386-tdep.c (i386_gdbarch_init): Ditto.
7670 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7671 * frv-tdep.c (frv_gdbarch_init): Ditto.
7672 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7673 * cris-tdep.c (cris_gdbarch_init): Ditto.
7674 * avr-tdep.c (avr_gdbarch_init): Ditto.
7675 * arm-tdep.c (arm_gdbarch_init): Ditto.
7676 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7677 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7678 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7679 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7680 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7681 call_dummy_stack_adjust_p.
7682 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7683 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7684 * sparc-tdep.c (sparc32_push_arguments): Update.
7685 * valops.c (hand_function_call): Update.
7686
7687 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7688
7689 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7690 set_gdbarch_char_signed.
7691
7692 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7693
7694 PR cli/548
7695 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7696
7697 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7698
7699 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7700 (_initialize_arm_tdep): Don't set tm_print_insn.
7701
7702 2003-03-24 Adam Fedor <fedor@gnu.org>
7703
7704 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7705 * objc-lang.h: Add multiple inclusion protection.
7706 (start_msglist, add_msglist, end_msglist): Additional declarations.
7707
7708 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7709
7710 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7711 value was renamed to ARM_FLOAT_SOFT_FPA.
7712
7713 2003-03-23 Andrew Cagney <cagney@redhat.com>
7714
7715 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7716 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7717 * gdbarch.h, gdbarch.c: Regenerate.
7718 * valops.c (hand_function_call): Update.
7719 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7720 * frame.c (legacy_saved_regs_this_id): Update.
7721 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7722 * dummy-frame.h: Update.
7723 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7724 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7725 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7726 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7727 * config/m68k/tm-sun3.h: Update.
7728 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7729 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7730 * x86-64-tdep.c (x86_64_init_abi): Update.
7731 * vax-tdep.c (vax_gdbarch_init): Update.
7732 * v850-tdep.c (v850_gdbarch_init): Update.
7733 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7734 * sh-tdep.c (sh_gdbarch_init): Update.
7735 * s390-tdep.c (s390_gdbarch_init): Update.
7736 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7737 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7738 (frame_get_saved_regs): Update.
7739 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7740 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7741 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7742 * mips-tdep.c (mips_gdbarch_init): Update.
7743 * mcore-tdep.c (mcore_gdbarch_init): Update.
7744 * m68k-tdep.c (m68k_gdbarch_init): Update.
7745 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7746 * ia64-tdep.c (ia64_gdbarch_init): Update.
7747 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7748 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7749 (i386_interix_back_one_frame): Update.
7750 * hppa-tdep.c (hppa_gdbarch_init): Update.
7751 (hppa_init_extra_frame_info): Update.
7752 * h8300-tdep.c (h8300_gdbarch_init): Update.
7753 * frv-tdep.c (frv_gdbarch_init): Update.
7754 * cris-tdep.c (cris_gdbarch_init): Update.
7755 * avr-tdep.c (avr_gdbarch_init): Update.
7756 * arm-tdep.c (arm_gdbarch_init): Update.
7757 * alpha-tdep.c (alpha_gdbarch_init): Update.
7758
7759 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7760
7761 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7762 (arm_get_fp_model): Declare.
7763 * arm-tdep.c (fp_model_strings): New string array.
7764 (arm_fp_model, current_fp_model): New variables.
7765 (arm_get_fp_model): New function.
7766 (arm_set_fp): New function.
7767 (set_fp_model_sfunc): New function.
7768 (show_fp_model): New function.
7769 (_initialize_arm_tdep): Add new command to set/show the FPU.
7770 (arm_extract_return_value): Use arm_get_fp_model.
7771 (arm_store_return_value): Likewise.
7772 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7773 to initialize the floating-point data types.
7774 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7775 model is FPA.
7776
7777 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7778
7779 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7780 the current setting of each value.
7781 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7782 new_set and new_show. Use add_setshow_cmd_full and
7783 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7784 commands and add new version as subcommands of "set/show arm".
7785
7786 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7787
7788 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7789 (set_arm_command, show_arm_command): New functions.
7790 (_initialize_arm_tdep): Add them.
7791 (num_disassembly_options): Renamed from num_flavor_options.
7792 (valid_disassembly_styles): Renamed from valid_flavors.
7793 (disassembly_style): Renamed from disassembly_flavor.
7794 (set_disassembly_style_sfunc): Renamed from
7795 set_disassembly_flavor_sfunc.
7796 (set_disassembly_style): Renamed from set_disassembly_flavor.
7797 (arm_othernames): Updated.
7798 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7799 command. Add "set/show arm disassembly" commands. Deprecate
7800 "othernames" command.
7801
7802 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7803
7804 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7805 (arm-tdep.o): Depend on elf_arm_h.
7806
7807 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7808
7809 * Makefile.in (coff_internal_h): Define.
7810 (arm-tdep.o): Update dependencies.
7811
7812 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7813
7814 * arm-tdep.c (prologue_cache): Delete.
7815 (check_prologue_cache, save_prologue_cache): Delete.
7816 (arm_scan_prologue): Don't check or update the prologue_cache.
7817 (arm_gdb_arch_init): Don't initialize it.
7818 (_initialize_arm_tdep): Likewise.
7819
7820 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7821
7822 * MAINTAINERS (tui): Maintainer of tui code.
7823
7824 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
7825
7826 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7827 (i386-cygwin-tdep.o): Add dependencies.
7828 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7829 * i386-cygwin-tdep.c: New file.
7830 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7831 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7832
7833 2003-03-20 Andrew Cagney <cagney@redhat.com>
7834
7835 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7836 (handle_inferior_event): Remove code calling
7837 DYNAMIC_TRAMPOLINE_NEXTPC.
7838
7839 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7840 already has a full path.
7841
7842 * main.c (gdb_main): Return 1.
7843 (captured_main): Call error to report an invalid interpreter.
7844
7845 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7846 * alpha-osf1-tdep.c: Include "gdb_string.h".
7847
7848 2003-03-19 J. Brobecker <brobecker@gnat.com>
7849
7850 Continuing work to convert the hppa targets to multiarch partial.
7851
7852 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7853 method, now that hppa_push_dummy_frame has a conformant prototype.
7854 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7855 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7856 for the switch to multiarch partial.
7857
7858 2003-03-19 Kevin Buettner <kevinb@redhat.com>
7859
7860 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7861 when iss is issNull.
7862
7863 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7864
7865 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7866 NUM_REGS bounds check.
7867
7868 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7869
7870 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7871 * mips-tdep.c (gdb_assert.h): Include.
7872 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7873 (mips_register_name): Handle integer registers explicitly. Add
7874 bounds checking.
7875 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7876 (mips_lsi33k_reg_names): Don't list integer registers; they're
7877 handled by mips_register_name() now.
7878 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7879 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7880 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7881 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7882 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7883
7884 2003-03-18 Andrew Cagney <cagney@redhat.com>
7885
7886 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7887 a void pointer.
7888 * gdbtypes.h (print_scalar_formatted): Update declaration.
7889 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7890
7891 2003-03-18 J. Brobecker <brobecker@gnat.com>
7892
7893 * infrun.c (observer.h): Add #include.
7894 (normal_stop): Add call to observer_notify_normal_stop.
7895 * Makefile.in (infrun.o): Add dependency on observer.h.
7896
7897 2003-03-18 J. Brobecker <brobecker@gnat.com>
7898
7899 Continuing work to convert the hppa targets to multiarch partial.
7900 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7901 parameter. Reformat comment.
7902 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7903 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7904 to match new profile.
7905
7906 2003-03-18 J. Brobecker <brobecker@gnat.com>
7907
7908 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7909 appear to be working in any case.
7910
7911 2003-03-18 J. Brobecker <brobecker@gnat.com>
7912
7913 * observer.c (observer_test_first_observer): New static variable.
7914 (observer_test_second_observer): Likewise.
7915 (observer_test_third_observer): Likewise.
7916 (observer_test_first_notification_function): New static function.
7917 (observer_test_second_notification_function): Likewise.
7918 (observer_test_third_notification_function): Likewise.
7919
7920 2003-03-17 J. Brobecker <brobecker@gnat.com>
7921
7922 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7923 * somsolib.c (gdb_assert.h): Likewise.
7924 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7925 (somsolib.o): Likewise.
7926
7927 2003-03-17 Andrew Cagney <cagney@redhat.com>
7928
7929 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7930 BFD. Simplify setting of di.endian.
7931
7932 2003-03-17 Andrew Cagney <cagney@redhat.com>
7933
7934 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7935 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7936
7937 From Elena Zannoni <ezannoni@redhat.com>
7938 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7939 vector and floating-point parameters.
7940 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7941 convention.
7942 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7943
7944 2003-03-17 Fernando Nasser <fnasser@redhat.com>
7945
7946 * MAINTAINERS: Remove my name from several maintainership roles.
7947
7948 2003-03-17 Andrew Cagney <cagney@redhat.com>
7949
7950 Fix frame off-by-one bug.
7951 * frame-unwind.h (frame_this_id_ftype): Replace
7952 frame_unwind_id_ftype.
7953 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7954 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7955 with "prev_register".
7956 * frame-unwind.c (frame_unwind_find_by_pc): Return
7957 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7958 comment.
7959 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7960 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7961 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7962 (dummy_frame_unwind): Update.
7963 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7964 sentinel_frame_register_unwind.
7965 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7966 (sentinel_frame_unwinder): Update.
7967 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7968 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7969 * frame.c (create_sentinel_frame): Update. Initialize
7970 "prologue_cache" instead of "unwind_cache".
7971 (frame_register_unwind): Call this frame's prev_register with the
7972 next frame and this frame's prologue cache.
7973 (get_prev_frame): Simplify. Always call prev frame's this_id with
7974 this frame and prev frame's prologue cache. Document that this
7975 call is shifted one to the left when compared to the
7976 frame_register_unwind call.
7977 (legacy_saved_regs_prev_register): Replace
7978 frame_saved_regs_register_unwind.
7979 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7980 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7981 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7982 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7983 (d10v_frame_unwind): Update.
7984 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7985 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7986 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7987 "saved_regs" with "this_saved_regs".
7988
7989 2003-03-16 Andrew Cagney <cagney@redhat.com>
7990
7991 * frame.c (frame_pop): Don't call target_store_registers. Fix
7992 problem reported by Mark Kettenis.
7993
7994 2003-03-16 Mark Kettenis <kettenis@gnu.org>
7995
7996 * i386-tdep.c (i386_register_type): Renamed from
7997 i386_register_virtual_type. Adjust function signature.
7998 (i386_gdbarch_init): Set register_type instead of
7999 deprecated_max_register_raw_size,
8000 deprecated_max_register_virtual_size and register_virtual_type.
8001
8002 2003-03-14 Andrew Cagney <cagney@redhat.com>
8003
8004 * frame.c (get_prev_frame): When a legacy frame, always call
8005 legacy_get_prev_frame. Simplify unwind code using assumption that
8006 the unwinder is new.
8007 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8008 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8009 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8010
8011 2003-03-14 Andrew Cagney <cagney@redhat.com>
8012
8013 * frame.c (get_saved_register): Delete function.
8014 * frame.h (get_saved_register): Delete declaration.
8015 * xstormy16-tdep.c: Update comment.
8016 * regcache.h: Update comments.
8017 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8018 get_saved_register and extract_address, use
8019 frame_read_unsigned_register.
8020 (sparc_frame_saved_pc): Ditto.
8021 (sparc_get_saved_register): Instead of get_saved_register, use
8022 frame_register.
8023 (sparc_pop_frame): Ditto.
8024 * findvar.c: Update comments.
8025 (value_of_register): Call frame_register instead of
8026 get_saved_register.
8027 (value_from_register): Ditto.
8028 * config/sparc/tm-sparc.h: Update comment.
8029 * breakpoint.c: Update comment.
8030
8031 2003-03-14 Andrew Cagney <cagney@redhat.com>
8032
8033 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8034 GET_SAVED_REGISTER.
8035 * gdbarch.h, gdbarch.c: Re-generate.
8036 * frame.h: Update comments.
8037 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8038 * x86-64-tdep.c (x86_64_init_abi): Update.
8039 * sparc-tdep.c (sparc_gdbarch_init): Update.
8040 * sh-tdep.c (sh_gdbarch_init): Update.
8041 * mips-tdep.c (mips_gdbarch_init): Update.
8042 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8043 * cris-tdep.c (cris_gdbarch_init): Update.
8044 * ia64-tdep.c (ia64_gdbarch_init): Update.
8045 * frame.c (frame_register): Update.
8046 (get_saved_register): Update.
8047 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8048
8049 2003-03-13 Andrew Cagney <cagney@redhat.com>
8050
8051 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8052 * gdbarch.h, gdbarch.c: Regenerate.
8053 * valops.c (hand_function_call): Update comment.
8054 * stack.c (return_command): Update comment.
8055 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8056 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8057 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8058 * x86-64-tdep.c (x86_64_init_abi): Update.
8059 * vax-tdep.c (vax_gdbarch_init): Update.
8060 * v850-tdep.c (v850_gdbarch_init): Update.
8061 * sparc-tdep.c (sparc_gdbarch_init): Update.
8062 * sh-tdep.c (sh_gdbarch_init): Update.
8063 * s390-tdep.c (s390_gdbarch_init): Update.
8064 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8065 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8066 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8067 * mips-tdep.c (mips_gdbarch_init): Update.
8068 * mcore-tdep.c (mcore_gdbarch_init): Update.
8069 * m68k-tdep.c (m68k_gdbarch_init): Update.
8070 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8071 * ia64-tdep.c (ia64_gdbarch_init): Update.
8072 * i386-tdep.c (i386_gdbarch_init): Update.
8073 * hppa-tdep.c (hppa_gdbarch_init): Update.
8074 * h8300-tdep.c (h8300_gdbarch_init): Update.
8075 * frv-tdep.c (frv_gdbarch_init): Update.
8076 * cris-tdep.c (cris_gdbarch_init): Update.
8077 * avr-tdep.c (avr_gdbarch_init): Update.
8078 * arm-tdep.c (arm_gdbarch_init): Update.
8079 * alpha-tdep.c (alpha_gdbarch_init): Update.
8080
8081 2003-03-13 Andrew Cagney <cagney@redhat.com>
8082
8083 * frame.c (legacy_frame_p): New function.
8084 (get_prev_frame): Use legacy_frame_p.
8085 * frame.h (legacy_frame_p): Declare.
8086
8087 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8088
8089 * MAINTAINERS (write after approval): Alphabetically
8090 listing corrected.
8091
8092 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8093
8094 * MAINTAINERS (write after approval): Add myself.
8095
8096 2003-03-12 Andrew Cagney <cagney@redhat.com>
8097
8098 * frame.c (get_prev_frame): Rename the frame parameter to
8099 "this_frame".
8100 (get_next_frame, legacy_get_prev_frame): Ditto.
8101
8102 2003-03-12 Andrew Cagney <cagney@redhat.com>
8103
8104 * frame.c (get_current_frame): Check target_has_registers before
8105 checking target_has_stack.
8106 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8107 instead of deprecated_selected_frame.
8108 * findvar.c (value_of_register): Pass "frame", not
8109 deprecated_selected_frame, to value_of_builtin_reg.
8110
8111 2003-03-12 Andrew Cagney <cagney@redhat.com>
8112
8113 * regcache.c (regcache_cooked_write_signed): New function.
8114 (regcache_cooked_write_unsigned): New function.
8115 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8116 (regcache_cooked_read_signed): Fix regnum in range assertion.
8117 * regcache.h (regcache_cooked_write_signed): Declare.
8118 (regcache_cooked_write_unsigned): Declare.
8119
8120 2003-03-12 Andrew Cagney <cagney@redhat.com>
8121
8122 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8123 * gdbarch.h, gdbarch.c: Re-generate.
8124 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8125 * x86-64-tdep.h: Update.
8126 * x86-64-tdep.c (x86_64_init_abi): Update.
8127 * v850-tdep.c (v850_gdbarch_init): Update.
8128 * sparc-tdep.c (sparc_gdbarch_init): Update.
8129 * sh-tdep.c (sh_gdbarch_init): Update.
8130 * s390-tdep.c (s390_gdbarch_init): Update.
8131 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8132 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8133 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8134 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8135 * mips-tdep.c (mips_gdbarch_init): Update.
8136 * mcore-tdep.c (mcore_gdbarch_init): Update.
8137 * m68k-tdep.c (m68k_gdbarch_init): Update.
8138 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8139 * ia64-tdep.c (ia64_gdbarch_init): Update.
8140 * i386-tdep.c (i386_gdbarch_init): Update.
8141 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8142 * hppa-tdep.c (hppa_gdbarch_init): Update.
8143 * h8300-tdep.c (h8300_gdbarch_init): Update.
8144 * frv-tdep.c (frv_gdbarch_init): Update.
8145 * cris-tdep.c (cris_gdbarch_init): Update.
8146 * avr-tdep.c (avr_gdbarch_init): Update.
8147 * arm-tdep.c (arm_gdbarch_init): Update.
8148 * alpha-tdep.c (alpha_gdbarch_init): Update.
8149 * sh-tdep.c (sh_init_extra_frame_info): Update.
8150 (sh64_init_extra_frame_info): Update.
8151 * ns32knbsd-nat.c (frame_num_args): Update.
8152 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8153 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8154 (xstormy16_frame_chain_valid): Update.
8155 * vax-tdep.c (vax_saved_pc_after_call): Update.
8156 * v850-tdep.c (v850_frame_chain): Update.
8157 (v850_pop_frame): Update.
8158 (v850_init_extra_frame_info): Update.
8159 * sparc-tdep.c (setup_arbitrary_frame): Update.
8160 * ns32k-tdep.c (umax_frame_num_args): Update.
8161 * s390-tdep.c (s390_pop_frame_regular): Update.
8162 * mn10300-tdep.c (mn10300_frame_chain): Update.
8163 (mn10300_pop_frame_regular): Update.
8164 (mn10300_init_extra_frame_info): Update.
8165 * mips-tdep.c (mips_init_frame_pc_first): Update.
8166 (mips_frame_chain): Update.
8167 (mips_pop_frame): Update.
8168 * mcore-tdep.c (mcore_frame_chain): Update.
8169 (mcore_pop_frame): Update.
8170 (mcore_init_extra_frame_info): Update.
8171 * arch-utils.c (init_frame_pc_default): Update.
8172 * m68k-tdep.c (isi_frame_num_args): Update.
8173 (delta68_frame_num_args): Update.
8174 (news_frame_num_args): Update.
8175 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8176 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8177 (alpha_frame_chain): Update.
8178 (alpha_pop_frame): Update.
8179 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8180 (hppa_init_extra_frame_info): Update.
8181 (hppa_frame_chain): Update.
8182 (hppa_frame_chain_valid): Update.
8183 * cris-tdep.c (cris_init_extra_frame_info): Update.
8184 * avr-tdep.c (avr_init_extra_frame_info): Update.
8185 * arm-tdep.c (arm_frame_chain_valid): Update.
8186 (arm_init_extra_frame_info): Update.
8187 (arm_pop_frame): Update.
8188 * frame.c (frame_pc_unwind): Update.
8189 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8190 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8191 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8192 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8193 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8194 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8195
8196 2003-03-12 Andrew Cagney <cagney@redhat.com>
8197
8198 Eliminate the need for POP_FRAME.
8199 * frame.c (do_frame_unwind_register): New function.
8200 (frame_pop): When no POP_FRAME, pop the frame using register
8201 unwind and a scratch regcache.
8202 (frame_saved_regs_pop): Delete function.
8203 (trad_frame_unwinder): Update.
8204 * d10v-tdep.c (d10v_frame_pop): Delete function.
8205 (d10v_frame_unwind): Update.
8206 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8207 (sentinel_frame_unwinder): Update.
8208 * dummy-frame.c (dummy_frame_pop): Delete function.
8209 (dummy_frame_unwind): Update.
8210 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8211 (struct frame_unwind): Update.
8212
8213 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8214
8215 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8216 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8217 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8218 Do range checks on register number obtained from debugging info.
8219 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8220 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8221 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8222 mapping function.
8223 (do_fp_register_row): Fix typo which caused double type to be
8224 used when attempting to unpack a float.
8225
8226 2003-03-11 J. Brobecker <brobecker@gnat.com>
8227
8228 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8229
8230 2003-03-11 Andrew Cagney <cagney@redhat.com>
8231
8232 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8233 frame. Problem found by Corinna Vinschen.
8234
8235 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8236
8237 * doublest.c (floatformat_from_length): Accept also
8238 the real size of 'long double' type.
8239
8240 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
8241
8242 From Klee Dienes <kdienes@apple.com>:
8243 * breakpoint.c (bpstat_copy): Copy the command lines as well
8244 as the old value, to match what is freed in bpstat_clear.
8245
8246 2003-03-10 David Carlton <carlton@math.stanford.edu>
8247
8248 * minsyms.c (add_minsym_to_hash_table): Replace
8249 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8250 (compare_minimal_symbols, compact_minimal_symbols)
8251 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8252 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8253 of DEPRECATED_SYMBOL_MATCHES_NAME.
8254 (lookup_minimal_symbol_solib_trampoline): Ditto.
8255
8256 2003-03-10 Andrew Cagney <cagney@redhat.com>
8257
8258 * regcache.h (regcache_cooked_read_ftype): Define.
8259 (regcache_save, regcache_restore): Add a cooked_read parameter.
8260 * regcache.c (regcache_save, regcache_restore): Update.
8261 (do_cooked_read): New function.
8262 (regcache_cpy): Pass do_cooked_read to regcache_save and
8263 regcache_restore.
8264
8265 2003-03-10 Andrew Cagney <cagney@redhat.com>
8266
8267 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8268 * gdbarch.h, gdbarch.c: Re-generate.
8269 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8270 * x86-64-tdep.h: Update.
8271 * x86-64-tdep.c (x86_64_init_abi): Update.
8272 * v850-tdep.c (v850_gdbarch_init): Update.
8273 * sparc-tdep.c (sparc_gdbarch_init): Update.
8274 * sh-tdep.c (sh_gdbarch_init): Update.
8275 * s390-tdep.c (s390_gdbarch_init): Update.
8276 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8277 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8278 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8279 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8280 * mips-tdep.c (mips_gdbarch_init): Update.
8281 * mcore-tdep.c (mcore_gdbarch_init): Update.
8282 * m68k-tdep.c (m68k_gdbarch_init): Update.
8283 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8284 * ia64-tdep.c (ia64_gdbarch_init): Update.
8285 * i386-tdep.c (i386_gdbarch_init): Update.
8286 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8287 * hppa-tdep.c (hppa_gdbarch_init): Update.
8288 * h8300-tdep.c (h8300_gdbarch_init): Update.
8289 * frv-tdep.c (frv_gdbarch_init): Update.
8290 * cris-tdep.c (cris_gdbarch_init): Update.
8291 * avr-tdep.c (avr_gdbarch_init): Update.
8292 * arm-tdep.c (arm_gdbarch_init): Update.
8293 * alpha-tdep.c (alpha_gdbarch_init): Update.
8294 * sh-tdep.c (sh_init_extra_frame_info): Update.
8295 (sh64_init_extra_frame_info): Update.
8296 * ns32knbsd-nat.c (frame_num_args): Update.
8297 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8298 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8299 (xstormy16_frame_chain_valid): Update.
8300 * vax-tdep.c (vax_saved_pc_after_call): Update.
8301 * v850-tdep.c (v850_frame_chain): Update.
8302 (v850_pop_frame): Update.
8303 (v850_init_extra_frame_info): Update.
8304 * sparc-tdep.c (setup_arbitrary_frame): Update.
8305 * ns32k-tdep.c (umax_frame_num_args): Update.
8306 * s390-tdep.c (s390_pop_frame_regular): Update.
8307 * mn10300-tdep.c (mn10300_frame_chain): Update.
8308 (mn10300_pop_frame_regular): Update.
8309 (mn10300_init_extra_frame_info): Update.
8310 * mips-tdep.c (mips_init_frame_pc_first): Update.
8311 (mips_frame_chain): Update.
8312 (mips_pop_frame): Update.
8313 * mcore-tdep.c (mcore_frame_chain): Update.
8314 (mcore_pop_frame): Update.
8315 (mcore_init_extra_frame_info): Update.
8316 * arch-utils.c (init_frame_pc_default): Update.
8317 * m68k-tdep.c (isi_frame_num_args): Update.
8318 (delta68_frame_num_args): Update.
8319 (news_frame_num_args): Update.
8320 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8321 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8322 (alpha_frame_chain): Update.
8323 (alpha_pop_frame): Update.
8324 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8325 (hppa_init_extra_frame_info): Update.
8326 (hppa_frame_chain): Update.
8327 (hppa_frame_chain_valid): Update.
8328 * cris-tdep.c (cris_init_extra_frame_info): Update.
8329 * avr-tdep.c (avr_init_extra_frame_info): Update.
8330 * arm-tdep.c (arm_frame_chain_valid): Update.
8331 (arm_init_extra_frame_info): Update.
8332 (arm_pop_frame): Update.
8333 * frame.c (frame_pc_unwind): Update.
8334 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8335 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8336 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8337 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8338 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8339 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8340
8341 2003-03-10 Andrew Cagney <cagney@redhat.com>
8342
8343 * gdbarch.sh (gdbarch_unwind_pc): New method.
8344 * gdbarch.h, gdbarch.c: Regenerate.
8345 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8346 but use read_pc and FRAME_SAVED_PC as fall backs.
8347 (frame_saved_regs_pc_unwind): Delete function.
8348 (trad_frame_unwinder): Update.
8349 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8350 (struct frame_unwind): Update.
8351 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8352 (dummy_frame_unwind): Update.
8353 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8354 (sentinel_frame_unwinder): Update.
8355 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8356 (d10v_frame_unwind): Update.
8357 (d10v_unwind_pc): New function.
8358 (d10v_gdbarch_init): Set unwind_pc.
8359
8360 2003-03-10 Andrew Cagney <cagney@redhat.com>
8361
8362 * gdbarch.h: Re-generate.
8363
8364 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8365 PC.
8366 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8367 the PC register.
8368
8369 2003-03-08 Mark Kettenis <kettenis@gnu.org>
8370
8371 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8372
8373 2003-03-08 Andrew Cagney <cagney@redhat.com>
8374
8375 * cli-out.c: Update copyright.
8376 (cli_out_data): Define typedef. Use instead of ui_out_data.
8377
8378 2003-03-08 Andrew Cagney <cagney@redhat.com>
8379
8380 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8381 the result.
8382
8383 2003-03-07 Andrew Cagney <cagney@redhat.com>
8384
8385 * gdbarch.sh: Don't generate two macro definitions when an
8386 undefined macro taking no arguments.
8387 * gdbarch.h: Regenerate.
8388
8389 2002-03-07 Michal Ludvig <mludvig@suse.cz>
8390
8391 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8392 (x86_64_unwind_dummy_id): New functions.
8393 (x86_64_init_abi): Register these two new functions.
8394
8395 2003-03-07 Michal Ludvig <mludvig@suse.cz>
8396
8397 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8398 (x86_64_skip_prologue): Move prologue detection to
8399 separate function.
8400 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8401
8402 2003-03-05 Andrew Cagney <cagney@redhat.com>
8403
8404 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8405 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8406 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8407 to use unwind_dummy_id when a dummy frame.
8408 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8409 predicate.
8410 * gdbarch.h, gdbarch.c: Regneerate.
8411
8412 2003-03-05 Andrew Cagney <cagney@redhat.com>
8413
8414 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8415 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8416 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8417 values.
8418
8419 2003-03-05 Andrew Cagney <cagney@redhat.com>
8420
8421 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8422 (struct d10v_unwind_cache): Delete field "frameless". Replace
8423 "next_addr" with "sp_offset". Add "r11_offset".
8424 (d10v_frame_unwind_cache): Update.
8425 (prologue_find_regs): Update. When "mv r11, sp", save the
8426 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8427 RN was saved in r11_offset.
8428
8429 2003-03-05 Andrew Cagney <cagney@redhat.com>
8430
8431 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8432 cached PC value in the next frame.
8433
8434 2003-03-05 Andrew Cagney <cagney@redhat.com>
8435
8436 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8437 "id_unwind_cache" with "id".
8438 (frame_id_unwind): Delete declaration.
8439 * frame.c (frame_id_unwind): Delete function.
8440 (get_prev_frame): Call the frame id unwind method directly. Store
8441 the returned next frame's ID value in NEXT_FRAME. Note that there
8442 is a problem with the wrong unwind ID being called with the wrong
8443 unwind cache.
8444
8445 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8446
8447 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8448
8449 2003-03-05 James Ingham <jingham@apple.com>
8450 Daniel Jacobowitz <drow@mvista.com>
8451
8452 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8453 (auto_cp_abi): New variable.
8454 (current_cp_abi, num_cp_abis): Make static.
8455 (CP_ABI_MAX): Define.
8456 (cp_abis): Turn into an array.
8457 (value_virtual_fn_field): Fix formatting.
8458 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8459 takes a pointer.
8460 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8461 (list_cp_abis, _initialize_cp_abi): New functions.
8462 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8463 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8464 switch_to_cp_abi. Update prototype for register_cp_abi.
8465 * Makefile.in (cp-abi.o): Update dependencies.
8466 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8467 instead of switch_to_cp_abi.
8468 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8469 register_cp_abi.
8470 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8471 register_cp_abi.
8472 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8473
8474 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8475
8476 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8477 * dwarf2loc.c: Include "regcache.h".
8478 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8479 register_size.
8480 * Makefile.in (dwarf2loc.o): Update dependencies.
8481
8482 2003-03-04 Theodore A. Roth <troth@openavr.org>
8483
8484 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8485 number of io registers reported by remote target is not a multiple of
8486 step.
8487
8488 2003-03-04 David Carlton <carlton@math.stanford.edu>
8489
8490 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8491 (lookup_symbol_aux_psymtabs): Update call to
8492 lookup_partial_symbol.
8493 (lookup_transparent_type, find_main_psymtab)
8494 (make_symbol_overload_list): Ditto.
8495
8496 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8497
8498 * MAINTAINERS (Write after approval): Update my email address.
8499
8500 2003-03-03 Andrew Cagney <cagney@redhat.com>
8501
8502 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8503 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8504 predicate. Replace MAX_REGISTER_RAW_SIZE.
8505 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8506 MAX_REGISTER_VIRTUAL_SIZE.
8507 * regcache.c (legacy_max_register_raw_size): New function.
8508 (legacy_max_register_virtual_size): New function.
8509 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8510 (MAX_REGISTER_RAW_SIZE): Define.
8511 (legacy_max_register_raw_size): Declare.
8512 (legacy_max_register_virtual_size): Declare.
8513 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8514 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8515 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8516 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8517 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8518 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8519 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8520 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8521 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8522 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8523 * vax-tdep.c (vax_gdbarch_init): Update.
8524 * v850-tdep.c (v850_gdbarch_init): Update.
8525 * sparc-tdep.c (sparc_gdbarch_init): Update.
8526 * sh-tdep.c (sh_gdbarch_init): Update.
8527 * s390-tdep.c (s390_gdbarch_init): Update.
8528 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8529 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8530 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8531 * mips-tdep.c (mips_gdbarch_init): Update.
8532 * mcore-tdep.c (mcore_gdbarch_init): Update.
8533 * m68k-tdep.c (m68k_gdbarch_init): Update.
8534 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8535 * ia64-tdep.c (ia64_gdbarch_init): Update.
8536 * i386-tdep.c (i386_gdbarch_init): Update.
8537 * hppa-tdep.c (hppa_gdbarch_init): Update.
8538 * h8300-tdep.c (h8300_gdbarch_init): Update.
8539 * frv-tdep.c (frv_gdbarch_init): Update.
8540 * cris-tdep.c (cris_gdbarch_init): Update.
8541 * avr-tdep.c (avr_gdbarch_init): Update.
8542 * arm-tdep.c (arm_gdbarch_init): Update.
8543 * alpha-tdep.c (alpha_gdbarch_init): Update.
8544 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8545 max_register_raw_size or max_register_virtual_size.
8546
8547 2003-03-03 David Carlton <carlton@math.stanford.edu>
8548
8549 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8550 SYMBOL_MATCHES_NAME, add comment.
8551 (SYMBOL_MATCHES_NATURAL_NAME): New.
8552 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8553 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8554 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8555 * symtab.c (lookup_partial_symbol): Use
8556 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8557 unhelpful comment.
8558 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8559 SYMBOL_MATCHES_NAME.
8560 Fix for PR c++/33.
8561
8562 2003-03-03 David Carlton <carlton@math.stanford.edu>
8563
8564 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8565 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8566 by regexp matching against SYMBOL_NATURAL_NAME.
8567
8568 2003-03-03 David Carlton <carlton@math.stanford.edu>
8569
8570 * linespec.c (find_method): Extract code into collect_methods.
8571 (collect_methods): New.
8572
8573 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8574
8575 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8576 get_frame_base.
8577
8578 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8579 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8580
8581 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8582
8583 * arch-utils.c (generic_register_byte): Fix to use the loop index
8584 and not regnum when summing the size of all registers up to regnum.
8585
8586 2003-03-01 Andrew Cagney <cagney@redhat.com>
8587
8588 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8589 FRAME_INIT_SAVED_REGS.
8590 * gdbarch.h, gdbarch.c: Regenerate.
8591 * stack.c (frame_info): Update.
8592 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8593 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8594 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8595 * ns32k-tdep.c (ns32k_pop_frame): Update.
8596 * mips-tdep.c (mips_pop_frame): Update.
8597 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8598 * ia64-tdep.c (ia64_frame_chain): Update.
8599 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8600 (ia64_frameless_function_invocation): Update.
8601 (ia64_init_extra_frame_info): Update.
8602 (ia64_pop_frame_regular): Update.
8603 * frame.h (struct frame_info): Update comment.
8604 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8605 * frame.c (frame_saved_regs_register_unwind): Update.
8606 (frame_saved_regs_register_unwind): Update.
8607 (deprecated_generic_get_saved_register): Update.
8608 * cris-tdep.c: Update comment.
8609 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8610 Rename macro.
8611 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8612 * x86-64-tdep.c (x86_64_init_abi): Update.
8613 * vax-tdep.c (vax_gdbarch_init): Update.
8614 * v850-tdep.c (v850_gdbarch_init): Update.
8615 * sparc-tdep.c (sparc_gdbarch_init): Update.
8616 * sh-tdep.c (sh_gdbarch_init): Update.
8617 * s390-tdep.c (s390_gdbarch_init): Update.
8618 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8619 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8620 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8621 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8622 * mips-tdep.c (mips_gdbarch_init): Update.
8623 * mcore-tdep.c (mcore_gdbarch_init): Update.
8624 * m68k-tdep.c (m68k_gdbarch_init): Update.
8625 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8626 * ia64-tdep.c (ia64_gdbarch_init): Update.
8627 * i386-tdep.c (i386_gdbarch_init): Update.
8628 * frv-tdep.c (frv_gdbarch_init): Update.
8629 * avr-tdep.c (avr_gdbarch_init): Update.
8630 * arm-tdep.c (arm_gdbarch_init): Update.
8631 * alpha-tdep.c (alpha_gdbarch_init): Update.
8632
8633 2003-03-01 Andrew Cagney <cagney@redhat.com>
8634
8635 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8636 option enum and switch. When no windows, set the interpreter to
8637 INTERP_CONSOLE.
8638
8639 2003-03-01 Andrew Cagney <cagney@redhat.com>
8640
8641 * main.c (captured_main): Replace magic option characters with an
8642 enum.
8643
8644 2003-03-01 Andrew Cagney <cagney@redhat.com>
8645
8646 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8647 INIT_EXTRA_FRAME_INFO.
8648 * gdbarch.h, gdbarch.c: Regenerate.
8649 * arm-tdep.c: Update comments.
8650 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8651 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8652 * frame.h, avr-tdep.c: Ditto.
8653 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8654 (create_new_frame, legacy_get_prev_frame): Ditto.
8655 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8656 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8657 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8658 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8659 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8660 * v850-tdep.c (v850_gdbarch_init): Ditto.
8661 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8662 * sh-tdep.c (sh_gdbarch_init): Ditto.
8663 * s390-tdep.c (s390_gdbarch_init): Ditto.
8664 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8665 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8666 * mips-tdep.c (mips_gdbarch_init): Ditto.
8667 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8668 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8669 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8670 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8671 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8672 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8673 * frv-tdep.c (frv_gdbarch_init): Ditto.
8674 * cris-tdep.c (cris_gdbarch_init): Ditto.
8675 * avr-tdep.c (avr_gdbarch_init): Ditto.
8676 * arm-tdep.c (arm_gdbarch_init): Ditto.
8677 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8678 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8679
8680 2003-03-01 Andrew Cagney <cagney@redhat.com>
8681
8682 * gdbarch.sh (register_type): New function with predicate.
8683 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8684 * gdbarch.h, gdbarch.c: Re-generate.
8685 * arch-utils.c (generic_register_byte): Use generic_register_size.
8686 (generic_register_size): When available, use
8687 gdbarch_register_type.
8688 * regcache.c (init_regcache_descr): When available, initialize the
8689 register type array using gdbarch_register_type. If the
8690 architecture supplies gdbarch_register_type, do not use the legacy
8691 regcache layout.
8692 * d10v-tdep.c (d10v_register_type): Replace
8693 d10v_register_virtual_type.
8694 (d10v_gdbarch_init): Set register_type instead of
8695 register_virtual_type.
8696
8697 2003-03-01 Andrew Cagney <cagney@redhat.com>
8698
8699 * Makefile.in (ax-gdb.o): Update dependencies.
8700 * ax-gdb.c: Include "regcache.h".
8701 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8702 * findvar.c (value_of_register): Ditto.
8703 * infcmd.c (default_print_registers_info): Ditto.
8704
8705 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8706
8707 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8708 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8709
8710 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8711
8712 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8713 of STREQ.
8714
8715 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8716
8717 * Makefile.in (dwarf2loc.o): Update dependencies.
8718 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8719 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8720 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8721 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8722 (locexpr_tracepoint_var_ref): New function.
8723 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8724
8725 2003-02-28 Andrew Cagney <cagney@redhat.com>
8726
8727 * regcache.c (register_size): New function.
8728 * regcache.h (register_size): Declare
8729 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8730 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8731
8732 2003-02-28 David Carlton <carlton@math.stanford.edu>
8733
8734 * linespec.c (decode_compound): Extract code into find_method.
8735 (find_method): New.
8736
8737 2003-02-28 J. Brobecker <brobecker@gnat.com>
8738
8739 * Makefile.in: Add rules to build and link in observer.o.
8740
8741 2003-02-27 J. Brobecker <brobecker@gnat.com>
8742
8743 * observer.c: Minor comments edits.
8744
8745 2003-02-27 J. Brobecker <brobecker@gnat.com>
8746
8747 * observer.h, observer.c: New file.
8748
8749 2003-02-27 Andrew Cagney <cagney@redhat.com>
8750
8751 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8752
8753 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8754
8755 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8756 (M6812_OP_STS_EXT): Likewise.
8757 (m6811_prologue): Use the above to recognize prologue.
8758 (m6812_prologue): Likewise.
8759
8760 2003-02-27 David Carlton <carlton@math.stanford.edu>
8761
8762 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8763 SYMBOL_PRINT_NAME.
8764 (compare_psymbols): Ditto.
8765 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8766
8767 2003-02-27 Michael Snyder <msnyder@redhat.com>
8768
8769 * f-lang.c (build_fortran_types): New function.
8770 (_initialize_f_language): Gdbarch-register built-in fortran types.
8771 * doublest.c (extract_floating): Fix warning text.
8772
8773 2003-02-27 Andrew Cagney <cagney@redhat.com>
8774
8775 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8776 predicate. Replaces PUSH_DUMMY_FRAME.
8777 * gdbarch.h, gdbarch.c: Regnerate.
8778 * valops.c (hand_function_call): Update. Call
8779 generic_push_dummy_frame directly.
8780 * vax-tdep.c (vax_gdbarch_init): Update.
8781 * sparc-tdep.c (sparc_gdbarch_init): Update.
8782 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8783 * m68k-tdep.c (m68k_gdbarch_init): Update.
8784 * hppa-tdep.c (hppa_gdbarch_init): Update.
8785 * alpha-tdep.c (alpha_gdbarch_init): Update.
8786 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8787 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8788 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8789 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8790 push_dummy_frame to generic_push_dummy_frame.
8791 * v850-tdep.c (v850_gdbarch_init): Ditto.
8792 * sh-tdep.c (sh_gdbarch_init): Ditto.
8793 * s390-tdep.c (s390_gdbarch_init): Ditto.
8794 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8795 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8796 * mips-tdep.c (mips_gdbarch_init): Ditto.
8797 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8798 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8799 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8800 * i386-tdep.c (i386_gdbarch_init): Ditto.
8801 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8802 * frv-tdep.c (frv_gdbarch_init): Ditto.
8803 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8804 * cris-tdep.c (cris_gdbarch_init): Ditto.
8805 * avr-tdep.c (avr_gdbarch_init): Ditto.
8806 * arm-tdep.c (arm_gdbarch_init): Ditto.
8807
8808 2003-02-26 Kevin Buettner <kevinb@redhat.com>
8809
8810 * mips-tdep.c (show_mips_abi): New function.
8811 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8812 command ``show mips abi''.
8813
8814 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8815
8816 From Elena Zannoni <ezannoni@redhat.com>
8817 * dbxread.c (process_one_symbol): Only record line 0 if one or
8818 more sline entries have been seen for the function.
8819
8820 2003-02-26 Michael Chastain <mec@shout.net>
8821
8822 * configure: Regenerate with autoconf 000227.
8823
8824 2003-02-26 Michael Chastain <mec@shout.net>
8825
8826 Close PR build/660.
8827 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8828 for old libc5/glibc.
8829 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8830
8831 2003-02-26 Kris Warkentin <kewarken@qnx.com>
8832
8833 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8834 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8835
8836 2003-02-26 Michael Chastain <mec@shout.net>
8837
8838 * configure.in: New variable HAVE_UINTPTR_T.
8839 * configure, config.in: Regenerated.
8840
8841 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
8842
8843 Fix PR build/1097.
8844 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8845
8846 2003-02-25 Andrew Cagney <cagney@redhat.com>
8847
8848 * frame.c (get_prev_frame): Add comment on check for
8849 inside_entry_func. Only check for inside_entry_file when not a
8850 dummy and not a sentinel. Check that the new frame is not inner
8851 to the old frame.
8852
8853 2003-02-25 Andrew Cagney <cagney@redhat.com>
8854
8855 * frame.c (frame_debug): New variable.
8856 (_initialize_frame): Add "set/show debug frame" command.
8857 (get_prev_frame): When frame_debug, print reason why unwind
8858 failed.
8859
8860 2003-02-25 Michael Chastain <mec@shout.net>
8861
8862 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8863 to avoid uintptr_t definition problems.
8864
8865 2003-02-25 David Carlton <carlton@math.stanford.edu>
8866
8867 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8868 (SYMBOL_LINKAGE_NAME): Ditto.
8869 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8870 SYMBOL_LINKAGE_NAME.
8871 (struct general_symbol_info): Expand comment.
8872 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8873 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8874 (SYMBOL_MATCHES_REGEXP): Ditto.
8875 * symtab.c (symbol_natural_name): New function.
8876 * objfiles.h: Replace all uses of SYMBOL_NAME by
8877 DEPRECATED_SYMBOL_NAME.
8878 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8879 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8880 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8881 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8882 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8883 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8884 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8885 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8886 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8887 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8888 * ada-exp.y: Ditto.
8889 * ada-exp.y: Update copyright.
8890 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8891 * cp-valprint.c: Ditto.
8892
8893 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8894
8895 * infptrace.c (detach): Do not flag error if ptrace detach fails
8896 and errno is set to ESRCH.
8897
8898 2003-02-24 Andrew Cagney <cagney@redhat.com>
8899
8900 * infptrace.c (udot_info): Change type of udot_off to long. Use
8901 paddr when printing udot_off's value.
8902
8903 2003-02-24 David Carlton <carlton@math.stanford.edu>
8904
8905 * symtab.c (make_symbol_overload_list): Only read in partial
8906 symtabs containing a matching partial symbol.
8907
8908 2003-02-24 David Carlton <carlton@math.stanford.edu>
8909
8910 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8911 do the comparison, not strcmp.
8912 * symfile.c (compare_psymbols): Ditto.
8913 * defs.h: Declare strcmp_iw_ordered.
8914 * utils.c (strcmp_iw_ordered): New function.
8915
8916 2003-02-24 Jim Blandy <jimb@redhat.com>
8917
8918 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8919 support, shared libs): Remove my name from here, to better reflect
8920 reality.
8921
8922 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8923
8924 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8925 (target_ops): Add to_have_continuable_watchpoint.
8926 * target.c (update_current_target): Add INHERIT line for
8927 to_have_continuable_watchpoint.
8928 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8929 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8930 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8931 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8932
8933 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
8934
8935 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8936 maintainership.
8937
8938 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8939
8940 * solib.c (solib_open): Call target defined search function after
8941 failing with solib-search-path.
8942 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8943 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8944
8945 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8946
8947 * MAINTAINERS: Add myself to Write After section.
8948
8949 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8950
8951 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8952
8953 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8954
8955 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8956 (m68hc11_add_reggroups): New function.
8957 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8958 (m68hc11_gdbarch_init): Install the reggroups.
8959 (_initialize_m68hc11_tdep): Initialize them.
8960
8961 2003-02-21 James E Wilson <wilson@tuliptree.org>
8962
8963 * MAINTAINERS: Update my email address.
8964
8965 2003-02-21 David Carlton <carlton@math.stanford.edu>
8966
8967 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8968
8969 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
8970
8971 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8972 * symtab.h: Add opaque declarations of struct axs_value and
8973 struct agent_expr.
8974 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8975 (struct location_funcs): New type.
8976 (struct symbol): Add "loc" to aux_value.
8977 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8978 * dwarf2read.c: Include "dwarf2expr.h".
8979 (dwarf2_symbol_mark_computed): New function.
8980 (read_func_scope): Use it.
8981 (var_decode_location): New function.
8982 (new_symbol): Use it.
8983 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8984
8985 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8986 (dwarf2expr_h, dwarf2loc_h): New variables.
8987 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8988 (dwarf2expr.o, dwarf2loc.o): New rules.
8989 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8990 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8991 LOC_COMPUTED_ARG.
8992 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8993 * m2-exp.y (yylex): Likewise.
8994 * printcmd.c (address_info, print_frame_args): Likewise.
8995 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8996 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8997 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8998 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8999 * symtab.c (lookup_block_symbol): Likewise.
9000
9001 2003-02-20 Adam Fedor <fedor@gnu.org>
9002
9003 * symtab.h: Remove objc_specific struct
9004 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9005 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9006 Have language_objc use cplus_specific struct.
9007
9008 2003-02-20 Tom Tromey <tromey@redhat.com>
9009
9010 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9011 TYPE_NAME, when printing a String value. PR java/1075.
9012
9013 2003-02-20 Adam Fedor <fedor@gnu.org>
9014
9015 * objc-lang.h (find_methods): Remove declaration.
9016 * objc-lang.c (find_methods): Make static.
9017
9018 2003-02-20 Christopher Faylor <cgf@redhat.com>
9019
9020 * win32-nat.c (get_image_name): Check return value from
9021 ReadProcessMemory.
9022 (child_xfer_memory): Ditto.
9023
9024 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
9025
9026 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9027 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9028 '${exec_prefix}' (in addition to the expansion thereof) as
9029 relocatable.
9030 * configure: Rebuilt.
9031
9032 2003-02-20 David Carlton <carlton@math.stanford.edu>
9033
9034 * symtab.c (search_symbols): Revert the search_symbols part of my
9035 2002-12-23 patch. Add comment.
9036
9037 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9038
9039 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9040 * dbxread.c (elfstab_build_psymtabs): Don't call
9041 install_minimal_symbols.
9042 (stabsect_build_psymtabs): Likewise.
9043 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9044 earlier.
9045 * somread.c (som_symfile_read): Call install_minimal_symbols
9046 and do_cleanups earlier.
9047 * nlmread.c (nlm_symfile_read): Likewise.
9048 * mdebugread.c (elfmdebug_build_psymtabs): Call
9049 install_minimal_symbols and make appropriate cleanups.
9050
9051 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9052
9053 * solib.c (reload_shared_libraries): New function.
9054 (_initialize_solib): Add callbacks for ``set solib-search-path''
9055 and ``set solib-absolute-prefix''.
9056
9057 2003-02-20 David Carlton <carlton@math.stanford.edu>
9058
9059 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9060 expand comment.
9061 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9062 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9063 * ada-typeprint.c (ada_typedef_print): Ditto.
9064 * ax-gdb.c (gen_var_ref): Ditto.
9065 * breakpoint.c (print_one_breakpoint): Ditto.
9066 * buildsym.c (finish_block): Ditto.
9067 * c-valprint.c (c_val_print): Ditto.
9068 * expprint.c (print_subexp): Ditto.
9069 * findvar.c (locate_var_value): Ditto.
9070 * infcmd.c (jump_command): Ditto.
9071 * linespec.c (decode_line_2, decode_compound): Ditto.
9072 * maint.c (maintenance_translate_address): Ditto.
9073 * objc-lang.c (compare_selectors, compare_classes): Ditto.
9074 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9075 Ditto.
9076 * p-valprint.c (pascal_val_print): Ditto.
9077 * stabsread.c (define_symbol): Ditto.
9078 * stack.c (print_frame, frame_info, print_block_frame_locals)
9079 (print_frame_arg_vars, return_command): Ditto.
9080 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9081 * symmisc.c (print_symbol): Ditto.
9082 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9083 (compare_search_syms, print_symbol_info, print_msymbol_info)
9084 (rbreak_command): Ditto.
9085 * tracepoint.c (tracepoints_info): Ditto.
9086 * typeprint.c (typedef_print): Ditto.
9087 * valops.c (value_of_variable, hand_function_call): Ditto.
9088 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9089 * ada-typeprint.c: Update Copyright.
9090 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9091 * tracepoint.c, cli/cli-cmds.c: Ditto.
9092
9093 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9094
9095 * frame.c (generic_unwind_get_saved_register): Make non-static.
9096 * frame.h (generic_unwind_get_saved_register): Declare.
9097 * mips-tdep.c (read_next_frame_reg): Fetch register from
9098 current regcache when frame is NULL.
9099 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9100 that must be NULL.
9101 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9102 instead of frame_register_unwind().
9103
9104 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9105
9106 * remote-sim.c (gdbsim_insert_breakpoint)
9107 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9108 code.
9109
9110 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9111
9112 * remote.c (_initialize_remote): Add commands "set/show remote
9113 hardware-watchpoint-limit" and "set/show remote
9114 hardware-breakpoint-limit".
9115 (remote_hw_watchpoint_limit): Initialize to -1.
9116 (remote_hw_breakpoint_limit): Ditto.
9117 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9118
9119 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9120
9121 * coff-pe-read.c: New file - support reading of minimal symbols from a
9122 portable executable using the export table.
9123 * coff-pe-read.h: New file.
9124 * coffread.c: Include coff-pe-read.h.
9125 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9126 debugging symbols found.
9127 * Makefile.in (SFILES): Add coff-pe-read.o.
9128 (coff_pe_read_h): Define.
9129 (COMMON_OBS): Add coff-pe-read.o.
9130 (coffread.o): Add coff_pe_read_h dependency.
9131 (coff-pe-read.o): New target.
9132
9133 2003-02-19 David Carlton <carlton@math.stanford.edu>
9134
9135 * Makefile.in (SFILES): Add block.c.
9136 (block_h): New.
9137 (COMMON_OBS): Add block.o.
9138 (block.o): New.
9139 (x86-64-tdep.o): Add $(block_h).
9140 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9141 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9142 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9143 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9144 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9145 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9146 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9147 * value.h: Add opaque declaration for struct block.
9148 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9149 * ada-lang.h: Ditto.
9150 * x86-64-tdep.c: #include "block.h"
9151 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9152 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9153 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9154 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9155 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9156 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9157 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9158 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9159 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9160 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9161 * symtab.c (block_function): Ditto.
9162 (contained_in): Ditto.
9163 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9164 block.h. Add opaque declaration for struct block.
9165 * symtab.h: Move block_function and contained_in declarations to
9166 block.h. Add opaque declarations for struct block, struct
9167 blockvector.
9168 (struct block): Move to block.h.
9169 (struct blockvector): Ditto.
9170 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9171 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9172 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9173 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9174 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9175 Ditto.
9176 * block.c: New file.
9177 * block.h: New file.
9178
9179 2003-02-19 Theodore A. Roth <troth@openavr.org>
9180
9181 * avr-tdep.c (avr_extract_return_value): Remove function.
9182 (avr_store_return_value): Remove function.
9183 (avr_extract_struct_value_address): Remove function.
9184 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9185
9186 2003-02-19 Andrew Cagney <ac131313@redhat.com>
9187
9188 * rs6000-tdep.c: Include "gdb_assert.h".
9189 (registers_e500): Add "acc" and "spefscr".
9190 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9191 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9192 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9193 really is "r0".
9194 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9195
9196 2003-02-18 Keith Seitz <keiths@redhat.com>
9197
9198 * Makefile.in: Add gdbtk-interps.c.
9199
9200 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9201
9202 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9203 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9204
9205 2003-02-18 Andrew Cagney <cagney@redhat.com>
9206
9207 * symtab.h (struct objfile): Add opaque declaration.
9208
9209 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
9210
9211 From Jim Ingham <jingham@apple.com>:
9212 * dbxread.c (process_one_symbol): Use last_function_start rather
9213 than function_start_offset to find the real beginning of the
9214 current function. The latter is just the text section offset on
9215 some systems, the former is always the real function start.
9216
9217 2003-02-17 Andrew Cagney <cagney@redhat.com>
9218
9219 * configure.in: Revert ${target} != ${host}.
9220
9221 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9222
9223 * configure.in (Makefile): Use the test ${target} != ${host},
9224 instead of the absence of the "nm.h" file, to determine of the
9225 configuration non-native.
9226 * configure: Regenerate.
9227
9228 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
9229
9230 From Brian Ford <ford@vss.fsi.com>
9231
9232 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9233 conditionalize tui_active test.
9234 (lookup_cmd_1): Ditto.
9235
9236 2003-02-14 Mark Kettenis <kettenis@gnu.org>
9237
9238 * configure.in: Add check for _etext.
9239 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9240 available.
9241 * config.in, configure: regenerated.
9242
9243 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
9244
9245 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9246
9247 2003-02-14 Andrew Cagney <ac131313@redhat.com>
9248
9249 * main.c (tui_version): Delete variable.
9250 (captured_main): When --tui, set interpreter_p to "tui" instead of
9251 enabling tui_version.
9252 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9253 tui_version.
9254 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9255 * cli/cli-cmds.c (disassemble_command): Ditto.
9256 * defs.h (tui_version): Delete declaration.
9257 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9258 (tui-interp.o): Add rules.
9259 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9260
9261 2003-02-14 Christopher Faylor <cgf@redhat.com>
9262
9263 * win32-nat.c (register_loaded_dll): Correctly set address range for
9264 just-loaded dll.
9265
9266 2003-02-12 Jason Molenda (jmolenda@apple.com)
9267
9268 * symmisc.c (print_objfile_statistics): Include information about
9269 the number of psymtabs and symtabs in each object file.
9270
9271 2003-02-13 Keith R Seitz <keiths@redhat.com>
9272
9273 * main.h (struct captured_main_args): Add interpreter_p.
9274 * main.c (captured_main): Initialize interpreter_p from context.
9275 * gdb.c (main): Set interpreter_p argument.
9276 * Makefile.in (gdb.o): Add dependency for interps.h.
9277
9278 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9279
9280 * event-top.c (cli_command_loop): Delete declaration.
9281 (_initialize_event_loop): Delete function setting event_loop_hook.
9282 * event-top.h (cli_command_loop): Declare. Update copyright.
9283 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9284 * interps.c (current_interp_command_loop): When event_loop_p, call
9285 cli_command_loop.
9286
9287 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9288
9289 * interps.h (interp_command_loop_ftype): Change return type to
9290 void.
9291
9292 2003-02-12 Michal Ludvig <mludvig@suse.cz>
9293
9294 * x86-64-tdep.c (x86_64_extract_return_value)
9295 (x86_64_store_return_value): Use regcache instead of regbuf.
9296 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9297 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9298
9299 2003-02-11 Andrew Cagney <ac131313@redhat.com>
9300
9301 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9302 * aclocal.m4: Regenerate.
9303 * configure: Regenerate.
9304
9305 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9306 TCL_LD_SEARCH_FLAGS.
9307
9308 2003-02-10 Michal Ludvig <mludvig@suse.cz>
9309
9310 * dwarf2cfi.c: Reindented.
9311
9312 2003-02-09 Andrew Cagney <ac131313@redhat.com>
9313
9314 * interps.c (clear_interpreter_hooks): Convert function definition
9315 to ISO C.
9316
9317 2003-02-07 David Carlton <carlton@math.stanford.edu>
9318
9319 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9320
9321 2003-02-07 Kevin Buettner <kevinb@redhat.com>
9322
9323 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9324 (struct type): ...to here.
9325 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9326 field.
9327 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9328 (replace_type): Set length on all type variants for a given type.
9329
9330 2003-02-07 Andrew Cagney <ac131313@redhat.com>
9331
9332 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9333 <sys/stat.h>.
9334 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9335
9336 2003-02-06 Andrew Cagney <ac131313@redhat.com>
9337
9338 * Makefile.in (symm-nat.o): Update dependencies.
9339 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9340 (lynx-nat.o, ia64-linux-nat.): Ditto.
9341 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9342 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9343 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9344
9345 * Makefile.in (inflow_h): Define.
9346 (procfs.o, inflow.o, procfs.o): Update dependencies.
9347 * inftarg.c (child_stop): Delete extern declaration of
9348 inferior_process_group. Include "inflow.h".
9349 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9350 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9351 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9352 (our_process_group, inferior_process_group): Extern declarations.
9353
9354 * procfs.c: Include "gdb_assert.h".
9355
9356 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9357 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9358 * jv-typeprint.c (java_type_print_base): Ditto.
9359 * typeprint.c (typedef_print): Eliminate STREQ.
9360 * cli/cli-script.c (define_command, define_command): Ditto.
9361 * main.c (captured_main): Ditto.
9362 * values.c (lookup_internalvar): Ditto.
9363 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9364 within `if' conditional.
9365 * linespec.c (decode_line_2): Ditto.
9366 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9367 (bfd_openw_with_cleanup): Ditto.
9368
9369 2003-02-07 Mark Kettenis <kettenis@gnu.org>
9370
9371 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9372 legacy_extract_return_value and store_return_value to
9373 legacy_return_value.
9374
9375 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9376
9377 * win32-nat.c (get_relocated_section_addrs): New function. Find
9378 section load addresses for symbol handling in relocated DLLs.
9379 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9380
9381 2003-02-05 Fred Fish <fnf@intrinsity.com>
9382
9383 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9384 '=' and '!='.
9385 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9386 with '&' and '=='.
9387 (angel_RDI_info): Ditto.
9388 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9389 with '&' and '!='.
9390 (threads_continue_all_with_signals): Ditto.
9391
9392 2003-02-05 Jim Ingham <jingham@apple.com>
9393 Keith Seitz <keiths@redhat.com>
9394 Elena Zannoni <ezannoni@redhat.com>
9395 Andrew Cagney <ac131313@redhat.com>
9396
9397 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9398 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9399 (SUBDIR_MI_OBS): Add "mi-interp.o".
9400 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9401 (SFILES): Add "interps.c".
9402 (COMMON_OBS): Add "interps.o".
9403 (interps_h, mi_main_h): Define.
9404 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9405 (mi-main.o, main.o, event-top.o): Update dependencies.
9406 * cli/cli-interp.c: New file.
9407 * interps.h, interps.c: New files.
9408 * top.c: (gdb_init): Don't install the default interpreter, handed
9409 by captured_main.
9410 * main.c: Include "interps.h".
9411 (interpreter_p): Note that it should malloc'ed.
9412 (captured_command_loop): Call current_interp_command_loop.
9413 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9414 xfree and xstrdup when updating interpreter_p. Install the
9415 default interpreter. Add hack to stop mi1's copyright notice
9416 being encoded.
9417 * event-top.h (gdb_setup_readline): Declare.
9418 (gdb_disable_readline): Declare.
9419 * event-top.c: Include "interps.h".
9420 (display_gdb_prompt): Call current_interp_display_prompt_p.
9421 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9422 gdb_stdlog, and gdb_stdtarg.
9423 (_initialize_event_loop): Don't call gdb_setup_readline.
9424 * cli-out.c (cli_out_set_stream): New function.
9425 * cli-out.h (cli_out_set_stream): Declare.
9426
9427 2003-02-06 Mark Kettenis <kettenis@gnu.org>
9428
9429 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9430 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9431 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9432 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9433 config/i386/i386v42mp.mt: Removed.
9434
9435 2003-02-05 Mark Kettenis <kettenis@gnu.org>
9436
9437 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9438 GDB_OSABI_SOLARIS.
9439
9440 2003-02-05 Michael Chastain <mec@shout.net>
9441
9442 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9443 2.12.1 and earlier versions.
9444
9445 2003-02-05 Andrew Cagney <ac131313@redhat.com>
9446
9447 Remove orphaned hosts, targets and files.
9448 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9449 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9450 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9451 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9452 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9453 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9454 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9455 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9456 * config/sparc/tm-sp64sim.h: Delete.
9457 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9458 hosts.
9459 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9460 mips*-dec-mach3* targets.
9461
9462 2003-02-04 Michael Chastain <mec@shout.net>
9463
9464 * NEWS: Fix typo: sepcifying -> specifying.
9465
9466 2003-02-04 Michael Chastain <mec@shout.net>
9467
9468 * dwarfread.c: Add documentation on the state of dwarf-1,
9469 looking towards obsoletion.
9470
9471 2003-02-03 Michael Chastain <mec@shout.net>
9472
9473 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9474 gdb/testsuite/gdb.c++/pr-1023.exp.
9475
9476 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9477
9478 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9479 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9480
9481 * utils.c (init_page_info): Delete reference to MPW in comments.
9482 * main.c (captured_main): Delete #ifdef MPW.
9483
9484 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9485
9486 * NEWS: Note that the m32r-*-elf* is obsolete.
9487 * monitor.c (monitor_expect): Obsolete reference to m32r.
9488 * configure.tgt: Mark m32r-*-elf* as obsolete.
9489 * MAINTAINERS: Mark m32k as obsolete.
9490 * m32r-rom.c: Obsolete file.
9491 * config/m32r/m32r.mt: Obsolete file.
9492 * config/m32r/tm-m32r.h: Obsolete file.
9493 * m32r-stub.c: Obsolete file.
9494 * m32r-tdep.c: Obsolete file.
9495
9496 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9497
9498 * NEWS: Mention that the z8k-zilog-none is obsolete.
9499 * MAINTAINERS: Mark z8k as obsolete.
9500 * configure.tgt: Obsolete the z8k-*-coff* target.
9501 * config/z8k/z8k.mt: Obsolete file.
9502 * config/z8k/tm-z8k.h: Obsolete file.
9503 * z8k-tdep.c: Obsolete file.
9504
9505 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9506
9507 * NEWS: Mention that the mn10200-elf is obsolete.
9508 * configure.tgt: Obsolete mn10200-*-* target.
9509 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9510 mention that the mn10200 is obsolete.
9511 * breakpoint.h: Ditto.
9512 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9513 * config/mn10200/mn10200.mt: Obsolete file.
9514 * config/mn10200/tm-mn10200.h: Obsolete file.
9515 * mn10200-tdep.c: Obsolete file.
9516
9517 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9518
9519 * MAINTAINERS: Mark h8500 as obsolete.
9520 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9521 * findvar.c (value_from_register): Ditto.
9522 * h8500-tdep.c: Mark file as obsolete.
9523 * config/h8500/h8500.mt: Ditto.
9524 * config/h8500/tm-h8500.h: Ditto.
9525 * NEWS: Mention that h8500 is obsolete.
9526
9527 2003-02-04 David Carlton <carlton@math.stanford.edu>
9528
9529 * objfiles.c (allocate_objfile): Always set name. Add comment at
9530 start of function.
9531 * jv-lang.c (get_dynamics_objfile): Add comment.
9532
9533 2003-02-04 David Carlton <carlton@math.stanford.edu>
9534
9535 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9536 * printcmd.c (build_address_symbolic): Replace uses of
9537 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9538 SYMBOL_NAME, and asm_demangle.
9539 Update copyright.
9540
9541 2003-02-04 David Carlton <carlton@math.stanford.edu>
9542
9543 * linespec.c (decode_compound): Extract code into
9544 lookup_prefix_sym.
9545 (lookup_prefix_sym): New function.
9546
9547 2003-02-04 David Carlton <carlton@math.stanford.edu>
9548
9549 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9550 FLOAT_COERCION_BADNESS.
9551 * gdbtypes.c (rank_one_type): Replace all uses of
9552 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9553
9554 2003-02-04 Jim Blandy <jimb@redhat.com>
9555
9556 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9557 section, let dwarf_macinfo_section point to it, not
9558 dwarf_loc_section.
9559
9560 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9561
9562 Pointed out by Anton Blanchard <anton@samba.org>.
9563 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9564 (ppc_linux_at_sigtramp_return_path): Use it.
9565
9566 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9567
9568 * defs.h (streq): Add prototype.
9569 * utils.c (streq): New function.
9570
9571 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9572 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9573 * mdebugread.c (new_symbol): Likewise.
9574 * stabsread.c (define_symbol): Likewise.
9575 * coffread.c (process_coff_symbol): Likewise.
9576 * dwarfread.c (new_symbol): Likewise.
9577
9578 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9579 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9580 here.
9581 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9582 SYMBOL_INIT_DEMANGLED_NAME.
9583 * objfiles.c: Include "hashtab.h".
9584 (allocate_objfile): Call htab_set_functions_ex for the
9585 demangled_names_hash.
9586 (free_objfile): Call htab_delete for the demangled_names_hash.
9587 * objfiles.h (struct htab): Add declaration.
9588 (struct objfile): Add demangled_names_hash.
9589 * symfile.c: Include "hashtab.h".
9590 (reread_symbols): Call htab_delete for the demangled_names_hash.
9591 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9592 SYMBOL_NAME in the bcache.
9593 * symtab.c: Include "hashtab.h". Update comments.
9594 (create_demangled_names_hash, symbol_set_names): New functions.
9595 (symbol_find_demangled_name): New function, broken out from
9596 symbol_init_demangled_names.
9597 (symbol_init_demangled_names): Use it.
9598 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9599 (SYMBOL_SET_NAMES): New macro.
9600 (symbol_set_names): Add prototype.
9601
9602 2003-02-03 Jim Blandy <jimb@redhat.com>
9603
9604 Use a single, consistent representation for an empty minimal
9605 symbol table in an objfile.
9606 * objfiles.c (terminate_minimal_symbol_table): New function.
9607 (allocate_objfile): Call it.
9608 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9609 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9610 non-NULL.
9611 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9612 objfile has minimal symbols, compare minimal_symbol_count to zero,
9613 instead of comparing msymbols with NULL.
9614 * objfiles.c (have_minimal_symbols): Same.
9615 * solib-sunos.c (solib_add_common_symbols): Call
9616 terminate_minimal_symbol_table.
9617 * symfile.c (reread_symbols): Same.
9618
9619 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9620
9621 * s390-tdep.c (s390_address_class_type_flags)
9622 (s390_address_class_type_flags_to_name)
9623 (s390_address_class_name_to_type_flags): New functions.
9624 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9625 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9626
9627 2003-02-03 Michael Snyder <msnyder@redhat.com>
9628
9629 * arm-tdep.c: Fix spell-o in comment.
9630
9631 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9632
9633 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9634 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9635 error messages to contain BFD filename.
9636
9637 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9638
9639 Fix PR gdb/742 gdb/743 gdb/877
9640 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9641 (do_mixed_source_and_assembly): Use
9642 make_cleanup_ui_out_tuple_begin_end and
9643 make_cleanup_ui_out_tuple_begin_end.
9644 (do_mixed_source_and_assembly): Ditto.
9645 * thread.c (do_captured_list_thread_ids): Ditto.
9646 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9647 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9648 ui_out_tuple_end): Delete prototypes.
9649 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9650 ui_out_list_end, ui_out_tuple_end): Delete.
9651
9652 From Kevin Buettner <kevinb@redhat.com>:
9653 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9654 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9655 (do_cleanup_table_end): New functions.
9656 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9657 Use cleanups to invoke_ui_out_tuple_end().
9658 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9659 * cli/cli-setshow.c (cmd_show_list): Use
9660 make_cleanup_ui_out_tuple_begin_end.
9661
9662 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9663
9664 * frame.c (frame_unwind_register): New function.
9665 (frame_unwind_unsigned_register): Use.
9666 (frame_unwind_signed_register): Use.
9667 (frame_read_register): New function.
9668 * frame.h (frame_unwind_register): Declare.
9669 (frame_read_register): Declare.
9670
9671 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9672 and frame_unwind_register instead of read_memory, write_register
9673 and deprecated_write_register_bytes.
9674
9675 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9676
9677 * frame.h: Note that namelen can be negative.
9678 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9679 NAME's length.
9680
9681 * NEWS: Mention that the d10v's `regs' command is deprecated.
9682 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9683 (d10v_print_registers_info): New function.
9684 (show_regs): Call d10v_print_registers_info.
9685 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9686
9687 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9688
9689 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9690 lost in the previous patch.
9691
9692 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9693
9694 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9695 * stack.c (print_frame_info_base): Output complete FRAME tuple
9696 for synthesized frames.
9697
9698 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9699
9700 * mips-nat.c (zerobuf): Delete.
9701 (fetch_inferior_registers): Alloc local zerobuf.
9702 (fetch_core_registers): Alloc local zerobuf.
9703 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9704 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9705 * thread-db.c (thread_db_store_registers): Ditto.
9706 * sh-tdep.c (sh_do_register): Ditto.
9707 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9708 * remote-sim.c (gdbsim_store_register): Ditto.
9709 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9710 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9711 * monitor.c (monitor_supply_register): Ditto.
9712 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9713 * mips-nat.c (fetch_inferior_registers): Ditto.
9714 * m68klinux-nat.c (fetch_register): Ditto.
9715 * lynx-nat.c (fetch_inferior_registers): Ditto.
9716 (fetch_inferior_registers): Ditto.
9717 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9718 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9719 (hpux_thread_store_registers): Ditto.
9720 * hppah-nat.c (fetch_register): Ditto.
9721 * hppab-nat.c (fetch_register): Ditto.
9722 * hppa-tdep.c (pa_register_look_aside): Ditto.
9723 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9724 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9725
9726 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9727
9728 * gdbarch.sh: Explictly specify all method levels. When a
9729 variable with an empty level, provide a non-multi-arch default.
9730 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9731 * gdbarch.h: Re-generate.
9732 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9733 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9734
9735 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9736
9737 * defs.h (host_pointer_to_address): Delete declaration.
9738 (address_to_host_pointer): Delete declaration.
9739 * utils.c (host_pointer_to_address): Delete function.
9740 (address_to_host_pointer): Delete function.
9741 * procfs.c (procfs_address_to_host_pointer): New function.
9742 * procfs.c (proc_set_watchpoint): Use.
9743 (procfs_can_use_hw_breakpoint): Update comments.
9744 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9745 (som_solib_add): Use.
9746 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9747 * hppa-tdep.c (unwind_command): Use.
9748
9749 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9750
9751 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9752 strlen d_name.
9753
9754 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9755 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9756 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9757 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9758 (define_symbol): Update.
9759 * symfile.c (generic_load): Remove references to nindy.
9760 * symtab.c: Remove references to nindy.
9761
9762 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9763
9764 * infcmd.c (print_float_info): Delete code conditional on
9765 FLOAT_INFO.
9766 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9767 * config/m68k/nm-apollo68b.h: Ditto.
9768 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9769 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9770 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9771
9772 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9773
9774 * config/i386/tm-i386os9k.h: Removed.
9775
9776 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9777 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9778 they're identical to i[3456]86-*-sysv* now.
9779 * config/i386/i386v32.mh: Removed.
9780 * config/i386/xm-i386v32.h: Removed.
9781 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9782
9783 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9784
9785 * config/i386/i386dgux.mh: Removed.
9786 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9787
9788 * configure.in: Fix typo.
9789 * configure: Regenerated.
9790
9791 2003-01-31 David Carlton <carlton@math.stanford.edu>
9792
9793 * dwarf2read.c (dwarf2_locate_sections): Set
9794 dwarf_ranges_section.
9795
9796 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9797
9798 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9799 * utils.c: Update comments documenting legitimate uses of PTR.
9800
9801 * utils.c: Re-indent.
9802
9803 * config/djgpp/fnchange.lst: Delete nindy files.
9804 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9805 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9806 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9807 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9808 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9809 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9810 * Makefile.in (init.c): Remove nindy references.
9811 (saber_gdb): Delete rule.
9812 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9813 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9814 and a68v-nat.c.
9815 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9816 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9817 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9818 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9819 nindy-share/stop.h.
9820 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9821 * saber.suppress: Delete file.
9822
9823 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
9824
9825 * dbxread.c (stabs_data): New static variable.
9826 (fill_symbuf): Support an in-memory buffer for stabs data.
9827 (stabs_seek): New function.
9828 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9829 (read_ofile_symtab): Use stabs_seek.
9830 (elfstab_build_psymtabs): Take an asection* instead of
9831 an offset and size. Relocate the stabs data if necessary.
9832 Save the section* for dbx_psymtab_to_symtab.
9833 * dwarf2read.c: Add section variables for each debug section.
9834 (dwarf2_locate_sections): Fill them in.
9835 (dwarf2_read_section): Take an asection* argument.
9836 Relocate the section contents if necessary.
9837 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9838 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9839 it to dwarf2_read_section.
9840 (dwarf2_build_frame_info): Update callers.
9841 * elfread.c (elf_symfile_read): Update call to
9842 elfstab_build_psymtabs.
9843 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9844 (DBX_STAB_SECTION): New macro.
9845 * stabsread.h (elfstab_build_psymtabs): Update prototype.
9846 * symfile.c (symfile_dummy_outputs): New function.
9847 (symfile_relocate_debug_section): New function.
9848 * symfile.h (symfile_relocate_debug_section): Add prototype.
9849
9850 2003-01-31 Richard Henderson <rth@redhat.com>
9851
9852 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9853 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9854 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9855 * alpha-tdep.c (alpha_register_name): Add "unique".
9856 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9857 (ALPHA_UNIQUE_REGNUM): New.
9858 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9859
9860 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9861
9862 * README: Remove reference to Ericsson 1800 monitor.
9863 * Makefile.in (remote-es.o): Delete rule.
9864 (ALLDEPFILES): Delete remote-es.c.
9865 * remote-es.c: Delete file.
9866 * config/m68k/es1800.mt: Delete file.
9867 * config/djgpp/fnchange.lst: Update.
9868 * configure.tgt: Delete m68*-ericsson-* target.
9869
9870 2003-01-31 Adam Fedor <fedor@gnu.org>
9871
9872 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9873 Remove duplicate/shadowing variable of same name.
9874
9875 2003-01-30 Jim Blandy <jimb@redhat.com>
9876
9877 * symfile.c (find_separate_debug_file): Assert that the objfile's
9878 directory name we compute ends with a slash, and then assume that
9879 that's so everywhere we use it.
9880
9881 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
9882
9883 * valops.c (value_assign): Flush frame cache after stores to memory
9884 also.
9885
9886 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9887
9888 * Makefile.in (mon960-rom.o): Delete rule.
9889 * mon960-rom.c: Delete file.
9890
9891 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9892
9893 * d10v-tdep.c: Include "frame-unwind.h".
9894 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9895 list.
9896 (next_addr, uses_frame): Delete.
9897 (struct d10v_unwind_cache): Define.
9898 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9899 Use info instead of next_addr and uses_frame globals.
9900 (d10v_frame_init_saved_regs): Delete function.
9901 (d10v_init_extra_frame_info): Delete function.
9902 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9903 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9904 init_frame_pc or frame_saved_pc.
9905 (d10v_pop_frame): Delete function.
9906 (do_d10v_pop_frame): Delete function.
9907 (d10v_frame_chain): Delete function.
9908 (d10v_frame_chain_valid): Delete function.
9909 (d10v_frame_pc_unwind): New function.
9910 (d10v_frame_id_unwind): New function.
9911 (saved_regs_unwinder): New function.
9912 (d10v_frame_register_unwind): New function.
9913 (d10v_frame_pop): New function.
9914 (d10v_frame_unwind): New variable.
9915 (d10v_frame_p): New function.
9916 (d10v_frame_saved_pc): Delete function.
9917 * Makefile.in (d10v-tdep.o): Update dependencies.
9918
9919 2003-01-30 J. Brobecker <brobecker@gnat.com>
9920
9921 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9922 causing some regressions due to a change in the default value
9923 for this macro.
9924
9925 2003-01-29 Richard Henderson <rth@redhat.com>
9926 Elena Zannoni <ezannoni@redhat.com>
9927 Daniel Jacobowitz <drow@mvista.com>
9928
9929 Fix PR gdb/961.
9930 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
9931 variables.
9932 (RANGES_SECTION): New.
9933 (dwarf_ranges_buffer): New variable.
9934 (struct comp_unit_head): Add member "die".
9935 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9936 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9937 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9938 (dwarf2_locate_sections): Likewise.
9939 (dwarf2_build_psymtabs): Read .debug_ranges.
9940 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9941 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9942 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9943 Look for DW_AT_ranges and return the bounding box.
9944
9945 2003-01-29 Brian Ford <ford@vss.fsi.com>
9946
9947 * win32-nat.c (cygwin_pid): Removed as unused.
9948 (child_attach): Try fall back to Cygwin pid.
9949
9950 2003-01-29 Jim Blandy <jimb@redhat.com>
9951
9952 * objfiles.h (struct objfile): Doc fix.
9953
9954 2003-01-29 Andrew Cagney <ac131313@redhat.com>
9955
9956 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9957 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9958 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9959 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9960 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9961 (FRAME_SAVED_PC): Change to a function with predicate.
9962 * gdbarch.h, gdbarch.c: Re-generate.
9963
9964 2003-01-28 Andrew Cagney <ac131313@redhat.com>
9965
9966 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9967
9968 * complaints.c (complain): Delete function.
9969 * complaints.h (struct deprecated_complaint): Delete definition.
9970 (complain): Delete declaration.
9971
9972 2003-01-28 Kevin Buettner <kevinb@redhat.com>
9973
9974 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9975 dummy frames.
9976
9977 2003-01-27 Andrew Cagney <ac131313@redhat.com>
9978
9979 * sentinel-frame.h, sentinel-frame.c: New files.
9980 * Makefile.in (frame.o): Update dependencies.
9981 (SFILES): Add sentinel-frame.c.
9982 (sentinel_frame_h): Define.
9983 (COMMON_OBS): Add sentinel-frame.o.
9984 (sentinel-frame.o): Specify dependencies.
9985 * frame.c: Include "sentinel-frame.h".
9986 (frame_register_unwind): Rewrite assuming that there is always a a
9987 ->next frame.
9988 (frame_register, generic_unwind_get_saved_register): Ditto.
9989 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9990 (create_sentinel_frame, unwind_to_current_frame): New functions.
9991 (get_current_frame): Rewrite using create_sentinel_frame and
9992 unwind_to_current_frame. When possible, always create a frame.
9993 (create_new_frame): Set next to the sentinel frame.
9994 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9995 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9996 ID cache when necessary.
9997 (frame_saved_regs_id_unwind): Use frame_relative_level.
9998 (deprecated_generic_get_saved_register): Use frame_relative_level,
9999 get_frame_saved_regs, get_frame_pc, get_frame_base and
10000 get_next_frame.
10001 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10002 frame_register.
10003
10004 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10005
10006 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10007
10008 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10009
10010 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10011 (maintenance_set_profile_cmd): Use error () instead of warning ().
10012
10013 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10014
10015 * configure.in: Check that -pg works if using --enable-profiling.
10016 Check for monstartup and _mcleanup regardless of --enable-profiling.
10017 * maint.c: Check for monstartup and _mcleanup before using them.
10018 * config.in: Regenerated.
10019 * configure: Regenerated.
10020
10021 2003-01-24 Nick Clifton <nickc@redhat.com>
10022
10023 * Add sh2e support:
10024
10025 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10026
10027 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10028 (sh2e_show_regs): New.
10029 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10030 * config/sh/tm-sh.h: Added sh2e to comments.
10031
10032 2003-01-23 Jim Blandy <jimb@redhat.com>
10033
10034 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10035 symbols found)" message here; we haven't checked for a separate
10036 debug info file yet, so we don't know yet.
10037 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10038 we've looked everywhere. Also, there's no need to print a special
10039 message when we're loading the separate debug info file: the one
10040 symbol_file_add prints is fine.
10041
10042 2003-01-23 Alexander Larsson <alexl@redhat.com>
10043 Jim Blandy <jimb@redhat.com>
10044
10045 Add support for executables whose debug info has been separated
10046 out into a separate file, leaving only a link behind.
10047 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10048 and separate_debug_objfile_backlink.
10049 (put_objfile_before): New declaration.
10050 * symfile.c: #include "filenames.h".
10051 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10052 debug info in a separate file, read that, too. Save the addrs
10053 argument, so we can use it again to read the separated debug info;
10054 syms_from_objfile modifies the table we pass it.
10055 (reread_symbols): After re-reading an objfile, call
10056 reread_separate_symbols to refresh its separate debug info
10057 objfile, if it has one.
10058 (reread_separate_symbols, find_separate_debug_file,
10059 get_debug_link_info, separate_debug_file_exists): New functions.
10060 (debug_file_directory): New global var.
10061 (_initialize_symfile): Initialize debug_file_directory, and
10062 provide the new `set debug-file-directory' command to let the user
10063 change it.
10064 * objfiles.c (free_objfile): If this objfile has its debug info in
10065 a separate objfile, free that one too. If this is itself a
10066 separate debug info objfile, clear our parent's backlink.
10067 (put_objfile_before): New function.
10068 * utils.c (gnu_debuglink_crc32): New function.
10069 * defs.h (gnu_debuglink_crc32): New declaration.
10070 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10071 * configure.in: Handle --with-separate-debug-dir config option.
10072 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10073 * acconfig.h (DEBUGDIR): New macro.
10074 * configure, aclocal.m4, config.in: Regenerated.
10075
10076 2003-01-22 Jim Blandy <jimb@redhat.com>
10077
10078 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10079 like the old symbol_file_add, but taking new arguments: you can
10080 now pass in either a `struct section_addr_info' list to say where
10081 each section is loaded, or a `struct section_offsets' table. Pass
10082 these new arguments through to syms_from_objfile as appropriate.
10083 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10084 with the appropriate quiescent values for the new arguments.
10085
10086 * symfile.c: #include "gdb_assert.h".
10087 (syms_from_objfile): Add the ability to pass in a section offset
10088 table directly, as an alternative to the section_addr_info table.
10089 Document arguments better.
10090 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10091 * symfile.h (syms_from_objfile): Update declaration.
10092 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10093 syms_from_objfile.
10094 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10095
10096 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
10097
10098 Original patch by Tom Tromey <tromey@cygnus.com> and
10099 Jason Molenda <jmolenda@apple.com>.
10100 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10101 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10102 * NEWS: Mention profiling.
10103 * configure.in (--enable-gdbtk): Fix typo.
10104 (--enable-profiling): New. Set PROFILE_CFLAGS.
10105 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10106 Fill in function.
10107 (profiling_state): New variable.
10108 (mcleanup_wrapper): New function.
10109 (_initialize_maint): Remove NOTYET, fix call to
10110 add_setshow_boolean_cmd for "maint set profile".
10111 * configure: Regenerated.
10112
10113 2003-01-21 Martin M. Hunt <hunt@redhat.com>
10114
10115 * Makefile.in (install-gdbtk): Install PNG images too.
10116
10117 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10118
10119 * exec.c (text_start): Delete global variable.
10120 (exec_file_attach): Make text_start local to the function.
10121 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10122 * valops.c (hand_function_call): Delete code that handles
10123 BEFORE_TEXT_END and AFTER_TEXT_END.
10124 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10125 of CALL_DUMMY_LOCATION.
10126 * gdbarch.c: Regenerate.
10127 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10128 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10129 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10130 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10131 (text_end): Delete extern declaration.
10132
10133 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10134
10135 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10136 * blockframe.c (backtrace_below_main): Move to "frame.c".
10137 (frame_chain_valid): Delete check for backtrace_below_main.
10138 (_initialize_blockframe): Delete initialization, move ``set
10139 backtrace-below-main'' command to "frame.c".
10140 (do_flush_frames_sfunc): Delete function.
10141 * frame.c: Include "command.h" and "gdbcmd.h".
10142 (frame_type_from_pc): New function.
10143 (create_new_frame): Use frame_type_from_pc.
10144 (legacy_get_prev_frame): New function.
10145 (get_prev_frame): Rewrite. When an old style frame, call
10146 legacy_get_prev_frame. Otherwize, unwind the PC first.
10147 (_initialize_frame): Add ``set backtrace-below-main'' command.
10148 * Makefile.in (frame.o): Update dependencies.
10149
10150 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10151
10152 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10153 DEPRECATED_REGISTERS_INFO.
10154
10155 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10156
10157 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10158 Maintainers'. Update `Various Maintainers'.
10159
10160 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10161
10162 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10163 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10164 Suppress actual parameters when `-'.
10165 * gdbarch.h, gdbarch.c: Regenerate.
10166
10167 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10168
10169 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10170 code handling dummy frames.
10171
10172 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10173
10174 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10175 (struct frame_unwind): Add field pop.
10176 * frame.h (frame_pop): Declare.
10177 * frame.c (frame_saved_regs_pop): New function.
10178 (trad_frame_unwinder): Add frame_saved_regs_pop.
10179 (frame_pop): New function.
10180 * dummy-frame.c (dummy_frame_pop): New function.
10181 (discard_innermost_dummy): New function.
10182 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10183 (dummy_frame_unwind): Add dummy_frame_pop.
10184 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10185 * valops.c (hand_function_call): Ditto.
10186 * stack.c (return_command): Ditto.
10187
10188 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10189
10190 * cris-tdep.c: Fix function declaration indentation.
10191 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10192 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10193 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10194 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10195 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10196 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10197
10198 2003-01-18 Michael Chastain <mec@shout.net>
10199
10200 * README (Unpacking and Installation -- quick overview):
10201 Warn against ".../gdb-5.3/gdb/configure".
10202
10203 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10204
10205 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10206 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10207 (struct frame_unwind): Declare opaque.
10208 (dummy_frame_p): Declare function.
10209 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10210 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10211 * dummy-frame.c: Include "frame-unwind.h".
10212 (dummy_frame_p): New function.
10213 (dummy_frame_unwind): New variable.
10214 * frame.c: Include "frame-unwind.h".
10215 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10216 to use the new unwind field.
10217 (set_unwind_by_pc): Delete function.
10218 (create_new_frame, get_prev_frame): Set unwind field using
10219 frame_unwind_find_by_pc.
10220 (trad_frame_unwind, trad_frame_unwinder): New variables.
10221 * frame.h (trad_frame_unwind): Declare variable.
10222 (frame_id_unwind_ftype): Delete declaration.
10223 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10224 (struct frame_unwind): Declare opaque.
10225 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10226 register_unwind with a single unwind pointer.
10227 * frame-unwind.h, frame-unwind.c: New files.
10228 * Makefile.in (SFILES): Add frame-unwind.c.
10229 (frame_unwind_h): Define.
10230 (COMMON_OBS): Add frame-unwind.o.
10231 (frame-unwind.o): Specify dependencies.
10232 (frame.o, dummy-frame.o): Update dependencies.
10233
10234 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10235
10236 * ada-valprint.c: Eliminate PTR.
10237 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10238 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10239 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10240 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10241 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10242 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10243 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10244
10245 2003-01-17 Andrew Cagney <ac131313@redhat.com>
10246
10247 * main.c (captured_main): Don't use PTR.
10248 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10249 * gdbtypes.c (lookup_primitive_typename): Ditto.
10250 (lookup_struct_elt_type): Ditto.
10251 * f-valprint.c (info_common_command): Ditto.
10252 (list_all_visible_commons): Ditto.
10253 * jv-typeprint.c (java_type_print_base): Ditto.
10254
10255 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10256 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10257 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10258 i386-interix-nat.c and i386-interix-tdep.c. Rename
10259 m68klinux-nat.c and m68klinux-tdep.c. Rename
10260 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10261 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10262 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10263 * main.c (captured_main): Use xfree, not free.
10264
10265 2003-01-16 Andrew Cagney <ac131313@redhat.com>
10266
10267 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10268 ID back using a parameter.
10269 * frame.c (frame_id_unwind): Update call.
10270 (frame_saved_regs_id_unwind): Update.
10271 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10272 * dummy-frame.h (struct frame_id): Add opaque declaration.
10273 (dummy_frame_id_unwind): Update declaration.
10274
10275 2003-01-15 Andrew Cagney <ac131313@redhat.com>
10276
10277 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10278
10279 2003-01-15 Stephen P. Smith <ischis2@cox.net>
10280
10281 * MAINTAINERS (Stephen P. Smith): Updated email address.
10282
10283 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
10284
10285 Fix PR gdb/898
10286 * breakpoint.c (until_break_command): Add new argument. Use it to
10287 decide whether to stop only at the current frame or not.
10288 * breakpoint.h (until_break_command): Update prototype.
10289 * infcmd.c (until_command): Add new argument to until_break_command
10290 call.
10291 (advance_command): New function.
10292 (_initialize_infcmd): Update help string for 'until' command.
10293 Add new 'advance' command.
10294
10295 2003-01-14 David Carlton <carlton@math.stanford.edu>
10296
10297 * linespec.c (decode_line_1): Normalize comments.
10298 (set_flags): Ditto.
10299 (locate_first_half): Ditto.
10300 (decode_compound): Ditto.
10301 (symtab_from_filename): Ditto.
10302 (decode_all_digits): Ditto.
10303 (decode_dollar): Ditto.
10304 (find_methods): Ditto.
10305 (find_toplevel_char): Ditto.
10306
10307 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10308
10309 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10310 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10311 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10312 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10313 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10314 * language.c, language.h, m32r-tdep.c: Update copyright.
10315 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10316 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10317 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10318 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10319 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10320 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10321
10322 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10323
10324 * stabsread.h (process_later, resolve_cfront_continuation):
10325 Obsolete.
10326 Update copyright years.
10327 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10328 Update copyright year.
10329 * dbxread.c(struct cont_elem): Obsolete.
10330 (process_later, process_now): Obsolete functions.
10331 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10332 Update copyright year.
10333 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10334 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10335 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10336 (parse_partial_symbols): Obsolete cfront support.
10337 * stabsread.c
10338 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10339 macros.
10340 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10341 read_cfront_baseclasses, read_cfront_member_functions,
10342 resolve_cfront_continuation,read_cfront_static_fields,
10343 copy_cfront_struct_fields): Obsolete functions.
10344 (define_symbol, read_one_struct_field): Obsolete cfront support.
10345 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10346 Update Copyright year.
10347
10348 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10349
10350 * stack.c (print_frame_info, print_stack_frame_base_stub,
10351 print_stack_frame_base, show_and_print_stack_frame_stub,
10352 show_and_print_stack_frame, print_only_stack_frame_stub,
10353 print_only_stack_frame): Delete functions.
10354 (print_stack_frame_stub): Call print_frame_info instead of
10355 print_frame_info_base.
10356 (print_frame_info_base): Rename to print_frame_info.
10357 (backtrace_command_1): Call print_frame_info, instead of
10358 print_frame_info_base.
10359 (current_frame_command): Call print_stack_frame, instead of
10360 print_only_stack_frame.
10361 (frame_command): Call print_stack_frame, instead of
10362 show_and_print_stack_frame.
10363 (up_command): Ditto.
10364 (down_command): Ditto.
10365 * frame.h (print_only_stack_frame): Delete prototype.
10366 * infrun.c (normal_stop): Call print_stack_frame, instead of
10367 show_and_print_stack_frame.
10368 * thread.c (info_threads_command): Call print_stack_frame, instead
10369 of print_only_stack_frame.
10370
10371 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10372
10373 * README (Graphical interface to GDB): Update URL. Point at
10374 gdb/links/.
10375
10376 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10377 version match.
10378
10379 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10380
10381 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10382 lines.
10383
10384 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10385
10386 * thread-db.c (attach_thread): Prototype.
10387 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10388 thread information (ti), and valid flags (th_valid, ti_valid).
10389 (attach_thread): Move target_pid_to_str call to after the thread
10390 is added to GDB's list. Initialize the cache.
10391 (thread_get_info_callback, thread_db_map_id2thr)
10392 (thread_db_get_info): New functions.
10393 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10394 (thread_db_store_registers, thread_db_thread_alive)
10395 (thread_db_get_thread_local_address): Use them.
10396 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10397 of calling error() for threads in unknown state.
10398
10399 (clear_lwpid_callback): New function.
10400 (thread_db_resume): Use it to clear the cache.
10401
10402 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10403
10404 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10405 (resume_callback): Remove dead code.
10406
10407 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10408
10409 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10410 predicate.
10411 * gdbarch.h, gdbarch.c: Regenerate.
10412 * stack.c (frame_info): Only initialize the saved registers when
10413 FRAME_INIT_SAVED_REGS_P.
10414 * frame.c (frame_saved_regs_register_unwind): Assert
10415 FRAME_INIT_SAVED_REGS_P.
10416 (deprecated_generic_get_saved_register): Ditto.
10417
10418 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10419
10420 * source.c (openp): Squelch warning about "filename".
10421
10422 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10423
10424 * source.c (openp): If the file does not exist don't necessarily
10425 search the path.
10426
10427 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10428
10429 Fix PR gdb/872.
10430 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10431 (integer_types_same_name_p): New function.
10432 (rank_one_type): Use it.
10433 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10434
10435 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10436
10437 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10438 variables.
10439 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10440 * configure.in: Add --with-sysroot.
10441 * configure: Regenerated.
10442 * main.c (gdb_sysroot): New variable.
10443 (captured_main): Initialize gdb_sysroot.
10444 * defs.h (gdb_sysroot): New extern declaration.
10445 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10446
10447 2003-01-12 Michael Chastain <mec@shout.net>
10448
10449 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10450
10451 2003-01-12 Michael Chastain <mec@shout.net>
10452
10453 * top.c (print_gdb_version): Bump copyright year to 2003.
10454
10455 2003-01-12 David Carlton <carlton@bactrian.org>
10456
10457 * linespec.c (symtab_from_filename): Rename variable 's' to
10458 'file_symtab'.
10459
10460 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10461
10462 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10463 dummy frame.
10464 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10465
10466 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10467
10468 * d10v-tdep.c: Include "gdb_assert.h".
10469 (d10v_store_return_value): Rewrite to match current interface.
10470 (d10v_extract_struct_value_address): Ditto.
10471 (d10v_extract_return_value): Ditto.
10472 (d10v_gdbarch_init): Set store_restore_value,
10473 extract_struct_value_address and extract_return_value.
10474
10475 2003-01-12 J. Brobecker <brobecker@gnat.com>
10476
10477 * hpread.c (set_namestring): New procedure replacing the
10478 SET_NAMESTRING macro.
10479 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10480 by calls to set_namestring.
10481
10482 2003-01-11 J. Brobecker <brobecker@gnat.com>
10483
10484 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10485 a compilation warning.
10486 (hpread_process_one_debug_symbol): Likewise.
10487
10488 2003-01-10 David Carlton <carlton@math.stanford.edu>
10489
10490 * linespec.c (decode_line_1): Rename variable 's' to
10491 'file_symtab'.
10492 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10493 (decode_dollar): Ditto.
10494 (decode_variable): Ditto.
10495 (symbol_found): Ditto.
10496
10497 2003-01-09 Michael Chastain <mec@shout.net>
10498
10499 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10500
10501 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10502
10503 * win32-nat.c (set_process_privilege): New function.
10504 (child_attach): Call set_process_privilege() to enable the
10505 SE_DEBUG_NAME user privilege if available in process token.
10506
10507 2003-01-10 J. Brobecker <brobecker@gnat.com>
10508
10509 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10510 compilation error in the previous revision.
10511
10512 2003-01-09 David Carlton <carlton@math.stanford.edu>
10513
10514 * linespec.c: Update copyright.
10515
10516 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10517
10518 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10519 than inferior_ptid.
10520 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10521
10522 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10523
10524 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10525 Update comments.
10526 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10527 (frame_saved_regs_zalloc): Update.
10528 (frame_saved_regs_register_unwind): Update.
10529 (create_new_frame): Update.
10530 (get_prev_frame): Update.
10531 (frame_extra_info_zalloc): Update.
10532 (deprecated_get_frame_saved_regs): Update.
10533 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10534 * cris-tdep.c: Update comment.
10535
10536 * somsolib.h: Fix function indentation.
10537 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10538 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10539 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10540 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10541 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10542
10543 * infrun.c (follow_fork): Use ISO C definition.
10544 * expprint.c (print_subexp): Use xfree instead of free.
10545 * charset.c: Include "gdb_string.h" instead of <string.h>.
10546 (register_iconv_charsets): Use ISO C definition.
10547 (host_charset, target_charset): Ditto.
10548 * Makefile.in (charset.o): Update dependencies.
10549 (mi-cmd-env.o): Update dependencies.
10550
10551 2003-01-08 Andrew Cagney <cagney@redhat.com>
10552
10553 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10554 get_frame_base.
10555
10556 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10557
10558 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10559 build directories. Save edited gdb output in Mbuild.log. If a
10560 build fails, remove any final GDB executable.
10561
10562 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10563
10564 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10565 replacing hex constants with function names and stripping leading
10566 file name directory prefixes.
10567
10568 2003-01-08 Andrew Cagney <cagney@redhat.com>
10569
10570 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10571 get_frame_base.
10572
10573 2003-01-08 David Carlton <carlton@math.stanford.edu>
10574
10575 * linespec.c (decode_line_1): Move code into decode_variable.
10576 (decode_variable): New function.
10577
10578 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10579
10580 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10581
10582 2003-01-08 Andrew Cagney <cagney@redhat.com>
10583
10584 * cris-tdep.c (cris_frame_init_saved_regs): Use
10585 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10586 saved_regs buffer.
10587 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10588 (sh64_nofp_frame_init_saved_regs): Ditto.
10589 (sh_fp_frame_init_saved_regs): Ditto.
10590 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10591 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10592 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10593 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10594
10595 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10596
10597 * minsyms.c (lookup_minimal_symbol): Update comment.
10598 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10599 (lookup_minimal_symbol_solib_trampoline): Likewise.
10600
10601 2003-01-08 Andrew Cagney <cagney@redhat.com>
10602
10603 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10604 frame_relative_level.
10605
10606 * alpha-tdep.c: Use get_frame_extra_info.
10607 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10608 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10609 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10610 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10611
10612 * alpha-tdep.c: Use get_next_frame.
10613 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10614 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10615 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10616 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10617 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10618 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10619 * xstormy16-tdep.c: Ditto.
10620
10621 2003-01-07 Andrew Cagney <cagney@redhat.com>
10622
10623 * alpha-tdep.c: Use get_frame_base.
10624 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10625 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10626 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10627 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10628 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10629 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10630 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10631 * config/sparc/tm-sparc.h: Ditto.
10632
10633 2003-01-07 Andrew Cagney <cagney@redhat.com>
10634
10635 * frame.c (deprecated_get_frame_context): New function.
10636 (deprecated_set_frame_context): New function.
10637 * frame.h (deprecated_get_frame_context): Declare.
10638 (deprecated_set_frame_context): Declare.
10639 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10640 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10641
10642 2003-01-07 Andrew Cagney <cagney@redhat.com>
10643
10644 * frame.c (deprecated_set_frame_next_hack): New function.
10645 (deprecated_set_frame_prev_hack): New function.
10646 * frame.h (deprecated_set_frame_next_hack): Declare.
10647 (deprecated_set_frame_prev_hack): Declare.
10648 * mcore-tdep.c (analyze_dummy_frame): Use
10649 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10650 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10651
10652 2003-01-07 David Carlton <carlton@math.stanford.edu>
10653
10654 * linespec.c (decode_line_1): Move code into decode_dollar.
10655 (decode_dollar): New function.
10656
10657 2003-01-07 Andrew Cagney <cagney@redhat.com>
10658
10659 * arm-tdep.c (arm_init_extra_frame_info): Use
10660 deprecated_update_frame_base_hack.
10661 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10662 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10663 (fix_frame_pointer): Ditto.
10664 (mn10300_analyze_prologue): Ditto.
10665
10666 2003-01-07 Andrew Cagney <cagney@redhat.com>
10667
10668 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10669 extra_info using frame_extra_info_zalloc.
10670 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10671 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10672 (sh64_init_extra_frame_info): Ditto.
10673 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10674 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10675 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10676 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10677 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10678 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10679 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10680 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10681 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10682 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10683 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10684 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10685
10686 * mn10300-tdep.c (analyze_dummy_frame): Use
10687 deprecated_set_frame_extra_info_hack.
10688 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10689
10690 2003-01-07 J. Brobecker <brobecker@gnat.com>
10691
10692 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10693 class is not scText. These do not define "real" procedures.
10694 (parse_partial_symbols): Likewise.
10695
10696 2003-01-06 Michael Snyder <msnyder@redhat.com>
10697
10698 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10699
10700 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10701
10702 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10703 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10704 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10705 deprecated_frame_xmalloc_with_cleanup.
10706 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10707 deprecated_frame_xmalloc.
10708 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10709 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10710
10711 2003-01-06 Andrew Cagney <cagney@redhat.com>
10712
10713 * x86-64-linux-tdep.c: Include "osabi.h".
10714 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10715
10716 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10717
10718 2003-01-06 Andrew Cagney <cagney@redhat.com>
10719
10720 * MAINTAINERS (Target Instruction Set Architectures): Update
10721 arm-elf. Can be built with -Werror, has been multiarched.
10722
10723 * value.h (unpack_long): Make buffer parameter constant.
10724 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10725 * scm-lang.h (scm_parse): Ditto.
10726 * defs.h (extract_typed_address, extract_address): Ditto.
10727 (extract_long_unsigned_integer): Ditto.
10728 * inferior.h (unsigned_pointer_to_address): Ditto.
10729 (signed_pointer_to_address): Ditto.
10730 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10731 * gdbarch.h, gdbarch.c: Regenerate.
10732 * findvar.c (extract_long_unsigned_integer): Update.
10733 (extract_address): Update.
10734 (extract_typed_address): Update.
10735 (unsigned_pointer_to_address): Update.
10736 * values.c (unpack_long): Update.
10737 (unpack_double): Update.
10738 (unpack_pointer): Update.
10739 (unpack_field_as_long): Update.
10740 * d10v-tdep.c (d10v_pointer_to_address): Update.
10741 * avr-tdep.c (avr_pointer_to_address): Update.
10742 * scm-lang.c (scm_unpack): Update.
10743 * findvar.c (signed_pointer_to_address): Update.
10744
10745 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10746
10747 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10748 since it is in i386-tdep.c.
10749
10750 2003-01-06 J. Brobecker <brobecker@gnat.com>
10751
10752 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10753 failure introduced in the previous change.
10754
10755 2003-01-05 Michael Chastain <mec@shout.net>
10756
10757 * README: Remove references to deleted remote-*.c files:
10758 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10759 remote-nrom.c, remote-os9k.c, remote-udi.c.
10760
10761 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10762
10763 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10764 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10765 i386_get_longjmp_target.
10766
10767 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10768
10769 * arm-tdep.c (prologue_cache): Change to a pointer.
10770 (_initialize_arm_tdep): Allocate prologue_cache.
10771 (check_prologue_cache): Update.
10772 (save_prologue_cache): Update.
10773 (arm_gdbarch_init): Update.
10774
10775 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10776
10777 * stabsread.c (update_method_name_from_physname): Call complaint()
10778 instead of error.
10779
10780 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10781
10782 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10783 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10784 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10785
10786 * blockframe.c: Include "gdbcmd.h" and "command.h".
10787 (backtrace_below_main): New variable.
10788 (file_frame_chain_valid, func_frame_chain_valid)
10789 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10790 (generic_func_frame_chain_valid): Remove functions.
10791 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10792 (_initialize_blockframe): New function.
10793 * Makefile.in (blockframe.o): Update dependencies.
10794 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10795 comment. Call frame_chain_valid ().
10796 * frame.h: Remove old prototypes. Add prototype for
10797 frame_chain_valid and update comments to match.
10798 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10799 Remove old comment.
10800 * gdbarch.h: Regenerated.
10801 * gdbarch.c: Regenerated.
10802
10803 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10804 set_gdbarch_frame_chain_valid.
10805 * avr-tdep.c (avr_gdbarch_init): Likewise.
10806 * cris-tdep.c (cris_gdbarch_init): Likewise.
10807 * frv-tdep.c (frv_gdbarch_init): Likewise.
10808 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10809 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10810 (i386_nw_init_abi): Likewise.
10811 (i386_gdbarch_init): Likewise.
10812 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10813 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10814 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10815 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10816 * mips-tdep.c (mips_gdbarch_init): Likewise.
10817 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10818 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10819 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10820 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10821 * s390-tdep.c (s390_gdbarch_init): Likewise.
10822 * sh-tdep.c (sh_gdbarch_init): Likewise.
10823 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10824 * v850-tdep.c (v850_gdbarch_init): Likewise.
10825 * vax-tdep.c (vax_gdbarch_init): Likewise.
10826 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10827
10828 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10829 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10830 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10831 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10832 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10833 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10834 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10835 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10836
10837 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10838
10839 * Makefile.in (acconfig_h): Remove incorrect macro.
10840 (config_h): Define.
10841 (osabi.o): Update dependencies.
10842 * configure.tgt: Set gdb_osabi based on target triplet.
10843 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10844 * configure: Regenerated.
10845 * config.in: Regenerated.
10846 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10847 (GDB_OSABI_DEFAULT): Define if not already defined.
10848 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10849 (set_osabi_string): New variables.
10850 (gdbarch_register_osabi): Add new OS ABI to
10851 gdb_osabi_available_names.
10852 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10853 (set_osabi, show_osabi): New functions.
10854 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10855
10856 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10857
10858 * arch-utils.c (gdbarch_info_init): Set osabi to
10859 GDB_OSABI_UNINITIALIZED.
10860 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10861 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10862 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10863 * gdbarch.c: Regenerated.
10864 * gdbarch.h: Regenerated.
10865 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10866 there's no BFD.
10867 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10868 * osabi.h (enum gdb_osabi): Move to defs.h.
10869 (gdbarch_init_osabi): Update prototype.
10870 * defs.h (enum gdb_osabi): Moved here.
10871 * Makefile.in: Update dependencies.
10872
10873 * alpha-tdep.h: Don't include "osabi.h".
10874 (struct gdbarch_tdep): Remove osabi member.
10875 * alpha-tdep.c: Include "osabi.h".
10876 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10877 iterate over arches. Update call to gdbarch_init_osabi.
10878 (alpha_dump_tdep): Don't dump osabi.
10879 * alpha-linux-tdep.c: Include "osabi.h".
10880 * alpha-osf1-tdep.c: Include "osabi.h".
10881 * alphafbsd-tdep.c: Include "osabi.h".
10882 * alphanbsd-tdep.c: Include "osabi.h".
10883
10884 * arm-tdep.h: Don't include "osabi.h".
10885 (struct gdbarch_tdep): Remove osabi member.
10886 * arm-tdep.c: Include "osabi.h".
10887 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10888 iterate over arches. Update call to gdbarch_init_osabi.
10889 (arm_dump_tdep): Don't dump osabi.
10890 * arm-linux-tdep.c: Include "osabi.h".
10891 * armnbsd-tdep.c: Include "osabi.h".
10892
10893 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10894 Update call to gdbarch_init_osabi.
10895
10896 * i386-tdep.h: Don't include "osabi.h".
10897 (struct gdbarch_tdep): Remove osabi member.
10898 * i386-tdep.c: Include "osabi.h".
10899 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10900 iterate over arches. Update call to gdbarch_init_osabi.
10901 (i386_dump_tdep): Don't dump osabi.
10902 * i386-linux-tdep.c: Include "osabi.h".
10903 * i386-sol2-tdep.c: Include "osabi.h".
10904 * i386bsd-tdep.c: Include "osabi.h".
10905 * i386gnu-tdep.c: Include "osabi.h".
10906 * i386ly-tdep.c: Include "osabi.h".
10907 * i386nbsd-tdep.c: Include "osabi.h".
10908 * i386obsd-tdep.c: Include "osabi.h".
10909
10910 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10911 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10912 check osabi when iterating over arches. Update call to
10913 gdbarch_init_osabi.
10914 (mips_dump_tdep): Don't dump osabi.
10915
10916 * ns32k-tdep.h: Don't include "osabi.h".
10917 (struct gdbarch_tdep): Remove.
10918 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10919 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10920 allocate tdep. Update call to gdbarch_init_osabi.
10921 (ns32k_dump_tdep): Remove.
10922 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10923 * ns32knbsd-tdep.c: Include "osabi.h".
10924
10925 * ppc-tdep.h: Don't include "osabi.h".
10926 (struct gdbarch_tdep): Remove osabi member.
10927 * rs6000-tdep.c: Include "osabi.h".
10928 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10929 osabi when iterating over arches. Update call to
10930 gdbarch_init_osabi.
10931 (rs6000_dump_tdep): Don't dump osabi.
10932 * ppc-linux-tdep.c: Include "osabi.h".
10933 * ppcnbsd-tdep.c: Include "osabi.h".
10934
10935 * sh-tdep.h: Don't include "osabi.h".
10936 (struct gdbarch_tdep): Remove osabi member.
10937 * sh-tdep.c: Include "osabi.h".
10938 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10939 iterate over arches. Update call to gdbarch_init_osabi.
10940 (sh_dump_tdep): Don't dump osabi.
10941 * shnbsd-tdep.c: Include "osabi.h".
10942
10943 * sparc-tdep.c: Include "osabi.h".
10944 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10945 iterate over arches. Update call to gdbarch_init_osabi.
10946 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10947 tdep structure.
10948
10949 * vax-tdep.h: Don't include "osabi.h".
10950 (struct gdbarch_tdep): Remove.
10951 * vax-tdep.c: Include "osabi.h".
10952 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10953 iterate over arches. Don't allocate tdep. Update call
10954 to gdbarch_init_osabi.
10955 (vax_dump_tdep): Remove.
10956 (_initialize_vax_tdep): Update call to gdbarch_register.
10957
10958 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10959
10960 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10961 entirely.
10962 (breakpoint_re_set_one): Don't fetch the value for a disabled
10963 watchpoint.
10964
10965 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10966
10967 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10968 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10969 (COERCE_FLOAT_TO_DOUBLE): Remove.
10970 * gdbarch.c: Regenerate.
10971 * gdbarch.h: Regenerate.
10972 * Makefile.in: Remove value_h from gdbarch_h.
10973 * valops.c (coerce_float_to_double): New variable.
10974 (default_coerce_float_to_double): Remove.
10975 (standard_coerce_float_to_double): Remove.
10976 (value_arg_coerce): Use coerce_float_to_double.
10977 (_initialize_valops): Add "set coerce-float-to-double".
10978 * value.h (default_coerce_float_to_double): Remove prototype.
10979 (standard_coerce_float_to_double): Remove prototype.
10980
10981 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10982 prototyped.
10983 * mdebugread.c (parse_symbol): Likewise.
10984 * stabsread.c (define_symbol): Mark all functions as prototyped.
10985
10986 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10987 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10988 set_gdbarch_coerce_float_to_double.
10989 * arm-tdep.c (arm_gdbarch_init): Likewise.
10990 * frv-tdep.c (frv_gdbarch_init): Likewise.
10991 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10992 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10993 * mips-tdep.c (mips_gdbarch_init): Likewise.
10994 (mips_coerce_float_to_double): Remove.
10995 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10996 (rs6000_coerce_float_to_double): Remove.
10997 * s390-tdep.c (s390_gdbarch_init): Likewise.
10998 * sh-tdep.c (sh_gdbarch_init): Likewise.
10999 (sh_coerce_float_to_double): Remove.
11000 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11001 (sparc_coerce_float_to_double): Remove.
11002 * v850-tdep.c (v850_gdbarch_init): Likewise.
11003 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11004 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11005 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11006 (hppa_coerce_float_to_double): Remove prototype.
11007 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11008
11009 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11010
11011 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11012
11013 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11014
11015 Suggested by Stewart Brown <sb24@avaya.com>:
11016 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11017 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11018 (c_type_print_varspec_suffix): Likewise.
11019
11020 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11021
11022 * configure.in: Don't set and AC_SUBST SUBDIRS.
11023 * configure: Regenerated.
11024
11025 * configure.in: Remove code dealing with shared libraries.
11026 * Makefile.in: Remove HLDFLAGS and HLDENV.
11027 * configure: Regenerated.
11028
11029 2003-01-04 Andrew Cagney <ac131313@redhat.com>
11030
11031 * frame.c (deprecated_frame_xmalloc): New function.
11032 (deprecated_set_frame_saved_regs_hack): New function.
11033 (deprecated_set_frame_extra_info_hack): New function.
11034 * frame.h (deprecated_frame_xmalloc): Declare.
11035 (deprecated_set_frame_saved_regs_hack): Declare.
11036 (deprecated_set_frame_extra_info_hack): Declare.
11037
11038 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11039
11040 * configure.in: Move code that provides the --enable-gdbtk option
11041 right after the code that handles the --enable-tui option, and
11042 polish it somewhat.
11043 * configure: Regenerated.
11044
11045 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11046 AC_CHECK_FUNCS and remove the old check for pread64.
11047 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11048 * acconfig.h (_GNU_SOURCE): Add.
11049 (HAVE_PREAD64): Remove.
11050 * configure, aclocal.m4, config.in: Regenerated.
11051
11052 2003-01-03 Andrew Cagney <ac131313@redhat.com>
11053
11054 * alpha-tdep.c: Use get_frame_saved_regs.
11055 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11056 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11057 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11058 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11059 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11060
11061 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11062
11063 * configure.in: Remove all use of the SUBDIRS variable; add
11064 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11065 code providing the --enable-multi-ice option, and move it right in
11066 front of the code that checks whether gdbserver is supported.
11067 Polish that too.
11068 * configure: Regenerated.
11069 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11070 @SUBDIRS@.
11071
11072 2003-01-03 Andrew Cagney <cagney@redhat.com>
11073
11074 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11075 * avr-tdep.c, cris-tdep.c: Ditto.
11076 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11077 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11078
11079 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11080
11081 * configure.in: Remove --enable-netrom option.
11082 * configure: Regenerated.
11083
11084 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11085
11086 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11087 declaration for `struct re_pattern_buffer' instead.
11088 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11089
11090 2003-01-03 J. Brobecker <brobecker@gnat.com>
11091
11092 * mdebugread.c (parse_symbol): Count until the stEnd matching
11093 the structure name.
11094
11095 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11096
11097 * configure.in: Remove --with-cpu option.
11098 subscripts. Remove evil changequotes here.
11099 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11100 * config.in, configure: Regenerated.
11101
11102 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11103 * configure.in: Cleanup section that sources GDB and BFD configure
11104 subscripts. Remove evil changequotes here.
11105 * config.in, configure: Regenerated.
11106
11107 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11108
11109 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11110 frame accessor methods.
11111 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11112 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11113 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11114 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11115 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11116 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11117 * z8k-tdep.c: Ditto.
11118
11119 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11120
11121 * configure.in: Remove UI_OUT configuration code.
11122 * ada-lang.c: Update assuming UI_OUT is always true.
11123 * Makefile.in (UIOUT_CFLAGS): Remove.
11124 * configure: Regenerated.
11125 * TODO: Remove blurb about elimination of -DUI_OUT.
11126
11127 * configure.in: Move code that provides the --enable-gdbcli,
11128 --enable-gdbmi options right before the code that handles the
11129 --enable-tui option. Polish a bit.
11130 * configure: Regenerated.
11131
11132 * configure.in: Rewrite check for GNU regex and the
11133 --without-included regex option, and move it into the "Checks for
11134 library functions" section. This makes us use the system regex
11135 again by default on systems with version 2 of the GNU C library.
11136 This was apparently broken.
11137 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11138 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11139 * config.in, configure: Regenerated.
11140
11141 * configure.in: Move code that provides the --enable-tui option
11142 before the "Checks for libraries" section. Polish the code
11143 somewhat and set need_curses to yes if we build the TUI. Rewrite
11144 code that looks for a library providing termcap functionality to
11145 match more closely what's done in the Readline library, and move
11146 it into to the "Checks for libraries" section.
11147 * configure: Regenerated.
11148 * Makefile.in (TERMCAP): Remove variable.
11149 * config/i386/go32.mh (TERMCAP): Remove variable.
11150
11151 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11152
11153 * MAINTAINERS: Mention gdb_mbuild.sh.
11154 * gdb_mbuild.sh: Rewrite.
11155
11156 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11157
11158 * configure.in: Fix typo in last change.
11159 * config.in, configure: Regenerated.
11160
11161 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11162
11163 * valarith.c (value_binop): Delete obsolete code and comments.
11164 * configure.host: Ditto.
11165 * buildsym.h (make_blockvector): Ditto.
11166 * buildsym.c (make_blockvector): Ditto.
11167 * defs.h (enum language): Ditto.
11168 (chill_demangle): Ditto.
11169 * elfread.c (elf_symtab_read): Ditto.
11170 * dwarfread.c (CHILL_PRODUCER): Ditto.
11171 (set_cu_language): Ditto.
11172 (handle_producer): Ditto.
11173 * expprint.c (print_subexp): Ditto.
11174 * gdbtypes.c (chill_varying_type): Ditto.
11175 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11176 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11177 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11178 (chill_varying_type): Ditto.
11179 * language.h (_LANG_chill): Ditto.
11180 * language.c (binop_result_type, integral_type): Ditto.
11181 (character_type, string_type, structured_type): Ditto.
11182 (lang_bool_type, binop_type_check): Ditto.
11183 * stabsread.h (os9k_stabs): Ditto.
11184 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11185 (define_symbol, read_type, read_struct_fields): Ditto.
11186 (read_array_type, read_enum_type, read_huge_number): Ditto.
11187 (read_range_type, start_stabs): Ditto.
11188 * symfile.c (init_filename_language_table): Ditto.
11189 (add_psymbol_with_dem_name_to_list): Ditto.
11190 * symtab.c (symbol_init_language_specific): Ditto.
11191 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11192 * symtab.h (struct general_symbol_info): Ditto.
11193 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11194 * typeprint.c (typedef_print): Ditto.
11195 * utils.c (fprintf_symbol_filtered): Ditto.
11196 * valops.c (value_cast, search_struct_field, value_slice): Delete
11197 obsolete code.
11198 (varying_to_slice): Delete function.
11199 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11200 (varying_to_slice): Delete declaration.
11201 * MAINTAINERS: Update.
11202
11203 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11204
11205 * configure.in: Reorganize "Checks for library functions section"
11206 a bit. Remove check for `btowc' and `isascii' functions.
11207 * configure: Regenerated.
11208
11209 * acconfig.h (_MSE_INT_H): Remove.
11210 * configure.in: Create "Checks for header files" section, and move
11211 appropriate tests there. Don't check for objlist.h, wchar.h,
11212 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11213 misdetection fix. Also add "Checks for types", "Checks for
11214 compiler characteristics" and "Checks for library functions"
11215 sections.
11216 * config.in, configure: Regenerated.
11217
11218 * configure.in: Create "Checks for programs" section, and move
11219 appropriate tests there.
11220
11221 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11222
11223 * configure.in: Create "Checks for libraries" section, and move
11224 appropriate tests there. Cleanup check for wctype in libw. Use
11225 AC_SEARCH_LIBS to see whether we need libsocket.
11226 * configure: Regenerated.
11227
11228 For older changes see ChangeLog-2002
11229 \f
11230 Local Variables:
11231 mode: change-log
11232 left-margin: 8
11233 fill-column: 74
11234 version-control: never
11235 End: