2003-08-08 Elena Zannoni <ezannoni@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
2
3 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4 contains something meaningful at all times.
5
6 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7
8 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
9
10 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
11
12 * MAINTAINERS (write after approval): Added self.
13
14 2003-08-07 Andrew Cagney <cagney@redhat.com>
15
16 * inferior.h (AT_SYMBOL): Define.
17 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
18 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
19 * mips-tdep.c (mips_call_dummy_address): Delete function.
20 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
21 set call_dummy_address.
22
23 2003-08-07 Andrew Cagney <cagney@redhat.com>
24
25 * language.c (op_error): Delete function.
26 (binop_type_check): Delete function.
27 * language.h (type_op_error, range_op_error): Delete macros.
28 (op_error): Delete declaration.
29
30 2003-08-07 Andrew Cagney <cagney@redhat.com>
31
32 * interps.h (INTERP_MI2, INTERP_MI3): Define.
33
34 2003-08-07 Michal Ludvig <mludvig@suse.cz>
35
36 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
37 (x86_64_push_arguments): Skip the red zone.
38
39 2003-08-05 Andrew Cagney <cagney@redhat.com>
40
41 * reggroups.c (reggroup_next): Check for the final entry.
42
43 2003-08-04 Andrew Cagney <cagney@redhat.com>
44
45 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
46 * cli/cli-script.c (define_command): Call query directly, instead
47 of passing it a buffer.
48 * ocd.c (ocd_error): Pass error a constant format string.
49 * remote-mips.c (mips_error): Use fputs_filtered.
50
51 * solib-svr4.c (_initialize_svr4_solib): Update
52 register_gdbarch_data call.
53 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
54
55 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
56 (register_gdbarch_data): Delete "free" parameter. Update
57 comments.
58 * gdbarch.h, gdbarch.c: Re-generate.
59 * reggroups.c (_initialize_reggroup): Update.
60 * gnu-v3-abi.c (init_gnuv3_ops): Update.
61 * frame-base.c (_initialize_frame_base): Update.
62 * frame-unwind.c (_initialize_frame_unwind): Update.
63 * user-regs.c (_initialize_user_regs): Update.
64 * remote.c (_initialize_remote): Update.
65 * regcache.c (_initialize_regcache): Update.
66
67 * regcache.c (xfree_regcache_descr): Delete function.
68 (_initialize_regcache): Update call to register_gdbarch_data.
69 (init_regcache_descr, init_legacy_regcache_descr): Use
70 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
71
72 * remote.c (free_remote_state): Delete function.
73 (_initialize_remote): Update register_gdbarch_data.
74 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
75 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
76
77 2003-08-04 Andrew Cagney <cagney@redhat.com>
78
79 * reggroups.c (struct reggroup_el): Define.
80 (struct reggroups): Delete field "nr_group". Replace array
81 "group" with a "first" to "last" linked list.
82 (reggroups_init): Update. Allocate using gdbarch's obstack.
83 (reggroups_free): Delete function.
84 (add_group): Update. Add "el" parameter.
85 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
86 (default_groups): Update.
87 (reggroup_next): Replace reggroups.
88 (reggroups_dump): Update.
89 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
90 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
91 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
92
93 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
94
95 * Makefile.in (tui-interp.o): Update dependencies.
96
97 2003-08-04 David Carlton <carlton@kealia.com>
98
99 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
100 to internal_error call.
101 * source.c (forward_search_command): Add "%s" format argument.
102 (reverse_search_command): Ditto.
103 * top.c (quit_confirm): Ditto.
104 * cli/cli-setshow.c (do_setshow_command): Ditto.
105 * cp-valprint.c (cp_print_class_method): Replace
106 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
107 (cp_print_class_member): Ditto.
108 * event-top.c (command_line_handler): Ditto.
109 * linux-proc.c (linux_info_proc_cmd): Ditto.
110 * p-typeprint.c (pascal_type_print_base): Ditto.
111 * p-valprint.c (pascal_object_print_class_method): Ditto.
112 (pascal_object_print_class_member): Ditto.
113 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
114 * remote.c (remote_cisco_section_offsets): Ditto.
115 * top.c (command_line_input): Ditto.
116 * utils.c (vwarning,error_stream,quit): Ditto.
117 * valprint.c (print_floating,print_binary_chars)
118 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
119
120 2003-08-04 Andrew Cagney <cagney@redhat.com>
121
122 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
123
124 2003-08-02 Andrew Cagney <cagney@redhat.com>
125
126 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
127 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
128 amd64fbsd-nat.c.
129
130 2003-08-02 Andrew Cagney <cagney@redhat.com>
131
132 * Makefile.in: Update all dependencies and definitions.
133
134 2003-08-02 Adam Fedor <fedor@gnu.org>
135
136 * linespec.c (is_objc_method_format): New function
137 (decode_line_1, locate_first_half): Use it.
138 Fixes PR objc/1298
139
140 2003-08-01 Andrew Cagney <cagney@redhat.com>
141
142 * NEWS: Mention that m32r is multi-arch.
143 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
144 * configure.tgt: Recognize m32r-*-*.
145 * config/m32r/tm-m32r.h: Delete file.
146 * config/m32r/m32r.mt: New file.
147 * m32r-rom.c (m32r_upload_command): Use hostent only when
148 gethostname succeeds, in order to avoid a compilation
149 warning.
150 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
151 compiler warning.
152
153 2003-08-01 Michael Snyder <msnyder@redhat.com>
154
155 * sh-tdep.c (sh_frame_align): New gdbarch method.
156 (sh_gdbarch_init): Set up frame_align method.
157
158 2003-07-31 Michael Snyder <msnyder@redhat.com>
159
160 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
161 which is already covered by the new frames infrastructure.
162
163 2003-07-31 Andrew Cagney <cagney@redhat.com>
164
165 * user-regs.c (struct user_reg): Add "next" link.
166 (struct user_regs): Replace "user" with "first" and "last" links.
167 (append_user_reg): Add pre-allocated "reg" parameter.
168 (builtin_user_regs): Provide initial value for "last".
169 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
170 (user_regs_init): Allocate memory from the gdbarch obstack.
171 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
172 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
173 linked list.
174 (usernum_to_user_reg): New function.
175 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
176 (value_of_user_reg): Use usernum_to_user_reg.
177 (user_regs_free): Delete function.
178 (_initialize_user_regs): Update register_gdbarch_data call.
179
180 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
181
182 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
183
184 2003-07-30 Michael Snyder <msnyder@redhat.com>
185
186 * value.h (value_being_returned): Add a struct_addr argument.
187 * infcall.c (call_function_by_hand): Pass struct_addr to
188 value_being_returned.
189 * infcmd.c (print_return_value): Pass zero as struct_addr.
190 * values.c (value_being_returned): If struct_addr is passed,
191 use it instead of trying to recover it from the inferior.
192
193 2003-07-30 Kevin Buettner <kevinb@redhat.com>
194
195 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
196 the prologue analyzer won't need to attempt to extract the pc
197 value from the woefully incomplete dummy frame.
198 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
199 possible. Disable code which modifies the frame.
200
201 2003-07-28 Andrew Cagney <cagney@redhat.com>
202
203 * annotate.c (annotate_breakpoints_headers): Restrict annotation
204 to level 2.
205 (annotate_breakpoints_table, annotate_record): Ditto.
206 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
207 (annotate_field_name_end, annotate_field_value): Ditto.
208 (annotate_field_end, annotate_frame_source_begin): Ditto.
209 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
210 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
211 (annotate_frame_begin, annotate_frame_function_name): Ditto.
212 (annotate_frame_address_end, annotate_frame_address): Ditto.
213 (annotate_frame_args, annotate_frame_end): Ditto.
214 (annotate_frame_where, annotate_arg_begin): Ditto.
215 (annotate_arg_name_end, annotate_arg_value): Ditto.
216 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
217 (annotate_function_call, annotate_signal_name): Ditto.
218 (annotate_signal_string, annotate_signal_name_end): Ditto.
219 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
220 (annotate_value_begin, annotate_value_history_value): Ditto.
221 (annotate_value_history_end, annotate_value_end): Ditto.
222 (annotate_display_begin, annotate_display_number_end): Ditto.
223 (annotate_display_format, annotate_display_expression): Ditto.
224 (annotate_display_expression_end, annotate_display_value): Ditto.
225 (annotate_display_end, annotate_array_section_begin): Ditto.
226 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
227 (annotate_elt, annotate_array_section_end): Ditto.
228
229 2003-07-28 Andrew Cagney <cagney@redhat.com>
230
231 * regcache.c (struct regcache_descr): Update comments on
232 nr_raw_registers.
233 (init_legacy_regcache_descr): Don't set nr_raw_registers or
234 sizeof_raw_register_valid_p.
235 (init_regcache_descr): Set nr_raw_registers and
236 sizeof_raw_register_valid_p before calling
237 init_legacy_regcache_descr.
238
239 2003-07-28 Andrew Cagney <cagney@redhat.com>
240
241 * mips-tdep.c (print_gp_register_row): Print the GPR's register
242 MOD NUM_REGS.
243
244 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
245
246 * thread.c (info_threads_command): Use get_selected_frame ().
247 Check that there is at least one non-sentinel frame.
248
249 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
250
251 * m68hc11-tdep.c (struct frame_extra_info): Remove.
252 (m68hc11_pop_frame): Remove.
253 (m68hc11_frame_saved_pc): Remove.
254 (m68hc11_frame_chain): Remove.
255 (m68hc11_frame_init_saved_regs): Remove.
256 (m68hc11_init_extra_frame_info): Remove.
257 (m68hc11_store_struct_return): Remove.
258 (m68hc11_saved_pc_after_call): Remove.
259
260 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
261
262 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
263 frame unwind information.
264 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
265 and adapted for frame unwinding.
266 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
267 (m68hc11_unwind_pc): New function.
268 (m68hc11_frame_unwind_cache): New function to analyze frames.
269 (m68hc11_frame_this_id): New function to create new frame struct.
270 (m68hc11_frame_prev_register): New function to unwind a register from
271 the frame.
272 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
273 (m68hc11_frame_p): New function for the above.
274 (m68hc11_frame_base_address): New function to return fp of frame.
275 (m68hc11_frame_args_address): Update for frame.
276 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
277 (m68hc11_unwind_sp): New function.
278 (m68hc11_unwind_dummy_id): New function.
279 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
280 calls.
281
282 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
283
284 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
285 (m68hc11_guess_from_prologue): Advance the pc and frame size only
286 when we are beyond the current pc.
287
288 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
289
290 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
291 from m68hc11_push_arguments.
292 (m68hc11_push_arguments): Remove.
293 (m68hc11_push_return_address): Remove.
294 (m68hc11_gdbarch_init): Install the above; remove above deprecated
295 handlers; remove deprecated_extra_stack_alignment_needed.
296
297 2003-07-27 Andrew Cagney <cagney@redhat.com>
298
299 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
300 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
301 REAL_PC and not the pointer.
302 * hppa-hpux-tdep.c: Include frame.h
303
304 2003-07-27 Andrew Cagney <cagney@redhat.com>
305
306 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
307 GDB_MULTI_ACH_PARTIAL.
308
309 2003-07-27 Andrew Cagney <cagney@redhat.com>
310
311 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
312 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
313 operator at start and not end of line.
314 (decode_prologue): Ditto.
315 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
316 frame_unwind_register_unsigned instead of
317 frame_unwind_unsigned_register.
318 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
319 read_register.
320 (m32r_push_dummy_call): Use register_size instead of
321 REGISTER_RAW_SIZE.
322 (m32r_frame_sniffer): Replace m32r_frame_p.
323 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
324 * m32r-rom.c (report_transfer_performance): Delete extern
325 declaration.
326 (m32r_load, m32r_upload_command): Use print_transfer_performance
327 instead of report_transfer_performance.
328 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
329 / add_show_from_set.
330
331 2003-07-26 Andrew Cagney <cagney@redhat.com>
332
333 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
334 store_return_value and extract_struct_value_address.
335
336 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
337
338 PR c++/1267
339 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
340 NULL, default to the section containing PC.
341
342 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
343
344 * NEWS: Mention "regs" deprecated for m68hc11 too.
345
346 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
347 (m68hc11_print_register): New function to print out one register.
348 (m68hc11_print_registers_info): New function to print registers.
349 (show_regs): Deprecate and use the above.
350 (m68hc11_gdbarch_init): Install the print_registers_info.
351
352 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
353
354 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
355 that we have a SIGTRAP before returning non-zero.
356
357 2003-07-23 Michal Ludvig <mludvig@suse.cz>
358 Elena Zannoni <ezannoni@redhat.com>
359
360 * linespec.c (decode_line_2): Avoid crash if
361 find_function_start_sal() returns empty record.
362
363 2003-07-23 Andreas Schwab <schwab@suse.de>
364
365 * ia64-tdep.c (ia64_print_insn): New function.
366 (ia64_gdbarch_init): Set print_insn to it.
367 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
368 deprecated_tm_print_insn_info.
369
370 2003-07-22 Michael Snyder <msnyder@redhat.com>
371
372 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
373 handle 8-bit returns (long long).
374 (h8300h_extract_return_value): Ditto.
375 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
376
377 2003-07-22 Andrew Cagney <cagney@redhat.com>
378
379 * gdbarch.c Include "gdb_obstack.h".
380 (struct gdbarch): Add an "obstack".
381 (alloc_gdbarch_data): Allocate the gdbarch data using
382 GDBARCH_OBSTACK_CALLOC.
383 (free_gdbarch_data): Delete function.
384 (gdbarch_obstack_zalloc): New function.
385 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
386 Assert that the architecture is not initialized.
387 (gdbarch_alloc): Allocate an obstack, allocate the architecture
388 vector from the obstack.
389 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
390 architecture obstack.
391 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
392 (set_gdbarch_data): Assert that the data is not initialized.
393 (struct gdbarch_data): Delete member "free".
394 (register_gdbarch_data): Do not initialize "free".
395 * gdbarch.h, gdbarch.c: Re-generate.
396
397 2003-07-22 Andrew Cagney <cagney@redhat.com>
398
399 * configure.in (build_warnings): Add -Wformat-nonliteral.
400 * configure: Re-generate.
401
402 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
403
404 * dwarf2loc.c (locexpr_describe_location): Fix typos.
405
406 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
407
408 * findvar.c (read_var_value): Remove case for thread local storage
409 variables. It is now entirely handled by the dwarf2 location
410 expression code.
411 * printcmd.c (address_info): Ditto.
412 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
413 enumeration value.
414 (struct symbol): Remove objfile field, which was used by
415 LOC_THREAD_LOCAL_STATIC only.
416 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
417 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
418 usage of objfile pointer.
419 * dwarf2loc.c (locexpr_describe_location): Add case to handle
420 thread local variables.
421 Add include of objfiles.h.
422 * dwarf2expr.c (execute_stack_op): Add comments about thread local
423 storage variables.
424 * Makefile.in (dwarf2loc.o): Update dependencies.
425
426 2003-07-22 Andrew Cagney <cagney@redhat.com>
427
428 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
429 get_frame_base.
430 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
431 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
432 (struct value): Add opaque declaration.
433 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
434
435 2003-07-21 Andrew Cagney <cagney@redhat.com>
436
437 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
438 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
439
440 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
441
442 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
443 regcache_cooked_read_unsigned instead of read_register.
444 (m68hc11_saved_pc_after_call): Likewise.
445 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
446 instead of write_register.
447 (m68hc11_register_type): New function.
448 (m68hc11_register_virtual_type): Remove.
449 (m68hc11_store_return_value): Convert to use the regcache.
450 (m68hc11_extract_struct_value_address): Likewise.
451 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
452 m68hc11_register_type; undeprecate store_return_value and
453 extract_struct_value_address.
454
455 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
456
457 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
458 and translate to use regcache.
459 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
460
461 2003-07-18 Andrew Cagney <cagney@redhat.com>
462
463 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
464 * gdbarch.h, gdbarch.c: Re-generate.
465 * i386-tdep.c (i386_gdbarch_init): Do not set
466 DWARF2_BUILD_FRAME_INFO.
467 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
468 unconditionally.
469 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
470 DWARF2_BUILD_FRAME_INFO.
471
472 2003-07-18 Andrew Cagney <cagney@redhat.com>
473
474 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
475 * disasm.c (gdb_disassemble_info): Initilize di.arch.
476
477 2003-07-18 Andrew Cagney <cagney@redhat.com>
478
479 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
480 frame_unwind_address_in_block, instead of frame_pc_unwind.
481 (dwarf2_frame_cache): Ditto.
482
483 2003-07-18 Andrew Cagney <cagney@redhat.com>
484
485 * user-regs.h (struct gdbarch): Declare opaque.
486 * ui-out.h (struct ui_file): Declare opaque.
487 * dwarf2-frame.h (struct frame_info): Declare opaque.
488
489 2003-07-18 Kris Warkentin <kewarken@qnx.com>
490
491 * nto-procfs.c: Clean ARI hits. Change #include <..> to
492 #include "...".
493 (procfs_meminfo): Change strerror to safe_strerror.
494 (procfs_can_run): Remove K&R badness.
495
496 2003-07-17 Michael Snyder <msnyder@redhat.com>
497
498 * remote-sim.c: Comment typo fix.
499
500 2003-07-17 Andrew Cagney <cagney@redhat.com>
501
502 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
503 configure.
504 * sparc-tdep.c (sparc_intreg_size): Make non-static.
505 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
506 GDB_MULTI_ARCH_PARTIAL.
507
508 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
509
510 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
511 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
512 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
513
514 2003-07-16 Theodore A. Roth <troth@openavr.org>
515
516 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
517 found.
518 (avr_frame_unwind_cache): Don't unwind FP for main.
519 Update a comment.
520 Save the computed prev_sp.
521 (avr_saved_regs_unwinder): Remove function.
522 (avr_frame_prev_register): Use PC unwind logic from
523 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
524
525 2003-07-16 Andrew Cagney <cagney@redhat.com>
526
527 * frame-base.h (frame_base_p_ftype): Delete definition.
528 (frame_base_append_predicate): Delete declaration.
529 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
530 (frame_unwind_append_predicate): Delete declaration.
531 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
532 (append_predicate): Delete parameter "p".
533 (frame_unwind_append_predicate): Delete function.
534 (frame_unwind_append_sniffer): Update call to append_predicate.
535 (frame_unwind_free): Delete function.
536 (_initialize_frame_unwind): Pass NULL as "free" to
537 register_gdbarch_data.
538 (frame_unwind_init): Append the dummy_frame_sniffer.
539 (frame_unwind_find_by_frame): Simplify.
540 * frame-base.c (struct frame_base_table): Delete field "p".
541 (append_predicate): Delete parameter "p".
542 (frame_base_append_predicate): Delete function.
543 (frame_base_append_sniffer): Update call to append_predicate.
544 (frame_base_free): Delete function.
545 (frame_base_find_by_frame): Simplify.
546 (_initialize_frame_base): Pass NULL as "free" to
547 register_gdbarch_data.
548 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
549 (x86_64_sigtramp_frame_sniffer): Replace
550 "x86_64_sigtramp_frame_p".
551 (x86_64_init_abi): Set the frame unwind sniffers.
552 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
553 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
554 (m68k_gdbarch_init): Set the frame unwind sniffers.
555 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
556 "i386_sigtramp_frame_p".
557 (i386_frame_sniffer): Replace "i386_frame_p".
558 (i386_gdbarch_init): Set the frame unwind sniffers.
559 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
560 (avr_gdbarch_init): Set the frame unwind sniffers.
561 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
562 "alpha_sigtramp_frame_p"
563 (alpha_heuristic_frame_sniffer): Replace
564 "alpha_heuristic_frame_p".
565 (alpha_gdbarch_init): Set the frame unwind sniffers.
566 (alpha_dwarf2_init_abi): Ditto.
567 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
568 "alpha_debug_frame_p".
569 (alpha_mdebug_frame_base_sniffer): Replace
570 "alpha_mdebug_frame_base_p".
571 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
572 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
573 (d10v_gdbarch_init): Set the frame unwind sniffer.
574 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
575 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
576 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
577 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
578 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
579 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
580
581 2003-07-16 Michael Snyder <msnyder@redhat.com>
582
583 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
584 should go thru sh_dsp_register_sim_regno, else the dsp regs
585 will not get the right values.
586
587 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
588
589 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
590 deprecated_store_floating by call to store_typed_floating.
591 (sh_sh4_register_convert_to_raw): Substitute call to
592 deprecated_extract_floating by call to extract_typed_floating.
593
594 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
595
596 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
597
598 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
599
600 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
601 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
602 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
603 as possible.
604 (do_pseudo_register): Remove.
605 (sh_push_dummy_code): New function.
606 (sh64_store_struct_return): Rename from sh_store_struct_return.
607 Only called for sh64 now.
608 (sh_extract_struct_value_address): Regcache'ify.
609 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
610 and accomodate new tasks.
611 (sh64_push_return_address): Rename from sh_push_return_address.
612 Only called for sh64 now.
613 (sh_default_extract_return_value): Rename from sh_extract_return_value.
614 Regcache'ify.
615 (sh3e_sh4_extract_return_value): Regcache'ify.
616 (sh_default_store_return_value): Ditto.
617 (sh3e_sh4_store_return_value): Ditto.
618 (sh_default_register_byte): Remove.
619 (sh_sh4_register_byte): Remove.
620 (sh_default_register_raw_size): Remove.
621 (sh_sh4_register_raw_size): Remove.
622 (sh_register_virtual_size): Remove.
623 (sh_sh3e_register_virtual_type): Remove.
624 (sh_sh3e_register_type): New function.
625 (sh_sh4_register_virtual_type): Remove.
626 (sh_sh4_register_type): New function.
627 (sh_default_register_virtual_type): Remove.
628 (sh_default_register_type): New function.
629 (do_fv_register_info): Add parameters to accomodate call from
630 sh_print_registers_info.
631 (do_dr_register_info): Ditto.
632 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
633 Add parameters to accomodate call from sh_print_registers_info.
634 (sh_do_fp_register): Ditto.
635 (sh64_do_pseudo_register): Call do_dr_register_info,
636 do_fv_register_info and sh_do_fp_register with default parameters.
637 (sh_do_register): Add parameters to accomodate call from
638 sh_print_registers_info.
639 (sh_print_register): Ditto.
640 (sh_print_registers_info): Rename from sh_do_registers_info.
641 Add parameters to be used as gdbarch_print_registers_info
642 implementation. Accomodate removed do_pseudo_register function
643 pointer.
644 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
645 function pointer. Call sh_print_register with default parameters.
646 (sh64_do_registers_info): Call sh_print_registers_info instead of
647 sh_do_registers_info.
648 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
649 detection of deprecated vs. non-deprecated functionality.
650 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
651 function pointer assignments by direct function calls.
652
653 2003-07-15 Andrew Cagney <cagney@redhat.com>
654
655 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
656 (frame_register_unwind, create_new_frame): Ditto.
657 (legacy_get_prev_frame, get_frame_type): Ditto.
658 (get_frame_base_address): Use frame_base_find_by_frame.
659 (get_frame_locals_address): Use frame_base_find_by_frame.
660 (get_frame_args_address): Use frame_base_find_by_frame.
661 * frame-base.h (frame_base_sniffer_ftype): Declare.
662 (frame_base_append_sniffer): Declare.
663 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
664 * frame-base.c (append_predicate): Add a "sniffer" parameter.
665 (frame_base_append_sniffer): New function.
666 (frame_base_append_predicate): Add a NULL sniffer.
667 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
668 (struct frame_base_table): Add "sniffer".
669 (frame_base_free): Free the "sniffer" table.
670 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
671 (frame_unwind_append_sniffer): Declare.
672 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
673 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
674 (struct frame_unwind_table): Add "sniffer", delete "middle".
675 (append_predicate): Add "sniffer" parameter, append the sniffer.
676 (frame_unwind_init): Update append_predicate call.
677 (frame_unwind_append_sniffer): New function.
678 (frame_unwind_append_predicate): Update append_predicate call.
679 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
680
681 2003-07-15 Andrew Cagney <cagney@redhat.com>
682
683 * frame.c (get_prev_frame): Move disabled inside_entry_func to
684 before code inhibiting repeated unwind attempts. Add to
685 commentary on that test's problems.
686 * blockframe.c (inside_main_func): Look for "main" in the minimal
687 symbol table.
688 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
689 identical.
690
691 2003-07-15 Andrew Cagney <cagney@redhat.com>
692
693 * complaints.c (struct explanation): Define.
694 (struct complaints): Change type of "explanation" to "struct
695 explanation".
696 (symfile_explanations): Convert to a "struct explanation" table.
697 (vcomplaint): Update.
698
699 2003-07-15 Michal Ludvig <mludvig@suse.cz>
700
701 * x86-64-linux-nat.c (regmap): Removed.
702 (supply_gregset, fill_gregset): Call
703 x86_64_linux_(fill,supply)_gregset functions.
704 * x86-64-linux-tdep.c (USER_*): New defines.
705 (user_to_gdb_regmap, x86_64_core_fns): New structure.
706 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
707 New functions.
708 (fetch_core_registers): Ditto.
709 (_initialize_x86_64_linux_tdep): Call add_core_fns().
710 * x86-64-linux-tdep.h: New file.
711 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
712 and core-regset.o.
713 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
714
715 2003-07-13 Mark Kettenis <kettenis@gnu.org>
716
717 * x86-64-tdep.c (x86_64_store_return_value): Use
718 regcache_cooked_write_part instead of regcache_cooked_write.
719
720 * configure.host: Add x86_64-*-freebsd*.
721 * configure.tgt: Add x86_64-*-freebsd*.
722 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
723 * amd64fbsd-nat.c: New file.
724 * amd64fbsd-tdep.c: New file.
725 * config/i386/nm-fbsd64.h: New file.
726 * config/i386/fbsd64.mh: New file.
727 * config/i386/fbsd64.mt: New file.
728
729 2003-07-11 Mark Kettenis <kettenis@gnu.org>
730
731 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
732 `sc_regs_offset' and `sc_fpregs_offset'.
733 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
734 SIGFRAME_FPREGSAVE_OFF): Remove defines.
735 (alpha_sigtramp_register_address): Rewrite to use new members of
736 `struct gdbarch_tdep'.
737 (alpha_gdbarch_init): Initialize new members of struct
738 gdbarch_tdep'.
739 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
740 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
741 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
742 (alphafbsd_pc_in_sigtramp): Implement.
743 (alphafbsd_sigtramp_offset): New function.
744 (alphafbsd_sigcontext_addr): New function.
745 (alphafbsd_init_abi): Initialize signal trampoline related members
746 of `struct gdbarch_tdep'.
747 (_initialize_alphafbsd_tdep): Add prototype.
748
749 2003-07-11 Theodore A. Roth <troth@openavr.org>
750
751 * Makefile.in (install-only): Quote sed expression when generating
752 transformed_name.
753
754 2003-07-11 Richard Henderson <rth@redhat.com>
755
756 * Makefile.in (dwarf2-frame.o): Add complaints_h.
757 * dwarf2-frame.c: Include complaints.h.
758 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
759 variable initialization; return NULL on error.
760 (decode_frame_entry): New.
761
762 2003-07-11 Andrew Cagney <cagney@redhat.com>
763
764 * frame.h (frame_address_in_block): Delete declaration.
765 * blockframe.c (frame_address_in_block): Delete function.
766 (get_frame_block): Use get_frame_address_in_block.
767 (block_innermost_frame): Ditto.
768 * stack.c (print_frame, backtrace_command_1): Ditto.
769
770 * frame.h (get_frame_address_in_block): Declare.
771 (frame_unwind_address_in_block): Declare.
772 * frame.c (frame_unwind_address_in_block): New function.
773 (get_frame_address_in_block): New function.
774
775 2003-07-10 Andrew Cagney <cagney@redhat.com>
776
777 * gdbarch.sh: Simplify predicate methods. Remove need to provide
778 pre-default. Note: re-generate has no effect.
779
780 2003-07-10 Andrew Cagney <cagney@redhat.com>
781
782 * gdbarch.sh: When a variable, but not a function, compare against
783 0. Fix problem in previous patch.
784 * gdbarch.c: Re-generate.
785
786 2003-07-10 Andrew Cagney <cagney@redhat.com>
787
788 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
789 functions against NULL, not 0.
790 * gdbarch.c: Re-generate.
791
792 2003-07-10 Fred Fish <fnf@ninemoons.com>
793
794 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
795 null string instead of a null pointer.
796 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
797
798 2003-07-09 Michael Snyder <msnyder@redhat.com>
799
800 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
801
802 2003-07-09 Mark Kettenis <kettenis@gnu.org>
803
804 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
805 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
806 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
807 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
808 * x86-64-tdep.c: ... from here.
809
810 2003-07-09 Andreas Schwab <schwab@suse.de>
811
812 * m68k-tdep.h (enum struct_return): Define.
813 (struct gdbarch_tdep): Add struct_return.
814 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
815 bytes are padded to the right, not to the left. Pass struct value
816 address in register %a1, not on stack.
817 (m68k_use_struct_convention): New function.
818 (m68k_gdbarch_init): Set use_struct_convention. Initialize
819 struct_return in tdep to pcc_struct_return.
820 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
821 reg_struct_return.
822
823 2003-07-09 Joel Brobecker <brobecker@gnat.com>
824
825 * somread.c (som_symfile_offsets): Fix compilation error.
826
827 2003-07-09 Andrew Cagney <cagney@redhat.com>
828
829 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
830 Add comments about the checks.
831
832 2003-07-08 Andrew Cagney <cagney@redhat.com>
833
834 * Makefile.in: Make dependency section headers consistent.
835 (config_h): Move to $BUILD headers section.
836 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
837 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
838 (ada-exp.tab.c): Move to YACC/LEX section.
839 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
840 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
841
842 2003-07-08 Kris Warkentin <kewarken@qnx.com>
843
844 * nto-procfs.c: Cleaned up a bunch of ARI hits.
845 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
846 of strerror with safe_strerror, use ISO C function definitions,
847 and replace instances of sprintf with snprintf.
848
849 2003-07-07 Andrew Cagney <cagney@redhat.com>
850
851 * frame.c (get_prev_frame): Enable check for identical frames.
852 Update comments. Update error messages.
853
854 2003-07-07 Joel Brobecker <brobecker@gnat.com>
855
856 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
857
858 2003-07-07 Joel Brobecker <brobecker@gnat.com>
859
860 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
861 sort_symtab_syms, no longer necessary.
862
863 2003-07-07 Joel Brobecker <brobecker@gnat.com>
864
865 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
866
867 2003-07-07 Joel Brobecker <brobecker@gnat.com>
868
869 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
870 (mips_register_byte): Likewise.
871
872 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
873
874 * Makefile.in (sparc_tdep_h): New.
875 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
876 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
877 * sparc-linux-nat.c: Include "sparc-tdep.h".
878 * sparc-nat.c: Likewise.
879 * sparc-tdep.c: Likewise.
880 * sparc64nbsd-nat.c: Likewise.
881 * sparcnbsd-nat.c: Likewise.
882 * sparcnbsd-tdep.c: Likewise.
883 * sparc-tdep.h: New file.
884 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
885 and sparc_npc_regnum.
886
887 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
888
889 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
890 (mips_linux_cannot_store_register): List supported instead of
891 unsupported registers.
892
893 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
894
895 * disasm.c (dump_insns): Separate instructions from addresses.
896
897 2003-07-07 Andreas Schwab <schwab@suse.de>
898
899 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
900 dependencies.
901 * m68k-tdep.c (NUM_FREGS): Delete.
902 (SIG_PC_FP_OFFSET): Delete.
903 (TARGET_M68K): Delete.
904 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
905 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
906 P_MOVEL_SP, P_MOVEML_SP): Define.
907 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
908 P_TRAP): Delete.
909 (m68k_register_raw_size): Delete.
910 (m68k_register_virtual_size): Delete.
911 (m68k_register_type): Renamed from m68k_register_virtual_type and
912 add gdbarch argument.
913 (m68k_store_struct_return): Delete.
914 (m68k_deprecated_extract_return_value): Delete.
915 (m68k_deprecated_extract_struct_value_address): Delete.
916 (m68k_frame_chain): Delete.
917 (m68k_frame_saved_pc): Delete.
918 (m68k_fix_call_dummy): Delete.
919 (m68k_push_dummy_frame): Delete.
920 (m68k_pop_frame): Delete.
921 (m68k_extract_return_value): New function.
922 (m68k_store_return_value): Rewrite using regcache.
923 (m68k_extract_struct_value_address): Rewrite using regcache.
924 (m68k_push_dummy_call): New function.
925 (struct m68k_frame_cache): Define.
926 (m68k_alloc_frame_cache): New function.
927 (m68k_analyze_frame_setup): New function.
928 (m68k_analyze_register_saves): New function.
929 (m68k_analyze_prologue): New function.
930 (m68k_skip_prologue): Rewrite using above functions.
931 (m68k_unwind_pc): New function.
932 (m68k_frame_cache): New function.
933 (m68k_frame_this_id): New function.
934 (m68k_frame_prev_register): New function.
935 (m68k_frame_unwind): New variable.
936 (m68k_frame_p): New function.
937 (m68k_sigtramp_frame_cache): New function.
938 (m68k_sigtramp_frame_this_id): New function.
939 (m68k_sigtramp_frame_prev_register): New function.
940 (m68k_sigtramp_frame_unwind): New variable.
941 (m68k_sigtramp_frame_p): New function.
942 (m68k_frame_base_address): New function.
943 (m68k_frame_base): New function.
944 (m68k_unwind_dummy_id): New function.
945 (fill_gregset): Use regcache_collect.
946 (fill_fpregset): Likewise.
947 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
948 defined.
949 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
950 deprecated_init_frame_pc, deprecated_store_struct_return,
951 deprecated_extract_return_value, deprecated_store_return_value,
952 deprecated_frame_chain, deprecated_frame_saved_pc,
953 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
954 deprecated_register_virtual_size,
955 deprecated_max_register_raw_size,
956 deprecated_max_register_virtual_size,
957 deprecated_register_virtual_type, deprecated_register_size,
958 deprecated_register_byte, deprecated_register_bytes,
959 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
960 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
961 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
962 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
963 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
964 deprecated_push_dummy_frame, deprecated_pop_frame,
965 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
966 only if SYSCALL_TRAP is defined. Set extract_return_value,
967 store_return_value, extract_struct_value_address, register_type,
968 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
969 predicates.
970 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
971 M68K_MAX_REGISTER_SIZE): Define.
972 (struct m68k_sigtramp_info): Define.
973 (struct gdbarch_tdep): Add get_sigtramp_info.
974 * m68klinux-nat.c (fetch_register): Use register_size instead of
975 REGISTER_RAW_SIZE. Don't put assignment in if.
976 (store_register): Likewise.
977 (fetch_inferior_registers): Likewise.
978 (store_inferior_registers): Likewise.
979 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
980 (m68k_linux_frame_saved_pc): Delete.
981 (m68k_linux_sigcontext_reg_offset,
982 m68k_linux_ucontext_reg_offset): Define.
983 (m68k_linux_get_sigtramp_info): New function.
984 (m68k_linux_extract_return_value): Rewrite using regcache.
985 (m68k_linux_store_return_value): Likewise.
986 (m68k_linux_extract_struct_value_address): Likewise.
987 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
988 Don't set deprecated_frame_saved_pc,
989 deprecated_extract_return_value, deprecated_store_return_value,
990 deprecated_extract_struct_value_address. Set
991 extract_return_value, store_return_value,
992 extract_struct_value_address.
993
994 2003-07-07 Andrew Cagney <cagney@redhat.com>
995
996 * expprint.c: Include "user-regs.h" instead of "frame.h".
997 (print_subexp): Use user_reg_map_regnum_to_name, instead of
998 frame_map_regnum_to_name.
999 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1000 (frame_map_name_to_regnum): Simplify, call
1001 user_reg_map_name_to_regnum.
1002 (frame_map_regnum_to_name): Simplify, call
1003 user_reg_map_regnum_to_name.
1004 (frame_register_unwind): Update.
1005 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1006 (_initialize_frame_reg): Call user_reg_add_builtin.
1007 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1008 (value_of_register): Use value_of_user_reg.
1009 * eval.c (evaluate_subexp_standard): Update.
1010 * parse.c (write_dollar_variable): Update.
1011 * d10v-tdep.c (d10v_print_registers_info): Update.
1012 * infcmd.c (registers_info): Update.
1013 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1014 (builtin_regs_h): Delete macro.
1015 (user_regs_h): Define.
1016 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1017 (builtin-regs.o): Delete target.
1018 (user-regs.o): Specify dependencies.
1019 (expprint.o): Update dependencies.
1020 (findvar.o): Update dependencies.
1021 (frame.o): Update dependencies.
1022 (std-regs.o): Update dependencies.
1023
1024 2003-07-06 Christopher Faylor <cgf@redhat.com>
1025
1026 * win32-nat.c (solib_symbols_add): Use one variable for all section
1027 address stuff. Pass variable rather than address of variable to
1028 safe_symbol_file_add.
1029
1030 2003-07-06 Andreas Schwab <schwab@suse.de>
1031
1032 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1033
1034 2003-07-04 Joel Brobecker <brobecker@gnat.com>
1035
1036 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1037
1038 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1039
1040 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1041
1042 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1043
1044 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1045 * config/i386/nto.mh: New file.
1046 * config/i386/nm-nto.h: New file.
1047 * configure.host: Add i[3456]86-*-nto*.
1048
1049 2003-07-03 Joel Brobecker <brobecker@gnat.com>
1050
1051 * remote-vx.c (vx_add_symbols): Fix compilation error.
1052
1053 2003-07-03 Andrew Cagney <cagney@redhat.com>
1054
1055 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1056 * gdbarch.h, gdbarch.c: Re-generate.
1057 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1058 (legacy_register_name): Declare.
1059 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1060 (REGISTER_NAME): Define.
1061 * sparc-tdep.c (legacy_register_name): New function.
1062 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1063 (REGISTER_NAME): Define.
1064 (hppa64_register_name): Declare.
1065 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1066 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1067 (hppa64_register_name): New function.
1068 (hppa_register_name): New function.
1069 * arch-utils.c (legacy_register_name): Delete.
1070 * arch-utils.h (legacy_register_name): Delete.
1071
1072 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
1073
1074 * cli/cli-interp.c (cli_interpreter_resume): Update the
1075 cli_uiout's stream to gdb_stdout.
1076
1077 2003-07-03 Andrew Cagney <cagney@redhat.com>
1078
1079 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1080 predicate.
1081 * gdbarch.h, gdbarch.c: Re-generate.
1082 * regcache.c (init_regcache_descr): Use legacy code when either
1083 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1084
1085 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1086
1087 * NEWS: Move "set logging" entry into GDB 6.0 section.
1088
1089 2003-07-02 Jim Blandy <jimb@redhat.com>
1090
1091 * s390-tdep.c (struct frame_extra_info): new member:
1092 'stack_bought_valid'.
1093 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1094 initialize fextra_info->stack_bought.
1095 (s390_frameless_function_invocation): Don't trust the value of
1096 fextra_info_ptr->stack_bought unless
1097 fextra_info->stack_bought_valid is set.
1098
1099 New S390 prologue analyzer.
1100 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1101 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1102 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1103 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1104 compute_x_addr, s390_on_stack, s390_store,
1105 s390_get_signal_frame_info): New functions.
1106 (S390_NUM_SPILL_SLOTS): New macro.
1107 (s390_get_frame_info): Rewritten.
1108 (is_arg_reg): Deleted.
1109
1110 Break out the decoding of S/390 instructions into separate
1111 functions, to make it more legible, and easier to check
1112 against the spec.
1113 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1114 is_rx, is_rxe): New functions.
1115 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1116 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1117 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1118 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1119 enums for opcode values. (Is this an improvement?)
1120
1121 2003-07-02 Andrew Cagney <cagney@redhat.com>
1122
1123 * i386-tdep.c: Revert change committed as part of trad-frame code
1124 below.
1125
1126 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1127
1128 * breakpoint.c (insert_catchpoint): Make static.
1129
1130 2003-07-02 Andreas Schwab <schwab@suse.de>
1131
1132 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1133 former ia64_push_arguments and ia64_push_return_address, and use
1134 regcache functions instead of read/write_register.
1135 (ia64_gdbarch_init): Set push_dummy_call instead of
1136 deprecated_push_arguments and deprecated_push_return_address.
1137
1138 2003-07-01 Andreas Jaeger <aj@suse.de>
1139
1140 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1141 before the call.
1142 Set %rax only to number of SSE registers used.
1143
1144 2003-07-01 Andrew Cagney <cagney@redhat.com>
1145
1146 * trad-frame.h: Update comments, a -1 .addr is reserved.
1147 (trad_frame_value_p, trad_frame_addr_p): Declare.
1148 (trad_frame_reg_p): Declare.
1149 (trad_frame_set_value): Rename trad_frame_register_value.
1150 (trad_frame_set_unknown): Declare.
1151 * trad-frame.c (trad_frame_realreg_p): New function.
1152 (trad_frame_addr_p, trad_frame_value_p): New function.
1153 (trad_frame_set_unknown): New function.
1154 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1155 (trad_frame_prev_register): Use trad_frame_realreg_p,
1156 trad_frame_addr_p and trad_frame_value_p.
1157 (trad_frame_set_value): Rename trad_frame_register_value.
1158 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1159 and trad_frame_set_value.
1160
1161 2003-06-30 Jim Blandy <jimb@redhat.com>
1162
1163 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1164 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1165 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1166 for 16 registers, and then 32 more bytes.
1167 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1168 New macros.
1169 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1170 Move up in the file, since it's now used by is_simple_arg.
1171 (is_simple_arg): Don't assume registers are four bytes long.
1172 Exclude all double arguments. Extended floats are not simple
1173 args.
1174 (is_power_of_two): New function.
1175 (pass_by_copy_ref): Call is_power_of_two, and check that the
1176 length fits in a register, rather than listing all the acceptable
1177 sizes. Extended floats are not passed by reference.
1178 (s390_push_arguments): Don't assume registers are four bytes long.
1179 Reserve an argument register to point to the buffer for structures
1180 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1181 S390_STACK_FRAME_OVERHEAD.
1182
1183 2003-06-30 Andreas Schwab <schwab@suse.de>
1184
1185 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1186 format error message.
1187
1188 2003-06-30 Joel Brobecker <brobecker@gnat.com>
1189
1190 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1191
1192 2003-06-30 David Carlton <carlton@kealia.com>
1193
1194 Band-aid for PR c++/1245.
1195 * Makefile.in (cp-support.o): Depend on complaints_h.
1196 * cp-support.c: Include complaints.h. Add declaration for
1197 find_last_component.
1198 (cp_find_first_component): Separate code into
1199 cp_find_first_component_aux.
1200 (cp_find_first_component_aux): Call demangled_name_complaint.
1201 (demangled_name_complaint): New.
1202
1203 2003-06-30 Andrew Cagney <cagney@redhat.com>
1204
1205 * remote.c (remote_write_bytes): Explicitly compute and then use
1206 the payload size. Update comments to reflect. Fixes problem of
1207 GDB not sending small packets as found by Fred Fish.
1208
1209 2003-06-30 Andrew Cagney <cagney@redhat.com>
1210
1211 * remote.c (remote_async_wait): Fix -Wformat problem.
1212
1213 2003-06-29 Andrew Cagney <cagney@redhat.com>
1214
1215 * remote.c (remote_wait): Call error, and not warning, when the
1216 packet is corrupt.
1217 (remote_async_wait): Ditto.
1218
1219 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1220
1221 * sparc-tdep.c (sparc_y_regnum): Make external again.
1222
1223 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1224
1225 * cli/cli-logging.c (pop_output_files): Add void to function
1226 definition.
1227
1228 2003-06-29 Andrew Cagney <cagney@redhat.com>
1229
1230 * frame.c (frame_register_unwind): Use unsigned char when dumping
1231 the buffer contents.
1232
1233 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1234
1235 * cli/cli-logging.c: New file.
1236 * cli-out.c (struct ui_out_data): Add original_stream.
1237 (cli_redirect): New function.
1238 (cli_ui_out_impl): Add cli_redirect.
1239 (cli_out_new): Initialize original_stream.
1240 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1241 (uo_redirect, ui_out_redirect): New.
1242 * ui-out.h (struct ui_out_impl): Add redirect member.
1243 (redirect_ftype): New.
1244 (ui_out_redirect): Add prototype.
1245 * Makefile.in: Add rules for cli-logging.c.
1246 * NEWS: Mention "set logging".
1247
1248 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1249
1250 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1251
1252 2003-06-27 Andrew Cagney <cagney@redhat.com>
1253
1254 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1255 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1256 * avr-tdep.c (avr_call_dummy_address): Delete function.
1257 (avr_gdbarch_init): Do not set call_dummy_address.
1258
1259 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1260
1261 * symfile.c (syms_from_objfile): Move variables to inner block.
1262 Move the checks for the non-mainline case a bit earlier to avoid
1263 doing some useless computations.
1264
1265 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1266
1267 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1268
1269 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
1270
1271 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1272 sections.
1273
1274 2003-06-26 Michael Chastain <mec@shout.net>
1275
1276 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1277 gdb/testsuite/gdb.c++/pr-1210.exp.
1278
1279 2003-06-26 Andrew Cagney <cagney@redhat.com>
1280
1281 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1282 altivec_expression.h and altivec_registers.h.
1283
1284 2003-06-26 Andrew Cagney <cagney@redhat.com>
1285
1286 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1287 info->mach when MIPS16. Patch suggested by Fred Fish.
1288
1289 2003-06-26 Andrew Cagney <cagney@redhat.com>
1290
1291 * utils.c (internal_vproblem): Print the problem to a reason
1292 buffer and then pass to query. Make the msg variable more local.
1293
1294 2003-06-26 Andrew Cagney <cagney@redhat.com>
1295
1296 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
1297 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
1298 * gdbarch.h, gdbarch.c: Re-generate.
1299 * frame-base.c (default_frame_args_address): Update. Use
1300 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
1301 not available.
1302 (default_frame_locals_address): Ditto for
1303 DEPRECATED_FRAME_LOCALS_ADDRESS.
1304 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
1305 (vax_frame_num_args): Update.
1306 (vax_gdbarch_init): Update.
1307 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1308 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1309 * mcore-tdep.c (mcore_gdbarch_init): Update.
1310 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1311 * ia64-tdep.c (ia64_gdbarch_init): Update.
1312 * symtab.h (address_class): Update comments.
1313 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
1314 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1315 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1316 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1317 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1318 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1319 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1320 * alpha-mdebug-tdep.c: Update.
1321 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
1322
1323 2003-06-26 Andreas Jaeger <aj@suse.de>
1324
1325 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
1326 of SSE registers so that varargs functions work. Rework handling
1327 of passing arguments on the stack.
1328 (x86_64_store_return_value): Return double and float values in SSE
1329 register.
1330
1331 2003-06-24 Michael Chastain <mec@shout.net>
1332
1333 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
1334 the "constructor breakpoints ignored" bug.
1335
1336 2003-06-25 David Carlton <carlton@kealia.com>
1337
1338 * MAINTAINERS: Update e-mail address.
1339
1340 2003-06-24 Jim Blandy <jimb@redhat.com>
1341
1342 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
1343
1344 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
1345 function.
1346 (ppc_linux_init_abi): Register it as the
1347 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
1348
1349 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
1350 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
1351 method.
1352
1353 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
1354 (ppc64_standard_linkage_target): Use it.
1355
1356 2003-06-23 Andrew Cagney <cagney@redhat.com>
1357
1358 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
1359 for 0 "int0" and 4 "int32" sized registers.
1360 * gdbtypes.c (builtin_type_int0): Define.
1361 (build_gdbtypes): Initialize builtin_type_int0.
1362 * gdbtypes.h (builtin_type_int0): Declare.
1363
1364 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
1365
1366 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
1367 as characters are unsigned.
1368
1369 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1370
1371 PR gdb/1179
1372 * dwarfread.c (struct_type): Skip static fields without crashing.
1373
1374 2003-06-22 Andrew Cagney <cagney@redhat.com>
1375
1376 GDB 6.0 branch created.
1377 * README: Update.
1378 * PROBLEMS: Update. Empty.
1379 * NEWS: Update.
1380
1381 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1382
1383 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
1384 Suggested by Nick Hibma <n_hibma@webweaving.org>.
1385
1386 2003-06-22 Andrew Cagney <cagney@redhat.com>
1387
1388 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
1389 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
1390 Velikov.
1391
1392 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1393
1394 * cli/cli-cmds.c (shell_escape): Silence warnings from old
1395 compilers.
1396
1397 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1398
1399 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
1400 argument of val_print.
1401 * cp-valprint.c (cp_print_value): Don't add the offset parameter
1402 to the address argument of baseclass_offset or target_read_memory.
1403 Do add it to the argument of cp_print_value_fields.
1404
1405 2003-06-21 Andrew Cagney <cagney@redhat.com>
1406
1407 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
1408 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
1409 instead of 0..NUM_REGS.
1410 (mips_register_reggroup_p): New function.
1411 (mips_pseudo_register_write): New function.
1412 (mips_pseudo_register_read): New function.
1413 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
1414 based on the register's type.
1415 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
1416 cooked.
1417 (mips_get_saved_register): Simplify. Assert that REGNO is a
1418 pseudo / cooked.
1419 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
1420 (mips_register_type): Replace mips_register_virtual_type. Map
1421 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
1422 when available.
1423 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
1424 that the register is cooked / virtual.
1425 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
1426 Only get the extra info when needed.
1427 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
1428 (mips32_heuristic_proc_desc): Fetch the cooked register.
1429 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
1430 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
1431 (mips_print_register): Use gdbarch_register_type, instead of
1432 REGISTER_VIRTUAL_TYPE.
1433 (print_gp_register_row): Use gdbarch_register_type, instead of
1434 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
1435 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1436 Print the pseudo / cooked registers.
1437 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1438 Print the pseudo / cooked registers.
1439 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
1440 REG_NUM is pseudo / cooked.
1441 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
1442 (mips_n32n64_xfer_return_value): Ditto.
1443 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
1444 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
1445 (mips_register_sim_regno): New function.
1446 (mips_gdbarch_init): Set deprecated_register_byte,
1447 register_group_p, pseudo_register_write, pseudo_register_read,
1448 register_sim_regno, and num_pseudo_regs. Set register_type,
1449 instead of register_virtual_type.
1450 * Makefile.in (mips-tdep.o): Update dependencies.
1451 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
1452 REGISTER_VIRTUAL_TYPE.
1453 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
1454 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
1455 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
1456 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
1457 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
1458
1459 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1460
1461 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
1462 * cli/cli-cmds.c: Include "gdb_vfork.h".
1463 (shell_escape): Use vfork.
1464
1465 2003-06-21 Andrew Cagney <cagney@redhat.com>
1466
1467 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
1468 32 bit floating-point register saves.
1469
1470 * frame.h (deprecated_unwind_get_saved_register): Delete.
1471 * frame.c (deprecated_unwind_get_saved_register): Delete function.
1472 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
1473 and deprecated_get_next_frame_hack instead of
1474 deprecated_unwind_get_saved_register.
1475
1476 * mips-tdep.c (mips_dump_tdep): Do not print
1477 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
1478
1479 * frame.c (get_frame_register): New function.
1480 (frame_unwind_register_signed): New function.
1481 (get_frame_register_signed): New function.
1482 (frame_unwind_register_unsigned): New function.
1483 (get_frame_register_unsigned): New function.
1484 * frame.h: Add comments on naming schema.
1485 (get_frame_register, frame_unwind_register_signed): Declare.
1486 (get_frame_register_signed, get_frame_register_signed): Declare.
1487 (frame_unwind_register_unsigned): Declare.
1488 (get_frame_register_unsigned): Declare.
1489
1490 2003-06-20 Theodore A. Roth <troth@openavr.org>
1491
1492 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
1493
1494 2003-06-20 Theodore A. Roth <troth@openavr.org>
1495
1496 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
1497 (avr_read_sp): Ditto.
1498
1499 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
1500
1501 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
1502 * config/arm/nm-linux.h: Likewise.
1503 * config/arm/tm-linux.h: Likewise.
1504 * config/ia64/nm-linux.h: Likewise.
1505 * config/ia64/tm-ia64.h: Likewise.
1506 * config/s390/tm-linux.h: Likewise.
1507 * config/s390/tm-s390.h: Likewise.
1508 * s390-nat.c: Likewise.
1509 * s390-tdep.c: Likewise.
1510
1511 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
1512 * config/ia64/linux.mt: Likewise.
1513 * config/m68k/linux.mh: Likewise.
1514 * config/mips/linux.mt: Likewise.
1515 * config/powerpc/linux.mh: Likewise.
1516 * config/sh/linux.mt: Likewise.
1517
1518 2003-06-19 Kris Warkentin <kewarken@qnx.com>
1519
1520 * solib.c (solib_open): Change tests for whether to search
1521 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
1522 comments.
1523
1524 2003-06-19 Theodore A. Roth <troth@openavr.org>
1525
1526 * avr-tdep.c (avr_frame_address): Delete function.
1527 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
1528 set_gdbarch_frame_args_address.
1529
1530 2003-06-19 Andrew Cagney <cagney@redhat.com>
1531
1532 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
1533 (REGISTER_CONVERT_FROM_TYPE): Delete.
1534 (mips_register_convert_to_type): Delete declaration.
1535 (mips_register_convert_from_type): Delete declaration.
1536 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
1537 kernel/.
1538
1539 2003-06-19 Michael Snyder <msnyder@redhat.com>
1540
1541 * linux-nat.h: New file.
1542 * linux-nat.c: Include linux-nat.h.
1543 * lin-lwp.c: Include linux-nat.h.
1544 Move struct lwp_info def to linux-nat.h.
1545 * linux-proc.c: Include linux-nat.h.
1546 (linux_make_note_section): Iterate over lwps instead of threads.
1547 (linux_do_thread_registers): Use lwp instead of merged pid.
1548 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
1549 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
1550 Add dependency on linux_nat_h.
1551
1552 2003-06-19 Theodore A. Roth <troth@openavr.org>
1553
1554 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
1555
1556 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1557
1558 * varobj.c (get_type, get_target_type): Use check_typedef.
1559
1560 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1561
1562 * breakpoint.c (insert_catchpoint): Call internal_error.
1563
1564 2003-06-19 Theodore A. Roth <troth@openavr.org>
1565
1566 * avr-tdep.c (avr_push_dummy_code): Delete function.
1567 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
1568
1569 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1570
1571 * arch-utils.c (default_prepare_to_proceed): Remove.
1572 (generic_prepare_to_proceed): Remove.
1573 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
1574 (generic_prepare_to_proceed): Remove prototype.
1575 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
1576 * gdbarch.c: Regenerate.
1577 * gdbarch.h: Regenerate.
1578 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
1579 * hppah-nat.c (hppa_switched_threads): Remove.
1580 * infrun.c (prepare_to_proceed): New static function, copied from
1581 generic_prepare_to_proceed. Remove select_it argument.
1582 (proceed): Call prepare_to_proceed.
1583 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
1584 variables.
1585 (ptrace_wait): Don't set the removed variables.
1586 (hppa_switched_threads): Remove.
1587 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
1588 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
1589 (lin_lwp_prepare_to_proceed): Remove prototype.
1590 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
1591 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
1592
1593 2003-06-18 Theodore A. Roth <troth@openavr.org>
1594
1595 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
1596 trad-frame.h.
1597 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
1598 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
1599 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
1600 (AVR_PROLOGUE_*): Enumerate prologue types.
1601 (struct frame_extra_info): Remove.
1602 (struct avr_unwind_cache): Define.
1603 (avr_write_sp): Delete function.
1604 (avr_read_fp): Ditto.
1605 (avr_init_extra_frame_info): Ditto.
1606 (avr_pop_frame): Ditto.
1607 (avr_frame_saved_pc): Ditto.
1608 (avr_saved_pc_after_call): Ditto.
1609 (avr_push_return_address): Ditto.
1610 (avr_frame_chain): Ditto.
1611 (avr_store_struct_return): Ditto.
1612 (avr_push_arguments): Ditto.
1613 (avr_scan_prologue): Update comments. Changed to set up the info for
1614 cache unwinding. Now returns end of prologue PC.
1615 (avr_skip_prologue): Better handling of functions lacking a prologue
1616 by using avr_scan_prologue.
1617 (avr_scan_arg_moves): New function.
1618 (avr_saved_regs_unwinder): Ditto.
1619 (avr_frame_unwind_cache): Ditto.
1620 (avr_unwind_pc): Ditto.
1621 (avr_frame_this_id): Ditto.
1622 (avr_frame_prev_register): Ditto.
1623 (avr_frame_p): Ditto.
1624 (avr_frame_base_address ): Ditto.
1625 (avr_unwind_dummy_id): Ditto.
1626 (avr_push_dummy_code): Ditto.
1627 (push_stack_item): Ditto.
1628 (pop_stack_item): Ditto.
1629 (avr_push_dummy_call): Ditto.
1630 (struct stack_item): Define.
1631 (avr_frame_unwind): Declare structure.
1632 (avr_frame_base): Ditto.
1633 (avr_gdbarch_init): Remove calls to
1634 set_gdbarch_deprecated_init_frame_pc,
1635 set_gdbarch_deprecated_target_read_fp,
1636 set_gdbarch_deprecated_dummy_write_sp,
1637 set_gdbarch_deprecated_fp_regnum,
1638 set_gdbarch_deprecated_push_arguments,
1639 set_gdbarch_deprecated_push_return_address,
1640 set_gdbarch_deprecated_pop_frame,
1641 set_gdbarch_deprecated_store_struct_return,
1642 set_gdbarch_deprecated_frame_init_saved_regs,
1643 set_gdbarch_deprecated_init_extra_frame_info,
1644 set_gdbarch_deprecated_frame_chain,
1645 set_gdbarch_deprecated_frame_saved_pc,
1646 set_gdbarch_deprecated_saved_pc_after_call.
1647 Add calls to set_gdbarch_push_dummy_call,
1648 set_gdbarch_push_dummy_code,
1649 frame_unwind_append_predicate,
1650 frame_base_set_default,
1651 set_gdbarch_unwind_dummy_id,
1652 set_gdbarch_unwind_pc.
1653 Wrap a long line.
1654
1655 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
1656
1657 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
1658 registers for H8/300S.
1659 (h8300_print_registers_info): Ditto.
1660 (h8300_gdbarch_init): Accommodate register count for H8/300S.
1661
1662 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
1663
1664 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
1665 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1666 (lin_lwp_wait): Likewise. Update comments.
1667 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
1668 (pull_pid_from_list, linux_record_stopped_pid): New.
1669
1670 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
1671
1672 * ada-lang.c (scan_discrim_bound): Name first argument.
1673 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
1674 declared by ALL_BLOCK_SYMBOLS.
1675
1676 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
1677
1678 * ada-tasks.c (find_function_in_inferior): Don't declare it.
1679 ("regcache.h"): Include it.
1680 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
1681
1682 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1683
1684 * NEWS: Mention gdbserver detach change and "disconnect" command.
1685 * infcmd.c (disconnect_command): New function.
1686 (_initialize_infcmd): Add ``disconnect'' command.
1687 * remote.c (remote_async_detach): Delete.
1688 (remote_detach): Merge remote_async_detach.
1689 (remote_disconnect): New.
1690 (init_remote_ops): Set to_disconnect.
1691 (init_remote_cisco_ops): Likewise.
1692 (init_remote_async_ops): Likewise. Use remote_detach.
1693 * target.c (cleanup_target): Default to_disconnect.
1694 (update_current_target): Inherit to_disconnect.
1695 (target_disconnect, debug_to_disconnect): New functions.
1696 (setup_target_debug): Set to_disconnect.
1697 * target.h (struct target_ops): Add to_disconnect.
1698 (target_disconnect): Add prototype.
1699
1700 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1701
1702 * breakpoint.c (insert_catchpoint): New function.
1703 (insert_breakpoints): Use catch_exceptions to call
1704 insert_catchpoint. Disable catchpoints if they fail to insert.
1705
1706 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1707
1708 * symfile.c (reread_symbols): Clear sym_private.
1709
1710 2003-06-17 Andrew Cagney <cagney@redhat.com>
1711
1712 * trad-frame.h (struct frame_info): Add opaque declaration.
1713 * remote-fileio.h (struct cmd_list_element): Add opaque
1714 declaration.
1715 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
1716 comments.
1717
1718 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
1719
1720 * remote.c (remote_prepare_to_store): Replace call to
1721 deprecated_read_register_bytes with multiple regcache_raw_read
1722 calls.
1723
1724 2003-06-17 Kris Warkentin <kewarken@qnx.com>
1725
1726 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
1727 (nto_find_and_open_solib): Likewise.
1728 (nto_init_solib_absolute_prefix): Likewise.
1729 (_initialize_nto_tdep): Fix indentation.
1730
1731 2003-06-17 Kris Warkentin <kewarken@qnx.com>
1732
1733 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
1734
1735 2003-06-17 Kris Warkentin <kewarken@qnx.com>
1736
1737 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
1738
1739 2003-06-17 Jim Blandy <jimb@redhat.com>
1740
1741 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
1742
1743 2003-06-16 Theodore A. Roth <troth@openavr.org>
1744
1745 * avr-tdep.c (avr_extract_return_value): New function.
1746 (avr_gdbarch_init): Set extract_return_value method.
1747
1748 2003-06-16 Andrew Cagney <cagney@redhat.com>
1749
1750 * frame.h (deprecated_get_next_frame_hack): Declare.
1751 * frame.c (legacy_saved_regs_prev_register): Only require
1752 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
1753 there are always saved regs.
1754 (deprecated_generic_get_saved_register): Do not require
1755 DEPRECATED_FRAME_INIT_SAVED_REGS.
1756 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
1757 use frame ID unwind instead.
1758 (deprecated_get_next_frame_hack): New function.
1759
1760 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
1761
1762 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
1763 (h8300_push_dummy_call): ...this function. Some minor optimization.
1764 (h8300_push_return_address): Remove.
1765 (h8300_gdbarch_init): Remove calls to
1766 set_gdbarch_deprecated_dummy_write_sp,
1767 set_gdbarch_deprecated_push_arguments and
1768 set_gdbarch_deprecated_push_return_address.
1769 Add call to set_gdbarch_push_dummy_call.
1770
1771 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
1772
1773 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
1774 (E_PSEUDO_EXR_REGNUM): Ditto.
1775 (h8300_is_argument_spill): Check for instructions moving argument
1776 registers into safe registers.
1777 (h8300_skip_prologue): Check for stm instruction to push registers
1778 used for register variables onto stack.
1779 (gdb_print_insn_h8300): Remove.
1780 (h8300_examine_prologue): Add a comment.
1781 (h8300_register_name): Take pseudo registers into account.
1782 (h8300s_register_name): Ditto.
1783 (h8300sx_register_name): Ditto.
1784 (h8300_print_register): Ditto.
1785 (h8300_print_registers_info): Define "nice" printing order.
1786 (h8300_saved_pc_after_call): Take pseudo registers into account.
1787 (h8300_register_type): Ditto. Return type used for remote connection
1788 when requesting real CCR or EXR register, return actual type when
1789 requesting pseudo CCR or EXR.
1790 (h8300_pseudo_register_read): New function.
1791 (h8300_pseudo_register_write): Ditto.
1792 (h8300_dbg_reg_to_regnum): Ditto.
1793 (h8300s_dbg_reg_to_regnum): Ditto.
1794 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
1795 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
1796 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
1797 set_gdbarch_print_insn architecture dependent.
1798 Call set_gdbarch_pseudo_register_read and
1799 set_gdbarch_pseudo_register_write.
1800 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
1801
1802 2003-06-16 Andrew Cagney <cagney@redhat.com>
1803
1804 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
1805 * gdbarch.h, gdbarch.c: Re-generate.
1806 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1807 * s390-tdep.c (s390_gdbarch_init): Update.
1808 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1809 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1810 * mips-tdep.c (mips_gdbarch_init): Update.
1811 * mcore-tdep.c (mcore_gdbarch_init): Update.
1812 * cris-tdep.c (cris_gdbarch_init): Update.
1813 * infcall.c (call_function_by_hand): Update.
1814 * ia64-tdep.c (ia64_push_arguments): Update comment.
1815 * frame.c (legacy_get_prev_frame): Do not assume
1816 SAVE_DUMMY_FRAME_TOS_P.
1817 * dummy-frame.c (find_dummy_frame): Update comment.
1818
1819 2003-06-16 Andrew Cagney <cagney@redhat.com>
1820
1821 * regcache.c (do_cooked_read): Do not use register_valid_p.
1822
1823 2003-06-15 Theodore A. Roth <troth@openavr.org>
1824
1825 * avr-tdep.c (avr_register_type): Remove a blank line.
1826 (avr_scan_prologue): Correct some comments.
1827
1828 2003-06-15 Theodore A. Roth <troth@openavr.org>
1829
1830 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
1831 prologue types.
1832 Properly scan prologues generated by gcc with the -mcall-prologues
1833 option.
1834 Add code to scan -mcall-prologues for mega devices.
1835
1836 2003-06-15 Theodore A. Roth <troth@openavr.org>
1837
1838 * avr-tdep.c (avr_register_byte): Delete function.
1839 (avr_register_raw_size): Delete function.
1840 (avr_register_virtual_size): Delete function.
1841 (avr_register_virtual_type): Delete function.
1842 (avr_register_type): New function.
1843 (avr_address_to_pointer): Remove unused code.
1844 (avr_read_fp): Need to read FP as two separate bytes due to change to
1845 avr_register_type() usage.
1846 (avr_gdbarch_init): Don't set deprecated_register_size.
1847 Don't set deprecated_register_bytes.
1848 Don't set deprecated_register_byte.
1849 Don't set deprecated_register_raw_size.
1850 Don't set deprecated_max_register_raw_size.
1851 Don't set deprecated_register_virtual_size.
1852 Don't set deprecated_max_register_virtual_size.
1853 Don't set deprecated_register_virtual_type.
1854 Set register_type method.
1855
1856 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
1857
1858 * Makefile.in (linux-nat.o): Add rule.
1859 * linux-nat.c: New file.
1860 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
1861 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
1862 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
1863 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
1864 * config/arm/linux.mh (NATDEPFILES): Likewise.
1865 * config/i386/linux.mh (NATDEPFILES): Likewise.
1866 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
1867 * config/ia64/linux.mh (NATDEPFILES): Likewise.
1868 * config/m68k/linux.mh (NATDEPFILES): Likewise.
1869 * config/mips/linux.mh (NATDEPFILES): Likewise.
1870 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
1871 * config/s390/s390.mh (NATDEPFILES): Likewise.
1872 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1873
1874 2003-06-15 Mark Kettenis <kettenis@gnu.org>
1875
1876 * i387-tdep.c: Reorder includes, fix some whitespace issues and
1877 replace out-of-date comment.
1878
1879 2003-06-15 Andrew Cagney <cagney@redhat.com>
1880
1881 * rdi-share/host.h (Fail): Change to a varargs function.
1882 * remote-rdi.c (Fail): Update.
1883
1884 2003-06-15 Mark Kettenis <kettenis@gnu.org>
1885
1886 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
1887 (i386_convert_register_p, i386_register_to_value,
1888 i386_register_from_value): Handle types longer than 8 bytes.
1889
1890 2003-06-15 Mark Kettenis <kettenis@gnu.org>
1891
1892 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
1893 Move floating-point code to new function in i387-tdep.c.
1894 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
1895 New functions containing code moved here from i386-tdep.c.
1896 * i387-tdep.h: Add opaque declaration for `struct type'.
1897 (i387_register_to_value, i387_value_to_register): New prototypes.
1898 * x86-64-tdep.c (x86_64_convert_register_p): New function.
1899 (x86_64_init_abi): Set convert_register_p, register_to_value and
1900 value_to_register here.
1901
1902 2003-06-14 Andrew Cagney <cagney@redhat.com>
1903
1904 * mips-tdep.c (mips_register_to_value): Make static.
1905 (mips_value_to_register): Make static.
1906 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
1907 * ia64-tdep.c (ia64_register_raw_size): Make static.
1908 (ia64_register_virtual_size): Make static.
1909 (ia64_register_byte): Make static.
1910 * i387-tdep.c: Include "i387-tdep.h".
1911 (print_387_control_word): Delete function.
1912 (print_387_status_word): Delete function.
1913 (print_387_status_bits): Delete function.
1914 (print_387_control_bits): Delete function.
1915 * Makefile.in (i387-tdep.o): Update dependencies.
1916 * rdi-share/host.h (Fail): Declare.
1917 * remote-rdi.c (Fail): Update to match declaration.
1918
1919 2003-06-14 Andrew Cagney <cagney@redhat.com>
1920
1921 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
1922 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
1923 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
1924 * config/djgpp/fnchange.lst: Delete "remote-array.c".
1925 * README: Delete reference to remote-array.
1926 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
1927 (remote-array.o): Delete target.
1928 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
1929 * remote-array.c: Delete file.
1930
1931 2003-06-14 Andrew Cagney <cagney@redhat.com>
1932 Mark Kettenis <kettenis@gnu.org>
1933
1934 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
1935 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
1936 parameter with "frame".
1937 * gdbarch.h, gdbarch.c: Re-generate.
1938 * frame.h (put_frame_register): Declare.
1939 * frame.c (put_frame_register): New function.
1940 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
1941 (legacy_register_to_value): Rewrite, use "frame" to get the
1942 register value.
1943 (legacy_value_to_register): Rewrite, use "frame" to find the
1944 register's location before storing.
1945 * arch-utils.h (legacy_convert_register_p): Update.
1946 (legacy_register_to_value, legacy_value_to_register): Update.
1947 * findvar.c (value_from_register): Rewrite, eliminate use of
1948 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
1949 "frame" to REGISTER_TO_VALUE.
1950 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
1951 lval_reg_frame_relative + lval_register branch of the switch. Do
1952 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
1953 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1954 I386_EDI_REGNUM): New defines.
1955 (i386_next_regnum, i386_convert_register_p,
1956 i386_register_to_value, i386_value_to_register): New functions.
1957 (i386_register_convertible, i386_register_convert_to_virtual,
1958 i386_convert_to_raw): Remove functions.
1959 (i386_gdbarch_init): Set convert_register_p, register_to_value and
1960 value_to_register instead of register_convertible,
1961 register_convert_to_virtual and register_convert_to_raw.
1962 * mips-tdep.c (mips_convert_register_p): New function.
1963 (mips_value_to_register): Replace mips_register_convert_from_type.
1964 (mips_register_to_value): Replace mips_register_convert_to_type.
1965 (mips_gdbarch_init): Set conver_register_p, value_to_register and
1966 register_to_value.
1967 * alpha-tdep.c (alpha_convert_register_p): Update.
1968 (alpha_value_to_register): Update, store the register.
1969 (alpha_register_to_value): Update, fetch the register.
1970
1971 2003-06-14 Theodore A. Roth <troth@openavr.org>
1972
1973 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
1974 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
1975 Don't set deprecated_call_dummy_words.
1976 Remove commented out set_gdbarch_believe_pcc_promotion() call.
1977 Don't set remote_translate_xfer_address.
1978 (avr_io_reg_read_command): Remove commented out debug printf.
1979 Wrap a long line.
1980
1981 2003-06-14 Theodore A. Roth <troth@openavr.org>
1982
1983 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
1984 causes gdb to seg fault.
1985
1986 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
1987
1988 * sparc-nat.c (fetch_inferior_registers): Correct
1989 a reference to "registers".
1990
1991 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
1992
1993 * Makefile.in (exc_request_U_h): Define
1994 (exc_request_S_h): Likewise.
1995 (msg_reply_S_h): Likewise.
1996 (msg_U_h): Likewise.
1997 (notify_S_h): Likewise.
1998 (process_reply_S_h): Likewise.
1999 (gnu-nat.o): Depend on gdb_obstack_h
2000 * gnu-nat.c: Include "gdb_obstack.h".
2001
2002 2003-06-13 Andrew Cagney <cagney@redhat.com>
2003
2004 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2005 * gdbarch.h, gdbarch.c: Re-generate.
2006
2007 2003-06-13 Andrew Cagney <cagney@redhat.com>
2008
2009 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2010 when deprecated REGISTER macros can be deleted.
2011 * gdbarch.h, gdbarch.c: Re-generate.
2012
2013 2003-06-13 Jim Blandy <jimb@redhat.com>
2014
2015 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2016 Linux entry point symbols for _dl_debug_state, too.
2017
2018 2003-06-13 Andrew Cagney <cagney@redhat.com>
2019
2020 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2021 available, do not use the FP register, and always save the TOS.
2022 * dummy-frame.c (dummy_frame_this_id): Do not assert
2023 SAVE_DUMMY_FRAME_TOS.
2024 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2025 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2026 (i386_push_dummy_call): Add 8 to the returned SP.
2027 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2028 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2029 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2030 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2031 (x86_64_push_dummy_call): Return "sp + 16".
2032 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2033 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2034 save_dummy_frame_tos.
2035
2036 2003-06-13 Jim Blandy <jimb@redhat.com>
2037
2038 * frv-tdep.c (frv_use_struct_convention): Delete static
2039 declaration for function deleted in my change of 2003-06-12.
2040
2041 2003-06-13 Theodore A. Roth <troth@openavr.org>
2042
2043 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2044 (avr_pointer_to_address): Shift code addrs left 1 bit.
2045 (avr_convert_from_func_ptr_addr): Delete function since operation is
2046 better handled by avr_address_to_pointer and avr_pointer_to_address.
2047 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2048
2049 2003-06-13 Mark Kettenis <kettenis@gnu.org>
2050
2051 From Kelley Cook <kelleycook@wideopenwest.com>:
2052 * configure.host: Accept i[34567]86 variants.
2053 * configure.tgt: Likewise.
2054 * nlm/configure.in: Likewise.
2055 * nlm/configure: Regenerated.
2056
2057 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2058
2059 * arm-tdep.c (solib-svr4.h): Dont' include it.
2060 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2061 * arm-linux-tdep.c: ... here. Make static.
2062 (arm_linux_init_abi): Register it.
2063 (solib-svr4.h): Include it.
2064 * Makefile.in: Update dependencies.
2065 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2066 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2067
2068 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2069
2070 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2071 indicate registers used for return values.
2072 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2073 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2074 members.
2075 (h8300_init_extra_frame_info): Ditto.
2076 (h8300_frame_locals_address): Removed.
2077 (h8300_frame_args_address): Removed.
2078 (h8300_extract_return_value): Use new regcache structure. Only care
2079 for 16 bit CPUs.
2080 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2081 (h8300_store_return_value): Use new regcache structure. Only care
2082 for 16 bit CPUs.
2083 (h8300h_store_return_value): Same function for 32 bit CPUs.
2084 (h8300_store_struct_return): Removed.
2085 (h8300_extract_struct_value_address): Use new regcache structure.
2086 (h8300h_extract_struct_value_address): Removed.
2087 (h8300_push_dummy_code): New function.
2088 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2089 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2090 set_gdbarch_store_return_value architecture dependent.
2091 Call set_gdbarch_push_dummy_code and
2092 set_gdbarch_extract_struct_value_address.
2093 Remove calls to set_gdbarch_frame_args_address,
2094 set_gdbarch_frame_locals_address,
2095 set_gdbarch_deprecated_store_struct_return,
2096 set_gdbarch_deprecated_extract_return_value,
2097 set_gdbarch_deprecated_extract_struct_value_address,
2098 set_gdbarch_deprecated_call_dummy_words and
2099 set_gdbarch_deprecated_sizeof_call_dummy_words.
2100
2101 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2102
2103 * h8300-tdep.c (h8300_register_byte): Remove.
2104 (h8300h_register_byte): Remove.
2105 (h8300_register_virtual_type): Remove. Substitute by...
2106 (h8300_register_type): New function.
2107 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2108 (h8300h_extract_struct_value_address): Ditto.
2109 (h8300_gdbarch_init): Drop calls to
2110 set_gdbarch_deprecated_register_byte and
2111 set_gdbarch_deprecated_register_virtual_type.
2112 Add call to set_gdbarch_register_type.
2113
2114 2003-06-13 Andrew Cagney <cagney@redhat.com>
2115
2116 * gdbarch.sh: Update comments on registers.
2117 (deprecated_register_byte): Rename register_byte.
2118 (deprecated_register_raw_size): Rename register_raw_size.
2119 (deprecated_register_virtual_size): Rename register_virtual_size.
2120 (deprecated_register_virtual_type): Rename register_virtual_type.
2121 * gdbarch.h, gdbarch.c: Re-generate.
2122 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2123 * vax-tdep.c (vax_gdbarch_init): Update.
2124 * v850-tdep.c (v850_gdbarch_init): Update.
2125 * sparc-tdep.c (sparc_gdbarch_init): Update.
2126 * sh-tdep.c (sh_gdbarch_init): Update.
2127 * s390-tdep.c (s390_gdbarch_init): Update.
2128 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2129 * ns32k-tdep.c: Update.
2130 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2131 * mips-tdep.c (mips_gdbarch_init): Update.
2132 * mcore-tdep.c (mcore_gdbarch_init): Update.
2133 * m68k-tdep.c (m68k_gdbarch_init): Update.
2134 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2135 * ia64-tdep.c (ia64_gdbarch_init): Update.
2136 * hppa-tdep.c (hppa_gdbarch_init): Update.
2137 * h8300-tdep.c (h8300_gdbarch_init): Update.
2138 * frv-tdep.c (frv_gdbarch_init): Update.
2139 * cris-tdep.c (cris_gdbarch_init): Update.
2140 * avr-tdep.c (avr_gdbarch_init): Update.
2141 * alpha-tdep.c (alpha_gdbarch_init): Update.
2142 * arm-tdep.c (arm_gdbarch_init): Update.
2143
2144 2003-06-13 Andrew Cagney <cagney@redhat.com>
2145
2146 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2147 mips_o32_use_struct_convention with always_use_struct_convention.
2148
2149 2003-06-12 David Carlton <carlton@kealia.com>
2150
2151 * cp-namespace.c (cp_set_block_scope): Comment out
2152 processing_has_namespace_info branch.
2153
2154 2003-06-12 Jim Blandy <jimb@redhat.com>
2155
2156 Recognize and skip 64-bit PowerPC Linux linkage functions.
2157 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2158 insn_pattern, insns_match_pattern, d_field, ds_field): New
2159 functions, macros, and types for working with PPC instructions.
2160 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2161 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2162 ppc64_skip_trampoline_code): New functions, variables, and macros
2163 for recognizing and skipping linkage functions.
2164 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2165 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2166
2167 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2168 register offsets for both the 32- and 64-bit interfaces.
2169
2170 Actually finish the job started by my change of 2003-05-29.
2171 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2172 other #definition of this.
2173 (ppc_linux_skip_trampoline_code): Remove declaration.
2174 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2175 static.
2176 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2177 method for GDBARCH.
2178
2179 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2180 'long' on ppc64-*-linux*.
2181
2182 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2183 isn't #defined, assume the register doesn't exist: act as if
2184 tdep->ppc_mq_regnum were -1.
2185
2186 * configure.host, configure.tgt: Add entries for
2187 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2188 powerpc/linux.mt.
2189 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2190 New files.
2191
2192 * arch-utils.c (always_use_struct_convention): New function.
2193 * arch-utils.h (always_use_struct_convention): New prototype.
2194 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2195 (alpha_gdbarch_init): Register always_use_struct_convention,
2196 instead of alpha_use_struct_convention.
2197 * cris-tdep.c (cris_use_struct_convention): Delete.
2198 (cris_gdbarch_init): Register always_use_struct_convention,
2199 instead of cris_use_struct_convention.
2200 * frv-tdep.c (frv_use_struct_convention): Delete.
2201 (frv_gdbarch_init): Register always_use_struct_convention,
2202 instead of frv_use_struct_convention.
2203 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2204 (h8300_gdbarch_init): Register always_use_struct_convention,
2205 instead of h8300_use_struct_convention.
2206 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
2207 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2208 instead of mips_o32_use_struct_convention.
2209
2210 2003-06-12 Andrew Cagney <cagney@redhat.com>
2211
2212 * wince.c: Include "mips-tdep.h".
2213 * mips-tdep.h (mips_next_pc): Declare.
2214 * mcore-tdep.c: Make more local functions static.
2215 * Makefile.in (wince.o): Update dependencies.
2216
2217 2003-06-12 David Carlton <carlton@kealia.com>
2218
2219 * symtab.c (lookup_symbol_aux_minsyms): Replace
2220 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2221 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2222 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2223 SYMBOL_NATURAL_NAME.
2224
2225 2003-06-12 Andreas Schwab <schwab@suse.de>
2226
2227 * Makefile.in (tuiDisassem.o): Update dependencies.
2228
2229 2003-06-12 David Carlton <carlton@bactrian.org>
2230
2231 * symtab.h: Delete declaration of make_symbol_overload_list.
2232 Add declaration of lookup_partial_symbol.
2233 * symtab.c (remove_params): Move to cp-support.c.
2234 (overload_list_add_symbol, make_symbol_overload_list)
2235 (sym_return_val_size, sym_return_val_index): Ditto.
2236 (lookup_partial_symbol): Make extern.
2237 * cp-support.h: Add declaration of make_symbol_overload_list.
2238 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2239 symtab.h, and block.h.
2240 (remove_params): Move here from symtab.c.
2241 (overload_list_add_symbol, make_symbol_overload_list)
2242 (sym_return_val_size, sym_return_val_index): Ditto.
2243 * valops.c: Include cp-support.h.
2244 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2245 frame_h, and block_h.
2246 (valops.o): Depend on cp_support_h.
2247
2248 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
2249
2250 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2251 substitute by NUM_REGS throughout.
2252 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2253 (h8300s_register_name): New function for H8S registers.
2254 (h8300sx_register_name): Ditto for H8SX registers.
2255 (h8300_print_register): Revise register printing, avoid depending
2256 on 32 bit long.
2257 (h8300_register_byte): Only care for H8/300 registers.
2258 (h8300h_register_byte): New function for any other architecture.
2259 (h8300_register_raw_size): Remove.
2260 (h8300_register_virtual_type): Revise to return actually useful
2261 type.
2262 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2263 (h8300h_extract_struct_value_address): New function for any other
2264 architecture.
2265 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2266 set_gdbarch_register_name, set_gdbarch_register_byte,
2267 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2268 Remove calls to set_gdbarch_deprecated_register_size,
2269 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2270 set_gdbarch_deprecated_max_register_raw_size,
2271 set_gdbarch_register_virtual_size and
2272 set_gdbarch_deprecated_max_register_virtual_size entirely.
2273 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2274 set_gdbarch_long_double_bit.
2275
2276 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2277
2278 * doublest.c (convert_doublest_to_floatformat): When dealing
2279 with the implied integer bit, only alter mant_bits if we are
2280 processing a full 32 bits of mantissa.
2281
2282 2003-06-11 David Carlton <carlton@bactrian.org>
2283
2284 * dictionary.h: New.
2285 * dictionary.c: New.
2286 * block.h: Add opaque declaration for struct dictionary.
2287 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2288 'sym' members.
2289 (BLOCK_DICT): New macro.
2290 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2291 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2292 BLOCK_SHOULD_SORT.
2293 (ALL_BLOCK_SYMBOLS): Update definition.
2294 * Makefile.in (SFILES): Add dictionary.c.
2295 (dictionary_h): New.
2296 (COMMON_OBS): Add dictionary.o.
2297 (dictionary.o): New.
2298 (ada-lang.o): Depend on dictionary_h.
2299 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
2300 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
2301 (mi-cmd-stack.o): Ditto.
2302 (gdbtk-cmds.o): Update dependencies.
2303 (gdbtk-stack.o): Ditto.
2304 * ada-lang.c: Include dictionary.h.
2305 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
2306 (fill_in_ada_prototype, debug_print_block): Ditto.
2307 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
2308 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
2309 'is_sorted'.
2310 * mdebugread.c: Include dictionary.h.
2311 (struct parse_stack): Delete 'maxsyms' member.
2312 (parse_symbol): Update calls to new_block. Delete calls to
2313 shrink_block. Use dictionary methods.
2314 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
2315 Update calls to new_symtab. Don't maintain maxsyms data.
2316 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
2317 (add_symbol): Just call dict_add_symbol.
2318 (new_symtab): Delete 'maxsyms' argument.
2319 (new_symtab): Update calls to new_block.
2320 (new_block): Delete 'maxsyms' argument; add 'function' argument.
2321 (shrink_block): Delete function.
2322 (fixup_sigtramp): Update call to new_block. Add symbol via
2323 dict_add_symbol.
2324 * jv-lang.c: Include dictionary.h.
2325 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
2326 appropriately. Set class_symtab->free_func. Make sure the
2327 blockvector is big enough to hold two blocks.
2328 (add_class_symtab_symbol): Use dictionary methods.
2329 (free_class_block): New function.
2330 (type_from_class): Replace explicit iteration by
2331 ALL_BLOCK_SYMBOLS.
2332 * symtab.h (struct symtab): Replace 'free_ptr' method by
2333 'free_func'.
2334 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
2335 sort_symtab_syms.
2336 * dwarfread.c (psymtab_to_symtab_1): Delete call to
2337 sort_symtab_syms.
2338 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
2339 Include dictionary.h.
2340 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
2341 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
2342 sort_symtab_syms.
2343 * objfiles.c: Include dictionary.h.
2344 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
2345 * buildsym.c: Include dictionary.h.
2346 (finish_block): Use dictionary methods.
2347 (end_symtab): Set free_func to NULL, not free_ptr.
2348 * tracepoint.c: Include dictionary.h.
2349 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
2350 (scope_info): Ditto.
2351 * stack.c: Include dictionary.h.
2352 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
2353 (print_block_frame_labels, print_frame_arg_vars)
2354 (print_frame_args): Ditto.
2355 * symmisc.c (free_symtab_block): Use dictionary methods.
2356 (dump_symtab): Ditto.
2357 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
2358 Include dictionary.h.
2359 * symfile.h: Delete declarations of sort_block_syms,
2360 sort_symtab_syms.
2361 * symfile.c (sort_block_syms): Delete.
2362 (sort_symtab_syms): Delete.
2363 * symtab.c: Include dictionary.h.
2364 (lookup_block_symbol): Use dictionary iterators.
2365 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
2366 (search_symbols, make_symbol_completion_list): Ditto.
2367 (make_symbol_overload_list): Ditto.
2368 * valops.c (value_of_local): Use dict_empty.
2369 Include dictionary.h.
2370
2371 2003-06-11 J. Brobecker <brobecker@gnat.com>
2372
2373 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
2374
2375 2003-06-11 David Carlton <carlton@bactrian.org>
2376
2377 * block.h (BLOCK_SHOULD_SORT): Delete.
2378 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
2379 blocks.
2380 * ada-lang.c (ada_add_block_symbols): Ditto.
2381 * symfile.c (sort_block_syms): Delete.
2382 (sort_symtab_syms): Ditto.
2383 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
2384 declarations.
2385 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
2386 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
2387 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
2388 * dwarfread.c (psymtab_to_symtab_1): Ditto.
2389 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
2390 * mdebugread.c (psymtab_to_symtab_1): Ditto.
2391 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2392
2393 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2394
2395 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
2396 bits to 128.
2397
2398 2003-06-11 Andrew Cagney <cagney@redhat.com>
2399
2400 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2401 REGISTER_CONVERTIBLE.
2402 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
2403 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
2404 * gdbarch.h, gdbarch.c: Re-generate.
2405 * arch-utils.h (deprecated_register_convertible_not): Rename
2406 generic_register_convertible_not.
2407 * arch-utils.c (deprecated_register_convertible_not): Rename
2408 generic_register_convertible.
2409 (legacy_convert_register_p, legacy_register_to_value): Update.
2410 * sh-tdep.c (sh64_push_arguments): Update.
2411 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
2412 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
2413 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
2414 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
2415 * arch-utils.c (legacy_value_to_register): Update.
2416 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2417 (rs6000_register_convert_to_raw): Make parameter "from" const.
2418 * mips-tdep.c (mips_gdbarch_init): Update.
2419 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
2420 * infcmd.c (default_print_registers_info): Update.
2421 * ia64-tdep.c (ia64_gdbarch_init): Update.
2422 (ia64_register_convert_to_raw): Make parameter "from" const.
2423 * i386-tdep.c (i386_gdbarch_init): Update.
2424 (i386_register_convert_to_raw): Update.
2425
2426 2003-06-11 Andrew Cagney <cagney@redhat.com>
2427
2428 * remote-fileio.c: Include "remote-fileio.h".
2429 * Makefile.in (remote-fileio.o): Update dependencies.
2430 (remote_fileio_h): Fix typo.
2431
2432 2003-06-11 Andrew Cagney <cagney@redhat.com>
2433
2434 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
2435 (xstormy16_save_dummy_frame_tos): Make static.
2436 (_initialize_xstormy16_tdep): Add declaration.
2437 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
2438 * v850-tdep.c: Make local functions static.
2439 (_initialize_v850_tdep): Add declaration.
2440 * sparc-tdep.c: Make local functions static.
2441 (_initialize_sparc_tdep): Add declaration.
2442 * sh-tdep.c: Make local functions static.
2443 (_initialize_sh_tdep): Add declaration.
2444 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
2445 * s390-tdep.c: Make local functions static.
2446 (_initialize_s390_tdep): Add declaration.
2447 * dbxread.c (find_stab_function_addr): Make static.
2448 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
2449 * ocd.c (_initialize_remote_ocd): Add declaration.
2450 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
2451 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
2452 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
2453 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
2454 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
2455 * remote-array.c (_initialize_array): Add declaration.
2456 (_initialize_remote_monitors): Add declaration.
2457 * remote-mips.c: Make local functions static.
2458 (_initialize_remote_mips): Add declaration.
2459 * mcore-tdep.c: Make all local functions static.
2460 (_initialize_mcore_tdep): Add declaration.
2461 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
2462 * abug-rom.c (_initialize_abug_rom): Add declaration.
2463 * rom68k-rom.c (_initialize_rom68k): Add declaration.
2464 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
2465 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
2466 * remote-est.c (_initialize_est): Add declaration.
2467 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
2468 (m68hc11_call_dummy_address): Make static.
2469 * ia64-tdep.c: Make local functions static.
2470 (_initialize_ia64_tdep): Add declaration.
2471 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
2472 * monitor.c (monitor_wait_filter): Make static.
2473 (_initialize_remote_monitors): Add declaration.
2474 * remote-hms.c (_initialize_remote_hms): Add declaration.
2475 * remote-e7000.c (fetch_regs_from_dump): Make static.
2476 (expect_n): Make static.
2477 (_initialize_remote_e7000): Add declaration.
2478 * ser-e7kpc.c: Always include "defs.h".
2479 (_initialize_ser_e7000pc): Add declaration.
2480 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
2481 * cris-tdep.c: Make all but one function static.
2482 (_initialize_cris_tdep): Add declaration.
2483 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
2484 * solib.c (update_solib_list): Make static.
2485 (_initialize_solib): Add declaration.
2486 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
2487 (_initialize_avr_tdep): Add declaration.
2488 * remote-rdi.c (voiddummy): Make static.
2489 (_initialize_remote_rdi): Add declaration.
2490 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
2491 * remote-rdp.c (send_rdp): Make static.
2492 (_initialize_remote_rdp): Add declaration.
2493 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
2494
2495 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
2496
2497 * remote-fileio.c: Make ari happy.
2498
2499 2003-06-10 J. Brobecker <brobecker@gnat.com>
2500
2501 * rs6000-nat.c (child_xfer_memory): Compute the right address when
2502 fetching the trailing bytes of the buffer we are about to write.
2503
2504 2003-06-10 Andrew Cagney <cagney@redhat.com>
2505
2506 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
2507 * Makefile.in (remote-fileio.o): Update dependencies.
2508 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
2509 include <setjmp.h>, or <sys/types.h> conditional on USG.
2510 (remote_fio_jmp_buf): Delete global variable.
2511
2512 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
2513 Martin M. Hunt <hunt@redhat.com>
2514
2515 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
2516 (SFILES): Add remote-fileio.c.
2517 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
2518 dependencies for building remote.o.
2519 * remote-fileio.c: New file implementing the remote File-I/O protocol.
2520 * remote-fileio.h: New header file defining remote File-I/O interface.
2521 * remote.c (remote_write_bytes, remote_read_bytes): Remove
2522 static storage class.
2523 (remote_wait, remote_async_wait): Call remote_fileio_request() on
2524 'F' packet.
2525 (_initialize_remote): Call initialize_remote_fileio().
2526 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
2527 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2528 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2529 (captured_main): Initialize new ui_files.
2530 * ui-file.c: Add read and fgets input functions.
2531 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
2532 (null_file_read): New function.
2533 (ui_file_read): New function.
2534 (set_ui_file_read): New function.
2535 (stdio_file_read): New function.
2536 * ui-file.h: New type ui_file_read_ftype.
2537 (set_ui_file_read): Declare.
2538 (ui_file_read): Declare.
2539
2540 2003-06-09 Andrew Cagney <cagney@redhat.com>
2541
2542 * frame.h (deprecated_unwind_get_saved_register): Rename
2543 generic_unwind_get_saved_register, update comments.
2544 * mips-tdep.c (mips_get_saved_register): Update.
2545 * frame.c (deprecated_unwind_get_saved_register): Update.
2546
2547 2003-06-09 Andrew Cagney <cagney@redhat.com>
2548
2549 * vax-tdep.c (vax_frame_locals_address): Delete function.
2550 (vax_gdbarch_init): Do not set frame_locals_address.
2551 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
2552 (m68hc11_gdbarch_init): Do not set frame_locals_address.
2553 * s390-tdep.c (s390_frame_args_address): Delete function.
2554 (s390_gdbarch_init): Do not set frame_args_address or
2555 frame_locals_address.
2556 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
2557 (ns32k_gdbarch_init): Do not set frame_locals_address.
2558 * hppa-tdep.c (hppa_frame_args_address): Delete function.
2559 (hppa_frame_locals_address): Delete function.
2560 (hppa_gdbarch_init): Do not set frame_args_address, or
2561 frame_locals_address.
2562 * arm-tdep.c (arm_frame_args_address): Delete.
2563 (arm_frame_locals_address): Delete.
2564 (arm_gdbarch_init): Do not set frame_args_address, or
2565 frame_locals_address.
2566
2567 2003-06-09 Andrew Cagney <cagney@redhat.com>
2568
2569 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
2570 * gdbarch.h, gdbarch.c: Re-generate.
2571 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
2572 * arch-utils.c (frame_num_args_unknown): Delete function.
2573 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
2574 (frame_info): Use FRAME_NUM_ARGS_P.
2575 * arm-tdep.c (arm_frame_num_args): Delete function.
2576 (arm_gdbarch_init): Do not set frame_num_args.
2577 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
2578 * hppa-tdep.c (hppa_frame_num_args): Delete function.
2579 (hppa_gdbarch_init): Do not set frame_num_args.
2580 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
2581 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2582 frame_num_args to default frame_num_args_unknown.
2583 * v850-tdep.c (v850_gdbarch_init): Ditto.
2584 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2585 * sh-tdep.c (sh_gdbarch_init): Ditto.
2586 * s390-tdep.c (s390_gdbarch_init): Ditto.
2587 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2588 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2589 * mips-tdep.c (mips_gdbarch_init): Ditto.
2590 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2591 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2592 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2593 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2594 * i386-tdep.c (i386_gdbarch_init): Ditto.
2595 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2596 * frv-tdep.c (frv_gdbarch_init): Ditto.
2597 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2598 * cris-tdep.c (cris_gdbarch_init): Ditto.
2599 * avr-tdep.c (avr_gdbarch_init): Ditto.
2600 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2601
2602 2003-06-09 Andrew Cagney <cagney@redhat.com>
2603
2604 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
2605 (print_frame_args): Moved to "stack.c".
2606 * stack.c: Include "gdb_assert.h".
2607 (print_frame_nameless_args): Moved from "printcmd.c", made static.
2608 (print_frame_args): Moved from "printcmd.c".
2609 * frame.h (print_frame_args): Delete declaration.
2610 * Makefile.in (stack.o): Update dependencies.
2611
2612 2003-06-08 Andrew Cagney <cagney@redhat.com>
2613
2614 * frame.c (get_prev_frame): Remove reference to
2615 frame_args_address_correct in comments.
2616 * frame-base.c (default_frame_args_address): Delete code
2617 conditional on FRAME_ARGS_ADDRESS_CORRECT.
2618 * vax-tdep.c (vax_frame_args_address_correct): Delete.
2619 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
2620 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
2621 (vax_frame_args_address_correct): Delete declaration.
2622
2623 2003-06-08 Andrew Cagney <cagney@redhat.com>
2624
2625 * gdbarch.sh (UNWIND_SP): Add.
2626 * gdbarch.h, gdbarch.c: Re-generate.
2627 * frame.c (frame_sp_unwind): New function.
2628 (get_frame_sp): New function.
2629 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
2630 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
2631 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
2632 value.
2633 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
2634 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
2635
2636 2003-06-08 Andrew Cagney <cagney@redhat.com>
2637
2638 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
2639 REMOTE_BREAKPOINT.
2640 * remote.c: Update.
2641 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
2642 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
2643 * config/m68k/tm-sun3.h: Update.
2644 * config/m68k/tm-m68klynx.h: Update.
2645 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
2646
2647 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
2648 trad_frame". Update comments.
2649 * d10v-tdep.c (struct d10v_unwind_cache): Update.
2650 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
2651 (trad_frame_register_value, trad_frame_prev_register): Update.
2652
2653 2003-06-08 Andrew Cagney <cagney@redhat.com>
2654
2655 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
2656 from GCC's acinclude.m4.
2657 * configure.in: Check for getopt's delcaration.
2658 * aclocal.m4, config.in, configure: Re-generate.
2659 * main.c (error_init): Delete declaration.
2660 * defs.h (error_init): Declare.
2661 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
2662 (rs6000_convert_from_func_ptr_addr): Make static.
2663 (_initialize_rs6000_tdep): Add declaration.
2664 * cli/cli-cmds.c (dont_repeat): Delete declaration.
2665 (show_commands, set_verbose, show_history): Delete declaration.
2666 * top.h (set_verbose): Add declaration.
2667 (show_history, set_history, show_commands): Add declaration.
2668 (do_restore_instream_cleanup): Add declaration.
2669 * objc-lang.c (specialcmp): Make static.
2670 (print_object_command): Make static.
2671 (find_objc_msgsend): Make static.
2672 (find_objc_msgcall_submethod_helper): Make static.
2673 (find_objc_msgcall_submethod): Make static.
2674 (_initialize_objc_language): Add declaration.
2675 (find_implementation_from_class): Make static.
2676 (find_implementation): Make static.
2677 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
2678 * objc-lang.h (lookup_struct_typedef): Add declaration.
2679 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
2680 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
2681 (do_restore_user_call_depth): Make static.
2682 (do_restore_instream_cleanup): Delete declaration.
2683 (dont_repeat): Delete declaration.
2684 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
2685 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
2686 * reggroups.c (_initialize_reggroup): Add declaration.
2687 * cp-support.c (_initialize_cp_support): Add declaration.
2688 * cp-abi.c (_initialize_cp_abi): Add declaration.
2689 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
2690 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
2691 (_initialize_gnu_v3_abi): Add declaration.
2692 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
2693 (_initialize_gnu_v2_abi): Add declaration.
2694 * frame-base.c (_initialize_frame_base): Add declaration.
2695 * doublest.c (floatformat_from_length): Make static.
2696 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
2697 * frame.c (create_sentinel_frame): Make static.
2698 (_initialize_frame): Add declaration.
2699 * top.c (do_catch_errors): Make static.
2700 (gdb_rl_operate_and_get_next_completion): Make static.
2701 * typeprint.c: Include "typeprint.h".
2702 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
2703 (sentinel_frame_this_id): Make static.
2704 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
2705 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
2706 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
2707 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
2708 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
2709 * maint.c (maintenance_print_architecture): Make static.
2710 * signals/signals.c (_initialize_signals): Add declaration.
2711 * std-regs.c (_initialize_frame_reg): Add declaration.
2712 * jv-exp.y (push_variable): ISO C definition.
2713 (push_qualified_expression_name): Ditto.
2714 * memattr.c (_initialize_mem): Add declaration.
2715 * remote.c (remote_check_watch_resources): Make static.
2716 (remote_stopped_by_watchpoint): Make static.
2717 (remote_stopped_data_address): Make static.
2718 * d10v-tdep.c (nr_dmap_regs): Make static.
2719 (a0_regnum): Make static.
2720 (d10v_frame_unwind_cache): Make static.
2721 (d10v_frame_p): Make static.
2722 * osabi.c (show_osabi): Make static.
2723 (_initialize_gdb_osabi): Add extern declaration.
2724 * gdbtypes.c (make_qualified_type): Make static.
2725 (safe_parse_type): Make static.
2726 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
2727 * macrotab.c (macro_bcache_free): Make static.
2728 * interps.c (interp_set_quiet): Make static.
2729 (interpreter_exec_cmd): Make static.
2730 * stack.h (select_frame_command): New file.
2731 * stack.c: Include "stack.h".
2732 (select_frame_command_wrapper): Delete function.
2733 (select_frame_command): Make global.
2734 * infcall.c: Include "infcall.h".
2735 * linespec.c: Include "linespec.h".
2736 * symfile.c (sections_overlap): Make static.
2737 * cp-support.h (cp_initialize_namespace): ISO C declaration.
2738 * charset.c (_initialize_charset): Add missing prototype.
2739 * regcache.c (init_legacy_regcache_descr): Make static.
2740 (do_regcache_xfree): Make static.
2741 (regcache_xfer_part): Make static.
2742 (_initialize_regcache): Add missing prototype.
2743 * breakpoint.c (parse_breakpoint_sals): Make static.
2744 (breakpoint_sals_to_pc): Make static.
2745 * interps.h (clear_interpreter_hooks): ISO C declaration.
2746 * Makefile.in (stack_h): Define.
2747 (stack.o, typeprint.o, mi-main.o): Update dependencies.
2748 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
2749
2750 2003-06-08 Andrew Cagney <cagney@redhat.com>
2751
2752 * Makefile.in (d10v-tdep.o): Update dependencies.
2753 (SFILES): Add trad-frame.c.
2754 (trad_frame_h): Define.
2755 (COMMON_OBS): Add trad-frame.o.
2756 (trad-frame.o): Specify dependencies.
2757 * d10v-tdep.c: Include "trad-frame.h".
2758 (saved_regs_unwinder): Delete function.
2759 (d10v_frame_prev_register): Use trad_frame_prev_register.
2760 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
2761 trad_frame", delete "regs" and "prev_sp".
2762 (prologue_find_regs): Use trad-frame.
2763 * trad-frame.h, trad-frame.c: New files.
2764
2765 2003-06-08 Mark Kettenis <kettenis@gnu.org>
2766
2767 * dwarf2cfi.c, dwarf2cfi.h: Remove.
2768
2769 2003-06-07 Adam Fedor <fedor@gnu.org>
2770
2771 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
2772 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
2773 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
2774 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
2775 resolve_msgsend_super, resolve_msgsend_super_stret):
2776 Use it.
2777
2778 2003-06-07 Andrew Cagney <cagney@redhat.com>
2779
2780 * symfile.h: Re-indent, clean up comments.
2781
2782 2003-06-07 Andrew Cagney <cagney@redhat.com>
2783
2784 * inferior.h (deprecated_write_sp): Replace
2785 generic_target_write_sp.
2786 * regcache.c (deprecated_write_sp): Replace
2787 generic_target_write_sp.
2788 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2789 * vax-tdep.c (vax_gdbarch_init): Update.
2790 * v850-tdep.c (v850_gdbarch_init): Update.
2791 * sparc-tdep.c (sparc_gdbarch_init): Update.
2792 * sh-tdep.c (sh_gdbarch_init): Update.
2793 * s390-tdep.c (s390_gdbarch_init): Update.
2794 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2795 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2796 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2797 * mcore-tdep.c (mcore_gdbarch_init): Update.
2798 * m68k-tdep.c (m68k_gdbarch_init): Update.
2799 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2800 * ia64-tdep.c (ia64_gdbarch_init): Update.
2801 * h8300-tdep.c (h8300_gdbarch_init): Update.
2802 * frv-tdep.c (frv_gdbarch_init): Update.
2803 * cris-tdep.c (cris_gdbarch_init): Update.
2804 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
2805
2806 2003-06-07 Andrew Cagney <cagney@redhat.com>
2807
2808 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
2809 Assert that PC_REGNUM is valid.
2810 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
2811
2812 2003-06-07 Andrew Cagney <cagney@redhat.com>
2813
2814 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
2815 * gdbarch.h, gdbarch.c: Regenerate.
2816 * mn10300-tdep.c: Include "gdb_assert.h".
2817 (mn10300_read_fp): New function.
2818 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
2819 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
2820 * ia64-tdep.c: Include "gdb_assert.h".
2821 (ia64_read_fp): New function.
2822 (ia64_gdbarch_init): Set deprecated_target_read_fp to
2823 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
2824 * regcache.c (generic_target_read_sp): Delete function.
2825 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
2826 * inferior.h (generic_target_read_sp): Delete declaration.
2827 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
2828 generic_target_read_sp.
2829 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2830 * sparc-tdep.c (sparc_gdbarch_init): Ditto
2831 * sh-tdep.c (sh_gdbarch_init): Ditto.
2832 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2833 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
2834
2835 2003-06-07 Andrew Cagney <cagney@redhat.com>
2836
2837 * gdbarch.sh: Comment each field of startup_gdbarch.
2838 * gdbarch.h, gdbarch.c: Re-generate.
2839
2840 2003-06-07 Andrew Cagney <cagney@redhat.com>
2841
2842 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
2843 * gdbarch.h, gdbarch.c: Re-generate.
2844 * regcache.c: Update comments on read_pc et.al.
2845 (generic_target_read_pc): Delete function.
2846 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
2847 * inferior.h (generic_target_read_pc): Delete declaration.
2848 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
2849 generic_target_read_pc.
2850 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2851 * sh-tdep.c (sh_gdbarch_init): Ditto.
2852 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2853 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2854
2855 2003-06-07 Andrew Cagney <cagney@redhat.com>
2856
2857 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
2858 "index" with "special_local_sect". Use strcmp instead of STREQ.
2859 Append period to coments.
2860
2861 2003-06-06 Mark Mitchell <mark@codesourcery.com>
2862
2863 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
2864 (elfstab_offset_sections): Likewise.
2865 * gdb-stabs.h (stab_section_info): Likewise.
2866 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
2867 * objfiles.c (objfile_relocate): Likewise.
2868 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
2869 * remote.c (get_offsets): Likewise.
2870 (remote_cisco_objfile_relocate): Likewise.
2871 * somread.c (som_symfile_offsets): Likewise.
2872 * symfile.c (alloc_section_addr_info): New function.
2873 (build_section_addr_info_from_section_tab): Use it.
2874 (free_section_addr_info): Adjust.
2875 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
2876 (syms_from_objfile): Allocate local_addr dynamically.
2877 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
2878 dynamically.
2879 (add_symbol_file_command): Allocate sect_opts dynamically.
2880 (reread_symbols): Avoid use of SECT_OFF_MAX.
2881 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
2882 (alloc_section_addr_info): Declare it.
2883 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
2884 * win32-nat.c (solib_symbols_add): Allocate section_addrs
2885 dynamically.
2886 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
2887
2888 2003-06-06 Andrew Cagney <cagney@redhat.com>
2889
2890 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
2891 (d10v_frame_unwind_cache): Do not set "return_pc".
2892
2893 2003-06-06 Michael Snyder <msnyder@redhat.com>
2894
2895 * h8300-tdep.c: Make tidy (long lines).
2896
2897 2003-06-06 Michal Ludvig <mludvig@suse.cz>
2898
2899 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
2900 to regcache_collect().
2901
2902 2003-06-05 J. Brobecker <brobecker@gnat.com>
2903
2904 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
2905 pc_in_sigtramp multiarch method.
2906 (hppa_hpux_som_init_abi): Use it.
2907 (hppa_hpux_elf_init_abi): Likewise.
2908 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
2909 macro has been multiarched.
2910 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
2911 macro here, as hppa64 isn't multiarched yet.
2912
2913 2003-06-05 Andrew Cagney <cagney@redhat.com>
2914
2915 * Makefile.in (value_h): Add $(frame_h).
2916 * value.h: Include "frame.h".
2917 (struct value): Replace "frame_addr" with "frame_id".
2918 (VALUE_FRAME_ID): Replace VALUE_FRAME.
2919 * values.c (allocate_value): Use VALUE_FRAME_ID.
2920 (value_copy): Use VALUE_FRAME_ID.
2921 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
2922 * valops.c (value_assign): Update. Use frame_find_by_id.
2923
2924 2003-06-05 Michal Ludvig <mludvig@suse.cz>
2925
2926 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
2927 in each pass.
2928
2929 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
2930
2931 * thread-db.c (check_event): For create/death event breakpoints,
2932 loop through all messages to ensure that we read the message
2933 corresponding to the breakpoint we are at.
2934
2935 2003-06-04 Michael Snyder <msnyder@redhat.com>
2936
2937 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
2938
2939 2003-06-04 Mark Kettenis <kettenis@gnu.org>
2940
2941 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
2942 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
2943 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
2944 when handling .eh_frame sections.
2945
2946 2003-06-04 J. Brobecker <brobecker@gnat.com>
2947
2948 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
2949 prepare_to_proceed procedure instead of the hppa-specific one.
2950 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
2951
2952 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
2953
2954 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
2955 * config.in: Regenerated.
2956 * configure.in: Add test for syscall function and check for
2957 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
2958 * configure: Regenerated.
2959 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
2960 <sys/syscall.h>.
2961 (kill_lwp): New function that uses tkill syscall or
2962 uses kill, depending on whether threading model is nptl or not.
2963 All callers of kill() changed to use kill_lwp().
2964 (lin_lwp_wait): Make special check when WIFEXITED occurs to
2965 see if all threads have already exited in the nptl model.
2966 (stop_and_resume_callback): New callback function used by the
2967 lin_lwp_wait thread exit handling code.
2968 (stop_wait_callback): Check for threads already having exited and
2969 delete such threads fromt the lwp list when discovered.
2970 (stop_callback): Don't assert retcode of kill call.
2971
2972 Roland McGrath <roland@redhat.com>
2973 * i386-linux-nat.c (ps_get_thread_area): New function needed by
2974 nptl libthread_db.
2975
2976 2003-06-03 Richard Henderson <rth@redhat.com>
2977
2978 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
2979 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
2980 (alpha_sigtramp_frame_prev_register): Likewise.
2981 (alpha_heuristic_frame_prev_register): Likewise.
2982 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
2983
2984 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
2985 alpha-specific register id names.
2986 (alpha_mdebug_frame_unwind_cache): Likewise.
2987 (alpha_mdebug_frame_prev_register): Likewise.
2988
2989 2003-06-03 Richard Henderson <rth@redhat.com>
2990
2991 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
2992 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
2993 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
2994 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
2995 unwind routines.
2996 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
2997 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
2998 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
2999
3000 * alpha-linux-tdep.c: Remove unnecessary includes.
3001 * Makefile.in (alpha-linux-tdep.o): Update.
3002
3003 2003-06-03 Richard Henderson <rth@redhat.com>
3004
3005 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3006 (alphabsd_fill_fpreg): Likewise.
3007
3008 2003-06-03 J. Brobecker <brobecker@gnat.com>
3009
3010 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3011 references to struct frame_info fields by calls to the equivalent
3012 accessors. Necessary now that frame_info is opaque.
3013
3014 2003-06-03 J. Brobecker <brobecker@gnat.com>
3015
3016 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3017 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3018 structure, field no longer exists.
3019
3020 2003-06-03 J. Brobecker <brobecker@gnat.com>
3021
3022 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3023 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3024
3025 2003-06-03 J. Brobecker <brobecker@gnat.com>
3026
3027 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3028 references to struct frame_info fields by calls to the equivalent
3029 accessors. Necessary now that frame_info is opaque.
3030
3031 2003-06-03 J. Brobecker <brobecker@gnat.com>
3032
3033 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3034 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3035 structure, field no longer exists.
3036
3037 2003-06-03 Theodore A. Roth <troth@openavr.org>
3038
3039 * remote.c (init_remote_state): Compute sizeof_g_packet by
3040 accumulation of the size of all registers instead of blindly using
3041 DEPRECATED_REGISTER_BYTES.
3042
3043 2003-06-03 Michael Snyder <msnyder@redhat.com>
3044
3045 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3046 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3047 for h8300sx.
3048
3049 2003-06-03 J. Brobecker <brobecker@gnat.com>
3050
3051 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3052 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3053
3054 2003-06-03 Andrew Cagney <cagney@redhat.com>
3055
3056 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3057 (sparc_convert_to_raw): Delete function.
3058 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3059 register_convert_to_virtual.
3060
3061 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3062
3063 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3064 layer if not dealing with a statically-linked threaded program.
3065
3066 2003-06-03 Kris Warkentin <kewarken@qnx.com>
3067
3068 * solib.c (solib_open): Update comment to reflect actual search order.
3069
3070 2003-06-03 Andrew Cagney <cagney@redhat.com>
3071
3072 * frame.c (get_frame_memory_signed): New function.
3073 (get_frame_memory, get_frame_memory_unsigned): New function.
3074 (get_frame_arch): New function.
3075 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3076 (get_frame_memory, get_frame_unsigned_memory): Declare.
3077 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3078 get_frame_memory_unsigned and get_frame_arch.
3079 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3080
3081 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3082
3083 * MAINTAINERS (write after approval): Add myself.
3084
3085 2003-06-03 Jim Blandy <jimb@redhat.com>
3086
3087 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3088 elements of gregset_t are 64 bits each, but access registers
3089 are still 32 bits, so they're packed two per gregset_t
3090 element. Unpack/pack them properly.
3091
3092 2003-06-02 David Carlton <carlton@bactrian.org>
3093
3094 * linespec.c (find_methods): Break out code into
3095 add_matching_methods and add_constructors.
3096 (add_matching_methods): New.
3097 (add_constructors): Ditto.
3098
3099 2003-06-02 Andrew Cagney <cagney@redhat.com>
3100
3101 * sparc-tdep.c (sparc_print_registers): Delete call to
3102 REGISTER_CONVERTIBLE.
3103 (sparc_gdbarch_init): Do not set register_convertible.
3104 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3105 * frv-tdep.c (frv_gdbarch_init): Ditto.
3106 * cris-tdep.c (cris_gdbarch_init): Ditto.
3107
3108 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
3109
3110 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3111 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3112 (syms_from_objfile): Ditto.
3113
3114 2003-06-03 Andreas Schwab <schwab@suse.de>
3115
3116 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3117 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3118
3119 2003-06-02 Richard Henderson <rth@redhat.com>
3120
3121 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3122 a member of all_reggroup.
3123
3124 2003-06-02 Richard Henderson <rth@redhat.com>
3125
3126 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3127 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3128 (alpha_lds, alpha_sts): New.
3129 (alpha_convert_register_p): Change from _register_convertible.
3130 (alpha_register_to_value): Change from _convert_to_virtual;
3131 restructure and fail for type sizes other than 4 or 8.
3132 (alpha_value_to_register): Similarly.
3133 (alpha_extract_return_value): Use alpha_sts.
3134 (alpha_store_return_value): Use alpha_lds.
3135 (alpha_gdbarch_init): Update hooks.
3136
3137 2003-06-02 Richard Henderson <rth@redhat.com>
3138
3139 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3140 regnum identifiers.
3141 (alpha_sigtramp_register_address): Likewise.
3142
3143 2003-06-02 Richard Henderson <rth@redhat.com>
3144
3145 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3146 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3147 * alpha-tdep.h: Declare them.
3148
3149 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3150 Remove zerobuf. Don't error on UNIQUE.
3151 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3152 (ALPHA_REGSET_UNIQUE): Provide default.
3153 (supply_gregset): Use alpha_supply_int_regs.
3154 (fill_gregset): Use alpha_fill_int_regs.
3155 (supply_fpregset): Use alpha_supply_fp_regs.
3156 (fill_fpregset): Use alpha_fill_fp_regs.
3157 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3158 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3159 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3160 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3161 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3162 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3163
3164 2003-06-02 Richard Henderson <rth@redhat.com>
3165
3166 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3167
3168 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3169 (alpha_store_return_value): Likewise.
3170
3171 2003-06-02 David Carlton <carlton@math.stanford.edu>
3172
3173 * block.c (contained_in): Add 'const' to arguments.
3174 (block_function): Ditto.
3175 * block.h: Update declarations for block_function and
3176 contained_in.
3177
3178 2003-06-02 David Carlton <carlton@math.stanford.edu>
3179
3180 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3181 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3182 * p-valprint.c (pascal_val_print): Ditto.
3183 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3184
3185 2003-06-02 Richard Henderson <rth@redhat.com>
3186
3187 * alpha-tdep.c (alpha_push_dummy_call): Use
3188 builtin_type_ieee_double_little instead of builtin_type_double.
3189
3190 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
3191 sign-extension of 32-bit values.
3192 (alpha_store_return_value): Similarly.
3193
3194 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3195 (alpha_extract_return_value): Likewise.
3196 (alpha_store_return_value): Likewise.
3197
3198 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3199 (alpha_store_return_value): Error on IEEE Quad floats.
3200
3201 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3202 (alpha_extract_struct_value_address): Likewise.
3203 (alpha_store_return_value): Likewise.
3204 (alpha_store_struct_return): Remove.
3205 (alpha_gdbarch_init): Update hook registration to match.
3206
3207 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3208 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3209 macros where appropriate.
3210 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3211 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
3212
3213 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3214 for SP, GP; void_func_ptr for PC; non-language-specific types
3215 for all others.
3216 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
3217
3218 2003-06-02 Richard Henderson <rth@redhat.com>
3219
3220 * top.h (lim_at_start): Declare.
3221 * main.c (captured_main): Set it.
3222 * top.c (lim_at_start): Define.
3223 (command_loop): Use it instead of &environ.
3224 * event-top.c (command_handler): Likewise.
3225
3226 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3227
3228 * mipsnbsd-tdep.c: Update copyright years.
3229 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3230
3231 2003-06-01 Richard Henderson <rth@redhat.com>
3232
3233 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3234 (alpha-linux-tdep.o): Update dependencies.
3235 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3236 * alpha-mdebug-tdep.c: Remove unneeded includes.
3237
3238 2003-06-01 Richard Henderson <rth@redhat.com>
3239
3240 * alpha-tdep.c (alpha_register_reggroup_p): New.
3241 (alpha_gdbarch_init): Register it.
3242
3243 2003-06-02 Andrew Cagney <cagney@redhat.com>
3244
3245 * dwarfread.c: Eliminate "register"
3246 (decode_die_type): Eliminate assignment within "if".
3247 (struct_type, decode_array_element_type): Ditto.
3248 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3249 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3250 (decode_modified_type, completedieinfo): Ditto.
3251 * block.c: Eliminate "register".
3252 (blockvector_for_pc_sect): Eliminate assignment within "if".
3253 * cp-support.h (struct symbol): Opaque declaration.
3254 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3255
3256 2003-06-01 Richard Henderson <rth@redhat.com>
3257
3258 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3259 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
3260
3261 2003-06-01 Adam Fedor <fedor@gnu.org>
3262
3263 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3264 * gdbarch.[ch]: Regenerate.
3265 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3266 (hppa_gdbarch_init): Set it in the gdbarch vector.
3267 * i386-tdep.c (i386_fetch_pointer_argument): New
3268 (i386_gdbarch_init): Set it into gdbarch.
3269 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3270 (rs6000_gdbarch_init): Set it in gdbarch.
3271 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3272 (sparc_gdbarch_init): Set it in gdbarch.
3273
3274 2003-06-01 Andrew Cagney <cagney@redhat.com>
3275
3276 * defs.h (extract_address): Delete declaration.
3277 * findvar.c (extract_address): Delete function.
3278 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3279 extract_address with the inline equivalent,
3280 extract_unsigned_integer.
3281 (xstormy16_extract_struct_value_address): Ditto.
3282 (xstormy16_pointer_to_address): Ditto.
3283 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3284 * v850-tdep.c (v850_push_arguments): Ditto.
3285 (v850_extract_return_value): Ditto.
3286 (v850_extract_struct_value_address): Ditto.
3287 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3288 (sparcnbsd_get_longjmp_target_64): Ditto.
3289 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3290 (get_longjmp_target): Ditto.
3291 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3292 (sh64_extract_struct_value_address): Ditto.
3293 (sh_push_arguments): Ditto.
3294 (sh64_push_arguments): Ditto.
3295 * remote-vxsparc.c (vx_read_register): Ditto.
3296 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
3297 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
3298 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
3299 * mipsv4-nat.c (get_longjmp_target): Ditto.
3300 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
3301 * mips-nat.c (get_longjmp_target): Ditto.
3302 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
3303 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
3304 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
3305 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
3306 * irix5-nat.c (get_longjmp_target): Ditto.
3307 * irix4-nat.c (get_longjmp_target): Ditto.
3308 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
3309 (ia64_push_arguments): Ditto.
3310 * hpux-thread.c (hpux_thread_store_registers): Ditto.
3311 * h8300-tdep.c (h8300_push_arguments): Ditto.
3312 (h8300_store_return_value): Ditto.
3313 (h8300_extract_struct_value_address): Ditto.
3314 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
3315 (frv_push_arguments): Ditto.
3316 * avr-tdep.c (avr_pointer_to_address): Ditto.
3317 (avr_push_arguments): Ditto.
3318 * arm-tdep.c (arm_push_dummy_call): Ditto.
3319 (arm_get_longjmp_target): Ditto.
3320 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3321 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
3322 (alpha_get_longjmp_target): Ditto.
3323
3324 * solib-irix.c (extract_mips_address): Inline extract_address,
3325 replacing it with extract_signed_integer.
3326 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3327 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
3328 (first_link_map_member, open_symbol_file_object): Ditto.
3329 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
3330 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3331 (LM_NEXT, LM_NAME): Ditto.
3332
3333 2003-06-01 Richard Henderson <rth@redhat.com>
3334
3335 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
3336 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
3337 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
3338 (alpha_cannot_store_register): Likewise.
3339 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
3340 * alpha-nat.c (supply_gregset): Likewise.
3341 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
3342
3343 2003-06-01 Andrew Cagney <cagney@redhat.com>
3344
3345 * infcall.c (call_function_by_hand): Update comment on
3346 DEPRECATED_DUMMY_WRITE_SP.
3347
3348 * mips-tdep.c (mips_gdbarch_init): Do not set
3349 deprecated_dummy_write_sp.
3350 (mips_eabi_push_dummy_call): Set the SP register.
3351 (mips_o64_push_dummy_call): Set the SP register.
3352 (mips_o32_push_dummy_call): Set the SP register.
3353 (mips_n32n64_push_dummy_call): Set the SP register.
3354
3355 2003-06-01 Richard Henderson <rth@redhat.com>
3356
3357 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
3358 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
3359 (supply_gregset): Likewise.
3360 * alpha-tdep.c (alpha_store_return_value): Likewise.
3361 (alpha_get_longjmp_target): Likewise.
3362 (alpha_register_name): Constify array.
3363 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
3364 deprecated_register_size, deprecated_register_bytes,
3365 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
3366 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
3367 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
3368
3369 2003-06-01 Richard Henderson <rth@redhat.com>
3370
3371 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
3372 from arg_reg_buffer to regcache to avoid double conversion.
3373
3374 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3375
3376 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
3377 SP_REGNUM.
3378 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
3379 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
3380
3381 2003-06-01 Richard Henderson <rth@redhat.com>
3382
3383 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
3384 (decode_frame_entry): Set it. Skip FDE augmentation.
3385
3386 2003-06-01 Richard Henderson <rth@redhat.com>
3387
3388 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
3389 not overlapping PC_REGNUM.
3390
3391 2003-06-01 Richard Henderson <rth@redhat.com>
3392
3393 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
3394 alpha_push_arguments. Don't dump argument register data to
3395 the target stack. Fix float and 128-bit long double semantics.
3396 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
3397 (alpha_fix_call_dummy): Remove.
3398 (alpha_call_dummy_words): Remove.
3399 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
3400
3401 2003-06-01 Richard Henderson <rth@redhat.com>
3402
3403 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
3404
3405 2003-06-01 Andrew Cagney <cagney@redhat.com>
3406
3407 * mips-tdep.c (is_mips16_addr): New function.
3408 (make_mips16_addr, unmake_mips16_addr): New functions.
3409 (pc_is_mips16, mips_fetch_instruction): Use.
3410 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
3411 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
3412 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
3413 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
3414 TARGET_MIPS.
3415 * config/mips/tm-mips.h: Update copyright.
3416 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
3417 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
3418 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
3419 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
3420 (TM_PRINT_INSN_MACH): Delete.
3421 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
3422
3423 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
3424 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
3425 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
3426 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
3427 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
3428 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
3429 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
3430 mips*-*-riscos* and mips*-*-sysv* onto mips.
3431 * config/mips/mips64.mt: New file.
3432 * config/mips/mips.mt: New file.
3433 * config/mips/littlemips.mt: Delete file.
3434 * config/mips/decstation.mt: Delete file.
3435 * config/mips/vr4300el.mt: Delete file.
3436 * config/mips/vr5000el.mt: Delete file.
3437 * config/mips/vr5000.mt: Delete file.
3438 * config/mips/vr4100.mt: Delete file.
3439 * config/mips/vr4xxxel.mt: Delete file.
3440 * config/mips/vr4300.mt: Delete file.
3441 * config/mips/vr4xxx.mt: Delete file.
3442 * config/mips/bigmips.mt: Delete file.
3443 * config/mips/bigmips64.mt: Delete file.
3444 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
3445 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
3446 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
3447 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
3448 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
3449 "tm-bigmips.h".
3450 * config/mips/tm-irix3.h: Ditto.
3451 * config/mips/tm-mipsv4.h: Ditto.
3452 * config/mips/tm-embed.h: Ditto.
3453 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
3454 "tm-bigmips64.h".
3455 * config/mips/tm-vr5000el.h: Delete file.
3456 * config/mips/tm-tx39l.h: Delete file.
3457 * config/mips/tm-vr4300el.h: Delete file.
3458 * config/mips/tm-vr4xxxel.h: Delete file.
3459 * config/mips/tm-vr4300.h: Delete file.
3460 * config/mips/tm-vr4100.h: Delete file.
3461 * config/mips/tm-vr4xxx.h: Delete file.
3462 * config/mips/tm-vr5000.h: Delete file.
3463 * config/mips/tm-embedl64.h: Delete file.
3464 * config/mips/tm-embedl.h: Delete file.
3465 * config/mips/tm-embed64.h: Delete file.
3466 * config/mips/tm-bigmips64.h: Delete file.
3467 * config/mips/tm-bigmips.h: Delete file.
3468
3469 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3470
3471 Fix gdb/1216.
3472 * shnbsd-nat.c: Include "sh-tdep.h".
3473
3474 From Richard Henderson <rth@redhat.com>:
3475 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
3476
3477 2003-05-31 Andrew Cagney <cagney@redhat.com>
3478
3479 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
3480 forward declaration.
3481 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3482 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3483 (mips_find_saved_regs): Use set_reg_offset.
3484 (mips_frame_init_saved_regs): Delete function.
3485 (mips_pop_frame): Call mips_find_saved_regs instead of
3486 DEPRECATED_FRAME_INIT_SAVED_REGS.
3487
3488 2003-05-31 Andrew Cagney <cagney@redhat.com>
3489
3490 * mips-tdep.c (mips_gdbarch_init): Do not set
3491 deprecated_max_register_raw_size, register_virtual_size, and
3492 deprecated_max_register_virtual_size.
3493
3494 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3495
3496 * i386-tdep.c: Include "dwarf2-frame.h".
3497 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
3498 * Makefile.in (i386-tdep.o): Update dependencies.
3499
3500 * dwarf2-frame.c, dwarf2-frame.h: New files.
3501 * Makefile.in (SFILES): Add dwarf2-frame.c.
3502 (dwarf2_frame_h): Define.
3503 (COMMON_OBS): Add dwarf2-frame.o.
3504 (dwarf2-frame.o): Add dependencies.
3505
3506 2003-05-31 Andreas Jaeger <aj@suse.de>
3507
3508 * x86-64-linux-nat.c: Fix comment.
3509
3510 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3511
3512 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
3513 function signature.
3514
3515 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
3516 have a sigcontext_addr handler.
3517 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
3518 sigcontext_addr handler.
3519
3520 2003-05-31 Andrew Cagney <cagney@redhat.com>
3521
3522 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
3523 (print_fp_register_row): Replace do_fp_register_row.
3524 (mips_print_fp_register): Add "file" and "frame" parameters.
3525 (mips_print_register): Add "file" and "frame" parameters.
3526 (mips_print_registers_info): Replace mips_do_registers_info.
3527 (mips_gdbarch_init): Set print_registers_info instead of
3528 deprecated_do_registers_info.
3529 (mips_read_fp_register_single): Add "frame" parameter.
3530 (mips_read_fp_register_double): Add "frame" parameter.
3531
3532 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3533
3534 * i386-tdep.c (i386_register_name): Check for MMX registers first.
3535 Fixes a bug where GDB would print the wrong register names for
3536 targets without SSE.
3537
3538 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
3539 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3540 registers.
3541
3542 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
3543 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
3544 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3545 TDEP->sc_sp_offset.
3546
3547 From Michal Ludvig <mludvig@suse.cz>:
3548 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
3549 and `sc_num_regs'.
3550 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3551 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3552 I386_ST0_REGNUM): Move here from...
3553 * i386-tdep.c: ... here.
3554 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
3555 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3556 registers if possible.
3557 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
3558 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
3559 Remove variables.
3560 (i386bsd_sc_reg_offset): New variable.
3561 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
3562 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3563 TDEP->sc_sp_offset.
3564 (i386fbsd_sc_reg_offset): New variable.
3565 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
3566 TDEP->sc_num_regs.
3567 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
3568 variables.
3569 (i386fbsd4_sc_reg_offset): New variable.
3570 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
3571 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3572 TDEP->sc_sp_offset.
3573 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
3574 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
3575 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
3576 Remove variables.
3577 (i386nbsd_sc_reg_offset): New variable.
3578 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
3579 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3580 TDEP->sc_sp_offset.
3581 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
3582 Remove variables.
3583 (i386obsd_sc_reg_offset): New variable.
3584 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
3585 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3586 TDEP->sc_sp_offset.
3587 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
3588 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
3589 for frame pointer offset in `struct sigcontext'.
3590
3591 2003-05-31 Andrew Cagney <cagney@redhat.com>
3592
3593 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
3594 architecture methods call_dummy_words, sizeof_call_dummy_words,
3595 push_return_address, store_struct_return, and fix_call_dummy. Set
3596 push_dummy_call instead of deprecated_push_arguments.
3597 (mips_store_struct_return): Delete function.
3598 (mips_fix_call_dummy): Delete function.
3599 (mips_push_return_address): Delete function.
3600 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
3601 RA_REGNUM and T9_REGNUM.
3602 (mips_n32n64_push_dummy_call): Ditto for
3603 mips_n32n64_push_arguments.
3604 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
3605 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
3606
3607 2003-05-31 Andrew Cagney <cagney@redhat.com>
3608
3609 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
3610 "dummy_addr" to "bp_addr".
3611 * infcall.c (call_function_by_hand): Pass "funaddr" to
3612 gdbarch_push_dummy_call.
3613 * gdbarch.h, gdbarch.c: Re-generate.
3614 * i386-tdep.c (i386_push_dummy_call): Update.
3615 * arm-tdep.c (arm_push_dummy_call): Update.
3616 * d10v-tdep.c (d10v_push_dummy_call): Update.
3617
3618 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3619
3620 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
3621 variable declarations.
3622 (x86_64_register_number, x86_64_register_name): Remove prototypes.
3623 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
3624 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
3625 x86_64_init_frame_pc, x86_64_init_frame_pc,
3626 x86_64_function_has_prologue): Remove prototypes.
3627 (X86_64_NUM_GREGS): New define.
3628 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
3629 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
3630 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
3631 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
3632 XMM1_REGNUM): Remove defines.
3633 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
3634 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
3635 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
3636 X86_64_XMM1_REGNUM): New defines.
3637 (struct x86_64_register_info): Renamed from `struct
3638 register_info'. Remove `size' member.
3639 (x86_64_register_info_table): Remove variable.
3640 (x86_64_register_info): New variable.
3641 (X86_64_NUM_REGS): New define.
3642 (X86_64_NUM_GREGS): Remove define.
3643 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
3644 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
3645 Remove variables.
3646 (x86_54_dwarf2_reg_to_regnum): Remove function.
3647 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
3648 (x86_64_dwarf_reg_to_regnum): New function.
3649 (x86_64_register_name): Rewrite.
3650 (x86_64_register_raw_size): Remove function.
3651 (x86_64_register_byte_table): Remove variable.
3652 (x86_64_register_byte): Remove function.
3653 (x86_64_register_virtual_type): Remove function.
3654 (x86_64_register_type): New function.
3655 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
3656 x86_64_register_convert_to_raw): Remove functions.
3657 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
3658 (x86_64_use_struct_convention): Make static. Adjust for renamed
3659 defines.
3660 (x86_64_frame_init_saved_regs): Remove function.
3661 (x86_64_push_arguments): Make static. Change to accept a regcache
3662 as argument.
3663 (x86_64_store_return_value, x86_64_extract_return_value): Make
3664 static. Rewrite based on i386 counterparts.
3665 (x86_64_push_dummy_call): New function.
3666 (X86_64_NUM_SAVED_REGS): New define.
3667 (x86_64_register_number): Remove function.
3668 (x86_64_store_struct_return): Remove function.
3669 (x86_64_frameless_function_invocation,
3670 x86_64_function_has_prologue): Remove functions.
3671 (PROLOG_BUFSIZE): Remove define.
3672 (struct x86_64_frame_cache): New structure.
3673 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
3674 x86_64_frame_cache, x86_64_frame_this_id,
3675 x86_64_frame_prev_register, x86_64_frame_p,
3676 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
3677 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
3678 functions.
3679 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
3680 variables.
3681 (x86_64_skip_prologue): Rewrite in terms of
3682 x86_64_analyze_prologue.
3683 (x86_64_frame_base_address): New function.
3684 (x86_64_frame_base): New variable.
3685 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
3686 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
3687 set deprecated_fp_regnum, deprecated_register_size,
3688 deprecated_register_bytes, register_raw_size, register_byte,
3689 register_virtual_type, register_convertiable,
3690 register_convert_to_virtual, convert_to_raw,
3691 deprecated_get_saved_register, deprecated_target_read_fp,
3692 deprecated_push_arguments, deprecated_push_return_address,
3693 deprecated_pop_frame, deprecated_store_struct_return,
3694 deprecated_frame_init_saved_regs, deprecated_frame_chain,
3695 frameless_function_invocation, deprecated_frame_saved_pc,
3696 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
3697 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
3698 deprecated_init_frame_pc and virtual_frame_pointer. Call
3699 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
3700 and x86_64_frame_p. Call frame_base_set_default to register
3701 x86_64_frame_base.
3702 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
3703 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
3704 (_initialize_x86_64_tdep): Remove function.
3705 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
3706 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
3707 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
3708 define.
3709 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
3710 (x86_64_linux_sigcontext_addr): Rewrite.
3711 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
3712 x86_64_linux_frame_saved_pc): Remove functions.
3713 (x86_64_linux_pc_in_sigtramp): Renamed from
3714 x86_64_linux_in_sigtramp. Try harder to recognize a signal
3715 trampoline.
3716 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
3717 Remove_functions.
3718 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
3719 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
3720 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
3721 (x86_64_regmap): Rename to regmap.
3722 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
3723 x86_64_num_gregs.
3724 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
3725 x86_64_regmap.
3726 (x86_64_fxsave_offset): Remove function.
3727 (supply_fpregset): Simply call x86_64_supply_fxsave.
3728 (fill_fpregset): Simply call x86_64_fill_fxsave.
3729 (fetch_inferior_registers, store_inferior_registers): Avoid
3730 asignment in if-statement.
3731 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
3732 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
3733 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
3734 (fetch_core_registers): Remove function.
3735 (linux_elf_core_fns): Remove.
3736 (offsetoff): Don't define.
3737 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
3738 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
3739 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
3740 add core-regset.o.
3741 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
3742 protection against multiple includes instead of NM_X86_64_h. Add
3743 various comments. Include "config/nm-linux.h". Don't include
3744 <signal.h>.
3745 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
3746 GET_THREAD_SIGNALS): Remove defines.
3747 (x86_64_register_u_addr, kernel_u_size,
3748 lin_thread_get_thread_signals): Remove prototypes.
3749 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
3750 [HAVE_LINK_H]: Don't include "solib.h".
3751 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
3752 * config/i386/tm-x86-64linux.h: Fix comments.
3753 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
3754 x86-64-tdep.o): Update dependencies.
3755
3756 2003-05-30 Andrew Cagney <cagney@redhat.com>
3757
3758 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
3759 Change parameter type to a "struct regcache *".
3760
3761 * gdbarch.sh: Regardless of the multi-arch level, always define
3762 the macro when not already defined.
3763 * gdbarch.h, gdbarch.c: Re-generate.
3764
3765 2003-05-30 Richard Henderson <rth@redhat.com>
3766
3767 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
3768 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
3769 (alpha_mdebug_frame_this_id): Likewise.
3770 (alpha_mdebug_frame_prev_register): Likewise.
3771 (alpha_mdebug_frame_base_address): Likewise.
3772 (alpha_mdebug_frame_locals_address): Likewise.
3773 (alpha_mdebug_frame_args_address): Likewise.
3774 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
3775 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
3776 (alpha_heuristic_frame_unwind_cache): Make static; add missing
3777 loop increment.
3778 (alpha_heuristic_frame_this_id): Make static.
3779 (alpha_heuristic_frame_prev_register): Likewise.
3780 (alpha_heuristic_frame_base_address): Likewise.
3781 * alpha-tdep.h: Update.
3782
3783 2003-05-30 Mark Kettenis <kettenis@gnu.org>
3784
3785 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
3786 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
3787 defenitions.
3788 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
3789 * i386-tdep.c: Mark functions that are 64-bit safe as such.
3790 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3791 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3792 I386_ST0_REGNUM): New defines.
3793 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
3794 codestream_get): Remove define.
3795 (codestream_next_addr, condestream_addr, condestream_buf,
3796 codestream_off, codestream_cnt): Remove variables.
3797 (codestream_fill, codestream_seek, codestream_read): Remove
3798 functions.
3799 (i386_follow_jump): Rewrite to avoid usage of removed codestream
3800 functionality.
3801 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
3802 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
3803 i386_frame_saved_pc, i386_saved_pc_after_call,
3804 i386_frame_num_args, i386_frame_init_saved_regs,
3805 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
3806 i386_push_arguments): Remove functions.
3807 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
3808 functionality. Use i386_analyze_prologue instead of
3809 i386_get_frame_setup.
3810 (I386_NUM_SAVED_REGS): New define.
3811 (struct i386_frame_cache): New structure.
3812 (i386_alloc_frame_cache, i386_analyze_struct_return,
3813 i386_skip_probe, i386_analyze_frame_setup,
3814 i386_analyze_register_saves, i386_analyze_prologue,
3815 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
3816 i386_frame_prev_register, i386_sigtramp_frame_cache,
3817 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
3818 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
3819 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
3820 New functions.
3821 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
3822 New variables.
3823 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
3824 I386_EAX_REGNUM and I386_EDX_REGNUM.
3825 (i386_extract_return_value, i386_store_return_value): Use
3826 I386_ST0_REGNUM where appropriate.
3827 (i386_extract_struct_value_address): Rewrite to use extract_address.
3828 (i386_svr4_pc_in_sigtramp): Add comment.
3829 (i386_svr4_sigcontext_addr): Rewrite.
3830 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
3831 TDEP->sc_sp_offset.
3832 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
3833 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
3834 of new defines. Set push_dummy_call, don't set
3835 deprecated_push_arguments, deprecated_push_return_address,
3836 deprecated_pop_frame. Don't set parm_boundary. Don't set
3837 deprecated_frame_chain, deprecated_frame_saved_pc,
3838 deprecated_saved_pc_after_call. Set unwind_dummy_id,
3839 save_dummy_frame_tos, unwind_pc. Call
3840 frame_unwind_append_predicate and frame_base_set_default. Don't
3841 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
3842 Don't set frameless_function_invocation. Don't set
3843 deprecated_register_bytes, deprecated_register_size,
3844 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
3845 * i386-linux-tdep.c: Fix formatting in some comments.
3846 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
3847 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
3848 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
3849 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
3850 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
3851 redundant parentheses.
3852 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
3853 (i386_linux_sigcontext_addr): Use it. Rewrite.
3854 (find_minsym_and_objfile): Change name of second argument.
3855 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
3856 changed. Use frame_pc_unwind instead of
3857 DEPRECATED_SAVED_PC_AFTER_CALL.
3858 (i386_linux_init_abi): Don't set deprecated_register_bytes.
3859 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
3860 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
3861 unwinder.
3862 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
3863 "dummy-frame.h".
3864 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
3865 (_initialize_i386_cygwin_tdep): New prototype.
3866 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
3867 deprecated_frame_chain_valid.
3868 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
3869 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
3870 Rely on the SVR4 defaults.
3871 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
3872 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
3873
3874 2003-05-30 Andrew Cagney <cagney@redhat.com>
3875
3876 * infcall.c (call_function_by_hand): Always call
3877 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
3878
3879 2003-05-30 Richard Henderson <rth@redhat.com>
3880
3881 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
3882 increment.
3883
3884 2003-05-29 Jim Blandy <jimb@redhat.com>
3885
3886 Use gdbarch methods for solib stuff on PowerPC Linux.
3887 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
3888 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
3889 show through.
3890 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3891 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
3892 giving the same effect as the #definitions above.
3893
3894 2003-05-29 Adam Fedor <fedor@gnu.org>
3895
3896 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
3897 (find_implementation_from_class): Replace it with the standard
3898 case i.e. do nothing.
3899
3900 2003-05-29 Richard Henderson <rth@redhat.com>
3901
3902 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
3903 (alpha_linux_sigtramp_offset): Use it. Make static.
3904 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
3905 update for new frame model.
3906 * alpha-mdebug-tdep.c: New file.
3907 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
3908 (alpha_osf1_init_abi): Install it.
3909 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
3910 (linked_proc_desc_table): Remove.
3911 (alpha_frame_past_sigtramp_frame): Remove.
3912 (alpha_dynamic_sigtramp_offset): Remove.
3913 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
3914 (alpha_proc_desc_is_dyn_sigtramp): Remove.
3915 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
3916 (push_sigtramp_desc): Remove.
3917 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
3918 (alpha_cannot_store_register): Likewise.
3919 (alpha_sigcontext_addr): Remove.
3920 (alpha_find_saved_regs): Remove.
3921 (alpha_frame_init_saved_regs): Remove.
3922 (alpha_init_frame_pc_first): Remove.
3923 (read_next_frame_reg): Remove.
3924 (alpha_frame_saved_pc): Remove.
3925 (alpha_saved_pc_after_call): Remove.
3926 (temp_proc_desc, temp_saved_regs): Remove.
3927 (alpha_about_to_return): Remove.
3928 (cached_proc_desc): Remove.
3929 (alpha_frame_chain): Remove.
3930 (alpha_print_extra_frame_info): Remove.
3931 (alpha_init_extra_frame_info): Remove.
3932 (alpha_frame_locals_address): Remove.
3933 (alpha_frame_args_address): Remove.
3934 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
3935 (alpha_push_dummy_frame): Remove.
3936 (alpha_pop_frame): Remove.
3937 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
3938 (alpha_read_insn): New.
3939 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
3940 for different insn encodings.
3941 (alpha_in_lenient_prologue): Remove.
3942 (struct alpha_sigtramp_unwind_cache): New.
3943 (alpha_sigtramp_frame_unwind_cache): New.
3944 (alpha_sigtramp_register_address): New.
3945 (alpha_sigtramp_frame_this_id): New.
3946 (alpha_sigtramp_frame_prev_register): New.
3947 (alpha_sigtramp_frame_unwind): New.
3948 (alpha_sigtramp_frame_p): New.
3949 (struct alpha_heuristic_unwind_cache): New.
3950 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
3951 don't count nop insns that occur between functions.
3952 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
3953 heuristic_proc_desc, but without the mdebug wrapping.
3954 (alpha_heuristic_frame_this_id): New.
3955 (alpha_heuristic_frame_prev_register): New.
3956 (alpha_heuristic_frame_unwind): New.
3957 (alpha_heuristic_frame_p): New.
3958 (alpha_heuristic_frame_base_address): New.
3959 (alpha_heuristic_frame_base): New.
3960 (alpha_unwind_dummy_id): New.
3961 (alpha_unwind_pc): New.
3962 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
3963 frame related deprecated initializations; install replacements.
3964 (alpha_dump_tdep): Remove.
3965 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
3966 (alpha_read_insn, alpha_after_prologue,
3967 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
3968 alpha_heuristic_frame_prev_register,
3969 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
3970 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3971 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
3972 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
3973
3974 2003-05-29 Andrew Cagney <cagney@redhat.com>
3975
3976 * gdb_assert.h (gdb_assert_fail): Provide different definitions
3977 dependant on the availability of ASSERT_FUNCTION.
3978 (ASSERT_FUNCTION): Do not define when there is no function name.
3979
3980 2003-05-29 Kevin Buettner <kevinb@redhat.com>
3981
3982 From Jimi X <jimix@watson.ibm.com>:
3983 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
3984
3985 2003-05-28 Jim Blandy <jimb@redhat.com>
3986
3987 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
3988 argument to ptrace to int; the system headers should give it the
3989 right type, and pointers don't fit in ints on powerpc64-*-*.
3990
3991 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
3992
3993 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
3994 DW_TAG_catch_block.
3995
3996 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
3997
3998 * stabsread.c (dbx_lookup_type): Make static.
3999 (read_type): Ditto.
4000 (add_undefined_type): Ditto.
4001 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4002 not export.
4003
4004 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4005
4006 * hpread.c (hpread_has_name): Make static.
4007 (hpread_psymtab_to_symtab): Ditto.
4008 (file_exists): Ditto.
4009 (hpread_call_pxdb): Ditto.
4010 (hpread_pxdb_needed): Ditto.
4011 (hpread_quick_traverse): Ditto.
4012 (hpread_get_header): Ditto.
4013 (hpread_get_lntt): Ditto.
4014 (hpread_get_slt): Ditto.
4015 (class_of): Ditto.
4016
4017 2003-05-25 Andreas Schwab <schwab@suse.de>
4018
4019 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4020 stack_align and deprecated_extra_stack_alignment_needed.
4021 (m68k_stack_align): Delete.
4022
4023 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4024 (m68k_register_virtual_size): Likewise.
4025 (altos_skip_prologue): Remove obsolete function.
4026 (isi_frame_num_args): Likewise.
4027 (news_frame_num_args): Likewise.
4028 (m68k_fix_call_dummy): Make static.
4029 (m68k_push_dummy_frame): Likewise.
4030 (m68k_pop_frame): Likewise.
4031 (m68k_skip_prologue): Likewise.
4032 (m68k_frame_init_saved_regs): Likewise.
4033 (m68k_saved_pc_after_call): Likewise.
4034 (m68k_get_longjmp_target): Make multi-arch.
4035 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4036 structure. Register m68k_get_longjmp_target if enabled.
4037 * m68k-tdep.h (struct gdbarch_tdep): Define.
4038 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4039
4040 * Makefile.in (config.status): Also depend on configure.tgt
4041 and configure.host.
4042 (m68klinux-tdep.o): Update dependencies.
4043 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4044 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4045 (M68K_LINUX_JB_PC): Define.
4046 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4047 and take additional parameter.
4048 (m68k_linux_sigtramp_saved_pc): Update.
4049 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4050 m68k_linux_pc_in_sigtramp, in_plt_section,
4051 find_solib_trampoline_target.
4052 * config/m68k/tm-linux.h: Don't include any tm headers.
4053 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4054 (JB_ELEMENT_SIZE): Likewise.
4055 (JB_PC): Likewise.
4056 (GET_LONGJMP_TARGET): Likewise.
4057 (IN_SIGTRAMP): Likewise.
4058 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4059
4060 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4061
4062 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4063 (sparc32_push_arguments): Re-implement by calling
4064 sparc32_do_push_arguments.
4065
4066 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4067
4068 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4069 SPARC_O1_REGNUM): New defines.
4070 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4071 (sparc32_store_return_value): New function.
4072 (sparc_extract_struct_value_address): Rewrite to operate on a
4073 regcache.
4074 (sparc_gdbarch_init): Don't set
4075 deprecated_extract_struct_value_address. Set
4076 extract_struct_value_address instead. Don't set
4077 deprecated_extract_return_value and deprecated_store_return_value
4078 for 32-bit targets. Set extract_return_value and
4079 store_return_value instead.
4080 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4081 DEPRECTAED_EXTRACT_RETURN_VALUE,
4082 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4083 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4084 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4085 (sparc_store_return_value): Remove prototype.
4086 (sparc32_store_return_value): New prototype.
4087 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4088 Adjust prototypes.
4089
4090 2003-05-24 Mark Kettenis <kettenis@gnu.org>
4091
4092 * sparcnbsd-tdep.c: Include "gdb_string.h".
4093
4094 2003-05-23 Andrew Cagney <cagney@redhat.com>
4095
4096 * p-valprint.c (pascal_val_print): Replace extract_address with
4097 the inline equivalent extract_unsigned_integer.
4098 * jv-valprint.c (java_value_print): Ditto.
4099 * ada-valprint.c (ada_val_print_1): Ditto.
4100 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4101
4102 2003-05-23 Theodore A. Roth <troth@openavr.org>
4103
4104 * blockframe.c (frameless_look_for_prologue): Remove unused
4105 after_prologue variable.
4106
4107 2003-05-23 Mark Kettenis <kettenis@gnu.org>
4108
4109 * blockframe.c (get_pc_function_start): Rewrite to avoid
4110 asignments in if-statements.
4111
4112 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4113
4114 Committed by Elena Zannoni <ezannoni@redhat.com>.
4115 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4116 files, don't relocate absolute symbols (and do use mst_abs).
4117
4118 2003-05-23 Andrew Cagney <cagney@redhat.com>
4119
4120 * objc-lang.c: Include "gdb_assert.h".
4121 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4122 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4123 (gdb_check, gdb_check_fatal): Delete functions.
4124 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4125 gdb_assert.
4126 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4127 * Makefile.in (objc-lang.o): Update dependencies.
4128
4129 2003-05-22 Ian Lance Taylor <ian@airs.com>
4130
4131 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4132 with fprintf_filtered, not fprintf_unfiltered.
4133
4134 2003-05-22 Andrew Cagney <cagney@redhat.com>
4135
4136 * stack.c (frame_info): Inline extract_address, replacing it with
4137 extract_unsigned_integer.
4138 * findvar.c (unsigned_pointer_to_address): Ditto.
4139 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4140 * dwarf2expr.c (dwarf2_read_address): Ditto.
4141 * frame.c (frame_pc_unwind): Update comment.
4142 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4143
4144 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4145
4146 * infptrace.c (detach): Call print_sys_errmsg rather than
4147 perror_with_name to issue warning message when errno is non-zero
4148 after calling ptrace detach.
4149
4150 2003-05-21 J. Brobecker <brobecker@gnat.com>
4151
4152 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4153 macro definitions from here...
4154 * hppa-tdep.c: ...to there.
4155
4156 2003-05-20 Kevin Buettner <kevinb@redhat.com>
4157
4158 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4159 register_ptrace_addr(). Fix all callers.
4160
4161 2003-05-21 Andreas Schwab <schwab@suse.de>
4162
4163 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4164 dependencies.
4165 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4166 end.
4167 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4168 (_initialize_m68k_linux_tdep): New function.
4169 (m68k_linux_frame_saved_pc): Make static.
4170 (m68k_linux_extract_return_value): Likewise.
4171 (m68k_linux_store_return_value): Likewise.
4172 (m68k_linux_extract_struct_value_address): Likewise.
4173 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4174 Remove.
4175 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4176 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4177 (DEPRECATED_FRAME_SAVED_PC): Remove.
4178
4179 2003-05-20 Kris Warkentin <kewarken@qnx.com>
4180
4181 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4182 regset numbering rather than our own.
4183
4184 2003-05-19 David Carlton <carlton@bactrian.org>
4185
4186 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4187
4188 2003-05-19 David Carlton <carlton@bactrian.org>
4189
4190 Partial fix for PR c++/827.
4191 * cp-support.h: Include symtab.h.
4192 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4193 * cp-namespace.c: Update contributors.
4194 (cp_lookup_symbol_nonlocal): New.
4195 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4196 (lookup_symbol_file): Ditto.
4197 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4198 * block.h: Declare block_scope, block_using, block_global_block.
4199 * block.c (block_scope): New.
4200 (block_using, block_global_block): Ditto.
4201 * Makefile.in (cp_support_h): Depend on symtab_h.
4202 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4203
4204 2003-05-19 David Carlton <carlton@bactrian.org>
4205
4206 * language.h (struct language_defn): Add 'la_value_of_this'
4207 and 'la_lookup_symbol_nonlocal' members.
4208 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4209 lookup_symbol_static, lookup_symbol_global,
4210 lookup_symbol_aux_block.
4211 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4212 if we should search fields of this and how to do static/global
4213 lookup.
4214 (lookup_symbol_aux_block): Make extern.
4215 (basic_lookup_symbol_nonlocal): New.
4216 (lookup_symbol_static, lookup_symbol_global): Ditto.
4217 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4218 'la_lookup_symbol_nonlocal' members.
4219 * c-lang.c (c_language_defn, cplus_language_defn)
4220 (asm_language_defn, minimal_language_defn): Ditto.
4221 * jv-lang.c (java_language_defn): Ditto.
4222 * language.c (unknown_language_defn, auto_language_defn)
4223 (local_language_defn): Ditto.
4224 * m2-lang.c (m2_language_defn): Ditto.
4225 * objc-lang.c (objc_language_defn): Ditto.
4226 * scm-lang.c (scm_language_defn): Ditto.
4227 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4228 * p-lang.c (pascal_language_defn): Ditto for both.
4229 * Makefile.in (f-lang.o): Depend on value_h.
4230 (p-lang.o): Ditto.
4231
4232 2003-05-19 David Carlton <carlton@bactrian.org>
4233
4234 * block.h: Declare block_static_block.
4235 * block.c (block_static_block): New.
4236 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4237 lookup_symbol_aux_local, calling block_static_block instead.
4238 (lookup_symbol_aux_local): Delete 'static_block' argument.
4239
4240 2003-05-19 David Carlton <carlton@bactrian.org>
4241
4242 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4243
4244 2003-05-19 Michal Ludvig <mludvig@suse.cz>
4245
4246 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4247 register numbers mapping.
4248
4249 2003-05-18 Adam Fedor <fedor@gnu.org>
4250
4251 * symtab.c (completion_list_objc_symbol): New function.
4252 (make_symbol_completion_list): Use it to add ObjC symbols
4253 when looking though the list.
4254 (language_search_unquoted_string): New function.
4255 (make_file_symbol_completion_list): Use it.
4256
4257 2003-05-18 Andreas Schwab <schwab@suse.de>
4258
4259 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4260 dependencies.
4261 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4262 as m68k_linux_extract_return_value.
4263 (DEPRECATED_STORE_RETURN_VALUE): Define as
4264 m68k_linux_store_return_value.
4265 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4266 m68k_linux_extract_struct_value_address.
4267 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4268 get_next_frame, get_frame_base, get_frame_pc.
4269 (m68k_linux_frame_saved_pc): Use get_frame_base.
4270 (m68k_linux_extract_return_value): New function.
4271 (m68k_linux_store_return_value): New function.
4272 (m68k_linux_extract_struct_value_address): New function.
4273 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4274
4275 * c-exp.y (typebase): Remove duplicate occurence of
4276 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
4277 of lookup_signed_typename.
4278
4279 2003-05-18 Mark Kettenis <kettenis@gnu.org>
4280
4281 * dwarf2loc.c (find_location_expression): Change type of second
4282 argument to `size_t *'.
4283 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4284 for size variable.
4285
4286 2003-05-18 David Carlton <carlton@bactrian.org>
4287
4288 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4289 'linkage_name'. Add comment.
4290 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4291 'linkage_name'.
4292 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4293 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
4294 (lookup_block_symbol): Ditto.
4295
4296 2003-05-16 Andrew Cagney <cagney@redhat.com>
4297
4298 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
4299 * gdbarch.h, gdbarch.c: Re-generate.
4300 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
4301 * TODO (REGISTER_BYTES): Delete reference.
4302 * alpha-tdep.c (alpha_gdbarch_init): Update.
4303 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4304 * x86-64-tdep.c (x86_64_init_abi): Update.
4305 * vax-tdep.c (vax_gdbarch_init): Update.
4306 * v850-tdep.c (v850_gdbarch_init): Update.
4307 * sparc-tdep.c (sparc_gdbarch_init): Update.
4308 * sh-tdep.c (sh_gdbarch_init): Update.
4309 * s390-tdep.c (s390_gdbarch_init): Update.
4310 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4311 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4312 (ns32k_gdbarch_init_32382): Update.
4313 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4314 * mcore-tdep.c (mcore_gdbarch_init): Update.
4315 * m68k-tdep.c (m68k_gdbarch_init): Update.
4316 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4317 * ia64-tdep.c (ia64_gdbarch_init): Update.
4318 * i386-tdep.c (i386_gdbarch_init): Update.
4319 * i386-linux-tdep.c (i386_linux_init_abi): Update.
4320 * hppa-tdep.c (hppa_gdbarch_init): Update.
4321 * h8300-tdep.c (h8300_gdbarch_init): Update.
4322 * frv-tdep.c (frv_gdbarch_init): Update.
4323 * cris-tdep.c (cris_gdbarch_init): Update.
4324 * avr-tdep.c (avr_gdbarch_init): Update.
4325 * arm-tdep.c (arm_gdbarch_init): Update.
4326 * sparc-tdep.c (sparc_pop_frame): Update.
4327 * rs6000-tdep.c (rs6000_pop_frame): Update.
4328 * remote.c (init_remote_state): Update.
4329 (remote_prepare_to_store): Update.
4330 * remote-vx.c (vx_prepare_to_store): Update.
4331 * remote-sds.c (sds_fetch_registers): Update.
4332 (sds_prepare_to_store): Update.
4333 * remote-array.c: Update.
4334 * regcache.c (init_legacy_regcache_descr): Update.
4335 (init_regcache_descr): Update.
4336 * mips-tdep.c (mips_eabi_extract_return_value): Update.
4337 (mips_o64_extract_return_value): Update.
4338 * irix5-nat.c (fetch_core_registers): Update.
4339 * irix4-nat.c (fetch_core_registers): Update.
4340 * i386-tdep.h: Update.
4341 * hppa-tdep.c (pa_do_registers_info): Update.
4342 (pa_do_strcat_registers_info): Update.
4343 * cris-tdep.c (cris_register_bytes_ok): Update.
4344 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4345 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
4346 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
4347 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
4348 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
4349 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
4350 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
4351 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
4352 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
4353 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
4354 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
4355 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
4356 (REGISTER_BYTES_OK): Update.
4357 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
4358 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
4359
4360 2003-05-16 Ian Lance Taylor <ian@airs.com>
4361
4362 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
4363 (vax_print_insn, print_insn_arg): Remove static functions.
4364 (vax_gdbarch_init): Call set_gdbarch_print_insn with
4365 print_insn_vax from opcodes library.
4366 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
4367
4368 2003-05-15 Andrew Cagney <cagney@redhat.com>
4369
4370 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
4371 * target.h (memory_breakpoint_from_pc): Delete declaration.
4372 * mem-break.c (memory_breakpoint_from_pc): Delete function.
4373 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
4374 * monitor.c (monitor_insert_breakpoint): Use
4375 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
4376 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
4377 * gdbarch.h, gdbarch.c: Re-generate.
4378 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
4379 (sparc_gdbarch_init): Set breakpoint_from_pc to
4380 sparc_breakpoint_from_pc.
4381 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
4382 (BREAKPOINT_FROM_PC): Define.
4383 (sparc_breakpoint_from_pc): Declare.
4384 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
4385 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
4386 (BREAKPOINT_FROM_PC): Define.
4387 (BREAKPOINT): Delete macro.
4388 * target.h: Update comment.
4389 * s390-tdep.c (s390_gdbarch_init): Update comments.
4390 * remote.c: Update comments.
4391 * remote-mips.c: Update comments.
4392 * proc-api.c (write_with_trace): Do not check for a breakpoint.
4393 * mem-break.c: Update comment.
4394 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
4395 (ia64_memory_insert_breakpoint): Update.
4396 * config/sparc/tm-sparc.h: Update comment.
4397 * config/pa/tm-hppa64.h: Update comment.
4398 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4399 (rs6000_breakpoint_from_pc): Update.
4400 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4401 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
4402 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
4403 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
4404 (mips_breakpoint_from_pc): Update.
4405 (mips_dump_tdep): Update.
4406
4407 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
4408 * minsyms.c (lookup_minimal_symbol): Inline
4409 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
4410
4411 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
4412 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4413 * p-lang.c (pascal_printstr): Ditto.
4414 * objc-lang.c (objc_printstr): Ditto.
4415 * m2-lang.c (m2_printstr): Ditto.
4416 * jv-valprint.c (java_print_value_fields): Ditto.
4417 * f-lang.c (f_printstr): Ditto.
4418 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
4419 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
4420 for repeat_count_threshold.
4421 * Makefile.in (cp-valprint.o): Update dependencies.
4422
4423 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
4424
4425 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
4426 (examine_prologue): Support looking through leaf functions, knowing
4427 they start with mov r2,r12. Support skipping over indirect stores
4428 of the input registers. Upon hitting a non-nop branch instruction
4429 or predicated instruction, bail out by setting lim_pc to the current
4430 pc value in the loop. At the end, if the lim_pc value is still
4431 beyond our calculated value and we have trust_limit set,
4432 use the lim_pc value.
4433
4434 2003-05-15 Andrew Cagney <cagney@redhat.com>
4435
4436 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
4437 generic_find_dummy_frame.
4438 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
4439 (deprecated_generic_find_dummy_frame): Update.
4440 (deprecated_read_register_dummy): Update.
4441 * frame.c (deprecated_generic_get_saved_register): Update.
4442
4443 2003-05-15 Theodore A. Roth <troth@openavr.org>
4444
4445 * avr-tdep.c (avr_breakpoint_from_pc): New function.
4446 (avr_gdbarch_init): Set breakpoint_from_pc method.
4447
4448 2003-05-15 Andrew Cagney <cagney@redhat.com>
4449
4450 * regcache.c (build_regcache): Set deprecated_register_valid
4451 directly.
4452 (deprecated_grub_regcache_for_register_valid): Delete function.
4453 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
4454 declaration.
4455
4456 2003-05-15 David Carlton <carlton@bactrian.org>
4457
4458 Committed by Elena Zannoni <ezannoni@redhat.com>
4459 * symtab.c (lookup_symbol_aux): Delete calls to
4460 lookup_symbol_aux_minsyms.
4461 (lookup_symbol_aux_minsyms): Comment out function and
4462 prototype. Delete lookup by mangled name.
4463
4464 2003-05-14 Kevin Buettner <kevinb@redhat.com>
4465
4466 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
4467 correctly indicate an empty stack and ``stack_allocated'' to the
4468 indicate the number of elements initially allocated.
4469 (dwarf_expr_grow_stack): Simplify method for computing new
4470 stack size. Don't loop infinitely if ``stack_len'' is zero.
4471 (execute_stack_op): Move ``ctx->in_reg'' initialization
4472 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
4473 be used in conjuction with DW_OP_piece. Revise error message
4474 accordingly.
4475
4476 2003-05-14 Theodore A. Roth <troth@openavr.org>
4477
4478 * MAINTAINERS: Update my email address.
4479 * avr-tdep.c: Ditto.
4480
4481 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
4482
4483 * symtab.h (enum domain_enum): Rename from namespace_enum.
4484 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
4485 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
4486 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
4487 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
4488 TYPES_NAMESPACE, METHODS_NAMESPACE.
4489 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
4490 (struct symbol, struct partial_symbol): Rename field
4491 'namespace_enum namespace' to 'domain_enum domain'.
4492 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
4493 Delete old define kludge for namespace.
4494
4495 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
4496 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
4497 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
4498 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
4499 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
4500 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
4501 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
4502 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
4503 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
4504 occurrences of the above.
4505
4506 2003-05-14 Ian Lance Taylor <ian@airs.com>
4507
4508 * Makefile.in (install-only): Use $(SHELL) when running
4509 mkinstalldirs.
4510
4511 2003-05-13 Ian Lance Taylor <ian@airs.com>
4512
4513 * MAINTAINERS (write after approval): Add myself.
4514
4515 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
4516 second and third arguments.
4517 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4518 * ser-unix.c (_initialize_ser_hardwire): Likewise.
4519
4520 2003-05-13 Andrew Cagney <cagney@redhat.com>
4521
4522 * defs.h (store_address): Delete declaration.
4523 findvar.c (store_address): Delete function.
4524 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
4525 store_unsigned_integer.
4526 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
4527 * v850-tdep.c (v850_push_arguments): Ditto.
4528 * sparc-tdep.c (sparc_get_saved_register): Ditto.
4529 * sh-tdep.c (sh64_get_saved_register): Ditto.
4530 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
4531 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
4532 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
4533 (mips_get_saved_register): Ditto.
4534 * ia64-tdep.c (ia64_get_saved_register): Ditto.
4535 (find_func_descr, ia64_push_arguments): Ditto.
4536 * i386-tdep.c (i386_push_arguments): Ditto.
4537 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
4538 * frv-tdep.c (frv_push_arguments): Ditto.
4539 * frame.c (legacy_saved_regs_prev_register): Ditto.
4540 (deprecated_generic_get_saved_register): Ditto.
4541 * findvar.c (unsigned_address_to_pointer): Ditto.
4542 * dwarf2read.c (dwarf2_const_value): Ditto.
4543 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4544 * alpha-tdep.c (alpha_push_arguments): Ditto.
4545
4546 2003-05-12 J. Brobecker <brobecker@gnat.com>
4547
4548 * NEWS: Mention that the hppa-hpux port has been partially
4549 multiarched (32bit ABIT only, so far).
4550
4551 2003-05-11 Andrew Cagney <cagney@redhat.com>
4552
4553 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
4554 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
4555 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
4556 sim/testsuite/sim/arm/misaligned2.ms, and
4557 sim/testsuite/sim/arm/misaligned3.ms.
4558 * disasm.h (struct ui_file): Add opaque struct declaration.
4559 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
4560 * frame.h (struct ui_file): Ditto.
4561
4562 2003-05-11 Mark Kettenis <kettenis@gnu.org>
4563
4564 * value.h: Pretty print.
4565
4566 2003-05-10 Mark Kettenis <kettenis@gnu.org>
4567
4568 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
4569
4570 2003-05-08 Andrew Cagney <cagney@redhat.com>
4571
4572 * regcache.h (max_register_size): Delete declaration.
4573 * regcache.c (max_register_size): Delete function.
4574 (struct regcache_descr): Delete field "max_register_size".
4575 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
4576 registers fit in MAX_REGISTER_SIZE.
4577 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
4578 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
4579 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
4580 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
4581 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
4582 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
4583 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
4584 * dve3900-rom.c, hppa-tdep.c: Ditto.
4585
4586 2003-05-08 David Carlton <carlton@math.stanford.edu>
4587
4588 * valops.c (push_word): Fix typo.
4589
4590 2003-05-08 Andrew Cagney <cagney@redhat.com>
4591
4592 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
4593 * gdbarch.h: Re-generate.
4594 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
4595 (legacy_max_register_raw_size): Delete declaration.
4596 * regcache.c (legacy_max_register_raw_size): Delete function.
4597 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
4598 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
4599 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
4600 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
4601 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
4602 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
4603 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
4604 * findvar.c, dwarf2cfi.c: Ditto.
4605
4606 2003-05-08 Andrew Cagney <cagney@redhat.com>
4607
4608 * mips-tdep.c (read_signed_register): New function, moved to here
4609 from "regcache.c".
4610 (read_signed_register_pid): Ditto.
4611 * regcache.c (read_signed_register_pid): Delete function, moved to
4612 "mips-tdep.c".
4613 (read_signed_register): Ditto.
4614 * regcache.h (read_signed_register): Delete declaration.
4615 (read_signed_register_pid): Delete declaration.
4616
4617 2003-05-08 Andrew Cagney <cagney@redhat.com>
4618
4619 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
4620 * gdbarch.h: Re-generate.
4621 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
4622 (legacy_max_register_virtual_size): Delete declaration.
4623 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
4624 * d10v-tdep.c (d10v_print_registers_info): Ditto.
4625 * tracepoint.c (memrange_sortmerge): Ditto.
4626 * sparc-tdep.c (sparc_print_registers): Ditto.
4627 * regcache.c (legacy_max_register_virtual_size): Delete function.
4628
4629 2002-05-08 J. Brobecker <brobecker@gnat.com>
4630
4631 * fork-child.c (escape_bang_in_quoted_argument): New function.
4632 (fork_inferior): Escape '!' characters in quoted arguments
4633 only when needed.
4634
4635 2003-05-08 J. Brobecker <brobecker@gnat.com>
4636
4637 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
4638 the language of the CU is not currently supported by GDB.
4639
4640 2003-05-08 J. Brobecker <brobecker@gnat.com>
4641
4642 * defs.h (language): Add language_minimal enum value.
4643 * c-lang.c (minimal_language_defn): New language definition.
4644 (_initialize_c_language): Add the new minimal language to the list
4645 of languages known to GDB.
4646
4647 2003-05-08 Kevin Buettner <kevinb@redhat.com>
4648
4649 * frame.c (get_frame_type): Don't attempt to lazily initialize
4650 frame's unwinder for legacy frames.
4651
4652 2003-05-07 Andrew Cagney <cagney@redhat.com>
4653
4654 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
4655 and "regcache" parameters.
4656 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
4657
4658 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
4659
4660 * dwarf2read.c (dwarf_decode_lines): Only use output of
4661 check_cu_functions() when calling record_line(). Do not update
4662 the current address.
4663
4664 2003-05-07 Andrew Cagney <cagney@redhat.com>
4665
4666 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
4667 code.
4668
4669 2003-05-07 Jim Blandy <jimb@redhat.com>
4670
4671 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
4672 'maint info symtabs' and 'maint info psymtabs'.
4673 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
4674 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
4675 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
4676 Declarations updated.
4677 * maint.c (maintenance_list_command): Delete.
4678 (_initialize_maint_cmds): Update calls to add_cmd.
4679 * gdbcmd.h (maintenancelistlist): Delete declaration.
4680 * cli/cli-cmds.c (maintenancelistlist): Delete.
4681 (init_cmd_lists): Don't initialize it.
4682 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
4683
4684 2003-05-07 Andrew Cagney <cagney@redhat.com>
4685
4686 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
4687 "regcache".
4688 (d10v_print_registers_info): Update.
4689 (d10v_dmap_register, d10v_imap_register): Delete functions.
4690 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
4691 and "imap_register".
4692 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
4693 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
4694 * arch-utils.c (generic_remote_translate_xfer_address): Add
4695 "regcache" and "gdbarch" parameters.
4696 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
4697 parameter. Change class to multi-arch.
4698 * gdbarch.h, gdbarch.c: Re-generate.
4699 * remote.c (remote_xfer_memory): Use
4700 gdbarch_remote_translate_xfer_address.
4701
4702 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
4703
4704 * infrun.c (prev_pc): Move declaration ahead of proceed().
4705 (proceed): Refresh prev_pc value before resuming.
4706 (stop_stepping): Remove code to refresh prev_pc.
4707
4708 2003-05-06 Kris Warkentin <kewarken@qnx.com>
4709
4710 * nto-tdep.c: Removed stray comment.
4711
4712 2003-05-06 Kris Warkentin <kewarken@qnx.com>
4713
4714 * i386-nto-tdep.c: Fix old K&R function definitions.
4715 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
4716 Also change add_show_from_set() call to add_setshow_cmd().
4717 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
4718
4719 2003-05-05 Andrew Cagney <cagney@redhat.com>
4720
4721 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
4722 (fprint_dummy_frames): New function.
4723 (maintenance_print_dummy_frames): New function.
4724 (_initialize_dummy_frame): Add command "maint print dummy-frames".
4725 * frame.c (fprint_frame_id): Make global.
4726 * frame.h (fprint_frame_id): Declare.
4727 * Makefile.in (dummy-frame.o): Update dependencies.
4728
4729 2003-05-05 Andrew Cagney <cagney@redhat.com>
4730
4731 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
4732 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
4733 SIZEOF_CALL_DUMMY_WORDS.
4734 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
4735 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
4736 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
4737 CALL_DUMMY_BREAKPOINT_OFFSET.
4738 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
4739 CALL_DUMMY_START_OFFSET.
4740 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
4741 * gdbarch.h, gdbarch.c: Re-generate.
4742 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
4743 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
4744 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
4745 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
4746 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
4747 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
4748 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
4749 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
4750 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
4751 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
4752 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
4753 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
4754 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
4755 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
4756 * config/sparc/tm-sparc.h: Update.
4757
4758 2003-05-05 Kris Warkentin <kewarken@qnx.com>
4759
4760 * configure.tgt: Add i[3456]86-*-nto*.
4761 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
4762 * nto-tdep.c: New file. Neutrino target support routines.
4763 * nto-tdep.h: New file. Neutrino target header.
4764 * config/tm-qnxnto.h: New file.
4765 * config/i386/i386nto.mt: New file.
4766 * config/i386/tm-i386nto.h: New file.
4767
4768 2003-05-04 Andrew Cagney <cagney@redhat.com>
4769
4770 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
4771 (load_infrun_state): Ditto.
4772 (struct thread_info): Drop "prev_func_name" field.
4773 * thread.c (load_infrun_state): Update.
4774 (save_infrun_state): Update.
4775 * infrun.c (prev_func_name): Delete variable.
4776 (init_wait_for_inferior): Do not clear prev_func_name.
4777 (stop_stepping, keep_going, context_switch): Do not swap
4778 prev_func_name.
4779 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
4780 instead of PC_IN_SIGTRAMP.
4781
4782 2003-05-04 Andrew Cagney <cagney@redhat.com>
4783
4784 * sentinel-frame.c (sentinel_frame_prev_register): Replace
4785 REGISTER_BYTE with register_offset_hack.
4786 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
4787 that REGISTER_BYTE is consistent with the regcache.
4788 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
4789 * gdbarch.h, gdbarch.c: Regenerate.
4790
4791 2003-05-04 Mark Kettenis <kettenis@gnu.org>
4792
4793 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
4794 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
4795
4796 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
4797
4798 2003-05-03 J. Brobecker <brobecker@gnat.com>
4799
4800 From Thierry Schneider <tpschneider1@yahoo.com>
4801 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
4802 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
4803 (mi-cmd-symbol.o): Add rule.
4804
4805 2003-05-03 Andrew Cagney <cagney@redhat.com>
4806
4807 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
4808 comments noteing that it replaces the old FIX_CALL_DUMMY code.
4809 * gdbarch.h, gdbarch.c: Re-generate.
4810 * d10v-tdep.c (d10v_push_dummy_code): New function.
4811 (d10v_gdbarch_init): Set push_dummy_code.
4812 * infcall.c (legacy_push_dummy_code): New function.
4813 (generic_push_dummy_code): New function.
4814 (push_dummy_code): New function.
4815 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
4816 instead of dummy_addr, to push_dummy_call. Move call to
4817 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
4818 switch.
4819 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
4820
4821 2003-05-03 Andrew Cagney <cagney@redhat.com>
4822
4823 * disasm.h (print_insn): Declare.
4824 * disasm.c (init_gdb_disassemble_info): New function.
4825 (gdb_disassembly): Call init_gdb_disassemble_info.
4826 (gdb_print_insn): New function.
4827 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
4828 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
4829 * mcore-tdep.c: Include "disasm.h"
4830 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
4831 * d10v-tdep.c: Include "disasm.h".
4832 (display_trace): Call gdb_print_insn, instead of print_insn.
4833 (print_insn): Delete function.
4834 * printcmd.c: Include "disasm.h".
4835 (print_insn): Delete function.
4836 (print_formatted): Call gdb_print_insn, instead of print_insn.
4837 * Makefile.in (printcmd.o): Update dependencies.
4838 (mcore-tdep.o, d10v-tdep.o): Ditto.
4839
4840 2003-05-02 Andrew Cagney <cagney@redhat.com>
4841
4842 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
4843 PC_REGNUM, re-indent.
4844 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
4845 PC_REGNUM isn't set.
4846
4847 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
4848 * gdbarch.h, gdbarch.c: Re-generate.
4849 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
4850 register_virtual_size, pc_regnum, or register_bytes.
4851 (D10V_PC_REGNUM): Rename _PC_REGNUM.
4852 (d10v_register_type): Use D10V_PC_REGNUM.
4853 (d10v_print_registers_info, d10v_read_pc): Ditto.
4854 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
4855 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
4856
4857 2003-05-02 David Carlton <carlton@bactrian.org>
4858
4859 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
4860 the name with mstrsave.
4861
4862 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
4863
4864 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
4865 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
4866 (host_charset_name, target_charset_name): New vars for use by
4867 set/show commands.
4868 (host_charset_enum, target_charset_enum): New enums for set/show
4869 commands.
4870 (set_charset_sfunc, set_host_charset_sfunc,
4871 set_target_charset_sfunc): New functions.
4872 (set_host_charset, set_target_charset): Make static.
4873 (list_charsets, set_host_charset_command,
4874 set_target_charset_command): Delete functions.
4875 (show_charset_command): Rewrite as....
4876 (show_charset): Hook this up with the set/show command mechanism.
4877 (_initialize_charset): Change names of charsets to match the
4878 set/show enums. Use host_charset_name and target_charset_name.
4879 Use set/show mechanism for charset, host-charset, target-charset
4880 commands. Do not make 'show host-charset' and 'show
4881 target-charset' be aliases of 'show charset'.
4882
4883 * charset.h (set_host_charset, set_target_charset): Don't export,
4884 they are not used outside the file.
4885
4886 2003-05-01 Andrew Cagney <cagney@redhat.com>
4887
4888 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
4889 (gdb_disassembly): Make "di" non static, always initialize and
4890 cleanup. Always use dis_asm_read_memory.
4891 (gdb_dis_asm_read_memory): Delete function.
4892
4893 2003-05-01 Andrew Cagney <cagney@redhat.com>
4894
4895 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
4896 (d10v_gdbarch_init): Set frame_align instead of stack_align.
4897
4898 2003-04-30 Andrew Cagney <cagney@redhat.com>
4899
4900 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
4901 "tm_print_insn_info".
4902 (TARGET_PRINT_INSN_INFO): Delete macro.
4903 (dis_asm_read_memory): Delete function declaration.
4904 (dis_asm_memory_error, dis_asm_print_address): Ditto.
4905 (tm_print_insn_info): Delete variable definition.
4906 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
4907 * gdbarch.h, gdbarch.c: Re-generate.
4908 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
4909 "deprecated_tm_print_insn_info".
4910 * mcore-tdep.c (mcore_dump_insn): Ditto.
4911 * mips-tdep.c (mips_gdbarch_init): Ditto.
4912 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
4913 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
4914 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
4915 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
4916 instead of TARGET_PRINT_INSN_INFO, add comment.
4917 * s390-tdep.c (s390_get_frame_info): Instead of
4918 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
4919 (s390_check_function_end, s390_is_sigreturn): Ditto.
4920 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
4921 (dis_asm_memory_error, dis_asm_print_address): Ditto.
4922 * disasm.c: Include "gdbcore.h".
4923 (_initialize_disasm): New function, initialize
4924 "deprecated_tm_print_insn_info".
4925 (deprecated_tm_print_insn_info): New variable.
4926 (dis_asm_read_memory): Moved from "corefile.c", made static.
4927 (dis_asm_print_address, dis_asm_memory_error): Ditto.
4928 * Makefile.in (disasm.o): Update dependencies.
4929
4930 2003-04-30 Andrew Cagney <cagney@redhat.com>
4931
4932 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
4933
4934 2003-04-29 Adam Fedor <fedor@gnu.org>
4935
4936 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
4937 * infcall.c (find_function_addr): Make non-static.
4938 * infcall.h (find_function_addr): Declare.
4939 * Makefile.in (eval.o): Update dependencies.
4940
4941 2003-04-28 Adam Fedor <fedor@gnu.org>
4942
4943 * symtab.c (symbol_find_demangled_name): Check for and demangle
4944 ObjC symbols.
4945 (symbol_init_demangled_name): Init for language_objc as well.
4946
4947 2003-04-28 Andrew Cagney <cagney@redhat.com>
4948
4949 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
4950 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
4951 * gdbarch.h, gdbarch.c: Re-generate.
4952 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
4953 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
4954 * inferior.h (deprecated_read_fp): Rename read_fp.
4955 (generic_target_read_fp): Delete declaration.
4956 * regcache.c (generic_target_read_fp): Delete function.
4957 (deprecated_read_fp): Replace read_fp, use
4958 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
4959 * d10v-tdep.c (d10v_read_fp): Delete function.
4960 (d10v_gdbarch_init): Do not set deprecated_read_fp.
4961
4962 * sparc-tdep.c (sparc_gdbarch_init): Do not set
4963 deprecated_target_read_fp to generic_target_read_fp.
4964 * sh-tdep.c (sh_gdbarch_init): Ditto.
4965 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4966 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4967 * frv-tdep.c (frv_gdbarch_init): Ditto.
4968
4969 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
4970 deprecated_fp_regnum.
4971 * x86-64-tdep.c (x86_64_init_abi): Ditto.
4972 * vax-tdep.c (vax_gdbarch_init): Ditto.
4973 * v850-tdep.c (v850_gdbarch_init): Ditto.
4974 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4975 * sh-tdep.c (sh_gdbarch_init): Ditto.
4976 * s390-tdep.c (s390_gdbarch_init): Ditto.
4977 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4978 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4979 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4980 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4981 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4982 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4983 * i386-tdep.c (i386_gdbarch_init): Ditto.
4984 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4985 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4986 * frv-tdep.c (frv_gdbarch_init): Ditto.
4987 * cris-tdep.c (cris_gdbarch_init): Ditto.
4988 * avr-tdep.c (avr_gdbarch_init): Ditto.
4989 * arm-tdep.c (arm_gdbarch_init): Ditto.
4990 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4991
4992 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
4993 * v850-tdep.c (v850_gdbarch_init): Ditto.
4994 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4995 * sh-tdep.c (sh_gdbarch_init): Ditto.
4996 * s390-tdep.c (s390_gdbarch_init): Ditto.
4997 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4998 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4999 * mips-tdep.c (mips_gdbarch_init): Ditto.
5000 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5001 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5002 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5003 * frv-tdep.c (frv_gdbarch_init): Ditto.
5004 * avr-tdep.c (avr_gdbarch_init): Ditto.
5005 * arm-tdep.c (arm_gdbarch_init): Ditto.
5006
5007 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5008 DEPRECATED_FP_REGNUM.
5009 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5010 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5011 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5012 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5013 (sparc32_register_virtual_type): Ditto.
5014 * sh-tdep.c (sh64_frame_chain): Ditto.
5015 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5016 (sh_nofp_frame_init_saved_regs): Ditto.
5017 (sh64_nofp_frame_init_saved_regs): Ditto.
5018 (sh_fp_frame_init_saved_regs): Ditto.
5019 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5020 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5021 * procfs.c (procfs_fetch_registers): Ditto.
5022 (procfs_store_registers): Ditto.
5023 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5024 (store_inferior_registers, fetch_core_registers): Ditto.
5025 (fetch_kcore_registers, clear_regs): Ditto.
5026 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5027 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5028 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5029 * nlm/i386.c (do_status): Ditto.
5030 * mipsv4-nat.c (supply_gregset): Ditto.
5031 * mips-tdep.c: Ditto for comments.
5032 * mips-nat.c (fetch_inferior_registers): Ditto.
5033 (store_inferior_registers, fetch_core_registers): Ditto.
5034 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5035 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5036 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5037 (i386_do_pop_frame, i386_register_type): Ditto.
5038 * hppa-tdep.c (hppa_frame_chain): Ditto.
5039 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5040 (hppa_pop_frame, hppa_read_fp): Ditto.
5041 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5042 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5043 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5044 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5045 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5046 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5047 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5048 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5049 * blockframe.c: Ditto for comments.
5050 * arch-utils.h: Ditto for comments.
5051 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5052 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5053 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5054 * alpha-tdep.h: Ditto for comments.
5055 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5056 (alpha_cannot_store_register): Ditto.
5057 (alpha_push_dummy_frame): Ditto.
5058 * alpha-nat.c (supply_gregset): Ditto.
5059
5060 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5061 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5062 * config/sparc/tm-sparc.h: Update comment.
5063
5064 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5065 deprecated_read_fp instead of TARGET_READ_FP.
5066 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5067 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5068 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5069 deprecated_read_fp instead of read_fp.
5070 * s390-tdep.c (s390_push_arguments): Ditto.
5071 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5072 * frame.h: Ditto in comments.
5073 * frame.c (legacy_get_prev_frame): Ditto.
5074 * dummy-frame.c (dummy_frame_this_id): Ditto.
5075 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5076
5077 2003-04-28 Andrew Cagney <cagney@redhat.com>
5078
5079 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5080 * gdbarch.h, gdbarch.c: Re-generate.
5081 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5082 * vax-tdep.c (_initialize_vax_tdep): Update.
5083 * v850-tdep.c (_initialize_v850_tdep): Update.
5084 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5085 * s390-tdep.c (_initialize_s390_tdep): Update.
5086 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5087 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5088 * mips-tdep.c (_initialize_mips_tdep): Update.
5089 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5090 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5091 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5092 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5093 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5094 * frv-tdep.c (_initialize_frv_tdep): Update.
5095 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5096 (_initialize_cris_tdep): Update.
5097 * arch-utils.c (legacy_print_insn): Update.
5098 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5099
5100 2003-04-26 Adam Fedor <fedor@gnu.org>
5101
5102 * linespec.c (decode_objc): New function to decode ObjC calls
5103 (decode_line_1): Check for ObjC calls (using decode_objc)
5104 * Makefile (linespec.o): Update dependencies.
5105
5106 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
5107
5108 * breakpoint.h (struct breakpoint_ops): New.
5109 (struct breakpoint): Add ops member.
5110
5111 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5112 (mention): Use new breakpoint ops member.
5113 (set_raw_breakpoint): Initialize ops field to NULL.
5114 (print_exception_catchpoint, print_one_exception_catchpoint)
5115 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5116 (gnu_v3_exception_catchpoint_ops): New.
5117 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5118
5119 2003-04-25 Adam Fedor <fedor@gnu.org>
5120
5121 * Makefile.in (COMMON_OBS): Add objc-lang.o
5122
5123 2003-04-25 Andrew Cagney <cagney@redhat.com>
5124
5125 * d10v-tdep.c (print_insn): Delete function.
5126 (display_trace): Use TARGET_PRINT_INSN.
5127 (_initialize_d10v_tdep): Do not set tm_print_insn.
5128 (d10v_gdbarch_init): Set print_insn.
5129
5130 2003-04-25 Andrew Cagney <cagney@redhat.com>
5131
5132 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5133 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5134 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5135 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5136 (nr_dmap_regs, a0_regnum): ... new functions.
5137 (d10v_print_registers_info): Use a0_regnum, use register_size.
5138 (d10v_register_byte): Delete function.
5139 (d10v_register_raw_size): Delete function.
5140 (d10v_register_type): Use a0_regnum.
5141 (d10v_print_registers_info): Use a0_regnum.
5142 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5143 (d10v_gdbarch_init): Do not set register_byte or
5144 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5145 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5146 extract_address.
5147 (trace_command): Use XCALLOC.
5148 (print_insn): Delete reference to tm_print_insn.
5149 (saved_regs_unwinder): Use store_unsigned_integer instead of
5150 store_address.
5151 * frame.h (FRAME_OBSTACK_CALLOC): Define
5152
5153 2003-04-25 David Carlton <carlton@bactrian.org>
5154
5155 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5156
5157 2003-04-24 Adam Fedor <fedor@gnu.org>
5158
5159 * objc-lang.c: Include "valprint.h"
5160 * Makefile.in (objc-lang.o): Update dependencies.
5161
5162 2003-04-24 Adam Fedor <fedor@gnu.org>
5163
5164 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5165 architecture dependant compilation and mark as unimplemented
5166 (until they get put in the gdbarch vector).
5167
5168 2003-04-23 David Carlton <carlton@bactrian.org>
5169
5170 * cp-support.c (cp_find_first_component): Accept 'operator' in
5171 more locations.
5172
5173 2003-04-23 Andrew Cagney <cagney@redhat.com>
5174
5175 * infcall.c (call_function_by_hand): Eliminate redundant
5176 indentation. Move "saved_async" and "old_cleanups" to where they
5177 are needed.
5178
5179 2003-04-23 Andrew Cagney <cagney@redhat.com>
5180
5181 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5182 and "buffer". Move the "name" code to where it is needed.
5183
5184 2003-04-23 Andrew Cagney <cagney@redhat.com>
5185
5186 * infcall.c (call_function_by_hand): Move variables "start_sp",
5187 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5188 code to ON_STACK switch branch.
5189
5190 2003-04-23 Andrew Cagney <cagney@redhat.com>
5191
5192 * infcall.c (call_function_by_hand): Make declaration of "i",
5193 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5194 lint.
5195
5196 2003-04-23 Andrew Cagney <cagney@redhat.com>
5197
5198 * infcall.c (call_function_by_hand): Delete variable
5199 "n_method_args". Localize "param_type"'s declaration to the loop
5200 that it is used. Reinstate code assigning to said variable -
5201 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5202 Rationalize code using "param_type".
5203
5204 2003-04-22 Andrew Cagney <cagney@redhat.com>
5205
5206 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5207 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5208 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5209 to DEPRECATED_PUSH_RETURN_ADDRESS.
5210
5211 2003-04-22 Kevin Buettner <kevinb@redhat.com>
5212
5213 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5214 on the DWARF2 register number prior to fetching a register.
5215
5216 2003-04-22 J. Brobecker <brobecker@gnat.com>
5217
5218 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5219 Update all the tests using SOFT_FLOAT considering the fact that
5220 this macro was always set to 0.
5221 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5222 considering the fact that this macro was always set to 0.
5223 * hppa-tdep.h (hppa_store_return_value): Likewise.
5224 (hppa_extract_return_value): Likewise.
5225
5226 2003-04-22 J. Brobecker <brobecker@gnat.com>
5227
5228 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5229 the hppa-pro target only.
5230
5231 2003-04-21 J. Brobecker <brobecker@gnat.com>
5232
5233 Ongoing multi-arch conversion effort for HP/UX:
5234 * config/pa/tm-hppa.h: Move all macro that are no longer
5235 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5236 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5237
5238 2003-04-21 J. Brobecker <brobecker@gnat.com>
5239
5240 * config/pa/tm-hppa.h: Obsolete a section that was only used
5241 for hppa-pro.
5242
5243 2003-04-21 J. Brobecker <brobecker@gnat.com>
5244
5245 Ongoing multi-arch conversion for HP/UX.
5246 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5247 if already defined (allows hppa64 to stay non-multiarched for now).
5248 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5249
5250 2003-04-21 Andrew Cagney <cagney@redhat.com>
5251
5252 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5253
5254 2003-04-21 Andrew Cagney <cagney@redhat.com>
5255
5256 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5257 "i386_num_mmx_regs".
5258
5259 2003-04-21 Andrew Cagney <cagney@redhat.com>
5260
5261 * infcall.c: New file.
5262 * infcall.h: New file.
5263 * valarith.c: Include "infcall.h".
5264 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5265 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5266 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5267 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5268 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5269 (SFILES): Add "infcall.c"
5270 (COMMON_OBS): Add "infcall.o".
5271 (infcall.o): Specify dependencies.
5272 * value.h (call_function_by_hand): Delete declaration.
5273 * inferior.h (run_stack_dummy): Delete declaration.
5274 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5275 (run_stack_dummy): Move to "infcall.c", merged into
5276 call_function_by_hand.
5277 * valops.c (call_function_by_hand): Moved to "infcall.c".
5278 (find_function_addr, value_arg_coerce): Ditto.
5279 (unwindonsignal_p, coerce_float_to_double): Ditto.
5280 (_initialize_valops): Move "set/show coerce-float-to-double", and
5281 "set/show unwindonsignal" commands to "infcall.c".
5282 * v850-tdep.c, target.h: Update comments.
5283 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5284 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5285 (sh64_init_extra_frame_info): Update comments.
5286 * mn10300-tdep.c: Update comments.
5287 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5288 * config/sparc/tm-sparc.h: Update comments.
5289 * breakpoint.h: Update comments.
5290 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5291 * arm-tdep.c: Update comment.
5292
5293 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5294
5295 * i386-tdep.c (i386_num_register_names): New variable.
5296 (i386_num_mmx_regs): Renamed from mmx_num_regs.
5297 (MM0_REGNUM): Remove redundant parentheses in define.
5298 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
5299 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
5300 i386_mxcsr_regnum_p): Remove redundant parentheses.
5301 (i386_register_name): Use i386_num_register_names.
5302
5303 * i386-tdep.c (i386_extract_return_value,
5304 i386_store_return_value): Correct check for availability of
5305 floating-point registers.
5306
5307 * i386-tdep.c (i386_frame_num_args): Remove function.
5308 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
5309
5310 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
5311 mmx_regnum_to_fp_regnum. Adjust all callers.
5312
5313 * i386-tdep.c (i386_get_longjmp_target): Use
5314 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
5315 and TARGET_CHAR_BIT. Use extract_typed_address instead of
5316 extract_address.
5317
5318 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5319
5320 * core-regset.c: Update comments to reflect reality. Re-order
5321 includes.
5322 (fetch_core_registers): Use switch instead of if. Remove
5323 redundant prototype.
5324
5325 2003-04-18 Jim Blandy <jimb@redhat.com>
5326
5327 * s390-tdep.c (s390_frame_align): New function.
5328 (s390_gdbarch_init): Register it with the gdbarch object.
5329
5330 2003-04-17 Richard Henderson <rth@redhat.com>
5331
5332 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
5333
5334 2003-04-17 Michael Snyder <msnyder@redhat.com>
5335 Karen Bennet <bennet@redhat.com>
5336
5337 Committed by Elena Zannoni <ezannoni@redhat.com>
5338 * gdb_gcore.sh: New script to create a core dump of a process.
5339
5340 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
5341
5342 * values.c (value_being_returned): Don't fetch the return
5343 value if the return type is void.
5344
5345 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5346
5347 * thread-db.c: Reindented.
5348
5349 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5350
5351 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
5352 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
5353 as types.
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379 2003-04-16 Kevin Buettner <kevinb@redhat.com>
5380
5381 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
5382 the size of ``long double'' to 16, instead of 8.
5383
5384 2003-04-16 Mark Kettenis <kettenis@gnu.org>
5385
5386 * i386-linux-nat.c: Add some whitespace to make things more
5387 readable.
5388 (fetch_register, store_register, fetch_inferior_registers,
5389 store_inferior_registers): Get rid of assignment in if-statement.
5390 (store_register): Fix typo in error message.
5391
5392 2003-04-16 Andrew Cagney <cagney@redhat.com>
5393
5394 * utils.c (xmmalloc): Always allocate something, matches
5395 libiberty/xmalloc's semantics.
5396 (xmrealloc, xmcalloc): Ditto.
5397
5398 2003-04-16 Andrew Cagney <cagney@redhat.com>
5399
5400 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5401 update comments.
5402 (get_frame_type): Initialize unwind and type when needed.
5403 (get_frame_id, frame_register_unwind): Ditto.
5404
5405 2003-04-16 Andrew Cagney <cagney@redhat.com>
5406
5407 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
5408 obsolete.
5409 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
5410 * sparcl-stub.c: Obsolete file.
5411 * config/sparc/tm-sparclet.h: Obsolete file.
5412 * sparclet-stub.c: Obsolete file.
5413 * sparclet-rom.c: Obsolete file.
5414 * sparcl-tdep.c: Obsolete file.
5415 * config/sparc/tm-sparclite.h: Obsolete file.
5416 * config/sparc/sparclite.mt: Obsolete file.
5417 * config/sparc/sparclet.mt: Obsolete file.
5418 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
5419 sparc86x-*-* obsolete.
5420
5421 2003-04-15 David Carlton <carlton@math.stanford.edu>
5422
5423 * Makefile.in (SFILES): Add cp-namespace.c.
5424 (COMMON_OBS): Add cp-namespace.o.
5425 (block.o): Depend on gdb_obstack_h and cp_support_h.
5426 (buildsym.o): Depend on cp_support_h.
5427 (cp-namespace.o): New.
5428 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
5429 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
5430 (dwarf2read.o): Depend on cp_support_h.
5431 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
5432 * dwarf2read.c (process_die): Set processing_has_namespace_info,
5433 processing_current_namespace.
5434 (read_namespace): Update processing_current_namespace; check for
5435 anonymous namespaces.
5436 (dwarf2_name): New function.
5437 (dwarf2_extension): Ditto.
5438 * cp-support.h: Update copyright, contributors.
5439 Add inclusion guards.
5440 Add opaque declaration for structs obstack, block, symbol.
5441 (struct using_direct): New struct.
5442 Add declarations for cp_find_first_component,
5443 cp_entire_prefix_len, processing_has_namespace_info,
5444 processing_current_namespace, cp_is_anonymous,
5445 cp_add_using_directive, cp_initialize_namespace,
5446 cp_finalize_namespace, cp_set_block_scope,
5447 cp_scan_for_anonymous_namespaces.
5448 * cp-namespace.c: New file.
5449 * cp-support.c: Update copyright.
5450 Include ctype.h, gdb_assert.h, gdbcmd.h.
5451 New variable maint_cplus_cmd_list.
5452 (cp_find_first_component): New function.
5453 (cp_entire_prefix_len, maint_cplus_command)
5454 (first_component_command, _initialize_cp_support): Ditto.
5455 * buildsym.c: Include cp-support.h.
5456 New variable using_list.
5457 (add_symbol_to_list): Check for anonymous namespaces.
5458 (finish_block): Set block's scope.
5459 (start_symtab): Initialize C++ namespace support.
5460 (end_symtab): Finalize C++ namespace support.
5461 * block.h: Add opaque declarations for structs
5462 block_namespace_info, using_direct, and obstack.
5463 Add declarations for block_set_scope and block_set_using.
5464 (struct block): Add 'language_specific' member.
5465 (BLOCK_NAMESPACE): New macro.
5466 * block.c: Include gdb_obstack.h and cp-support.h.
5467 (struct block_namespace_info): New struct.
5468 (block_set_scope): New function.
5469 (block_set_using, block_initialize_namespace): Ditto.
5470
5471 2003-04-14 Kevin Buettner <kevinb@redhat.com>
5472
5473 * solib-svr4.c (svr4_have_link_map_offsets): New function.
5474 (locate_base): Return early if there aren't any link map offsets.
5475 (svr4_solib_create_inferior_hook): Warn if shared library support
5476 is unavailable.
5477
5478 2003-04-14 David Carlton <carlton@math.stanford.edu>
5479
5480 * symtab.c (symbol_set_names): Add prefix when storing Java names
5481 in hash table. Fix for PR java/1039.
5482
5483 2003-04-14 David Carlton <carlton@math.stanford.edu>
5484
5485 * symtab.c (symbol_set_names): Rename 'name' arg to
5486 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
5487 * symtab.h: Change 'name' argument in declaration of
5488 symbol_set_names to 'linkage_name'.
5489 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
5490
5491 2003-04-14 Andrew Cagney <cagney@redhat.com>
5492
5493 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
5494 return the fully sign-extended register value.
5495 (get_frame_pointer): Ditto.
5496 (mips_pop_frame): Initialize "proc_desc" after checking for a
5497 dummy frame.
5498
5499 2003-04-14 Andrew Cagney <cagney@redhat.com>
5500
5501 * mips-tdep.c (mips_push_dummy_frame): Delete function.
5502 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
5503 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
5504 (mips_push_register): Delete function.
5505 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
5506 PUSH_FP_REGNUM.
5507
5508 2003-04-14 Jim Blandy <jimb@redhat.com>
5509
5510 * symmisc.c: #include "gdb_regex.h".
5511 (maintenance_list_symtabs, maintenance_list_psymtabs): New
5512 functions.
5513 * maint.c (maintenance_list_command): New function.
5514 (_initialize_maint_cmds): Register the above as commands.
5515 * symtab.h (maintenance_list_symtabs,
5516 maintenance_list_psymtabs): New declarations.
5517 * cli/cli-cmds.c (maintenancelistlist): New variable.
5518 (init_cmd_lists): Initialize it.
5519 * cli/cli-cmds.h (maintenancelistlist): New declaration.
5520 * gdbcmd.h (maintenancelistlist): New declaration.
5521 * Makefile.in (symmisc.o): Update dependencies.
5522
5523 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
5524
5525 * s390-nat.c: Include asm/types.h for addr_t.
5526
5527 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
5528
5529 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
5530 actually incoming type.
5531
5532 2003-04-13 Andrew Cagney <cagney@redhat.com>
5533
5534 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
5535 get_next_frame and get_frame_saved_regs.
5536
5537 2003-04-13 Andrew Cagney <cagney@redhat.com>
5538
5539 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
5540 of gdbarch_num_regs.
5541
5542 2003-04-13 Andrew Cagney <cagney@redhat.com>
5543
5544 * frame.h: Mention what replaced what in "struct frame_info".
5545 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
5546 deprecated_update_frame_base_hack and
5547 deprecated_update_frame_pc_hack.
5548 * hppa-tdep.c: Ditto.
5549
5550 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5551
5552 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
5553 to read_reg and update its comment. Remove regnum member.
5554 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
5555 Don't call read_reg when setting in_reg. Call read_reg to get
5556 the frame base if it's in a register. Return the register number
5557 on the stack instead of in the context. Remove extra arguments
5558 to read_reg.
5559 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
5560 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
5561 the register number on the expression stack.
5562 (needs_frame_read_reg): Remove extra arguments.
5563
5564 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5565
5566 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
5567 made non-static.
5568 (execute_stack_op): All callers updated.
5569 * dwarf2expr.h: Add prototype for dwarf2_read_address.
5570 * dwarf2loc.c (find_location_expression): New function.
5571 (dwarf_expr_frame_base): Call it.
5572 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
5573 (dwarf2_tracepoint_var_ref): New function, broken out from
5574 locexpr_tracepoint_var_ref.
5575 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
5576 Make static.
5577 (loclist_read_variable, loclist_read_needs_frame): New functions.
5578 (loclist_describe_location, loclist_tracepoint_var_ref): New
5579 functions.
5580 (dwarf2_loclist_funcs): New struct location_funcs.
5581 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
5582 (struct dwarf2_locexpr_baton): Add comments.
5583 (dwarf2_loclist_funcs): New extern.
5584 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
5585 base_address and base_known.
5586 (dwarf_loc_buffer): New variable.
5587 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
5588 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
5589 (dwarf2_has_info): Initialize dwarf_loc_offset.
5590 (dwarf2_build_psymtabs): Read in .debug_loc.
5591 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
5592 DWARF_LOC_SIZE.
5593 (psymtab_to_symtab_1): Likewise. Move base address calculation
5594 here, from...
5595 (dwarf2_get_pc_bounds): ... here. Use the base address from
5596 cu_header.
5597 (dwarf2_symbol_mark_computed): Handle location lists.
5598
5599 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5600
5601 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
5602 if the linkage name demangled successfully.
5603
5604 2003-04-13 Mark Kettenis <kettenis@gnu.org>
5605
5606 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
5607 disassmbly_flavour): Removed.
5608
5609 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
5610
5611 2003-04-13 Mark Kettenis <kettenis@gnu.org>
5612
5613 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
5614
5615 2003-04-12 Andrew Cagney <cagney@redhat.com>
5616
5617 * frame.h (struct frame_info): Move definition from here ...
5618 * frame.c (struct frame_info): ... to here.
5619
5620 2003-04-12 Andrew Cagney <cagney@redhat.com>
5621
5622 * gdbthread.h (save_infrun_state): Delete parameter
5623 "prev_func_start".
5624 (struct thread_info): Delete field "prev_func_start".
5625 (load_infrun_state): Ditto.
5626 * thread.c (load_infrun_state, save_infrun_state): Update.
5627 * infrun.c (prev_func_start): Delete variable.
5628 (context_switch, init_wait_for_inferior): Update.
5629 (stop_stepping, keep_going): Update.
5630
5631 2003-04-12 Andrew Cagney <cagney@redhat.com>
5632
5633 * gdbarch.sh: Add missing opaque declarations.
5634 * gdbarch.h: Regnerate.
5635 * symtab.h: Add missing opaque declarations.
5636 * value.h, target.h, symfile.h, stabsread.h: Ditto.
5637 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
5638 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
5639 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
5640 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
5641 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
5642 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
5643 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
5644 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
5645 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
5646 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
5647 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
5648 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
5649
5650 2003-04-11 Andrew Cagney <cagney@redhat.com>
5651
5652 * frame.c (get_frame_id): Return this frame's "id".
5653 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
5654 function start.
5655 (legacy_saved_regs_this_id): Replace function body with
5656 internal-error.
5657 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
5658 FRAME_OBSTACK_ZALLOC.
5659 (create_new_frame): Mark the frame ID as valid.
5660
5661 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
5662
5663 * Makefile.in (libbfd_h): Added missing setting.
5664 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
5665 according to the selected ABI.
5666
5667 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
5668
5669 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
5670
5671 2003-04-11 Andrew Cagney <cagney@redhat.com>
5672
5673 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
5674 SAVED_PC_AFTER_CALL.
5675 * gdbarch.h, gdbarch.c: Regenerate.
5676 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5677 * x86-64-tdep.c (x86_64_init_abi): Update.
5678 * vax-tdep.c (vax_gdbarch_init): Update.
5679 * v850-tdep.c (v850_gdbarch_init): Update.
5680 * sparc-tdep.c (sparc_gdbarch_init): Update.
5681 * sh-tdep.c (sh_gdbarch_init): Update.
5682 * s390-tdep.c (s390_gdbarch_init): Update.
5683 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5684 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5685 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5686 * mips-tdep.c (mips_gdbarch_init): Update.
5687 * mcore-tdep.c (mcore_gdbarch_init): Update.
5688 * m68k-tdep.c (m68k_gdbarch_init): Update.
5689 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5690 * ia64-tdep.c (ia64_gdbarch_init): Update.
5691 (ia64_saved_pc_after_call): Update declaration.
5692 * i386ly-tdep.c (i386lynx_init_abi): Update.
5693 * i386-tdep.c (i386_gdbarch_init): Update.
5694 * hppa-tdep.c (hppa_gdbarch_init): Update.
5695 * h8300-tdep.c (h8300_gdbarch_init): Update.
5696 * frv-tdep.c (frv_gdbarch_init): Update.
5697 * cris-tdep.c (cris_gdbarch_init): Update.
5698 * avr-tdep.c (avr_gdbarch_init): Update.
5699 * arm-tdep.c (arm_gdbarch_init): Update.
5700 * alpha-tdep.c (alpha_gdbarch_init): Update.
5701 * ns32knbsd-nat.c (frame_num_args): Update.
5702 * ns32k-tdep.c (umax_frame_num_args): Update.
5703 * mips-tdep.c (mips_init_frame_pc_first): Update.
5704 * infrun.c (step_over_function): Update.
5705 * i386-linux-tdep.c (skip_hurd_resolver): Update.
5706 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
5707 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
5708 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5709 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5710 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
5711 * arm-linux-tdep.c (skip_hurd_resolver): Update.
5712 * arch-utils.c (init_frame_pc_default): Update.
5713 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
5714 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
5715 declaration.
5716
5717 2003-04-11 Andrew Cagney <cagney@redhat.com>
5718
5719 * i387-tdep.c: Update copyright.
5720 (i387_to_double): Delete function.
5721 (double_to_i387): Delete function.
5722
5723 2003-04-10 Andrew Cagney <cagney@redhat.com>
5724
5725 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
5726 frame's function's address. Simplify.
5727 (d10v_frame_unwind_cache): Check that the frame's function is
5728 non-zero.
5729
5730 2003-04-10 Jim Blandy <jimb@redhat.com>
5731
5732 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
5733 call to set_gdbarch_deprecated_push_arguments.
5734
5735 2003-04-10 Andrew Cagney <cagney@redhat.com>
5736
5737 * frame.c (fprint_frame_id): New function.
5738 (fprint_frame_type, fprint_frame): New function.
5739 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
5740 (create_sentinel_frame, get_frame_id): Ditto.
5741 (frame_id_p, frame_id_eq): Ditto.
5742 (frame_id_inner, create_new_frame): Ditto.
5743 (legacy_get_prev_frame, get_prev_frame): Ditto.
5744 (deprecated_update_frame_pc_hack): Ditto.
5745 (frame_register_unwind): Ditto.
5746 (deprecated_update_frame_base_hack): Ditto.
5747
5748 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
5749
5750 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
5751 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
5752 frame_chain function.
5753 * Makefile.in: Add dependencies due to above change.
5754
5755 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
5756
5757 * blockframe.c (legacy_frame_chain_valid): Move call to
5758 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
5759 inside_entry_file.
5760
5761 2003-04-09 Andrew Cagney <cagney@redhat.com>
5762
5763 * frame.h (struct frame_id): Replace "pc" and "base" with
5764 "stack_addr" and "code_addr". Update comments.
5765 (frame_id_build): Update parameter names and comment.
5766 (struct frame_info): Replace "id_p" and "id" with "this_id".
5767 * dummy-frame.c (dummy_frame_this_id): Update.
5768 * breakpoint.c (print_one_breakpoint): Update.
5769 * frame.c (get_frame_id): Update.
5770 (get_frame_base, frame_id_build): Update.
5771 (create_sentinel_frame, legacy_get_prev_frame): Update.
5772 (deprecated_update_frame_base_hack): Update.
5773 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
5774 (frame_id_inner): Ditto.
5775
5776 2003-04-09 Andrew Cagney <cagney@redhat.com>
5777
5778 * defs.h (gdb_print_host_address): Make "addr" parameter a
5779 pointer constant.
5780 * utils.c (gdb_print_host_address): Update.
5781
5782 2003-04-09 Kevin Buettner <kevinb@redhat.com>
5783
5784 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
5785 register number for R0 is 0.
5786
5787 2003-04-09 J. Brobecker <brobecker@gnat.com>
5788
5789 * frame.h (struct gdbarch): Add opaque structure definition
5790 to avoid a compilation warning on LynxOS 4.0.
5791
5792 2003-04-09 Andrew Cagney <cagney@redhat.com>
5793
5794 * frame.h (struct frame_info): Delete field "pc". Replace
5795 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
5796 structure.
5797 * frame.c (frame_pc_unwind): Update.
5798 (create_sentinel_frame): Do not set "pc".
5799 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
5800 (get_frame_pc): Call frame_pc_unwind.
5801 (deprecated_update_frame_pc_hack): Update.
5802 (create_new_frame): Use "pc" not "->pc".
5803
5804 2003-04-09 Andrew Cagney <cagney@redhat.com>
5805
5806 * frame.c (get_frame_id): Eliminate code updating "frame".
5807 (legacy_get_prev_frame): Ditto.
5808 (get_frame_base): Return id.base directly.
5809 (deprecated_update_frame_base_hack): Update "id.base".
5810 * frame.h (struct frame_info): Delete field "frame".
5811
5812 2003-04-09 Andrew Cagney <cagney@redhat.com>
5813
5814 * NEWS: Mention that the "Sequent family" is obsolete.
5815 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
5816 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
5817 * configure.host: Obsolete i[3456]86-sequent-bsd*,
5818 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
5819 * config/i386/tm-ptx4.h: Obsolete file.
5820 * config/i386/tm-ptx.h: Obsolete file.
5821 * symm-tdep.c: Obsolete file.
5822 * config/i386/symmetry.mt: Obsolete file.
5823 * config/i386/tm-symmetry.h: Obsolete file.
5824 * symm-nat.c: Obsolete file.
5825 * config/i386/nm-symmetry.h: Obsolete file.
5826 * config/i386/xm-symmetry.h: Obsolete file.
5827 * config/i386/symmetry.mh: Obsolete file.
5828 * config/i386/nm-ptx4.h: Obsolete file.
5829 * config/i386/ptx4.mh: Obsolete file.
5830 * config/i386/ptx.mt: Obsolete file.
5831 * config/i386/ptx.mh: Obsolete file.
5832 * config/i386/xm-ptx4.h: Obsolete file.
5833 * config/i386/xm-ptx.h: Obsolete file.
5834
5835 2003-04-09 Andrew Cagney <cagney@redhat.com>
5836
5837 Obsolete mips*-*-mach3*.
5838 * NEWS: Mention that mips*-*-mach3* is obsolete.
5839 * m3-nat.c: Obsolete file.
5840 * config/nm-m3.h: Obsolete file.
5841 * config/mips/tm-mipsm3.h: Obsolete file.
5842 * config/mips/mipsm3.mt: Obsolete file.
5843 * config/mips/mipsm3.mh: Obsolete file.
5844 * config/mips/xm-mipsm3.h: Obsolete file.
5845 * mipsm3-nat.c: Obsolete file.
5846 * configure.host: Obsolete mips-dec-mach3*.
5847 * configure.tgt: Obsolete mips*-*-mach3*.
5848
5849 2003-04-09 Andrew Cagney <cagney@redhat.com>
5850
5851 * doublest.h: Update copyright.
5852 (deprecated_store_floating, deprecated_extract_floating): Rename
5853 store_floating and extract_floating. Update comments.
5854 * doublest.c: Update copyright.
5855 (extract_floating_by_length): Replace extract_floating.
5856 (store_floating_by_length): Replace store_floating.
5857 (deprecated_extract_floating): New function.
5858 (deprecated_store_floating): New function.
5859 (extract_typed_floating): Call extract_floating_by_length.
5860 (store_typed_floating): Call store_floating_by_length.
5861 * x86-64-tdep.c (x86_64_store_return_value): Update.
5862 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
5863 (sh64_extract_return_value): Update.
5864 (sh_sh4_register_convert_to_virtual): Update.
5865 (sh_sh64_register_convert_to_virtual): Update.
5866 (sh_sh4_register_convert_to_raw): Update.
5867 (sh_sh64_register_convert_to_raw): Update.
5868 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
5869 (rs6000_register_convert_to_raw): Update.
5870 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
5871 (ia64_register_convert_to_raw): Update.
5872 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
5873 (REGISTER_CONVERT_TO_VIRTUAL): Update.
5874 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
5875 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
5876 (alpha_register_convert_to_raw): Update.
5877
5878 2003-04-08 Andrew Cagney <cagney@redhat.com>
5879
5880 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
5881 * gdbarch.h, gdbarch.c: Re-generate.
5882 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
5883 (d10v_gdbarch_init): Do not set saved_pc_after_call.
5884 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
5885 conditionally, use frame_pc_unwind as an alternative. Add
5886 comments.
5887 * arch-utils.c (init_frame_pc_default): Only call
5888 SAVED_PC_AFTER_CALL when available.
5889
5890 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
5891
5892 * infrun.c (stop_soon): Rename from stop_soon_quietly.
5893 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
5894 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
5895 (start_remote): Ditto.
5896 (handle_inferior_event): Ditto.
5897 (save_inferior_status): Ditto.
5898 (restore_inferior_status): Ditto.
5899 * infcmd.c (attach_command): Ditto.
5900 * fork-child.c (startup_inferior): Ditto.
5901 * inferior.h (stop_soon): Rename from stop_soon_quietly.
5902 * alpha-tdep.c (heuristic_proc_start): Ditto.
5903 * mips-tdep.c (heuristic_proc_start): Ditto.
5904 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
5905 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
5906 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
5907 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
5908 * remote-vx.c (vx_create_inferior): Ditto.
5909
5910 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
5911
5912 * infrun.c (stop_soon_quietly): Make it an enum, to better
5913 override the default behavior of handle_inferior_event.
5914 (clear_proceed_status): Update uses of stop_soon_quietly to
5915 reflect that it is now an enum.
5916 (start_remote): Ditto.
5917 (handle_inferior_event): Change logic a bit if stop_soon_quietly
5918 is set to handle the new GNU/Linux kernel behavior for
5919 attach/sigstop. Update uses of stop_soon_quietly.
5920 * inferior.h (enum stop_kind): New enum.
5921 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
5922 Reset normal handle_inferior_event behavior, afterwards.
5923 * fork-child.c (startup_inferior): Update.
5924 * alpha-tdep.c (heuristic_proc_start): Update.
5925 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
5926 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
5927 * solib-osf.c (osf_solib_create_inferior_hook): Update.
5928 * solib-irix.c (irix_solib_create_inferior_hook): Update.
5929 * remote-vx.c (vx_create_inferior): Update.
5930 * mips-tdep.c (heuristic_proc_start): Update.
5931
5932 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
5933
5934 * disasm.c (dump_insns): Move variables inside loop, or they will
5935 be freed more than once, causing wild memory corruptions.
5936 (gdb_disassembly): Look for the substring "-thread",
5937 instead of "-threads" in the target name, to make sure to find
5938 the 'multi-thread' target. Also, make sure we do the right thing
5939 with the "core" target.
5940
5941 2003-04-07 Kevin Buettner <kevinb@redhat.com>
5942
5943 * mips-tdep.c (mips_print_fp_register): New function, created from
5944 do_fp_register_row(). Registers are now (also) printed as hex.
5945 Only one register is printed per row.
5946 (mips_print_register, do_fp_register_row): Print floating point
5947 registers with mips_print_fp_register().
5948
5949 2003-04-06 Andrew Cagney <cagney@redhat.com>
5950
5951 * valprint.h (inspect_it): Add extern declaration.
5952 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
5953 (selectors_info, classes_info): Ditto.
5954 (find_objc_msgcall): Fix indentation.
5955 (objc_printstr): Delete extern declarations.
5956
5957 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
5958
5959 2003-04-06 Andrew Cagney <cagney@redhat.com>
5960
5961 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
5962 Update comment.
5963 * frame.c (legacy_saved_regs_this_id): Update.
5964 (legacy_get_prev_frame): Update.
5965 * xstormy16-tdep.c: Update comment.
5966 * sparc-tdep.c (sparc_frame_chain): Update comment.
5967 * blockframe.c (legacy_frame_chain_valid): Update.
5968
5969 2003-04-06 Andrew Cagney <cagney@redhat.com>
5970
5971 * valprint.c (val_print_type_code_int): Delete #ifdef
5972 PRINT_TYPELESS_INTEGER code.
5973
5974 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
5975 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
5976 multi-arch definition.
5977 * gdbarch.h: Re-generate.
5978
5979 2003-04-05 Andrew Cagney <cagney@redhat.com>
5980
5981 Eliminate FRAME_FIND_SAVED_REGS.
5982 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
5983 Change FSR parameter to a pointer.
5984 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
5985 Assume FSR parameter is a pointer.
5986 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
5987 Make fsr a pointer.
5988 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
5989 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
5990 saved_regs a pointer.
5991 (hppa_frame_saved_pc): Ditto.
5992 (find_dummy_frame_regs): Make frame_saved_regs a pointer
5993 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
5994 pointer.
5995 (restore_pc_queue): Make fsr a pointer.
5996 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
5997 (hppa_frame_chain): Make saved_regs a pointer, call
5998 hppa_frame_init_saved_regs.
5999 * sparc-tdep.c: Include "gdb_assert.h".
6000 (sparc_frame_find_saved_regs): Replace internal_error with
6001 gdb_assert.
6002 * remote-vxsparc.c (vx_read_register): Delete reference to
6003 FRAME_FIND_SAVED_REGS.
6004 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6005 * gdbarch.h: Regenerate.
6006 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6007 (deprecated_get_frame_saved_regs): Delete declaration.
6008 (struct frame_saved_regs): Delete definition.
6009 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6010 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6011 (hppa_frame_find_saved_regs): Delete declaration.
6012 (FRAME_FIND_SAVED_REGS): Delete macro.
6013 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6014 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6015 FRAME_FIND_SAVED_REGS in comment.
6016
6017 2003-04-05 Andrew Cagney <cagney@redhat.com>
6018
6019 * frame.c (frame_func_unwind, get_frame_func): New functions.
6020 * frame.h (get_frame_func, frame_func_unwind): Declare.
6021 (struct frame_info): Add field "prev_func" for caching the
6022 previous frame's function address.
6023 * arm-tdep.c (arm_frameless_function_invocation): Combine
6024 get_pc_function_start and get_frame_pc into get_frame_func.
6025 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6026 (sh64_nofp_frame_init_saved_regs): Ditto.
6027 * s390-tdep.c (s390_function_start): Ditto.
6028 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6029 (rs6000_frameless_function_invocation): Ditto.
6030 (rs6000_frame_saved_pc): Ditto.
6031 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6032 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6033 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6034 (i386_frame_init_saved_regs): Ditto.
6035 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6036 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6037 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6038 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6039 * blockframe.c (frameless_look_for_prologue): Ditto.
6040
6041 2003-04-05 Andrew Cagney <cagney@redhat.com>
6042
6043 * frame.c (legacy_get_prev_frame): Link prev to next at the
6044 function start. Update comments.
6045
6046 2003-04-05 Andrew Cagney <cagney@redhat.com>
6047
6048 * frame.c (get_frame_id): Update comment.
6049 (legacy_get_prev_frame): Update comment.
6050 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6051 * gdbarch.h: Regenerate.
6052 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6053 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6054
6055 2003-04-05 Andrew Cagney <cagney@redhat.com>
6056
6057 * stack.c (print_frame_info): Use get_frame_pc.
6058
6059 2003-04-04 Andrew Cagney <cagney@redhat.com>
6060
6061 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6062 the frame's type from the unwinder.
6063 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6064 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6065 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6066 (get_frame_base_address): Use get_frame_type.
6067 (get_frame_locals_address, get_frame_args_address): Ditto.
6068 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6069 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6070 (struct frame_info): Add comment explaining why the frame contains
6071 a "type" field.
6072 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6073 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6074 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6075 NORMAL_FRAME.
6076 * frame-unwind.h: Include "frame.h".
6077 (struct frame_unwind): Add "type" field.
6078 * Makefile.in (frame_unwind_h): Add $(frame_h).
6079
6080 2003-04-04 Andrew Cagney <cagney@redhat.com>
6081
6082 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6083 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6084 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6085 get_frame_base.
6086 (d10v_unwind_dummy_id): Use frame_id_build.
6087 * frame.c (find_frame_sal): Use get_frame_pc.
6088 (create_new_frame): Use deprecated_update_frame_pc_hack and
6089 deprecated_update_frame_base_hack.
6090 (create_sentinel_frame): Add comment about ->pc going away.
6091 (get_prev_frame): Add comment about ->pc going away.
6092 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6093 frame_id_build, deprecated_update_frame_pc_hack and
6094 deprecated_update_frame_base_hack.
6095 (select_frame): Use get_frame_pc.
6096 (legacy_saved_regs_this_id): Use frame_id_build.
6097
6098 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
6099
6100 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6101 signed integer case.
6102 (classify_argument): Handle enumerations and references.
6103
6104 2003-04-04 Andrew Cagney <cagney@redhat.com>
6105
6106 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6107 ID to NULL.
6108
6109 2003-04-01 Adam Fedor <fedor@gnu.org>
6110
6111 * gdb/objc-lang.c (selectors_info): Replace calls to
6112 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6113 SYMBOL_NATURAL_NAME.
6114 (classes_info, find_methods): Likewise.
6115
6116 2003-04-03 Kevin Buettner <kevinb@redhat.com>
6117
6118 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6119 ``mach'' to the value determined by bfd_default_set_arch_mach().
6120
6121 2003-04-02 Bob Rossi <bob_rossi@cox.net>
6122
6123 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6124 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6125 (mi-cmd-file.o): Update dependencies.
6126
6127 2003-04-01 Kevin Buettner <kevinb@redhat.com>
6128
6129 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6130 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6131
6132 2003-04-01 Adam Fedor <fedor@gnu.org>
6133
6134 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6135 * language.h (struct language_defn): Add la_demangle.
6136 (language_demangle): Declare.
6137 * language.c (language_demangle): New function.
6138 (unk_lang_demangle): Likewise.
6139 (unknown_language_defn, auto_language_defn, local_language_defn):
6140 Add ukn_lang_demangle.
6141 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6142 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6143 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6144 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6145 * jv-lang.c (java_demangle): New function
6146 (java_language_defn): Use it for la_demangle element.
6147 * objc-lang.c (objc_demangle): Add options argument
6148 (objc_language_defn): Use objc_demangle for la_demangle element.
6149 * maint.c (maintenance_demangle): Replace switch with
6150 call to language_demangle.
6151 * utils.c (fprintf_symbol_filtered): Likewise.
6152
6153 2003-04-01 Andrew Cagney <cagney@redhat.com>
6154
6155 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6156 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6157 PRINT_TYPELESS_INTEGER.
6158 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6159 PUSH_RETURN_ADDRESS.
6160
6161 2003-04-01 Andrew Cagney <cagney@redhat.com>
6162
6163 * Makefile.in (d10v-tdep.o): Update dependencies.
6164 * d10v-tdep.c: Include "frame-base.h".
6165 (d10v_frame_unwind): Make constant.
6166 (d10v_frame_base_address): New function.
6167 (d10v_frame_base): New variable.
6168 (d10v_gdbarch_init): Set frame_base default.
6169 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6170 comment for base.
6171 (d10v_frame_unwind_cache): Set and use "prev_sp".
6172 (d10v_frame_this_id): Use the previous frame's inner most stack
6173 address and this frame's func address for the frame ID. Use
6174 frame_id_build. Don't analyze beyond the current instruction.
6175
6176 2003-04-01 Andrew Cagney <cagney@redhat.com>
6177
6178 * frame.h (get_frame_locals_address, get_frame_args_address):
6179 Refer to the base address, instead of the address of the first
6180 local or parameter.
6181
6182 2003-04-01 Andrew Cagney <cagney@redhat.com>
6183
6184 Add frame debug info addresses:
6185 * frame-base.c: New file.
6186 * frame-base.h: New file.
6187 * frame.h (struct frame_base): Add opaque declaration.
6188 (get_frame_base): Update comment.
6189 (get_frame_base_address): Declare.
6190 (get_frame_locals_address): Declare.
6191 (get_frame_args_address): Declare.
6192 (struct frame_info): Add "base" and "base_cache". Update
6193 comments on the unwinder.
6194 * frame.c: Include "frame-base.h".
6195 (get_frame_locals_address): New function.
6196 (get_frame_base_address): New function.
6197 (get_frame_args_address): New function.
6198 * findvar.c (read_var_value): Use get_frame_locals_address and
6199 get_frame_args_address.
6200 * stack.c (frame_info): Use get_frame_locals_address and
6201 get_frame_args_address.
6202 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6203 moved to "frame-base.c".
6204 * printcmd.c (print_frame_nameless_args): Ditto.
6205 * symtab.h (address_class): Update comments.
6206 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6207 get_frame_base_address.
6208 * dwarf2expr.c (execute_stack_op): Ditto.
6209 * Makefile.in (frame_base_h): Define.
6210 (frame.o): Update dependencies.
6211 (frame-base.o): Add dependencies.
6212 (SFILES): Add frame-base.c.
6213 (COMMON_OBS): Add frame-base.o.
6214
6215 2003-04-01 Andrew Cagney <cagney@redhat.com>
6216
6217 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6218 CALL_DUMMY_LENGTH): Ditto.
6219 * gdbarch.c: Re-generate.
6220 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6221 (CALL_DUMMY_LENGTH): Delete macro.
6222 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6223 * arm-tdep.c (arm_gdbarch_init): Ditto.
6224 * avr-tdep.c (avr_gdbarch_init): Ditto.
6225 * cris-tdep.c (cris_gdbarch_init): Ditto.
6226 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6227 * frv-tdep.c (frv_gdbarch_init): Ditto.
6228 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6229 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6230 * i386-tdep.c (i386_gdbarch_init): Ditto.
6231 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6232 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6233 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6234 * mips-tdep.c (mips_gdbarch_init): Ditto.
6235 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6236 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6237 * s390-tdep.c (s390_gdbarch_init): Ditto.
6238 * sh-tdep.c (sh_gdbarch_init): Ditto.
6239 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6240 * v850-tdep.c (v850_gdbarch_init): Ditto.
6241 * vax-tdep.c (vax_gdbarch_init): Ditto.
6242 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6243
6244 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
6245
6246 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6247
6248 2003-04-01 Andrew Cagney <cagney@redhat.com>
6249
6250 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6251 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6252 * gdbarch.h, gdbarch.c: Re-generate.
6253 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6254 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6255 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6256 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6257 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6258 * infcmd.c (run_stack_dummy): Simplify assuming
6259 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6260 * infrun.c (handle_inferior_event): Ditto.
6261 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6262 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6263 * arm-tdep.c (arm_gdbarch_init): Ditto.
6264 * avr-tdep.c (avr_gdbarch_init): Ditto.
6265 * cris-tdep.c (cris_gdbarch_init): Ditto.
6266 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6267 * frv-tdep.c (frv_gdbarch_init): Ditto.
6268 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6269 * i386-tdep.c (i386_gdbarch_init): Ditto.
6270 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6271 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6272 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6273 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6274 * mips-tdep.c (mips_gdbarch_init): Ditto.
6275 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6276 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6277 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6278 * s390-tdep.c (s390_gdbarch_init): Ditto.
6279 * sh-tdep.c (sh_gdbarch_init): Ditto.
6280 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6281 * v850-tdep.c (v850_gdbarch_init): Ditto.
6282 * vax-tdep.c (vax_gdbarch_init): Ditto.
6283 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6284
6285 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
6286
6287 * symfile.c (symfile_relocate_debug_section): Update call to
6288 bfd_simple_get_relocated_section_contents.
6289
6290 2003-03-31 Andrew Cagney <cagney@redhat.com>
6291
6292 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6293 * gdbarch.h, gdbarch.c: Regenerate.
6294 * inferior.h (FIX_CALL_DUMMY): Delete macro.
6295 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
6296 available.
6297 * frame.h (generic_fix_call_dummy): Delete declaration.
6298 * dummy-frame.h: Update comment.
6299 * dummy-frame.c (generic_fix_call_dummy): Delete function.
6300 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6301 fix_call_dummy.
6302 * sh-tdep.c (sh_gdbarch_init): Ditto.
6303 * s390-tdep.c (s390_gdbarch_init): Ditto.
6304 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6305 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6306 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6307 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6308 * i386-tdep.c (i386_gdbarch_init): Ditto.
6309 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6310 * frv-tdep.c (frv_gdbarch_init): Ditto.
6311 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6312 * cris-tdep.c (cris_gdbarch_init): Ditto.
6313 * avr-tdep.c (avr_gdbarch_init): Ditto.
6314 * arm-tdep.c (arm_gdbarch_init): Ditto.
6315
6316 2003-03-31 J. Brobecker <brobecker@gnat.com>
6317
6318 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
6319 (INIT_FRAME_AP): Likewise.
6320 (EXTRA_FRAME_INFO): Likewise.
6321
6322 2003-03-31 Andrew Cagney <cagney@redhat.com>
6323
6324 * gdbarch.sh: Include "symfile.h".
6325 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
6326 * gdbarch.h, gdbarch.c: Re-generate.
6327 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
6328 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6329 call_dummy_address, the default is at entry_point_address.
6330 * v850-tdep.c (v850_gdbarch_init): Ditto.
6331 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6332 * sh-tdep.c (sh_gdbarch_init): Ditto.
6333 * s390-tdep.c (s390_gdbarch_init): Ditto.
6334 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6335 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6336 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6337 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6338 * i386-tdep.c (i386_gdbarch_init): Ditto.
6339 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6340 * frv-tdep.c (frv_gdbarch_init): Ditto.
6341 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6342 * cris-tdep.c (cris_gdbarch_init): Ditto.
6343 * arm-tdep.c (arm_gdbarch_init): Ditto.
6344
6345 2003-03-31 Andrew Cagney <cagney@redhat.com>
6346
6347 * gdbarch.sh (CALL_DUMMY_P): Delete.
6348 * gdbarch.h, gdbarch.c: Re-generate.
6349 * inferior.h (CALL_DUMMY_P): Delete macro.
6350 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6351 * vax-tdep.c (vax_gdbarch_init): Update.
6352 * v850-tdep.c (v850_gdbarch_init): Update.
6353 * sparc-tdep.c (sparc_gdbarch_init): Update.
6354 * sh-tdep.c (sh_gdbarch_init): Update.
6355 * s390-tdep.c (s390_gdbarch_init): Update.
6356 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6357 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6358 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6359 * mips-tdep.c (mips_gdbarch_init): Update.
6360 * mcore-tdep.c (mcore_gdbarch_init): Update.
6361 * m68k-tdep.c (m68k_gdbarch_init): Update.
6362 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6363 * ia64-tdep.c (ia64_gdbarch_init): Update.
6364 * i386-tdep.c (i386_gdbarch_init): Update.
6365 * h8300-tdep.c (h8300_gdbarch_init): Update.
6366 * frv-tdep.c (frv_gdbarch_init): Update.
6367 * d10v-tdep.c (d10v_gdbarch_init): Update.
6368 * cris-tdep.c (cris_gdbarch_init): Update.
6369 * breakpoint.c (deprecated_frame_in_dummy): Update.
6370 * avr-tdep.c (avr_gdbarch_init): Update.
6371 * alpha-tdep.c (alpha_gdbarch_init): Update.
6372 * arm-tdep.c (arm_gdbarch_init): Update.
6373 * dummy-frame.c (dummy_frame_this_id): Update comments.
6374 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
6375 * frame.c (legacy_get_prev_frame): Ditto.
6376 * valops.c (call_function_by_hand): Delete function.
6377 (hand_function_call): Rename to call_function_by_hand
6378
6379 2003-03-30 Andrew Cagney <cagney@redhat.com>
6380
6381 2002-11-10 Klee Dienes <kdienes@apple.com>
6382 * value.h (struct value): Update comment.
6383
6384 2003-03-30 Andrew Cagney <cagney@redhat.com>
6385
6386 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
6387 D10V_FP_REGNUM.
6388 (d10v_gdbarch_init): Do not set fp_regnum.
6389
6390 * frame.c (get_frame_base): Force ID initialization.
6391 (get_prev_frame): Move computation of the frame ID from here ...
6392 (get_frame_id): ... to here.
6393 (legacy_get_prev_frame): Mark the frame ID as valid.
6394 * frame.h (struct frame_info): Add field "id_p".
6395
6396 2003-03-30 Mark Kettenis <kettenis@gnu.org>
6397
6398 * i386-tdep.c (i386_store_struct_return): Removed.
6399 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
6400
6401 2003-03-30 Andrew Cagney <cagney@redhat.com>
6402
6403 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
6404 * gdbarch.h, gdbarch.c: Regenerate.
6405 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
6406 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6407 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6408 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6409 * i386-tdep.c (i386_gdbarch_init): Ditto.
6410 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6411 * cris-tdep.c (cris_gdbarch_init): Ditto.
6412 * vax-tdep.c (vax_gdbarch_init): Ditto.
6413 * s390-tdep.c (s390_gdbarch_init): Ditto.
6414 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6415 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6416 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6417 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
6418 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6419 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
6420 * sparc-tdep.c (sparc_gdbarch_init): Update.
6421 * sh-tdep.c (sh_gdbarch_init): Update.
6422 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6423 * mips-tdep.c (mips_gdbarch_init): Update.
6424 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6425 * ia64-tdep.c (ia64_gdbarch_init): Update.
6426 * frv-tdep.c (frv_gdbarch_init): Update.
6427 * avr-tdep.c (avr_gdbarch_init): Update.
6428 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
6429 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
6430 instead of when push_dummy_call is not available.
6431
6432 2003-03-30 Andrew Cagney <cagney@redhat.com>
6433
6434 * infttrace.c: Include "gdbthread.h".
6435 (parent_attach_all): Fix function signature.
6436 (call_ptrace): Update call.
6437 * Makefile.in (infttrace.o): Update dependencies.
6438
6439 2003-03-30 Andrew Cagney <cagney@redhat.com>
6440
6441 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
6442 PUSH_RETURN_ADDRESS.
6443 * gdbarch.h, gdbarch.c: Regenerate.
6444 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6445 * x86-64-tdep.c (x86_64_init_abi): Update.
6446 * v850-tdep.c (v850_gdbarch_init): Update.
6447 * sparc-tdep.c (sparc_gdbarch_init): Update.
6448 * sh-tdep.c (sh_gdbarch_init): Update.
6449 * s390-tdep.c (s390_gdbarch_init): Update.
6450 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6451 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6452 * mips-tdep.c (mips_gdbarch_init): Update.
6453 * mcore-tdep.c (mcore_gdbarch_init): Update.
6454 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6455 * ia64-tdep.c (ia64_gdbarch_init): Update.
6456 * i386-tdep.c (i386_gdbarch_init): Update.
6457 * h8300-tdep.c (h8300_gdbarch_init): Update.
6458 * frv-tdep.c (frv_gdbarch_init): Update.
6459 * cris-tdep.c (cris_gdbarch_init): Update.
6460 * avr-tdep.c (avr_gdbarch_init): Update.
6461 * arm-tdep.c (arm_gdbarch_init): Update.
6462 * valops.c (hand_function_call): Update.
6463
6464 2003-03-29 Andrew Cagney <cagney@redhat.com>
6465
6466 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
6467 sizeof_call_dummy_words.
6468 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
6469 define.
6470 * gdbarch.h: Regenerate.
6471
6472 2003-03-29 Andrew Cagney <cagney@redhat.com>
6473
6474 * infttrace.h: New file.
6475 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
6476 (hpread_get_textlow): Detect an uninitialized dn_bufp.
6477 (hpread_read_doc_function_type): Detect an initialized type1.
6478 (hpread_quick_traverse): Initialize mod_name_string.
6479 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
6480 (som_solib_get_solib_by_pc): Declare.
6481 (so_lib_thread_start_addr): Declare.
6482 (no_shared_libraries): Declare.
6483 * somread.c (init_import_symbols): Make static. Add forward
6484 declaration.
6485 * config/pa/nm-hppah.h: Include "infttrace.h" for
6486 parent_attach_all.
6487 (hppa_insert_hw_watchpoint): Declare.
6488 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
6489 * hppah-nat.c: Include "gdb_string.h".
6490 (parent_attach_all): Delete extern declaration, moved to
6491 "infttrace.h".
6492 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
6493 int.
6494 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
6495 * Makefile.in (infttrace_h): Define.
6496 (hpread.o): Update dependencies.
6497 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
6498 * hppa-hpux-tdep.c: Include "gdb_string.h".
6499 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
6500 * infrun.c (handle_inferior_event): Always initialize
6501 stepped_after_stopped_by_watchpoint. Add default and remove
6502 fallthrough in switch statement.
6503 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
6504 parameter to int.
6505 (hppa_remove_hw_watchpoint): Ditto.
6506
6507 2003-03-29 Andrew Cagney <cagney@redhat.com>
6508
6509 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
6510 offset.
6511
6512 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
6513
6514 * arm-tdep.c (arm_push_arguments): Delete.
6515 (struct stack_item): New type.
6516 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
6517 (arm_store_struct_return): Delte.
6518 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
6519 arm_push_arguments or arm_store_struct_return.
6520
6521 2003-03-28 Andrew Cagney <cagney@redhat.com>
6522
6523 * Makefile.in (d10v-tdep.o): Update dependencies.
6524 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
6525 * d10v-tdep.c: Include "remote.h".
6526 (target_resume_hook): Delete extern declaration.
6527 (target_wait_loop_hook): Ditto.
6528 (tdisassemble_command): Eliminate assignment in "if" conditional.
6529 (d10v_ts2_register_sim_regno): Eliminate call to
6530 legacy_register_sim_regno.
6531 (d10v_ts3_register_sim_regno): Ditto.
6532
6533 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
6534
6535 * thread.c: Reindented.
6536 * lin-lwp.c: Ditto.
6537 * linux-proc.c: Ditto.
6538
6539 2003-03-28 Bob Rossi <bob_rossi@cox.net>
6540
6541 * MAINTAINERS (write after approval): Add myself.
6542
6543 2003-03-27 Theodore A. Roth <troth@openavr.org>
6544
6545 * objc-exp.y: Add missing semi-colons.
6546
6547 2003-03-27 Andrew Cagney <cagney@redhat.com>
6548
6549 * regcache.c (write_sp): Delete function and references.
6550 * inferior.h (write_sp): Delete declaration.
6551 * valops.c (hand_function_call): Replace write_sp with
6552 TARGET_WRITE_SP.
6553 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
6554 (sparc_pop_frame): Ditto.
6555
6556 2003-03-27 Andrew Cagney <cagney@redhat.com>
6557
6558 * NEWS: Mention removal of support for hppa*-*-bsd* and
6559 hppa*-*-osf* natives, and hppa*-*-pro* target.
6560 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
6561 * config/pa/xm-pa.h: Obsolete file.
6562 * config/pa/xm-hppab.h: Obsolete file.
6563 * config/pa/nm-hppab.h: Obsolete file.
6564 * config/pa/tm-hppab.h: Obsolete file.
6565 * config/pa/tm-hppao.h: Obsolete file.
6566 * config/pa/nm-hppao.h: Obsolete file.
6567 * config/pa/tm-pro.h: Obsolete file.
6568 * config/pa/hppaosf.mt: Obsolete file.
6569 * config/pa/hppaosf.mh: Obsolete file.
6570 * config/pa/hppapro.mt: Obsolete file.
6571 * config/pa/hppabsd.mt: Obsolete file.
6572 * config/pa/hppabsd.mh: Obsolete file.
6573 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
6574 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
6575 hppa*-*-osf*.
6576
6577 2003-03-27 Andrew Cagney <cagney@redhat.com>
6578
6579 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
6580 push_arguments. Don't set push_return_address or write_sp.
6581 (d10v_push_dummy_call): Replace d10v_push_arguments.
6582 (d10v_push_return_address, d10v_write_sp): Delete function,
6583 handled by push_dummy_call.
6584
6585 2003-03-26 Andrew Cagney <cagney@redhat.com>
6586
6587 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
6588 (push_dummy_call): New pure multi-arch replacement with gdbarch,
6589 regcache and dummy_addr parameters.
6590 * gdbarch.h, gdbarch.c: Re-generate.
6591 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
6592 available; assume it will handle stack alignment and return
6593 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
6594 legacy_push_arguments.
6595 (legacy_push_arguments): Rename default_push_arguments.
6596 * value.h (legacy_push_arguments): Rename default_push_arguments.
6597 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
6598 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6599 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6600 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6601 * config/i386/tm-symmetry.h: Update.
6602 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6603 * x86-64-tdep.c (x86_64_init_abi): Update.
6604 * v850-tdep.c (v850_gdbarch_init): Update.
6605 * sparc-tdep.c (sparc_gdbarch_init): Update.
6606 * sh-tdep.c (sh_gdbarch_init): Update.
6607 * s390-tdep.c (s390_gdbarch_init): Update.
6608 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6609 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6610 * mips-tdep.c (mips_gdbarch_init): Update.
6611 * mcore-tdep.c (mcore_gdbarch_init): Update.
6612 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6613 * ia64-tdep.c (ia64_gdbarch_init): Update.
6614 * i386-tdep.c (i386_gdbarch_init): Update.
6615 * hppa-tdep.c (hppa_gdbarch_init): Update.
6616 * h8300-tdep.c (h8300_gdbarch_init): Update.
6617 * frv-tdep.c (frv_gdbarch_init): Update.
6618 * d10v-tdep.c (d10v_gdbarch_init): Update.
6619 * cris-tdep.c (cris_gdbarch_init): Update.
6620 * avr-tdep.c (avr_gdbarch_init): Update.
6621 * arm-tdep.c (arm_gdbarch_init): Update.
6622 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6623 * alpha-tdep.c (alpha_gdbarch_init): Update.
6624
6625 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6626
6627 * signals/signals.c (do_target_signal_to_host): Correct realtime
6628 signal range test.
6629
6630 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6631
6632 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
6633 (struct sal_chain, map_catch_names): Remove.
6634 (catch_exception_command_1): Don't call
6635 handle_gnu_4_16_catch_command.
6636
6637 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6638
6639 From Mark Dettinger <dettinge@de.ibm.com>:
6640 * dwarf2cfi.c (read_2u): Increment pointer by two.
6641
6642 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6643
6644 * signals/signals.c: Fix typos in last change.
6645
6646 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6647
6648 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
6649 not already defined. Use __SIGRTMIN if available.
6650 (target_signal_from_host): Remove SIGRTMIN block.
6651 (do_target_signal_to_host): Remove SIGRTMIN block; check that
6652 the signal is within the realtime range.
6653
6654 2003-03-25 Adam Fedor <fedor@gnu.org>
6655
6656 * Makefile.in (infrun.o): Add $(language_h)
6657 * infrun.c (handle_inferior_event): Use skip_language_trampoline
6658 for language specific trampolines.
6659 * language.h (struct language_defn): Add skip_trampoline.
6660 (skip_language_trampoline): Declare.
6661 * language.c (unk_lang_trampoline, skip_language_trampoline):
6662 New functions.
6663 (unknown_language_defn, auto_language_defn, local_language_defn):
6664 Add ukn_lang_trampoline.
6665 * ada-lang.c (ada_language_defn): Add NULL for language
6666 specific skip_trampoline.
6667 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
6668 scm-lang.c: Likewise.
6669 * objc-lang.c (objc_skip_trampoline): New function.
6670 (objc_language_defn): Add objc_skip_trampoline.
6671
6672 2003-03-25 Andrew Cagney <cagney@redhat.com>
6673
6674 * frame.c (get_prev_frame): Delay validating a frame's ID -
6675 non-NULL, didn't go backwards - until an attempt to unwind it to
6676 the previous frame.
6677
6678 2003-03-25 Andrew Cagney <cagney@redhat.com>
6679
6680 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
6681 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
6682 * gdbarch.h, gdbarch.c: Re-generate.
6683 * config/sparc/tm-sparc.h
6684 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
6685 * sparc-tdep.c (sparc_gdbarch_init): Set
6686 deprecated_extra_stack_alignment_needed.
6687 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
6688 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
6689 extra_stack_alignment_needed.
6690 * v850-tdep.c (v850_gdbarch_init): Ditto.
6691 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6692 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6693 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6694 * cris-tdep.c (cris_gdbarch_init): Ditto.
6695 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6696 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6697
6698 2003-03-25 Andrew Cagney <cagney@redhat.com>
6699
6700 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
6701 STORE_STRUCT_RETURN.
6702 * gdbarch.h, gdbarch.c: Regenerate.
6703 * d10v-tdep.c (d10v_store_struct_return): Delete function.
6704 (d10v_push_arguments): Set the struct return register.
6705 (d10v_gdbarch_init): Update.
6706 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6707 * x86-64-tdep.c (x86_64_init_abi): Update.
6708 * vax-tdep.c (vax_gdbarch_init): Update.
6709 * v850-tdep.c (v850_gdbarch_init): Update.
6710 * sparc-tdep.c (sparc_gdbarch_init): Update.
6711 * sh-tdep.c (sh_gdbarch_init): Update.
6712 * s390-tdep.c (s390_gdbarch_init): Update.
6713 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6714 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6715 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6716 * mips-tdep.c (mips_gdbarch_init): Update.
6717 * mcore-tdep.c (mcore_gdbarch_init): Update.
6718 * m68k-tdep.c (m68k_gdbarch_init): Update.
6719 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6720 * ia64-tdep.c (ia64_gdbarch_init): Update.
6721 * i386-tdep.c (i386_gdbarch_init): Update.
6722 * hppa-tdep.c (hppa_gdbarch_init): Update.
6723 * h8300-tdep.c (h8300_gdbarch_init): Update.
6724 * frv-tdep.c (frv_gdbarch_init): Update.
6725 * cris-tdep.c (cris_gdbarch_init): Update.
6726 * avr-tdep.c (avr_gdbarch_init): Update.
6727 * arm-tdep.c (arm_gdbarch_init): Update.
6728 * alpha-tdep.c (alpha_gdbarch_init): Update.
6729
6730 2003-03-25 Andrew Cagney <cagney@redhat.com>
6731
6732 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
6733 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
6734 CALL_DUMMY_STACK_ADJUST with a predicate variable.
6735 * gdbarch.h, gdbarch.c: Regenerate.
6736 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6737 call_dummy_stack_adjust_p.
6738 * vax-tdep.c (vax_gdbarch_init): Ditto.
6739 * v850-tdep.c (v850_gdbarch_init): Ditto.
6740 * sh-tdep.c (sh_gdbarch_init): Ditto.
6741 * s390-tdep.c (s390_gdbarch_init): Ditto.
6742 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6743 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6744 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6745 * mips-tdep.c (mips_gdbarch_init): Ditto.
6746 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6747 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6748 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6749 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6750 * i386-tdep.c (i386_gdbarch_init): Ditto.
6751 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6752 * frv-tdep.c (frv_gdbarch_init): Ditto.
6753 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6754 * cris-tdep.c (cris_gdbarch_init): Ditto.
6755 * avr-tdep.c (avr_gdbarch_init): Ditto.
6756 * arm-tdep.c (arm_gdbarch_init): Ditto.
6757 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6758 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
6759 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
6760 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
6761 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
6762 call_dummy_stack_adjust_p.
6763 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
6764 (CALL_DUMMY_STACK_ADJUST): Delete macro.
6765 * sparc-tdep.c (sparc32_push_arguments): Update.
6766 * valops.c (hand_function_call): Update.
6767
6768 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
6769
6770 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
6771 set_gdbarch_char_signed.
6772
6773 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
6774
6775 PR cli/548
6776 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
6777
6778 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
6779
6780 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
6781 (_initialize_arm_tdep): Don't set tm_print_insn.
6782
6783 2003-03-24 Adam Fedor <fedor@gnu.org>
6784
6785 * Makefile.in (YYOBJ): Add objc-exp.tab.o
6786 * objc-lang.h: Add multiple inclusion protection.
6787 (start_msglist, add_msglist, end_msglist): Additional declarations.
6788
6789 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
6790
6791 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
6792 value was renamed to ARM_FLOAT_SOFT_FPA.
6793
6794 2003-03-23 Andrew Cagney <cagney@redhat.com>
6795
6796 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
6797 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
6798 * gdbarch.h, gdbarch.c: Regenerate.
6799 * valops.c (hand_function_call): Update.
6800 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
6801 * frame.c (legacy_saved_regs_this_id): Update.
6802 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
6803 * dummy-frame.h: Update.
6804 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
6805 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
6806 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
6807 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
6808 * config/m68k/tm-sun3.h: Update.
6809 * blockframe.c (inside_main_func, frame_chain_valid): Update.
6810 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6811 * x86-64-tdep.c (x86_64_init_abi): Update.
6812 * vax-tdep.c (vax_gdbarch_init): Update.
6813 * v850-tdep.c (v850_gdbarch_init): Update.
6814 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
6815 * sh-tdep.c (sh_gdbarch_init): Update.
6816 * s390-tdep.c (s390_gdbarch_init): Update.
6817 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
6818 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
6819 (frame_get_saved_regs): Update.
6820 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6821 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6822 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6823 * mips-tdep.c (mips_gdbarch_init): Update.
6824 * mcore-tdep.c (mcore_gdbarch_init): Update.
6825 * m68k-tdep.c (m68k_gdbarch_init): Update.
6826 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6827 * ia64-tdep.c (ia64_gdbarch_init): Update.
6828 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
6829 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6830 (i386_interix_back_one_frame): Update.
6831 * hppa-tdep.c (hppa_gdbarch_init): Update.
6832 (hppa_init_extra_frame_info): Update.
6833 * h8300-tdep.c (h8300_gdbarch_init): Update.
6834 * frv-tdep.c (frv_gdbarch_init): Update.
6835 * cris-tdep.c (cris_gdbarch_init): Update.
6836 * avr-tdep.c (avr_gdbarch_init): Update.
6837 * arm-tdep.c (arm_gdbarch_init): Update.
6838 * alpha-tdep.c (alpha_gdbarch_init): Update.
6839
6840 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6841
6842 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
6843 (arm_get_fp_model): Declare.
6844 * arm-tdep.c (fp_model_strings): New string array.
6845 (arm_fp_model, current_fp_model): New variables.
6846 (arm_get_fp_model): New function.
6847 (arm_set_fp): New function.
6848 (set_fp_model_sfunc): New function.
6849 (show_fp_model): New function.
6850 (_initialize_arm_tdep): Add new command to set/show the FPU.
6851 (arm_extract_return_value): Use arm_get_fp_model.
6852 (arm_store_return_value): Likewise.
6853 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
6854 to initialize the floating-point data types.
6855 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
6856 model is FPA.
6857
6858 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6859
6860 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
6861 the current setting of each value.
6862 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
6863 new_set and new_show. Use add_setshow_cmd_full and
6864 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
6865 commands and add new version as subcommands of "set/show arm".
6866
6867 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6868
6869 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
6870 (set_arm_command, show_arm_command): New functions.
6871 (_initialize_arm_tdep): Add them.
6872 (num_disassembly_options): Renamed from num_flavor_options.
6873 (valid_disassembly_styles): Renamed from valid_flavors.
6874 (disassembly_style): Renamed from disassembly_flavor.
6875 (set_disassembly_style_sfunc): Renamed from
6876 set_disassembly_flavor_sfunc.
6877 (set_disassembly_style): Renamed from set_disassembly_flavor.
6878 (arm_othernames): Updated.
6879 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
6880 command. Add "set/show arm disassembly" commands. Deprecate
6881 "othernames" command.
6882
6883 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6884
6885 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
6886 (arm-tdep.o): Depend on elf_arm_h.
6887
6888 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6889
6890 * Makefile.in (coff_internal_h): Define.
6891 (arm-tdep.o): Update dependencies.
6892
6893 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
6894
6895 * arm-tdep.c (prologue_cache): Delete.
6896 (check_prologue_cache, save_prologue_cache): Delete.
6897 (arm_scan_prologue): Don't check or update the prologue_cache.
6898 (arm_gdb_arch_init): Don't initialize it.
6899 (_initialize_arm_tdep): Likewise.
6900
6901 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
6902
6903 * MAINTAINERS (tui): Maintainer of tui code.
6904
6905 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
6906
6907 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
6908 (i386-cygwin-tdep.o): Add dependencies.
6909 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
6910 * i386-cygwin-tdep.c: New file.
6911 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
6912 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
6913
6914 2003-03-20 Andrew Cagney <cagney@redhat.com>
6915
6916 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
6917 (handle_inferior_event): Remove code calling
6918 DYNAMIC_TRAMPOLINE_NEXTPC.
6919
6920 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
6921 already has a full path.
6922
6923 * main.c (gdb_main): Return 1.
6924 (captured_main): Call error to report an invalid interpreter.
6925
6926 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6927 * alpha-osf1-tdep.c: Include "gdb_string.h".
6928
6929 2003-03-19 J. Brobecker <brobecker@gnat.com>
6930
6931 Continuing work to convert the hppa targets to multiarch partial.
6932
6933 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
6934 method, now that hppa_push_dummy_frame has a conformant prototype.
6935 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
6936 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
6937 for the switch to multiarch partial.
6938
6939 2003-03-19 Kevin Buettner <kevinb@redhat.com>
6940
6941 * mdebugread.c (parse_symbol): For stEnd, we're done counting
6942 when iss is issNull.
6943
6944 2003-03-18 Kevin Buettner <kevinb@redhat.com>
6945
6946 * mips-tdep.c (mips_register_name): Fix fencepost error involving
6947 NUM_REGS bounds check.
6948
6949 2003-03-18 Kevin Buettner <kevinb@redhat.com>
6950
6951 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
6952 * mips-tdep.c (gdb_assert.h): Include.
6953 (mips_generic_reg_names, mips_processor_reg_names): Make static.
6954 (mips_register_name): Handle integer registers explicitly. Add
6955 bounds checking.
6956 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
6957 (mips_lsi33k_reg_names): Don't list integer registers; they're
6958 handled by mips_register_name() now.
6959 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
6960 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
6961 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
6962 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
6963 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
6964
6965 2003-03-18 Andrew Cagney <cagney@redhat.com>
6966
6967 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
6968 a void pointer.
6969 * gdbtypes.h (print_scalar_formatted): Update declaration.
6970 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
6971
6972 2003-03-18 J. Brobecker <brobecker@gnat.com>
6973
6974 * infrun.c (observer.h): Add #include.
6975 (normal_stop): Add call to observer_notify_normal_stop.
6976 * Makefile.in (infrun.o): Add dependency on observer.h.
6977
6978 2003-03-18 J. Brobecker <brobecker@gnat.com>
6979
6980 Continuing work to convert the hppa targets to multiarch partial.
6981 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
6982 parameter. Reformat comment.
6983 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
6984 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
6985 to match new profile.
6986
6987 2003-03-18 J. Brobecker <brobecker@gnat.com>
6988
6989 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
6990 appear to be working in any case.
6991
6992 2003-03-18 J. Brobecker <brobecker@gnat.com>
6993
6994 * observer.c (observer_test_first_observer): New static variable.
6995 (observer_test_second_observer): Likewise.
6996 (observer_test_third_observer): Likewise.
6997 (observer_test_first_notification_function): New static function.
6998 (observer_test_second_notification_function): Likewise.
6999 (observer_test_third_notification_function): Likewise.
7000
7001 2003-03-17 J. Brobecker <brobecker@gnat.com>
7002
7003 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7004 * somsolib.c (gdb_assert.h): Likewise.
7005 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7006 (somsolib.o): Likewise.
7007
7008 2003-03-17 Andrew Cagney <cagney@redhat.com>
7009
7010 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7011 BFD. Simplify setting of di.endian.
7012
7013 2003-03-17 Andrew Cagney <cagney@redhat.com>
7014
7015 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7016 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7017
7018 From Elena Zannoni <ezannoni@redhat.com>
7019 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7020 vector and floating-point parameters.
7021 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7022 convention.
7023 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7024
7025 2003-03-17 Fernando Nasser <fnasser@redhat.com>
7026
7027 * MAINTAINERS: Remove my name from several maintainership roles.
7028
7029 2003-03-17 Andrew Cagney <cagney@redhat.com>
7030
7031 Fix frame off-by-one bug.
7032 * frame-unwind.h (frame_this_id_ftype): Replace
7033 frame_unwind_id_ftype.
7034 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7035 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7036 with "prev_register".
7037 * frame-unwind.c (frame_unwind_find_by_pc): Return
7038 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7039 comment.
7040 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7041 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7042 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7043 (dummy_frame_unwind): Update.
7044 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7045 sentinel_frame_register_unwind.
7046 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7047 (sentinel_frame_unwinder): Update.
7048 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7049 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7050 * frame.c (create_sentinel_frame): Update. Initialize
7051 "prologue_cache" instead of "unwind_cache".
7052 (frame_register_unwind): Call this frame's prev_register with the
7053 next frame and this frame's prologue cache.
7054 (get_prev_frame): Simplify. Always call prev frame's this_id with
7055 this frame and prev frame's prologue cache. Document that this
7056 call is shifted one to the left when compared to the
7057 frame_register_unwind call.
7058 (legacy_saved_regs_prev_register): Replace
7059 frame_saved_regs_register_unwind.
7060 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7061 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7062 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7063 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7064 (d10v_frame_unwind): Update.
7065 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7066 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7067 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7068 "saved_regs" with "this_saved_regs".
7069
7070 2003-03-16 Andrew Cagney <cagney@redhat.com>
7071
7072 * frame.c (frame_pop): Don't call target_store_registers. Fix
7073 problem reported by Mark Kettenis.
7074
7075 2003-03-16 Mark Kettenis <kettenis@gnu.org>
7076
7077 * i386-tdep.c (i386_register_type): Renamed from
7078 i386_register_virtual_type. Adjust function signature.
7079 (i386_gdbarch_init): Set register_type instead of
7080 deprecated_max_register_raw_size,
7081 deprecated_max_register_virtual_size and register_virtual_type.
7082
7083 2003-03-14 Andrew Cagney <cagney@redhat.com>
7084
7085 * frame.c (get_prev_frame): When a legacy frame, always call
7086 legacy_get_prev_frame. Simplify unwind code using assumption that
7087 the unwinder is new.
7088 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7089 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7090 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7091
7092 2003-03-14 Andrew Cagney <cagney@redhat.com>
7093
7094 * frame.c (get_saved_register): Delete function.
7095 * frame.h (get_saved_register): Delete declaration.
7096 * xstormy16-tdep.c: Update comment.
7097 * regcache.h: Update comments.
7098 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7099 get_saved_register and extract_address, use
7100 frame_read_unsigned_register.
7101 (sparc_frame_saved_pc): Ditto.
7102 (sparc_get_saved_register): Instead of get_saved_register, use
7103 frame_register.
7104 (sparc_pop_frame): Ditto.
7105 * findvar.c: Update comments.
7106 (value_of_register): Call frame_register instead of
7107 get_saved_register.
7108 (value_from_register): Ditto.
7109 * config/sparc/tm-sparc.h: Update comment.
7110 * breakpoint.c: Update comment.
7111
7112 2003-03-14 Andrew Cagney <cagney@redhat.com>
7113
7114 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7115 GET_SAVED_REGISTER.
7116 * gdbarch.h, gdbarch.c: Re-generate.
7117 * frame.h: Update comments.
7118 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7119 * x86-64-tdep.c (x86_64_init_abi): Update.
7120 * sparc-tdep.c (sparc_gdbarch_init): Update.
7121 * sh-tdep.c (sh_gdbarch_init): Update.
7122 * mips-tdep.c (mips_gdbarch_init): Update.
7123 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7124 * cris-tdep.c (cris_gdbarch_init): Update.
7125 * ia64-tdep.c (ia64_gdbarch_init): Update.
7126 * frame.c (frame_register): Update.
7127 (get_saved_register): Update.
7128 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7129
7130 2003-03-13 Andrew Cagney <cagney@redhat.com>
7131
7132 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7133 * gdbarch.h, gdbarch.c: Regenerate.
7134 * valops.c (hand_function_call): Update comment.
7135 * stack.c (return_command): Update comment.
7136 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7137 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7138 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7139 * x86-64-tdep.c (x86_64_init_abi): Update.
7140 * vax-tdep.c (vax_gdbarch_init): Update.
7141 * v850-tdep.c (v850_gdbarch_init): Update.
7142 * sparc-tdep.c (sparc_gdbarch_init): Update.
7143 * sh-tdep.c (sh_gdbarch_init): Update.
7144 * s390-tdep.c (s390_gdbarch_init): Update.
7145 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7146 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7147 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7148 * mips-tdep.c (mips_gdbarch_init): Update.
7149 * mcore-tdep.c (mcore_gdbarch_init): Update.
7150 * m68k-tdep.c (m68k_gdbarch_init): Update.
7151 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7152 * ia64-tdep.c (ia64_gdbarch_init): Update.
7153 * i386-tdep.c (i386_gdbarch_init): Update.
7154 * hppa-tdep.c (hppa_gdbarch_init): Update.
7155 * h8300-tdep.c (h8300_gdbarch_init): Update.
7156 * frv-tdep.c (frv_gdbarch_init): Update.
7157 * cris-tdep.c (cris_gdbarch_init): Update.
7158 * avr-tdep.c (avr_gdbarch_init): Update.
7159 * arm-tdep.c (arm_gdbarch_init): Update.
7160 * alpha-tdep.c (alpha_gdbarch_init): Update.
7161
7162 2003-03-13 Andrew Cagney <cagney@redhat.com>
7163
7164 * frame.c (legacy_frame_p): New function.
7165 (get_prev_frame): Use legacy_frame_p.
7166 * frame.h (legacy_frame_p): Declare.
7167
7168 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7169
7170 * MAINTAINERS (write after approval): Alphabetically
7171 listing corrected.
7172
7173 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7174
7175 * MAINTAINERS (write after approval): Add myself.
7176
7177 2003-03-12 Andrew Cagney <cagney@redhat.com>
7178
7179 * frame.c (get_prev_frame): Rename the frame parameter to
7180 "this_frame".
7181 (get_next_frame, legacy_get_prev_frame): Ditto.
7182
7183 2003-03-12 Andrew Cagney <cagney@redhat.com>
7184
7185 * frame.c (get_current_frame): Check target_has_registers before
7186 checking target_has_stack.
7187 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7188 instead of deprecated_selected_frame.
7189 * findvar.c (value_of_register): Pass "frame", not
7190 deprecated_selected_frame, to value_of_builtin_reg.
7191
7192 2003-03-12 Andrew Cagney <cagney@redhat.com>
7193
7194 * regcache.c (regcache_cooked_write_signed): New function.
7195 (regcache_cooked_write_unsigned): New function.
7196 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7197 (regcache_cooked_read_signed): Fix regnum in range assertion.
7198 * regcache.h (regcache_cooked_write_signed): Declare.
7199 (regcache_cooked_write_unsigned): Declare.
7200
7201 2003-03-12 Andrew Cagney <cagney@redhat.com>
7202
7203 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7204 * gdbarch.h, gdbarch.c: Re-generate.
7205 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7206 * x86-64-tdep.h: Update.
7207 * x86-64-tdep.c (x86_64_init_abi): Update.
7208 * v850-tdep.c (v850_gdbarch_init): Update.
7209 * sparc-tdep.c (sparc_gdbarch_init): Update.
7210 * sh-tdep.c (sh_gdbarch_init): Update.
7211 * s390-tdep.c (s390_gdbarch_init): Update.
7212 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7213 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7214 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7215 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7216 * mips-tdep.c (mips_gdbarch_init): Update.
7217 * mcore-tdep.c (mcore_gdbarch_init): Update.
7218 * m68k-tdep.c (m68k_gdbarch_init): Update.
7219 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7220 * ia64-tdep.c (ia64_gdbarch_init): Update.
7221 * i386-tdep.c (i386_gdbarch_init): Update.
7222 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7223 * hppa-tdep.c (hppa_gdbarch_init): Update.
7224 * h8300-tdep.c (h8300_gdbarch_init): Update.
7225 * frv-tdep.c (frv_gdbarch_init): Update.
7226 * cris-tdep.c (cris_gdbarch_init): Update.
7227 * avr-tdep.c (avr_gdbarch_init): Update.
7228 * arm-tdep.c (arm_gdbarch_init): Update.
7229 * alpha-tdep.c (alpha_gdbarch_init): Update.
7230 * sh-tdep.c (sh_init_extra_frame_info): Update.
7231 (sh64_init_extra_frame_info): Update.
7232 * ns32knbsd-nat.c (frame_num_args): Update.
7233 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7234 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7235 (xstormy16_frame_chain_valid): Update.
7236 * vax-tdep.c (vax_saved_pc_after_call): Update.
7237 * v850-tdep.c (v850_frame_chain): Update.
7238 (v850_pop_frame): Update.
7239 (v850_init_extra_frame_info): Update.
7240 * sparc-tdep.c (setup_arbitrary_frame): Update.
7241 * ns32k-tdep.c (umax_frame_num_args): Update.
7242 * s390-tdep.c (s390_pop_frame_regular): Update.
7243 * mn10300-tdep.c (mn10300_frame_chain): Update.
7244 (mn10300_pop_frame_regular): Update.
7245 (mn10300_init_extra_frame_info): Update.
7246 * mips-tdep.c (mips_init_frame_pc_first): Update.
7247 (mips_frame_chain): Update.
7248 (mips_pop_frame): Update.
7249 * mcore-tdep.c (mcore_frame_chain): Update.
7250 (mcore_pop_frame): Update.
7251 (mcore_init_extra_frame_info): Update.
7252 * arch-utils.c (init_frame_pc_default): Update.
7253 * m68k-tdep.c (isi_frame_num_args): Update.
7254 (delta68_frame_num_args): Update.
7255 (news_frame_num_args): Update.
7256 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7257 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7258 (alpha_frame_chain): Update.
7259 (alpha_pop_frame): Update.
7260 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7261 (hppa_init_extra_frame_info): Update.
7262 (hppa_frame_chain): Update.
7263 (hppa_frame_chain_valid): Update.
7264 * cris-tdep.c (cris_init_extra_frame_info): Update.
7265 * avr-tdep.c (avr_init_extra_frame_info): Update.
7266 * arm-tdep.c (arm_frame_chain_valid): Update.
7267 (arm_init_extra_frame_info): Update.
7268 (arm_pop_frame): Update.
7269 * frame.c (frame_pc_unwind): Update.
7270 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7271 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7272 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7273 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7274 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7275 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7276
7277 2003-03-12 Andrew Cagney <cagney@redhat.com>
7278
7279 Eliminate the need for POP_FRAME.
7280 * frame.c (do_frame_unwind_register): New function.
7281 (frame_pop): When no POP_FRAME, pop the frame using register
7282 unwind and a scratch regcache.
7283 (frame_saved_regs_pop): Delete function.
7284 (trad_frame_unwinder): Update.
7285 * d10v-tdep.c (d10v_frame_pop): Delete function.
7286 (d10v_frame_unwind): Update.
7287 * sentinel-frame.c (sentinel_frame_pop): Delete function.
7288 (sentinel_frame_unwinder): Update.
7289 * dummy-frame.c (dummy_frame_pop): Delete function.
7290 (dummy_frame_unwind): Update.
7291 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7292 (struct frame_unwind): Update.
7293
7294 2003-03-11 Kevin Buettner <kevinb@redhat.com>
7295
7296 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
7297 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
7298 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
7299 Do range checks on register number obtained from debugging info.
7300 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
7301 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
7302 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
7303 mapping function.
7304 (do_fp_register_row): Fix typo which caused double type to be
7305 used when attempting to unpack a float.
7306
7307 2003-03-11 J. Brobecker <brobecker@gnat.com>
7308
7309 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
7310
7311 2003-03-11 Andrew Cagney <cagney@redhat.com>
7312
7313 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
7314 frame. Problem found by Corinna Vinschen.
7315
7316 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
7317
7318 * doublest.c (floatformat_from_length): Accept also
7319 the real size of 'long double' type.
7320
7321 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
7322
7323 From Klee Dienes <kdienes@apple.com>:
7324 * breakpoint.c (bpstat_copy): Copy the command lines as well
7325 as the old value, to match what is freed in bpstat_clear.
7326
7327 2003-03-10 David Carlton <carlton@math.stanford.edu>
7328
7329 * minsyms.c (add_minsym_to_hash_table): Replace
7330 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7331 (compare_minimal_symbols, compact_minimal_symbols)
7332 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
7333 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
7334 of DEPRECATED_SYMBOL_MATCHES_NAME.
7335 (lookup_minimal_symbol_solib_trampoline): Ditto.
7336
7337 2003-03-10 Andrew Cagney <cagney@redhat.com>
7338
7339 * regcache.h (regcache_cooked_read_ftype): Define.
7340 (regcache_save, regcache_restore): Add a cooked_read parameter.
7341 * regcache.c (regcache_save, regcache_restore): Update.
7342 (do_cooked_read): New function.
7343 (regcache_cpy): Pass do_cooked_read to regcache_save and
7344 regcache_restore.
7345
7346 2003-03-10 Andrew Cagney <cagney@redhat.com>
7347
7348 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7349 * gdbarch.h, gdbarch.c: Re-generate.
7350 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7351 * x86-64-tdep.h: Update.
7352 * x86-64-tdep.c (x86_64_init_abi): Update.
7353 * v850-tdep.c (v850_gdbarch_init): Update.
7354 * sparc-tdep.c (sparc_gdbarch_init): Update.
7355 * sh-tdep.c (sh_gdbarch_init): Update.
7356 * s390-tdep.c (s390_gdbarch_init): Update.
7357 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7358 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7359 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7360 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7361 * mips-tdep.c (mips_gdbarch_init): Update.
7362 * mcore-tdep.c (mcore_gdbarch_init): Update.
7363 * m68k-tdep.c (m68k_gdbarch_init): Update.
7364 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7365 * ia64-tdep.c (ia64_gdbarch_init): Update.
7366 * i386-tdep.c (i386_gdbarch_init): Update.
7367 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7368 * hppa-tdep.c (hppa_gdbarch_init): Update.
7369 * h8300-tdep.c (h8300_gdbarch_init): Update.
7370 * frv-tdep.c (frv_gdbarch_init): Update.
7371 * cris-tdep.c (cris_gdbarch_init): Update.
7372 * avr-tdep.c (avr_gdbarch_init): Update.
7373 * arm-tdep.c (arm_gdbarch_init): Update.
7374 * alpha-tdep.c (alpha_gdbarch_init): Update.
7375 * sh-tdep.c (sh_init_extra_frame_info): Update.
7376 (sh64_init_extra_frame_info): Update.
7377 * ns32knbsd-nat.c (frame_num_args): Update.
7378 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7379 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7380 (xstormy16_frame_chain_valid): Update.
7381 * vax-tdep.c (vax_saved_pc_after_call): Update.
7382 * v850-tdep.c (v850_frame_chain): Update.
7383 (v850_pop_frame): Update.
7384 (v850_init_extra_frame_info): Update.
7385 * sparc-tdep.c (setup_arbitrary_frame): Update.
7386 * ns32k-tdep.c (umax_frame_num_args): Update.
7387 * s390-tdep.c (s390_pop_frame_regular): Update.
7388 * mn10300-tdep.c (mn10300_frame_chain): Update.
7389 (mn10300_pop_frame_regular): Update.
7390 (mn10300_init_extra_frame_info): Update.
7391 * mips-tdep.c (mips_init_frame_pc_first): Update.
7392 (mips_frame_chain): Update.
7393 (mips_pop_frame): Update.
7394 * mcore-tdep.c (mcore_frame_chain): Update.
7395 (mcore_pop_frame): Update.
7396 (mcore_init_extra_frame_info): Update.
7397 * arch-utils.c (init_frame_pc_default): Update.
7398 * m68k-tdep.c (isi_frame_num_args): Update.
7399 (delta68_frame_num_args): Update.
7400 (news_frame_num_args): Update.
7401 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7402 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7403 (alpha_frame_chain): Update.
7404 (alpha_pop_frame): Update.
7405 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7406 (hppa_init_extra_frame_info): Update.
7407 (hppa_frame_chain): Update.
7408 (hppa_frame_chain_valid): Update.
7409 * cris-tdep.c (cris_init_extra_frame_info): Update.
7410 * avr-tdep.c (avr_init_extra_frame_info): Update.
7411 * arm-tdep.c (arm_frame_chain_valid): Update.
7412 (arm_init_extra_frame_info): Update.
7413 (arm_pop_frame): Update.
7414 * frame.c (frame_pc_unwind): Update.
7415 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7416 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7417 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7418 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7419 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7420 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7421
7422 2003-03-10 Andrew Cagney <cagney@redhat.com>
7423
7424 * gdbarch.sh (gdbarch_unwind_pc): New method.
7425 * gdbarch.h, gdbarch.c: Regenerate.
7426 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
7427 but use read_pc and FRAME_SAVED_PC as fall backs.
7428 (frame_saved_regs_pc_unwind): Delete function.
7429 (trad_frame_unwinder): Update.
7430 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
7431 (struct frame_unwind): Update.
7432 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
7433 (dummy_frame_unwind): Update.
7434 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
7435 (sentinel_frame_unwinder): Update.
7436 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
7437 (d10v_frame_unwind): Update.
7438 (d10v_unwind_pc): New function.
7439 (d10v_gdbarch_init): Set unwind_pc.
7440
7441 2003-03-10 Andrew Cagney <cagney@redhat.com>
7442
7443 * gdbarch.h: Re-generate.
7444
7445 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
7446 PC.
7447 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
7448 the PC register.
7449
7450 2003-03-08 Mark Kettenis <kettenis@gnu.org>
7451
7452 * gdbarch.sh (save_dummy_frame_tos): Add comment.
7453
7454 2003-03-08 Andrew Cagney <cagney@redhat.com>
7455
7456 * cli-out.c: Update copyright.
7457 (cli_out_data): Define typedef. Use instead of ui_out_data.
7458
7459 2003-03-08 Andrew Cagney <cagney@redhat.com>
7460
7461 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
7462 the result.
7463
7464 2003-03-07 Andrew Cagney <cagney@redhat.com>
7465
7466 * gdbarch.sh: Don't generate two macro definitions when an
7467 undefined macro taking no arguments.
7468 * gdbarch.h: Regenerate.
7469
7470 2002-03-07 Michal Ludvig <mludvig@suse.cz>
7471
7472 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
7473 (x86_64_unwind_dummy_id): New functions.
7474 (x86_64_init_abi): Register these two new functions.
7475
7476 2003-03-07 Michal Ludvig <mludvig@suse.cz>
7477
7478 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
7479 (x86_64_skip_prologue): Move prologue detection to
7480 separate function.
7481 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
7482
7483 2003-03-05 Andrew Cagney <cagney@redhat.com>
7484
7485 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
7486 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
7487 * frame.c (get_prev_frame): Restructure the frame ID unwind code
7488 to use unwind_dummy_id when a dummy frame.
7489 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
7490 predicate.
7491 * gdbarch.h, gdbarch.c: Regneerate.
7492
7493 2003-03-05 Andrew Cagney <cagney@redhat.com>
7494
7495 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
7496 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
7497 Do not use d10v_read_sp or d10v_read_fp when obtaining register
7498 values.
7499
7500 2003-03-05 Andrew Cagney <cagney@redhat.com>
7501
7502 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
7503 (struct d10v_unwind_cache): Delete field "frameless". Replace
7504 "next_addr" with "sp_offset". Add "r11_offset".
7505 (d10v_frame_unwind_cache): Update.
7506 (prologue_find_regs): Update. When "mv r11, sp", save the
7507 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
7508 RN was saved in r11_offset.
7509
7510 2003-03-05 Andrew Cagney <cagney@redhat.com>
7511
7512 * frame.c (deprecated_update_frame_pc_hack): Also update the the
7513 cached PC value in the next frame.
7514
7515 2003-03-05 Andrew Cagney <cagney@redhat.com>
7516
7517 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
7518 "id_unwind_cache" with "id".
7519 (frame_id_unwind): Delete declaration.
7520 * frame.c (frame_id_unwind): Delete function.
7521 (get_prev_frame): Call the frame id unwind method directly. Store
7522 the returned next frame's ID value in NEXT_FRAME. Note that there
7523 is a problem with the wrong unwind ID being called with the wrong
7524 unwind cache.
7525
7526 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
7527
7528 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
7529
7530 2003-03-05 James Ingham <jingham@apple.com>
7531 Daniel Jacobowitz <drow@mvista.com>
7532
7533 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
7534 (auto_cp_abi): New variable.
7535 (current_cp_abi, num_cp_abis): Make static.
7536 (CP_ABI_MAX): Define.
7537 (cp_abis): Turn into an array.
7538 (value_virtual_fn_field): Fix formatting.
7539 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
7540 takes a pointer.
7541 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
7542 (list_cp_abis, _initialize_cp_abi): New functions.
7543 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
7544 declarations for cp_abis, num_cp_abis, current_cp_abi, and
7545 switch_to_cp_abi. Update prototype for register_cp_abi.
7546 * Makefile.in (cp-abi.o): Update dependencies.
7547 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
7548 instead of switch_to_cp_abi.
7549 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
7550 register_cp_abi.
7551 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
7552 register_cp_abi.
7553 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
7554
7555 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
7556
7557 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
7558 * dwarf2loc.c: Include "regcache.h".
7559 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
7560 register_size.
7561 * Makefile.in (dwarf2loc.o): Update dependencies.
7562
7563 2003-03-04 Theodore A. Roth <troth@openavr.org>
7564
7565 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
7566 number of io registers reported by remote target is not a multiple of
7567 step.
7568
7569 2003-03-04 David Carlton <carlton@math.stanford.edu>
7570
7571 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
7572 (lookup_symbol_aux_psymtabs): Update call to
7573 lookup_partial_symbol.
7574 (lookup_transparent_type, find_main_psymtab)
7575 (make_symbol_overload_list): Ditto.
7576
7577 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
7578
7579 * MAINTAINERS (Write after approval): Update my email address.
7580
7581 2003-03-03 Andrew Cagney <cagney@redhat.com>
7582
7583 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
7584 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
7585 predicate. Replace MAX_REGISTER_RAW_SIZE.
7586 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
7587 MAX_REGISTER_VIRTUAL_SIZE.
7588 * regcache.c (legacy_max_register_raw_size): New function.
7589 (legacy_max_register_virtual_size): New function.
7590 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
7591 (MAX_REGISTER_RAW_SIZE): Define.
7592 (legacy_max_register_raw_size): Declare.
7593 (legacy_max_register_virtual_size): Declare.
7594 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7595 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
7596 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7597 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7598 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7599 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7600 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7601 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7602 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7603 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7604 * vax-tdep.c (vax_gdbarch_init): Update.
7605 * v850-tdep.c (v850_gdbarch_init): Update.
7606 * sparc-tdep.c (sparc_gdbarch_init): Update.
7607 * sh-tdep.c (sh_gdbarch_init): Update.
7608 * s390-tdep.c (s390_gdbarch_init): Update.
7609 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7610 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7611 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7612 * mips-tdep.c (mips_gdbarch_init): Update.
7613 * mcore-tdep.c (mcore_gdbarch_init): Update.
7614 * m68k-tdep.c (m68k_gdbarch_init): Update.
7615 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7616 * ia64-tdep.c (ia64_gdbarch_init): Update.
7617 * i386-tdep.c (i386_gdbarch_init): Update.
7618 * hppa-tdep.c (hppa_gdbarch_init): Update.
7619 * h8300-tdep.c (h8300_gdbarch_init): Update.
7620 * frv-tdep.c (frv_gdbarch_init): Update.
7621 * cris-tdep.c (cris_gdbarch_init): Update.
7622 * avr-tdep.c (avr_gdbarch_init): Update.
7623 * arm-tdep.c (arm_gdbarch_init): Update.
7624 * alpha-tdep.c (alpha_gdbarch_init): Update.
7625 * d10v-tdep.c (d10v_gdbarch_init): Do not set
7626 max_register_raw_size or max_register_virtual_size.
7627
7628 2003-03-03 David Carlton <carlton@math.stanford.edu>
7629
7630 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
7631 SYMBOL_MATCHES_NAME, add comment.
7632 (SYMBOL_MATCHES_NATURAL_NAME): New.
7633 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
7634 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
7635 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
7636 * symtab.c (lookup_partial_symbol): Use
7637 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
7638 unhelpful comment.
7639 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
7640 SYMBOL_MATCHES_NAME.
7641 Fix for PR c++/33.
7642
7643 2003-03-03 David Carlton <carlton@math.stanford.edu>
7644
7645 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
7646 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
7647 by regexp matching against SYMBOL_NATURAL_NAME.
7648
7649 2003-03-03 David Carlton <carlton@math.stanford.edu>
7650
7651 * linespec.c (find_method): Extract code into collect_methods.
7652 (collect_methods): New.
7653
7654 2003-03-02 Mark Kettenis <kettenis@gnu.org>
7655
7656 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
7657 get_frame_base.
7658
7659 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
7660 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7661
7662 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
7663
7664 * arch-utils.c (generic_register_byte): Fix to use the loop index
7665 and not regnum when summing the size of all registers up to regnum.
7666
7667 2003-03-01 Andrew Cagney <cagney@redhat.com>
7668
7669 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
7670 FRAME_INIT_SAVED_REGS.
7671 * gdbarch.h, gdbarch.c: Regenerate.
7672 * stack.c (frame_info): Update.
7673 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
7674 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
7675 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
7676 * ns32k-tdep.c (ns32k_pop_frame): Update.
7677 * mips-tdep.c (mips_pop_frame): Update.
7678 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
7679 * ia64-tdep.c (ia64_frame_chain): Update.
7680 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
7681 (ia64_frameless_function_invocation): Update.
7682 (ia64_init_extra_frame_info): Update.
7683 (ia64_pop_frame_regular): Update.
7684 * frame.h (struct frame_info): Update comment.
7685 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
7686 * frame.c (frame_saved_regs_register_unwind): Update.
7687 (frame_saved_regs_register_unwind): Update.
7688 (deprecated_generic_get_saved_register): Update.
7689 * cris-tdep.c: Update comment.
7690 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
7691 Rename macro.
7692 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7693 * x86-64-tdep.c (x86_64_init_abi): Update.
7694 * vax-tdep.c (vax_gdbarch_init): Update.
7695 * v850-tdep.c (v850_gdbarch_init): Update.
7696 * sparc-tdep.c (sparc_gdbarch_init): Update.
7697 * sh-tdep.c (sh_gdbarch_init): Update.
7698 * s390-tdep.c (s390_gdbarch_init): Update.
7699 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7700 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7701 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7702 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7703 * mips-tdep.c (mips_gdbarch_init): Update.
7704 * mcore-tdep.c (mcore_gdbarch_init): Update.
7705 * m68k-tdep.c (m68k_gdbarch_init): Update.
7706 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7707 * ia64-tdep.c (ia64_gdbarch_init): Update.
7708 * i386-tdep.c (i386_gdbarch_init): Update.
7709 * frv-tdep.c (frv_gdbarch_init): Update.
7710 * avr-tdep.c (avr_gdbarch_init): Update.
7711 * arm-tdep.c (arm_gdbarch_init): Update.
7712 * alpha-tdep.c (alpha_gdbarch_init): Update.
7713
7714 2003-03-01 Andrew Cagney <cagney@redhat.com>
7715
7716 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
7717 option enum and switch. When no windows, set the interpreter to
7718 INTERP_CONSOLE.
7719
7720 2003-03-01 Andrew Cagney <cagney@redhat.com>
7721
7722 * main.c (captured_main): Replace magic option characters with an
7723 enum.
7724
7725 2003-03-01 Andrew Cagney <cagney@redhat.com>
7726
7727 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
7728 INIT_EXTRA_FRAME_INFO.
7729 * gdbarch.h, gdbarch.c: Regenerate.
7730 * arm-tdep.c: Update comments.
7731 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
7732 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
7733 * frame.h, avr-tdep.c: Ditto.
7734 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
7735 (create_new_frame, legacy_get_prev_frame): Ditto.
7736 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
7737 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
7738 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
7739 deprecated_init_extra_frame_info instead of init_extra_frame_info.
7740 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7741 * v850-tdep.c (v850_gdbarch_init): Ditto.
7742 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7743 * sh-tdep.c (sh_gdbarch_init): Ditto.
7744 * s390-tdep.c (s390_gdbarch_init): Ditto.
7745 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
7746 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7747 * mips-tdep.c (mips_gdbarch_init): Ditto.
7748 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7749 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7750 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7751 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
7752 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7753 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7754 * frv-tdep.c (frv_gdbarch_init): Ditto.
7755 * cris-tdep.c (cris_gdbarch_init): Ditto.
7756 * avr-tdep.c (avr_gdbarch_init): Ditto.
7757 * arm-tdep.c (arm_gdbarch_init): Ditto.
7758 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7759 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7760
7761 2003-03-01 Andrew Cagney <cagney@redhat.com>
7762
7763 * gdbarch.sh (register_type): New function with predicate.
7764 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
7765 * gdbarch.h, gdbarch.c: Re-generate.
7766 * arch-utils.c (generic_register_byte): Use generic_register_size.
7767 (generic_register_size): When available, use
7768 gdbarch_register_type.
7769 * regcache.c (init_regcache_descr): When available, initialize the
7770 register type array using gdbarch_register_type. If the
7771 architecture supplies gdbarch_register_type, do not use the legacy
7772 regcache layout.
7773 * d10v-tdep.c (d10v_register_type): Replace
7774 d10v_register_virtual_type.
7775 (d10v_gdbarch_init): Set register_type instead of
7776 register_virtual_type.
7777
7778 2003-03-01 Andrew Cagney <cagney@redhat.com>
7779
7780 * Makefile.in (ax-gdb.o): Update dependencies.
7781 * ax-gdb.c: Include "regcache.h".
7782 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
7783 * findvar.c (value_of_register): Ditto.
7784 * infcmd.c (default_print_registers_info): Ditto.
7785
7786 2003-03-01 Mark Kettenis <kettenis@gnu.org>
7787
7788 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
7789 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7790
7791 2003-03-01 Mark Kettenis <kettenis@gnu.org>
7792
7793 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
7794 of STREQ.
7795
7796 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
7797
7798 * Makefile.in (dwarf2loc.o): Update dependencies.
7799 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
7800 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
7801 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
7802 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
7803 (locexpr_tracepoint_var_ref): New function.
7804 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
7805
7806 2003-02-28 Andrew Cagney <cagney@redhat.com>
7807
7808 * regcache.c (register_size): New function.
7809 * regcache.h (register_size): Declare
7810 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
7811 max_register_size instead of MAX_REGISTER_RAW_SIZE.
7812
7813 2003-02-28 David Carlton <carlton@math.stanford.edu>
7814
7815 * linespec.c (decode_compound): Extract code into find_method.
7816 (find_method): New.
7817
7818 2003-02-28 J. Brobecker <brobecker@gnat.com>
7819
7820 * Makefile.in: Add rules to build and link in observer.o.
7821
7822 2003-02-27 J. Brobecker <brobecker@gnat.com>
7823
7824 * observer.c: Minor comments edits.
7825
7826 2003-02-27 J. Brobecker <brobecker@gnat.com>
7827
7828 * observer.h, observer.c: New file.
7829
7830 2003-02-27 Andrew Cagney <cagney@redhat.com>
7831
7832 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
7833
7834 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
7835
7836 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
7837 (M6812_OP_STS_EXT): Likewise.
7838 (m6811_prologue): Use the above to recognize prologue.
7839 (m6812_prologue): Likewise.
7840
7841 2003-02-27 David Carlton <carlton@math.stanford.edu>
7842
7843 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
7844 SYMBOL_PRINT_NAME.
7845 (compare_psymbols): Ditto.
7846 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
7847
7848 2003-02-27 Michael Snyder <msnyder@redhat.com>
7849
7850 * f-lang.c (build_fortran_types): New function.
7851 (_initialize_f_language): Gdbarch-register built-in fortran types.
7852 * doublest.c (extract_floating): Fix warning text.
7853
7854 2003-02-27 Andrew Cagney <cagney@redhat.com>
7855
7856 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
7857 predicate. Replaces PUSH_DUMMY_FRAME.
7858 * gdbarch.h, gdbarch.c: Regnerate.
7859 * valops.c (hand_function_call): Update. Call
7860 generic_push_dummy_frame directly.
7861 * vax-tdep.c (vax_gdbarch_init): Update.
7862 * sparc-tdep.c (sparc_gdbarch_init): Update.
7863 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7864 * m68k-tdep.c (m68k_gdbarch_init): Update.
7865 * hppa-tdep.c (hppa_gdbarch_init): Update.
7866 * alpha-tdep.c (alpha_gdbarch_init): Update.
7867 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
7868 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
7869 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
7870 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
7871 push_dummy_frame to generic_push_dummy_frame.
7872 * v850-tdep.c (v850_gdbarch_init): Ditto.
7873 * sh-tdep.c (sh_gdbarch_init): Ditto.
7874 * s390-tdep.c (s390_gdbarch_init): Ditto.
7875 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7876 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7877 * mips-tdep.c (mips_gdbarch_init): Ditto.
7878 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7879 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7880 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7881 * i386-tdep.c (i386_gdbarch_init): Ditto.
7882 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7883 * frv-tdep.c (frv_gdbarch_init): Ditto.
7884 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7885 * cris-tdep.c (cris_gdbarch_init): Ditto.
7886 * avr-tdep.c (avr_gdbarch_init): Ditto.
7887 * arm-tdep.c (arm_gdbarch_init): Ditto.
7888
7889 2003-02-26 Kevin Buettner <kevinb@redhat.com>
7890
7891 * mips-tdep.c (show_mips_abi): New function.
7892 (_initialize_mips_tdep): Use show_mips_abi() to implement the
7893 command ``show mips abi''.
7894
7895 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
7896
7897 From Elena Zannoni <ezannoni@redhat.com>
7898 * dbxread.c (process_one_symbol): Only record line 0 if one or
7899 more sline entries have been seen for the function.
7900
7901 2003-02-26 Michael Chastain <mec@shout.net>
7902
7903 * configure: Regenerate with autoconf 000227.
7904
7905 2003-02-26 Michael Chastain <mec@shout.net>
7906
7907 Close PR build/660.
7908 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
7909 for old libc5/glibc.
7910 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
7911
7912 2003-02-26 Kris Warkentin <kewarken@qnx.com>
7913
7914 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
7915 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
7916
7917 2003-02-26 Michael Chastain <mec@shout.net>
7918
7919 * configure.in: New variable HAVE_UINTPTR_T.
7920 * configure, config.in: Regenerated.
7921
7922 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
7923
7924 Fix PR build/1097.
7925 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
7926
7927 2003-02-25 Andrew Cagney <cagney@redhat.com>
7928
7929 * frame.c (get_prev_frame): Add comment on check for
7930 inside_entry_func. Only check for inside_entry_file when not a
7931 dummy and not a sentinel. Check that the new frame is not inner
7932 to the old frame.
7933
7934 2003-02-25 Andrew Cagney <cagney@redhat.com>
7935
7936 * frame.c (frame_debug): New variable.
7937 (_initialize_frame): Add "set/show debug frame" command.
7938 (get_prev_frame): When frame_debug, print reason why unwind
7939 failed.
7940
7941 2003-02-25 Michael Chastain <mec@shout.net>
7942
7943 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
7944 to avoid uintptr_t definition problems.
7945
7946 2003-02-25 David Carlton <carlton@math.stanford.edu>
7947
7948 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
7949 (SYMBOL_LINKAGE_NAME): Ditto.
7950 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
7951 SYMBOL_LINKAGE_NAME.
7952 (struct general_symbol_info): Expand comment.
7953 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
7954 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
7955 (SYMBOL_MATCHES_REGEXP): Ditto.
7956 * symtab.c (symbol_natural_name): New function.
7957 * objfiles.h: Replace all uses of SYMBOL_NAME by
7958 DEPRECATED_SYMBOL_NAME.
7959 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
7960 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
7961 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
7962 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
7963 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
7964 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
7965 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
7966 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
7967 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
7968 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
7969 * ada-exp.y: Ditto.
7970 * ada-exp.y: Update copyright.
7971 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
7972 * cp-valprint.c: Ditto.
7973
7974 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
7975
7976 * infptrace.c (detach): Do not flag error if ptrace detach fails
7977 and errno is set to ESRCH.
7978
7979 2003-02-24 Andrew Cagney <cagney@redhat.com>
7980
7981 * infptrace.c (udot_info): Change type of udot_off to long. Use
7982 paddr when printing udot_off's value.
7983
7984 2003-02-24 David Carlton <carlton@math.stanford.edu>
7985
7986 * symtab.c (make_symbol_overload_list): Only read in partial
7987 symtabs containing a matching partial symbol.
7988
7989 2003-02-24 David Carlton <carlton@math.stanford.edu>
7990
7991 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
7992 do the comparison, not strcmp.
7993 * symfile.c (compare_psymbols): Ditto.
7994 * defs.h: Declare strcmp_iw_ordered.
7995 * utils.c (strcmp_iw_ordered): New function.
7996
7997 2003-02-24 Jim Blandy <jimb@redhat.com>
7998
7999 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8000 support, shared libs): Remove my name from here, to better reflect
8001 reality.
8002
8003 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8004
8005 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8006 (target_ops): Add to_have_continuable_watchpoint.
8007 * target.c (update_current_target): Add INHERIT line for
8008 to_have_continuable_watchpoint.
8009 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8010 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8011 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8012 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8013
8014 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
8015
8016 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8017 maintainership.
8018
8019 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8020
8021 * solib.c (solib_open): Call target defined search function after
8022 failing with solib-search-path.
8023 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8024 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8025
8026 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8027
8028 * MAINTAINERS: Add myself to Write After section.
8029
8030 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8031
8032 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8033
8034 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8035
8036 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8037 (m68hc11_add_reggroups): New function.
8038 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8039 (m68hc11_gdbarch_init): Install the reggroups.
8040 (_initialize_m68hc11_tdep): Initialize them.
8041
8042 2003-02-21 James E Wilson <wilson@tuliptree.org>
8043
8044 * MAINTAINERS: Update my email address.
8045
8046 2003-02-21 David Carlton <carlton@math.stanford.edu>
8047
8048 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8049
8050 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
8051
8052 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8053 * symtab.h: Add opaque declarations of struct axs_value and
8054 struct agent_expr.
8055 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8056 (struct location_funcs): New type.
8057 (struct symbol): Add "loc" to aux_value.
8058 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8059 * dwarf2read.c: Include "dwarf2expr.h".
8060 (dwarf2_symbol_mark_computed): New function.
8061 (read_func_scope): Use it.
8062 (var_decode_location): New function.
8063 (new_symbol): Use it.
8064 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8065
8066 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8067 (dwarf2expr_h, dwarf2loc_h): New variables.
8068 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8069 (dwarf2expr.o, dwarf2loc.o): New rules.
8070 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8071 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8072 LOC_COMPUTED_ARG.
8073 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8074 * m2-exp.y (yylex): Likewise.
8075 * printcmd.c (address_info, print_frame_args): Likewise.
8076 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8077 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8078 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8079 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8080 * symtab.c (lookup_block_symbol): Likewise.
8081
8082 2003-02-20 Adam Fedor <fedor@gnu.org>
8083
8084 * symtab.h: Remove objc_specific struct
8085 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8086 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8087 Have language_objc use cplus_specific struct.
8088
8089 2003-02-20 Tom Tromey <tromey@redhat.com>
8090
8091 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8092 TYPE_NAME, when printing a String value. PR java/1075.
8093
8094 2003-02-20 Adam Fedor <fedor@gnu.org>
8095
8096 * objc-lang.h (find_methods): Remove declaration.
8097 * objc-lang.c (find_methods): Make static.
8098
8099 2003-02-20 Christopher Faylor <cgf@redhat.com>
8100
8101 * win32-nat.c (get_image_name): Check return value from
8102 ReadProcessMemory.
8103 (child_xfer_memory): Ditto.
8104
8105 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
8106
8107 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8108 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8109 '${exec_prefix}' (in addition to the expansion thereof) as
8110 relocatable.
8111 * configure: Rebuilt.
8112
8113 2003-02-20 David Carlton <carlton@math.stanford.edu>
8114
8115 * symtab.c (search_symbols): Revert the search_symbols part of my
8116 2002-12-23 patch. Add comment.
8117
8118 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8119
8120 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8121 * dbxread.c (elfstab_build_psymtabs): Don't call
8122 install_minimal_symbols.
8123 (stabsect_build_psymtabs): Likewise.
8124 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8125 earlier.
8126 * somread.c (som_symfile_read): Call install_minimal_symbols
8127 and do_cleanups earlier.
8128 * nlmread.c (nlm_symfile_read): Likewise.
8129 * mdebugread.c (elfmdebug_build_psymtabs): Call
8130 install_minimal_symbols and make appropriate cleanups.
8131
8132 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8133
8134 * solib.c (reload_shared_libraries): New function.
8135 (_initialize_solib): Add callbacks for ``set solib-search-path''
8136 and ``set solib-absolute-prefix''.
8137
8138 2003-02-20 David Carlton <carlton@math.stanford.edu>
8139
8140 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8141 expand comment.
8142 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8143 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8144 * ada-typeprint.c (ada_typedef_print): Ditto.
8145 * ax-gdb.c (gen_var_ref): Ditto.
8146 * breakpoint.c (print_one_breakpoint): Ditto.
8147 * buildsym.c (finish_block): Ditto.
8148 * c-valprint.c (c_val_print): Ditto.
8149 * expprint.c (print_subexp): Ditto.
8150 * findvar.c (locate_var_value): Ditto.
8151 * infcmd.c (jump_command): Ditto.
8152 * linespec.c (decode_line_2, decode_compound): Ditto.
8153 * maint.c (maintenance_translate_address): Ditto.
8154 * objc-lang.c (compare_selectors, compare_classes): Ditto.
8155 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8156 Ditto.
8157 * p-valprint.c (pascal_val_print): Ditto.
8158 * stabsread.c (define_symbol): Ditto.
8159 * stack.c (print_frame, frame_info, print_block_frame_locals)
8160 (print_frame_arg_vars, return_command): Ditto.
8161 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8162 * symmisc.c (print_symbol): Ditto.
8163 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8164 (compare_search_syms, print_symbol_info, print_msymbol_info)
8165 (rbreak_command): Ditto.
8166 * tracepoint.c (tracepoints_info): Ditto.
8167 * typeprint.c (typedef_print): Ditto.
8168 * valops.c (value_of_variable, hand_function_call): Ditto.
8169 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8170 * ada-typeprint.c: Update Copyright.
8171 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8172 * tracepoint.c, cli/cli-cmds.c: Ditto.
8173
8174 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8175
8176 * frame.c (generic_unwind_get_saved_register): Make non-static.
8177 * frame.h (generic_unwind_get_saved_register): Declare.
8178 * mips-tdep.c (read_next_frame_reg): Fetch register from
8179 current regcache when frame is NULL.
8180 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8181 that must be NULL.
8182 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8183 instead of frame_register_unwind().
8184
8185 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8186
8187 * remote-sim.c (gdbsim_insert_breakpoint)
8188 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8189 code.
8190
8191 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8192
8193 * remote.c (_initialize_remote): Add commands "set/show remote
8194 hardware-watchpoint-limit" and "set/show remote
8195 hardware-breakpoint-limit".
8196 (remote_hw_watchpoint_limit): Initialize to -1.
8197 (remote_hw_breakpoint_limit): Ditto.
8198 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8199
8200 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8201
8202 * coff-pe-read.c: New file - support reading of minimal symbols from a
8203 portable executable using the export table.
8204 * coff-pe-read.h: New file.
8205 * coffread.c: Include coff-pe-read.h.
8206 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8207 debugging symbols found.
8208 * Makefile.in (SFILES): Add coff-pe-read.o.
8209 (coff_pe_read_h): Define.
8210 (COMMON_OBS): Add coff-pe-read.o.
8211 (coffread.o): Add coff_pe_read_h dependency.
8212 (coff-pe-read.o): New target.
8213
8214 2003-02-19 David Carlton <carlton@math.stanford.edu>
8215
8216 * Makefile.in (SFILES): Add block.c.
8217 (block_h): New.
8218 (COMMON_OBS): Add block.o.
8219 (block.o): New.
8220 (x86-64-tdep.o): Add $(block_h).
8221 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8222 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8223 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8224 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8225 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8226 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8227 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8228 * value.h: Add opaque declaration for struct block.
8229 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8230 * ada-lang.h: Ditto.
8231 * x86-64-tdep.c: #include "block.h"
8232 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8233 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8234 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8235 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8236 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8237 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8238 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8239 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8240 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8241 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8242 * symtab.c (block_function): Ditto.
8243 (contained_in): Ditto.
8244 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8245 block.h. Add opaque declaration for struct block.
8246 * symtab.h: Move block_function and contained_in declarations to
8247 block.h. Add opaque declarations for struct block, struct
8248 blockvector.
8249 (struct block): Move to block.h.
8250 (struct blockvector): Ditto.
8251 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8252 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8253 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8254 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8255 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8256 Ditto.
8257 * block.c: New file.
8258 * block.h: New file.
8259
8260 2003-02-19 Theodore A. Roth <troth@openavr.org>
8261
8262 * avr-tdep.c (avr_extract_return_value): Remove function.
8263 (avr_store_return_value): Remove function.
8264 (avr_extract_struct_value_address): Remove function.
8265 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8266
8267 2003-02-19 Andrew Cagney <ac131313@redhat.com>
8268
8269 * rs6000-tdep.c: Include "gdb_assert.h".
8270 (registers_e500): Add "acc" and "spefscr".
8271 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8272 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8273 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
8274 really is "r0".
8275 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8276
8277 2003-02-18 Keith Seitz <keiths@redhat.com>
8278
8279 * Makefile.in: Add gdbtk-interps.c.
8280
8281 2003-02-18 Kevin Buettner <kevinb@redhat.com>
8282
8283 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8284 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8285
8286 2003-02-18 Andrew Cagney <cagney@redhat.com>
8287
8288 * symtab.h (struct objfile): Add opaque declaration.
8289
8290 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
8291
8292 From Jim Ingham <jingham@apple.com>:
8293 * dbxread.c (process_one_symbol): Use last_function_start rather
8294 than function_start_offset to find the real beginning of the
8295 current function. The latter is just the text section offset on
8296 some systems, the former is always the real function start.
8297
8298 2003-02-17 Andrew Cagney <cagney@redhat.com>
8299
8300 * configure.in: Revert ${target} != ${host}.
8301
8302 2003-02-17 Andrew Cagney <ac131313@redhat.com>
8303
8304 * configure.in (Makefile): Use the test ${target} != ${host},
8305 instead of the absence of the "nm.h" file, to determine of the
8306 configuration non-native.
8307 * configure: Regenerate.
8308
8309 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
8310
8311 From Brian Ford <ford@vss.fsi.com>
8312
8313 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
8314 conditionalize tui_active test.
8315 (lookup_cmd_1): Ditto.
8316
8317 2003-02-14 Mark Kettenis <kettenis@gnu.org>
8318
8319 * configure.in: Add check for _etext.
8320 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
8321 available.
8322 * config.in, configure: regenerated.
8323
8324 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
8325
8326 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
8327
8328 2003-02-14 Andrew Cagney <ac131313@redhat.com>
8329
8330 * main.c (tui_version): Delete variable.
8331 (captured_main): When --tui, set interpreter_p to "tui" instead of
8332 enabling tui_version.
8333 * printcmd.c (display_command) [TUI]: Test tui_active instead of
8334 tui_version.
8335 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
8336 * cli/cli-cmds.c (disassemble_command): Ditto.
8337 * defs.h (tui_version): Delete declaration.
8338 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
8339 (tui-interp.o): Add rules.
8340 (SUBDIR_TUI_OBS): Add "tui-interp.o".
8341
8342 2003-02-14 Christopher Faylor <cgf@redhat.com>
8343
8344 * win32-nat.c (register_loaded_dll): Correctly set address range for
8345 just-loaded dll.
8346
8347 2003-02-12 Jason Molenda (jmolenda@apple.com)
8348
8349 * symmisc.c (print_objfile_statistics): Include information about
8350 the number of psymtabs and symtabs in each object file.
8351
8352 2003-02-13 Keith R Seitz <keiths@redhat.com>
8353
8354 * main.h (struct captured_main_args): Add interpreter_p.
8355 * main.c (captured_main): Initialize interpreter_p from context.
8356 * gdb.c (main): Set interpreter_p argument.
8357 * Makefile.in (gdb.o): Add dependency for interps.h.
8358
8359 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8360
8361 * event-top.c (cli_command_loop): Delete declaration.
8362 (_initialize_event_loop): Delete function setting event_loop_hook.
8363 * event-top.h (cli_command_loop): Declare. Update copyright.
8364 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
8365 * interps.c (current_interp_command_loop): When event_loop_p, call
8366 cli_command_loop.
8367
8368 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8369
8370 * interps.h (interp_command_loop_ftype): Change return type to
8371 void.
8372
8373 2003-02-12 Michal Ludvig <mludvig@suse.cz>
8374
8375 * x86-64-tdep.c (x86_64_extract_return_value)
8376 (x86_64_store_return_value): Use regcache instead of regbuf.
8377 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
8378 * x86-64-linux-nat.c (fill_gregset): Use regcache.
8379
8380 2003-02-11 Andrew Cagney <ac131313@redhat.com>
8381
8382 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
8383 * aclocal.m4: Regenerate.
8384 * configure: Regenerate.
8385
8386 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
8387 TCL_LD_SEARCH_FLAGS.
8388
8389 2003-02-10 Michal Ludvig <mludvig@suse.cz>
8390
8391 * dwarf2cfi.c: Reindented.
8392
8393 2003-02-09 Andrew Cagney <ac131313@redhat.com>
8394
8395 * interps.c (clear_interpreter_hooks): Convert function definition
8396 to ISO C.
8397
8398 2003-02-07 David Carlton <carlton@math.stanford.edu>
8399
8400 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8401
8402 2003-02-07 Kevin Buettner <kevinb@redhat.com>
8403
8404 * gdbtypes.h (struct main_type): Move ``length'' field from here...
8405 (struct type): ...to here.
8406 (TYPE_LENGTH): Adjust to reflect different location of ``length''
8407 field.
8408 * gdbtypes.c (make_qualified_type): Set length on newly created type.
8409 (replace_type): Set length on all type variants for a given type.
8410
8411 2003-02-07 Andrew Cagney <ac131313@redhat.com>
8412
8413 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
8414 <sys/stat.h>.
8415 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8416
8417 2003-02-06 Andrew Cagney <ac131313@redhat.com>
8418
8419 * Makefile.in (symm-nat.o): Update dependencies.
8420 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
8421 (lynx-nat.o, ia64-linux-nat.): Ditto.
8422 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
8423 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
8424 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
8425
8426 * Makefile.in (inflow_h): Define.
8427 (procfs.o, inflow.o, procfs.o): Update dependencies.
8428 * inftarg.c (child_stop): Delete extern declaration of
8429 inferior_process_group. Include "inflow.h".
8430 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
8431 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
8432 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
8433 (our_process_group, inferior_process_group): Extern declarations.
8434
8435 * procfs.c: Include "gdb_assert.h".
8436
8437 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8438 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
8439 * jv-typeprint.c (java_type_print_base): Ditto.
8440 * typeprint.c (typedef_print): Eliminate STREQ.
8441 * cli/cli-script.c (define_command, define_command): Ditto.
8442 * main.c (captured_main): Ditto.
8443 * values.c (lookup_internalvar): Ditto.
8444 * utils.c (safe_strerror, parse_escape): Eliminate assignment
8445 within `if' conditional.
8446 * linespec.c (decode_line_2): Ditto.
8447 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
8448 (bfd_openw_with_cleanup): Ditto.
8449
8450 2003-02-07 Mark Kettenis <kettenis@gnu.org>
8451
8452 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
8453 legacy_extract_return_value and store_return_value to
8454 legacy_return_value.
8455
8456 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
8457
8458 * win32-nat.c (get_relocated_section_addrs): New function. Find
8459 section load addresses for symbol handling in relocated DLLs.
8460 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
8461
8462 2003-02-05 Fred Fish <fnf@intrinsity.com>
8463
8464 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
8465 '=' and '!='.
8466 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
8467 with '&' and '=='.
8468 (angel_RDI_info): Ditto.
8469 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
8470 with '&' and '!='.
8471 (threads_continue_all_with_signals): Ditto.
8472
8473 2003-02-05 Jim Ingham <jingham@apple.com>
8474 Keith Seitz <keiths@redhat.com>
8475 Elena Zannoni <ezannoni@redhat.com>
8476 Andrew Cagney <ac131313@redhat.com>
8477
8478 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
8479 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
8480 (SUBDIR_MI_OBS): Add "mi-interp.o".
8481 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
8482 (SFILES): Add "interps.c".
8483 (COMMON_OBS): Add "interps.o".
8484 (interps_h, mi_main_h): Define.
8485 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
8486 (mi-main.o, main.o, event-top.o): Update dependencies.
8487 * cli/cli-interp.c: New file.
8488 * interps.h, interps.c: New files.
8489 * top.c: (gdb_init): Don't install the default interpreter, handed
8490 by captured_main.
8491 * main.c: Include "interps.h".
8492 (interpreter_p): Note that it should malloc'ed.
8493 (captured_command_loop): Call current_interp_command_loop.
8494 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
8495 xfree and xstrdup when updating interpreter_p. Install the
8496 default interpreter. Add hack to stop mi1's copyright notice
8497 being encoded.
8498 * event-top.h (gdb_setup_readline): Declare.
8499 (gdb_disable_readline): Declare.
8500 * event-top.c: Include "interps.h".
8501 (display_gdb_prompt): Call current_interp_display_prompt_p.
8502 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
8503 gdb_stdlog, and gdb_stdtarg.
8504 (_initialize_event_loop): Don't call gdb_setup_readline.
8505 * cli-out.c (cli_out_set_stream): New function.
8506 * cli-out.h (cli_out_set_stream): Declare.
8507
8508 2003-02-06 Mark Kettenis <kettenis@gnu.org>
8509
8510 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
8511 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
8512 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
8513 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
8514 config/i386/i386v42mp.mt: Removed.
8515
8516 2003-02-05 Mark Kettenis <kettenis@gnu.org>
8517
8518 * configure.tgt (*-*-solaris*): Set gdb_osabi to
8519 GDB_OSABI_SOLARIS.
8520
8521 2003-02-05 Michael Chastain <mec@shout.net>
8522
8523 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
8524 2.12.1 and earlier versions.
8525
8526 2003-02-05 Andrew Cagney <ac131313@redhat.com>
8527
8528 Remove orphaned hosts, targets and files.
8529 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
8530 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
8531 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
8532 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
8533 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
8534 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
8535 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
8536 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
8537 * config/sparc/tm-sp64sim.h: Delete.
8538 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
8539 hosts.
8540 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
8541 mips*-dec-mach3* targets.
8542
8543 2003-02-04 Michael Chastain <mec@shout.net>
8544
8545 * NEWS: Fix typo: sepcifying -> specifying.
8546
8547 2003-02-04 Michael Chastain <mec@shout.net>
8548
8549 * dwarfread.c: Add documentation on the state of dwarf-1,
8550 looking towards obsoletion.
8551
8552 2003-02-03 Michael Chastain <mec@shout.net>
8553
8554 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
8555 gdb/testsuite/gdb.c++/pr-1023.exp.
8556
8557 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8558
8559 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
8560 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
8561
8562 * utils.c (init_page_info): Delete reference to MPW in comments.
8563 * main.c (captured_main): Delete #ifdef MPW.
8564
8565 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8566
8567 * NEWS: Note that the m32r-*-elf* is obsolete.
8568 * monitor.c (monitor_expect): Obsolete reference to m32r.
8569 * configure.tgt: Mark m32r-*-elf* as obsolete.
8570 * MAINTAINERS: Mark m32k as obsolete.
8571 * m32r-rom.c: Obsolete file.
8572 * config/m32r/m32r.mt: Obsolete file.
8573 * config/m32r/tm-m32r.h: Obsolete file.
8574 * m32r-stub.c: Obsolete file.
8575 * m32r-tdep.c: Obsolete file.
8576
8577 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8578
8579 * NEWS: Mention that the z8k-zilog-none is obsolete.
8580 * MAINTAINERS: Mark z8k as obsolete.
8581 * configure.tgt: Obsolete the z8k-*-coff* target.
8582 * config/z8k/z8k.mt: Obsolete file.
8583 * config/z8k/tm-z8k.h: Obsolete file.
8584 * z8k-tdep.c: Obsolete file.
8585
8586 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8587
8588 * NEWS: Mention that the mn10200-elf is obsolete.
8589 * configure.tgt: Obsolete mn10200-*-* target.
8590 * breakpoint.c (update_breakpoints_after_exec): Update comment to
8591 mention that the mn10200 is obsolete.
8592 * breakpoint.h: Ditto.
8593 * MAINTAINERS: Mark the mn10200-elf as obsolete.
8594 * config/mn10200/mn10200.mt: Obsolete file.
8595 * config/mn10200/tm-mn10200.h: Obsolete file.
8596 * mn10200-tdep.c: Obsolete file.
8597
8598 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8599
8600 * MAINTAINERS: Mark h8500 as obsolete.
8601 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
8602 * findvar.c (value_from_register): Ditto.
8603 * h8500-tdep.c: Mark file as obsolete.
8604 * config/h8500/h8500.mt: Ditto.
8605 * config/h8500/tm-h8500.h: Ditto.
8606 * NEWS: Mention that h8500 is obsolete.
8607
8608 2003-02-04 David Carlton <carlton@math.stanford.edu>
8609
8610 * objfiles.c (allocate_objfile): Always set name. Add comment at
8611 start of function.
8612 * jv-lang.c (get_dynamics_objfile): Add comment.
8613
8614 2003-02-04 David Carlton <carlton@math.stanford.edu>
8615
8616 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
8617 * printcmd.c (build_address_symbolic): Replace uses of
8618 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
8619 SYMBOL_NAME, and asm_demangle.
8620 Update copyright.
8621
8622 2003-02-04 David Carlton <carlton@math.stanford.edu>
8623
8624 * linespec.c (decode_compound): Extract code into
8625 lookup_prefix_sym.
8626 (lookup_prefix_sym): New function.
8627
8628 2003-02-04 David Carlton <carlton@math.stanford.edu>
8629
8630 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
8631 FLOAT_COERCION_BADNESS.
8632 * gdbtypes.c (rank_one_type): Replace all uses of
8633 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
8634
8635 2003-02-04 Jim Blandy <jimb@redhat.com>
8636
8637 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
8638 section, let dwarf_macinfo_section point to it, not
8639 dwarf_loc_section.
8640
8641 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
8642
8643 Pointed out by Anton Blanchard <anton@samba.org>.
8644 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
8645 (ppc_linux_at_sigtramp_return_path): Use it.
8646
8647 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
8648
8649 * defs.h (streq): Add prototype.
8650 * utils.c (streq): New function.
8651
8652 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
8653 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
8654 * mdebugread.c (new_symbol): Likewise.
8655 * stabsread.c (define_symbol): Likewise.
8656 * coffread.c (process_coff_symbol): Likewise.
8657 * dwarfread.c (new_symbol): Likewise.
8658
8659 * minsyms.c (prim_record_minimal_symbol_and_info): Use
8660 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
8661 here.
8662 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
8663 SYMBOL_INIT_DEMANGLED_NAME.
8664 * objfiles.c: Include "hashtab.h".
8665 (allocate_objfile): Call htab_set_functions_ex for the
8666 demangled_names_hash.
8667 (free_objfile): Call htab_delete for the demangled_names_hash.
8668 * objfiles.h (struct htab): Add declaration.
8669 (struct objfile): Add demangled_names_hash.
8670 * symfile.c: Include "hashtab.h".
8671 (reread_symbols): Call htab_delete for the demangled_names_hash.
8672 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
8673 SYMBOL_NAME in the bcache.
8674 * symtab.c: Include "hashtab.h". Update comments.
8675 (create_demangled_names_hash, symbol_set_names): New functions.
8676 (symbol_find_demangled_name): New function, broken out from
8677 symbol_init_demangled_names.
8678 (symbol_init_demangled_names): Use it.
8679 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
8680 (SYMBOL_SET_NAMES): New macro.
8681 (symbol_set_names): Add prototype.
8682
8683 2003-02-03 Jim Blandy <jimb@redhat.com>
8684
8685 Use a single, consistent representation for an empty minimal
8686 symbol table in an objfile.
8687 * objfiles.c (terminate_minimal_symbol_table): New function.
8688 (allocate_objfile): Call it.
8689 * objfiles.h (terminate_minimal_symbol_table): New declaration.
8690 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8691 non-NULL.
8692 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
8693 objfile has minimal symbols, compare minimal_symbol_count to zero,
8694 instead of comparing msymbols with NULL.
8695 * objfiles.c (have_minimal_symbols): Same.
8696 * solib-sunos.c (solib_add_common_symbols): Call
8697 terminate_minimal_symbol_table.
8698 * symfile.c (reread_symbols): Same.
8699
8700 2003-02-03 Kevin Buettner <kevinb@redhat.com>
8701
8702 * s390-tdep.c (s390_address_class_type_flags)
8703 (s390_address_class_type_flags_to_name)
8704 (s390_address_class_name_to_type_flags): New functions.
8705 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
8706 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
8707
8708 2003-02-03 Michael Snyder <msnyder@redhat.com>
8709
8710 * arm-tdep.c: Fix spell-o in comment.
8711
8712 2003-02-03 Michal Ludvig <mludvig@suse.cz>
8713
8714 * dwarf2cfi.c (pointer_encoding): Added new parameter.
8715 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8716 error messages to contain BFD filename.
8717
8718 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
8719
8720 Fix PR gdb/742 gdb/743 gdb/877
8721 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
8722 (do_mixed_source_and_assembly): Use
8723 make_cleanup_ui_out_tuple_begin_end and
8724 make_cleanup_ui_out_tuple_begin_end.
8725 (do_mixed_source_and_assembly): Ditto.
8726 * thread.c (do_captured_list_thread_ids): Ditto.
8727 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
8728 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
8729 ui_out_tuple_end): Delete prototypes.
8730 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
8731 ui_out_list_end, ui_out_tuple_end): Delete.
8732
8733 From Kevin Buettner <kevinb@redhat.com>:
8734 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
8735 * ui-out.c (make_cleanup_ui_out_table_begin_end)
8736 (do_cleanup_table_end): New functions.
8737 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
8738 Use cleanups to invoke_ui_out_tuple_end().
8739 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
8740 * cli/cli-setshow.c (cmd_show_list): Use
8741 make_cleanup_ui_out_tuple_begin_end.
8742
8743 2003-02-02 Andrew Cagney <ac131313@redhat.com>
8744
8745 * frame.c (frame_unwind_register): New function.
8746 (frame_unwind_unsigned_register): Use.
8747 (frame_unwind_signed_register): Use.
8748 (frame_read_register): New function.
8749 * frame.h (frame_unwind_register): Declare.
8750 (frame_read_register): Declare.
8751
8752 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
8753 and frame_unwind_register instead of read_memory, write_register
8754 and deprecated_write_register_bytes.
8755
8756 2003-02-02 Andrew Cagney <ac131313@redhat.com>
8757
8758 * frame.h: Note that namelen can be negative.
8759 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
8760 NAME's length.
8761
8762 * NEWS: Mention that the d10v's `regs' command is deprecated.
8763 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
8764 (d10v_print_registers_info): New function.
8765 (show_regs): Call d10v_print_registers_info.
8766 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
8767
8768 2003-02-02 Mark Kettenis <kettenis@gnu.org>
8769
8770 * stack.c (print_frame_info): Restore call to annotate_frame_begin
8771 lost in the previous patch.
8772
8773 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8774
8775 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
8776 * stack.c (print_frame_info_base): Output complete FRAME tuple
8777 for synthesized frames.
8778
8779 2003-02-02 Andrew Cagney <ac131313@redhat.com>
8780
8781 * mips-nat.c (zerobuf): Delete.
8782 (fetch_inferior_registers): Alloc local zerobuf.
8783 (fetch_core_registers): Alloc local zerobuf.
8784 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
8785 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
8786 * thread-db.c (thread_db_store_registers): Ditto.
8787 * sh-tdep.c (sh_do_register): Ditto.
8788 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
8789 * remote-sim.c (gdbsim_store_register): Ditto.
8790 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8791 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8792 * monitor.c (monitor_supply_register): Ditto.
8793 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
8794 * mips-nat.c (fetch_inferior_registers): Ditto.
8795 * m68klinux-nat.c (fetch_register): Ditto.
8796 * lynx-nat.c (fetch_inferior_registers): Ditto.
8797 (fetch_inferior_registers): Ditto.
8798 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
8799 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8800 (hpux_thread_store_registers): Ditto.
8801 * hppah-nat.c (fetch_register): Ditto.
8802 * hppab-nat.c (fetch_register): Ditto.
8803 * hppa-tdep.c (pa_register_look_aside): Ditto.
8804 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
8805 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
8806
8807 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8808
8809 * gdbarch.sh: Explictly specify all method levels. When a
8810 variable with an empty level, provide a non-multi-arch default.
8811 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
8812 * gdbarch.h: Re-generate.
8813 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
8814 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
8815
8816 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8817
8818 * defs.h (host_pointer_to_address): Delete declaration.
8819 (address_to_host_pointer): Delete declaration.
8820 * utils.c (host_pointer_to_address): Delete function.
8821 (address_to_host_pointer): Delete function.
8822 * procfs.c (procfs_address_to_host_pointer): New function.
8823 * procfs.c (proc_set_watchpoint): Use.
8824 (procfs_can_use_hw_breakpoint): Update comments.
8825 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
8826 (som_solib_add): Use.
8827 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
8828 * hppa-tdep.c (unwind_command): Use.
8829
8830 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8831
8832 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
8833 strlen d_name.
8834
8835 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
8836 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
8837 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
8838 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
8839 (define_symbol): Update.
8840 * symfile.c (generic_load): Remove references to nindy.
8841 * symtab.c: Remove references to nindy.
8842
8843 2003-02-01 Andrew Cagney <ac131313@redhat.com>
8844
8845 * infcmd.c (print_float_info): Delete code conditional on
8846 FLOAT_INFO.
8847 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
8848 * config/m68k/nm-apollo68b.h: Ditto.
8849 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
8850 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
8851 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
8852
8853 2003-02-01 Mark Kettenis <kettenis@gnu.org>
8854
8855 * config/i386/tm-i386os9k.h: Removed.
8856
8857 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
8858 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
8859 they're identical to i[3456]86-*-sysv* now.
8860 * config/i386/i386v32.mh: Removed.
8861 * config/i386/xm-i386v32.h: Removed.
8862 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
8863
8864 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
8865
8866 * config/i386/i386dgux.mh: Removed.
8867 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
8868
8869 * configure.in: Fix typo.
8870 * configure: Regenerated.
8871
8872 2003-01-31 David Carlton <carlton@math.stanford.edu>
8873
8874 * dwarf2read.c (dwarf2_locate_sections): Set
8875 dwarf_ranges_section.
8876
8877 2003-01-31 Andrew Cagney <ac131313@redhat.com>
8878
8879 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
8880 * utils.c: Update comments documenting legitimate uses of PTR.
8881
8882 * utils.c: Re-indent.
8883
8884 * config/djgpp/fnchange.lst: Delete nindy files.
8885 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
8886 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
8887 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
8888 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
8889 * nindy-share/README, nindy-share/Onindy.c: Delete files.
8890 * nindy-tdep.c, nindy-share/Makefile: Delete files.
8891 * Makefile.in (init.c): Remove nindy references.
8892 (saber_gdb): Delete rule.
8893 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
8894 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
8895 and a68v-nat.c.
8896 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
8897 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
8898 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
8899 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
8900 nindy-share/stop.h.
8901 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
8902 * saber.suppress: Delete file.
8903
8904 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
8905
8906 * dbxread.c (stabs_data): New static variable.
8907 (fill_symbuf): Support an in-memory buffer for stabs data.
8908 (stabs_seek): New function.
8909 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
8910 (read_ofile_symtab): Use stabs_seek.
8911 (elfstab_build_psymtabs): Take an asection* instead of
8912 an offset and size. Relocate the stabs data if necessary.
8913 Save the section* for dbx_psymtab_to_symtab.
8914 * dwarf2read.c: Add section variables for each debug section.
8915 (dwarf2_locate_sections): Fill them in.
8916 (dwarf2_read_section): Take an asection* argument.
8917 Relocate the section contents if necessary.
8918 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
8919 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
8920 it to dwarf2_read_section.
8921 (dwarf2_build_frame_info): Update callers.
8922 * elfread.c (elf_symfile_read): Update call to
8923 elfstab_build_psymtabs.
8924 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
8925 (DBX_STAB_SECTION): New macro.
8926 * stabsread.h (elfstab_build_psymtabs): Update prototype.
8927 * symfile.c (symfile_dummy_outputs): New function.
8928 (symfile_relocate_debug_section): New function.
8929 * symfile.h (symfile_relocate_debug_section): Add prototype.
8930
8931 2003-01-31 Richard Henderson <rth@redhat.com>
8932
8933 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
8934 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
8935 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
8936 * alpha-tdep.c (alpha_register_name): Add "unique".
8937 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
8938 (ALPHA_UNIQUE_REGNUM): New.
8939 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
8940
8941 2003-01-31 Andrew Cagney <ac131313@redhat.com>
8942
8943 * README: Remove reference to Ericsson 1800 monitor.
8944 * Makefile.in (remote-es.o): Delete rule.
8945 (ALLDEPFILES): Delete remote-es.c.
8946 * remote-es.c: Delete file.
8947 * config/m68k/es1800.mt: Delete file.
8948 * config/djgpp/fnchange.lst: Update.
8949 * configure.tgt: Delete m68*-ericsson-* target.
8950
8951 2003-01-31 Adam Fedor <fedor@gnu.org>
8952
8953 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
8954 Remove duplicate/shadowing variable of same name.
8955
8956 2003-01-30 Jim Blandy <jimb@redhat.com>
8957
8958 * symfile.c (find_separate_debug_file): Assert that the objfile's
8959 directory name we compute ends with a slash, and then assume that
8960 that's so everywhere we use it.
8961
8962 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
8963
8964 * valops.c (value_assign): Flush frame cache after stores to memory
8965 also.
8966
8967 2003-01-30 Andrew Cagney <ac131313@redhat.com>
8968
8969 * Makefile.in (mon960-rom.o): Delete rule.
8970 * mon960-rom.c: Delete file.
8971
8972 2003-01-30 Andrew Cagney <ac131313@redhat.com>
8973
8974 * d10v-tdep.c: Include "frame-unwind.h".
8975 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
8976 list.
8977 (next_addr, uses_frame): Delete.
8978 (struct d10v_unwind_cache): Define.
8979 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
8980 Use info instead of next_addr and uses_frame globals.
8981 (d10v_frame_init_saved_regs): Delete function.
8982 (d10v_init_extra_frame_info): Delete function.
8983 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
8984 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
8985 init_frame_pc or frame_saved_pc.
8986 (d10v_pop_frame): Delete function.
8987 (do_d10v_pop_frame): Delete function.
8988 (d10v_frame_chain): Delete function.
8989 (d10v_frame_chain_valid): Delete function.
8990 (d10v_frame_pc_unwind): New function.
8991 (d10v_frame_id_unwind): New function.
8992 (saved_regs_unwinder): New function.
8993 (d10v_frame_register_unwind): New function.
8994 (d10v_frame_pop): New function.
8995 (d10v_frame_unwind): New variable.
8996 (d10v_frame_p): New function.
8997 (d10v_frame_saved_pc): Delete function.
8998 * Makefile.in (d10v-tdep.o): Update dependencies.
8999
9000 2003-01-30 J. Brobecker <brobecker@gnat.com>
9001
9002 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9003 causing some regressions due to a change in the default value
9004 for this macro.
9005
9006 2003-01-29 Richard Henderson <rth@redhat.com>
9007 Elena Zannoni <ezannoni@redhat.com>
9008 Daniel Jacobowitz <drow@mvista.com>
9009
9010 Fix PR gdb/961.
9011 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
9012 variables.
9013 (RANGES_SECTION): New.
9014 (dwarf_ranges_buffer): New variable.
9015 (struct comp_unit_head): Add member "die".
9016 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9017 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9018 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9019 (dwarf2_locate_sections): Likewise.
9020 (dwarf2_build_psymtabs): Read .debug_ranges.
9021 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9022 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9023 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9024 Look for DW_AT_ranges and return the bounding box.
9025
9026 2003-01-29 Brian Ford <ford@vss.fsi.com>
9027
9028 * win32-nat.c (cygwin_pid): Removed as unused.
9029 (child_attach): Try fall back to Cygwin pid.
9030
9031 2003-01-29 Jim Blandy <jimb@redhat.com>
9032
9033 * objfiles.h (struct objfile): Doc fix.
9034
9035 2003-01-29 Andrew Cagney <ac131313@redhat.com>
9036
9037 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9038 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9039 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9040 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9041 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9042 (FRAME_SAVED_PC): Change to a function with predicate.
9043 * gdbarch.h, gdbarch.c: Re-generate.
9044
9045 2003-01-28 Andrew Cagney <ac131313@redhat.com>
9046
9047 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9048
9049 * complaints.c (complain): Delete function.
9050 * complaints.h (struct deprecated_complaint): Delete definition.
9051 (complain): Delete declaration.
9052
9053 2003-01-28 Kevin Buettner <kevinb@redhat.com>
9054
9055 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9056 dummy frames.
9057
9058 2003-01-27 Andrew Cagney <ac131313@redhat.com>
9059
9060 * sentinel-frame.h, sentinel-frame.c: New files.
9061 * Makefile.in (frame.o): Update dependencies.
9062 (SFILES): Add sentinel-frame.c.
9063 (sentinel_frame_h): Define.
9064 (COMMON_OBS): Add sentinel-frame.o.
9065 (sentinel-frame.o): Specify dependencies.
9066 * frame.c: Include "sentinel-frame.h".
9067 (frame_register_unwind): Rewrite assuming that there is always a a
9068 ->next frame.
9069 (frame_register, generic_unwind_get_saved_register): Ditto.
9070 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9071 (create_sentinel_frame, unwind_to_current_frame): New functions.
9072 (get_current_frame): Rewrite using create_sentinel_frame and
9073 unwind_to_current_frame. When possible, always create a frame.
9074 (create_new_frame): Set next to the sentinel frame.
9075 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9076 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9077 ID cache when necessary.
9078 (frame_saved_regs_id_unwind): Use frame_relative_level.
9079 (deprecated_generic_get_saved_register): Use frame_relative_level,
9080 get_frame_saved_regs, get_frame_pc, get_frame_base and
9081 get_next_frame.
9082 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9083 frame_register.
9084
9085 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9086
9087 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9088
9089 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9090
9091 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9092 (maintenance_set_profile_cmd): Use error () instead of warning ().
9093
9094 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9095
9096 * configure.in: Check that -pg works if using --enable-profiling.
9097 Check for monstartup and _mcleanup regardless of --enable-profiling.
9098 * maint.c: Check for monstartup and _mcleanup before using them.
9099 * config.in: Regenerated.
9100 * configure: Regenerated.
9101
9102 2003-01-24 Nick Clifton <nickc@redhat.com>
9103
9104 * Add sh2e support:
9105
9106 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9107
9108 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9109 (sh2e_show_regs): New.
9110 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9111 * config/sh/tm-sh.h: Added sh2e to comments.
9112
9113 2003-01-23 Jim Blandy <jimb@redhat.com>
9114
9115 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9116 symbols found)" message here; we haven't checked for a separate
9117 debug info file yet, so we don't know yet.
9118 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9119 we've looked everywhere. Also, there's no need to print a special
9120 message when we're loading the separate debug info file: the one
9121 symbol_file_add prints is fine.
9122
9123 2003-01-23 Alexander Larsson <alexl@redhat.com>
9124 Jim Blandy <jimb@redhat.com>
9125
9126 Add support for executables whose debug info has been separated
9127 out into a separate file, leaving only a link behind.
9128 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9129 and separate_debug_objfile_backlink.
9130 (put_objfile_before): New declaration.
9131 * symfile.c: #include "filenames.h".
9132 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9133 debug info in a separate file, read that, too. Save the addrs
9134 argument, so we can use it again to read the separated debug info;
9135 syms_from_objfile modifies the table we pass it.
9136 (reread_symbols): After re-reading an objfile, call
9137 reread_separate_symbols to refresh its separate debug info
9138 objfile, if it has one.
9139 (reread_separate_symbols, find_separate_debug_file,
9140 get_debug_link_info, separate_debug_file_exists): New functions.
9141 (debug_file_directory): New global var.
9142 (_initialize_symfile): Initialize debug_file_directory, and
9143 provide the new `set debug-file-directory' command to let the user
9144 change it.
9145 * objfiles.c (free_objfile): If this objfile has its debug info in
9146 a separate objfile, free that one too. If this is itself a
9147 separate debug info objfile, clear our parent's backlink.
9148 (put_objfile_before): New function.
9149 * utils.c (gnu_debuglink_crc32): New function.
9150 * defs.h (gnu_debuglink_crc32): New declaration.
9151 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9152 * configure.in: Handle --with-separate-debug-dir config option.
9153 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9154 * acconfig.h (DEBUGDIR): New macro.
9155 * configure, aclocal.m4, config.in: Regenerated.
9156
9157 2003-01-22 Jim Blandy <jimb@redhat.com>
9158
9159 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9160 like the old symbol_file_add, but taking new arguments: you can
9161 now pass in either a `struct section_addr_info' list to say where
9162 each section is loaded, or a `struct section_offsets' table. Pass
9163 these new arguments through to syms_from_objfile as appropriate.
9164 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9165 with the appropriate quiescent values for the new arguments.
9166
9167 * symfile.c: #include "gdb_assert.h".
9168 (syms_from_objfile): Add the ability to pass in a section offset
9169 table directly, as an alternative to the section_addr_info table.
9170 Document arguments better.
9171 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9172 * symfile.h (syms_from_objfile): Update declaration.
9173 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9174 syms_from_objfile.
9175 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9176
9177 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
9178
9179 Original patch by Tom Tromey <tromey@cygnus.com> and
9180 Jason Molenda <jmolenda@apple.com>.
9181 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9182 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9183 * NEWS: Mention profiling.
9184 * configure.in (--enable-gdbtk): Fix typo.
9185 (--enable-profiling): New. Set PROFILE_CFLAGS.
9186 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9187 Fill in function.
9188 (profiling_state): New variable.
9189 (mcleanup_wrapper): New function.
9190 (_initialize_maint): Remove NOTYET, fix call to
9191 add_setshow_boolean_cmd for "maint set profile".
9192 * configure: Regenerated.
9193
9194 2003-01-21 Martin M. Hunt <hunt@redhat.com>
9195
9196 * Makefile.in (install-gdbtk): Install PNG images too.
9197
9198 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9199
9200 * exec.c (text_start): Delete global variable.
9201 (exec_file_attach): Make text_start local to the function.
9202 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9203 * valops.c (hand_function_call): Delete code that handles
9204 BEFORE_TEXT_END and AFTER_TEXT_END.
9205 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9206 of CALL_DUMMY_LOCATION.
9207 * gdbarch.c: Regenerate.
9208 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9209 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9210 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9211 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9212 (text_end): Delete extern declaration.
9213
9214 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9215
9216 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9217 * blockframe.c (backtrace_below_main): Move to "frame.c".
9218 (frame_chain_valid): Delete check for backtrace_below_main.
9219 (_initialize_blockframe): Delete initialization, move ``set
9220 backtrace-below-main'' command to "frame.c".
9221 (do_flush_frames_sfunc): Delete function.
9222 * frame.c: Include "command.h" and "gdbcmd.h".
9223 (frame_type_from_pc): New function.
9224 (create_new_frame): Use frame_type_from_pc.
9225 (legacy_get_prev_frame): New function.
9226 (get_prev_frame): Rewrite. When an old style frame, call
9227 legacy_get_prev_frame. Otherwize, unwind the PC first.
9228 (_initialize_frame): Add ``set backtrace-below-main'' command.
9229 * Makefile.in (frame.o): Update dependencies.
9230
9231 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9232
9233 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9234 DEPRECATED_REGISTERS_INFO.
9235
9236 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9237
9238 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9239 Maintainers'. Update `Various Maintainers'.
9240
9241 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9242
9243 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9244 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9245 Suppress actual parameters when `-'.
9246 * gdbarch.h, gdbarch.c: Regenerate.
9247
9248 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9249
9250 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9251 code handling dummy frames.
9252
9253 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9254
9255 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9256 (struct frame_unwind): Add field pop.
9257 * frame.h (frame_pop): Declare.
9258 * frame.c (frame_saved_regs_pop): New function.
9259 (trad_frame_unwinder): Add frame_saved_regs_pop.
9260 (frame_pop): New function.
9261 * dummy-frame.c (dummy_frame_pop): New function.
9262 (discard_innermost_dummy): New function.
9263 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9264 (dummy_frame_unwind): Add dummy_frame_pop.
9265 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9266 * valops.c (hand_function_call): Ditto.
9267 * stack.c (return_command): Ditto.
9268
9269 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9270
9271 * cris-tdep.c: Fix function declaration indentation.
9272 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9273 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9274 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9275 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9276 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9277 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9278
9279 2003-01-18 Michael Chastain <mec@shout.net>
9280
9281 * README (Unpacking and Installation -- quick overview):
9282 Warn against ".../gdb-5.3/gdb/configure".
9283
9284 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9285
9286 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9287 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9288 (struct frame_unwind): Declare opaque.
9289 (dummy_frame_p): Declare function.
9290 * dummy-frame.c (dummy_frame_id_unwind): Make static.
9291 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9292 * dummy-frame.c: Include "frame-unwind.h".
9293 (dummy_frame_p): New function.
9294 (dummy_frame_unwind): New variable.
9295 * frame.c: Include "frame-unwind.h".
9296 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
9297 to use the new unwind field.
9298 (set_unwind_by_pc): Delete function.
9299 (create_new_frame, get_prev_frame): Set unwind field using
9300 frame_unwind_find_by_pc.
9301 (trad_frame_unwind, trad_frame_unwinder): New variables.
9302 * frame.h (trad_frame_unwind): Declare variable.
9303 (frame_id_unwind_ftype): Delete declaration.
9304 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
9305 (struct frame_unwind): Declare opaque.
9306 (struct frame_info): Replace the fields id_unwind, pc_unwind and
9307 register_unwind with a single unwind pointer.
9308 * frame-unwind.h, frame-unwind.c: New files.
9309 * Makefile.in (SFILES): Add frame-unwind.c.
9310 (frame_unwind_h): Define.
9311 (COMMON_OBS): Add frame-unwind.o.
9312 (frame-unwind.o): Specify dependencies.
9313 (frame.o, dummy-frame.o): Update dependencies.
9314
9315 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9316
9317 * ada-valprint.c: Eliminate PTR.
9318 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
9319 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
9320 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
9321 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
9322 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
9323 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
9324 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
9325
9326 2003-01-17 Andrew Cagney <ac131313@redhat.com>
9327
9328 * main.c (captured_main): Don't use PTR.
9329 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
9330 * gdbtypes.c (lookup_primitive_typename): Ditto.
9331 (lookup_struct_elt_type): Ditto.
9332 * f-valprint.c (info_common_command): Ditto.
9333 (list_all_visible_commons): Ditto.
9334 * jv-typeprint.c (java_type_print_base): Ditto.
9335
9336 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
9337 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
9338 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
9339 i386-interix-nat.c and i386-interix-tdep.c. Rename
9340 m68klinux-nat.c and m68klinux-tdep.c. Rename
9341 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
9342 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
9343 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
9344 * main.c (captured_main): Use xfree, not free.
9345
9346 2003-01-16 Andrew Cagney <ac131313@redhat.com>
9347
9348 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
9349 ID back using a parameter.
9350 * frame.c (frame_id_unwind): Update call.
9351 (frame_saved_regs_id_unwind): Update.
9352 * dummy-frame.c (dummy_frame_id_unwind): Update function.
9353 * dummy-frame.h (struct frame_id): Add opaque declaration.
9354 (dummy_frame_id_unwind): Update declaration.
9355
9356 2003-01-15 Andrew Cagney <ac131313@redhat.com>
9357
9358 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
9359
9360 2003-01-15 Stephen P. Smith <ischis2@cox.net>
9361
9362 * MAINTAINERS (Stephen P. Smith): Updated email address.
9363
9364 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
9365
9366 Fix PR gdb/898
9367 * breakpoint.c (until_break_command): Add new argument. Use it to
9368 decide whether to stop only at the current frame or not.
9369 * breakpoint.h (until_break_command): Update prototype.
9370 * infcmd.c (until_command): Add new argument to until_break_command
9371 call.
9372 (advance_command): New function.
9373 (_initialize_infcmd): Update help string for 'until' command.
9374 Add new 'advance' command.
9375
9376 2003-01-14 David Carlton <carlton@math.stanford.edu>
9377
9378 * linespec.c (decode_line_1): Normalize comments.
9379 (set_flags): Ditto.
9380 (locate_first_half): Ditto.
9381 (decode_compound): Ditto.
9382 (symtab_from_filename): Ditto.
9383 (decode_all_digits): Ditto.
9384 (decode_dollar): Ditto.
9385 (find_methods): Ditto.
9386 (find_toplevel_char): Ditto.
9387
9388 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9389
9390 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
9391 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
9392 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
9393 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
9394 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
9395 * language.c, language.h, m32r-tdep.c: Update copyright.
9396 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
9397 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
9398 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
9399 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
9400 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9401 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
9402
9403 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9404
9405 * stabsread.h (process_later, resolve_cfront_continuation):
9406 Obsolete.
9407 Update copyright years.
9408 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
9409 Update copyright year.
9410 * dbxread.c(struct cont_elem): Obsolete.
9411 (process_later, process_now): Obsolete functions.
9412 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
9413 Update copyright year.
9414 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
9415 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
9416 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
9417 (parse_partial_symbols): Obsolete cfront support.
9418 * stabsread.c
9419 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
9420 macros.
9421 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
9422 read_cfront_baseclasses, read_cfront_member_functions,
9423 resolve_cfront_continuation,read_cfront_static_fields,
9424 copy_cfront_struct_fields): Obsolete functions.
9425 (define_symbol, read_one_struct_field): Obsolete cfront support.
9426 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
9427 Update Copyright year.
9428
9429 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9430
9431 * stack.c (print_frame_info, print_stack_frame_base_stub,
9432 print_stack_frame_base, show_and_print_stack_frame_stub,
9433 show_and_print_stack_frame, print_only_stack_frame_stub,
9434 print_only_stack_frame): Delete functions.
9435 (print_stack_frame_stub): Call print_frame_info instead of
9436 print_frame_info_base.
9437 (print_frame_info_base): Rename to print_frame_info.
9438 (backtrace_command_1): Call print_frame_info, instead of
9439 print_frame_info_base.
9440 (current_frame_command): Call print_stack_frame, instead of
9441 print_only_stack_frame.
9442 (frame_command): Call print_stack_frame, instead of
9443 show_and_print_stack_frame.
9444 (up_command): Ditto.
9445 (down_command): Ditto.
9446 * frame.h (print_only_stack_frame): Delete prototype.
9447 * infrun.c (normal_stop): Call print_stack_frame, instead of
9448 show_and_print_stack_frame.
9449 * thread.c (info_threads_command): Call print_stack_frame, instead
9450 of print_only_stack_frame.
9451
9452 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9453
9454 * README (Graphical interface to GDB): Update URL. Point at
9455 gdb/links/.
9456
9457 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
9458 version match.
9459
9460 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9461
9462 * symtab.c (find_pc_sect_line): Don't consider end-of-function
9463 lines.
9464
9465 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9466
9467 * thread-db.c (attach_thread): Prototype.
9468 (struct private_thread_info): Remove lwpid. Add thread handle (th),
9469 thread information (ti), and valid flags (th_valid, ti_valid).
9470 (attach_thread): Move target_pid_to_str call to after the thread
9471 is added to GDB's list. Initialize the cache.
9472 (thread_get_info_callback, thread_db_map_id2thr)
9473 (thread_db_get_info): New functions.
9474 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
9475 (thread_db_store_registers, thread_db_thread_alive)
9476 (thread_db_get_thread_local_address): Use them.
9477 (thread_db_pid_to_str): Likewise. Return "Missing" instead
9478 of calling error() for threads in unknown state.
9479
9480 (clear_lwpid_callback): New function.
9481 (thread_db_resume): Use it to clear the cache.
9482
9483 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9484
9485 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
9486 (resume_callback): Remove dead code.
9487
9488 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9489
9490 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
9491 predicate.
9492 * gdbarch.h, gdbarch.c: Regenerate.
9493 * stack.c (frame_info): Only initialize the saved registers when
9494 FRAME_INIT_SAVED_REGS_P.
9495 * frame.c (frame_saved_regs_register_unwind): Assert
9496 FRAME_INIT_SAVED_REGS_P.
9497 (deprecated_generic_get_saved_register): Ditto.
9498
9499 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9500
9501 * source.c (openp): Squelch warning about "filename".
9502
9503 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9504
9505 * source.c (openp): If the file does not exist don't necessarily
9506 search the path.
9507
9508 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9509
9510 Fix PR gdb/872.
9511 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
9512 (integer_types_same_name_p): New function.
9513 (rank_one_type): Use it.
9514 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
9515
9516 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9517
9518 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
9519 variables.
9520 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
9521 * configure.in: Add --with-sysroot.
9522 * configure: Regenerated.
9523 * main.c (gdb_sysroot): New variable.
9524 (captured_main): Initialize gdb_sysroot.
9525 * defs.h (gdb_sysroot): New extern declaration.
9526 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
9527
9528 2003-01-12 Michael Chastain <mec@shout.net>
9529
9530 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
9531
9532 2003-01-12 Michael Chastain <mec@shout.net>
9533
9534 * top.c (print_gdb_version): Bump copyright year to 2003.
9535
9536 2003-01-12 David Carlton <carlton@bactrian.org>
9537
9538 * linespec.c (symtab_from_filename): Rename variable 's' to
9539 'file_symtab'.
9540
9541 2003-01-12 Andrew Cagney <ac131313@redhat.com>
9542
9543 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
9544 dummy frame.
9545 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
9546
9547 2003-01-12 Andrew Cagney <ac131313@redhat.com>
9548
9549 * d10v-tdep.c: Include "gdb_assert.h".
9550 (d10v_store_return_value): Rewrite to match current interface.
9551 (d10v_extract_struct_value_address): Ditto.
9552 (d10v_extract_return_value): Ditto.
9553 (d10v_gdbarch_init): Set store_restore_value,
9554 extract_struct_value_address and extract_return_value.
9555
9556 2003-01-12 J. Brobecker <brobecker@gnat.com>
9557
9558 * hpread.c (set_namestring): New procedure replacing the
9559 SET_NAMESTRING macro.
9560 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
9561 by calls to set_namestring.
9562
9563 2003-01-11 J. Brobecker <brobecker@gnat.com>
9564
9565 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
9566 a compilation warning.
9567 (hpread_process_one_debug_symbol): Likewise.
9568
9569 2003-01-10 David Carlton <carlton@math.stanford.edu>
9570
9571 * linespec.c (decode_line_1): Rename variable 's' to
9572 'file_symtab'.
9573 (decode_all_digits): Rename argument 's' to 'file_symtab'.
9574 (decode_dollar): Ditto.
9575 (decode_variable): Ditto.
9576 (symbol_found): Ditto.
9577
9578 2003-01-09 Michael Chastain <mec@shout.net>
9579
9580 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
9581
9582 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
9583
9584 * win32-nat.c (set_process_privilege): New function.
9585 (child_attach): Call set_process_privilege() to enable the
9586 SE_DEBUG_NAME user privilege if available in process token.
9587
9588 2003-01-10 J. Brobecker <brobecker@gnat.com>
9589
9590 * hpread.c (hpread_process_one_debug_symbol): Fix a small
9591 compilation error in the previous revision.
9592
9593 2003-01-09 David Carlton <carlton@math.stanford.edu>
9594
9595 * linespec.c: Update copyright.
9596
9597 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
9598
9599 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
9600 than inferior_ptid.
9601 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
9602
9603 2003-01-09 Andrew Cagney <ac131313@redhat.com>
9604
9605 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
9606 Update comments.
9607 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
9608 (frame_saved_regs_zalloc): Update.
9609 (frame_saved_regs_register_unwind): Update.
9610 (create_new_frame): Update.
9611 (get_prev_frame): Update.
9612 (frame_extra_info_zalloc): Update.
9613 (deprecated_get_frame_saved_regs): Update.
9614 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
9615 * cris-tdep.c: Update comment.
9616
9617 * somsolib.h: Fix function indentation.
9618 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
9619 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
9620 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
9621 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
9622 * somsolib.c, inftarg.c: Remove assignment in if conditional.
9623
9624 * infrun.c (follow_fork): Use ISO C definition.
9625 * expprint.c (print_subexp): Use xfree instead of free.
9626 * charset.c: Include "gdb_string.h" instead of <string.h>.
9627 (register_iconv_charsets): Use ISO C definition.
9628 (host_charset, target_charset): Ditto.
9629 * Makefile.in (charset.o): Update dependencies.
9630 (mi-cmd-env.o): Update dependencies.
9631
9632 2003-01-08 Andrew Cagney <cagney@redhat.com>
9633
9634 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
9635 get_frame_base.
9636
9637 2003-01-08 Andrew Cagney <ac131313@redhat.com>
9638
9639 * gdb_mbuild.sh: Add --keep option. When specified, keep the
9640 build directories. Save edited gdb output in Mbuild.log. If a
9641 build fails, remove any final GDB executable.
9642
9643 2003-01-08 Andrew Cagney <ac131313@redhat.com>
9644
9645 * gdb_mbuild.sh: Edit the output of `maint print architecture'
9646 replacing hex constants with function names and stripping leading
9647 file name directory prefixes.
9648
9649 2003-01-08 Andrew Cagney <cagney@redhat.com>
9650
9651 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
9652 get_frame_base.
9653
9654 2003-01-08 David Carlton <carlton@math.stanford.edu>
9655
9656 * linespec.c (decode_line_1): Move code into decode_variable.
9657 (decode_variable): New function.
9658
9659 2003-01-08 Andrew Cagney <ac131313@redhat.com>
9660
9661 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
9662
9663 2003-01-08 Andrew Cagney <cagney@redhat.com>
9664
9665 * cris-tdep.c (cris_frame_init_saved_regs): Use
9666 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
9667 saved_regs buffer.
9668 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9669 (sh64_nofp_frame_init_saved_regs): Ditto.
9670 (sh_fp_frame_init_saved_regs): Ditto.
9671 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
9672 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
9673 * mcore-tdep.c (analyze_dummy_frame): Ditto.
9674 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9675
9676 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
9677
9678 * minsyms.c (lookup_minimal_symbol): Update comment.
9679 (lookup_minimal_symbol_text): Update comment. Use the hash table.
9680 (lookup_minimal_symbol_solib_trampoline): Likewise.
9681
9682 2003-01-08 Andrew Cagney <cagney@redhat.com>
9683
9684 * d10v-tdep.c (d10v_init_extra_frame_info): Use
9685 frame_relative_level.
9686
9687 * alpha-tdep.c: Use get_frame_extra_info.
9688 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9689 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
9690 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
9691 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
9692
9693 * alpha-tdep.c: Use get_next_frame.
9694 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9695 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
9696 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
9697 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
9698 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
9699 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
9700 * xstormy16-tdep.c: Ditto.
9701
9702 2003-01-07 Andrew Cagney <cagney@redhat.com>
9703
9704 * alpha-tdep.c: Use get_frame_base.
9705 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9706 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
9707 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
9708 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
9709 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
9710 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
9711 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
9712 * config/sparc/tm-sparc.h: Ditto.
9713
9714 2003-01-07 Andrew Cagney <cagney@redhat.com>
9715
9716 * frame.c (deprecated_get_frame_context): New function.
9717 (deprecated_set_frame_context): New function.
9718 * frame.h (deprecated_get_frame_context): Declare.
9719 (deprecated_set_frame_context): Declare.
9720 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
9721 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
9722
9723 2003-01-07 Andrew Cagney <cagney@redhat.com>
9724
9725 * frame.c (deprecated_set_frame_next_hack): New function.
9726 (deprecated_set_frame_prev_hack): New function.
9727 * frame.h (deprecated_set_frame_next_hack): Declare.
9728 (deprecated_set_frame_prev_hack): Declare.
9729 * mcore-tdep.c (analyze_dummy_frame): Use
9730 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
9731 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9732
9733 2003-01-07 David Carlton <carlton@math.stanford.edu>
9734
9735 * linespec.c (decode_line_1): Move code into decode_dollar.
9736 (decode_dollar): New function.
9737
9738 2003-01-07 Andrew Cagney <cagney@redhat.com>
9739
9740 * arm-tdep.c (arm_init_extra_frame_info): Use
9741 deprecated_update_frame_base_hack.
9742 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
9743 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9744 (fix_frame_pointer): Ditto.
9745 (mn10300_analyze_prologue): Ditto.
9746
9747 2003-01-07 Andrew Cagney <cagney@redhat.com>
9748
9749 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
9750 extra_info using frame_extra_info_zalloc.
9751 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9752 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
9753 (sh64_init_extra_frame_info): Ditto.
9754 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
9755 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
9756 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
9757 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
9758 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
9759 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
9760 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
9761 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
9762 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
9763 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
9764 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9765 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
9766
9767 * mn10300-tdep.c (analyze_dummy_frame): Use
9768 deprecated_set_frame_extra_info_hack.
9769 * mcore-tdep.c (analyze_dummy_frame): Ditto.
9770
9771 2003-01-07 J. Brobecker <brobecker@gnat.com>
9772
9773 * mdebugread.c (parse_symbol): Skip stProc entries which storage
9774 class is not scText. These do not define "real" procedures.
9775 (parse_partial_symbols): Likewise.
9776
9777 2003-01-06 Michael Snyder <msnyder@redhat.com>
9778
9779 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
9780
9781 2003-01-06 Andrew Cagney <ac131313@redhat.com>
9782
9783 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
9784 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
9785 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
9786 deprecated_frame_xmalloc_with_cleanup.
9787 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
9788 deprecated_frame_xmalloc.
9789 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
9790 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
9791
9792 2003-01-06 Andrew Cagney <cagney@redhat.com>
9793
9794 * x86-64-linux-tdep.c: Include "osabi.h".
9795 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
9796
9797 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
9798
9799 2003-01-06 Andrew Cagney <cagney@redhat.com>
9800
9801 * MAINTAINERS (Target Instruction Set Architectures): Update
9802 arm-elf. Can be built with -Werror, has been multiarched.
9803
9804 * value.h (unpack_long): Make buffer parameter constant.
9805 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
9806 * scm-lang.h (scm_parse): Ditto.
9807 * defs.h (extract_typed_address, extract_address): Ditto.
9808 (extract_long_unsigned_integer): Ditto.
9809 * inferior.h (unsigned_pointer_to_address): Ditto.
9810 (signed_pointer_to_address): Ditto.
9811 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
9812 * gdbarch.h, gdbarch.c: Regenerate.
9813 * findvar.c (extract_long_unsigned_integer): Update.
9814 (extract_address): Update.
9815 (extract_typed_address): Update.
9816 (unsigned_pointer_to_address): Update.
9817 * values.c (unpack_long): Update.
9818 (unpack_double): Update.
9819 (unpack_pointer): Update.
9820 (unpack_field_as_long): Update.
9821 * d10v-tdep.c (d10v_pointer_to_address): Update.
9822 * avr-tdep.c (avr_pointer_to_address): Update.
9823 * scm-lang.c (scm_unpack): Update.
9824 * findvar.c (signed_pointer_to_address): Update.
9825
9826 2003-01-06 Michal Ludvig <mludvig@suse.cz>
9827
9828 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
9829 since it is in i386-tdep.c.
9830
9831 2003-01-06 J. Brobecker <brobecker@gnat.com>
9832
9833 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
9834 failure introduced in the previous change.
9835
9836 2003-01-05 Michael Chastain <mec@shout.net>
9837
9838 * README: Remove references to deleted remote-*.c files:
9839 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
9840 remote-nrom.c, remote-os9k.c, remote-udi.c.
9841
9842 2003-01-05 Mark Kettenis <kettenis@gnu.org>
9843
9844 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
9845 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
9846 i386_get_longjmp_target.
9847
9848 2003-01-05 Andrew Cagney <ac131313@redhat.com>
9849
9850 * arm-tdep.c (prologue_cache): Change to a pointer.
9851 (_initialize_arm_tdep): Allocate prologue_cache.
9852 (check_prologue_cache): Update.
9853 (save_prologue_cache): Update.
9854 (arm_gdbarch_init): Update.
9855
9856 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9857
9858 * stabsread.c (update_method_name_from_physname): Call complaint()
9859 instead of error.
9860
9861 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9862
9863 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
9864 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
9865 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
9866
9867 * blockframe.c: Include "gdbcmd.h" and "command.h".
9868 (backtrace_below_main): New variable.
9869 (file_frame_chain_valid, func_frame_chain_valid)
9870 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
9871 (generic_func_frame_chain_valid): Remove functions.
9872 (frame_chain_valid, do_flush_frames_sfunc): New functions.
9873 (_initialize_blockframe): New function.
9874 * Makefile.in (blockframe.o): Update dependencies.
9875 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
9876 comment. Call frame_chain_valid ().
9877 * frame.h: Remove old prototypes. Add prototype for
9878 frame_chain_valid and update comments to match.
9879 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
9880 Remove old comment.
9881 * gdbarch.h: Regenerated.
9882 * gdbarch.c: Regenerated.
9883
9884 * alpha-tdep.c (alpha_gdbarch_init): Don't call
9885 set_gdbarch_frame_chain_valid.
9886 * avr-tdep.c (avr_gdbarch_init): Likewise.
9887 * cris-tdep.c (cris_gdbarch_init): Likewise.
9888 * frv-tdep.c (frv_gdbarch_init): Likewise.
9889 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
9890 * i386-tdep.c (i386_svr4_init_abi): Likewise.
9891 (i386_nw_init_abi): Likewise.
9892 (i386_gdbarch_init): Likewise.
9893 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
9894 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
9895 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
9896 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
9897 * mips-tdep.c (mips_gdbarch_init): Likewise.
9898 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
9899 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
9900 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9901 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9902 * s390-tdep.c (s390_gdbarch_init): Likewise.
9903 * sh-tdep.c (sh_gdbarch_init): Likewise.
9904 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
9905 * v850-tdep.c (v850_gdbarch_init): Likewise.
9906 * vax-tdep.c (vax_gdbarch_init): Likewise.
9907 * x86-64-tdep.c (x86_64_init_abi): Likewise.
9908
9909 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
9910 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
9911 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
9912 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
9913 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
9914 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
9915 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
9916 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
9917
9918 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9919
9920 * Makefile.in (acconfig_h): Remove incorrect macro.
9921 (config_h): Define.
9922 (osabi.o): Update dependencies.
9923 * configure.tgt: Set gdb_osabi based on target triplet.
9924 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
9925 * configure: Regenerated.
9926 * config.in: Regenerated.
9927 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
9928 (GDB_OSABI_DEFAULT): Define if not already defined.
9929 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
9930 (set_osabi_string): New variables.
9931 (gdbarch_register_osabi): Add new OS ABI to
9932 gdb_osabi_available_names.
9933 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
9934 (set_osabi, show_osabi): New functions.
9935 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
9936
9937 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9938
9939 * arch-utils.c (gdbarch_info_init): Set osabi to
9940 GDB_OSABI_UNINITIALIZED.
9941 * gdbarch.sh: Add osabi to struct gdbarch and to struct
9942 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
9943 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
9944 * gdbarch.c: Regenerated.
9945 * gdbarch.h: Regenerated.
9946 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
9947 there's no BFD.
9948 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
9949 * osabi.h (enum gdb_osabi): Move to defs.h.
9950 (gdbarch_init_osabi): Update prototype.
9951 * defs.h (enum gdb_osabi): Moved here.
9952 * Makefile.in: Update dependencies.
9953
9954 * alpha-tdep.h: Don't include "osabi.h".
9955 (struct gdbarch_tdep): Remove osabi member.
9956 * alpha-tdep.c: Include "osabi.h".
9957 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9958 iterate over arches. Update call to gdbarch_init_osabi.
9959 (alpha_dump_tdep): Don't dump osabi.
9960 * alpha-linux-tdep.c: Include "osabi.h".
9961 * alpha-osf1-tdep.c: Include "osabi.h".
9962 * alphafbsd-tdep.c: Include "osabi.h".
9963 * alphanbsd-tdep.c: Include "osabi.h".
9964
9965 * arm-tdep.h: Don't include "osabi.h".
9966 (struct gdbarch_tdep): Remove osabi member.
9967 * arm-tdep.c: Include "osabi.h".
9968 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9969 iterate over arches. Update call to gdbarch_init_osabi.
9970 (arm_dump_tdep): Don't dump osabi.
9971 * arm-linux-tdep.c: Include "osabi.h".
9972 * armnbsd-tdep.c: Include "osabi.h".
9973
9974 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
9975 Update call to gdbarch_init_osabi.
9976
9977 * i386-tdep.h: Don't include "osabi.h".
9978 (struct gdbarch_tdep): Remove osabi member.
9979 * i386-tdep.c: Include "osabi.h".
9980 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9981 iterate over arches. Update call to gdbarch_init_osabi.
9982 (i386_dump_tdep): Don't dump osabi.
9983 * i386-linux-tdep.c: Include "osabi.h".
9984 * i386-sol2-tdep.c: Include "osabi.h".
9985 * i386bsd-tdep.c: Include "osabi.h".
9986 * i386gnu-tdep.c: Include "osabi.h".
9987 * i386ly-tdep.c: Include "osabi.h".
9988 * i386nbsd-tdep.c: Include "osabi.h".
9989 * i386obsd-tdep.c: Include "osabi.h".
9990
9991 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
9992 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9993 check osabi when iterating over arches. Update call to
9994 gdbarch_init_osabi.
9995 (mips_dump_tdep): Don't dump osabi.
9996
9997 * ns32k-tdep.h: Don't include "osabi.h".
9998 (struct gdbarch_tdep): Remove.
9999 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10000 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10001 allocate tdep. Update call to gdbarch_init_osabi.
10002 (ns32k_dump_tdep): Remove.
10003 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10004 * ns32knbsd-tdep.c: Include "osabi.h".
10005
10006 * ppc-tdep.h: Don't include "osabi.h".
10007 (struct gdbarch_tdep): Remove osabi member.
10008 * rs6000-tdep.c: Include "osabi.h".
10009 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10010 osabi when iterating over arches. Update call to
10011 gdbarch_init_osabi.
10012 (rs6000_dump_tdep): Don't dump osabi.
10013 * ppc-linux-tdep.c: Include "osabi.h".
10014 * ppcnbsd-tdep.c: Include "osabi.h".
10015
10016 * sh-tdep.h: Don't include "osabi.h".
10017 (struct gdbarch_tdep): Remove osabi member.
10018 * sh-tdep.c: Include "osabi.h".
10019 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10020 iterate over arches. Update call to gdbarch_init_osabi.
10021 (sh_dump_tdep): Don't dump osabi.
10022 * shnbsd-tdep.c: Include "osabi.h".
10023
10024 * sparc-tdep.c: Include "osabi.h".
10025 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10026 iterate over arches. Update call to gdbarch_init_osabi.
10027 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10028 tdep structure.
10029
10030 * vax-tdep.h: Don't include "osabi.h".
10031 (struct gdbarch_tdep): Remove.
10032 * vax-tdep.c: Include "osabi.h".
10033 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10034 iterate over arches. Don't allocate tdep. Update call
10035 to gdbarch_init_osabi.
10036 (vax_dump_tdep): Remove.
10037 (_initialize_vax_tdep): Update call to gdbarch_register.
10038
10039 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10040
10041 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10042 entirely.
10043 (breakpoint_re_set_one): Don't fetch the value for a disabled
10044 watchpoint.
10045
10046 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10047
10048 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10049 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10050 (COERCE_FLOAT_TO_DOUBLE): Remove.
10051 * gdbarch.c: Regenerate.
10052 * gdbarch.h: Regenerate.
10053 * Makefile.in: Remove value_h from gdbarch_h.
10054 * valops.c (coerce_float_to_double): New variable.
10055 (default_coerce_float_to_double): Remove.
10056 (standard_coerce_float_to_double): Remove.
10057 (value_arg_coerce): Use coerce_float_to_double.
10058 (_initialize_valops): Add "set coerce-float-to-double".
10059 * value.h (default_coerce_float_to_double): Remove prototype.
10060 (standard_coerce_float_to_double): Remove prototype.
10061
10062 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10063 prototyped.
10064 * mdebugread.c (parse_symbol): Likewise.
10065 * stabsread.c (define_symbol): Mark all functions as prototyped.
10066
10067 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10068 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10069 set_gdbarch_coerce_float_to_double.
10070 * arm-tdep.c (arm_gdbarch_init): Likewise.
10071 * frv-tdep.c (frv_gdbarch_init): Likewise.
10072 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10073 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10074 * mips-tdep.c (mips_gdbarch_init): Likewise.
10075 (mips_coerce_float_to_double): Remove.
10076 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10077 (rs6000_coerce_float_to_double): Remove.
10078 * s390-tdep.c (s390_gdbarch_init): Likewise.
10079 * sh-tdep.c (sh_gdbarch_init): Likewise.
10080 (sh_coerce_float_to_double): Remove.
10081 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10082 (sparc_coerce_float_to_double): Remove.
10083 * v850-tdep.c (v850_gdbarch_init): Likewise.
10084 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10085 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10086 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10087 (hppa_coerce_float_to_double): Remove prototype.
10088 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10089
10090 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10091
10092 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10093
10094 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10095
10096 Suggested by Stewart Brown <sb24@avaya.com>:
10097 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10098 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10099 (c_type_print_varspec_suffix): Likewise.
10100
10101 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10102
10103 * configure.in: Don't set and AC_SUBST SUBDIRS.
10104 * configure: Regenerated.
10105
10106 * configure.in: Remove code dealing with shared libraries.
10107 * Makefile.in: Remove HLDFLAGS and HLDENV.
10108 * configure: Regenerated.
10109
10110 2003-01-04 Andrew Cagney <ac131313@redhat.com>
10111
10112 * frame.c (deprecated_frame_xmalloc): New function.
10113 (deprecated_set_frame_saved_regs_hack): New function.
10114 (deprecated_set_frame_extra_info_hack): New function.
10115 * frame.h (deprecated_frame_xmalloc): Declare.
10116 (deprecated_set_frame_saved_regs_hack): Declare.
10117 (deprecated_set_frame_extra_info_hack): Declare.
10118
10119 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10120
10121 * configure.in: Move code that provides the --enable-gdbtk option
10122 right after the code that handles the --enable-tui option, and
10123 polish it somewhat.
10124 * configure: Regenerated.
10125
10126 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10127 AC_CHECK_FUNCS and remove the old check for pread64.
10128 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10129 * acconfig.h (_GNU_SOURCE): Add.
10130 (HAVE_PREAD64): Remove.
10131 * configure, aclocal.m4, config.in: Regenerated.
10132
10133 2003-01-03 Andrew Cagney <ac131313@redhat.com>
10134
10135 * alpha-tdep.c: Use get_frame_saved_regs.
10136 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10137 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10138 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10139 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10140 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10141
10142 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10143
10144 * configure.in: Remove all use of the SUBDIRS variable; add
10145 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10146 code providing the --enable-multi-ice option, and move it right in
10147 front of the code that checks whether gdbserver is supported.
10148 Polish that too.
10149 * configure: Regenerated.
10150 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10151 @SUBDIRS@.
10152
10153 2003-01-03 Andrew Cagney <cagney@redhat.com>
10154
10155 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10156 * avr-tdep.c, cris-tdep.c: Ditto.
10157 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10158 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10159
10160 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10161
10162 * configure.in: Remove --enable-netrom option.
10163 * configure: Regenerated.
10164
10165 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10166
10167 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10168 declaration for `struct re_pattern_buffer' instead.
10169 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10170
10171 2003-01-03 J. Brobecker <brobecker@gnat.com>
10172
10173 * mdebugread.c (parse_symbol): Count until the stEnd matching
10174 the structure name.
10175
10176 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10177
10178 * configure.in: Remove --with-cpu option.
10179 subscripts. Remove evil changequotes here.
10180 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10181 * config.in, configure: Regenerated.
10182
10183 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10184 * configure.in: Cleanup section that sources GDB and BFD configure
10185 subscripts. Remove evil changequotes here.
10186 * config.in, configure: Regenerated.
10187
10188 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10189
10190 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10191 frame accessor methods.
10192 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10193 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10194 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10195 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10196 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10197 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10198 * z8k-tdep.c: Ditto.
10199
10200 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10201
10202 * configure.in: Remove UI_OUT configuration code.
10203 * ada-lang.c: Update assuming UI_OUT is always true.
10204 * Makefile.in (UIOUT_CFLAGS): Remove.
10205 * configure: Regenerated.
10206 * TODO: Remove blurb about elimination of -DUI_OUT.
10207
10208 * configure.in: Move code that provides the --enable-gdbcli,
10209 --enable-gdbmi options right before the code that handles the
10210 --enable-tui option. Polish a bit.
10211 * configure: Regenerated.
10212
10213 * configure.in: Rewrite check for GNU regex and the
10214 --without-included regex option, and move it into the "Checks for
10215 library functions" section. This makes us use the system regex
10216 again by default on systems with version 2 of the GNU C library.
10217 This was apparently broken.
10218 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10219 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10220 * config.in, configure: Regenerated.
10221
10222 * configure.in: Move code that provides the --enable-tui option
10223 before the "Checks for libraries" section. Polish the code
10224 somewhat and set need_curses to yes if we build the TUI. Rewrite
10225 code that looks for a library providing termcap functionality to
10226 match more closely what's done in the Readline library, and move
10227 it into to the "Checks for libraries" section.
10228 * configure: Regenerated.
10229 * Makefile.in (TERMCAP): Remove variable.
10230 * config/i386/go32.mh (TERMCAP): Remove variable.
10231
10232 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10233
10234 * MAINTAINERS: Mention gdb_mbuild.sh.
10235 * gdb_mbuild.sh: Rewrite.
10236
10237 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10238
10239 * configure.in: Fix typo in last change.
10240 * config.in, configure: Regenerated.
10241
10242 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10243
10244 * valarith.c (value_binop): Delete obsolete code and comments.
10245 * configure.host: Ditto.
10246 * buildsym.h (make_blockvector): Ditto.
10247 * buildsym.c (make_blockvector): Ditto.
10248 * defs.h (enum language): Ditto.
10249 (chill_demangle): Ditto.
10250 * elfread.c (elf_symtab_read): Ditto.
10251 * dwarfread.c (CHILL_PRODUCER): Ditto.
10252 (set_cu_language): Ditto.
10253 (handle_producer): Ditto.
10254 * expprint.c (print_subexp): Ditto.
10255 * gdbtypes.c (chill_varying_type): Ditto.
10256 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10257 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10258 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10259 (chill_varying_type): Ditto.
10260 * language.h (_LANG_chill): Ditto.
10261 * language.c (binop_result_type, integral_type): Ditto.
10262 (character_type, string_type, structured_type): Ditto.
10263 (lang_bool_type, binop_type_check): Ditto.
10264 * stabsread.h (os9k_stabs): Ditto.
10265 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10266 (define_symbol, read_type, read_struct_fields): Ditto.
10267 (read_array_type, read_enum_type, read_huge_number): Ditto.
10268 (read_range_type, start_stabs): Ditto.
10269 * symfile.c (init_filename_language_table): Ditto.
10270 (add_psymbol_with_dem_name_to_list): Ditto.
10271 * symtab.c (symbol_init_language_specific): Ditto.
10272 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10273 * symtab.h (struct general_symbol_info): Ditto.
10274 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10275 * typeprint.c (typedef_print): Ditto.
10276 * utils.c (fprintf_symbol_filtered): Ditto.
10277 * valops.c (value_cast, search_struct_field, value_slice): Delete
10278 obsolete code.
10279 (varying_to_slice): Delete function.
10280 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10281 (varying_to_slice): Delete declaration.
10282 * MAINTAINERS: Update.
10283
10284 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10285
10286 * configure.in: Reorganize "Checks for library functions section"
10287 a bit. Remove check for `btowc' and `isascii' functions.
10288 * configure: Regenerated.
10289
10290 * acconfig.h (_MSE_INT_H): Remove.
10291 * configure.in: Create "Checks for header files" section, and move
10292 appropriate tests there. Don't check for objlist.h, wchar.h,
10293 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
10294 misdetection fix. Also add "Checks for types", "Checks for
10295 compiler characteristics" and "Checks for library functions"
10296 sections.
10297 * config.in, configure: Regenerated.
10298
10299 * configure.in: Create "Checks for programs" section, and move
10300 appropriate tests there.
10301
10302 2003-01-01 Mark Kettenis <kettenis@gnu.org>
10303
10304 * configure.in: Create "Checks for libraries" section, and move
10305 appropriate tests there. Cleanup check for wctype in libw. Use
10306 AC_SEARCH_LIBS to see whether we need libsocket.
10307 * configure: Regenerated.
10308
10309 For older changes see ChangeLog-2002
10310 \f
10311 Local Variables:
10312 mode: change-log
10313 left-margin: 8
10314 fill-column: 74
10315 version-control: never
10316 End:
This page took 0.252728 seconds and 4 git commands to generate.