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