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