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