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