* alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
[binutils-gdb.git] / gdb / ChangeLog
1 2003-06-02 Richard Henderson <rth@redhat.com>
2
3 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4 (alpha_extract_struct_value_address): Likewise.
5 (alpha_store_return_value): Likewise.
6 (alpha_store_struct_return): Remove.
7 (alpha_gdbarch_init): Update hook registration to match.
8
9 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
10 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
11 macros where appropriate.
12 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
13 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14
15 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
16 for SP, GP; void_func_ptr for PC; non-language-specific types
17 for all others.
18 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
19
20 2003-06-02 Richard Henderson <rth@redhat.com>
21
22 * top.h (lim_at_start): Declare.
23 * main.c (captured_main): Set it.
24 * top.c (lim_at_start): Define.
25 (command_loop): Use it instead of &environ.
26 * event-top.c (command_handler): Likewise.
27
28 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
29
30 * mipsnbsd-tdep.c: Update copyright years.
31 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
32
33 2003-06-01 Richard Henderson <rth@redhat.com>
34
35 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
36 (alpha-linux-tdep.o): Update dependencies.
37 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
38 * alpha-mdebug-tdep.c: Remove unneeded includes.
39
40 2003-06-01 Richard Henderson <rth@redhat.com>
41
42 * alpha-tdep.c (alpha_register_reggroup_p): New.
43 (alpha_gdbarch_init): Register it.
44
45 2003-06-02 Andrew Cagney <cagney@redhat.com>
46
47 * dwarfread.c: Eliminate "register"
48 (decode_die_type): Eliminate assignment within "if".
49 (struct_type, decode_array_element_type): Ditto.
50 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
51 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
52 (decode_modified_type, completedieinfo): Ditto.
53 * block.c: Eliminate "register".
54 (blockvector_for_pc_sect): Eliminate assignment within "if".
55 * cp-support.h (struct symbol): Opaque declaration.
56 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
57
58 2003-06-01 Richard Henderson <rth@redhat.com>
59
60 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
61 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
62
63 2003-06-01 Adam Fedor <fedor@gnu.org>
64
65 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
66 * gdbarch.[ch]: Regenerate.
67 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
68 (hppa_gdbarch_init): Set it in the gdbarch vector.
69 * i386-tdep.c (i386_fetch_pointer_argument): New
70 (i386_gdbarch_init): Set it into gdbarch.
71 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
72 (rs6000_gdbarch_init): Set it in gdbarch.
73 * sparc-tdep.c (sparc_fetch_pointer_argument): New
74 (sparc_gdbarch_init): Set it in gdbarch.
75
76 2003-06-01 Andrew Cagney <cagney@redhat.com>
77
78 * defs.h (extract_address): Delete declaration.
79 * findvar.c (extract_address): Delete function.
80 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
81 extract_address with the inline equivalent,
82 extract_unsigned_integer.
83 (xstormy16_extract_struct_value_address): Ditto.
84 (xstormy16_pointer_to_address): Ditto.
85 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
86 * v850-tdep.c (v850_push_arguments): Ditto.
87 (v850_extract_return_value): Ditto.
88 (v850_extract_struct_value_address): Ditto.
89 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
90 (sparcnbsd_get_longjmp_target_64): Ditto.
91 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
92 (get_longjmp_target): Ditto.
93 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
94 (sh64_extract_struct_value_address): Ditto.
95 (sh_push_arguments): Ditto.
96 (sh64_push_arguments): Ditto.
97 * remote-vxsparc.c (vx_read_register): Ditto.
98 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
99 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
100 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
101 * mipsv4-nat.c (get_longjmp_target): Ditto.
102 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
103 * mips-nat.c (get_longjmp_target): Ditto.
104 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
105 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
106 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
107 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
108 * irix5-nat.c (get_longjmp_target): Ditto.
109 * irix4-nat.c (get_longjmp_target): Ditto.
110 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
111 (ia64_push_arguments): Ditto.
112 * hpux-thread.c (hpux_thread_store_registers): Ditto.
113 * h8300-tdep.c (h8300_push_arguments): Ditto.
114 (h8300_store_return_value): Ditto.
115 (h8300_extract_struct_value_address): Ditto.
116 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
117 (frv_push_arguments): Ditto.
118 * avr-tdep.c (avr_pointer_to_address): Ditto.
119 (avr_push_arguments): Ditto.
120 * arm-tdep.c (arm_push_dummy_call): Ditto.
121 (arm_get_longjmp_target): Ditto.
122 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
123 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
124 (alpha_get_longjmp_target): Ditto.
125
126 * solib-irix.c (extract_mips_address): Inline extract_address,
127 replacing it with extract_signed_integer.
128 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
129 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
130 (first_link_map_member, open_symbol_file_object): Ditto.
131 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
132 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
133 (LM_NEXT, LM_NAME): Ditto.
134
135 2003-06-01 Richard Henderson <rth@redhat.com>
136
137 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
138 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
139 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
140 (alpha_cannot_store_register): Likewise.
141 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
142 * alpha-nat.c (supply_gregset): Likewise.
143 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
144
145 2003-06-01 Andrew Cagney <cagney@redhat.com>
146
147 * infcall.c (call_function_by_hand): Update comment on
148 DEPRECATED_DUMMY_WRITE_SP.
149
150 * mips-tdep.c (mips_gdbarch_init): Do not set
151 deprecated_dummy_write_sp.
152 (mips_eabi_push_dummy_call): Set the SP register.
153 (mips_o64_push_dummy_call): Set the SP register.
154 (mips_o32_push_dummy_call): Set the SP register.
155 (mips_n32n64_push_dummy_call): Set the SP register.
156
157 2003-06-01 Richard Henderson <rth@redhat.com>
158
159 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
160 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
161 (supply_gregset): Likewise.
162 * alpha-tdep.c (alpha_store_return_value): Likewise.
163 (alpha_get_longjmp_target): Likewise.
164 (alpha_register_name): Constify array.
165 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
166 deprecated_register_size, deprecated_register_bytes,
167 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
168 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
169 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
170
171 2003-06-01 Richard Henderson <rth@redhat.com>
172
173 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
174 from arg_reg_buffer to regcache to avoid double conversion.
175
176 2003-06-01 Mark Kettenis <kettenis@gnu.org>
177
178 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
179 SP_REGNUM.
180 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
181 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
182
183 2003-06-01 Richard Henderson <rth@redhat.com>
184
185 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
186 (decode_frame_entry): Set it. Skip FDE augmentation.
187
188 2003-06-01 Richard Henderson <rth@redhat.com>
189
190 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
191 not overlapping PC_REGNUM.
192
193 2003-06-01 Richard Henderson <rth@redhat.com>
194
195 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
196 alpha_push_arguments. Don't dump argument register data to
197 the target stack. Fix float and 128-bit long double semantics.
198 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
199 (alpha_fix_call_dummy): Remove.
200 (alpha_call_dummy_words): Remove.
201 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
202
203 2003-06-01 Richard Henderson <rth@redhat.com>
204
205 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
206
207 2003-06-01 Andrew Cagney <cagney@redhat.com>
208
209 * mips-tdep.c (is_mips16_addr): New function.
210 (make_mips16_addr, unmake_mips16_addr): New functions.
211 (pc_is_mips16, mips_fetch_instruction): Use.
212 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
213 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
214 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
215 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
216 TARGET_MIPS.
217 * config/mips/tm-mips.h: Update copyright.
218 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
219 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
220 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
221 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
222 (TM_PRINT_INSN_MACH): Delete.
223 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
224
225 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
226 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
227 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
228 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
229 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
230 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
231 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
232 mips*-*-riscos* and mips*-*-sysv* onto mips.
233 * config/mips/mips64.mt: New file.
234 * config/mips/mips.mt: New file.
235 * config/mips/littlemips.mt: Delete file.
236 * config/mips/decstation.mt: Delete file.
237 * config/mips/vr4300el.mt: Delete file.
238 * config/mips/vr5000el.mt: Delete file.
239 * config/mips/vr5000.mt: Delete file.
240 * config/mips/vr4100.mt: Delete file.
241 * config/mips/vr4xxxel.mt: Delete file.
242 * config/mips/vr4300.mt: Delete file.
243 * config/mips/vr4xxx.mt: Delete file.
244 * config/mips/bigmips.mt: Delete file.
245 * config/mips/bigmips64.mt: Delete file.
246 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
247 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
248 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
249 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
250 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
251 "tm-bigmips.h".
252 * config/mips/tm-irix3.h: Ditto.
253 * config/mips/tm-mipsv4.h: Ditto.
254 * config/mips/tm-embed.h: Ditto.
255 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
256 "tm-bigmips64.h".
257 * config/mips/tm-vr5000el.h: Delete file.
258 * config/mips/tm-tx39l.h: Delete file.
259 * config/mips/tm-vr4300el.h: Delete file.
260 * config/mips/tm-vr4xxxel.h: Delete file.
261 * config/mips/tm-vr4300.h: Delete file.
262 * config/mips/tm-vr4100.h: Delete file.
263 * config/mips/tm-vr4xxx.h: Delete file.
264 * config/mips/tm-vr5000.h: Delete file.
265 * config/mips/tm-embedl64.h: Delete file.
266 * config/mips/tm-embedl.h: Delete file.
267 * config/mips/tm-embed64.h: Delete file.
268 * config/mips/tm-bigmips64.h: Delete file.
269 * config/mips/tm-bigmips.h: Delete file.
270
271 2003-06-01 Mark Kettenis <kettenis@gnu.org>
272
273 Fix gdb/1216.
274 * shnbsd-nat.c: Include "sh-tdep.h".
275
276 From Richard Henderson <rth@redhat.com>:
277 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
278
279 2003-05-31 Andrew Cagney <cagney@redhat.com>
280
281 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
282 forward declaration.
283 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
284 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
285 (mips_find_saved_regs): Use set_reg_offset.
286 (mips_frame_init_saved_regs): Delete function.
287 (mips_pop_frame): Call mips_find_saved_regs instead of
288 DEPRECATED_FRAME_INIT_SAVED_REGS.
289
290 2003-05-31 Andrew Cagney <cagney@redhat.com>
291
292 * mips-tdep.c (mips_gdbarch_init): Do not set
293 deprecated_max_register_raw_size, register_virtual_size, and
294 deprecated_max_register_virtual_size.
295
296 2003-05-31 Mark Kettenis <kettenis@gnu.org>
297
298 * i386-tdep.c: Include "dwarf2-frame.h".
299 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
300 * Makefile.in (i386-tdep.o): Update dependencies.
301
302 * dwarf2-frame.c, dwarf2-frame.h: New files.
303 * Makefile.in (SFILES): Add dwarf2-frame.c.
304 (dwarf2_frame_h): Define.
305 (COMMON_OBS): Add dwarf2-frame.o.
306 (dwarf2-frame.o): Add dependencies.
307
308 2003-05-31 Andreas Jaeger <aj@suse.de>
309
310 * x86-64-linux-nat.c: Fix comment.
311
312 2003-05-31 Mark Kettenis <kettenis@gnu.org>
313
314 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
315 function signature.
316
317 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
318 have a sigcontext_addr handler.
319 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
320 sigcontext_addr handler.
321
322 2003-05-31 Andrew Cagney <cagney@redhat.com>
323
324 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
325 (print_fp_register_row): Replace do_fp_register_row.
326 (mips_print_fp_register): Add "file" and "frame" parameters.
327 (mips_print_register): Add "file" and "frame" parameters.
328 (mips_print_registers_info): Replace mips_do_registers_info.
329 (mips_gdbarch_init): Set print_registers_info instead of
330 deprecated_do_registers_info.
331 (mips_read_fp_register_single): Add "frame" parameter.
332 (mips_read_fp_register_double): Add "frame" parameter.
333
334 2003-05-31 Mark Kettenis <kettenis@gnu.org>
335
336 * i386-tdep.c (i386_register_name): Check for MMX registers first.
337 Fixes a bug where GDB would print the wrong register names for
338 targets without SSE.
339
340 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
341 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
342 registers.
343
344 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
345 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
346 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
347 TDEP->sc_sp_offset.
348
349 From Michal Ludvig <mludvig@suse.cz>:
350 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
351 and `sc_num_regs'.
352 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
353 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
354 I386_ST0_REGNUM): Move here from...
355 * i386-tdep.c: ... here.
356 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
357 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
358 registers if possible.
359 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
360 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
361 Remove variables.
362 (i386bsd_sc_reg_offset): New variable.
363 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
364 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
365 TDEP->sc_sp_offset.
366 (i386fbsd_sc_reg_offset): New variable.
367 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
368 TDEP->sc_num_regs.
369 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
370 variables.
371 (i386fbsd4_sc_reg_offset): New variable.
372 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
373 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
374 TDEP->sc_sp_offset.
375 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
376 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
377 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
378 Remove variables.
379 (i386nbsd_sc_reg_offset): New variable.
380 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
381 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
382 TDEP->sc_sp_offset.
383 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
384 Remove variables.
385 (i386obsd_sc_reg_offset): New variable.
386 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
387 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
388 TDEP->sc_sp_offset.
389 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
390 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
391 for frame pointer offset in `struct sigcontext'.
392
393 2003-05-31 Andrew Cagney <cagney@redhat.com>
394
395 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
396 architecture methods call_dummy_words, sizeof_call_dummy_words,
397 push_return_address, store_struct_return, and fix_call_dummy. Set
398 push_dummy_call instead of deprecated_push_arguments.
399 (mips_store_struct_return): Delete function.
400 (mips_fix_call_dummy): Delete function.
401 (mips_push_return_address): Delete function.
402 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
403 RA_REGNUM and T9_REGNUM.
404 (mips_n32n64_push_dummy_call): Ditto for
405 mips_n32n64_push_arguments.
406 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
407 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
408
409 2003-05-31 Andrew Cagney <cagney@redhat.com>
410
411 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
412 "dummy_addr" to "bp_addr".
413 * infcall.c (call_function_by_hand): Pass "funaddr" to
414 gdbarch_push_dummy_call.
415 * gdbarch.h, gdbarch.c: Re-generate.
416 * i386-tdep.c (i386_push_dummy_call): Update.
417 * arm-tdep.c (arm_push_dummy_call): Update.
418 * d10v-tdep.c (d10v_push_dummy_call): Update.
419
420 2003-05-31 Mark Kettenis <kettenis@gnu.org>
421
422 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
423 variable declarations.
424 (x86_64_register_number, x86_64_register_name): Remove prototypes.
425 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
426 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
427 x86_64_init_frame_pc, x86_64_init_frame_pc,
428 x86_64_function_has_prologue): Remove prototypes.
429 (X86_64_NUM_GREGS): New define.
430 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
431 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
432 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
433 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
434 XMM1_REGNUM): Remove defines.
435 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
436 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
437 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
438 X86_64_XMM1_REGNUM): New defines.
439 (struct x86_64_register_info): Renamed from `struct
440 register_info'. Remove `size' member.
441 (x86_64_register_info_table): Remove variable.
442 (x86_64_register_info): New variable.
443 (X86_64_NUM_REGS): New define.
444 (X86_64_NUM_GREGS): Remove define.
445 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
446 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
447 Remove variables.
448 (x86_54_dwarf2_reg_to_regnum): Remove function.
449 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
450 (x86_64_dwarf_reg_to_regnum): New function.
451 (x86_64_register_name): Rewrite.
452 (x86_64_register_raw_size): Remove function.
453 (x86_64_register_byte_table): Remove variable.
454 (x86_64_register_byte): Remove function.
455 (x86_64_register_virtual_type): Remove function.
456 (x86_64_register_type): New function.
457 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
458 x86_64_register_convert_to_raw): Remove functions.
459 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
460 (x86_64_use_struct_convention): Make static. Adjust for renamed
461 defines.
462 (x86_64_frame_init_saved_regs): Remove function.
463 (x86_64_push_arguments): Make static. Change to accept a regcache
464 as argument.
465 (x86_64_store_return_value, x86_64_extract_return_value): Make
466 static. Rewrite based on i386 counterparts.
467 (x86_64_push_dummy_call): New function.
468 (X86_64_NUM_SAVED_REGS): New define.
469 (x86_64_register_number): Remove function.
470 (x86_64_store_struct_return): Remove function.
471 (x86_64_frameless_function_invocation,
472 x86_64_function_has_prologue): Remove functions.
473 (PROLOG_BUFSIZE): Remove define.
474 (struct x86_64_frame_cache): New structure.
475 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
476 x86_64_frame_cache, x86_64_frame_this_id,
477 x86_64_frame_prev_register, x86_64_frame_p,
478 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
479 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
480 functions.
481 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
482 variables.
483 (x86_64_skip_prologue): Rewrite in terms of
484 x86_64_analyze_prologue.
485 (x86_64_frame_base_address): New function.
486 (x86_64_frame_base): New variable.
487 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
488 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
489 set deprecated_fp_regnum, deprecated_register_size,
490 deprecated_register_bytes, register_raw_size, register_byte,
491 register_virtual_type, register_convertiable,
492 register_convert_to_virtual, convert_to_raw,
493 deprecated_get_saved_register, deprecated_target_read_fp,
494 deprecated_push_arguments, deprecated_push_return_address,
495 deprecated_pop_frame, deprecated_store_struct_return,
496 deprecated_frame_init_saved_regs, deprecated_frame_chain,
497 frameless_function_invocation, deprecated_frame_saved_pc,
498 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
499 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
500 deprecated_init_frame_pc and virtual_frame_pointer. Call
501 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
502 and x86_64_frame_p. Call frame_base_set_default to register
503 x86_64_frame_base.
504 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
505 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
506 (_initialize_x86_64_tdep): Remove function.
507 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
508 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
509 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
510 define.
511 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
512 (x86_64_linux_sigcontext_addr): Rewrite.
513 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
514 x86_64_linux_frame_saved_pc): Remove functions.
515 (x86_64_linux_pc_in_sigtramp): Renamed from
516 x86_64_linux_in_sigtramp. Try harder to recognize a signal
517 trampoline.
518 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
519 Remove_functions.
520 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
521 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
522 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
523 (x86_64_regmap): Rename to regmap.
524 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
525 x86_64_num_gregs.
526 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
527 x86_64_regmap.
528 (x86_64_fxsave_offset): Remove function.
529 (supply_fpregset): Simply call x86_64_supply_fxsave.
530 (fill_fpregset): Simply call x86_64_fill_fxsave.
531 (fetch_inferior_registers, store_inferior_registers): Avoid
532 asignment in if-statement.
533 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
534 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
535 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
536 (fetch_core_registers): Remove function.
537 (linux_elf_core_fns): Remove.
538 (offsetoff): Don't define.
539 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
540 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
541 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
542 add core-regset.o.
543 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
544 protection against multiple includes instead of NM_X86_64_h. Add
545 various comments. Include "config/nm-linux.h". Don't include
546 <signal.h>.
547 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
548 GET_THREAD_SIGNALS): Remove defines.
549 (x86_64_register_u_addr, kernel_u_size,
550 lin_thread_get_thread_signals): Remove prototypes.
551 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
552 [HAVE_LINK_H]: Don't include "solib.h".
553 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
554 * config/i386/tm-x86-64linux.h: Fix comments.
555 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
556 x86-64-tdep.o): Update dependencies.
557
558 2003-05-30 Andrew Cagney <cagney@redhat.com>
559
560 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
561 Change parameter type to a "struct regcache *".
562
563 * gdbarch.sh: Regardless of the multi-arch level, always define
564 the macro when not already defined.
565 * gdbarch.h, gdbarch.c: Re-generate.
566
567 2003-05-30 Richard Henderson <rth@redhat.com>
568
569 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
570 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
571 (alpha_mdebug_frame_this_id): Likewise.
572 (alpha_mdebug_frame_prev_register): Likewise.
573 (alpha_mdebug_frame_base_address): Likewise.
574 (alpha_mdebug_frame_locals_address): Likewise.
575 (alpha_mdebug_frame_args_address): Likewise.
576 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
577 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
578 (alpha_heuristic_frame_unwind_cache): Make static; add missing
579 loop increment.
580 (alpha_heuristic_frame_this_id): Make static.
581 (alpha_heuristic_frame_prev_register): Likewise.
582 (alpha_heuristic_frame_base_address): Likewise.
583 * alpha-tdep.h: Update.
584
585 2003-05-30 Mark Kettenis <kettenis@gnu.org>
586
587 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
588 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
589 defenitions.
590 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
591 * i386-tdep.c: Mark functions that are 64-bit safe as such.
592 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
593 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
594 I386_ST0_REGNUM): New defines.
595 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
596 codestream_get): Remove define.
597 (codestream_next_addr, condestream_addr, condestream_buf,
598 codestream_off, codestream_cnt): Remove variables.
599 (codestream_fill, codestream_seek, codestream_read): Remove
600 functions.
601 (i386_follow_jump): Rewrite to avoid usage of removed codestream
602 functionality.
603 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
604 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
605 i386_frame_saved_pc, i386_saved_pc_after_call,
606 i386_frame_num_args, i386_frame_init_saved_regs,
607 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
608 i386_push_arguments): Remove functions.
609 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
610 functionality. Use i386_analyze_prologue instead of
611 i386_get_frame_setup.
612 (I386_NUM_SAVED_REGS): New define.
613 (struct i386_frame_cache): New structure.
614 (i386_alloc_frame_cache, i386_analyze_struct_return,
615 i386_skip_probe, i386_analyze_frame_setup,
616 i386_analyze_register_saves, i386_analyze_prologue,
617 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
618 i386_frame_prev_register, i386_sigtramp_frame_cache,
619 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
620 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
621 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
622 New functions.
623 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
624 New variables.
625 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
626 I386_EAX_REGNUM and I386_EDX_REGNUM.
627 (i386_extract_return_value, i386_store_return_value): Use
628 I386_ST0_REGNUM where appropriate.
629 (i386_extract_struct_value_address): Rewrite to use extract_address.
630 (i386_svr4_pc_in_sigtramp): Add comment.
631 (i386_svr4_sigcontext_addr): Rewrite.
632 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
633 TDEP->sc_sp_offset.
634 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
635 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
636 of new defines. Set push_dummy_call, don't set
637 deprecated_push_arguments, deprecated_push_return_address,
638 deprecated_pop_frame. Don't set parm_boundary. Don't set
639 deprecated_frame_chain, deprecated_frame_saved_pc,
640 deprecated_saved_pc_after_call. Set unwind_dummy_id,
641 save_dummy_frame_tos, unwind_pc. Call
642 frame_unwind_append_predicate and frame_base_set_default. Don't
643 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
644 Don't set frameless_function_invocation. Don't set
645 deprecated_register_bytes, deprecated_register_size,
646 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
647 * i386-linux-tdep.c: Fix formatting in some comments.
648 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
649 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
650 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
651 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
652 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
653 redundant parentheses.
654 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
655 (i386_linux_sigcontext_addr): Use it. Rewrite.
656 (find_minsym_and_objfile): Change name of second argument.
657 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
658 changed. Use frame_pc_unwind instead of
659 DEPRECATED_SAVED_PC_AFTER_CALL.
660 (i386_linux_init_abi): Don't set deprecated_register_bytes.
661 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
662 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
663 unwinder.
664 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
665 "dummy-frame.h".
666 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
667 (_initialize_i386_cygwin_tdep): New prototype.
668 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
669 deprecated_frame_chain_valid.
670 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
671 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
672 Rely on the SVR4 defaults.
673 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
674 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
675
676 2003-05-30 Andrew Cagney <cagney@redhat.com>
677
678 * infcall.c (call_function_by_hand): Always call
679 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
680
681 2003-05-30 Richard Henderson <rth@redhat.com>
682
683 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
684 increment.
685
686 2003-05-29 Jim Blandy <jimb@redhat.com>
687
688 Use gdbarch methods for solib stuff on PowerPC Linux.
689 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
690 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
691 show through.
692 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
693 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
694 giving the same effect as the #definitions above.
695
696 2003-05-29 Adam Fedor <fedor@gnu.org>
697
698 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
699 (find_implementation_from_class): Replace it with the standard
700 case i.e. do nothing.
701
702 2003-05-29 Richard Henderson <rth@redhat.com>
703
704 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
705 (alpha_linux_sigtramp_offset): Use it. Make static.
706 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
707 update for new frame model.
708 * alpha-mdebug-tdep.c: New file.
709 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
710 (alpha_osf1_init_abi): Install it.
711 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
712 (linked_proc_desc_table): Remove.
713 (alpha_frame_past_sigtramp_frame): Remove.
714 (alpha_dynamic_sigtramp_offset): Remove.
715 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
716 (alpha_proc_desc_is_dyn_sigtramp): Remove.
717 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
718 (push_sigtramp_desc): Remove.
719 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
720 (alpha_cannot_store_register): Likewise.
721 (alpha_sigcontext_addr): Remove.
722 (alpha_find_saved_regs): Remove.
723 (alpha_frame_init_saved_regs): Remove.
724 (alpha_init_frame_pc_first): Remove.
725 (read_next_frame_reg): Remove.
726 (alpha_frame_saved_pc): Remove.
727 (alpha_saved_pc_after_call): Remove.
728 (temp_proc_desc, temp_saved_regs): Remove.
729 (alpha_about_to_return): Remove.
730 (cached_proc_desc): Remove.
731 (alpha_frame_chain): Remove.
732 (alpha_print_extra_frame_info): Remove.
733 (alpha_init_extra_frame_info): Remove.
734 (alpha_frame_locals_address): Remove.
735 (alpha_frame_args_address): Remove.
736 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
737 (alpha_push_dummy_frame): Remove.
738 (alpha_pop_frame): Remove.
739 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
740 (alpha_read_insn): New.
741 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
742 for different insn encodings.
743 (alpha_in_lenient_prologue): Remove.
744 (struct alpha_sigtramp_unwind_cache): New.
745 (alpha_sigtramp_frame_unwind_cache): New.
746 (alpha_sigtramp_register_address): New.
747 (alpha_sigtramp_frame_this_id): New.
748 (alpha_sigtramp_frame_prev_register): New.
749 (alpha_sigtramp_frame_unwind): New.
750 (alpha_sigtramp_frame_p): New.
751 (struct alpha_heuristic_unwind_cache): New.
752 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
753 don't count nop insns that occur between functions.
754 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
755 heuristic_proc_desc, but without the mdebug wrapping.
756 (alpha_heuristic_frame_this_id): New.
757 (alpha_heuristic_frame_prev_register): New.
758 (alpha_heuristic_frame_unwind): New.
759 (alpha_heuristic_frame_p): New.
760 (alpha_heuristic_frame_base_address): New.
761 (alpha_heuristic_frame_base): New.
762 (alpha_unwind_dummy_id): New.
763 (alpha_unwind_pc): New.
764 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
765 frame related deprecated initializations; install replacements.
766 (alpha_dump_tdep): Remove.
767 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
768 (alpha_read_insn, alpha_after_prologue,
769 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
770 alpha_heuristic_frame_prev_register,
771 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
772 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
773 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
774 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
775
776 2003-05-29 Andrew Cagney <cagney@redhat.com>
777
778 * gdb_assert.h (gdb_assert_fail): Provide different definitions
779 dependant on the availability of ASSERT_FUNCTION.
780 (ASSERT_FUNCTION): Do not define when there is no function name.
781
782 2003-05-29 Kevin Buettner <kevinb@redhat.com>
783
784 From Jimi X <jimix@watson.ibm.com>:
785 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
786
787 2003-05-28 Jim Blandy <jimb@redhat.com>
788
789 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
790 argument to ptrace to int; the system headers should give it the
791 right type, and pointers don't fit in ints on powerpc64-*-*.
792
793 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
794
795 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
796 DW_TAG_catch_block.
797
798 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
799
800 * stabsread.c (dbx_lookup_type): Make static.
801 (read_type): Ditto.
802 (add_undefined_type): Ditto.
803 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
804 not export.
805
806 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
807
808 * hpread.c (hpread_has_name): Make static.
809 (hpread_psymtab_to_symtab): Ditto.
810 (file_exists): Ditto.
811 (hpread_call_pxdb): Ditto.
812 (hpread_pxdb_needed): Ditto.
813 (hpread_quick_traverse): Ditto.
814 (hpread_get_header): Ditto.
815 (hpread_get_lntt): Ditto.
816 (hpread_get_slt): Ditto.
817 (class_of): Ditto.
818
819 2003-05-25 Andreas Schwab <schwab@suse.de>
820
821 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
822 stack_align and deprecated_extra_stack_alignment_needed.
823 (m68k_stack_align): Delete.
824
825 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
826 (m68k_register_virtual_size): Likewise.
827 (altos_skip_prologue): Remove obsolete function.
828 (isi_frame_num_args): Likewise.
829 (news_frame_num_args): Likewise.
830 (m68k_fix_call_dummy): Make static.
831 (m68k_push_dummy_frame): Likewise.
832 (m68k_pop_frame): Likewise.
833 (m68k_skip_prologue): Likewise.
834 (m68k_frame_init_saved_regs): Likewise.
835 (m68k_saved_pc_after_call): Likewise.
836 (m68k_get_longjmp_target): Make multi-arch.
837 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
838 structure. Register m68k_get_longjmp_target if enabled.
839 * m68k-tdep.h (struct gdbarch_tdep): Define.
840 * config/m68k/tm-m68k.h: Don't include "regcache.h".
841
842 * Makefile.in (config.status): Also depend on configure.tgt
843 and configure.host.
844 (m68klinux-tdep.o): Update dependencies.
845 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
846 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
847 (M68K_LINUX_JB_PC): Define.
848 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
849 and take additional parameter.
850 (m68k_linux_sigtramp_saved_pc): Update.
851 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
852 m68k_linux_pc_in_sigtramp, in_plt_section,
853 find_solib_trampoline_target.
854 * config/m68k/tm-linux.h: Don't include any tm headers.
855 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
856 (JB_ELEMENT_SIZE): Likewise.
857 (JB_PC): Likewise.
858 (GET_LONGJMP_TARGET): Likewise.
859 (IN_SIGTRAMP): Likewise.
860 (SVR4_SHARED_LIBS): Define this and include "solib.h".
861
862 2003-05-25 Mark Kettenis <kettenis@gnu.org>
863
864 * sparc-tdep.c (sparc32_do_push_arguments): New function.
865 (sparc32_push_arguments): Re-implement by calling
866 sparc32_do_push_arguments.
867
868 2003-05-25 Mark Kettenis <kettenis@gnu.org>
869
870 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
871 SPARC_O1_REGNUM): New defines.
872 (sparc32_extract_return_value): Rewrite to operate on a regcache.
873 (sparc32_store_return_value): New function.
874 (sparc_extract_struct_value_address): Rewrite to operate on a
875 regcache.
876 (sparc_gdbarch_init): Don't set
877 deprecated_extract_struct_value_address. Set
878 extract_struct_value_address instead. Don't set
879 deprecated_extract_return_value and deprecated_store_return_value
880 for 32-bit targets. Set extract_return_value and
881 store_return_value instead.
882 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
883 DEPRECTAED_EXTRACT_RETURN_VALUE,
884 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
885 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
886 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
887 (sparc_store_return_value): Remove prototype.
888 (sparc32_store_return_value): New prototype.
889 (sparc32_extract_return_value, sparc_extract_struct_value_address):
890 Adjust prototypes.
891
892 2003-05-24 Mark Kettenis <kettenis@gnu.org>
893
894 * sparcnbsd-tdep.c: Include "gdb_string.h".
895
896 2003-05-23 Andrew Cagney <cagney@redhat.com>
897
898 * p-valprint.c (pascal_val_print): Replace extract_address with
899 the inline equivalent extract_unsigned_integer.
900 * jv-valprint.c (java_value_print): Ditto.
901 * ada-valprint.c (ada_val_print_1): Ditto.
902 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
903
904 2003-05-23 Theodore A. Roth <troth@openavr.org>
905
906 * blockframe.c (frameless_look_for_prologue): Remove unused
907 after_prologue variable.
908
909 2003-05-23 Mark Kettenis <kettenis@gnu.org>
910
911 * blockframe.c (get_pc_function_start): Rewrite to avoid
912 asignments in if-statements.
913
914 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
915
916 Committed by Elena Zannoni <ezannoni@redhat.com>.
917 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
918 files, don't relocate absolute symbols (and do use mst_abs).
919
920 2003-05-23 Andrew Cagney <cagney@redhat.com>
921
922 * objc-lang.c: Include "gdb_assert.h".
923 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
924 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
925 (gdb_check, gdb_check_fatal): Delete functions.
926 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
927 gdb_assert.
928 (parse_selector, parse_method, find_methods, find_imps): Ditto.
929 * Makefile.in (objc-lang.o): Update dependencies.
930
931 2003-05-22 Ian Lance Taylor <ian@airs.com>
932
933 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
934 with fprintf_filtered, not fprintf_unfiltered.
935
936 2003-05-22 Andrew Cagney <cagney@redhat.com>
937
938 * stack.c (frame_info): Inline extract_address, replacing it with
939 extract_unsigned_integer.
940 * findvar.c (unsigned_pointer_to_address): Ditto.
941 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
942 * dwarf2expr.c (dwarf2_read_address): Ditto.
943 * frame.c (frame_pc_unwind): Update comment.
944 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
945
946 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
947
948 * infptrace.c (detach): Call print_sys_errmsg rather than
949 perror_with_name to issue warning message when errno is non-zero
950 after calling ptrace detach.
951
952 2003-05-21 J. Brobecker <brobecker@gnat.com>
953
954 * config/pa/tm-hppa.h: Delete some unused macros. Move some
955 macro definitions from here...
956 * hppa-tdep.c: ...to there.
957
958 2003-05-20 Kevin Buettner <kevinb@redhat.com>
959
960 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
961 register_ptrace_addr(). Fix all callers.
962
963 2003-05-21 Andreas Schwab <schwab@suse.de>
964
965 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
966 dependencies.
967 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
968 end.
969 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
970 (_initialize_m68k_linux_tdep): New function.
971 (m68k_linux_frame_saved_pc): Make static.
972 (m68k_linux_extract_return_value): Likewise.
973 (m68k_linux_store_return_value): Likewise.
974 (m68k_linux_extract_struct_value_address): Likewise.
975 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
976 Remove.
977 (DEPRECATED_STORE_RETURN_VALUE): Remove.
978 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
979 (DEPRECATED_FRAME_SAVED_PC): Remove.
980
981 2003-05-20 Kris Warkentin <kewarken@qnx.com>
982
983 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
984 regset numbering rather than our own.
985
986 2003-05-19 David Carlton <carlton@bactrian.org>
987
988 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
989
990 2003-05-19 David Carlton <carlton@bactrian.org>
991
992 Partial fix for PR c++/827.
993 * cp-support.h: Include symtab.h.
994 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
995 * cp-namespace.c: Update contributors.
996 (cp_lookup_symbol_nonlocal): New.
997 (lookup_namespace_scope, cp_lookup_symbol_namespace)
998 (lookup_symbol_file): Ditto.
999 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
1000 * block.h: Declare block_scope, block_using, block_global_block.
1001 * block.c (block_scope): New.
1002 (block_using, block_global_block): Ditto.
1003 * Makefile.in (cp_support_h): Depend on symtab_h.
1004 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
1005
1006 2003-05-19 David Carlton <carlton@bactrian.org>
1007
1008 * language.h (struct language_defn): Add 'la_value_of_this'
1009 and 'la_lookup_symbol_nonlocal' members.
1010 * symtab.h: Declare basic_lookup_symbol_nonlocal,
1011 lookup_symbol_static, lookup_symbol_global,
1012 lookup_symbol_aux_block.
1013 * symtab.c (lookup_symbol_aux): Call language hooks to determine
1014 if we should search fields of this and how to do static/global
1015 lookup.
1016 (lookup_symbol_aux_block): Make extern.
1017 (basic_lookup_symbol_nonlocal): New.
1018 (lookup_symbol_static, lookup_symbol_global): Ditto.
1019 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
1020 'la_lookup_symbol_nonlocal' members.
1021 * c-lang.c (c_language_defn, cplus_language_defn)
1022 (asm_language_defn, minimal_language_defn): Ditto.
1023 * jv-lang.c (java_language_defn): Ditto.
1024 * language.c (unknown_language_defn, auto_language_defn)
1025 (local_language_defn): Ditto.
1026 * m2-lang.c (m2_language_defn): Ditto.
1027 * objc-lang.c (objc_language_defn): Ditto.
1028 * scm-lang.c (scm_language_defn): Ditto.
1029 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
1030 * p-lang.c (pascal_language_defn): Ditto for both.
1031 * Makefile.in (f-lang.o): Depend on value_h.
1032 (p-lang.o): Ditto.
1033
1034 2003-05-19 David Carlton <carlton@bactrian.org>
1035
1036 * block.h: Declare block_static_block.
1037 * block.c (block_static_block): New.
1038 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
1039 lookup_symbol_aux_local, calling block_static_block instead.
1040 (lookup_symbol_aux_local): Delete 'static_block' argument.
1041
1042 2003-05-19 David Carlton <carlton@bactrian.org>
1043
1044 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
1045
1046 2003-05-19 Michal Ludvig <mludvig@suse.cz>
1047
1048 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
1049 register numbers mapping.
1050
1051 2003-05-18 Adam Fedor <fedor@gnu.org>
1052
1053 * symtab.c (completion_list_objc_symbol): New function.
1054 (make_symbol_completion_list): Use it to add ObjC symbols
1055 when looking though the list.
1056 (language_search_unquoted_string): New function.
1057 (make_file_symbol_completion_list): Use it.
1058
1059 2003-05-18 Andreas Schwab <schwab@suse.de>
1060
1061 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
1062 dependencies.
1063 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
1064 as m68k_linux_extract_return_value.
1065 (DEPRECATED_STORE_RETURN_VALUE): Define as
1066 m68k_linux_store_return_value.
1067 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
1068 m68k_linux_extract_struct_value_address.
1069 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
1070 get_next_frame, get_frame_base, get_frame_pc.
1071 (m68k_linux_frame_saved_pc): Use get_frame_base.
1072 (m68k_linux_extract_return_value): New function.
1073 (m68k_linux_store_return_value): New function.
1074 (m68k_linux_extract_struct_value_address): New function.
1075 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
1076
1077 * c-exp.y (typebase): Remove duplicate occurence of
1078 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
1079 of lookup_signed_typename.
1080
1081 2003-05-18 Mark Kettenis <kettenis@gnu.org>
1082
1083 * dwarf2loc.c (find_location_expression): Change type of second
1084 argument to `size_t *'.
1085 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
1086 for size variable.
1087
1088 2003-05-18 David Carlton <carlton@bactrian.org>
1089
1090 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
1091 'linkage_name'. Add comment.
1092 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
1093 'linkage_name'.
1094 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
1095 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
1096 (lookup_block_symbol): Ditto.
1097
1098 2003-05-16 Andrew Cagney <cagney@redhat.com>
1099
1100 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
1101 * gdbarch.h, gdbarch.c: Re-generate.
1102 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
1103 * TODO (REGISTER_BYTES): Delete reference.
1104 * alpha-tdep.c (alpha_gdbarch_init): Update.
1105 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1106 * x86-64-tdep.c (x86_64_init_abi): Update.
1107 * vax-tdep.c (vax_gdbarch_init): Update.
1108 * v850-tdep.c (v850_gdbarch_init): Update.
1109 * sparc-tdep.c (sparc_gdbarch_init): Update.
1110 * sh-tdep.c (sh_gdbarch_init): Update.
1111 * s390-tdep.c (s390_gdbarch_init): Update.
1112 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1113 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
1114 (ns32k_gdbarch_init_32382): Update.
1115 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1116 * mcore-tdep.c (mcore_gdbarch_init): Update.
1117 * m68k-tdep.c (m68k_gdbarch_init): Update.
1118 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1119 * ia64-tdep.c (ia64_gdbarch_init): Update.
1120 * i386-tdep.c (i386_gdbarch_init): Update.
1121 * i386-linux-tdep.c (i386_linux_init_abi): Update.
1122 * hppa-tdep.c (hppa_gdbarch_init): Update.
1123 * h8300-tdep.c (h8300_gdbarch_init): Update.
1124 * frv-tdep.c (frv_gdbarch_init): Update.
1125 * cris-tdep.c (cris_gdbarch_init): Update.
1126 * avr-tdep.c (avr_gdbarch_init): Update.
1127 * arm-tdep.c (arm_gdbarch_init): Update.
1128 * sparc-tdep.c (sparc_pop_frame): Update.
1129 * rs6000-tdep.c (rs6000_pop_frame): Update.
1130 * remote.c (init_remote_state): Update.
1131 (remote_prepare_to_store): Update.
1132 * remote-vx.c (vx_prepare_to_store): Update.
1133 * remote-sds.c (sds_fetch_registers): Update.
1134 (sds_prepare_to_store): Update.
1135 * remote-array.c: Update.
1136 * regcache.c (init_legacy_regcache_descr): Update.
1137 (init_regcache_descr): Update.
1138 * mips-tdep.c (mips_eabi_extract_return_value): Update.
1139 (mips_o64_extract_return_value): Update.
1140 * irix5-nat.c (fetch_core_registers): Update.
1141 * irix4-nat.c (fetch_core_registers): Update.
1142 * i386-tdep.h: Update.
1143 * hppa-tdep.c (pa_do_registers_info): Update.
1144 (pa_do_strcat_registers_info): Update.
1145 * cris-tdep.c (cris_register_bytes_ok): Update.
1146 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
1147 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
1148 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
1149 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
1150 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
1151 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
1152 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
1153 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
1154 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
1155 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
1156 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
1157 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
1158 (REGISTER_BYTES_OK): Update.
1159 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
1160 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
1161
1162 2003-05-16 Ian Lance Taylor <ian@airs.com>
1163
1164 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
1165 (vax_print_insn, print_insn_arg): Remove static functions.
1166 (vax_gdbarch_init): Call set_gdbarch_print_insn with
1167 print_insn_vax from opcodes library.
1168 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
1169
1170 2003-05-15 Andrew Cagney <cagney@redhat.com>
1171
1172 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
1173 * target.h (memory_breakpoint_from_pc): Delete declaration.
1174 * mem-break.c (memory_breakpoint_from_pc): Delete function.
1175 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
1176 * monitor.c (monitor_insert_breakpoint): Use
1177 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
1178 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
1179 * gdbarch.h, gdbarch.c: Re-generate.
1180 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
1181 (sparc_gdbarch_init): Set breakpoint_from_pc to
1182 sparc_breakpoint_from_pc.
1183 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
1184 (BREAKPOINT_FROM_PC): Define.
1185 (sparc_breakpoint_from_pc): Declare.
1186 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
1187 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
1188 (BREAKPOINT_FROM_PC): Define.
1189 (BREAKPOINT): Delete macro.
1190 * target.h: Update comment.
1191 * s390-tdep.c (s390_gdbarch_init): Update comments.
1192 * remote.c: Update comments.
1193 * remote-mips.c: Update comments.
1194 * proc-api.c (write_with_trace): Do not check for a breakpoint.
1195 * mem-break.c: Update comment.
1196 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
1197 (ia64_memory_insert_breakpoint): Update.
1198 * config/sparc/tm-sparc.h: Update comment.
1199 * config/pa/tm-hppa64.h: Update comment.
1200 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
1201 (rs6000_breakpoint_from_pc): Update.
1202 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
1203 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
1204 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
1205 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
1206 (mips_breakpoint_from_pc): Update.
1207 (mips_dump_tdep): Update.
1208
1209 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
1210 * minsyms.c (lookup_minimal_symbol): Inline
1211 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
1212
1213 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
1214 * p-valprint.c (pascal_object_print_value_fields): Ditto.
1215 * p-lang.c (pascal_printstr): Ditto.
1216 * objc-lang.c (objc_printstr): Ditto.
1217 * m2-lang.c (m2_printstr): Ditto.
1218 * jv-valprint.c (java_print_value_fields): Ditto.
1219 * f-lang.c (f_printstr): Ditto.
1220 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
1221 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
1222 for repeat_count_threshold.
1223 * Makefile.in (cp-valprint.o): Update dependencies.
1224
1225 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
1226
1227 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
1228 (examine_prologue): Support looking through leaf functions, knowing
1229 they start with mov r2,r12. Support skipping over indirect stores
1230 of the input registers. Upon hitting a non-nop branch instruction
1231 or predicated instruction, bail out by setting lim_pc to the current
1232 pc value in the loop. At the end, if the lim_pc value is still
1233 beyond our calculated value and we have trust_limit set,
1234 use the lim_pc value.
1235
1236 2003-05-15 Andrew Cagney <cagney@redhat.com>
1237
1238 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
1239 generic_find_dummy_frame.
1240 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
1241 (deprecated_generic_find_dummy_frame): Update.
1242 (deprecated_read_register_dummy): Update.
1243 * frame.c (deprecated_generic_get_saved_register): Update.
1244
1245 2003-05-15 Theodore A. Roth <troth@openavr.org>
1246
1247 * avr-tdep.c (avr_breakpoint_from_pc): New function.
1248 (avr_gdbarch_init): Set breakpoint_from_pc method.
1249
1250 2003-05-15 Andrew Cagney <cagney@redhat.com>
1251
1252 * regcache.c (build_regcache): Set deprecated_register_valid
1253 directly.
1254 (deprecated_grub_regcache_for_register_valid): Delete function.
1255 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
1256 declaration.
1257
1258 2003-05-15 David Carlton <carlton@bactrian.org>
1259
1260 Committed by Elena Zannoni <ezannoni@redhat.com>
1261 * symtab.c (lookup_symbol_aux): Delete calls to
1262 lookup_symbol_aux_minsyms.
1263 (lookup_symbol_aux_minsyms): Comment out function and
1264 prototype. Delete lookup by mangled name.
1265
1266 2003-05-14 Kevin Buettner <kevinb@redhat.com>
1267
1268 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
1269 correctly indicate an empty stack and ``stack_allocated'' to the
1270 indicate the number of elements initially allocated.
1271 (dwarf_expr_grow_stack): Simplify method for computing new
1272 stack size. Don't loop infinitely if ``stack_len'' is zero.
1273 (execute_stack_op): Move ``ctx->in_reg'' initialization
1274 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
1275 be used in conjuction with DW_OP_piece. Revise error message
1276 accordingly.
1277
1278 2003-05-14 Theodore A. Roth <troth@openavr.org>
1279
1280 * MAINTAINERS: Update my email address.
1281 * avr-tdep.c: Ditto.
1282
1283 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
1284
1285 * symtab.h (enum domain_enum): Rename from namespace_enum.
1286 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
1287 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
1288 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
1289 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
1290 TYPES_NAMESPACE, METHODS_NAMESPACE.
1291 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
1292 (struct symbol, struct partial_symbol): Rename field
1293 'namespace_enum namespace' to 'domain_enum domain'.
1294 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
1295 Delete old define kludge for namespace.
1296
1297 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
1298 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
1299 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
1300 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
1301 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
1302 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
1303 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
1304 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
1305 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
1306 occurrences of the above.
1307
1308 2003-05-14 Ian Lance Taylor <ian@airs.com>
1309
1310 * Makefile.in (install-only): Use $(SHELL) when running
1311 mkinstalldirs.
1312
1313 2003-05-13 Ian Lance Taylor <ian@airs.com>
1314
1315 * MAINTAINERS (write after approval): Add myself.
1316
1317 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
1318 second and third arguments.
1319 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1320 * ser-unix.c (_initialize_ser_hardwire): Likewise.
1321
1322 2003-05-13 Andrew Cagney <cagney@redhat.com>
1323
1324 * defs.h (store_address): Delete declaration.
1325 findvar.c (store_address): Delete function.
1326 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
1327 store_unsigned_integer.
1328 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
1329 * v850-tdep.c (v850_push_arguments): Ditto.
1330 * sparc-tdep.c (sparc_get_saved_register): Ditto.
1331 * sh-tdep.c (sh64_get_saved_register): Ditto.
1332 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
1333 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
1334 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
1335 (mips_get_saved_register): Ditto.
1336 * ia64-tdep.c (ia64_get_saved_register): Ditto.
1337 (find_func_descr, ia64_push_arguments): Ditto.
1338 * i386-tdep.c (i386_push_arguments): Ditto.
1339 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
1340 * frv-tdep.c (frv_push_arguments): Ditto.
1341 * frame.c (legacy_saved_regs_prev_register): Ditto.
1342 (deprecated_generic_get_saved_register): Ditto.
1343 * findvar.c (unsigned_address_to_pointer): Ditto.
1344 * dwarf2read.c (dwarf2_const_value): Ditto.
1345 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
1346 * alpha-tdep.c (alpha_push_arguments): Ditto.
1347
1348 2003-05-12 J. Brobecker <brobecker@gnat.com>
1349
1350 * NEWS: Mention that the hppa-hpux port has been partially
1351 multiarched (32bit ABIT only, so far).
1352
1353 2003-05-11 Andrew Cagney <cagney@redhat.com>
1354
1355 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
1356 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
1357 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
1358 sim/testsuite/sim/arm/misaligned2.ms, and
1359 sim/testsuite/sim/arm/misaligned3.ms.
1360 * disasm.h (struct ui_file): Add opaque struct declaration.
1361 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
1362 * frame.h (struct ui_file): Ditto.
1363
1364 2003-05-11 Mark Kettenis <kettenis@gnu.org>
1365
1366 * value.h: Pretty print.
1367
1368 2003-05-10 Mark Kettenis <kettenis@gnu.org>
1369
1370 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
1371
1372 2003-05-08 Andrew Cagney <cagney@redhat.com>
1373
1374 * regcache.h (max_register_size): Delete declaration.
1375 * regcache.c (max_register_size): Delete function.
1376 (struct regcache_descr): Delete field "max_register_size".
1377 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
1378 registers fit in MAX_REGISTER_SIZE.
1379 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
1380 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
1381 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
1382 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
1383 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
1384 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
1385 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
1386 * dve3900-rom.c, hppa-tdep.c: Ditto.
1387
1388 2003-05-08 David Carlton <carlton@math.stanford.edu>
1389
1390 * valops.c (push_word): Fix typo.
1391
1392 2003-05-08 Andrew Cagney <cagney@redhat.com>
1393
1394 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
1395 * gdbarch.h: Re-generate.
1396 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
1397 (legacy_max_register_raw_size): Delete declaration.
1398 * regcache.c (legacy_max_register_raw_size): Delete function.
1399 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
1400 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
1401 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
1402 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
1403 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
1404 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
1405 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
1406 * findvar.c, dwarf2cfi.c: Ditto.
1407
1408 2003-05-08 Andrew Cagney <cagney@redhat.com>
1409
1410 * mips-tdep.c (read_signed_register): New function, moved to here
1411 from "regcache.c".
1412 (read_signed_register_pid): Ditto.
1413 * regcache.c (read_signed_register_pid): Delete function, moved to
1414 "mips-tdep.c".
1415 (read_signed_register): Ditto.
1416 * regcache.h (read_signed_register): Delete declaration.
1417 (read_signed_register_pid): Delete declaration.
1418
1419 2003-05-08 Andrew Cagney <cagney@redhat.com>
1420
1421 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
1422 * gdbarch.h: Re-generate.
1423 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
1424 (legacy_max_register_virtual_size): Delete declaration.
1425 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
1426 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1427 * tracepoint.c (memrange_sortmerge): Ditto.
1428 * sparc-tdep.c (sparc_print_registers): Ditto.
1429 * regcache.c (legacy_max_register_virtual_size): Delete function.
1430
1431 2002-05-08 J. Brobecker <brobecker@gnat.com>
1432
1433 * fork-child.c (escape_bang_in_quoted_argument): New function.
1434 (fork_inferior): Escape '!' characters in quoted arguments
1435 only when needed.
1436
1437 2003-05-08 J. Brobecker <brobecker@gnat.com>
1438
1439 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
1440 the language of the CU is not currently supported by GDB.
1441
1442 2003-05-08 J. Brobecker <brobecker@gnat.com>
1443
1444 * defs.h (language): Add language_minimal enum value.
1445 * c-lang.c (minimal_language_defn): New language definition.
1446 (_initialize_c_language): Add the new minimal language to the list
1447 of languages known to GDB.
1448
1449 2003-05-08 Kevin Buettner <kevinb@redhat.com>
1450
1451 * frame.c (get_frame_type): Don't attempt to lazily initialize
1452 frame's unwinder for legacy frames.
1453
1454 2003-05-07 Andrew Cagney <cagney@redhat.com>
1455
1456 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
1457 and "regcache" parameters.
1458 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
1459
1460 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
1461
1462 * dwarf2read.c (dwarf_decode_lines): Only use output of
1463 check_cu_functions() when calling record_line(). Do not update
1464 the current address.
1465
1466 2003-05-07 Andrew Cagney <cagney@redhat.com>
1467
1468 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
1469 code.
1470
1471 2003-05-07 Jim Blandy <jimb@redhat.com>
1472
1473 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
1474 'maint info symtabs' and 'maint info psymtabs'.
1475 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
1476 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
1477 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
1478 Declarations updated.
1479 * maint.c (maintenance_list_command): Delete.
1480 (_initialize_maint_cmds): Update calls to add_cmd.
1481 * gdbcmd.h (maintenancelistlist): Delete declaration.
1482 * cli/cli-cmds.c (maintenancelistlist): Delete.
1483 (init_cmd_lists): Don't initialize it.
1484 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
1485
1486 2003-05-07 Andrew Cagney <cagney@redhat.com>
1487
1488 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
1489 "regcache".
1490 (d10v_print_registers_info): Update.
1491 (d10v_dmap_register, d10v_imap_register): Delete functions.
1492 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
1493 and "imap_register".
1494 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
1495 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
1496 * arch-utils.c (generic_remote_translate_xfer_address): Add
1497 "regcache" and "gdbarch" parameters.
1498 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
1499 parameter. Change class to multi-arch.
1500 * gdbarch.h, gdbarch.c: Re-generate.
1501 * remote.c (remote_xfer_memory): Use
1502 gdbarch_remote_translate_xfer_address.
1503
1504 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
1505
1506 * infrun.c (prev_pc): Move declaration ahead of proceed().
1507 (proceed): Refresh prev_pc value before resuming.
1508 (stop_stepping): Remove code to refresh prev_pc.
1509
1510 2003-05-06 Kris Warkentin <kewarken@qnx.com>
1511
1512 * nto-tdep.c: Removed stray comment.
1513
1514 2003-05-06 Kris Warkentin <kewarken@qnx.com>
1515
1516 * i386-nto-tdep.c: Fix old K&R function definitions.
1517 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
1518 Also change add_show_from_set() call to add_setshow_cmd().
1519 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
1520
1521 2003-05-05 Andrew Cagney <cagney@redhat.com>
1522
1523 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
1524 (fprint_dummy_frames): New function.
1525 (maintenance_print_dummy_frames): New function.
1526 (_initialize_dummy_frame): Add command "maint print dummy-frames".
1527 * frame.c (fprint_frame_id): Make global.
1528 * frame.h (fprint_frame_id): Declare.
1529 * Makefile.in (dummy-frame.o): Update dependencies.
1530
1531 2003-05-05 Andrew Cagney <cagney@redhat.com>
1532
1533 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
1534 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
1535 SIZEOF_CALL_DUMMY_WORDS.
1536 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
1537 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
1538 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
1539 CALL_DUMMY_BREAKPOINT_OFFSET.
1540 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
1541 CALL_DUMMY_START_OFFSET.
1542 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
1543 * gdbarch.h, gdbarch.c: Re-generate.
1544 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
1545 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
1546 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
1547 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
1548 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
1549 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
1550 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
1551 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
1552 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
1553 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
1554 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
1555 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
1556 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
1557 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
1558 * config/sparc/tm-sparc.h: Update.
1559
1560 2003-05-05 Kris Warkentin <kewarken@qnx.com>
1561
1562 * configure.tgt: Add i[3456]86-*-nto*.
1563 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
1564 * nto-tdep.c: New file. Neutrino target support routines.
1565 * nto-tdep.h: New file. Neutrino target header.
1566 * config/tm-qnxnto.h: New file.
1567 * config/i386/i386nto.mt: New file.
1568 * config/i386/tm-i386nto.h: New file.
1569
1570 2003-05-04 Andrew Cagney <cagney@redhat.com>
1571
1572 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
1573 (load_infrun_state): Ditto.
1574 (struct thread_info): Drop "prev_func_name" field.
1575 * thread.c (load_infrun_state): Update.
1576 (save_infrun_state): Update.
1577 * infrun.c (prev_func_name): Delete variable.
1578 (init_wait_for_inferior): Do not clear prev_func_name.
1579 (stop_stepping, keep_going, context_switch): Do not swap
1580 prev_func_name.
1581 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
1582 instead of PC_IN_SIGTRAMP.
1583
1584 2003-05-04 Andrew Cagney <cagney@redhat.com>
1585
1586 * sentinel-frame.c (sentinel_frame_prev_register): Replace
1587 REGISTER_BYTE with register_offset_hack.
1588 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
1589 that REGISTER_BYTE is consistent with the regcache.
1590 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
1591 * gdbarch.h, gdbarch.c: Regenerate.
1592
1593 2003-05-04 Mark Kettenis <kettenis@gnu.org>
1594
1595 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
1596 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
1597
1598 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
1599
1600 2003-05-03 J. Brobecker <brobecker@gnat.com>
1601
1602 From Thierry Schneider <tpschneider1@yahoo.com>
1603 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
1604 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
1605 (mi-cmd-symbol.o): Add rule.
1606
1607 2003-05-03 Andrew Cagney <cagney@redhat.com>
1608
1609 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
1610 comments noteing that it replaces the old FIX_CALL_DUMMY code.
1611 * gdbarch.h, gdbarch.c: Re-generate.
1612 * d10v-tdep.c (d10v_push_dummy_code): New function.
1613 (d10v_gdbarch_init): Set push_dummy_code.
1614 * infcall.c (legacy_push_dummy_code): New function.
1615 (generic_push_dummy_code): New function.
1616 (push_dummy_code): New function.
1617 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
1618 instead of dummy_addr, to push_dummy_call. Move call to
1619 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
1620 switch.
1621 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
1622
1623 2003-05-03 Andrew Cagney <cagney@redhat.com>
1624
1625 * disasm.h (print_insn): Declare.
1626 * disasm.c (init_gdb_disassemble_info): New function.
1627 (gdb_disassembly): Call init_gdb_disassemble_info.
1628 (gdb_print_insn): New function.
1629 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
1630 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
1631 * mcore-tdep.c: Include "disasm.h"
1632 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
1633 * d10v-tdep.c: Include "disasm.h".
1634 (display_trace): Call gdb_print_insn, instead of print_insn.
1635 (print_insn): Delete function.
1636 * printcmd.c: Include "disasm.h".
1637 (print_insn): Delete function.
1638 (print_formatted): Call gdb_print_insn, instead of print_insn.
1639 * Makefile.in (printcmd.o): Update dependencies.
1640 (mcore-tdep.o, d10v-tdep.o): Ditto.
1641
1642 2003-05-02 Andrew Cagney <cagney@redhat.com>
1643
1644 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
1645 PC_REGNUM, re-indent.
1646 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
1647 PC_REGNUM isn't set.
1648
1649 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
1650 * gdbarch.h, gdbarch.c: Re-generate.
1651 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
1652 register_virtual_size, pc_regnum, or register_bytes.
1653 (D10V_PC_REGNUM): Rename _PC_REGNUM.
1654 (d10v_register_type): Use D10V_PC_REGNUM.
1655 (d10v_print_registers_info, d10v_read_pc): Ditto.
1656 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
1657 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
1658
1659 2003-05-02 David Carlton <carlton@bactrian.org>
1660
1661 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
1662 the name with mstrsave.
1663
1664 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
1665
1666 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
1667 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
1668 (host_charset_name, target_charset_name): New vars for use by
1669 set/show commands.
1670 (host_charset_enum, target_charset_enum): New enums for set/show
1671 commands.
1672 (set_charset_sfunc, set_host_charset_sfunc,
1673 set_target_charset_sfunc): New functions.
1674 (set_host_charset, set_target_charset): Make static.
1675 (list_charsets, set_host_charset_command,
1676 set_target_charset_command): Delete functions.
1677 (show_charset_command): Rewrite as....
1678 (show_charset): Hook this up with the set/show command mechanism.
1679 (_initialize_charset): Change names of charsets to match the
1680 set/show enums. Use host_charset_name and target_charset_name.
1681 Use set/show mechanism for charset, host-charset, target-charset
1682 commands. Do not make 'show host-charset' and 'show
1683 target-charset' be aliases of 'show charset'.
1684
1685 * charset.h (set_host_charset, set_target_charset): Don't export,
1686 they are not used outside the file.
1687
1688 2003-05-01 Andrew Cagney <cagney@redhat.com>
1689
1690 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
1691 (gdb_disassembly): Make "di" non static, always initialize and
1692 cleanup. Always use dis_asm_read_memory.
1693 (gdb_dis_asm_read_memory): Delete function.
1694
1695 2003-05-01 Andrew Cagney <cagney@redhat.com>
1696
1697 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
1698 (d10v_gdbarch_init): Set frame_align instead of stack_align.
1699
1700 2003-04-30 Andrew Cagney <cagney@redhat.com>
1701
1702 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
1703 "tm_print_insn_info".
1704 (TARGET_PRINT_INSN_INFO): Delete macro.
1705 (dis_asm_read_memory): Delete function declaration.
1706 (dis_asm_memory_error, dis_asm_print_address): Ditto.
1707 (tm_print_insn_info): Delete variable definition.
1708 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
1709 * gdbarch.h, gdbarch.c: Re-generate.
1710 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
1711 "deprecated_tm_print_insn_info".
1712 * mcore-tdep.c (mcore_dump_insn): Ditto.
1713 * mips-tdep.c (mips_gdbarch_init): Ditto.
1714 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
1715 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
1716 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
1717 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
1718 instead of TARGET_PRINT_INSN_INFO, add comment.
1719 * s390-tdep.c (s390_get_frame_info): Instead of
1720 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
1721 (s390_check_function_end, s390_is_sigreturn): Ditto.
1722 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
1723 (dis_asm_memory_error, dis_asm_print_address): Ditto.
1724 * disasm.c: Include "gdbcore.h".
1725 (_initialize_disasm): New function, initialize
1726 "deprecated_tm_print_insn_info".
1727 (deprecated_tm_print_insn_info): New variable.
1728 (dis_asm_read_memory): Moved from "corefile.c", made static.
1729 (dis_asm_print_address, dis_asm_memory_error): Ditto.
1730 * Makefile.in (disasm.o): Update dependencies.
1731
1732 2003-04-30 Andrew Cagney <cagney@redhat.com>
1733
1734 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
1735
1736 2003-04-29 Adam Fedor <fedor@gnu.org>
1737
1738 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
1739 * infcall.c (find_function_addr): Make non-static.
1740 * infcall.h (find_function_addr): Declare.
1741 * Makefile.in (eval.o): Update dependencies.
1742
1743 2003-04-28 Adam Fedor <fedor@gnu.org>
1744
1745 * symtab.c (symbol_find_demangled_name): Check for and demangle
1746 ObjC symbols.
1747 (symbol_init_demangled_name): Init for language_objc as well.
1748
1749 2003-04-28 Andrew Cagney <cagney@redhat.com>
1750
1751 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
1752 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
1753 * gdbarch.h, gdbarch.c: Re-generate.
1754 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
1755 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
1756 * inferior.h (deprecated_read_fp): Rename read_fp.
1757 (generic_target_read_fp): Delete declaration.
1758 * regcache.c (generic_target_read_fp): Delete function.
1759 (deprecated_read_fp): Replace read_fp, use
1760 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
1761 * d10v-tdep.c (d10v_read_fp): Delete function.
1762 (d10v_gdbarch_init): Do not set deprecated_read_fp.
1763
1764 * sparc-tdep.c (sparc_gdbarch_init): Do not set
1765 deprecated_target_read_fp to generic_target_read_fp.
1766 * sh-tdep.c (sh_gdbarch_init): Ditto.
1767 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1768 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1769 * frv-tdep.c (frv_gdbarch_init): Ditto.
1770
1771 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
1772 deprecated_fp_regnum.
1773 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1774 * vax-tdep.c (vax_gdbarch_init): Ditto.
1775 * v850-tdep.c (v850_gdbarch_init): Ditto.
1776 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1777 * sh-tdep.c (sh_gdbarch_init): Ditto.
1778 * s390-tdep.c (s390_gdbarch_init): Ditto.
1779 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1780 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1781 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1782 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
1783 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1784 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1785 * i386-tdep.c (i386_gdbarch_init): Ditto.
1786 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1787 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1788 * frv-tdep.c (frv_gdbarch_init): Ditto.
1789 * cris-tdep.c (cris_gdbarch_init): Ditto.
1790 * avr-tdep.c (avr_gdbarch_init): Ditto.
1791 * arm-tdep.c (arm_gdbarch_init): Ditto.
1792 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1793
1794 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
1795 * v850-tdep.c (v850_gdbarch_init): Ditto.
1796 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1797 * sh-tdep.c (sh_gdbarch_init): Ditto.
1798 * s390-tdep.c (s390_gdbarch_init): Ditto.
1799 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1800 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1801 * mips-tdep.c (mips_gdbarch_init): Ditto.
1802 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1803 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1804 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1805 * frv-tdep.c (frv_gdbarch_init): Ditto.
1806 * avr-tdep.c (avr_gdbarch_init): Ditto.
1807 * arm-tdep.c (arm_gdbarch_init): Ditto.
1808
1809 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
1810 DEPRECATED_FP_REGNUM.
1811 (vax_push_dummy_frame, vax_pop_frame): Ditto.
1812 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
1813 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
1814 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
1815 (sparc32_register_virtual_type): Ditto.
1816 * sh-tdep.c (sh64_frame_chain): Ditto.
1817 (sh64_get_saved_register, sh64_pop_frame): Ditto.
1818 (sh_nofp_frame_init_saved_regs): Ditto.
1819 (sh64_nofp_frame_init_saved_regs): Ditto.
1820 (sh_fp_frame_init_saved_regs): Ditto.
1821 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1822 * remote-e7000.c (fetch_regs_from_dump): Ditto.
1823 * procfs.c (procfs_fetch_registers): Ditto.
1824 (procfs_store_registers): Ditto.
1825 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
1826 (store_inferior_registers, fetch_core_registers): Ditto.
1827 (fetch_kcore_registers, clear_regs): Ditto.
1828 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
1829 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
1830 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
1831 * nlm/i386.c (do_status): Ditto.
1832 * mipsv4-nat.c (supply_gregset): Ditto.
1833 * mips-tdep.c: Ditto for comments.
1834 * mips-nat.c (fetch_inferior_registers): Ditto.
1835 (store_inferior_registers, fetch_core_registers): Ditto.
1836 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
1837 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
1838 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
1839 (i386_do_pop_frame, i386_register_type): Ditto.
1840 * hppa-tdep.c (hppa_frame_chain): Ditto.
1841 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
1842 (hppa_pop_frame, hppa_read_fp): Ditto.
1843 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
1844 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
1845 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
1846 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
1847 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
1848 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
1849 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
1850 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
1851 * blockframe.c: Ditto for comments.
1852 * arch-utils.h: Ditto for comments.
1853 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
1854 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
1855 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
1856 * alpha-tdep.h: Ditto for comments.
1857 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
1858 (alpha_cannot_store_register): Ditto.
1859 (alpha_push_dummy_frame): Ditto.
1860 * alpha-nat.c (supply_gregset): Ditto.
1861
1862 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
1863 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
1864 * config/sparc/tm-sparc.h: Update comment.
1865
1866 * hppa-tdep.c (hppa_init_extra_frame_info): Use
1867 deprecated_read_fp instead of TARGET_READ_FP.
1868 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
1869 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
1870 * sparc-tdep.c (sparc_init_extra_frame_info): Use
1871 deprecated_read_fp instead of read_fp.
1872 * s390-tdep.c (s390_push_arguments): Ditto.
1873 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1874 * frame.h: Ditto in comments.
1875 * frame.c (legacy_get_prev_frame): Ditto.
1876 * dummy-frame.c (dummy_frame_this_id): Ditto.
1877 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
1878
1879 2003-04-28 Andrew Cagney <cagney@redhat.com>
1880
1881 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
1882 * gdbarch.h, gdbarch.c: Re-generate.
1883 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
1884 * vax-tdep.c (_initialize_vax_tdep): Update.
1885 * v850-tdep.c (_initialize_v850_tdep): Update.
1886 * sparc-tdep.c (_initialize_sparc_tdep): Update.
1887 * s390-tdep.c (_initialize_s390_tdep): Update.
1888 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
1889 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
1890 * mips-tdep.c (_initialize_mips_tdep): Update.
1891 * mcore-tdep.c (_initialize_mcore_tdep): Update.
1892 * m68k-tdep.c (_initialize_m68k_tdep): Update.
1893 * ia64-tdep.c (_initialize_ia64_tdep): Update.
1894 * hppa-tdep.c (_initialize_hppa_tdep): Update.
1895 * h8300-tdep.c (_initialize_h8300_tdep): Update.
1896 * frv-tdep.c (_initialize_frv_tdep): Update.
1897 * cris-tdep.c (cris_delayed_get_disassembler): Update.
1898 (_initialize_cris_tdep): Update.
1899 * arch-utils.c (legacy_print_insn): Update.
1900 * alpha-tdep.c (_initialize_alpha_tdep): Update.
1901
1902 2003-04-26 Adam Fedor <fedor@gnu.org>
1903
1904 * linespec.c (decode_objc): New function to decode ObjC calls
1905 (decode_line_1): Check for ObjC calls (using decode_objc)
1906 * Makefile (linespec.o): Update dependencies.
1907
1908 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
1909
1910 * breakpoint.h (struct breakpoint_ops): New.
1911 (struct breakpoint): Add ops member.
1912
1913 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
1914 (mention): Use new breakpoint ops member.
1915 (set_raw_breakpoint): Initialize ops field to NULL.
1916 (print_exception_catchpoint, print_one_exception_catchpoint)
1917 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
1918 (gnu_v3_exception_catchpoint_ops): New.
1919 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
1920
1921 2003-04-25 Adam Fedor <fedor@gnu.org>
1922
1923 * Makefile.in (COMMON_OBS): Add objc-lang.o
1924
1925 2003-04-25 Andrew Cagney <cagney@redhat.com>
1926
1927 * d10v-tdep.c (print_insn): Delete function.
1928 (display_trace): Use TARGET_PRINT_INSN.
1929 (_initialize_d10v_tdep): Do not set tm_print_insn.
1930 (d10v_gdbarch_init): Set print_insn.
1931
1932 2003-04-25 Andrew Cagney <cagney@redhat.com>
1933
1934 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
1935 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
1936 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
1937 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
1938 (nr_dmap_regs, a0_regnum): ... new functions.
1939 (d10v_print_registers_info): Use a0_regnum, use register_size.
1940 (d10v_register_byte): Delete function.
1941 (d10v_register_raw_size): Delete function.
1942 (d10v_register_type): Use a0_regnum.
1943 (d10v_print_registers_info): Use a0_regnum.
1944 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
1945 (d10v_gdbarch_init): Do not set register_byte or
1946 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
1947 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
1948 extract_address.
1949 (trace_command): Use XCALLOC.
1950 (print_insn): Delete reference to tm_print_insn.
1951 (saved_regs_unwinder): Use store_unsigned_integer instead of
1952 store_address.
1953 * frame.h (FRAME_OBSTACK_CALLOC): Define
1954
1955 2003-04-25 David Carlton <carlton@bactrian.org>
1956
1957 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
1958
1959 2003-04-24 Adam Fedor <fedor@gnu.org>
1960
1961 * objc-lang.c: Include "valprint.h"
1962 * Makefile.in (objc-lang.o): Update dependencies.
1963
1964 2003-04-24 Adam Fedor <fedor@gnu.org>
1965
1966 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
1967 architecture dependant compilation and mark as unimplemented
1968 (until they get put in the gdbarch vector).
1969
1970 2003-04-23 David Carlton <carlton@bactrian.org>
1971
1972 * cp-support.c (cp_find_first_component): Accept 'operator' in
1973 more locations.
1974
1975 2003-04-23 Andrew Cagney <cagney@redhat.com>
1976
1977 * infcall.c (call_function_by_hand): Eliminate redundant
1978 indentation. Move "saved_async" and "old_cleanups" to where they
1979 are needed.
1980
1981 2003-04-23 Andrew Cagney <cagney@redhat.com>
1982
1983 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
1984 and "buffer". Move the "name" code to where it is needed.
1985
1986 2003-04-23 Andrew Cagney <cagney@redhat.com>
1987
1988 * infcall.c (call_function_by_hand): Move variables "start_sp",
1989 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
1990 code to ON_STACK switch branch.
1991
1992 2003-04-23 Andrew Cagney <cagney@redhat.com>
1993
1994 * infcall.c (call_function_by_hand): Make declaration of "i",
1995 "sal", "bpt" and "old_sp" more local to their use. Delete #if
1996 lint.
1997
1998 2003-04-23 Andrew Cagney <cagney@redhat.com>
1999
2000 * infcall.c (call_function_by_hand): Delete variable
2001 "n_method_args". Localize "param_type"'s declaration to the loop
2002 that it is used. Reinstate code assigning to said variable -
2003 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
2004 Rationalize code using "param_type".
2005
2006 2003-04-22 Andrew Cagney <cagney@redhat.com>
2007
2008 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
2009 compute the breakpoint address. Only call FIX_CALL_DUMMY when
2010 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
2011 to DEPRECATED_PUSH_RETURN_ADDRESS.
2012
2013 2003-04-22 Kevin Buettner <kevinb@redhat.com>
2014
2015 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
2016 on the DWARF2 register number prior to fetching a register.
2017
2018 2003-04-22 J. Brobecker <brobecker@gnat.com>
2019
2020 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
2021 Update all the tests using SOFT_FLOAT considering the fact that
2022 this macro was always set to 0.
2023 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
2024 considering the fact that this macro was always set to 0.
2025 * hppa-tdep.h (hppa_store_return_value): Likewise.
2026 (hppa_extract_return_value): Likewise.
2027
2028 2003-04-22 J. Brobecker <brobecker@gnat.com>
2029
2030 * config/pa/tm-hppa.h: Remove obsolete code, was used by
2031 the hppa-pro target only.
2032
2033 2003-04-21 J. Brobecker <brobecker@gnat.com>
2034
2035 Ongoing multi-arch conversion effort for HP/UX:
2036 * config/pa/tm-hppa.h: Move all macro that are no longer
2037 defined now that GDB_MULTI_ARCH is now set to 1 from here...
2038 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
2039
2040 2003-04-21 J. Brobecker <brobecker@gnat.com>
2041
2042 * config/pa/tm-hppa.h: Obsolete a section that was only used
2043 for hppa-pro.
2044
2045 2003-04-21 J. Brobecker <brobecker@gnat.com>
2046
2047 Ongoing multi-arch conversion for HP/UX.
2048 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
2049 if already defined (allows hppa64 to stay non-multiarched for now).
2050 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
2051
2052 2003-04-21 Andrew Cagney <cagney@redhat.com>
2053
2054 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
2055
2056 2003-04-21 Andrew Cagney <cagney@redhat.com>
2057
2058 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
2059 "i386_num_mmx_regs".
2060
2061 2003-04-21 Andrew Cagney <cagney@redhat.com>
2062
2063 * infcall.c: New file.
2064 * infcall.h: New file.
2065 * valarith.c: Include "infcall.h".
2066 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
2067 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
2068 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
2069 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
2070 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
2071 (SFILES): Add "infcall.c"
2072 (COMMON_OBS): Add "infcall.o".
2073 (infcall.o): Specify dependencies.
2074 * value.h (call_function_by_hand): Delete declaration.
2075 * inferior.h (run_stack_dummy): Delete declaration.
2076 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
2077 (run_stack_dummy): Move to "infcall.c", merged into
2078 call_function_by_hand.
2079 * valops.c (call_function_by_hand): Moved to "infcall.c".
2080 (find_function_addr, value_arg_coerce): Ditto.
2081 (unwindonsignal_p, coerce_float_to_double): Ditto.
2082 (_initialize_valops): Move "set/show coerce-float-to-double", and
2083 "set/show unwindonsignal" commands to "infcall.c".
2084 * v850-tdep.c, target.h: Update comments.
2085 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
2086 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
2087 (sh64_init_extra_frame_info): Update comments.
2088 * mn10300-tdep.c: Update comments.
2089 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
2090 * config/sparc/tm-sparc.h: Update comments.
2091 * breakpoint.h: Update comments.
2092 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
2093 * arm-tdep.c: Update comment.
2094
2095 2003-04-19 Mark Kettenis <kettenis@gnu.org>
2096
2097 * i386-tdep.c (i386_num_register_names): New variable.
2098 (i386_num_mmx_regs): Renamed from mmx_num_regs.
2099 (MM0_REGNUM): Remove redundant parentheses in define.
2100 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
2101 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
2102 i386_mxcsr_regnum_p): Remove redundant parentheses.
2103 (i386_register_name): Use i386_num_register_names.
2104
2105 * i386-tdep.c (i386_extract_return_value,
2106 i386_store_return_value): Correct check for availability of
2107 floating-point registers.
2108
2109 * i386-tdep.c (i386_frame_num_args): Remove function.
2110 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
2111
2112 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
2113 mmx_regnum_to_fp_regnum. Adjust all callers.
2114
2115 * i386-tdep.c (i386_get_longjmp_target): Use
2116 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
2117 and TARGET_CHAR_BIT. Use extract_typed_address instead of
2118 extract_address.
2119
2120 2003-04-19 Mark Kettenis <kettenis@gnu.org>
2121
2122 * core-regset.c: Update comments to reflect reality. Re-order
2123 includes.
2124 (fetch_core_registers): Use switch instead of if. Remove
2125 redundant prototype.
2126
2127 2003-04-18 Jim Blandy <jimb@redhat.com>
2128
2129 * s390-tdep.c (s390_frame_align): New function.
2130 (s390_gdbarch_init): Register it with the gdbarch object.
2131
2132 2003-04-17 Richard Henderson <rth@redhat.com>
2133
2134 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
2135
2136 2003-04-17 Michael Snyder <msnyder@redhat.com>
2137 Karen Bennet <bennet@redhat.com>
2138
2139 Committed by Elena Zannoni <ezannoni@redhat.com>
2140 * gdb_gcore.sh: New script to create a core dump of a process.
2141
2142 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
2143
2144 * values.c (value_being_returned): Don't fetch the return
2145 value if the return type is void.
2146
2147 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
2148
2149 * thread-db.c: Reindented.
2150
2151 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
2152
2153 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
2154 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
2155 as types.
2156
2157 2003-04-16 Kevin Buettner <kevinb@redhat.com>
2158
2159 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
2160 the size of ``long double'' to 16, instead of 8.
2161
2162 2003-04-16 Mark Kettenis <kettenis@gnu.org>
2163
2164 * i386-linux-nat.c: Add some whitespace to make things more
2165 readable.
2166 (fetch_register, store_register, fetch_inferior_registers,
2167 store_inferior_registers): Get rid of assignment in if-statement.
2168 (store_register): Fix typo in error message.
2169
2170 2003-04-16 Andrew Cagney <cagney@redhat.com>
2171
2172 * utils.c (xmmalloc): Always allocate something, matches
2173 libiberty/xmalloc's semantics.
2174 (xmrealloc, xmcalloc): Ditto.
2175
2176 2003-04-16 Andrew Cagney <cagney@redhat.com>
2177
2178 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
2179 update comments.
2180 (get_frame_type): Initialize unwind and type when needed.
2181 (get_frame_id, frame_register_unwind): Ditto.
2182
2183 2003-04-16 Andrew Cagney <cagney@redhat.com>
2184
2185 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
2186 obsolete.
2187 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
2188 * sparcl-stub.c: Obsolete file.
2189 * config/sparc/tm-sparclet.h: Obsolete file.
2190 * sparclet-stub.c: Obsolete file.
2191 * sparclet-rom.c: Obsolete file.
2192 * sparcl-tdep.c: Obsolete file.
2193 * config/sparc/tm-sparclite.h: Obsolete file.
2194 * config/sparc/sparclite.mt: Obsolete file.
2195 * config/sparc/sparclet.mt: Obsolete file.
2196 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
2197 sparc86x-*-* obsolete.
2198
2199 2003-04-15 David Carlton <carlton@math.stanford.edu>
2200
2201 * Makefile.in (SFILES): Add cp-namespace.c.
2202 (COMMON_OBS): Add cp-namespace.o.
2203 (block.o): Depend on gdb_obstack_h and cp_support_h.
2204 (buildsym.o): Depend on cp_support_h.
2205 (cp-namespace.o): New.
2206 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
2207 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
2208 (dwarf2read.o): Depend on cp_support_h.
2209 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
2210 * dwarf2read.c (process_die): Set processing_has_namespace_info,
2211 processing_current_namespace.
2212 (read_namespace): Update processing_current_namespace; check for
2213 anonymous namespaces.
2214 (dwarf2_name): New function.
2215 (dwarf2_extension): Ditto.
2216 * cp-support.h: Update copyright, contributors.
2217 Add inclusion guards.
2218 Add opaque declaration for structs obstack, block, symbol.
2219 (struct using_direct): New struct.
2220 Add declarations for cp_find_first_component,
2221 cp_entire_prefix_len, processing_has_namespace_info,
2222 processing_current_namespace, cp_is_anonymous,
2223 cp_add_using_directive, cp_initialize_namespace,
2224 cp_finalize_namespace, cp_set_block_scope,
2225 cp_scan_for_anonymous_namespaces.
2226 * cp-namespace.c: New file.
2227 * cp-support.c: Update copyright.
2228 Include ctype.h, gdb_assert.h, gdbcmd.h.
2229 New variable maint_cplus_cmd_list.
2230 (cp_find_first_component): New function.
2231 (cp_entire_prefix_len, maint_cplus_command)
2232 (first_component_command, _initialize_cp_support): Ditto.
2233 * buildsym.c: Include cp-support.h.
2234 New variable using_list.
2235 (add_symbol_to_list): Check for anonymous namespaces.
2236 (finish_block): Set block's scope.
2237 (start_symtab): Initialize C++ namespace support.
2238 (end_symtab): Finalize C++ namespace support.
2239 * block.h: Add opaque declarations for structs
2240 block_namespace_info, using_direct, and obstack.
2241 Add declarations for block_set_scope and block_set_using.
2242 (struct block): Add 'language_specific' member.
2243 (BLOCK_NAMESPACE): New macro.
2244 * block.c: Include gdb_obstack.h and cp-support.h.
2245 (struct block_namespace_info): New struct.
2246 (block_set_scope): New function.
2247 (block_set_using, block_initialize_namespace): Ditto.
2248
2249 2003-04-14 Kevin Buettner <kevinb@redhat.com>
2250
2251 * solib-svr4.c (svr4_have_link_map_offsets): New function.
2252 (locate_base): Return early if there aren't any link map offsets.
2253 (svr4_solib_create_inferior_hook): Warn if shared library support
2254 is unavailable.
2255
2256 2003-04-14 David Carlton <carlton@math.stanford.edu>
2257
2258 * symtab.c (symbol_set_names): Add prefix when storing Java names
2259 in hash table. Fix for PR java/1039.
2260
2261 2003-04-14 David Carlton <carlton@math.stanford.edu>
2262
2263 * symtab.c (symbol_set_names): Rename 'name' arg to
2264 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
2265 * symtab.h: Change 'name' argument in declaration of
2266 symbol_set_names to 'linkage_name'.
2267 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
2268
2269 2003-04-14 Andrew Cagney <cagney@redhat.com>
2270
2271 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
2272 return the fully sign-extended register value.
2273 (get_frame_pointer): Ditto.
2274 (mips_pop_frame): Initialize "proc_desc" after checking for a
2275 dummy frame.
2276
2277 2003-04-14 Andrew Cagney <cagney@redhat.com>
2278
2279 * mips-tdep.c (mips_push_dummy_frame): Delete function.
2280 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
2281 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
2282 (mips_push_register): Delete function.
2283 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
2284 PUSH_FP_REGNUM.
2285
2286 2003-04-14 Jim Blandy <jimb@redhat.com>
2287
2288 * symmisc.c: #include "gdb_regex.h".
2289 (maintenance_list_symtabs, maintenance_list_psymtabs): New
2290 functions.
2291 * maint.c (maintenance_list_command): New function.
2292 (_initialize_maint_cmds): Register the above as commands.
2293 * symtab.h (maintenance_list_symtabs,
2294 maintenance_list_psymtabs): New declarations.
2295 * cli/cli-cmds.c (maintenancelistlist): New variable.
2296 (init_cmd_lists): Initialize it.
2297 * cli/cli-cmds.h (maintenancelistlist): New declaration.
2298 * gdbcmd.h (maintenancelistlist): New declaration.
2299 * Makefile.in (symmisc.o): Update dependencies.
2300
2301 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
2302
2303 * s390-nat.c: Include asm/types.h for addr_t.
2304
2305 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
2306
2307 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
2308 actually incoming type.
2309
2310 2003-04-13 Andrew Cagney <cagney@redhat.com>
2311
2312 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
2313 get_next_frame and get_frame_saved_regs.
2314
2315 2003-04-13 Andrew Cagney <cagney@redhat.com>
2316
2317 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
2318 of gdbarch_num_regs.
2319
2320 2003-04-13 Andrew Cagney <cagney@redhat.com>
2321
2322 * frame.h: Mention what replaced what in "struct frame_info".
2323 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
2324 deprecated_update_frame_base_hack and
2325 deprecated_update_frame_pc_hack.
2326 * hppa-tdep.c: Ditto.
2327
2328 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
2329
2330 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
2331 to read_reg and update its comment. Remove regnum member.
2332 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
2333 Don't call read_reg when setting in_reg. Call read_reg to get
2334 the frame base if it's in a register. Return the register number
2335 on the stack instead of in the context. Remove extra arguments
2336 to read_reg.
2337 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
2338 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
2339 the register number on the expression stack.
2340 (needs_frame_read_reg): Remove extra arguments.
2341
2342 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
2343
2344 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
2345 made non-static.
2346 (execute_stack_op): All callers updated.
2347 * dwarf2expr.h: Add prototype for dwarf2_read_address.
2348 * dwarf2loc.c (find_location_expression): New function.
2349 (dwarf_expr_frame_base): Call it.
2350 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
2351 (dwarf2_tracepoint_var_ref): New function, broken out from
2352 locexpr_tracepoint_var_ref.
2353 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
2354 Make static.
2355 (loclist_read_variable, loclist_read_needs_frame): New functions.
2356 (loclist_describe_location, loclist_tracepoint_var_ref): New
2357 functions.
2358 (dwarf2_loclist_funcs): New struct location_funcs.
2359 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
2360 (struct dwarf2_locexpr_baton): Add comments.
2361 (dwarf2_loclist_funcs): New extern.
2362 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
2363 base_address and base_known.
2364 (dwarf_loc_buffer): New variable.
2365 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
2366 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
2367 (dwarf2_has_info): Initialize dwarf_loc_offset.
2368 (dwarf2_build_psymtabs): Read in .debug_loc.
2369 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
2370 DWARF_LOC_SIZE.
2371 (psymtab_to_symtab_1): Likewise. Move base address calculation
2372 here, from...
2373 (dwarf2_get_pc_bounds): ... here. Use the base address from
2374 cu_header.
2375 (dwarf2_symbol_mark_computed): Handle location lists.
2376
2377 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
2378
2379 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
2380 if the linkage name demangled successfully.
2381
2382 2003-04-13 Mark Kettenis <kettenis@gnu.org>
2383
2384 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
2385 disassmbly_flavour): Removed.
2386
2387 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
2388
2389 2003-04-13 Mark Kettenis <kettenis@gnu.org>
2390
2391 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
2392
2393 2003-04-12 Andrew Cagney <cagney@redhat.com>
2394
2395 * frame.h (struct frame_info): Move definition from here ...
2396 * frame.c (struct frame_info): ... to here.
2397
2398 2003-04-12 Andrew Cagney <cagney@redhat.com>
2399
2400 * gdbthread.h (save_infrun_state): Delete parameter
2401 "prev_func_start".
2402 (struct thread_info): Delete field "prev_func_start".
2403 (load_infrun_state): Ditto.
2404 * thread.c (load_infrun_state, save_infrun_state): Update.
2405 * infrun.c (prev_func_start): Delete variable.
2406 (context_switch, init_wait_for_inferior): Update.
2407 (stop_stepping, keep_going): Update.
2408
2409 2003-04-12 Andrew Cagney <cagney@redhat.com>
2410
2411 * gdbarch.sh: Add missing opaque declarations.
2412 * gdbarch.h: Regnerate.
2413 * symtab.h: Add missing opaque declarations.
2414 * value.h, target.h, symfile.h, stabsread.h: Ditto.
2415 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
2416 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
2417 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
2418 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
2419 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
2420 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
2421 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
2422 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
2423 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
2424 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
2425 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
2426 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
2427
2428 2003-04-11 Andrew Cagney <cagney@redhat.com>
2429
2430 * frame.c (get_frame_id): Return this frame's "id".
2431 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
2432 function start.
2433 (legacy_saved_regs_this_id): Replace function body with
2434 internal-error.
2435 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
2436 FRAME_OBSTACK_ZALLOC.
2437 (create_new_frame): Mark the frame ID as valid.
2438
2439 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
2440
2441 * Makefile.in (libbfd_h): Added missing setting.
2442 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
2443 according to the selected ABI.
2444
2445 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
2446
2447 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
2448
2449 2003-04-11 Andrew Cagney <cagney@redhat.com>
2450
2451 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
2452 SAVED_PC_AFTER_CALL.
2453 * gdbarch.h, gdbarch.c: Regenerate.
2454 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2455 * x86-64-tdep.c (x86_64_init_abi): Update.
2456 * vax-tdep.c (vax_gdbarch_init): Update.
2457 * v850-tdep.c (v850_gdbarch_init): Update.
2458 * sparc-tdep.c (sparc_gdbarch_init): Update.
2459 * sh-tdep.c (sh_gdbarch_init): Update.
2460 * s390-tdep.c (s390_gdbarch_init): Update.
2461 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2462 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2463 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2464 * mips-tdep.c (mips_gdbarch_init): Update.
2465 * mcore-tdep.c (mcore_gdbarch_init): Update.
2466 * m68k-tdep.c (m68k_gdbarch_init): Update.
2467 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2468 * ia64-tdep.c (ia64_gdbarch_init): Update.
2469 (ia64_saved_pc_after_call): Update declaration.
2470 * i386ly-tdep.c (i386lynx_init_abi): Update.
2471 * i386-tdep.c (i386_gdbarch_init): Update.
2472 * hppa-tdep.c (hppa_gdbarch_init): Update.
2473 * h8300-tdep.c (h8300_gdbarch_init): Update.
2474 * frv-tdep.c (frv_gdbarch_init): Update.
2475 * cris-tdep.c (cris_gdbarch_init): Update.
2476 * avr-tdep.c (avr_gdbarch_init): Update.
2477 * arm-tdep.c (arm_gdbarch_init): Update.
2478 * alpha-tdep.c (alpha_gdbarch_init): Update.
2479 * ns32knbsd-nat.c (frame_num_args): Update.
2480 * ns32k-tdep.c (umax_frame_num_args): Update.
2481 * mips-tdep.c (mips_init_frame_pc_first): Update.
2482 * infrun.c (step_over_function): Update.
2483 * i386-linux-tdep.c (skip_hurd_resolver): Update.
2484 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
2485 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
2486 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
2487 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
2488 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
2489 * arm-linux-tdep.c (skip_hurd_resolver): Update.
2490 * arch-utils.c (init_frame_pc_default): Update.
2491 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
2492 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
2493 declaration.
2494
2495 2003-04-11 Andrew Cagney <cagney@redhat.com>
2496
2497 * i387-tdep.c: Update copyright.
2498 (i387_to_double): Delete function.
2499 (double_to_i387): Delete function.
2500
2501 2003-04-10 Andrew Cagney <cagney@redhat.com>
2502
2503 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
2504 frame's function's address. Simplify.
2505 (d10v_frame_unwind_cache): Check that the frame's function is
2506 non-zero.
2507
2508 2003-04-10 Jim Blandy <jimb@redhat.com>
2509
2510 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
2511 call to set_gdbarch_deprecated_push_arguments.
2512
2513 2003-04-10 Andrew Cagney <cagney@redhat.com>
2514
2515 * frame.c (fprint_frame_id): New function.
2516 (fprint_frame_type, fprint_frame): New function.
2517 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
2518 (create_sentinel_frame, get_frame_id): Ditto.
2519 (frame_id_p, frame_id_eq): Ditto.
2520 (frame_id_inner, create_new_frame): Ditto.
2521 (legacy_get_prev_frame, get_prev_frame): Ditto.
2522 (deprecated_update_frame_pc_hack): Ditto.
2523 (frame_register_unwind): Ditto.
2524 (deprecated_update_frame_base_hack): Ditto.
2525
2526 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
2527
2528 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
2529 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
2530 frame_chain function.
2531 * Makefile.in: Add dependencies due to above change.
2532
2533 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
2534
2535 * blockframe.c (legacy_frame_chain_valid): Move call to
2536 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
2537 inside_entry_file.
2538
2539 2003-04-09 Andrew Cagney <cagney@redhat.com>
2540
2541 * frame.h (struct frame_id): Replace "pc" and "base" with
2542 "stack_addr" and "code_addr". Update comments.
2543 (frame_id_build): Update parameter names and comment.
2544 (struct frame_info): Replace "id_p" and "id" with "this_id".
2545 * dummy-frame.c (dummy_frame_this_id): Update.
2546 * breakpoint.c (print_one_breakpoint): Update.
2547 * frame.c (get_frame_id): Update.
2548 (get_frame_base, frame_id_build): Update.
2549 (create_sentinel_frame, legacy_get_prev_frame): Update.
2550 (deprecated_update_frame_base_hack): Update.
2551 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
2552 (frame_id_inner): Ditto.
2553
2554 2003-04-09 Andrew Cagney <cagney@redhat.com>
2555
2556 * defs.h (gdb_print_host_address): Make "addr" parameter a
2557 pointer constant.
2558 * utils.c (gdb_print_host_address): Update.
2559
2560 2003-04-09 Kevin Buettner <kevinb@redhat.com>
2561
2562 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
2563 register number for R0 is 0.
2564
2565 2003-04-09 J. Brobecker <brobecker@gnat.com>
2566
2567 * frame.h (struct gdbarch): Add opaque structure definition
2568 to avoid a compilation warning on LynxOS 4.0.
2569
2570 2003-04-09 Andrew Cagney <cagney@redhat.com>
2571
2572 * frame.h (struct frame_info): Delete field "pc". Replace
2573 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
2574 structure.
2575 * frame.c (frame_pc_unwind): Update.
2576 (create_sentinel_frame): Do not set "pc".
2577 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
2578 (get_frame_pc): Call frame_pc_unwind.
2579 (deprecated_update_frame_pc_hack): Update.
2580 (create_new_frame): Use "pc" not "->pc".
2581
2582 2003-04-09 Andrew Cagney <cagney@redhat.com>
2583
2584 * frame.c (get_frame_id): Eliminate code updating "frame".
2585 (legacy_get_prev_frame): Ditto.
2586 (get_frame_base): Return id.base directly.
2587 (deprecated_update_frame_base_hack): Update "id.base".
2588 * frame.h (struct frame_info): Delete field "frame".
2589
2590 2003-04-09 Andrew Cagney <cagney@redhat.com>
2591
2592 * NEWS: Mention that the "Sequent family" is obsolete.
2593 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
2594 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
2595 * configure.host: Obsolete i[3456]86-sequent-bsd*,
2596 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
2597 * config/i386/tm-ptx4.h: Obsolete file.
2598 * config/i386/tm-ptx.h: Obsolete file.
2599 * symm-tdep.c: Obsolete file.
2600 * config/i386/symmetry.mt: Obsolete file.
2601 * config/i386/tm-symmetry.h: Obsolete file.
2602 * symm-nat.c: Obsolete file.
2603 * config/i386/nm-symmetry.h: Obsolete file.
2604 * config/i386/xm-symmetry.h: Obsolete file.
2605 * config/i386/symmetry.mh: Obsolete file.
2606 * config/i386/nm-ptx4.h: Obsolete file.
2607 * config/i386/ptx4.mh: Obsolete file.
2608 * config/i386/ptx.mt: Obsolete file.
2609 * config/i386/ptx.mh: Obsolete file.
2610 * config/i386/xm-ptx4.h: Obsolete file.
2611 * config/i386/xm-ptx.h: Obsolete file.
2612
2613 2003-04-09 Andrew Cagney <cagney@redhat.com>
2614
2615 Obsolete mips*-*-mach3*.
2616 * NEWS: Mention that mips*-*-mach3* is obsolete.
2617 * m3-nat.c: Obsolete file.
2618 * config/nm-m3.h: Obsolete file.
2619 * config/mips/tm-mipsm3.h: Obsolete file.
2620 * config/mips/mipsm3.mt: Obsolete file.
2621 * config/mips/mipsm3.mh: Obsolete file.
2622 * config/mips/xm-mipsm3.h: Obsolete file.
2623 * mipsm3-nat.c: Obsolete file.
2624 * configure.host: Obsolete mips-dec-mach3*.
2625 * configure.tgt: Obsolete mips*-*-mach3*.
2626
2627 2003-04-09 Andrew Cagney <cagney@redhat.com>
2628
2629 * doublest.h: Update copyright.
2630 (deprecated_store_floating, deprecated_extract_floating): Rename
2631 store_floating and extract_floating. Update comments.
2632 * doublest.c: Update copyright.
2633 (extract_floating_by_length): Replace extract_floating.
2634 (store_floating_by_length): Replace store_floating.
2635 (deprecated_extract_floating): New function.
2636 (deprecated_store_floating): New function.
2637 (extract_typed_floating): Call extract_floating_by_length.
2638 (store_typed_floating): Call store_floating_by_length.
2639 * x86-64-tdep.c (x86_64_store_return_value): Update.
2640 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
2641 (sh64_extract_return_value): Update.
2642 (sh_sh4_register_convert_to_virtual): Update.
2643 (sh_sh64_register_convert_to_virtual): Update.
2644 (sh_sh4_register_convert_to_raw): Update.
2645 (sh_sh64_register_convert_to_raw): Update.
2646 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
2647 (rs6000_register_convert_to_raw): Update.
2648 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
2649 (ia64_register_convert_to_raw): Update.
2650 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
2651 (REGISTER_CONVERT_TO_VIRTUAL): Update.
2652 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
2653 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
2654 (alpha_register_convert_to_raw): Update.
2655
2656 2003-04-08 Andrew Cagney <cagney@redhat.com>
2657
2658 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
2659 * gdbarch.h, gdbarch.c: Re-generate.
2660 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
2661 (d10v_gdbarch_init): Do not set saved_pc_after_call.
2662 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
2663 conditionally, use frame_pc_unwind as an alternative. Add
2664 comments.
2665 * arch-utils.c (init_frame_pc_default): Only call
2666 SAVED_PC_AFTER_CALL when available.
2667
2668 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
2669
2670 * infrun.c (stop_soon): Rename from stop_soon_quietly.
2671 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
2672 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
2673 (start_remote): Ditto.
2674 (handle_inferior_event): Ditto.
2675 (save_inferior_status): Ditto.
2676 (restore_inferior_status): Ditto.
2677 * infcmd.c (attach_command): Ditto.
2678 * fork-child.c (startup_inferior): Ditto.
2679 * inferior.h (stop_soon): Rename from stop_soon_quietly.
2680 * alpha-tdep.c (heuristic_proc_start): Ditto.
2681 * mips-tdep.c (heuristic_proc_start): Ditto.
2682 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
2683 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
2684 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
2685 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
2686 * remote-vx.c (vx_create_inferior): Ditto.
2687
2688 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
2689
2690 * infrun.c (stop_soon_quietly): Make it an enum, to better
2691 override the default behavior of handle_inferior_event.
2692 (clear_proceed_status): Update uses of stop_soon_quietly to
2693 reflect that it is now an enum.
2694 (start_remote): Ditto.
2695 (handle_inferior_event): Change logic a bit if stop_soon_quietly
2696 is set to handle the new GNU/Linux kernel behavior for
2697 attach/sigstop. Update uses of stop_soon_quietly.
2698 * inferior.h (enum stop_kind): New enum.
2699 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
2700 Reset normal handle_inferior_event behavior, afterwards.
2701 * fork-child.c (startup_inferior): Update.
2702 * alpha-tdep.c (heuristic_proc_start): Update.
2703 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2704 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
2705 * solib-osf.c (osf_solib_create_inferior_hook): Update.
2706 * solib-irix.c (irix_solib_create_inferior_hook): Update.
2707 * remote-vx.c (vx_create_inferior): Update.
2708 * mips-tdep.c (heuristic_proc_start): Update.
2709
2710 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
2711
2712 * disasm.c (dump_insns): Move variables inside loop, or they will
2713 be freed more than once, causing wild memory corruptions.
2714 (gdb_disassembly): Look for the substring "-thread",
2715 instead of "-threads" in the target name, to make sure to find
2716 the 'multi-thread' target. Also, make sure we do the right thing
2717 with the "core" target.
2718
2719 2003-04-07 Kevin Buettner <kevinb@redhat.com>
2720
2721 * mips-tdep.c (mips_print_fp_register): New function, created from
2722 do_fp_register_row(). Registers are now (also) printed as hex.
2723 Only one register is printed per row.
2724 (mips_print_register, do_fp_register_row): Print floating point
2725 registers with mips_print_fp_register().
2726
2727 2003-04-06 Andrew Cagney <cagney@redhat.com>
2728
2729 * valprint.h (inspect_it): Add extern declaration.
2730 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
2731 (selectors_info, classes_info): Ditto.
2732 (find_objc_msgcall): Fix indentation.
2733 (objc_printstr): Delete extern declarations.
2734
2735 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
2736
2737 2003-04-06 Andrew Cagney <cagney@redhat.com>
2738
2739 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
2740 Update comment.
2741 * frame.c (legacy_saved_regs_this_id): Update.
2742 (legacy_get_prev_frame): Update.
2743 * xstormy16-tdep.c: Update comment.
2744 * sparc-tdep.c (sparc_frame_chain): Update comment.
2745 * blockframe.c (legacy_frame_chain_valid): Update.
2746
2747 2003-04-06 Andrew Cagney <cagney@redhat.com>
2748
2749 * valprint.c (val_print_type_code_int): Delete #ifdef
2750 PRINT_TYPELESS_INTEGER code.
2751
2752 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
2753 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
2754 multi-arch definition.
2755 * gdbarch.h: Re-generate.
2756
2757 2003-04-05 Andrew Cagney <cagney@redhat.com>
2758
2759 Eliminate FRAME_FIND_SAVED_REGS.
2760 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
2761 Change FSR parameter to a pointer.
2762 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
2763 Assume FSR parameter is a pointer.
2764 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
2765 Make fsr a pointer.
2766 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
2767 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
2768 saved_regs a pointer.
2769 (hppa_frame_saved_pc): Ditto.
2770 (find_dummy_frame_regs): Make frame_saved_regs a pointer
2771 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
2772 pointer.
2773 (restore_pc_queue): Make fsr a pointer.
2774 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
2775 (hppa_frame_chain): Make saved_regs a pointer, call
2776 hppa_frame_init_saved_regs.
2777 * sparc-tdep.c: Include "gdb_assert.h".
2778 (sparc_frame_find_saved_regs): Replace internal_error with
2779 gdb_assert.
2780 * remote-vxsparc.c (vx_read_register): Delete reference to
2781 FRAME_FIND_SAVED_REGS.
2782 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
2783 * gdbarch.h: Regenerate.
2784 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
2785 (deprecated_get_frame_saved_regs): Delete declaration.
2786 (struct frame_saved_regs): Delete definition.
2787 * frame.c (deprecated_get_frame_saved_regs): Delete function.
2788 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
2789 (hppa_frame_find_saved_regs): Delete declaration.
2790 (FRAME_FIND_SAVED_REGS): Delete macro.
2791 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
2792 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
2793 FRAME_FIND_SAVED_REGS in comment.
2794
2795 2003-04-05 Andrew Cagney <cagney@redhat.com>
2796
2797 * frame.c (frame_func_unwind, get_frame_func): New functions.
2798 * frame.h (get_frame_func, frame_func_unwind): Declare.
2799 (struct frame_info): Add field "prev_func" for caching the
2800 previous frame's function address.
2801 * arm-tdep.c (arm_frameless_function_invocation): Combine
2802 get_pc_function_start and get_frame_pc into get_frame_func.
2803 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
2804 (sh64_nofp_frame_init_saved_regs): Ditto.
2805 * s390-tdep.c (s390_function_start): Ditto.
2806 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
2807 (rs6000_frameless_function_invocation): Ditto.
2808 (rs6000_frame_saved_pc): Ditto.
2809 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
2810 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
2811 * i386-tdep.c (i386_frameless_signal_p): Ditto.
2812 (i386_frame_init_saved_regs): Ditto.
2813 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
2814 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
2815 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
2816 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2817 * blockframe.c (frameless_look_for_prologue): Ditto.
2818
2819 2003-04-05 Andrew Cagney <cagney@redhat.com>
2820
2821 * frame.c (legacy_get_prev_frame): Link prev to next at the
2822 function start. Update comments.
2823
2824 2003-04-05 Andrew Cagney <cagney@redhat.com>
2825
2826 * frame.c (get_frame_id): Update comment.
2827 (legacy_get_prev_frame): Update comment.
2828 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
2829 * gdbarch.h: Regenerate.
2830 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
2831 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
2832
2833 2003-04-05 Andrew Cagney <cagney@redhat.com>
2834
2835 * stack.c (print_frame_info): Use get_frame_pc.
2836
2837 2003-04-04 Andrew Cagney <cagney@redhat.com>
2838
2839 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
2840 the frame's type from the unwinder.
2841 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
2842 (create_new_frame, legacy_get_prev_frame): When the unwinder's
2843 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
2844 (get_frame_base_address): Use get_frame_type.
2845 (get_frame_locals_address, get_frame_args_address): Ditto.
2846 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
2847 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
2848 (struct frame_info): Add comment explaining why the frame contains
2849 a "type" field.
2850 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
2851 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
2852 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
2853 NORMAL_FRAME.
2854 * frame-unwind.h: Include "frame.h".
2855 (struct frame_unwind): Add "type" field.
2856 * Makefile.in (frame_unwind_h): Add $(frame_h).
2857
2858 2003-04-04 Andrew Cagney <cagney@redhat.com>
2859
2860 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
2861 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
2862 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
2863 get_frame_base.
2864 (d10v_unwind_dummy_id): Use frame_id_build.
2865 * frame.c (find_frame_sal): Use get_frame_pc.
2866 (create_new_frame): Use deprecated_update_frame_pc_hack and
2867 deprecated_update_frame_base_hack.
2868 (create_sentinel_frame): Add comment about ->pc going away.
2869 (get_prev_frame): Add comment about ->pc going away.
2870 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
2871 frame_id_build, deprecated_update_frame_pc_hack and
2872 deprecated_update_frame_base_hack.
2873 (select_frame): Use get_frame_pc.
2874 (legacy_saved_regs_this_id): Use frame_id_build.
2875
2876 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
2877
2878 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
2879 signed integer case.
2880 (classify_argument): Handle enumerations and references.
2881
2882 2003-04-04 Andrew Cagney <cagney@redhat.com>
2883
2884 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
2885 ID to NULL.
2886
2887 2003-04-01 Adam Fedor <fedor@gnu.org>
2888
2889 * gdb/objc-lang.c (selectors_info): Replace calls to
2890 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
2891 SYMBOL_NATURAL_NAME.
2892 (classes_info, find_methods): Likewise.
2893
2894 2003-04-03 Kevin Buettner <kevinb@redhat.com>
2895
2896 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
2897 ``mach'' to the value determined by bfd_default_set_arch_mach().
2898
2899 2003-04-02 Bob Rossi <bob_rossi@cox.net>
2900
2901 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
2902 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
2903 (mi-cmd-file.o): Update dependencies.
2904
2905 2003-04-01 Kevin Buettner <kevinb@redhat.com>
2906
2907 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
2908 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
2909
2910 2003-04-01 Adam Fedor <fedor@gnu.org>
2911
2912 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
2913 * language.h (struct language_defn): Add la_demangle.
2914 (language_demangle): Declare.
2915 * language.c (language_demangle): New function.
2916 (unk_lang_demangle): Likewise.
2917 (unknown_language_defn, auto_language_defn, local_language_defn):
2918 Add ukn_lang_demangle.
2919 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
2920 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
2921 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
2922 (cplus_language_defn): Add cplus_demangle for la_demangle element.
2923 * jv-lang.c (java_demangle): New function
2924 (java_language_defn): Use it for la_demangle element.
2925 * objc-lang.c (objc_demangle): Add options argument
2926 (objc_language_defn): Use objc_demangle for la_demangle element.
2927 * maint.c (maintenance_demangle): Replace switch with
2928 call to language_demangle.
2929 * utils.c (fprintf_symbol_filtered): Likewise.
2930
2931 2003-04-01 Andrew Cagney <cagney@redhat.com>
2932
2933 * printcmd.c (print_frame_nameless_args): Delete #ifdef
2934 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
2935 PRINT_TYPELESS_INTEGER.
2936 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
2937 PUSH_RETURN_ADDRESS.
2938
2939 2003-04-01 Andrew Cagney <cagney@redhat.com>
2940
2941 * Makefile.in (d10v-tdep.o): Update dependencies.
2942 * d10v-tdep.c: Include "frame-base.h".
2943 (d10v_frame_unwind): Make constant.
2944 (d10v_frame_base_address): New function.
2945 (d10v_frame_base): New variable.
2946 (d10v_gdbarch_init): Set frame_base default.
2947 (struct d10v_unwind_cache): Add the field "prev_sp". Update
2948 comment for base.
2949 (d10v_frame_unwind_cache): Set and use "prev_sp".
2950 (d10v_frame_this_id): Use the previous frame's inner most stack
2951 address and this frame's func address for the frame ID. Use
2952 frame_id_build. Don't analyze beyond the current instruction.
2953
2954 2003-04-01 Andrew Cagney <cagney@redhat.com>
2955
2956 * frame.h (get_frame_locals_address, get_frame_args_address):
2957 Refer to the base address, instead of the address of the first
2958 local or parameter.
2959
2960 2003-04-01 Andrew Cagney <cagney@redhat.com>
2961
2962 Add frame debug info addresses:
2963 * frame-base.c: New file.
2964 * frame-base.h: New file.
2965 * frame.h (struct frame_base): Add opaque declaration.
2966 (get_frame_base): Update comment.
2967 (get_frame_base_address): Declare.
2968 (get_frame_locals_address): Declare.
2969 (get_frame_args_address): Declare.
2970 (struct frame_info): Add "base" and "base_cache". Update
2971 comments on the unwinder.
2972 * frame.c: Include "frame-base.h".
2973 (get_frame_locals_address): New function.
2974 (get_frame_base_address): New function.
2975 (get_frame_args_address): New function.
2976 * findvar.c (read_var_value): Use get_frame_locals_address and
2977 get_frame_args_address.
2978 * stack.c (frame_info): Use get_frame_locals_address and
2979 get_frame_args_address.
2980 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
2981 moved to "frame-base.c".
2982 * printcmd.c (print_frame_nameless_args): Ditto.
2983 * symtab.h (address_class): Update comments.
2984 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
2985 get_frame_base_address.
2986 * dwarf2expr.c (execute_stack_op): Ditto.
2987 * Makefile.in (frame_base_h): Define.
2988 (frame.o): Update dependencies.
2989 (frame-base.o): Add dependencies.
2990 (SFILES): Add frame-base.c.
2991 (COMMON_OBS): Add frame-base.o.
2992
2993 2003-04-01 Andrew Cagney <cagney@redhat.com>
2994
2995 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
2996 CALL_DUMMY_LENGTH): Ditto.
2997 * gdbarch.c: Re-generate.
2998 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
2999 (CALL_DUMMY_LENGTH): Delete macro.
3000 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
3001 * arm-tdep.c (arm_gdbarch_init): Ditto.
3002 * avr-tdep.c (avr_gdbarch_init): Ditto.
3003 * cris-tdep.c (cris_gdbarch_init): Ditto.
3004 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3005 * frv-tdep.c (frv_gdbarch_init): Ditto.
3006 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3007 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
3008 * i386-tdep.c (i386_gdbarch_init): Ditto.
3009 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3010 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3011 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3012 * mips-tdep.c (mips_gdbarch_init): Ditto.
3013 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3014 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3015 * s390-tdep.c (s390_gdbarch_init): Ditto.
3016 * sh-tdep.c (sh_gdbarch_init): Ditto.
3017 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3018 * v850-tdep.c (v850_gdbarch_init): Ditto.
3019 * vax-tdep.c (vax_gdbarch_init): Ditto.
3020 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
3021
3022 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
3023
3024 * frame.c (get_prev_frame): Disable call to inside_entry_file().
3025
3026 2003-04-01 Andrew Cagney <cagney@redhat.com>
3027
3028 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
3029 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
3030 * gdbarch.h, gdbarch.c: Re-generate.
3031 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
3032 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
3033 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
3034 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
3035 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
3036 * infcmd.c (run_stack_dummy): Simplify assuming
3037 CALL_DUMMY_BREAKPOINT_OFFSET_P.
3038 * infrun.c (handle_inferior_event): Ditto.
3039 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3040 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
3041 * arm-tdep.c (arm_gdbarch_init): Ditto.
3042 * avr-tdep.c (avr_gdbarch_init): Ditto.
3043 * cris-tdep.c (cris_gdbarch_init): Ditto.
3044 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3045 * frv-tdep.c (frv_gdbarch_init): Ditto.
3046 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3047 * i386-tdep.c (i386_gdbarch_init): Ditto.
3048 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3049 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3050 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3051 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3052 * mips-tdep.c (mips_gdbarch_init): Ditto.
3053 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3054 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3055 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3056 * s390-tdep.c (s390_gdbarch_init): Ditto.
3057 * sh-tdep.c (sh_gdbarch_init): Ditto.
3058 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3059 * v850-tdep.c (v850_gdbarch_init): Ditto.
3060 * vax-tdep.c (vax_gdbarch_init): Ditto.
3061 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
3062
3063 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
3064
3065 * symfile.c (symfile_relocate_debug_section): Update call to
3066 bfd_simple_get_relocated_section_contents.
3067
3068 2003-03-31 Andrew Cagney <cagney@redhat.com>
3069
3070 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
3071 * gdbarch.h, gdbarch.c: Regenerate.
3072 * inferior.h (FIX_CALL_DUMMY): Delete macro.
3073 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
3074 available.
3075 * frame.h (generic_fix_call_dummy): Delete declaration.
3076 * dummy-frame.h: Update comment.
3077 * dummy-frame.c (generic_fix_call_dummy): Delete function.
3078 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3079 fix_call_dummy.
3080 * sh-tdep.c (sh_gdbarch_init): Ditto.
3081 * s390-tdep.c (s390_gdbarch_init): Ditto.
3082 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3083 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3084 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3085 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3086 * i386-tdep.c (i386_gdbarch_init): Ditto.
3087 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3088 * frv-tdep.c (frv_gdbarch_init): Ditto.
3089 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3090 * cris-tdep.c (cris_gdbarch_init): Ditto.
3091 * avr-tdep.c (avr_gdbarch_init): Ditto.
3092 * arm-tdep.c (arm_gdbarch_init): Ditto.
3093
3094 2003-03-31 J. Brobecker <brobecker@gnat.com>
3095
3096 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
3097 (INIT_FRAME_AP): Likewise.
3098 (EXTRA_FRAME_INFO): Likewise.
3099
3100 2003-03-31 Andrew Cagney <cagney@redhat.com>
3101
3102 * gdbarch.sh: Include "symfile.h".
3103 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
3104 * gdbarch.h, gdbarch.c: Re-generate.
3105 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
3106 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3107 call_dummy_address, the default is at entry_point_address.
3108 * v850-tdep.c (v850_gdbarch_init): Ditto.
3109 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3110 * sh-tdep.c (sh_gdbarch_init): Ditto.
3111 * s390-tdep.c (s390_gdbarch_init): Ditto.
3112 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3113 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3114 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3115 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3116 * i386-tdep.c (i386_gdbarch_init): Ditto.
3117 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3118 * frv-tdep.c (frv_gdbarch_init): Ditto.
3119 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3120 * cris-tdep.c (cris_gdbarch_init): Ditto.
3121 * arm-tdep.c (arm_gdbarch_init): Ditto.
3122
3123 2003-03-31 Andrew Cagney <cagney@redhat.com>
3124
3125 * gdbarch.sh (CALL_DUMMY_P): Delete.
3126 * gdbarch.h, gdbarch.c: Re-generate.
3127 * inferior.h (CALL_DUMMY_P): Delete macro.
3128 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3129 * vax-tdep.c (vax_gdbarch_init): Update.
3130 * v850-tdep.c (v850_gdbarch_init): Update.
3131 * sparc-tdep.c (sparc_gdbarch_init): Update.
3132 * sh-tdep.c (sh_gdbarch_init): Update.
3133 * s390-tdep.c (s390_gdbarch_init): Update.
3134 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3135 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3136 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3137 * mips-tdep.c (mips_gdbarch_init): Update.
3138 * mcore-tdep.c (mcore_gdbarch_init): Update.
3139 * m68k-tdep.c (m68k_gdbarch_init): Update.
3140 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3141 * ia64-tdep.c (ia64_gdbarch_init): Update.
3142 * i386-tdep.c (i386_gdbarch_init): Update.
3143 * h8300-tdep.c (h8300_gdbarch_init): Update.
3144 * frv-tdep.c (frv_gdbarch_init): Update.
3145 * d10v-tdep.c (d10v_gdbarch_init): Update.
3146 * cris-tdep.c (cris_gdbarch_init): Update.
3147 * breakpoint.c (deprecated_frame_in_dummy): Update.
3148 * avr-tdep.c (avr_gdbarch_init): Update.
3149 * alpha-tdep.c (alpha_gdbarch_init): Update.
3150 * arm-tdep.c (arm_gdbarch_init): Update.
3151 * dummy-frame.c (dummy_frame_this_id): Update comments.
3152 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
3153 * frame.c (legacy_get_prev_frame): Ditto.
3154 * valops.c (call_function_by_hand): Delete function.
3155 (hand_function_call): Rename to call_function_by_hand
3156
3157 2003-03-30 Andrew Cagney <cagney@redhat.com>
3158
3159 2002-11-10 Klee Dienes <kdienes@apple.com>
3160 * value.h (struct value): Update comment.
3161
3162 2003-03-30 Andrew Cagney <cagney@redhat.com>
3163
3164 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
3165 D10V_FP_REGNUM.
3166 (d10v_gdbarch_init): Do not set fp_regnum.
3167
3168 * frame.c (get_frame_base): Force ID initialization.
3169 (get_prev_frame): Move computation of the frame ID from here ...
3170 (get_frame_id): ... to here.
3171 (legacy_get_prev_frame): Mark the frame ID as valid.
3172 * frame.h (struct frame_info): Add field "id_p".
3173
3174 2003-03-30 Mark Kettenis <kettenis@gnu.org>
3175
3176 * i386-tdep.c (i386_store_struct_return): Removed.
3177 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
3178
3179 2003-03-30 Andrew Cagney <cagney@redhat.com>
3180
3181 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
3182 * gdbarch.h, gdbarch.c: Regenerate.
3183 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
3184 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
3185 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3186 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3187 * i386-tdep.c (i386_gdbarch_init): Ditto.
3188 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3189 * cris-tdep.c (cris_gdbarch_init): Ditto.
3190 * vax-tdep.c (vax_gdbarch_init): Ditto.
3191 * s390-tdep.c (s390_gdbarch_init): Ditto.
3192 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3193 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3194 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3195 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
3196 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3197 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
3198 * sparc-tdep.c (sparc_gdbarch_init): Update.
3199 * sh-tdep.c (sh_gdbarch_init): Update.
3200 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3201 * mips-tdep.c (mips_gdbarch_init): Update.
3202 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3203 * ia64-tdep.c (ia64_gdbarch_init): Update.
3204 * frv-tdep.c (frv_gdbarch_init): Update.
3205 * avr-tdep.c (avr_gdbarch_init): Update.
3206 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
3207 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
3208 instead of when push_dummy_call is not available.
3209
3210 2003-03-30 Andrew Cagney <cagney@redhat.com>
3211
3212 * infttrace.c: Include "gdbthread.h".
3213 (parent_attach_all): Fix function signature.
3214 (call_ptrace): Update call.
3215 * Makefile.in (infttrace.o): Update dependencies.
3216
3217 2003-03-30 Andrew Cagney <cagney@redhat.com>
3218
3219 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
3220 PUSH_RETURN_ADDRESS.
3221 * gdbarch.h, gdbarch.c: Regenerate.
3222 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3223 * x86-64-tdep.c (x86_64_init_abi): Update.
3224 * v850-tdep.c (v850_gdbarch_init): Update.
3225 * sparc-tdep.c (sparc_gdbarch_init): Update.
3226 * sh-tdep.c (sh_gdbarch_init): Update.
3227 * s390-tdep.c (s390_gdbarch_init): Update.
3228 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3229 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3230 * mips-tdep.c (mips_gdbarch_init): Update.
3231 * mcore-tdep.c (mcore_gdbarch_init): Update.
3232 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3233 * ia64-tdep.c (ia64_gdbarch_init): Update.
3234 * i386-tdep.c (i386_gdbarch_init): Update.
3235 * h8300-tdep.c (h8300_gdbarch_init): Update.
3236 * frv-tdep.c (frv_gdbarch_init): Update.
3237 * cris-tdep.c (cris_gdbarch_init): Update.
3238 * avr-tdep.c (avr_gdbarch_init): Update.
3239 * arm-tdep.c (arm_gdbarch_init): Update.
3240 * valops.c (hand_function_call): Update.
3241
3242 2003-03-29 Andrew Cagney <cagney@redhat.com>
3243
3244 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
3245 sizeof_call_dummy_words.
3246 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
3247 define.
3248 * gdbarch.h: Regenerate.
3249
3250 2003-03-29 Andrew Cagney <cagney@redhat.com>
3251
3252 * infttrace.h: New file.
3253 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
3254 (hpread_get_textlow): Detect an uninitialized dn_bufp.
3255 (hpread_read_doc_function_type): Detect an initialized type1.
3256 (hpread_quick_traverse): Initialize mod_name_string.
3257 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
3258 (som_solib_get_solib_by_pc): Declare.
3259 (so_lib_thread_start_addr): Declare.
3260 (no_shared_libraries): Declare.
3261 * somread.c (init_import_symbols): Make static. Add forward
3262 declaration.
3263 * config/pa/nm-hppah.h: Include "infttrace.h" for
3264 parent_attach_all.
3265 (hppa_insert_hw_watchpoint): Declare.
3266 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
3267 * hppah-nat.c: Include "gdb_string.h".
3268 (parent_attach_all): Delete extern declaration, moved to
3269 "infttrace.h".
3270 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
3271 int.
3272 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
3273 * Makefile.in (infttrace_h): Define.
3274 (hpread.o): Update dependencies.
3275 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
3276 * hppa-hpux-tdep.c: Include "gdb_string.h".
3277 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
3278 * infrun.c (handle_inferior_event): Always initialize
3279 stepped_after_stopped_by_watchpoint. Add default and remove
3280 fallthrough in switch statement.
3281 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
3282 parameter to int.
3283 (hppa_remove_hw_watchpoint): Ditto.
3284
3285 2003-03-29 Andrew Cagney <cagney@redhat.com>
3286
3287 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
3288 offset.
3289
3290 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
3291
3292 * arm-tdep.c (arm_push_arguments): Delete.
3293 (struct stack_item): New type.
3294 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
3295 (arm_store_struct_return): Delte.
3296 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
3297 arm_push_arguments or arm_store_struct_return.
3298
3299 2003-03-28 Andrew Cagney <cagney@redhat.com>
3300
3301 * Makefile.in (d10v-tdep.o): Update dependencies.
3302 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
3303 * d10v-tdep.c: Include "remote.h".
3304 (target_resume_hook): Delete extern declaration.
3305 (target_wait_loop_hook): Ditto.
3306 (tdisassemble_command): Eliminate assignment in "if" conditional.
3307 (d10v_ts2_register_sim_regno): Eliminate call to
3308 legacy_register_sim_regno.
3309 (d10v_ts3_register_sim_regno): Ditto.
3310
3311 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
3312
3313 * thread.c: Reindented.
3314 * lin-lwp.c: Ditto.
3315 * linux-proc.c: Ditto.
3316
3317 2003-03-28 Bob Rossi <bob_rossi@cox.net>
3318
3319 * MAINTAINERS (write after approval): Add myself.
3320
3321 2003-03-27 Theodore A. Roth <troth@openavr.org>
3322
3323 * objc-exp.y: Add missing semi-colons.
3324
3325 2003-03-27 Andrew Cagney <cagney@redhat.com>
3326
3327 * regcache.c (write_sp): Delete function and references.
3328 * inferior.h (write_sp): Delete declaration.
3329 * valops.c (hand_function_call): Replace write_sp with
3330 TARGET_WRITE_SP.
3331 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
3332 (sparc_pop_frame): Ditto.
3333
3334 2003-03-27 Andrew Cagney <cagney@redhat.com>
3335
3336 * NEWS: Mention removal of support for hppa*-*-bsd* and
3337 hppa*-*-osf* natives, and hppa*-*-pro* target.
3338 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
3339 * config/pa/xm-pa.h: Obsolete file.
3340 * config/pa/xm-hppab.h: Obsolete file.
3341 * config/pa/nm-hppab.h: Obsolete file.
3342 * config/pa/tm-hppab.h: Obsolete file.
3343 * config/pa/tm-hppao.h: Obsolete file.
3344 * config/pa/nm-hppao.h: Obsolete file.
3345 * config/pa/tm-pro.h: Obsolete file.
3346 * config/pa/hppaosf.mt: Obsolete file.
3347 * config/pa/hppaosf.mh: Obsolete file.
3348 * config/pa/hppapro.mt: Obsolete file.
3349 * config/pa/hppabsd.mt: Obsolete file.
3350 * config/pa/hppabsd.mh: Obsolete file.
3351 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
3352 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
3353 hppa*-*-osf*.
3354
3355 2003-03-27 Andrew Cagney <cagney@redhat.com>
3356
3357 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
3358 push_arguments. Don't set push_return_address or write_sp.
3359 (d10v_push_dummy_call): Replace d10v_push_arguments.
3360 (d10v_push_return_address, d10v_write_sp): Delete function,
3361 handled by push_dummy_call.
3362
3363 2003-03-26 Andrew Cagney <cagney@redhat.com>
3364
3365 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
3366 (push_dummy_call): New pure multi-arch replacement with gdbarch,
3367 regcache and dummy_addr parameters.
3368 * gdbarch.h, gdbarch.c: Re-generate.
3369 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
3370 available; assume it will handle stack alignment and return
3371 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
3372 legacy_push_arguments.
3373 (legacy_push_arguments): Rename default_push_arguments.
3374 * value.h (legacy_push_arguments): Rename default_push_arguments.
3375 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
3376 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
3377 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
3378 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
3379 * config/i386/tm-symmetry.h: Update.
3380 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3381 * x86-64-tdep.c (x86_64_init_abi): Update.
3382 * v850-tdep.c (v850_gdbarch_init): Update.
3383 * sparc-tdep.c (sparc_gdbarch_init): Update.
3384 * sh-tdep.c (sh_gdbarch_init): Update.
3385 * s390-tdep.c (s390_gdbarch_init): Update.
3386 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3387 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3388 * mips-tdep.c (mips_gdbarch_init): Update.
3389 * mcore-tdep.c (mcore_gdbarch_init): Update.
3390 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3391 * ia64-tdep.c (ia64_gdbarch_init): Update.
3392 * i386-tdep.c (i386_gdbarch_init): Update.
3393 * hppa-tdep.c (hppa_gdbarch_init): Update.
3394 * h8300-tdep.c (h8300_gdbarch_init): Update.
3395 * frv-tdep.c (frv_gdbarch_init): Update.
3396 * d10v-tdep.c (d10v_gdbarch_init): Update.
3397 * cris-tdep.c (cris_gdbarch_init): Update.
3398 * avr-tdep.c (avr_gdbarch_init): Update.
3399 * arm-tdep.c (arm_gdbarch_init): Update.
3400 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3401 * alpha-tdep.c (alpha_gdbarch_init): Update.
3402
3403 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
3404
3405 * signals/signals.c (do_target_signal_to_host): Correct realtime
3406 signal range test.
3407
3408 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
3409
3410 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
3411 (struct sal_chain, map_catch_names): Remove.
3412 (catch_exception_command_1): Don't call
3413 handle_gnu_4_16_catch_command.
3414
3415 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
3416
3417 From Mark Dettinger <dettinge@de.ibm.com>:
3418 * dwarf2cfi.c (read_2u): Increment pointer by two.
3419
3420 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
3421
3422 * signals/signals.c: Fix typos in last change.
3423
3424 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
3425
3426 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
3427 not already defined. Use __SIGRTMIN if available.
3428 (target_signal_from_host): Remove SIGRTMIN block.
3429 (do_target_signal_to_host): Remove SIGRTMIN block; check that
3430 the signal is within the realtime range.
3431
3432 2003-03-25 Adam Fedor <fedor@gnu.org>
3433
3434 * Makefile.in (infrun.o): Add $(language_h)
3435 * infrun.c (handle_inferior_event): Use skip_language_trampoline
3436 for language specific trampolines.
3437 * language.h (struct language_defn): Add skip_trampoline.
3438 (skip_language_trampoline): Declare.
3439 * language.c (unk_lang_trampoline, skip_language_trampoline):
3440 New functions.
3441 (unknown_language_defn, auto_language_defn, local_language_defn):
3442 Add ukn_lang_trampoline.
3443 * ada-lang.c (ada_language_defn): Add NULL for language
3444 specific skip_trampoline.
3445 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
3446 scm-lang.c: Likewise.
3447 * objc-lang.c (objc_skip_trampoline): New function.
3448 (objc_language_defn): Add objc_skip_trampoline.
3449
3450 2003-03-25 Andrew Cagney <cagney@redhat.com>
3451
3452 * frame.c (get_prev_frame): Delay validating a frame's ID -
3453 non-NULL, didn't go backwards - until an attempt to unwind it to
3454 the previous frame.
3455
3456 2003-03-25 Andrew Cagney <cagney@redhat.com>
3457
3458 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
3459 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
3460 * gdbarch.h, gdbarch.c: Re-generate.
3461 * config/sparc/tm-sparc.h
3462 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
3463 * sparc-tdep.c (sparc_gdbarch_init): Set
3464 deprecated_extra_stack_alignment_needed.
3465 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
3466 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
3467 extra_stack_alignment_needed.
3468 * v850-tdep.c (v850_gdbarch_init): Ditto.
3469 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
3470 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3471 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3472 * cris-tdep.c (cris_gdbarch_init): Ditto.
3473 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3474 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3475
3476 2003-03-25 Andrew Cagney <cagney@redhat.com>
3477
3478 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
3479 STORE_STRUCT_RETURN.
3480 * gdbarch.h, gdbarch.c: Regenerate.
3481 * d10v-tdep.c (d10v_store_struct_return): Delete function.
3482 (d10v_push_arguments): Set the struct return register.
3483 (d10v_gdbarch_init): Update.
3484 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3485 * x86-64-tdep.c (x86_64_init_abi): Update.
3486 * vax-tdep.c (vax_gdbarch_init): Update.
3487 * v850-tdep.c (v850_gdbarch_init): Update.
3488 * sparc-tdep.c (sparc_gdbarch_init): Update.
3489 * sh-tdep.c (sh_gdbarch_init): Update.
3490 * s390-tdep.c (s390_gdbarch_init): Update.
3491 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3492 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3493 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3494 * mips-tdep.c (mips_gdbarch_init): Update.
3495 * mcore-tdep.c (mcore_gdbarch_init): Update.
3496 * m68k-tdep.c (m68k_gdbarch_init): Update.
3497 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3498 * ia64-tdep.c (ia64_gdbarch_init): Update.
3499 * i386-tdep.c (i386_gdbarch_init): Update.
3500 * hppa-tdep.c (hppa_gdbarch_init): Update.
3501 * h8300-tdep.c (h8300_gdbarch_init): Update.
3502 * frv-tdep.c (frv_gdbarch_init): Update.
3503 * cris-tdep.c (cris_gdbarch_init): Update.
3504 * avr-tdep.c (avr_gdbarch_init): Update.
3505 * arm-tdep.c (arm_gdbarch_init): Update.
3506 * alpha-tdep.c (alpha_gdbarch_init): Update.
3507
3508 2003-03-25 Andrew Cagney <cagney@redhat.com>
3509
3510 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
3511 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
3512 CALL_DUMMY_STACK_ADJUST with a predicate variable.
3513 * gdbarch.h, gdbarch.c: Regenerate.
3514 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3515 call_dummy_stack_adjust_p.
3516 * vax-tdep.c (vax_gdbarch_init): Ditto.
3517 * v850-tdep.c (v850_gdbarch_init): Ditto.
3518 * sh-tdep.c (sh_gdbarch_init): Ditto.
3519 * s390-tdep.c (s390_gdbarch_init): Ditto.
3520 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3521 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3522 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3523 * mips-tdep.c (mips_gdbarch_init): Ditto.
3524 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3525 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3526 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3527 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3528 * i386-tdep.c (i386_gdbarch_init): Ditto.
3529 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3530 * frv-tdep.c (frv_gdbarch_init): Ditto.
3531 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3532 * cris-tdep.c (cris_gdbarch_init): Ditto.
3533 * avr-tdep.c (avr_gdbarch_init): Ditto.
3534 * arm-tdep.c (arm_gdbarch_init): Ditto.
3535 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3536 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
3537 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
3538 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
3539 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
3540 call_dummy_stack_adjust_p.
3541 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
3542 (CALL_DUMMY_STACK_ADJUST): Delete macro.
3543 * sparc-tdep.c (sparc32_push_arguments): Update.
3544 * valops.c (hand_function_call): Update.
3545
3546 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
3547
3548 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
3549 set_gdbarch_char_signed.
3550
3551 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
3552
3553 PR cli/548
3554 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
3555
3556 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
3557
3558 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
3559 (_initialize_arm_tdep): Don't set tm_print_insn.
3560
3561 2003-03-24 Adam Fedor <fedor@gnu.org>
3562
3563 * Makefile.in (YYOBJ): Add objc-exp.tab.o
3564 * objc-lang.h: Add multiple inclusion protection.
3565 (start_msglist, add_msglist, end_msglist): Additional declarations.
3566
3567 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
3568
3569 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
3570 value was renamed to ARM_FLOAT_SOFT_FPA.
3571
3572 2003-03-23 Andrew Cagney <cagney@redhat.com>
3573
3574 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
3575 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
3576 * gdbarch.h, gdbarch.c: Regenerate.
3577 * valops.c (hand_function_call): Update.
3578 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
3579 * frame.c (legacy_saved_regs_this_id): Update.
3580 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
3581 * dummy-frame.h: Update.
3582 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
3583 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
3584 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
3585 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
3586 * config/m68k/tm-sun3.h: Update.
3587 * blockframe.c (inside_main_func, frame_chain_valid): Update.
3588 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3589 * x86-64-tdep.c (x86_64_init_abi): Update.
3590 * vax-tdep.c (vax_gdbarch_init): Update.
3591 * v850-tdep.c (v850_gdbarch_init): Update.
3592 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
3593 * sh-tdep.c (sh_gdbarch_init): Update.
3594 * s390-tdep.c (s390_gdbarch_init): Update.
3595 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3596 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
3597 (frame_get_saved_regs): Update.
3598 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
3599 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3600 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3601 * mips-tdep.c (mips_gdbarch_init): Update.
3602 * mcore-tdep.c (mcore_gdbarch_init): Update.
3603 * m68k-tdep.c (m68k_gdbarch_init): Update.
3604 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3605 * ia64-tdep.c (ia64_gdbarch_init): Update.
3606 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
3607 * i386-interix-tdep.c (i386_interix_init_abi): Update.
3608 (i386_interix_back_one_frame): Update.
3609 * hppa-tdep.c (hppa_gdbarch_init): Update.
3610 (hppa_init_extra_frame_info): Update.
3611 * h8300-tdep.c (h8300_gdbarch_init): Update.
3612 * frv-tdep.c (frv_gdbarch_init): Update.
3613 * cris-tdep.c (cris_gdbarch_init): Update.
3614 * avr-tdep.c (avr_gdbarch_init): Update.
3615 * arm-tdep.c (arm_gdbarch_init): Update.
3616 * alpha-tdep.c (alpha_gdbarch_init): Update.
3617
3618 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
3619
3620 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
3621 (arm_get_fp_model): Declare.
3622 * arm-tdep.c (fp_model_strings): New string array.
3623 (arm_fp_model, current_fp_model): New variables.
3624 (arm_get_fp_model): New function.
3625 (arm_set_fp): New function.
3626 (set_fp_model_sfunc): New function.
3627 (show_fp_model): New function.
3628 (_initialize_arm_tdep): Add new command to set/show the FPU.
3629 (arm_extract_return_value): Use arm_get_fp_model.
3630 (arm_store_return_value): Likewise.
3631 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
3632 to initialize the floating-point data types.
3633 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
3634 model is FPA.
3635
3636 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
3637
3638 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
3639 the current setting of each value.
3640 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
3641 new_set and new_show. Use add_setshow_cmd_full and
3642 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
3643 commands and add new version as subcommands of "set/show arm".
3644
3645 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
3646
3647 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
3648 (set_arm_command, show_arm_command): New functions.
3649 (_initialize_arm_tdep): Add them.
3650 (num_disassembly_options): Renamed from num_flavor_options.
3651 (valid_disassembly_styles): Renamed from valid_flavors.
3652 (disassembly_style): Renamed from disassembly_flavor.
3653 (set_disassembly_style_sfunc): Renamed from
3654 set_disassembly_flavor_sfunc.
3655 (set_disassembly_style): Renamed from set_disassembly_flavor.
3656 (arm_othernames): Updated.
3657 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
3658 command. Add "set/show arm disassembly" commands. Deprecate
3659 "othernames" command.
3660
3661 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
3662
3663 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
3664 (arm-tdep.o): Depend on elf_arm_h.
3665
3666 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
3667
3668 * Makefile.in (coff_internal_h): Define.
3669 (arm-tdep.o): Update dependencies.
3670
3671 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
3672
3673 * arm-tdep.c (prologue_cache): Delete.
3674 (check_prologue_cache, save_prologue_cache): Delete.
3675 (arm_scan_prologue): Don't check or update the prologue_cache.
3676 (arm_gdb_arch_init): Don't initialize it.
3677 (_initialize_arm_tdep): Likewise.
3678
3679 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
3680
3681 * MAINTAINERS (tui): Maintainer of tui code.
3682
3683 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
3684
3685 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
3686 (i386-cygwin-tdep.o): Add dependencies.
3687 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
3688 * i386-cygwin-tdep.c: New file.
3689 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
3690 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
3691
3692 2003-03-20 Andrew Cagney <cagney@redhat.com>
3693
3694 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
3695 (handle_inferior_event): Remove code calling
3696 DYNAMIC_TRAMPOLINE_NEXTPC.
3697
3698 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
3699 already has a full path.
3700
3701 * main.c (gdb_main): Return 1.
3702 (captured_main): Call error to report an invalid interpreter.
3703
3704 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3705 * alpha-osf1-tdep.c: Include "gdb_string.h".
3706
3707 2003-03-19 J. Brobecker <brobecker@gnat.com>
3708
3709 Continuing work to convert the hppa targets to multiarch partial.
3710
3711 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
3712 method, now that hppa_push_dummy_frame has a conformant prototype.
3713 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
3714 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
3715 for the switch to multiarch partial.
3716
3717 2003-03-19 Kevin Buettner <kevinb@redhat.com>
3718
3719 * mdebugread.c (parse_symbol): For stEnd, we're done counting
3720 when iss is issNull.
3721
3722 2003-03-18 Kevin Buettner <kevinb@redhat.com>
3723
3724 * mips-tdep.c (mips_register_name): Fix fencepost error involving
3725 NUM_REGS bounds check.
3726
3727 2003-03-18 Kevin Buettner <kevinb@redhat.com>
3728
3729 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
3730 * mips-tdep.c (gdb_assert.h): Include.
3731 (mips_generic_reg_names, mips_processor_reg_names): Make static.
3732 (mips_register_name): Handle integer registers explicitly. Add
3733 bounds checking.
3734 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
3735 (mips_lsi33k_reg_names): Don't list integer registers; they're
3736 handled by mips_register_name() now.
3737 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
3738 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
3739 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
3740 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
3741 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
3742
3743 2003-03-18 Andrew Cagney <cagney@redhat.com>
3744
3745 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
3746 a void pointer.
3747 * gdbtypes.h (print_scalar_formatted): Update declaration.
3748 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
3749
3750 2003-03-18 J. Brobecker <brobecker@gnat.com>
3751
3752 * infrun.c (observer.h): Add #include.
3753 (normal_stop): Add call to observer_notify_normal_stop.
3754 * Makefile.in (infrun.o): Add dependency on observer.h.
3755
3756 2003-03-18 J. Brobecker <brobecker@gnat.com>
3757
3758 Continuing work to convert the hppa targets to multiarch partial.
3759 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
3760 parameter. Reformat comment.
3761 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
3762 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
3763 to match new profile.
3764
3765 2003-03-18 J. Brobecker <brobecker@gnat.com>
3766
3767 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
3768 appear to be working in any case.
3769
3770 2003-03-18 J. Brobecker <brobecker@gnat.com>
3771
3772 * observer.c (observer_test_first_observer): New static variable.
3773 (observer_test_second_observer): Likewise.
3774 (observer_test_third_observer): Likewise.
3775 (observer_test_first_notification_function): New static function.
3776 (observer_test_second_notification_function): Likewise.
3777 (observer_test_third_notification_function): Likewise.
3778
3779 2003-03-17 J. Brobecker <brobecker@gnat.com>
3780
3781 * hppa-tdep.c (gdb_assert.h): Add missing #include.
3782 * somsolib.c (gdb_assert.h): Likewise.
3783 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
3784 (somsolib.o): Likewise.
3785
3786 2003-03-17 Andrew Cagney <cagney@redhat.com>
3787
3788 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
3789 BFD. Simplify setting of di.endian.
3790
3791 2003-03-17 Andrew Cagney <cagney@redhat.com>
3792
3793 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
3794 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
3795
3796 From Elena Zannoni <ezannoni@redhat.com>
3797 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
3798 vector and floating-point parameters.
3799 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
3800 convention.
3801 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
3802
3803 2003-03-17 Fernando Nasser <fnasser@redhat.com>
3804
3805 * MAINTAINERS: Remove my name from several maintainership roles.
3806
3807 2003-03-17 Andrew Cagney <cagney@redhat.com>
3808
3809 Fix frame off-by-one bug.
3810 * frame-unwind.h (frame_this_id_ftype): Replace
3811 frame_unwind_id_ftype.
3812 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
3813 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
3814 with "prev_register".
3815 * frame-unwind.c (frame_unwind_find_by_pc): Return
3816 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
3817 comment.
3818 * dummy-frame.c (cached_find_dummy_frame): Delete function.
3819 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
3820 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
3821 (dummy_frame_unwind): Update.
3822 * sentinel-frame.c (sentinel_frame_prev_register): Replace
3823 sentinel_frame_register_unwind.
3824 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
3825 (sentinel_frame_unwinder): Update.
3826 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
3827 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
3828 * frame.c (create_sentinel_frame): Update. Initialize
3829 "prologue_cache" instead of "unwind_cache".
3830 (frame_register_unwind): Call this frame's prev_register with the
3831 next frame and this frame's prologue cache.
3832 (get_prev_frame): Simplify. Always call prev frame's this_id with
3833 this frame and prev frame's prologue cache. Document that this
3834 call is shifted one to the left when compared to the
3835 frame_register_unwind call.
3836 (legacy_saved_regs_prev_register): Replace
3837 frame_saved_regs_register_unwind.
3838 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
3839 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
3840 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
3841 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
3842 (d10v_frame_unwind): Update.
3843 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
3844 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
3845 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
3846 "saved_regs" with "this_saved_regs".
3847
3848 2003-03-16 Andrew Cagney <cagney@redhat.com>
3849
3850 * frame.c (frame_pop): Don't call target_store_registers. Fix
3851 problem reported by Mark Kettenis.
3852
3853 2003-03-16 Mark Kettenis <kettenis@gnu.org>
3854
3855 * i386-tdep.c (i386_register_type): Renamed from
3856 i386_register_virtual_type. Adjust function signature.
3857 (i386_gdbarch_init): Set register_type instead of
3858 deprecated_max_register_raw_size,
3859 deprecated_max_register_virtual_size and register_virtual_type.
3860
3861 2003-03-14 Andrew Cagney <cagney@redhat.com>
3862
3863 * frame.c (get_prev_frame): When a legacy frame, always call
3864 legacy_get_prev_frame. Simplify unwind code using assumption that
3865 the unwinder is new.
3866 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
3867 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
3868 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
3869
3870 2003-03-14 Andrew Cagney <cagney@redhat.com>
3871
3872 * frame.c (get_saved_register): Delete function.
3873 * frame.h (get_saved_register): Delete declaration.
3874 * xstormy16-tdep.c: Update comment.
3875 * regcache.h: Update comments.
3876 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
3877 get_saved_register and extract_address, use
3878 frame_read_unsigned_register.
3879 (sparc_frame_saved_pc): Ditto.
3880 (sparc_get_saved_register): Instead of get_saved_register, use
3881 frame_register.
3882 (sparc_pop_frame): Ditto.
3883 * findvar.c: Update comments.
3884 (value_of_register): Call frame_register instead of
3885 get_saved_register.
3886 (value_from_register): Ditto.
3887 * config/sparc/tm-sparc.h: Update comment.
3888 * breakpoint.c: Update comment.
3889
3890 2003-03-14 Andrew Cagney <cagney@redhat.com>
3891
3892 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
3893 GET_SAVED_REGISTER.
3894 * gdbarch.h, gdbarch.c: Re-generate.
3895 * frame.h: Update comments.
3896 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3897 * x86-64-tdep.c (x86_64_init_abi): Update.
3898 * sparc-tdep.c (sparc_gdbarch_init): Update.
3899 * sh-tdep.c (sh_gdbarch_init): Update.
3900 * mips-tdep.c (mips_gdbarch_init): Update.
3901 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3902 * cris-tdep.c (cris_gdbarch_init): Update.
3903 * ia64-tdep.c (ia64_gdbarch_init): Update.
3904 * frame.c (frame_register): Update.
3905 (get_saved_register): Update.
3906 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
3907
3908 2003-03-13 Andrew Cagney <cagney@redhat.com>
3909
3910 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
3911 * gdbarch.h, gdbarch.c: Regenerate.
3912 * valops.c (hand_function_call): Update comment.
3913 * stack.c (return_command): Update comment.
3914 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
3915 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
3916 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3917 * x86-64-tdep.c (x86_64_init_abi): Update.
3918 * vax-tdep.c (vax_gdbarch_init): Update.
3919 * v850-tdep.c (v850_gdbarch_init): Update.
3920 * sparc-tdep.c (sparc_gdbarch_init): Update.
3921 * sh-tdep.c (sh_gdbarch_init): Update.
3922 * s390-tdep.c (s390_gdbarch_init): Update.
3923 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3924 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3925 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3926 * mips-tdep.c (mips_gdbarch_init): Update.
3927 * mcore-tdep.c (mcore_gdbarch_init): Update.
3928 * m68k-tdep.c (m68k_gdbarch_init): Update.
3929 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3930 * ia64-tdep.c (ia64_gdbarch_init): Update.
3931 * i386-tdep.c (i386_gdbarch_init): Update.
3932 * hppa-tdep.c (hppa_gdbarch_init): Update.
3933 * h8300-tdep.c (h8300_gdbarch_init): Update.
3934 * frv-tdep.c (frv_gdbarch_init): Update.
3935 * cris-tdep.c (cris_gdbarch_init): Update.
3936 * avr-tdep.c (avr_gdbarch_init): Update.
3937 * arm-tdep.c (arm_gdbarch_init): Update.
3938 * alpha-tdep.c (alpha_gdbarch_init): Update.
3939
3940 2003-03-13 Andrew Cagney <cagney@redhat.com>
3941
3942 * frame.c (legacy_frame_p): New function.
3943 (get_prev_frame): Use legacy_frame_p.
3944 * frame.h (legacy_frame_p): Declare.
3945
3946 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
3947
3948 * MAINTAINERS (write after approval): Alphabetically
3949 listing corrected.
3950
3951 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
3952
3953 * MAINTAINERS (write after approval): Add myself.
3954
3955 2003-03-12 Andrew Cagney <cagney@redhat.com>
3956
3957 * frame.c (get_prev_frame): Rename the frame parameter to
3958 "this_frame".
3959 (get_next_frame, legacy_get_prev_frame): Ditto.
3960
3961 2003-03-12 Andrew Cagney <cagney@redhat.com>
3962
3963 * frame.c (get_current_frame): Check target_has_registers before
3964 checking target_has_stack.
3965 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
3966 instead of deprecated_selected_frame.
3967 * findvar.c (value_of_register): Pass "frame", not
3968 deprecated_selected_frame, to value_of_builtin_reg.
3969
3970 2003-03-12 Andrew Cagney <cagney@redhat.com>
3971
3972 * regcache.c (regcache_cooked_write_signed): New function.
3973 (regcache_cooked_write_unsigned): New function.
3974 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
3975 (regcache_cooked_read_signed): Fix regnum in range assertion.
3976 * regcache.h (regcache_cooked_write_signed): Declare.
3977 (regcache_cooked_write_unsigned): Declare.
3978
3979 2003-03-12 Andrew Cagney <cagney@redhat.com>
3980
3981 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
3982 * gdbarch.h, gdbarch.c: Re-generate.
3983 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3984 * x86-64-tdep.h: Update.
3985 * x86-64-tdep.c (x86_64_init_abi): Update.
3986 * v850-tdep.c (v850_gdbarch_init): Update.
3987 * sparc-tdep.c (sparc_gdbarch_init): Update.
3988 * sh-tdep.c (sh_gdbarch_init): Update.
3989 * s390-tdep.c (s390_gdbarch_init): Update.
3990 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3991 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
3992 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3993 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3994 * mips-tdep.c (mips_gdbarch_init): Update.
3995 * mcore-tdep.c (mcore_gdbarch_init): Update.
3996 * m68k-tdep.c (m68k_gdbarch_init): Update.
3997 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3998 * ia64-tdep.c (ia64_gdbarch_init): Update.
3999 * i386-tdep.c (i386_gdbarch_init): Update.
4000 * i386-interix-tdep.c (i386_interix_init_abi): Update.
4001 * hppa-tdep.c (hppa_gdbarch_init): Update.
4002 * h8300-tdep.c (h8300_gdbarch_init): Update.
4003 * frv-tdep.c (frv_gdbarch_init): Update.
4004 * cris-tdep.c (cris_gdbarch_init): Update.
4005 * avr-tdep.c (avr_gdbarch_init): Update.
4006 * arm-tdep.c (arm_gdbarch_init): Update.
4007 * alpha-tdep.c (alpha_gdbarch_init): Update.
4008 * sh-tdep.c (sh_init_extra_frame_info): Update.
4009 (sh64_init_extra_frame_info): Update.
4010 * ns32knbsd-nat.c (frame_num_args): Update.
4011 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
4012 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
4013 (xstormy16_frame_chain_valid): Update.
4014 * vax-tdep.c (vax_saved_pc_after_call): Update.
4015 * v850-tdep.c (v850_frame_chain): Update.
4016 (v850_pop_frame): Update.
4017 (v850_init_extra_frame_info): Update.
4018 * sparc-tdep.c (setup_arbitrary_frame): Update.
4019 * ns32k-tdep.c (umax_frame_num_args): Update.
4020 * s390-tdep.c (s390_pop_frame_regular): Update.
4021 * mn10300-tdep.c (mn10300_frame_chain): Update.
4022 (mn10300_pop_frame_regular): Update.
4023 (mn10300_init_extra_frame_info): Update.
4024 * mips-tdep.c (mips_init_frame_pc_first): Update.
4025 (mips_frame_chain): Update.
4026 (mips_pop_frame): Update.
4027 * mcore-tdep.c (mcore_frame_chain): Update.
4028 (mcore_pop_frame): Update.
4029 (mcore_init_extra_frame_info): Update.
4030 * arch-utils.c (init_frame_pc_default): Update.
4031 * m68k-tdep.c (isi_frame_num_args): Update.
4032 (delta68_frame_num_args): Update.
4033 (news_frame_num_args): Update.
4034 * ia64-tdep.c (ia64_pop_frame_regular): Update.
4035 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
4036 (alpha_frame_chain): Update.
4037 (alpha_pop_frame): Update.
4038 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
4039 (hppa_init_extra_frame_info): Update.
4040 (hppa_frame_chain): Update.
4041 (hppa_frame_chain_valid): Update.
4042 * cris-tdep.c (cris_init_extra_frame_info): Update.
4043 * avr-tdep.c (avr_init_extra_frame_info): Update.
4044 * arm-tdep.c (arm_frame_chain_valid): Update.
4045 (arm_init_extra_frame_info): Update.
4046 (arm_pop_frame): Update.
4047 * frame.c (frame_pc_unwind): Update.
4048 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
4049 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4050 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4051 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
4052 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
4053 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
4054
4055 2003-03-12 Andrew Cagney <cagney@redhat.com>
4056
4057 Eliminate the need for POP_FRAME.
4058 * frame.c (do_frame_unwind_register): New function.
4059 (frame_pop): When no POP_FRAME, pop the frame using register
4060 unwind and a scratch regcache.
4061 (frame_saved_regs_pop): Delete function.
4062 (trad_frame_unwinder): Update.
4063 * d10v-tdep.c (d10v_frame_pop): Delete function.
4064 (d10v_frame_unwind): Update.
4065 * sentinel-frame.c (sentinel_frame_pop): Delete function.
4066 (sentinel_frame_unwinder): Update.
4067 * dummy-frame.c (dummy_frame_pop): Delete function.
4068 (dummy_frame_unwind): Update.
4069 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
4070 (struct frame_unwind): Update.
4071
4072 2003-03-11 Kevin Buettner <kevinb@redhat.com>
4073
4074 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
4075 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
4076 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
4077 Do range checks on register number obtained from debugging info.
4078 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
4079 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
4080 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
4081 mapping function.
4082 (do_fp_register_row): Fix typo which caused double type to be
4083 used when attempting to unpack a float.
4084
4085 2003-03-11 J. Brobecker <brobecker@gnat.com>
4086
4087 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
4088
4089 2003-03-11 Andrew Cagney <cagney@redhat.com>
4090
4091 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
4092 frame. Problem found by Corinna Vinschen.
4093
4094 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
4095
4096 * doublest.c (floatformat_from_length): Accept also
4097 the real size of 'long double' type.
4098
4099 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
4100
4101 From Klee Dienes <kdienes@apple.com>:
4102 * breakpoint.c (bpstat_copy): Copy the command lines as well
4103 as the old value, to match what is freed in bpstat_clear.
4104
4105 2003-03-10 David Carlton <carlton@math.stanford.edu>
4106
4107 * minsyms.c (add_minsym_to_hash_table): Replace
4108 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4109 (compare_minimal_symbols, compact_minimal_symbols)
4110 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
4111 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
4112 of DEPRECATED_SYMBOL_MATCHES_NAME.
4113 (lookup_minimal_symbol_solib_trampoline): Ditto.
4114
4115 2003-03-10 Andrew Cagney <cagney@redhat.com>
4116
4117 * regcache.h (regcache_cooked_read_ftype): Define.
4118 (regcache_save, regcache_restore): Add a cooked_read parameter.
4119 * regcache.c (regcache_save, regcache_restore): Update.
4120 (do_cooked_read): New function.
4121 (regcache_cpy): Pass do_cooked_read to regcache_save and
4122 regcache_restore.
4123
4124 2003-03-10 Andrew Cagney <cagney@redhat.com>
4125
4126 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
4127 * gdbarch.h, gdbarch.c: Re-generate.
4128 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4129 * x86-64-tdep.h: Update.
4130 * x86-64-tdep.c (x86_64_init_abi): Update.
4131 * v850-tdep.c (v850_gdbarch_init): Update.
4132 * sparc-tdep.c (sparc_gdbarch_init): Update.
4133 * sh-tdep.c (sh_gdbarch_init): Update.
4134 * s390-tdep.c (s390_gdbarch_init): Update.
4135 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4136 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
4137 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4138 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4139 * mips-tdep.c (mips_gdbarch_init): Update.
4140 * mcore-tdep.c (mcore_gdbarch_init): Update.
4141 * m68k-tdep.c (m68k_gdbarch_init): Update.
4142 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4143 * ia64-tdep.c (ia64_gdbarch_init): Update.
4144 * i386-tdep.c (i386_gdbarch_init): Update.
4145 * i386-interix-tdep.c (i386_interix_init_abi): Update.
4146 * hppa-tdep.c (hppa_gdbarch_init): Update.
4147 * h8300-tdep.c (h8300_gdbarch_init): Update.
4148 * frv-tdep.c (frv_gdbarch_init): Update.
4149 * cris-tdep.c (cris_gdbarch_init): Update.
4150 * avr-tdep.c (avr_gdbarch_init): Update.
4151 * arm-tdep.c (arm_gdbarch_init): Update.
4152 * alpha-tdep.c (alpha_gdbarch_init): Update.
4153 * sh-tdep.c (sh_init_extra_frame_info): Update.
4154 (sh64_init_extra_frame_info): Update.
4155 * ns32knbsd-nat.c (frame_num_args): Update.
4156 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
4157 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
4158 (xstormy16_frame_chain_valid): Update.
4159 * vax-tdep.c (vax_saved_pc_after_call): Update.
4160 * v850-tdep.c (v850_frame_chain): Update.
4161 (v850_pop_frame): Update.
4162 (v850_init_extra_frame_info): Update.
4163 * sparc-tdep.c (setup_arbitrary_frame): Update.
4164 * ns32k-tdep.c (umax_frame_num_args): Update.
4165 * s390-tdep.c (s390_pop_frame_regular): Update.
4166 * mn10300-tdep.c (mn10300_frame_chain): Update.
4167 (mn10300_pop_frame_regular): Update.
4168 (mn10300_init_extra_frame_info): Update.
4169 * mips-tdep.c (mips_init_frame_pc_first): Update.
4170 (mips_frame_chain): Update.
4171 (mips_pop_frame): Update.
4172 * mcore-tdep.c (mcore_frame_chain): Update.
4173 (mcore_pop_frame): Update.
4174 (mcore_init_extra_frame_info): Update.
4175 * arch-utils.c (init_frame_pc_default): Update.
4176 * m68k-tdep.c (isi_frame_num_args): Update.
4177 (delta68_frame_num_args): Update.
4178 (news_frame_num_args): Update.
4179 * ia64-tdep.c (ia64_pop_frame_regular): Update.
4180 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
4181 (alpha_frame_chain): Update.
4182 (alpha_pop_frame): Update.
4183 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
4184 (hppa_init_extra_frame_info): Update.
4185 (hppa_frame_chain): Update.
4186 (hppa_frame_chain_valid): Update.
4187 * cris-tdep.c (cris_init_extra_frame_info): Update.
4188 * avr-tdep.c (avr_init_extra_frame_info): Update.
4189 * arm-tdep.c (arm_frame_chain_valid): Update.
4190 (arm_init_extra_frame_info): Update.
4191 (arm_pop_frame): Update.
4192 * frame.c (frame_pc_unwind): Update.
4193 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
4194 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4195 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4196 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
4197 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
4198 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
4199
4200 2003-03-10 Andrew Cagney <cagney@redhat.com>
4201
4202 * gdbarch.sh (gdbarch_unwind_pc): New method.
4203 * gdbarch.h, gdbarch.c: Regenerate.
4204 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
4205 but use read_pc and FRAME_SAVED_PC as fall backs.
4206 (frame_saved_regs_pc_unwind): Delete function.
4207 (trad_frame_unwinder): Update.
4208 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
4209 (struct frame_unwind): Update.
4210 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
4211 (dummy_frame_unwind): Update.
4212 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
4213 (sentinel_frame_unwinder): Update.
4214 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
4215 (d10v_frame_unwind): Update.
4216 (d10v_unwind_pc): New function.
4217 (d10v_gdbarch_init): Set unwind_pc.
4218
4219 2003-03-10 Andrew Cagney <cagney@redhat.com>
4220
4221 * gdbarch.h: Re-generate.
4222
4223 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
4224 PC.
4225 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
4226 the PC register.
4227
4228 2003-03-08 Mark Kettenis <kettenis@gnu.org>
4229
4230 * gdbarch.sh (save_dummy_frame_tos): Add comment.
4231
4232 2003-03-08 Andrew Cagney <cagney@redhat.com>
4233
4234 * cli-out.c: Update copyright.
4235 (cli_out_data): Define typedef. Use instead of ui_out_data.
4236
4237 2003-03-08 Andrew Cagney <cagney@redhat.com>
4238
4239 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
4240 the result.
4241
4242 2003-03-07 Andrew Cagney <cagney@redhat.com>
4243
4244 * gdbarch.sh: Don't generate two macro definitions when an
4245 undefined macro taking no arguments.
4246 * gdbarch.h: Regenerate.
4247
4248 2002-03-07 Michal Ludvig <mludvig@suse.cz>
4249
4250 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
4251 (x86_64_unwind_dummy_id): New functions.
4252 (x86_64_init_abi): Register these two new functions.
4253
4254 2003-03-07 Michal Ludvig <mludvig@suse.cz>
4255
4256 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
4257 (x86_64_skip_prologue): Move prologue detection to
4258 separate function.
4259 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
4260
4261 2003-03-05 Andrew Cagney <cagney@redhat.com>
4262
4263 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
4264 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
4265 * frame.c (get_prev_frame): Restructure the frame ID unwind code
4266 to use unwind_dummy_id when a dummy frame.
4267 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
4268 predicate.
4269 * gdbarch.h, gdbarch.c: Regneerate.
4270
4271 2003-03-05 Andrew Cagney <cagney@redhat.com>
4272
4273 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
4274 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
4275 Do not use d10v_read_sp or d10v_read_fp when obtaining register
4276 values.
4277
4278 2003-03-05 Andrew Cagney <cagney@redhat.com>
4279
4280 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
4281 (struct d10v_unwind_cache): Delete field "frameless". Replace
4282 "next_addr" with "sp_offset". Add "r11_offset".
4283 (d10v_frame_unwind_cache): Update.
4284 (prologue_find_regs): Update. When "mv r11, sp", save the
4285 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
4286 RN was saved in r11_offset.
4287
4288 2003-03-05 Andrew Cagney <cagney@redhat.com>
4289
4290 * frame.c (deprecated_update_frame_pc_hack): Also update the the
4291 cached PC value in the next frame.
4292
4293 2003-03-05 Andrew Cagney <cagney@redhat.com>
4294
4295 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
4296 "id_unwind_cache" with "id".
4297 (frame_id_unwind): Delete declaration.
4298 * frame.c (frame_id_unwind): Delete function.
4299 (get_prev_frame): Call the frame id unwind method directly. Store
4300 the returned next frame's ID value in NEXT_FRAME. Note that there
4301 is a problem with the wrong unwind ID being called with the wrong
4302 unwind cache.
4303
4304 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
4305
4306 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
4307
4308 2003-03-05 James Ingham <jingham@apple.com>
4309 Daniel Jacobowitz <drow@mvista.com>
4310
4311 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
4312 (auto_cp_abi): New variable.
4313 (current_cp_abi, num_cp_abis): Make static.
4314 (CP_ABI_MAX): Define.
4315 (cp_abis): Turn into an array.
4316 (value_virtual_fn_field): Fix formatting.
4317 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
4318 takes a pointer.
4319 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
4320 (list_cp_abis, _initialize_cp_abi): New functions.
4321 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
4322 declarations for cp_abis, num_cp_abis, current_cp_abi, and
4323 switch_to_cp_abi. Update prototype for register_cp_abi.
4324 * Makefile.in (cp-abi.o): Update dependencies.
4325 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
4326 instead of switch_to_cp_abi.
4327 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
4328 register_cp_abi.
4329 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
4330 register_cp_abi.
4331 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
4332
4333 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
4334
4335 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
4336 * dwarf2loc.c: Include "regcache.h".
4337 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
4338 register_size.
4339 * Makefile.in (dwarf2loc.o): Update dependencies.
4340
4341 2003-03-04 Theodore A. Roth <troth@openavr.org>
4342
4343 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
4344 number of io registers reported by remote target is not a multiple of
4345 step.
4346
4347 2003-03-04 David Carlton <carlton@math.stanford.edu>
4348
4349 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
4350 (lookup_symbol_aux_psymtabs): Update call to
4351 lookup_partial_symbol.
4352 (lookup_transparent_type, find_main_psymtab)
4353 (make_symbol_overload_list): Ditto.
4354
4355 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
4356
4357 * MAINTAINERS (Write after approval): Update my email address.
4358
4359 2003-03-03 Andrew Cagney <cagney@redhat.com>
4360
4361 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
4362 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
4363 predicate. Replace MAX_REGISTER_RAW_SIZE.
4364 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
4365 MAX_REGISTER_VIRTUAL_SIZE.
4366 * regcache.c (legacy_max_register_raw_size): New function.
4367 (legacy_max_register_virtual_size): New function.
4368 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
4369 (MAX_REGISTER_RAW_SIZE): Define.
4370 (legacy_max_register_raw_size): Declare.
4371 (legacy_max_register_virtual_size): Declare.
4372 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4373 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
4374 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4375 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
4376 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4377 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
4378 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
4379 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
4380 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
4381 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4382 * vax-tdep.c (vax_gdbarch_init): Update.
4383 * v850-tdep.c (v850_gdbarch_init): Update.
4384 * sparc-tdep.c (sparc_gdbarch_init): Update.
4385 * sh-tdep.c (sh_gdbarch_init): Update.
4386 * s390-tdep.c (s390_gdbarch_init): Update.
4387 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4388 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4389 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4390 * mips-tdep.c (mips_gdbarch_init): Update.
4391 * mcore-tdep.c (mcore_gdbarch_init): Update.
4392 * m68k-tdep.c (m68k_gdbarch_init): Update.
4393 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4394 * ia64-tdep.c (ia64_gdbarch_init): Update.
4395 * i386-tdep.c (i386_gdbarch_init): Update.
4396 * hppa-tdep.c (hppa_gdbarch_init): Update.
4397 * h8300-tdep.c (h8300_gdbarch_init): Update.
4398 * frv-tdep.c (frv_gdbarch_init): Update.
4399 * cris-tdep.c (cris_gdbarch_init): Update.
4400 * avr-tdep.c (avr_gdbarch_init): Update.
4401 * arm-tdep.c (arm_gdbarch_init): Update.
4402 * alpha-tdep.c (alpha_gdbarch_init): Update.
4403 * d10v-tdep.c (d10v_gdbarch_init): Do not set
4404 max_register_raw_size or max_register_virtual_size.
4405
4406 2003-03-03 David Carlton <carlton@math.stanford.edu>
4407
4408 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
4409 SYMBOL_MATCHES_NAME, add comment.
4410 (SYMBOL_MATCHES_NATURAL_NAME): New.
4411 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
4412 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
4413 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
4414 * symtab.c (lookup_partial_symbol): Use
4415 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
4416 unhelpful comment.
4417 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
4418 SYMBOL_MATCHES_NAME.
4419 Fix for PR c++/33.
4420
4421 2003-03-03 David Carlton <carlton@math.stanford.edu>
4422
4423 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
4424 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
4425 by regexp matching against SYMBOL_NATURAL_NAME.
4426
4427 2003-03-03 David Carlton <carlton@math.stanford.edu>
4428
4429 * linespec.c (find_method): Extract code into collect_methods.
4430 (collect_methods): New.
4431
4432 2003-03-02 Mark Kettenis <kettenis@gnu.org>
4433
4434 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
4435 get_frame_base.
4436
4437 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
4438 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4439
4440 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
4441
4442 * arch-utils.c (generic_register_byte): Fix to use the loop index
4443 and not regnum when summing the size of all registers up to regnum.
4444
4445 2003-03-01 Andrew Cagney <cagney@redhat.com>
4446
4447 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
4448 FRAME_INIT_SAVED_REGS.
4449 * gdbarch.h, gdbarch.c: Regenerate.
4450 * stack.c (frame_info): Update.
4451 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
4452 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
4453 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
4454 * ns32k-tdep.c (ns32k_pop_frame): Update.
4455 * mips-tdep.c (mips_pop_frame): Update.
4456 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
4457 * ia64-tdep.c (ia64_frame_chain): Update.
4458 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
4459 (ia64_frameless_function_invocation): Update.
4460 (ia64_init_extra_frame_info): Update.
4461 (ia64_pop_frame_regular): Update.
4462 * frame.h (struct frame_info): Update comment.
4463 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
4464 * frame.c (frame_saved_regs_register_unwind): Update.
4465 (frame_saved_regs_register_unwind): Update.
4466 (deprecated_generic_get_saved_register): Update.
4467 * cris-tdep.c: Update comment.
4468 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
4469 Rename macro.
4470 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4471 * x86-64-tdep.c (x86_64_init_abi): Update.
4472 * vax-tdep.c (vax_gdbarch_init): Update.
4473 * v850-tdep.c (v850_gdbarch_init): Update.
4474 * sparc-tdep.c (sparc_gdbarch_init): Update.
4475 * sh-tdep.c (sh_gdbarch_init): Update.
4476 * s390-tdep.c (s390_gdbarch_init): Update.
4477 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4478 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
4479 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4480 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4481 * mips-tdep.c (mips_gdbarch_init): Update.
4482 * mcore-tdep.c (mcore_gdbarch_init): Update.
4483 * m68k-tdep.c (m68k_gdbarch_init): Update.
4484 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4485 * ia64-tdep.c (ia64_gdbarch_init): Update.
4486 * i386-tdep.c (i386_gdbarch_init): Update.
4487 * frv-tdep.c (frv_gdbarch_init): Update.
4488 * avr-tdep.c (avr_gdbarch_init): Update.
4489 * arm-tdep.c (arm_gdbarch_init): Update.
4490 * alpha-tdep.c (alpha_gdbarch_init): Update.
4491
4492 2003-03-01 Andrew Cagney <cagney@redhat.com>
4493
4494 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
4495 option enum and switch. When no windows, set the interpreter to
4496 INTERP_CONSOLE.
4497
4498 2003-03-01 Andrew Cagney <cagney@redhat.com>
4499
4500 * main.c (captured_main): Replace magic option characters with an
4501 enum.
4502
4503 2003-03-01 Andrew Cagney <cagney@redhat.com>
4504
4505 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
4506 INIT_EXTRA_FRAME_INFO.
4507 * gdbarch.h, gdbarch.c: Regenerate.
4508 * arm-tdep.c: Update comments.
4509 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
4510 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
4511 * frame.h, avr-tdep.c: Ditto.
4512 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
4513 (create_new_frame, legacy_get_prev_frame): Ditto.
4514 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
4515 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
4516 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
4517 deprecated_init_extra_frame_info instead of init_extra_frame_info.
4518 * x86-64-tdep.c (x86_64_init_abi): Ditto.
4519 * v850-tdep.c (v850_gdbarch_init): Ditto.
4520 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4521 * sh-tdep.c (sh_gdbarch_init): Ditto.
4522 * s390-tdep.c (s390_gdbarch_init): Ditto.
4523 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
4524 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4525 * mips-tdep.c (mips_gdbarch_init): Ditto.
4526 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4527 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4528 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4529 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
4530 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4531 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4532 * frv-tdep.c (frv_gdbarch_init): Ditto.
4533 * cris-tdep.c (cris_gdbarch_init): Ditto.
4534 * avr-tdep.c (avr_gdbarch_init): Ditto.
4535 * arm-tdep.c (arm_gdbarch_init): Ditto.
4536 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4537 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4538
4539 2003-03-01 Andrew Cagney <cagney@redhat.com>
4540
4541 * gdbarch.sh (register_type): New function with predicate.
4542 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
4543 * gdbarch.h, gdbarch.c: Re-generate.
4544 * arch-utils.c (generic_register_byte): Use generic_register_size.
4545 (generic_register_size): When available, use
4546 gdbarch_register_type.
4547 * regcache.c (init_regcache_descr): When available, initialize the
4548 register type array using gdbarch_register_type. If the
4549 architecture supplies gdbarch_register_type, do not use the legacy
4550 regcache layout.
4551 * d10v-tdep.c (d10v_register_type): Replace
4552 d10v_register_virtual_type.
4553 (d10v_gdbarch_init): Set register_type instead of
4554 register_virtual_type.
4555
4556 2003-03-01 Andrew Cagney <cagney@redhat.com>
4557
4558 * Makefile.in (ax-gdb.o): Update dependencies.
4559 * ax-gdb.c: Include "regcache.h".
4560 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
4561 * findvar.c (value_of_register): Ditto.
4562 * infcmd.c (default_print_registers_info): Ditto.
4563
4564 2003-03-01 Mark Kettenis <kettenis@gnu.org>
4565
4566 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
4567 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4568
4569 2003-03-01 Mark Kettenis <kettenis@gnu.org>
4570
4571 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
4572 of STREQ.
4573
4574 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
4575
4576 * Makefile.in (dwarf2loc.o): Update dependencies.
4577 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
4578 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
4579 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
4580 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
4581 (locexpr_tracepoint_var_ref): New function.
4582 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
4583
4584 2003-02-28 Andrew Cagney <cagney@redhat.com>
4585
4586 * regcache.c (register_size): New function.
4587 * regcache.h (register_size): Declare
4588 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
4589 max_register_size instead of MAX_REGISTER_RAW_SIZE.
4590
4591 2003-02-28 David Carlton <carlton@math.stanford.edu>
4592
4593 * linespec.c (decode_compound): Extract code into find_method.
4594 (find_method): New.
4595
4596 2003-02-28 J. Brobecker <brobecker@gnat.com>
4597
4598 * Makefile.in: Add rules to build and link in observer.o.
4599
4600 2003-02-27 J. Brobecker <brobecker@gnat.com>
4601
4602 * observer.c: Minor comments edits.
4603
4604 2003-02-27 J. Brobecker <brobecker@gnat.com>
4605
4606 * observer.h, observer.c: New file.
4607
4608 2003-02-27 Andrew Cagney <cagney@redhat.com>
4609
4610 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
4611
4612 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
4613
4614 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
4615 (M6812_OP_STS_EXT): Likewise.
4616 (m6811_prologue): Use the above to recognize prologue.
4617 (m6812_prologue): Likewise.
4618
4619 2003-02-27 David Carlton <carlton@math.stanford.edu>
4620
4621 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
4622 SYMBOL_PRINT_NAME.
4623 (compare_psymbols): Ditto.
4624 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
4625
4626 2003-02-27 Michael Snyder <msnyder@redhat.com>
4627
4628 * f-lang.c (build_fortran_types): New function.
4629 (_initialize_f_language): Gdbarch-register built-in fortran types.
4630 * doublest.c (extract_floating): Fix warning text.
4631
4632 2003-02-27 Andrew Cagney <cagney@redhat.com>
4633
4634 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
4635 predicate. Replaces PUSH_DUMMY_FRAME.
4636 * gdbarch.h, gdbarch.c: Regnerate.
4637 * valops.c (hand_function_call): Update. Call
4638 generic_push_dummy_frame directly.
4639 * vax-tdep.c (vax_gdbarch_init): Update.
4640 * sparc-tdep.c (sparc_gdbarch_init): Update.
4641 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4642 * m68k-tdep.c (m68k_gdbarch_init): Update.
4643 * hppa-tdep.c (hppa_gdbarch_init): Update.
4644 * alpha-tdep.c (alpha_gdbarch_init): Update.
4645 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
4646 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
4647 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
4648 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
4649 push_dummy_frame to generic_push_dummy_frame.
4650 * v850-tdep.c (v850_gdbarch_init): Ditto.
4651 * sh-tdep.c (sh_gdbarch_init): Ditto.
4652 * s390-tdep.c (s390_gdbarch_init): Ditto.
4653 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4654 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4655 * mips-tdep.c (mips_gdbarch_init): Ditto.
4656 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4657 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4658 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4659 * i386-tdep.c (i386_gdbarch_init): Ditto.
4660 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4661 * frv-tdep.c (frv_gdbarch_init): Ditto.
4662 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4663 * cris-tdep.c (cris_gdbarch_init): Ditto.
4664 * avr-tdep.c (avr_gdbarch_init): Ditto.
4665 * arm-tdep.c (arm_gdbarch_init): Ditto.
4666
4667 2003-02-26 Kevin Buettner <kevinb@redhat.com>
4668
4669 * mips-tdep.c (show_mips_abi): New function.
4670 (_initialize_mips_tdep): Use show_mips_abi() to implement the
4671 command ``show mips abi''.
4672
4673 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
4674
4675 From Elena Zannoni <ezannoni@redhat.com>
4676 * dbxread.c (process_one_symbol): Only record line 0 if one or
4677 more sline entries have been seen for the function.
4678
4679 2003-02-26 Michael Chastain <mec@shout.net>
4680
4681 * configure: Regenerate with autoconf 000227.
4682
4683 2003-02-26 Michael Chastain <mec@shout.net>
4684
4685 Close PR build/660.
4686 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
4687 for old libc5/glibc.
4688 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
4689
4690 2003-02-26 Kris Warkentin <kewarken@qnx.com>
4691
4692 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
4693 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
4694
4695 2003-02-26 Michael Chastain <mec@shout.net>
4696
4697 * configure.in: New variable HAVE_UINTPTR_T.
4698 * configure, config.in: Regenerated.
4699
4700 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
4701
4702 Fix PR build/1097.
4703 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
4704
4705 2003-02-25 Andrew Cagney <cagney@redhat.com>
4706
4707 * frame.c (get_prev_frame): Add comment on check for
4708 inside_entry_func. Only check for inside_entry_file when not a
4709 dummy and not a sentinel. Check that the new frame is not inner
4710 to the old frame.
4711
4712 2003-02-25 Andrew Cagney <cagney@redhat.com>
4713
4714 * frame.c (frame_debug): New variable.
4715 (_initialize_frame): Add "set/show debug frame" command.
4716 (get_prev_frame): When frame_debug, print reason why unwind
4717 failed.
4718
4719 2003-02-25 Michael Chastain <mec@shout.net>
4720
4721 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
4722 to avoid uintptr_t definition problems.
4723
4724 2003-02-25 David Carlton <carlton@math.stanford.edu>
4725
4726 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
4727 (SYMBOL_LINKAGE_NAME): Ditto.
4728 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
4729 SYMBOL_LINKAGE_NAME.
4730 (struct general_symbol_info): Expand comment.
4731 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
4732 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
4733 (SYMBOL_MATCHES_REGEXP): Ditto.
4734 * symtab.c (symbol_natural_name): New function.
4735 * objfiles.h: Replace all uses of SYMBOL_NAME by
4736 DEPRECATED_SYMBOL_NAME.
4737 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
4738 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
4739 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
4740 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
4741 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
4742 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
4743 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
4744 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
4745 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
4746 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
4747 * ada-exp.y: Ditto.
4748 * ada-exp.y: Update copyright.
4749 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
4750 * cp-valprint.c: Ditto.
4751
4752 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
4753
4754 * infptrace.c (detach): Do not flag error if ptrace detach fails
4755 and errno is set to ESRCH.
4756
4757 2003-02-24 Andrew Cagney <cagney@redhat.com>
4758
4759 * infptrace.c (udot_info): Change type of udot_off to long. Use
4760 paddr when printing udot_off's value.
4761
4762 2003-02-24 David Carlton <carlton@math.stanford.edu>
4763
4764 * symtab.c (make_symbol_overload_list): Only read in partial
4765 symtabs containing a matching partial symbol.
4766
4767 2003-02-24 David Carlton <carlton@math.stanford.edu>
4768
4769 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
4770 do the comparison, not strcmp.
4771 * symfile.c (compare_psymbols): Ditto.
4772 * defs.h: Declare strcmp_iw_ordered.
4773 * utils.c (strcmp_iw_ordered): New function.
4774
4775 2003-02-24 Jim Blandy <jimb@redhat.com>
4776
4777 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
4778 support, shared libs): Remove my name from here, to better reflect
4779 reality.
4780
4781 2003-02-24 Kris Warkentin <kewarken@qnx.com>
4782
4783 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
4784 (target_ops): Add to_have_continuable_watchpoint.
4785 * target.c (update_current_target): Add INHERIT line for
4786 to_have_continuable_watchpoint.
4787 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
4788 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
4789 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
4790 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
4791
4792 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
4793
4794 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
4795 maintainership.
4796
4797 2003-02-24 Kris Warkentin <kewarken@qnx.com>
4798
4799 * solib.c (solib_open): Call target defined search function after
4800 failing with solib-search-path.
4801 * solist.h (target_so_ops): Add find_and_open_solib function hook and
4802 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
4803
4804 2003-02-24 Kris Warkentin <kewarken@qnx.com>
4805
4806 * MAINTAINERS: Add myself to Write After section.
4807
4808 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
4809
4810 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
4811
4812 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
4813
4814 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
4815 (m68hc11_add_reggroups): New function.
4816 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
4817 (m68hc11_gdbarch_init): Install the reggroups.
4818 (_initialize_m68hc11_tdep): Initialize them.
4819
4820 2003-02-21 James E Wilson <wilson@tuliptree.org>
4821
4822 * MAINTAINERS: Update my email address.
4823
4824 2003-02-21 David Carlton <carlton@math.stanford.edu>
4825
4826 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
4827
4828 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
4829
4830 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
4831 * symtab.h: Add opaque declarations of struct axs_value and
4832 struct agent_expr.
4833 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
4834 (struct location_funcs): New type.
4835 (struct symbol): Add "loc" to aux_value.
4836 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
4837 * dwarf2read.c: Include "dwarf2expr.h".
4838 (dwarf2_symbol_mark_computed): New function.
4839 (read_func_scope): Use it.
4840 (var_decode_location): New function.
4841 (new_symbol): Use it.
4842 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
4843
4844 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
4845 (dwarf2expr_h, dwarf2loc_h): New variables.
4846 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
4847 (dwarf2expr.o, dwarf2loc.o): New rules.
4848 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
4849 * buildsym.c (finish_block): Handle LOC_COMPUTED and
4850 LOC_COMPUTED_ARG.
4851 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
4852 * m2-exp.y (yylex): Likewise.
4853 * printcmd.c (address_info, print_frame_args): Likewise.
4854 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
4855 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
4856 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
4857 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
4858 * symtab.c (lookup_block_symbol): Likewise.
4859
4860 2003-02-20 Adam Fedor <fedor@gnu.org>
4861
4862 * symtab.h: Remove objc_specific struct
4863 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
4864 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
4865 Have language_objc use cplus_specific struct.
4866
4867 2003-02-20 Tom Tromey <tromey@redhat.com>
4868
4869 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
4870 TYPE_NAME, when printing a String value. PR java/1075.
4871
4872 2003-02-20 Adam Fedor <fedor@gnu.org>
4873
4874 * objc-lang.h (find_methods): Remove declaration.
4875 * objc-lang.c (find_methods): Make static.
4876
4877 2003-02-20 Christopher Faylor <cgf@redhat.com>
4878
4879 * win32-nat.c (get_image_name): Check return value from
4880 ReadProcessMemory.
4881 (child_xfer_memory): Ditto.
4882
4883 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
4884
4885 * configure.in (TARGET_SYSTEM_ROOT): Set default to
4886 ${exec_prefix}/${target_alias}/sys-root. Match explicit
4887 '${exec_prefix}' (in addition to the expansion thereof) as
4888 relocatable.
4889 * configure: Rebuilt.
4890
4891 2003-02-20 David Carlton <carlton@math.stanford.edu>
4892
4893 * symtab.c (search_symbols): Revert the search_symbols part of my
4894 2002-12-23 patch. Add comment.
4895
4896 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
4897
4898 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
4899 * dbxread.c (elfstab_build_psymtabs): Don't call
4900 install_minimal_symbols.
4901 (stabsect_build_psymtabs): Likewise.
4902 * elfread.c (elf_symfile_read): Call install_minimal_symbols
4903 earlier.
4904 * somread.c (som_symfile_read): Call install_minimal_symbols
4905 and do_cleanups earlier.
4906 * nlmread.c (nlm_symfile_read): Likewise.
4907 * mdebugread.c (elfmdebug_build_psymtabs): Call
4908 install_minimal_symbols and make appropriate cleanups.
4909
4910 2003-02-20 Kevin Buettner <kevinb@redhat.com>
4911
4912 * solib.c (reload_shared_libraries): New function.
4913 (_initialize_solib): Add callbacks for ``set solib-search-path''
4914 and ``set solib-absolute-prefix''.
4915
4916 2003-02-20 David Carlton <carlton@math.stanford.edu>
4917
4918 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
4919 expand comment.
4920 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
4921 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
4922 * ada-typeprint.c (ada_typedef_print): Ditto.
4923 * ax-gdb.c (gen_var_ref): Ditto.
4924 * breakpoint.c (print_one_breakpoint): Ditto.
4925 * buildsym.c (finish_block): Ditto.
4926 * c-valprint.c (c_val_print): Ditto.
4927 * expprint.c (print_subexp): Ditto.
4928 * findvar.c (locate_var_value): Ditto.
4929 * infcmd.c (jump_command): Ditto.
4930 * linespec.c (decode_line_2, decode_compound): Ditto.
4931 * maint.c (maintenance_translate_address): Ditto.
4932 * objc-lang.c (compare_selectors, compare_classes): Ditto.
4933 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
4934 Ditto.
4935 * p-valprint.c (pascal_val_print): Ditto.
4936 * stabsread.c (define_symbol): Ditto.
4937 * stack.c (print_frame, frame_info, print_block_frame_locals)
4938 (print_frame_arg_vars, return_command): Ditto.
4939 * symfile.c (compare_symbols, compare_psymbols): Ditto.
4940 * symmisc.c (print_symbol): Ditto.
4941 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
4942 (compare_search_syms, print_symbol_info, print_msymbol_info)
4943 (rbreak_command): Ditto.
4944 * tracepoint.c (tracepoints_info): Ditto.
4945 * typeprint.c (typedef_print): Ditto.
4946 * valops.c (value_of_variable, hand_function_call): Ditto.
4947 * cli/cli-cmds.c (edit_command, list_command): Ditto.
4948 * ada-typeprint.c: Update Copyright.
4949 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
4950 * tracepoint.c, cli/cli-cmds.c: Ditto.
4951
4952 2003-02-20 Kevin Buettner <kevinb@redhat.com>
4953
4954 * frame.c (generic_unwind_get_saved_register): Make non-static.
4955 * frame.h (generic_unwind_get_saved_register): Declare.
4956 * mips-tdep.c (read_next_frame_reg): Fetch register from
4957 current regcache when frame is NULL.
4958 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
4959 that must be NULL.
4960 (mips_get_saved_register): Call generic_unwind_get_saved_register()
4961 instead of frame_register_unwind().
4962
4963 2003-02-20 Andrew Cagney <ac131313@redhat.com>
4964
4965 * remote-sim.c (gdbsim_insert_breakpoint)
4966 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
4967 code.
4968
4969 2003-02-20 Andrew Cagney <ac131313@redhat.com>
4970
4971 * remote.c (_initialize_remote): Add commands "set/show remote
4972 hardware-watchpoint-limit" and "set/show remote
4973 hardware-breakpoint-limit".
4974 (remote_hw_watchpoint_limit): Initialize to -1.
4975 (remote_hw_breakpoint_limit): Ditto.
4976 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
4977
4978 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
4979
4980 * coff-pe-read.c: New file - support reading of minimal symbols from a
4981 portable executable using the export table.
4982 * coff-pe-read.h: New file.
4983 * coffread.c: Include coff-pe-read.h.
4984 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
4985 debugging symbols found.
4986 * Makefile.in (SFILES): Add coff-pe-read.o.
4987 (coff_pe_read_h): Define.
4988 (COMMON_OBS): Add coff-pe-read.o.
4989 (coffread.o): Add coff_pe_read_h dependency.
4990 (coff-pe-read.o): New target.
4991
4992 2003-02-19 David Carlton <carlton@math.stanford.edu>
4993
4994 * Makefile.in (SFILES): Add block.c.
4995 (block_h): New.
4996 (COMMON_OBS): Add block.o.
4997 (block.o): New.
4998 (x86-64-tdep.o): Add $(block_h).
4999 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
5000 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
5001 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
5002 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
5003 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
5004 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
5005 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
5006 * value.h: Add opaque declaration for struct block.
5007 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
5008 * ada-lang.h: Ditto.
5009 * x86-64-tdep.c: #include "block.h"
5010 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
5011 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
5012 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
5013 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
5014 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
5015 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
5016 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
5017 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
5018 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
5019 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
5020 * symtab.c (block_function): Ditto.
5021 (contained_in): Ditto.
5022 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
5023 block.h. Add opaque declaration for struct block.
5024 * symtab.h: Move block_function and contained_in declarations to
5025 block.h. Add opaque declarations for struct block, struct
5026 blockvector.
5027 (struct block): Move to block.h.
5028 (struct blockvector): Ditto.
5029 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
5030 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
5031 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
5032 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
5033 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
5034 Ditto.
5035 * block.c: New file.
5036 * block.h: New file.
5037
5038 2003-02-19 Theodore A. Roth <troth@openavr.org>
5039
5040 * avr-tdep.c (avr_extract_return_value): Remove function.
5041 (avr_store_return_value): Remove function.
5042 (avr_extract_struct_value_address): Remove function.
5043 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
5044
5045 2003-02-19 Andrew Cagney <ac131313@redhat.com>
5046
5047 * rs6000-tdep.c: Include "gdb_assert.h".
5048 (registers_e500): Add "acc" and "spefscr".
5049 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
5050 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
5051 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
5052 really is "r0".
5053 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
5054
5055 2003-02-18 Keith Seitz <keiths@redhat.com>
5056
5057 * Makefile.in: Add gdbtk-interps.c.
5058
5059 2003-02-18 Kevin Buettner <kevinb@redhat.com>
5060
5061 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
5062 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
5063
5064 2003-02-18 Andrew Cagney <cagney@redhat.com>
5065
5066 * symtab.h (struct objfile): Add opaque declaration.
5067
5068 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
5069
5070 From Jim Ingham <jingham@apple.com>:
5071 * dbxread.c (process_one_symbol): Use last_function_start rather
5072 than function_start_offset to find the real beginning of the
5073 current function. The latter is just the text section offset on
5074 some systems, the former is always the real function start.
5075
5076 2003-02-17 Andrew Cagney <cagney@redhat.com>
5077
5078 * configure.in: Revert ${target} != ${host}.
5079
5080 2003-02-17 Andrew Cagney <ac131313@redhat.com>
5081
5082 * configure.in (Makefile): Use the test ${target} != ${host},
5083 instead of the absence of the "nm.h" file, to determine of the
5084 configuration non-native.
5085 * configure: Regenerate.
5086
5087 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
5088
5089 From Brian Ford <ford@vss.fsi.com>
5090
5091 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
5092 conditionalize tui_active test.
5093 (lookup_cmd_1): Ditto.
5094
5095 2003-02-14 Mark Kettenis <kettenis@gnu.org>
5096
5097 * configure.in: Add check for _etext.
5098 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
5099 available.
5100 * config.in, configure: regenerated.
5101
5102 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
5103
5104 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
5105
5106 2003-02-14 Andrew Cagney <ac131313@redhat.com>
5107
5108 * main.c (tui_version): Delete variable.
5109 (captured_main): When --tui, set interpreter_p to "tui" instead of
5110 enabling tui_version.
5111 * printcmd.c (display_command) [TUI]: Test tui_active instead of
5112 tui_version.
5113 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
5114 * cli/cli-cmds.c (disassemble_command): Ditto.
5115 * defs.h (tui_version): Delete declaration.
5116 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
5117 (tui-interp.o): Add rules.
5118 (SUBDIR_TUI_OBS): Add "tui-interp.o".
5119
5120 2003-02-14 Christopher Faylor <cgf@redhat.com>
5121
5122 * win32-nat.c (register_loaded_dll): Correctly set address range for
5123 just-loaded dll.
5124
5125 2003-02-12 Jason Molenda (jmolenda@apple.com)
5126
5127 * symmisc.c (print_objfile_statistics): Include information about
5128 the number of psymtabs and symtabs in each object file.
5129
5130 2003-02-13 Keith R Seitz <keiths@redhat.com>
5131
5132 * main.h (struct captured_main_args): Add interpreter_p.
5133 * main.c (captured_main): Initialize interpreter_p from context.
5134 * gdb.c (main): Set interpreter_p argument.
5135 * Makefile.in (gdb.o): Add dependency for interps.h.
5136
5137 2003-02-12 Andrew Cagney <ac131313@redhat.com>
5138
5139 * event-top.c (cli_command_loop): Delete declaration.
5140 (_initialize_event_loop): Delete function setting event_loop_hook.
5141 * event-top.h (cli_command_loop): Declare. Update copyright.
5142 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
5143 * interps.c (current_interp_command_loop): When event_loop_p, call
5144 cli_command_loop.
5145
5146 2003-02-12 Andrew Cagney <ac131313@redhat.com>
5147
5148 * interps.h (interp_command_loop_ftype): Change return type to
5149 void.
5150
5151 2003-02-12 Michal Ludvig <mludvig@suse.cz>
5152
5153 * x86-64-tdep.c (x86_64_extract_return_value)
5154 (x86_64_store_return_value): Use regcache instead of regbuf.
5155 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
5156 * x86-64-linux-nat.c (fill_gregset): Use regcache.
5157
5158 2003-02-11 Andrew Cagney <ac131313@redhat.com>
5159
5160 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
5161 * aclocal.m4: Regenerate.
5162 * configure: Regenerate.
5163
5164 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
5165 TCL_LD_SEARCH_FLAGS.
5166
5167 2003-02-10 Michal Ludvig <mludvig@suse.cz>
5168
5169 * dwarf2cfi.c: Reindented.
5170
5171 2003-02-09 Andrew Cagney <ac131313@redhat.com>
5172
5173 * interps.c (clear_interpreter_hooks): Convert function definition
5174 to ISO C.
5175
5176 2003-02-07 David Carlton <carlton@math.stanford.edu>
5177
5178 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
5179
5180 2003-02-07 Kevin Buettner <kevinb@redhat.com>
5181
5182 * gdbtypes.h (struct main_type): Move ``length'' field from here...
5183 (struct type): ...to here.
5184 (TYPE_LENGTH): Adjust to reflect different location of ``length''
5185 field.
5186 * gdbtypes.c (make_qualified_type): Set length on newly created type.
5187 (replace_type): Set length on all type variants for a given type.
5188
5189 2003-02-07 Andrew Cagney <ac131313@redhat.com>
5190
5191 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
5192 <sys/stat.h>.
5193 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
5194
5195 2003-02-06 Andrew Cagney <ac131313@redhat.com>
5196
5197 * Makefile.in (symm-nat.o): Update dependencies.
5198 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
5199 (lynx-nat.o, ia64-linux-nat.): Ditto.
5200 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
5201 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
5202 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
5203
5204 * Makefile.in (inflow_h): Define.
5205 (procfs.o, inflow.o, procfs.o): Update dependencies.
5206 * inftarg.c (child_stop): Delete extern declaration of
5207 inferior_process_group. Include "inflow.h".
5208 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
5209 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
5210 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
5211 (our_process_group, inferior_process_group): Extern declarations.
5212
5213 * procfs.c: Include "gdb_assert.h".
5214
5215 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
5216 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
5217 * jv-typeprint.c (java_type_print_base): Ditto.
5218 * typeprint.c (typedef_print): Eliminate STREQ.
5219 * cli/cli-script.c (define_command, define_command): Ditto.
5220 * main.c (captured_main): Ditto.
5221 * values.c (lookup_internalvar): Ditto.
5222 * utils.c (safe_strerror, parse_escape): Eliminate assignment
5223 within `if' conditional.
5224 * linespec.c (decode_line_2): Ditto.
5225 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
5226 (bfd_openw_with_cleanup): Ditto.
5227
5228 2003-02-07 Mark Kettenis <kettenis@gnu.org>
5229
5230 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
5231 legacy_extract_return_value and store_return_value to
5232 legacy_return_value.
5233
5234 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
5235
5236 * win32-nat.c (get_relocated_section_addrs): New function. Find
5237 section load addresses for symbol handling in relocated DLLs.
5238 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
5239
5240 2003-02-05 Fred Fish <fnf@intrinsity.com>
5241
5242 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
5243 '=' and '!='.
5244 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
5245 with '&' and '=='.
5246 (angel_RDI_info): Ditto.
5247 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
5248 with '&' and '!='.
5249 (threads_continue_all_with_signals): Ditto.
5250
5251 2003-02-05 Jim Ingham <jingham@apple.com>
5252 Keith Seitz <keiths@redhat.com>
5253 Elena Zannoni <ezannoni@redhat.com>
5254 Andrew Cagney <ac131313@redhat.com>
5255
5256 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
5257 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
5258 (SUBDIR_MI_OBS): Add "mi-interp.o".
5259 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
5260 (SFILES): Add "interps.c".
5261 (COMMON_OBS): Add "interps.o".
5262 (interps_h, mi_main_h): Define.
5263 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
5264 (mi-main.o, main.o, event-top.o): Update dependencies.
5265 * cli/cli-interp.c: New file.
5266 * interps.h, interps.c: New files.
5267 * top.c: (gdb_init): Don't install the default interpreter, handed
5268 by captured_main.
5269 * main.c: Include "interps.h".
5270 (interpreter_p): Note that it should malloc'ed.
5271 (captured_command_loop): Call current_interp_command_loop.
5272 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
5273 xfree and xstrdup when updating interpreter_p. Install the
5274 default interpreter. Add hack to stop mi1's copyright notice
5275 being encoded.
5276 * event-top.h (gdb_setup_readline): Declare.
5277 (gdb_disable_readline): Declare.
5278 * event-top.c: Include "interps.h".
5279 (display_gdb_prompt): Call current_interp_display_prompt_p.
5280 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
5281 gdb_stdlog, and gdb_stdtarg.
5282 (_initialize_event_loop): Don't call gdb_setup_readline.
5283 * cli-out.c (cli_out_set_stream): New function.
5284 * cli-out.h (cli_out_set_stream): Declare.
5285
5286 2003-02-06 Mark Kettenis <kettenis@gnu.org>
5287
5288 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
5289 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
5290 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
5291 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
5292 config/i386/i386v42mp.mt: Removed.
5293
5294 2003-02-05 Mark Kettenis <kettenis@gnu.org>
5295
5296 * configure.tgt (*-*-solaris*): Set gdb_osabi to
5297 GDB_OSABI_SOLARIS.
5298
5299 2003-02-05 Michael Chastain <mec@shout.net>
5300
5301 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
5302 2.12.1 and earlier versions.
5303
5304 2003-02-05 Andrew Cagney <ac131313@redhat.com>
5305
5306 Remove orphaned hosts, targets and files.
5307 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
5308 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
5309 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
5310 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
5311 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
5312 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
5313 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
5314 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
5315 * config/sparc/tm-sp64sim.h: Delete.
5316 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
5317 hosts.
5318 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
5319 mips*-dec-mach3* targets.
5320
5321 2003-02-04 Michael Chastain <mec@shout.net>
5322
5323 * NEWS: Fix typo: sepcifying -> specifying.
5324
5325 2003-02-04 Michael Chastain <mec@shout.net>
5326
5327 * dwarfread.c: Add documentation on the state of dwarf-1,
5328 looking towards obsoletion.
5329
5330 2003-02-03 Michael Chastain <mec@shout.net>
5331
5332 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
5333 gdb/testsuite/gdb.c++/pr-1023.exp.
5334
5335 2003-02-04 Andrew Cagney <ac131313@redhat.com>
5336
5337 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
5338 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
5339
5340 * utils.c (init_page_info): Delete reference to MPW in comments.
5341 * main.c (captured_main): Delete #ifdef MPW.
5342
5343 2003-02-04 Andrew Cagney <ac131313@redhat.com>
5344
5345 * NEWS: Note that the m32r-*-elf* is obsolete.
5346 * monitor.c (monitor_expect): Obsolete reference to m32r.
5347 * configure.tgt: Mark m32r-*-elf* as obsolete.
5348 * MAINTAINERS: Mark m32k as obsolete.
5349 * m32r-rom.c: Obsolete file.
5350 * config/m32r/m32r.mt: Obsolete file.
5351 * config/m32r/tm-m32r.h: Obsolete file.
5352 * m32r-stub.c: Obsolete file.
5353 * m32r-tdep.c: Obsolete file.
5354
5355 2003-02-04 Andrew Cagney <ac131313@redhat.com>
5356
5357 * NEWS: Mention that the z8k-zilog-none is obsolete.
5358 * MAINTAINERS: Mark z8k as obsolete.
5359 * configure.tgt: Obsolete the z8k-*-coff* target.
5360 * config/z8k/z8k.mt: Obsolete file.
5361 * config/z8k/tm-z8k.h: Obsolete file.
5362 * z8k-tdep.c: Obsolete file.
5363
5364 2003-02-04 Andrew Cagney <ac131313@redhat.com>
5365
5366 * NEWS: Mention that the mn10200-elf is obsolete.
5367 * configure.tgt: Obsolete mn10200-*-* target.
5368 * breakpoint.c (update_breakpoints_after_exec): Update comment to
5369 mention that the mn10200 is obsolete.
5370 * breakpoint.h: Ditto.
5371 * MAINTAINERS: Mark the mn10200-elf as obsolete.
5372 * config/mn10200/mn10200.mt: Obsolete file.
5373 * config/mn10200/tm-mn10200.h: Obsolete file.
5374 * mn10200-tdep.c: Obsolete file.
5375
5376 2003-02-04 Andrew Cagney <ac131313@redhat.com>
5377
5378 * MAINTAINERS: Mark h8500 as obsolete.
5379 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
5380 * findvar.c (value_from_register): Ditto.
5381 * h8500-tdep.c: Mark file as obsolete.
5382 * config/h8500/h8500.mt: Ditto.
5383 * config/h8500/tm-h8500.h: Ditto.
5384 * NEWS: Mention that h8500 is obsolete.
5385
5386 2003-02-04 David Carlton <carlton@math.stanford.edu>
5387
5388 * objfiles.c (allocate_objfile): Always set name. Add comment at
5389 start of function.
5390 * jv-lang.c (get_dynamics_objfile): Add comment.
5391
5392 2003-02-04 David Carlton <carlton@math.stanford.edu>
5393
5394 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
5395 * printcmd.c (build_address_symbolic): Replace uses of
5396 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
5397 SYMBOL_NAME, and asm_demangle.
5398 Update copyright.
5399
5400 2003-02-04 David Carlton <carlton@math.stanford.edu>
5401
5402 * linespec.c (decode_compound): Extract code into
5403 lookup_prefix_sym.
5404 (lookup_prefix_sym): New function.
5405
5406 2003-02-04 David Carlton <carlton@math.stanford.edu>
5407
5408 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
5409 FLOAT_COERCION_BADNESS.
5410 * gdbtypes.c (rank_one_type): Replace all uses of
5411 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
5412
5413 2003-02-04 Jim Blandy <jimb@redhat.com>
5414
5415 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
5416 section, let dwarf_macinfo_section point to it, not
5417 dwarf_loc_section.
5418
5419 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
5420
5421 Pointed out by Anton Blanchard <anton@samba.org>.
5422 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
5423 (ppc_linux_at_sigtramp_return_path): Use it.
5424
5425 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
5426
5427 * defs.h (streq): Add prototype.
5428 * utils.c (streq): New function.
5429
5430 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
5431 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
5432 * mdebugread.c (new_symbol): Likewise.
5433 * stabsread.c (define_symbol): Likewise.
5434 * coffread.c (process_coff_symbol): Likewise.
5435 * dwarfread.c (new_symbol): Likewise.
5436
5437 * minsyms.c (prim_record_minimal_symbol_and_info): Use
5438 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
5439 here.
5440 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
5441 SYMBOL_INIT_DEMANGLED_NAME.
5442 * objfiles.c: Include "hashtab.h".
5443 (allocate_objfile): Call htab_set_functions_ex for the
5444 demangled_names_hash.
5445 (free_objfile): Call htab_delete for the demangled_names_hash.
5446 * objfiles.h (struct htab): Add declaration.
5447 (struct objfile): Add demangled_names_hash.
5448 * symfile.c: Include "hashtab.h".
5449 (reread_symbols): Call htab_delete for the demangled_names_hash.
5450 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
5451 SYMBOL_NAME in the bcache.
5452 * symtab.c: Include "hashtab.h". Update comments.
5453 (create_demangled_names_hash, symbol_set_names): New functions.
5454 (symbol_find_demangled_name): New function, broken out from
5455 symbol_init_demangled_names.
5456 (symbol_init_demangled_names): Use it.
5457 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
5458 (SYMBOL_SET_NAMES): New macro.
5459 (symbol_set_names): Add prototype.
5460
5461 2003-02-03 Jim Blandy <jimb@redhat.com>
5462
5463 Use a single, consistent representation for an empty minimal
5464 symbol table in an objfile.
5465 * objfiles.c (terminate_minimal_symbol_table): New function.
5466 (allocate_objfile): Call it.
5467 * objfiles.h (terminate_minimal_symbol_table): New declaration.
5468 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
5469 non-NULL.
5470 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
5471 objfile has minimal symbols, compare minimal_symbol_count to zero,
5472 instead of comparing msymbols with NULL.
5473 * objfiles.c (have_minimal_symbols): Same.
5474 * solib-sunos.c (solib_add_common_symbols): Call
5475 terminate_minimal_symbol_table.
5476 * symfile.c (reread_symbols): Same.
5477
5478 2003-02-03 Kevin Buettner <kevinb@redhat.com>
5479
5480 * s390-tdep.c (s390_address_class_type_flags)
5481 (s390_address_class_type_flags_to_name)
5482 (s390_address_class_name_to_type_flags): New functions.
5483 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
5484 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
5485
5486 2003-02-03 Michael Snyder <msnyder@redhat.com>
5487
5488 * arm-tdep.c: Fix spell-o in comment.
5489
5490 2003-02-03 Michal Ludvig <mludvig@suse.cz>
5491
5492 * dwarf2cfi.c (pointer_encoding): Added new parameter.
5493 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
5494 error messages to contain BFD filename.
5495
5496 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
5497
5498 Fix PR gdb/742 gdb/743 gdb/877
5499 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
5500 (do_mixed_source_and_assembly): Use
5501 make_cleanup_ui_out_tuple_begin_end and
5502 make_cleanup_ui_out_tuple_begin_end.
5503 (do_mixed_source_and_assembly): Ditto.
5504 * thread.c (do_captured_list_thread_ids): Ditto.
5505 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
5506 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
5507 ui_out_tuple_end): Delete prototypes.
5508 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
5509 ui_out_list_end, ui_out_tuple_end): Delete.
5510
5511 From Kevin Buettner <kevinb@redhat.com>:
5512 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
5513 * ui-out.c (make_cleanup_ui_out_table_begin_end)
5514 (do_cleanup_table_end): New functions.
5515 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
5516 Use cleanups to invoke_ui_out_tuple_end().
5517 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
5518 * cli/cli-setshow.c (cmd_show_list): Use
5519 make_cleanup_ui_out_tuple_begin_end.
5520
5521 2003-02-02 Andrew Cagney <ac131313@redhat.com>
5522
5523 * frame.c (frame_unwind_register): New function.
5524 (frame_unwind_unsigned_register): Use.
5525 (frame_unwind_signed_register): Use.
5526 (frame_read_register): New function.
5527 * frame.h (frame_unwind_register): Declare.
5528 (frame_read_register): Declare.
5529
5530 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
5531 and frame_unwind_register instead of read_memory, write_register
5532 and deprecated_write_register_bytes.
5533
5534 2003-02-02 Andrew Cagney <ac131313@redhat.com>
5535
5536 * frame.h: Note that namelen can be negative.
5537 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
5538 NAME's length.
5539
5540 * NEWS: Mention that the d10v's `regs' command is deprecated.
5541 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
5542 (d10v_print_registers_info): New function.
5543 (show_regs): Call d10v_print_registers_info.
5544 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
5545
5546 2003-02-02 Mark Kettenis <kettenis@gnu.org>
5547
5548 * stack.c (print_frame_info): Restore call to annotate_frame_begin
5549 lost in the previous patch.
5550
5551 2003-02-01 Andrew Cagney <ac131313@redhat.com>
5552
5553 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
5554 * stack.c (print_frame_info_base): Output complete FRAME tuple
5555 for synthesized frames.
5556
5557 2003-02-02 Andrew Cagney <ac131313@redhat.com>
5558
5559 * mips-nat.c (zerobuf): Delete.
5560 (fetch_inferior_registers): Alloc local zerobuf.
5561 (fetch_core_registers): Alloc local zerobuf.
5562 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
5563 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
5564 * thread-db.c (thread_db_store_registers): Ditto.
5565 * sh-tdep.c (sh_do_register): Ditto.
5566 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
5567 * remote-sim.c (gdbsim_store_register): Ditto.
5568 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5569 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5570 * monitor.c (monitor_supply_register): Ditto.
5571 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
5572 * mips-nat.c (fetch_inferior_registers): Ditto.
5573 * m68klinux-nat.c (fetch_register): Ditto.
5574 * lynx-nat.c (fetch_inferior_registers): Ditto.
5575 (fetch_inferior_registers): Ditto.
5576 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
5577 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5578 (hpux_thread_store_registers): Ditto.
5579 * hppah-nat.c (fetch_register): Ditto.
5580 * hppab-nat.c (fetch_register): Ditto.
5581 * hppa-tdep.c (pa_register_look_aside): Ditto.
5582 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
5583 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
5584
5585 2003-02-01 Andrew Cagney <ac131313@redhat.com>
5586
5587 * gdbarch.sh: Explictly specify all method levels. When a
5588 variable with an empty level, provide a non-multi-arch default.
5589 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
5590 * gdbarch.h: Re-generate.
5591 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
5592 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
5593
5594 2003-02-01 Andrew Cagney <ac131313@redhat.com>
5595
5596 * defs.h (host_pointer_to_address): Delete declaration.
5597 (address_to_host_pointer): Delete declaration.
5598 * utils.c (host_pointer_to_address): Delete function.
5599 (address_to_host_pointer): Delete function.
5600 * procfs.c (procfs_address_to_host_pointer): New function.
5601 * procfs.c (proc_set_watchpoint): Use.
5602 (procfs_can_use_hw_breakpoint): Update comments.
5603 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
5604 (som_solib_add): Use.
5605 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
5606 * hppa-tdep.c (unwind_command): Use.
5607
5608 2003-02-01 Andrew Cagney <ac131313@redhat.com>
5609
5610 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
5611 strlen d_name.
5612
5613 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
5614 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
5615 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
5616 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
5617 (define_symbol): Update.
5618 * symfile.c (generic_load): Remove references to nindy.
5619 * symtab.c: Remove references to nindy.
5620
5621 2003-02-01 Andrew Cagney <ac131313@redhat.com>
5622
5623 * infcmd.c (print_float_info): Delete code conditional on
5624 FLOAT_INFO.
5625 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
5626 * config/m68k/nm-apollo68b.h: Ditto.
5627 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
5628 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
5629 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
5630
5631 2003-02-01 Mark Kettenis <kettenis@gnu.org>
5632
5633 * config/i386/tm-i386os9k.h: Removed.
5634
5635 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
5636 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
5637 they're identical to i[3456]86-*-sysv* now.
5638 * config/i386/i386v32.mh: Removed.
5639 * config/i386/xm-i386v32.h: Removed.
5640 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
5641
5642 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
5643
5644 * config/i386/i386dgux.mh: Removed.
5645 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
5646
5647 * configure.in: Fix typo.
5648 * configure: Regenerated.
5649
5650 2003-01-31 David Carlton <carlton@math.stanford.edu>
5651
5652 * dwarf2read.c (dwarf2_locate_sections): Set
5653 dwarf_ranges_section.
5654
5655 2003-01-31 Andrew Cagney <ac131313@redhat.com>
5656
5657 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
5658 * utils.c: Update comments documenting legitimate uses of PTR.
5659
5660 * utils.c: Re-indent.
5661
5662 * config/djgpp/fnchange.lst: Delete nindy files.
5663 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
5664 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
5665 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
5666 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
5667 * nindy-share/README, nindy-share/Onindy.c: Delete files.
5668 * nindy-tdep.c, nindy-share/Makefile: Delete files.
5669 * Makefile.in (init.c): Remove nindy references.
5670 (saber_gdb): Delete rule.
5671 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
5672 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
5673 and a68v-nat.c.
5674 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
5675 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
5676 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
5677 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
5678 nindy-share/stop.h.
5679 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
5680 * saber.suppress: Delete file.
5681
5682 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
5683
5684 * dbxread.c (stabs_data): New static variable.
5685 (fill_symbuf): Support an in-memory buffer for stabs data.
5686 (stabs_seek): New function.
5687 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
5688 (read_ofile_symtab): Use stabs_seek.
5689 (elfstab_build_psymtabs): Take an asection* instead of
5690 an offset and size. Relocate the stabs data if necessary.
5691 Save the section* for dbx_psymtab_to_symtab.
5692 * dwarf2read.c: Add section variables for each debug section.
5693 (dwarf2_locate_sections): Fill them in.
5694 (dwarf2_read_section): Take an asection* argument.
5695 Relocate the section contents if necessary.
5696 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
5697 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
5698 it to dwarf2_read_section.
5699 (dwarf2_build_frame_info): Update callers.
5700 * elfread.c (elf_symfile_read): Update call to
5701 elfstab_build_psymtabs.
5702 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
5703 (DBX_STAB_SECTION): New macro.
5704 * stabsread.h (elfstab_build_psymtabs): Update prototype.
5705 * symfile.c (symfile_dummy_outputs): New function.
5706 (symfile_relocate_debug_section): New function.
5707 * symfile.h (symfile_relocate_debug_section): Add prototype.
5708
5709 2003-01-31 Richard Henderson <rth@redhat.com>
5710
5711 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
5712 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
5713 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
5714 * alpha-tdep.c (alpha_register_name): Add "unique".
5715 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
5716 (ALPHA_UNIQUE_REGNUM): New.
5717 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
5718
5719 2003-01-31 Andrew Cagney <ac131313@redhat.com>
5720
5721 * README: Remove reference to Ericsson 1800 monitor.
5722 * Makefile.in (remote-es.o): Delete rule.
5723 (ALLDEPFILES): Delete remote-es.c.
5724 * remote-es.c: Delete file.
5725 * config/m68k/es1800.mt: Delete file.
5726 * config/djgpp/fnchange.lst: Update.
5727 * configure.tgt: Delete m68*-ericsson-* target.
5728
5729 2003-01-31 Adam Fedor <fedor@gnu.org>
5730
5731 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
5732 Remove duplicate/shadowing variable of same name.
5733
5734 2003-01-30 Jim Blandy <jimb@redhat.com>
5735
5736 * symfile.c (find_separate_debug_file): Assert that the objfile's
5737 directory name we compute ends with a slash, and then assume that
5738 that's so everywhere we use it.
5739
5740 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
5741
5742 * valops.c (value_assign): Flush frame cache after stores to memory
5743 also.
5744
5745 2003-01-30 Andrew Cagney <ac131313@redhat.com>
5746
5747 * Makefile.in (mon960-rom.o): Delete rule.
5748 * mon960-rom.c: Delete file.
5749
5750 2003-01-30 Andrew Cagney <ac131313@redhat.com>
5751
5752 * d10v-tdep.c: Include "frame-unwind.h".
5753 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
5754 list.
5755 (next_addr, uses_frame): Delete.
5756 (struct d10v_unwind_cache): Define.
5757 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
5758 Use info instead of next_addr and uses_frame globals.
5759 (d10v_frame_init_saved_regs): Delete function.
5760 (d10v_init_extra_frame_info): Delete function.
5761 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
5762 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
5763 init_frame_pc or frame_saved_pc.
5764 (d10v_pop_frame): Delete function.
5765 (do_d10v_pop_frame): Delete function.
5766 (d10v_frame_chain): Delete function.
5767 (d10v_frame_chain_valid): Delete function.
5768 (d10v_frame_pc_unwind): New function.
5769 (d10v_frame_id_unwind): New function.
5770 (saved_regs_unwinder): New function.
5771 (d10v_frame_register_unwind): New function.
5772 (d10v_frame_pop): New function.
5773 (d10v_frame_unwind): New variable.
5774 (d10v_frame_p): New function.
5775 (d10v_frame_saved_pc): Delete function.
5776 * Makefile.in (d10v-tdep.o): Update dependencies.
5777
5778 2003-01-30 J. Brobecker <brobecker@gnat.com>
5779
5780 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
5781 causing some regressions due to a change in the default value
5782 for this macro.
5783
5784 2003-01-29 Richard Henderson <rth@redhat.com>
5785 Elena Zannoni <ezannoni@redhat.com>
5786 Daniel Jacobowitz <drow@mvista.com>
5787
5788 Fix PR gdb/961.
5789 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
5790 variables.
5791 (RANGES_SECTION): New.
5792 (dwarf_ranges_buffer): New variable.
5793 (struct comp_unit_head): Add member "die".
5794 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
5795 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
5796 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
5797 (dwarf2_locate_sections): Likewise.
5798 (dwarf2_build_psymtabs): Read .debug_ranges.
5799 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
5800 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
5801 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
5802 Look for DW_AT_ranges and return the bounding box.
5803
5804 2003-01-29 Brian Ford <ford@vss.fsi.com>
5805
5806 * win32-nat.c (cygwin_pid): Removed as unused.
5807 (child_attach): Try fall back to Cygwin pid.
5808
5809 2003-01-29 Jim Blandy <jimb@redhat.com>
5810
5811 * objfiles.h (struct objfile): Doc fix.
5812
5813 2003-01-29 Andrew Cagney <ac131313@redhat.com>
5814
5815 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
5816 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
5817 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
5818 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
5819 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
5820 (FRAME_SAVED_PC): Change to a function with predicate.
5821 * gdbarch.h, gdbarch.c: Re-generate.
5822
5823 2003-01-28 Andrew Cagney <ac131313@redhat.com>
5824
5825 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
5826
5827 * complaints.c (complain): Delete function.
5828 * complaints.h (struct deprecated_complaint): Delete definition.
5829 (complain): Delete declaration.
5830
5831 2003-01-28 Kevin Buettner <kevinb@redhat.com>
5832
5833 * mips-tdep.c (mips_init_extra_frame_info): Return early for
5834 dummy frames.
5835
5836 2003-01-27 Andrew Cagney <ac131313@redhat.com>
5837
5838 * sentinel-frame.h, sentinel-frame.c: New files.
5839 * Makefile.in (frame.o): Update dependencies.
5840 (SFILES): Add sentinel-frame.c.
5841 (sentinel_frame_h): Define.
5842 (COMMON_OBS): Add sentinel-frame.o.
5843 (sentinel-frame.o): Specify dependencies.
5844 * frame.c: Include "sentinel-frame.h".
5845 (frame_register_unwind): Rewrite assuming that there is always a a
5846 ->next frame.
5847 (frame_register, generic_unwind_get_saved_register): Ditto.
5848 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
5849 (create_sentinel_frame, unwind_to_current_frame): New functions.
5850 (get_current_frame): Rewrite using create_sentinel_frame and
5851 unwind_to_current_frame. When possible, always create a frame.
5852 (create_new_frame): Set next to the sentinel frame.
5853 (get_next_frame): Rewrite. Don't go below the level 0 frame.
5854 (deprecated_update_frame_pc_hack): Update the next frame's PC and
5855 ID cache when necessary.
5856 (frame_saved_regs_id_unwind): Use frame_relative_level.
5857 (deprecated_generic_get_saved_register): Use frame_relative_level,
5858 get_frame_saved_regs, get_frame_pc, get_frame_base and
5859 get_next_frame.
5860 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
5861 frame_register.
5862
5863 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
5864
5865 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
5866
5867 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
5868
5869 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
5870 (maintenance_set_profile_cmd): Use error () instead of warning ().
5871
5872 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
5873
5874 * configure.in: Check that -pg works if using --enable-profiling.
5875 Check for monstartup and _mcleanup regardless of --enable-profiling.
5876 * maint.c: Check for monstartup and _mcleanup before using them.
5877 * config.in: Regenerated.
5878 * configure: Regenerated.
5879
5880 2003-01-24 Nick Clifton <nickc@redhat.com>
5881
5882 * Add sh2e support:
5883
5884 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
5885
5886 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
5887 (sh2e_show_regs): New.
5888 (sh_gdbarch_init): Handle bfd_mach_sh2e.
5889 * config/sh/tm-sh.h: Added sh2e to comments.
5890
5891 2003-01-23 Jim Blandy <jimb@redhat.com>
5892
5893 * symfile.c (syms_from_objfile): Don't print the "(no debugging
5894 symbols found)" message here; we haven't checked for a separate
5895 debug info file yet, so we don't know yet.
5896 (symbol_file_add_with_addrs_or_offsets): Print it here, after
5897 we've looked everywhere. Also, there's no need to print a special
5898 message when we're loading the separate debug info file: the one
5899 symbol_file_add prints is fine.
5900
5901 2003-01-23 Alexander Larsson <alexl@redhat.com>
5902 Jim Blandy <jimb@redhat.com>
5903
5904 Add support for executables whose debug info has been separated
5905 out into a separate file, leaving only a link behind.
5906 * objfiles.h (struct objfile): New fields: separate_debug_objfile
5907 and separate_debug_objfile_backlink.
5908 (put_objfile_before): New declaration.
5909 * symfile.c: #include "filenames.h".
5910 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
5911 debug info in a separate file, read that, too. Save the addrs
5912 argument, so we can use it again to read the separated debug info;
5913 syms_from_objfile modifies the table we pass it.
5914 (reread_symbols): After re-reading an objfile, call
5915 reread_separate_symbols to refresh its separate debug info
5916 objfile, if it has one.
5917 (reread_separate_symbols, find_separate_debug_file,
5918 get_debug_link_info, separate_debug_file_exists): New functions.
5919 (debug_file_directory): New global var.
5920 (_initialize_symfile): Initialize debug_file_directory, and
5921 provide the new `set debug-file-directory' command to let the user
5922 change it.
5923 * objfiles.c (free_objfile): If this objfile has its debug info in
5924 a separate objfile, free that one too. If this is itself a
5925 separate debug info objfile, clear our parent's backlink.
5926 (put_objfile_before): New function.
5927 * utils.c (gnu_debuglink_crc32): New function.
5928 * defs.h (gnu_debuglink_crc32): New declaration.
5929 * Makefile.in (symfile.o): Note dependency on "filenames.h".
5930 * configure.in: Handle --with-separate-debug-dir config option.
5931 * acinclude.m4 (AC_DEFINE_DIR): New macro.
5932 * acconfig.h (DEBUGDIR): New macro.
5933 * configure, aclocal.m4, config.in: Regenerated.
5934
5935 2003-01-22 Jim Blandy <jimb@redhat.com>
5936
5937 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
5938 like the old symbol_file_add, but taking new arguments: you can
5939 now pass in either a `struct section_addr_info' list to say where
5940 each section is loaded, or a `struct section_offsets' table. Pass
5941 these new arguments through to syms_from_objfile as appropriate.
5942 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
5943 with the appropriate quiescent values for the new arguments.
5944
5945 * symfile.c: #include "gdb_assert.h".
5946 (syms_from_objfile): Add the ability to pass in a section offset
5947 table directly, as an alternative to the section_addr_info table.
5948 Document arguments better.
5949 (symbol_file_add): Pass extra arguments to syms_from_objfile.
5950 * symfile.h (syms_from_objfile): Update declaration.
5951 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
5952 syms_from_objfile.
5953 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
5954
5955 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
5956
5957 Original patch by Tom Tromey <tromey@cygnus.com> and
5958 Jason Molenda <jmolenda@apple.com>.
5959 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
5960 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
5961 * NEWS: Mention profiling.
5962 * configure.in (--enable-gdbtk): Fix typo.
5963 (--enable-profiling): New. Set PROFILE_CFLAGS.
5964 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
5965 Fill in function.
5966 (profiling_state): New variable.
5967 (mcleanup_wrapper): New function.
5968 (_initialize_maint): Remove NOTYET, fix call to
5969 add_setshow_boolean_cmd for "maint set profile".
5970 * configure: Regenerated.
5971
5972 2003-01-21 Martin M. Hunt <hunt@redhat.com>
5973
5974 * Makefile.in (install-gdbtk): Install PNG images too.
5975
5976 2003-01-21 Andrew Cagney <ac131313@redhat.com>
5977
5978 * exec.c (text_start): Delete global variable.
5979 (exec_file_attach): Make text_start local to the function.
5980 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
5981 * valops.c (hand_function_call): Delete code that handles
5982 BEFORE_TEXT_END and AFTER_TEXT_END.
5983 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
5984 of CALL_DUMMY_LOCATION.
5985 * gdbarch.c: Regenerate.
5986 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
5987 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
5988 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
5989 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
5990 (text_end): Delete extern declaration.
5991
5992 2003-01-21 Andrew Cagney <ac131313@redhat.com>
5993
5994 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
5995 * blockframe.c (backtrace_below_main): Move to "frame.c".
5996 (frame_chain_valid): Delete check for backtrace_below_main.
5997 (_initialize_blockframe): Delete initialization, move ``set
5998 backtrace-below-main'' command to "frame.c".
5999 (do_flush_frames_sfunc): Delete function.
6000 * frame.c: Include "command.h" and "gdbcmd.h".
6001 (frame_type_from_pc): New function.
6002 (create_new_frame): Use frame_type_from_pc.
6003 (legacy_get_prev_frame): New function.
6004 (get_prev_frame): Rewrite. When an old style frame, call
6005 legacy_get_prev_frame. Otherwize, unwind the PC first.
6006 (_initialize_frame): Add ``set backtrace-below-main'' command.
6007 * Makefile.in (frame.o): Update dependencies.
6008
6009 2003-01-19 Andrew Cagney <ac131313@redhat.com>
6010
6011 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
6012 DEPRECATED_REGISTERS_INFO.
6013
6014 2003-01-19 Andrew Cagney <ac131313@redhat.com>
6015
6016 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
6017 Maintainers'. Update `Various Maintainers'.
6018
6019 2003-01-19 Andrew Cagney <ac131313@redhat.com>
6020
6021 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
6022 * gdbarch.sh (POP_FRAME): Change to function with predicate.
6023 Suppress actual parameters when `-'.
6024 * gdbarch.h, gdbarch.c: Regenerate.
6025
6026 2003-01-19 Andrew Cagney <ac131313@redhat.com>
6027
6028 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
6029 code handling dummy frames.
6030
6031 2003-01-19 Andrew Cagney <ac131313@redhat.com>
6032
6033 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
6034 (struct frame_unwind): Add field pop.
6035 * frame.h (frame_pop): Declare.
6036 * frame.c (frame_saved_regs_pop): New function.
6037 (trad_frame_unwinder): Add frame_saved_regs_pop.
6038 (frame_pop): New function.
6039 * dummy-frame.c (dummy_frame_pop): New function.
6040 (discard_innermost_dummy): New function.
6041 (generic_pop_dummy_frame): Use discard_innermost_dummy.
6042 (dummy_frame_unwind): Add dummy_frame_pop.
6043 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
6044 * valops.c (hand_function_call): Ditto.
6045 * stack.c (return_command): Ditto.
6046
6047 2003-01-18 Andrew Cagney <ac131313@redhat.com>
6048
6049 * cris-tdep.c: Fix function declaration indentation.
6050 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
6051 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
6052 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
6053 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
6054 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
6055 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
6056
6057 2003-01-18 Michael Chastain <mec@shout.net>
6058
6059 * README (Unpacking and Installation -- quick overview):
6060 Warn against ".../gdb-5.3/gdb/configure".
6061
6062 2003-01-18 Andrew Cagney <ac131313@redhat.com>
6063
6064 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
6065 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
6066 (struct frame_unwind): Declare opaque.
6067 (dummy_frame_p): Declare function.
6068 * dummy-frame.c (dummy_frame_id_unwind): Make static.
6069 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
6070 * dummy-frame.c: Include "frame-unwind.h".
6071 (dummy_frame_p): New function.
6072 (dummy_frame_unwind): New variable.
6073 * frame.c: Include "frame-unwind.h".
6074 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
6075 to use the new unwind field.
6076 (set_unwind_by_pc): Delete function.
6077 (create_new_frame, get_prev_frame): Set unwind field using
6078 frame_unwind_find_by_pc.
6079 (trad_frame_unwind, trad_frame_unwinder): New variables.
6080 * frame.h (trad_frame_unwind): Declare variable.
6081 (frame_id_unwind_ftype): Delete declaration.
6082 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
6083 (struct frame_unwind): Declare opaque.
6084 (struct frame_info): Replace the fields id_unwind, pc_unwind and
6085 register_unwind with a single unwind pointer.
6086 * frame-unwind.h, frame-unwind.c: New files.
6087 * Makefile.in (SFILES): Add frame-unwind.c.
6088 (frame_unwind_h): Define.
6089 (COMMON_OBS): Add frame-unwind.o.
6090 (frame-unwind.o): Specify dependencies.
6091 (frame.o, dummy-frame.o): Update dependencies.
6092
6093 2003-01-18 Andrew Cagney <ac131313@redhat.com>
6094
6095 * ada-valprint.c: Eliminate PTR.
6096 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
6097 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
6098 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
6099 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
6100 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
6101 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
6102 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
6103
6104 2003-01-17 Andrew Cagney <ac131313@redhat.com>
6105
6106 * main.c (captured_main): Don't use PTR.
6107 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
6108 * gdbtypes.c (lookup_primitive_typename): Ditto.
6109 (lookup_struct_elt_type): Ditto.
6110 * f-valprint.c (info_common_command): Ditto.
6111 (list_all_visible_commons): Ditto.
6112 * jv-typeprint.c (java_type_print_base): Ditto.
6113
6114 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
6115 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
6116 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
6117 i386-interix-nat.c and i386-interix-tdep.c. Rename
6118 m68klinux-nat.c and m68klinux-tdep.c. Rename
6119 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
6120 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
6121 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
6122 * main.c (captured_main): Use xfree, not free.
6123
6124 2003-01-16 Andrew Cagney <ac131313@redhat.com>
6125
6126 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
6127 ID back using a parameter.
6128 * frame.c (frame_id_unwind): Update call.
6129 (frame_saved_regs_id_unwind): Update.
6130 * dummy-frame.c (dummy_frame_id_unwind): Update function.
6131 * dummy-frame.h (struct frame_id): Add opaque declaration.
6132 (dummy_frame_id_unwind): Update declaration.
6133
6134 2003-01-15 Andrew Cagney <ac131313@redhat.com>
6135
6136 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
6137
6138 2003-01-15 Stephen P. Smith <ischis2@cox.net>
6139
6140 * MAINTAINERS (Stephen P. Smith): Updated email address.
6141
6142 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
6143
6144 Fix PR gdb/898
6145 * breakpoint.c (until_break_command): Add new argument. Use it to
6146 decide whether to stop only at the current frame or not.
6147 * breakpoint.h (until_break_command): Update prototype.
6148 * infcmd.c (until_command): Add new argument to until_break_command
6149 call.
6150 (advance_command): New function.
6151 (_initialize_infcmd): Update help string for 'until' command.
6152 Add new 'advance' command.
6153
6154 2003-01-14 David Carlton <carlton@math.stanford.edu>
6155
6156 * linespec.c (decode_line_1): Normalize comments.
6157 (set_flags): Ditto.
6158 (locate_first_half): Ditto.
6159 (decode_compound): Ditto.
6160 (symtab_from_filename): Ditto.
6161 (decode_all_digits): Ditto.
6162 (decode_dollar): Ditto.
6163 (find_methods): Ditto.
6164 (find_toplevel_char): Ditto.
6165
6166 2003-01-13 Andrew Cagney <ac131313@redhat.com>
6167
6168 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
6169 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
6170 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
6171 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
6172 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
6173 * language.c, language.h, m32r-tdep.c: Update copyright.
6174 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
6175 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
6176 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
6177 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
6178 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
6179 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
6180
6181 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
6182
6183 * stabsread.h (process_later, resolve_cfront_continuation):
6184 Obsolete.
6185 Update copyright years.
6186 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
6187 Update copyright year.
6188 * dbxread.c(struct cont_elem): Obsolete.
6189 (process_later, process_now): Obsolete functions.
6190 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
6191 Update copyright year.
6192 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
6193 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
6194 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
6195 (parse_partial_symbols): Obsolete cfront support.
6196 * stabsread.c
6197 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
6198 macros.
6199 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
6200 read_cfront_baseclasses, read_cfront_member_functions,
6201 resolve_cfront_continuation,read_cfront_static_fields,
6202 copy_cfront_struct_fields): Obsolete functions.
6203 (define_symbol, read_one_struct_field): Obsolete cfront support.
6204 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
6205 Update Copyright year.
6206
6207 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
6208
6209 * stack.c (print_frame_info, print_stack_frame_base_stub,
6210 print_stack_frame_base, show_and_print_stack_frame_stub,
6211 show_and_print_stack_frame, print_only_stack_frame_stub,
6212 print_only_stack_frame): Delete functions.
6213 (print_stack_frame_stub): Call print_frame_info instead of
6214 print_frame_info_base.
6215 (print_frame_info_base): Rename to print_frame_info.
6216 (backtrace_command_1): Call print_frame_info, instead of
6217 print_frame_info_base.
6218 (current_frame_command): Call print_stack_frame, instead of
6219 print_only_stack_frame.
6220 (frame_command): Call print_stack_frame, instead of
6221 show_and_print_stack_frame.
6222 (up_command): Ditto.
6223 (down_command): Ditto.
6224 * frame.h (print_only_stack_frame): Delete prototype.
6225 * infrun.c (normal_stop): Call print_stack_frame, instead of
6226 show_and_print_stack_frame.
6227 * thread.c (info_threads_command): Call print_stack_frame, instead
6228 of print_only_stack_frame.
6229
6230 2003-01-13 Andrew Cagney <ac131313@redhat.com>
6231
6232 * README (Graphical interface to GDB): Update URL. Point at
6233 gdb/links/.
6234
6235 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
6236 version match.
6237
6238 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
6239
6240 * symtab.c (find_pc_sect_line): Don't consider end-of-function
6241 lines.
6242
6243 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
6244
6245 * thread-db.c (attach_thread): Prototype.
6246 (struct private_thread_info): Remove lwpid. Add thread handle (th),
6247 thread information (ti), and valid flags (th_valid, ti_valid).
6248 (attach_thread): Move target_pid_to_str call to after the thread
6249 is added to GDB's list. Initialize the cache.
6250 (thread_get_info_callback, thread_db_map_id2thr)
6251 (thread_db_get_info): New functions.
6252 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
6253 (thread_db_store_registers, thread_db_thread_alive)
6254 (thread_db_get_thread_local_address): Use them.
6255 (thread_db_pid_to_str): Likewise. Return "Missing" instead
6256 of calling error() for threads in unknown state.
6257
6258 (clear_lwpid_callback): New function.
6259 (thread_db_resume): Use it to clear the cache.
6260
6261 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
6262
6263 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
6264 (resume_callback): Remove dead code.
6265
6266 2003-01-13 Andrew Cagney <ac131313@redhat.com>
6267
6268 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
6269 predicate.
6270 * gdbarch.h, gdbarch.c: Regenerate.
6271 * stack.c (frame_info): Only initialize the saved registers when
6272 FRAME_INIT_SAVED_REGS_P.
6273 * frame.c (frame_saved_regs_register_unwind): Assert
6274 FRAME_INIT_SAVED_REGS_P.
6275 (deprecated_generic_get_saved_register): Ditto.
6276
6277 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
6278
6279 * source.c (openp): Squelch warning about "filename".
6280
6281 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
6282
6283 * source.c (openp): If the file does not exist don't necessarily
6284 search the path.
6285
6286 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
6287
6288 Fix PR gdb/872.
6289 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
6290 (integer_types_same_name_p): New function.
6291 (rank_one_type): Use it.
6292 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
6293
6294 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
6295
6296 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
6297 variables.
6298 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
6299 * configure.in: Add --with-sysroot.
6300 * configure: Regenerated.
6301 * main.c (gdb_sysroot): New variable.
6302 (captured_main): Initialize gdb_sysroot.
6303 * defs.h (gdb_sysroot): New extern declaration.
6304 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
6305
6306 2003-01-12 Michael Chastain <mec@shout.net>
6307
6308 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
6309
6310 2003-01-12 Michael Chastain <mec@shout.net>
6311
6312 * top.c (print_gdb_version): Bump copyright year to 2003.
6313
6314 2003-01-12 David Carlton <carlton@bactrian.org>
6315
6316 * linespec.c (symtab_from_filename): Rename variable 's' to
6317 'file_symtab'.
6318
6319 2003-01-12 Andrew Cagney <ac131313@redhat.com>
6320
6321 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
6322 dummy frame.
6323 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
6324
6325 2003-01-12 Andrew Cagney <ac131313@redhat.com>
6326
6327 * d10v-tdep.c: Include "gdb_assert.h".
6328 (d10v_store_return_value): Rewrite to match current interface.
6329 (d10v_extract_struct_value_address): Ditto.
6330 (d10v_extract_return_value): Ditto.
6331 (d10v_gdbarch_init): Set store_restore_value,
6332 extract_struct_value_address and extract_return_value.
6333
6334 2003-01-12 J. Brobecker <brobecker@gnat.com>
6335
6336 * hpread.c (set_namestring): New procedure replacing the
6337 SET_NAMESTRING macro.
6338 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
6339 by calls to set_namestring.
6340
6341 2003-01-11 J. Brobecker <brobecker@gnat.com>
6342
6343 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
6344 a compilation warning.
6345 (hpread_process_one_debug_symbol): Likewise.
6346
6347 2003-01-10 David Carlton <carlton@math.stanford.edu>
6348
6349 * linespec.c (decode_line_1): Rename variable 's' to
6350 'file_symtab'.
6351 (decode_all_digits): Rename argument 's' to 'file_symtab'.
6352 (decode_dollar): Ditto.
6353 (decode_variable): Ditto.
6354 (symbol_found): Ditto.
6355
6356 2003-01-09 Michael Chastain <mec@shout.net>
6357
6358 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
6359
6360 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
6361
6362 * win32-nat.c (set_process_privilege): New function.
6363 (child_attach): Call set_process_privilege() to enable the
6364 SE_DEBUG_NAME user privilege if available in process token.
6365
6366 2003-01-10 J. Brobecker <brobecker@gnat.com>
6367
6368 * hpread.c (hpread_process_one_debug_symbol): Fix a small
6369 compilation error in the previous revision.
6370
6371 2003-01-09 David Carlton <carlton@math.stanford.edu>
6372
6373 * linespec.c: Update copyright.
6374
6375 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
6376
6377 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
6378 than inferior_ptid.
6379 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
6380
6381 2003-01-09 Andrew Cagney <ac131313@redhat.com>
6382
6383 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
6384 Update comments.
6385 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
6386 (frame_saved_regs_zalloc): Update.
6387 (frame_saved_regs_register_unwind): Update.
6388 (create_new_frame): Update.
6389 (get_prev_frame): Update.
6390 (frame_extra_info_zalloc): Update.
6391 (deprecated_get_frame_saved_regs): Update.
6392 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
6393 * cris-tdep.c: Update comment.
6394
6395 * somsolib.h: Fix function indentation.
6396 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
6397 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
6398 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
6399 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
6400 * somsolib.c, inftarg.c: Remove assignment in if conditional.
6401
6402 * infrun.c (follow_fork): Use ISO C definition.
6403 * expprint.c (print_subexp): Use xfree instead of free.
6404 * charset.c: Include "gdb_string.h" instead of <string.h>.
6405 (register_iconv_charsets): Use ISO C definition.
6406 (host_charset, target_charset): Ditto.
6407 * Makefile.in (charset.o): Update dependencies.
6408 (mi-cmd-env.o): Update dependencies.
6409
6410 2003-01-08 Andrew Cagney <cagney@redhat.com>
6411
6412 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
6413 get_frame_base.
6414
6415 2003-01-08 Andrew Cagney <ac131313@redhat.com>
6416
6417 * gdb_mbuild.sh: Add --keep option. When specified, keep the
6418 build directories. Save edited gdb output in Mbuild.log. If a
6419 build fails, remove any final GDB executable.
6420
6421 2003-01-08 Andrew Cagney <ac131313@redhat.com>
6422
6423 * gdb_mbuild.sh: Edit the output of `maint print architecture'
6424 replacing hex constants with function names and stripping leading
6425 file name directory prefixes.
6426
6427 2003-01-08 Andrew Cagney <cagney@redhat.com>
6428
6429 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
6430 get_frame_base.
6431
6432 2003-01-08 David Carlton <carlton@math.stanford.edu>
6433
6434 * linespec.c (decode_line_1): Move code into decode_variable.
6435 (decode_variable): New function.
6436
6437 2003-01-08 Andrew Cagney <ac131313@redhat.com>
6438
6439 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
6440
6441 2003-01-08 Andrew Cagney <cagney@redhat.com>
6442
6443 * cris-tdep.c (cris_frame_init_saved_regs): Use
6444 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
6445 saved_regs buffer.
6446 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6447 (sh64_nofp_frame_init_saved_regs): Ditto.
6448 (sh_fp_frame_init_saved_regs): Ditto.
6449 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
6450 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
6451 * mcore-tdep.c (analyze_dummy_frame): Ditto.
6452 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
6453
6454 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
6455
6456 * minsyms.c (lookup_minimal_symbol): Update comment.
6457 (lookup_minimal_symbol_text): Update comment. Use the hash table.
6458 (lookup_minimal_symbol_solib_trampoline): Likewise.
6459
6460 2003-01-08 Andrew Cagney <cagney@redhat.com>
6461
6462 * d10v-tdep.c (d10v_init_extra_frame_info): Use
6463 frame_relative_level.
6464
6465 * alpha-tdep.c: Use get_frame_extra_info.
6466 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
6467 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
6468 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
6469 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
6470
6471 * alpha-tdep.c: Use get_next_frame.
6472 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
6473 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
6474 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
6475 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
6476 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
6477 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
6478 * xstormy16-tdep.c: Ditto.
6479
6480 2003-01-07 Andrew Cagney <cagney@redhat.com>
6481
6482 * alpha-tdep.c: Use get_frame_base.
6483 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
6484 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
6485 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
6486 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
6487 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
6488 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
6489 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
6490 * config/sparc/tm-sparc.h: Ditto.
6491
6492 2003-01-07 Andrew Cagney <cagney@redhat.com>
6493
6494 * frame.c (deprecated_get_frame_context): New function.
6495 (deprecated_set_frame_context): New function.
6496 * frame.h (deprecated_get_frame_context): Declare.
6497 (deprecated_set_frame_context): Declare.
6498 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
6499 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
6500
6501 2003-01-07 Andrew Cagney <cagney@redhat.com>
6502
6503 * frame.c (deprecated_set_frame_next_hack): New function.
6504 (deprecated_set_frame_prev_hack): New function.
6505 * frame.h (deprecated_set_frame_next_hack): Declare.
6506 (deprecated_set_frame_prev_hack): Declare.
6507 * mcore-tdep.c (analyze_dummy_frame): Use
6508 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
6509 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
6510
6511 2003-01-07 David Carlton <carlton@math.stanford.edu>
6512
6513 * linespec.c (decode_line_1): Move code into decode_dollar.
6514 (decode_dollar): New function.
6515
6516 2003-01-07 Andrew Cagney <cagney@redhat.com>
6517
6518 * arm-tdep.c (arm_init_extra_frame_info): Use
6519 deprecated_update_frame_base_hack.
6520 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
6521 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
6522 (fix_frame_pointer): Ditto.
6523 (mn10300_analyze_prologue): Ditto.
6524
6525 2003-01-07 Andrew Cagney <cagney@redhat.com>
6526
6527 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
6528 extra_info using frame_extra_info_zalloc.
6529 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6530 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
6531 (sh64_init_extra_frame_info): Ditto.
6532 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
6533 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
6534 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
6535 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
6536 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
6537 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
6538 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
6539 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
6540 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
6541 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
6542 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6543 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
6544
6545 * mn10300-tdep.c (analyze_dummy_frame): Use
6546 deprecated_set_frame_extra_info_hack.
6547 * mcore-tdep.c (analyze_dummy_frame): Ditto.
6548
6549 2003-01-07 J. Brobecker <brobecker@gnat.com>
6550
6551 * mdebugread.c (parse_symbol): Skip stProc entries which storage
6552 class is not scText. These do not define "real" procedures.
6553 (parse_partial_symbols): Likewise.
6554
6555 2003-01-06 Michael Snyder <msnyder@redhat.com>
6556
6557 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
6558
6559 2003-01-06 Andrew Cagney <ac131313@redhat.com>
6560
6561 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
6562 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
6563 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
6564 deprecated_frame_xmalloc_with_cleanup.
6565 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
6566 deprecated_frame_xmalloc.
6567 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
6568 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
6569
6570 2003-01-06 Andrew Cagney <cagney@redhat.com>
6571
6572 * x86-64-linux-tdep.c: Include "osabi.h".
6573 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
6574
6575 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
6576
6577 2003-01-06 Andrew Cagney <cagney@redhat.com>
6578
6579 * MAINTAINERS (Target Instruction Set Architectures): Update
6580 arm-elf. Can be built with -Werror, has been multiarched.
6581
6582 * value.h (unpack_long): Make buffer parameter constant.
6583 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
6584 * scm-lang.h (scm_parse): Ditto.
6585 * defs.h (extract_typed_address, extract_address): Ditto.
6586 (extract_long_unsigned_integer): Ditto.
6587 * inferior.h (unsigned_pointer_to_address): Ditto.
6588 (signed_pointer_to_address): Ditto.
6589 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
6590 * gdbarch.h, gdbarch.c: Regenerate.
6591 * findvar.c (extract_long_unsigned_integer): Update.
6592 (extract_address): Update.
6593 (extract_typed_address): Update.
6594 (unsigned_pointer_to_address): Update.
6595 * values.c (unpack_long): Update.
6596 (unpack_double): Update.
6597 (unpack_pointer): Update.
6598 (unpack_field_as_long): Update.
6599 * d10v-tdep.c (d10v_pointer_to_address): Update.
6600 * avr-tdep.c (avr_pointer_to_address): Update.
6601 * scm-lang.c (scm_unpack): Update.
6602 * findvar.c (signed_pointer_to_address): Update.
6603
6604 2003-01-06 Michal Ludvig <mludvig@suse.cz>
6605
6606 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
6607 since it is in i386-tdep.c.
6608
6609 2003-01-06 J. Brobecker <brobecker@gnat.com>
6610
6611 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
6612 failure introduced in the previous change.
6613
6614 2003-01-05 Michael Chastain <mec@shout.net>
6615
6616 * README: Remove references to deleted remote-*.c files:
6617 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
6618 remote-nrom.c, remote-os9k.c, remote-udi.c.
6619
6620 2003-01-05 Mark Kettenis <kettenis@gnu.org>
6621
6622 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
6623 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
6624 i386_get_longjmp_target.
6625
6626 2003-01-05 Andrew Cagney <ac131313@redhat.com>
6627
6628 * arm-tdep.c (prologue_cache): Change to a pointer.
6629 (_initialize_arm_tdep): Allocate prologue_cache.
6630 (check_prologue_cache): Update.
6631 (save_prologue_cache): Update.
6632 (arm_gdbarch_init): Update.
6633
6634 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
6635
6636 * stabsread.c (update_method_name_from_physname): Call complaint()
6637 instead of error.
6638
6639 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
6640
6641 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
6642 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
6643 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
6644
6645 * blockframe.c: Include "gdbcmd.h" and "command.h".
6646 (backtrace_below_main): New variable.
6647 (file_frame_chain_valid, func_frame_chain_valid)
6648 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
6649 (generic_func_frame_chain_valid): Remove functions.
6650 (frame_chain_valid, do_flush_frames_sfunc): New functions.
6651 (_initialize_blockframe): New function.
6652 * Makefile.in (blockframe.o): Update dependencies.
6653 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
6654 comment. Call frame_chain_valid ().
6655 * frame.h: Remove old prototypes. Add prototype for
6656 frame_chain_valid and update comments to match.
6657 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
6658 Remove old comment.
6659 * gdbarch.h: Regenerated.
6660 * gdbarch.c: Regenerated.
6661
6662 * alpha-tdep.c (alpha_gdbarch_init): Don't call
6663 set_gdbarch_frame_chain_valid.
6664 * avr-tdep.c (avr_gdbarch_init): Likewise.
6665 * cris-tdep.c (cris_gdbarch_init): Likewise.
6666 * frv-tdep.c (frv_gdbarch_init): Likewise.
6667 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
6668 * i386-tdep.c (i386_svr4_init_abi): Likewise.
6669 (i386_nw_init_abi): Likewise.
6670 (i386_gdbarch_init): Likewise.
6671 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
6672 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
6673 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
6674 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
6675 * mips-tdep.c (mips_gdbarch_init): Likewise.
6676 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6677 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
6678 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6679 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6680 * s390-tdep.c (s390_gdbarch_init): Likewise.
6681 * sh-tdep.c (sh_gdbarch_init): Likewise.
6682 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
6683 * v850-tdep.c (v850_gdbarch_init): Likewise.
6684 * vax-tdep.c (vax_gdbarch_init): Likewise.
6685 * x86-64-tdep.c (x86_64_init_abi): Likewise.
6686
6687 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
6688 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
6689 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
6690 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
6691 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
6692 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
6693 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
6694 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
6695
6696 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
6697
6698 * Makefile.in (acconfig_h): Remove incorrect macro.
6699 (config_h): Define.
6700 (osabi.o): Update dependencies.
6701 * configure.tgt: Set gdb_osabi based on target triplet.
6702 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
6703 * configure: Regenerated.
6704 * config.in: Regenerated.
6705 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
6706 (GDB_OSABI_DEFAULT): Define if not already defined.
6707 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
6708 (set_osabi_string): New variables.
6709 (gdbarch_register_osabi): Add new OS ABI to
6710 gdb_osabi_available_names.
6711 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
6712 (set_osabi, show_osabi): New functions.
6713 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
6714
6715 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
6716
6717 * arch-utils.c (gdbarch_info_init): Set osabi to
6718 GDB_OSABI_UNINITIALIZED.
6719 * gdbarch.sh: Add osabi to struct gdbarch and to struct
6720 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
6721 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
6722 * gdbarch.c: Regenerated.
6723 * gdbarch.h: Regenerated.
6724 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
6725 there's no BFD.
6726 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
6727 * osabi.h (enum gdb_osabi): Move to defs.h.
6728 (gdbarch_init_osabi): Update prototype.
6729 * defs.h (enum gdb_osabi): Moved here.
6730 * Makefile.in: Update dependencies.
6731
6732 * alpha-tdep.h: Don't include "osabi.h".
6733 (struct gdbarch_tdep): Remove osabi member.
6734 * alpha-tdep.c: Include "osabi.h".
6735 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
6736 iterate over arches. Update call to gdbarch_init_osabi.
6737 (alpha_dump_tdep): Don't dump osabi.
6738 * alpha-linux-tdep.c: Include "osabi.h".
6739 * alpha-osf1-tdep.c: Include "osabi.h".
6740 * alphafbsd-tdep.c: Include "osabi.h".
6741 * alphanbsd-tdep.c: Include "osabi.h".
6742
6743 * arm-tdep.h: Don't include "osabi.h".
6744 (struct gdbarch_tdep): Remove osabi member.
6745 * arm-tdep.c: Include "osabi.h".
6746 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
6747 iterate over arches. Update call to gdbarch_init_osabi.
6748 (arm_dump_tdep): Don't dump osabi.
6749 * arm-linux-tdep.c: Include "osabi.h".
6750 * armnbsd-tdep.c: Include "osabi.h".
6751
6752 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
6753 Update call to gdbarch_init_osabi.
6754
6755 * i386-tdep.h: Don't include "osabi.h".
6756 (struct gdbarch_tdep): Remove osabi member.
6757 * i386-tdep.c: Include "osabi.h".
6758 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
6759 iterate over arches. Update call to gdbarch_init_osabi.
6760 (i386_dump_tdep): Don't dump osabi.
6761 * i386-linux-tdep.c: Include "osabi.h".
6762 * i386-sol2-tdep.c: Include "osabi.h".
6763 * i386bsd-tdep.c: Include "osabi.h".
6764 * i386gnu-tdep.c: Include "osabi.h".
6765 * i386ly-tdep.c: Include "osabi.h".
6766 * i386nbsd-tdep.c: Include "osabi.h".
6767 * i386obsd-tdep.c: Include "osabi.h".
6768
6769 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
6770 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
6771 check osabi when iterating over arches. Update call to
6772 gdbarch_init_osabi.
6773 (mips_dump_tdep): Don't dump osabi.
6774
6775 * ns32k-tdep.h: Don't include "osabi.h".
6776 (struct gdbarch_tdep): Remove.
6777 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
6778 gdbarch_lookup_osabi. Don't iterate over arches. Don't
6779 allocate tdep. Update call to gdbarch_init_osabi.
6780 (ns32k_dump_tdep): Remove.
6781 (_initialize_ns32k_tdep): Update call to gdbarch_register.
6782 * ns32knbsd-tdep.c: Include "osabi.h".
6783
6784 * ppc-tdep.h: Don't include "osabi.h".
6785 (struct gdbarch_tdep): Remove osabi member.
6786 * rs6000-tdep.c: Include "osabi.h".
6787 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
6788 osabi when iterating over arches. Update call to
6789 gdbarch_init_osabi.
6790 (rs6000_dump_tdep): Don't dump osabi.
6791 * ppc-linux-tdep.c: Include "osabi.h".
6792 * ppcnbsd-tdep.c: Include "osabi.h".
6793
6794 * sh-tdep.h: Don't include "osabi.h".
6795 (struct gdbarch_tdep): Remove osabi member.
6796 * sh-tdep.c: Include "osabi.h".
6797 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
6798 iterate over arches. Update call to gdbarch_init_osabi.
6799 (sh_dump_tdep): Don't dump osabi.
6800 * shnbsd-tdep.c: Include "osabi.h".
6801
6802 * sparc-tdep.c: Include "osabi.h".
6803 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
6804 iterate over arches. Update call to gdbarch_init_osabi.
6805 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
6806 tdep structure.
6807
6808 * vax-tdep.h: Don't include "osabi.h".
6809 (struct gdbarch_tdep): Remove.
6810 * vax-tdep.c: Include "osabi.h".
6811 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
6812 iterate over arches. Don't allocate tdep. Update call
6813 to gdbarch_init_osabi.
6814 (vax_dump_tdep): Remove.
6815 (_initialize_vax_tdep): Update call to gdbarch_register.
6816
6817 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
6818
6819 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
6820 entirely.
6821 (breakpoint_re_set_one): Don't fetch the value for a disabled
6822 watchpoint.
6823
6824 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
6825
6826 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
6827 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
6828 (COERCE_FLOAT_TO_DOUBLE): Remove.
6829 * gdbarch.c: Regenerate.
6830 * gdbarch.h: Regenerate.
6831 * Makefile.in: Remove value_h from gdbarch_h.
6832 * valops.c (coerce_float_to_double): New variable.
6833 (default_coerce_float_to_double): Remove.
6834 (standard_coerce_float_to_double): Remove.
6835 (value_arg_coerce): Use coerce_float_to_double.
6836 (_initialize_valops): Add "set coerce-float-to-double".
6837 * value.h (default_coerce_float_to_double): Remove prototype.
6838 (standard_coerce_float_to_double): Remove prototype.
6839
6840 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
6841 prototyped.
6842 * mdebugread.c (parse_symbol): Likewise.
6843 * stabsread.c (define_symbol): Mark all functions as prototyped.
6844
6845 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
6846 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
6847 set_gdbarch_coerce_float_to_double.
6848 * arm-tdep.c (arm_gdbarch_init): Likewise.
6849 * frv-tdep.c (frv_gdbarch_init): Likewise.
6850 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
6851 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
6852 * mips-tdep.c (mips_gdbarch_init): Likewise.
6853 (mips_coerce_float_to_double): Remove.
6854 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6855 (rs6000_coerce_float_to_double): Remove.
6856 * s390-tdep.c (s390_gdbarch_init): Likewise.
6857 * sh-tdep.c (sh_gdbarch_init): Likewise.
6858 (sh_coerce_float_to_double): Remove.
6859 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
6860 (sparc_coerce_float_to_double): Remove.
6861 * v850-tdep.c (v850_gdbarch_init): Likewise.
6862 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
6863 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6864 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
6865 (hppa_coerce_float_to_double): Remove prototype.
6866 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6867
6868 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
6869
6870 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
6871
6872 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
6873
6874 Suggested by Stewart Brown <sb24@avaya.com>:
6875 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
6876 in recursive calls. Handle TYPE_CODE_TYPEDEF.
6877 (c_type_print_varspec_suffix): Likewise.
6878
6879 2003-01-04 Mark Kettenis <kettenis@gnu.org>
6880
6881 * configure.in: Don't set and AC_SUBST SUBDIRS.
6882 * configure: Regenerated.
6883
6884 * configure.in: Remove code dealing with shared libraries.
6885 * Makefile.in: Remove HLDFLAGS and HLDENV.
6886 * configure: Regenerated.
6887
6888 2003-01-04 Andrew Cagney <ac131313@redhat.com>
6889
6890 * frame.c (deprecated_frame_xmalloc): New function.
6891 (deprecated_set_frame_saved_regs_hack): New function.
6892 (deprecated_set_frame_extra_info_hack): New function.
6893 * frame.h (deprecated_frame_xmalloc): Declare.
6894 (deprecated_set_frame_saved_regs_hack): Declare.
6895 (deprecated_set_frame_extra_info_hack): Declare.
6896
6897 2003-01-04 Mark Kettenis <kettenis@gnu.org>
6898
6899 * configure.in: Move code that provides the --enable-gdbtk option
6900 right after the code that handles the --enable-tui option, and
6901 polish it somewhat.
6902 * configure: Regenerated.
6903
6904 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
6905 AC_CHECK_FUNCS and remove the old check for pread64.
6906 * acinclude.m4 (AC_GNU_SOURCE): New macro.
6907 * acconfig.h (_GNU_SOURCE): Add.
6908 (HAVE_PREAD64): Remove.
6909 * configure, aclocal.m4, config.in: Regenerated.
6910
6911 2003-01-03 Andrew Cagney <ac131313@redhat.com>
6912
6913 * alpha-tdep.c: Use get_frame_saved_regs.
6914 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
6915 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
6916 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
6917 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
6918 * vax-tdep.c, xstormy16-tdep.c: Ditto.
6919
6920 2003-01-03 Mark Kettenis <kettenis@gnu.org>
6921
6922 * configure.in: Remove all use of the SUBDIRS variable; add
6923 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
6924 code providing the --enable-multi-ice option, and move it right in
6925 front of the code that checks whether gdbserver is supported.
6926 Polish that too.
6927 * configure: Regenerated.
6928 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
6929 @SUBDIRS@.
6930
6931 2003-01-03 Andrew Cagney <cagney@redhat.com>
6932
6933 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
6934 * avr-tdep.c, cris-tdep.c: Ditto.
6935 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
6936 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
6937
6938 2003-01-03 Mark Kettenis <kettenis@gnu.org>
6939
6940 * configure.in: Remove --enable-netrom option.
6941 * configure: Regenerated.
6942
6943 2003-01-03 Mark Kettenis <kettenis@gnu.org>
6944
6945 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
6946 declaration for `struct re_pattern_buffer' instead.
6947 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
6948
6949 2003-01-03 J. Brobecker <brobecker@gnat.com>
6950
6951 * mdebugread.c (parse_symbol): Count until the stEnd matching
6952 the structure name.
6953
6954 2003-01-02 Mark Kettenis <kettenis@gnu.org>
6955
6956 * configure.in: Remove --with-cpu option.
6957 subscripts. Remove evil changequotes here.
6958 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
6959 * config.in, configure: Regenerated.
6960
6961 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
6962 * configure.in: Cleanup section that sources GDB and BFD configure
6963 subscripts. Remove evil changequotes here.
6964 * config.in, configure: Regenerated.
6965
6966 2003-01-02 Andrew Cagney <ac131313@redhat.com>
6967
6968 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
6969 frame accessor methods.
6970 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
6971 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
6972 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
6973 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
6974 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
6975 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
6976 * z8k-tdep.c: Ditto.
6977
6978 2003-01-02 Mark Kettenis <kettenis@gnu.org>
6979
6980 * configure.in: Remove UI_OUT configuration code.
6981 * ada-lang.c: Update assuming UI_OUT is always true.
6982 * Makefile.in (UIOUT_CFLAGS): Remove.
6983 * configure: Regenerated.
6984 * TODO: Remove blurb about elimination of -DUI_OUT.
6985
6986 * configure.in: Move code that provides the --enable-gdbcli,
6987 --enable-gdbmi options right before the code that handles the
6988 --enable-tui option. Polish a bit.
6989 * configure: Regenerated.
6990
6991 * configure.in: Rewrite check for GNU regex and the
6992 --without-included regex option, and move it into the "Checks for
6993 library functions" section. This makes us use the system regex
6994 again by default on systems with version 2 of the GNU C library.
6995 This was apparently broken.
6996 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
6997 * acconfig.h (USE_INCLUDED_REGEX): Remove.
6998 * config.in, configure: Regenerated.
6999
7000 * configure.in: Move code that provides the --enable-tui option
7001 before the "Checks for libraries" section. Polish the code
7002 somewhat and set need_curses to yes if we build the TUI. Rewrite
7003 code that looks for a library providing termcap functionality to
7004 match more closely what's done in the Readline library, and move
7005 it into to the "Checks for libraries" section.
7006 * configure: Regenerated.
7007 * Makefile.in (TERMCAP): Remove variable.
7008 * config/i386/go32.mh (TERMCAP): Remove variable.
7009
7010 2003-01-02 Andrew Cagney <ac131313@redhat.com>
7011
7012 * MAINTAINERS: Mention gdb_mbuild.sh.
7013 * gdb_mbuild.sh: Rewrite.
7014
7015 2003-01-02 Mark Kettenis <kettenis@gnu.org>
7016
7017 * configure.in: Fix typo in last change.
7018 * config.in, configure: Regenerated.
7019
7020 2003-01-02 Andrew Cagney <ac131313@redhat.com>
7021
7022 * valarith.c (value_binop): Delete obsolete code and comments.
7023 * configure.host: Ditto.
7024 * buildsym.h (make_blockvector): Ditto.
7025 * buildsym.c (make_blockvector): Ditto.
7026 * defs.h (enum language): Ditto.
7027 (chill_demangle): Ditto.
7028 * elfread.c (elf_symtab_read): Ditto.
7029 * dwarfread.c (CHILL_PRODUCER): Ditto.
7030 (set_cu_language): Ditto.
7031 (handle_producer): Ditto.
7032 * expprint.c (print_subexp): Ditto.
7033 * gdbtypes.c (chill_varying_type): Ditto.
7034 * gdbtypes.h (builtin_type_chill_bool): Ditto.
7035 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
7036 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
7037 (chill_varying_type): Ditto.
7038 * language.h (_LANG_chill): Ditto.
7039 * language.c (binop_result_type, integral_type): Ditto.
7040 (character_type, string_type, structured_type): Ditto.
7041 (lang_bool_type, binop_type_check): Ditto.
7042 * stabsread.h (os9k_stabs): Ditto.
7043 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
7044 (define_symbol, read_type, read_struct_fields): Ditto.
7045 (read_array_type, read_enum_type, read_huge_number): Ditto.
7046 (read_range_type, start_stabs): Ditto.
7047 * symfile.c (init_filename_language_table): Ditto.
7048 (add_psymbol_with_dem_name_to_list): Ditto.
7049 * symtab.c (symbol_init_language_specific): Ditto.
7050 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
7051 * symtab.h (struct general_symbol_info): Ditto.
7052 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
7053 * typeprint.c (typedef_print): Ditto.
7054 * utils.c (fprintf_symbol_filtered): Ditto.
7055 * valops.c (value_cast, search_struct_field, value_slice): Delete
7056 obsolete code.
7057 (varying_to_slice): Delete function.
7058 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
7059 (varying_to_slice): Delete declaration.
7060 * MAINTAINERS: Update.
7061
7062 2003-01-02 Mark Kettenis <kettenis@gnu.org>
7063
7064 * configure.in: Reorganize "Checks for library functions section"
7065 a bit. Remove check for `btowc' and `isascii' functions.
7066 * configure: Regenerated.
7067
7068 * acconfig.h (_MSE_INT_H): Remove.
7069 * configure.in: Create "Checks for header files" section, and move
7070 appropriate tests there. Don't check for objlist.h, wchar.h,
7071 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
7072 misdetection fix. Also add "Checks for types", "Checks for
7073 compiler characteristics" and "Checks for library functions"
7074 sections.
7075 * config.in, configure: Regenerated.
7076
7077 * configure.in: Create "Checks for programs" section, and move
7078 appropriate tests there.
7079
7080 2003-01-01 Mark Kettenis <kettenis@gnu.org>
7081
7082 * configure.in: Create "Checks for libraries" section, and move
7083 appropriate tests there. Cleanup check for wctype in libw. Use
7084 AC_SEARCH_LIBS to see whether we need libsocket.
7085 * configure: Regenerated.
7086
7087 For older changes see ChangeLog-2002
7088 \f
7089 Local Variables:
7090 mode: change-log
7091 left-margin: 8
7092 fill-column: 74
7093 version-control: never
7094 End: