]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
2003-07-17 Elena Zannoni <ezannoni@redhat.com>
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2
3 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
4 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
5 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
6
7 2003-07-16 Theodore A. Roth <troth@openavr.org>
8
9 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
10 found.
11 (avr_frame_unwind_cache): Don't unwind FP for main.
12 Update a comment.
13 Save the computed prev_sp.
14 (avr_saved_regs_unwinder): Remove function.
15 (avr_frame_prev_register): Use PC unwind logic from
16 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
17
18 2003-07-16 Andrew Cagney <cagney@redhat.com>
19
20 * frame-base.h (frame_base_p_ftype): Delete definition.
21 (frame_base_append_predicate): Delete declaration.
22 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
23 (frame_unwind_append_predicate): Delete declaration.
24 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
25 (append_predicate): Delete parameter "p".
26 (frame_unwind_append_predicate): Delete function.
27 (frame_unwind_append_sniffer): Update call to append_predicate.
28 (frame_unwind_free): Delete function.
29 (_initialize_frame_unwind): Pass NULL as "free" to
30 register_gdbarch_data.
31 (frame_unwind_init): Append the dummy_frame_sniffer.
32 (frame_unwind_find_by_frame): Simplify.
33 * frame-base.c (struct frame_base_table): Delete field "p".
34 (append_predicate): Delete parameter "p".
35 (frame_base_append_predicate): Delete function.
36 (frame_base_append_sniffer): Update call to append_predicate.
37 (frame_base_free): Delete function.
38 (frame_base_find_by_frame): Simplify.
39 (_initialize_frame_base): Pass NULL as "free" to
40 register_gdbarch_data.
41 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
42 (x86_64_sigtramp_frame_sniffer): Replace
43 "x86_64_sigtramp_frame_p".
44 (x86_64_init_abi): Set the frame unwind sniffers.
45 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
46 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
47 (m68k_gdbarch_init): Set the frame unwind sniffers.
48 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
49 "i386_sigtramp_frame_p".
50 (i386_frame_sniffer): Replace "i386_frame_p".
51 (i386_gdbarch_init): Set the frame unwind sniffers.
52 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
53 (avr_gdbarch_init): Set the frame unwind sniffers.
54 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
55 "alpha_sigtramp_frame_p"
56 (alpha_heuristic_frame_sniffer): Replace
57 "alpha_heuristic_frame_p".
58 (alpha_gdbarch_init): Set the frame unwind sniffers.
59 (alpha_dwarf2_init_abi): Ditto.
60 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
61 "alpha_debug_frame_p".
62 (alpha_mdebug_frame_base_sniffer): Replace
63 "alpha_mdebug_frame_base_p".
64 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
65 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
66 (d10v_gdbarch_init): Set the frame unwind sniffer.
67 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
68 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
69 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
70 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
71 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
72 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
73
74 2003-07-16 Michael Snyder <msnyder@redhat.com>
75
76 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
77 should go thru sh_dsp_register_sim_regno, else the dsp regs
78 will not get the right values.
79
80 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
81
82 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
83 deprecated_store_floating by call to store_typed_floating.
84 (sh_sh4_register_convert_to_raw): Substitute call to
85 deprecated_extract_floating by call to extract_typed_floating.
86
87 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
88
89 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
90
91 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
92
93 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
94 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
95 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
96 as possible.
97 (do_pseudo_register): Remove.
98 (sh_push_dummy_code): New function.
99 (sh64_store_struct_return): Rename from sh_store_struct_return.
100 Only called for sh64 now.
101 (sh_extract_struct_value_address): Regcache'ify.
102 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
103 and accomodate new tasks.
104 (sh64_push_return_address): Rename from sh_push_return_address.
105 Only called for sh64 now.
106 (sh_default_extract_return_value): Rename from sh_extract_return_value.
107 Regcache'ify.
108 (sh3e_sh4_extract_return_value): Regcache'ify.
109 (sh_default_store_return_value): Ditto.
110 (sh3e_sh4_store_return_value): Ditto.
111 (sh_default_register_byte): Remove.
112 (sh_sh4_register_byte): Remove.
113 (sh_default_register_raw_size): Remove.
114 (sh_sh4_register_raw_size): Remove.
115 (sh_register_virtual_size): Remove.
116 (sh_sh3e_register_virtual_type): Remove.
117 (sh_sh3e_register_type): New function.
118 (sh_sh4_register_virtual_type): Remove.
119 (sh_sh4_register_type): New function.
120 (sh_default_register_virtual_type): Remove.
121 (sh_default_register_type): New function.
122 (do_fv_register_info): Add parameters to accomodate call from
123 sh_print_registers_info.
124 (do_dr_register_info): Ditto.
125 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
126 Add parameters to accomodate call from sh_print_registers_info.
127 (sh_do_fp_register): Ditto.
128 (sh64_do_pseudo_register): Call do_dr_register_info,
129 do_fv_register_info and sh_do_fp_register with default parameters.
130 (sh_do_register): Add parameters to accomodate call from
131 sh_print_registers_info.
132 (sh_print_register): Ditto.
133 (sh_print_registers_info): Rename from sh_do_registers_info.
134 Add parameters to be used as gdbarch_print_registers_info
135 implementation. Accomodate removed do_pseudo_register function
136 pointer.
137 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
138 function pointer. Call sh_print_register with default parameters.
139 (sh64_do_registers_info): Call sh_print_registers_info instead of
140 sh_do_registers_info.
141 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
142 detection of deprecated vs. non-deprecated functionality.
143 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
144 function pointer assignments by direct function calls.
145
146 2003-07-15 Andrew Cagney <cagney@redhat.com>
147
148 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
149 (frame_register_unwind, create_new_frame): Ditto.
150 (legacy_get_prev_frame, get_frame_type): Ditto.
151 (get_frame_base_address): Use frame_base_find_by_frame.
152 (get_frame_locals_address): Use frame_base_find_by_frame.
153 (get_frame_args_address): Use frame_base_find_by_frame.
154 * frame-base.h (frame_base_sniffer_ftype): Declare.
155 (frame_base_append_sniffer): Declare.
156 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
157 * frame-base.c (append_predicate): Add a "sniffer" parameter.
158 (frame_base_append_sniffer): New function.
159 (frame_base_append_predicate): Add a NULL sniffer.
160 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
161 (struct frame_base_table): Add "sniffer".
162 (frame_base_free): Free the "sniffer" table.
163 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
164 (frame_unwind_append_sniffer): Declare.
165 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
166 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
167 (struct frame_unwind_table): Add "sniffer", delete "middle".
168 (append_predicate): Add "sniffer" parameter, append the sniffer.
169 (frame_unwind_init): Update append_predicate call.
170 (frame_unwind_append_sniffer): New function.
171 (frame_unwind_append_predicate): Update append_predicate call.
172 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
173
174 2003-07-15 Andrew Cagney <cagney@redhat.com>
175
176 * frame.c (get_prev_frame): Move disabled inside_entry_func to
177 before code inhibiting repeated unwind attempts. Add to
178 commentary on that test's problems.
179 * blockframe.c (inside_main_func): Look for "main" in the minimal
180 symbol table.
181 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
182 identical.
183
184 2003-07-15 Andrew Cagney <cagney@redhat.com>
185
186 * complaints.c (struct explanation): Define.
187 (struct complaints): Change type of "explanation" to "struct
188 explanation".
189 (symfile_explanations): Convert to a "struct explanation" table.
190 (vcomplaint): Update.
191
192 2003-07-15 Michal Ludvig <mludvig@suse.cz>
193
194 * x86-64-linux-nat.c (regmap): Removed.
195 (supply_gregset, fill_gregset): Call
196 x86_64_linux_(fill,supply)_gregset functions.
197 * x86-64-linux-tdep.c (USER_*): New defines.
198 (user_to_gdb_regmap, x86_64_core_fns): New structure.
199 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
200 New functions.
201 (fetch_core_registers): Ditto.
202 (_initialize_x86_64_linux_tdep): Call add_core_fns().
203 * x86-64-linux-tdep.h: New file.
204 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
205 and core-regset.o.
206 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
207
208 2003-07-13 Mark Kettenis <kettenis@gnu.org>
209
210 * x86-64-tdep.c (x86_64_store_return_value): Use
211 regcache_cooked_write_part instead of regcache_cooked_write.
212
213 * configure.host: Add x86_64-*-freebsd*.
214 * configure.tgt: Add x86_64-*-freebsd*.
215 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
216 * amd64fbsd-nat.c: New file.
217 * amd64fbsd-tdep.c: New file.
218 * config/i386/nm-fbsd64.h: New file.
219 * config/i386/fbsd64.mh: New file.
220 * config/i386/fbsd64.mt: New file.
221
222 2003-07-11 Mark Kettenis <kettenis@gnu.org>
223
224 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
225 `sc_regs_offset' and `sc_fpregs_offset'.
226 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
227 SIGFRAME_FPREGSAVE_OFF): Remove defines.
228 (alpha_sigtramp_register_address): Rewrite to use new members of
229 `struct gdbarch_tdep'.
230 (alpha_gdbarch_init): Initialize new members of struct
231 gdbarch_tdep'.
232 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
233 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
234 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
235 (alphafbsd_pc_in_sigtramp): Implement.
236 (alphafbsd_sigtramp_offset): New function.
237 (alphafbsd_sigcontext_addr): New function.
238 (alphafbsd_init_abi): Initialize signal trampoline related members
239 of `struct gdbarch_tdep'.
240 (_initialize_alphafbsd_tdep): Add prototype.
241
242 2003-07-11 Theodore A. Roth <troth@openavr.org>
243
244 * Makefile.in (install-only): Quote sed expression when generating
245 transformed_name.
246
247 2003-07-11 Richard Henderson <rth@redhat.com>
248
249 * Makefile.in (dwarf2-frame.o): Add complaints_h.
250 * dwarf2-frame.c: Include complaints.h.
251 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
252 variable initialization; return NULL on error.
253 (decode_frame_entry): New.
254
255 2003-07-11 Andrew Cagney <cagney@redhat.com>
256
257 * frame.h (frame_address_in_block): Delete declaration.
258 * blockframe.c (frame_address_in_block): Delete function.
259 (get_frame_block): Use get_frame_address_in_block.
260 (block_innermost_frame): Ditto.
261 * stack.c (print_frame, backtrace_command_1): Ditto.
262
263 * frame.h (get_frame_address_in_block): Declare.
264 (frame_unwind_address_in_block): Declare.
265 * frame.c (frame_unwind_address_in_block): New function.
266 (get_frame_address_in_block): New function.
267
268 2003-07-10 Andrew Cagney <cagney@redhat.com>
269
270 * gdbarch.sh: Simplify predicate methods. Remove need to provide
271 pre-default. Note: re-generate has no effect.
272
273 2003-07-10 Andrew Cagney <cagney@redhat.com>
274
275 * gdbarch.sh: When a variable, but not a function, compare against
276 0. Fix problem in previous patch.
277 * gdbarch.c: Re-generate.
278
279 2003-07-10 Andrew Cagney <cagney@redhat.com>
280
281 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
282 functions against NULL, not 0.
283 * gdbarch.c: Re-generate.
284
285 2003-07-10 Fred Fish <fnf@ninemoons.com>
286
287 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
288 null string instead of a null pointer.
289 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
290
291 2003-07-09 Michael Snyder <msnyder@redhat.com>
292
293 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
294
295 2003-07-09 Mark Kettenis <kettenis@gnu.org>
296
297 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
298 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
299 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
300 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
301 * x86-64-tdep.c: ... from here.
302
303 2003-07-09 Andreas Schwab <schwab@suse.de>
304
305 * m68k-tdep.h (enum struct_return): Define.
306 (struct gdbarch_tdep): Add struct_return.
307 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
308 bytes are padded to the right, not to the left. Pass struct value
309 address in register %a1, not on stack.
310 (m68k_use_struct_convention): New function.
311 (m68k_gdbarch_init): Set use_struct_convention. Initialize
312 struct_return in tdep to pcc_struct_return.
313 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
314 reg_struct_return.
315
316 2003-07-09 Joel Brobecker <brobecker@gnat.com>
317
318 * somread.c (som_symfile_offsets): Fix compilation error.
319
320 2003-07-09 Andrew Cagney <cagney@redhat.com>
321
322 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
323 Add comments about the checks.
324
325 2003-07-08 Andrew Cagney <cagney@redhat.com>
326
327 * Makefile.in: Make dependency section headers consistent.
328 (config_h): Move to $BUILD headers section.
329 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
330 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
331 (ada-exp.tab.c): Move to YACC/LEX section.
332 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
333 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
334
335 2003-07-08 Kris Warkentin <kewarken@qnx.com>
336
337 * nto-procfs.c: Cleaned up a bunch of ARI hits.
338 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
339 of strerror with safe_strerror, use ISO C function definitions,
340 and replace instances of sprintf with snprintf.
341
342 2003-07-07 Andrew Cagney <cagney@redhat.com>
343
344 * frame.c (get_prev_frame): Enable check for identical frames.
345 Update comments. Update error messages.
346
347 2003-07-07 Joel Brobecker <brobecker@gnat.com>
348
349 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
350
351 2003-07-07 Joel Brobecker <brobecker@gnat.com>
352
353 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
354 sort_symtab_syms, no longer necessary.
355
356 2003-07-07 Joel Brobecker <brobecker@gnat.com>
357
358 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
359
360 2003-07-07 Joel Brobecker <brobecker@gnat.com>
361
362 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
363 (mips_register_byte): Likewise.
364
365 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
366
367 * Makefile.in (sparc_tdep_h): New.
368 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
369 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
370 * sparc-linux-nat.c: Include "sparc-tdep.h".
371 * sparc-nat.c: Likewise.
372 * sparc-tdep.c: Likewise.
373 * sparc64nbsd-nat.c: Likewise.
374 * sparcnbsd-nat.c: Likewise.
375 * sparcnbsd-tdep.c: Likewise.
376 * sparc-tdep.h: New file.
377 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
378 and sparc_npc_regnum.
379
380 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
381
382 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
383 (mips_linux_cannot_store_register): List supported instead of
384 unsupported registers.
385
386 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
387
388 * disasm.c (dump_insns): Separate instructions from addresses.
389
390 2003-07-07 Andreas Schwab <schwab@suse.de>
391
392 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
393 dependencies.
394 * m68k-tdep.c (NUM_FREGS): Delete.
395 (SIG_PC_FP_OFFSET): Delete.
396 (TARGET_M68K): Delete.
397 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
398 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
399 P_MOVEL_SP, P_MOVEML_SP): Define.
400 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
401 P_TRAP): Delete.
402 (m68k_register_raw_size): Delete.
403 (m68k_register_virtual_size): Delete.
404 (m68k_register_type): Renamed from m68k_register_virtual_type and
405 add gdbarch argument.
406 (m68k_store_struct_return): Delete.
407 (m68k_deprecated_extract_return_value): Delete.
408 (m68k_deprecated_extract_struct_value_address): Delete.
409 (m68k_frame_chain): Delete.
410 (m68k_frame_saved_pc): Delete.
411 (m68k_fix_call_dummy): Delete.
412 (m68k_push_dummy_frame): Delete.
413 (m68k_pop_frame): Delete.
414 (m68k_extract_return_value): New function.
415 (m68k_store_return_value): Rewrite using regcache.
416 (m68k_extract_struct_value_address): Rewrite using regcache.
417 (m68k_push_dummy_call): New function.
418 (struct m68k_frame_cache): Define.
419 (m68k_alloc_frame_cache): New function.
420 (m68k_analyze_frame_setup): New function.
421 (m68k_analyze_register_saves): New function.
422 (m68k_analyze_prologue): New function.
423 (m68k_skip_prologue): Rewrite using above functions.
424 (m68k_unwind_pc): New function.
425 (m68k_frame_cache): New function.
426 (m68k_frame_this_id): New function.
427 (m68k_frame_prev_register): New function.
428 (m68k_frame_unwind): New variable.
429 (m68k_frame_p): New function.
430 (m68k_sigtramp_frame_cache): New function.
431 (m68k_sigtramp_frame_this_id): New function.
432 (m68k_sigtramp_frame_prev_register): New function.
433 (m68k_sigtramp_frame_unwind): New variable.
434 (m68k_sigtramp_frame_p): New function.
435 (m68k_frame_base_address): New function.
436 (m68k_frame_base): New function.
437 (m68k_unwind_dummy_id): New function.
438 (fill_gregset): Use regcache_collect.
439 (fill_fpregset): Likewise.
440 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
441 defined.
442 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
443 deprecated_init_frame_pc, deprecated_store_struct_return,
444 deprecated_extract_return_value, deprecated_store_return_value,
445 deprecated_frame_chain, deprecated_frame_saved_pc,
446 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
447 deprecated_register_virtual_size,
448 deprecated_max_register_raw_size,
449 deprecated_max_register_virtual_size,
450 deprecated_register_virtual_type, deprecated_register_size,
451 deprecated_register_byte, deprecated_register_bytes,
452 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
453 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
454 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
455 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
456 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
457 deprecated_push_dummy_frame, deprecated_pop_frame,
458 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
459 only if SYSCALL_TRAP is defined. Set extract_return_value,
460 store_return_value, extract_struct_value_address, register_type,
461 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
462 predicates.
463 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
464 M68K_MAX_REGISTER_SIZE): Define.
465 (struct m68k_sigtramp_info): Define.
466 (struct gdbarch_tdep): Add get_sigtramp_info.
467 * m68klinux-nat.c (fetch_register): Use register_size instead of
468 REGISTER_RAW_SIZE. Don't put assignment in if.
469 (store_register): Likewise.
470 (fetch_inferior_registers): Likewise.
471 (store_inferior_registers): Likewise.
472 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
473 (m68k_linux_frame_saved_pc): Delete.
474 (m68k_linux_sigcontext_reg_offset,
475 m68k_linux_ucontext_reg_offset): Define.
476 (m68k_linux_get_sigtramp_info): New function.
477 (m68k_linux_extract_return_value): Rewrite using regcache.
478 (m68k_linux_store_return_value): Likewise.
479 (m68k_linux_extract_struct_value_address): Likewise.
480 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
481 Don't set deprecated_frame_saved_pc,
482 deprecated_extract_return_value, deprecated_store_return_value,
483 deprecated_extract_struct_value_address. Set
484 extract_return_value, store_return_value,
485 extract_struct_value_address.
486
487 2003-07-07 Andrew Cagney <cagney@redhat.com>
488
489 * expprint.c: Include "user-regs.h" instead of "frame.h".
490 (print_subexp): Use user_reg_map_regnum_to_name, instead of
491 frame_map_regnum_to_name.
492 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
493 (frame_map_name_to_regnum): Simplify, call
494 user_reg_map_name_to_regnum.
495 (frame_map_regnum_to_name): Simplify, call
496 user_reg_map_regnum_to_name.
497 (frame_register_unwind): Update.
498 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
499 (_initialize_frame_reg): Call user_reg_add_builtin.
500 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
501 (value_of_register): Use value_of_user_reg.
502 * eval.c (evaluate_subexp_standard): Update.
503 * parse.c (write_dollar_variable): Update.
504 * d10v-tdep.c (d10v_print_registers_info): Update.
505 * infcmd.c (registers_info): Update.
506 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
507 (builtin_regs_h): Delete macro.
508 (user_regs_h): Define.
509 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
510 (builtin-regs.o): Delete target.
511 (user-regs.o): Specify dependencies.
512 (expprint.o): Update dependencies.
513 (findvar.o): Update dependencies.
514 (frame.o): Update dependencies.
515 (std-regs.o): Update dependencies.
516
517 2003-07-06 Christopher Faylor <cgf@redhat.com>
518
519 * win32-nat.c (solib_symbols_add): Use one variable for all section
520 address stuff. Pass variable rather than address of variable to
521 safe_symbol_file_add.
522
523 2003-07-06 Andreas Schwab <schwab@suse.de>
524
525 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
526
527 2003-07-04 Joel Brobecker <brobecker@gnat.com>
528
529 * rs6000-nat.c (vmap_symtab): Fix compilation error.
530
531 2003-07-04 Kris Warkentin <kewarken@qnx.com>
532
533 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
534
535 2003-07-04 Kris Warkentin <kewarken@qnx.com>
536
537 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
538 * config/i386/nto.mh: New file.
539 * config/i386/nm-nto.h: New file.
540 * configure.host: Add i[3456]86-*-nto*.
541
542 2003-07-03 Joel Brobecker <brobecker@gnat.com>
543
544 * remote-vx.c (vx_add_symbols): Fix compilation error.
545
546 2003-07-03 Andrew Cagney <cagney@redhat.com>
547
548 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
549 * gdbarch.h, gdbarch.c: Re-generate.
550 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
551 (legacy_register_name): Declare.
552 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
553 (REGISTER_NAME): Define.
554 * sparc-tdep.c (legacy_register_name): New function.
555 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
556 (REGISTER_NAME): Define.
557 (hppa64_register_name): Declare.
558 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
559 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
560 (hppa64_register_name): New function.
561 (hppa_register_name): New function.
562 * arch-utils.c (legacy_register_name): Delete.
563 * arch-utils.h (legacy_register_name): Delete.
564
565 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
566
567 * cli/cli-interp.c (cli_interpreter_resume): Update the
568 cli_uiout's stream to gdb_stdout.
569
570 2003-07-03 Andrew Cagney <cagney@redhat.com>
571
572 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
573 predicate.
574 * gdbarch.h, gdbarch.c: Re-generate.
575 * regcache.c (init_regcache_descr): Use legacy code when either
576 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
577
578 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
579
580 * NEWS: Move "set logging" entry into GDB 6.0 section.
581
582 2003-07-02 Jim Blandy <jimb@redhat.com>
583
584 * s390-tdep.c (struct frame_extra_info): new member:
585 'stack_bought_valid'.
586 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
587 initialize fextra_info->stack_bought.
588 (s390_frameless_function_invocation): Don't trust the value of
589 fextra_info_ptr->stack_bought unless
590 fextra_info->stack_bought_valid is set.
591
592 New S390 prologue analyzer.
593 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
594 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
595 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
596 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
597 compute_x_addr, s390_on_stack, s390_store,
598 s390_get_signal_frame_info): New functions.
599 (S390_NUM_SPILL_SLOTS): New macro.
600 (s390_get_frame_info): Rewritten.
601 (is_arg_reg): Deleted.
602
603 Break out the decoding of S/390 instructions into separate
604 functions, to make it more legible, and easier to check
605 against the spec.
606 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
607 is_rx, is_rxe): New functions.
608 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
609 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
610 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
611 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
612 enums for opcode values. (Is this an improvement?)
613
614 2003-07-02 Andrew Cagney <cagney@redhat.com>
615
616 * i386-tdep.c: Revert change committed as part of trad-frame code
617 below.
618
619 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
620
621 * breakpoint.c (insert_catchpoint): Make static.
622
623 2003-07-02 Andreas Schwab <schwab@suse.de>
624
625 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
626 former ia64_push_arguments and ia64_push_return_address, and use
627 regcache functions instead of read/write_register.
628 (ia64_gdbarch_init): Set push_dummy_call instead of
629 deprecated_push_arguments and deprecated_push_return_address.
630
631 2003-07-01 Andreas Jaeger <aj@suse.de>
632
633 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
634 before the call.
635 Set %rax only to number of SSE registers used.
636
637 2003-07-01 Andrew Cagney <cagney@redhat.com>
638
639 * trad-frame.h: Update comments, a -1 .addr is reserved.
640 (trad_frame_value_p, trad_frame_addr_p): Declare.
641 (trad_frame_reg_p): Declare.
642 (trad_frame_set_value): Rename trad_frame_register_value.
643 (trad_frame_set_unknown): Declare.
644 * trad-frame.c (trad_frame_realreg_p): New function.
645 (trad_frame_addr_p, trad_frame_value_p): New function.
646 (trad_frame_set_unknown): New function.
647 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
648 (trad_frame_prev_register): Use trad_frame_realreg_p,
649 trad_frame_addr_p and trad_frame_value_p.
650 (trad_frame_set_value): Rename trad_frame_register_value.
651 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
652 and trad_frame_set_value.
653
654 2003-06-30 Jim Blandy <jimb@redhat.com>
655
656 Patch from IBM (authors unspecified, probably Ulrich Weigand and
657 Gerhard Tonn) for argument passing on the S/390 and S/390x:
658 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
659 for 16 registers, and then 32 more bytes.
660 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
661 New macros.
662 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
663 Move up in the file, since it's now used by is_simple_arg.
664 (is_simple_arg): Don't assume registers are four bytes long.
665 Exclude all double arguments. Extended floats are not simple
666 args.
667 (is_power_of_two): New function.
668 (pass_by_copy_ref): Call is_power_of_two, and check that the
669 length fits in a register, rather than listing all the acceptable
670 sizes. Extended floats are not passed by reference.
671 (s390_push_arguments): Don't assume registers are four bytes long.
672 Reserve an argument register to point to the buffer for structures
673 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
674 S390_STACK_FRAME_OVERHEAD.
675
676 2003-06-30 Andreas Schwab <schwab@suse.de>
677
678 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
679 format error message.
680
681 2003-06-30 Joel Brobecker <brobecker@gnat.com>
682
683 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
684
685 2003-06-30 David Carlton <carlton@kealia.com>
686
687 Band-aid for PR c++/1245.
688 * Makefile.in (cp-support.o): Depend on complaints_h.
689 * cp-support.c: Include complaints.h. Add declaration for
690 find_last_component.
691 (cp_find_first_component): Separate code into
692 cp_find_first_component_aux.
693 (cp_find_first_component_aux): Call demangled_name_complaint.
694 (demangled_name_complaint): New.
695
696 2003-06-30 Andrew Cagney <cagney@redhat.com>
697
698 * remote.c (remote_write_bytes): Explicitly compute and then use
699 the payload size. Update comments to reflect. Fixes problem of
700 GDB not sending small packets as found by Fred Fish.
701
702 2003-06-30 Andrew Cagney <cagney@redhat.com>
703
704 * remote.c (remote_async_wait): Fix -Wformat problem.
705
706 2003-06-29 Andrew Cagney <cagney@redhat.com>
707
708 * remote.c (remote_wait): Call error, and not warning, when the
709 packet is corrupt.
710 (remote_async_wait): Ditto.
711
712 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
713
714 * sparc-tdep.c (sparc_y_regnum): Make external again.
715
716 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
717
718 * cli/cli-logging.c (pop_output_files): Add void to function
719 definition.
720
721 2003-06-29 Andrew Cagney <cagney@redhat.com>
722
723 * frame.c (frame_register_unwind): Use unsigned char when dumping
724 the buffer contents.
725
726 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
727
728 * cli/cli-logging.c: New file.
729 * cli-out.c (struct ui_out_data): Add original_stream.
730 (cli_redirect): New function.
731 (cli_ui_out_impl): Add cli_redirect.
732 (cli_out_new): Initialize original_stream.
733 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
734 (uo_redirect, ui_out_redirect): New.
735 * ui-out.h (struct ui_out_impl): Add redirect member.
736 (redirect_ftype): New.
737 (ui_out_redirect): Add prototype.
738 * Makefile.in: Add rules for cli-logging.c.
739 * NEWS: Mention "set logging".
740
741 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
742
743 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
744
745 2003-06-27 Andrew Cagney <cagney@redhat.com>
746
747 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
748 (m68hc11_gdbarch_init): Do not set call_dummy_address.
749 * avr-tdep.c (avr_call_dummy_address): Delete function.
750 (avr_gdbarch_init): Do not set call_dummy_address.
751
752 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
753
754 * symfile.c (syms_from_objfile): Move variables to inner block.
755 Move the checks for the non-mainline case a bit earlier to avoid
756 doing some useless computations.
757
758 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
759
760 * dwarfread.c (decode_modified_type): Gag new compiler warning.
761
762 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
763
764 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
765 sections.
766
767 2003-06-26 Michael Chastain <mec@shout.net>
768
769 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
770 gdb/testsuite/gdb.c++/pr-1210.exp.
771
772 2003-06-26 Andrew Cagney <cagney@redhat.com>
773
774 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
775 altivec_expression.h and altivec_registers.h.
776
777 2003-06-26 Andrew Cagney <cagney@redhat.com>
778
779 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
780 info->mach when MIPS16. Patch suggested by Fred Fish.
781
782 2003-06-26 Andrew Cagney <cagney@redhat.com>
783
784 * utils.c (internal_vproblem): Print the problem to a reason
785 buffer and then pass to query. Make the msg variable more local.
786
787 2003-06-26 Andrew Cagney <cagney@redhat.com>
788
789 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
790 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
791 * gdbarch.h, gdbarch.c: Re-generate.
792 * frame-base.c (default_frame_args_address): Update. Use
793 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
794 not available.
795 (default_frame_locals_address): Ditto for
796 DEPRECATED_FRAME_LOCALS_ADDRESS.
797 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
798 (vax_frame_num_args): Update.
799 (vax_gdbarch_init): Update.
800 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
801 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
802 * mcore-tdep.c (mcore_gdbarch_init): Update.
803 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
804 * ia64-tdep.c (ia64_gdbarch_init): Update.
805 * symtab.h (address_class): Update comments.
806 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
807 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
808 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
809 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
810 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
811 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
812 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
813 * alpha-mdebug-tdep.c: Update.
814 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
815
816 2003-06-26 Andreas Jaeger <aj@suse.de>
817
818 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
819 of SSE registers so that varargs functions work. Rework handling
820 of passing arguments on the stack.
821 (x86_64_store_return_value): Return double and float values in SSE
822 register.
823
824 2003-06-24 Michael Chastain <mec@shout.net>
825
826 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
827 the "constructor breakpoints ignored" bug.
828
829 2003-06-25 David Carlton <carlton@kealia.com>
830
831 * MAINTAINERS: Update e-mail address.
832
833 2003-06-24 Jim Blandy <jimb@redhat.com>
834
835 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
836
837 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
838 function.
839 (ppc_linux_init_abi): Register it as the
840 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
841
842 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
843 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
844 method.
845
846 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
847 (ppc64_standard_linkage_target): Use it.
848
849 2003-06-23 Andrew Cagney <cagney@redhat.com>
850
851 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
852 for 0 "int0" and 4 "int32" sized registers.
853 * gdbtypes.c (builtin_type_int0): Define.
854 (build_gdbtypes): Initialize builtin_type_int0.
855 * gdbtypes.h (builtin_type_int0): Declare.
856
857 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
858
859 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
860 as characters are unsigned.
861
862 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
863
864 PR gdb/1179
865 * dwarfread.c (struct_type): Skip static fields without crashing.
866
867 2003-06-22 Andrew Cagney <cagney@redhat.com>
868
869 GDB 6.0 branch created.
870 * README: Update.
871 * PROBLEMS: Update. Empty.
872 * NEWS: Update.
873
874 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
875
876 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
877 Suggested by Nick Hibma <n_hibma@webweaving.org>.
878
879 2003-06-22 Andrew Cagney <cagney@redhat.com>
880
881 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
882 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
883 Velikov.
884
885 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
886
887 * cli/cli-cmds.c (shell_escape): Silence warnings from old
888 compilers.
889
890 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
891
892 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
893 argument of val_print.
894 * cp-valprint.c (cp_print_value): Don't add the offset parameter
895 to the address argument of baseclass_offset or target_read_memory.
896 Do add it to the argument of cp_print_value_fields.
897
898 2003-06-21 Andrew Cagney <cagney@redhat.com>
899
900 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
901 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
902 instead of 0..NUM_REGS.
903 (mips_register_reggroup_p): New function.
904 (mips_pseudo_register_write): New function.
905 (mips_pseudo_register_read): New function.
906 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
907 based on the register's type.
908 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
909 cooked.
910 (mips_get_saved_register): Simplify. Assert that REGNO is a
911 pseudo / cooked.
912 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
913 (mips_register_type): Replace mips_register_virtual_type. Map
914 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
915 when available.
916 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
917 that the register is cooked / virtual.
918 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
919 Only get the extra info when needed.
920 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
921 (mips32_heuristic_proc_desc): Fetch the cooked register.
922 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
923 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
924 (mips_print_register): Use gdbarch_register_type, instead of
925 REGISTER_VIRTUAL_TYPE.
926 (print_gp_register_row): Use gdbarch_register_type, instead of
927 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
928 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
929 Print the pseudo / cooked registers.
930 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
931 Print the pseudo / cooked registers.
932 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
933 REG_NUM is pseudo / cooked.
934 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
935 (mips_n32n64_xfer_return_value): Ditto.
936 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
937 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
938 (mips_register_sim_regno): New function.
939 (mips_gdbarch_init): Set deprecated_register_byte,
940 register_group_p, pseudo_register_write, pseudo_register_read,
941 register_sim_regno, and num_pseudo_regs. Set register_type,
942 instead of register_virtual_type.
943 * Makefile.in (mips-tdep.o): Update dependencies.
944 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
945 REGISTER_VIRTUAL_TYPE.
946 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
947 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
948 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
949 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
950 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
951
952 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
953
954 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
955 * cli/cli-cmds.c: Include "gdb_vfork.h".
956 (shell_escape): Use vfork.
957
958 2003-06-21 Andrew Cagney <cagney@redhat.com>
959
960 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
961 32 bit floating-point register saves.
962
963 * frame.h (deprecated_unwind_get_saved_register): Delete.
964 * frame.c (deprecated_unwind_get_saved_register): Delete function.
965 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
966 and deprecated_get_next_frame_hack instead of
967 deprecated_unwind_get_saved_register.
968
969 * mips-tdep.c (mips_dump_tdep): Do not print
970 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
971
972 * frame.c (get_frame_register): New function.
973 (frame_unwind_register_signed): New function.
974 (get_frame_register_signed): New function.
975 (frame_unwind_register_unsigned): New function.
976 (get_frame_register_unsigned): New function.
977 * frame.h: Add comments on naming schema.
978 (get_frame_register, frame_unwind_register_signed): Declare.
979 (get_frame_register_signed, get_frame_register_signed): Declare.
980 (frame_unwind_register_unsigned): Declare.
981 (get_frame_register_unsigned): Declare.
982
983 2003-06-20 Theodore A. Roth <troth@openavr.org>
984
985 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
986
987 2003-06-20 Theodore A. Roth <troth@openavr.org>
988
989 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
990 (avr_read_sp): Ditto.
991
992 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
993
994 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
995 * config/arm/nm-linux.h: Likewise.
996 * config/arm/tm-linux.h: Likewise.
997 * config/ia64/nm-linux.h: Likewise.
998 * config/ia64/tm-ia64.h: Likewise.
999 * config/s390/tm-linux.h: Likewise.
1000 * config/s390/tm-s390.h: Likewise.
1001 * s390-nat.c: Likewise.
1002 * s390-tdep.c: Likewise.
1003
1004 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
1005 * config/ia64/linux.mt: Likewise.
1006 * config/m68k/linux.mh: Likewise.
1007 * config/mips/linux.mt: Likewise.
1008 * config/powerpc/linux.mh: Likewise.
1009 * config/sh/linux.mt: Likewise.
1010
1011 2003-06-19 Kris Warkentin <kewarken@qnx.com>
1012
1013 * solib.c (solib_open): Change tests for whether to search
1014 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
1015 comments.
1016
1017 2003-06-19 Theodore A. Roth <troth@openavr.org>
1018
1019 * avr-tdep.c (avr_frame_address): Delete function.
1020 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
1021 set_gdbarch_frame_args_address.
1022
1023 2003-06-19 Andrew Cagney <cagney@redhat.com>
1024
1025 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
1026 (REGISTER_CONVERT_FROM_TYPE): Delete.
1027 (mips_register_convert_to_type): Delete declaration.
1028 (mips_register_convert_from_type): Delete declaration.
1029 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
1030 kernel/.
1031
1032 2003-06-19 Michael Snyder <msnyder@redhat.com>
1033
1034 * linux-nat.h: New file.
1035 * linux-nat.c: Include linux-nat.h.
1036 * lin-lwp.c: Include linux-nat.h.
1037 Move struct lwp_info def to linux-nat.h.
1038 * linux-proc.c: Include linux-nat.h.
1039 (linux_make_note_section): Iterate over lwps instead of threads.
1040 (linux_do_thread_registers): Use lwp instead of merged pid.
1041 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
1042 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
1043 Add dependency on linux_nat_h.
1044
1045 2003-06-19 Theodore A. Roth <troth@openavr.org>
1046
1047 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
1048
1049 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1050
1051 * varobj.c (get_type, get_target_type): Use check_typedef.
1052
1053 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1054
1055 * breakpoint.c (insert_catchpoint): Call internal_error.
1056
1057 2003-06-19 Theodore A. Roth <troth@openavr.org>
1058
1059 * avr-tdep.c (avr_push_dummy_code): Delete function.
1060 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
1061
1062 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1063
1064 * arch-utils.c (default_prepare_to_proceed): Remove.
1065 (generic_prepare_to_proceed): Remove.
1066 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
1067 (generic_prepare_to_proceed): Remove prototype.
1068 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
1069 * gdbarch.c: Regenerate.
1070 * gdbarch.h: Regenerate.
1071 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
1072 * hppah-nat.c (hppa_switched_threads): Remove.
1073 * infrun.c (prepare_to_proceed): New static function, copied from
1074 generic_prepare_to_proceed. Remove select_it argument.
1075 (proceed): Call prepare_to_proceed.
1076 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
1077 variables.
1078 (ptrace_wait): Don't set the removed variables.
1079 (hppa_switched_threads): Remove.
1080 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
1081 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
1082 (lin_lwp_prepare_to_proceed): Remove prototype.
1083 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
1084 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
1085
1086 2003-06-18 Theodore A. Roth <troth@openavr.org>
1087
1088 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
1089 trad-frame.h.
1090 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
1091 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
1092 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
1093 (AVR_PROLOGUE_*): Enumerate prologue types.
1094 (struct frame_extra_info): Remove.
1095 (struct avr_unwind_cache): Define.
1096 (avr_write_sp): Delete function.
1097 (avr_read_fp): Ditto.
1098 (avr_init_extra_frame_info): Ditto.
1099 (avr_pop_frame): Ditto.
1100 (avr_frame_saved_pc): Ditto.
1101 (avr_saved_pc_after_call): Ditto.
1102 (avr_push_return_address): Ditto.
1103 (avr_frame_chain): Ditto.
1104 (avr_store_struct_return): Ditto.
1105 (avr_push_arguments): Ditto.
1106 (avr_scan_prologue): Update comments. Changed to set up the info for
1107 cache unwinding. Now returns end of prologue PC.
1108 (avr_skip_prologue): Better handling of functions lacking a prologue
1109 by using avr_scan_prologue.
1110 (avr_scan_arg_moves): New function.
1111 (avr_saved_regs_unwinder): Ditto.
1112 (avr_frame_unwind_cache): Ditto.
1113 (avr_unwind_pc): Ditto.
1114 (avr_frame_this_id): Ditto.
1115 (avr_frame_prev_register): Ditto.
1116 (avr_frame_p): Ditto.
1117 (avr_frame_base_address ): Ditto.
1118 (avr_unwind_dummy_id): Ditto.
1119 (avr_push_dummy_code): Ditto.
1120 (push_stack_item): Ditto.
1121 (pop_stack_item): Ditto.
1122 (avr_push_dummy_call): Ditto.
1123 (struct stack_item): Define.
1124 (avr_frame_unwind): Declare structure.
1125 (avr_frame_base): Ditto.
1126 (avr_gdbarch_init): Remove calls to
1127 set_gdbarch_deprecated_init_frame_pc,
1128 set_gdbarch_deprecated_target_read_fp,
1129 set_gdbarch_deprecated_dummy_write_sp,
1130 set_gdbarch_deprecated_fp_regnum,
1131 set_gdbarch_deprecated_push_arguments,
1132 set_gdbarch_deprecated_push_return_address,
1133 set_gdbarch_deprecated_pop_frame,
1134 set_gdbarch_deprecated_store_struct_return,
1135 set_gdbarch_deprecated_frame_init_saved_regs,
1136 set_gdbarch_deprecated_init_extra_frame_info,
1137 set_gdbarch_deprecated_frame_chain,
1138 set_gdbarch_deprecated_frame_saved_pc,
1139 set_gdbarch_deprecated_saved_pc_after_call.
1140 Add calls to set_gdbarch_push_dummy_call,
1141 set_gdbarch_push_dummy_code,
1142 frame_unwind_append_predicate,
1143 frame_base_set_default,
1144 set_gdbarch_unwind_dummy_id,
1145 set_gdbarch_unwind_pc.
1146 Wrap a long line.
1147
1148 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
1149
1150 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
1151 registers for H8/300S.
1152 (h8300_print_registers_info): Ditto.
1153 (h8300_gdbarch_init): Accommodate register count for H8/300S.
1154
1155 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
1156
1157 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
1158 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1159 (lin_lwp_wait): Likewise. Update comments.
1160 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
1161 (pull_pid_from_list, linux_record_stopped_pid): New.
1162
1163 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
1164
1165 * ada-lang.c (scan_discrim_bound): Name first argument.
1166 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
1167 declared by ALL_BLOCK_SYMBOLS.
1168
1169 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
1170
1171 * ada-tasks.c (find_function_in_inferior): Don't declare it.
1172 ("regcache.h"): Include it.
1173 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
1174
1175 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1176
1177 * NEWS: Mention gdbserver detach change and "disconnect" command.
1178 * infcmd.c (disconnect_command): New function.
1179 (_initialize_infcmd): Add ``disconnect'' command.
1180 * remote.c (remote_async_detach): Delete.
1181 (remote_detach): Merge remote_async_detach.
1182 (remote_disconnect): New.
1183 (init_remote_ops): Set to_disconnect.
1184 (init_remote_cisco_ops): Likewise.
1185 (init_remote_async_ops): Likewise. Use remote_detach.
1186 * target.c (cleanup_target): Default to_disconnect.
1187 (update_current_target): Inherit to_disconnect.
1188 (target_disconnect, debug_to_disconnect): New functions.
1189 (setup_target_debug): Set to_disconnect.
1190 * target.h (struct target_ops): Add to_disconnect.
1191 (target_disconnect): Add prototype.
1192
1193 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1194
1195 * breakpoint.c (insert_catchpoint): New function.
1196 (insert_breakpoints): Use catch_exceptions to call
1197 insert_catchpoint. Disable catchpoints if they fail to insert.
1198
1199 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1200
1201 * symfile.c (reread_symbols): Clear sym_private.
1202
1203 2003-06-17 Andrew Cagney <cagney@redhat.com>
1204
1205 * trad-frame.h (struct frame_info): Add opaque declaration.
1206 * remote-fileio.h (struct cmd_list_element): Add opaque
1207 declaration.
1208 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
1209 comments.
1210
1211 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1212
1213 * remote.c (remote_prepare_to_store): Replace call to
1214 deprecated_read_register_bytes with multiple regcache_raw_read
1215 calls.
1216
1217 2003-06-17 Kris Warkentin <kewarken@qnx.com>
1218
1219 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
1220 (nto_find_and_open_solib): Likewise.
1221 (nto_init_solib_absolute_prefix): Likewise.
1222 (_initialize_nto_tdep): Fix indentation.
1223
1224 2003-06-17 Kris Warkentin <kewarken@qnx.com>
1225
1226 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
1227
1228 2003-06-17 Kris Warkentin <kewarken@qnx.com>
1229
1230 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
1231
1232 2003-06-17 Jim Blandy <jimb@redhat.com>
1233
1234 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
1235
1236 2003-06-16 Theodore A. Roth <troth@openavr.org>
1237
1238 * avr-tdep.c (avr_extract_return_value): New function.
1239 (avr_gdbarch_init): Set extract_return_value method.
1240
1241 2003-06-16 Andrew Cagney <cagney@redhat.com>
1242
1243 * frame.h (deprecated_get_next_frame_hack): Declare.
1244 * frame.c (legacy_saved_regs_prev_register): Only require
1245 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
1246 there are always saved regs.
1247 (deprecated_generic_get_saved_register): Do not require
1248 DEPRECATED_FRAME_INIT_SAVED_REGS.
1249 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
1250 use frame ID unwind instead.
1251 (deprecated_get_next_frame_hack): New function.
1252
1253 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
1254
1255 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
1256 (h8300_push_dummy_call): ...this function. Some minor optimization.
1257 (h8300_push_return_address): Remove.
1258 (h8300_gdbarch_init): Remove calls to
1259 set_gdbarch_deprecated_dummy_write_sp,
1260 set_gdbarch_deprecated_push_arguments and
1261 set_gdbarch_deprecated_push_return_address.
1262 Add call to set_gdbarch_push_dummy_call.
1263
1264 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
1265
1266 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
1267 (E_PSEUDO_EXR_REGNUM): Ditto.
1268 (h8300_is_argument_spill): Check for instructions moving argument
1269 registers into safe registers.
1270 (h8300_skip_prologue): Check for stm instruction to push registers
1271 used for register variables onto stack.
1272 (gdb_print_insn_h8300): Remove.
1273 (h8300_examine_prologue): Add a comment.
1274 (h8300_register_name): Take pseudo registers into account.
1275 (h8300s_register_name): Ditto.
1276 (h8300sx_register_name): Ditto.
1277 (h8300_print_register): Ditto.
1278 (h8300_print_registers_info): Define "nice" printing order.
1279 (h8300_saved_pc_after_call): Take pseudo registers into account.
1280 (h8300_register_type): Ditto. Return type used for remote connection
1281 when requesting real CCR or EXR register, return actual type when
1282 requesting pseudo CCR or EXR.
1283 (h8300_pseudo_register_read): New function.
1284 (h8300_pseudo_register_write): Ditto.
1285 (h8300_dbg_reg_to_regnum): Ditto.
1286 (h8300s_dbg_reg_to_regnum): Ditto.
1287 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
1288 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
1289 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
1290 set_gdbarch_print_insn architecture dependent.
1291 Call set_gdbarch_pseudo_register_read and
1292 set_gdbarch_pseudo_register_write.
1293 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
1294
1295 2003-06-16 Andrew Cagney <cagney@redhat.com>
1296
1297 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
1298 * gdbarch.h, gdbarch.c: Re-generate.
1299 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1300 * s390-tdep.c (s390_gdbarch_init): Update.
1301 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1302 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1303 * mips-tdep.c (mips_gdbarch_init): Update.
1304 * mcore-tdep.c (mcore_gdbarch_init): Update.
1305 * cris-tdep.c (cris_gdbarch_init): Update.
1306 * infcall.c (call_function_by_hand): Update.
1307 * ia64-tdep.c (ia64_push_arguments): Update comment.
1308 * frame.c (legacy_get_prev_frame): Do not assume
1309 SAVE_DUMMY_FRAME_TOS_P.
1310 * dummy-frame.c (find_dummy_frame): Update comment.
1311
1312 2003-06-16 Andrew Cagney <cagney@redhat.com>
1313
1314 * regcache.c (do_cooked_read): Do not use register_valid_p.
1315
1316 2003-06-15 Theodore A. Roth <troth@openavr.org>
1317
1318 * avr-tdep.c (avr_register_type): Remove a blank line.
1319 (avr_scan_prologue): Correct some comments.
1320
1321 2003-06-15 Theodore A. Roth <troth@openavr.org>
1322
1323 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
1324 prologue types.
1325 Properly scan prologues generated by gcc with the -mcall-prologues
1326 option.
1327 Add code to scan -mcall-prologues for mega devices.
1328
1329 2003-06-15 Theodore A. Roth <troth@openavr.org>
1330
1331 * avr-tdep.c (avr_register_byte): Delete function.
1332 (avr_register_raw_size): Delete function.
1333 (avr_register_virtual_size): Delete function.
1334 (avr_register_virtual_type): Delete function.
1335 (avr_register_type): New function.
1336 (avr_address_to_pointer): Remove unused code.
1337 (avr_read_fp): Need to read FP as two separate bytes due to change to
1338 avr_register_type() usage.
1339 (avr_gdbarch_init): Don't set deprecated_register_size.
1340 Don't set deprecated_register_bytes.
1341 Don't set deprecated_register_byte.
1342 Don't set deprecated_register_raw_size.
1343 Don't set deprecated_max_register_raw_size.
1344 Don't set deprecated_register_virtual_size.
1345 Don't set deprecated_max_register_virtual_size.
1346 Don't set deprecated_register_virtual_type.
1347 Set register_type method.
1348
1349 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
1350
1351 * Makefile.in (linux-nat.o): Add rule.
1352 * linux-nat.c: New file.
1353 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
1354 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
1355 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
1356 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
1357 * config/arm/linux.mh (NATDEPFILES): Likewise.
1358 * config/i386/linux.mh (NATDEPFILES): Likewise.
1359 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
1360 * config/ia64/linux.mh (NATDEPFILES): Likewise.
1361 * config/m68k/linux.mh (NATDEPFILES): Likewise.
1362 * config/mips/linux.mh (NATDEPFILES): Likewise.
1363 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
1364 * config/s390/s390.mh (NATDEPFILES): Likewise.
1365 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1366
1367 2003-06-15 Mark Kettenis <kettenis@gnu.org>
1368
1369 * i387-tdep.c: Reorder includes, fix some whitespace issues and
1370 replace out-of-date comment.
1371
1372 2003-06-15 Andrew Cagney <cagney@redhat.com>
1373
1374 * rdi-share/host.h (Fail): Change to a varargs function.
1375 * remote-rdi.c (Fail): Update.
1376
1377 2003-06-15 Mark Kettenis <kettenis@gnu.org>
1378
1379 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
1380 (i386_convert_register_p, i386_register_to_value,
1381 i386_register_from_value): Handle types longer than 8 bytes.
1382
1383 2003-06-15 Mark Kettenis <kettenis@gnu.org>
1384
1385 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
1386 Move floating-point code to new function in i387-tdep.c.
1387 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
1388 New functions containing code moved here from i386-tdep.c.
1389 * i387-tdep.h: Add opaque declaration for `struct type'.
1390 (i387_register_to_value, i387_value_to_register): New prototypes.
1391 * x86-64-tdep.c (x86_64_convert_register_p): New function.
1392 (x86_64_init_abi): Set convert_register_p, register_to_value and
1393 value_to_register here.
1394
1395 2003-06-14 Andrew Cagney <cagney@redhat.com>
1396
1397 * mips-tdep.c (mips_register_to_value): Make static.
1398 (mips_value_to_register): Make static.
1399 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
1400 * ia64-tdep.c (ia64_register_raw_size): Make static.
1401 (ia64_register_virtual_size): Make static.
1402 (ia64_register_byte): Make static.
1403 * i387-tdep.c: Include "i387-tdep.h".
1404 (print_387_control_word): Delete function.
1405 (print_387_status_word): Delete function.
1406 (print_387_status_bits): Delete function.
1407 (print_387_control_bits): Delete function.
1408 * Makefile.in (i387-tdep.o): Update dependencies.
1409 * rdi-share/host.h (Fail): Declare.
1410 * remote-rdi.c (Fail): Update to match declaration.
1411
1412 2003-06-14 Andrew Cagney <cagney@redhat.com>
1413
1414 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
1415 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
1416 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
1417 * config/djgpp/fnchange.lst: Delete "remote-array.c".
1418 * README: Delete reference to remote-array.
1419 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
1420 (remote-array.o): Delete target.
1421 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
1422 * remote-array.c: Delete file.
1423
1424 2003-06-14 Andrew Cagney <cagney@redhat.com>
1425 Mark Kettenis <kettenis@gnu.org>
1426
1427 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
1428 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
1429 parameter with "frame".
1430 * gdbarch.h, gdbarch.c: Re-generate.
1431 * frame.h (put_frame_register): Declare.
1432 * frame.c (put_frame_register): New function.
1433 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
1434 (legacy_register_to_value): Rewrite, use "frame" to get the
1435 register value.
1436 (legacy_value_to_register): Rewrite, use "frame" to find the
1437 register's location before storing.
1438 * arch-utils.h (legacy_convert_register_p): Update.
1439 (legacy_register_to_value, legacy_value_to_register): Update.
1440 * findvar.c (value_from_register): Rewrite, eliminate use of
1441 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
1442 "frame" to REGISTER_TO_VALUE.
1443 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
1444 lval_reg_frame_relative + lval_register branch of the switch. Do
1445 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
1446 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1447 I386_EDI_REGNUM): New defines.
1448 (i386_next_regnum, i386_convert_register_p,
1449 i386_register_to_value, i386_value_to_register): New functions.
1450 (i386_register_convertible, i386_register_convert_to_virtual,
1451 i386_convert_to_raw): Remove functions.
1452 (i386_gdbarch_init): Set convert_register_p, register_to_value and
1453 value_to_register instead of register_convertible,
1454 register_convert_to_virtual and register_convert_to_raw.
1455 * mips-tdep.c (mips_convert_register_p): New function.
1456 (mips_value_to_register): Replace mips_register_convert_from_type.
1457 (mips_register_to_value): Replace mips_register_convert_to_type.
1458 (mips_gdbarch_init): Set conver_register_p, value_to_register and
1459 register_to_value.
1460 * alpha-tdep.c (alpha_convert_register_p): Update.
1461 (alpha_value_to_register): Update, store the register.
1462 (alpha_register_to_value): Update, fetch the register.
1463
1464 2003-06-14 Theodore A. Roth <troth@openavr.org>
1465
1466 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
1467 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
1468 Don't set deprecated_call_dummy_words.
1469 Remove commented out set_gdbarch_believe_pcc_promotion() call.
1470 Don't set remote_translate_xfer_address.
1471 (avr_io_reg_read_command): Remove commented out debug printf.
1472 Wrap a long line.
1473
1474 2003-06-14 Theodore A. Roth <troth@openavr.org>
1475
1476 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
1477 causes gdb to seg fault.
1478
1479 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
1480
1481 * sparc-nat.c (fetch_inferior_registers): Correct
1482 a reference to "registers".
1483
1484 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
1485
1486 * Makefile.in (exc_request_U_h): Define
1487 (exc_request_S_h): Likewise.
1488 (msg_reply_S_h): Likewise.
1489 (msg_U_h): Likewise.
1490 (notify_S_h): Likewise.
1491 (process_reply_S_h): Likewise.
1492 (gnu-nat.o): Depend on gdb_obstack_h
1493 * gnu-nat.c: Include "gdb_obstack.h".
1494
1495 2003-06-13 Andrew Cagney <cagney@redhat.com>
1496
1497 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
1498 * gdbarch.h, gdbarch.c: Re-generate.
1499
1500 2003-06-13 Andrew Cagney <cagney@redhat.com>
1501
1502 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
1503 when deprecated REGISTER macros can be deleted.
1504 * gdbarch.h, gdbarch.c: Re-generate.
1505
1506 2003-06-13 Jim Blandy <jimb@redhat.com>
1507
1508 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
1509 Linux entry point symbols for _dl_debug_state, too.
1510
1511 2003-06-13 Andrew Cagney <cagney@redhat.com>
1512
1513 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
1514 available, do not use the FP register, and always save the TOS.
1515 * dummy-frame.c (dummy_frame_this_id): Do not assert
1516 SAVE_DUMMY_FRAME_TOS.
1517 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
1518 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
1519 (i386_push_dummy_call): Add 8 to the returned SP.
1520 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
1521 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
1522 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
1523 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
1524 (x86_64_push_dummy_call): Return "sp + 16".
1525 (x86_64_init_abi): Do not set save_dummy_frame_tos.
1526 * alpha-tdep.c (alpha_gdbarch_init): Do not set
1527 save_dummy_frame_tos.
1528
1529 2003-06-13 Jim Blandy <jimb@redhat.com>
1530
1531 * frv-tdep.c (frv_use_struct_convention): Delete static
1532 declaration for function deleted in my change of 2003-06-12.
1533
1534 2003-06-13 Theodore A. Roth <troth@openavr.org>
1535
1536 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
1537 (avr_pointer_to_address): Shift code addrs left 1 bit.
1538 (avr_convert_from_func_ptr_addr): Delete function since operation is
1539 better handled by avr_address_to_pointer and avr_pointer_to_address.
1540 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
1541
1542 2003-06-13 Mark Kettenis <kettenis@gnu.org>
1543
1544 From Kelley Cook <kelleycook@wideopenwest.com>:
1545 * configure.host: Accept i[34567]86 variants.
1546 * configure.tgt: Likewise.
1547 * nlm/configure.in: Likewise.
1548 * nlm/configure: Regenerated.
1549
1550 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
1551
1552 * arm-tdep.c (solib-svr4.h): Dont' include it.
1553 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
1554 * arm-linux-tdep.c: ... here. Make static.
1555 (arm_linux_init_abi): Register it.
1556 (solib-svr4.h): Include it.
1557 * Makefile.in: Update dependencies.
1558 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
1559 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
1560
1561 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
1562
1563 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
1564 indicate registers used for return values.
1565 (struct frame_extra_info): Drop args_pointer and locals_pointer.
1566 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
1567 members.
1568 (h8300_init_extra_frame_info): Ditto.
1569 (h8300_frame_locals_address): Removed.
1570 (h8300_frame_args_address): Removed.
1571 (h8300_extract_return_value): Use new regcache structure. Only care
1572 for 16 bit CPUs.
1573 (h8300h_extract_return_value): Same function for 32 bit CPUs.
1574 (h8300_store_return_value): Use new regcache structure. Only care
1575 for 16 bit CPUs.
1576 (h8300h_store_return_value): Same function for 32 bit CPUs.
1577 (h8300_store_struct_return): Removed.
1578 (h8300_extract_struct_value_address): Use new regcache structure.
1579 (h8300h_extract_struct_value_address): Removed.
1580 (h8300_push_dummy_code): New function.
1581 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
1582 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
1583 set_gdbarch_store_return_value architecture dependent.
1584 Call set_gdbarch_push_dummy_code and
1585 set_gdbarch_extract_struct_value_address.
1586 Remove calls to set_gdbarch_frame_args_address,
1587 set_gdbarch_frame_locals_address,
1588 set_gdbarch_deprecated_store_struct_return,
1589 set_gdbarch_deprecated_extract_return_value,
1590 set_gdbarch_deprecated_extract_struct_value_address,
1591 set_gdbarch_deprecated_call_dummy_words and
1592 set_gdbarch_deprecated_sizeof_call_dummy_words.
1593
1594 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
1595
1596 * h8300-tdep.c (h8300_register_byte): Remove.
1597 (h8300h_register_byte): Remove.
1598 (h8300_register_virtual_type): Remove. Substitute by...
1599 (h8300_register_type): New function.
1600 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
1601 (h8300h_extract_struct_value_address): Ditto.
1602 (h8300_gdbarch_init): Drop calls to
1603 set_gdbarch_deprecated_register_byte and
1604 set_gdbarch_deprecated_register_virtual_type.
1605 Add call to set_gdbarch_register_type.
1606
1607 2003-06-13 Andrew Cagney <cagney@redhat.com>
1608
1609 * gdbarch.sh: Update comments on registers.
1610 (deprecated_register_byte): Rename register_byte.
1611 (deprecated_register_raw_size): Rename register_raw_size.
1612 (deprecated_register_virtual_size): Rename register_virtual_size.
1613 (deprecated_register_virtual_type): Rename register_virtual_type.
1614 * gdbarch.h, gdbarch.c: Re-generate.
1615 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1616 * vax-tdep.c (vax_gdbarch_init): Update.
1617 * v850-tdep.c (v850_gdbarch_init): Update.
1618 * sparc-tdep.c (sparc_gdbarch_init): Update.
1619 * sh-tdep.c (sh_gdbarch_init): Update.
1620 * s390-tdep.c (s390_gdbarch_init): Update.
1621 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1622 * ns32k-tdep.c: Update.
1623 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1624 * mips-tdep.c (mips_gdbarch_init): Update.
1625 * mcore-tdep.c (mcore_gdbarch_init): Update.
1626 * m68k-tdep.c (m68k_gdbarch_init): Update.
1627 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1628 * ia64-tdep.c (ia64_gdbarch_init): Update.
1629 * hppa-tdep.c (hppa_gdbarch_init): Update.
1630 * h8300-tdep.c (h8300_gdbarch_init): Update.
1631 * frv-tdep.c (frv_gdbarch_init): Update.
1632 * cris-tdep.c (cris_gdbarch_init): Update.
1633 * avr-tdep.c (avr_gdbarch_init): Update.
1634 * alpha-tdep.c (alpha_gdbarch_init): Update.
1635 * arm-tdep.c (arm_gdbarch_init): Update.
1636
1637 2003-06-13 Andrew Cagney <cagney@redhat.com>
1638
1639 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
1640 mips_o32_use_struct_convention with always_use_struct_convention.
1641
1642 2003-06-12 David Carlton <carlton@kealia.com>
1643
1644 * cp-namespace.c (cp_set_block_scope): Comment out
1645 processing_has_namespace_info branch.
1646
1647 2003-06-12 Jim Blandy <jimb@redhat.com>
1648
1649 Recognize and skip 64-bit PowerPC Linux linkage functions.
1650 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
1651 insn_pattern, insns_match_pattern, d_field, ds_field): New
1652 functions, macros, and types for working with PPC instructions.
1653 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
1654 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
1655 ppc64_skip_trampoline_code): New functions, variables, and macros
1656 for recognizing and skipping linkage functions.
1657 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
1658 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
1659
1660 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
1661 register offsets for both the 32- and 64-bit interfaces.
1662
1663 Actually finish the job started by my change of 2003-05-29.
1664 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
1665 other #definition of this.
1666 (ppc_linux_skip_trampoline_code): Remove declaration.
1667 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
1668 static.
1669 (ppc_linux_init_abi): Register it as the skip_trampoline_code
1670 method for GDBARCH.
1671
1672 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
1673 'long' on ppc64-*-linux*.
1674
1675 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
1676 isn't #defined, assume the register doesn't exist: act as if
1677 tdep->ppc_mq_regnum were -1.
1678
1679 * configure.host, configure.tgt: Add entries for
1680 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
1681 powerpc/linux.mt.
1682 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
1683 New files.
1684
1685 * arch-utils.c (always_use_struct_convention): New function.
1686 * arch-utils.h (always_use_struct_convention): New prototype.
1687 * alpha-tdep.c (alpha_use_struct_convention): Delete.
1688 (alpha_gdbarch_init): Register always_use_struct_convention,
1689 instead of alpha_use_struct_convention.
1690 * cris-tdep.c (cris_use_struct_convention): Delete.
1691 (cris_gdbarch_init): Register always_use_struct_convention,
1692 instead of cris_use_struct_convention.
1693 * frv-tdep.c (frv_use_struct_convention): Delete.
1694 (frv_gdbarch_init): Register always_use_struct_convention,
1695 instead of frv_use_struct_convention.
1696 * h8300-tdep.c (h8300_use_struct_convention): Delete.
1697 (h8300_gdbarch_init): Register always_use_struct_convention,
1698 instead of h8300_use_struct_convention.
1699 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1700 (mips_o32_gdbarch_init): Register always_use_struct_convention,
1701 instead of mips_o32_use_struct_convention.
1702
1703 2003-06-12 Andrew Cagney <cagney@redhat.com>
1704
1705 * wince.c: Include "mips-tdep.h".
1706 * mips-tdep.h (mips_next_pc): Declare.
1707 * mcore-tdep.c: Make more local functions static.
1708 * Makefile.in (wince.o): Update dependencies.
1709
1710 2003-06-12 David Carlton <carlton@kealia.com>
1711
1712 * symtab.c (lookup_symbol_aux_minsyms): Replace
1713 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
1714 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
1715 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
1716 SYMBOL_NATURAL_NAME.
1717
1718 2003-06-12 Andreas Schwab <schwab@suse.de>
1719
1720 * Makefile.in (tuiDisassem.o): Update dependencies.
1721
1722 2003-06-12 David Carlton <carlton@bactrian.org>
1723
1724 * symtab.h: Delete declaration of make_symbol_overload_list.
1725 Add declaration of lookup_partial_symbol.
1726 * symtab.c (remove_params): Move to cp-support.c.
1727 (overload_list_add_symbol, make_symbol_overload_list)
1728 (sym_return_val_size, sym_return_val_index): Ditto.
1729 (lookup_partial_symbol): Make extern.
1730 * cp-support.h: Add declaration of make_symbol_overload_list.
1731 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
1732 symtab.h, and block.h.
1733 (remove_params): Move here from symtab.c.
1734 (overload_list_add_symbol, make_symbol_overload_list)
1735 (sym_return_val_size, sym_return_val_index): Ditto.
1736 * valops.c: Include cp-support.h.
1737 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
1738 frame_h, and block_h.
1739 (valops.o): Depend on cp_support_h.
1740
1741 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
1742
1743 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
1744 substitute by NUM_REGS throughout.
1745 (h8300_register_name): Only care for H8/300 and H8/300H registers.
1746 (h8300s_register_name): New function for H8S registers.
1747 (h8300sx_register_name): Ditto for H8SX registers.
1748 (h8300_print_register): Revise register printing, avoid depending
1749 on 32 bit long.
1750 (h8300_register_byte): Only care for H8/300 registers.
1751 (h8300h_register_byte): New function for any other architecture.
1752 (h8300_register_raw_size): Remove.
1753 (h8300_register_virtual_type): Revise to return actually useful
1754 type.
1755 (h8300_extract_struct_value_address): Only care for H8/300 registers.
1756 (h8300h_extract_struct_value_address): New function for any other
1757 architecture.
1758 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
1759 set_gdbarch_register_name, set_gdbarch_register_byte,
1760 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
1761 Remove calls to set_gdbarch_deprecated_register_size,
1762 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
1763 set_gdbarch_deprecated_max_register_raw_size,
1764 set_gdbarch_register_virtual_size and
1765 set_gdbarch_deprecated_max_register_virtual_size entirely.
1766 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
1767 set_gdbarch_long_double_bit.
1768
1769 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
1770
1771 * doublest.c (convert_doublest_to_floatformat): When dealing
1772 with the implied integer bit, only alter mant_bits if we are
1773 processing a full 32 bits of mantissa.
1774
1775 2003-06-11 David Carlton <carlton@bactrian.org>
1776
1777 * dictionary.h: New.
1778 * dictionary.c: New.
1779 * block.h: Add opaque declaration for struct dictionary.
1780 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
1781 'sym' members.
1782 (BLOCK_DICT): New macro.
1783 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
1784 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
1785 BLOCK_SHOULD_SORT.
1786 (ALL_BLOCK_SYMBOLS): Update definition.
1787 * Makefile.in (SFILES): Add dictionary.c.
1788 (dictionary_h): New.
1789 (COMMON_OBS): Add dictionary.o.
1790 (dictionary.o): New.
1791 (ada-lang.o): Depend on dictionary_h.
1792 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
1793 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
1794 (mi-cmd-stack.o): Ditto.
1795 (gdbtk-cmds.o): Update dependencies.
1796 (gdbtk-stack.o): Ditto.
1797 * ada-lang.c: Include dictionary.h.
1798 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
1799 (fill_in_ada_prototype, debug_print_block): Ditto.
1800 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
1801 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
1802 'is_sorted'.
1803 * mdebugread.c: Include dictionary.h.
1804 (struct parse_stack): Delete 'maxsyms' member.
1805 (parse_symbol): Update calls to new_block. Delete calls to
1806 shrink_block. Use dictionary methods.
1807 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
1808 Update calls to new_symtab. Don't maintain maxsyms data.
1809 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
1810 (add_symbol): Just call dict_add_symbol.
1811 (new_symtab): Delete 'maxsyms' argument.
1812 (new_symtab): Update calls to new_block.
1813 (new_block): Delete 'maxsyms' argument; add 'function' argument.
1814 (shrink_block): Delete function.
1815 (fixup_sigtramp): Update call to new_block. Add symbol via
1816 dict_add_symbol.
1817 * jv-lang.c: Include dictionary.h.
1818 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
1819 appropriately. Set class_symtab->free_func. Make sure the
1820 blockvector is big enough to hold two blocks.
1821 (add_class_symtab_symbol): Use dictionary methods.
1822 (free_class_block): New function.
1823 (type_from_class): Replace explicit iteration by
1824 ALL_BLOCK_SYMBOLS.
1825 * symtab.h (struct symtab): Replace 'free_ptr' method by
1826 'free_func'.
1827 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
1828 sort_symtab_syms.
1829 * dwarfread.c (psymtab_to_symtab_1): Delete call to
1830 sort_symtab_syms.
1831 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
1832 Include dictionary.h.
1833 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
1834 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
1835 sort_symtab_syms.
1836 * objfiles.c: Include dictionary.h.
1837 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
1838 * buildsym.c: Include dictionary.h.
1839 (finish_block): Use dictionary methods.
1840 (end_symtab): Set free_func to NULL, not free_ptr.
1841 * tracepoint.c: Include dictionary.h.
1842 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
1843 (scope_info): Ditto.
1844 * stack.c: Include dictionary.h.
1845 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
1846 (print_block_frame_labels, print_frame_arg_vars)
1847 (print_frame_args): Ditto.
1848 * symmisc.c (free_symtab_block): Use dictionary methods.
1849 (dump_symtab): Ditto.
1850 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
1851 Include dictionary.h.
1852 * symfile.h: Delete declarations of sort_block_syms,
1853 sort_symtab_syms.
1854 * symfile.c (sort_block_syms): Delete.
1855 (sort_symtab_syms): Delete.
1856 * symtab.c: Include dictionary.h.
1857 (lookup_block_symbol): Use dictionary iterators.
1858 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
1859 (search_symbols, make_symbol_completion_list): Ditto.
1860 (make_symbol_overload_list): Ditto.
1861 * valops.c (value_of_local): Use dict_empty.
1862 Include dictionary.h.
1863
1864 2003-06-11 J. Brobecker <brobecker@gnat.com>
1865
1866 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
1867
1868 2003-06-11 David Carlton <carlton@bactrian.org>
1869
1870 * block.h (BLOCK_SHOULD_SORT): Delete.
1871 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
1872 blocks.
1873 * ada-lang.c (ada_add_block_symbols): Ditto.
1874 * symfile.c (sort_block_syms): Delete.
1875 (sort_symtab_syms): Ditto.
1876 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
1877 declarations.
1878 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
1879 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
1880 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
1881 * dwarfread.c (psymtab_to_symtab_1): Ditto.
1882 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
1883 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1884 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
1885
1886 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
1887
1888 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
1889 bits to 128.
1890
1891 2003-06-11 Andrew Cagney <cagney@redhat.com>
1892
1893 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
1894 REGISTER_CONVERTIBLE.
1895 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
1896 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
1897 * gdbarch.h, gdbarch.c: Re-generate.
1898 * arch-utils.h (deprecated_register_convertible_not): Rename
1899 generic_register_convertible_not.
1900 * arch-utils.c (deprecated_register_convertible_not): Rename
1901 generic_register_convertible.
1902 (legacy_convert_register_p, legacy_register_to_value): Update.
1903 * sh-tdep.c (sh64_push_arguments): Update.
1904 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
1905 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
1906 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
1907 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
1908 * arch-utils.c (legacy_value_to_register): Update.
1909 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1910 (rs6000_register_convert_to_raw): Make parameter "from" const.
1911 * mips-tdep.c (mips_gdbarch_init): Update.
1912 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
1913 * infcmd.c (default_print_registers_info): Update.
1914 * ia64-tdep.c (ia64_gdbarch_init): Update.
1915 (ia64_register_convert_to_raw): Make parameter "from" const.
1916 * i386-tdep.c (i386_gdbarch_init): Update.
1917 (i386_register_convert_to_raw): Update.
1918
1919 2003-06-11 Andrew Cagney <cagney@redhat.com>
1920
1921 * remote-fileio.c: Include "remote-fileio.h".
1922 * Makefile.in (remote-fileio.o): Update dependencies.
1923 (remote_fileio_h): Fix typo.
1924
1925 2003-06-11 Andrew Cagney <cagney@redhat.com>
1926
1927 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
1928 (xstormy16_save_dummy_frame_tos): Make static.
1929 (_initialize_xstormy16_tdep): Add declaration.
1930 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
1931 * v850-tdep.c: Make local functions static.
1932 (_initialize_v850_tdep): Add declaration.
1933 * sparc-tdep.c: Make local functions static.
1934 (_initialize_sparc_tdep): Add declaration.
1935 * sh-tdep.c: Make local functions static.
1936 (_initialize_sh_tdep): Add declaration.
1937 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
1938 * s390-tdep.c: Make local functions static.
1939 (_initialize_s390_tdep): Add declaration.
1940 * dbxread.c (find_stab_function_addr): Make static.
1941 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
1942 * ocd.c (_initialize_remote_ocd): Add declaration.
1943 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
1944 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
1945 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
1946 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
1947 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
1948 * remote-array.c (_initialize_array): Add declaration.
1949 (_initialize_remote_monitors): Add declaration.
1950 * remote-mips.c: Make local functions static.
1951 (_initialize_remote_mips): Add declaration.
1952 * mcore-tdep.c: Make all local functions static.
1953 (_initialize_mcore_tdep): Add declaration.
1954 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
1955 * abug-rom.c (_initialize_abug_rom): Add declaration.
1956 * rom68k-rom.c (_initialize_rom68k): Add declaration.
1957 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
1958 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
1959 * remote-est.c (_initialize_est): Add declaration.
1960 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
1961 (m68hc11_call_dummy_address): Make static.
1962 * ia64-tdep.c: Make local functions static.
1963 (_initialize_ia64_tdep): Add declaration.
1964 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
1965 * monitor.c (monitor_wait_filter): Make static.
1966 (_initialize_remote_monitors): Add declaration.
1967 * remote-hms.c (_initialize_remote_hms): Add declaration.
1968 * remote-e7000.c (fetch_regs_from_dump): Make static.
1969 (expect_n): Make static.
1970 (_initialize_remote_e7000): Add declaration.
1971 * ser-e7kpc.c: Always include "defs.h".
1972 (_initialize_ser_e7000pc): Add declaration.
1973 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
1974 * cris-tdep.c: Make all but one function static.
1975 (_initialize_cris_tdep): Add declaration.
1976 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
1977 * solib.c (update_solib_list): Make static.
1978 (_initialize_solib): Add declaration.
1979 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
1980 (_initialize_avr_tdep): Add declaration.
1981 * remote-rdi.c (voiddummy): Make static.
1982 (_initialize_remote_rdi): Add declaration.
1983 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
1984 * remote-rdp.c (send_rdp): Make static.
1985 (_initialize_remote_rdp): Add declaration.
1986 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
1987
1988 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
1989
1990 * remote-fileio.c: Make ari happy.
1991
1992 2003-06-10 J. Brobecker <brobecker@gnat.com>
1993
1994 * rs6000-nat.c (child_xfer_memory): Compute the right address when
1995 fetching the trailing bytes of the buffer we are about to write.
1996
1997 2003-06-10 Andrew Cagney <cagney@redhat.com>
1998
1999 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
2000 * Makefile.in (remote-fileio.o): Update dependencies.
2001 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
2002 include <setjmp.h>, or <sys/types.h> conditional on USG.
2003 (remote_fio_jmp_buf): Delete global variable.
2004
2005 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
2006 Martin M. Hunt <hunt@redhat.com>
2007
2008 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
2009 (SFILES): Add remote-fileio.c.
2010 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
2011 dependencies for building remote.o.
2012 * remote-fileio.c: New file implementing the remote File-I/O protocol.
2013 * remote-fileio.h: New header file defining remote File-I/O interface.
2014 * remote.c (remote_write_bytes, remote_read_bytes): Remove
2015 static storage class.
2016 (remote_wait, remote_async_wait): Call remote_fileio_request() on
2017 'F' packet.
2018 (_initialize_remote): Call initialize_remote_fileio().
2019 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
2020 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2021 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2022 (captured_main): Initialize new ui_files.
2023 * ui-file.c: Add read and fgets input functions.
2024 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
2025 (null_file_read): New function.
2026 (ui_file_read): New function.
2027 (set_ui_file_read): New function.
2028 (stdio_file_read): New function.
2029 * ui-file.h: New type ui_file_read_ftype.
2030 (set_ui_file_read): Declare.
2031 (ui_file_read): Declare.
2032
2033 2003-06-09 Andrew Cagney <cagney@redhat.com>
2034
2035 * frame.h (deprecated_unwind_get_saved_register): Rename
2036 generic_unwind_get_saved_register, update comments.
2037 * mips-tdep.c (mips_get_saved_register): Update.
2038 * frame.c (deprecated_unwind_get_saved_register): Update.
2039
2040 2003-06-09 Andrew Cagney <cagney@redhat.com>
2041
2042 * vax-tdep.c (vax_frame_locals_address): Delete function.
2043 (vax_gdbarch_init): Do not set frame_locals_address.
2044 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
2045 (m68hc11_gdbarch_init): Do not set frame_locals_address.
2046 * s390-tdep.c (s390_frame_args_address): Delete function.
2047 (s390_gdbarch_init): Do not set frame_args_address or
2048 frame_locals_address.
2049 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
2050 (ns32k_gdbarch_init): Do not set frame_locals_address.
2051 * hppa-tdep.c (hppa_frame_args_address): Delete function.
2052 (hppa_frame_locals_address): Delete function.
2053 (hppa_gdbarch_init): Do not set frame_args_address, or
2054 frame_locals_address.
2055 * arm-tdep.c (arm_frame_args_address): Delete.
2056 (arm_frame_locals_address): Delete.
2057 (arm_gdbarch_init): Do not set frame_args_address, or
2058 frame_locals_address.
2059
2060 2003-06-09 Andrew Cagney <cagney@redhat.com>
2061
2062 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
2063 * gdbarch.h, gdbarch.c: Re-generate.
2064 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
2065 * arch-utils.c (frame_num_args_unknown): Delete function.
2066 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
2067 (frame_info): Use FRAME_NUM_ARGS_P.
2068 * arm-tdep.c (arm_frame_num_args): Delete function.
2069 (arm_gdbarch_init): Do not set frame_num_args.
2070 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
2071 * hppa-tdep.c (hppa_frame_num_args): Delete function.
2072 (hppa_gdbarch_init): Do not set frame_num_args.
2073 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
2074 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2075 frame_num_args to default frame_num_args_unknown.
2076 * v850-tdep.c (v850_gdbarch_init): Ditto.
2077 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2078 * sh-tdep.c (sh_gdbarch_init): Ditto.
2079 * s390-tdep.c (s390_gdbarch_init): Ditto.
2080 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2081 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2082 * mips-tdep.c (mips_gdbarch_init): Ditto.
2083 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2084 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2085 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2086 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2087 * i386-tdep.c (i386_gdbarch_init): Ditto.
2088 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2089 * frv-tdep.c (frv_gdbarch_init): Ditto.
2090 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2091 * cris-tdep.c (cris_gdbarch_init): Ditto.
2092 * avr-tdep.c (avr_gdbarch_init): Ditto.
2093 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2094
2095 2003-06-09 Andrew Cagney <cagney@redhat.com>
2096
2097 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
2098 (print_frame_args): Moved to "stack.c".
2099 * stack.c: Include "gdb_assert.h".
2100 (print_frame_nameless_args): Moved from "printcmd.c", made static.
2101 (print_frame_args): Moved from "printcmd.c".
2102 * frame.h (print_frame_args): Delete declaration.
2103 * Makefile.in (stack.o): Update dependencies.
2104
2105 2003-06-08 Andrew Cagney <cagney@redhat.com>
2106
2107 * frame.c (get_prev_frame): Remove reference to
2108 frame_args_address_correct in comments.
2109 * frame-base.c (default_frame_args_address): Delete code
2110 conditional on FRAME_ARGS_ADDRESS_CORRECT.
2111 * vax-tdep.c (vax_frame_args_address_correct): Delete.
2112 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
2113 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
2114 (vax_frame_args_address_correct): Delete declaration.
2115
2116 2003-06-08 Andrew Cagney <cagney@redhat.com>
2117
2118 * gdbarch.sh (UNWIND_SP): Add.
2119 * gdbarch.h, gdbarch.c: Re-generate.
2120 * frame.c (frame_sp_unwind): New function.
2121 (get_frame_sp): New function.
2122 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
2123 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
2124 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
2125 value.
2126 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
2127 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
2128
2129 2003-06-08 Andrew Cagney <cagney@redhat.com>
2130
2131 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
2132 REMOTE_BREAKPOINT.
2133 * remote.c: Update.
2134 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
2135 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
2136 * config/m68k/tm-sun3.h: Update.
2137 * config/m68k/tm-m68klynx.h: Update.
2138 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
2139
2140 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
2141 trad_frame". Update comments.
2142 * d10v-tdep.c (struct d10v_unwind_cache): Update.
2143 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
2144 (trad_frame_register_value, trad_frame_prev_register): Update.
2145
2146 2003-06-08 Andrew Cagney <cagney@redhat.com>
2147
2148 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
2149 from GCC's acinclude.m4.
2150 * configure.in: Check for getopt's delcaration.
2151 * aclocal.m4, config.in, configure: Re-generate.
2152 * main.c (error_init): Delete declaration.
2153 * defs.h (error_init): Declare.
2154 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
2155 (rs6000_convert_from_func_ptr_addr): Make static.
2156 (_initialize_rs6000_tdep): Add declaration.
2157 * cli/cli-cmds.c (dont_repeat): Delete declaration.
2158 (show_commands, set_verbose, show_history): Delete declaration.
2159 * top.h (set_verbose): Add declaration.
2160 (show_history, set_history, show_commands): Add declaration.
2161 (do_restore_instream_cleanup): Add declaration.
2162 * objc-lang.c (specialcmp): Make static.
2163 (print_object_command): Make static.
2164 (find_objc_msgsend): Make static.
2165 (find_objc_msgcall_submethod_helper): Make static.
2166 (find_objc_msgcall_submethod): Make static.
2167 (_initialize_objc_language): Add declaration.
2168 (find_implementation_from_class): Make static.
2169 (find_implementation): Make static.
2170 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
2171 * objc-lang.h (lookup_struct_typedef): Add declaration.
2172 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
2173 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
2174 (do_restore_user_call_depth): Make static.
2175 (do_restore_instream_cleanup): Delete declaration.
2176 (dont_repeat): Delete declaration.
2177 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
2178 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
2179 * reggroups.c (_initialize_reggroup): Add declaration.
2180 * cp-support.c (_initialize_cp_support): Add declaration.
2181 * cp-abi.c (_initialize_cp_abi): Add declaration.
2182 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
2183 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
2184 (_initialize_gnu_v3_abi): Add declaration.
2185 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
2186 (_initialize_gnu_v2_abi): Add declaration.
2187 * frame-base.c (_initialize_frame_base): Add declaration.
2188 * doublest.c (floatformat_from_length): Make static.
2189 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
2190 * frame.c (create_sentinel_frame): Make static.
2191 (_initialize_frame): Add declaration.
2192 * top.c (do_catch_errors): Make static.
2193 (gdb_rl_operate_and_get_next_completion): Make static.
2194 * typeprint.c: Include "typeprint.h".
2195 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
2196 (sentinel_frame_this_id): Make static.
2197 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
2198 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
2199 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
2200 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
2201 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
2202 * maint.c (maintenance_print_architecture): Make static.
2203 * signals/signals.c (_initialize_signals): Add declaration.
2204 * std-regs.c (_initialize_frame_reg): Add declaration.
2205 * jv-exp.y (push_variable): ISO C definition.
2206 (push_qualified_expression_name): Ditto.
2207 * memattr.c (_initialize_mem): Add declaration.
2208 * remote.c (remote_check_watch_resources): Make static.
2209 (remote_stopped_by_watchpoint): Make static.
2210 (remote_stopped_data_address): Make static.
2211 * d10v-tdep.c (nr_dmap_regs): Make static.
2212 (a0_regnum): Make static.
2213 (d10v_frame_unwind_cache): Make static.
2214 (d10v_frame_p): Make static.
2215 * osabi.c (show_osabi): Make static.
2216 (_initialize_gdb_osabi): Add extern declaration.
2217 * gdbtypes.c (make_qualified_type): Make static.
2218 (safe_parse_type): Make static.
2219 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
2220 * macrotab.c (macro_bcache_free): Make static.
2221 * interps.c (interp_set_quiet): Make static.
2222 (interpreter_exec_cmd): Make static.
2223 * stack.h (select_frame_command): New file.
2224 * stack.c: Include "stack.h".
2225 (select_frame_command_wrapper): Delete function.
2226 (select_frame_command): Make global.
2227 * infcall.c: Include "infcall.h".
2228 * linespec.c: Include "linespec.h".
2229 * symfile.c (sections_overlap): Make static.
2230 * cp-support.h (cp_initialize_namespace): ISO C declaration.
2231 * charset.c (_initialize_charset): Add missing prototype.
2232 * regcache.c (init_legacy_regcache_descr): Make static.
2233 (do_regcache_xfree): Make static.
2234 (regcache_xfer_part): Make static.
2235 (_initialize_regcache): Add missing prototype.
2236 * breakpoint.c (parse_breakpoint_sals): Make static.
2237 (breakpoint_sals_to_pc): Make static.
2238 * interps.h (clear_interpreter_hooks): ISO C declaration.
2239 * Makefile.in (stack_h): Define.
2240 (stack.o, typeprint.o, mi-main.o): Update dependencies.
2241 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
2242
2243 2003-06-08 Andrew Cagney <cagney@redhat.com>
2244
2245 * Makefile.in (d10v-tdep.o): Update dependencies.
2246 (SFILES): Add trad-frame.c.
2247 (trad_frame_h): Define.
2248 (COMMON_OBS): Add trad-frame.o.
2249 (trad-frame.o): Specify dependencies.
2250 * d10v-tdep.c: Include "trad-frame.h".
2251 (saved_regs_unwinder): Delete function.
2252 (d10v_frame_prev_register): Use trad_frame_prev_register.
2253 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
2254 trad_frame", delete "regs" and "prev_sp".
2255 (prologue_find_regs): Use trad-frame.
2256 * trad-frame.h, trad-frame.c: New files.
2257
2258 2003-06-08 Mark Kettenis <kettenis@gnu.org>
2259
2260 * dwarf2cfi.c, dwarf2cfi.h: Remove.
2261
2262 2003-06-07 Adam Fedor <fedor@gnu.org>
2263
2264 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
2265 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
2266 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
2267 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
2268 resolve_msgsend_super, resolve_msgsend_super_stret):
2269 Use it.
2270
2271 2003-06-07 Andrew Cagney <cagney@redhat.com>
2272
2273 * symfile.h: Re-indent, clean up comments.
2274
2275 2003-06-07 Andrew Cagney <cagney@redhat.com>
2276
2277 * inferior.h (deprecated_write_sp): Replace
2278 generic_target_write_sp.
2279 * regcache.c (deprecated_write_sp): Replace
2280 generic_target_write_sp.
2281 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2282 * vax-tdep.c (vax_gdbarch_init): Update.
2283 * v850-tdep.c (v850_gdbarch_init): Update.
2284 * sparc-tdep.c (sparc_gdbarch_init): Update.
2285 * sh-tdep.c (sh_gdbarch_init): Update.
2286 * s390-tdep.c (s390_gdbarch_init): Update.
2287 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2288 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2289 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2290 * mcore-tdep.c (mcore_gdbarch_init): Update.
2291 * m68k-tdep.c (m68k_gdbarch_init): Update.
2292 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2293 * ia64-tdep.c (ia64_gdbarch_init): Update.
2294 * h8300-tdep.c (h8300_gdbarch_init): Update.
2295 * frv-tdep.c (frv_gdbarch_init): Update.
2296 * cris-tdep.c (cris_gdbarch_init): Update.
2297 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
2298
2299 2003-06-07 Andrew Cagney <cagney@redhat.com>
2300
2301 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
2302 Assert that PC_REGNUM is valid.
2303 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
2304
2305 2003-06-07 Andrew Cagney <cagney@redhat.com>
2306
2307 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
2308 * gdbarch.h, gdbarch.c: Regenerate.
2309 * mn10300-tdep.c: Include "gdb_assert.h".
2310 (mn10300_read_fp): New function.
2311 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
2312 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
2313 * ia64-tdep.c: Include "gdb_assert.h".
2314 (ia64_read_fp): New function.
2315 (ia64_gdbarch_init): Set deprecated_target_read_fp to
2316 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
2317 * regcache.c (generic_target_read_sp): Delete function.
2318 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
2319 * inferior.h (generic_target_read_sp): Delete declaration.
2320 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
2321 generic_target_read_sp.
2322 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2323 * sparc-tdep.c (sparc_gdbarch_init): Ditto
2324 * sh-tdep.c (sh_gdbarch_init): Ditto.
2325 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2326 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
2327
2328 2003-06-07 Andrew Cagney <cagney@redhat.com>
2329
2330 * gdbarch.sh: Comment each field of startup_gdbarch.
2331 * gdbarch.h, gdbarch.c: Re-generate.
2332
2333 2003-06-07 Andrew Cagney <cagney@redhat.com>
2334
2335 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
2336 * gdbarch.h, gdbarch.c: Re-generate.
2337 * regcache.c: Update comments on read_pc et.al.
2338 (generic_target_read_pc): Delete function.
2339 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
2340 * inferior.h (generic_target_read_pc): Delete declaration.
2341 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
2342 generic_target_read_pc.
2343 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2344 * sh-tdep.c (sh_gdbarch_init): Ditto.
2345 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2346 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2347
2348 2003-06-07 Andrew Cagney <cagney@redhat.com>
2349
2350 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
2351 "index" with "special_local_sect". Use strcmp instead of STREQ.
2352 Append period to coments.
2353
2354 2003-06-06 Mark Mitchell <mark@codesourcery.com>
2355
2356 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
2357 (elfstab_offset_sections): Likewise.
2358 * gdb-stabs.h (stab_section_info): Likewise.
2359 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
2360 * objfiles.c (objfile_relocate): Likewise.
2361 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
2362 * remote.c (get_offsets): Likewise.
2363 (remote_cisco_objfile_relocate): Likewise.
2364 * somread.c (som_symfile_offsets): Likewise.
2365 * symfile.c (alloc_section_addr_info): New function.
2366 (build_section_addr_info_from_section_tab): Use it.
2367 (free_section_addr_info): Adjust.
2368 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
2369 (syms_from_objfile): Allocate local_addr dynamically.
2370 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
2371 dynamically.
2372 (add_symbol_file_command): Allocate sect_opts dynamically.
2373 (reread_symbols): Avoid use of SECT_OFF_MAX.
2374 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
2375 (alloc_section_addr_info): Declare it.
2376 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
2377 * win32-nat.c (solib_symbols_add): Allocate section_addrs
2378 dynamically.
2379 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
2380
2381 2003-06-06 Andrew Cagney <cagney@redhat.com>
2382
2383 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
2384 (d10v_frame_unwind_cache): Do not set "return_pc".
2385
2386 2003-06-06 Michael Snyder <msnyder@redhat.com>
2387
2388 * h8300-tdep.c: Make tidy (long lines).
2389
2390 2003-06-06 Michal Ludvig <mludvig@suse.cz>
2391
2392 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
2393 to regcache_collect().
2394
2395 2003-06-05 J. Brobecker <brobecker@gnat.com>
2396
2397 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
2398 pc_in_sigtramp multiarch method.
2399 (hppa_hpux_som_init_abi): Use it.
2400 (hppa_hpux_elf_init_abi): Likewise.
2401 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
2402 macro has been multiarched.
2403 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
2404 macro here, as hppa64 isn't multiarched yet.
2405
2406 2003-06-05 Andrew Cagney <cagney@redhat.com>
2407
2408 * Makefile.in (value_h): Add $(frame_h).
2409 * value.h: Include "frame.h".
2410 (struct value): Replace "frame_addr" with "frame_id".
2411 (VALUE_FRAME_ID): Replace VALUE_FRAME.
2412 * values.c (allocate_value): Use VALUE_FRAME_ID.
2413 (value_copy): Use VALUE_FRAME_ID.
2414 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
2415 * valops.c (value_assign): Update. Use frame_find_by_id.
2416
2417 2003-06-05 Michal Ludvig <mludvig@suse.cz>
2418
2419 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
2420 in each pass.
2421
2422 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
2423
2424 * thread-db.c (check_event): For create/death event breakpoints,
2425 loop through all messages to ensure that we read the message
2426 corresponding to the breakpoint we are at.
2427
2428 2003-06-04 Michael Snyder <msnyder@redhat.com>
2429
2430 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
2431
2432 2003-06-04 Mark Kettenis <kettenis@gnu.org>
2433
2434 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
2435 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
2436 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
2437 when handling .eh_frame sections.
2438
2439 2003-06-04 J. Brobecker <brobecker@gnat.com>
2440
2441 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
2442 prepare_to_proceed procedure instead of the hppa-specific one.
2443 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
2444
2445 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
2446
2447 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
2448 * config.in: Regenerated.
2449 * configure.in: Add test for syscall function and check for
2450 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
2451 * configure: Regenerated.
2452 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
2453 <sys/syscall.h>.
2454 (kill_lwp): New function that uses tkill syscall or
2455 uses kill, depending on whether threading model is nptl or not.
2456 All callers of kill() changed to use kill_lwp().
2457 (lin_lwp_wait): Make special check when WIFEXITED occurs to
2458 see if all threads have already exited in the nptl model.
2459 (stop_and_resume_callback): New callback function used by the
2460 lin_lwp_wait thread exit handling code.
2461 (stop_wait_callback): Check for threads already having exited and
2462 delete such threads fromt the lwp list when discovered.
2463 (stop_callback): Don't assert retcode of kill call.
2464
2465 Roland McGrath <roland@redhat.com>
2466 * i386-linux-nat.c (ps_get_thread_area): New function needed by
2467 nptl libthread_db.
2468
2469 2003-06-03 Richard Henderson <rth@redhat.com>
2470
2471 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
2472 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
2473 (alpha_sigtramp_frame_prev_register): Likewise.
2474 (alpha_heuristic_frame_prev_register): Likewise.
2475 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
2476
2477 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
2478 alpha-specific register id names.
2479 (alpha_mdebug_frame_unwind_cache): Likewise.
2480 (alpha_mdebug_frame_prev_register): Likewise.
2481
2482 2003-06-03 Richard Henderson <rth@redhat.com>
2483
2484 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
2485 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
2486 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
2487 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
2488 unwind routines.
2489 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
2490 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
2491 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
2492
2493 * alpha-linux-tdep.c: Remove unnecessary includes.
2494 * Makefile.in (alpha-linux-tdep.o): Update.
2495
2496 2003-06-03 Richard Henderson <rth@redhat.com>
2497
2498 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
2499 (alphabsd_fill_fpreg): Likewise.
2500
2501 2003-06-03 J. Brobecker <brobecker@gnat.com>
2502
2503 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
2504 references to struct frame_info fields by calls to the equivalent
2505 accessors. Necessary now that frame_info is opaque.
2506
2507 2003-06-03 J. Brobecker <brobecker@gnat.com>
2508
2509 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
2510 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
2511 structure, field no longer exists.
2512
2513 2003-06-03 J. Brobecker <brobecker@gnat.com>
2514
2515 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
2516 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
2517
2518 2003-06-03 J. Brobecker <brobecker@gnat.com>
2519
2520 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
2521 references to struct frame_info fields by calls to the equivalent
2522 accessors. Necessary now that frame_info is opaque.
2523
2524 2003-06-03 J. Brobecker <brobecker@gnat.com>
2525
2526 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
2527 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
2528 structure, field no longer exists.
2529
2530 2003-06-03 Theodore A. Roth <troth@openavr.org>
2531
2532 * remote.c (init_remote_state): Compute sizeof_g_packet by
2533 accumulation of the size of all registers instead of blindly using
2534 DEPRECATED_REGISTER_BYTES.
2535
2536 2003-06-03 Michael Snyder <msnyder@redhat.com>
2537
2538 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
2539 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
2540 for h8300sx.
2541
2542 2003-06-03 J. Brobecker <brobecker@gnat.com>
2543
2544 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
2545 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
2546
2547 2003-06-03 Andrew Cagney <cagney@redhat.com>
2548
2549 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
2550 (sparc_convert_to_raw): Delete function.
2551 (sparc_gdbarch_init): Do not set register_convert_to_raw or
2552 register_convert_to_virtual.
2553
2554 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
2555
2556 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
2557 layer if not dealing with a statically-linked threaded program.
2558
2559 2003-06-03 Kris Warkentin <kewarken@qnx.com>
2560
2561 * solib.c (solib_open): Update comment to reflect actual search order.
2562
2563 2003-06-03 Andrew Cagney <cagney@redhat.com>
2564
2565 * frame.c (get_frame_memory_signed): New function.
2566 (get_frame_memory, get_frame_memory_unsigned): New function.
2567 (get_frame_arch): New function.
2568 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
2569 (get_frame_memory, get_frame_unsigned_memory): Declare.
2570 * d10v-tdep.c (d10v_frame_unwind_cache): Use
2571 get_frame_memory_unsigned and get_frame_arch.
2572 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
2573
2574 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
2575
2576 * MAINTAINERS (write after approval): Add myself.
2577
2578 2003-06-03 Jim Blandy <jimb@redhat.com>
2579
2580 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
2581 elements of gregset_t are 64 bits each, but access registers
2582 are still 32 bits, so they're packed two per gregset_t
2583 element. Unpack/pack them properly.
2584
2585 2003-06-02 David Carlton <carlton@bactrian.org>
2586
2587 * linespec.c (find_methods): Break out code into
2588 add_matching_methods and add_constructors.
2589 (add_matching_methods): New.
2590 (add_constructors): Ditto.
2591
2592 2003-06-02 Andrew Cagney <cagney@redhat.com>
2593
2594 * sparc-tdep.c (sparc_print_registers): Delete call to
2595 REGISTER_CONVERTIBLE.
2596 (sparc_gdbarch_init): Do not set register_convertible.
2597 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2598 * frv-tdep.c (frv_gdbarch_init): Ditto.
2599 * cris-tdep.c (cris_gdbarch_init): Ditto.
2600
2601 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
2602
2603 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
2604 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
2605 (syms_from_objfile): Ditto.
2606
2607 2003-06-03 Andreas Schwab <schwab@suse.de>
2608
2609 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
2610 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
2611
2612 2003-06-02 Richard Henderson <rth@redhat.com>
2613
2614 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
2615 a member of all_reggroup.
2616
2617 2003-06-02 Richard Henderson <rth@redhat.com>
2618
2619 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
2620 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
2621 (alpha_lds, alpha_sts): New.
2622 (alpha_convert_register_p): Change from _register_convertible.
2623 (alpha_register_to_value): Change from _convert_to_virtual;
2624 restructure and fail for type sizes other than 4 or 8.
2625 (alpha_value_to_register): Similarly.
2626 (alpha_extract_return_value): Use alpha_sts.
2627 (alpha_store_return_value): Use alpha_lds.
2628 (alpha_gdbarch_init): Update hooks.
2629
2630 2003-06-02 Richard Henderson <rth@redhat.com>
2631
2632 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
2633 regnum identifiers.
2634 (alpha_sigtramp_register_address): Likewise.
2635
2636 2003-06-02 Richard Henderson <rth@redhat.com>
2637
2638 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
2639 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
2640 * alpha-tdep.h: Declare them.
2641
2642 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
2643 Remove zerobuf. Don't error on UNIQUE.
2644 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
2645 (ALPHA_REGSET_UNIQUE): Provide default.
2646 (supply_gregset): Use alpha_supply_int_regs.
2647 (fill_gregset): Use alpha_fill_int_regs.
2648 (supply_fpregset): Use alpha_supply_fp_regs.
2649 (fill_fpregset): Use alpha_fill_fp_regs.
2650 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
2651 (alphabsd_supply_reg): Use alpha_supply_int_regs.
2652 (alphabsd_fill_reg): Use alpha_fill_int_regs.
2653 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
2654 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
2655 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
2656
2657 2003-06-02 Richard Henderson <rth@redhat.com>
2658
2659 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
2660
2661 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
2662 (alpha_store_return_value): Likewise.
2663
2664 2003-06-02 David Carlton <carlton@math.stanford.edu>
2665
2666 * block.c (contained_in): Add 'const' to arguments.
2667 (block_function): Ditto.
2668 * block.h: Update declarations for block_function and
2669 contained_in.
2670
2671 2003-06-02 David Carlton <carlton@math.stanford.edu>
2672
2673 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
2674 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
2675 * p-valprint.c (pascal_val_print): Ditto.
2676 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
2677
2678 2003-06-02 Richard Henderson <rth@redhat.com>
2679
2680 * alpha-tdep.c (alpha_push_dummy_call): Use
2681 builtin_type_ieee_double_little instead of builtin_type_double.
2682
2683 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
2684 sign-extension of 32-bit values.
2685 (alpha_store_return_value): Similarly.
2686
2687 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
2688 (alpha_extract_return_value): Likewise.
2689 (alpha_store_return_value): Likewise.
2690
2691 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
2692 (alpha_store_return_value): Error on IEEE Quad floats.
2693
2694 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
2695 (alpha_extract_struct_value_address): Likewise.
2696 (alpha_store_return_value): Likewise.
2697 (alpha_store_struct_return): Remove.
2698 (alpha_gdbarch_init): Update hook registration to match.
2699
2700 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
2701 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
2702 macros where appropriate.
2703 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
2704 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
2705
2706 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
2707 for SP, GP; void_func_ptr for PC; non-language-specific types
2708 for all others.
2709 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
2710
2711 2003-06-02 Richard Henderson <rth@redhat.com>
2712
2713 * top.h (lim_at_start): Declare.
2714 * main.c (captured_main): Set it.
2715 * top.c (lim_at_start): Define.
2716 (command_loop): Use it instead of &environ.
2717 * event-top.c (command_handler): Likewise.
2718
2719 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
2720
2721 * mipsnbsd-tdep.c: Update copyright years.
2722 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
2723
2724 2003-06-01 Richard Henderson <rth@redhat.com>
2725
2726 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
2727 (alpha-linux-tdep.o): Update dependencies.
2728 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
2729 * alpha-mdebug-tdep.c: Remove unneeded includes.
2730
2731 2003-06-01 Richard Henderson <rth@redhat.com>
2732
2733 * alpha-tdep.c (alpha_register_reggroup_p): New.
2734 (alpha_gdbarch_init): Register it.
2735
2736 2003-06-02 Andrew Cagney <cagney@redhat.com>
2737
2738 * dwarfread.c: Eliminate "register"
2739 (decode_die_type): Eliminate assignment within "if".
2740 (struct_type, decode_array_element_type): Ditto.
2741 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
2742 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
2743 (decode_modified_type, completedieinfo): Ditto.
2744 * block.c: Eliminate "register".
2745 (blockvector_for_pc_sect): Eliminate assignment within "if".
2746 * cp-support.h (struct symbol): Opaque declaration.
2747 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
2748
2749 2003-06-01 Richard Henderson <rth@redhat.com>
2750
2751 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
2752 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
2753
2754 2003-06-01 Adam Fedor <fedor@gnu.org>
2755
2756 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
2757 * gdbarch.[ch]: Regenerate.
2758 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
2759 (hppa_gdbarch_init): Set it in the gdbarch vector.
2760 * i386-tdep.c (i386_fetch_pointer_argument): New
2761 (i386_gdbarch_init): Set it into gdbarch.
2762 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
2763 (rs6000_gdbarch_init): Set it in gdbarch.
2764 * sparc-tdep.c (sparc_fetch_pointer_argument): New
2765 (sparc_gdbarch_init): Set it in gdbarch.
2766
2767 2003-06-01 Andrew Cagney <cagney@redhat.com>
2768
2769 * defs.h (extract_address): Delete declaration.
2770 * findvar.c (extract_address): Delete function.
2771 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
2772 extract_address with the inline equivalent,
2773 extract_unsigned_integer.
2774 (xstormy16_extract_struct_value_address): Ditto.
2775 (xstormy16_pointer_to_address): Ditto.
2776 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
2777 * v850-tdep.c (v850_push_arguments): Ditto.
2778 (v850_extract_return_value): Ditto.
2779 (v850_extract_struct_value_address): Ditto.
2780 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
2781 (sparcnbsd_get_longjmp_target_64): Ditto.
2782 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
2783 (get_longjmp_target): Ditto.
2784 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
2785 (sh64_extract_struct_value_address): Ditto.
2786 (sh_push_arguments): Ditto.
2787 (sh64_push_arguments): Ditto.
2788 * remote-vxsparc.c (vx_read_register): Ditto.
2789 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
2790 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
2791 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
2792 * mipsv4-nat.c (get_longjmp_target): Ditto.
2793 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
2794 * mips-nat.c (get_longjmp_target): Ditto.
2795 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
2796 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
2797 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
2798 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
2799 * irix5-nat.c (get_longjmp_target): Ditto.
2800 * irix4-nat.c (get_longjmp_target): Ditto.
2801 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
2802 (ia64_push_arguments): Ditto.
2803 * hpux-thread.c (hpux_thread_store_registers): Ditto.
2804 * h8300-tdep.c (h8300_push_arguments): Ditto.
2805 (h8300_store_return_value): Ditto.
2806 (h8300_extract_struct_value_address): Ditto.
2807 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
2808 (frv_push_arguments): Ditto.
2809 * avr-tdep.c (avr_pointer_to_address): Ditto.
2810 (avr_push_arguments): Ditto.
2811 * arm-tdep.c (arm_push_dummy_call): Ditto.
2812 (arm_get_longjmp_target): Ditto.
2813 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
2814 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
2815 (alpha_get_longjmp_target): Ditto.
2816
2817 * solib-irix.c (extract_mips_address): Inline extract_address,
2818 replacing it with extract_signed_integer.
2819 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
2820 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
2821 (first_link_map_member, open_symbol_file_object): Ditto.
2822 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
2823 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
2824 (LM_NEXT, LM_NAME): Ditto.
2825
2826 2003-06-01 Richard Henderson <rth@redhat.com>
2827
2828 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
2829 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
2830 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
2831 (alpha_cannot_store_register): Likewise.
2832 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
2833 * alpha-nat.c (supply_gregset): Likewise.
2834 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
2835
2836 2003-06-01 Andrew Cagney <cagney@redhat.com>
2837
2838 * infcall.c (call_function_by_hand): Update comment on
2839 DEPRECATED_DUMMY_WRITE_SP.
2840
2841 * mips-tdep.c (mips_gdbarch_init): Do not set
2842 deprecated_dummy_write_sp.
2843 (mips_eabi_push_dummy_call): Set the SP register.
2844 (mips_o64_push_dummy_call): Set the SP register.
2845 (mips_o32_push_dummy_call): Set the SP register.
2846 (mips_n32n64_push_dummy_call): Set the SP register.
2847
2848 2003-06-01 Richard Henderson <rth@redhat.com>
2849
2850 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
2851 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
2852 (supply_gregset): Likewise.
2853 * alpha-tdep.c (alpha_store_return_value): Likewise.
2854 (alpha_get_longjmp_target): Likewise.
2855 (alpha_register_name): Constify array.
2856 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
2857 deprecated_register_size, deprecated_register_bytes,
2858 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
2859 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
2860 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
2861
2862 2003-06-01 Richard Henderson <rth@redhat.com>
2863
2864 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
2865 from arg_reg_buffer to regcache to avoid double conversion.
2866
2867 2003-06-01 Mark Kettenis <kettenis@gnu.org>
2868
2869 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
2870 SP_REGNUM.
2871 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
2872 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
2873
2874 2003-06-01 Richard Henderson <rth@redhat.com>
2875
2876 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
2877 (decode_frame_entry): Set it. Skip FDE augmentation.
2878
2879 2003-06-01 Richard Henderson <rth@redhat.com>
2880
2881 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
2882 not overlapping PC_REGNUM.
2883
2884 2003-06-01 Richard Henderson <rth@redhat.com>
2885
2886 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
2887 alpha_push_arguments. Don't dump argument register data to
2888 the target stack. Fix float and 128-bit long double semantics.
2889 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
2890 (alpha_fix_call_dummy): Remove.
2891 (alpha_call_dummy_words): Remove.
2892 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
2893
2894 2003-06-01 Richard Henderson <rth@redhat.com>
2895
2896 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
2897
2898 2003-06-01 Andrew Cagney <cagney@redhat.com>
2899
2900 * mips-tdep.c (is_mips16_addr): New function.
2901 (make_mips16_addr, unmake_mips16_addr): New functions.
2902 (pc_is_mips16, mips_fetch_instruction): Use.
2903 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
2904 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
2905 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
2906 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
2907 TARGET_MIPS.
2908 * config/mips/tm-mips.h: Update copyright.
2909 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
2910 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
2911 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
2912 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
2913 (TM_PRINT_INSN_MACH): Delete.
2914 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
2915
2916 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
2917 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
2918 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
2919 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
2920 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
2921 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
2922 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
2923 mips*-*-riscos* and mips*-*-sysv* onto mips.
2924 * config/mips/mips64.mt: New file.
2925 * config/mips/mips.mt: New file.
2926 * config/mips/littlemips.mt: Delete file.
2927 * config/mips/decstation.mt: Delete file.
2928 * config/mips/vr4300el.mt: Delete file.
2929 * config/mips/vr5000el.mt: Delete file.
2930 * config/mips/vr5000.mt: Delete file.
2931 * config/mips/vr4100.mt: Delete file.
2932 * config/mips/vr4xxxel.mt: Delete file.
2933 * config/mips/vr4300.mt: Delete file.
2934 * config/mips/vr4xxx.mt: Delete file.
2935 * config/mips/bigmips.mt: Delete file.
2936 * config/mips/bigmips64.mt: Delete file.
2937 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
2938 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
2939 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
2940 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
2941 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
2942 "tm-bigmips.h".
2943 * config/mips/tm-irix3.h: Ditto.
2944 * config/mips/tm-mipsv4.h: Ditto.
2945 * config/mips/tm-embed.h: Ditto.
2946 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
2947 "tm-bigmips64.h".
2948 * config/mips/tm-vr5000el.h: Delete file.
2949 * config/mips/tm-tx39l.h: Delete file.
2950 * config/mips/tm-vr4300el.h: Delete file.
2951 * config/mips/tm-vr4xxxel.h: Delete file.
2952 * config/mips/tm-vr4300.h: Delete file.
2953 * config/mips/tm-vr4100.h: Delete file.
2954 * config/mips/tm-vr4xxx.h: Delete file.
2955 * config/mips/tm-vr5000.h: Delete file.
2956 * config/mips/tm-embedl64.h: Delete file.
2957 * config/mips/tm-embedl.h: Delete file.
2958 * config/mips/tm-embed64.h: Delete file.
2959 * config/mips/tm-bigmips64.h: Delete file.
2960 * config/mips/tm-bigmips.h: Delete file.
2961
2962 2003-06-01 Mark Kettenis <kettenis@gnu.org>
2963
2964 Fix gdb/1216.
2965 * shnbsd-nat.c: Include "sh-tdep.h".
2966
2967 From Richard Henderson <rth@redhat.com>:
2968 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
2969
2970 2003-05-31 Andrew Cagney <cagney@redhat.com>
2971
2972 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
2973 forward declaration.
2974 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
2975 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
2976 (mips_find_saved_regs): Use set_reg_offset.
2977 (mips_frame_init_saved_regs): Delete function.
2978 (mips_pop_frame): Call mips_find_saved_regs instead of
2979 DEPRECATED_FRAME_INIT_SAVED_REGS.
2980
2981 2003-05-31 Andrew Cagney <cagney@redhat.com>
2982
2983 * mips-tdep.c (mips_gdbarch_init): Do not set
2984 deprecated_max_register_raw_size, register_virtual_size, and
2985 deprecated_max_register_virtual_size.
2986
2987 2003-05-31 Mark Kettenis <kettenis@gnu.org>
2988
2989 * i386-tdep.c: Include "dwarf2-frame.h".
2990 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
2991 * Makefile.in (i386-tdep.o): Update dependencies.
2992
2993 * dwarf2-frame.c, dwarf2-frame.h: New files.
2994 * Makefile.in (SFILES): Add dwarf2-frame.c.
2995 (dwarf2_frame_h): Define.
2996 (COMMON_OBS): Add dwarf2-frame.o.
2997 (dwarf2-frame.o): Add dependencies.
2998
2999 2003-05-31 Andreas Jaeger <aj@suse.de>
3000
3001 * x86-64-linux-nat.c: Fix comment.
3002
3003 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3004
3005 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
3006 function signature.
3007
3008 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
3009 have a sigcontext_addr handler.
3010 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
3011 sigcontext_addr handler.
3012
3013 2003-05-31 Andrew Cagney <cagney@redhat.com>
3014
3015 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
3016 (print_fp_register_row): Replace do_fp_register_row.
3017 (mips_print_fp_register): Add "file" and "frame" parameters.
3018 (mips_print_register): Add "file" and "frame" parameters.
3019 (mips_print_registers_info): Replace mips_do_registers_info.
3020 (mips_gdbarch_init): Set print_registers_info instead of
3021 deprecated_do_registers_info.
3022 (mips_read_fp_register_single): Add "frame" parameter.
3023 (mips_read_fp_register_double): Add "frame" parameter.
3024
3025 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3026
3027 * i386-tdep.c (i386_register_name): Check for MMX registers first.
3028 Fixes a bug where GDB would print the wrong register names for
3029 targets without SSE.
3030
3031 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
3032 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3033 registers.
3034
3035 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
3036 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
3037 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3038 TDEP->sc_sp_offset.
3039
3040 From Michal Ludvig <mludvig@suse.cz>:
3041 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
3042 and `sc_num_regs'.
3043 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3044 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3045 I386_ST0_REGNUM): Move here from...
3046 * i386-tdep.c: ... here.
3047 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
3048 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3049 registers if possible.
3050 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
3051 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
3052 Remove variables.
3053 (i386bsd_sc_reg_offset): New variable.
3054 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
3055 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3056 TDEP->sc_sp_offset.
3057 (i386fbsd_sc_reg_offset): New variable.
3058 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
3059 TDEP->sc_num_regs.
3060 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
3061 variables.
3062 (i386fbsd4_sc_reg_offset): New variable.
3063 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
3064 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3065 TDEP->sc_sp_offset.
3066 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
3067 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
3068 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
3069 Remove variables.
3070 (i386nbsd_sc_reg_offset): New variable.
3071 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
3072 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3073 TDEP->sc_sp_offset.
3074 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
3075 Remove variables.
3076 (i386obsd_sc_reg_offset): New variable.
3077 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
3078 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3079 TDEP->sc_sp_offset.
3080 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
3081 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
3082 for frame pointer offset in `struct sigcontext'.
3083
3084 2003-05-31 Andrew Cagney <cagney@redhat.com>
3085
3086 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
3087 architecture methods call_dummy_words, sizeof_call_dummy_words,
3088 push_return_address, store_struct_return, and fix_call_dummy. Set
3089 push_dummy_call instead of deprecated_push_arguments.
3090 (mips_store_struct_return): Delete function.
3091 (mips_fix_call_dummy): Delete function.
3092 (mips_push_return_address): Delete function.
3093 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
3094 RA_REGNUM and T9_REGNUM.
3095 (mips_n32n64_push_dummy_call): Ditto for
3096 mips_n32n64_push_arguments.
3097 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
3098 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
3099
3100 2003-05-31 Andrew Cagney <cagney@redhat.com>
3101
3102 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
3103 "dummy_addr" to "bp_addr".
3104 * infcall.c (call_function_by_hand): Pass "funaddr" to
3105 gdbarch_push_dummy_call.
3106 * gdbarch.h, gdbarch.c: Re-generate.
3107 * i386-tdep.c (i386_push_dummy_call): Update.
3108 * arm-tdep.c (arm_push_dummy_call): Update.
3109 * d10v-tdep.c (d10v_push_dummy_call): Update.
3110
3111 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3112
3113 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
3114 variable declarations.
3115 (x86_64_register_number, x86_64_register_name): Remove prototypes.
3116 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
3117 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
3118 x86_64_init_frame_pc, x86_64_init_frame_pc,
3119 x86_64_function_has_prologue): Remove prototypes.
3120 (X86_64_NUM_GREGS): New define.
3121 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
3122 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
3123 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
3124 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
3125 XMM1_REGNUM): Remove defines.
3126 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
3127 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
3128 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
3129 X86_64_XMM1_REGNUM): New defines.
3130 (struct x86_64_register_info): Renamed from `struct
3131 register_info'. Remove `size' member.
3132 (x86_64_register_info_table): Remove variable.
3133 (x86_64_register_info): New variable.
3134 (X86_64_NUM_REGS): New define.
3135 (X86_64_NUM_GREGS): Remove define.
3136 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
3137 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
3138 Remove variables.
3139 (x86_54_dwarf2_reg_to_regnum): Remove function.
3140 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
3141 (x86_64_dwarf_reg_to_regnum): New function.
3142 (x86_64_register_name): Rewrite.
3143 (x86_64_register_raw_size): Remove function.
3144 (x86_64_register_byte_table): Remove variable.
3145 (x86_64_register_byte): Remove function.
3146 (x86_64_register_virtual_type): Remove function.
3147 (x86_64_register_type): New function.
3148 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
3149 x86_64_register_convert_to_raw): Remove functions.
3150 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
3151 (x86_64_use_struct_convention): Make static. Adjust for renamed
3152 defines.
3153 (x86_64_frame_init_saved_regs): Remove function.
3154 (x86_64_push_arguments): Make static. Change to accept a regcache
3155 as argument.
3156 (x86_64_store_return_value, x86_64_extract_return_value): Make
3157 static. Rewrite based on i386 counterparts.
3158 (x86_64_push_dummy_call): New function.
3159 (X86_64_NUM_SAVED_REGS): New define.
3160 (x86_64_register_number): Remove function.
3161 (x86_64_store_struct_return): Remove function.
3162 (x86_64_frameless_function_invocation,
3163 x86_64_function_has_prologue): Remove functions.
3164 (PROLOG_BUFSIZE): Remove define.
3165 (struct x86_64_frame_cache): New structure.
3166 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
3167 x86_64_frame_cache, x86_64_frame_this_id,
3168 x86_64_frame_prev_register, x86_64_frame_p,
3169 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
3170 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
3171 functions.
3172 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
3173 variables.
3174 (x86_64_skip_prologue): Rewrite in terms of
3175 x86_64_analyze_prologue.
3176 (x86_64_frame_base_address): New function.
3177 (x86_64_frame_base): New variable.
3178 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
3179 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
3180 set deprecated_fp_regnum, deprecated_register_size,
3181 deprecated_register_bytes, register_raw_size, register_byte,
3182 register_virtual_type, register_convertiable,
3183 register_convert_to_virtual, convert_to_raw,
3184 deprecated_get_saved_register, deprecated_target_read_fp,
3185 deprecated_push_arguments, deprecated_push_return_address,
3186 deprecated_pop_frame, deprecated_store_struct_return,
3187 deprecated_frame_init_saved_regs, deprecated_frame_chain,
3188 frameless_function_invocation, deprecated_frame_saved_pc,
3189 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
3190 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
3191 deprecated_init_frame_pc and virtual_frame_pointer. Call
3192 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
3193 and x86_64_frame_p. Call frame_base_set_default to register
3194 x86_64_frame_base.
3195 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
3196 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
3197 (_initialize_x86_64_tdep): Remove function.
3198 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
3199 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
3200 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
3201 define.
3202 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
3203 (x86_64_linux_sigcontext_addr): Rewrite.
3204 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
3205 x86_64_linux_frame_saved_pc): Remove functions.
3206 (x86_64_linux_pc_in_sigtramp): Renamed from
3207 x86_64_linux_in_sigtramp. Try harder to recognize a signal
3208 trampoline.
3209 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
3210 Remove_functions.
3211 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
3212 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
3213 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
3214 (x86_64_regmap): Rename to regmap.
3215 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
3216 x86_64_num_gregs.
3217 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
3218 x86_64_regmap.
3219 (x86_64_fxsave_offset): Remove function.
3220 (supply_fpregset): Simply call x86_64_supply_fxsave.
3221 (fill_fpregset): Simply call x86_64_fill_fxsave.
3222 (fetch_inferior_registers, store_inferior_registers): Avoid
3223 asignment in if-statement.
3224 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
3225 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
3226 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
3227 (fetch_core_registers): Remove function.
3228 (linux_elf_core_fns): Remove.
3229 (offsetoff): Don't define.
3230 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
3231 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
3232 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
3233 add core-regset.o.
3234 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
3235 protection against multiple includes instead of NM_X86_64_h. Add
3236 various comments. Include "config/nm-linux.h". Don't include
3237 <signal.h>.
3238 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
3239 GET_THREAD_SIGNALS): Remove defines.
3240 (x86_64_register_u_addr, kernel_u_size,
3241 lin_thread_get_thread_signals): Remove prototypes.
3242 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
3243 [HAVE_LINK_H]: Don't include "solib.h".
3244 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
3245 * config/i386/tm-x86-64linux.h: Fix comments.
3246 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
3247 x86-64-tdep.o): Update dependencies.
3248
3249 2003-05-30 Andrew Cagney <cagney@redhat.com>
3250
3251 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
3252 Change parameter type to a "struct regcache *".
3253
3254 * gdbarch.sh: Regardless of the multi-arch level, always define
3255 the macro when not already defined.
3256 * gdbarch.h, gdbarch.c: Re-generate.
3257
3258 2003-05-30 Richard Henderson <rth@redhat.com>
3259
3260 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
3261 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
3262 (alpha_mdebug_frame_this_id): Likewise.
3263 (alpha_mdebug_frame_prev_register): Likewise.
3264 (alpha_mdebug_frame_base_address): Likewise.
3265 (alpha_mdebug_frame_locals_address): Likewise.
3266 (alpha_mdebug_frame_args_address): Likewise.
3267 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
3268 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
3269 (alpha_heuristic_frame_unwind_cache): Make static; add missing
3270 loop increment.
3271 (alpha_heuristic_frame_this_id): Make static.
3272 (alpha_heuristic_frame_prev_register): Likewise.
3273 (alpha_heuristic_frame_base_address): Likewise.
3274 * alpha-tdep.h: Update.
3275
3276 2003-05-30 Mark Kettenis <kettenis@gnu.org>
3277
3278 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
3279 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
3280 defenitions.
3281 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
3282 * i386-tdep.c: Mark functions that are 64-bit safe as such.
3283 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3284 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3285 I386_ST0_REGNUM): New defines.
3286 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
3287 codestream_get): Remove define.
3288 (codestream_next_addr, condestream_addr, condestream_buf,
3289 codestream_off, codestream_cnt): Remove variables.
3290 (codestream_fill, codestream_seek, codestream_read): Remove
3291 functions.
3292 (i386_follow_jump): Rewrite to avoid usage of removed codestream
3293 functionality.
3294 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
3295 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
3296 i386_frame_saved_pc, i386_saved_pc_after_call,
3297 i386_frame_num_args, i386_frame_init_saved_regs,
3298 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
3299 i386_push_arguments): Remove functions.
3300 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
3301 functionality. Use i386_analyze_prologue instead of
3302 i386_get_frame_setup.
3303 (I386_NUM_SAVED_REGS): New define.
3304 (struct i386_frame_cache): New structure.
3305 (i386_alloc_frame_cache, i386_analyze_struct_return,
3306 i386_skip_probe, i386_analyze_frame_setup,
3307 i386_analyze_register_saves, i386_analyze_prologue,
3308 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
3309 i386_frame_prev_register, i386_sigtramp_frame_cache,
3310 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
3311 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
3312 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
3313 New functions.
3314 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
3315 New variables.
3316 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
3317 I386_EAX_REGNUM and I386_EDX_REGNUM.
3318 (i386_extract_return_value, i386_store_return_value): Use
3319 I386_ST0_REGNUM where appropriate.
3320 (i386_extract_struct_value_address): Rewrite to use extract_address.
3321 (i386_svr4_pc_in_sigtramp): Add comment.
3322 (i386_svr4_sigcontext_addr): Rewrite.
3323 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
3324 TDEP->sc_sp_offset.
3325 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
3326 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
3327 of new defines. Set push_dummy_call, don't set
3328 deprecated_push_arguments, deprecated_push_return_address,
3329 deprecated_pop_frame. Don't set parm_boundary. Don't set
3330 deprecated_frame_chain, deprecated_frame_saved_pc,
3331 deprecated_saved_pc_after_call. Set unwind_dummy_id,
3332 save_dummy_frame_tos, unwind_pc. Call
3333 frame_unwind_append_predicate and frame_base_set_default. Don't
3334 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
3335 Don't set frameless_function_invocation. Don't set
3336 deprecated_register_bytes, deprecated_register_size,
3337 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
3338 * i386-linux-tdep.c: Fix formatting in some comments.
3339 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
3340 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
3341 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
3342 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
3343 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
3344 redundant parentheses.
3345 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
3346 (i386_linux_sigcontext_addr): Use it. Rewrite.
3347 (find_minsym_and_objfile): Change name of second argument.
3348 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
3349 changed. Use frame_pc_unwind instead of
3350 DEPRECATED_SAVED_PC_AFTER_CALL.
3351 (i386_linux_init_abi): Don't set deprecated_register_bytes.
3352 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
3353 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
3354 unwinder.
3355 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
3356 "dummy-frame.h".
3357 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
3358 (_initialize_i386_cygwin_tdep): New prototype.
3359 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
3360 deprecated_frame_chain_valid.
3361 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
3362 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
3363 Rely on the SVR4 defaults.
3364 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
3365 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
3366
3367 2003-05-30 Andrew Cagney <cagney@redhat.com>
3368
3369 * infcall.c (call_function_by_hand): Always call
3370 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
3371
3372 2003-05-30 Richard Henderson <rth@redhat.com>
3373
3374 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
3375 increment.
3376
3377 2003-05-29 Jim Blandy <jimb@redhat.com>
3378
3379 Use gdbarch methods for solib stuff on PowerPC Linux.
3380 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
3381 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
3382 show through.
3383 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3384 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
3385 giving the same effect as the #definitions above.
3386
3387 2003-05-29 Adam Fedor <fedor@gnu.org>
3388
3389 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
3390 (find_implementation_from_class): Replace it with the standard
3391 case i.e. do nothing.
3392
3393 2003-05-29 Richard Henderson <rth@redhat.com>
3394
3395 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
3396 (alpha_linux_sigtramp_offset): Use it. Make static.
3397 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
3398 update for new frame model.
3399 * alpha-mdebug-tdep.c: New file.
3400 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
3401 (alpha_osf1_init_abi): Install it.
3402 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
3403 (linked_proc_desc_table): Remove.
3404 (alpha_frame_past_sigtramp_frame): Remove.
3405 (alpha_dynamic_sigtramp_offset): Remove.
3406 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
3407 (alpha_proc_desc_is_dyn_sigtramp): Remove.
3408 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
3409 (push_sigtramp_desc): Remove.
3410 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
3411 (alpha_cannot_store_register): Likewise.
3412 (alpha_sigcontext_addr): Remove.
3413 (alpha_find_saved_regs): Remove.
3414 (alpha_frame_init_saved_regs): Remove.
3415 (alpha_init_frame_pc_first): Remove.
3416 (read_next_frame_reg): Remove.
3417 (alpha_frame_saved_pc): Remove.
3418 (alpha_saved_pc_after_call): Remove.
3419 (temp_proc_desc, temp_saved_regs): Remove.
3420 (alpha_about_to_return): Remove.
3421 (cached_proc_desc): Remove.
3422 (alpha_frame_chain): Remove.
3423 (alpha_print_extra_frame_info): Remove.
3424 (alpha_init_extra_frame_info): Remove.
3425 (alpha_frame_locals_address): Remove.
3426 (alpha_frame_args_address): Remove.
3427 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
3428 (alpha_push_dummy_frame): Remove.
3429 (alpha_pop_frame): Remove.
3430 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
3431 (alpha_read_insn): New.
3432 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
3433 for different insn encodings.
3434 (alpha_in_lenient_prologue): Remove.
3435 (struct alpha_sigtramp_unwind_cache): New.
3436 (alpha_sigtramp_frame_unwind_cache): New.
3437 (alpha_sigtramp_register_address): New.
3438 (alpha_sigtramp_frame_this_id): New.
3439 (alpha_sigtramp_frame_prev_register): New.
3440 (alpha_sigtramp_frame_unwind): New.
3441 (alpha_sigtramp_frame_p): New.
3442 (struct alpha_heuristic_unwind_cache): New.
3443 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
3444 don't count nop insns that occur between functions.
3445 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
3446 heuristic_proc_desc, but without the mdebug wrapping.
3447 (alpha_heuristic_frame_this_id): New.
3448 (alpha_heuristic_frame_prev_register): New.
3449 (alpha_heuristic_frame_unwind): New.
3450 (alpha_heuristic_frame_p): New.
3451 (alpha_heuristic_frame_base_address): New.
3452 (alpha_heuristic_frame_base): New.
3453 (alpha_unwind_dummy_id): New.
3454 (alpha_unwind_pc): New.
3455 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
3456 frame related deprecated initializations; install replacements.
3457 (alpha_dump_tdep): Remove.
3458 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
3459 (alpha_read_insn, alpha_after_prologue,
3460 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
3461 alpha_heuristic_frame_prev_register,
3462 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
3463 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3464 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
3465 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
3466
3467 2003-05-29 Andrew Cagney <cagney@redhat.com>
3468
3469 * gdb_assert.h (gdb_assert_fail): Provide different definitions
3470 dependant on the availability of ASSERT_FUNCTION.
3471 (ASSERT_FUNCTION): Do not define when there is no function name.
3472
3473 2003-05-29 Kevin Buettner <kevinb@redhat.com>
3474
3475 From Jimi X <jimix@watson.ibm.com>:
3476 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
3477
3478 2003-05-28 Jim Blandy <jimb@redhat.com>
3479
3480 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
3481 argument to ptrace to int; the system headers should give it the
3482 right type, and pointers don't fit in ints on powerpc64-*-*.
3483
3484 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
3485
3486 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
3487 DW_TAG_catch_block.
3488
3489 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
3490
3491 * stabsread.c (dbx_lookup_type): Make static.
3492 (read_type): Ditto.
3493 (add_undefined_type): Ditto.
3494 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
3495 not export.
3496
3497 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
3498
3499 * hpread.c (hpread_has_name): Make static.
3500 (hpread_psymtab_to_symtab): Ditto.
3501 (file_exists): Ditto.
3502 (hpread_call_pxdb): Ditto.
3503 (hpread_pxdb_needed): Ditto.
3504 (hpread_quick_traverse): Ditto.
3505 (hpread_get_header): Ditto.
3506 (hpread_get_lntt): Ditto.
3507 (hpread_get_slt): Ditto.
3508 (class_of): Ditto.
3509
3510 2003-05-25 Andreas Schwab <schwab@suse.de>
3511
3512 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
3513 stack_align and deprecated_extra_stack_alignment_needed.
3514 (m68k_stack_align): Delete.
3515
3516 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
3517 (m68k_register_virtual_size): Likewise.
3518 (altos_skip_prologue): Remove obsolete function.
3519 (isi_frame_num_args): Likewise.
3520 (news_frame_num_args): Likewise.
3521 (m68k_fix_call_dummy): Make static.
3522 (m68k_push_dummy_frame): Likewise.
3523 (m68k_pop_frame): Likewise.
3524 (m68k_skip_prologue): Likewise.
3525 (m68k_frame_init_saved_regs): Likewise.
3526 (m68k_saved_pc_after_call): Likewise.
3527 (m68k_get_longjmp_target): Make multi-arch.
3528 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
3529 structure. Register m68k_get_longjmp_target if enabled.
3530 * m68k-tdep.h (struct gdbarch_tdep): Define.
3531 * config/m68k/tm-m68k.h: Don't include "regcache.h".
3532
3533 * Makefile.in (config.status): Also depend on configure.tgt
3534 and configure.host.
3535 (m68klinux-tdep.o): Update dependencies.
3536 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
3537 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
3538 (M68K_LINUX_JB_PC): Define.
3539 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
3540 and take additional parameter.
3541 (m68k_linux_sigtramp_saved_pc): Update.
3542 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
3543 m68k_linux_pc_in_sigtramp, in_plt_section,
3544 find_solib_trampoline_target.
3545 * config/m68k/tm-linux.h: Don't include any tm headers.
3546 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
3547 (JB_ELEMENT_SIZE): Likewise.
3548 (JB_PC): Likewise.
3549 (GET_LONGJMP_TARGET): Likewise.
3550 (IN_SIGTRAMP): Likewise.
3551 (SVR4_SHARED_LIBS): Define this and include "solib.h".
3552
3553 2003-05-25 Mark Kettenis <kettenis@gnu.org>
3554
3555 * sparc-tdep.c (sparc32_do_push_arguments): New function.
3556 (sparc32_push_arguments): Re-implement by calling
3557 sparc32_do_push_arguments.
3558
3559 2003-05-25 Mark Kettenis <kettenis@gnu.org>
3560
3561 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
3562 SPARC_O1_REGNUM): New defines.
3563 (sparc32_extract_return_value): Rewrite to operate on a regcache.
3564 (sparc32_store_return_value): New function.
3565 (sparc_extract_struct_value_address): Rewrite to operate on a
3566 regcache.
3567 (sparc_gdbarch_init): Don't set
3568 deprecated_extract_struct_value_address. Set
3569 extract_struct_value_address instead. Don't set
3570 deprecated_extract_return_value and deprecated_store_return_value
3571 for 32-bit targets. Set extract_return_value and
3572 store_return_value instead.
3573 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
3574 DEPRECTAED_EXTRACT_RETURN_VALUE,
3575 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
3576 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
3577 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
3578 (sparc_store_return_value): Remove prototype.
3579 (sparc32_store_return_value): New prototype.
3580 (sparc32_extract_return_value, sparc_extract_struct_value_address):
3581 Adjust prototypes.
3582
3583 2003-05-24 Mark Kettenis <kettenis@gnu.org>
3584
3585 * sparcnbsd-tdep.c: Include "gdb_string.h".
3586
3587 2003-05-23 Andrew Cagney <cagney@redhat.com>
3588
3589 * p-valprint.c (pascal_val_print): Replace extract_address with
3590 the inline equivalent extract_unsigned_integer.
3591 * jv-valprint.c (java_value_print): Ditto.
3592 * ada-valprint.c (ada_val_print_1): Ditto.
3593 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
3594
3595 2003-05-23 Theodore A. Roth <troth@openavr.org>
3596
3597 * blockframe.c (frameless_look_for_prologue): Remove unused
3598 after_prologue variable.
3599
3600 2003-05-23 Mark Kettenis <kettenis@gnu.org>
3601
3602 * blockframe.c (get_pc_function_start): Rewrite to avoid
3603 asignments in if-statements.
3604
3605 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
3606
3607 Committed by Elena Zannoni <ezannoni@redhat.com>.
3608 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
3609 files, don't relocate absolute symbols (and do use mst_abs).
3610
3611 2003-05-23 Andrew Cagney <cagney@redhat.com>
3612
3613 * objc-lang.c: Include "gdb_assert.h".
3614 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
3615 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
3616 (gdb_check, gdb_check_fatal): Delete functions.
3617 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
3618 gdb_assert.
3619 (parse_selector, parse_method, find_methods, find_imps): Ditto.
3620 * Makefile.in (objc-lang.o): Update dependencies.
3621
3622 2003-05-22 Ian Lance Taylor <ian@airs.com>
3623
3624 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
3625 with fprintf_filtered, not fprintf_unfiltered.
3626
3627 2003-05-22 Andrew Cagney <cagney@redhat.com>
3628
3629 * stack.c (frame_info): Inline extract_address, replacing it with
3630 extract_unsigned_integer.
3631 * findvar.c (unsigned_pointer_to_address): Ditto.
3632 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
3633 * dwarf2expr.c (dwarf2_read_address): Ditto.
3634 * frame.c (frame_pc_unwind): Update comment.
3635 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
3636
3637 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
3638
3639 * infptrace.c (detach): Call print_sys_errmsg rather than
3640 perror_with_name to issue warning message when errno is non-zero
3641 after calling ptrace detach.
3642
3643 2003-05-21 J. Brobecker <brobecker@gnat.com>
3644
3645 * config/pa/tm-hppa.h: Delete some unused macros. Move some
3646 macro definitions from here...
3647 * hppa-tdep.c: ...to there.
3648
3649 2003-05-20 Kevin Buettner <kevinb@redhat.com>
3650
3651 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
3652 register_ptrace_addr(). Fix all callers.
3653
3654 2003-05-21 Andreas Schwab <schwab@suse.de>
3655
3656 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3657 dependencies.
3658 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
3659 end.
3660 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
3661 (_initialize_m68k_linux_tdep): New function.
3662 (m68k_linux_frame_saved_pc): Make static.
3663 (m68k_linux_extract_return_value): Likewise.
3664 (m68k_linux_store_return_value): Likewise.
3665 (m68k_linux_extract_struct_value_address): Likewise.
3666 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
3667 Remove.
3668 (DEPRECATED_STORE_RETURN_VALUE): Remove.
3669 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3670 (DEPRECATED_FRAME_SAVED_PC): Remove.
3671
3672 2003-05-20 Kris Warkentin <kewarken@qnx.com>
3673
3674 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
3675 regset numbering rather than our own.
3676
3677 2003-05-19 David Carlton <carlton@bactrian.org>
3678
3679 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
3680
3681 2003-05-19 David Carlton <carlton@bactrian.org>
3682
3683 Partial fix for PR c++/827.
3684 * cp-support.h: Include symtab.h.
3685 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
3686 * cp-namespace.c: Update contributors.
3687 (cp_lookup_symbol_nonlocal): New.
3688 (lookup_namespace_scope, cp_lookup_symbol_namespace)
3689 (lookup_symbol_file): Ditto.
3690 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
3691 * block.h: Declare block_scope, block_using, block_global_block.
3692 * block.c (block_scope): New.
3693 (block_using, block_global_block): Ditto.
3694 * Makefile.in (cp_support_h): Depend on symtab_h.
3695 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
3696
3697 2003-05-19 David Carlton <carlton@bactrian.org>
3698
3699 * language.h (struct language_defn): Add 'la_value_of_this'
3700 and 'la_lookup_symbol_nonlocal' members.
3701 * symtab.h: Declare basic_lookup_symbol_nonlocal,
3702 lookup_symbol_static, lookup_symbol_global,
3703 lookup_symbol_aux_block.
3704 * symtab.c (lookup_symbol_aux): Call language hooks to determine
3705 if we should search fields of this and how to do static/global
3706 lookup.
3707 (lookup_symbol_aux_block): Make extern.
3708 (basic_lookup_symbol_nonlocal): New.
3709 (lookup_symbol_static, lookup_symbol_global): Ditto.
3710 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
3711 'la_lookup_symbol_nonlocal' members.
3712 * c-lang.c (c_language_defn, cplus_language_defn)
3713 (asm_language_defn, minimal_language_defn): Ditto.
3714 * jv-lang.c (java_language_defn): Ditto.
3715 * language.c (unknown_language_defn, auto_language_defn)
3716 (local_language_defn): Ditto.
3717 * m2-lang.c (m2_language_defn): Ditto.
3718 * objc-lang.c (objc_language_defn): Ditto.
3719 * scm-lang.c (scm_language_defn): Ditto.
3720 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
3721 * p-lang.c (pascal_language_defn): Ditto for both.
3722 * Makefile.in (f-lang.o): Depend on value_h.
3723 (p-lang.o): Ditto.
3724
3725 2003-05-19 David Carlton <carlton@bactrian.org>
3726
3727 * block.h: Declare block_static_block.
3728 * block.c (block_static_block): New.
3729 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
3730 lookup_symbol_aux_local, calling block_static_block instead.
3731 (lookup_symbol_aux_local): Delete 'static_block' argument.
3732
3733 2003-05-19 David Carlton <carlton@bactrian.org>
3734
3735 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
3736
3737 2003-05-19 Michal Ludvig <mludvig@suse.cz>
3738
3739 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
3740 register numbers mapping.
3741
3742 2003-05-18 Adam Fedor <fedor@gnu.org>
3743
3744 * symtab.c (completion_list_objc_symbol): New function.
3745 (make_symbol_completion_list): Use it to add ObjC symbols
3746 when looking though the list.
3747 (language_search_unquoted_string): New function.
3748 (make_file_symbol_completion_list): Use it.
3749
3750 2003-05-18 Andreas Schwab <schwab@suse.de>
3751
3752 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
3753 dependencies.
3754 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
3755 as m68k_linux_extract_return_value.
3756 (DEPRECATED_STORE_RETURN_VALUE): Define as
3757 m68k_linux_store_return_value.
3758 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
3759 m68k_linux_extract_struct_value_address.
3760 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
3761 get_next_frame, get_frame_base, get_frame_pc.
3762 (m68k_linux_frame_saved_pc): Use get_frame_base.
3763 (m68k_linux_extract_return_value): New function.
3764 (m68k_linux_store_return_value): New function.
3765 (m68k_linux_extract_struct_value_address): New function.
3766 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
3767
3768 * c-exp.y (typebase): Remove duplicate occurence of
3769 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
3770 of lookup_signed_typename.
3771
3772 2003-05-18 Mark Kettenis <kettenis@gnu.org>
3773
3774 * dwarf2loc.c (find_location_expression): Change type of second
3775 argument to `size_t *'.
3776 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
3777 for size variable.
3778
3779 2003-05-18 David Carlton <carlton@bactrian.org>
3780
3781 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
3782 'linkage_name'. Add comment.
3783 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
3784 'linkage_name'.
3785 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
3786 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
3787 (lookup_block_symbol): Ditto.
3788
3789 2003-05-16 Andrew Cagney <cagney@redhat.com>
3790
3791 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
3792 * gdbarch.h, gdbarch.c: Re-generate.
3793 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
3794 * TODO (REGISTER_BYTES): Delete reference.
3795 * alpha-tdep.c (alpha_gdbarch_init): Update.
3796 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3797 * x86-64-tdep.c (x86_64_init_abi): Update.
3798 * vax-tdep.c (vax_gdbarch_init): Update.
3799 * v850-tdep.c (v850_gdbarch_init): Update.
3800 * sparc-tdep.c (sparc_gdbarch_init): Update.
3801 * sh-tdep.c (sh_gdbarch_init): Update.
3802 * s390-tdep.c (s390_gdbarch_init): Update.
3803 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3804 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
3805 (ns32k_gdbarch_init_32382): Update.
3806 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3807 * mcore-tdep.c (mcore_gdbarch_init): Update.
3808 * m68k-tdep.c (m68k_gdbarch_init): Update.
3809 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3810 * ia64-tdep.c (ia64_gdbarch_init): Update.
3811 * i386-tdep.c (i386_gdbarch_init): Update.
3812 * i386-linux-tdep.c (i386_linux_init_abi): Update.
3813 * hppa-tdep.c (hppa_gdbarch_init): Update.
3814 * h8300-tdep.c (h8300_gdbarch_init): Update.
3815 * frv-tdep.c (frv_gdbarch_init): Update.
3816 * cris-tdep.c (cris_gdbarch_init): Update.
3817 * avr-tdep.c (avr_gdbarch_init): Update.
3818 * arm-tdep.c (arm_gdbarch_init): Update.
3819 * sparc-tdep.c (sparc_pop_frame): Update.
3820 * rs6000-tdep.c (rs6000_pop_frame): Update.
3821 * remote.c (init_remote_state): Update.
3822 (remote_prepare_to_store): Update.
3823 * remote-vx.c (vx_prepare_to_store): Update.
3824 * remote-sds.c (sds_fetch_registers): Update.
3825 (sds_prepare_to_store): Update.
3826 * remote-array.c: Update.
3827 * regcache.c (init_legacy_regcache_descr): Update.
3828 (init_regcache_descr): Update.
3829 * mips-tdep.c (mips_eabi_extract_return_value): Update.
3830 (mips_o64_extract_return_value): Update.
3831 * irix5-nat.c (fetch_core_registers): Update.
3832 * irix4-nat.c (fetch_core_registers): Update.
3833 * i386-tdep.h: Update.
3834 * hppa-tdep.c (pa_do_registers_info): Update.
3835 (pa_do_strcat_registers_info): Update.
3836 * cris-tdep.c (cris_register_bytes_ok): Update.
3837 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
3838 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
3839 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
3840 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
3841 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
3842 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
3843 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
3844 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
3845 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
3846 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
3847 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
3848 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
3849 (REGISTER_BYTES_OK): Update.
3850 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
3851 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
3852
3853 2003-05-16 Ian Lance Taylor <ian@airs.com>
3854
3855 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
3856 (vax_print_insn, print_insn_arg): Remove static functions.
3857 (vax_gdbarch_init): Call set_gdbarch_print_insn with
3858 print_insn_vax from opcodes library.
3859 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
3860
3861 2003-05-15 Andrew Cagney <cagney@redhat.com>
3862
3863 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
3864 * target.h (memory_breakpoint_from_pc): Delete declaration.
3865 * mem-break.c (memory_breakpoint_from_pc): Delete function.
3866 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
3867 * monitor.c (monitor_insert_breakpoint): Use
3868 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
3869 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
3870 * gdbarch.h, gdbarch.c: Re-generate.
3871 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
3872 (sparc_gdbarch_init): Set breakpoint_from_pc to
3873 sparc_breakpoint_from_pc.
3874 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
3875 (BREAKPOINT_FROM_PC): Define.
3876 (sparc_breakpoint_from_pc): Declare.
3877 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
3878 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
3879 (BREAKPOINT_FROM_PC): Define.
3880 (BREAKPOINT): Delete macro.
3881 * target.h: Update comment.
3882 * s390-tdep.c (s390_gdbarch_init): Update comments.
3883 * remote.c: Update comments.
3884 * remote-mips.c: Update comments.
3885 * proc-api.c (write_with_trace): Do not check for a breakpoint.
3886 * mem-break.c: Update comment.
3887 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
3888 (ia64_memory_insert_breakpoint): Update.
3889 * config/sparc/tm-sparc.h: Update comment.
3890 * config/pa/tm-hppa64.h: Update comment.
3891 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
3892 (rs6000_breakpoint_from_pc): Update.
3893 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
3894 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
3895 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
3896 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
3897 (mips_breakpoint_from_pc): Update.
3898 (mips_dump_tdep): Update.
3899
3900 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
3901 * minsyms.c (lookup_minimal_symbol): Inline
3902 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
3903
3904 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
3905 * p-valprint.c (pascal_object_print_value_fields): Ditto.
3906 * p-lang.c (pascal_printstr): Ditto.
3907 * objc-lang.c (objc_printstr): Ditto.
3908 * m2-lang.c (m2_printstr): Ditto.
3909 * jv-valprint.c (java_print_value_fields): Ditto.
3910 * f-lang.c (f_printstr): Ditto.
3911 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
3912 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
3913 for repeat_count_threshold.
3914 * Makefile.in (cp-valprint.o): Update dependencies.
3915
3916 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
3917
3918 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
3919 (examine_prologue): Support looking through leaf functions, knowing
3920 they start with mov r2,r12. Support skipping over indirect stores
3921 of the input registers. Upon hitting a non-nop branch instruction
3922 or predicated instruction, bail out by setting lim_pc to the current
3923 pc value in the loop. At the end, if the lim_pc value is still
3924 beyond our calculated value and we have trust_limit set,
3925 use the lim_pc value.
3926
3927 2003-05-15 Andrew Cagney <cagney@redhat.com>
3928
3929 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
3930 generic_find_dummy_frame.
3931 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
3932 (deprecated_generic_find_dummy_frame): Update.
3933 (deprecated_read_register_dummy): Update.
3934 * frame.c (deprecated_generic_get_saved_register): Update.
3935
3936 2003-05-15 Theodore A. Roth <troth@openavr.org>
3937
3938 * avr-tdep.c (avr_breakpoint_from_pc): New function.
3939 (avr_gdbarch_init): Set breakpoint_from_pc method.
3940
3941 2003-05-15 Andrew Cagney <cagney@redhat.com>
3942
3943 * regcache.c (build_regcache): Set deprecated_register_valid
3944 directly.
3945 (deprecated_grub_regcache_for_register_valid): Delete function.
3946 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
3947 declaration.
3948
3949 2003-05-15 David Carlton <carlton@bactrian.org>
3950
3951 Committed by Elena Zannoni <ezannoni@redhat.com>
3952 * symtab.c (lookup_symbol_aux): Delete calls to
3953 lookup_symbol_aux_minsyms.
3954 (lookup_symbol_aux_minsyms): Comment out function and
3955 prototype. Delete lookup by mangled name.
3956
3957 2003-05-14 Kevin Buettner <kevinb@redhat.com>
3958
3959 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
3960 correctly indicate an empty stack and ``stack_allocated'' to the
3961 indicate the number of elements initially allocated.
3962 (dwarf_expr_grow_stack): Simplify method for computing new
3963 stack size. Don't loop infinitely if ``stack_len'' is zero.
3964 (execute_stack_op): Move ``ctx->in_reg'' initialization
3965 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
3966 be used in conjuction with DW_OP_piece. Revise error message
3967 accordingly.
3968
3969 2003-05-14 Theodore A. Roth <troth@openavr.org>
3970
3971 * MAINTAINERS: Update my email address.
3972 * avr-tdep.c: Ditto.
3973
3974 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
3975
3976 * symtab.h (enum domain_enum): Rename from namespace_enum.
3977 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
3978 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
3979 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
3980 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
3981 TYPES_NAMESPACE, METHODS_NAMESPACE.
3982 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
3983 (struct symbol, struct partial_symbol): Rename field
3984 'namespace_enum namespace' to 'domain_enum domain'.
3985 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
3986 Delete old define kludge for namespace.
3987
3988 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
3989 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
3990 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
3991 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
3992 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
3993 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
3994 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
3995 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
3996 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
3997 occurrences of the above.
3998
3999 2003-05-14 Ian Lance Taylor <ian@airs.com>
4000
4001 * Makefile.in (install-only): Use $(SHELL) when running
4002 mkinstalldirs.
4003
4004 2003-05-13 Ian Lance Taylor <ian@airs.com>
4005
4006 * MAINTAINERS (write after approval): Add myself.
4007
4008 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
4009 second and third arguments.
4010 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4011 * ser-unix.c (_initialize_ser_hardwire): Likewise.
4012
4013 2003-05-13 Andrew Cagney <cagney@redhat.com>
4014
4015 * defs.h (store_address): Delete declaration.
4016 findvar.c (store_address): Delete function.
4017 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
4018 store_unsigned_integer.
4019 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
4020 * v850-tdep.c (v850_push_arguments): Ditto.
4021 * sparc-tdep.c (sparc_get_saved_register): Ditto.
4022 * sh-tdep.c (sh64_get_saved_register): Ditto.
4023 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
4024 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
4025 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
4026 (mips_get_saved_register): Ditto.
4027 * ia64-tdep.c (ia64_get_saved_register): Ditto.
4028 (find_func_descr, ia64_push_arguments): Ditto.
4029 * i386-tdep.c (i386_push_arguments): Ditto.
4030 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
4031 * frv-tdep.c (frv_push_arguments): Ditto.
4032 * frame.c (legacy_saved_regs_prev_register): Ditto.
4033 (deprecated_generic_get_saved_register): Ditto.
4034 * findvar.c (unsigned_address_to_pointer): Ditto.
4035 * dwarf2read.c (dwarf2_const_value): Ditto.
4036 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4037 * alpha-tdep.c (alpha_push_arguments): Ditto.
4038
4039 2003-05-12 J. Brobecker <brobecker@gnat.com>
4040
4041 * NEWS: Mention that the hppa-hpux port has been partially
4042 multiarched (32bit ABIT only, so far).
4043
4044 2003-05-11 Andrew Cagney <cagney@redhat.com>
4045
4046 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
4047 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
4048 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
4049 sim/testsuite/sim/arm/misaligned2.ms, and
4050 sim/testsuite/sim/arm/misaligned3.ms.
4051 * disasm.h (struct ui_file): Add opaque struct declaration.
4052 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
4053 * frame.h (struct ui_file): Ditto.
4054
4055 2003-05-11 Mark Kettenis <kettenis@gnu.org>
4056
4057 * value.h: Pretty print.
4058
4059 2003-05-10 Mark Kettenis <kettenis@gnu.org>
4060
4061 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
4062
4063 2003-05-08 Andrew Cagney <cagney@redhat.com>
4064
4065 * regcache.h (max_register_size): Delete declaration.
4066 * regcache.c (max_register_size): Delete function.
4067 (struct regcache_descr): Delete field "max_register_size".
4068 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
4069 registers fit in MAX_REGISTER_SIZE.
4070 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
4071 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
4072 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
4073 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
4074 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
4075 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
4076 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
4077 * dve3900-rom.c, hppa-tdep.c: Ditto.
4078
4079 2003-05-08 David Carlton <carlton@math.stanford.edu>
4080
4081 * valops.c (push_word): Fix typo.
4082
4083 2003-05-08 Andrew Cagney <cagney@redhat.com>
4084
4085 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
4086 * gdbarch.h: Re-generate.
4087 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
4088 (legacy_max_register_raw_size): Delete declaration.
4089 * regcache.c (legacy_max_register_raw_size): Delete function.
4090 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
4091 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
4092 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
4093 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
4094 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
4095 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
4096 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
4097 * findvar.c, dwarf2cfi.c: Ditto.
4098
4099 2003-05-08 Andrew Cagney <cagney@redhat.com>
4100
4101 * mips-tdep.c (read_signed_register): New function, moved to here
4102 from "regcache.c".
4103 (read_signed_register_pid): Ditto.
4104 * regcache.c (read_signed_register_pid): Delete function, moved to
4105 "mips-tdep.c".
4106 (read_signed_register): Ditto.
4107 * regcache.h (read_signed_register): Delete declaration.
4108 (read_signed_register_pid): Delete declaration.
4109
4110 2003-05-08 Andrew Cagney <cagney@redhat.com>
4111
4112 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
4113 * gdbarch.h: Re-generate.
4114 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
4115 (legacy_max_register_virtual_size): Delete declaration.
4116 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
4117 * d10v-tdep.c (d10v_print_registers_info): Ditto.
4118 * tracepoint.c (memrange_sortmerge): Ditto.
4119 * sparc-tdep.c (sparc_print_registers): Ditto.
4120 * regcache.c (legacy_max_register_virtual_size): Delete function.
4121
4122 2002-05-08 J. Brobecker <brobecker@gnat.com>
4123
4124 * fork-child.c (escape_bang_in_quoted_argument): New function.
4125 (fork_inferior): Escape '!' characters in quoted arguments
4126 only when needed.
4127
4128 2003-05-08 J. Brobecker <brobecker@gnat.com>
4129
4130 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
4131 the language of the CU is not currently supported by GDB.
4132
4133 2003-05-08 J. Brobecker <brobecker@gnat.com>
4134
4135 * defs.h (language): Add language_minimal enum value.
4136 * c-lang.c (minimal_language_defn): New language definition.
4137 (_initialize_c_language): Add the new minimal language to the list
4138 of languages known to GDB.
4139
4140 2003-05-08 Kevin Buettner <kevinb@redhat.com>
4141
4142 * frame.c (get_frame_type): Don't attempt to lazily initialize
4143 frame's unwinder for legacy frames.
4144
4145 2003-05-07 Andrew Cagney <cagney@redhat.com>
4146
4147 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
4148 and "regcache" parameters.
4149 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
4150
4151 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
4152
4153 * dwarf2read.c (dwarf_decode_lines): Only use output of
4154 check_cu_functions() when calling record_line(). Do not update
4155 the current address.
4156
4157 2003-05-07 Andrew Cagney <cagney@redhat.com>
4158
4159 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
4160 code.
4161
4162 2003-05-07 Jim Blandy <jimb@redhat.com>
4163
4164 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
4165 'maint info symtabs' and 'maint info psymtabs'.
4166 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
4167 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
4168 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
4169 Declarations updated.
4170 * maint.c (maintenance_list_command): Delete.
4171 (_initialize_maint_cmds): Update calls to add_cmd.
4172 * gdbcmd.h (maintenancelistlist): Delete declaration.
4173 * cli/cli-cmds.c (maintenancelistlist): Delete.
4174 (init_cmd_lists): Don't initialize it.
4175 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
4176
4177 2003-05-07 Andrew Cagney <cagney@redhat.com>
4178
4179 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
4180 "regcache".
4181 (d10v_print_registers_info): Update.
4182 (d10v_dmap_register, d10v_imap_register): Delete functions.
4183 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
4184 and "imap_register".
4185 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
4186 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
4187 * arch-utils.c (generic_remote_translate_xfer_address): Add
4188 "regcache" and "gdbarch" parameters.
4189 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
4190 parameter. Change class to multi-arch.
4191 * gdbarch.h, gdbarch.c: Re-generate.
4192 * remote.c (remote_xfer_memory): Use
4193 gdbarch_remote_translate_xfer_address.
4194
4195 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
4196
4197 * infrun.c (prev_pc): Move declaration ahead of proceed().
4198 (proceed): Refresh prev_pc value before resuming.
4199 (stop_stepping): Remove code to refresh prev_pc.
4200
4201 2003-05-06 Kris Warkentin <kewarken@qnx.com>
4202
4203 * nto-tdep.c: Removed stray comment.
4204
4205 2003-05-06 Kris Warkentin <kewarken@qnx.com>
4206
4207 * i386-nto-tdep.c: Fix old K&R function definitions.
4208 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
4209 Also change add_show_from_set() call to add_setshow_cmd().
4210 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
4211
4212 2003-05-05 Andrew Cagney <cagney@redhat.com>
4213
4214 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
4215 (fprint_dummy_frames): New function.
4216 (maintenance_print_dummy_frames): New function.
4217 (_initialize_dummy_frame): Add command "maint print dummy-frames".
4218 * frame.c (fprint_frame_id): Make global.
4219 * frame.h (fprint_frame_id): Declare.
4220 * Makefile.in (dummy-frame.o): Update dependencies.
4221
4222 2003-05-05 Andrew Cagney <cagney@redhat.com>
4223
4224 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
4225 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
4226 SIZEOF_CALL_DUMMY_WORDS.
4227 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
4228 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
4229 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
4230 CALL_DUMMY_BREAKPOINT_OFFSET.
4231 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
4232 CALL_DUMMY_START_OFFSET.
4233 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
4234 * gdbarch.h, gdbarch.c: Re-generate.
4235 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
4236 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
4237 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
4238 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
4239 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
4240 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
4241 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
4242 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
4243 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
4244 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
4245 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
4246 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
4247 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
4248 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
4249 * config/sparc/tm-sparc.h: Update.
4250
4251 2003-05-05 Kris Warkentin <kewarken@qnx.com>
4252
4253 * configure.tgt: Add i[3456]86-*-nto*.
4254 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
4255 * nto-tdep.c: New file. Neutrino target support routines.
4256 * nto-tdep.h: New file. Neutrino target header.
4257 * config/tm-qnxnto.h: New file.
4258 * config/i386/i386nto.mt: New file.
4259 * config/i386/tm-i386nto.h: New file.
4260
4261 2003-05-04 Andrew Cagney <cagney@redhat.com>
4262
4263 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
4264 (load_infrun_state): Ditto.
4265 (struct thread_info): Drop "prev_func_name" field.
4266 * thread.c (load_infrun_state): Update.
4267 (save_infrun_state): Update.
4268 * infrun.c (prev_func_name): Delete variable.
4269 (init_wait_for_inferior): Do not clear prev_func_name.
4270 (stop_stepping, keep_going, context_switch): Do not swap
4271 prev_func_name.
4272 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
4273 instead of PC_IN_SIGTRAMP.
4274
4275 2003-05-04 Andrew Cagney <cagney@redhat.com>
4276
4277 * sentinel-frame.c (sentinel_frame_prev_register): Replace
4278 REGISTER_BYTE with register_offset_hack.
4279 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
4280 that REGISTER_BYTE is consistent with the regcache.
4281 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
4282 * gdbarch.h, gdbarch.c: Regenerate.
4283
4284 2003-05-04 Mark Kettenis <kettenis@gnu.org>
4285
4286 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
4287 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
4288
4289 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
4290
4291 2003-05-03 J. Brobecker <brobecker@gnat.com>
4292
4293 From Thierry Schneider <tpschneider1@yahoo.com>
4294 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
4295 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
4296 (mi-cmd-symbol.o): Add rule.
4297
4298 2003-05-03 Andrew Cagney <cagney@redhat.com>
4299
4300 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
4301 comments noteing that it replaces the old FIX_CALL_DUMMY code.
4302 * gdbarch.h, gdbarch.c: Re-generate.
4303 * d10v-tdep.c (d10v_push_dummy_code): New function.
4304 (d10v_gdbarch_init): Set push_dummy_code.
4305 * infcall.c (legacy_push_dummy_code): New function.
4306 (generic_push_dummy_code): New function.
4307 (push_dummy_code): New function.
4308 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
4309 instead of dummy_addr, to push_dummy_call. Move call to
4310 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
4311 switch.
4312 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
4313
4314 2003-05-03 Andrew Cagney <cagney@redhat.com>
4315
4316 * disasm.h (print_insn): Declare.
4317 * disasm.c (init_gdb_disassemble_info): New function.
4318 (gdb_disassembly): Call init_gdb_disassemble_info.
4319 (gdb_print_insn): New function.
4320 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
4321 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
4322 * mcore-tdep.c: Include "disasm.h"
4323 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
4324 * d10v-tdep.c: Include "disasm.h".
4325 (display_trace): Call gdb_print_insn, instead of print_insn.
4326 (print_insn): Delete function.
4327 * printcmd.c: Include "disasm.h".
4328 (print_insn): Delete function.
4329 (print_formatted): Call gdb_print_insn, instead of print_insn.
4330 * Makefile.in (printcmd.o): Update dependencies.
4331 (mcore-tdep.o, d10v-tdep.o): Ditto.
4332
4333 2003-05-02 Andrew Cagney <cagney@redhat.com>
4334
4335 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
4336 PC_REGNUM, re-indent.
4337 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
4338 PC_REGNUM isn't set.
4339
4340 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
4341 * gdbarch.h, gdbarch.c: Re-generate.
4342 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
4343 register_virtual_size, pc_regnum, or register_bytes.
4344 (D10V_PC_REGNUM): Rename _PC_REGNUM.
4345 (d10v_register_type): Use D10V_PC_REGNUM.
4346 (d10v_print_registers_info, d10v_read_pc): Ditto.
4347 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
4348 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
4349
4350 2003-05-02 David Carlton <carlton@bactrian.org>
4351
4352 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
4353 the name with mstrsave.
4354
4355 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
4356
4357 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
4358 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
4359 (host_charset_name, target_charset_name): New vars for use by
4360 set/show commands.
4361 (host_charset_enum, target_charset_enum): New enums for set/show
4362 commands.
4363 (set_charset_sfunc, set_host_charset_sfunc,
4364 set_target_charset_sfunc): New functions.
4365 (set_host_charset, set_target_charset): Make static.
4366 (list_charsets, set_host_charset_command,
4367 set_target_charset_command): Delete functions.
4368 (show_charset_command): Rewrite as....
4369 (show_charset): Hook this up with the set/show command mechanism.
4370 (_initialize_charset): Change names of charsets to match the
4371 set/show enums. Use host_charset_name and target_charset_name.
4372 Use set/show mechanism for charset, host-charset, target-charset
4373 commands. Do not make 'show host-charset' and 'show
4374 target-charset' be aliases of 'show charset'.
4375
4376 * charset.h (set_host_charset, set_target_charset): Don't export,
4377 they are not used outside the file.
4378
4379 2003-05-01 Andrew Cagney <cagney@redhat.com>
4380
4381 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
4382 (gdb_disassembly): Make "di" non static, always initialize and
4383 cleanup. Always use dis_asm_read_memory.
4384 (gdb_dis_asm_read_memory): Delete function.
4385
4386 2003-05-01 Andrew Cagney <cagney@redhat.com>
4387
4388 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
4389 (d10v_gdbarch_init): Set frame_align instead of stack_align.
4390
4391 2003-04-30 Andrew Cagney <cagney@redhat.com>
4392
4393 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
4394 "tm_print_insn_info".
4395 (TARGET_PRINT_INSN_INFO): Delete macro.
4396 (dis_asm_read_memory): Delete function declaration.
4397 (dis_asm_memory_error, dis_asm_print_address): Ditto.
4398 (tm_print_insn_info): Delete variable definition.
4399 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
4400 * gdbarch.h, gdbarch.c: Re-generate.
4401 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
4402 "deprecated_tm_print_insn_info".
4403 * mcore-tdep.c (mcore_dump_insn): Ditto.
4404 * mips-tdep.c (mips_gdbarch_init): Ditto.
4405 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
4406 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
4407 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
4408 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
4409 instead of TARGET_PRINT_INSN_INFO, add comment.
4410 * s390-tdep.c (s390_get_frame_info): Instead of
4411 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
4412 (s390_check_function_end, s390_is_sigreturn): Ditto.
4413 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
4414 (dis_asm_memory_error, dis_asm_print_address): Ditto.
4415 * disasm.c: Include "gdbcore.h".
4416 (_initialize_disasm): New function, initialize
4417 "deprecated_tm_print_insn_info".
4418 (deprecated_tm_print_insn_info): New variable.
4419 (dis_asm_read_memory): Moved from "corefile.c", made static.
4420 (dis_asm_print_address, dis_asm_memory_error): Ditto.
4421 * Makefile.in (disasm.o): Update dependencies.
4422
4423 2003-04-30 Andrew Cagney <cagney@redhat.com>
4424
4425 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
4426
4427 2003-04-29 Adam Fedor <fedor@gnu.org>
4428
4429 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
4430 * infcall.c (find_function_addr): Make non-static.
4431 * infcall.h (find_function_addr): Declare.
4432 * Makefile.in (eval.o): Update dependencies.
4433
4434 2003-04-28 Adam Fedor <fedor@gnu.org>
4435
4436 * symtab.c (symbol_find_demangled_name): Check for and demangle
4437 ObjC symbols.
4438 (symbol_init_demangled_name): Init for language_objc as well.
4439
4440 2003-04-28 Andrew Cagney <cagney@redhat.com>
4441
4442 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
4443 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
4444 * gdbarch.h, gdbarch.c: Re-generate.
4445 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
4446 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
4447 * inferior.h (deprecated_read_fp): Rename read_fp.
4448 (generic_target_read_fp): Delete declaration.
4449 * regcache.c (generic_target_read_fp): Delete function.
4450 (deprecated_read_fp): Replace read_fp, use
4451 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
4452 * d10v-tdep.c (d10v_read_fp): Delete function.
4453 (d10v_gdbarch_init): Do not set deprecated_read_fp.
4454
4455 * sparc-tdep.c (sparc_gdbarch_init): Do not set
4456 deprecated_target_read_fp to generic_target_read_fp.
4457 * sh-tdep.c (sh_gdbarch_init): Ditto.
4458 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4459 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4460 * frv-tdep.c (frv_gdbarch_init): Ditto.
4461
4462 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
4463 deprecated_fp_regnum.
4464 * x86-64-tdep.c (x86_64_init_abi): Ditto.
4465 * vax-tdep.c (vax_gdbarch_init): Ditto.
4466 * v850-tdep.c (v850_gdbarch_init): Ditto.
4467 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4468 * sh-tdep.c (sh_gdbarch_init): Ditto.
4469 * s390-tdep.c (s390_gdbarch_init): Ditto.
4470 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4471 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4472 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4473 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4474 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4475 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4476 * i386-tdep.c (i386_gdbarch_init): Ditto.
4477 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4478 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4479 * frv-tdep.c (frv_gdbarch_init): Ditto.
4480 * cris-tdep.c (cris_gdbarch_init): Ditto.
4481 * avr-tdep.c (avr_gdbarch_init): Ditto.
4482 * arm-tdep.c (arm_gdbarch_init): Ditto.
4483 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4484
4485 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
4486 * v850-tdep.c (v850_gdbarch_init): Ditto.
4487 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4488 * sh-tdep.c (sh_gdbarch_init): Ditto.
4489 * s390-tdep.c (s390_gdbarch_init): Ditto.
4490 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4491 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4492 * mips-tdep.c (mips_gdbarch_init): Ditto.
4493 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4494 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4495 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4496 * frv-tdep.c (frv_gdbarch_init): Ditto.
4497 * avr-tdep.c (avr_gdbarch_init): Ditto.
4498 * arm-tdep.c (arm_gdbarch_init): Ditto.
4499
4500 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
4501 DEPRECATED_FP_REGNUM.
4502 (vax_push_dummy_frame, vax_pop_frame): Ditto.
4503 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
4504 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
4505 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
4506 (sparc32_register_virtual_type): Ditto.
4507 * sh-tdep.c (sh64_frame_chain): Ditto.
4508 (sh64_get_saved_register, sh64_pop_frame): Ditto.
4509 (sh_nofp_frame_init_saved_regs): Ditto.
4510 (sh64_nofp_frame_init_saved_regs): Ditto.
4511 (sh_fp_frame_init_saved_regs): Ditto.
4512 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4513 * remote-e7000.c (fetch_regs_from_dump): Ditto.
4514 * procfs.c (procfs_fetch_registers): Ditto.
4515 (procfs_store_registers): Ditto.
4516 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
4517 (store_inferior_registers, fetch_core_registers): Ditto.
4518 (fetch_kcore_registers, clear_regs): Ditto.
4519 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
4520 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
4521 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
4522 * nlm/i386.c (do_status): Ditto.
4523 * mipsv4-nat.c (supply_gregset): Ditto.
4524 * mips-tdep.c: Ditto for comments.
4525 * mips-nat.c (fetch_inferior_registers): Ditto.
4526 (store_inferior_registers, fetch_core_registers): Ditto.
4527 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
4528 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
4529 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
4530 (i386_do_pop_frame, i386_register_type): Ditto.
4531 * hppa-tdep.c (hppa_frame_chain): Ditto.
4532 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
4533 (hppa_pop_frame, hppa_read_fp): Ditto.
4534 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
4535 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
4536 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
4537 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
4538 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
4539 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
4540 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
4541 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
4542 * blockframe.c: Ditto for comments.
4543 * arch-utils.h: Ditto for comments.
4544 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
4545 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
4546 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
4547 * alpha-tdep.h: Ditto for comments.
4548 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
4549 (alpha_cannot_store_register): Ditto.
4550 (alpha_push_dummy_frame): Ditto.
4551 * alpha-nat.c (supply_gregset): Ditto.
4552
4553 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
4554 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
4555 * config/sparc/tm-sparc.h: Update comment.
4556
4557 * hppa-tdep.c (hppa_init_extra_frame_info): Use
4558 deprecated_read_fp instead of TARGET_READ_FP.
4559 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
4560 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
4561 * sparc-tdep.c (sparc_init_extra_frame_info): Use
4562 deprecated_read_fp instead of read_fp.
4563 * s390-tdep.c (s390_push_arguments): Ditto.
4564 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4565 * frame.h: Ditto in comments.
4566 * frame.c (legacy_get_prev_frame): Ditto.
4567 * dummy-frame.c (dummy_frame_this_id): Ditto.
4568 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
4569
4570 2003-04-28 Andrew Cagney <cagney@redhat.com>
4571
4572 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
4573 * gdbarch.h, gdbarch.c: Re-generate.
4574 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
4575 * vax-tdep.c (_initialize_vax_tdep): Update.
4576 * v850-tdep.c (_initialize_v850_tdep): Update.
4577 * sparc-tdep.c (_initialize_sparc_tdep): Update.
4578 * s390-tdep.c (_initialize_s390_tdep): Update.
4579 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
4580 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
4581 * mips-tdep.c (_initialize_mips_tdep): Update.
4582 * mcore-tdep.c (_initialize_mcore_tdep): Update.
4583 * m68k-tdep.c (_initialize_m68k_tdep): Update.
4584 * ia64-tdep.c (_initialize_ia64_tdep): Update.
4585 * hppa-tdep.c (_initialize_hppa_tdep): Update.
4586 * h8300-tdep.c (_initialize_h8300_tdep): Update.
4587 * frv-tdep.c (_initialize_frv_tdep): Update.
4588 * cris-tdep.c (cris_delayed_get_disassembler): Update.
4589 (_initialize_cris_tdep): Update.
4590 * arch-utils.c (legacy_print_insn): Update.
4591 * alpha-tdep.c (_initialize_alpha_tdep): Update.
4592
4593 2003-04-26 Adam Fedor <fedor@gnu.org>
4594
4595 * linespec.c (decode_objc): New function to decode ObjC calls
4596 (decode_line_1): Check for ObjC calls (using decode_objc)
4597 * Makefile (linespec.o): Update dependencies.
4598
4599 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
4600
4601 * breakpoint.h (struct breakpoint_ops): New.
4602 (struct breakpoint): Add ops member.
4603
4604 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
4605 (mention): Use new breakpoint ops member.
4606 (set_raw_breakpoint): Initialize ops field to NULL.
4607 (print_exception_catchpoint, print_one_exception_catchpoint)
4608 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
4609 (gnu_v3_exception_catchpoint_ops): New.
4610 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
4611
4612 2003-04-25 Adam Fedor <fedor@gnu.org>
4613
4614 * Makefile.in (COMMON_OBS): Add objc-lang.o
4615
4616 2003-04-25 Andrew Cagney <cagney@redhat.com>
4617
4618 * d10v-tdep.c (print_insn): Delete function.
4619 (display_trace): Use TARGET_PRINT_INSN.
4620 (_initialize_d10v_tdep): Do not set tm_print_insn.
4621 (d10v_gdbarch_init): Set print_insn.
4622
4623 2003-04-25 Andrew Cagney <cagney@redhat.com>
4624
4625 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
4626 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
4627 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
4628 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
4629 (nr_dmap_regs, a0_regnum): ... new functions.
4630 (d10v_print_registers_info): Use a0_regnum, use register_size.
4631 (d10v_register_byte): Delete function.
4632 (d10v_register_raw_size): Delete function.
4633 (d10v_register_type): Use a0_regnum.
4634 (d10v_print_registers_info): Use a0_regnum.
4635 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
4636 (d10v_gdbarch_init): Do not set register_byte or
4637 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
4638 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
4639 extract_address.
4640 (trace_command): Use XCALLOC.
4641 (print_insn): Delete reference to tm_print_insn.
4642 (saved_regs_unwinder): Use store_unsigned_integer instead of
4643 store_address.
4644 * frame.h (FRAME_OBSTACK_CALLOC): Define
4645
4646 2003-04-25 David Carlton <carlton@bactrian.org>
4647
4648 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
4649
4650 2003-04-24 Adam Fedor <fedor@gnu.org>
4651
4652 * objc-lang.c: Include "valprint.h"
4653 * Makefile.in (objc-lang.o): Update dependencies.
4654
4655 2003-04-24 Adam Fedor <fedor@gnu.org>
4656
4657 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
4658 architecture dependant compilation and mark as unimplemented
4659 (until they get put in the gdbarch vector).
4660
4661 2003-04-23 David Carlton <carlton@bactrian.org>
4662
4663 * cp-support.c (cp_find_first_component): Accept 'operator' in
4664 more locations.
4665
4666 2003-04-23 Andrew Cagney <cagney@redhat.com>
4667
4668 * infcall.c (call_function_by_hand): Eliminate redundant
4669 indentation. Move "saved_async" and "old_cleanups" to where they
4670 are needed.
4671
4672 2003-04-23 Andrew Cagney <cagney@redhat.com>
4673
4674 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
4675 and "buffer". Move the "name" code to where it is needed.
4676
4677 2003-04-23 Andrew Cagney <cagney@redhat.com>
4678
4679 * infcall.c (call_function_by_hand): Move variables "start_sp",
4680 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
4681 code to ON_STACK switch branch.
4682
4683 2003-04-23 Andrew Cagney <cagney@redhat.com>
4684
4685 * infcall.c (call_function_by_hand): Make declaration of "i",
4686 "sal", "bpt" and "old_sp" more local to their use. Delete #if
4687 lint.
4688
4689 2003-04-23 Andrew Cagney <cagney@redhat.com>
4690
4691 * infcall.c (call_function_by_hand): Delete variable
4692 "n_method_args". Localize "param_type"'s declaration to the loop
4693 that it is used. Reinstate code assigning to said variable -
4694 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
4695 Rationalize code using "param_type".
4696
4697 2003-04-22 Andrew Cagney <cagney@redhat.com>
4698
4699 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
4700 compute the breakpoint address. Only call FIX_CALL_DUMMY when
4701 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
4702 to DEPRECATED_PUSH_RETURN_ADDRESS.
4703
4704 2003-04-22 Kevin Buettner <kevinb@redhat.com>
4705
4706 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
4707 on the DWARF2 register number prior to fetching a register.
4708
4709 2003-04-22 J. Brobecker <brobecker@gnat.com>
4710
4711 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
4712 Update all the tests using SOFT_FLOAT considering the fact that
4713 this macro was always set to 0.
4714 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
4715 considering the fact that this macro was always set to 0.
4716 * hppa-tdep.h (hppa_store_return_value): Likewise.
4717 (hppa_extract_return_value): Likewise.
4718
4719 2003-04-22 J. Brobecker <brobecker@gnat.com>
4720
4721 * config/pa/tm-hppa.h: Remove obsolete code, was used by
4722 the hppa-pro target only.
4723
4724 2003-04-21 J. Brobecker <brobecker@gnat.com>
4725
4726 Ongoing multi-arch conversion effort for HP/UX:
4727 * config/pa/tm-hppa.h: Move all macro that are no longer
4728 defined now that GDB_MULTI_ARCH is now set to 1 from here...
4729 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
4730
4731 2003-04-21 J. Brobecker <brobecker@gnat.com>
4732
4733 * config/pa/tm-hppa.h: Obsolete a section that was only used
4734 for hppa-pro.
4735
4736 2003-04-21 J. Brobecker <brobecker@gnat.com>
4737
4738 Ongoing multi-arch conversion for HP/UX.
4739 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
4740 if already defined (allows hppa64 to stay non-multiarched for now).
4741 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
4742
4743 2003-04-21 Andrew Cagney <cagney@redhat.com>
4744
4745 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
4746
4747 2003-04-21 Andrew Cagney <cagney@redhat.com>
4748
4749 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
4750 "i386_num_mmx_regs".
4751
4752 2003-04-21 Andrew Cagney <cagney@redhat.com>
4753
4754 * infcall.c: New file.
4755 * infcall.h: New file.
4756 * valarith.c: Include "infcall.h".
4757 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
4758 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
4759 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
4760 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
4761 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
4762 (SFILES): Add "infcall.c"
4763 (COMMON_OBS): Add "infcall.o".
4764 (infcall.o): Specify dependencies.
4765 * value.h (call_function_by_hand): Delete declaration.
4766 * inferior.h (run_stack_dummy): Delete declaration.
4767 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
4768 (run_stack_dummy): Move to "infcall.c", merged into
4769 call_function_by_hand.
4770 * valops.c (call_function_by_hand): Moved to "infcall.c".
4771 (find_function_addr, value_arg_coerce): Ditto.
4772 (unwindonsignal_p, coerce_float_to_double): Ditto.
4773 (_initialize_valops): Move "set/show coerce-float-to-double", and
4774 "set/show unwindonsignal" commands to "infcall.c".
4775 * v850-tdep.c, target.h: Update comments.
4776 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
4777 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
4778 (sh64_init_extra_frame_info): Update comments.
4779 * mn10300-tdep.c: Update comments.
4780 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
4781 * config/sparc/tm-sparc.h: Update comments.
4782 * breakpoint.h: Update comments.
4783 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
4784 * arm-tdep.c: Update comment.
4785
4786 2003-04-19 Mark Kettenis <kettenis@gnu.org>
4787
4788 * i386-tdep.c (i386_num_register_names): New variable.
4789 (i386_num_mmx_regs): Renamed from mmx_num_regs.
4790 (MM0_REGNUM): Remove redundant parentheses in define.
4791 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
4792 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
4793 i386_mxcsr_regnum_p): Remove redundant parentheses.
4794 (i386_register_name): Use i386_num_register_names.
4795
4796 * i386-tdep.c (i386_extract_return_value,
4797 i386_store_return_value): Correct check for availability of
4798 floating-point registers.
4799
4800 * i386-tdep.c (i386_frame_num_args): Remove function.
4801 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
4802
4803 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
4804 mmx_regnum_to_fp_regnum. Adjust all callers.
4805
4806 * i386-tdep.c (i386_get_longjmp_target): Use
4807 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
4808 and TARGET_CHAR_BIT. Use extract_typed_address instead of
4809 extract_address.
4810
4811 2003-04-19 Mark Kettenis <kettenis@gnu.org>
4812
4813 * core-regset.c: Update comments to reflect reality. Re-order
4814 includes.
4815 (fetch_core_registers): Use switch instead of if. Remove
4816 redundant prototype.
4817
4818 2003-04-18 Jim Blandy <jimb@redhat.com>
4819
4820 * s390-tdep.c (s390_frame_align): New function.
4821 (s390_gdbarch_init): Register it with the gdbarch object.
4822
4823 2003-04-17 Richard Henderson <rth@redhat.com>
4824
4825 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
4826
4827 2003-04-17 Michael Snyder <msnyder@redhat.com>
4828 Karen Bennet <bennet@redhat.com>
4829
4830 Committed by Elena Zannoni <ezannoni@redhat.com>
4831 * gdb_gcore.sh: New script to create a core dump of a process.
4832
4833 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
4834
4835 * values.c (value_being_returned): Don't fetch the return
4836 value if the return type is void.
4837
4838 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
4839
4840 * thread-db.c: Reindented.
4841
4842 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
4843
4844 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
4845 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
4846 as types.
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872 2003-04-16 Kevin Buettner <kevinb@redhat.com>
4873
4874 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
4875 the size of ``long double'' to 16, instead of 8.
4876
4877 2003-04-16 Mark Kettenis <kettenis@gnu.org>
4878
4879 * i386-linux-nat.c: Add some whitespace to make things more
4880 readable.
4881 (fetch_register, store_register, fetch_inferior_registers,
4882 store_inferior_registers): Get rid of assignment in if-statement.
4883 (store_register): Fix typo in error message.
4884
4885 2003-04-16 Andrew Cagney <cagney@redhat.com>
4886
4887 * utils.c (xmmalloc): Always allocate something, matches
4888 libiberty/xmalloc's semantics.
4889 (xmrealloc, xmcalloc): Ditto.
4890
4891 2003-04-16 Andrew Cagney <cagney@redhat.com>
4892
4893 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
4894 update comments.
4895 (get_frame_type): Initialize unwind and type when needed.
4896 (get_frame_id, frame_register_unwind): Ditto.
4897
4898 2003-04-16 Andrew Cagney <cagney@redhat.com>
4899
4900 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
4901 obsolete.
4902 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
4903 * sparcl-stub.c: Obsolete file.
4904 * config/sparc/tm-sparclet.h: Obsolete file.
4905 * sparclet-stub.c: Obsolete file.
4906 * sparclet-rom.c: Obsolete file.
4907 * sparcl-tdep.c: Obsolete file.
4908 * config/sparc/tm-sparclite.h: Obsolete file.
4909 * config/sparc/sparclite.mt: Obsolete file.
4910 * config/sparc/sparclet.mt: Obsolete file.
4911 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
4912 sparc86x-*-* obsolete.
4913
4914 2003-04-15 David Carlton <carlton@math.stanford.edu>
4915
4916 * Makefile.in (SFILES): Add cp-namespace.c.
4917 (COMMON_OBS): Add cp-namespace.o.
4918 (block.o): Depend on gdb_obstack_h and cp_support_h.
4919 (buildsym.o): Depend on cp_support_h.
4920 (cp-namespace.o): New.
4921 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
4922 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
4923 (dwarf2read.o): Depend on cp_support_h.
4924 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
4925 * dwarf2read.c (process_die): Set processing_has_namespace_info,
4926 processing_current_namespace.
4927 (read_namespace): Update processing_current_namespace; check for
4928 anonymous namespaces.
4929 (dwarf2_name): New function.
4930 (dwarf2_extension): Ditto.
4931 * cp-support.h: Update copyright, contributors.
4932 Add inclusion guards.
4933 Add opaque declaration for structs obstack, block, symbol.
4934 (struct using_direct): New struct.
4935 Add declarations for cp_find_first_component,
4936 cp_entire_prefix_len, processing_has_namespace_info,
4937 processing_current_namespace, cp_is_anonymous,
4938 cp_add_using_directive, cp_initialize_namespace,
4939 cp_finalize_namespace, cp_set_block_scope,
4940 cp_scan_for_anonymous_namespaces.
4941 * cp-namespace.c: New file.
4942 * cp-support.c: Update copyright.
4943 Include ctype.h, gdb_assert.h, gdbcmd.h.
4944 New variable maint_cplus_cmd_list.
4945 (cp_find_first_component): New function.
4946 (cp_entire_prefix_len, maint_cplus_command)
4947 (first_component_command, _initialize_cp_support): Ditto.
4948 * buildsym.c: Include cp-support.h.
4949 New variable using_list.
4950 (add_symbol_to_list): Check for anonymous namespaces.
4951 (finish_block): Set block's scope.
4952 (start_symtab): Initialize C++ namespace support.
4953 (end_symtab): Finalize C++ namespace support.
4954 * block.h: Add opaque declarations for structs
4955 block_namespace_info, using_direct, and obstack.
4956 Add declarations for block_set_scope and block_set_using.
4957 (struct block): Add 'language_specific' member.
4958 (BLOCK_NAMESPACE): New macro.
4959 * block.c: Include gdb_obstack.h and cp-support.h.
4960 (struct block_namespace_info): New struct.
4961 (block_set_scope): New function.
4962 (block_set_using, block_initialize_namespace): Ditto.
4963
4964 2003-04-14 Kevin Buettner <kevinb@redhat.com>
4965
4966 * solib-svr4.c (svr4_have_link_map_offsets): New function.
4967 (locate_base): Return early if there aren't any link map offsets.
4968 (svr4_solib_create_inferior_hook): Warn if shared library support
4969 is unavailable.
4970
4971 2003-04-14 David Carlton <carlton@math.stanford.edu>
4972
4973 * symtab.c (symbol_set_names): Add prefix when storing Java names
4974 in hash table. Fix for PR java/1039.
4975
4976 2003-04-14 David Carlton <carlton@math.stanford.edu>
4977
4978 * symtab.c (symbol_set_names): Rename 'name' arg to
4979 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
4980 * symtab.h: Change 'name' argument in declaration of
4981 symbol_set_names to 'linkage_name'.
4982 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
4983
4984 2003-04-14 Andrew Cagney <cagney@redhat.com>
4985
4986 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
4987 return the fully sign-extended register value.
4988 (get_frame_pointer): Ditto.
4989 (mips_pop_frame): Initialize "proc_desc" after checking for a
4990 dummy frame.
4991
4992 2003-04-14 Andrew Cagney <cagney@redhat.com>
4993
4994 * mips-tdep.c (mips_push_dummy_frame): Delete function.
4995 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
4996 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
4997 (mips_push_register): Delete function.
4998 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
4999 PUSH_FP_REGNUM.
5000
5001 2003-04-14 Jim Blandy <jimb@redhat.com>
5002
5003 * symmisc.c: #include "gdb_regex.h".
5004 (maintenance_list_symtabs, maintenance_list_psymtabs): New
5005 functions.
5006 * maint.c (maintenance_list_command): New function.
5007 (_initialize_maint_cmds): Register the above as commands.
5008 * symtab.h (maintenance_list_symtabs,
5009 maintenance_list_psymtabs): New declarations.
5010 * cli/cli-cmds.c (maintenancelistlist): New variable.
5011 (init_cmd_lists): Initialize it.
5012 * cli/cli-cmds.h (maintenancelistlist): New declaration.
5013 * gdbcmd.h (maintenancelistlist): New declaration.
5014 * Makefile.in (symmisc.o): Update dependencies.
5015
5016 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
5017
5018 * s390-nat.c: Include asm/types.h for addr_t.
5019
5020 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
5021
5022 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
5023 actually incoming type.
5024
5025 2003-04-13 Andrew Cagney <cagney@redhat.com>
5026
5027 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
5028 get_next_frame and get_frame_saved_regs.
5029
5030 2003-04-13 Andrew Cagney <cagney@redhat.com>
5031
5032 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
5033 of gdbarch_num_regs.
5034
5035 2003-04-13 Andrew Cagney <cagney@redhat.com>
5036
5037 * frame.h: Mention what replaced what in "struct frame_info".
5038 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
5039 deprecated_update_frame_base_hack and
5040 deprecated_update_frame_pc_hack.
5041 * hppa-tdep.c: Ditto.
5042
5043 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5044
5045 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
5046 to read_reg and update its comment. Remove regnum member.
5047 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
5048 Don't call read_reg when setting in_reg. Call read_reg to get
5049 the frame base if it's in a register. Return the register number
5050 on the stack instead of in the context. Remove extra arguments
5051 to read_reg.
5052 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
5053 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
5054 the register number on the expression stack.
5055 (needs_frame_read_reg): Remove extra arguments.
5056
5057 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5058
5059 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
5060 made non-static.
5061 (execute_stack_op): All callers updated.
5062 * dwarf2expr.h: Add prototype for dwarf2_read_address.
5063 * dwarf2loc.c (find_location_expression): New function.
5064 (dwarf_expr_frame_base): Call it.
5065 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
5066 (dwarf2_tracepoint_var_ref): New function, broken out from
5067 locexpr_tracepoint_var_ref.
5068 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
5069 Make static.
5070 (loclist_read_variable, loclist_read_needs_frame): New functions.
5071 (loclist_describe_location, loclist_tracepoint_var_ref): New
5072 functions.
5073 (dwarf2_loclist_funcs): New struct location_funcs.
5074 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
5075 (struct dwarf2_locexpr_baton): Add comments.
5076 (dwarf2_loclist_funcs): New extern.
5077 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
5078 base_address and base_known.
5079 (dwarf_loc_buffer): New variable.
5080 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
5081 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
5082 (dwarf2_has_info): Initialize dwarf_loc_offset.
5083 (dwarf2_build_psymtabs): Read in .debug_loc.
5084 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
5085 DWARF_LOC_SIZE.
5086 (psymtab_to_symtab_1): Likewise. Move base address calculation
5087 here, from...
5088 (dwarf2_get_pc_bounds): ... here. Use the base address from
5089 cu_header.
5090 (dwarf2_symbol_mark_computed): Handle location lists.
5091
5092 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5093
5094 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
5095 if the linkage name demangled successfully.
5096
5097 2003-04-13 Mark Kettenis <kettenis@gnu.org>
5098
5099 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
5100 disassmbly_flavour): Removed.
5101
5102 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
5103
5104 2003-04-13 Mark Kettenis <kettenis@gnu.org>
5105
5106 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
5107
5108 2003-04-12 Andrew Cagney <cagney@redhat.com>
5109
5110 * frame.h (struct frame_info): Move definition from here ...
5111 * frame.c (struct frame_info): ... to here.
5112
5113 2003-04-12 Andrew Cagney <cagney@redhat.com>
5114
5115 * gdbthread.h (save_infrun_state): Delete parameter
5116 "prev_func_start".
5117 (struct thread_info): Delete field "prev_func_start".
5118 (load_infrun_state): Ditto.
5119 * thread.c (load_infrun_state, save_infrun_state): Update.
5120 * infrun.c (prev_func_start): Delete variable.
5121 (context_switch, init_wait_for_inferior): Update.
5122 (stop_stepping, keep_going): Update.
5123
5124 2003-04-12 Andrew Cagney <cagney@redhat.com>
5125
5126 * gdbarch.sh: Add missing opaque declarations.
5127 * gdbarch.h: Regnerate.
5128 * symtab.h: Add missing opaque declarations.
5129 * value.h, target.h, symfile.h, stabsread.h: Ditto.
5130 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
5131 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
5132 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
5133 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
5134 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
5135 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
5136 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
5137 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
5138 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
5139 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
5140 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
5141 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
5142
5143 2003-04-11 Andrew Cagney <cagney@redhat.com>
5144
5145 * frame.c (get_frame_id): Return this frame's "id".
5146 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
5147 function start.
5148 (legacy_saved_regs_this_id): Replace function body with
5149 internal-error.
5150 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
5151 FRAME_OBSTACK_ZALLOC.
5152 (create_new_frame): Mark the frame ID as valid.
5153
5154 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
5155
5156 * Makefile.in (libbfd_h): Added missing setting.
5157 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
5158 according to the selected ABI.
5159
5160 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
5161
5162 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
5163
5164 2003-04-11 Andrew Cagney <cagney@redhat.com>
5165
5166 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
5167 SAVED_PC_AFTER_CALL.
5168 * gdbarch.h, gdbarch.c: Regenerate.
5169 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5170 * x86-64-tdep.c (x86_64_init_abi): Update.
5171 * vax-tdep.c (vax_gdbarch_init): Update.
5172 * v850-tdep.c (v850_gdbarch_init): Update.
5173 * sparc-tdep.c (sparc_gdbarch_init): Update.
5174 * sh-tdep.c (sh_gdbarch_init): Update.
5175 * s390-tdep.c (s390_gdbarch_init): Update.
5176 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5177 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5178 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5179 * mips-tdep.c (mips_gdbarch_init): Update.
5180 * mcore-tdep.c (mcore_gdbarch_init): Update.
5181 * m68k-tdep.c (m68k_gdbarch_init): Update.
5182 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5183 * ia64-tdep.c (ia64_gdbarch_init): Update.
5184 (ia64_saved_pc_after_call): Update declaration.
5185 * i386ly-tdep.c (i386lynx_init_abi): Update.
5186 * i386-tdep.c (i386_gdbarch_init): Update.
5187 * hppa-tdep.c (hppa_gdbarch_init): Update.
5188 * h8300-tdep.c (h8300_gdbarch_init): Update.
5189 * frv-tdep.c (frv_gdbarch_init): Update.
5190 * cris-tdep.c (cris_gdbarch_init): Update.
5191 * avr-tdep.c (avr_gdbarch_init): Update.
5192 * arm-tdep.c (arm_gdbarch_init): Update.
5193 * alpha-tdep.c (alpha_gdbarch_init): Update.
5194 * ns32knbsd-nat.c (frame_num_args): Update.
5195 * ns32k-tdep.c (umax_frame_num_args): Update.
5196 * mips-tdep.c (mips_init_frame_pc_first): Update.
5197 * infrun.c (step_over_function): Update.
5198 * i386-linux-tdep.c (skip_hurd_resolver): Update.
5199 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
5200 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
5201 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5202 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5203 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
5204 * arm-linux-tdep.c (skip_hurd_resolver): Update.
5205 * arch-utils.c (init_frame_pc_default): Update.
5206 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
5207 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
5208 declaration.
5209
5210 2003-04-11 Andrew Cagney <cagney@redhat.com>
5211
5212 * i387-tdep.c: Update copyright.
5213 (i387_to_double): Delete function.
5214 (double_to_i387): Delete function.
5215
5216 2003-04-10 Andrew Cagney <cagney@redhat.com>
5217
5218 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
5219 frame's function's address. Simplify.
5220 (d10v_frame_unwind_cache): Check that the frame's function is
5221 non-zero.
5222
5223 2003-04-10 Jim Blandy <jimb@redhat.com>
5224
5225 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
5226 call to set_gdbarch_deprecated_push_arguments.
5227
5228 2003-04-10 Andrew Cagney <cagney@redhat.com>
5229
5230 * frame.c (fprint_frame_id): New function.
5231 (fprint_frame_type, fprint_frame): New function.
5232 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
5233 (create_sentinel_frame, get_frame_id): Ditto.
5234 (frame_id_p, frame_id_eq): Ditto.
5235 (frame_id_inner, create_new_frame): Ditto.
5236 (legacy_get_prev_frame, get_prev_frame): Ditto.
5237 (deprecated_update_frame_pc_hack): Ditto.
5238 (frame_register_unwind): Ditto.
5239 (deprecated_update_frame_base_hack): Ditto.
5240
5241 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
5242
5243 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
5244 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
5245 frame_chain function.
5246 * Makefile.in: Add dependencies due to above change.
5247
5248 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
5249
5250 * blockframe.c (legacy_frame_chain_valid): Move call to
5251 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
5252 inside_entry_file.
5253
5254 2003-04-09 Andrew Cagney <cagney@redhat.com>
5255
5256 * frame.h (struct frame_id): Replace "pc" and "base" with
5257 "stack_addr" and "code_addr". Update comments.
5258 (frame_id_build): Update parameter names and comment.
5259 (struct frame_info): Replace "id_p" and "id" with "this_id".
5260 * dummy-frame.c (dummy_frame_this_id): Update.
5261 * breakpoint.c (print_one_breakpoint): Update.
5262 * frame.c (get_frame_id): Update.
5263 (get_frame_base, frame_id_build): Update.
5264 (create_sentinel_frame, legacy_get_prev_frame): Update.
5265 (deprecated_update_frame_base_hack): Update.
5266 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
5267 (frame_id_inner): Ditto.
5268
5269 2003-04-09 Andrew Cagney <cagney@redhat.com>
5270
5271 * defs.h (gdb_print_host_address): Make "addr" parameter a
5272 pointer constant.
5273 * utils.c (gdb_print_host_address): Update.
5274
5275 2003-04-09 Kevin Buettner <kevinb@redhat.com>
5276
5277 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
5278 register number for R0 is 0.
5279
5280 2003-04-09 J. Brobecker <brobecker@gnat.com>
5281
5282 * frame.h (struct gdbarch): Add opaque structure definition
5283 to avoid a compilation warning on LynxOS 4.0.
5284
5285 2003-04-09 Andrew Cagney <cagney@redhat.com>
5286
5287 * frame.h (struct frame_info): Delete field "pc". Replace
5288 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
5289 structure.
5290 * frame.c (frame_pc_unwind): Update.
5291 (create_sentinel_frame): Do not set "pc".
5292 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
5293 (get_frame_pc): Call frame_pc_unwind.
5294 (deprecated_update_frame_pc_hack): Update.
5295 (create_new_frame): Use "pc" not "->pc".
5296
5297 2003-04-09 Andrew Cagney <cagney@redhat.com>
5298
5299 * frame.c (get_frame_id): Eliminate code updating "frame".
5300 (legacy_get_prev_frame): Ditto.
5301 (get_frame_base): Return id.base directly.
5302 (deprecated_update_frame_base_hack): Update "id.base".
5303 * frame.h (struct frame_info): Delete field "frame".
5304
5305 2003-04-09 Andrew Cagney <cagney@redhat.com>
5306
5307 * NEWS: Mention that the "Sequent family" is obsolete.
5308 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
5309 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
5310 * configure.host: Obsolete i[3456]86-sequent-bsd*,
5311 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
5312 * config/i386/tm-ptx4.h: Obsolete file.
5313 * config/i386/tm-ptx.h: Obsolete file.
5314 * symm-tdep.c: Obsolete file.
5315 * config/i386/symmetry.mt: Obsolete file.
5316 * config/i386/tm-symmetry.h: Obsolete file.
5317 * symm-nat.c: Obsolete file.
5318 * config/i386/nm-symmetry.h: Obsolete file.
5319 * config/i386/xm-symmetry.h: Obsolete file.
5320 * config/i386/symmetry.mh: Obsolete file.
5321 * config/i386/nm-ptx4.h: Obsolete file.
5322 * config/i386/ptx4.mh: Obsolete file.
5323 * config/i386/ptx.mt: Obsolete file.
5324 * config/i386/ptx.mh: Obsolete file.
5325 * config/i386/xm-ptx4.h: Obsolete file.
5326 * config/i386/xm-ptx.h: Obsolete file.
5327
5328 2003-04-09 Andrew Cagney <cagney@redhat.com>
5329
5330 Obsolete mips*-*-mach3*.
5331 * NEWS: Mention that mips*-*-mach3* is obsolete.
5332 * m3-nat.c: Obsolete file.
5333 * config/nm-m3.h: Obsolete file.
5334 * config/mips/tm-mipsm3.h: Obsolete file.
5335 * config/mips/mipsm3.mt: Obsolete file.
5336 * config/mips/mipsm3.mh: Obsolete file.
5337 * config/mips/xm-mipsm3.h: Obsolete file.
5338 * mipsm3-nat.c: Obsolete file.
5339 * configure.host: Obsolete mips-dec-mach3*.
5340 * configure.tgt: Obsolete mips*-*-mach3*.
5341
5342 2003-04-09 Andrew Cagney <cagney@redhat.com>
5343
5344 * doublest.h: Update copyright.
5345 (deprecated_store_floating, deprecated_extract_floating): Rename
5346 store_floating and extract_floating. Update comments.
5347 * doublest.c: Update copyright.
5348 (extract_floating_by_length): Replace extract_floating.
5349 (store_floating_by_length): Replace store_floating.
5350 (deprecated_extract_floating): New function.
5351 (deprecated_store_floating): New function.
5352 (extract_typed_floating): Call extract_floating_by_length.
5353 (store_typed_floating): Call store_floating_by_length.
5354 * x86-64-tdep.c (x86_64_store_return_value): Update.
5355 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
5356 (sh64_extract_return_value): Update.
5357 (sh_sh4_register_convert_to_virtual): Update.
5358 (sh_sh64_register_convert_to_virtual): Update.
5359 (sh_sh4_register_convert_to_raw): Update.
5360 (sh_sh64_register_convert_to_raw): Update.
5361 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
5362 (rs6000_register_convert_to_raw): Update.
5363 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
5364 (ia64_register_convert_to_raw): Update.
5365 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
5366 (REGISTER_CONVERT_TO_VIRTUAL): Update.
5367 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
5368 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
5369 (alpha_register_convert_to_raw): Update.
5370
5371 2003-04-08 Andrew Cagney <cagney@redhat.com>
5372
5373 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
5374 * gdbarch.h, gdbarch.c: Re-generate.
5375 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
5376 (d10v_gdbarch_init): Do not set saved_pc_after_call.
5377 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
5378 conditionally, use frame_pc_unwind as an alternative. Add
5379 comments.
5380 * arch-utils.c (init_frame_pc_default): Only call
5381 SAVED_PC_AFTER_CALL when available.
5382
5383 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
5384
5385 * infrun.c (stop_soon): Rename from stop_soon_quietly.
5386 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
5387 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
5388 (start_remote): Ditto.
5389 (handle_inferior_event): Ditto.
5390 (save_inferior_status): Ditto.
5391 (restore_inferior_status): Ditto.
5392 * infcmd.c (attach_command): Ditto.
5393 * fork-child.c (startup_inferior): Ditto.
5394 * inferior.h (stop_soon): Rename from stop_soon_quietly.
5395 * alpha-tdep.c (heuristic_proc_start): Ditto.
5396 * mips-tdep.c (heuristic_proc_start): Ditto.
5397 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
5398 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
5399 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
5400 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
5401 * remote-vx.c (vx_create_inferior): Ditto.
5402
5403 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
5404
5405 * infrun.c (stop_soon_quietly): Make it an enum, to better
5406 override the default behavior of handle_inferior_event.
5407 (clear_proceed_status): Update uses of stop_soon_quietly to
5408 reflect that it is now an enum.
5409 (start_remote): Ditto.
5410 (handle_inferior_event): Change logic a bit if stop_soon_quietly
5411 is set to handle the new GNU/Linux kernel behavior for
5412 attach/sigstop. Update uses of stop_soon_quietly.
5413 * inferior.h (enum stop_kind): New enum.
5414 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
5415 Reset normal handle_inferior_event behavior, afterwards.
5416 * fork-child.c (startup_inferior): Update.
5417 * alpha-tdep.c (heuristic_proc_start): Update.
5418 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
5419 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
5420 * solib-osf.c (osf_solib_create_inferior_hook): Update.
5421 * solib-irix.c (irix_solib_create_inferior_hook): Update.
5422 * remote-vx.c (vx_create_inferior): Update.
5423 * mips-tdep.c (heuristic_proc_start): Update.
5424
5425 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
5426
5427 * disasm.c (dump_insns): Move variables inside loop, or they will
5428 be freed more than once, causing wild memory corruptions.
5429 (gdb_disassembly): Look for the substring "-thread",
5430 instead of "-threads" in the target name, to make sure to find
5431 the 'multi-thread' target. Also, make sure we do the right thing
5432 with the "core" target.
5433
5434 2003-04-07 Kevin Buettner <kevinb@redhat.com>
5435
5436 * mips-tdep.c (mips_print_fp_register): New function, created from
5437 do_fp_register_row(). Registers are now (also) printed as hex.
5438 Only one register is printed per row.
5439 (mips_print_register, do_fp_register_row): Print floating point
5440 registers with mips_print_fp_register().
5441
5442 2003-04-06 Andrew Cagney <cagney@redhat.com>
5443
5444 * valprint.h (inspect_it): Add extern declaration.
5445 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
5446 (selectors_info, classes_info): Ditto.
5447 (find_objc_msgcall): Fix indentation.
5448 (objc_printstr): Delete extern declarations.
5449
5450 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
5451
5452 2003-04-06 Andrew Cagney <cagney@redhat.com>
5453
5454 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
5455 Update comment.
5456 * frame.c (legacy_saved_regs_this_id): Update.
5457 (legacy_get_prev_frame): Update.
5458 * xstormy16-tdep.c: Update comment.
5459 * sparc-tdep.c (sparc_frame_chain): Update comment.
5460 * blockframe.c (legacy_frame_chain_valid): Update.
5461
5462 2003-04-06 Andrew Cagney <cagney@redhat.com>
5463
5464 * valprint.c (val_print_type_code_int): Delete #ifdef
5465 PRINT_TYPELESS_INTEGER code.
5466
5467 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
5468 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
5469 multi-arch definition.
5470 * gdbarch.h: Re-generate.
5471
5472 2003-04-05 Andrew Cagney <cagney@redhat.com>
5473
5474 Eliminate FRAME_FIND_SAVED_REGS.
5475 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
5476 Change FSR parameter to a pointer.
5477 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
5478 Assume FSR parameter is a pointer.
5479 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
5480 Make fsr a pointer.
5481 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
5482 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
5483 saved_regs a pointer.
5484 (hppa_frame_saved_pc): Ditto.
5485 (find_dummy_frame_regs): Make frame_saved_regs a pointer
5486 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
5487 pointer.
5488 (restore_pc_queue): Make fsr a pointer.
5489 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
5490 (hppa_frame_chain): Make saved_regs a pointer, call
5491 hppa_frame_init_saved_regs.
5492 * sparc-tdep.c: Include "gdb_assert.h".
5493 (sparc_frame_find_saved_regs): Replace internal_error with
5494 gdb_assert.
5495 * remote-vxsparc.c (vx_read_register): Delete reference to
5496 FRAME_FIND_SAVED_REGS.
5497 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
5498 * gdbarch.h: Regenerate.
5499 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
5500 (deprecated_get_frame_saved_regs): Delete declaration.
5501 (struct frame_saved_regs): Delete definition.
5502 * frame.c (deprecated_get_frame_saved_regs): Delete function.
5503 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
5504 (hppa_frame_find_saved_regs): Delete declaration.
5505 (FRAME_FIND_SAVED_REGS): Delete macro.
5506 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
5507 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
5508 FRAME_FIND_SAVED_REGS in comment.
5509
5510 2003-04-05 Andrew Cagney <cagney@redhat.com>
5511
5512 * frame.c (frame_func_unwind, get_frame_func): New functions.
5513 * frame.h (get_frame_func, frame_func_unwind): Declare.
5514 (struct frame_info): Add field "prev_func" for caching the
5515 previous frame's function address.
5516 * arm-tdep.c (arm_frameless_function_invocation): Combine
5517 get_pc_function_start and get_frame_pc into get_frame_func.
5518 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
5519 (sh64_nofp_frame_init_saved_regs): Ditto.
5520 * s390-tdep.c (s390_function_start): Ditto.
5521 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
5522 (rs6000_frameless_function_invocation): Ditto.
5523 (rs6000_frame_saved_pc): Ditto.
5524 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
5525 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
5526 * i386-tdep.c (i386_frameless_signal_p): Ditto.
5527 (i386_frame_init_saved_regs): Ditto.
5528 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
5529 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
5530 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
5531 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5532 * blockframe.c (frameless_look_for_prologue): Ditto.
5533
5534 2003-04-05 Andrew Cagney <cagney@redhat.com>
5535
5536 * frame.c (legacy_get_prev_frame): Link prev to next at the
5537 function start. Update comments.
5538
5539 2003-04-05 Andrew Cagney <cagney@redhat.com>
5540
5541 * frame.c (get_frame_id): Update comment.
5542 (legacy_get_prev_frame): Update comment.
5543 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
5544 * gdbarch.h: Regenerate.
5545 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
5546 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
5547
5548 2003-04-05 Andrew Cagney <cagney@redhat.com>
5549
5550 * stack.c (print_frame_info): Use get_frame_pc.
5551
5552 2003-04-04 Andrew Cagney <cagney@redhat.com>
5553
5554 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
5555 the frame's type from the unwinder.
5556 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
5557 (create_new_frame, legacy_get_prev_frame): When the unwinder's
5558 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
5559 (get_frame_base_address): Use get_frame_type.
5560 (get_frame_locals_address, get_frame_args_address): Ditto.
5561 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
5562 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
5563 (struct frame_info): Add comment explaining why the frame contains
5564 a "type" field.
5565 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
5566 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
5567 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
5568 NORMAL_FRAME.
5569 * frame-unwind.h: Include "frame.h".
5570 (struct frame_unwind): Add "type" field.
5571 * Makefile.in (frame_unwind_h): Add $(frame_h).
5572
5573 2003-04-04 Andrew Cagney <cagney@redhat.com>
5574
5575 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
5576 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
5577 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
5578 get_frame_base.
5579 (d10v_unwind_dummy_id): Use frame_id_build.
5580 * frame.c (find_frame_sal): Use get_frame_pc.
5581 (create_new_frame): Use deprecated_update_frame_pc_hack and
5582 deprecated_update_frame_base_hack.
5583 (create_sentinel_frame): Add comment about ->pc going away.
5584 (get_prev_frame): Add comment about ->pc going away.
5585 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
5586 frame_id_build, deprecated_update_frame_pc_hack and
5587 deprecated_update_frame_base_hack.
5588 (select_frame): Use get_frame_pc.
5589 (legacy_saved_regs_this_id): Use frame_id_build.
5590
5591 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
5592
5593 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
5594 signed integer case.
5595 (classify_argument): Handle enumerations and references.
5596
5597 2003-04-04 Andrew Cagney <cagney@redhat.com>
5598
5599 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
5600 ID to NULL.
5601
5602 2003-04-01 Adam Fedor <fedor@gnu.org>
5603
5604 * gdb/objc-lang.c (selectors_info): Replace calls to
5605 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
5606 SYMBOL_NATURAL_NAME.
5607 (classes_info, find_methods): Likewise.
5608
5609 2003-04-03 Kevin Buettner <kevinb@redhat.com>
5610
5611 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
5612 ``mach'' to the value determined by bfd_default_set_arch_mach().
5613
5614 2003-04-02 Bob Rossi <bob_rossi@cox.net>
5615
5616 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
5617 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
5618 (mi-cmd-file.o): Update dependencies.
5619
5620 2003-04-01 Kevin Buettner <kevinb@redhat.com>
5621
5622 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
5623 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
5624
5625 2003-04-01 Adam Fedor <fedor@gnu.org>
5626
5627 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
5628 * language.h (struct language_defn): Add la_demangle.
5629 (language_demangle): Declare.
5630 * language.c (language_demangle): New function.
5631 (unk_lang_demangle): Likewise.
5632 (unknown_language_defn, auto_language_defn, local_language_defn):
5633 Add ukn_lang_demangle.
5634 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
5635 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
5636 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
5637 (cplus_language_defn): Add cplus_demangle for la_demangle element.
5638 * jv-lang.c (java_demangle): New function
5639 (java_language_defn): Use it for la_demangle element.
5640 * objc-lang.c (objc_demangle): Add options argument
5641 (objc_language_defn): Use objc_demangle for la_demangle element.
5642 * maint.c (maintenance_demangle): Replace switch with
5643 call to language_demangle.
5644 * utils.c (fprintf_symbol_filtered): Likewise.
5645
5646 2003-04-01 Andrew Cagney <cagney@redhat.com>
5647
5648 * printcmd.c (print_frame_nameless_args): Delete #ifdef
5649 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
5650 PRINT_TYPELESS_INTEGER.
5651 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
5652 PUSH_RETURN_ADDRESS.
5653
5654 2003-04-01 Andrew Cagney <cagney@redhat.com>
5655
5656 * Makefile.in (d10v-tdep.o): Update dependencies.
5657 * d10v-tdep.c: Include "frame-base.h".
5658 (d10v_frame_unwind): Make constant.
5659 (d10v_frame_base_address): New function.
5660 (d10v_frame_base): New variable.
5661 (d10v_gdbarch_init): Set frame_base default.
5662 (struct d10v_unwind_cache): Add the field "prev_sp". Update
5663 comment for base.
5664 (d10v_frame_unwind_cache): Set and use "prev_sp".
5665 (d10v_frame_this_id): Use the previous frame's inner most stack
5666 address and this frame's func address for the frame ID. Use
5667 frame_id_build. Don't analyze beyond the current instruction.
5668
5669 2003-04-01 Andrew Cagney <cagney@redhat.com>
5670
5671 * frame.h (get_frame_locals_address, get_frame_args_address):
5672 Refer to the base address, instead of the address of the first
5673 local or parameter.
5674
5675 2003-04-01 Andrew Cagney <cagney@redhat.com>
5676
5677 Add frame debug info addresses:
5678 * frame-base.c: New file.
5679 * frame-base.h: New file.
5680 * frame.h (struct frame_base): Add opaque declaration.
5681 (get_frame_base): Update comment.
5682 (get_frame_base_address): Declare.
5683 (get_frame_locals_address): Declare.
5684 (get_frame_args_address): Declare.
5685 (struct frame_info): Add "base" and "base_cache". Update
5686 comments on the unwinder.
5687 * frame.c: Include "frame-base.h".
5688 (get_frame_locals_address): New function.
5689 (get_frame_base_address): New function.
5690 (get_frame_args_address): New function.
5691 * findvar.c (read_var_value): Use get_frame_locals_address and
5692 get_frame_args_address.
5693 * stack.c (frame_info): Use get_frame_locals_address and
5694 get_frame_args_address.
5695 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
5696 moved to "frame-base.c".
5697 * printcmd.c (print_frame_nameless_args): Ditto.
5698 * symtab.h (address_class): Update comments.
5699 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
5700 get_frame_base_address.
5701 * dwarf2expr.c (execute_stack_op): Ditto.
5702 * Makefile.in (frame_base_h): Define.
5703 (frame.o): Update dependencies.
5704 (frame-base.o): Add dependencies.
5705 (SFILES): Add frame-base.c.
5706 (COMMON_OBS): Add frame-base.o.
5707
5708 2003-04-01 Andrew Cagney <cagney@redhat.com>
5709
5710 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
5711 CALL_DUMMY_LENGTH): Ditto.
5712 * gdbarch.c: Re-generate.
5713 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
5714 (CALL_DUMMY_LENGTH): Delete macro.
5715 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
5716 * arm-tdep.c (arm_gdbarch_init): Ditto.
5717 * avr-tdep.c (avr_gdbarch_init): Ditto.
5718 * cris-tdep.c (cris_gdbarch_init): Ditto.
5719 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5720 * frv-tdep.c (frv_gdbarch_init): Ditto.
5721 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5722 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5723 * i386-tdep.c (i386_gdbarch_init): Ditto.
5724 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5725 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5726 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5727 * mips-tdep.c (mips_gdbarch_init): Ditto.
5728 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5729 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5730 * s390-tdep.c (s390_gdbarch_init): Ditto.
5731 * sh-tdep.c (sh_gdbarch_init): Ditto.
5732 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5733 * v850-tdep.c (v850_gdbarch_init): Ditto.
5734 * vax-tdep.c (vax_gdbarch_init): Ditto.
5735 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5736
5737 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
5738
5739 * frame.c (get_prev_frame): Disable call to inside_entry_file().
5740
5741 2003-04-01 Andrew Cagney <cagney@redhat.com>
5742
5743 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
5744 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5745 * gdbarch.h, gdbarch.c: Re-generate.
5746 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5747 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5748 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5749 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5750 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
5751 * infcmd.c (run_stack_dummy): Simplify assuming
5752 CALL_DUMMY_BREAKPOINT_OFFSET_P.
5753 * infrun.c (handle_inferior_event): Ditto.
5754 * alpha-tdep.c (alpha_gdbarch_init): Do not set
5755 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
5756 * arm-tdep.c (arm_gdbarch_init): Ditto.
5757 * avr-tdep.c (avr_gdbarch_init): Ditto.
5758 * cris-tdep.c (cris_gdbarch_init): Ditto.
5759 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5760 * frv-tdep.c (frv_gdbarch_init): Ditto.
5761 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5762 * i386-tdep.c (i386_gdbarch_init): Ditto.
5763 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5764 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5765 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5766 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5767 * mips-tdep.c (mips_gdbarch_init): Ditto.
5768 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5769 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5770 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5771 * s390-tdep.c (s390_gdbarch_init): Ditto.
5772 * sh-tdep.c (sh_gdbarch_init): Ditto.
5773 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5774 * v850-tdep.c (v850_gdbarch_init): Ditto.
5775 * vax-tdep.c (vax_gdbarch_init): Ditto.
5776 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5777
5778 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
5779
5780 * symfile.c (symfile_relocate_debug_section): Update call to
5781 bfd_simple_get_relocated_section_contents.
5782
5783 2003-03-31 Andrew Cagney <cagney@redhat.com>
5784
5785 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
5786 * gdbarch.h, gdbarch.c: Regenerate.
5787 * inferior.h (FIX_CALL_DUMMY): Delete macro.
5788 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
5789 available.
5790 * frame.h (generic_fix_call_dummy): Delete declaration.
5791 * dummy-frame.h: Update comment.
5792 * dummy-frame.c (generic_fix_call_dummy): Delete function.
5793 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5794 fix_call_dummy.
5795 * sh-tdep.c (sh_gdbarch_init): Ditto.
5796 * s390-tdep.c (s390_gdbarch_init): Ditto.
5797 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5798 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5799 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5800 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5801 * i386-tdep.c (i386_gdbarch_init): Ditto.
5802 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5803 * frv-tdep.c (frv_gdbarch_init): Ditto.
5804 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5805 * cris-tdep.c (cris_gdbarch_init): Ditto.
5806 * avr-tdep.c (avr_gdbarch_init): Ditto.
5807 * arm-tdep.c (arm_gdbarch_init): Ditto.
5808
5809 2003-03-31 J. Brobecker <brobecker@gnat.com>
5810
5811 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
5812 (INIT_FRAME_AP): Likewise.
5813 (EXTRA_FRAME_INFO): Likewise.
5814
5815 2003-03-31 Andrew Cagney <cagney@redhat.com>
5816
5817 * gdbarch.sh: Include "symfile.h".
5818 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
5819 * gdbarch.h, gdbarch.c: Re-generate.
5820 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
5821 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5822 call_dummy_address, the default is at entry_point_address.
5823 * v850-tdep.c (v850_gdbarch_init): Ditto.
5824 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5825 * sh-tdep.c (sh_gdbarch_init): Ditto.
5826 * s390-tdep.c (s390_gdbarch_init): Ditto.
5827 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5828 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5829 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5830 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5831 * i386-tdep.c (i386_gdbarch_init): Ditto.
5832 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5833 * frv-tdep.c (frv_gdbarch_init): Ditto.
5834 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5835 * cris-tdep.c (cris_gdbarch_init): Ditto.
5836 * arm-tdep.c (arm_gdbarch_init): Ditto.
5837
5838 2003-03-31 Andrew Cagney <cagney@redhat.com>
5839
5840 * gdbarch.sh (CALL_DUMMY_P): Delete.
5841 * gdbarch.h, gdbarch.c: Re-generate.
5842 * inferior.h (CALL_DUMMY_P): Delete macro.
5843 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5844 * vax-tdep.c (vax_gdbarch_init): Update.
5845 * v850-tdep.c (v850_gdbarch_init): Update.
5846 * sparc-tdep.c (sparc_gdbarch_init): Update.
5847 * sh-tdep.c (sh_gdbarch_init): Update.
5848 * s390-tdep.c (s390_gdbarch_init): Update.
5849 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5850 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5851 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5852 * mips-tdep.c (mips_gdbarch_init): Update.
5853 * mcore-tdep.c (mcore_gdbarch_init): Update.
5854 * m68k-tdep.c (m68k_gdbarch_init): Update.
5855 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5856 * ia64-tdep.c (ia64_gdbarch_init): Update.
5857 * i386-tdep.c (i386_gdbarch_init): Update.
5858 * h8300-tdep.c (h8300_gdbarch_init): Update.
5859 * frv-tdep.c (frv_gdbarch_init): Update.
5860 * d10v-tdep.c (d10v_gdbarch_init): Update.
5861 * cris-tdep.c (cris_gdbarch_init): Update.
5862 * breakpoint.c (deprecated_frame_in_dummy): Update.
5863 * avr-tdep.c (avr_gdbarch_init): Update.
5864 * alpha-tdep.c (alpha_gdbarch_init): Update.
5865 * arm-tdep.c (arm_gdbarch_init): Update.
5866 * dummy-frame.c (dummy_frame_this_id): Update comments.
5867 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
5868 * frame.c (legacy_get_prev_frame): Ditto.
5869 * valops.c (call_function_by_hand): Delete function.
5870 (hand_function_call): Rename to call_function_by_hand
5871
5872 2003-03-30 Andrew Cagney <cagney@redhat.com>
5873
5874 2002-11-10 Klee Dienes <kdienes@apple.com>
5875 * value.h (struct value): Update comment.
5876
5877 2003-03-30 Andrew Cagney <cagney@redhat.com>
5878
5879 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
5880 D10V_FP_REGNUM.
5881 (d10v_gdbarch_init): Do not set fp_regnum.
5882
5883 * frame.c (get_frame_base): Force ID initialization.
5884 (get_prev_frame): Move computation of the frame ID from here ...
5885 (get_frame_id): ... to here.
5886 (legacy_get_prev_frame): Mark the frame ID as valid.
5887 * frame.h (struct frame_info): Add field "id_p".
5888
5889 2003-03-30 Mark Kettenis <kettenis@gnu.org>
5890
5891 * i386-tdep.c (i386_store_struct_return): Removed.
5892 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
5893
5894 2003-03-30 Andrew Cagney <cagney@redhat.com>
5895
5896 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
5897 * gdbarch.h, gdbarch.c: Regenerate.
5898 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
5899 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
5900 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5901 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5902 * i386-tdep.c (i386_gdbarch_init): Ditto.
5903 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5904 * cris-tdep.c (cris_gdbarch_init): Ditto.
5905 * vax-tdep.c (vax_gdbarch_init): Ditto.
5906 * s390-tdep.c (s390_gdbarch_init): Ditto.
5907 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5908 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5909 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5910 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
5911 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5912 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
5913 * sparc-tdep.c (sparc_gdbarch_init): Update.
5914 * sh-tdep.c (sh_gdbarch_init): Update.
5915 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5916 * mips-tdep.c (mips_gdbarch_init): Update.
5917 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5918 * ia64-tdep.c (ia64_gdbarch_init): Update.
5919 * frv-tdep.c (frv_gdbarch_init): Update.
5920 * avr-tdep.c (avr_gdbarch_init): Update.
5921 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
5922 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
5923 instead of when push_dummy_call is not available.
5924
5925 2003-03-30 Andrew Cagney <cagney@redhat.com>
5926
5927 * infttrace.c: Include "gdbthread.h".
5928 (parent_attach_all): Fix function signature.
5929 (call_ptrace): Update call.
5930 * Makefile.in (infttrace.o): Update dependencies.
5931
5932 2003-03-30 Andrew Cagney <cagney@redhat.com>
5933
5934 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
5935 PUSH_RETURN_ADDRESS.
5936 * gdbarch.h, gdbarch.c: Regenerate.
5937 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5938 * x86-64-tdep.c (x86_64_init_abi): Update.
5939 * v850-tdep.c (v850_gdbarch_init): Update.
5940 * sparc-tdep.c (sparc_gdbarch_init): Update.
5941 * sh-tdep.c (sh_gdbarch_init): Update.
5942 * s390-tdep.c (s390_gdbarch_init): Update.
5943 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5944 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5945 * mips-tdep.c (mips_gdbarch_init): Update.
5946 * mcore-tdep.c (mcore_gdbarch_init): Update.
5947 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5948 * ia64-tdep.c (ia64_gdbarch_init): Update.
5949 * i386-tdep.c (i386_gdbarch_init): Update.
5950 * h8300-tdep.c (h8300_gdbarch_init): Update.
5951 * frv-tdep.c (frv_gdbarch_init): Update.
5952 * cris-tdep.c (cris_gdbarch_init): Update.
5953 * avr-tdep.c (avr_gdbarch_init): Update.
5954 * arm-tdep.c (arm_gdbarch_init): Update.
5955 * valops.c (hand_function_call): Update.
5956
5957 2003-03-29 Andrew Cagney <cagney@redhat.com>
5958
5959 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
5960 sizeof_call_dummy_words.
5961 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
5962 define.
5963 * gdbarch.h: Regenerate.
5964
5965 2003-03-29 Andrew Cagney <cagney@redhat.com>
5966
5967 * infttrace.h: New file.
5968 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
5969 (hpread_get_textlow): Detect an uninitialized dn_bufp.
5970 (hpread_read_doc_function_type): Detect an initialized type1.
5971 (hpread_quick_traverse): Initialize mod_name_string.
5972 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
5973 (som_solib_get_solib_by_pc): Declare.
5974 (so_lib_thread_start_addr): Declare.
5975 (no_shared_libraries): Declare.
5976 * somread.c (init_import_symbols): Make static. Add forward
5977 declaration.
5978 * config/pa/nm-hppah.h: Include "infttrace.h" for
5979 parent_attach_all.
5980 (hppa_insert_hw_watchpoint): Declare.
5981 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
5982 * hppah-nat.c: Include "gdb_string.h".
5983 (parent_attach_all): Delete extern declaration, moved to
5984 "infttrace.h".
5985 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
5986 int.
5987 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
5988 * Makefile.in (infttrace_h): Define.
5989 (hpread.o): Update dependencies.
5990 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
5991 * hppa-hpux-tdep.c: Include "gdb_string.h".
5992 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
5993 * infrun.c (handle_inferior_event): Always initialize
5994 stepped_after_stopped_by_watchpoint. Add default and remove
5995 fallthrough in switch statement.
5996 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
5997 parameter to int.
5998 (hppa_remove_hw_watchpoint): Ditto.
5999
6000 2003-03-29 Andrew Cagney <cagney@redhat.com>
6001
6002 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
6003 offset.
6004
6005 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
6006
6007 * arm-tdep.c (arm_push_arguments): Delete.
6008 (struct stack_item): New type.
6009 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
6010 (arm_store_struct_return): Delte.
6011 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
6012 arm_push_arguments or arm_store_struct_return.
6013
6014 2003-03-28 Andrew Cagney <cagney@redhat.com>
6015
6016 * Makefile.in (d10v-tdep.o): Update dependencies.
6017 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
6018 * d10v-tdep.c: Include "remote.h".
6019 (target_resume_hook): Delete extern declaration.
6020 (target_wait_loop_hook): Ditto.
6021 (tdisassemble_command): Eliminate assignment in "if" conditional.
6022 (d10v_ts2_register_sim_regno): Eliminate call to
6023 legacy_register_sim_regno.
6024 (d10v_ts3_register_sim_regno): Ditto.
6025
6026 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
6027
6028 * thread.c: Reindented.
6029 * lin-lwp.c: Ditto.
6030 * linux-proc.c: Ditto.
6031
6032 2003-03-28 Bob Rossi <bob_rossi@cox.net>
6033
6034 * MAINTAINERS (write after approval): Add myself.
6035
6036 2003-03-27 Theodore A. Roth <troth@openavr.org>
6037
6038 * objc-exp.y: Add missing semi-colons.
6039
6040 2003-03-27 Andrew Cagney <cagney@redhat.com>
6041
6042 * regcache.c (write_sp): Delete function and references.
6043 * inferior.h (write_sp): Delete declaration.
6044 * valops.c (hand_function_call): Replace write_sp with
6045 TARGET_WRITE_SP.
6046 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
6047 (sparc_pop_frame): Ditto.
6048
6049 2003-03-27 Andrew Cagney <cagney@redhat.com>
6050
6051 * NEWS: Mention removal of support for hppa*-*-bsd* and
6052 hppa*-*-osf* natives, and hppa*-*-pro* target.
6053 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
6054 * config/pa/xm-pa.h: Obsolete file.
6055 * config/pa/xm-hppab.h: Obsolete file.
6056 * config/pa/nm-hppab.h: Obsolete file.
6057 * config/pa/tm-hppab.h: Obsolete file.
6058 * config/pa/tm-hppao.h: Obsolete file.
6059 * config/pa/nm-hppao.h: Obsolete file.
6060 * config/pa/tm-pro.h: Obsolete file.
6061 * config/pa/hppaosf.mt: Obsolete file.
6062 * config/pa/hppaosf.mh: Obsolete file.
6063 * config/pa/hppapro.mt: Obsolete file.
6064 * config/pa/hppabsd.mt: Obsolete file.
6065 * config/pa/hppabsd.mh: Obsolete file.
6066 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
6067 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
6068 hppa*-*-osf*.
6069
6070 2003-03-27 Andrew Cagney <cagney@redhat.com>
6071
6072 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
6073 push_arguments. Don't set push_return_address or write_sp.
6074 (d10v_push_dummy_call): Replace d10v_push_arguments.
6075 (d10v_push_return_address, d10v_write_sp): Delete function,
6076 handled by push_dummy_call.
6077
6078 2003-03-26 Andrew Cagney <cagney@redhat.com>
6079
6080 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
6081 (push_dummy_call): New pure multi-arch replacement with gdbarch,
6082 regcache and dummy_addr parameters.
6083 * gdbarch.h, gdbarch.c: Re-generate.
6084 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
6085 available; assume it will handle stack alignment and return
6086 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
6087 legacy_push_arguments.
6088 (legacy_push_arguments): Rename default_push_arguments.
6089 * value.h (legacy_push_arguments): Rename default_push_arguments.
6090 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
6091 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6092 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6093 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6094 * config/i386/tm-symmetry.h: Update.
6095 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6096 * x86-64-tdep.c (x86_64_init_abi): Update.
6097 * v850-tdep.c (v850_gdbarch_init): Update.
6098 * sparc-tdep.c (sparc_gdbarch_init): Update.
6099 * sh-tdep.c (sh_gdbarch_init): Update.
6100 * s390-tdep.c (s390_gdbarch_init): Update.
6101 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6102 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6103 * mips-tdep.c (mips_gdbarch_init): Update.
6104 * mcore-tdep.c (mcore_gdbarch_init): Update.
6105 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6106 * ia64-tdep.c (ia64_gdbarch_init): Update.
6107 * i386-tdep.c (i386_gdbarch_init): Update.
6108 * hppa-tdep.c (hppa_gdbarch_init): Update.
6109 * h8300-tdep.c (h8300_gdbarch_init): Update.
6110 * frv-tdep.c (frv_gdbarch_init): Update.
6111 * d10v-tdep.c (d10v_gdbarch_init): Update.
6112 * cris-tdep.c (cris_gdbarch_init): Update.
6113 * avr-tdep.c (avr_gdbarch_init): Update.
6114 * arm-tdep.c (arm_gdbarch_init): Update.
6115 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6116 * alpha-tdep.c (alpha_gdbarch_init): Update.
6117
6118 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6119
6120 * signals/signals.c (do_target_signal_to_host): Correct realtime
6121 signal range test.
6122
6123 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6124
6125 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
6126 (struct sal_chain, map_catch_names): Remove.
6127 (catch_exception_command_1): Don't call
6128 handle_gnu_4_16_catch_command.
6129
6130 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6131
6132 From Mark Dettinger <dettinge@de.ibm.com>:
6133 * dwarf2cfi.c (read_2u): Increment pointer by two.
6134
6135 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6136
6137 * signals/signals.c: Fix typos in last change.
6138
6139 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6140
6141 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
6142 not already defined. Use __SIGRTMIN if available.
6143 (target_signal_from_host): Remove SIGRTMIN block.
6144 (do_target_signal_to_host): Remove SIGRTMIN block; check that
6145 the signal is within the realtime range.
6146
6147 2003-03-25 Adam Fedor <fedor@gnu.org>
6148
6149 * Makefile.in (infrun.o): Add $(language_h)
6150 * infrun.c (handle_inferior_event): Use skip_language_trampoline
6151 for language specific trampolines.
6152 * language.h (struct language_defn): Add skip_trampoline.
6153 (skip_language_trampoline): Declare.
6154 * language.c (unk_lang_trampoline, skip_language_trampoline):
6155 New functions.
6156 (unknown_language_defn, auto_language_defn, local_language_defn):
6157 Add ukn_lang_trampoline.
6158 * ada-lang.c (ada_language_defn): Add NULL for language
6159 specific skip_trampoline.
6160 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
6161 scm-lang.c: Likewise.
6162 * objc-lang.c (objc_skip_trampoline): New function.
6163 (objc_language_defn): Add objc_skip_trampoline.
6164
6165 2003-03-25 Andrew Cagney <cagney@redhat.com>
6166
6167 * frame.c (get_prev_frame): Delay validating a frame's ID -
6168 non-NULL, didn't go backwards - until an attempt to unwind it to
6169 the previous frame.
6170
6171 2003-03-25 Andrew Cagney <cagney@redhat.com>
6172
6173 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
6174 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
6175 * gdbarch.h, gdbarch.c: Re-generate.
6176 * config/sparc/tm-sparc.h
6177 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
6178 * sparc-tdep.c (sparc_gdbarch_init): Set
6179 deprecated_extra_stack_alignment_needed.
6180 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
6181 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
6182 extra_stack_alignment_needed.
6183 * v850-tdep.c (v850_gdbarch_init): Ditto.
6184 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6185 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6186 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6187 * cris-tdep.c (cris_gdbarch_init): Ditto.
6188 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6189 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6190
6191 2003-03-25 Andrew Cagney <cagney@redhat.com>
6192
6193 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
6194 STORE_STRUCT_RETURN.
6195 * gdbarch.h, gdbarch.c: Regenerate.
6196 * d10v-tdep.c (d10v_store_struct_return): Delete function.
6197 (d10v_push_arguments): Set the struct return register.
6198 (d10v_gdbarch_init): Update.
6199 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6200 * x86-64-tdep.c (x86_64_init_abi): Update.
6201 * vax-tdep.c (vax_gdbarch_init): Update.
6202 * v850-tdep.c (v850_gdbarch_init): Update.
6203 * sparc-tdep.c (sparc_gdbarch_init): Update.
6204 * sh-tdep.c (sh_gdbarch_init): Update.
6205 * s390-tdep.c (s390_gdbarch_init): Update.
6206 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6207 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6208 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6209 * mips-tdep.c (mips_gdbarch_init): Update.
6210 * mcore-tdep.c (mcore_gdbarch_init): Update.
6211 * m68k-tdep.c (m68k_gdbarch_init): Update.
6212 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6213 * ia64-tdep.c (ia64_gdbarch_init): Update.
6214 * i386-tdep.c (i386_gdbarch_init): Update.
6215 * hppa-tdep.c (hppa_gdbarch_init): Update.
6216 * h8300-tdep.c (h8300_gdbarch_init): Update.
6217 * frv-tdep.c (frv_gdbarch_init): Update.
6218 * cris-tdep.c (cris_gdbarch_init): Update.
6219 * avr-tdep.c (avr_gdbarch_init): Update.
6220 * arm-tdep.c (arm_gdbarch_init): Update.
6221 * alpha-tdep.c (alpha_gdbarch_init): Update.
6222
6223 2003-03-25 Andrew Cagney <cagney@redhat.com>
6224
6225 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
6226 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
6227 CALL_DUMMY_STACK_ADJUST with a predicate variable.
6228 * gdbarch.h, gdbarch.c: Regenerate.
6229 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6230 call_dummy_stack_adjust_p.
6231 * vax-tdep.c (vax_gdbarch_init): Ditto.
6232 * v850-tdep.c (v850_gdbarch_init): Ditto.
6233 * sh-tdep.c (sh_gdbarch_init): Ditto.
6234 * s390-tdep.c (s390_gdbarch_init): Ditto.
6235 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6236 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6237 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6238 * mips-tdep.c (mips_gdbarch_init): Ditto.
6239 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6240 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6241 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6242 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6243 * i386-tdep.c (i386_gdbarch_init): Ditto.
6244 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6245 * frv-tdep.c (frv_gdbarch_init): Ditto.
6246 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6247 * cris-tdep.c (cris_gdbarch_init): Ditto.
6248 * avr-tdep.c (avr_gdbarch_init): Ditto.
6249 * arm-tdep.c (arm_gdbarch_init): Ditto.
6250 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6251 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
6252 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
6253 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
6254 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
6255 call_dummy_stack_adjust_p.
6256 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
6257 (CALL_DUMMY_STACK_ADJUST): Delete macro.
6258 * sparc-tdep.c (sparc32_push_arguments): Update.
6259 * valops.c (hand_function_call): Update.
6260
6261 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
6262
6263 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
6264 set_gdbarch_char_signed.
6265
6266 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
6267
6268 PR cli/548
6269 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
6270
6271 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
6272
6273 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
6274 (_initialize_arm_tdep): Don't set tm_print_insn.
6275
6276 2003-03-24 Adam Fedor <fedor@gnu.org>
6277
6278 * Makefile.in (YYOBJ): Add objc-exp.tab.o
6279 * objc-lang.h: Add multiple inclusion protection.
6280 (start_msglist, add_msglist, end_msglist): Additional declarations.
6281
6282 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
6283
6284 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
6285 value was renamed to ARM_FLOAT_SOFT_FPA.
6286
6287 2003-03-23 Andrew Cagney <cagney@redhat.com>
6288
6289 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
6290 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
6291 * gdbarch.h, gdbarch.c: Regenerate.
6292 * valops.c (hand_function_call): Update.
6293 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
6294 * frame.c (legacy_saved_regs_this_id): Update.
6295 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
6296 * dummy-frame.h: Update.
6297 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
6298 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
6299 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
6300 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
6301 * config/m68k/tm-sun3.h: Update.
6302 * blockframe.c (inside_main_func, frame_chain_valid): Update.
6303 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6304 * x86-64-tdep.c (x86_64_init_abi): Update.
6305 * vax-tdep.c (vax_gdbarch_init): Update.
6306 * v850-tdep.c (v850_gdbarch_init): Update.
6307 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
6308 * sh-tdep.c (sh_gdbarch_init): Update.
6309 * s390-tdep.c (s390_gdbarch_init): Update.
6310 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
6311 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
6312 (frame_get_saved_regs): Update.
6313 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6314 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6315 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6316 * mips-tdep.c (mips_gdbarch_init): Update.
6317 * mcore-tdep.c (mcore_gdbarch_init): Update.
6318 * m68k-tdep.c (m68k_gdbarch_init): Update.
6319 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6320 * ia64-tdep.c (ia64_gdbarch_init): Update.
6321 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
6322 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6323 (i386_interix_back_one_frame): Update.
6324 * hppa-tdep.c (hppa_gdbarch_init): Update.
6325 (hppa_init_extra_frame_info): Update.
6326 * h8300-tdep.c (h8300_gdbarch_init): Update.
6327 * frv-tdep.c (frv_gdbarch_init): Update.
6328 * cris-tdep.c (cris_gdbarch_init): Update.
6329 * avr-tdep.c (avr_gdbarch_init): Update.
6330 * arm-tdep.c (arm_gdbarch_init): Update.
6331 * alpha-tdep.c (alpha_gdbarch_init): Update.
6332
6333 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6334
6335 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
6336 (arm_get_fp_model): Declare.
6337 * arm-tdep.c (fp_model_strings): New string array.
6338 (arm_fp_model, current_fp_model): New variables.
6339 (arm_get_fp_model): New function.
6340 (arm_set_fp): New function.
6341 (set_fp_model_sfunc): New function.
6342 (show_fp_model): New function.
6343 (_initialize_arm_tdep): Add new command to set/show the FPU.
6344 (arm_extract_return_value): Use arm_get_fp_model.
6345 (arm_store_return_value): Likewise.
6346 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
6347 to initialize the floating-point data types.
6348 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
6349 model is FPA.
6350
6351 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6352
6353 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
6354 the current setting of each value.
6355 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
6356 new_set and new_show. Use add_setshow_cmd_full and
6357 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
6358 commands and add new version as subcommands of "set/show arm".
6359
6360 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6361
6362 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
6363 (set_arm_command, show_arm_command): New functions.
6364 (_initialize_arm_tdep): Add them.
6365 (num_disassembly_options): Renamed from num_flavor_options.
6366 (valid_disassembly_styles): Renamed from valid_flavors.
6367 (disassembly_style): Renamed from disassembly_flavor.
6368 (set_disassembly_style_sfunc): Renamed from
6369 set_disassembly_flavor_sfunc.
6370 (set_disassembly_style): Renamed from set_disassembly_flavor.
6371 (arm_othernames): Updated.
6372 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
6373 command. Add "set/show arm disassembly" commands. Deprecate
6374 "othernames" command.
6375
6376 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6377
6378 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
6379 (arm-tdep.o): Depend on elf_arm_h.
6380
6381 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6382
6383 * Makefile.in (coff_internal_h): Define.
6384 (arm-tdep.o): Update dependencies.
6385
6386 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6387
6388 * arm-tdep.c (prologue_cache): Delete.
6389 (check_prologue_cache, save_prologue_cache): Delete.
6390 (arm_scan_prologue): Don't check or update the prologue_cache.
6391 (arm_gdb_arch_init): Don't initialize it.
6392 (_initialize_arm_tdep): Likewise.
6393
6394 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
6395
6396 * MAINTAINERS (tui): Maintainer of tui code.
6397
6398 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
6399
6400 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
6401 (i386-cygwin-tdep.o): Add dependencies.
6402 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
6403 * i386-cygwin-tdep.c: New file.
6404 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
6405 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
6406
6407 2003-03-20 Andrew Cagney <cagney@redhat.com>
6408
6409 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
6410 (handle_inferior_event): Remove code calling
6411 DYNAMIC_TRAMPOLINE_NEXTPC.
6412
6413 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
6414 already has a full path.
6415
6416 * main.c (gdb_main): Return 1.
6417 (captured_main): Call error to report an invalid interpreter.
6418
6419 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6420 * alpha-osf1-tdep.c: Include "gdb_string.h".
6421
6422 2003-03-19 J. Brobecker <brobecker@gnat.com>
6423
6424 Continuing work to convert the hppa targets to multiarch partial.
6425
6426 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
6427 method, now that hppa_push_dummy_frame has a conformant prototype.
6428 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
6429 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
6430 for the switch to multiarch partial.
6431
6432 2003-03-19 Kevin Buettner <kevinb@redhat.com>
6433
6434 * mdebugread.c (parse_symbol): For stEnd, we're done counting
6435 when iss is issNull.
6436
6437 2003-03-18 Kevin Buettner <kevinb@redhat.com>
6438
6439 * mips-tdep.c (mips_register_name): Fix fencepost error involving
6440 NUM_REGS bounds check.
6441
6442 2003-03-18 Kevin Buettner <kevinb@redhat.com>
6443
6444 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
6445 * mips-tdep.c (gdb_assert.h): Include.
6446 (mips_generic_reg_names, mips_processor_reg_names): Make static.
6447 (mips_register_name): Handle integer registers explicitly. Add
6448 bounds checking.
6449 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
6450 (mips_lsi33k_reg_names): Don't list integer registers; they're
6451 handled by mips_register_name() now.
6452 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
6453 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
6454 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
6455 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
6456 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
6457
6458 2003-03-18 Andrew Cagney <cagney@redhat.com>
6459
6460 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
6461 a void pointer.
6462 * gdbtypes.h (print_scalar_formatted): Update declaration.
6463 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
6464
6465 2003-03-18 J. Brobecker <brobecker@gnat.com>
6466
6467 * infrun.c (observer.h): Add #include.
6468 (normal_stop): Add call to observer_notify_normal_stop.
6469 * Makefile.in (infrun.o): Add dependency on observer.h.
6470
6471 2003-03-18 J. Brobecker <brobecker@gnat.com>
6472
6473 Continuing work to convert the hppa targets to multiarch partial.
6474 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
6475 parameter. Reformat comment.
6476 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
6477 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
6478 to match new profile.
6479
6480 2003-03-18 J. Brobecker <brobecker@gnat.com>
6481
6482 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
6483 appear to be working in any case.
6484
6485 2003-03-18 J. Brobecker <brobecker@gnat.com>
6486
6487 * observer.c (observer_test_first_observer): New static variable.
6488 (observer_test_second_observer): Likewise.
6489 (observer_test_third_observer): Likewise.
6490 (observer_test_first_notification_function): New static function.
6491 (observer_test_second_notification_function): Likewise.
6492 (observer_test_third_notification_function): Likewise.
6493
6494 2003-03-17 J. Brobecker <brobecker@gnat.com>
6495
6496 * hppa-tdep.c (gdb_assert.h): Add missing #include.
6497 * somsolib.c (gdb_assert.h): Likewise.
6498 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
6499 (somsolib.o): Likewise.
6500
6501 2003-03-17 Andrew Cagney <cagney@redhat.com>
6502
6503 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
6504 BFD. Simplify setting of di.endian.
6505
6506 2003-03-17 Andrew Cagney <cagney@redhat.com>
6507
6508 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
6509 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
6510
6511 From Elena Zannoni <ezannoni@redhat.com>
6512 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
6513 vector and floating-point parameters.
6514 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
6515 convention.
6516 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
6517
6518 2003-03-17 Fernando Nasser <fnasser@redhat.com>
6519
6520 * MAINTAINERS: Remove my name from several maintainership roles.
6521
6522 2003-03-17 Andrew Cagney <cagney@redhat.com>
6523
6524 Fix frame off-by-one bug.
6525 * frame-unwind.h (frame_this_id_ftype): Replace
6526 frame_unwind_id_ftype.
6527 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
6528 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
6529 with "prev_register".
6530 * frame-unwind.c (frame_unwind_find_by_pc): Return
6531 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
6532 comment.
6533 * dummy-frame.c (cached_find_dummy_frame): Delete function.
6534 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
6535 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
6536 (dummy_frame_unwind): Update.
6537 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6538 sentinel_frame_register_unwind.
6539 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
6540 (sentinel_frame_unwinder): Update.
6541 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
6542 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
6543 * frame.c (create_sentinel_frame): Update. Initialize
6544 "prologue_cache" instead of "unwind_cache".
6545 (frame_register_unwind): Call this frame's prev_register with the
6546 next frame and this frame's prologue cache.
6547 (get_prev_frame): Simplify. Always call prev frame's this_id with
6548 this frame and prev frame's prologue cache. Document that this
6549 call is shifted one to the left when compared to the
6550 frame_register_unwind call.
6551 (legacy_saved_regs_prev_register): Replace
6552 frame_saved_regs_register_unwind.
6553 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
6554 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
6555 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
6556 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
6557 (d10v_frame_unwind): Update.
6558 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
6559 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
6560 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
6561 "saved_regs" with "this_saved_regs".
6562
6563 2003-03-16 Andrew Cagney <cagney@redhat.com>
6564
6565 * frame.c (frame_pop): Don't call target_store_registers. Fix
6566 problem reported by Mark Kettenis.
6567
6568 2003-03-16 Mark Kettenis <kettenis@gnu.org>
6569
6570 * i386-tdep.c (i386_register_type): Renamed from
6571 i386_register_virtual_type. Adjust function signature.
6572 (i386_gdbarch_init): Set register_type instead of
6573 deprecated_max_register_raw_size,
6574 deprecated_max_register_virtual_size and register_virtual_type.
6575
6576 2003-03-14 Andrew Cagney <cagney@redhat.com>
6577
6578 * frame.c (get_prev_frame): When a legacy frame, always call
6579 legacy_get_prev_frame. Simplify unwind code using assumption that
6580 the unwinder is new.
6581 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
6582 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
6583 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
6584
6585 2003-03-14 Andrew Cagney <cagney@redhat.com>
6586
6587 * frame.c (get_saved_register): Delete function.
6588 * frame.h (get_saved_register): Delete declaration.
6589 * xstormy16-tdep.c: Update comment.
6590 * regcache.h: Update comments.
6591 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
6592 get_saved_register and extract_address, use
6593 frame_read_unsigned_register.
6594 (sparc_frame_saved_pc): Ditto.
6595 (sparc_get_saved_register): Instead of get_saved_register, use
6596 frame_register.
6597 (sparc_pop_frame): Ditto.
6598 * findvar.c: Update comments.
6599 (value_of_register): Call frame_register instead of
6600 get_saved_register.
6601 (value_from_register): Ditto.
6602 * config/sparc/tm-sparc.h: Update comment.
6603 * breakpoint.c: Update comment.
6604
6605 2003-03-14 Andrew Cagney <cagney@redhat.com>
6606
6607 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
6608 GET_SAVED_REGISTER.
6609 * gdbarch.h, gdbarch.c: Re-generate.
6610 * frame.h: Update comments.
6611 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6612 * x86-64-tdep.c (x86_64_init_abi): Update.
6613 * sparc-tdep.c (sparc_gdbarch_init): Update.
6614 * sh-tdep.c (sh_gdbarch_init): Update.
6615 * mips-tdep.c (mips_gdbarch_init): Update.
6616 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6617 * cris-tdep.c (cris_gdbarch_init): Update.
6618 * ia64-tdep.c (ia64_gdbarch_init): Update.
6619 * frame.c (frame_register): Update.
6620 (get_saved_register): Update.
6621 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
6622
6623 2003-03-13 Andrew Cagney <cagney@redhat.com>
6624
6625 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
6626 * gdbarch.h, gdbarch.c: Regenerate.
6627 * valops.c (hand_function_call): Update comment.
6628 * stack.c (return_command): Update comment.
6629 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
6630 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
6631 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6632 * x86-64-tdep.c (x86_64_init_abi): Update.
6633 * vax-tdep.c (vax_gdbarch_init): Update.
6634 * v850-tdep.c (v850_gdbarch_init): Update.
6635 * sparc-tdep.c (sparc_gdbarch_init): Update.
6636 * sh-tdep.c (sh_gdbarch_init): Update.
6637 * s390-tdep.c (s390_gdbarch_init): Update.
6638 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6639 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6640 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6641 * mips-tdep.c (mips_gdbarch_init): Update.
6642 * mcore-tdep.c (mcore_gdbarch_init): Update.
6643 * m68k-tdep.c (m68k_gdbarch_init): Update.
6644 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6645 * ia64-tdep.c (ia64_gdbarch_init): Update.
6646 * i386-tdep.c (i386_gdbarch_init): Update.
6647 * hppa-tdep.c (hppa_gdbarch_init): Update.
6648 * h8300-tdep.c (h8300_gdbarch_init): Update.
6649 * frv-tdep.c (frv_gdbarch_init): Update.
6650 * cris-tdep.c (cris_gdbarch_init): Update.
6651 * avr-tdep.c (avr_gdbarch_init): Update.
6652 * arm-tdep.c (arm_gdbarch_init): Update.
6653 * alpha-tdep.c (alpha_gdbarch_init): Update.
6654
6655 2003-03-13 Andrew Cagney <cagney@redhat.com>
6656
6657 * frame.c (legacy_frame_p): New function.
6658 (get_prev_frame): Use legacy_frame_p.
6659 * frame.h (legacy_frame_p): Declare.
6660
6661 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
6662
6663 * MAINTAINERS (write after approval): Alphabetically
6664 listing corrected.
6665
6666 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
6667
6668 * MAINTAINERS (write after approval): Add myself.
6669
6670 2003-03-12 Andrew Cagney <cagney@redhat.com>
6671
6672 * frame.c (get_prev_frame): Rename the frame parameter to
6673 "this_frame".
6674 (get_next_frame, legacy_get_prev_frame): Ditto.
6675
6676 2003-03-12 Andrew Cagney <cagney@redhat.com>
6677
6678 * frame.c (get_current_frame): Check target_has_registers before
6679 checking target_has_stack.
6680 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
6681 instead of deprecated_selected_frame.
6682 * findvar.c (value_of_register): Pass "frame", not
6683 deprecated_selected_frame, to value_of_builtin_reg.
6684
6685 2003-03-12 Andrew Cagney <cagney@redhat.com>
6686
6687 * regcache.c (regcache_cooked_write_signed): New function.
6688 (regcache_cooked_write_unsigned): New function.
6689 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
6690 (regcache_cooked_read_signed): Fix regnum in range assertion.
6691 * regcache.h (regcache_cooked_write_signed): Declare.
6692 (regcache_cooked_write_unsigned): Declare.
6693
6694 2003-03-12 Andrew Cagney <cagney@redhat.com>
6695
6696 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
6697 * gdbarch.h, gdbarch.c: Re-generate.
6698 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6699 * x86-64-tdep.h: Update.
6700 * x86-64-tdep.c (x86_64_init_abi): Update.
6701 * v850-tdep.c (v850_gdbarch_init): Update.
6702 * sparc-tdep.c (sparc_gdbarch_init): Update.
6703 * sh-tdep.c (sh_gdbarch_init): Update.
6704 * s390-tdep.c (s390_gdbarch_init): Update.
6705 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6706 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6707 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6708 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6709 * mips-tdep.c (mips_gdbarch_init): Update.
6710 * mcore-tdep.c (mcore_gdbarch_init): Update.
6711 * m68k-tdep.c (m68k_gdbarch_init): Update.
6712 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6713 * ia64-tdep.c (ia64_gdbarch_init): Update.
6714 * i386-tdep.c (i386_gdbarch_init): Update.
6715 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6716 * hppa-tdep.c (hppa_gdbarch_init): Update.
6717 * h8300-tdep.c (h8300_gdbarch_init): Update.
6718 * frv-tdep.c (frv_gdbarch_init): Update.
6719 * cris-tdep.c (cris_gdbarch_init): Update.
6720 * avr-tdep.c (avr_gdbarch_init): Update.
6721 * arm-tdep.c (arm_gdbarch_init): Update.
6722 * alpha-tdep.c (alpha_gdbarch_init): Update.
6723 * sh-tdep.c (sh_init_extra_frame_info): Update.
6724 (sh64_init_extra_frame_info): Update.
6725 * ns32knbsd-nat.c (frame_num_args): Update.
6726 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
6727 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
6728 (xstormy16_frame_chain_valid): Update.
6729 * vax-tdep.c (vax_saved_pc_after_call): Update.
6730 * v850-tdep.c (v850_frame_chain): Update.
6731 (v850_pop_frame): Update.
6732 (v850_init_extra_frame_info): Update.
6733 * sparc-tdep.c (setup_arbitrary_frame): Update.
6734 * ns32k-tdep.c (umax_frame_num_args): Update.
6735 * s390-tdep.c (s390_pop_frame_regular): Update.
6736 * mn10300-tdep.c (mn10300_frame_chain): Update.
6737 (mn10300_pop_frame_regular): Update.
6738 (mn10300_init_extra_frame_info): Update.
6739 * mips-tdep.c (mips_init_frame_pc_first): Update.
6740 (mips_frame_chain): Update.
6741 (mips_pop_frame): Update.
6742 * mcore-tdep.c (mcore_frame_chain): Update.
6743 (mcore_pop_frame): Update.
6744 (mcore_init_extra_frame_info): Update.
6745 * arch-utils.c (init_frame_pc_default): Update.
6746 * m68k-tdep.c (isi_frame_num_args): Update.
6747 (delta68_frame_num_args): Update.
6748 (news_frame_num_args): Update.
6749 * ia64-tdep.c (ia64_pop_frame_regular): Update.
6750 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6751 (alpha_frame_chain): Update.
6752 (alpha_pop_frame): Update.
6753 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
6754 (hppa_init_extra_frame_info): Update.
6755 (hppa_frame_chain): Update.
6756 (hppa_frame_chain_valid): Update.
6757 * cris-tdep.c (cris_init_extra_frame_info): Update.
6758 * avr-tdep.c (avr_init_extra_frame_info): Update.
6759 * arm-tdep.c (arm_frame_chain_valid): Update.
6760 (arm_init_extra_frame_info): Update.
6761 (arm_pop_frame): Update.
6762 * frame.c (frame_pc_unwind): Update.
6763 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
6764 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6765 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6766 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
6767 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
6768 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
6769
6770 2003-03-12 Andrew Cagney <cagney@redhat.com>
6771
6772 Eliminate the need for POP_FRAME.
6773 * frame.c (do_frame_unwind_register): New function.
6774 (frame_pop): When no POP_FRAME, pop the frame using register
6775 unwind and a scratch regcache.
6776 (frame_saved_regs_pop): Delete function.
6777 (trad_frame_unwinder): Update.
6778 * d10v-tdep.c (d10v_frame_pop): Delete function.
6779 (d10v_frame_unwind): Update.
6780 * sentinel-frame.c (sentinel_frame_pop): Delete function.
6781 (sentinel_frame_unwinder): Update.
6782 * dummy-frame.c (dummy_frame_pop): Delete function.
6783 (dummy_frame_unwind): Update.
6784 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
6785 (struct frame_unwind): Update.
6786
6787 2003-03-11 Kevin Buettner <kevinb@redhat.com>
6788
6789 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
6790 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
6791 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
6792 Do range checks on register number obtained from debugging info.
6793 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
6794 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
6795 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
6796 mapping function.
6797 (do_fp_register_row): Fix typo which caused double type to be
6798 used when attempting to unpack a float.
6799
6800 2003-03-11 J. Brobecker <brobecker@gnat.com>
6801
6802 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
6803
6804 2003-03-11 Andrew Cagney <cagney@redhat.com>
6805
6806 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
6807 frame. Problem found by Corinna Vinschen.
6808
6809 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
6810
6811 * doublest.c (floatformat_from_length): Accept also
6812 the real size of 'long double' type.
6813
6814 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
6815
6816 From Klee Dienes <kdienes@apple.com>:
6817 * breakpoint.c (bpstat_copy): Copy the command lines as well
6818 as the old value, to match what is freed in bpstat_clear.
6819
6820 2003-03-10 David Carlton <carlton@math.stanford.edu>
6821
6822 * minsyms.c (add_minsym_to_hash_table): Replace
6823 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6824 (compare_minimal_symbols, compact_minimal_symbols)
6825 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
6826 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
6827 of DEPRECATED_SYMBOL_MATCHES_NAME.
6828 (lookup_minimal_symbol_solib_trampoline): Ditto.
6829
6830 2003-03-10 Andrew Cagney <cagney@redhat.com>
6831
6832 * regcache.h (regcache_cooked_read_ftype): Define.
6833 (regcache_save, regcache_restore): Add a cooked_read parameter.
6834 * regcache.c (regcache_save, regcache_restore): Update.
6835 (do_cooked_read): New function.
6836 (regcache_cpy): Pass do_cooked_read to regcache_save and
6837 regcache_restore.
6838
6839 2003-03-10 Andrew Cagney <cagney@redhat.com>
6840
6841 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
6842 * gdbarch.h, gdbarch.c: Re-generate.
6843 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6844 * x86-64-tdep.h: Update.
6845 * x86-64-tdep.c (x86_64_init_abi): Update.
6846 * v850-tdep.c (v850_gdbarch_init): Update.
6847 * sparc-tdep.c (sparc_gdbarch_init): Update.
6848 * sh-tdep.c (sh_gdbarch_init): Update.
6849 * s390-tdep.c (s390_gdbarch_init): Update.
6850 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6851 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6852 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6853 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6854 * mips-tdep.c (mips_gdbarch_init): Update.
6855 * mcore-tdep.c (mcore_gdbarch_init): Update.
6856 * m68k-tdep.c (m68k_gdbarch_init): Update.
6857 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6858 * ia64-tdep.c (ia64_gdbarch_init): Update.
6859 * i386-tdep.c (i386_gdbarch_init): Update.
6860 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6861 * hppa-tdep.c (hppa_gdbarch_init): Update.
6862 * h8300-tdep.c (h8300_gdbarch_init): Update.
6863 * frv-tdep.c (frv_gdbarch_init): Update.
6864 * cris-tdep.c (cris_gdbarch_init): Update.
6865 * avr-tdep.c (avr_gdbarch_init): Update.
6866 * arm-tdep.c (arm_gdbarch_init): Update.
6867 * alpha-tdep.c (alpha_gdbarch_init): Update.
6868 * sh-tdep.c (sh_init_extra_frame_info): Update.
6869 (sh64_init_extra_frame_info): Update.
6870 * ns32knbsd-nat.c (frame_num_args): Update.
6871 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
6872 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
6873 (xstormy16_frame_chain_valid): Update.
6874 * vax-tdep.c (vax_saved_pc_after_call): Update.
6875 * v850-tdep.c (v850_frame_chain): Update.
6876 (v850_pop_frame): Update.
6877 (v850_init_extra_frame_info): Update.
6878 * sparc-tdep.c (setup_arbitrary_frame): Update.
6879 * ns32k-tdep.c (umax_frame_num_args): Update.
6880 * s390-tdep.c (s390_pop_frame_regular): Update.
6881 * mn10300-tdep.c (mn10300_frame_chain): Update.
6882 (mn10300_pop_frame_regular): Update.
6883 (mn10300_init_extra_frame_info): Update.
6884 * mips-tdep.c (mips_init_frame_pc_first): Update.
6885 (mips_frame_chain): Update.
6886 (mips_pop_frame): Update.
6887 * mcore-tdep.c (mcore_frame_chain): Update.
6888 (mcore_pop_frame): Update.
6889 (mcore_init_extra_frame_info): Update.
6890 * arch-utils.c (init_frame_pc_default): Update.
6891 * m68k-tdep.c (isi_frame_num_args): Update.
6892 (delta68_frame_num_args): Update.
6893 (news_frame_num_args): Update.
6894 * ia64-tdep.c (ia64_pop_frame_regular): Update.
6895 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6896 (alpha_frame_chain): Update.
6897 (alpha_pop_frame): Update.
6898 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
6899 (hppa_init_extra_frame_info): Update.
6900 (hppa_frame_chain): Update.
6901 (hppa_frame_chain_valid): Update.
6902 * cris-tdep.c (cris_init_extra_frame_info): Update.
6903 * avr-tdep.c (avr_init_extra_frame_info): Update.
6904 * arm-tdep.c (arm_frame_chain_valid): Update.
6905 (arm_init_extra_frame_info): Update.
6906 (arm_pop_frame): Update.
6907 * frame.c (frame_pc_unwind): Update.
6908 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
6909 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6910 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6911 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
6912 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
6913 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
6914
6915 2003-03-10 Andrew Cagney <cagney@redhat.com>
6916
6917 * gdbarch.sh (gdbarch_unwind_pc): New method.
6918 * gdbarch.h, gdbarch.c: Regenerate.
6919 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
6920 but use read_pc and FRAME_SAVED_PC as fall backs.
6921 (frame_saved_regs_pc_unwind): Delete function.
6922 (trad_frame_unwinder): Update.
6923 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
6924 (struct frame_unwind): Update.
6925 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
6926 (dummy_frame_unwind): Update.
6927 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
6928 (sentinel_frame_unwinder): Update.
6929 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
6930 (d10v_frame_unwind): Update.
6931 (d10v_unwind_pc): New function.
6932 (d10v_gdbarch_init): Set unwind_pc.
6933
6934 2003-03-10 Andrew Cagney <cagney@redhat.com>
6935
6936 * gdbarch.h: Re-generate.
6937
6938 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
6939 PC.
6940 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
6941 the PC register.
6942
6943 2003-03-08 Mark Kettenis <kettenis@gnu.org>
6944
6945 * gdbarch.sh (save_dummy_frame_tos): Add comment.
6946
6947 2003-03-08 Andrew Cagney <cagney@redhat.com>
6948
6949 * cli-out.c: Update copyright.
6950 (cli_out_data): Define typedef. Use instead of ui_out_data.
6951
6952 2003-03-08 Andrew Cagney <cagney@redhat.com>
6953
6954 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
6955 the result.
6956
6957 2003-03-07 Andrew Cagney <cagney@redhat.com>
6958
6959 * gdbarch.sh: Don't generate two macro definitions when an
6960 undefined macro taking no arguments.
6961 * gdbarch.h: Regenerate.
6962
6963 2002-03-07 Michal Ludvig <mludvig@suse.cz>
6964
6965 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
6966 (x86_64_unwind_dummy_id): New functions.
6967 (x86_64_init_abi): Register these two new functions.
6968
6969 2003-03-07 Michal Ludvig <mludvig@suse.cz>
6970
6971 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
6972 (x86_64_skip_prologue): Move prologue detection to
6973 separate function.
6974 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
6975
6976 2003-03-05 Andrew Cagney <cagney@redhat.com>
6977
6978 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
6979 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
6980 * frame.c (get_prev_frame): Restructure the frame ID unwind code
6981 to use unwind_dummy_id when a dummy frame.
6982 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
6983 predicate.
6984 * gdbarch.h, gdbarch.c: Regneerate.
6985
6986 2003-03-05 Andrew Cagney <cagney@redhat.com>
6987
6988 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
6989 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
6990 Do not use d10v_read_sp or d10v_read_fp when obtaining register
6991 values.
6992
6993 2003-03-05 Andrew Cagney <cagney@redhat.com>
6994
6995 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
6996 (struct d10v_unwind_cache): Delete field "frameless". Replace
6997 "next_addr" with "sp_offset". Add "r11_offset".
6998 (d10v_frame_unwind_cache): Update.
6999 (prologue_find_regs): Update. When "mv r11, sp", save the
7000 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
7001 RN was saved in r11_offset.
7002
7003 2003-03-05 Andrew Cagney <cagney@redhat.com>
7004
7005 * frame.c (deprecated_update_frame_pc_hack): Also update the the
7006 cached PC value in the next frame.
7007
7008 2003-03-05 Andrew Cagney <cagney@redhat.com>
7009
7010 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
7011 "id_unwind_cache" with "id".
7012 (frame_id_unwind): Delete declaration.
7013 * frame.c (frame_id_unwind): Delete function.
7014 (get_prev_frame): Call the frame id unwind method directly. Store
7015 the returned next frame's ID value in NEXT_FRAME. Note that there
7016 is a problem with the wrong unwind ID being called with the wrong
7017 unwind cache.
7018
7019 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
7020
7021 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
7022
7023 2003-03-05 James Ingham <jingham@apple.com>
7024 Daniel Jacobowitz <drow@mvista.com>
7025
7026 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
7027 (auto_cp_abi): New variable.
7028 (current_cp_abi, num_cp_abis): Make static.
7029 (CP_ABI_MAX): Define.
7030 (cp_abis): Turn into an array.
7031 (value_virtual_fn_field): Fix formatting.
7032 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
7033 takes a pointer.
7034 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
7035 (list_cp_abis, _initialize_cp_abi): New functions.
7036 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
7037 declarations for cp_abis, num_cp_abis, current_cp_abi, and
7038 switch_to_cp_abi. Update prototype for register_cp_abi.
7039 * Makefile.in (cp-abi.o): Update dependencies.
7040 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
7041 instead of switch_to_cp_abi.
7042 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
7043 register_cp_abi.
7044 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
7045 register_cp_abi.
7046 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
7047
7048 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
7049
7050 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
7051 * dwarf2loc.c: Include "regcache.h".
7052 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
7053 register_size.
7054 * Makefile.in (dwarf2loc.o): Update dependencies.
7055
7056 2003-03-04 Theodore A. Roth <troth@openavr.org>
7057
7058 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
7059 number of io registers reported by remote target is not a multiple of
7060 step.
7061
7062 2003-03-04 David Carlton <carlton@math.stanford.edu>
7063
7064 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
7065 (lookup_symbol_aux_psymtabs): Update call to
7066 lookup_partial_symbol.
7067 (lookup_transparent_type, find_main_psymtab)
7068 (make_symbol_overload_list): Ditto.
7069
7070 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
7071
7072 * MAINTAINERS (Write after approval): Update my email address.
7073
7074 2003-03-03 Andrew Cagney <cagney@redhat.com>
7075
7076 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
7077 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
7078 predicate. Replace MAX_REGISTER_RAW_SIZE.
7079 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
7080 MAX_REGISTER_VIRTUAL_SIZE.
7081 * regcache.c (legacy_max_register_raw_size): New function.
7082 (legacy_max_register_virtual_size): New function.
7083 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
7084 (MAX_REGISTER_RAW_SIZE): Define.
7085 (legacy_max_register_raw_size): Declare.
7086 (legacy_max_register_virtual_size): Declare.
7087 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7088 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
7089 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7090 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7091 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7092 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7093 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7094 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7095 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7096 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7097 * vax-tdep.c (vax_gdbarch_init): Update.
7098 * v850-tdep.c (v850_gdbarch_init): Update.
7099 * sparc-tdep.c (sparc_gdbarch_init): Update.
7100 * sh-tdep.c (sh_gdbarch_init): Update.
7101 * s390-tdep.c (s390_gdbarch_init): Update.
7102 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7103 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7104 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7105 * mips-tdep.c (mips_gdbarch_init): Update.
7106 * mcore-tdep.c (mcore_gdbarch_init): Update.
7107 * m68k-tdep.c (m68k_gdbarch_init): Update.
7108 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7109 * ia64-tdep.c (ia64_gdbarch_init): Update.
7110 * i386-tdep.c (i386_gdbarch_init): Update.
7111 * hppa-tdep.c (hppa_gdbarch_init): Update.
7112 * h8300-tdep.c (h8300_gdbarch_init): Update.
7113 * frv-tdep.c (frv_gdbarch_init): Update.
7114 * cris-tdep.c (cris_gdbarch_init): Update.
7115 * avr-tdep.c (avr_gdbarch_init): Update.
7116 * arm-tdep.c (arm_gdbarch_init): Update.
7117 * alpha-tdep.c (alpha_gdbarch_init): Update.
7118 * d10v-tdep.c (d10v_gdbarch_init): Do not set
7119 max_register_raw_size or max_register_virtual_size.
7120
7121 2003-03-03 David Carlton <carlton@math.stanford.edu>
7122
7123 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
7124 SYMBOL_MATCHES_NAME, add comment.
7125 (SYMBOL_MATCHES_NATURAL_NAME): New.
7126 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
7127 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
7128 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
7129 * symtab.c (lookup_partial_symbol): Use
7130 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
7131 unhelpful comment.
7132 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
7133 SYMBOL_MATCHES_NAME.
7134 Fix for PR c++/33.
7135
7136 2003-03-03 David Carlton <carlton@math.stanford.edu>
7137
7138 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
7139 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
7140 by regexp matching against SYMBOL_NATURAL_NAME.
7141
7142 2003-03-03 David Carlton <carlton@math.stanford.edu>
7143
7144 * linespec.c (find_method): Extract code into collect_methods.
7145 (collect_methods): New.
7146
7147 2003-03-02 Mark Kettenis <kettenis@gnu.org>
7148
7149 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
7150 get_frame_base.
7151
7152 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
7153 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7154
7155 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
7156
7157 * arch-utils.c (generic_register_byte): Fix to use the loop index
7158 and not regnum when summing the size of all registers up to regnum.
7159
7160 2003-03-01 Andrew Cagney <cagney@redhat.com>
7161
7162 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
7163 FRAME_INIT_SAVED_REGS.
7164 * gdbarch.h, gdbarch.c: Regenerate.
7165 * stack.c (frame_info): Update.
7166 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
7167 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
7168 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
7169 * ns32k-tdep.c (ns32k_pop_frame): Update.
7170 * mips-tdep.c (mips_pop_frame): Update.
7171 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
7172 * ia64-tdep.c (ia64_frame_chain): Update.
7173 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
7174 (ia64_frameless_function_invocation): Update.
7175 (ia64_init_extra_frame_info): Update.
7176 (ia64_pop_frame_regular): Update.
7177 * frame.h (struct frame_info): Update comment.
7178 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
7179 * frame.c (frame_saved_regs_register_unwind): Update.
7180 (frame_saved_regs_register_unwind): Update.
7181 (deprecated_generic_get_saved_register): Update.
7182 * cris-tdep.c: Update comment.
7183 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
7184 Rename macro.
7185 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7186 * x86-64-tdep.c (x86_64_init_abi): Update.
7187 * vax-tdep.c (vax_gdbarch_init): Update.
7188 * v850-tdep.c (v850_gdbarch_init): Update.
7189 * sparc-tdep.c (sparc_gdbarch_init): Update.
7190 * sh-tdep.c (sh_gdbarch_init): Update.
7191 * s390-tdep.c (s390_gdbarch_init): Update.
7192 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7193 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7194 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7195 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7196 * mips-tdep.c (mips_gdbarch_init): Update.
7197 * mcore-tdep.c (mcore_gdbarch_init): Update.
7198 * m68k-tdep.c (m68k_gdbarch_init): Update.
7199 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7200 * ia64-tdep.c (ia64_gdbarch_init): Update.
7201 * i386-tdep.c (i386_gdbarch_init): Update.
7202 * frv-tdep.c (frv_gdbarch_init): Update.
7203 * avr-tdep.c (avr_gdbarch_init): Update.
7204 * arm-tdep.c (arm_gdbarch_init): Update.
7205 * alpha-tdep.c (alpha_gdbarch_init): Update.
7206
7207 2003-03-01 Andrew Cagney <cagney@redhat.com>
7208
7209 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
7210 option enum and switch. When no windows, set the interpreter to
7211 INTERP_CONSOLE.
7212
7213 2003-03-01 Andrew Cagney <cagney@redhat.com>
7214
7215 * main.c (captured_main): Replace magic option characters with an
7216 enum.
7217
7218 2003-03-01 Andrew Cagney <cagney@redhat.com>
7219
7220 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
7221 INIT_EXTRA_FRAME_INFO.
7222 * gdbarch.h, gdbarch.c: Regenerate.
7223 * arm-tdep.c: Update comments.
7224 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
7225 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
7226 * frame.h, avr-tdep.c: Ditto.
7227 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
7228 (create_new_frame, legacy_get_prev_frame): Ditto.
7229 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
7230 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
7231 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
7232 deprecated_init_extra_frame_info instead of init_extra_frame_info.
7233 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7234 * v850-tdep.c (v850_gdbarch_init): Ditto.
7235 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7236 * sh-tdep.c (sh_gdbarch_init): Ditto.
7237 * s390-tdep.c (s390_gdbarch_init): Ditto.
7238 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
7239 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7240 * mips-tdep.c (mips_gdbarch_init): Ditto.
7241 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7242 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7243 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7244 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
7245 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7246 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7247 * frv-tdep.c (frv_gdbarch_init): Ditto.
7248 * cris-tdep.c (cris_gdbarch_init): Ditto.
7249 * avr-tdep.c (avr_gdbarch_init): Ditto.
7250 * arm-tdep.c (arm_gdbarch_init): Ditto.
7251 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7252 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7253
7254 2003-03-01 Andrew Cagney <cagney@redhat.com>
7255
7256 * gdbarch.sh (register_type): New function with predicate.
7257 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
7258 * gdbarch.h, gdbarch.c: Re-generate.
7259 * arch-utils.c (generic_register_byte): Use generic_register_size.
7260 (generic_register_size): When available, use
7261 gdbarch_register_type.
7262 * regcache.c (init_regcache_descr): When available, initialize the
7263 register type array using gdbarch_register_type. If the
7264 architecture supplies gdbarch_register_type, do not use the legacy
7265 regcache layout.
7266 * d10v-tdep.c (d10v_register_type): Replace
7267 d10v_register_virtual_type.
7268 (d10v_gdbarch_init): Set register_type instead of
7269 register_virtual_type.
7270
7271 2003-03-01 Andrew Cagney <cagney@redhat.com>
7272
7273 * Makefile.in (ax-gdb.o): Update dependencies.
7274 * ax-gdb.c: Include "regcache.h".
7275 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
7276 * findvar.c (value_of_register): Ditto.
7277 * infcmd.c (default_print_registers_info): Ditto.
7278
7279 2003-03-01 Mark Kettenis <kettenis@gnu.org>
7280
7281 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
7282 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7283
7284 2003-03-01 Mark Kettenis <kettenis@gnu.org>
7285
7286 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
7287 of STREQ.
7288
7289 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
7290
7291 * Makefile.in (dwarf2loc.o): Update dependencies.
7292 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
7293 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
7294 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
7295 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
7296 (locexpr_tracepoint_var_ref): New function.
7297 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
7298
7299 2003-02-28 Andrew Cagney <cagney@redhat.com>
7300
7301 * regcache.c (register_size): New function.
7302 * regcache.h (register_size): Declare
7303 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
7304 max_register_size instead of MAX_REGISTER_RAW_SIZE.
7305
7306 2003-02-28 David Carlton <carlton@math.stanford.edu>
7307
7308 * linespec.c (decode_compound): Extract code into find_method.
7309 (find_method): New.
7310
7311 2003-02-28 J. Brobecker <brobecker@gnat.com>
7312
7313 * Makefile.in: Add rules to build and link in observer.o.
7314
7315 2003-02-27 J. Brobecker <brobecker@gnat.com>
7316
7317 * observer.c: Minor comments edits.
7318
7319 2003-02-27 J. Brobecker <brobecker@gnat.com>
7320
7321 * observer.h, observer.c: New file.
7322
7323 2003-02-27 Andrew Cagney <cagney@redhat.com>
7324
7325 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
7326
7327 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
7328
7329 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
7330 (M6812_OP_STS_EXT): Likewise.
7331 (m6811_prologue): Use the above to recognize prologue.
7332 (m6812_prologue): Likewise.
7333
7334 2003-02-27 David Carlton <carlton@math.stanford.edu>
7335
7336 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
7337 SYMBOL_PRINT_NAME.
7338 (compare_psymbols): Ditto.
7339 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
7340
7341 2003-02-27 Michael Snyder <msnyder@redhat.com>
7342
7343 * f-lang.c (build_fortran_types): New function.
7344 (_initialize_f_language): Gdbarch-register built-in fortran types.
7345 * doublest.c (extract_floating): Fix warning text.
7346
7347 2003-02-27 Andrew Cagney <cagney@redhat.com>
7348
7349 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
7350 predicate. Replaces PUSH_DUMMY_FRAME.
7351 * gdbarch.h, gdbarch.c: Regnerate.
7352 * valops.c (hand_function_call): Update. Call
7353 generic_push_dummy_frame directly.
7354 * vax-tdep.c (vax_gdbarch_init): Update.
7355 * sparc-tdep.c (sparc_gdbarch_init): Update.
7356 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7357 * m68k-tdep.c (m68k_gdbarch_init): Update.
7358 * hppa-tdep.c (hppa_gdbarch_init): Update.
7359 * alpha-tdep.c (alpha_gdbarch_init): Update.
7360 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
7361 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
7362 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
7363 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
7364 push_dummy_frame to generic_push_dummy_frame.
7365 * v850-tdep.c (v850_gdbarch_init): Ditto.
7366 * sh-tdep.c (sh_gdbarch_init): Ditto.
7367 * s390-tdep.c (s390_gdbarch_init): Ditto.
7368 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7369 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7370 * mips-tdep.c (mips_gdbarch_init): Ditto.
7371 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7372 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7373 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7374 * i386-tdep.c (i386_gdbarch_init): Ditto.
7375 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7376 * frv-tdep.c (frv_gdbarch_init): Ditto.
7377 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7378 * cris-tdep.c (cris_gdbarch_init): Ditto.
7379 * avr-tdep.c (avr_gdbarch_init): Ditto.
7380 * arm-tdep.c (arm_gdbarch_init): Ditto.
7381
7382 2003-02-26 Kevin Buettner <kevinb@redhat.com>
7383
7384 * mips-tdep.c (show_mips_abi): New function.
7385 (_initialize_mips_tdep): Use show_mips_abi() to implement the
7386 command ``show mips abi''.
7387
7388 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
7389
7390 From Elena Zannoni <ezannoni@redhat.com>
7391 * dbxread.c (process_one_symbol): Only record line 0 if one or
7392 more sline entries have been seen for the function.
7393
7394 2003-02-26 Michael Chastain <mec@shout.net>
7395
7396 * configure: Regenerate with autoconf 000227.
7397
7398 2003-02-26 Michael Chastain <mec@shout.net>
7399
7400 Close PR build/660.
7401 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
7402 for old libc5/glibc.
7403 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
7404
7405 2003-02-26 Kris Warkentin <kewarken@qnx.com>
7406
7407 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
7408 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
7409
7410 2003-02-26 Michael Chastain <mec@shout.net>
7411
7412 * configure.in: New variable HAVE_UINTPTR_T.
7413 * configure, config.in: Regenerated.
7414
7415 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
7416
7417 Fix PR build/1097.
7418 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
7419
7420 2003-02-25 Andrew Cagney <cagney@redhat.com>
7421
7422 * frame.c (get_prev_frame): Add comment on check for
7423 inside_entry_func. Only check for inside_entry_file when not a
7424 dummy and not a sentinel. Check that the new frame is not inner
7425 to the old frame.
7426
7427 2003-02-25 Andrew Cagney <cagney@redhat.com>
7428
7429 * frame.c (frame_debug): New variable.
7430 (_initialize_frame): Add "set/show debug frame" command.
7431 (get_prev_frame): When frame_debug, print reason why unwind
7432 failed.
7433
7434 2003-02-25 Michael Chastain <mec@shout.net>
7435
7436 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
7437 to avoid uintptr_t definition problems.
7438
7439 2003-02-25 David Carlton <carlton@math.stanford.edu>
7440
7441 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
7442 (SYMBOL_LINKAGE_NAME): Ditto.
7443 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
7444 SYMBOL_LINKAGE_NAME.
7445 (struct general_symbol_info): Expand comment.
7446 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
7447 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
7448 (SYMBOL_MATCHES_REGEXP): Ditto.
7449 * symtab.c (symbol_natural_name): New function.
7450 * objfiles.h: Replace all uses of SYMBOL_NAME by
7451 DEPRECATED_SYMBOL_NAME.
7452 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
7453 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
7454 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
7455 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
7456 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
7457 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
7458 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
7459 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
7460 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
7461 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
7462 * ada-exp.y: Ditto.
7463 * ada-exp.y: Update copyright.
7464 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
7465 * cp-valprint.c: Ditto.
7466
7467 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
7468
7469 * infptrace.c (detach): Do not flag error if ptrace detach fails
7470 and errno is set to ESRCH.
7471
7472 2003-02-24 Andrew Cagney <cagney@redhat.com>
7473
7474 * infptrace.c (udot_info): Change type of udot_off to long. Use
7475 paddr when printing udot_off's value.
7476
7477 2003-02-24 David Carlton <carlton@math.stanford.edu>
7478
7479 * symtab.c (make_symbol_overload_list): Only read in partial
7480 symtabs containing a matching partial symbol.
7481
7482 2003-02-24 David Carlton <carlton@math.stanford.edu>
7483
7484 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
7485 do the comparison, not strcmp.
7486 * symfile.c (compare_psymbols): Ditto.
7487 * defs.h: Declare strcmp_iw_ordered.
7488 * utils.c (strcmp_iw_ordered): New function.
7489
7490 2003-02-24 Jim Blandy <jimb@redhat.com>
7491
7492 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
7493 support, shared libs): Remove my name from here, to better reflect
7494 reality.
7495
7496 2003-02-24 Kris Warkentin <kewarken@qnx.com>
7497
7498 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
7499 (target_ops): Add to_have_continuable_watchpoint.
7500 * target.c (update_current_target): Add INHERIT line for
7501 to_have_continuable_watchpoint.
7502 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
7503 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
7504 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
7505 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
7506
7507 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
7508
7509 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
7510 maintainership.
7511
7512 2003-02-24 Kris Warkentin <kewarken@qnx.com>
7513
7514 * solib.c (solib_open): Call target defined search function after
7515 failing with solib-search-path.
7516 * solist.h (target_so_ops): Add find_and_open_solib function hook and
7517 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
7518
7519 2003-02-24 Kris Warkentin <kewarken@qnx.com>
7520
7521 * MAINTAINERS: Add myself to Write After section.
7522
7523 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
7524
7525 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
7526
7527 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
7528
7529 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
7530 (m68hc11_add_reggroups): New function.
7531 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
7532 (m68hc11_gdbarch_init): Install the reggroups.
7533 (_initialize_m68hc11_tdep): Initialize them.
7534
7535 2003-02-21 James E Wilson <wilson@tuliptree.org>
7536
7537 * MAINTAINERS: Update my email address.
7538
7539 2003-02-21 David Carlton <carlton@math.stanford.edu>
7540
7541 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
7542
7543 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
7544
7545 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
7546 * symtab.h: Add opaque declarations of struct axs_value and
7547 struct agent_expr.
7548 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
7549 (struct location_funcs): New type.
7550 (struct symbol): Add "loc" to aux_value.
7551 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
7552 * dwarf2read.c: Include "dwarf2expr.h".
7553 (dwarf2_symbol_mark_computed): New function.
7554 (read_func_scope): Use it.
7555 (var_decode_location): New function.
7556 (new_symbol): Use it.
7557 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
7558
7559 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
7560 (dwarf2expr_h, dwarf2loc_h): New variables.
7561 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
7562 (dwarf2expr.o, dwarf2loc.o): New rules.
7563 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
7564 * buildsym.c (finish_block): Handle LOC_COMPUTED and
7565 LOC_COMPUTED_ARG.
7566 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
7567 * m2-exp.y (yylex): Likewise.
7568 * printcmd.c (address_info, print_frame_args): Likewise.
7569 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
7570 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
7571 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
7572 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
7573 * symtab.c (lookup_block_symbol): Likewise.
7574
7575 2003-02-20 Adam Fedor <fedor@gnu.org>
7576
7577 * symtab.h: Remove objc_specific struct
7578 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
7579 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
7580 Have language_objc use cplus_specific struct.
7581
7582 2003-02-20 Tom Tromey <tromey@redhat.com>
7583
7584 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
7585 TYPE_NAME, when printing a String value. PR java/1075.
7586
7587 2003-02-20 Adam Fedor <fedor@gnu.org>
7588
7589 * objc-lang.h (find_methods): Remove declaration.
7590 * objc-lang.c (find_methods): Make static.
7591
7592 2003-02-20 Christopher Faylor <cgf@redhat.com>
7593
7594 * win32-nat.c (get_image_name): Check return value from
7595 ReadProcessMemory.
7596 (child_xfer_memory): Ditto.
7597
7598 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
7599
7600 * configure.in (TARGET_SYSTEM_ROOT): Set default to
7601 ${exec_prefix}/${target_alias}/sys-root. Match explicit
7602 '${exec_prefix}' (in addition to the expansion thereof) as
7603 relocatable.
7604 * configure: Rebuilt.
7605
7606 2003-02-20 David Carlton <carlton@math.stanford.edu>
7607
7608 * symtab.c (search_symbols): Revert the search_symbols part of my
7609 2002-12-23 patch. Add comment.
7610
7611 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7612
7613 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
7614 * dbxread.c (elfstab_build_psymtabs): Don't call
7615 install_minimal_symbols.
7616 (stabsect_build_psymtabs): Likewise.
7617 * elfread.c (elf_symfile_read): Call install_minimal_symbols
7618 earlier.
7619 * somread.c (som_symfile_read): Call install_minimal_symbols
7620 and do_cleanups earlier.
7621 * nlmread.c (nlm_symfile_read): Likewise.
7622 * mdebugread.c (elfmdebug_build_psymtabs): Call
7623 install_minimal_symbols and make appropriate cleanups.
7624
7625 2003-02-20 Kevin Buettner <kevinb@redhat.com>
7626
7627 * solib.c (reload_shared_libraries): New function.
7628 (_initialize_solib): Add callbacks for ``set solib-search-path''
7629 and ``set solib-absolute-prefix''.
7630
7631 2003-02-20 David Carlton <carlton@math.stanford.edu>
7632
7633 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
7634 expand comment.
7635 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
7636 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
7637 * ada-typeprint.c (ada_typedef_print): Ditto.
7638 * ax-gdb.c (gen_var_ref): Ditto.
7639 * breakpoint.c (print_one_breakpoint): Ditto.
7640 * buildsym.c (finish_block): Ditto.
7641 * c-valprint.c (c_val_print): Ditto.
7642 * expprint.c (print_subexp): Ditto.
7643 * findvar.c (locate_var_value): Ditto.
7644 * infcmd.c (jump_command): Ditto.
7645 * linespec.c (decode_line_2, decode_compound): Ditto.
7646 * maint.c (maintenance_translate_address): Ditto.
7647 * objc-lang.c (compare_selectors, compare_classes): Ditto.
7648 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
7649 Ditto.
7650 * p-valprint.c (pascal_val_print): Ditto.
7651 * stabsread.c (define_symbol): Ditto.
7652 * stack.c (print_frame, frame_info, print_block_frame_locals)
7653 (print_frame_arg_vars, return_command): Ditto.
7654 * symfile.c (compare_symbols, compare_psymbols): Ditto.
7655 * symmisc.c (print_symbol): Ditto.
7656 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
7657 (compare_search_syms, print_symbol_info, print_msymbol_info)
7658 (rbreak_command): Ditto.
7659 * tracepoint.c (tracepoints_info): Ditto.
7660 * typeprint.c (typedef_print): Ditto.
7661 * valops.c (value_of_variable, hand_function_call): Ditto.
7662 * cli/cli-cmds.c (edit_command, list_command): Ditto.
7663 * ada-typeprint.c: Update Copyright.
7664 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
7665 * tracepoint.c, cli/cli-cmds.c: Ditto.
7666
7667 2003-02-20 Kevin Buettner <kevinb@redhat.com>
7668
7669 * frame.c (generic_unwind_get_saved_register): Make non-static.
7670 * frame.h (generic_unwind_get_saved_register): Declare.
7671 * mips-tdep.c (read_next_frame_reg): Fetch register from
7672 current regcache when frame is NULL.
7673 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
7674 that must be NULL.
7675 (mips_get_saved_register): Call generic_unwind_get_saved_register()
7676 instead of frame_register_unwind().
7677
7678 2003-02-20 Andrew Cagney <ac131313@redhat.com>
7679
7680 * remote-sim.c (gdbsim_insert_breakpoint)
7681 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
7682 code.
7683
7684 2003-02-20 Andrew Cagney <ac131313@redhat.com>
7685
7686 * remote.c (_initialize_remote): Add commands "set/show remote
7687 hardware-watchpoint-limit" and "set/show remote
7688 hardware-breakpoint-limit".
7689 (remote_hw_watchpoint_limit): Initialize to -1.
7690 (remote_hw_breakpoint_limit): Ditto.
7691 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
7692
7693 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
7694
7695 * coff-pe-read.c: New file - support reading of minimal symbols from a
7696 portable executable using the export table.
7697 * coff-pe-read.h: New file.
7698 * coffread.c: Include coff-pe-read.h.
7699 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
7700 debugging symbols found.
7701 * Makefile.in (SFILES): Add coff-pe-read.o.
7702 (coff_pe_read_h): Define.
7703 (COMMON_OBS): Add coff-pe-read.o.
7704 (coffread.o): Add coff_pe_read_h dependency.
7705 (coff-pe-read.o): New target.
7706
7707 2003-02-19 David Carlton <carlton@math.stanford.edu>
7708
7709 * Makefile.in (SFILES): Add block.c.
7710 (block_h): New.
7711 (COMMON_OBS): Add block.o.
7712 (block.o): New.
7713 (x86-64-tdep.o): Add $(block_h).
7714 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
7715 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
7716 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
7717 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
7718 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
7719 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
7720 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
7721 * value.h: Add opaque declaration for struct block.
7722 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
7723 * ada-lang.h: Ditto.
7724 * x86-64-tdep.c: #include "block.h"
7725 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
7726 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
7727 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
7728 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
7729 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
7730 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
7731 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
7732 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
7733 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
7734 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
7735 * symtab.c (block_function): Ditto.
7736 (contained_in): Ditto.
7737 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
7738 block.h. Add opaque declaration for struct block.
7739 * symtab.h: Move block_function and contained_in declarations to
7740 block.h. Add opaque declarations for struct block, struct
7741 blockvector.
7742 (struct block): Move to block.h.
7743 (struct blockvector): Ditto.
7744 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
7745 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
7746 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
7747 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
7748 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
7749 Ditto.
7750 * block.c: New file.
7751 * block.h: New file.
7752
7753 2003-02-19 Theodore A. Roth <troth@openavr.org>
7754
7755 * avr-tdep.c (avr_extract_return_value): Remove function.
7756 (avr_store_return_value): Remove function.
7757 (avr_extract_struct_value_address): Remove function.
7758 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
7759
7760 2003-02-19 Andrew Cagney <ac131313@redhat.com>
7761
7762 * rs6000-tdep.c: Include "gdb_assert.h".
7763 (registers_e500): Add "acc" and "spefscr".
7764 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
7765 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
7766 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
7767 really is "r0".
7768 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
7769
7770 2003-02-18 Keith Seitz <keiths@redhat.com>
7771
7772 * Makefile.in: Add gdbtk-interps.c.
7773
7774 2003-02-18 Kevin Buettner <kevinb@redhat.com>
7775
7776 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
7777 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
7778
7779 2003-02-18 Andrew Cagney <cagney@redhat.com>
7780
7781 * symtab.h (struct objfile): Add opaque declaration.
7782
7783 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
7784
7785 From Jim Ingham <jingham@apple.com>:
7786 * dbxread.c (process_one_symbol): Use last_function_start rather
7787 than function_start_offset to find the real beginning of the
7788 current function. The latter is just the text section offset on
7789 some systems, the former is always the real function start.
7790
7791 2003-02-17 Andrew Cagney <cagney@redhat.com>
7792
7793 * configure.in: Revert ${target} != ${host}.
7794
7795 2003-02-17 Andrew Cagney <ac131313@redhat.com>
7796
7797 * configure.in (Makefile): Use the test ${target} != ${host},
7798 instead of the absence of the "nm.h" file, to determine of the
7799 configuration non-native.
7800 * configure: Regenerate.
7801
7802 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
7803
7804 From Brian Ford <ford@vss.fsi.com>
7805
7806 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
7807 conditionalize tui_active test.
7808 (lookup_cmd_1): Ditto.
7809
7810 2003-02-14 Mark Kettenis <kettenis@gnu.org>
7811
7812 * configure.in: Add check for _etext.
7813 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
7814 available.
7815 * config.in, configure: regenerated.
7816
7817 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
7818
7819 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
7820
7821 2003-02-14 Andrew Cagney <ac131313@redhat.com>
7822
7823 * main.c (tui_version): Delete variable.
7824 (captured_main): When --tui, set interpreter_p to "tui" instead of
7825 enabling tui_version.
7826 * printcmd.c (display_command) [TUI]: Test tui_active instead of
7827 tui_version.
7828 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
7829 * cli/cli-cmds.c (disassemble_command): Ditto.
7830 * defs.h (tui_version): Delete declaration.
7831 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
7832 (tui-interp.o): Add rules.
7833 (SUBDIR_TUI_OBS): Add "tui-interp.o".
7834
7835 2003-02-14 Christopher Faylor <cgf@redhat.com>
7836
7837 * win32-nat.c (register_loaded_dll): Correctly set address range for
7838 just-loaded dll.
7839
7840 2003-02-12 Jason Molenda (jmolenda@apple.com)
7841
7842 * symmisc.c (print_objfile_statistics): Include information about
7843 the number of psymtabs and symtabs in each object file.
7844
7845 2003-02-13 Keith R Seitz <keiths@redhat.com>
7846
7847 * main.h (struct captured_main_args): Add interpreter_p.
7848 * main.c (captured_main): Initialize interpreter_p from context.
7849 * gdb.c (main): Set interpreter_p argument.
7850 * Makefile.in (gdb.o): Add dependency for interps.h.
7851
7852 2003-02-12 Andrew Cagney <ac131313@redhat.com>
7853
7854 * event-top.c (cli_command_loop): Delete declaration.
7855 (_initialize_event_loop): Delete function setting event_loop_hook.
7856 * event-top.h (cli_command_loop): Declare. Update copyright.
7857 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
7858 * interps.c (current_interp_command_loop): When event_loop_p, call
7859 cli_command_loop.
7860
7861 2003-02-12 Andrew Cagney <ac131313@redhat.com>
7862
7863 * interps.h (interp_command_loop_ftype): Change return type to
7864 void.
7865
7866 2003-02-12 Michal Ludvig <mludvig@suse.cz>
7867
7868 * x86-64-tdep.c (x86_64_extract_return_value)
7869 (x86_64_store_return_value): Use regcache instead of regbuf.
7870 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
7871 * x86-64-linux-nat.c (fill_gregset): Use regcache.
7872
7873 2003-02-11 Andrew Cagney <ac131313@redhat.com>
7874
7875 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
7876 * aclocal.m4: Regenerate.
7877 * configure: Regenerate.
7878
7879 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
7880 TCL_LD_SEARCH_FLAGS.
7881
7882 2003-02-10 Michal Ludvig <mludvig@suse.cz>
7883
7884 * dwarf2cfi.c: Reindented.
7885
7886 2003-02-09 Andrew Cagney <ac131313@redhat.com>
7887
7888 * interps.c (clear_interpreter_hooks): Convert function definition
7889 to ISO C.
7890
7891 2003-02-07 David Carlton <carlton@math.stanford.edu>
7892
7893 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
7894
7895 2003-02-07 Kevin Buettner <kevinb@redhat.com>
7896
7897 * gdbtypes.h (struct main_type): Move ``length'' field from here...
7898 (struct type): ...to here.
7899 (TYPE_LENGTH): Adjust to reflect different location of ``length''
7900 field.
7901 * gdbtypes.c (make_qualified_type): Set length on newly created type.
7902 (replace_type): Set length on all type variants for a given type.
7903
7904 2003-02-07 Andrew Cagney <ac131313@redhat.com>
7905
7906 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
7907 <sys/stat.h>.
7908 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
7909
7910 2003-02-06 Andrew Cagney <ac131313@redhat.com>
7911
7912 * Makefile.in (symm-nat.o): Update dependencies.
7913 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
7914 (lynx-nat.o, ia64-linux-nat.): Ditto.
7915 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
7916 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
7917 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
7918
7919 * Makefile.in (inflow_h): Define.
7920 (procfs.o, inflow.o, procfs.o): Update dependencies.
7921 * inftarg.c (child_stop): Delete extern declaration of
7922 inferior_process_group. Include "inflow.h".
7923 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
7924 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
7925 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
7926 (our_process_group, inferior_process_group): Extern declarations.
7927
7928 * procfs.c: Include "gdb_assert.h".
7929
7930 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
7931 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
7932 * jv-typeprint.c (java_type_print_base): Ditto.
7933 * typeprint.c (typedef_print): Eliminate STREQ.
7934 * cli/cli-script.c (define_command, define_command): Ditto.
7935 * main.c (captured_main): Ditto.
7936 * values.c (lookup_internalvar): Ditto.
7937 * utils.c (safe_strerror, parse_escape): Eliminate assignment
7938 within `if' conditional.
7939 * linespec.c (decode_line_2): Ditto.
7940 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
7941 (bfd_openw_with_cleanup): Ditto.
7942
7943 2003-02-07 Mark Kettenis <kettenis@gnu.org>
7944
7945 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
7946 legacy_extract_return_value and store_return_value to
7947 legacy_return_value.
7948
7949 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
7950
7951 * win32-nat.c (get_relocated_section_addrs): New function. Find
7952 section load addresses for symbol handling in relocated DLLs.
7953 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
7954
7955 2003-02-05 Fred Fish <fnf@intrinsity.com>
7956
7957 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
7958 '=' and '!='.
7959 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
7960 with '&' and '=='.
7961 (angel_RDI_info): Ditto.
7962 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
7963 with '&' and '!='.
7964 (threads_continue_all_with_signals): Ditto.
7965
7966 2003-02-05 Jim Ingham <jingham@apple.com>
7967 Keith Seitz <keiths@redhat.com>
7968 Elena Zannoni <ezannoni@redhat.com>
7969 Andrew Cagney <ac131313@redhat.com>
7970
7971 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
7972 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
7973 (SUBDIR_MI_OBS): Add "mi-interp.o".
7974 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
7975 (SFILES): Add "interps.c".
7976 (COMMON_OBS): Add "interps.o".
7977 (interps_h, mi_main_h): Define.
7978 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
7979 (mi-main.o, main.o, event-top.o): Update dependencies.
7980 * cli/cli-interp.c: New file.
7981 * interps.h, interps.c: New files.
7982 * top.c: (gdb_init): Don't install the default interpreter, handed
7983 by captured_main.
7984 * main.c: Include "interps.h".
7985 (interpreter_p): Note that it should malloc'ed.
7986 (captured_command_loop): Call current_interp_command_loop.
7987 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
7988 xfree and xstrdup when updating interpreter_p. Install the
7989 default interpreter. Add hack to stop mi1's copyright notice
7990 being encoded.
7991 * event-top.h (gdb_setup_readline): Declare.
7992 (gdb_disable_readline): Declare.
7993 * event-top.c: Include "interps.h".
7994 (display_gdb_prompt): Call current_interp_display_prompt_p.
7995 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
7996 gdb_stdlog, and gdb_stdtarg.
7997 (_initialize_event_loop): Don't call gdb_setup_readline.
7998 * cli-out.c (cli_out_set_stream): New function.
7999 * cli-out.h (cli_out_set_stream): Declare.
8000
8001 2003-02-06 Mark Kettenis <kettenis@gnu.org>
8002
8003 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
8004 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
8005 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
8006 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
8007 config/i386/i386v42mp.mt: Removed.
8008
8009 2003-02-05 Mark Kettenis <kettenis@gnu.org>
8010
8011 * configure.tgt (*-*-solaris*): Set gdb_osabi to
8012 GDB_OSABI_SOLARIS.
8013
8014 2003-02-05 Michael Chastain <mec@shout.net>
8015
8016 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
8017 2.12.1 and earlier versions.
8018
8019 2003-02-05 Andrew Cagney <ac131313@redhat.com>
8020
8021 Remove orphaned hosts, targets and files.
8022 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
8023 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
8024 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
8025 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
8026 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
8027 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
8028 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
8029 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
8030 * config/sparc/tm-sp64sim.h: Delete.
8031 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
8032 hosts.
8033 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
8034 mips*-dec-mach3* targets.
8035
8036 2003-02-04 Michael Chastain <mec@shout.net>
8037
8038 * NEWS: Fix typo: sepcifying -> specifying.
8039
8040 2003-02-04 Michael Chastain <mec@shout.net>
8041
8042 * dwarfread.c: Add documentation on the state of dwarf-1,
8043 looking towards obsoletion.
8044
8045 2003-02-03 Michael Chastain <mec@shout.net>
8046
8047 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
8048 gdb/testsuite/gdb.c++/pr-1023.exp.
8049
8050 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8051
8052 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
8053 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
8054
8055 * utils.c (init_page_info): Delete reference to MPW in comments.
8056 * main.c (captured_main): Delete #ifdef MPW.
8057
8058 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8059
8060 * NEWS: Note that the m32r-*-elf* is obsolete.
8061 * monitor.c (monitor_expect): Obsolete reference to m32r.
8062 * configure.tgt: Mark m32r-*-elf* as obsolete.
8063 * MAINTAINERS: Mark m32k as obsolete.
8064 * m32r-rom.c: Obsolete file.
8065 * config/m32r/m32r.mt: Obsolete file.
8066 * config/m32r/tm-m32r.h: Obsolete file.
8067 * m32r-stub.c: Obsolete file.
8068 * m32r-tdep.c: Obsolete file.
8069
8070 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8071
8072 * NEWS: Mention that the z8k-zilog-none is obsolete.
8073 * MAINTAINERS: Mark z8k as obsolete.
8074 * configure.tgt: Obsolete the z8k-*-coff* target.
8075 * config/z8k/z8k.mt: Obsolete file.
8076 * config/z8k/tm-z8k.h: Obsolete file.
8077 * z8k-tdep.c: Obsolete file.
8078
8079 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8080
8081 * NEWS: Mention that the mn10200-elf is obsolete.
8082 * configure.tgt: Obsolete mn10200-*-* target.
8083 * breakpoint.c (update_breakpoints_after_exec): Update comment to
8084 mention that the mn10200 is obsolete.
8085 * breakpoint.h: Ditto.
8086 * MAINTAINERS: Mark the mn10200-elf as obsolete.
8087 * config/mn10200/mn10200.mt: Obsolete file.
8088 * config/mn10200/tm-mn10200.h: Obsolete file.
8089 * mn10200-tdep.c: Obsolete file.
8090
8091 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8092
8093 * MAINTAINERS: Mark h8500 as obsolete.
8094 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
8095 * findvar.c (value_from_register): Ditto.
8096 * h8500-tdep.c: Mark file as obsolete.
8097 * config/h8500/h8500.mt: Ditto.
8098 * config/h8500/tm-h8500.h: Ditto.
8099 * NEWS: Mention that h8500 is obsolete.
8100
8101 2003-02-04 David Carlton <carlton@math.stanford.edu>
8102
8103 * objfiles.c (allocate_objfile): Always set name. Add comment at
8104 start of function.
8105 * jv-lang.c (get_dynamics_objfile): Add comment.
8106
8107 2003-02-04 David Carlton <carlton@math.stanford.edu>
8108
8109 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
8110 * printcmd.c (build_address_symbolic): Replace uses of
8111 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
8112 SYMBOL_NAME, and asm_demangle.
8113 Update copyright.
8114
8115 2003-02-04 David Carlton <carlton@math.stanford.edu>
8116
8117 * linespec.c (decode_compound): Extract code into
8118 lookup_prefix_sym.
8119 (lookup_prefix_sym): New function.
8120
8121 2003-02-04 David Carlton <carlton@math.stanford.edu>
8122
8123 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
8124 FLOAT_COERCION_BADNESS.
8125 * gdbtypes.c (rank_one_type): Replace all uses of
8126 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
8127
8128 2003-02-04 Jim Blandy <jimb@redhat.com>
8129
8130 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
8131 section, let dwarf_macinfo_section point to it, not
8132 dwarf_loc_section.
8133
8134 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
8135
8136 Pointed out by Anton Blanchard <anton@samba.org>.
8137 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
8138 (ppc_linux_at_sigtramp_return_path): Use it.
8139
8140 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
8141
8142 * defs.h (streq): Add prototype.
8143 * utils.c (streq): New function.
8144
8145 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
8146 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
8147 * mdebugread.c (new_symbol): Likewise.
8148 * stabsread.c (define_symbol): Likewise.
8149 * coffread.c (process_coff_symbol): Likewise.
8150 * dwarfread.c (new_symbol): Likewise.
8151
8152 * minsyms.c (prim_record_minimal_symbol_and_info): Use
8153 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
8154 here.
8155 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
8156 SYMBOL_INIT_DEMANGLED_NAME.
8157 * objfiles.c: Include "hashtab.h".
8158 (allocate_objfile): Call htab_set_functions_ex for the
8159 demangled_names_hash.
8160 (free_objfile): Call htab_delete for the demangled_names_hash.
8161 * objfiles.h (struct htab): Add declaration.
8162 (struct objfile): Add demangled_names_hash.
8163 * symfile.c: Include "hashtab.h".
8164 (reread_symbols): Call htab_delete for the demangled_names_hash.
8165 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
8166 SYMBOL_NAME in the bcache.
8167 * symtab.c: Include "hashtab.h". Update comments.
8168 (create_demangled_names_hash, symbol_set_names): New functions.
8169 (symbol_find_demangled_name): New function, broken out from
8170 symbol_init_demangled_names.
8171 (symbol_init_demangled_names): Use it.
8172 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
8173 (SYMBOL_SET_NAMES): New macro.
8174 (symbol_set_names): Add prototype.
8175
8176 2003-02-03 Jim Blandy <jimb@redhat.com>
8177
8178 Use a single, consistent representation for an empty minimal
8179 symbol table in an objfile.
8180 * objfiles.c (terminate_minimal_symbol_table): New function.
8181 (allocate_objfile): Call it.
8182 * objfiles.h (terminate_minimal_symbol_table): New declaration.
8183 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8184 non-NULL.
8185 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
8186 objfile has minimal symbols, compare minimal_symbol_count to zero,
8187 instead of comparing msymbols with NULL.
8188 * objfiles.c (have_minimal_symbols): Same.
8189 * solib-sunos.c (solib_add_common_symbols): Call
8190 terminate_minimal_symbol_table.
8191 * symfile.c (reread_symbols): Same.
8192
8193 2003-02-03 Kevin Buettner <kevinb@redhat.com>
8194
8195 * s390-tdep.c (s390_address_class_type_flags)
8196 (s390_address_class_type_flags_to_name)
8197 (s390_address_class_name_to_type_flags): New functions.
8198 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
8199 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
8200
8201 2003-02-03 Michael Snyder <msnyder@redhat.com>
8202
8203 * arm-tdep.c: Fix spell-o in comment.
8204
8205 2003-02-03 Michal Ludvig <mludvig@suse.cz>
8206
8207 * dwarf2cfi.c (pointer_encoding): Added new parameter.
8208 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8209 error messages to contain BFD filename.
8210
8211 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
8212
8213 Fix PR gdb/742 gdb/743 gdb/877
8214 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
8215 (do_mixed_source_and_assembly): Use
8216 make_cleanup_ui_out_tuple_begin_end and
8217 make_cleanup_ui_out_tuple_begin_end.
8218 (do_mixed_source_and_assembly): Ditto.
8219 * thread.c (do_captured_list_thread_ids): Ditto.
8220 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
8221 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
8222 ui_out_tuple_end): Delete prototypes.
8223 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
8224 ui_out_list_end, ui_out_tuple_end): Delete.
8225
8226 From Kevin Buettner <kevinb@redhat.com>:
8227 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
8228 * ui-out.c (make_cleanup_ui_out_table_begin_end)
8229 (do_cleanup_table_end): New functions.
8230 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
8231 Use cleanups to invoke_ui_out_tuple_end().
8232 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
8233 * cli/cli-setshow.c (cmd_show_list): Use
8234 make_cleanup_ui_out_tuple_begin_end.
8235
8236 2003-02-02 Andrew Cagney <ac131313@redhat.com>
8237
8238 * frame.c (frame_unwind_register): New function.
8239 (frame_unwind_unsigned_register): Use.
8240 (frame_unwind_signed_register): Use.
8241 (frame_read_register): New function.
8242 * frame.h (frame_unwind_register): Declare.
8243 (frame_read_register): Declare.
8244
8245 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
8246 and frame_unwind_register instead of read_memory, write_register
8247 and deprecated_write_register_bytes.
8248
8249 2003-02-02 Andrew Cagney <ac131313@redhat.com>
8250
8251 * frame.h: Note that namelen can be negative.
8252 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
8253 NAME's length.
8254
8255 * NEWS: Mention that the d10v's `regs' command is deprecated.
8256 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
8257 (d10v_print_registers_info): New function.
8258 (show_regs): Call d10v_print_registers_info.
8259 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
8260
8261 2003-02-02 Mark Kettenis <kettenis@gnu.org>
8262
8263 * stack.c (print_frame_info): Restore call to annotate_frame_begin
8264 lost in the previous patch.
8265
8266 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8267
8268 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
8269 * stack.c (print_frame_info_base): Output complete FRAME tuple
8270 for synthesized frames.
8271
8272 2003-02-02 Andrew Cagney <ac131313@redhat.com>
8273
8274 * mips-nat.c (zerobuf): Delete.
8275 (fetch_inferior_registers): Alloc local zerobuf.
8276 (fetch_core_registers): Alloc local zerobuf.
8277 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
8278 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
8279 * thread-db.c (thread_db_store_registers): Ditto.
8280 * sh-tdep.c (sh_do_register): Ditto.
8281 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
8282 * remote-sim.c (gdbsim_store_register): Ditto.
8283 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8284 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8285 * monitor.c (monitor_supply_register): Ditto.
8286 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
8287 * mips-nat.c (fetch_inferior_registers): Ditto.
8288 * m68klinux-nat.c (fetch_register): Ditto.
8289 * lynx-nat.c (fetch_inferior_registers): Ditto.
8290 (fetch_inferior_registers): Ditto.
8291 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
8292 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8293 (hpux_thread_store_registers): Ditto.
8294 * hppah-nat.c (fetch_register): Ditto.
8295 * hppab-nat.c (fetch_register): Ditto.
8296 * hppa-tdep.c (pa_register_look_aside): Ditto.
8297 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
8298 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
8299
8300 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8301
8302 * gdbarch.sh: Explictly specify all method levels. When a
8303 variable with an empty level, provide a non-multi-arch default.
8304 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
8305 * gdbarch.h: Re-generate.
8306 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
8307 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
8308
8309 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8310
8311 * defs.h (host_pointer_to_address): Delete declaration.
8312 (address_to_host_pointer): Delete declaration.
8313 * utils.c (host_pointer_to_address): Delete function.
8314 (address_to_host_pointer): Delete function.
8315 * procfs.c (procfs_address_to_host_pointer): New function.
8316 * procfs.c (proc_set_watchpoint): Use.
8317 (procfs_can_use_hw_breakpoint): Update comments.
8318 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
8319 (som_solib_add): Use.
8320 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
8321 * hppa-tdep.c (unwind_command): Use.
8322
8323 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8324
8325 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
8326 strlen d_name.
8327
8328 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
8329 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
8330 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
8331 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
8332 (define_symbol): Update.
8333 * symfile.c (generic_load): Remove references to nindy.
8334 * symtab.c: Remove references to nindy.
8335
8336 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8337
8338 * infcmd.c (print_float_info): Delete code conditional on
8339 FLOAT_INFO.
8340 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
8341 * config/m68k/nm-apollo68b.h: Ditto.
8342 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
8343 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
8344 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
8345
8346 2003-02-01 Mark Kettenis <kettenis@gnu.org>
8347
8348 * config/i386/tm-i386os9k.h: Removed.
8349
8350 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
8351 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
8352 they're identical to i[3456]86-*-sysv* now.
8353 * config/i386/i386v32.mh: Removed.
8354 * config/i386/xm-i386v32.h: Removed.
8355 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
8356
8357 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
8358
8359 * config/i386/i386dgux.mh: Removed.
8360 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
8361
8362 * configure.in: Fix typo.
8363 * configure: Regenerated.
8364
8365 2003-01-31 David Carlton <carlton@math.stanford.edu>
8366
8367 * dwarf2read.c (dwarf2_locate_sections): Set
8368 dwarf_ranges_section.
8369
8370 2003-01-31 Andrew Cagney <ac131313@redhat.com>
8371
8372 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
8373 * utils.c: Update comments documenting legitimate uses of PTR.
8374
8375 * utils.c: Re-indent.
8376
8377 * config/djgpp/fnchange.lst: Delete nindy files.
8378 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
8379 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
8380 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
8381 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
8382 * nindy-share/README, nindy-share/Onindy.c: Delete files.
8383 * nindy-tdep.c, nindy-share/Makefile: Delete files.
8384 * Makefile.in (init.c): Remove nindy references.
8385 (saber_gdb): Delete rule.
8386 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
8387 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
8388 and a68v-nat.c.
8389 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
8390 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
8391 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
8392 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
8393 nindy-share/stop.h.
8394 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
8395 * saber.suppress: Delete file.
8396
8397 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
8398
8399 * dbxread.c (stabs_data): New static variable.
8400 (fill_symbuf): Support an in-memory buffer for stabs data.
8401 (stabs_seek): New function.
8402 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
8403 (read_ofile_symtab): Use stabs_seek.
8404 (elfstab_build_psymtabs): Take an asection* instead of
8405 an offset and size. Relocate the stabs data if necessary.
8406 Save the section* for dbx_psymtab_to_symtab.
8407 * dwarf2read.c: Add section variables for each debug section.
8408 (dwarf2_locate_sections): Fill them in.
8409 (dwarf2_read_section): Take an asection* argument.
8410 Relocate the section contents if necessary.
8411 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
8412 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
8413 it to dwarf2_read_section.
8414 (dwarf2_build_frame_info): Update callers.
8415 * elfread.c (elf_symfile_read): Update call to
8416 elfstab_build_psymtabs.
8417 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
8418 (DBX_STAB_SECTION): New macro.
8419 * stabsread.h (elfstab_build_psymtabs): Update prototype.
8420 * symfile.c (symfile_dummy_outputs): New function.
8421 (symfile_relocate_debug_section): New function.
8422 * symfile.h (symfile_relocate_debug_section): Add prototype.
8423
8424 2003-01-31 Richard Henderson <rth@redhat.com>
8425
8426 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
8427 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
8428 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
8429 * alpha-tdep.c (alpha_register_name): Add "unique".
8430 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
8431 (ALPHA_UNIQUE_REGNUM): New.
8432 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
8433
8434 2003-01-31 Andrew Cagney <ac131313@redhat.com>
8435
8436 * README: Remove reference to Ericsson 1800 monitor.
8437 * Makefile.in (remote-es.o): Delete rule.
8438 (ALLDEPFILES): Delete remote-es.c.
8439 * remote-es.c: Delete file.
8440 * config/m68k/es1800.mt: Delete file.
8441 * config/djgpp/fnchange.lst: Update.
8442 * configure.tgt: Delete m68*-ericsson-* target.
8443
8444 2003-01-31 Adam Fedor <fedor@gnu.org>
8445
8446 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
8447 Remove duplicate/shadowing variable of same name.
8448
8449 2003-01-30 Jim Blandy <jimb@redhat.com>
8450
8451 * symfile.c (find_separate_debug_file): Assert that the objfile's
8452 directory name we compute ends with a slash, and then assume that
8453 that's so everywhere we use it.
8454
8455 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
8456
8457 * valops.c (value_assign): Flush frame cache after stores to memory
8458 also.
8459
8460 2003-01-30 Andrew Cagney <ac131313@redhat.com>
8461
8462 * Makefile.in (mon960-rom.o): Delete rule.
8463 * mon960-rom.c: Delete file.
8464
8465 2003-01-30 Andrew Cagney <ac131313@redhat.com>
8466
8467 * d10v-tdep.c: Include "frame-unwind.h".
8468 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
8469 list.
8470 (next_addr, uses_frame): Delete.
8471 (struct d10v_unwind_cache): Define.
8472 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
8473 Use info instead of next_addr and uses_frame globals.
8474 (d10v_frame_init_saved_regs): Delete function.
8475 (d10v_init_extra_frame_info): Delete function.
8476 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
8477 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
8478 init_frame_pc or frame_saved_pc.
8479 (d10v_pop_frame): Delete function.
8480 (do_d10v_pop_frame): Delete function.
8481 (d10v_frame_chain): Delete function.
8482 (d10v_frame_chain_valid): Delete function.
8483 (d10v_frame_pc_unwind): New function.
8484 (d10v_frame_id_unwind): New function.
8485 (saved_regs_unwinder): New function.
8486 (d10v_frame_register_unwind): New function.
8487 (d10v_frame_pop): New function.
8488 (d10v_frame_unwind): New variable.
8489 (d10v_frame_p): New function.
8490 (d10v_frame_saved_pc): Delete function.
8491 * Makefile.in (d10v-tdep.o): Update dependencies.
8492
8493 2003-01-30 J. Brobecker <brobecker@gnat.com>
8494
8495 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
8496 causing some regressions due to a change in the default value
8497 for this macro.
8498
8499 2003-01-29 Richard Henderson <rth@redhat.com>
8500 Elena Zannoni <ezannoni@redhat.com>
8501 Daniel Jacobowitz <drow@mvista.com>
8502
8503 Fix PR gdb/961.
8504 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
8505 variables.
8506 (RANGES_SECTION): New.
8507 (dwarf_ranges_buffer): New variable.
8508 (struct comp_unit_head): Add member "die".
8509 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
8510 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
8511 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
8512 (dwarf2_locate_sections): Likewise.
8513 (dwarf2_build_psymtabs): Read .debug_ranges.
8514 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
8515 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
8516 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
8517 Look for DW_AT_ranges and return the bounding box.
8518
8519 2003-01-29 Brian Ford <ford@vss.fsi.com>
8520
8521 * win32-nat.c (cygwin_pid): Removed as unused.
8522 (child_attach): Try fall back to Cygwin pid.
8523
8524 2003-01-29 Jim Blandy <jimb@redhat.com>
8525
8526 * objfiles.h (struct objfile): Doc fix.
8527
8528 2003-01-29 Andrew Cagney <ac131313@redhat.com>
8529
8530 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
8531 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
8532 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
8533 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
8534 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
8535 (FRAME_SAVED_PC): Change to a function with predicate.
8536 * gdbarch.h, gdbarch.c: Re-generate.
8537
8538 2003-01-28 Andrew Cagney <ac131313@redhat.com>
8539
8540 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
8541
8542 * complaints.c (complain): Delete function.
8543 * complaints.h (struct deprecated_complaint): Delete definition.
8544 (complain): Delete declaration.
8545
8546 2003-01-28 Kevin Buettner <kevinb@redhat.com>
8547
8548 * mips-tdep.c (mips_init_extra_frame_info): Return early for
8549 dummy frames.
8550
8551 2003-01-27 Andrew Cagney <ac131313@redhat.com>
8552
8553 * sentinel-frame.h, sentinel-frame.c: New files.
8554 * Makefile.in (frame.o): Update dependencies.
8555 (SFILES): Add sentinel-frame.c.
8556 (sentinel_frame_h): Define.
8557 (COMMON_OBS): Add sentinel-frame.o.
8558 (sentinel-frame.o): Specify dependencies.
8559 * frame.c: Include "sentinel-frame.h".
8560 (frame_register_unwind): Rewrite assuming that there is always a a
8561 ->next frame.
8562 (frame_register, generic_unwind_get_saved_register): Ditto.
8563 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
8564 (create_sentinel_frame, unwind_to_current_frame): New functions.
8565 (get_current_frame): Rewrite using create_sentinel_frame and
8566 unwind_to_current_frame. When possible, always create a frame.
8567 (create_new_frame): Set next to the sentinel frame.
8568 (get_next_frame): Rewrite. Don't go below the level 0 frame.
8569 (deprecated_update_frame_pc_hack): Update the next frame's PC and
8570 ID cache when necessary.
8571 (frame_saved_regs_id_unwind): Use frame_relative_level.
8572 (deprecated_generic_get_saved_register): Use frame_relative_level,
8573 get_frame_saved_regs, get_frame_pc, get_frame_base and
8574 get_next_frame.
8575 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
8576 frame_register.
8577
8578 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
8579
8580 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
8581
8582 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
8583
8584 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
8585 (maintenance_set_profile_cmd): Use error () instead of warning ().
8586
8587 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
8588
8589 * configure.in: Check that -pg works if using --enable-profiling.
8590 Check for monstartup and _mcleanup regardless of --enable-profiling.
8591 * maint.c: Check for monstartup and _mcleanup before using them.
8592 * config.in: Regenerated.
8593 * configure: Regenerated.
8594
8595 2003-01-24 Nick Clifton <nickc@redhat.com>
8596
8597 * Add sh2e support:
8598
8599 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
8600
8601 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
8602 (sh2e_show_regs): New.
8603 (sh_gdbarch_init): Handle bfd_mach_sh2e.
8604 * config/sh/tm-sh.h: Added sh2e to comments.
8605
8606 2003-01-23 Jim Blandy <jimb@redhat.com>
8607
8608 * symfile.c (syms_from_objfile): Don't print the "(no debugging
8609 symbols found)" message here; we haven't checked for a separate
8610 debug info file yet, so we don't know yet.
8611 (symbol_file_add_with_addrs_or_offsets): Print it here, after
8612 we've looked everywhere. Also, there's no need to print a special
8613 message when we're loading the separate debug info file: the one
8614 symbol_file_add prints is fine.
8615
8616 2003-01-23 Alexander Larsson <alexl@redhat.com>
8617 Jim Blandy <jimb@redhat.com>
8618
8619 Add support for executables whose debug info has been separated
8620 out into a separate file, leaving only a link behind.
8621 * objfiles.h (struct objfile): New fields: separate_debug_objfile
8622 and separate_debug_objfile_backlink.
8623 (put_objfile_before): New declaration.
8624 * symfile.c: #include "filenames.h".
8625 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
8626 debug info in a separate file, read that, too. Save the addrs
8627 argument, so we can use it again to read the separated debug info;
8628 syms_from_objfile modifies the table we pass it.
8629 (reread_symbols): After re-reading an objfile, call
8630 reread_separate_symbols to refresh its separate debug info
8631 objfile, if it has one.
8632 (reread_separate_symbols, find_separate_debug_file,
8633 get_debug_link_info, separate_debug_file_exists): New functions.
8634 (debug_file_directory): New global var.
8635 (_initialize_symfile): Initialize debug_file_directory, and
8636 provide the new `set debug-file-directory' command to let the user
8637 change it.
8638 * objfiles.c (free_objfile): If this objfile has its debug info in
8639 a separate objfile, free that one too. If this is itself a
8640 separate debug info objfile, clear our parent's backlink.
8641 (put_objfile_before): New function.
8642 * utils.c (gnu_debuglink_crc32): New function.
8643 * defs.h (gnu_debuglink_crc32): New declaration.
8644 * Makefile.in (symfile.o): Note dependency on "filenames.h".
8645 * configure.in: Handle --with-separate-debug-dir config option.
8646 * acinclude.m4 (AC_DEFINE_DIR): New macro.
8647 * acconfig.h (DEBUGDIR): New macro.
8648 * configure, aclocal.m4, config.in: Regenerated.
8649
8650 2003-01-22 Jim Blandy <jimb@redhat.com>
8651
8652 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
8653 like the old symbol_file_add, but taking new arguments: you can
8654 now pass in either a `struct section_addr_info' list to say where
8655 each section is loaded, or a `struct section_offsets' table. Pass
8656 these new arguments through to syms_from_objfile as appropriate.
8657 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
8658 with the appropriate quiescent values for the new arguments.
8659
8660 * symfile.c: #include "gdb_assert.h".
8661 (syms_from_objfile): Add the ability to pass in a section offset
8662 table directly, as an alternative to the section_addr_info table.
8663 Document arguments better.
8664 (symbol_file_add): Pass extra arguments to syms_from_objfile.
8665 * symfile.h (syms_from_objfile): Update declaration.
8666 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
8667 syms_from_objfile.
8668 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
8669
8670 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
8671
8672 Original patch by Tom Tromey <tromey@cygnus.com> and
8673 Jason Molenda <jmolenda@apple.com>.
8674 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
8675 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
8676 * NEWS: Mention profiling.
8677 * configure.in (--enable-gdbtk): Fix typo.
8678 (--enable-profiling): New. Set PROFILE_CFLAGS.
8679 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
8680 Fill in function.
8681 (profiling_state): New variable.
8682 (mcleanup_wrapper): New function.
8683 (_initialize_maint): Remove NOTYET, fix call to
8684 add_setshow_boolean_cmd for "maint set profile".
8685 * configure: Regenerated.
8686
8687 2003-01-21 Martin M. Hunt <hunt@redhat.com>
8688
8689 * Makefile.in (install-gdbtk): Install PNG images too.
8690
8691 2003-01-21 Andrew Cagney <ac131313@redhat.com>
8692
8693 * exec.c (text_start): Delete global variable.
8694 (exec_file_attach): Make text_start local to the function.
8695 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
8696 * valops.c (hand_function_call): Delete code that handles
8697 BEFORE_TEXT_END and AFTER_TEXT_END.
8698 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
8699 of CALL_DUMMY_LOCATION.
8700 * gdbarch.c: Regenerate.
8701 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
8702 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
8703 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
8704 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
8705 (text_end): Delete extern declaration.
8706
8707 2003-01-21 Andrew Cagney <ac131313@redhat.com>
8708
8709 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
8710 * blockframe.c (backtrace_below_main): Move to "frame.c".
8711 (frame_chain_valid): Delete check for backtrace_below_main.
8712 (_initialize_blockframe): Delete initialization, move ``set
8713 backtrace-below-main'' command to "frame.c".
8714 (do_flush_frames_sfunc): Delete function.
8715 * frame.c: Include "command.h" and "gdbcmd.h".
8716 (frame_type_from_pc): New function.
8717 (create_new_frame): Use frame_type_from_pc.
8718 (legacy_get_prev_frame): New function.
8719 (get_prev_frame): Rewrite. When an old style frame, call
8720 legacy_get_prev_frame. Otherwize, unwind the PC first.
8721 (_initialize_frame): Add ``set backtrace-below-main'' command.
8722 * Makefile.in (frame.o): Update dependencies.
8723
8724 2003-01-19 Andrew Cagney <ac131313@redhat.com>
8725
8726 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
8727 DEPRECATED_REGISTERS_INFO.
8728
8729 2003-01-19 Andrew Cagney <ac131313@redhat.com>
8730
8731 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
8732 Maintainers'. Update `Various Maintainers'.
8733
8734 2003-01-19 Andrew Cagney <ac131313@redhat.com>
8735
8736 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
8737 * gdbarch.sh (POP_FRAME): Change to function with predicate.
8738 Suppress actual parameters when `-'.
8739 * gdbarch.h, gdbarch.c: Regenerate.
8740
8741 2003-01-19 Andrew Cagney <ac131313@redhat.com>
8742
8743 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
8744 code handling dummy frames.
8745
8746 2003-01-19 Andrew Cagney <ac131313@redhat.com>
8747
8748 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
8749 (struct frame_unwind): Add field pop.
8750 * frame.h (frame_pop): Declare.
8751 * frame.c (frame_saved_regs_pop): New function.
8752 (trad_frame_unwinder): Add frame_saved_regs_pop.
8753 (frame_pop): New function.
8754 * dummy-frame.c (dummy_frame_pop): New function.
8755 (discard_innermost_dummy): New function.
8756 (generic_pop_dummy_frame): Use discard_innermost_dummy.
8757 (dummy_frame_unwind): Add dummy_frame_pop.
8758 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
8759 * valops.c (hand_function_call): Ditto.
8760 * stack.c (return_command): Ditto.
8761
8762 2003-01-18 Andrew Cagney <ac131313@redhat.com>
8763
8764 * cris-tdep.c: Fix function declaration indentation.
8765 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
8766 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
8767 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
8768 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
8769 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
8770 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
8771
8772 2003-01-18 Michael Chastain <mec@shout.net>
8773
8774 * README (Unpacking and Installation -- quick overview):
8775 Warn against ".../gdb-5.3/gdb/configure".
8776
8777 2003-01-18 Andrew Cagney <ac131313@redhat.com>
8778
8779 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
8780 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
8781 (struct frame_unwind): Declare opaque.
8782 (dummy_frame_p): Declare function.
8783 * dummy-frame.c (dummy_frame_id_unwind): Make static.
8784 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
8785 * dummy-frame.c: Include "frame-unwind.h".
8786 (dummy_frame_p): New function.
8787 (dummy_frame_unwind): New variable.
8788 * frame.c: Include "frame-unwind.h".
8789 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
8790 to use the new unwind field.
8791 (set_unwind_by_pc): Delete function.
8792 (create_new_frame, get_prev_frame): Set unwind field using
8793 frame_unwind_find_by_pc.
8794 (trad_frame_unwind, trad_frame_unwinder): New variables.
8795 * frame.h (trad_frame_unwind): Declare variable.
8796 (frame_id_unwind_ftype): Delete declaration.
8797 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
8798 (struct frame_unwind): Declare opaque.
8799 (struct frame_info): Replace the fields id_unwind, pc_unwind and
8800 register_unwind with a single unwind pointer.
8801 * frame-unwind.h, frame-unwind.c: New files.
8802 * Makefile.in (SFILES): Add frame-unwind.c.
8803 (frame_unwind_h): Define.
8804 (COMMON_OBS): Add frame-unwind.o.
8805 (frame-unwind.o): Specify dependencies.
8806 (frame.o, dummy-frame.o): Update dependencies.
8807
8808 2003-01-18 Andrew Cagney <ac131313@redhat.com>
8809
8810 * ada-valprint.c: Eliminate PTR.
8811 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
8812 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
8813 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
8814 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
8815 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
8816 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
8817 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8818
8819 2003-01-17 Andrew Cagney <ac131313@redhat.com>
8820
8821 * main.c (captured_main): Don't use PTR.
8822 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
8823 * gdbtypes.c (lookup_primitive_typename): Ditto.
8824 (lookup_struct_elt_type): Ditto.
8825 * f-valprint.c (info_common_command): Ditto.
8826 (list_all_visible_commons): Ditto.
8827 * jv-typeprint.c (java_type_print_base): Ditto.
8828
8829 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
8830 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
8831 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
8832 i386-interix-nat.c and i386-interix-tdep.c. Rename
8833 m68klinux-nat.c and m68klinux-tdep.c. Rename
8834 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
8835 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
8836 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
8837 * main.c (captured_main): Use xfree, not free.
8838
8839 2003-01-16 Andrew Cagney <ac131313@redhat.com>
8840
8841 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
8842 ID back using a parameter.
8843 * frame.c (frame_id_unwind): Update call.
8844 (frame_saved_regs_id_unwind): Update.
8845 * dummy-frame.c (dummy_frame_id_unwind): Update function.
8846 * dummy-frame.h (struct frame_id): Add opaque declaration.
8847 (dummy_frame_id_unwind): Update declaration.
8848
8849 2003-01-15 Andrew Cagney <ac131313@redhat.com>
8850
8851 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
8852
8853 2003-01-15 Stephen P. Smith <ischis2@cox.net>
8854
8855 * MAINTAINERS (Stephen P. Smith): Updated email address.
8856
8857 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
8858
8859 Fix PR gdb/898
8860 * breakpoint.c (until_break_command): Add new argument. Use it to
8861 decide whether to stop only at the current frame or not.
8862 * breakpoint.h (until_break_command): Update prototype.
8863 * infcmd.c (until_command): Add new argument to until_break_command
8864 call.
8865 (advance_command): New function.
8866 (_initialize_infcmd): Update help string for 'until' command.
8867 Add new 'advance' command.
8868
8869 2003-01-14 David Carlton <carlton@math.stanford.edu>
8870
8871 * linespec.c (decode_line_1): Normalize comments.
8872 (set_flags): Ditto.
8873 (locate_first_half): Ditto.
8874 (decode_compound): Ditto.
8875 (symtab_from_filename): Ditto.
8876 (decode_all_digits): Ditto.
8877 (decode_dollar): Ditto.
8878 (find_methods): Ditto.
8879 (find_toplevel_char): Ditto.
8880
8881 2003-01-13 Andrew Cagney <ac131313@redhat.com>
8882
8883 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
8884 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
8885 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
8886 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
8887 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
8888 * language.c, language.h, m32r-tdep.c: Update copyright.
8889 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
8890 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
8891 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
8892 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
8893 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
8894 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
8895
8896 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
8897
8898 * stabsread.h (process_later, resolve_cfront_continuation):
8899 Obsolete.
8900 Update copyright years.
8901 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
8902 Update copyright year.
8903 * dbxread.c(struct cont_elem): Obsolete.
8904 (process_later, process_now): Obsolete functions.
8905 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
8906 Update copyright year.
8907 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
8908 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
8909 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
8910 (parse_partial_symbols): Obsolete cfront support.
8911 * stabsread.c
8912 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
8913 macros.
8914 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
8915 read_cfront_baseclasses, read_cfront_member_functions,
8916 resolve_cfront_continuation,read_cfront_static_fields,
8917 copy_cfront_struct_fields): Obsolete functions.
8918 (define_symbol, read_one_struct_field): Obsolete cfront support.
8919 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
8920 Update Copyright year.
8921
8922 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
8923
8924 * stack.c (print_frame_info, print_stack_frame_base_stub,
8925 print_stack_frame_base, show_and_print_stack_frame_stub,
8926 show_and_print_stack_frame, print_only_stack_frame_stub,
8927 print_only_stack_frame): Delete functions.
8928 (print_stack_frame_stub): Call print_frame_info instead of
8929 print_frame_info_base.
8930 (print_frame_info_base): Rename to print_frame_info.
8931 (backtrace_command_1): Call print_frame_info, instead of
8932 print_frame_info_base.
8933 (current_frame_command): Call print_stack_frame, instead of
8934 print_only_stack_frame.
8935 (frame_command): Call print_stack_frame, instead of
8936 show_and_print_stack_frame.
8937 (up_command): Ditto.
8938 (down_command): Ditto.
8939 * frame.h (print_only_stack_frame): Delete prototype.
8940 * infrun.c (normal_stop): Call print_stack_frame, instead of
8941 show_and_print_stack_frame.
8942 * thread.c (info_threads_command): Call print_stack_frame, instead
8943 of print_only_stack_frame.
8944
8945 2003-01-13 Andrew Cagney <ac131313@redhat.com>
8946
8947 * README (Graphical interface to GDB): Update URL. Point at
8948 gdb/links/.
8949
8950 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
8951 version match.
8952
8953 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
8954
8955 * symtab.c (find_pc_sect_line): Don't consider end-of-function
8956 lines.
8957
8958 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
8959
8960 * thread-db.c (attach_thread): Prototype.
8961 (struct private_thread_info): Remove lwpid. Add thread handle (th),
8962 thread information (ti), and valid flags (th_valid, ti_valid).
8963 (attach_thread): Move target_pid_to_str call to after the thread
8964 is added to GDB's list. Initialize the cache.
8965 (thread_get_info_callback, thread_db_map_id2thr)
8966 (thread_db_get_info): New functions.
8967 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
8968 (thread_db_store_registers, thread_db_thread_alive)
8969 (thread_db_get_thread_local_address): Use them.
8970 (thread_db_pid_to_str): Likewise. Return "Missing" instead
8971 of calling error() for threads in unknown state.
8972
8973 (clear_lwpid_callback): New function.
8974 (thread_db_resume): Use it to clear the cache.
8975
8976 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
8977
8978 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
8979 (resume_callback): Remove dead code.
8980
8981 2003-01-13 Andrew Cagney <ac131313@redhat.com>
8982
8983 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
8984 predicate.
8985 * gdbarch.h, gdbarch.c: Regenerate.
8986 * stack.c (frame_info): Only initialize the saved registers when
8987 FRAME_INIT_SAVED_REGS_P.
8988 * frame.c (frame_saved_regs_register_unwind): Assert
8989 FRAME_INIT_SAVED_REGS_P.
8990 (deprecated_generic_get_saved_register): Ditto.
8991
8992 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
8993
8994 * source.c (openp): Squelch warning about "filename".
8995
8996 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
8997
8998 * source.c (openp): If the file does not exist don't necessarily
8999 search the path.
9000
9001 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9002
9003 Fix PR gdb/872.
9004 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
9005 (integer_types_same_name_p): New function.
9006 (rank_one_type): Use it.
9007 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
9008
9009 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9010
9011 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
9012 variables.
9013 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
9014 * configure.in: Add --with-sysroot.
9015 * configure: Regenerated.
9016 * main.c (gdb_sysroot): New variable.
9017 (captured_main): Initialize gdb_sysroot.
9018 * defs.h (gdb_sysroot): New extern declaration.
9019 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
9020
9021 2003-01-12 Michael Chastain <mec@shout.net>
9022
9023 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
9024
9025 2003-01-12 Michael Chastain <mec@shout.net>
9026
9027 * top.c (print_gdb_version): Bump copyright year to 2003.
9028
9029 2003-01-12 David Carlton <carlton@bactrian.org>
9030
9031 * linespec.c (symtab_from_filename): Rename variable 's' to
9032 'file_symtab'.
9033
9034 2003-01-12 Andrew Cagney <ac131313@redhat.com>
9035
9036 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
9037 dummy frame.
9038 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
9039
9040 2003-01-12 Andrew Cagney <ac131313@redhat.com>
9041
9042 * d10v-tdep.c: Include "gdb_assert.h".
9043 (d10v_store_return_value): Rewrite to match current interface.
9044 (d10v_extract_struct_value_address): Ditto.
9045 (d10v_extract_return_value): Ditto.
9046 (d10v_gdbarch_init): Set store_restore_value,
9047 extract_struct_value_address and extract_return_value.
9048
9049 2003-01-12 J. Brobecker <brobecker@gnat.com>
9050
9051 * hpread.c (set_namestring): New procedure replacing the
9052 SET_NAMESTRING macro.
9053 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
9054 by calls to set_namestring.
9055
9056 2003-01-11 J. Brobecker <brobecker@gnat.com>
9057
9058 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
9059 a compilation warning.
9060 (hpread_process_one_debug_symbol): Likewise.
9061
9062 2003-01-10 David Carlton <carlton@math.stanford.edu>
9063
9064 * linespec.c (decode_line_1): Rename variable 's' to
9065 'file_symtab'.
9066 (decode_all_digits): Rename argument 's' to 'file_symtab'.
9067 (decode_dollar): Ditto.
9068 (decode_variable): Ditto.
9069 (symbol_found): Ditto.
9070
9071 2003-01-09 Michael Chastain <mec@shout.net>
9072
9073 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
9074
9075 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
9076
9077 * win32-nat.c (set_process_privilege): New function.
9078 (child_attach): Call set_process_privilege() to enable the
9079 SE_DEBUG_NAME user privilege if available in process token.
9080
9081 2003-01-10 J. Brobecker <brobecker@gnat.com>
9082
9083 * hpread.c (hpread_process_one_debug_symbol): Fix a small
9084 compilation error in the previous revision.
9085
9086 2003-01-09 David Carlton <carlton@math.stanford.edu>
9087
9088 * linespec.c: Update copyright.
9089
9090 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
9091
9092 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
9093 than inferior_ptid.
9094 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
9095
9096 2003-01-09 Andrew Cagney <ac131313@redhat.com>
9097
9098 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
9099 Update comments.
9100 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
9101 (frame_saved_regs_zalloc): Update.
9102 (frame_saved_regs_register_unwind): Update.
9103 (create_new_frame): Update.
9104 (get_prev_frame): Update.
9105 (frame_extra_info_zalloc): Update.
9106 (deprecated_get_frame_saved_regs): Update.
9107 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
9108 * cris-tdep.c: Update comment.
9109
9110 * somsolib.h: Fix function indentation.
9111 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
9112 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
9113 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
9114 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
9115 * somsolib.c, inftarg.c: Remove assignment in if conditional.
9116
9117 * infrun.c (follow_fork): Use ISO C definition.
9118 * expprint.c (print_subexp): Use xfree instead of free.
9119 * charset.c: Include "gdb_string.h" instead of <string.h>.
9120 (register_iconv_charsets): Use ISO C definition.
9121 (host_charset, target_charset): Ditto.
9122 * Makefile.in (charset.o): Update dependencies.
9123 (mi-cmd-env.o): Update dependencies.
9124
9125 2003-01-08 Andrew Cagney <cagney@redhat.com>
9126
9127 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
9128 get_frame_base.
9129
9130 2003-01-08 Andrew Cagney <ac131313@redhat.com>
9131
9132 * gdb_mbuild.sh: Add --keep option. When specified, keep the
9133 build directories. Save edited gdb output in Mbuild.log. If a
9134 build fails, remove any final GDB executable.
9135
9136 2003-01-08 Andrew Cagney <ac131313@redhat.com>
9137
9138 * gdb_mbuild.sh: Edit the output of `maint print architecture'
9139 replacing hex constants with function names and stripping leading
9140 file name directory prefixes.
9141
9142 2003-01-08 Andrew Cagney <cagney@redhat.com>
9143
9144 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
9145 get_frame_base.
9146
9147 2003-01-08 David Carlton <carlton@math.stanford.edu>
9148
9149 * linespec.c (decode_line_1): Move code into decode_variable.
9150 (decode_variable): New function.
9151
9152 2003-01-08 Andrew Cagney <ac131313@redhat.com>
9153
9154 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
9155
9156 2003-01-08 Andrew Cagney <cagney@redhat.com>
9157
9158 * cris-tdep.c (cris_frame_init_saved_regs): Use
9159 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
9160 saved_regs buffer.
9161 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9162 (sh64_nofp_frame_init_saved_regs): Ditto.
9163 (sh_fp_frame_init_saved_regs): Ditto.
9164 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
9165 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
9166 * mcore-tdep.c (analyze_dummy_frame): Ditto.
9167 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9168
9169 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
9170
9171 * minsyms.c (lookup_minimal_symbol): Update comment.
9172 (lookup_minimal_symbol_text): Update comment. Use the hash table.
9173 (lookup_minimal_symbol_solib_trampoline): Likewise.
9174
9175 2003-01-08 Andrew Cagney <cagney@redhat.com>
9176
9177 * d10v-tdep.c (d10v_init_extra_frame_info): Use
9178 frame_relative_level.
9179
9180 * alpha-tdep.c: Use get_frame_extra_info.
9181 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9182 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
9183 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
9184 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
9185
9186 * alpha-tdep.c: Use get_next_frame.
9187 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9188 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
9189 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
9190 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
9191 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
9192 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
9193 * xstormy16-tdep.c: Ditto.
9194
9195 2003-01-07 Andrew Cagney <cagney@redhat.com>
9196
9197 * alpha-tdep.c: Use get_frame_base.
9198 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9199 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
9200 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
9201 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
9202 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
9203 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
9204 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
9205 * config/sparc/tm-sparc.h: Ditto.
9206
9207 2003-01-07 Andrew Cagney <cagney@redhat.com>
9208
9209 * frame.c (deprecated_get_frame_context): New function.
9210 (deprecated_set_frame_context): New function.
9211 * frame.h (deprecated_get_frame_context): Declare.
9212 (deprecated_set_frame_context): Declare.
9213 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
9214 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
9215
9216 2003-01-07 Andrew Cagney <cagney@redhat.com>
9217
9218 * frame.c (deprecated_set_frame_next_hack): New function.
9219 (deprecated_set_frame_prev_hack): New function.
9220 * frame.h (deprecated_set_frame_next_hack): Declare.
9221 (deprecated_set_frame_prev_hack): Declare.
9222 * mcore-tdep.c (analyze_dummy_frame): Use
9223 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
9224 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9225
9226 2003-01-07 David Carlton <carlton@math.stanford.edu>
9227
9228 * linespec.c (decode_line_1): Move code into decode_dollar.
9229 (decode_dollar): New function.
9230
9231 2003-01-07 Andrew Cagney <cagney@redhat.com>
9232
9233 * arm-tdep.c (arm_init_extra_frame_info): Use
9234 deprecated_update_frame_base_hack.
9235 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
9236 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9237 (fix_frame_pointer): Ditto.
9238 (mn10300_analyze_prologue): Ditto.
9239
9240 2003-01-07 Andrew Cagney <cagney@redhat.com>
9241
9242 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
9243 extra_info using frame_extra_info_zalloc.
9244 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9245 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
9246 (sh64_init_extra_frame_info): Ditto.
9247 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
9248 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
9249 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
9250 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
9251 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
9252 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
9253 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
9254 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
9255 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
9256 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
9257 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9258 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
9259
9260 * mn10300-tdep.c (analyze_dummy_frame): Use
9261 deprecated_set_frame_extra_info_hack.
9262 * mcore-tdep.c (analyze_dummy_frame): Ditto.
9263
9264 2003-01-07 J. Brobecker <brobecker@gnat.com>
9265
9266 * mdebugread.c (parse_symbol): Skip stProc entries which storage
9267 class is not scText. These do not define "real" procedures.
9268 (parse_partial_symbols): Likewise.
9269
9270 2003-01-06 Michael Snyder <msnyder@redhat.com>
9271
9272 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
9273
9274 2003-01-06 Andrew Cagney <ac131313@redhat.com>
9275
9276 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
9277 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
9278 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
9279 deprecated_frame_xmalloc_with_cleanup.
9280 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
9281 deprecated_frame_xmalloc.
9282 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
9283 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
9284
9285 2003-01-06 Andrew Cagney <cagney@redhat.com>
9286
9287 * x86-64-linux-tdep.c: Include "osabi.h".
9288 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
9289
9290 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
9291
9292 2003-01-06 Andrew Cagney <cagney@redhat.com>
9293
9294 * MAINTAINERS (Target Instruction Set Architectures): Update
9295 arm-elf. Can be built with -Werror, has been multiarched.
9296
9297 * value.h (unpack_long): Make buffer parameter constant.
9298 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
9299 * scm-lang.h (scm_parse): Ditto.
9300 * defs.h (extract_typed_address, extract_address): Ditto.
9301 (extract_long_unsigned_integer): Ditto.
9302 * inferior.h (unsigned_pointer_to_address): Ditto.
9303 (signed_pointer_to_address): Ditto.
9304 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
9305 * gdbarch.h, gdbarch.c: Regenerate.
9306 * findvar.c (extract_long_unsigned_integer): Update.
9307 (extract_address): Update.
9308 (extract_typed_address): Update.
9309 (unsigned_pointer_to_address): Update.
9310 * values.c (unpack_long): Update.
9311 (unpack_double): Update.
9312 (unpack_pointer): Update.
9313 (unpack_field_as_long): Update.
9314 * d10v-tdep.c (d10v_pointer_to_address): Update.
9315 * avr-tdep.c (avr_pointer_to_address): Update.
9316 * scm-lang.c (scm_unpack): Update.
9317 * findvar.c (signed_pointer_to_address): Update.
9318
9319 2003-01-06 Michal Ludvig <mludvig@suse.cz>
9320
9321 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
9322 since it is in i386-tdep.c.
9323
9324 2003-01-06 J. Brobecker <brobecker@gnat.com>
9325
9326 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
9327 failure introduced in the previous change.
9328
9329 2003-01-05 Michael Chastain <mec@shout.net>
9330
9331 * README: Remove references to deleted remote-*.c files:
9332 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
9333 remote-nrom.c, remote-os9k.c, remote-udi.c.
9334
9335 2003-01-05 Mark Kettenis <kettenis@gnu.org>
9336
9337 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
9338 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
9339 i386_get_longjmp_target.
9340
9341 2003-01-05 Andrew Cagney <ac131313@redhat.com>
9342
9343 * arm-tdep.c (prologue_cache): Change to a pointer.
9344 (_initialize_arm_tdep): Allocate prologue_cache.
9345 (check_prologue_cache): Update.
9346 (save_prologue_cache): Update.
9347 (arm_gdbarch_init): Update.
9348
9349 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9350
9351 * stabsread.c (update_method_name_from_physname): Call complaint()
9352 instead of error.
9353
9354 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9355
9356 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
9357 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
9358 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
9359
9360 * blockframe.c: Include "gdbcmd.h" and "command.h".
9361 (backtrace_below_main): New variable.
9362 (file_frame_chain_valid, func_frame_chain_valid)
9363 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
9364 (generic_func_frame_chain_valid): Remove functions.
9365 (frame_chain_valid, do_flush_frames_sfunc): New functions.
9366 (_initialize_blockframe): New function.
9367 * Makefile.in (blockframe.o): Update dependencies.
9368 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
9369 comment. Call frame_chain_valid ().
9370 * frame.h: Remove old prototypes. Add prototype for
9371 frame_chain_valid and update comments to match.
9372 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
9373 Remove old comment.
9374 * gdbarch.h: Regenerated.
9375 * gdbarch.c: Regenerated.
9376
9377 * alpha-tdep.c (alpha_gdbarch_init): Don't call
9378 set_gdbarch_frame_chain_valid.
9379 * avr-tdep.c (avr_gdbarch_init): Likewise.
9380 * cris-tdep.c (cris_gdbarch_init): Likewise.
9381 * frv-tdep.c (frv_gdbarch_init): Likewise.
9382 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
9383 * i386-tdep.c (i386_svr4_init_abi): Likewise.
9384 (i386_nw_init_abi): Likewise.
9385 (i386_gdbarch_init): Likewise.
9386 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
9387 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
9388 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
9389 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
9390 * mips-tdep.c (mips_gdbarch_init): Likewise.
9391 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
9392 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
9393 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9394 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9395 * s390-tdep.c (s390_gdbarch_init): Likewise.
9396 * sh-tdep.c (sh_gdbarch_init): Likewise.
9397 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
9398 * v850-tdep.c (v850_gdbarch_init): Likewise.
9399 * vax-tdep.c (vax_gdbarch_init): Likewise.
9400 * x86-64-tdep.c (x86_64_init_abi): Likewise.
9401
9402 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
9403 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
9404 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
9405 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
9406 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
9407 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
9408 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
9409 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
9410
9411 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9412
9413 * Makefile.in (acconfig_h): Remove incorrect macro.
9414 (config_h): Define.
9415 (osabi.o): Update dependencies.
9416 * configure.tgt: Set gdb_osabi based on target triplet.
9417 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
9418 * configure: Regenerated.
9419 * config.in: Regenerated.
9420 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
9421 (GDB_OSABI_DEFAULT): Define if not already defined.
9422 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
9423 (set_osabi_string): New variables.
9424 (gdbarch_register_osabi): Add new OS ABI to
9425 gdb_osabi_available_names.
9426 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
9427 (set_osabi, show_osabi): New functions.
9428 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
9429
9430 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9431
9432 * arch-utils.c (gdbarch_info_init): Set osabi to
9433 GDB_OSABI_UNINITIALIZED.
9434 * gdbarch.sh: Add osabi to struct gdbarch and to struct
9435 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
9436 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
9437 * gdbarch.c: Regenerated.
9438 * gdbarch.h: Regenerated.
9439 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
9440 there's no BFD.
9441 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
9442 * osabi.h (enum gdb_osabi): Move to defs.h.
9443 (gdbarch_init_osabi): Update prototype.
9444 * defs.h (enum gdb_osabi): Moved here.
9445 * Makefile.in: Update dependencies.
9446
9447 * alpha-tdep.h: Don't include "osabi.h".
9448 (struct gdbarch_tdep): Remove osabi member.
9449 * alpha-tdep.c: Include "osabi.h".
9450 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9451 iterate over arches. Update call to gdbarch_init_osabi.
9452 (alpha_dump_tdep): Don't dump osabi.
9453 * alpha-linux-tdep.c: Include "osabi.h".
9454 * alpha-osf1-tdep.c: Include "osabi.h".
9455 * alphafbsd-tdep.c: Include "osabi.h".
9456 * alphanbsd-tdep.c: Include "osabi.h".
9457
9458 * arm-tdep.h: Don't include "osabi.h".
9459 (struct gdbarch_tdep): Remove osabi member.
9460 * arm-tdep.c: Include "osabi.h".
9461 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9462 iterate over arches. Update call to gdbarch_init_osabi.
9463 (arm_dump_tdep): Don't dump osabi.
9464 * arm-linux-tdep.c: Include "osabi.h".
9465 * armnbsd-tdep.c: Include "osabi.h".
9466
9467 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
9468 Update call to gdbarch_init_osabi.
9469
9470 * i386-tdep.h: Don't include "osabi.h".
9471 (struct gdbarch_tdep): Remove osabi member.
9472 * i386-tdep.c: Include "osabi.h".
9473 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9474 iterate over arches. Update call to gdbarch_init_osabi.
9475 (i386_dump_tdep): Don't dump osabi.
9476 * i386-linux-tdep.c: Include "osabi.h".
9477 * i386-sol2-tdep.c: Include "osabi.h".
9478 * i386bsd-tdep.c: Include "osabi.h".
9479 * i386gnu-tdep.c: Include "osabi.h".
9480 * i386ly-tdep.c: Include "osabi.h".
9481 * i386nbsd-tdep.c: Include "osabi.h".
9482 * i386obsd-tdep.c: Include "osabi.h".
9483
9484 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
9485 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9486 check osabi when iterating over arches. Update call to
9487 gdbarch_init_osabi.
9488 (mips_dump_tdep): Don't dump osabi.
9489
9490 * ns32k-tdep.h: Don't include "osabi.h".
9491 (struct gdbarch_tdep): Remove.
9492 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
9493 gdbarch_lookup_osabi. Don't iterate over arches. Don't
9494 allocate tdep. Update call to gdbarch_init_osabi.
9495 (ns32k_dump_tdep): Remove.
9496 (_initialize_ns32k_tdep): Update call to gdbarch_register.
9497 * ns32knbsd-tdep.c: Include "osabi.h".
9498
9499 * ppc-tdep.h: Don't include "osabi.h".
9500 (struct gdbarch_tdep): Remove osabi member.
9501 * rs6000-tdep.c: Include "osabi.h".
9502 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
9503 osabi when iterating over arches. Update call to
9504 gdbarch_init_osabi.
9505 (rs6000_dump_tdep): Don't dump osabi.
9506 * ppc-linux-tdep.c: Include "osabi.h".
9507 * ppcnbsd-tdep.c: Include "osabi.h".
9508
9509 * sh-tdep.h: Don't include "osabi.h".
9510 (struct gdbarch_tdep): Remove osabi member.
9511 * sh-tdep.c: Include "osabi.h".
9512 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9513 iterate over arches. Update call to gdbarch_init_osabi.
9514 (sh_dump_tdep): Don't dump osabi.
9515 * shnbsd-tdep.c: Include "osabi.h".
9516
9517 * sparc-tdep.c: Include "osabi.h".
9518 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9519 iterate over arches. Update call to gdbarch_init_osabi.
9520 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
9521 tdep structure.
9522
9523 * vax-tdep.h: Don't include "osabi.h".
9524 (struct gdbarch_tdep): Remove.
9525 * vax-tdep.c: Include "osabi.h".
9526 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9527 iterate over arches. Don't allocate tdep. Update call
9528 to gdbarch_init_osabi.
9529 (vax_dump_tdep): Remove.
9530 (_initialize_vax_tdep): Update call to gdbarch_register.
9531
9532 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9533
9534 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
9535 entirely.
9536 (breakpoint_re_set_one): Don't fetch the value for a disabled
9537 watchpoint.
9538
9539 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9540
9541 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
9542 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
9543 (COERCE_FLOAT_TO_DOUBLE): Remove.
9544 * gdbarch.c: Regenerate.
9545 * gdbarch.h: Regenerate.
9546 * Makefile.in: Remove value_h from gdbarch_h.
9547 * valops.c (coerce_float_to_double): New variable.
9548 (default_coerce_float_to_double): Remove.
9549 (standard_coerce_float_to_double): Remove.
9550 (value_arg_coerce): Use coerce_float_to_double.
9551 (_initialize_valops): Add "set coerce-float-to-double".
9552 * value.h (default_coerce_float_to_double): Remove prototype.
9553 (standard_coerce_float_to_double): Remove prototype.
9554
9555 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
9556 prototyped.
9557 * mdebugread.c (parse_symbol): Likewise.
9558 * stabsread.c (define_symbol): Mark all functions as prototyped.
9559
9560 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
9561 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
9562 set_gdbarch_coerce_float_to_double.
9563 * arm-tdep.c (arm_gdbarch_init): Likewise.
9564 * frv-tdep.c (frv_gdbarch_init): Likewise.
9565 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
9566 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
9567 * mips-tdep.c (mips_gdbarch_init): Likewise.
9568 (mips_coerce_float_to_double): Remove.
9569 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9570 (rs6000_coerce_float_to_double): Remove.
9571 * s390-tdep.c (s390_gdbarch_init): Likewise.
9572 * sh-tdep.c (sh_gdbarch_init): Likewise.
9573 (sh_coerce_float_to_double): Remove.
9574 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
9575 (sparc_coerce_float_to_double): Remove.
9576 * v850-tdep.c (v850_gdbarch_init): Likewise.
9577 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
9578 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9579 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
9580 (hppa_coerce_float_to_double): Remove prototype.
9581 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9582
9583 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9584
9585 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
9586
9587 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9588
9589 Suggested by Stewart Brown <sb24@avaya.com>:
9590 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
9591 in recursive calls. Handle TYPE_CODE_TYPEDEF.
9592 (c_type_print_varspec_suffix): Likewise.
9593
9594 2003-01-04 Mark Kettenis <kettenis@gnu.org>
9595
9596 * configure.in: Don't set and AC_SUBST SUBDIRS.
9597 * configure: Regenerated.
9598
9599 * configure.in: Remove code dealing with shared libraries.
9600 * Makefile.in: Remove HLDFLAGS and HLDENV.
9601 * configure: Regenerated.
9602
9603 2003-01-04 Andrew Cagney <ac131313@redhat.com>
9604
9605 * frame.c (deprecated_frame_xmalloc): New function.
9606 (deprecated_set_frame_saved_regs_hack): New function.
9607 (deprecated_set_frame_extra_info_hack): New function.
9608 * frame.h (deprecated_frame_xmalloc): Declare.
9609 (deprecated_set_frame_saved_regs_hack): Declare.
9610 (deprecated_set_frame_extra_info_hack): Declare.
9611
9612 2003-01-04 Mark Kettenis <kettenis@gnu.org>
9613
9614 * configure.in: Move code that provides the --enable-gdbtk option
9615 right after the code that handles the --enable-tui option, and
9616 polish it somewhat.
9617 * configure: Regenerated.
9618
9619 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
9620 AC_CHECK_FUNCS and remove the old check for pread64.
9621 * acinclude.m4 (AC_GNU_SOURCE): New macro.
9622 * acconfig.h (_GNU_SOURCE): Add.
9623 (HAVE_PREAD64): Remove.
9624 * configure, aclocal.m4, config.in: Regenerated.
9625
9626 2003-01-03 Andrew Cagney <ac131313@redhat.com>
9627
9628 * alpha-tdep.c: Use get_frame_saved_regs.
9629 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9630 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
9631 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
9632 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
9633 * vax-tdep.c, xstormy16-tdep.c: Ditto.
9634
9635 2003-01-03 Mark Kettenis <kettenis@gnu.org>
9636
9637 * configure.in: Remove all use of the SUBDIRS variable; add
9638 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
9639 code providing the --enable-multi-ice option, and move it right in
9640 front of the code that checks whether gdbserver is supported.
9641 Polish that too.
9642 * configure: Regenerated.
9643 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
9644 @SUBDIRS@.
9645
9646 2003-01-03 Andrew Cagney <cagney@redhat.com>
9647
9648 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
9649 * avr-tdep.c, cris-tdep.c: Ditto.
9650 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
9651 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
9652
9653 2003-01-03 Mark Kettenis <kettenis@gnu.org>
9654
9655 * configure.in: Remove --enable-netrom option.
9656 * configure: Regenerated.
9657
9658 2003-01-03 Mark Kettenis <kettenis@gnu.org>
9659
9660 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
9661 declaration for `struct re_pattern_buffer' instead.
9662 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
9663
9664 2003-01-03 J. Brobecker <brobecker@gnat.com>
9665
9666 * mdebugread.c (parse_symbol): Count until the stEnd matching
9667 the structure name.
9668
9669 2003-01-02 Mark Kettenis <kettenis@gnu.org>
9670
9671 * configure.in: Remove --with-cpu option.
9672 subscripts. Remove evil changequotes here.
9673 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
9674 * config.in, configure: Regenerated.
9675
9676 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
9677 * configure.in: Cleanup section that sources GDB and BFD configure
9678 subscripts. Remove evil changequotes here.
9679 * config.in, configure: Regenerated.
9680
9681 2003-01-02 Andrew Cagney <ac131313@redhat.com>
9682
9683 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
9684 frame accessor methods.
9685 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9686 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
9687 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
9688 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
9689 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
9690 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
9691 * z8k-tdep.c: Ditto.
9692
9693 2003-01-02 Mark Kettenis <kettenis@gnu.org>
9694
9695 * configure.in: Remove UI_OUT configuration code.
9696 * ada-lang.c: Update assuming UI_OUT is always true.
9697 * Makefile.in (UIOUT_CFLAGS): Remove.
9698 * configure: Regenerated.
9699 * TODO: Remove blurb about elimination of -DUI_OUT.
9700
9701 * configure.in: Move code that provides the --enable-gdbcli,
9702 --enable-gdbmi options right before the code that handles the
9703 --enable-tui option. Polish a bit.
9704 * configure: Regenerated.
9705
9706 * configure.in: Rewrite check for GNU regex and the
9707 --without-included regex option, and move it into the "Checks for
9708 library functions" section. This makes us use the system regex
9709 again by default on systems with version 2 of the GNU C library.
9710 This was apparently broken.
9711 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
9712 * acconfig.h (USE_INCLUDED_REGEX): Remove.
9713 * config.in, configure: Regenerated.
9714
9715 * configure.in: Move code that provides the --enable-tui option
9716 before the "Checks for libraries" section. Polish the code
9717 somewhat and set need_curses to yes if we build the TUI. Rewrite
9718 code that looks for a library providing termcap functionality to
9719 match more closely what's done in the Readline library, and move
9720 it into to the "Checks for libraries" section.
9721 * configure: Regenerated.
9722 * Makefile.in (TERMCAP): Remove variable.
9723 * config/i386/go32.mh (TERMCAP): Remove variable.
9724
9725 2003-01-02 Andrew Cagney <ac131313@redhat.com>
9726
9727 * MAINTAINERS: Mention gdb_mbuild.sh.
9728 * gdb_mbuild.sh: Rewrite.
9729
9730 2003-01-02 Mark Kettenis <kettenis@gnu.org>
9731
9732 * configure.in: Fix typo in last change.
9733 * config.in, configure: Regenerated.
9734
9735 2003-01-02 Andrew Cagney <ac131313@redhat.com>
9736
9737 * valarith.c (value_binop): Delete obsolete code and comments.
9738 * configure.host: Ditto.
9739 * buildsym.h (make_blockvector): Ditto.
9740 * buildsym.c (make_blockvector): Ditto.
9741 * defs.h (enum language): Ditto.
9742 (chill_demangle): Ditto.
9743 * elfread.c (elf_symtab_read): Ditto.
9744 * dwarfread.c (CHILL_PRODUCER): Ditto.
9745 (set_cu_language): Ditto.
9746 (handle_producer): Ditto.
9747 * expprint.c (print_subexp): Ditto.
9748 * gdbtypes.c (chill_varying_type): Ditto.
9749 * gdbtypes.h (builtin_type_chill_bool): Ditto.
9750 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
9751 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
9752 (chill_varying_type): Ditto.
9753 * language.h (_LANG_chill): Ditto.
9754 * language.c (binop_result_type, integral_type): Ditto.
9755 (character_type, string_type, structured_type): Ditto.
9756 (lang_bool_type, binop_type_check): Ditto.
9757 * stabsread.h (os9k_stabs): Ditto.
9758 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
9759 (define_symbol, read_type, read_struct_fields): Ditto.
9760 (read_array_type, read_enum_type, read_huge_number): Ditto.
9761 (read_range_type, start_stabs): Ditto.
9762 * symfile.c (init_filename_language_table): Ditto.
9763 (add_psymbol_with_dem_name_to_list): Ditto.
9764 * symtab.c (symbol_init_language_specific): Ditto.
9765 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
9766 * symtab.h (struct general_symbol_info): Ditto.
9767 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
9768 * typeprint.c (typedef_print): Ditto.
9769 * utils.c (fprintf_symbol_filtered): Ditto.
9770 * valops.c (value_cast, search_struct_field, value_slice): Delete
9771 obsolete code.
9772 (varying_to_slice): Delete function.
9773 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
9774 (varying_to_slice): Delete declaration.
9775 * MAINTAINERS: Update.
9776
9777 2003-01-02 Mark Kettenis <kettenis@gnu.org>
9778
9779 * configure.in: Reorganize "Checks for library functions section"
9780 a bit. Remove check for `btowc' and `isascii' functions.
9781 * configure: Regenerated.
9782
9783 * acconfig.h (_MSE_INT_H): Remove.
9784 * configure.in: Create "Checks for header files" section, and move
9785 appropriate tests there. Don't check for objlist.h, wchar.h,
9786 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
9787 misdetection fix. Also add "Checks for types", "Checks for
9788 compiler characteristics" and "Checks for library functions"
9789 sections.
9790 * config.in, configure: Regenerated.
9791
9792 * configure.in: Create "Checks for programs" section, and move
9793 appropriate tests there.
9794
9795 2003-01-01 Mark Kettenis <kettenis@gnu.org>
9796
9797 * configure.in: Create "Checks for libraries" section, and move
9798 appropriate tests there. Cleanup check for wctype in libw. Use
9799 AC_SEARCH_LIBS to see whether we need libsocket.
9800 * configure: Regenerated.
9801
9802 For older changes see ChangeLog-2002
9803 \f
9804 Local Variables:
9805 mode: change-log
9806 left-margin: 8
9807 fill-column: 74
9808 version-control: never
9809 End: