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