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