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