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