* Makefile.in (i386-linux-nat.o): Update dependencies.
[external/binutils.git] / gdb / ChangeLog
1 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
2
3         * Makefile.in (i386-linux-nat.o): Update dependencies.
4         * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
5         * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
6         (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
7         * i386-linux-nat.c: Include "linux-nat.h".
8         (child_post_startup_inferior): New function.
9         * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
10         * infptrace.c (kill_inferior): Wrap in #ifdef.
11         * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
12         attaching to each LWP.
13         (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
14         (init_lin_lwp_ops): Fill in some more operations.
15         * linux-nat.h (linux_enable_event_reporting)
16         (linux_handle_extended_wait, linux_child_post_startup_inferior): New
17         prototypes.
18         * linux-nat.c (linux_enable_event_reporting): New function.
19         (child_post_attach, linux_child_post_startup_inferior)
20         (child_post_startup_inferior, child_follow_fork)
21         (linux_handle_extended_wait, kill_inferior): New functions.
22
23 2003-08-16  Andrew Cagney  <cagney@redhat.com>
24
25         * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
26         * gdbarch.h, gdbarch.c: Re-generate.
27
28 2003-08-16  Mark Kettenis  <kettenis@gnu.org>
29
30         * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
31
32 2003-08-16  Andrew Cagney  <cagney@redhat.com>
33
34         * NEWS: Mention that "set prompt-escape-char" was deleted.
35         * top.c (get_prompt_1): Delete function.
36         (gdb_prompt_escape):
37         (init_main): Do not clear "gdb_prompt_escape".  Delete "set
38         prompt-escape-char" command.
39         (MAX_PROMPT_SIZE): Delete macro.
40         (get_prompt): Simplify, do not call get_prompt_1.
41
42 2003-08-16  Andrew Cagney  <cagney@redhat.com>
43
44         * Makefile.in (printcmd.o, valprint.o): Do not try to build with
45         -Werror.  -Wformat-nonliteral problems.
46
47 2003-08-15  J. Brobecker  <brobecker@gnat.com>
48
49         Further multiarching work mostly for hppa64-*-hpux11:
50         * hppa-tdep.h: New file.
51         * hppa-tdep.c: #include hppa-tdep.c.
52         (hppa32_num_regs): Renamed from hppa_num_regs.
53         (hppa64_num_regs): New constant.
54         (hppa64_call_dummy_breakpoint_offset): New constant.
55         (hppa32_call_dummy_length): New constant.
56         (hppa64_call_dummy_length): New constant.
57         (hppa32_stack_align): Make name 32bit explicit.
58         (hppa32_register_virtual_type): Likewise.
59         (hppa32_extract_return_value): Likewise.
60         (hppa32_use_struct_convention): Likewise.
61         (hppa32_store_return_value): Likewise.
62         (hppa64_register_virtual_type): New function.
63         (hppa64_extract_return_value): New function.
64         (hppa64_use_struct_convention): New function.
65         (hppa64_store_return_value): New function.
66         (hppa_frame_locals_address): Remove declaration, function does
67         not exist anymore.
68         (hppa_register_byte): Add support for PA64 ABI.
69         (hppa_gdbarch_init): Add support for PA64 ABI.
70         * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
71         Make name 32bit explicit.
72         (hppa32_hpux_frame_base_before_sigtramp): Likewise.
73         (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
74         (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
75         (hppa64_hpux_frame_base_before_sigtramp): New function.
76         (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
77         * config/pa/tm-hppa64.h: Remove macros that are no longer
78         necessary now that the gdbarch vector is properly setup.
79         Transform some macros into function calls. Some minor cleanup. 
80         * config/pa/tm-hppah.h: Update function calls in macros
81         following the function renaming in hppa-hpux-tdep.c.
82         * Makefile.in (hppa_tdep_h): New variable.
83         (hppa-tdep.o): Add dependency over hppa_tdep_h.
84
85 2003-08-14  Michael Snyder  <msnyder@redhat.com>
86
87         * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
88
89 2003-08-13  J. Brobecker  <brobecker@gnat.com>
90
91         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
92         bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
93         routine.
94
95 2003-08-13  Michael Snyder  <msnyder@redhat.com>
96
97         * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
98         (frv_saved_pc_after_call): Use deprecated ftype.
99         (stupid_useless_init_extra_frame_info): Remove orphan prototype.
100         (frv_remote_translate_xfer_address): Remove.
101         (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
102
103 2003-08-13  J. Brobecker  <brobecker@gnat.com>
104
105         * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
106         initialization after the common gdbarch initialization, not before.
107
108 2003-08-13  J. Brobecker  <brobecker@gnat.com>
109
110         * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
111         (ADDR_BITS_REMOVE): Remove, redundant.
112
113 2003-08-13  J. Brobecker  <brobecker@gnat.com>
114
115         * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
116         gdbarch method to clear the 2 low bits of text addresses.
117
118 2003-08-12  Andrew Cagney  <cagney@redhat.com>
119
120         * Makefile.in (dsrec.o): Update dependencies.
121         * dsrec.c: Include "gdb_assert.h".
122         (make_srec): Use snprintf instead of sprintf, use a literal format
123         string.
124
125 2003-08-12  Andrew Cagney  <cagney@redhat.com>
126
127         * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
128         FRAME_OBSTACK_ZALLOC.
129
130 2003-08-12  Kevin Buettner  <kevinb@redhat.com>
131
132         * i386-tdep.c (i386_gdbarch_init): Enable default support for
133         SSE registers.
134
135 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
136
137         * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
138         amd64fbsd_sc_reg_offset): Add extern declarations.
139         * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
140         declarations.
141
142 2003-08-11  Ben Elliston  <bje@wasabisystems.com>
143
144         * MAINTAINERS (write after approval): Update my mail address.
145
146 2003-08-10  Andrew Cagney  <cagney@redhat.com>
147
148         * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
149
150 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
151
152         * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
153         i386obsd_sigtramp_start, i386obsd_sigtramp_end,
154         i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
155         i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
156         i386bsd_sc_reg_offset): Add extern declarations.
157         * i386obsd-nat.c: Include "i386-tdep.h"
158         (_initialize_i386obsd_nat): Remove extern declarations.
159         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
160         declarations.
161         * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
162         declarations.
163
164         * i386-tdep.c (i386_register_to_value): Use get_frame_register
165         instead of frame_read_register.
166         (i386_fetch_pointer_argument): Use get_frame_register_unsigned
167         instead of frame_read_register.  Use I386_ESP_REGNUM instead of
168         SP_REGNUM.
169         (i386_frame_prev_register): Use frame_unwind_register_unsigned
170         instead of frame_unwind_unsigned_register.  Use
171         I386_EFLAGS_REGISTER instead of PS_REGNUM.
172         (i386_get_longjmp_target): Use regcache_read_unsigned_register
173         instead of read_register.  Use builtin_type_void_data_ptr instead
174         of builtin_type_void_func_ptr when extracting the address of the
175         jmp_buf.
176         (i386_extract_return_value, i386_store_return_value,
177         i386_pseudo_register_read, i386_pseudo_register_write): Use
178         register_size instead REGISTER_RAW_SIZE.
179
180 2003-08-10  Andrew Cagney  <cagney@redhat.com>
181
182         * infcall.c (call_function_by_hand): Use xstrprintf instead of
183         sprintf.  Make "name" constant.
184
185 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
186
187         * i387-tdep.c (i387_register_to_value): Use get_frame_register
188         instead of frame_read_register.
189         (i387_print_float_info): Use get_frame_register and
190         get_frame_register_unsigned instead of frame_register_read.
191
192         * i386fbsd-nat.c: Include "i386-tdep.h".
193         (child_resume): Make `eflags' an ULONGEST.  Use
194         regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
195         instead of register_read and register_write.
196
197         * i386bsd-nat.c (fetch_inferior_registers,
198         store_inferior_registers): Don't use && at the end of a line.
199         (_initialize_i386bsd_nat): Fix typo.
200
201         * frame.c (_initialize_frame): Add missing backslash.
202
203         From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
204         * sol-thread.c (sol_thread_store_registers): Use regcache_collect
205         and supply_register instead of manipulating the register buffer
206         directly.
207
208         From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
209         * config/i386/nm-i386sol2.h
210         (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
211
212         Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
213         * i386-tdep.c (i386_analyze_frame_setup): Recognize more
214         instructions that GCC likes to mingle into the prologue.  Fixes
215         gdb/1253 and gdb/1255.
216
217 2003-08-09  Andrew Cagney  <cagney@redhat.com>
218
219         Fix GDB PR cli/926.
220         * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
221         * command.h (add_setshow_uinteger_cmd): Declare.
222         * frame.c (set_backtrace_cmd): New function.
223         (show_backtrace_cmd): New function.
224         * frame.c (_initialize_frame): Replace "set/show
225         backtrace-below-main" with "set/show backtrace past-main".  Add
226         command "set/show backtrace limit".
227         (backtrace_past_main): Rename "backtrace_below_main".
228         (backtrace_limit): New variable.
229         (get_prev_frame): Update.  Check the backtrace_limit.
230
231 2003-08-09  Andrew Cagney  <cagney@redhat.com>
232
233         * defs.h (xstrprintf): Declare.
234         * utils.c (xstrprintf): New function.
235         * breakpoint.c (insert_breakpoints): Replace sprintf and
236         non-literal format strings, with xstrprintf and cleanups.
237         (delete_breakpoint,breakpoint_re_set): Ditto.
238         (commands_command, insert_breakpoints): Ditto.
239         (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
240         (break_at_finish_command_1): Ditto.
241
242 2003-08-09  Andrew Cagney  <cagney@redhat.com>
243
244         * MAINTAINERS (language support): List Adam Fedor as Objective C
245         maintainer.
246
247 2003-08-08  J. Brobecker  <brobecker@gnat.com>
248
249         * NEWS (Multi-arched targets): Document that all hppa-hpux targets
250         are now multiarched.
251
252 2003-08-08  J. Brobecker  <brobecker@gnat.com>
253
254         * config/pa/tm-hppa64.h: Remove lots of macros that are no
255         longer necessary now that hppa64 is partially multiarch'ed.
256
257 2003-08-08  Andrew Cagney  <cagney@redhat.com>
258
259         * interps.c (interp_set): Check for a NULL "old_interp".
260
261 2003-08-08  H.J. Lu  <hongjiu.lu@intel.com>
262
263         * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
264         (install-only): Support DESTDIR.
265         (uninstall): Likewise.
266         (install-gdbtk): Likewise.
267
268 2003-08-08  Elena Zannoni  <ezannoni@redhat.com>
269
270         * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
271         contains something meaningful at all times.
272
273 Fri Aug  8 00:28:46 UTC 2003  Brendan Conoboy  <blc@redhat.com>
274
275         * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
276
277 Fri Aug  8 00:28:38 UTC 2003  Brendan Conoboy  <blc@redhat.com>
278
279         * MAINTAINERS (write after approval): Added self.
280
281 2003-08-07  Andrew Cagney  <cagney@redhat.com>
282
283         * inferior.h (AT_SYMBOL): Define.
284         * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
285         * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
286         * mips-tdep.c (mips_call_dummy_address): Delete function.
287         (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
288         set call_dummy_address.
289
290 2003-08-07  Andrew Cagney  <cagney@redhat.com>
291
292         * language.c (op_error): Delete function.
293         (binop_type_check): Delete function.
294         * language.h (type_op_error, range_op_error): Delete macros.
295         (op_error): Delete declaration.
296
297 2003-08-07  Andrew Cagney  <cagney@redhat.com>
298
299         * interps.h (INTERP_MI2, INTERP_MI3): Define.
300
301 2003-08-07  Michal Ludvig  <mludvig@suse.cz>
302
303         * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
304         (x86_64_push_arguments): Skip the red zone.
305
306 2003-08-05  Andrew Cagney  <cagney@redhat.com>
307
308         * reggroups.c (reggroup_next): Check for the final entry.
309
310 2003-08-04  Andrew Cagney  <cagney@redhat.com>
311
312         * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
313         * cli/cli-script.c (define_command): Call query directly, instead
314         of passing it a buffer.
315         * ocd.c (ocd_error): Pass error a constant format string.
316         * remote-mips.c (mips_error): Use fputs_filtered.
317
318         * solib-svr4.c (_initialize_svr4_solib): Update
319         register_gdbarch_data call.
320         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
321
322         * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
323         (register_gdbarch_data): Delete "free" parameter.  Update
324         comments.
325         * gdbarch.h, gdbarch.c: Re-generate.
326         * reggroups.c (_initialize_reggroup): Update.
327         * gnu-v3-abi.c (init_gnuv3_ops): Update.
328         * frame-base.c (_initialize_frame_base): Update.
329         * frame-unwind.c (_initialize_frame_unwind): Update.
330         * user-regs.c (_initialize_user_regs): Update.
331         * remote.c (_initialize_remote): Update.
332         * regcache.c (_initialize_regcache): Update.
333
334         * regcache.c (xfree_regcache_descr): Delete function.
335         (_initialize_regcache): Update call to register_gdbarch_data.
336         (init_regcache_descr, init_legacy_regcache_descr): Use
337         GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
338
339         * remote.c (free_remote_state): Delete function.
340         (_initialize_remote): Update register_gdbarch_data.
341         (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
342         GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
343
344 2003-08-04  Andrew Cagney  <cagney@redhat.com>
345
346         * reggroups.c (struct reggroup_el): Define.
347         (struct reggroups): Delete field "nr_group".  Replace array
348         "group" with a "first" to "last" linked list.
349         (reggroups_init): Update.  Allocate using gdbarch's obstack.
350         (reggroups_free): Delete function.
351         (add_group): Update.  Add "el" parameter.
352         (reggroup_add): Pass gdbarch obstack allocated space to add_group.
353         (default_groups): Update.
354         (reggroup_next): Replace reggroups.
355         (reggroups_dump): Update.
356         (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
357         * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
358         * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
359
360 2003-08-04  Daniel Jacobowitz  <drow@mvista.com>
361
362         * Makefile.in (tui-interp.o): Update dependencies.
363
364 2003-08-04  David Carlton  <carlton@kealia.com>
365
366         * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
367         to internal_error call.
368         * source.c (forward_search_command): Add "%s" format argument.
369         (reverse_search_command): Ditto.
370         * top.c (quit_confirm): Ditto.
371         * cli/cli-setshow.c (do_setshow_command): Ditto.
372         * cp-valprint.c (cp_print_class_method): Replace
373         {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
374         (cp_print_class_member): Ditto.
375         * event-top.c (command_line_handler): Ditto.
376         * linux-proc.c (linux_info_proc_cmd): Ditto.
377         * p-typeprint.c (pascal_type_print_base): Ditto.
378         * p-valprint.c (pascal_object_print_class_method): Ditto.
379         (pascal_object_print_class_member): Ditto.
380         * printcmd.c (print_scalar_formatted,printf_command): Ditto.
381         * remote.c (remote_cisco_section_offsets): Ditto.
382         * top.c (command_line_input): Ditto.
383         * utils.c (vwarning,error_stream,quit): Ditto.
384         * valprint.c (print_floating,print_binary_chars)
385         (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
386
387 2003-08-04  Andrew Cagney  <cagney@redhat.com>
388
389         * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
390
391 2003-08-02  Andrew Cagney  <cagney@redhat.com>
392
393         * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
394         gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
395         amd64fbsd-nat.c.
396
397 2003-08-02  Andrew Cagney  <cagney@redhat.com>
398
399         * Makefile.in: Update all dependencies and definitions.
400
401 2003-08-02  Adam Fedor  <fedor@gnu.org>
402
403         * linespec.c (is_objc_method_format): New function
404         (decode_line_1, locate_first_half): Use it.
405         Fixes PR objc/1298
406
407 2003-08-01  Andrew Cagney  <cagney@redhat.com>
408
409         * NEWS: Mention that m32r is multi-arch.
410         From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
411         * configure.tgt: Recognize m32r-*-*.
412         * config/m32r/tm-m32r.h: Delete file.
413         * config/m32r/m32r.mt: New file.
414         * m32r-rom.c (m32r_upload_command): Use hostent only when 
415         gethostname succeeds, in order to avoid a compilation
416         warning.
417         * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
418         compiler warning.
419
420 2003-08-01  Michael Snyder  <msnyder@redhat.com>
421
422         * sh-tdep.c (sh_frame_align): New gdbarch method.
423         (sh_gdbarch_init): Set up frame_align method.
424
425 2003-07-31  Michael Snyder  <msnyder@redhat.com>
426
427         * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
428         which is already covered by the new frames infrastructure.
429
430 2003-07-31  Andrew Cagney  <cagney@redhat.com>
431
432         * user-regs.c (struct user_reg): Add "next" link.
433         (struct user_regs): Replace "user" with "first" and "last" links.
434         (append_user_reg): Add pre-allocated "reg" parameter.
435         (builtin_user_regs): Provide initial value for "last".
436         (user_reg_add_builtin): XMALLOC memory for append_user_reg.
437         (user_regs_init): Allocate memory from the gdbarch obstack.
438         (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
439         (user_reg_map_name_to_regnum): Rewrite to search the user_reg
440         linked list.
441         (usernum_to_user_reg): New function.
442         (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
443         (value_of_user_reg): Use usernum_to_user_reg.
444         (user_regs_free): Delete function.
445         (_initialize_user_regs): Update register_gdbarch_data call.
446
447 2003-07-31  Daniel Jacobowitz  <drow@mvista.com>
448
449         * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
450
451 2003-07-30  Michael Snyder  <msnyder@redhat.com>
452
453         * value.h (value_being_returned): Add a struct_addr argument.
454         * infcall.c (call_function_by_hand): Pass struct_addr to 
455         value_being_returned.
456         * infcmd.c (print_return_value): Pass zero as struct_addr.
457         * values.c (value_being_returned): If struct_addr is passed,
458         use it instead of trying to recover it from the inferior.
459
460 2003-07-30  Kevin Buettner  <kevinb@redhat.com>
461
462         * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
463         the prologue analyzer won't need to attempt to extract the pc
464         value from the woefully incomplete dummy frame.
465         (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
466         possible.  Disable code which modifies the frame.
467
468 2003-07-28  Andrew Cagney  <cagney@redhat.com>
469
470         * annotate.c (annotate_breakpoints_headers): Restrict annotation
471         to level 2.
472         (annotate_breakpoints_table, annotate_record): Ditto.
473         (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
474         (annotate_field_name_end, annotate_field_value): Ditto.
475         (annotate_field_end, annotate_frame_source_begin): Ditto.
476         (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
477         (annotate_frame_source_line, annotate_frame_source_end): Ditto.
478         (annotate_frame_begin, annotate_frame_function_name): Ditto.
479         (annotate_frame_address_end, annotate_frame_address): Ditto.
480         (annotate_frame_args, annotate_frame_end): Ditto.
481         (annotate_frame_where, annotate_arg_begin): Ditto.
482         (annotate_arg_name_end, annotate_arg_value): Ditto.
483         (annotate_arg_end, annotate_signal_handler_caller): Ditto.
484         (annotate_function_call, annotate_signal_name): Ditto.
485         (annotate_signal_string, annotate_signal_name_end): Ditto.
486         (annotate_signal_string_end, annotate_value_history_begin): Ditto.
487         (annotate_value_begin, annotate_value_history_value): Ditto.
488         (annotate_value_history_end, annotate_value_end): Ditto.
489         (annotate_display_begin, annotate_display_number_end): Ditto.
490         (annotate_display_format, annotate_display_expression): Ditto.
491         (annotate_display_expression_end, annotate_display_value): Ditto.
492         (annotate_display_end, annotate_array_section_begin): Ditto.
493         (annotate_elt_rep, annotate_elt_rep_end): Ditto.
494         (annotate_elt, annotate_array_section_end): Ditto.
495
496 2003-07-28  Andrew Cagney  <cagney@redhat.com>
497
498         * regcache.c (struct regcache_descr): Update comments on
499         nr_raw_registers.
500         (init_legacy_regcache_descr): Don't set nr_raw_registers or
501         sizeof_raw_register_valid_p.
502         (init_regcache_descr): Set nr_raw_registers and
503         sizeof_raw_register_valid_p before calling
504         init_legacy_regcache_descr.
505
506 2003-07-28  Andrew Cagney  <cagney@redhat.com>
507
508         * mips-tdep.c (print_gp_register_row): Print the GPR's register
509         MOD NUM_REGS.
510
511 2003-07-28  Daniel Jacobowitz  <drow@mvista.com>
512
513         * thread.c (info_threads_command): Use get_selected_frame ().
514         Check that there is at least one non-sentinel frame.
515
516 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
517
518         * m68hc11-tdep.c (struct frame_extra_info): Remove.
519         (m68hc11_pop_frame): Remove.
520         (m68hc11_frame_saved_pc): Remove.
521         (m68hc11_frame_chain): Remove.
522         (m68hc11_frame_init_saved_regs): Remove.
523         (m68hc11_init_extra_frame_info): Remove.
524         (m68hc11_store_struct_return): Remove.
525         (m68hc11_saved_pc_after_call): Remove.
526
527 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
528
529         * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
530         frame unwind information.
531         (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
532         and adapted for frame unwinding.
533         (m68hc11_skip_prologue): Update to scan prologue in temporary object.
534         (m68hc11_unwind_pc): New function.
535         (m68hc11_frame_unwind_cache): New function to analyze frames.
536         (m68hc11_frame_this_id): New function to create new frame struct.
537         (m68hc11_frame_prev_register): New function to unwind a register from
538         the frame.
539         (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
540         (m68hc11_frame_p): New function for the above.
541         (m68hc11_frame_base_address): New function to return fp of frame.
542         (m68hc11_frame_args_address): Update for frame.
543         (m68hc11_frame_base): Default 68hc11/68hc12 frame.
544         (m68hc11_unwind_sp): New function.
545         (m68hc11_unwind_dummy_id): New function.
546         (m68hc11_gdbarch_init): Install the above frames; remove deprecated
547         calls.
548
549 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
550
551         * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
552         (m68hc11_guess_from_prologue): Advance the pc and frame size only
553         when we are beyond the current pc.
554
555 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
556
557         * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
558         from m68hc11_push_arguments.
559         (m68hc11_push_arguments): Remove.
560         (m68hc11_push_return_address): Remove.
561         (m68hc11_gdbarch_init): Install the above; remove above deprecated
562         handlers; remove deprecated_extra_stack_alignment_needed.
563
564 2003-07-27  Andrew Cagney  <cagney@redhat.com>
565
566         * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
567         * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
568         REAL_PC and not the pointer.
569         * hppa-hpux-tdep.c: Include frame.h
570
571 2003-07-27  Andrew Cagney  <cagney@redhat.com>
572
573         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
574         GDB_MULTI_ACH_PARTIAL.
575
576 2003-07-27  Andrew Cagney  <cagney@redhat.com>
577
578         Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
579         * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
580         operator at start and not end of line.
581         (decode_prologue): Ditto.
582         (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
583         frame_unwind_register_unsigned instead of
584         frame_unwind_unsigned_register.
585         (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
586         read_register.
587         (m32r_push_dummy_call): Use register_size instead of
588         REGISTER_RAW_SIZE.
589         (m32r_frame_sniffer): Replace m32r_frame_p.
590         (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
591         * m32r-rom.c (report_transfer_performance): Delete extern
592         declaration.
593         (m32r_load, m32r_upload_command): Use print_transfer_performance
594         instead of report_transfer_performance.
595         (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
596         / add_show_from_set.
597
598 2003-07-26  Andrew Cagney  <cagney@redhat.com>
599
600         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
601         store_return_value and extract_struct_value_address.
602
603 2003-07-26  Daniel Jacobowitz  <drow@mvista.com>
604
605         PR c++/1267
606         * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
607         NULL, default to the section containing PC.
608
609 2003-07-24  Stephane Carrez  <stcarrez@nerim.fr>
610
611         * NEWS: Mention "regs" deprecated for m68hc11 too.
612
613         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
614         (m68hc11_print_register): New function to print out one register.
615         (m68hc11_print_registers_info): New function to print registers.
616         (show_regs): Deprecate and use the above.
617         (m68hc11_gdbarch_init): Install the print_registers_info.
618
619 2003-07-24  Jeff Johnston  <jjohnstn@redhat.com>
620
621         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
622         that we have a SIGTRAP before returning non-zero.
623
624 2003-07-23  Michal Ludvig  <mludvig@suse.cz>
625             Elena Zannoni  <ezannoni@redhat.com>
626
627         * linespec.c (decode_line_2): Avoid crash if 
628         find_function_start_sal() returns empty record.
629
630 2003-07-23  Andreas Schwab  <schwab@suse.de>
631
632         * ia64-tdep.c (ia64_print_insn): New function.
633         (ia64_gdbarch_init): Set print_insn to it.
634         (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
635         deprecated_tm_print_insn_info.
636
637 2003-07-22  Michael Snyder  <msnyder@redhat.com>
638
639         * h8300-tdep.c (h8300_extract_return_value): Teach it how to
640         handle 8-bit returns (long long).
641         (h8300h_extract_return_value): Ditto.
642         (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
643
644 2003-07-22  Andrew Cagney  <cagney@redhat.com>
645
646         * gdbarch.c Include "gdb_obstack.h".
647         (struct gdbarch): Add an "obstack".
648         (alloc_gdbarch_data): Allocate the gdbarch data using
649         GDBARCH_OBSTACK_CALLOC.
650         (free_gdbarch_data): Delete function.
651         (gdbarch_obstack_zalloc): New function.
652         (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
653         Assert that the architecture is not initialized.
654         (gdbarch_alloc): Allocate an obstack, allocate the architecture
655         vector from the obstack.
656         (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
657         architecture obstack.
658         (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
659         (set_gdbarch_data): Assert that the data is not initialized.
660         (struct gdbarch_data): Delete member "free".
661         (register_gdbarch_data): Do not initialize "free".
662         * gdbarch.h, gdbarch.c: Re-generate.
663         
664 2003-07-22  Andrew Cagney  <cagney@redhat.com>
665
666         * configure.in (build_warnings): Add -Wformat-nonliteral.
667         * configure: Re-generate.
668
669 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
670
671         * dwarf2loc.c (locexpr_describe_location): Fix typos.
672
673 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
674
675         * findvar.c (read_var_value): Remove case for thread local storage
676         variables.  It is now entirely handled by the dwarf2 location
677         expression code.
678         * printcmd.c (address_info): Ditto.
679         * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
680         enumeration value.
681         (struct symbol): Remove objfile field, which was used by
682         LOC_THREAD_LOCAL_STATIC only.
683         * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
684         * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
685         usage of objfile pointer.
686         * dwarf2loc.c (locexpr_describe_location): Add case to handle
687         thread local variables.
688         Add include of objfiles.h.
689         * dwarf2expr.c (execute_stack_op): Add comments about thread local
690         storage variables.
691         * Makefile.in (dwarf2loc.o): Update dependencies.
692
693 2003-07-22  Andrew Cagney  <cagney@redhat.com>
694
695         * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
696         get_frame_base.
697         (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
698         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
699         (struct value): Add opaque declaration.
700         (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
701
702 2003-07-21  Andrew Cagney  <cagney@redhat.com>
703
704         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
705         * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
706
707 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
708
709         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use 
710         regcache_cooked_read_unsigned instead of read_register.
711         (m68hc11_saved_pc_after_call): Likewise.
712         (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
713         instead of write_register.
714         (m68hc11_register_type): New function.
715         (m68hc11_register_virtual_type): Remove.
716         (m68hc11_store_return_value): Convert to use the regcache.
717         (m68hc11_extract_struct_value_address): Likewise.
718         (m68hc11_gdbarch_init): Remove deprecated ops for register to use
719         m68hc11_register_type; undeprecate store_return_value and
720         extract_struct_value_address.
721
722 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
723
724         * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
725         and translate to use regcache.
726         (m68hc11_gdbarch_init): Undeprecate extract_return_value.
727
728 2003-07-18  Andrew Cagney  <cagney@redhat.com>
729
730         * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
731         * gdbarch.h, gdbarch.c: Re-generate.
732         * i386-tdep.c (i386_gdbarch_init): Do not set
733         DWARF2_BUILD_FRAME_INFO.
734         * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
735         unconditionally.
736         * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
737         DWARF2_BUILD_FRAME_INFO.
738
739 2003-07-18  Andrew Cagney  <cagney@redhat.com>
740
741         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
742         * disasm.c (gdb_disassemble_info): Initilize di.arch.
743
744 2003-07-18  Andrew Cagney  <cagney@redhat.com>
745
746         * dwarf2-frame.c (dwarf2_frame_sniffer): Use
747         frame_unwind_address_in_block, instead of frame_pc_unwind.
748         (dwarf2_frame_cache): Ditto.
749
750 2003-07-18  Andrew Cagney  <cagney@redhat.com>
751
752         * user-regs.h (struct gdbarch): Declare opaque.
753         * ui-out.h (struct ui_file): Declare opaque.
754         * dwarf2-frame.h (struct frame_info): Declare opaque.
755
756 2003-07-18  Kris Warkentin  <kewarken@qnx.com>
757
758         * nto-procfs.c: Clean ARI hits.  Change #include <..> to
759         #include "...".
760         (procfs_meminfo): Change strerror to safe_strerror.
761         (procfs_can_run): Remove K&R badness.
762
763 2003-07-17  Michael Snyder  <msnyder@redhat.com>
764
765         * remote-sim.c: Comment typo fix.
766
767 2003-07-17  Andrew Cagney  <cagney@redhat.com>
768
769         * defs.h (GDB_MULTI_ARCH): Delete conditional define.  Handled by
770         configure.
771         * sparc-tdep.c (sparc_intreg_size): Make non-static.
772         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
773         GDB_MULTI_ARCH_PARTIAL.
774
775 2003-07-17  Elena Zannoni  <ezannoni@redhat.com>
776
777         * Makefile.in (x86-64-linux-nat.o): Update dependencies.
778         * x86-64-linux-nat.c (ps_get_thread_area): New function.  Add
779         include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
780
781 2003-07-16  Theodore A. Roth  <troth@openavr.org>
782
783         * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
784         found.
785         (avr_frame_unwind_cache): Don't unwind FP for main.
786         Update a comment.
787         Save the computed prev_sp.
788         (avr_saved_regs_unwinder): Remove function.
789         (avr_frame_prev_register): Use PC unwind logic from 
790         avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
791
792 2003-07-16  Andrew Cagney  <cagney@redhat.com>
793
794         * frame-base.h (frame_base_p_ftype): Delete definition.
795         (frame_base_append_predicate): Delete declaration.
796         * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
797         (frame_unwind_append_predicate): Delete declaration.
798         * frame-unwind.c (struct frame_unwind_table): Delete field "p".
799         (append_predicate): Delete parameter "p".
800         (frame_unwind_append_predicate): Delete function.
801         (frame_unwind_append_sniffer): Update call to append_predicate.
802         (frame_unwind_free): Delete function.
803         (_initialize_frame_unwind): Pass NULL as "free" to
804         register_gdbarch_data.
805         (frame_unwind_init): Append the dummy_frame_sniffer.
806         (frame_unwind_find_by_frame): Simplify.
807         * frame-base.c (struct frame_base_table): Delete field "p".
808         (append_predicate): Delete parameter "p".
809         (frame_base_append_predicate): Delete function.
810         (frame_base_append_sniffer): Update call to append_predicate.
811         (frame_base_free): Delete function.
812         (frame_base_find_by_frame): Simplify.
813         (_initialize_frame_base): Pass NULL as "free" to
814         register_gdbarch_data.
815         * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
816         (x86_64_sigtramp_frame_sniffer): Replace
817         "x86_64_sigtramp_frame_p".
818         (x86_64_init_abi): Set the frame unwind sniffers.
819         * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
820         (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
821         (m68k_gdbarch_init): Set the frame unwind sniffers.
822         * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
823         "i386_sigtramp_frame_p".
824         (i386_frame_sniffer): Replace "i386_frame_p".
825         (i386_gdbarch_init): Set the frame unwind sniffers.
826         * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
827         (avr_gdbarch_init): Set the frame unwind sniffers.
828         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
829         "alpha_sigtramp_frame_p"
830         (alpha_heuristic_frame_sniffer): Replace
831         "alpha_heuristic_frame_p".
832         (alpha_gdbarch_init): Set the frame unwind sniffers.
833         (alpha_dwarf2_init_abi): Ditto.
834         * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
835         "alpha_debug_frame_p".
836         (alpha_mdebug_frame_base_sniffer): Replace
837         "alpha_mdebug_frame_base_p".
838         (alpha_mdebug_init_abi): Set the frame unwind sniffers.
839         * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
840         (d10v_gdbarch_init): Set the frame unwind sniffer.
841         * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
842         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
843         * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
844         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
845         * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
846         * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
847
848 2003-07-16  Michael Snyder  <msnyder@redhat.com>
849
850         * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
851         should go thru sh_dsp_register_sim_regno, else the dsp regs
852         will not get the right values.
853
854 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
855
856         * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
857         deprecated_store_floating by call to store_typed_floating.
858         (sh_sh4_register_convert_to_raw): Substitute call to
859         deprecated_extract_floating by call to extract_typed_floating.
860
861 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
862
863         * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
864
865 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
866
867         * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
868         register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
869         gdbarch_register_type in 32 bit code throughout.  Avoid current_gdbarch
870         as possible.
871         (do_pseudo_register): Remove.
872         (sh_push_dummy_code): New function.
873         (sh64_store_struct_return): Rename from sh_store_struct_return.
874         Only called for sh64 now.
875         (sh_extract_struct_value_address): Regcache'ify.
876         (sh_push_dummy_call): Rename from sh_push_arguments.  Regcache'ify
877         and accomodate new tasks.
878         (sh64_push_return_address): Rename from sh_push_return_address.
879         Only called for sh64 now.
880         (sh_default_extract_return_value): Rename from sh_extract_return_value.
881         Regcache'ify.
882         (sh3e_sh4_extract_return_value): Regcache'ify.
883         (sh_default_store_return_value): Ditto.
884         (sh3e_sh4_store_return_value): Ditto.
885         (sh_default_register_byte): Remove.
886         (sh_sh4_register_byte): Remove.
887         (sh_default_register_raw_size): Remove.
888         (sh_sh4_register_raw_size): Remove.
889         (sh_register_virtual_size): Remove.
890         (sh_sh3e_register_virtual_type): Remove.
891         (sh_sh3e_register_type): New function.
892         (sh_sh4_register_virtual_type): Remove.
893         (sh_sh4_register_type): New function.
894         (sh_default_register_virtual_type): Remove.
895         (sh_default_register_type): New function.
896         (do_fv_register_info): Add parameters to accomodate call from
897         sh_print_registers_info.
898         (do_dr_register_info): Ditto.
899         (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
900         Add parameters to accomodate call from sh_print_registers_info.
901         (sh_do_fp_register): Ditto.
902         (sh64_do_pseudo_register): Call do_dr_register_info,
903         do_fv_register_info and sh_do_fp_register with default parameters.
904         (sh_do_register): Add parameters to accomodate call from
905         sh_print_registers_info.
906         (sh_print_register): Ditto.
907         (sh_print_registers_info): Rename from sh_do_registers_info.
908         Add parameters to be used as gdbarch_print_registers_info
909         implementation.  Accomodate removed do_pseudo_register function
910         pointer.
911         (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
912         function pointer. Call sh_print_register with default parameters.
913         (sh64_do_registers_info): Call sh_print_registers_info instead of
914         sh_do_registers_info.
915         (sh_gdbarch_init): Rearrange to cleanup and to allow easier
916         detection of deprecated vs. non-deprecated functionality.
917         Rename sh_call_dummy_words to sh64_call_dummy_words.  Remove
918         function pointer assignments by direct function calls.
919
920 2003-07-15  Andrew Cagney  <cagney@redhat.com>
921
922         * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
923         (frame_register_unwind, create_new_frame): Ditto.
924         (legacy_get_prev_frame, get_frame_type): Ditto.
925         (get_frame_base_address): Use frame_base_find_by_frame.
926         (get_frame_locals_address): Use frame_base_find_by_frame.
927         (get_frame_args_address): Use frame_base_find_by_frame.
928         * frame-base.h (frame_base_sniffer_ftype): Declare.
929         (frame_base_append_sniffer): Declare.
930         (frame_base_find_by_frame): Replace frame_base_find_by_pc.
931         * frame-base.c (append_predicate): Add a "sniffer" parameter.
932         (frame_base_append_sniffer): New function.
933         (frame_base_append_predicate): Add a NULL sniffer.
934         (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
935         (struct frame_base_table): Add "sniffer".
936         (frame_base_free): Free the "sniffer" table.
937         * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
938         (frame_unwind_append_sniffer): Declare.
939         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
940         * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
941         (struct frame_unwind_table): Add "sniffer", delete "middle".
942         (append_predicate): Add "sniffer" parameter, append the sniffer.
943         (frame_unwind_init): Update append_predicate call.
944         (frame_unwind_append_sniffer): New function.
945         (frame_unwind_append_predicate): Update append_predicate call.
946         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
947
948 2003-07-15  Andrew Cagney  <cagney@redhat.com>
949
950         * frame.c (get_prev_frame): Move disabled inside_entry_func to
951         before code inhibiting repeated unwind attempts.  Add to
952         commentary on that test's problems.
953         * blockframe.c (inside_main_func): Look for "main" in the minimal
954         symbol table.
955         * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
956         identical.
957
958 2003-07-15  Andrew Cagney  <cagney@redhat.com>
959
960         * complaints.c (struct explanation): Define.
961         (struct complaints): Change type of "explanation" to "struct
962         explanation".
963         (symfile_explanations): Convert to a "struct explanation" table.
964         (vcomplaint): Update.
965
966 2003-07-15  Michal Ludvig  <mludvig@suse.cz>
967
968         * x86-64-linux-nat.c (regmap): Removed.
969         (supply_gregset, fill_gregset): Call 
970         x86_64_linux_(fill,supply)_gregset functions.
971         * x86-64-linux-tdep.c (USER_*): New defines.
972         (user_to_gdb_regmap, x86_64_core_fns): New structure.
973         (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
974         New functions.
975         (fetch_core_registers): Ditto.
976         (_initialize_x86_64_linux_tdep): Call add_core_fns().
977         * x86-64-linux-tdep.h: New file.
978         * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
979         and core-regset.o.
980         * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
981
982 2003-07-13  Mark Kettenis  <kettenis@gnu.org>
983
984         * x86-64-tdep.c (x86_64_store_return_value): Use
985         regcache_cooked_write_part instead of regcache_cooked_write.
986
987         * configure.host: Add x86_64-*-freebsd*.
988         * configure.tgt: Add x86_64-*-freebsd*.
989         * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
990         * amd64fbsd-nat.c: New file.
991         * amd64fbsd-tdep.c: New file.
992         * config/i386/nm-fbsd64.h: New file.
993         * config/i386/fbsd64.mh: New file.
994         * config/i386/fbsd64.mt: New file.
995
996 2003-07-11  Mark Kettenis  <kettenis@gnu.org>
997
998         * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
999         `sc_regs_offset' and `sc_fpregs_offset'.
1000         * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1001         SIGFRAME_FPREGSAVE_OFF): Remove defines.
1002         (alpha_sigtramp_register_address): Rewrite to use new members of
1003         `struct gdbarch_tdep'.
1004         (alpha_gdbarch_init): Initialize new members of struct
1005         gdbarch_tdep'.
1006         * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1007         ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1008         (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1009         (alphafbsd_pc_in_sigtramp): Implement.
1010         (alphafbsd_sigtramp_offset): New function.
1011         (alphafbsd_sigcontext_addr): New function.
1012         (alphafbsd_init_abi): Initialize signal trampoline related members
1013         of `struct gdbarch_tdep'.
1014         (_initialize_alphafbsd_tdep): Add prototype.
1015
1016 2003-07-11  Theodore A. Roth  <troth@openavr.org>
1017
1018         * Makefile.in (install-only): Quote sed expression when generating
1019         transformed_name.
1020
1021 2003-07-11  Richard Henderson  <rth@redhat.com>
1022
1023         * Makefile.in (dwarf2-frame.o): Add complaints_h.
1024         * dwarf2-frame.c: Include complaints.h.
1025         (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1026         variable initialization; return NULL on error.
1027         (decode_frame_entry): New.
1028
1029 2003-07-11  Andrew Cagney  <cagney@redhat.com>
1030
1031         * frame.h (frame_address_in_block): Delete declaration.
1032         * blockframe.c (frame_address_in_block): Delete function.
1033         (get_frame_block): Use get_frame_address_in_block.
1034         (block_innermost_frame): Ditto.
1035         * stack.c (print_frame, backtrace_command_1): Ditto.
1036
1037         * frame.h (get_frame_address_in_block): Declare.
1038         (frame_unwind_address_in_block): Declare.
1039         * frame.c (frame_unwind_address_in_block): New function.
1040         (get_frame_address_in_block): New function.
1041
1042 2003-07-10  Andrew Cagney  <cagney@redhat.com>
1043
1044         * gdbarch.sh: Simplify predicate methods.  Remove need to provide
1045         pre-default.   Note: re-generate has no effect.
1046         
1047 2003-07-10  Andrew Cagney  <cagney@redhat.com>
1048
1049         * gdbarch.sh: When a variable, but not a function, compare against
1050         0.  Fix problem in previous patch.
1051         * gdbarch.c: Re-generate.
1052         
1053 2003-07-10  Andrew Cagney  <cagney@redhat.com>
1054
1055         * gdbarch.sh: Use gdb_assert instead of internal_error.  Compare
1056         functions against NULL, not 0.
1057         * gdbarch.c: Re-generate.
1058         
1059 2003-07-10  Fred Fish  <fnf@ninemoons.com>
1060
1061         * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1062         null string instead of a null pointer.
1063         * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1064
1065 2003-07-09  Michael Snyder  <msnyder@redhat.com>
1066
1067         * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1068
1069 2003-07-09  Mark Kettenis  <kettenis@gnu.org>
1070
1071         * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1072         X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1073         X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1074         X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1075         * x86-64-tdep.c: ... from here.
1076
1077 2003-07-09  Andreas Schwab  <schwab@suse.de>
1078
1079         * m68k-tdep.h (enum struct_return): Define.
1080         (struct gdbarch_tdep): Add struct_return.
1081         * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1082         bytes are padded to the right, not to the left.  Pass struct value
1083         address in register %a1, not on stack.
1084         (m68k_use_struct_convention): New function.
1085         (m68k_gdbarch_init): Set use_struct_convention.  Initialize
1086         struct_return in tdep to pcc_struct_return.
1087         * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1088         reg_struct_return.
1089
1090 2003-07-09  Joel Brobecker  <brobecker@gnat.com>      
1091
1092         * somread.c (som_symfile_offsets): Fix compilation error.   
1093
1094 2003-07-09  Andrew Cagney  <cagney@redhat.com>
1095
1096         * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1097         Add comments about the checks.
1098
1099 2003-07-08  Andrew Cagney  <cagney@redhat.com>
1100
1101         * Makefile.in: Make dependency section headers consistent.
1102         (config_h): Move to $BUILD headers section.
1103         (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1104         (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1105         (ada-exp.tab.c): Move to YACC/LEX section.
1106         (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1107         (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1108
1109 2003-07-08  Kris Warkentin  <kewarken@qnx.com>
1110
1111         * nto-procfs.c: Cleaned up a bunch of ARI hits.
1112         Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1113         of strerror with safe_strerror, use ISO C function definitions,
1114         and replace instances of sprintf with snprintf.
1115
1116 2003-07-07  Andrew Cagney  <cagney@redhat.com>
1117
1118         * frame.c (get_prev_frame): Enable check for identical frames.
1119         Update comments.  Update error messages.
1120
1121 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
1122
1123         * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1124
1125 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
1126
1127         * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1128         sort_symtab_syms, no longer necessary.
1129
1130 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
1131
1132         * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1133
1134 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
1135
1136         * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1137         (mips_register_byte): Likewise.
1138
1139 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
1140
1141         * Makefile.in (sparc_tdep_h): New.
1142         (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1143         (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1144         * sparc-linux-nat.c: Include "sparc-tdep.h".
1145         * sparc-nat.c: Likewise.
1146         * sparc-tdep.c: Likewise.
1147         * sparc64nbsd-nat.c: Likewise.
1148         * sparcnbsd-nat.c: Likewise.
1149         * sparcnbsd-tdep.c: Likewise.
1150         * sparc-tdep.h: New file.
1151         * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1152         and sparc_npc_regnum.
1153
1154 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
1155
1156         * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1157         (mips_linux_cannot_store_register): List supported instead of
1158         unsupported registers.
1159
1160 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
1161
1162         * disasm.c (dump_insns): Separate instructions from addresses.
1163
1164 2003-07-07  Andreas Schwab  <schwab@suse.de>
1165
1166         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1167         dependencies.
1168         * m68k-tdep.c (NUM_FREGS): Delete.
1169         (SIG_PC_FP_OFFSET): Delete.
1170         (TARGET_M68K): Delete.
1171         (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1172         P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1173         P_MOVEL_SP, P_MOVEML_SP): Define.
1174         (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1175         P_TRAP): Delete.
1176         (m68k_register_raw_size): Delete.
1177         (m68k_register_virtual_size): Delete.
1178         (m68k_register_type): Renamed from m68k_register_virtual_type and
1179         add gdbarch argument.
1180         (m68k_store_struct_return): Delete.
1181         (m68k_deprecated_extract_return_value): Delete.
1182         (m68k_deprecated_extract_struct_value_address): Delete.
1183         (m68k_frame_chain): Delete.
1184         (m68k_frame_saved_pc): Delete.
1185         (m68k_fix_call_dummy): Delete.
1186         (m68k_push_dummy_frame): Delete.
1187         (m68k_pop_frame): Delete.
1188         (m68k_extract_return_value): New function.
1189         (m68k_store_return_value): Rewrite using regcache.
1190         (m68k_extract_struct_value_address): Rewrite using regcache.
1191         (m68k_push_dummy_call): New function.
1192         (struct m68k_frame_cache): Define.
1193         (m68k_alloc_frame_cache): New function.
1194         (m68k_analyze_frame_setup): New function.
1195         (m68k_analyze_register_saves): New function.
1196         (m68k_analyze_prologue): New function.
1197         (m68k_skip_prologue): Rewrite using above functions.
1198         (m68k_unwind_pc): New function.
1199         (m68k_frame_cache): New function.
1200         (m68k_frame_this_id): New function.
1201         (m68k_frame_prev_register): New function.
1202         (m68k_frame_unwind): New variable.
1203         (m68k_frame_p): New function.
1204         (m68k_sigtramp_frame_cache): New function.
1205         (m68k_sigtramp_frame_this_id): New function.
1206         (m68k_sigtramp_frame_prev_register): New function.
1207         (m68k_sigtramp_frame_unwind): New variable.
1208         (m68k_sigtramp_frame_p): New function.
1209         (m68k_frame_base_address): New function.
1210         (m68k_frame_base): New function.
1211         (m68k_unwind_dummy_id): New function.
1212         (fill_gregset): Use regcache_collect.
1213         (fill_fpregset): Likewise.
1214         (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1215         defined.
1216         (m68k_gdbarch_init): Don't define call_dummy_words.  Don't set
1217         deprecated_init_frame_pc, deprecated_store_struct_return,
1218         deprecated_extract_return_value, deprecated_store_return_value,
1219         deprecated_frame_chain, deprecated_frame_saved_pc,
1220         deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1221         deprecated_register_virtual_size,
1222         deprecated_max_register_raw_size,
1223         deprecated_max_register_virtual_size,
1224         deprecated_register_virtual_type, deprecated_register_size,
1225         deprecated_register_byte, deprecated_register_bytes,
1226         deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1227         call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1228         deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1229         deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1230         deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1231         deprecated_push_dummy_frame, deprecated_pop_frame,
1232         deprecated_dummy_write_sp.  Set deprecated_saved_pc_after_call
1233         only if SYSCALL_TRAP is defined.  Set extract_return_value,
1234         store_return_value, extract_struct_value_address, register_type,
1235         push_dummy_call, unwind_dummy_id, unwind_pc.  Add two frame unwind
1236         predicates.
1237         * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1238         M68K_MAX_REGISTER_SIZE): Define.
1239         (struct m68k_sigtramp_info): Define.
1240         (struct gdbarch_tdep): Add get_sigtramp_info.
1241         * m68klinux-nat.c (fetch_register): Use register_size instead of
1242         REGISTER_RAW_SIZE.  Don't put assignment in if.
1243         (store_register): Likewise.
1244         (fetch_inferior_registers): Likewise.
1245         (store_inferior_registers): Likewise.
1246         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1247         (m68k_linux_frame_saved_pc): Delete.
1248         (m68k_linux_sigcontext_reg_offset,
1249         m68k_linux_ucontext_reg_offset): Define.
1250         (m68k_linux_get_sigtramp_info): New function.
1251         (m68k_linux_extract_return_value): Rewrite using regcache.
1252         (m68k_linux_store_return_value): Likewise.
1253         (m68k_linux_extract_struct_value_address): Likewise.
1254         (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1255         Don't set deprecated_frame_saved_pc,
1256         deprecated_extract_return_value, deprecated_store_return_value,
1257         deprecated_extract_struct_value_address.  Set
1258         extract_return_value, store_return_value,
1259         extract_struct_value_address.
1260
1261 2003-07-07  Andrew Cagney  <cagney@redhat.com>
1262
1263         * expprint.c: Include "user-regs.h" instead of "frame.h".
1264         (print_subexp): Use user_reg_map_regnum_to_name, instead of
1265         frame_map_regnum_to_name.
1266         * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1267         (frame_map_name_to_regnum): Simplify, call
1268         user_reg_map_name_to_regnum.
1269         (frame_map_regnum_to_name): Simplify, call
1270         user_reg_map_regnum_to_name.
1271         (frame_register_unwind): Update.
1272         * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1273         (_initialize_frame_reg): Call user_reg_add_builtin.
1274         * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1275         (value_of_register): Use value_of_user_reg.
1276         * eval.c (evaluate_subexp_standard): Update.
1277         * parse.c (write_dollar_variable): Update.
1278         * d10v-tdep.c (d10v_print_registers_info): Update.
1279         * infcmd.c (registers_info): Update.
1280         * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1281         (builtin_regs_h): Delete macro.
1282         (user_regs_h): Define.
1283         (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1284         (builtin-regs.o): Delete target.
1285         (user-regs.o): Specify dependencies.
1286         (expprint.o): Update dependencies.
1287         (findvar.o): Update dependencies.
1288         (frame.o): Update dependencies.
1289         (std-regs.o): Update dependencies.
1290
1291 2003-07-06  Christopher Faylor  <cgf@redhat.com>
1292
1293         * win32-nat.c (solib_symbols_add): Use one variable for all section
1294         address stuff.  Pass variable rather than address of variable to
1295         safe_symbol_file_add.
1296
1297 2003-07-06  Andreas Schwab  <schwab@suse.de>
1298
1299         * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1300
1301 2003-07-04  Joel Brobecker  <brobecker@gnat.com>
1302
1303         * rs6000-nat.c (vmap_symtab): Fix compilation error.
1304
1305 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
1306
1307         * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1308
1309 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
1310
1311         * nto-procfs.c: New file.  Native procfs support for QNX Neutrino.
1312         * config/i386/nto.mh: New file.
1313         * config/i386/nm-nto.h: New file.
1314         * configure.host: Add i[3456]86-*-nto*.
1315
1316 2003-07-03  Joel Brobecker  <brobecker@gnat.com>
1317
1318         * remote-vx.c (vx_add_symbols): Fix compilation error.
1319
1320 2003-07-03  Andrew Cagney  <cagney@redhat.com>
1321
1322         * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1323         * gdbarch.h, gdbarch.c: Re-generate.
1324         * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1325         (legacy_register_name): Declare.
1326         * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1327         (REGISTER_NAME): Define.
1328         * sparc-tdep.c (legacy_register_name): New function.
1329         * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1330         (REGISTER_NAME): Define.
1331         (hppa64_register_name): Declare.
1332         * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1333         * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1334         (hppa64_register_name): New function.
1335         (hppa_register_name): New function.
1336         * arch-utils.c (legacy_register_name): Delete.
1337         * arch-utils.h (legacy_register_name): Delete.
1338
1339 2003-07-03  Daniel Jacobowitz  <drow@mvista.com>
1340
1341         * cli/cli-interp.c (cli_interpreter_resume): Update the
1342         cli_uiout's stream to gdb_stdout.
1343
1344 2003-07-03  Andrew Cagney  <cagney@redhat.com>
1345
1346         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1347         predicate.
1348         * gdbarch.h, gdbarch.c: Re-generate.
1349         * regcache.c (init_regcache_descr): Use legacy code when either
1350         REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1351
1352 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
1353
1354         * NEWS: Move "set logging" entry into GDB 6.0 section.
1355
1356 2003-07-02  Jim Blandy  <jimb@redhat.com>
1357
1358         * s390-tdep.c (struct frame_extra_info): new member:
1359         'stack_bought_valid'.
1360         (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1361         initialize fextra_info->stack_bought.
1362         (s390_frameless_function_invocation): Don't trust the value of
1363         fextra_info_ptr->stack_bought unless
1364         fextra_info->stack_bought_valid is set.
1365
1366         New S390 prologue analyzer.
1367         * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1368         (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1369         pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1370         pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1371         compute_x_addr, s390_on_stack, s390_store,
1372         s390_get_signal_frame_info): New functions.
1373         (S390_NUM_SPILL_SLOTS): New macro.
1374         (s390_get_frame_info): Rewritten.
1375         (is_arg_reg): Deleted.
1376
1377         Break out the decoding of S/390 instructions into separate
1378         functions, to make it more legible, and easier to check
1379         against the spec.
1380         * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1381         is_rx, is_rxe): New functions.
1382         (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1383         op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1384         op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1385         op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1386         enums for opcode values.  (Is this an improvement?)
1387
1388 2003-07-02  Andrew Cagney  <cagney@redhat.com>
1389
1390         * i386-tdep.c: Revert change committed as part of trad-frame code
1391         below.
1392
1393 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
1394
1395         * breakpoint.c (insert_catchpoint): Make static.
1396
1397 2003-07-02  Andreas Schwab  <schwab@suse.de>
1398
1399         * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1400         former ia64_push_arguments and ia64_push_return_address, and use
1401         regcache functions instead of read/write_register.
1402         (ia64_gdbarch_init): Set push_dummy_call instead of
1403         deprecated_push_arguments and deprecated_push_return_address.
1404
1405 2003-07-01  Andreas Jaeger  <aj@suse.de>
1406
1407         * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1408         before the call.
1409         Set %rax only to number of SSE registers used.
1410
1411 2003-07-01  Andrew Cagney  <cagney@redhat.com>
1412
1413         * trad-frame.h: Update comments, a -1 .addr is reserved.
1414         (trad_frame_value_p, trad_frame_addr_p): Declare.
1415         (trad_frame_reg_p): Declare.
1416         (trad_frame_set_value): Rename trad_frame_register_value.
1417         (trad_frame_set_unknown): Declare.
1418         * trad-frame.c (trad_frame_realreg_p): New function.
1419         (trad_frame_addr_p, trad_frame_value_p): New function.
1420         (trad_frame_set_unknown): New function.
1421         (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1422         (trad_frame_prev_register): Use trad_frame_realreg_p,
1423         trad_frame_addr_p and trad_frame_value_p.
1424         (trad_frame_set_value): Rename trad_frame_register_value.
1425         * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1426         and trad_frame_set_value.
1427
1428 2003-06-30  Jim Blandy  <jimb@redhat.com>
1429
1430         Patch from IBM (authors unspecified, probably Ulrich Weigand and
1431         Gerhard Tonn) for argument passing on the S/390 and S/390x:
1432         * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1433         for 16 registers, and then 32 more bytes.
1434         (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1435         New macros.
1436         (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1437         Move up in the file, since it's now used by is_simple_arg.
1438         (is_simple_arg): Don't assume registers are four bytes long.
1439         Exclude all double arguments.  Extended floats are not simple
1440         args.
1441         (is_power_of_two): New function.
1442         (pass_by_copy_ref): Call is_power_of_two, and check that the
1443         length fits in a register, rather than listing all the acceptable
1444         sizes.  Extended floats are not passed by reference.
1445         (s390_push_arguments): Don't assume registers are four bytes long.
1446         Reserve an argument register to point to the buffer for structures
1447         returned by value.  Use S390_NUM_FP_PARAMETER_REGISTERS and
1448         S390_STACK_FRAME_OVERHEAD.
1449
1450 2003-06-30  Andreas Schwab  <schwab@suse.de>
1451
1452         * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1453         format error message.
1454
1455 2003-06-30  Joel Brobecker  <brobecker@gnat.com>
1456
1457         * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1458
1459 2003-06-30  David Carlton  <carlton@kealia.com>
1460
1461         Band-aid for PR c++/1245.
1462         * Makefile.in (cp-support.o): Depend on complaints_h.
1463         * cp-support.c: Include complaints.h.  Add declaration for
1464         find_last_component.
1465         (cp_find_first_component): Separate code into
1466         cp_find_first_component_aux.
1467         (cp_find_first_component_aux): Call demangled_name_complaint.
1468         (demangled_name_complaint): New.
1469
1470 2003-06-30  Andrew Cagney  <cagney@redhat.com>
1471
1472         * remote.c (remote_write_bytes): Explicitly compute and then use
1473         the payload size.  Update comments to reflect.  Fixes problem of
1474         GDB not sending small packets as found by Fred Fish.
1475
1476 2003-06-30  Andrew Cagney  <cagney@redhat.com>
1477
1478         * remote.c (remote_async_wait): Fix -Wformat problem.
1479
1480 2003-06-29  Andrew Cagney  <cagney@redhat.com>
1481
1482         * remote.c (remote_wait): Call error, and not warning, when the
1483         packet is corrupt.
1484         (remote_async_wait): Ditto.
1485
1486 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
1487
1488         * sparc-tdep.c (sparc_y_regnum): Make external again.
1489
1490 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
1491
1492         * cli/cli-logging.c (pop_output_files): Add void to function
1493         definition.
1494
1495 2003-06-29  Andrew Cagney  <cagney@redhat.com>
1496
1497         * frame.c (frame_register_unwind): Use unsigned char when dumping
1498         the buffer contents.
1499
1500 2003-06-28  Daniel Jacobowitz  <drow@mvista.com>
1501
1502         * cli/cli-logging.c: New file.
1503         * cli-out.c (struct ui_out_data): Add original_stream.
1504         (cli_redirect): New function.
1505         (cli_ui_out_impl): Add cli_redirect.
1506         (cli_out_new): Initialize original_stream.
1507         * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1508         (uo_redirect, ui_out_redirect): New.
1509         * ui-out.h (struct ui_out_impl): Add redirect member.
1510         (redirect_ftype): New.
1511         (ui_out_redirect): Add prototype.
1512         * Makefile.in: Add rules for cli-logging.c.
1513         * NEWS: Mention "set logging".
1514
1515 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
1516
1517         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1518
1519 2003-06-27  Andrew Cagney  <cagney@redhat.com>
1520
1521         * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1522         (m68hc11_gdbarch_init): Do not set call_dummy_address.
1523         * avr-tdep.c (avr_call_dummy_address): Delete function.
1524         (avr_gdbarch_init): Do not set call_dummy_address.
1525
1526 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
1527
1528         * symfile.c (syms_from_objfile): Move variables to inner block.
1529         Move the checks for the non-mainline case a bit earlier to avoid
1530         doing some useless computations.
1531
1532 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
1533
1534         * dwarfread.c (decode_modified_type): Gag new compiler warning.
1535
1536 2003-06-26  Elena Zannoni  <ezannoni@redhat.com>
1537
1538         * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1539         sections.
1540
1541 2003-06-26  Michael Chastain  <mec@shout.net>
1542
1543         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1544         gdb/testsuite/gdb.c++/pr-1210.exp.
1545
1546 2003-06-26  Andrew Cagney  <cagney@redhat.com>
1547
1548         * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1549         altivec_expression.h and altivec_registers.h.
1550
1551 2003-06-26  Andrew Cagney  <cagney@redhat.com>
1552
1553         * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1554         info->mach when MIPS16.  Patch suggested by Fred Fish.
1555
1556 2003-06-26  Andrew Cagney  <cagney@redhat.com>
1557
1558         * utils.c (internal_vproblem): Print the problem to a reason
1559         buffer and then pass to query.  Make the msg variable more local.
1560
1561 2003-06-26  Andrew Cagney  <cagney@redhat.com>
1562
1563         * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate.  Deprecate.
1564         (FRAME_LOCALS_ADDRESS): Add predicate.  Deprecate.
1565         * gdbarch.h, gdbarch.c: Re-generate.
1566         * frame-base.c (default_frame_args_address): Update.  Use
1567         default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
1568         not available.
1569         (default_frame_locals_address): Ditto for
1570         DEPRECATED_FRAME_LOCALS_ADDRESS.
1571         * vax-tdep.c (vax_sigtramp_saved_pc): Update.
1572         (vax_frame_num_args): Update.
1573         (vax_gdbarch_init): Update.
1574         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1575         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1576         * mcore-tdep.c (mcore_gdbarch_init): Update.
1577         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1578         * ia64-tdep.c (ia64_gdbarch_init): Update.
1579         * symtab.h (address_class): Update comments.
1580         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
1581         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1582         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1583         * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1584         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1585         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1586         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1587         * alpha-mdebug-tdep.c: Update.
1588         * ada-lang.c (add_symbols_from_enclosing_procs): Update.
1589
1590 2003-06-26  Andreas Jaeger  <aj@suse.de>
1591
1592         * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
1593         of SSE registers so that varargs functions work.  Rework handling
1594         of passing arguments on the stack.
1595         (x86_64_store_return_value): Return double and float values in SSE
1596         register.
1597
1598 2003-06-24  Michael Chastain  <mec@shout.net>
1599
1600         * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
1601         the "constructor breakpoints ignored" bug.
1602
1603 2003-06-25  David Carlton  <carlton@kealia.com>
1604
1605         * MAINTAINERS: Update e-mail address.
1606
1607 2003-06-24  Jim Blandy  <jimb@redhat.com>
1608
1609         * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
1610
1611         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
1612         function.
1613         (ppc_linux_init_abi): Register it as the
1614         CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
1615
1616         * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
1617         (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
1618         method.
1619
1620         * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
1621         (ppc64_standard_linkage_target): Use it.
1622
1623 2003-06-23  Andrew Cagney  <cagney@redhat.com>
1624
1625         * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
1626         for 0 "int0" and 4 "int32" sized registers.
1627         * gdbtypes.c (builtin_type_int0): Define.
1628         (build_gdbtypes): Initialize builtin_type_int0.
1629         * gdbtypes.h (builtin_type_int0): Declare.
1630
1631 2003-06-23  Stephane Carrez  <stcarrez@nerim.fr>
1632
1633         * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
1634         as characters are unsigned.
1635
1636 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
1637
1638         PR gdb/1179
1639         * dwarfread.c (struct_type): Skip static fields without crashing.
1640
1641 2003-06-22  Andrew Cagney  <cagney@redhat.com>
1642
1643         GDB 6.0 branch created.
1644         * README: Update.
1645         * PROBLEMS: Update.  Empty.
1646         * NEWS: Update.
1647
1648 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
1649
1650         * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
1651         Suggested by Nick Hibma <n_hibma@webweaving.org>.
1652
1653 2003-06-22  Andrew Cagney  <cagney@redhat.com>
1654
1655         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
1656         GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD.  Suggested by Momchil
1657         Velikov.
1658
1659 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
1660
1661         * cli/cli-cmds.c (shell_escape): Silence warnings from old
1662         compilers.
1663
1664 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
1665
1666         * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
1667         argument of val_print.
1668         * cp-valprint.c (cp_print_value): Don't add the offset parameter
1669         to the address argument of baseclass_offset or target_read_memory.
1670         Do add it to the argument of cp_print_value_fields.
1671
1672 2003-06-21  Andrew Cagney  <cagney@redhat.com>
1673
1674         * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
1675         (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
1676         instead of 0..NUM_REGS.
1677         (mips_register_reggroup_p): New function.
1678         (mips_pseudo_register_write): New function.
1679         (mips_pseudo_register_read): New function.
1680         (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
1681         based on the register's type.
1682         (read_next_frame_reg): Simplify.  Assert that REGNO is a pseudo /
1683         cooked.
1684         (mips_get_saved_register): Simplify.  Assert that REGNO is a
1685         pseudo / cooked.
1686         (mips_register_byte): New function.  Use MIPS_REGISTER_BYTE.
1687         (mips_register_type): Replace mips_register_virtual_type.  Map
1688         NUM_REGS..2*NUM_REGS onto 0..NUM_REGS.  Use MIPS_REGISTER_TYPE
1689         when available.
1690         (read_next_frame_reg): Simplify, but handle SP_REGNUM.  Assert
1691         that the register is cooked / virtual.
1692         (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
1693         Only get the extra info when needed.
1694         (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
1695         (mips32_heuristic_proc_desc): Fetch the cooked register.
1696         (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
1697         (mips_init_extra_frame_info, get_frame_pointer): Ditto.
1698         (mips_print_register): Use gdbarch_register_type, instead of
1699         REGISTER_VIRTUAL_TYPE.
1700         (print_gp_register_row): Use gdbarch_register_type, instead of
1701         REGISTER_VIRTUAL_TYPE.  Allow for a pseudo / cooked REGNUM.
1702         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1703         Print the pseudo / cooked registers.
1704         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1705         Print the pseudo / cooked registers.
1706         (mips_xfer_register): Use regcache_cooked_read_part.  Assert that
1707         REG_NUM is pseudo / cooked.
1708         (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
1709         (mips_n32n64_xfer_return_value): Ditto.
1710         (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
1711         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
1712         (mips_register_sim_regno): New function.
1713         (mips_gdbarch_init): Set deprecated_register_byte,
1714         register_group_p, pseudo_register_write, pseudo_register_read,
1715         register_sim_regno, and num_pseudo_regs.  Set register_type,
1716         instead of register_virtual_type.
1717         * Makefile.in (mips-tdep.o): Update dependencies.
1718         * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
1719         REGISTER_VIRTUAL_TYPE.
1720         * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
1721         * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
1722         * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
1723         * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
1724         * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
1725
1726 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
1727
1728         * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
1729         * cli/cli-cmds.c: Include "gdb_vfork.h".
1730         (shell_escape): Use vfork.
1731
1732 2003-06-21  Andrew Cagney  <cagney@redhat.com>
1733
1734         * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
1735         32 bit floating-point register saves.
1736
1737         * frame.h (deprecated_unwind_get_saved_register): Delete.
1738         * frame.c (deprecated_unwind_get_saved_register): Delete function.
1739         * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
1740         and deprecated_get_next_frame_hack instead of
1741         deprecated_unwind_get_saved_register.
1742
1743         * mips-tdep.c (mips_dump_tdep): Do not print
1744         REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
1745
1746         * frame.c (get_frame_register): New function.
1747         (frame_unwind_register_signed): New function.
1748         (get_frame_register_signed): New function.
1749         (frame_unwind_register_unsigned): New function.
1750         (get_frame_register_unsigned): New function.
1751         * frame.h: Add comments on naming schema.
1752         (get_frame_register, frame_unwind_register_signed): Declare.
1753         (get_frame_register_signed, get_frame_register_signed): Declare.
1754         (frame_unwind_register_unsigned): Declare.
1755         (get_frame_register_unsigned): Declare.
1756
1757 2003-06-20  Theodore A. Roth  <troth@openavr.org>
1758
1759         * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
1760
1761 2003-06-20  Theodore A. Roth  <troth@openavr.org>
1762
1763         * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
1764         (avr_read_sp): Ditto.
1765
1766 2003-06-20  Daniel Jacobowitz  <drow@mvista.com>
1767
1768         * config/arm/linux.mt: Remove code protected by GDBSERVER define.
1769         * config/arm/nm-linux.h: Likewise.
1770         * config/arm/tm-linux.h: Likewise.
1771         * config/ia64/nm-linux.h: Likewise.
1772         * config/ia64/tm-ia64.h: Likewise.
1773         * config/s390/tm-linux.h: Likewise.
1774         * config/s390/tm-s390.h: Likewise.
1775         * s390-nat.c: Likewise.
1776         * s390-tdep.c: Likewise.
1777
1778         * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
1779         * config/ia64/linux.mt: Likewise.
1780         * config/m68k/linux.mh: Likewise.
1781         * config/mips/linux.mt: Likewise.
1782         * config/powerpc/linux.mh: Likewise.
1783         * config/sh/linux.mt: Likewise.
1784
1785 2003-06-19  Kris Warkentin  <kewarken@qnx.com>
1786
1787         * solib.c (solib_open): Change tests for whether to search
1788         LD_LIBRARY_PATH and PATH to better deal with remotes.  Update
1789         comments.
1790
1791 2003-06-19  Theodore A. Roth  <troth@openavr.org>
1792
1793         * avr-tdep.c (avr_frame_address): Delete function.
1794         (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
1795         set_gdbarch_frame_args_address.
1796
1797 2003-06-19  Andrew Cagney  <cagney@redhat.com>
1798
1799         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
1800         (REGISTER_CONVERT_FROM_TYPE): Delete.
1801         (mips_register_convert_to_type): Delete declaration.
1802         (mips_register_convert_from_type): Delete declaration.
1803         * linux-nat.h (struct target_ops): Declare opaque.  s/Linux/Linux
1804         kernel/.
1805
1806 2003-06-19  Michael Snyder  <msnyder@redhat.com>
1807
1808         * linux-nat.h: New file.
1809         * linux-nat.c: Include linux-nat.h.
1810         * lin-lwp.c: Include linux-nat.h.
1811         Move struct lwp_info def to linux-nat.h.
1812         * linux-proc.c: Include linux-nat.h.
1813         (linux_make_note_section): Iterate over lwps instead of threads.
1814         (linux_do_thread_registers): Use lwp instead of merged pid.
1815         * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
1816         * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
1817         Add dependency on linux_nat_h.
1818
1819 2003-06-19  Theodore A. Roth  <troth@openavr.org>
1820
1821         * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
1822
1823 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
1824
1825         * varobj.c (get_type, get_target_type): Use check_typedef.
1826
1827 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
1828
1829         * breakpoint.c (insert_catchpoint): Call internal_error.
1830
1831 2003-06-19  Theodore A. Roth  <troth@openavr.org>
1832
1833         * avr-tdep.c (avr_push_dummy_code): Delete function.
1834         (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
1835
1836 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
1837
1838         * arch-utils.c (default_prepare_to_proceed): Remove.
1839         (generic_prepare_to_proceed): Remove.
1840         * arch-utils.h (default_prepare_to_proceed): Remove prototype.
1841         (generic_prepare_to_proceed): Remove prototype.
1842         * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
1843         * gdbarch.c: Regenerate.
1844         * gdbarch.h: Regenerate.
1845         * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
1846         * hppah-nat.c (hppa_switched_threads): Remove.
1847         * infrun.c (prepare_to_proceed): New static function, copied from
1848         generic_prepare_to_proceed.  Remove select_it argument.
1849         (proceed): Call prepare_to_proceed.
1850         * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
1851         variables.
1852         (ptrace_wait): Don't set the removed variables.
1853         (hppa_switched_threads): Remove.
1854         * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
1855         * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
1856         (lin_lwp_prepare_to_proceed): Remove prototype.
1857         * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
1858         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
1859
1860 2003-06-18  Theodore A. Roth  <troth@openavr.org>
1861
1862         * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
1863         trad-frame.h.
1864         (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
1865         (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
1866         (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
1867         (AVR_PROLOGUE_*): Enumerate prologue types.
1868         (struct frame_extra_info): Remove.
1869         (struct avr_unwind_cache): Define.
1870         (avr_write_sp): Delete function.
1871         (avr_read_fp): Ditto.
1872         (avr_init_extra_frame_info): Ditto.
1873         (avr_pop_frame): Ditto.
1874         (avr_frame_saved_pc): Ditto.
1875         (avr_saved_pc_after_call): Ditto.
1876         (avr_push_return_address): Ditto.
1877         (avr_frame_chain): Ditto.
1878         (avr_store_struct_return): Ditto.
1879         (avr_push_arguments): Ditto.
1880         (avr_scan_prologue): Update comments. Changed to set up the info for
1881         cache unwinding. Now returns end of prologue PC.
1882         (avr_skip_prologue): Better handling of functions lacking a prologue
1883         by using avr_scan_prologue.
1884         (avr_scan_arg_moves): New function.
1885         (avr_saved_regs_unwinder): Ditto.
1886         (avr_frame_unwind_cache): Ditto.
1887         (avr_unwind_pc): Ditto.
1888         (avr_frame_this_id): Ditto.
1889         (avr_frame_prev_register): Ditto.
1890         (avr_frame_p): Ditto.
1891         (avr_frame_base_address ): Ditto.
1892         (avr_unwind_dummy_id): Ditto.
1893         (avr_push_dummy_code): Ditto.
1894         (push_stack_item): Ditto.
1895         (pop_stack_item): Ditto.
1896         (avr_push_dummy_call): Ditto.
1897         (struct stack_item): Define.
1898         (avr_frame_unwind): Declare structure.
1899         (avr_frame_base): Ditto.
1900         (avr_gdbarch_init): Remove calls to
1901         set_gdbarch_deprecated_init_frame_pc,
1902         set_gdbarch_deprecated_target_read_fp,
1903         set_gdbarch_deprecated_dummy_write_sp,
1904         set_gdbarch_deprecated_fp_regnum,
1905         set_gdbarch_deprecated_push_arguments,
1906         set_gdbarch_deprecated_push_return_address,
1907         set_gdbarch_deprecated_pop_frame,
1908         set_gdbarch_deprecated_store_struct_return,
1909         set_gdbarch_deprecated_frame_init_saved_regs,
1910         set_gdbarch_deprecated_init_extra_frame_info,
1911         set_gdbarch_deprecated_frame_chain,
1912         set_gdbarch_deprecated_frame_saved_pc,
1913         set_gdbarch_deprecated_saved_pc_after_call.
1914         Add calls to set_gdbarch_push_dummy_call,
1915         set_gdbarch_push_dummy_code,
1916         frame_unwind_append_predicate,
1917         frame_base_set_default,
1918         set_gdbarch_unwind_dummy_id,
1919         set_gdbarch_unwind_pc.
1920         Wrap a long line.
1921
1922 2003-06-18  Corinna Vinschen  <vinschen@redhat.com>
1923
1924         * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
1925         registers for H8/300S.
1926         (h8300_print_registers_info): Ditto.
1927         (h8300_gdbarch_init): Accommodate register count for H8/300S.
1928
1929 2003-06-18  Daniel Jacobowitz  <drow@mvista.com>
1930
1931         * config/nm-linux.h (linux_record_stopped_pid): New prototype.
1932         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1933         (lin_lwp_wait): Likewise.  Update comments.
1934         * linux-nat.c (struct simple_pid_list, add_to_pid_list)
1935         (pull_pid_from_list, linux_record_stopped_pid): New.
1936
1937 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
1938
1939         * ada-lang.c (scan_discrim_bound): Name first argument.
1940         (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
1941         declared by ALL_BLOCK_SYMBOLS.
1942
1943 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
1944
1945         * ada-tasks.c (find_function_in_inferior): Don't declare it.
1946         ("regcache.h"): Include it.
1947         * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
1948
1949 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
1950
1951         * NEWS: Mention gdbserver detach change and "disconnect" command.
1952         * infcmd.c (disconnect_command): New function.
1953         (_initialize_infcmd): Add ``disconnect'' command.
1954         * remote.c (remote_async_detach): Delete.
1955         (remote_detach): Merge remote_async_detach.
1956         (remote_disconnect): New.
1957         (init_remote_ops): Set to_disconnect.
1958         (init_remote_cisco_ops): Likewise.
1959         (init_remote_async_ops): Likewise.  Use remote_detach.
1960         * target.c (cleanup_target): Default to_disconnect.
1961         (update_current_target): Inherit to_disconnect.
1962         (target_disconnect, debug_to_disconnect): New functions.
1963         (setup_target_debug): Set to_disconnect.
1964         * target.h (struct target_ops): Add to_disconnect.
1965         (target_disconnect): Add prototype.
1966
1967 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
1968
1969         * breakpoint.c (insert_catchpoint): New function.
1970         (insert_breakpoints): Use catch_exceptions to call
1971         insert_catchpoint.  Disable catchpoints if they fail to insert.
1972
1973 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
1974
1975         * symfile.c (reread_symbols): Clear sym_private.
1976
1977 2003-06-17  Andrew Cagney  <cagney@redhat.com>
1978
1979         * trad-frame.h (struct frame_info): Add opaque declaration.
1980         * remote-fileio.h (struct cmd_list_element): Add opaque
1981         declaration.
1982         * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
1983         comments.
1984
1985 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
1986
1987         * remote.c (remote_prepare_to_store): Replace call to
1988         deprecated_read_register_bytes with multiple regcache_raw_read
1989         calls.
1990
1991 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
1992
1993         * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
1994         (nto_find_and_open_solib): Likewise.
1995         (nto_init_solib_absolute_prefix): Likewise.
1996         (_initialize_nto_tdep): Fix indentation.
1997
1998 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
1999
2000         * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2001
2002 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
2003
2004         * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2005
2006 2003-06-17  Jim Blandy  <jimb@redhat.com>
2007
2008         * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2009
2010 2003-06-16  Theodore A. Roth  <troth@openavr.org>
2011
2012         * avr-tdep.c (avr_extract_return_value): New function.
2013         (avr_gdbarch_init): Set extract_return_value method.
2014
2015 2003-06-16  Andrew Cagney  <cagney@redhat.com>
2016
2017         * frame.h (deprecated_get_next_frame_hack): Declare.
2018         * frame.c (legacy_saved_regs_prev_register): Only require
2019         DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed.  Assert that
2020         there are always saved regs.
2021         (deprecated_generic_get_saved_register): Do not require
2022         DEPRECATED_FRAME_INIT_SAVED_REGS.
2023         (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2024         use frame ID unwind instead.
2025         (deprecated_get_next_frame_hack): New function.
2026
2027 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
2028
2029         * h8300-tdep.c (h8300_push_arguments): Remove.  Substitute by...
2030         (h8300_push_dummy_call): ...this function.  Some minor optimization.
2031         (h8300_push_return_address): Remove.
2032         (h8300_gdbarch_init): Remove calls to
2033         set_gdbarch_deprecated_dummy_write_sp,
2034         set_gdbarch_deprecated_push_arguments and
2035         set_gdbarch_deprecated_push_return_address.
2036         Add call to set_gdbarch_push_dummy_call.
2037
2038 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
2039
2040         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2041         (E_PSEUDO_EXR_REGNUM): Ditto.
2042         (h8300_is_argument_spill): Check for instructions moving argument
2043         registers into safe registers.
2044         (h8300_skip_prologue): Check for stm instruction to push registers
2045         used for register variables onto stack.
2046         (gdb_print_insn_h8300): Remove.
2047         (h8300_examine_prologue): Add a comment.
2048         (h8300_register_name): Take pseudo registers into account.
2049         (h8300s_register_name): Ditto.
2050         (h8300sx_register_name): Ditto.
2051         (h8300_print_register): Ditto.
2052         (h8300_print_registers_info): Define "nice" printing order.
2053         (h8300_saved_pc_after_call): Take pseudo registers into account.
2054         (h8300_register_type): Ditto.  Return type used for remote connection
2055         when requesting real CCR or EXR register, return actual type when
2056         requesting pseudo CCR or EXR.
2057         (h8300_pseudo_register_read): New function.
2058         (h8300_pseudo_register_write): Ditto.
2059         (h8300_dbg_reg_to_regnum): Ditto.
2060         (h8300s_dbg_reg_to_regnum): Ditto.
2061         (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2062         set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2063         set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2064         set_gdbarch_print_insn architecture dependent.
2065         Call set_gdbarch_pseudo_register_read and
2066         set_gdbarch_pseudo_register_write.
2067         (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2068
2069 2003-06-16  Andrew Cagney  <cagney@redhat.com>
2070
2071         * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2072         * gdbarch.h, gdbarch.c: Re-generate.
2073         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2074         * s390-tdep.c (s390_gdbarch_init): Update.
2075         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2076         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2077         * mips-tdep.c (mips_gdbarch_init): Update.
2078         * mcore-tdep.c (mcore_gdbarch_init): Update.
2079         * cris-tdep.c (cris_gdbarch_init): Update.
2080         * infcall.c (call_function_by_hand): Update.
2081         * ia64-tdep.c (ia64_push_arguments): Update comment.
2082         * frame.c (legacy_get_prev_frame): Do not assume
2083         SAVE_DUMMY_FRAME_TOS_P.
2084         * dummy-frame.c (find_dummy_frame): Update comment.
2085
2086 2003-06-16  Andrew Cagney  <cagney@redhat.com>
2087
2088         * regcache.c (do_cooked_read): Do not use register_valid_p.
2089
2090 2003-06-15  Theodore A. Roth  <troth@openavr.org>
2091
2092         * avr-tdep.c (avr_register_type): Remove a blank line.
2093         (avr_scan_prologue): Correct some comments.
2094
2095 2003-06-15  Theodore A. Roth  <troth@openavr.org>
2096
2097         * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2098         prologue types.
2099         Properly scan prologues generated by gcc with the -mcall-prologues
2100         option.
2101         Add code to scan -mcall-prologues for mega devices.
2102
2103 2003-06-15  Theodore A. Roth  <troth@openavr.org>
2104
2105         * avr-tdep.c (avr_register_byte): Delete function.
2106         (avr_register_raw_size): Delete function.
2107         (avr_register_virtual_size): Delete function.
2108         (avr_register_virtual_type): Delete function.
2109         (avr_register_type): New function.
2110         (avr_address_to_pointer): Remove unused code.
2111         (avr_read_fp): Need to read FP as two separate bytes due to change to
2112         avr_register_type() usage.
2113         (avr_gdbarch_init): Don't set deprecated_register_size.
2114         Don't set deprecated_register_bytes.
2115         Don't set deprecated_register_byte.
2116         Don't set deprecated_register_raw_size.
2117         Don't set deprecated_max_register_raw_size.
2118         Don't set deprecated_register_virtual_size.
2119         Don't set deprecated_max_register_virtual_size.
2120         Don't set deprecated_register_virtual_type.
2121         Set register_type method.
2122
2123 2003-06-15  Daniel Jacobowitz  <drow@mvista.com>
2124
2125         * Makefile.in (linux-nat.o): Add rule.
2126         * linux-nat.c: New file.
2127         * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2128         (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2129         (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2130         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2131         * config/arm/linux.mh (NATDEPFILES): Likewise.
2132         * config/i386/linux.mh (NATDEPFILES): Likewise.
2133         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2134         * config/ia64/linux.mh (NATDEPFILES): Likewise.
2135         * config/m68k/linux.mh (NATDEPFILES): Likewise.
2136         * config/mips/linux.mh (NATDEPFILES): Likewise.
2137         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2138         * config/s390/s390.mh (NATDEPFILES): Likewise.
2139         * config/sparc/linux.mh (NATDEPFILES): Likewise.
2140
2141 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
2142
2143         * i387-tdep.c: Reorder includes, fix some whitespace issues and
2144         replace out-of-date comment.
2145
2146 2003-06-15  Andrew Cagney  <cagney@redhat.com>
2147
2148         * rdi-share/host.h (Fail): Change to a varargs function.
2149         * remote-rdi.c (Fail): Update.
2150
2151 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
2152
2153         * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2154         (i386_convert_register_p, i386_register_to_value,
2155         i386_register_from_value): Handle types longer than 8 bytes.
2156
2157 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
2158
2159         * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2160         Move floating-point code to new function in i387-tdep.c.
2161         * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2162         New functions containing code moved here from i386-tdep.c.
2163         * i387-tdep.h: Add opaque declaration for `struct type'.
2164         (i387_register_to_value, i387_value_to_register): New prototypes.
2165         * x86-64-tdep.c (x86_64_convert_register_p): New function.
2166         (x86_64_init_abi): Set convert_register_p, register_to_value and
2167         value_to_register here.
2168
2169 2003-06-14  Andrew Cagney  <cagney@redhat.com>
2170
2171         * mips-tdep.c (mips_register_to_value): Make static.
2172         (mips_value_to_register): Make static.
2173         * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2174         * ia64-tdep.c (ia64_register_raw_size): Make static.
2175         (ia64_register_virtual_size): Make static.
2176         (ia64_register_byte): Make static.
2177         * i387-tdep.c: Include "i387-tdep.h".
2178         (print_387_control_word): Delete function.
2179         (print_387_status_word): Delete function.
2180         (print_387_status_bits): Delete function.
2181         (print_387_control_bits): Delete function.
2182         * Makefile.in (i387-tdep.o): Update dependencies.
2183         * rdi-share/host.h (Fail): Declare.
2184         * remote-rdi.c (Fail): Update to match declaration.
2185
2186 2003-06-14  Andrew Cagney  <cagney@redhat.com>
2187
2188         * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2189         * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2190         * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2191         * config/djgpp/fnchange.lst: Delete "remote-array.c".
2192         * README: Delete reference to remote-array.
2193         * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2194         (remote-array.o): Delete target.
2195         * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2196         * remote-array.c: Delete file.
2197
2198 2003-06-14  Andrew Cagney  <cagney@redhat.com>
2199             Mark Kettenis  <kettenis@gnu.org>
2200
2201         * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2202         (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2203         parameter with "frame".
2204         * gdbarch.h, gdbarch.c: Re-generate.
2205         * frame.h (put_frame_register): Declare.
2206         * frame.c (put_frame_register): New function.
2207         * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2208         (legacy_register_to_value): Rewrite, use "frame" to get the
2209         register value.
2210         (legacy_value_to_register): Rewrite, use "frame" to find the
2211         register's location before storing.
2212         * arch-utils.h (legacy_convert_register_p): Update.
2213         (legacy_register_to_value, legacy_value_to_register): Update.
2214         * findvar.c (value_from_register): Rewrite, eliminate use of
2215         REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2216         "frame" to REGISTER_TO_VALUE.
2217         * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2218         lval_reg_frame_relative + lval_register branch of the switch.  Do
2219         not use REGISTER_CONVERT_FROM_TYPE.  Use put_frame_register.
2220         * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2221         I386_EDI_REGNUM): New defines.
2222         (i386_next_regnum, i386_convert_register_p,
2223         i386_register_to_value, i386_value_to_register): New functions.
2224         (i386_register_convertible, i386_register_convert_to_virtual,
2225         i386_convert_to_raw): Remove functions.
2226         (i386_gdbarch_init): Set convert_register_p, register_to_value and
2227         value_to_register instead of register_convertible,
2228         register_convert_to_virtual and register_convert_to_raw.
2229         * mips-tdep.c (mips_convert_register_p): New function.
2230         (mips_value_to_register): Replace mips_register_convert_from_type.
2231         (mips_register_to_value): Replace mips_register_convert_to_type.
2232         (mips_gdbarch_init): Set conver_register_p, value_to_register and
2233         register_to_value.
2234         * alpha-tdep.c (alpha_convert_register_p): Update.
2235         (alpha_value_to_register): Update, store the register.
2236         (alpha_register_to_value): Update, fetch the register.
2237
2238 2003-06-14  Theodore A. Roth  <troth@openavr.org>
2239
2240         * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2241         (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2242         Don't set deprecated_call_dummy_words.
2243         Remove commented out set_gdbarch_believe_pcc_promotion() call.
2244         Don't set remote_translate_xfer_address.
2245         (avr_io_reg_read_command): Remove commented out debug printf.
2246         Wrap a long line.
2247
2248 2003-06-14  Theodore A. Roth  <troth@openavr.org>
2249
2250         * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2251         causes gdb to seg fault.
2252
2253 2003-06-14  Daniel Jacobowitz  <drow@mvista.com>
2254
2255         * sparc-nat.c (fetch_inferior_registers): Correct
2256         a reference to "registers".
2257
2258 2003-06-14  Jeroen Dekkers  <jeroen@dekkers.cx>
2259
2260         * Makefile.in (exc_request_U_h): Define
2261         (exc_request_S_h): Likewise.
2262         (msg_reply_S_h): Likewise.
2263         (msg_U_h): Likewise.
2264         (notify_S_h): Likewise.
2265         (process_reply_S_h): Likewise.
2266         (gnu-nat.o): Depend on gdb_obstack_h
2267         * gnu-nat.c: Include "gdb_obstack.h".
2268
2269 2003-06-13  Andrew Cagney  <cagney@redhat.com>
2270
2271         * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2272         * gdbarch.h, gdbarch.c: Re-generate.
2273
2274 2003-06-13  Andrew Cagney  <cagney@redhat.com>
2275
2276         * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces.  Clarify
2277         when deprecated REGISTER macros can be deleted.
2278         * gdbarch.h, gdbarch.c: Re-generate.
2279
2280 2003-06-13  Jim Blandy  <jimb@redhat.com>
2281
2282         * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2283         Linux entry point symbols for _dl_debug_state, too.
2284
2285 2003-06-13  Andrew Cagney  <cagney@redhat.com>
2286
2287         * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2288         available, do not use the FP register, and always save the TOS.
2289         * dummy-frame.c (dummy_frame_this_id): Do not assert
2290         SAVE_DUMMY_FRAME_TOS.
2291         * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2292         (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2293         (i386_push_dummy_call): Add 8 to the returned SP.
2294         * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2295         * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2296         (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2297         * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2298         (x86_64_push_dummy_call): Return "sp + 16".
2299         (x86_64_init_abi): Do not set save_dummy_frame_tos.
2300         * alpha-tdep.c (alpha_gdbarch_init): Do not set
2301         save_dummy_frame_tos.
2302
2303 2003-06-13  Jim Blandy  <jimb@redhat.com>
2304
2305         * frv-tdep.c (frv_use_struct_convention): Delete static
2306         declaration for function deleted in my change of 2003-06-12.
2307
2308 2003-06-13  Theodore A. Roth  <troth@openavr.org>
2309
2310         * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2311         (avr_pointer_to_address): Shift code addrs left 1 bit.
2312         (avr_convert_from_func_ptr_addr): Delete function since operation is
2313         better handled by avr_address_to_pointer and avr_pointer_to_address.
2314         (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2315
2316 2003-06-13  Mark Kettenis  <kettenis@gnu.org>
2317
2318         From Kelley Cook  <kelleycook@wideopenwest.com>:
2319         * configure.host: Accept i[34567]86 variants.
2320         * configure.tgt: Likewise.
2321         * nlm/configure.in: Likewise.
2322         * nlm/configure: Regenerated.
2323
2324 2003-06-13  Richard Earnshaw  <rearnsha@arm.com>
2325
2326         * arm-tdep.c (solib-svr4.h): Dont' include it.
2327         (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2328         * arm-linux-tdep.c: ... here.  Make static.
2329         (arm_linux_init_abi): Register it.
2330         (solib-svr4.h): Include it.
2331         * Makefile.in: Update dependencies.
2332         * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2333         (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2334
2335 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
2336
2337         * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2338         indicate registers used for return values.
2339         (struct frame_extra_info): Drop args_pointer and locals_pointer.
2340         (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2341         members.
2342         (h8300_init_extra_frame_info): Ditto.
2343         (h8300_frame_locals_address): Removed.
2344         (h8300_frame_args_address): Removed.
2345         (h8300_extract_return_value): Use new regcache structure. Only care
2346         for 16 bit CPUs.
2347         (h8300h_extract_return_value): Same function for 32 bit CPUs.
2348         (h8300_store_return_value): Use new regcache structure. Only care
2349         for 16 bit CPUs.
2350         (h8300h_store_return_value): Same function for 32 bit CPUs.
2351         (h8300_store_struct_return): Removed.
2352         (h8300_extract_struct_value_address): Use new regcache structure.
2353         (h8300h_extract_struct_value_address): Removed.
2354         (h8300_push_dummy_code): New function.
2355         (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2356         Remove call_dummy_words.  Call set_gdbarch_extract_return_value and
2357         set_gdbarch_store_return_value architecture dependent.
2358         Call set_gdbarch_push_dummy_code and
2359         set_gdbarch_extract_struct_value_address.
2360         Remove calls to set_gdbarch_frame_args_address,
2361         set_gdbarch_frame_locals_address,
2362         set_gdbarch_deprecated_store_struct_return,
2363         set_gdbarch_deprecated_extract_return_value,
2364         set_gdbarch_deprecated_extract_struct_value_address,
2365         set_gdbarch_deprecated_call_dummy_words and
2366         set_gdbarch_deprecated_sizeof_call_dummy_words.
2367
2368 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
2369
2370         * h8300-tdep.c (h8300_register_byte): Remove.
2371         (h8300h_register_byte): Remove.
2372         (h8300_register_virtual_type): Remove.  Substitute by...
2373         (h8300_register_type): New function.
2374         (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2375         (h8300h_extract_struct_value_address): Ditto.
2376         (h8300_gdbarch_init): Drop calls to
2377         set_gdbarch_deprecated_register_byte and
2378         set_gdbarch_deprecated_register_virtual_type.
2379         Add call to set_gdbarch_register_type.
2380
2381 2003-06-13  Andrew Cagney  <cagney@redhat.com>
2382
2383         * gdbarch.sh: Update comments on registers.
2384         (deprecated_register_byte): Rename register_byte.
2385         (deprecated_register_raw_size): Rename register_raw_size.
2386         (deprecated_register_virtual_size): Rename register_virtual_size.
2387         (deprecated_register_virtual_type): Rename register_virtual_type.
2388         * gdbarch.h, gdbarch.c: Re-generate.
2389         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2390         * vax-tdep.c (vax_gdbarch_init): Update.
2391         * v850-tdep.c (v850_gdbarch_init): Update.
2392         * sparc-tdep.c (sparc_gdbarch_init): Update.
2393         * sh-tdep.c (sh_gdbarch_init): Update.
2394         * s390-tdep.c (s390_gdbarch_init): Update.
2395         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2396         * ns32k-tdep.c: Update.
2397         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2398         * mips-tdep.c (mips_gdbarch_init): Update.
2399         * mcore-tdep.c (mcore_gdbarch_init): Update.
2400         * m68k-tdep.c (m68k_gdbarch_init): Update.
2401         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2402         * ia64-tdep.c (ia64_gdbarch_init): Update.
2403         * hppa-tdep.c (hppa_gdbarch_init): Update.
2404         * h8300-tdep.c (h8300_gdbarch_init): Update.
2405         * frv-tdep.c (frv_gdbarch_init): Update.
2406         * cris-tdep.c (cris_gdbarch_init): Update.
2407         * avr-tdep.c (avr_gdbarch_init): Update.
2408         * alpha-tdep.c (alpha_gdbarch_init): Update.
2409         * arm-tdep.c (arm_gdbarch_init): Update.
2410
2411 2003-06-13  Andrew Cagney  <cagney@redhat.com>
2412
2413         * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2414         mips_o32_use_struct_convention with always_use_struct_convention.
2415
2416 2003-06-12  David Carlton  <carlton@kealia.com>
2417
2418         * cp-namespace.c (cp_set_block_scope): Comment out
2419         processing_has_namespace_info branch.
2420
2421 2003-06-12  Jim Blandy  <jimb@redhat.com>
2422
2423         Recognize and skip 64-bit PowerPC Linux linkage functions.
2424         * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2425         insn_pattern, insns_match_pattern, d_field, ds_field): New
2426         functions, macros, and types for working with PPC instructions.
2427         (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2428         ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2429         ppc64_skip_trampoline_code): New functions, variables, and macros
2430         for recognizing and skipping linkage functions.
2431         (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2432         ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2433
2434         * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2435         register offsets for both the 32- and 64-bit interfaces.
2436
2437         Actually finish the job started by my change of 2003-05-29.
2438         * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2439         other #definition of this.
2440         (ppc_linux_skip_trampoline_code): Remove declaration.
2441         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2442         static.
2443         (ppc_linux_init_abi): Register it as the skip_trampoline_code
2444         method for GDBARCH.
2445
2446         * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2447         'long' on ppc64-*-linux*.
2448
2449         * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2450         isn't #defined, assume the register doesn't exist: act as if
2451         tdep->ppc_mq_regnum were -1.
2452
2453         * configure.host, configure.tgt: Add entries for
2454         powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2455         powerpc/linux.mt.
2456         * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2457         New files.
2458
2459         * arch-utils.c (always_use_struct_convention): New function.
2460         * arch-utils.h (always_use_struct_convention): New prototype.
2461         * alpha-tdep.c (alpha_use_struct_convention): Delete.
2462         (alpha_gdbarch_init): Register always_use_struct_convention,
2463         instead of alpha_use_struct_convention.
2464         * cris-tdep.c (cris_use_struct_convention): Delete.
2465         (cris_gdbarch_init): Register always_use_struct_convention,
2466         instead of cris_use_struct_convention.
2467         * frv-tdep.c (frv_use_struct_convention): Delete.
2468         (frv_gdbarch_init): Register always_use_struct_convention,
2469         instead of frv_use_struct_convention.
2470         * h8300-tdep.c (h8300_use_struct_convention): Delete.
2471         (h8300_gdbarch_init): Register always_use_struct_convention,
2472         instead of h8300_use_struct_convention.
2473         * mips-tdep.c (mips_o32_use_struct_convention): Delete.
2474         (mips_o32_gdbarch_init): Register always_use_struct_convention,
2475         instead of mips_o32_use_struct_convention.
2476
2477 2003-06-12  Andrew Cagney  <cagney@redhat.com>
2478
2479         * wince.c: Include "mips-tdep.h".
2480         * mips-tdep.h (mips_next_pc): Declare.
2481         * mcore-tdep.c: Make more local functions static.
2482         * Makefile.in (wince.o): Update dependencies.
2483
2484 2003-06-12  David Carlton  <carlton@kealia.com>
2485
2486         * symtab.c (lookup_symbol_aux_minsyms): Replace
2487         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2488         (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2489         (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2490         SYMBOL_NATURAL_NAME.
2491
2492 2003-06-12  Andreas Schwab  <schwab@suse.de>
2493
2494         * Makefile.in (tuiDisassem.o): Update dependencies.
2495
2496 2003-06-12  David Carlton  <carlton@bactrian.org>
2497
2498         * symtab.h: Delete declaration of make_symbol_overload_list.
2499         Add declaration of lookup_partial_symbol.
2500         * symtab.c (remove_params): Move to cp-support.c.
2501         (overload_list_add_symbol, make_symbol_overload_list)
2502         (sym_return_val_size, sym_return_val_index): Ditto.
2503         (lookup_partial_symbol): Make extern.
2504         * cp-support.h: Add declaration of make_symbol_overload_list.
2505         * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2506         symtab.h, and block.h.
2507         (remove_params): Move here from symtab.c.
2508         (overload_list_add_symbol, make_symbol_overload_list)
2509         (sym_return_val_size, sym_return_val_index): Ditto.
2510         * valops.c: Include cp-support.h.
2511         * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2512         frame_h, and block_h.
2513         (valops.o): Depend on cp_support_h.
2514
2515 2003-06-12  Corinna Vinschen  <vinschen@redhat.com>
2516
2517         * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2518         substitute by NUM_REGS throughout.
2519         (h8300_register_name): Only care for H8/300 and H8/300H registers.
2520         (h8300s_register_name): New function for H8S registers.
2521         (h8300sx_register_name): Ditto for H8SX registers.
2522         (h8300_print_register): Revise register printing, avoid depending
2523         on 32 bit long.
2524         (h8300_register_byte): Only care for H8/300 registers.
2525         (h8300h_register_byte): New function for any other architecture.
2526         (h8300_register_raw_size): Remove.
2527         (h8300_register_virtual_type): Revise to return actually useful
2528         type.
2529         (h8300_extract_struct_value_address): Only care for H8/300 registers.
2530         (h8300h_extract_struct_value_address): New function for any other
2531         architecture.
2532         (h8300_gdbarch_init): Add h8300sxn.  Call set_gdbarch_num_regs,
2533         set_gdbarch_register_name, set_gdbarch_register_byte,
2534         set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2535         Remove calls to set_gdbarch_deprecated_register_size,
2536         set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2537         set_gdbarch_deprecated_max_register_raw_size,
2538         set_gdbarch_register_virtual_size and
2539         set_gdbarch_deprecated_max_register_virtual_size entirely.
2540         Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2541         set_gdbarch_long_double_bit.
2542
2543 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
2544
2545         * doublest.c (convert_doublest_to_floatformat): When dealing
2546         with the implied integer bit, only alter mant_bits if we are
2547         processing a full 32 bits of mantissa.
2548
2549 2003-06-11  David Carlton  <carlton@bactrian.org>
2550
2551         * dictionary.h: New.
2552         * dictionary.c: New.
2553         * block.h: Add opaque declaration for struct dictionary.
2554         (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2555         'sym' members.
2556         (BLOCK_DICT): New macro.
2557         Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2558         BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2559         BLOCK_SHOULD_SORT.
2560         (ALL_BLOCK_SYMBOLS): Update definition.
2561         * Makefile.in (SFILES): Add dictionary.c.
2562         (dictionary_h): New.
2563         (COMMON_OBS): Add dictionary.o.
2564         (dictionary.o): New.
2565         (ada-lang.o): Depend on dictionary_h.
2566         (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
2567         (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
2568         (mi-cmd-stack.o): Ditto.
2569         (gdbtk-cmds.o): Update dependencies.
2570         (gdbtk-stack.o): Ditto.
2571         * ada-lang.c: Include dictionary.h.
2572         (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
2573         (fill_in_ada_prototype, debug_print_block): Ditto.
2574         (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
2575         explicit iteration by use of ALL_BLOCK_SYMBOLS.  Delete variable
2576         'is_sorted'.
2577         * mdebugread.c: Include dictionary.h.
2578         (struct parse_stack): Delete 'maxsyms' member.
2579         (parse_symbol): Update calls to new_block.  Delete calls to
2580         shrink_block.  Use dictionary methods.
2581         (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
2582         Update calls to new_symtab.  Don't maintain maxsyms data.
2583         (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
2584         (add_symbol): Just call dict_add_symbol.
2585         (new_symtab): Delete 'maxsyms' argument.
2586         (new_symtab): Update calls to new_block.
2587         (new_block): Delete 'maxsyms' argument; add 'function' argument.
2588         (shrink_block): Delete function.
2589         (fixup_sigtramp): Update call to new_block.  Add symbol via
2590         dict_add_symbol.
2591         * jv-lang.c: Include dictionary.h.
2592         (get_java_class_symtab): Set the BLOCK_DICT of the blocks
2593         appropriately.  Set class_symtab->free_func.  Make sure the
2594         blockvector is big enough to hold two blocks.
2595         (add_class_symtab_symbol): Use dictionary methods.
2596         (free_class_block): New function.
2597         (type_from_class): Replace explicit iteration by
2598         ALL_BLOCK_SYMBOLS.
2599         * symtab.h (struct symtab): Replace 'free_ptr' method by
2600         'free_func'.
2601         * dwarf2read.c (psymtab_to_symtab_1): Delete call to
2602         sort_symtab_syms.
2603         * dwarfread.c (psymtab_to_symtab_1): Delete call to
2604         sort_symtab_syms.
2605         * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
2606         Include dictionary.h.
2607         (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
2608         * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
2609         sort_symtab_syms.
2610         * objfiles.c: Include dictionary.h.
2611         (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
2612         * buildsym.c: Include dictionary.h.
2613         (finish_block): Use dictionary methods.
2614         (end_symtab): Set free_func to NULL, not free_ptr.
2615         * tracepoint.c: Include dictionary.h.
2616         (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
2617         (scope_info): Ditto.
2618         * stack.c: Include dictionary.h.
2619         (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
2620         (print_block_frame_labels, print_frame_arg_vars)
2621         (print_frame_args): Ditto.
2622         * symmisc.c (free_symtab_block): Use dictionary methods.
2623         (dump_symtab): Ditto.
2624         (free_symtab): Replace use of 'free_ptr' by 'free_func'.
2625         Include dictionary.h.
2626         * symfile.h: Delete declarations of sort_block_syms,
2627         sort_symtab_syms.
2628         * symfile.c (sort_block_syms): Delete.
2629         (sort_symtab_syms): Delete.
2630         * symtab.c: Include dictionary.h.
2631         (lookup_block_symbol): Use dictionary iterators.
2632         (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
2633         (search_symbols, make_symbol_completion_list): Ditto.
2634         (make_symbol_overload_list): Ditto.
2635         * valops.c (value_of_local): Use dict_empty.
2636         Include dictionary.h.
2637
2638 2003-06-11  J. Brobecker  <brobecker@gnat.com>
2639
2640         * win32-nat.c (solib_symbols_add): Fix a small compilation error.
2641
2642 2003-06-11  David Carlton  <carlton@bactrian.org>
2643
2644         * block.h (BLOCK_SHOULD_SORT): Delete.
2645         * symtab.c (lookup_block_symbol): Don't worry about sorted linear
2646         blocks.
2647         * ada-lang.c (ada_add_block_symbols): Ditto.
2648         * symfile.c (sort_block_syms): Delete.
2649         (sort_symtab_syms): Ditto.
2650         * symfile.h: Delete sort_symtabs_syms and sort_block_syms
2651         declarations.
2652         * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
2653         * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
2654         * dwarf2read.c (psymtab_to_symtab_1): Ditto.
2655         * dwarfread.c (psymtab_to_symtab_1): Ditto.
2656         * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
2657         * mdebugread.c (psymtab_to_symtab_1): Ditto.
2658         * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2659
2660 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
2661
2662         * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
2663         bits to 128.
2664
2665 2003-06-11  Andrew Cagney  <cagney@redhat.com>
2666
2667         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2668         REGISTER_CONVERTIBLE.
2669         (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
2670         (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
2671         * gdbarch.h, gdbarch.c: Re-generate.
2672         * arch-utils.h (deprecated_register_convertible_not): Rename
2673         generic_register_convertible_not.
2674         * arch-utils.c (deprecated_register_convertible_not): Rename
2675         generic_register_convertible.
2676         (legacy_convert_register_p, legacy_register_to_value): Update.
2677         * sh-tdep.c (sh64_push_arguments): Update.
2678         * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
2679         * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
2680         * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
2681         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
2682         * arch-utils.c (legacy_value_to_register): Update.
2683         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2684         (rs6000_register_convert_to_raw): Make parameter "from" const.
2685         * mips-tdep.c (mips_gdbarch_init): Update.
2686         (mips_register_convert_to_raw): Make  parameter"virt_buf" const.
2687         * infcmd.c (default_print_registers_info): Update.
2688         * ia64-tdep.c (ia64_gdbarch_init): Update.
2689         (ia64_register_convert_to_raw): Make parameter "from" const.
2690         * i386-tdep.c (i386_gdbarch_init): Update.
2691         (i386_register_convert_to_raw): Update.
2692
2693 2003-06-11  Andrew Cagney  <cagney@redhat.com>
2694
2695         * remote-fileio.c: Include "remote-fileio.h".
2696         * Makefile.in (remote-fileio.o): Update dependencies.
2697         (remote_fileio_h): Fix typo.
2698
2699 2003-06-11  Andrew Cagney  <cagney@redhat.com>
2700
2701         * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
2702         (xstormy16_save_dummy_frame_tos): Make static.
2703         (_initialize_xstormy16_tdep): Add declaration.
2704         * vax-tdep.c (_initialize_vax_tdep): Add declaration.
2705         * v850-tdep.c: Make local functions static.
2706         (_initialize_v850_tdep): Add declaration.
2707         * sparc-tdep.c: Make local functions static.
2708         (_initialize_sparc_tdep): Add declaration.
2709         * sh-tdep.c: Make local functions static.
2710         (_initialize_sh_tdep): Add declaration.
2711         * sh3-rom.c (_initialize_sh3_rom): Add declaration.
2712         * s390-tdep.c: Make local functions static.
2713         (_initialize_s390_tdep): Add declaration.
2714         * dbxread.c (find_stab_function_addr): Make static.
2715         * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
2716         * ocd.c (_initialize_remote_ocd): Add declaration.
2717         * dink32-rom.c (_initialize_dink32_rom): Add declaration.
2718         * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
2719         * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
2720         * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
2721         * mips-tdep.c (_initialize_mips_tdep): Add declaration.
2722         * remote-array.c (_initialize_array): Add declaration.
2723         (_initialize_remote_monitors): Add declaration.
2724         * remote-mips.c: Make local functions static.
2725         (_initialize_remote_mips): Add declaration.
2726         * mcore-tdep.c: Make all local functions static.
2727         (_initialize_mcore_tdep): Add declaration.
2728         * dbug-rom.c (_initialize_dbug_rom): Add declaration.
2729         * abug-rom.c (_initialize_abug_rom): Add declaration.
2730         * rom68k-rom.c (_initialize_rom68k): Add declaration.
2731         * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
2732         * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
2733         * remote-est.c (_initialize_est): Add declaration.
2734         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
2735         (m68hc11_call_dummy_address): Make static.
2736         * ia64-tdep.c: Make local functions static.
2737         (_initialize_ia64_tdep): Add declaration.
2738         * solib-legacy.c (_initialize_svr4_lm): Add declaration.
2739         * monitor.c (monitor_wait_filter): Make static.
2740         (_initialize_remote_monitors): Add declaration.
2741         * remote-hms.c (_initialize_remote_hms): Add declaration.
2742         * remote-e7000.c (fetch_regs_from_dump): Make static.
2743         (expect_n): Make static.
2744         (_initialize_remote_e7000): Add declaration.
2745         * ser-e7kpc.c: Always include "defs.h".
2746         (_initialize_ser_e7000pc): Add declaration.
2747         * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
2748         * cris-tdep.c: Make all but one function static.
2749         (_initialize_cris_tdep): Add declaration.
2750         * solib-svr4.c (_initialize_svr4_solib): Add declaration.
2751         * solib.c (update_solib_list): Make static.
2752         (_initialize_solib): Add declaration.
2753         * avr-tdep.c (avr_breakpoint_from_pc): Make static.
2754         (_initialize_avr_tdep): Add declaration.
2755         * remote-rdi.c (voiddummy): Make static.
2756         (_initialize_remote_rdi): Add declaration.
2757         * arm-tdep.c (_initialize_arm_tdep): Add declaration.
2758         * remote-rdp.c (send_rdp): Make static.
2759         (_initialize_remote_rdp): Add declaration.
2760         * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
2761
2762 2003-06-11  Corinna Vinschen  <vinschen@redhat.com>
2763
2764         * remote-fileio.c: Make ari happy.
2765
2766 2003-06-10  J. Brobecker  <brobecker@gnat.com>
2767
2768         * rs6000-nat.c (child_xfer_memory): Compute the right address when
2769         fetching the trailing bytes of the buffer we are about to write.
2770
2771 2003-06-10  Andrew Cagney  <cagney@redhat.com>
2772
2773         * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
2774         * Makefile.in (remote-fileio.o): Update dependencies.
2775         * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h".  Do not
2776         include <setjmp.h>, or <sys/types.h> conditional on USG.
2777         (remote_fio_jmp_buf): Delete global variable.
2778
2779 2003-06-10  Corinna Vinschen  <vinschen@redhat.com>
2780             Martin M. Hunt  <hunt@redhat.com>
2781
2782         * Makefile.in (REMOTE_OBS): Add remote-fileio.o
2783         (SFILES): Add remote-fileio.c.
2784         Add dependencies for building remote-fileio.o.  Add remote-fileio.h to
2785         dependencies for building remote.o.
2786         * remote-fileio.c: New file implementing the remote File-I/O protocol.
2787         * remote-fileio.h: New header file defining remote File-I/O interface.
2788         * remote.c (remote_write_bytes, remote_read_bytes): Remove
2789         static storage class.
2790         (remote_wait, remote_async_wait): Call remote_fileio_request() on
2791         'F' packet.
2792         (_initialize_remote): Call initialize_remote_fileio().
2793         * remote.h: Declare remote_write_bytes() and remote_read_bytes().
2794         * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2795         * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2796         (captured_main): Initialize new ui_files.
2797         * ui-file.c: Add read and fgets input functions.
2798         (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
2799         (null_file_read): New function.
2800         (ui_file_read): New function.
2801         (set_ui_file_read): New function.
2802         (stdio_file_read): New function.
2803         * ui-file.h: New type ui_file_read_ftype.
2804         (set_ui_file_read): Declare.
2805         (ui_file_read): Declare.
2806
2807 2003-06-09  Andrew Cagney  <cagney@redhat.com>
2808
2809         * frame.h (deprecated_unwind_get_saved_register): Rename
2810         generic_unwind_get_saved_register, update comments.
2811         * mips-tdep.c (mips_get_saved_register): Update.
2812         * frame.c (deprecated_unwind_get_saved_register): Update.
2813
2814 2003-06-09  Andrew Cagney  <cagney@redhat.com>
2815
2816         * vax-tdep.c (vax_frame_locals_address): Delete function.
2817         (vax_gdbarch_init): Do not set frame_locals_address.
2818         * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
2819         (m68hc11_gdbarch_init): Do not set frame_locals_address.
2820         * s390-tdep.c (s390_frame_args_address): Delete function.
2821         (s390_gdbarch_init): Do not set frame_args_address or
2822         frame_locals_address.
2823         * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
2824         (ns32k_gdbarch_init): Do not set frame_locals_address.
2825         * hppa-tdep.c (hppa_frame_args_address): Delete function.
2826         (hppa_frame_locals_address): Delete function.
2827         (hppa_gdbarch_init): Do not set frame_args_address, or
2828         frame_locals_address.
2829         * arm-tdep.c (arm_frame_args_address): Delete.
2830         (arm_frame_locals_address): Delete.
2831         (arm_gdbarch_init): Do not set frame_args_address, or
2832         frame_locals_address.
2833
2834 2003-06-09  Andrew Cagney  <cagney@redhat.com>
2835
2836         * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
2837         * gdbarch.h, gdbarch.c: Re-generate.
2838         * arch-utils.h (frame_num_args_unknown): Delete both declarations.
2839         * arch-utils.c (frame_num_args_unknown): Delete function.
2840         * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
2841         (frame_info): Use FRAME_NUM_ARGS_P.
2842         * arm-tdep.c (arm_frame_num_args): Delete function.
2843         (arm_gdbarch_init): Do not set frame_num_args.
2844         * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
2845         * hppa-tdep.c (hppa_frame_num_args): Delete function.
2846         (hppa_gdbarch_init): Do not set frame_num_args.
2847         * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
2848         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2849         frame_num_args to default frame_num_args_unknown.
2850         * v850-tdep.c (v850_gdbarch_init): Ditto.
2851         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2852         * sh-tdep.c (sh_gdbarch_init): Ditto.
2853         * s390-tdep.c (s390_gdbarch_init): Ditto.
2854         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2855         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2856         * mips-tdep.c (mips_gdbarch_init): Ditto.
2857         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2858         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2859         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2860         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2861         * i386-tdep.c (i386_gdbarch_init): Ditto.
2862         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2863         * frv-tdep.c (frv_gdbarch_init): Ditto.
2864         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2865         * cris-tdep.c (cris_gdbarch_init): Ditto.
2866         * avr-tdep.c (avr_gdbarch_init): Ditto.
2867         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2868
2869 2003-06-09  Andrew Cagney  <cagney@redhat.com>
2870
2871         * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
2872         (print_frame_args): Moved to "stack.c".
2873         * stack.c: Include "gdb_assert.h".
2874         (print_frame_nameless_args): Moved from "printcmd.c", made static.
2875         (print_frame_args): Moved from "printcmd.c".
2876         * frame.h (print_frame_args): Delete declaration.
2877         * Makefile.in (stack.o): Update dependencies.
2878
2879 2003-06-08  Andrew Cagney  <cagney@redhat.com>
2880
2881         * frame.c (get_prev_frame): Remove reference to
2882         frame_args_address_correct in comments.
2883         * frame-base.c (default_frame_args_address): Delete code
2884         conditional on FRAME_ARGS_ADDRESS_CORRECT.
2885         * vax-tdep.c (vax_frame_args_address_correct): Delete.
2886         (vax_frame_args_address): Merge in vax_frame_args_address_correct.
2887         * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
2888         (vax_frame_args_address_correct): Delete declaration.
2889
2890 2003-06-08  Andrew Cagney  <cagney@redhat.com>
2891
2892         * gdbarch.sh (UNWIND_SP): Add.
2893         * gdbarch.h, gdbarch.c: Re-generate.
2894         * frame.c (frame_sp_unwind): New function.
2895         (get_frame_sp): New function.
2896         * frame.h (get_frame_sp, frame_sp_unwind): Declare.
2897         * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
2898         gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
2899         value.
2900         * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
2901         (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
2902
2903 2003-06-08  Andrew Cagney  <cagney@redhat.com>
2904
2905         Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
2906         REMOTE_BREAKPOINT.
2907         * remote.c: Update.
2908         * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
2909         (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
2910         * config/m68k/tm-sun3.h: Update.
2911         * config/m68k/tm-m68klynx.h: Update.
2912         * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
2913
2914         * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
2915         trad_frame".  Update comments.
2916         * d10v-tdep.c (struct d10v_unwind_cache): Update.
2917         * trad-frame.c (trad_frame_alloc_saved_regs): Update.
2918         (trad_frame_register_value, trad_frame_prev_register): Update.
2919
2920 2003-06-08  Andrew Cagney  <cagney@redhat.com>
2921
2922         * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
2923         from GCC's acinclude.m4.
2924         * configure.in: Check for getopt's delcaration.
2925         * aclocal.m4, config.in, configure: Re-generate.
2926         * main.c (error_init): Delete declaration.
2927         * defs.h (error_init): Declare.
2928         * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
2929         (rs6000_convert_from_func_ptr_addr): Make static.
2930         (_initialize_rs6000_tdep): Add declaration.
2931         * cli/cli-cmds.c (dont_repeat): Delete declaration.
2932         (show_commands, set_verbose, show_history): Delete declaration.
2933         * top.h (set_verbose): Add declaration.
2934         (show_history, set_history, show_commands): Add declaration.
2935         (do_restore_instream_cleanup): Add declaration.
2936         * objc-lang.c (specialcmp): Make static.
2937         (print_object_command): Make static.
2938         (find_objc_msgsend): Make static.
2939         (find_objc_msgcall_submethod_helper): Make static.
2940         (find_objc_msgcall_submethod): Make static.
2941         (_initialize_objc_language): Add declaration.
2942         (find_implementation_from_class): Make static.
2943         (find_implementation): Make static.
2944         * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
2945         * objc-lang.h (lookup_struct_typedef): Add declaration.
2946         * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
2947         * cli/cli-script.c (clear_hook_in_cleanup): Make static.
2948         (do_restore_user_call_depth): Make static.
2949         (do_restore_instream_cleanup): Delete declaration.
2950         (dont_repeat): Delete declaration.
2951         * cli/cli-decode.c (add_abbrev_cmd): Delete function.
2952         * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
2953         * reggroups.c (_initialize_reggroup): Add declaration.
2954         * cp-support.c (_initialize_cp_support): Add declaration.
2955         * cp-abi.c (_initialize_cp_abi): Add declaration.
2956         * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
2957         * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
2958         (_initialize_gnu_v3_abi): Add declaration.
2959         * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
2960         (_initialize_gnu_v2_abi): Add declaration.
2961         * frame-base.c (_initialize_frame_base): Add declaration.
2962         * doublest.c (floatformat_from_length): Make static.
2963         * frame-unwind.c (_initialize_frame_unwind): Add declaration.
2964         * frame.c (create_sentinel_frame): Make static.
2965         (_initialize_frame): Add declaration.
2966         * top.c (do_catch_errors): Make static.
2967         (gdb_rl_operate_and_get_next_completion): Make static.
2968         * typeprint.c: Include "typeprint.h".
2969         * sentinel-frame.c (sentinel_frame_prev_register): Make static.
2970         (sentinel_frame_this_id): Make static.
2971         * p-valprint.c (_initialize_pascal_valprint): Add declaration.
2972         * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
2973         * dwarf2-frame.c (dwarf2_frame_cache): Make static.
2974         * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
2975         * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
2976         * maint.c (maintenance_print_architecture): Make static.
2977         * signals/signals.c (_initialize_signals): Add declaration.
2978         * std-regs.c (_initialize_frame_reg): Add declaration.
2979         * jv-exp.y (push_variable): ISO C definition.
2980         (push_qualified_expression_name): Ditto.
2981         * memattr.c (_initialize_mem): Add declaration.
2982         * remote.c (remote_check_watch_resources): Make static.
2983         (remote_stopped_by_watchpoint): Make static.
2984         (remote_stopped_data_address): Make static.
2985         * d10v-tdep.c (nr_dmap_regs): Make static.
2986         (a0_regnum): Make static.
2987         (d10v_frame_unwind_cache): Make static.
2988         (d10v_frame_p): Make static.
2989         * osabi.c (show_osabi): Make static.
2990         (_initialize_gdb_osabi): Add extern declaration.
2991         * gdbtypes.c (make_qualified_type): Make static.
2992         (safe_parse_type): Make static.
2993         * macrocmd.c (_initialize_macrocmd): Add extern declaration.
2994         * macrotab.c (macro_bcache_free): Make static.
2995         * interps.c (interp_set_quiet): Make static.
2996         (interpreter_exec_cmd): Make static.
2997         * stack.h (select_frame_command): New file.
2998         * stack.c: Include "stack.h".
2999         (select_frame_command_wrapper): Delete function.
3000         (select_frame_command): Make global.
3001         * infcall.c: Include "infcall.h".
3002         * linespec.c: Include "linespec.h".
3003         * symfile.c (sections_overlap): Make static.
3004         * cp-support.h (cp_initialize_namespace): ISO C declaration.
3005         * charset.c (_initialize_charset): Add missing prototype.
3006         * regcache.c (init_legacy_regcache_descr): Make static.
3007         (do_regcache_xfree): Make static.
3008         (regcache_xfer_part): Make static.
3009         (_initialize_regcache): Add missing prototype.
3010         * breakpoint.c (parse_breakpoint_sals): Make static.
3011         (breakpoint_sals_to_pc): Make static.
3012         * interps.h (clear_interpreter_hooks): ISO C declaration.
3013         * Makefile.in (stack_h): Define.
3014         (stack.o, typeprint.o, mi-main.o): Update dependencies.
3015         (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3016
3017 2003-06-08  Andrew Cagney  <cagney@redhat.com>
3018
3019         * Makefile.in (d10v-tdep.o): Update dependencies.
3020         (SFILES): Add trad-frame.c.
3021         (trad_frame_h): Define.
3022         (COMMON_OBS): Add trad-frame.o.
3023         (trad-frame.o): Specify dependencies.
3024         * d10v-tdep.c: Include "trad-frame.h".
3025         (saved_regs_unwinder): Delete function.
3026         (d10v_frame_prev_register): Use trad_frame_prev_register.
3027         (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3028         trad_frame", delete "regs" and "prev_sp".
3029         (prologue_find_regs): Use trad-frame.
3030         * trad-frame.h, trad-frame.c: New files.
3031
3032 2003-06-08  Mark Kettenis  <kettenis@gnu.org>
3033
3034         * dwarf2cfi.c, dwarf2cfi.h: Remove.
3035
3036 2003-06-07  Adam Fedor  <fedor@gnu.org>
3037
3038         * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3039         (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3040         using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3041         (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3042         resolve_msgsend_super, resolve_msgsend_super_stret):
3043         Use it.
3044
3045 2003-06-07  Andrew Cagney  <cagney@redhat.com>
3046
3047         * symfile.h: Re-indent, clean up comments.
3048
3049 2003-06-07  Andrew Cagney  <cagney@redhat.com>
3050
3051         * inferior.h (deprecated_write_sp): Replace
3052         generic_target_write_sp.
3053         * regcache.c (deprecated_write_sp): Replace
3054         generic_target_write_sp.
3055         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3056         * vax-tdep.c (vax_gdbarch_init): Update.
3057         * v850-tdep.c (v850_gdbarch_init): Update.
3058         * sparc-tdep.c (sparc_gdbarch_init): Update.
3059         * sh-tdep.c (sh_gdbarch_init): Update.
3060         * s390-tdep.c (s390_gdbarch_init): Update.
3061         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3062         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3063         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3064         * mcore-tdep.c (mcore_gdbarch_init): Update.
3065         * m68k-tdep.c (m68k_gdbarch_init): Update.
3066         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3067         * ia64-tdep.c (ia64_gdbarch_init): Update.
3068         * h8300-tdep.c (h8300_gdbarch_init): Update.
3069         * frv-tdep.c (frv_gdbarch_init): Update.
3070         * cris-tdep.c (cris_gdbarch_init): Update.
3071         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3072
3073 2003-06-07  Andrew Cagney  <cagney@redhat.com>
3074
3075         * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3076         Assert that PC_REGNUM is valid.
3077         (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3078
3079 2003-06-07  Andrew Cagney  <cagney@redhat.com>
3080
3081         * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3082         * gdbarch.h, gdbarch.c: Regenerate.
3083         * mn10300-tdep.c: Include "gdb_assert.h".
3084         (mn10300_read_fp): New function.
3085         (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3086         mn10300_read_fp.  Do not set read_sp to generic_target_read_sp.
3087         * ia64-tdep.c: Include "gdb_assert.h".
3088         (ia64_read_fp): New function.
3089         (ia64_gdbarch_init): Set deprecated_target_read_fp to
3090         ia64_read_sp.  Do not set read_sp to generic_target_read_sp.
3091         * regcache.c (generic_target_read_sp): Delete function.
3092         (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3093         * inferior.h (generic_target_read_sp): Delete declaration.
3094         * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3095         generic_target_read_sp.
3096         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3097         * sparc-tdep.c (sparc_gdbarch_init): Ditto
3098         * sh-tdep.c (sh_gdbarch_init): Ditto.
3099         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3100         * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3101
3102 2003-06-07  Andrew Cagney  <cagney@redhat.com>
3103
3104         * gdbarch.sh: Comment each field of startup_gdbarch.
3105         * gdbarch.h, gdbarch.c: Re-generate.
3106
3107 2003-06-07  Andrew Cagney  <cagney@redhat.com>
3108
3109         * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3110         * gdbarch.h, gdbarch.c: Re-generate.
3111         * regcache.c: Update comments on read_pc et.al.
3112         (generic_target_read_pc): Delete function.
3113         (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3114         * inferior.h (generic_target_read_pc): Delete declaration.
3115         * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3116         generic_target_read_pc.
3117         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3118         * sh-tdep.c (sh_gdbarch_init): Ditto.
3119         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3120         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3121
3122 2003-06-07  Andrew Cagney  <cagney@redhat.com>
3123
3124         * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3125         "index" with "special_local_sect".  Use strcmp instead of STREQ.
3126         Append period to coments.
3127
3128 2003-06-06  Mark Mitchell  <mark@codesourcery.com>
3129
3130         * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3131         (elfstab_offset_sections): Likewise.
3132         * gdb-stabs.h (stab_section_info): Likewise.
3133         * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3134         * objfiles.c (objfile_relocate): Likewise.
3135         * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3136         * remote.c (get_offsets): Likewise.
3137         (remote_cisco_objfile_relocate): Likewise.
3138         * somread.c (som_symfile_offsets): Likewise.
3139         * symfile.c (alloc_section_addr_info): New function.
3140         (build_section_addr_info_from_section_tab): Use it.
3141         (free_section_addr_info): Adjust.
3142         (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3143         (syms_from_objfile): Allocate local_addr dynamically.
3144         (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3145         dynamically.
3146         (add_symbol_file_command): Allocate sect_opts dynamically.
3147         (reread_symbols): Avoid use of SECT_OFF_MAX.
3148         * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3149         (alloc_section_addr_info): Declare it.
3150         * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3151         * win32-nat.c (solib_symbols_add): Allocate section_addrs
3152         dynamically.
3153         * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3154
3155 2003-06-06  Andrew Cagney  <cagney@redhat.com>
3156
3157         * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3158         (d10v_frame_unwind_cache): Do not set "return_pc".
3159
3160 2003-06-06  Michael Snyder  <msnyder@redhat.com>
3161
3162         * h8300-tdep.c: Make tidy (long lines).
3163
3164 2003-06-06  Michal Ludvig  <mludvig@suse.cz>
3165
3166         * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3167         to regcache_collect().
3168
3169 2003-06-05  J. Brobecker  <brobecker@gnat.com>
3170
3171         * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3172         pc_in_sigtramp multiarch method.
3173         (hppa_hpux_som_init_abi): Use it.
3174         (hppa_hpux_elf_init_abi): Likewise.
3175         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3176         macro has been multiarched.
3177         * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3178         macro here, as hppa64 isn't multiarched yet.
3179
3180 2003-06-05  Andrew Cagney  <cagney@redhat.com>
3181
3182         * Makefile.in (value_h): Add $(frame_h).
3183         * value.h: Include "frame.h".
3184         (struct value): Replace "frame_addr" with "frame_id".
3185         (VALUE_FRAME_ID): Replace VALUE_FRAME.
3186         * values.c (allocate_value): Use VALUE_FRAME_ID.
3187         (value_copy): Use VALUE_FRAME_ID.
3188         * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3189         * valops.c (value_assign): Update.  Use frame_find_by_id.
3190
3191 2003-06-05  Michal Ludvig  <mludvig@suse.cz>
3192
3193         * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3194         in each pass.
3195
3196 2003-06-05  Jeff Johnston  <jjohnstn@redhat.com>
3197
3198         * thread-db.c (check_event): For create/death event breakpoints,
3199         loop through all messages to ensure that we read the message
3200         corresponding to the breakpoint we are at.
3201
3202 2003-06-04  Michael Snyder  <msnyder@redhat.com>
3203
3204         * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3205
3206 2003-06-04  Mark Kettenis  <kettenis@gnu.org>
3207
3208         * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3209         (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3210         (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3211         when handling .eh_frame sections.
3212
3213 2003-06-04  J. Brobecker  <brobecker@gnat.com>
3214
3215         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3216         prepare_to_proceed procedure instead of the hppa-specific one.
3217         * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3218
3219 2003-06-04  Jeff Johnston  <jjohnstn@redhat.com>
3220
3221         * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3222         * config.in: Regenerated.
3223         * configure.in: Add test for syscall function and check for
3224         __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3225         * configure: Regenerated.
3226         * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3227         <sys/syscall.h>.
3228         (kill_lwp): New function that uses tkill syscall or
3229         uses kill, depending on whether threading model is nptl or not.
3230         All callers of kill() changed to use kill_lwp().
3231         (lin_lwp_wait): Make special check when WIFEXITED occurs to
3232         see if all threads have already exited in the nptl model.
3233         (stop_and_resume_callback): New callback function used by the
3234         lin_lwp_wait thread exit handling code.
3235         (stop_wait_callback): Check for threads already having exited and
3236         delete such threads fromt the lwp list when discovered.
3237         (stop_callback): Don't assert retcode of kill call.
3238
3239         Roland McGrath  <roland@redhat.com>
3240         * i386-linux-nat.c (ps_get_thread_area): New function needed by
3241         nptl libthread_db.
3242
3243 2003-06-03  Richard Henderson  <rth@redhat.com>
3244
3245         * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3246         (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3247         (alpha_sigtramp_frame_prev_register): Likewise.
3248         (alpha_heuristic_frame_prev_register): Likewise.
3249         * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3250
3251         * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3252         alpha-specific register id names.
3253         (alpha_mdebug_frame_unwind_cache): Likewise.
3254         (alpha_mdebug_frame_prev_register): Likewise.
3255
3256 2003-06-03  Richard Henderson  <rth@redhat.com>
3257
3258         * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3259         * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3260         * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3261         * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3262         unwind routines.
3263         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3264         * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3265         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3266
3267         * alpha-linux-tdep.c: Remove unnecessary includes.
3268         * Makefile.in (alpha-linux-tdep.o): Update.
3269
3270 2003-06-03  Richard Henderson  <rth@redhat.com>
3271
3272         * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3273         (alphabsd_fill_fpreg): Likewise.
3274
3275 2003-06-03  J. Brobecker  <brobecker@gnat.com>
3276
3277         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr):  Replace
3278         references to struct frame_info fields by calls to the equivalent
3279         accessors. Necessary now that frame_info is opaque.
3280
3281 2003-06-03  J. Brobecker  <brobecker@gnat.com>
3282
3283         * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3284         (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3285         structure, field no longer exists.
3286
3287 2003-06-03  J. Brobecker  <brobecker@gnat.com>
3288
3289         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3290         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3291
3292 2003-06-03  J. Brobecker  <brobecker@gnat.com>
3293
3294         * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3295         references to struct frame_info fields by calls to the equivalent
3296         accessors. Necessary now that frame_info is opaque.
3297
3298 2003-06-03  J. Brobecker  <brobecker@gnat.com>
3299
3300         * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3301         (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3302         structure, field no longer exists.
3303
3304 2003-06-03  Theodore A. Roth  <troth@openavr.org>
3305
3306         * remote.c (init_remote_state): Compute sizeof_g_packet by
3307         accumulation of the size of all registers instead of blindly using
3308         DEPRECATED_REGISTER_BYTES.
3309
3310 2003-06-03  Michael Snyder  <msnyder@redhat.com>
3311
3312         * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3313         * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3314         for h8300sx.
3315
3316 2003-06-03  J. Brobecker  <brobecker@gnat.com>
3317
3318         * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3319         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3320
3321 2003-06-03  Andrew Cagney  <cagney@redhat.com>
3322
3323         * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3324         (sparc_convert_to_raw): Delete function.
3325         (sparc_gdbarch_init): Do not set register_convert_to_raw or
3326         register_convert_to_virtual.
3327
3328 2003-06-03  Jeff Johnston  <jjohnstn@redhat.com>
3329
3330         * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3331         layer if not dealing with a statically-linked threaded program.
3332
3333 2003-06-03  Kris Warkentin  <kewarken@qnx.com>
3334
3335         * solib.c (solib_open): Update comment to reflect actual search order.
3336
3337 2003-06-03  Andrew Cagney  <cagney@redhat.com>
3338
3339         * frame.c (get_frame_memory_signed): New function.
3340         (get_frame_memory, get_frame_memory_unsigned): New function.
3341         (get_frame_arch): New function.
3342         * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3343         (get_frame_memory, get_frame_unsigned_memory): Declare.
3344         * d10v-tdep.c (d10v_frame_unwind_cache): Use
3345         get_frame_memory_unsigned and get_frame_arch.
3346         (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3347
3348 2003-06-03  Raoul Gough  <RaoulGough@yahoo.co.uk>
3349
3350         * MAINTAINERS (write after approval): Add myself.
3351
3352 2003-06-03  Jim Blandy  <jimb@redhat.com>
3353
3354         * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3355         elements of gregset_t are 64 bits each, but access registers
3356         are still 32 bits, so they're packed two per gregset_t
3357         element.  Unpack/pack them properly.
3358
3359 2003-06-02  David Carlton  <carlton@bactrian.org>
3360
3361         * linespec.c (find_methods): Break out code into
3362         add_matching_methods and add_constructors.
3363         (add_matching_methods): New.
3364         (add_constructors): Ditto.
3365
3366 2003-06-02  Andrew Cagney  <cagney@redhat.com>
3367
3368         * sparc-tdep.c (sparc_print_registers): Delete call to
3369         REGISTER_CONVERTIBLE.
3370         (sparc_gdbarch_init): Do not set register_convertible.
3371         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3372         * frv-tdep.c (frv_gdbarch_init): Ditto.
3373         * cris-tdep.c (cris_gdbarch_init): Ditto.
3374
3375 2003-06-02  Elena Zannoni  <ezannoni@redhat.com>
3376
3377         * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3378         * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3379         (syms_from_objfile): Ditto.
3380
3381 2003-06-03  Andreas Schwab  <schwab@suse.de>
3382
3383         * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3384         (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3385
3386 2003-06-02  Richard Henderson  <rth@redhat.com>
3387
3388         * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3389         a member of all_reggroup.
3390
3391 2003-06-02  Richard Henderson  <rth@redhat.com>
3392
3393         * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3394         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3395         (alpha_lds, alpha_sts): New.
3396         (alpha_convert_register_p): Change from _register_convertible.
3397         (alpha_register_to_value): Change from _convert_to_virtual;
3398         restructure and fail for type sizes other than 4 or 8.
3399         (alpha_value_to_register): Similarly.
3400         (alpha_extract_return_value): Use alpha_sts.
3401         (alpha_store_return_value): Use alpha_lds.
3402         (alpha_gdbarch_init): Update hooks.
3403
3404 2003-06-02  Richard Henderson  <rth@redhat.com>
3405
3406         * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3407         regnum identifiers.
3408         (alpha_sigtramp_register_address): Likewise.
3409
3410 2003-06-02  Richard Henderson  <rth@redhat.com>
3411
3412         * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3413         (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3414         * alpha-tdep.h: Declare them.
3415
3416         * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3417         Remove zerobuf.  Don't error on UNIQUE.
3418         (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3419         (ALPHA_REGSET_UNIQUE): Provide default.
3420         (supply_gregset): Use alpha_supply_int_regs.
3421         (fill_gregset): Use alpha_fill_int_regs.
3422         (supply_fpregset): Use alpha_supply_fp_regs.
3423         (fill_fpregset): Use alpha_fill_fp_regs.
3424         * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3425         (alphabsd_supply_reg): Use alpha_supply_int_regs.
3426         (alphabsd_fill_reg): Use alpha_fill_int_regs.
3427         (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3428         (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3429         * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3430
3431 2003-06-02  Richard Henderson  <rth@redhat.com>
3432
3433         * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3434
3435         * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3436         (alpha_store_return_value): Likewise.
3437
3438 2003-06-02  David Carlton  <carlton@math.stanford.edu>
3439
3440         * block.c (contained_in): Add 'const' to arguments.
3441         (block_function): Ditto.
3442         * block.h: Update declarations for block_function and
3443         contained_in.
3444
3445 2003-06-02  David Carlton  <carlton@math.stanford.edu>
3446
3447         * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3448         * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3449         * p-valprint.c (pascal_val_print): Ditto.
3450         * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3451
3452 2003-06-02  Richard Henderson  <rth@redhat.com>
3453
3454         * alpha-tdep.c (alpha_push_dummy_call): Use
3455         builtin_type_ieee_double_little instead of builtin_type_double.
3456
3457         * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
3458         sign-extension of 32-bit values.
3459         (alpha_store_return_value): Similarly.
3460
3461         * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3462         (alpha_extract_return_value): Likewise.
3463         (alpha_store_return_value): Likewise.
3464
3465         * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3466         (alpha_store_return_value): Error on IEEE Quad floats.
3467
3468         * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3469         (alpha_extract_struct_value_address): Likewise.
3470         (alpha_store_return_value): Likewise.
3471         (alpha_store_struct_return): Remove.
3472         (alpha_gdbarch_init): Update hook registration to match.
3473
3474         * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3475         deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3476         macros where appropriate.
3477         (alpha_register_convert_to_raw): Similarly.  Use unpack_long.
3478         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
3479
3480         * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3481         for SP, GP; void_func_ptr for PC; non-language-specific types
3482         for all others.
3483         * alpha-tdep.h (ALPHA_GP_REGNUM): New.
3484
3485 2003-06-02  Richard Henderson  <rth@redhat.com>
3486
3487         * top.h (lim_at_start): Declare.
3488         * main.c (captured_main): Set it.
3489         * top.c (lim_at_start): Define.
3490         (command_loop): Use it instead of &environ.
3491         * event-top.c (command_handler): Likewise.
3492
3493 2003-06-01  Jason Thorpe  <thorpej@wasabisystems.com>
3494
3495         * mipsnbsd-tdep.c: Update copyright years.
3496         (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3497
3498 2003-06-01  Richard Henderson  <rth@redhat.com>
3499
3500         * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3501         (alpha-linux-tdep.o): Update dependencies.
3502         (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3503         * alpha-mdebug-tdep.c: Remove unneeded includes.
3504
3505 2003-06-01  Richard Henderson  <rth@redhat.com>
3506
3507         * alpha-tdep.c (alpha_register_reggroup_p): New.
3508         (alpha_gdbarch_init): Register it.
3509
3510 2003-06-02  Andrew Cagney  <cagney@redhat.com>
3511
3512         * dwarfread.c: Eliminate "register"
3513         (decode_die_type): Eliminate assignment within "if".
3514         (struct_type, decode_array_element_type): Ditto.
3515         (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3516         (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3517         (decode_modified_type, completedieinfo): Ditto.
3518         * block.c: Eliminate "register".
3519         (blockvector_for_pc_sect): Eliminate assignment within "if".
3520         * cp-support.h (struct symbol): Opaque declaration.
3521         * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3522
3523 2003-06-01  Richard Henderson  <rth@redhat.com>
3524
3525         * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3526         (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
3527
3528 2003-06-01  Adam Fedor  <fedor@gnu.org>
3529
3530         * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3531         * gdbarch.[ch]: Regenerate.
3532         * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3533         (hppa_gdbarch_init): Set it in the gdbarch vector.
3534         * i386-tdep.c (i386_fetch_pointer_argument): New
3535         (i386_gdbarch_init): Set it into gdbarch.
3536         * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3537         (rs6000_gdbarch_init): Set it in gdbarch.
3538         * sparc-tdep.c (sparc_fetch_pointer_argument): New
3539         (sparc_gdbarch_init): Set it in gdbarch.
3540
3541 2003-06-01  Andrew Cagney  <cagney@redhat.com>
3542
3543         * defs.h (extract_address): Delete declaration.
3544         * findvar.c (extract_address): Delete function.
3545         * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3546         extract_address with the inline equivalent,
3547         extract_unsigned_integer.
3548         (xstormy16_extract_struct_value_address): Ditto.
3549         (xstormy16_pointer_to_address): Ditto.
3550         * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3551         * v850-tdep.c (v850_push_arguments): Ditto.
3552         (v850_extract_return_value): Ditto.
3553         (v850_extract_struct_value_address): Ditto.
3554         * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3555         (sparcnbsd_get_longjmp_target_64): Ditto.
3556         * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3557         (get_longjmp_target): Ditto.
3558         * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3559         (sh64_extract_struct_value_address): Ditto.
3560         (sh_push_arguments): Ditto.
3561         (sh64_push_arguments): Ditto.
3562         * remote-vxsparc.c (vx_read_register): Ditto.
3563         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
3564         * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
3565         * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
3566         * mipsv4-nat.c (get_longjmp_target): Ditto.
3567         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
3568         * mips-nat.c (get_longjmp_target): Ditto.
3569         * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
3570         * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
3571         * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
3572         * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
3573         * irix5-nat.c (get_longjmp_target): Ditto.
3574         * irix4-nat.c (get_longjmp_target): Ditto.
3575         * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
3576         (ia64_push_arguments): Ditto.
3577         * hpux-thread.c (hpux_thread_store_registers): Ditto.
3578         * h8300-tdep.c (h8300_push_arguments): Ditto.
3579         (h8300_store_return_value): Ditto.
3580         (h8300_extract_struct_value_address): Ditto.
3581         * frv-tdep.c (frv_extract_struct_value_address): Ditto.
3582         (frv_push_arguments): Ditto.
3583         * avr-tdep.c (avr_pointer_to_address): Ditto.
3584         (avr_push_arguments): Ditto.
3585         * arm-tdep.c (arm_push_dummy_call): Ditto.
3586         (arm_get_longjmp_target): Ditto.
3587         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3588         * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
3589         (alpha_get_longjmp_target): Ditto.
3590
3591         * solib-irix.c (extract_mips_address): Inline extract_address,
3592         replacing it with extract_signed_integer.
3593         * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3594         (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
3595         (first_link_map_member, open_symbol_file_object): Ditto.
3596         (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
3597         * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3598         (LM_NEXT, LM_NAME): Ditto.
3599
3600 2003-06-01  Richard Henderson  <rth@redhat.com>
3601
3602         * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
3603         * alpha-tdep.c (alpha_register_name): Remove vfp entry.
3604         (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
3605         (alpha_cannot_store_register): Likewise.
3606         * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
3607         * alpha-nat.c (supply_gregset): Likewise.
3608         * alphanbsd-tdep.c (fetch_core_registers): Likewise.
3609
3610 2003-06-01  Andrew Cagney  <cagney@redhat.com>
3611
3612         * infcall.c (call_function_by_hand): Update comment on
3613         DEPRECATED_DUMMY_WRITE_SP.
3614
3615         * mips-tdep.c (mips_gdbarch_init): Do not set
3616         deprecated_dummy_write_sp.
3617         (mips_eabi_push_dummy_call): Set the SP register.
3618         (mips_o64_push_dummy_call): Set the SP register.
3619         (mips_o32_push_dummy_call): Set the SP register.
3620         (mips_n32n64_push_dummy_call): Set the SP register.
3621
3622 2003-06-01  Richard Henderson  <rth@redhat.com>
3623
3624         * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
3625         instead of ALPHA_MAX_REGISTER_RAW_SIZE.
3626         (supply_gregset): Likewise.
3627         * alpha-tdep.c (alpha_store_return_value): Likewise.
3628         (alpha_get_longjmp_target): Likewise.
3629         (alpha_register_name): Constify array.
3630         (alpha_gdbarch_init): Remove deprecated_fp_regnum,
3631         deprecated_register_size, deprecated_register_bytes,
3632         deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
3633         * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
3634         (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
3635
3636 2003-06-01  Richard Henderson  <rth@redhat.com>
3637
3638         * alpha-tdep.c (alpha_push_dummy_call): Store sp.  Tidy copies
3639         from arg_reg_buffer to regcache to avoid double conversion.
3640
3641 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
3642
3643         * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
3644         SP_REGNUM.
3645         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
3646         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
3647
3648 2003-06-01  Richard Henderson  <rth@redhat.com>
3649
3650         * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
3651         (decode_frame_entry): Set it.  Skip FDE augmentation.
3652
3653 2003-06-01  Richard Henderson  <rth@redhat.com>
3654
3655         * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
3656         not overlapping PC_REGNUM.
3657
3658 2003-06-01  Richard Henderson  <rth@redhat.com>
3659
3660         * alpha-tdep.c (alpha_push_dummy_call): Transmography from
3661         alpha_push_arguments.  Don't dump argument register data to
3662         the target stack.  Fix float and 128-bit long double semantics.
3663         Store $t12 and $ra as specified by the ABI.  Use regcache everywhere.
3664         (alpha_fix_call_dummy): Remove.
3665         (alpha_call_dummy_words): Remove.
3666         (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
3667
3668 2003-06-01  Richard Henderson  <rth@redhat.com>
3669
3670         * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
3671
3672 2003-06-01  Andrew Cagney  <cagney@redhat.com>
3673
3674         * mips-tdep.c (is_mips16_addr): New function.
3675         (make_mips16_addr, unmake_mips16_addr): New functions.
3676         (pc_is_mips16, mips_fetch_instruction): Use.
3677         (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
3678         (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
3679         (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
3680         UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
3681         TARGET_MIPS.
3682         * config/mips/tm-mips.h: Update copyright.
3683         (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
3684         (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
3685         (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
3686         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
3687         (TM_PRINT_INSN_MACH): Delete.
3688         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
3689
3690         * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
3691         mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
3692         mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
3693         mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
3694         mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*.  Delete
3695         mips*tx39*el*-elf*.  Map mips*-sony-* and mips64*-big-* onto
3696         mips64.  Map mips*-dec-*, mips*-big-*, mips*-little-*,
3697         mips*-*-riscos* and mips*-*-sysv* onto mips.
3698         * config/mips/mips64.mt: New file.
3699         * config/mips/mips.mt: New file.
3700         * config/mips/littlemips.mt: Delete file.
3701         * config/mips/decstation.mt: Delete file.
3702         * config/mips/vr4300el.mt: Delete file.
3703         * config/mips/vr5000el.mt: Delete file.
3704         * config/mips/vr5000.mt: Delete file.
3705         * config/mips/vr4100.mt: Delete file.
3706         * config/mips/vr4xxxel.mt: Delete file.
3707         * config/mips/vr4300.mt: Delete file.
3708         * config/mips/vr4xxx.mt: Delete file.
3709         * config/mips/bigmips.mt: Delete file.
3710         * config/mips/bigmips64.mt: Delete file.
3711         * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
3712         * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
3713         * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
3714         * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
3715         * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
3716         "tm-bigmips.h".
3717         * config/mips/tm-irix3.h: Ditto.
3718         * config/mips/tm-mipsv4.h: Ditto.
3719         * config/mips/tm-embed.h: Ditto.
3720         * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
3721         "tm-bigmips64.h".
3722         * config/mips/tm-vr5000el.h: Delete file.
3723         * config/mips/tm-tx39l.h: Delete file.
3724         * config/mips/tm-vr4300el.h: Delete file.
3725         * config/mips/tm-vr4xxxel.h: Delete file.
3726         * config/mips/tm-vr4300.h: Delete file.
3727         * config/mips/tm-vr4100.h: Delete file.
3728         * config/mips/tm-vr4xxx.h: Delete file.
3729         * config/mips/tm-vr5000.h: Delete file.
3730         * config/mips/tm-embedl64.h: Delete file.
3731         * config/mips/tm-embedl.h: Delete file.
3732         * config/mips/tm-embed64.h: Delete file.
3733         * config/mips/tm-bigmips64.h: Delete file.
3734         * config/mips/tm-bigmips.h: Delete file.
3735
3736 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
3737
3738         Fix gdb/1216.
3739         * shnbsd-nat.c: Include "sh-tdep.h".
3740
3741         From Richard Henderson  <rth@redhat.com>:
3742         * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
3743
3744 2003-05-31  Andrew Cagney  <cagney@redhat.com>
3745
3746         * mips-tdep.c (set_reg_offset): Add saved_regs parameter.  Add
3747         forward declaration.
3748         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3749         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3750         (mips_find_saved_regs): Use set_reg_offset.
3751         (mips_frame_init_saved_regs): Delete function.
3752         (mips_pop_frame): Call mips_find_saved_regs instead of
3753         DEPRECATED_FRAME_INIT_SAVED_REGS.
3754
3755 2003-05-31  Andrew Cagney  <cagney@redhat.com>
3756
3757         * mips-tdep.c (mips_gdbarch_init): Do not set
3758         deprecated_max_register_raw_size, register_virtual_size, and
3759         deprecated_max_register_virtual_size.
3760
3761 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
3762
3763         * i386-tdep.c: Include "dwarf2-frame.h".
3764         (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
3765         * Makefile.in (i386-tdep.o): Update dependencies.
3766
3767         * dwarf2-frame.c, dwarf2-frame.h: New files.
3768         * Makefile.in (SFILES): Add dwarf2-frame.c.
3769         (dwarf2_frame_h): Define.
3770         (COMMON_OBS): Add dwarf2-frame.o.
3771         (dwarf2-frame.o): Add dependencies.
3772
3773 2003-05-31  Andreas Jaeger  <aj@suse.de>
3774
3775         * x86-64-linux-nat.c: Fix comment.
3776
3777 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
3778
3779         * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
3780         function signature.
3781
3782         * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
3783         have a sigcontext_addr handler.
3784         * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
3785         sigcontext_addr handler.
3786
3787 2003-05-31  Andrew Cagney  <cagney@redhat.com>
3788
3789         * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
3790         (print_fp_register_row): Replace do_fp_register_row.
3791         (mips_print_fp_register): Add "file" and "frame" parameters.
3792         (mips_print_register): Add "file" and "frame" parameters.
3793         (mips_print_registers_info): Replace mips_do_registers_info.
3794         (mips_gdbarch_init): Set print_registers_info instead of
3795         deprecated_do_registers_info.
3796         (mips_read_fp_register_single): Add "frame" parameter.
3797         (mips_read_fp_register_double): Add "frame" parameter.
3798
3799 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
3800
3801         * i386-tdep.c (i386_register_name): Check for MMX registers first.
3802         Fixes a bug where GDB would print the wrong register names for
3803         targets without SSE.
3804
3805         * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
3806         (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3807         registers.
3808
3809         * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
3810         (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
3811         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3812         TDEP->sc_sp_offset.
3813
3814         From Michal Ludvig  <mludvig@suse.cz>:
3815         * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
3816         and `sc_num_regs'.
3817         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3818         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3819         I386_ST0_REGNUM): Move here from...
3820         * i386-tdep.c: ... here.
3821         (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
3822         (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3823         registers if possible.
3824         (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
3825         * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
3826         Remove variables.
3827         (i386bsd_sc_reg_offset): New variable.
3828         (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
3829         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3830         TDEP->sc_sp_offset.
3831         (i386fbsd_sc_reg_offset): New variable.
3832         (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
3833         TDEP->sc_num_regs.
3834         (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
3835         variables.
3836         (i386fbsd4_sc_reg_offset): New variable.
3837         (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
3838         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3839         TDEP->sc_sp_offset.
3840         * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
3841         (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
3842         * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
3843         Remove variables.
3844         (i386nbsd_sc_reg_offset): New variable.
3845         (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
3846         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3847         TDEP->sc_sp_offset.
3848         * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
3849         Remove variables.
3850         (i386obsd_sc_reg_offset): New variable.
3851         (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
3852         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3853         TDEP->sc_sp_offset.
3854         * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
3855         i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c.  Add check
3856         for frame pointer offset in `struct sigcontext'.
3857
3858 2003-05-31  Andrew Cagney  <cagney@redhat.com>
3859
3860         * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
3861         architecture methods call_dummy_words, sizeof_call_dummy_words,
3862         push_return_address, store_struct_return, and fix_call_dummy.  Set
3863         push_dummy_call instead of deprecated_push_arguments.
3864         (mips_store_struct_return): Delete function.
3865         (mips_fix_call_dummy): Delete function.
3866         (mips_push_return_address): Delete function.
3867         (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
3868         RA_REGNUM and T9_REGNUM.
3869         (mips_n32n64_push_dummy_call): Ditto for
3870         mips_n32n64_push_arguments.
3871         (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
3872         (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
3873
3874 2003-05-31  Andrew Cagney  <cagney@redhat.com>
3875
3876         * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter.  Rename
3877         "dummy_addr" to "bp_addr".
3878         * infcall.c (call_function_by_hand): Pass "funaddr" to
3879         gdbarch_push_dummy_call.
3880         * gdbarch.h, gdbarch.c: Re-generate.
3881         * i386-tdep.c (i386_push_dummy_call): Update.
3882         * arm-tdep.c (arm_push_dummy_call): Update.
3883         * d10v-tdep.c (d10v_push_dummy_call): Update.
3884
3885 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
3886
3887         * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
3888         variable declarations.
3889         (x86_64_register_number, x86_64_register_name): Remove prototypes.
3890         (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
3891         x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
3892         x86_64_init_frame_pc, x86_64_init_frame_pc,
3893         x86_64_function_has_prologue): Remove prototypes.
3894         (X86_64_NUM_GREGS): New define.
3895         (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
3896         * x86-64-tdep.c: Don't include "dwarf2cfi.h".  Include
3897         "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
3898         (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
3899         XMM1_REGNUM): Remove defines.
3900         (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
3901         X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
3902         X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
3903         X86_64_XMM1_REGNUM): New defines.
3904         (struct x86_64_register_info): Renamed from `struct
3905         register_info'.  Remove `size' member.
3906         (x86_64_register_info_table): Remove variable.
3907         (x86_64_register_info): New variable.
3908         (X86_64_NUM_REGS): New define.
3909         (X86_64_NUM_GREGS): Remove define.
3910         (x86_64_num_regs, x86_64_num_gregs): Remove variables.
3911         (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
3912         Remove variables.
3913         (x86_54_dwarf2_reg_to_regnum): Remove function.
3914         (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
3915         (x86_64_dwarf_reg_to_regnum): New function.
3916         (x86_64_register_name): Rewrite.
3917         (x86_64_register_raw_size): Remove function.
3918         (x86_64_register_byte_table): Remove variable.
3919         (x86_64_register_byte): Remove function.
3920         (x86_64_register_virtual_type): Remove function.
3921         (x86_64_register_type): New function.
3922         (x86_64_register_convertible, x86_64_register_convert_to_virtual,
3923         x86_64_register_convert_to_raw): Remove functions.
3924         (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
3925         (x86_64_use_struct_convention): Make static.  Adjust for renamed
3926         defines.
3927         (x86_64_frame_init_saved_regs): Remove function.
3928         (x86_64_push_arguments): Make static.  Change to accept a regcache
3929         as argument.
3930         (x86_64_store_return_value, x86_64_extract_return_value): Make
3931         static.  Rewrite based on i386 counterparts.
3932         (x86_64_push_dummy_call): New function.
3933         (X86_64_NUM_SAVED_REGS): New define.
3934         (x86_64_register_number): Remove function.
3935         (x86_64_store_struct_return): Remove function.
3936         (x86_64_frameless_function_invocation,
3937         x86_64_function_has_prologue): Remove functions.
3938         (PROLOG_BUFSIZE): Remove define.
3939         (struct x86_64_frame_cache): New structure.
3940         (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
3941         x86_64_frame_cache, x86_64_frame_this_id,
3942         x86_64_frame_prev_register, x86_64_frame_p,
3943         x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
3944         x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
3945         functions.
3946         (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
3947         variables.
3948         (x86_64_skip_prologue): Rewrite in terms of
3949         x86_64_analyze_prologue.
3950         (x86_64_frame_base_address): New function.
3951         (x86_64_frame_base): New variable.
3952         (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
3953         (x86_64_init_abi): Set register_type and push_dummy_call.  Don't
3954         set deprecated_fp_regnum, deprecated_register_size,
3955         deprecated_register_bytes, register_raw_size, register_byte,
3956         register_virtual_type, register_convertiable,
3957         register_convert_to_virtual, convert_to_raw,
3958         deprecated_get_saved_register, deprecated_target_read_fp,
3959         deprecated_push_arguments, deprecated_push_return_address,
3960         deprecated_pop_frame, deprecated_store_struct_return,
3961         deprecated_frame_init_saved_regs, deprecated_frame_chain,
3962         frameless_function_invocation, deprecated_frame_saved_pc,
3963         deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
3964         dwarf2_build_frame_info, deprecated_init_extra_frame_info,
3965         deprecated_init_frame_pc and virtual_frame_pointer.  Call
3966         frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
3967         and x86_64_frame_p.  Call frame_base_set_default to register
3968         x86_64_frame_base.
3969         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
3970         (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
3971         (_initialize_x86_64_tdep): Remove function.
3972         * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
3973         (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
3974         LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
3975         define.
3976         (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
3977         (x86_64_linux_sigcontext_addr): Rewrite.
3978         (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
3979         x86_64_linux_frame_saved_pc): Remove functions.
3980         (x86_64_linux_pc_in_sigtramp): Renamed from
3981         x86_64_linux_in_sigtramp.  Try harder to recognize a signal
3982         trampoline.
3983         (x86_64_linux_frame_chain, x86_64_init_frame_pc):
3984         Remove_functions.
3985         (x86_64_linux_init_abi): Set pc_in_sigtramp.  Initialize
3986         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
3987         * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
3988         (x86_64_regmap): Rename to regmap.
3989         (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
3990         x86_64_num_gregs.
3991         (supply_gregset, fill_gregset): Likewise.  Use regmap instead of
3992         x86_64_regmap.
3993         (x86_64_fxsave_offset): Remove function.
3994         (supply_fpregset): Simply call x86_64_supply_fxsave.
3995         (fill_fpregset): Simply call x86_64_fill_fxsave.
3996         (fetch_inferior_registers, store_inferior_registers): Avoid
3997         asignment in if-statement.
3998         (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
3999         SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4000         LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4001         (fetch_core_registers): Remove function.
4002         (linux_elf_core_fns): Remove.
4003         (offsetoff): Don't define.
4004         (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4005         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4006         * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4007         add core-regset.o.
4008         * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4009         protection against multiple includes instead of NM_X86_64_h.  Add
4010         various comments.  Include "config/nm-linux.h".  Don't include
4011         <signal.h>.
4012         (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4013         GET_THREAD_SIGNALS): Remove defines.
4014         (x86_64_register_u_addr, kernel_u_size,
4015         lin_thread_get_thread_signals): Remove prototypes.
4016         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4017         [HAVE_LINK_H]: Don't include "solib.h".
4018         [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4019         * config/i386/tm-x86-64linux.h: Fix comments.
4020         * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4021         x86-64-tdep.o): Update dependencies.
4022
4023 2003-05-30  Andrew Cagney  <cagney@redhat.com>
4024
4025         * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4026         Change parameter type to a "struct regcache *".
4027
4028         * gdbarch.sh: Regardless of the multi-arch level, always define
4029         the macro when not already defined.
4030         * gdbarch.h, gdbarch.c: Re-generate.
4031
4032 2003-05-30  Richard Henderson  <rth@redhat.com>
4033
4034         * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4035         (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4036         (alpha_mdebug_frame_this_id): Likewise.
4037         (alpha_mdebug_frame_prev_register): Likewise.
4038         (alpha_mdebug_frame_base_address): Likewise.
4039         (alpha_mdebug_frame_locals_address): Likewise.
4040         (alpha_mdebug_frame_args_address): Likewise.
4041         (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4042         * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4043         (alpha_heuristic_frame_unwind_cache): Make static; add missing
4044         loop increment.
4045         (alpha_heuristic_frame_this_id): Make static.
4046         (alpha_heuristic_frame_prev_register): Likewise.
4047         (alpha_heuristic_frame_base_address): Likewise.
4048         * alpha-tdep.h: Update.
4049
4050 2003-05-30  Mark Kettenis  <kettenis@gnu.org>
4051
4052         * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4053         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4054         defenitions.
4055         (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4056         * i386-tdep.c: Mark functions that are 64-bit safe as such.
4057         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4058         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4059         I386_ST0_REGNUM): New defines.
4060         (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4061         codestream_get): Remove define.
4062         (codestream_next_addr, condestream_addr, condestream_buf,
4063         codestream_off, codestream_cnt): Remove variables.
4064         (codestream_fill, codestream_seek, codestream_read): Remove
4065         functions.
4066         (i386_follow_jump): Rewrite to avoid usage of removed codestream
4067         functionality.
4068         (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4069         i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4070         i386_frame_saved_pc, i386_saved_pc_after_call,
4071         i386_frame_num_args, i386_frame_init_saved_regs,
4072         i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4073         i386_push_arguments): Remove functions.
4074         (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4075         functionality.  Use i386_analyze_prologue instead of
4076         i386_get_frame_setup.
4077         (I386_NUM_SAVED_REGS): New define.
4078         (struct i386_frame_cache): New structure.
4079         (i386_alloc_frame_cache, i386_analyze_struct_return,
4080         i386_skip_probe, i386_analyze_frame_setup,
4081         i386_analyze_register_saves, i386_analyze_prologue,
4082         i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4083         i386_frame_prev_register, i386_sigtramp_frame_cache,
4084         i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4085         i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4086         i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4087         New functions.
4088         (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4089         New variables.
4090         (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4091         I386_EAX_REGNUM and I386_EDX_REGNUM.
4092         (i386_extract_return_value, i386_store_return_value): Use
4093         I386_ST0_REGNUM where appropriate.
4094         (i386_extract_struct_value_address): Rewrite to use extract_address.
4095         (i386_svr4_pc_in_sigtramp): Add comment.
4096         (i386_svr4_sigcontext_addr): Rewrite.
4097         (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4098         TDEP->sc_sp_offset.
4099         (i386_gdbarch_init): Don't set deprecated_init_frame_pc.  Set
4100         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4101         of new defines.  Set push_dummy_call, don't set
4102         deprecated_push_arguments, deprecated_push_return_address,
4103         deprecated_pop_frame.  Don't set parm_boundary.  Don't set
4104         deprecated_frame_chain, deprecated_frame_saved_pc,
4105         deprecated_saved_pc_after_call.  Set unwind_dummy_id,
4106         save_dummy_frame_tos, unwind_pc.  Call
4107         frame_unwind_append_predicate and frame_base_set_default.  Don't
4108         set deprecated_dummy_write_pc.  Don't set deprecated_fp_regnum.
4109         Don't set frameless_function_invocation.  Don't set
4110         deprecated_register_bytes, deprecated_register_size,
4111         deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4112         * i386-linux-tdep.c: Fix formatting in some comments.
4113         (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4114         LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4115         LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4116         LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4117         LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4118         redundant parentheses.
4119         (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4120         (i386_linux_sigcontext_addr): Use it.  Rewrite.
4121         (find_minsym_and_objfile): Change name of second argument.
4122         (skip_gnu_resolver): Renamed from skip_hurd_resolver.  All callers
4123         changed.  Use frame_pc_unwind instead of
4124         DEPRECATED_SAVED_PC_AFTER_CALL.
4125         (i386_linux_init_abi): Don't set deprecated_register_bytes.
4126         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4127         * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4128         unwinder.
4129         * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4130         "dummy-frame.h".
4131         (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4132         (_initialize_i386_cygwin_tdep): New prototype.
4133         (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4134         deprecated_frame_chain_valid.
4135         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4136         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4137         Rely on the SVR4 defaults.
4138         * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4139         * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4140
4141 2003-05-30  Andrew Cagney  <cagney@redhat.com>
4142
4143         * infcall.c (call_function_by_hand): Always call
4144         DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4145
4146 2003-05-30  Richard Henderson  <rth@redhat.com>
4147
4148         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4149         increment.
4150
4151 2003-05-29  Jim Blandy  <jimb@redhat.com>
4152
4153         Use gdbarch methods for solib stuff on PowerPC Linux.
4154         * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4155         SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4156         show through.
4157         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4158         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4159         giving the same effect as the #definitions above.
4160
4161 2003-05-29  Adam Fedor  <fedor@gnu.org>
4162
4163         * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4164         (find_implementation_from_class): Replace it with the standard
4165         case i.e. do nothing.
4166
4167 2003-05-29  Richard Henderson  <rth@redhat.com>
4168
4169         * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4170         (alpha_linux_sigtramp_offset): Use it.  Make static.
4171         (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4172         update for new frame model.
4173         * alpha-mdebug-tdep.c: New file.
4174         * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4175         (alpha_osf1_init_abi): Install it.
4176         * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4177         (linked_proc_desc_table): Remove.
4178         (alpha_frame_past_sigtramp_frame): Remove.
4179         (alpha_dynamic_sigtramp_offset): Remove.
4180         (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4181         (alpha_proc_desc_is_dyn_sigtramp): Remove.
4182         (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4183         (push_sigtramp_desc): Remove.
4184         (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4185         (alpha_cannot_store_register): Likewise.
4186         (alpha_sigcontext_addr): Remove.
4187         (alpha_find_saved_regs): Remove.
4188         (alpha_frame_init_saved_regs): Remove.
4189         (alpha_init_frame_pc_first): Remove.
4190         (read_next_frame_reg): Remove.
4191         (alpha_frame_saved_pc): Remove.
4192         (alpha_saved_pc_after_call): Remove.
4193         (temp_proc_desc, temp_saved_regs): Remove.
4194         (alpha_about_to_return): Remove.
4195         (cached_proc_desc): Remove.
4196         (alpha_frame_chain): Remove.
4197         (alpha_print_extra_frame_info): Remove.
4198         (alpha_init_extra_frame_info): Remove.
4199         (alpha_frame_locals_address): Remove.
4200         (alpha_frame_args_address): Remove.
4201         (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4202         (alpha_push_dummy_frame): Remove.
4203         (alpha_pop_frame): Remove.
4204         (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4205         (alpha_read_insn): New.
4206         (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4207         for different insn encodings.
4208         (alpha_in_lenient_prologue): Remove.
4209         (struct alpha_sigtramp_unwind_cache): New.
4210         (alpha_sigtramp_frame_unwind_cache): New.
4211         (alpha_sigtramp_register_address): New.
4212         (alpha_sigtramp_frame_this_id): New.
4213         (alpha_sigtramp_frame_prev_register): New.
4214         (alpha_sigtramp_frame_unwind): New.
4215         (alpha_sigtramp_frame_p): New.
4216         (struct alpha_heuristic_unwind_cache): New.
4217         (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4218         don't count nop insns that occur between functions.
4219         (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4220         heuristic_proc_desc, but without the mdebug wrapping.
4221         (alpha_heuristic_frame_this_id): New.
4222         (alpha_heuristic_frame_prev_register): New.
4223         (alpha_heuristic_frame_unwind): New.
4224         (alpha_heuristic_frame_p): New.
4225         (alpha_heuristic_frame_base_address): New.
4226         (alpha_heuristic_frame_base): New.
4227         (alpha_unwind_dummy_id): New.
4228         (alpha_unwind_pc): New.
4229         (alpha_gdbarch_init): Don't set skip_sigtramp_frame.  Kill use of
4230         frame related deprecated initializations; install replacements.
4231         (alpha_dump_tdep): Remove.
4232         * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4233         (alpha_read_insn, alpha_after_prologue,
4234         alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4235         alpha_heuristic_frame_prev_register,
4236         alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4237         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4238         * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4239         * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4240
4241 2003-05-29  Andrew Cagney  <cagney@redhat.com>
4242
4243         * gdb_assert.h (gdb_assert_fail): Provide different definitions
4244         dependant on the availability of ASSERT_FUNCTION.
4245         (ASSERT_FUNCTION): Do not define when there is no function name.
4246
4247 2003-05-29  Kevin Buettner  <kevinb@redhat.com>
4248
4249         From Jimi X <jimix@watson.ibm.com>:
4250         * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4251
4252 2003-05-28  Jim Blandy  <jimb@redhat.com>
4253
4254         * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4255         argument to ptrace to int; the system headers should give it the
4256         right type, and pointers don't fit in ints on powerpc64-*-*.
4257
4258 2003-05-28  H.J. Lu <hongjiu.lu@intel.com>
4259
4260         * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4261         DW_TAG_catch_block.
4262
4263 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
4264
4265         * stabsread.c (dbx_lookup_type): Make static.
4266         (read_type): Ditto.
4267         (add_undefined_type): Ditto.
4268         * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4269         not export.
4270
4271 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
4272
4273         * hpread.c (hpread_has_name): Make static.
4274         (hpread_psymtab_to_symtab): Ditto.
4275         (file_exists): Ditto.
4276         (hpread_call_pxdb): Ditto.
4277         (hpread_pxdb_needed): Ditto.
4278         (hpread_quick_traverse): Ditto.
4279         (hpread_get_header): Ditto.
4280         (hpread_get_lntt): Ditto.
4281         (hpread_get_slt): Ditto.
4282         (class_of): Ditto.
4283
4284 2003-05-25  Andreas Schwab  <schwab@suse.de>
4285
4286         * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4287         stack_align and deprecated_extra_stack_alignment_needed.
4288         (m68k_stack_align): Delete.
4289
4290         * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4291         (m68k_register_virtual_size): Likewise.
4292         (altos_skip_prologue): Remove obsolete function.
4293         (isi_frame_num_args): Likewise.
4294         (news_frame_num_args): Likewise.
4295         (m68k_fix_call_dummy): Make static.
4296         (m68k_push_dummy_frame): Likewise.
4297         (m68k_pop_frame): Likewise.
4298         (m68k_skip_prologue): Likewise.
4299         (m68k_frame_init_saved_regs): Likewise.
4300         (m68k_saved_pc_after_call): Likewise.
4301         (m68k_get_longjmp_target): Make multi-arch.
4302         (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4303         structure.  Register m68k_get_longjmp_target if enabled.
4304         * m68k-tdep.h (struct gdbarch_tdep): Define.
4305         * config/m68k/tm-m68k.h: Don't include "regcache.h".
4306
4307         * Makefile.in (config.status): Also depend on configure.tgt
4308         and configure.host.
4309         (m68klinux-tdep.o): Update dependencies.
4310         * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4311         * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4312         (M68K_LINUX_JB_PC): Define.
4313         (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4314         and take additional parameter.
4315         (m68k_linux_sigtramp_saved_pc): Update.
4316         (m68k_linux_init_abi): Set jb_pc and jb_elt_size.  Register
4317         m68k_linux_pc_in_sigtramp, in_plt_section,
4318         find_solib_trampoline_target.
4319         * config/m68k/tm-linux.h: Don't include any tm headers.
4320         (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4321         (JB_ELEMENT_SIZE): Likewise.
4322         (JB_PC): Likewise.
4323         (GET_LONGJMP_TARGET): Likewise.
4324         (IN_SIGTRAMP): Likewise.
4325         (SVR4_SHARED_LIBS): Define this and include "solib.h".
4326
4327 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
4328
4329         * sparc-tdep.c (sparc32_do_push_arguments): New function.
4330         (sparc32_push_arguments): Re-implement by calling
4331         sparc32_do_push_arguments.
4332
4333 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
4334
4335         * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4336         SPARC_O1_REGNUM): New defines.
4337         (sparc32_extract_return_value): Rewrite to operate on a regcache.
4338         (sparc32_store_return_value): New function.
4339         (sparc_extract_struct_value_address): Rewrite to operate on a
4340         regcache.
4341         (sparc_gdbarch_init): Don't set
4342         deprecated_extract_struct_value_address.  Set
4343         extract_struct_value_address instead. Don't set
4344         deprecated_extract_return_value and deprecated_store_return_value
4345         for 32-bit targets.  Set extract_return_value and
4346         store_return_value instead.
4347         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4348         DEPRECTAED_EXTRACT_RETURN_VALUE,
4349         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4350         (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4351         EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4352         (sparc_store_return_value): Remove prototype.
4353         (sparc32_store_return_value): New prototype.
4354         (sparc32_extract_return_value, sparc_extract_struct_value_address):
4355         Adjust prototypes.
4356
4357 2003-05-24  Mark Kettenis  <kettenis@gnu.org>
4358
4359         * sparcnbsd-tdep.c: Include "gdb_string.h".
4360
4361 2003-05-23  Andrew Cagney  <cagney@redhat.com>
4362
4363         * p-valprint.c (pascal_val_print): Replace extract_address with
4364         the inline equivalent extract_unsigned_integer.
4365         * jv-valprint.c (java_value_print): Ditto.
4366         * ada-valprint.c (ada_val_print_1): Ditto.
4367         * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4368
4369 2003-05-23  Theodore A. Roth  <troth@openavr.org>
4370
4371         * blockframe.c (frameless_look_for_prologue): Remove unused
4372         after_prologue variable.
4373
4374 2003-05-23  Mark Kettenis  <kettenis@gnu.org>
4375
4376         * blockframe.c (get_pc_function_start): Rewrite to avoid
4377         asignments in if-statements.
4378
4379 2003-05-23  Raoul Gough  <RaoulGough@yahoo.co.uk>
4380
4381         Committed by Elena Zannoni  <ezannoni@redhat.com>.
4382         * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4383         files, don't relocate absolute symbols (and do use mst_abs).
4384
4385 2003-05-23  Andrew Cagney  <cagney@redhat.com>
4386
4387         * objc-lang.c: Include "gdb_assert.h".
4388         (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4389         (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4390         (gdb_check, gdb_check_fatal): Delete functions.
4391         (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4392         gdb_assert.
4393         (parse_selector, parse_method, find_methods, find_imps): Ditto.
4394         * Makefile.in (objc-lang.o): Update dependencies.
4395
4396 2003-05-22  Ian Lance Taylor  <ian@airs.com>
4397
4398         * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4399         with fprintf_filtered, not fprintf_unfiltered.
4400
4401 2003-05-22  Andrew Cagney  <cagney@redhat.com>
4402
4403         * stack.c (frame_info): Inline extract_address, replacing it with
4404         extract_unsigned_integer.
4405         * findvar.c (unsigned_pointer_to_address): Ditto.
4406         * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4407         * dwarf2expr.c (dwarf2_read_address): Ditto.
4408         * frame.c (frame_pc_unwind): Update comment.
4409         * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4410
4411 2003-05-22  Jeff Johnston  <jjohnstn@redhat.com>
4412
4413         * infptrace.c (detach): Call print_sys_errmsg rather than
4414         perror_with_name to issue warning message when errno is non-zero
4415         after calling ptrace detach.
4416
4417 2003-05-21  J. Brobecker  <brobecker@gnat.com>
4418
4419         * config/pa/tm-hppa.h: Delete some unused macros. Move some
4420         macro definitions from here...
4421         * hppa-tdep.c: ...to there.
4422
4423 2003-05-20  Kevin Buettner  <kevinb@redhat.com>
4424
4425         * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4426         register_ptrace_addr().  Fix all callers.
4427
4428 2003-05-21  Andreas Schwab  <schwab@suse.de>
4429
4430         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4431         dependencies.
4432         * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4433         end.
4434         * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4435         (_initialize_m68k_linux_tdep): New function.
4436         (m68k_linux_frame_saved_pc): Make static.
4437         (m68k_linux_extract_return_value): Likewise.
4438         (m68k_linux_store_return_value): Likewise.
4439         (m68k_linux_extract_struct_value_address): Likewise.
4440         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4441         Remove.
4442         (DEPRECATED_STORE_RETURN_VALUE): Remove.
4443         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4444         (DEPRECATED_FRAME_SAVED_PC): Remove.
4445
4446 2003-05-20  Kris Warkentin  <kewarken@qnx.com>
4447
4448         * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4449         regset numbering rather than our own.
4450
4451 2003-05-19  David Carlton  <carlton@bactrian.org>
4452
4453         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4454
4455 2003-05-19  David Carlton  <carlton@bactrian.org>
4456
4457         Partial fix for PR c++/827.
4458         * cp-support.h: Include symtab.h.
4459         Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4460         * cp-namespace.c: Update contributors.
4461         (cp_lookup_symbol_nonlocal): New.
4462         (lookup_namespace_scope, cp_lookup_symbol_namespace)
4463         (lookup_symbol_file): Ditto.
4464         * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4465         * block.h: Declare block_scope, block_using, block_global_block.
4466         * block.c (block_scope): New.
4467         (block_using, block_global_block): Ditto.
4468         * Makefile.in (cp_support_h): Depend on symtab_h.
4469         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4470
4471 2003-05-19  David Carlton  <carlton@bactrian.org>
4472
4473         * language.h (struct language_defn): Add 'la_value_of_this'
4474         and 'la_lookup_symbol_nonlocal' members.
4475         * symtab.h: Declare basic_lookup_symbol_nonlocal,
4476         lookup_symbol_static, lookup_symbol_global,
4477         lookup_symbol_aux_block.
4478         * symtab.c (lookup_symbol_aux): Call language hooks to determine
4479         if we should search fields of this and how to do static/global
4480         lookup.
4481         (lookup_symbol_aux_block): Make extern.
4482         (basic_lookup_symbol_nonlocal): New.
4483         (lookup_symbol_static, lookup_symbol_global): Ditto.
4484         * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4485         'la_lookup_symbol_nonlocal' members.
4486         * c-lang.c (c_language_defn, cplus_language_defn)
4487         (asm_language_defn, minimal_language_defn): Ditto.
4488         * jv-lang.c (java_language_defn): Ditto.
4489         * language.c (unknown_language_defn, auto_language_defn)
4490         (local_language_defn): Ditto.
4491         * m2-lang.c (m2_language_defn): Ditto.
4492         * objc-lang.c (objc_language_defn): Ditto.
4493         * scm-lang.c (scm_language_defn): Ditto.
4494         * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4495         * p-lang.c (pascal_language_defn): Ditto for both.
4496         * Makefile.in (f-lang.o): Depend on value_h.
4497         (p-lang.o): Ditto.
4498
4499 2003-05-19  David Carlton  <carlton@bactrian.org>
4500
4501         * block.h: Declare block_static_block.
4502         * block.c (block_static_block): New.
4503         * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4504         lookup_symbol_aux_local, calling block_static_block instead.
4505         (lookup_symbol_aux_local): Delete 'static_block' argument.
4506
4507 2003-05-19  David Carlton  <carlton@bactrian.org>
4508
4509         * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4510
4511 2003-05-19  Michal Ludvig  <mludvig@suse.cz>
4512
4513         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4514         register numbers mapping.
4515
4516 2003-05-18  Adam Fedor  <fedor@gnu.org>
4517
4518         * symtab.c (completion_list_objc_symbol): New function.
4519         (make_symbol_completion_list): Use it to add ObjC symbols
4520         when looking though the list.
4521         (language_search_unquoted_string): New function.
4522         (make_file_symbol_completion_list): Use it.
4523
4524 2003-05-18  Andreas Schwab  <schwab@suse.de>
4525
4526         * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4527         dependencies.
4528         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4529         as m68k_linux_extract_return_value.
4530         (DEPRECATED_STORE_RETURN_VALUE): Define as
4531         m68k_linux_store_return_value.
4532         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4533         m68k_linux_extract_struct_value_address.
4534         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4535         get_next_frame, get_frame_base, get_frame_pc.
4536         (m68k_linux_frame_saved_pc): Use get_frame_base.
4537         (m68k_linux_extract_return_value): New function.
4538         (m68k_linux_store_return_value): New function.
4539         (m68k_linux_extract_struct_value_address): New function.
4540         * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4541
4542         * c-exp.y (typebase): Remove duplicate occurence of
4543         `SIGNED_KEYWORD LONG LONG'.  Use builtin_type_long_long instead
4544         of lookup_signed_typename.
4545
4546 2003-05-18  Mark Kettenis  <kettenis@gnu.org>
4547
4548         * dwarf2loc.c (find_location_expression): Change type of second
4549         argument to `size_t *'.
4550         (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4551         for size variable.
4552
4553 2003-05-18  David Carlton  <carlton@bactrian.org>
4554
4555         * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4556         'linkage_name'.  Add comment.
4557         (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4558         'linkage_name'.
4559         (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4560         (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
4561         (lookup_block_symbol): Ditto.
4562
4563 2003-05-16  Andrew Cagney  <cagney@redhat.com>
4564
4565         * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
4566         * gdbarch.h, gdbarch.c: Re-generate.
4567         * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
4568         * TODO (REGISTER_BYTES): Delete reference.
4569         * alpha-tdep.c (alpha_gdbarch_init): Update.
4570         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4571         * x86-64-tdep.c (x86_64_init_abi): Update.
4572         * vax-tdep.c (vax_gdbarch_init): Update.
4573         * v850-tdep.c (v850_gdbarch_init): Update.
4574         * sparc-tdep.c (sparc_gdbarch_init): Update.
4575         * sh-tdep.c (sh_gdbarch_init): Update.
4576         * s390-tdep.c (s390_gdbarch_init): Update.
4577         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4578         * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4579         (ns32k_gdbarch_init_32382): Update.
4580         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4581         * mcore-tdep.c (mcore_gdbarch_init): Update.
4582         * m68k-tdep.c (m68k_gdbarch_init): Update.
4583         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4584         * ia64-tdep.c (ia64_gdbarch_init): Update.
4585         * i386-tdep.c (i386_gdbarch_init): Update.
4586         * i386-linux-tdep.c (i386_linux_init_abi): Update.
4587         * hppa-tdep.c (hppa_gdbarch_init): Update.
4588         * h8300-tdep.c (h8300_gdbarch_init): Update.
4589         * frv-tdep.c (frv_gdbarch_init): Update.
4590         * cris-tdep.c (cris_gdbarch_init): Update.
4591         * avr-tdep.c (avr_gdbarch_init): Update.
4592         * arm-tdep.c (arm_gdbarch_init): Update.
4593         * sparc-tdep.c (sparc_pop_frame): Update.
4594         * rs6000-tdep.c (rs6000_pop_frame): Update.
4595         * remote.c (init_remote_state): Update.
4596         (remote_prepare_to_store): Update.
4597         * remote-vx.c (vx_prepare_to_store): Update.
4598         * remote-sds.c (sds_fetch_registers): Update.
4599         (sds_prepare_to_store): Update.
4600         * remote-array.c: Update.
4601         * regcache.c (init_legacy_regcache_descr): Update.
4602         (init_regcache_descr): Update.
4603         * mips-tdep.c (mips_eabi_extract_return_value): Update.
4604         (mips_o64_extract_return_value): Update.
4605         * irix5-nat.c (fetch_core_registers): Update.
4606         * irix4-nat.c (fetch_core_registers): Update.
4607         * i386-tdep.h: Update.
4608         * hppa-tdep.c (pa_do_registers_info): Update.
4609         (pa_do_strcat_registers_info): Update.
4610         * cris-tdep.c (cris_register_bytes_ok): Update.
4611         * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4612         * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
4613         * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
4614         * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
4615         * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
4616         * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
4617         * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
4618         * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
4619         * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
4620         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
4621         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
4622         * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
4623         (REGISTER_BYTES_OK): Update.
4624         * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
4625         * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
4626
4627 2003-05-16  Ian Lance Taylor  <ian@airs.com>
4628
4629         * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
4630         (vax_print_insn, print_insn_arg): Remove static functions.
4631         (vax_gdbarch_init): Call set_gdbarch_print_insn with
4632         print_insn_vax from opcodes library.
4633         (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
4634
4635 2003-05-15  Andrew Cagney  <cagney@redhat.com>
4636
4637         * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
4638         * target.h (memory_breakpoint_from_pc): Delete declaration.
4639         * mem-break.c (memory_breakpoint_from_pc): Delete function.
4640         * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
4641         * monitor.c (monitor_insert_breakpoint): Use
4642         gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
4643         * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
4644         * gdbarch.h, gdbarch.c: Re-generate.
4645         * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
4646         (sparc_gdbarch_init): Set breakpoint_from_pc to
4647         sparc_breakpoint_from_pc.
4648         * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
4649         (BREAKPOINT_FROM_PC): Define.
4650         (sparc_breakpoint_from_pc): Declare.
4651         * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
4652         * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
4653         (BREAKPOINT_FROM_PC): Define.
4654         (BREAKPOINT): Delete macro.
4655         * target.h: Update comment.
4656         * s390-tdep.c (s390_gdbarch_init): Update comments.
4657         * remote.c: Update comments.
4658         * remote-mips.c: Update comments.
4659         * proc-api.c (write_with_trace): Do not check for a breakpoint.
4660         * mem-break.c: Update comment.
4661         * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
4662         (ia64_memory_insert_breakpoint): Update.
4663         * config/sparc/tm-sparc.h: Update comment.
4664         * config/pa/tm-hppa64.h: Update comment.
4665         * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4666         (rs6000_breakpoint_from_pc): Update.
4667         * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4668         (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
4669         (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
4670         (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
4671         (mips_breakpoint_from_pc): Update.
4672         (mips_dump_tdep): Update.
4673
4674         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
4675         * minsyms.c (lookup_minimal_symbol): Inline
4676         DEPRECATED_SYMBOL_MATCHES_NAME.  Replace STREQ with strcmp.
4677
4678         * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
4679         * p-valprint.c (pascal_object_print_value_fields): Ditto.
4680         * p-lang.c (pascal_printstr): Ditto.
4681         * objc-lang.c (objc_printstr): Ditto.
4682         * m2-lang.c (m2_printstr): Ditto.
4683         * jv-valprint.c (java_print_value_fields): Ditto.
4684         * f-lang.c (f_printstr): Ditto.
4685         * cp-valprint.c (cp_print_value_fields): Ditto.  Include "valprint.h".
4686         * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
4687         for repeat_count_threshold.
4688         * Makefile.in (cp-valprint.o): Update dependencies.
4689
4690 2003-05-15  Jeff Johnston  <jjohnstn@redhat.com>
4691
4692         * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
4693         (examine_prologue): Support looking through leaf functions, knowing
4694         they start with mov r2,r12.  Support skipping over indirect stores
4695         of the input registers.  Upon hitting a non-nop branch instruction
4696         or predicated instruction, bail out by setting lim_pc to the current
4697         pc value in the loop.  At the end, if the lim_pc value is still
4698         beyond our calculated value and we have trust_limit set,
4699         use the lim_pc value.
4700
4701 2003-05-15  Andrew Cagney  <cagney@redhat.com>
4702
4703         * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
4704         generic_find_dummy_frame.
4705         * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
4706         (deprecated_generic_find_dummy_frame): Update.
4707         (deprecated_read_register_dummy): Update.
4708         * frame.c (deprecated_generic_get_saved_register): Update.
4709
4710 2003-05-15  Theodore A. Roth  <troth@openavr.org>
4711
4712         * avr-tdep.c (avr_breakpoint_from_pc): New function.
4713         (avr_gdbarch_init): Set breakpoint_from_pc method.
4714
4715 2003-05-15  Andrew Cagney  <cagney@redhat.com>
4716
4717         * regcache.c (build_regcache): Set deprecated_register_valid
4718         directly.
4719         (deprecated_grub_regcache_for_register_valid): Delete function.
4720         * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
4721         declaration.
4722
4723 2003-05-15  David Carlton  <carlton@bactrian.org>
4724
4725         Committed by Elena Zannoni <ezannoni@redhat.com>
4726         * symtab.c (lookup_symbol_aux): Delete calls to
4727         lookup_symbol_aux_minsyms.
4728         (lookup_symbol_aux_minsyms): Comment out function and
4729         prototype. Delete lookup by mangled name.
4730
4731 2003-05-14  Kevin Buettner  <kevinb@redhat.com>
4732
4733         * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
4734         correctly indicate an empty stack and ``stack_allocated'' to the
4735         indicate the number of elements initially allocated.
4736         (dwarf_expr_grow_stack): Simplify method for computing new
4737         stack size.  Don't loop infinitely if ``stack_len'' is zero.
4738         (execute_stack_op): Move ``ctx->in_reg'' initialization
4739         out of loop.  Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
4740         be used in conjuction with DW_OP_piece.  Revise error message
4741         accordingly.
4742
4743 2003-05-14  Theodore A. Roth  <troth@openavr.org>
4744
4745         * MAINTAINERS: Update my email address.
4746         * avr-tdep.c: Ditto.
4747
4748 2003-05-14  Elena Zannoni  <ezannoni@redhat.com>
4749
4750         * symtab.h (enum domain_enum): Rename from namespace_enum.
4751         (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
4752         VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
4753         Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
4754         LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
4755         TYPES_NAMESPACE, METHODS_NAMESPACE.
4756         (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
4757         (struct symbol, struct partial_symbol): Rename field
4758         'namespace_enum namespace' to 'domain_enum domain'.
4759         (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
4760         Delete old define kludge for namespace.
4761
4762         * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
4763         blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
4764         dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
4765         gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
4766         language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
4767         mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
4768         p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
4769         stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
4770         valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
4771         occurrences of the above.
4772
4773 2003-05-14  Ian Lance Taylor  <ian@airs.com>
4774
4775         * Makefile.in (install-only): Use $(SHELL) when running
4776         mkinstalldirs.
4777
4778 2003-05-13  Ian Lance Taylor  <ian@airs.com>
4779
4780         * MAINTAINERS (write after approval): Add myself.
4781
4782         * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
4783         second and third arguments.
4784         * ser-tcp.c (_initialize_ser_tcp): Likewise.
4785         * ser-unix.c (_initialize_ser_hardwire): Likewise.
4786
4787 2003-05-13  Andrew Cagney  <cagney@redhat.com>
4788
4789         * defs.h (store_address): Delete declaration.
4790         findvar.c (store_address): Delete function.
4791         * arm-tdep.c (arm_push_dummy_call): Replace store_address with
4792         store_unsigned_integer.
4793         * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
4794         * v850-tdep.c (v850_push_arguments): Ditto.
4795         * sparc-tdep.c (sparc_get_saved_register): Ditto.
4796         * sh-tdep.c (sh64_get_saved_register): Ditto.
4797         * rs6000-tdep.c (rs6000_push_arguments): Ditto.
4798         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
4799         * mips-tdep.c (mips_eabi_push_arguments): Ditto.
4800         (mips_get_saved_register): Ditto.
4801         * ia64-tdep.c (ia64_get_saved_register): Ditto.
4802         (find_func_descr, ia64_push_arguments): Ditto.
4803         * i386-tdep.c (i386_push_arguments): Ditto.
4804         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
4805         * frv-tdep.c (frv_push_arguments): Ditto.
4806         * frame.c (legacy_saved_regs_prev_register): Ditto.
4807         (deprecated_generic_get_saved_register): Ditto.
4808         * findvar.c (unsigned_address_to_pointer): Ditto.
4809         * dwarf2read.c (dwarf2_const_value): Ditto.
4810         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4811         * alpha-tdep.c (alpha_push_arguments): Ditto.
4812
4813 2003-05-12  J. Brobecker  <brobecker@gnat.com>
4814
4815         * NEWS: Mention that the hppa-hpux port has been partially
4816         multiarched (32bit ABIT only, so far).
4817
4818 2003-05-11  Andrew Cagney  <cagney@redhat.com>
4819
4820         * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
4821         * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
4822         include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
4823         sim/testsuite/sim/arm/misaligned2.ms, and
4824         sim/testsuite/sim/arm/misaligned3.ms.
4825         * disasm.h (struct ui_file): Add opaque struct declaration.
4826         * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
4827         * frame.h (struct ui_file): Ditto.
4828
4829 2003-05-11  Mark Kettenis  <kettenis@gnu.org>
4830
4831         * value.h: Pretty print.
4832
4833 2003-05-10  Mark Kettenis  <kettenis@gnu.org>
4834
4835         * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
4836
4837 2003-05-08  Andrew Cagney  <cagney@redhat.com>
4838
4839         * regcache.h (max_register_size): Delete declaration.
4840         * regcache.c (max_register_size): Delete function.
4841         (struct regcache_descr): Delete field "max_register_size".
4842         (init_regcache_descr, init_legacy_regcache_descr): Assert that all
4843         registers fit in MAX_REGISTER_SIZE.
4844         (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
4845         (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
4846         * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
4847         * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
4848         * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
4849         * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
4850         * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
4851         * dve3900-rom.c, hppa-tdep.c: Ditto.
4852
4853 2003-05-08  David Carlton  <carlton@math.stanford.edu>
4854
4855         * valops.c (push_word): Fix typo.
4856
4857 2003-05-08  Andrew Cagney  <cagney@redhat.com>
4858
4859         * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
4860         * gdbarch.h: Re-generate.
4861         * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
4862         (legacy_max_register_raw_size): Delete declaration.
4863         * regcache.c (legacy_max_register_raw_size): Delete function.
4864         * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
4865         * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
4866         * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
4867         * remote-rdp.c, remote-array.c, regcache.c: Ditto.
4868         * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
4869         * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
4870         * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
4871         * findvar.c, dwarf2cfi.c: Ditto.
4872
4873 2003-05-08  Andrew Cagney  <cagney@redhat.com>
4874
4875         * mips-tdep.c (read_signed_register): New function, moved to here
4876         from "regcache.c".
4877         (read_signed_register_pid): Ditto.
4878         * regcache.c (read_signed_register_pid): Delete function, moved to
4879         "mips-tdep.c".
4880         (read_signed_register): Ditto.
4881         * regcache.h (read_signed_register): Delete declaration.
4882         (read_signed_register_pid): Delete declaration.
4883
4884 2003-05-08  Andrew Cagney  <cagney@redhat.com>
4885
4886         * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
4887         * gdbarch.h: Re-generate.
4888         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
4889         (legacy_max_register_virtual_size): Delete declaration.
4890         * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
4891         * d10v-tdep.c (d10v_print_registers_info): Ditto.
4892         * tracepoint.c (memrange_sortmerge): Ditto.
4893         * sparc-tdep.c (sparc_print_registers): Ditto.
4894         * regcache.c (legacy_max_register_virtual_size): Delete function.
4895
4896 2002-05-08  J. Brobecker  <brobecker@gnat.com>
4897
4898         * fork-child.c (escape_bang_in_quoted_argument): New function.
4899         (fork_inferior): Escape '!' characters in quoted arguments
4900         only when needed.
4901
4902 2003-05-08  J. Brobecker  <brobecker@gnat.com>
4903
4904         * dwarf2read.c (set_cu_language): Set the language to "minimal" if
4905         the language of the CU is not currently supported by GDB.
4906
4907 2003-05-08  J. Brobecker  <brobecker@gnat.com>
4908
4909         * defs.h (language): Add language_minimal enum value.
4910         * c-lang.c (minimal_language_defn): New language definition.
4911         (_initialize_c_language): Add the new minimal language to the list
4912         of languages known to GDB.
4913
4914 2003-05-08  Kevin Buettner  <kevinb@redhat.com>
4915
4916         * frame.c (get_frame_type): Don't attempt to lazily initialize
4917         frame's unwinder for legacy frames.
4918
4919 2003-05-07  Andrew Cagney  <cagney@redhat.com>
4920
4921         * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
4922         and "regcache" parameters.
4923         * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
4924
4925 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
4926
4927         * dwarf2read.c (dwarf_decode_lines): Only use output of
4928         check_cu_functions() when calling record_line().  Do not update
4929         the current address.
4930
4931 2003-05-07  Andrew Cagney  <cagney@redhat.com>
4932
4933         * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
4934         code.
4935
4936 2003-05-07  Jim Blandy  <jimb@redhat.com>
4937
4938         Rename commands 'maint list symtabs' and 'maint list psymtabs' to
4939         'maint info symtabs' and 'maint info psymtabs'.
4940         * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
4941         Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
4942         * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
4943         Declarations updated.
4944         * maint.c (maintenance_list_command): Delete.
4945         (_initialize_maint_cmds): Update calls to add_cmd.
4946         * gdbcmd.h (maintenancelistlist): Delete declaration.
4947         * cli/cli-cmds.c (maintenancelistlist): Delete.
4948         (init_cmd_lists): Don't initialize it.
4949         * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
4950
4951 2003-05-07  Andrew Cagney  <cagney@redhat.com>
4952
4953         * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
4954         "regcache".
4955         (d10v_print_registers_info): Update.
4956         (d10v_dmap_register, d10v_imap_register): Delete functions.
4957         (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
4958         and "imap_register".
4959         (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
4960         (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
4961         * arch-utils.c (generic_remote_translate_xfer_address): Add
4962         "regcache" and "gdbarch" parameters.
4963         * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
4964         parameter.  Change class to multi-arch.
4965         * gdbarch.h, gdbarch.c: Re-generate.
4966         * remote.c (remote_xfer_memory): Use
4967         gdbarch_remote_translate_xfer_address.
4968
4969 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
4970
4971         * infrun.c (prev_pc): Move declaration ahead of proceed().
4972         (proceed): Refresh prev_pc value before resuming.
4973         (stop_stepping): Remove code to refresh prev_pc.
4974
4975 2003-05-06  Kris Warkentin <kewarken@qnx.com>
4976
4977         * nto-tdep.c: Removed stray comment.
4978
4979 2003-05-06  Kris Warkentin <kewarken@qnx.com>
4980
4981         * i386-nto-tdep.c: Fix old K&R function definitions.
4982         * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
4983         Also change add_show_from_set() call to add_setshow_cmd().
4984         * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
4985
4986 2003-05-05  Andrew Cagney  <cagney@redhat.com>
4987
4988         * dummy-frame.c: Include "command.h" and "gdbcmd.h".
4989         (fprint_dummy_frames): New function.
4990         (maintenance_print_dummy_frames): New function.
4991         (_initialize_dummy_frame): Add command "maint print dummy-frames".
4992         * frame.c (fprint_frame_id): Make global.
4993         * frame.h (fprint_frame_id): Declare.
4994         * Makefile.in (dummy-frame.o): Update dependencies.
4995
4996 2003-05-05  Andrew Cagney  <cagney@redhat.com>
4997
4998         * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
4999         (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5000         SIZEOF_CALL_DUMMY_WORDS.
5001         (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5002         (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5003         (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5004         CALL_DUMMY_BREAKPOINT_OFFSET.
5005         (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5006         CALL_DUMMY_START_OFFSET.
5007         (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5008         * gdbarch.h, gdbarch.c: Re-generate.
5009         * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5010         * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5011         * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5012         * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5013         * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5014         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5015         * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5016         * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5017         * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5018         * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5019         * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5020         * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5021         * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5022         * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5023         * config/sparc/tm-sparc.h: Update.
5024
5025 2003-05-05  Kris Warkentin <kewarken@qnx.com>
5026
5027         * configure.tgt: Add i[3456]86-*-nto*.
5028         * i386-nto-tdep.c: New file.  i386 specific support for QNX Neutrino.
5029         * nto-tdep.c: New file. Neutrino target support routines.
5030         * nto-tdep.h: New file. Neutrino target header.
5031         * config/tm-qnxnto.h: New file.
5032         * config/i386/i386nto.mt: New file.
5033         * config/i386/tm-i386nto.h: New file.
5034
5035 2003-05-04  Andrew Cagney  <cagney@redhat.com>
5036
5037         * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5038         (load_infrun_state): Ditto.
5039         (struct thread_info): Drop "prev_func_name" field.
5040         * thread.c (load_infrun_state): Update.
5041         (save_infrun_state): Update.
5042         * infrun.c (prev_func_name): Delete variable.
5043         (init_wait_for_inferior): Do not clear prev_func_name.
5044         (stop_stepping, keep_going, context_switch): Do not swap
5045         prev_func_name.
5046         (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5047         instead of PC_IN_SIGTRAMP.
5048
5049 2003-05-04  Andrew Cagney  <cagney@redhat.com>
5050
5051         * sentinel-frame.c (sentinel_frame_prev_register): Replace
5052         REGISTER_BYTE with register_offset_hack.
5053         * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5054         that REGISTER_BYTE is consistent with the regcache.
5055         * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5056         * gdbarch.h, gdbarch.c: Regenerate.
5057
5058 2003-05-04  Mark Kettenis  <kettenis@gnu.org>
5059
5060         * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5061         (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5062
5063         * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5064
5065 2003-05-03  J. Brobecker  <brobecker@gnat.com>
5066
5067         From Thierry Schneider <tpschneider1@yahoo.com>
5068         * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5069         (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5070         (mi-cmd-symbol.o): Add rule.
5071
5072 2003-05-03  Andrew Cagney  <cagney@redhat.com>
5073
5074         * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5075         comments noteing that it replaces the old FIX_CALL_DUMMY code.
5076         * gdbarch.h, gdbarch.c: Re-generate.
5077         * d10v-tdep.c (d10v_push_dummy_code): New function.
5078         (d10v_gdbarch_init): Set push_dummy_code.
5079         * infcall.c (legacy_push_dummy_code): New function.
5080         (generic_push_dummy_code): New function.
5081         (push_dummy_code): New function.
5082         (call_function_by_hand): Call push_dummy_code.  Pass bp_addr,
5083         instead of dummy_addr, to push_dummy_call.  Move call to
5084         generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5085         switch.
5086         * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5087
5088 2003-05-03  Andrew Cagney  <cagney@redhat.com>
5089
5090         * disasm.h (print_insn): Declare.
5091         * disasm.c (init_gdb_disassemble_info): New function.
5092         (gdb_disassembly): Call init_gdb_disassemble_info.
5093         (gdb_print_insn): New function.
5094         * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5095         of TARGET_PRINT_INSN.  Send debug info to "gdb_stdlog".
5096         * mcore-tdep.c: Include "disasm.h"
5097         (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5098         * d10v-tdep.c: Include "disasm.h".
5099         (display_trace): Call gdb_print_insn, instead of print_insn.
5100         (print_insn): Delete function.
5101         * printcmd.c: Include "disasm.h".
5102         (print_insn): Delete function.
5103         (print_formatted): Call gdb_print_insn, instead of print_insn.
5104         * Makefile.in (printcmd.o): Update dependencies.
5105         (mcore-tdep.o, d10v-tdep.o): Ditto.
5106
5107 2003-05-02  Andrew Cagney  <cagney@redhat.com>
5108
5109         * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5110         PC_REGNUM, re-indent.
5111         * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5112         PC_REGNUM isn't set.
5113
5114         * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5115         * gdbarch.h, gdbarch.c: Re-generate.
5116         * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5117         register_virtual_size, pc_regnum, or register_bytes.
5118         (D10V_PC_REGNUM): Rename _PC_REGNUM.
5119         (d10v_register_type): Use D10V_PC_REGNUM.
5120         (d10v_print_registers_info, d10v_read_pc): Ditto.
5121         (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5122         (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5123
5124 2003-05-02  David Carlton  <carlton@bactrian.org>
5125
5126         * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5127         the name with mstrsave.
5128
5129 2003-05-02  Elena Zannoni  <ezannoni@redhat.com>
5130
5131         * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5132         GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5133         (host_charset_name, target_charset_name): New vars for use by
5134         set/show commands.
5135         (host_charset_enum, target_charset_enum): New enums for set/show
5136         commands.
5137         (set_charset_sfunc, set_host_charset_sfunc,
5138         set_target_charset_sfunc): New functions.
5139         (set_host_charset, set_target_charset): Make static.
5140         (list_charsets, set_host_charset_command,
5141         set_target_charset_command): Delete functions.
5142         (show_charset_command): Rewrite as....
5143         (show_charset): Hook this up with the set/show command mechanism.
5144         (_initialize_charset): Change names of charsets to match the
5145         set/show enums. Use host_charset_name and target_charset_name.
5146         Use set/show mechanism for charset, host-charset, target-charset
5147         commands. Do not make 'show host-charset' and 'show
5148         target-charset' be aliases of 'show charset'.
5149
5150         * charset.h (set_host_charset, set_target_charset): Don't export,
5151         they are not used outside the file.
5152
5153 2003-05-01  Andrew Cagney  <cagney@redhat.com>
5154
5155         * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5156         (gdb_disassembly): Make "di" non static, always initialize and
5157         cleanup.  Always use dis_asm_read_memory.
5158         (gdb_dis_asm_read_memory): Delete function.
5159
5160 2003-05-01  Andrew Cagney  <cagney@redhat.com>
5161
5162         * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5163         (d10v_gdbarch_init): Set frame_align instead of stack_align.
5164
5165 2003-04-30  Andrew Cagney  <cagney@redhat.com>
5166
5167         * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5168         "tm_print_insn_info".
5169         (TARGET_PRINT_INSN_INFO): Delete macro.
5170         (dis_asm_read_memory): Delete function declaration.
5171         (dis_asm_memory_error, dis_asm_print_address): Ditto.
5172         (tm_print_insn_info): Delete variable definition.
5173         (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5174         * gdbarch.h, gdbarch.c: Re-generate.
5175         * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5176         "deprecated_tm_print_insn_info".
5177         * mcore-tdep.c (mcore_dump_insn): Ditto.
5178         * mips-tdep.c (mips_gdbarch_init): Ditto.
5179         * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5180         * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5181         * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5182         * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5183         instead of TARGET_PRINT_INSN_INFO, add comment.
5184         * s390-tdep.c (s390_get_frame_info): Instead of
5185         "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5186         (s390_check_function_end, s390_is_sigreturn): Ditto.
5187         * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5188         (dis_asm_memory_error, dis_asm_print_address): Ditto.
5189         * disasm.c: Include "gdbcore.h".
5190         (_initialize_disasm): New function, initialize
5191         "deprecated_tm_print_insn_info".
5192         (deprecated_tm_print_insn_info): New variable.
5193         (dis_asm_read_memory): Moved from "corefile.c", made static.
5194         (dis_asm_print_address, dis_asm_memory_error): Ditto.
5195         * Makefile.in (disasm.o): Update dependencies.
5196
5197 2003-04-30  Andrew Cagney  <cagney@redhat.com>
5198
5199         * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5200
5201 2003-04-29  Adam Fedor  <fedor@gnu.org>
5202
5203         * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5204         * infcall.c (find_function_addr): Make non-static.
5205         * infcall.h (find_function_addr): Declare.
5206         * Makefile.in (eval.o): Update dependencies.
5207
5208 2003-04-28  Adam Fedor  <fedor@gnu.org>
5209
5210         * symtab.c (symbol_find_demangled_name): Check for and demangle
5211         ObjC symbols.
5212         (symbol_init_demangled_name): Init for language_objc as well.
5213
5214 2003-04-28  Andrew Cagney  <cagney@redhat.com>
5215
5216         * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5217         (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5218         * gdbarch.h, gdbarch.c: Re-generate.
5219         * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5220         DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5221         * inferior.h (deprecated_read_fp): Rename read_fp.
5222         (generic_target_read_fp): Delete declaration.
5223         * regcache.c (generic_target_read_fp): Delete function.
5224         (deprecated_read_fp): Replace read_fp, use
5225         DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5226         * d10v-tdep.c (d10v_read_fp): Delete function.
5227         (d10v_gdbarch_init): Do not set deprecated_read_fp.
5228
5229         * sparc-tdep.c (sparc_gdbarch_init): Do not set
5230         deprecated_target_read_fp to generic_target_read_fp.
5231         * sh-tdep.c (sh_gdbarch_init): Ditto.
5232         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5233         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5234         * frv-tdep.c (frv_gdbarch_init): Ditto.
5235
5236         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5237         deprecated_fp_regnum.
5238         * x86-64-tdep.c (x86_64_init_abi): Ditto.
5239         * vax-tdep.c (vax_gdbarch_init): Ditto.
5240         * v850-tdep.c (v850_gdbarch_init): Ditto.
5241         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5242         * sh-tdep.c (sh_gdbarch_init): Ditto.
5243         * s390-tdep.c (s390_gdbarch_init): Ditto.
5244         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5245         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5246         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5247         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5248         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5249         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5250         * i386-tdep.c (i386_gdbarch_init): Ditto.
5251         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5252         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5253         * frv-tdep.c (frv_gdbarch_init): Ditto.
5254         * cris-tdep.c (cris_gdbarch_init): Ditto.
5255         * avr-tdep.c (avr_gdbarch_init): Ditto.
5256         * arm-tdep.c (arm_gdbarch_init): Ditto.
5257         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5258
5259         * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5260         * v850-tdep.c (v850_gdbarch_init): Ditto.
5261         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5262         * sh-tdep.c (sh_gdbarch_init): Ditto.
5263         * s390-tdep.c (s390_gdbarch_init): Ditto.
5264         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5265         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5266         * mips-tdep.c (mips_gdbarch_init): Ditto.
5267         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5268         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5269         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5270         * frv-tdep.c (frv_gdbarch_init): Ditto.
5271         * avr-tdep.c (avr_gdbarch_init): Ditto.
5272         * arm-tdep.c (arm_gdbarch_init): Ditto.
5273
5274         * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5275         DEPRECATED_FP_REGNUM.
5276         (vax_push_dummy_frame, vax_pop_frame): Ditto.
5277         * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5278         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5279         (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5280         (sparc32_register_virtual_type): Ditto.
5281         * sh-tdep.c (sh64_frame_chain): Ditto.
5282         (sh64_get_saved_register, sh64_pop_frame): Ditto.
5283         (sh_nofp_frame_init_saved_regs): Ditto.
5284         (sh64_nofp_frame_init_saved_regs): Ditto.
5285         (sh_fp_frame_init_saved_regs): Ditto.
5286         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5287         * remote-e7000.c (fetch_regs_from_dump): Ditto.
5288         * procfs.c (procfs_fetch_registers): Ditto.
5289         (procfs_store_registers): Ditto.
5290         * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5291         (store_inferior_registers, fetch_core_registers): Ditto.
5292         (fetch_kcore_registers, clear_regs): Ditto.
5293         * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5294         (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5295         * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5296         * nlm/i386.c (do_status): Ditto.
5297         * mipsv4-nat.c (supply_gregset): Ditto.
5298         * mips-tdep.c: Ditto for comments.
5299         * mips-nat.c (fetch_inferior_registers): Ditto.
5300         (store_inferior_registers, fetch_core_registers): Ditto.
5301         * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5302         (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5303         * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5304         (i386_do_pop_frame, i386_register_type): Ditto.
5305         * hppa-tdep.c (hppa_frame_chain): Ditto.
5306         (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5307         (hppa_pop_frame, hppa_read_fp): Ditto.
5308         (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5309         * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5310         * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5311         * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5312         * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5313         * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5314         * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5315         * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5316         * blockframe.c: Ditto for comments.
5317         * arch-utils.h: Ditto for comments.
5318         * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5319         * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5320         * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5321         * alpha-tdep.h: Ditto for comments.
5322         * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5323         (alpha_cannot_store_register): Ditto.
5324         (alpha_push_dummy_frame): Ditto.
5325         * alpha-nat.c (supply_gregset): Ditto.
5326
5327         * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5328         * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5329         * config/sparc/tm-sparc.h: Update comment.
5330
5331         * hppa-tdep.c (hppa_init_extra_frame_info): Use
5332         deprecated_read_fp instead of TARGET_READ_FP.
5333         (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5334         (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5335         * sparc-tdep.c (sparc_init_extra_frame_info): Use
5336         deprecated_read_fp instead of read_fp.
5337         * s390-tdep.c (s390_push_arguments): Ditto.
5338         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5339         * frame.h: Ditto in comments.
5340         * frame.c (legacy_get_prev_frame): Ditto.
5341         * dummy-frame.c (dummy_frame_this_id): Ditto.
5342         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5343
5344 2003-04-28  Andrew Cagney  <cagney@redhat.com>
5345
5346         * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5347         * gdbarch.h, gdbarch.c: Re-generate.
5348         * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5349         * vax-tdep.c (_initialize_vax_tdep): Update.
5350         * v850-tdep.c (_initialize_v850_tdep): Update.
5351         * sparc-tdep.c (_initialize_sparc_tdep): Update.
5352         * s390-tdep.c (_initialize_s390_tdep): Update.
5353         * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5354         * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5355         * mips-tdep.c (_initialize_mips_tdep): Update.
5356         * mcore-tdep.c (_initialize_mcore_tdep): Update.
5357         * m68k-tdep.c (_initialize_m68k_tdep): Update.
5358         * ia64-tdep.c (_initialize_ia64_tdep): Update.
5359         * hppa-tdep.c (_initialize_hppa_tdep): Update.
5360         * h8300-tdep.c (_initialize_h8300_tdep): Update.
5361         * frv-tdep.c (_initialize_frv_tdep): Update.
5362         * cris-tdep.c (cris_delayed_get_disassembler): Update.
5363         (_initialize_cris_tdep): Update.
5364         * arch-utils.c (legacy_print_insn): Update.
5365         * alpha-tdep.c (_initialize_alpha_tdep): Update.
5366
5367 2003-04-26  Adam Fedor  <fedor@gnu.org>
5368
5369         * linespec.c (decode_objc): New function to decode ObjC calls
5370         (decode_line_1): Check for ObjC calls (using decode_objc)
5371         * Makefile (linespec.o): Update dependencies.
5372
5373 2003-04-26  Daniel Jacobowitz  <drow@mvista.com>
5374
5375         * breakpoint.h (struct breakpoint_ops): New.
5376         (struct breakpoint): Add ops member.
5377
5378         * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5379         (mention): Use new breakpoint ops member.
5380         (set_raw_breakpoint): Initialize ops field to NULL.
5381         (print_exception_catchpoint, print_one_exception_catchpoint)
5382         (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5383         (gnu_v3_exception_catchpoint_ops): New.
5384         (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5385
5386 2003-04-25  Adam Fedor  <fedor@gnu.org>
5387
5388         * Makefile.in (COMMON_OBS): Add objc-lang.o
5389
5390 2003-04-25  Andrew Cagney  <cagney@redhat.com>
5391
5392         * d10v-tdep.c (print_insn): Delete function.
5393         (display_trace): Use TARGET_PRINT_INSN.
5394         (_initialize_d10v_tdep): Do not set tm_print_insn.
5395         (d10v_gdbarch_init): Set print_insn.
5396
5397 2003-04-25  Andrew Cagney  <cagney@redhat.com>
5398
5399         * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5400         (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5401         (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5402         (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5403         (nr_dmap_regs, a0_regnum): ... new functions.
5404         (d10v_print_registers_info): Use a0_regnum, use register_size.
5405         (d10v_register_byte): Delete function.
5406         (d10v_register_raw_size): Delete function.
5407         (d10v_register_type): Use a0_regnum.
5408         (d10v_print_registers_info): Use a0_regnum.
5409         (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5410         (d10v_gdbarch_init): Do not set register_byte or
5411         register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5412         (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5413         extract_address.
5414         (trace_command): Use XCALLOC.
5415         (print_insn): Delete reference to tm_print_insn.
5416         (saved_regs_unwinder): Use store_unsigned_integer instead of
5417         store_address.
5418         * frame.h (FRAME_OBSTACK_CALLOC): Define
5419
5420 2003-04-25  David Carlton  <carlton@bactrian.org>
5421
5422         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5423
5424 2003-04-24  Adam Fedor  <fedor@gnu.org>
5425
5426         * objc-lang.c: Include "valprint.h"
5427         * Makefile.in (objc-lang.o): Update dependencies.
5428
5429 2003-04-24  Adam Fedor  <fedor@gnu.org>
5430
5431         * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5432         architecture dependant compilation and mark as unimplemented
5433         (until they get put in the gdbarch vector).
5434
5435 2003-04-23  David Carlton  <carlton@bactrian.org>
5436
5437         * cp-support.c (cp_find_first_component): Accept 'operator' in
5438         more locations.
5439
5440 2003-04-23  Andrew Cagney  <cagney@redhat.com>
5441
5442         * infcall.c (call_function_by_hand): Eliminate redundant
5443         indentation.  Move "saved_async" and "old_cleanups" to where they
5444         are needed.
5445
5446 2003-04-23  Andrew Cagney  <cagney@redhat.com>
5447
5448         * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5449         and "buffer".  Move the "name" code to where it is needed.
5450
5451 2003-04-23  Andrew Cagney  <cagney@redhat.com>
5452
5453         * infcall.c (call_function_by_hand): Move variables "start_sp",
5454         "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5455         code to ON_STACK switch branch.
5456
5457 2003-04-23  Andrew Cagney  <cagney@redhat.com>
5458
5459         * infcall.c (call_function_by_hand): Make declaration of "i",
5460         "sal", "bpt" and "old_sp" more local to their use.  Delete #if
5461         lint.
5462
5463 2003-04-23  Andrew Cagney  <cagney@redhat.com>
5464
5465         * infcall.c (call_function_by_hand): Delete variable
5466         "n_method_args".  Localize "param_type"'s declaration to the loop
5467         that it is used.  Reinstate code assigning to said variable -
5468         deleted on 2002-06-14.  Rationalize calls to value_args_coerce.
5469         Rationalize code using "param_type".
5470
5471 2003-04-22  Andrew Cagney  <cagney@redhat.com>
5472
5473         * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5474         compute the breakpoint address.  Only call FIX_CALL_DUMMY when
5475         ON_STACK.  Eliminate the variable "addr".  Do not pass "real_pc"
5476         to DEPRECATED_PUSH_RETURN_ADDRESS.
5477
5478 2003-04-22  Kevin Buettner  <kevinb@redhat.com>
5479
5480         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5481         on the DWARF2 register number prior to fetching a register.
5482
5483 2003-04-22  J. Brobecker  <brobecker@gnat.com>
5484
5485         * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5486         Update all the tests using SOFT_FLOAT considering the fact that
5487         this macro was always set to 0.
5488         * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5489         considering the fact that this macro was always set to 0.
5490         * hppa-tdep.h (hppa_store_return_value): Likewise.
5491         (hppa_extract_return_value): Likewise.
5492
5493 2003-04-22  J. Brobecker  <brobecker@gnat.com>
5494
5495         * config/pa/tm-hppa.h: Remove obsolete code, was used by
5496         the hppa-pro target only.
5497
5498 2003-04-21  J. Brobecker  <brobecker@gnat.com>
5499
5500         Ongoing multi-arch conversion effort for HP/UX:
5501         * config/pa/tm-hppa.h: Move all macro that are no longer
5502         defined now that GDB_MULTI_ARCH is now set to 1 from here...
5503         * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5504
5505 2003-04-21  J. Brobecker  <brobecker@gnat.com>
5506
5507         * config/pa/tm-hppa.h: Obsolete a section that was only used
5508         for hppa-pro.
5509
5510 2003-04-21  J. Brobecker  <brobecker@gnat.com>
5511
5512         Ongoing multi-arch conversion for HP/UX.
5513         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5514         if already defined (allows hppa64 to stay non-multiarched for now).
5515         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5516
5517 2003-04-21  Andrew Cagney  <cagney@redhat.com>
5518
5519         * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5520
5521 2003-04-21  Andrew Cagney  <cagney@redhat.com>
5522
5523         * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5524         "i386_num_mmx_regs".
5525
5526 2003-04-21  Andrew Cagney  <cagney@redhat.com>
5527
5528         * infcall.c: New file.
5529         * infcall.h: New file.
5530         * valarith.c: Include "infcall.h".
5531         * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5532         * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5533         * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5534         (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5535         (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5536         (SFILES): Add "infcall.c"
5537         (COMMON_OBS): Add "infcall.o".
5538         (infcall.o): Specify dependencies.
5539         * value.h (call_function_by_hand): Delete declaration.
5540         * inferior.h (run_stack_dummy): Delete declaration.
5541         * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5542         (run_stack_dummy): Move to "infcall.c", merged into
5543         call_function_by_hand.
5544         * valops.c (call_function_by_hand): Moved to "infcall.c".
5545         (find_function_addr, value_arg_coerce): Ditto.
5546         (unwindonsignal_p, coerce_float_to_double): Ditto.
5547         (_initialize_valops): Move "set/show coerce-float-to-double", and
5548         "set/show unwindonsignal" commands to "infcall.c".
5549         * v850-tdep.c, target.h: Update comments.
5550         * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5551         * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5552         (sh64_init_extra_frame_info): Update comments.
5553         * mn10300-tdep.c: Update comments.
5554         * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5555         * config/sparc/tm-sparc.h: Update comments.
5556         * breakpoint.h: Update comments.
5557         * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5558         * arm-tdep.c: Update comment.
5559
5560 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
5561
5562         * i386-tdep.c (i386_num_register_names): New variable.
5563         (i386_num_mmx_regs): Renamed from mmx_num_regs.
5564         (MM0_REGNUM): Remove redundant parentheses in define.
5565         (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
5566         (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
5567         i386_mxcsr_regnum_p): Remove redundant parentheses.
5568         (i386_register_name): Use i386_num_register_names.
5569
5570         * i386-tdep.c (i386_extract_return_value,
5571         i386_store_return_value): Correct check for availability of
5572         floating-point registers.
5573
5574         * i386-tdep.c (i386_frame_num_args): Remove function.
5575         (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
5576
5577         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
5578         mmx_regnum_to_fp_regnum.  Adjust all callers.
5579
5580         * i386-tdep.c (i386_get_longjmp_target): Use
5581         TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
5582         and TARGET_CHAR_BIT.  Use extract_typed_address instead of
5583         extract_address.
5584
5585 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
5586
5587         * core-regset.c: Update comments to reflect reality.  Re-order
5588         includes.
5589         (fetch_core_registers): Use switch instead of if.  Remove
5590         redundant prototype.
5591
5592 2003-04-18  Jim Blandy  <jimb@redhat.com>
5593
5594         * s390-tdep.c (s390_frame_align): New function.
5595         (s390_gdbarch_init): Register it with the gdbarch object.
5596
5597 2003-04-17  Richard Henderson  <rth@redhat.com>
5598
5599         * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
5600
5601 2003-04-17  Michael Snyder  <msnyder@redhat.com>
5602             Karen Bennet  <bennet@redhat.com>
5603
5604         Committed by Elena Zannoni  <ezannoni@redhat.com>
5605         * gdb_gcore.sh: New script to create a core dump of a process.
5606
5607 2003-04-17  Elena Zannoni  <ezannoni@redhat.com>
5608
5609         * values.c (value_being_returned): Don't fetch the return
5610         value if the return type is void.
5611
5612 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
5613
5614         * thread-db.c: Reindented.
5615
5616 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
5617
5618         * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
5619         td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
5620         as types.
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646 2003-04-16  Kevin Buettner  <kevinb@redhat.com>
5647
5648         * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
5649         the size of ``long double'' to 16, instead of 8.
5650
5651 2003-04-16  Mark Kettenis  <kettenis@gnu.org>
5652
5653         * i386-linux-nat.c: Add some whitespace to make things more
5654         readable.
5655         (fetch_register, store_register, fetch_inferior_registers,
5656         store_inferior_registers): Get rid of assignment in if-statement.
5657         (store_register): Fix typo in error message.
5658
5659 2003-04-16  Andrew Cagney  <cagney@redhat.com>
5660
5661         * utils.c (xmmalloc): Always allocate something, matches
5662         libiberty/xmalloc's semantics.
5663         (xmrealloc, xmcalloc): Ditto.
5664
5665 2003-04-16  Andrew Cagney  <cagney@redhat.com>
5666
5667         * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5668         update comments.
5669         (get_frame_type): Initialize unwind and type when needed.
5670         (get_frame_id, frame_register_unwind): Ditto.
5671
5672 2003-04-16  Andrew Cagney  <cagney@redhat.com>
5673
5674         * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
5675         obsolete.
5676         * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
5677         * sparcl-stub.c: Obsolete file.
5678         * config/sparc/tm-sparclet.h: Obsolete file.
5679         * sparclet-stub.c: Obsolete file.
5680         * sparclet-rom.c: Obsolete file.
5681         * sparcl-tdep.c: Obsolete file.
5682         * config/sparc/tm-sparclite.h: Obsolete file.
5683         * config/sparc/sparclite.mt: Obsolete file.
5684         * config/sparc/sparclet.mt: Obsolete file.
5685         * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
5686         sparc86x-*-* obsolete.
5687
5688 2003-04-15  David Carlton  <carlton@math.stanford.edu>
5689
5690         * Makefile.in (SFILES): Add cp-namespace.c.
5691         (COMMON_OBS): Add cp-namespace.o.
5692         (block.o): Depend on gdb_obstack_h and cp_support_h.
5693         (buildsym.o): Depend on cp_support_h.
5694         (cp-namespace.o): New.
5695         (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
5696         gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
5697         (dwarf2read.o): Depend on cp_support_h.
5698         * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
5699         * dwarf2read.c (process_die): Set processing_has_namespace_info,
5700         processing_current_namespace.
5701         (read_namespace): Update processing_current_namespace; check for
5702         anonymous namespaces.
5703         (dwarf2_name): New function.
5704         (dwarf2_extension): Ditto.
5705         * cp-support.h: Update copyright, contributors.
5706         Add inclusion guards.
5707         Add opaque declaration for structs obstack, block, symbol.
5708         (struct using_direct): New struct.
5709         Add declarations for cp_find_first_component,
5710         cp_entire_prefix_len, processing_has_namespace_info,
5711         processing_current_namespace, cp_is_anonymous,
5712         cp_add_using_directive, cp_initialize_namespace,
5713         cp_finalize_namespace, cp_set_block_scope,
5714         cp_scan_for_anonymous_namespaces.
5715         * cp-namespace.c: New file.
5716         * cp-support.c: Update copyright.
5717         Include ctype.h, gdb_assert.h, gdbcmd.h.
5718         New variable maint_cplus_cmd_list.
5719         (cp_find_first_component): New function.
5720         (cp_entire_prefix_len, maint_cplus_command)
5721         (first_component_command, _initialize_cp_support): Ditto.
5722         * buildsym.c: Include cp-support.h.
5723         New variable using_list.
5724         (add_symbol_to_list): Check for anonymous namespaces.
5725         (finish_block): Set block's scope.
5726         (start_symtab): Initialize C++ namespace support.
5727         (end_symtab): Finalize C++ namespace support.
5728         * block.h: Add opaque declarations for structs
5729         block_namespace_info, using_direct, and obstack.
5730         Add declarations for block_set_scope and block_set_using.
5731         (struct block): Add 'language_specific' member.
5732         (BLOCK_NAMESPACE): New macro.
5733         * block.c: Include gdb_obstack.h and cp-support.h.
5734         (struct block_namespace_info): New struct.
5735         (block_set_scope): New function.
5736         (block_set_using, block_initialize_namespace): Ditto.
5737
5738 2003-04-14  Kevin Buettner  <kevinb@redhat.com>
5739
5740         * solib-svr4.c (svr4_have_link_map_offsets): New function.
5741         (locate_base): Return early if there aren't any link map offsets.
5742         (svr4_solib_create_inferior_hook): Warn if shared library support
5743         is unavailable.
5744
5745 2003-04-14  David Carlton  <carlton@math.stanford.edu>
5746
5747         * symtab.c (symbol_set_names): Add prefix when storing Java names
5748         in hash table.  Fix for PR java/1039.
5749
5750 2003-04-14  David Carlton  <carlton@math.stanford.edu>
5751
5752         * symtab.c (symbol_set_names): Rename 'name' arg to
5753         'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
5754         * symtab.h: Change 'name' argument in declaration of
5755         symbol_set_names to 'linkage_name'.
5756         (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
5757
5758 2003-04-14  Andrew Cagney  <cagney@redhat.com>
5759
5760         * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
5761         return the fully sign-extended register value.
5762         (get_frame_pointer): Ditto.
5763         (mips_pop_frame): Initialize "proc_desc" after checking for a
5764         dummy frame.
5765
5766 2003-04-14  Andrew Cagney  <cagney@redhat.com>
5767
5768         * mips-tdep.c (mips_push_dummy_frame): Delete function.
5769         (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
5770         (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
5771         (mips_push_register): Delete function.
5772         (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
5773         PUSH_FP_REGNUM.
5774
5775 2003-04-14  Jim Blandy  <jimb@redhat.com>
5776
5777         * symmisc.c: #include "gdb_regex.h".
5778         (maintenance_list_symtabs, maintenance_list_psymtabs): New
5779         functions.
5780         * maint.c (maintenance_list_command): New function.
5781         (_initialize_maint_cmds): Register the above as commands.
5782         * symtab.h (maintenance_list_symtabs,
5783         maintenance_list_psymtabs): New declarations.
5784         * cli/cli-cmds.c (maintenancelistlist): New variable.
5785         (init_cmd_lists): Initialize it.
5786         * cli/cli-cmds.h (maintenancelistlist): New declaration.
5787         * gdbcmd.h (maintenancelistlist): New declaration.
5788         * Makefile.in (symmisc.o): Update dependencies.
5789
5790 2003-04-14  Elena Zannoni  <ezannoni@redhat.com>
5791
5792         * s390-nat.c: Include asm/types.h for addr_t.
5793
5794 2003-04-14  Corinna Vinschen  <vinschen@redhat.com>
5795
5796         * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
5797         actually incoming type.
5798
5799 2003-04-13  Andrew Cagney  <cagney@redhat.com>
5800
5801         * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
5802         get_next_frame and get_frame_saved_regs.
5803
5804 2003-04-13  Andrew Cagney  <cagney@redhat.com>
5805
5806         * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
5807         of gdbarch_num_regs.
5808
5809 2003-04-13  Andrew Cagney  <cagney@redhat.com>
5810
5811         * frame.h: Mention what replaced what in "struct frame_info".
5812         * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
5813         deprecated_update_frame_base_hack and
5814         deprecated_update_frame_pc_hack.
5815         * hppa-tdep.c: Ditto.
5816
5817 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
5818
5819         * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
5820         to read_reg and update its comment.  Remove regnum member.
5821         * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
5822         Don't call read_reg when setting in_reg.  Call read_reg to get
5823         the frame base if it's in a register.  Return the register number
5824         on the stack instead of in the context.  Remove extra arguments
5825         to read_reg.
5826         * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
5827         (dwarf2_evaluate_loc_desc): Call value_from_register.  Expect
5828         the register number on the expression stack.
5829         (needs_frame_read_reg): Remove extra arguments.
5830
5831 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
5832
5833         * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
5834         made non-static.
5835         (execute_stack_op): All callers updated.
5836         * dwarf2expr.h: Add prototype for dwarf2_read_address.
5837         * dwarf2loc.c (find_location_expression): New function.
5838         (dwarf_expr_frame_base): Call it.
5839         (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
5840         (dwarf2_tracepoint_var_ref): New function, broken out from
5841         locexpr_tracepoint_var_ref.
5842         (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
5843         Make static.
5844         (loclist_read_variable, loclist_read_needs_frame): New functions.
5845         (loclist_describe_location, loclist_tracepoint_var_ref): New
5846         functions.
5847         (dwarf2_loclist_funcs): New struct location_funcs.
5848         * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
5849         (struct dwarf2_locexpr_baton): Add comments.
5850         (dwarf2_loclist_funcs): New extern.
5851         * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
5852         base_address and base_known.
5853         (dwarf_loc_buffer): New variable.
5854         (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
5855         (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
5856         (dwarf2_has_info): Initialize dwarf_loc_offset.
5857         (dwarf2_build_psymtabs): Read in .debug_loc.
5858         (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
5859         DWARF_LOC_SIZE.
5860         (psymtab_to_symtab_1): Likewise.  Move base address calculation
5861         here, from...
5862         (dwarf2_get_pc_bounds): ... here.  Use the base address from
5863         cu_header.
5864         (dwarf2_symbol_mark_computed): Handle location lists.
5865
5866 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
5867
5868         * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
5869         if the linkage name demangled successfully.
5870
5871 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
5872
5873         * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
5874         disassmbly_flavour): Removed.
5875
5876         * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
5877
5878 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
5879
5880         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
5881
5882 2003-04-12  Andrew Cagney  <cagney@redhat.com>
5883
5884         * frame.h (struct frame_info): Move definition from here ...
5885         * frame.c (struct frame_info): ... to here.
5886
5887 2003-04-12  Andrew Cagney  <cagney@redhat.com>
5888
5889         * gdbthread.h (save_infrun_state): Delete parameter
5890         "prev_func_start".
5891         (struct thread_info): Delete field "prev_func_start".
5892         (load_infrun_state): Ditto.
5893         * thread.c (load_infrun_state, save_infrun_state): Update.
5894         * infrun.c (prev_func_start): Delete variable.
5895         (context_switch, init_wait_for_inferior): Update.
5896         (stop_stepping, keep_going): Update.
5897
5898 2003-04-12  Andrew Cagney  <cagney@redhat.com>
5899
5900         * gdbarch.sh: Add missing opaque declarations.
5901         * gdbarch.h: Regnerate.
5902         * symtab.h: Add missing opaque declarations.
5903         * value.h, target.h, symfile.h, stabsread.h: Ditto.
5904         * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
5905         * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
5906         * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
5907         * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
5908         * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
5909         * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
5910         * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
5911         * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
5912         * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
5913         * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
5914         * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
5915         * cli/cli-setshow.h, cli/cli-script.h: Ditto.
5916
5917 2003-04-11  Andrew Cagney  <cagney@redhat.com>
5918
5919         * frame.c (get_frame_id): Return this frame's "id".
5920         (legacy_get_prev_frame): Set prev's frame ID code_addr to the
5921         function start.
5922         (legacy_saved_regs_this_id): Replace function body with
5923         internal-error.
5924         (deprecated_frame_xmalloc): Mark the frame ID as valid, use
5925         FRAME_OBSTACK_ZALLOC.
5926         (create_new_frame): Mark the frame ID as valid.
5927
5928 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
5929
5930         * Makefile.in (libbfd_h): Added missing setting.
5931         * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
5932         according to the selected ABI.
5933
5934 2003-04-11  Jeff Johnston  <jjohnstn@redhat.com>
5935
5936         * gdb_indent.sh: Recognize pid_t and sigset_t as types.
5937
5938 2003-04-11  Andrew Cagney  <cagney@redhat.com>
5939
5940         * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
5941         SAVED_PC_AFTER_CALL.
5942         * gdbarch.h, gdbarch.c: Regenerate.
5943         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5944         * x86-64-tdep.c (x86_64_init_abi): Update.
5945         * vax-tdep.c (vax_gdbarch_init): Update.
5946         * v850-tdep.c (v850_gdbarch_init): Update.
5947         * sparc-tdep.c (sparc_gdbarch_init): Update.
5948         * sh-tdep.c (sh_gdbarch_init): Update.
5949         * s390-tdep.c (s390_gdbarch_init): Update.
5950         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5951         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5952         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5953         * mips-tdep.c (mips_gdbarch_init): Update.
5954         * mcore-tdep.c (mcore_gdbarch_init): Update.
5955         * m68k-tdep.c (m68k_gdbarch_init): Update.
5956         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5957         * ia64-tdep.c (ia64_gdbarch_init): Update.
5958         (ia64_saved_pc_after_call): Update declaration.
5959         * i386ly-tdep.c (i386lynx_init_abi): Update.
5960         * i386-tdep.c (i386_gdbarch_init): Update.
5961         * hppa-tdep.c (hppa_gdbarch_init): Update.
5962         * h8300-tdep.c (h8300_gdbarch_init): Update.
5963         * frv-tdep.c (frv_gdbarch_init): Update.
5964         * cris-tdep.c (cris_gdbarch_init): Update.
5965         * avr-tdep.c (avr_gdbarch_init): Update.
5966         * arm-tdep.c (arm_gdbarch_init): Update.
5967         * alpha-tdep.c (alpha_gdbarch_init): Update.
5968         * ns32knbsd-nat.c (frame_num_args): Update.
5969         * ns32k-tdep.c (umax_frame_num_args): Update.
5970         * mips-tdep.c (mips_init_frame_pc_first): Update.
5971         * infrun.c (step_over_function): Update.
5972         * i386-linux-tdep.c (skip_hurd_resolver): Update.
5973         * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
5974         * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
5975         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5976         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5977         * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
5978         * arm-linux-tdep.c (skip_hurd_resolver): Update.
5979         * arch-utils.c (init_frame_pc_default): Update.
5980         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
5981         * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
5982         declaration.
5983
5984 2003-04-11  Andrew Cagney  <cagney@redhat.com>
5985
5986         * i387-tdep.c: Update copyright.
5987         (i387_to_double): Delete function.
5988         (double_to_i387): Delete function.
5989
5990 2003-04-10  Andrew Cagney  <cagney@redhat.com>
5991
5992         * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
5993         frame's function's address.  Simplify.
5994         (d10v_frame_unwind_cache): Check that the frame's function is
5995         non-zero.
5996
5997 2003-04-10  Jim Blandy  <jimb@redhat.com>
5998
5999         * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6000         call to set_gdbarch_deprecated_push_arguments.
6001
6002 2003-04-10  Andrew Cagney  <cagney@redhat.com>
6003
6004         * frame.c (fprint_frame_id): New function.
6005         (fprint_frame_type, fprint_frame): New function.
6006         (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6007         (create_sentinel_frame, get_frame_id): Ditto.
6008         (frame_id_p, frame_id_eq): Ditto.
6009         (frame_id_inner, create_new_frame): Ditto.
6010         (legacy_get_prev_frame, get_prev_frame): Ditto.
6011         (deprecated_update_frame_pc_hack): Ditto.
6012         (frame_register_unwind): Ditto.
6013         (deprecated_update_frame_base_hack): Ditto.
6014
6015 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
6016
6017         * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6018         (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6019         frame_chain function.
6020         * Makefile.in: Add dependencies due to above change.
6021
6022 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
6023
6024         * blockframe.c (legacy_frame_chain_valid): Move call to
6025         DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6026         inside_entry_file.
6027
6028 2003-04-09  Andrew Cagney  <cagney@redhat.com>
6029
6030         * frame.h (struct frame_id): Replace "pc" and "base" with
6031         "stack_addr" and "code_addr".  Update comments.
6032         (frame_id_build): Update parameter names and comment.
6033         (struct frame_info): Replace "id_p" and "id" with "this_id".
6034         * dummy-frame.c (dummy_frame_this_id): Update.
6035         * breakpoint.c (print_one_breakpoint): Update.
6036         * frame.c (get_frame_id): Update.
6037         (get_frame_base, frame_id_build): Update.
6038         (create_sentinel_frame, legacy_get_prev_frame): Update.
6039         (deprecated_update_frame_base_hack): Update.
6040         (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6041         (frame_id_inner): Ditto.
6042
6043 2003-04-09  Andrew Cagney  <cagney@redhat.com>
6044
6045         * defs.h (gdb_print_host_address): Make "addr" parameter a
6046         pointer constant.
6047         * utils.c (gdb_print_host_address): Update.
6048
6049 2003-04-09  Kevin Buettner  <kevinb@redhat.com>
6050
6051         * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6052         register number for R0 is 0.
6053
6054 2003-04-09  J. Brobecker  <brobecker@gnat.com>
6055
6056         * frame.h (struct gdbarch): Add opaque structure definition
6057         to avoid a compilation warning on LynxOS 4.0.
6058
6059 2003-04-09  Andrew Cagney  <cagney@redhat.com>
6060
6061         * frame.h (struct frame_info): Delete field "pc".  Replace
6062         "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6063         structure.
6064         * frame.c (frame_pc_unwind): Update.
6065         (create_sentinel_frame): Do not set "pc".
6066         (get_prev_frame): Do not set "pc".  Use frame_pc_unwind.
6067         (get_frame_pc): Call frame_pc_unwind.
6068         (deprecated_update_frame_pc_hack): Update.
6069         (create_new_frame): Use "pc" not "->pc".
6070
6071 2003-04-09  Andrew Cagney  <cagney@redhat.com>
6072
6073         * frame.c (get_frame_id): Eliminate code updating "frame".
6074         (legacy_get_prev_frame): Ditto.
6075         (get_frame_base): Return id.base directly.
6076         (deprecated_update_frame_base_hack): Update "id.base".
6077         * frame.h (struct frame_info): Delete field "frame".
6078
6079 2003-04-09  Andrew Cagney  <cagney@redhat.com>
6080
6081         * NEWS: Mention that the "Sequent family" is obsolete.
6082         * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6083         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6084         * configure.host: Obsolete i[3456]86-sequent-bsd*,
6085         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6086         * config/i386/tm-ptx4.h: Obsolete file.
6087         * config/i386/tm-ptx.h: Obsolete file.
6088         * symm-tdep.c: Obsolete file.
6089         * config/i386/symmetry.mt: Obsolete file.
6090         * config/i386/tm-symmetry.h: Obsolete file.
6091         * symm-nat.c: Obsolete file.
6092         * config/i386/nm-symmetry.h: Obsolete file.
6093         * config/i386/xm-symmetry.h: Obsolete file.
6094         * config/i386/symmetry.mh: Obsolete file.
6095         * config/i386/nm-ptx4.h: Obsolete file.
6096         * config/i386/ptx4.mh: Obsolete file.
6097         * config/i386/ptx.mt: Obsolete file.
6098         * config/i386/ptx.mh: Obsolete file.
6099         * config/i386/xm-ptx4.h: Obsolete file.
6100         * config/i386/xm-ptx.h: Obsolete file.
6101
6102 2003-04-09  Andrew Cagney  <cagney@redhat.com>
6103
6104         Obsolete mips*-*-mach3*.
6105         * NEWS: Mention that mips*-*-mach3* is obsolete.
6106         * m3-nat.c: Obsolete file.
6107         * config/nm-m3.h: Obsolete file.
6108         * config/mips/tm-mipsm3.h: Obsolete file.
6109         * config/mips/mipsm3.mt: Obsolete file.
6110         * config/mips/mipsm3.mh: Obsolete file.
6111         * config/mips/xm-mipsm3.h: Obsolete file.
6112         * mipsm3-nat.c: Obsolete file.
6113         * configure.host: Obsolete mips-dec-mach3*.
6114         * configure.tgt: Obsolete mips*-*-mach3*.
6115
6116 2003-04-09  Andrew Cagney  <cagney@redhat.com>
6117
6118         * doublest.h: Update copyright.
6119         (deprecated_store_floating, deprecated_extract_floating): Rename
6120         store_floating and extract_floating.  Update comments.
6121         * doublest.c: Update copyright.
6122         (extract_floating_by_length): Replace extract_floating.
6123         (store_floating_by_length): Replace store_floating.
6124         (deprecated_extract_floating): New function.
6125         (deprecated_store_floating): New function.
6126         (extract_typed_floating): Call extract_floating_by_length.
6127         (store_typed_floating): Call store_floating_by_length.
6128         * x86-64-tdep.c (x86_64_store_return_value): Update.
6129         * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6130         (sh64_extract_return_value): Update.
6131         (sh_sh4_register_convert_to_virtual): Update.
6132         (sh_sh64_register_convert_to_virtual): Update.
6133         (sh_sh4_register_convert_to_raw): Update.
6134         (sh_sh64_register_convert_to_raw): Update.
6135         * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6136         (rs6000_register_convert_to_raw): Update.
6137         * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6138         (ia64_register_convert_to_raw): Update.
6139         * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6140         (REGISTER_CONVERT_TO_VIRTUAL): Update.
6141         * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6142         * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6143         (alpha_register_convert_to_raw): Update.
6144
6145 2003-04-08  Andrew Cagney  <cagney@redhat.com>
6146
6147         * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6148         * gdbarch.h, gdbarch.c: Re-generate.
6149         * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6150         (d10v_gdbarch_init): Do not set saved_pc_after_call.
6151         * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6152         conditionally, use frame_pc_unwind as an alternative.  Add
6153         comments.
6154         * arch-utils.c (init_frame_pc_default): Only call
6155         SAVED_PC_AFTER_CALL when available.
6156
6157 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
6158
6159         * infrun.c (stop_soon): Rename from stop_soon_quietly.
6160         (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6161         (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6162         (start_remote): Ditto.
6163         (handle_inferior_event): Ditto.
6164         (save_inferior_status): Ditto.
6165         (restore_inferior_status): Ditto.
6166         * infcmd.c (attach_command): Ditto.
6167         * fork-child.c (startup_inferior): Ditto.
6168         * inferior.h (stop_soon): Rename from stop_soon_quietly.
6169         * alpha-tdep.c (heuristic_proc_start): Ditto.
6170         * mips-tdep.c (heuristic_proc_start): Ditto.
6171         * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6172         * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6173         * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6174         * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6175         * remote-vx.c (vx_create_inferior): Ditto.
6176
6177 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
6178
6179         * infrun.c (stop_soon_quietly): Make it an enum, to better
6180         override the default behavior of handle_inferior_event.
6181         (clear_proceed_status): Update uses of stop_soon_quietly to
6182         reflect that it is now an enum.
6183         (start_remote): Ditto.
6184         (handle_inferior_event): Change logic a bit if stop_soon_quietly
6185         is set to handle the new GNU/Linux kernel behavior for
6186         attach/sigstop.  Update uses of stop_soon_quietly.
6187         * inferior.h (enum stop_kind): New enum.
6188         * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6189         Reset normal handle_inferior_event behavior, afterwards.
6190         * fork-child.c (startup_inferior): Update.
6191         * alpha-tdep.c (heuristic_proc_start): Update.
6192         * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6193         * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6194         * solib-osf.c (osf_solib_create_inferior_hook): Update.
6195         * solib-irix.c (irix_solib_create_inferior_hook): Update.
6196         * remote-vx.c (vx_create_inferior): Update.
6197         * mips-tdep.c (heuristic_proc_start): Update.
6198
6199 2003-04-07  Elena Zannoni  <ezannoni@redhat.com>
6200
6201         * disasm.c (dump_insns):  Move variables inside loop, or they will
6202         be freed more than once, causing wild memory corruptions.
6203         (gdb_disassembly): Look for the substring "-thread",
6204         instead of "-threads" in the target name, to make sure to find
6205         the 'multi-thread' target.  Also, make sure we do the right thing
6206         with the "core" target.
6207
6208 2003-04-07  Kevin Buettner  <kevinb@redhat.com>
6209
6210         * mips-tdep.c (mips_print_fp_register): New function, created from
6211         do_fp_register_row().  Registers are now (also) printed as hex.
6212         Only one register is printed per row.
6213         (mips_print_register, do_fp_register_row): Print floating point
6214         registers with mips_print_fp_register().
6215
6216 2003-04-06  Andrew Cagney  <cagney@redhat.com>
6217
6218         * valprint.h (inspect_it): Add extern declaration.
6219         * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6220         (selectors_info, classes_info): Ditto.
6221         (find_objc_msgcall): Fix indentation.
6222         (objc_printstr): Delete extern declarations.
6223
6224         * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6225
6226 2003-04-06  Andrew Cagney  <cagney@redhat.com>
6227
6228         * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6229         Update comment.
6230         * frame.c (legacy_saved_regs_this_id): Update.
6231         (legacy_get_prev_frame): Update.
6232         * xstormy16-tdep.c: Update comment.
6233         * sparc-tdep.c (sparc_frame_chain): Update comment.
6234         * blockframe.c (legacy_frame_chain_valid): Update.
6235
6236 2003-04-06  Andrew Cagney  <cagney@redhat.com>
6237
6238         * valprint.c (val_print_type_code_int): Delete #ifdef
6239         PRINT_TYPELESS_INTEGER code.
6240
6241         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6242         (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6243         multi-arch definition.
6244         * gdbarch.h: Re-generate.
6245
6246 2003-04-05  Andrew Cagney  <cagney@redhat.com>
6247
6248         Eliminate FRAME_FIND_SAVED_REGS.
6249         * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6250         Change FSR parameter to a pointer.
6251         * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6252         Assume FSR parameter is a pointer.
6253         * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6254         Make fsr a pointer.
6255         * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6256         (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs.  Make
6257         saved_regs a pointer.
6258         (hppa_frame_saved_pc): Ditto.
6259         (find_dummy_frame_regs): Make frame_saved_regs a pointer
6260         (hppa_pop_frame): Call hppa_frame_init_saved_regs.  Make fsr a
6261         pointer.
6262         (restore_pc_queue): Make fsr a pointer.
6263         (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6264         (hppa_frame_chain): Make saved_regs a pointer, call
6265         hppa_frame_init_saved_regs.
6266         * sparc-tdep.c: Include "gdb_assert.h".
6267         (sparc_frame_find_saved_regs): Replace internal_error with
6268         gdb_assert.
6269         * remote-vxsparc.c (vx_read_register): Delete reference to
6270         FRAME_FIND_SAVED_REGS.
6271         * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6272         * gdbarch.h: Regenerate.
6273         * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6274         (deprecated_get_frame_saved_regs): Delete declaration.
6275         (struct frame_saved_regs): Delete definition.
6276         * frame.c (deprecated_get_frame_saved_regs): Delete function.
6277         * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6278         (hppa_frame_find_saved_regs): Delete declaration.
6279         (FRAME_FIND_SAVED_REGS): Delete macro.
6280         (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6281         * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6282         FRAME_FIND_SAVED_REGS in comment.
6283
6284 2003-04-05  Andrew Cagney  <cagney@redhat.com>
6285
6286         * frame.c (frame_func_unwind, get_frame_func): New functions.
6287         * frame.h (get_frame_func, frame_func_unwind): Declare.
6288         (struct frame_info): Add field "prev_func" for caching the
6289         previous frame's function address.
6290         * arm-tdep.c (arm_frameless_function_invocation): Combine
6291         get_pc_function_start and get_frame_pc into get_frame_func.
6292         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6293         (sh64_nofp_frame_init_saved_regs): Ditto.
6294         * s390-tdep.c (s390_function_start): Ditto.
6295         * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6296         (rs6000_frameless_function_invocation): Ditto.
6297         (rs6000_frame_saved_pc): Ditto.
6298         * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6299         * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6300         * i386-tdep.c (i386_frameless_signal_p): Ditto.
6301         (i386_frame_init_saved_regs): Ditto.
6302         * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6303         * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6304         get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6305         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6306         * blockframe.c (frameless_look_for_prologue): Ditto.
6307
6308 2003-04-05  Andrew Cagney  <cagney@redhat.com>
6309
6310         * frame.c (legacy_get_prev_frame): Link prev to next at the
6311         function start.  Update comments.
6312
6313 2003-04-05  Andrew Cagney  <cagney@redhat.com>
6314
6315         * frame.c (get_frame_id): Update comment.
6316         (legacy_get_prev_frame): Update comment.
6317         * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6318         * gdbarch.h: Regenerate.
6319         * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6320         * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6321
6322 2003-04-05  Andrew Cagney  <cagney@redhat.com>
6323
6324         * stack.c (print_frame_info): Use get_frame_pc.
6325
6326 2003-04-04  Andrew Cagney  <cagney@redhat.com>
6327
6328         * frame.c (get_prev_frame): Do not call frame_type_from_pc.  Set
6329         the frame's type from the unwinder.
6330         (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6331         (create_new_frame, legacy_get_prev_frame): When the unwinder's
6332         type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6333         (get_frame_base_address): Use get_frame_type.
6334         (get_frame_locals_address, get_frame_args_address): Ditto.
6335         (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6336         * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6337         (struct frame_info): Add comment explaining why the frame contains
6338         a "type" field.
6339         * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6340         * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6341         * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6342         NORMAL_FRAME.
6343         * frame-unwind.h: Include "frame.h".
6344         (struct frame_unwind): Add "type" field.
6345         * Makefile.in (frame_unwind_h): Add $(frame_h).
6346
6347 2003-04-04  Andrew Cagney  <cagney@redhat.com>
6348
6349         * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6350         * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6351         * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6352         get_frame_base.
6353         (d10v_unwind_dummy_id): Use frame_id_build.
6354         * frame.c (find_frame_sal): Use get_frame_pc.
6355         (create_new_frame): Use deprecated_update_frame_pc_hack and
6356         deprecated_update_frame_base_hack.
6357         (create_sentinel_frame): Add comment about ->pc going away.
6358         (get_prev_frame): Add comment about ->pc going away.
6359         (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6360         frame_id_build, deprecated_update_frame_pc_hack and
6361         deprecated_update_frame_base_hack.
6362         (select_frame): Use get_frame_pc.
6363         (legacy_saved_regs_this_id): Use frame_id_build.
6364
6365 2003-04-04  Elena Zannoni  <ezannoni@redhat.com>
6366
6367         * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6368         signed integer case.
6369         (classify_argument): Handle enumerations and references.
6370
6371 2003-04-04  Andrew Cagney  <cagney@redhat.com>
6372
6373         * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6374         ID to NULL.
6375
6376 2003-04-01  Adam Fedor  <fedor@gnu.org>
6377
6378         * gdb/objc-lang.c (selectors_info): Replace calls to
6379         SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6380         SYMBOL_NATURAL_NAME.
6381         (classes_info, find_methods): Likewise.
6382
6383 2003-04-03  Kevin Buettner  <kevinb@redhat.com>
6384
6385         * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6386         ``mach'' to the value determined by bfd_default_set_arch_mach().
6387
6388 2003-04-02  Bob Rossi  <bob_rossi@cox.net>
6389
6390         * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6391         (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6392         (mi-cmd-file.o): Update dependencies.
6393
6394 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
6395
6396         * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6397         (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6398
6399 2003-04-01  Adam Fedor  <fedor@gnu.org>
6400
6401         * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6402         * language.h (struct language_defn): Add la_demangle.
6403         (language_demangle): Declare.
6404         * language.c (language_demangle): New function.
6405         (unk_lang_demangle): Likewise.
6406         (unknown_language_defn, auto_language_defn, local_language_defn):
6407         Add ukn_lang_demangle.
6408         * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6409         * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6410         * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6411         (cplus_language_defn): Add cplus_demangle for la_demangle element.
6412         * jv-lang.c (java_demangle): New function
6413         (java_language_defn): Use it for la_demangle element.
6414         * objc-lang.c (objc_demangle): Add options argument
6415         (objc_language_defn): Use objc_demangle for la_demangle element.
6416         * maint.c (maintenance_demangle): Replace switch with
6417         call to language_demangle.
6418         * utils.c (fprintf_symbol_filtered): Likewise.
6419
6420 2003-04-01  Andrew Cagney  <cagney@redhat.com>
6421
6422         * printcmd.c (print_frame_nameless_args): Delete #ifdef
6423         NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6424         PRINT_TYPELESS_INTEGER.
6425         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6426         PUSH_RETURN_ADDRESS.
6427
6428 2003-04-01  Andrew Cagney  <cagney@redhat.com>
6429
6430         * Makefile.in (d10v-tdep.o): Update dependencies.
6431         * d10v-tdep.c: Include "frame-base.h".
6432         (d10v_frame_unwind): Make constant.
6433         (d10v_frame_base_address): New function.
6434         (d10v_frame_base): New variable.
6435         (d10v_gdbarch_init): Set frame_base default.
6436         (struct d10v_unwind_cache): Add the field "prev_sp".  Update
6437         comment for base.
6438         (d10v_frame_unwind_cache): Set and use "prev_sp".
6439         (d10v_frame_this_id): Use the previous frame's inner most stack
6440         address and this frame's func address for the frame ID.  Use
6441         frame_id_build.  Don't analyze beyond the current instruction.
6442
6443 2003-04-01  Andrew Cagney  <cagney@redhat.com>
6444
6445         * frame.h (get_frame_locals_address, get_frame_args_address):
6446         Refer to the base address, instead of the address of the first
6447         local or parameter.
6448
6449 2003-04-01  Andrew Cagney  <cagney@redhat.com>
6450
6451         Add frame debug info addresses:
6452         * frame-base.c: New file.
6453         * frame-base.h: New file.
6454         * frame.h (struct frame_base): Add opaque declaration.
6455         (get_frame_base): Update comment.
6456         (get_frame_base_address): Declare.
6457         (get_frame_locals_address): Declare.
6458         (get_frame_args_address): Declare.
6459         (struct frame_info): Add "base" and "base_cache".  Update
6460         comments on the unwinder.
6461         * frame.c: Include "frame-base.h".
6462         (get_frame_locals_address): New function.
6463         (get_frame_base_address): New function.
6464         (get_frame_args_address): New function.
6465         * findvar.c (read_var_value): Use get_frame_locals_address and
6466         get_frame_args_address.
6467         * stack.c (frame_info): Use get_frame_locals_address and
6468         get_frame_args_address.
6469         (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6470         moved to "frame-base.c".
6471         * printcmd.c (print_frame_nameless_args): Ditto.
6472         * symtab.h (address_class): Update comments.
6473         * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6474         get_frame_base_address.
6475         * dwarf2expr.c (execute_stack_op): Ditto.
6476         * Makefile.in (frame_base_h): Define.
6477         (frame.o): Update dependencies.
6478         (frame-base.o): Add dependencies.
6479         (SFILES): Add frame-base.c.
6480         (COMMON_OBS): Add frame-base.o.
6481
6482 2003-04-01  Andrew Cagney  <cagney@redhat.com>
6483
6484         * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6485         CALL_DUMMY_LENGTH): Ditto.
6486         * gdbarch.c: Re-generate.
6487         * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6488         (CALL_DUMMY_LENGTH): Delete macro.
6489         * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6490         * arm-tdep.c (arm_gdbarch_init): Ditto.
6491         * avr-tdep.c (avr_gdbarch_init): Ditto.
6492         * cris-tdep.c (cris_gdbarch_init): Ditto.
6493         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6494         * frv-tdep.c (frv_gdbarch_init): Ditto.
6495         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6496         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6497         * i386-tdep.c (i386_gdbarch_init): Ditto.
6498         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6499         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6500         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6501         * mips-tdep.c (mips_gdbarch_init): Ditto.
6502         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6503         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6504         * s390-tdep.c (s390_gdbarch_init): Ditto.
6505         * sh-tdep.c (sh_gdbarch_init): Ditto.
6506         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6507         * v850-tdep.c (v850_gdbarch_init): Ditto.
6508         * vax-tdep.c (vax_gdbarch_init): Ditto.
6509         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6510
6511 2003-04-01  Corinna Vinschen  <vinschen@redhat.com>
6512
6513         * frame.c (get_prev_frame): Disable call to inside_entry_file().
6514
6515 2003-04-01  Andrew Cagney  <cagney@redhat.com>
6516
6517         * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6518         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6519         * gdbarch.h, gdbarch.c: Re-generate.
6520         * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6521         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6522         * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6523         * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6524         (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6525         * infcmd.c (run_stack_dummy): Simplify assuming
6526         CALL_DUMMY_BREAKPOINT_OFFSET_P.
6527         * infrun.c (handle_inferior_event): Ditto.
6528         * alpha-tdep.c (alpha_gdbarch_init): Do not set
6529         call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6530         * arm-tdep.c (arm_gdbarch_init): Ditto.
6531         * avr-tdep.c (avr_gdbarch_init): Ditto.
6532         * cris-tdep.c (cris_gdbarch_init): Ditto.
6533         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6534         * frv-tdep.c (frv_gdbarch_init): Ditto.
6535         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6536         * i386-tdep.c (i386_gdbarch_init): Ditto.
6537         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6538         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6539         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6540         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6541         * mips-tdep.c (mips_gdbarch_init): Ditto.
6542         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6543         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6544         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6545         * s390-tdep.c (s390_gdbarch_init): Ditto.
6546         * sh-tdep.c (sh_gdbarch_init): Ditto.
6547         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6548         * v850-tdep.c (v850_gdbarch_init): Ditto.
6549         * vax-tdep.c (vax_gdbarch_init): Ditto.
6550         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6551
6552 2003-04-01  Daniel Jacobowitz  <drow@mvista.com>
6553
6554         * symfile.c (symfile_relocate_debug_section): Update call to
6555         bfd_simple_get_relocated_section_contents.
6556
6557 2003-03-31  Andrew Cagney  <cagney@redhat.com>
6558
6559         * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6560         * gdbarch.h, gdbarch.c: Regenerate.
6561         * inferior.h (FIX_CALL_DUMMY): Delete macro.
6562         * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
6563         available.
6564         * frame.h (generic_fix_call_dummy): Delete declaration.
6565         * dummy-frame.h: Update comment.
6566         * dummy-frame.c (generic_fix_call_dummy): Delete function.
6567         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6568         fix_call_dummy.
6569         * sh-tdep.c (sh_gdbarch_init): Ditto.
6570         * s390-tdep.c (s390_gdbarch_init): Ditto.
6571         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6572         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6573         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6574         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6575         * i386-tdep.c (i386_gdbarch_init): Ditto.
6576         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6577         * frv-tdep.c (frv_gdbarch_init): Ditto.
6578         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6579         * cris-tdep.c (cris_gdbarch_init): Ditto.
6580         * avr-tdep.c (avr_gdbarch_init): Ditto.
6581         * arm-tdep.c (arm_gdbarch_init): Ditto.
6582
6583 2003-03-31  J. Brobecker  <brobecker@gnat.com>
6584
6585         * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
6586         (INIT_FRAME_AP): Likewise.
6587         (EXTRA_FRAME_INFO): Likewise.
6588
6589 2003-03-31  Andrew Cagney  <cagney@redhat.com>
6590
6591         * gdbarch.sh: Include "symfile.h".
6592         (CALL_DUMMY_ADDRESS): Default to entry_point_address.
6593         * gdbarch.h, gdbarch.c: Re-generate.
6594         * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
6595         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6596         call_dummy_address, the default is at entry_point_address.
6597         * v850-tdep.c (v850_gdbarch_init): Ditto.
6598         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6599         * sh-tdep.c (sh_gdbarch_init): Ditto.
6600         * s390-tdep.c (s390_gdbarch_init): Ditto.
6601         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6602         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6603         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6604         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6605         * i386-tdep.c (i386_gdbarch_init): Ditto.
6606         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6607         * frv-tdep.c (frv_gdbarch_init): Ditto.
6608         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6609         * cris-tdep.c (cris_gdbarch_init): Ditto.
6610         * arm-tdep.c (arm_gdbarch_init): Ditto.
6611
6612 2003-03-31  Andrew Cagney  <cagney@redhat.com>
6613
6614         * gdbarch.sh (CALL_DUMMY_P): Delete.
6615         * gdbarch.h, gdbarch.c: Re-generate.
6616         * inferior.h (CALL_DUMMY_P): Delete macro.
6617         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6618         * vax-tdep.c (vax_gdbarch_init): Update.
6619         * v850-tdep.c (v850_gdbarch_init): Update.
6620         * sparc-tdep.c (sparc_gdbarch_init): Update.
6621         * sh-tdep.c (sh_gdbarch_init): Update.
6622         * s390-tdep.c (s390_gdbarch_init): Update.
6623         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6624         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6625         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6626         * mips-tdep.c (mips_gdbarch_init): Update.
6627         * mcore-tdep.c (mcore_gdbarch_init): Update.
6628         * m68k-tdep.c (m68k_gdbarch_init): Update.
6629         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6630         * ia64-tdep.c (ia64_gdbarch_init): Update.
6631         * i386-tdep.c (i386_gdbarch_init): Update.
6632         * h8300-tdep.c (h8300_gdbarch_init): Update.
6633         * frv-tdep.c (frv_gdbarch_init): Update.
6634         * d10v-tdep.c (d10v_gdbarch_init): Update.
6635         * cris-tdep.c (cris_gdbarch_init): Update.
6636         * breakpoint.c (deprecated_frame_in_dummy): Update.
6637         * avr-tdep.c (avr_gdbarch_init): Update.
6638         * alpha-tdep.c (alpha_gdbarch_init): Update.
6639         * arm-tdep.c (arm_gdbarch_init): Update.
6640         * dummy-frame.c (dummy_frame_this_id): Update comments.
6641         * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
6642         * frame.c (legacy_get_prev_frame): Ditto.
6643         * valops.c (call_function_by_hand): Delete function.
6644         (hand_function_call): Rename to call_function_by_hand
6645
6646 2003-03-30  Andrew Cagney  <cagney@redhat.com>
6647
6648         2002-11-10 Klee Dienes <kdienes@apple.com>
6649         * value.h (struct value): Update comment.
6650
6651 2003-03-30  Andrew Cagney  <cagney@redhat.com>
6652
6653         * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
6654         D10V_FP_REGNUM.
6655         (d10v_gdbarch_init): Do not set fp_regnum.
6656
6657         * frame.c (get_frame_base): Force ID initialization.
6658         (get_prev_frame): Move computation of the frame ID from here ...
6659         (get_frame_id): ... to here.
6660         (legacy_get_prev_frame): Mark the frame ID as valid.
6661         * frame.h (struct frame_info): Add field "id_p".
6662
6663 2003-03-30  Mark Kettenis  <kettenis@gnu.org>
6664
6665         * i386-tdep.c (i386_store_struct_return): Removed.
6666         (i386_gdbarch_init): Don't set deprecated_store_struct_return.
6667
6668 2003-03-30  Andrew Cagney  <cagney@redhat.com>
6669
6670         * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
6671         * gdbarch.h, gdbarch.c: Regenerate.
6672         * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
6673         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6674         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6675         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6676         * i386-tdep.c (i386_gdbarch_init): Ditto.
6677         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6678         * cris-tdep.c (cris_gdbarch_init): Ditto.
6679         * vax-tdep.c (vax_gdbarch_init): Ditto.
6680         * s390-tdep.c (s390_gdbarch_init): Ditto.
6681         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6682         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6683         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6684         * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
6685         * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6686         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
6687         * sparc-tdep.c (sparc_gdbarch_init): Update.
6688         * sh-tdep.c (sh_gdbarch_init): Update.
6689         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6690         * mips-tdep.c (mips_gdbarch_init): Update.
6691         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6692         * ia64-tdep.c (ia64_gdbarch_init): Update.
6693         * frv-tdep.c (frv_gdbarch_init): Update.
6694         * avr-tdep.c (avr_gdbarch_init): Update.
6695         * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
6696         DEPRECATED_DUMMY_WRITE_SP.  Call when the method is available,
6697         instead of when push_dummy_call is not available.
6698
6699 2003-03-30  Andrew Cagney  <cagney@redhat.com>
6700
6701         * infttrace.c: Include "gdbthread.h".
6702         (parent_attach_all): Fix function signature.
6703         (call_ptrace): Update call.
6704         * Makefile.in (infttrace.o): Update dependencies.
6705
6706 2003-03-30  Andrew Cagney  <cagney@redhat.com>
6707
6708         * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
6709         PUSH_RETURN_ADDRESS.
6710         * gdbarch.h, gdbarch.c: Regenerate.
6711         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6712         * x86-64-tdep.c (x86_64_init_abi): Update.
6713         * v850-tdep.c (v850_gdbarch_init): Update.
6714         * sparc-tdep.c (sparc_gdbarch_init): Update.
6715         * sh-tdep.c (sh_gdbarch_init): Update.
6716         * s390-tdep.c (s390_gdbarch_init): Update.
6717         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6718         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6719         * mips-tdep.c (mips_gdbarch_init): Update.
6720         * mcore-tdep.c (mcore_gdbarch_init): Update.
6721         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6722         * ia64-tdep.c (ia64_gdbarch_init): Update.
6723         * i386-tdep.c (i386_gdbarch_init): Update.
6724         * h8300-tdep.c (h8300_gdbarch_init): Update.
6725         * frv-tdep.c (frv_gdbarch_init): Update.
6726         * cris-tdep.c (cris_gdbarch_init): Update.
6727         * avr-tdep.c (avr_gdbarch_init): Update.
6728         * arm-tdep.c (arm_gdbarch_init): Update.
6729         * valops.c (hand_function_call): Update.
6730
6731 2003-03-29  Andrew Cagney  <cagney@redhat.com>
6732
6733         * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
6734         sizeof_call_dummy_words.
6735         * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
6736         define.
6737         * gdbarch.h: Regenerate.
6738
6739 2003-03-29  Andrew Cagney  <cagney@redhat.com>
6740
6741         * infttrace.h: New file.
6742         * hpread.c: Include "gdb_assert.h" and "somsolib.h".
6743         (hpread_get_textlow): Detect an uninitialized dn_bufp.
6744         (hpread_read_doc_function_type): Detect an initialized type1.
6745         (hpread_quick_traverse): Initialize mod_name_string.
6746         * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
6747         (som_solib_get_solib_by_pc): Declare.
6748         (so_lib_thread_start_addr): Declare.
6749         (no_shared_libraries): Declare.
6750         * somread.c (init_import_symbols): Make static.  Add forward
6751         declaration.
6752         * config/pa/nm-hppah.h: Include "infttrace.h" for
6753         parent_attach_all.
6754         (hppa_insert_hw_watchpoint): Declare.
6755         (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
6756         * hppah-nat.c: Include "gdb_string.h".
6757         (parent_attach_all): Delete extern declaration, moved to
6758         "infttrace.h".
6759         (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
6760         int.
6761         (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
6762         * Makefile.in (infttrace_h): Define.
6763         (hpread.o): Update dependencies.
6764         (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
6765         * hppa-hpux-tdep.c: Include "gdb_string.h".
6766         * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
6767         * infrun.c (handle_inferior_event): Always initialize
6768         stepped_after_stopped_by_watchpoint.  Add default and remove
6769         fallthrough in switch statement.
6770         * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
6771         parameter to int.
6772         (hppa_remove_hw_watchpoint): Ditto.
6773
6774 2003-03-29  Andrew Cagney  <cagney@redhat.com>
6775
6776         * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
6777         offset.
6778
6779 2003-03-29  Richard Earnshaw  <rearnsha@arm.com>
6780
6781         * arm-tdep.c (arm_push_arguments): Delete.
6782         (struct stack_item): New type.
6783         (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
6784         (arm_store_struct_return): Delte.
6785         (arm_gdbarch_init): Register arm_push_dummy_call.  Don't register
6786         arm_push_arguments or arm_store_struct_return.
6787
6788 2003-03-28  Andrew Cagney  <cagney@redhat.com>
6789
6790         * Makefile.in (d10v-tdep.o): Update dependencies.
6791         * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
6792         * d10v-tdep.c: Include "remote.h".
6793         (target_resume_hook): Delete extern declaration.
6794         (target_wait_loop_hook): Ditto.
6795         (tdisassemble_command): Eliminate assignment in "if" conditional.
6796         (d10v_ts2_register_sim_regno): Eliminate call to
6797         legacy_register_sim_regno.
6798         (d10v_ts3_register_sim_regno): Ditto.
6799
6800 2003-03-28  Jeff Johnston  <jjohnstn@redhat.com>
6801
6802         * thread.c: Reindented.
6803         * lin-lwp.c: Ditto.
6804         * linux-proc.c: Ditto.
6805
6806 2003-03-28  Bob Rossi  <bob_rossi@cox.net>
6807
6808         * MAINTAINERS (write after approval): Add myself.
6809
6810 2003-03-27  Theodore A. Roth  <troth@openavr.org>
6811
6812         * objc-exp.y: Add missing semi-colons.
6813
6814 2003-03-27  Andrew Cagney  <cagney@redhat.com>
6815
6816         * regcache.c (write_sp): Delete function and references.
6817         * inferior.h (write_sp): Delete declaration.
6818         * valops.c (hand_function_call): Replace write_sp with
6819         TARGET_WRITE_SP.
6820         * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
6821         (sparc_pop_frame): Ditto.
6822
6823 2003-03-27  Andrew Cagney  <cagney@redhat.com>
6824
6825         * NEWS: Mention removal of support for hppa*-*-bsd* and
6826         hppa*-*-osf* natives, and hppa*-*-pro* target.
6827         * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
6828         * config/pa/xm-pa.h: Obsolete file.
6829         * config/pa/xm-hppab.h: Obsolete file.
6830         * config/pa/nm-hppab.h: Obsolete file.
6831         * config/pa/tm-hppab.h: Obsolete file.
6832         * config/pa/tm-hppao.h: Obsolete file.
6833         * config/pa/nm-hppao.h: Obsolete file.
6834         * config/pa/tm-pro.h: Obsolete file.
6835         * config/pa/hppaosf.mt: Obsolete file.
6836         * config/pa/hppaosf.mh: Obsolete file.
6837         * config/pa/hppapro.mt: Obsolete file.
6838         * config/pa/hppabsd.mt: Obsolete file.
6839         * config/pa/hppabsd.mh: Obsolete file.
6840         * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
6841         * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
6842         hppa*-*-osf*.
6843
6844 2003-03-27  Andrew Cagney  <cagney@redhat.com>
6845
6846         * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
6847         push_arguments.  Don't set push_return_address or write_sp.
6848         (d10v_push_dummy_call): Replace d10v_push_arguments.
6849         (d10v_push_return_address, d10v_write_sp): Delete function,
6850         handled by push_dummy_call.
6851
6852 2003-03-26  Andrew Cagney  <cagney@redhat.com>
6853
6854         * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
6855         (push_dummy_call): New pure multi-arch replacement with gdbarch,
6856         regcache and dummy_addr parameters.
6857         * gdbarch.h, gdbarch.c: Re-generate.
6858         * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
6859         available; assume it will handle stack alignment and return
6860         address issues.  Fall back to DEPRECATED_PUSH_ARGUMENTS and
6861         legacy_push_arguments.
6862         (legacy_push_arguments): Rename default_push_arguments.
6863         * value.h (legacy_push_arguments): Rename default_push_arguments.
6864         * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
6865         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6866         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6867         * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6868         * config/i386/tm-symmetry.h: Update.
6869         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6870         * x86-64-tdep.c (x86_64_init_abi): Update.
6871         * v850-tdep.c (v850_gdbarch_init): Update.
6872         * sparc-tdep.c (sparc_gdbarch_init): Update.
6873         * sh-tdep.c (sh_gdbarch_init): Update.
6874         * s390-tdep.c (s390_gdbarch_init): Update.
6875         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6876         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6877         * mips-tdep.c (mips_gdbarch_init): Update.
6878         * mcore-tdep.c (mcore_gdbarch_init): Update.
6879         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6880         * ia64-tdep.c (ia64_gdbarch_init): Update.
6881         * i386-tdep.c (i386_gdbarch_init): Update.
6882         * hppa-tdep.c (hppa_gdbarch_init): Update.
6883         * h8300-tdep.c (h8300_gdbarch_init): Update.
6884         * frv-tdep.c (frv_gdbarch_init): Update.
6885         * d10v-tdep.c (d10v_gdbarch_init): Update.
6886         * cris-tdep.c (cris_gdbarch_init): Update.
6887         * avr-tdep.c (avr_gdbarch_init): Update.
6888         * arm-tdep.c (arm_gdbarch_init): Update.
6889         * arm-linux-tdep.c (arm_linux_init_abi): Update.
6890         * alpha-tdep.c (alpha_gdbarch_init): Update.
6891
6892 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
6893
6894         * signals/signals.c (do_target_signal_to_host): Correct realtime
6895         signal range test.
6896
6897 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
6898
6899         * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
6900         (struct sal_chain, map_catch_names): Remove.
6901         (catch_exception_command_1): Don't call
6902         handle_gnu_4_16_catch_command.
6903
6904 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
6905
6906         From Mark Dettinger <dettinge@de.ibm.com>:
6907         * dwarf2cfi.c (read_2u): Increment pointer by two.
6908
6909 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
6910
6911         * signals/signals.c: Fix typos in last change.
6912
6913 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
6914
6915         * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
6916         not already defined.  Use __SIGRTMIN if available.
6917         (target_signal_from_host): Remove SIGRTMIN block.
6918         (do_target_signal_to_host): Remove SIGRTMIN block; check that
6919         the signal is within the realtime range.
6920
6921 2003-03-25  Adam Fedor  <fedor@gnu.org>
6922
6923         * Makefile.in (infrun.o): Add $(language_h)
6924         * infrun.c (handle_inferior_event): Use skip_language_trampoline
6925         for language specific trampolines.
6926         * language.h (struct language_defn): Add skip_trampoline.
6927         (skip_language_trampoline): Declare.
6928         * language.c (unk_lang_trampoline, skip_language_trampoline):
6929         New functions.
6930         (unknown_language_defn, auto_language_defn, local_language_defn):
6931         Add ukn_lang_trampoline.
6932         * ada-lang.c (ada_language_defn): Add NULL for language
6933         specific skip_trampoline.
6934         * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
6935         scm-lang.c: Likewise.
6936         * objc-lang.c (objc_skip_trampoline): New function.
6937         (objc_language_defn): Add objc_skip_trampoline.
6938
6939 2003-03-25  Andrew Cagney  <cagney@redhat.com>
6940
6941         * frame.c (get_prev_frame): Delay validating a frame's ID -
6942         non-NULL, didn't go backwards - until an attempt to unwind it to
6943         the previous frame.
6944
6945 2003-03-25  Andrew Cagney  <cagney@redhat.com>
6946
6947         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
6948         EXTRA_STACK_ALIGNMENT_NEEDED.  Default to 0 not 1.
6949         * gdbarch.h, gdbarch.c: Re-generate.
6950         * config/sparc/tm-sparc.h
6951         (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
6952         * sparc-tdep.c (sparc_gdbarch_init): Set
6953         deprecated_extra_stack_alignment_needed.
6954         * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
6955         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
6956         extra_stack_alignment_needed.
6957         * v850-tdep.c (v850_gdbarch_init): Ditto.
6958         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6959         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6960         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6961         * cris-tdep.c (cris_gdbarch_init): Ditto.
6962         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6963         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6964
6965 2003-03-25  Andrew Cagney  <cagney@redhat.com>
6966
6967         * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
6968         STORE_STRUCT_RETURN.
6969         * gdbarch.h, gdbarch.c: Regenerate.
6970         * d10v-tdep.c (d10v_store_struct_return): Delete function.
6971         (d10v_push_arguments): Set the struct return register.
6972         (d10v_gdbarch_init): Update.
6973         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6974         * x86-64-tdep.c (x86_64_init_abi): Update.
6975         * vax-tdep.c (vax_gdbarch_init): Update.
6976         * v850-tdep.c (v850_gdbarch_init): Update.
6977         * sparc-tdep.c (sparc_gdbarch_init): Update.
6978         * sh-tdep.c (sh_gdbarch_init): Update.
6979         * s390-tdep.c (s390_gdbarch_init): Update.
6980         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6981         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6982         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6983         * mips-tdep.c (mips_gdbarch_init): Update.
6984         * mcore-tdep.c (mcore_gdbarch_init): Update.
6985         * m68k-tdep.c (m68k_gdbarch_init): Update.
6986         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6987         * ia64-tdep.c (ia64_gdbarch_init): Update.
6988         * i386-tdep.c (i386_gdbarch_init): Update.
6989         * hppa-tdep.c (hppa_gdbarch_init): Update.
6990         * h8300-tdep.c (h8300_gdbarch_init): Update.
6991         * frv-tdep.c (frv_gdbarch_init): Update.
6992         * cris-tdep.c (cris_gdbarch_init): Update.
6993         * avr-tdep.c (avr_gdbarch_init): Update.
6994         * arm-tdep.c (arm_gdbarch_init): Update.
6995         * alpha-tdep.c (alpha_gdbarch_init): Update.
6996
6997 2003-03-25  Andrew Cagney  <cagney@redhat.com>
6998
6999         * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7000         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7001         CALL_DUMMY_STACK_ADJUST with a predicate variable.
7002         * gdbarch.h, gdbarch.c: Regenerate.
7003         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7004         call_dummy_stack_adjust_p.
7005         * vax-tdep.c (vax_gdbarch_init): Ditto.
7006         * v850-tdep.c (v850_gdbarch_init): Ditto.
7007         * sh-tdep.c (sh_gdbarch_init): Ditto.
7008         * s390-tdep.c (s390_gdbarch_init): Ditto.
7009         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7010         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7011         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7012         * mips-tdep.c (mips_gdbarch_init): Ditto.
7013         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7014         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7015         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7016         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7017         * i386-tdep.c (i386_gdbarch_init): Ditto.
7018         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7019         * frv-tdep.c (frv_gdbarch_init): Ditto.
7020         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7021         * cris-tdep.c (cris_gdbarch_init): Ditto.
7022         * avr-tdep.c (avr_gdbarch_init): Ditto.
7023         * arm-tdep.c (arm_gdbarch_init): Ditto.
7024         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7025         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7026         * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7027         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7028         * sparc-tdep.c (sparc_gdbarch_init): Update.  Do not set
7029         call_dummy_stack_adjust_p.
7030         * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7031         (CALL_DUMMY_STACK_ADJUST): Delete macro.
7032         * sparc-tdep.c (sparc32_push_arguments): Update.
7033         * valops.c (hand_function_call): Update.
7034
7035 2003-03-25  Corinna Vinschen  <vinschen@redhat.com>
7036
7037         * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7038         set_gdbarch_char_signed.
7039
7040 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
7041
7042         PR cli/548
7043         * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7044
7045 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
7046
7047         * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7048         (_initialize_arm_tdep): Don't set tm_print_insn.
7049
7050 2003-03-24  Adam Fedor  <fedor@gnu.org>
7051
7052         * Makefile.in (YYOBJ): Add objc-exp.tab.o
7053         * objc-lang.h: Add multiple inclusion protection.
7054         (start_msglist, add_msglist, end_msglist): Additional declarations.
7055
7056 2003-03-24  Richard Earnshaw  <rearnsha@arm.com>
7057
7058         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7059         value was renamed to ARM_FLOAT_SOFT_FPA.
7060
7061 2003-03-23  Andrew Cagney  <cagney@redhat.com>
7062
7063         * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7064         (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7065         * gdbarch.h, gdbarch.c: Regenerate.
7066         * valops.c (hand_function_call): Update.
7067         * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7068         * frame.c (legacy_saved_regs_this_id): Update.
7069         (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7070         * dummy-frame.h: Update.
7071         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7072         * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7073         * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7074         * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7075         * config/m68k/tm-sun3.h: Update.
7076         * blockframe.c (inside_main_func, frame_chain_valid): Update.
7077         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7078         * x86-64-tdep.c (x86_64_init_abi): Update.
7079         * vax-tdep.c (vax_gdbarch_init): Update.
7080         * v850-tdep.c (v850_gdbarch_init): Update.
7081         * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7082         * sh-tdep.c (sh_gdbarch_init): Update.
7083         * s390-tdep.c (s390_gdbarch_init): Update.
7084         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7085         (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7086         (frame_get_saved_regs): Update.
7087         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7088         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7089         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7090         * mips-tdep.c (mips_gdbarch_init): Update.
7091         * mcore-tdep.c (mcore_gdbarch_init): Update.
7092         * m68k-tdep.c (m68k_gdbarch_init): Update.
7093         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7094         * ia64-tdep.c (ia64_gdbarch_init): Update.
7095         * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7096         * i386-interix-tdep.c (i386_interix_init_abi): Update.
7097         (i386_interix_back_one_frame): Update.
7098         * hppa-tdep.c (hppa_gdbarch_init): Update.
7099         (hppa_init_extra_frame_info): Update.
7100         * h8300-tdep.c (h8300_gdbarch_init): Update.
7101         * frv-tdep.c (frv_gdbarch_init): Update.
7102         * cris-tdep.c (cris_gdbarch_init): Update.
7103         * avr-tdep.c (avr_gdbarch_init): Update.
7104         * arm-tdep.c (arm_gdbarch_init): Update.
7105         * alpha-tdep.c (alpha_gdbarch_init): Update.
7106
7107 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
7108
7109         * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7110         (arm_get_fp_model): Declare.
7111         * arm-tdep.c (fp_model_strings): New string array.
7112         (arm_fp_model, current_fp_model): New variables.
7113         (arm_get_fp_model): New function.
7114         (arm_set_fp): New function.
7115         (set_fp_model_sfunc): New function.
7116         (show_fp_model): New function.
7117         (_initialize_arm_tdep): Add new command to set/show the FPU.
7118         (arm_extract_return_value): Use arm_get_fp_model.
7119         (arm_store_return_value): Likewise.
7120         (arm_gdbarch_init): Default fpa model is softfpa.  Call arm_set_fp
7121         to initialize the floating-point data types.
7122         * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7123         model is FPA.
7124
7125 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
7126
7127         * arm-tdep.c (show_arm_command): Don't print out help.  Instead, show
7128         the current setting of each value.
7129         (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7130         new_set and new_show.  Use add_setshow_cmd_full and
7131         add_setshow_boolean_cmd as appropriate.  Deprecate "set/show apcs32"
7132         commands and add new version as subcommands of "set/show arm".
7133
7134 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
7135
7136         * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7137         (set_arm_command, show_arm_command): New functions.
7138         (_initialize_arm_tdep): Add them.
7139         (num_disassembly_options): Renamed from num_flavor_options.
7140         (valid_disassembly_styles): Renamed from valid_flavors.
7141         (disassembly_style): Renamed from disassembly_flavor.
7142         (set_disassembly_style_sfunc): Renamed from
7143         set_disassembly_flavor_sfunc.
7144         (set_disassembly_style): Renamed from set_disassembly_flavor.
7145         (arm_othernames): Updated.
7146         (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7147         command.  Add "set/show arm disassembly" commands.  Deprecate
7148         "othernames" command.
7149
7150 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
7151
7152         * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7153         (arm-tdep.o): Depend on elf_arm_h.
7154
7155 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
7156
7157         * Makefile.in (coff_internal_h): Define.
7158         (arm-tdep.o): Update dependencies.
7159
7160 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
7161
7162         * arm-tdep.c (prologue_cache): Delete.
7163         (check_prologue_cache, save_prologue_cache): Delete.
7164         (arm_scan_prologue): Don't check or update the prologue_cache.
7165         (arm_gdb_arch_init): Don't initialize it.
7166         (_initialize_arm_tdep): Likewise.
7167
7168 2003-03-21  Stephane Carrez  <stcarrez@nerim.fr>
7169
7170         * MAINTAINERS (tui): Maintainer of tui code.
7171
7172 2003-03-21  Corinna Vinschen  <vinschen@redhat.com>
7173
7174         * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7175         (i386-cygwin-tdep.o): Add dependencies.
7176         * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7177         * i386-cygwin-tdep.c: New file.
7178         * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7179         * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7180
7181 2003-03-20  Andrew Cagney  <cagney@redhat.com>
7182
7183         * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7184         (handle_inferior_event): Remove code calling
7185         DYNAMIC_TRAMPOLINE_NEXTPC.
7186
7187         * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7188         already has a full path.
7189
7190         * main.c (gdb_main): Return 1.
7191         (captured_main): Call error to report an invalid interpreter.
7192
7193         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7194         * alpha-osf1-tdep.c: Include "gdb_string.h".
7195
7196 2003-03-19  J. Brobecker  <brobecker@gnat.com>
7197
7198         Continuing work to convert the hppa targets to multiarch partial.
7199
7200         * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7201         method, now that hppa_push_dummy_frame has a conformant prototype.
7202         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7203         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7204         for the switch to multiarch partial.
7205
7206 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
7207
7208         * mdebugread.c (parse_symbol): For stEnd, we're done counting
7209         when iss is issNull.
7210
7211 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
7212
7213         * mips-tdep.c (mips_register_name): Fix fencepost error involving
7214         NUM_REGS bounds check.
7215
7216 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
7217
7218         * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7219         * mips-tdep.c (gdb_assert.h): Include.
7220         (mips_generic_reg_names, mips_processor_reg_names): Make static.
7221         (mips_register_name): Handle integer registers explicitly.  Add
7222         bounds checking.
7223         (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7224         (mips_lsi33k_reg_names): Don't list integer registers; they're
7225         handled by mips_register_name() now.
7226         * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7227         * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7228         * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7229         * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7230         * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7231
7232 2003-03-18  Andrew Cagney  <cagney@redhat.com>
7233
7234         * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7235         a void pointer.
7236         * gdbtypes.h (print_scalar_formatted): Update declaration.
7237         * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7238
7239 2003-03-18  J. Brobecker  <brobecker@gnat.com>
7240
7241         * infrun.c (observer.h): Add #include.
7242         (normal_stop): Add call to observer_notify_normal_stop.
7243         * Makefile.in (infrun.o): Add dependency on observer.h.
7244
7245 2003-03-18  J. Brobecker  <brobecker@gnat.com>
7246
7247         Continuing work to convert the hppa targets to multiarch partial.
7248         * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7249         parameter. Reformat comment.
7250         * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7251         (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7252         to match new profile.
7253
7254 2003-03-18  J. Brobecker  <brobecker@gnat.com>
7255
7256         * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7257         appear to be working in any case.
7258
7259 2003-03-18  J. Brobecker  <brobecker@gnat.com>
7260
7261         * observer.c (observer_test_first_observer): New static variable.
7262         (observer_test_second_observer): Likewise.
7263         (observer_test_third_observer): Likewise.
7264         (observer_test_first_notification_function): New static function.
7265         (observer_test_second_notification_function): Likewise.
7266         (observer_test_third_notification_function): Likewise.
7267
7268 2003-03-17  J. Brobecker  <brobecker@gnat.com>
7269
7270         * hppa-tdep.c (gdb_assert.h): Add missing #include.
7271         * somsolib.c (gdb_assert.h): Likewise.
7272         * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7273         (somsolib.o): Likewise.
7274
7275 2003-03-17  Andrew Cagney  <cagney@redhat.com>
7276
7277         * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7278         BFD.  Simplify setting of di.endian.
7279
7280 2003-03-17  Andrew Cagney  <cagney@redhat.com>
7281
7282         * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7283         * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7284
7285         From Elena Zannoni  <ezannoni@redhat.com>
7286         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7287         vector and floating-point parameters.
7288         (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7289         convention.
7290         (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7291
7292 2003-03-17  Fernando Nasser  <fnasser@redhat.com>
7293
7294         * MAINTAINERS: Remove my name from several maintainership roles.
7295
7296 2003-03-17  Andrew Cagney  <cagney@redhat.com>
7297
7298         Fix frame off-by-one bug.
7299         * frame-unwind.h (frame_this_id_ftype): Replace
7300         frame_unwind_id_ftype.
7301         (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7302         (struct frame_unwind): Replace "id" with "this_id".  Replace "reg"
7303         with "prev_register".
7304         * frame-unwind.c (frame_unwind_find_by_pc): Return
7305         legacy_saved_regs_unwind instead of trad_frame_unwind.  Update
7306         comment.
7307         * dummy-frame.c (cached_find_dummy_frame): Delete function.
7308         (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7309         (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7310         (dummy_frame_unwind): Update.
7311         * sentinel-frame.c (sentinel_frame_prev_register): Replace
7312         sentinel_frame_register_unwind.
7313         (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7314         (sentinel_frame_unwinder): Update.
7315         * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7316         (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7317         * frame.c (create_sentinel_frame): Update. Initialize
7318         "prologue_cache" instead of "unwind_cache".
7319         (frame_register_unwind): Call this frame's prev_register with the
7320         next frame and this frame's prologue cache.
7321         (get_prev_frame): Simplify.  Always call prev frame's this_id with
7322         this frame and prev frame's prologue cache.  Document that this
7323         call is shifted one to the left when compared to the
7324         frame_register_unwind call.
7325         (legacy_saved_regs_prev_register): Replace
7326         frame_saved_regs_register_unwind.
7327         (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7328         (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7329         (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7330         * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7331         (d10v_frame_unwind): Update.
7332         (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7333         (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7334         (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7335         "saved_regs" with "this_saved_regs".
7336
7337 2003-03-16  Andrew Cagney  <cagney@redhat.com>
7338
7339         * frame.c (frame_pop): Don't call target_store_registers.  Fix
7340         problem reported by Mark Kettenis.
7341
7342 2003-03-16  Mark Kettenis  <kettenis@gnu.org>
7343
7344         * i386-tdep.c (i386_register_type): Renamed from
7345         i386_register_virtual_type.  Adjust function signature.
7346         (i386_gdbarch_init): Set register_type instead of
7347         deprecated_max_register_raw_size,
7348         deprecated_max_register_virtual_size and register_virtual_type.
7349
7350 2003-03-14  Andrew Cagney  <cagney@redhat.com>
7351
7352         * frame.c (get_prev_frame): When a legacy frame, always call
7353         legacy_get_prev_frame.  Simplify unwind code using assumption that
7354         the unwinder is new.
7355         (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7356         (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7357         SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7358
7359 2003-03-14  Andrew Cagney  <cagney@redhat.com>
7360
7361         * frame.c (get_saved_register): Delete function.
7362         * frame.h (get_saved_register): Delete declaration.
7363         * xstormy16-tdep.c: Update comment.
7364         * regcache.h: Update comments.
7365         * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7366         get_saved_register and extract_address, use
7367         frame_read_unsigned_register.
7368         (sparc_frame_saved_pc): Ditto.
7369         (sparc_get_saved_register): Instead of get_saved_register, use
7370         frame_register.
7371         (sparc_pop_frame): Ditto.
7372         * findvar.c: Update comments.
7373         (value_of_register): Call frame_register instead of
7374         get_saved_register.
7375         (value_from_register): Ditto.
7376         * config/sparc/tm-sparc.h: Update comment.
7377         * breakpoint.c: Update comment.
7378
7379 2003-03-14  Andrew Cagney  <cagney@redhat.com>
7380
7381         * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7382         GET_SAVED_REGISTER.
7383         * gdbarch.h, gdbarch.c: Re-generate.
7384         * frame.h: Update comments.
7385         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7386         * x86-64-tdep.c (x86_64_init_abi): Update.
7387         * sparc-tdep.c (sparc_gdbarch_init): Update.
7388         * sh-tdep.c (sh_gdbarch_init): Update.
7389         * mips-tdep.c (mips_gdbarch_init): Update.
7390         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7391         * cris-tdep.c (cris_gdbarch_init): Update.
7392         * ia64-tdep.c (ia64_gdbarch_init): Update.
7393         * frame.c (frame_register): Update.
7394         (get_saved_register): Update.
7395         * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7396
7397 2003-03-13  Andrew Cagney  <cagney@redhat.com>
7398
7399         * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7400         * gdbarch.h, gdbarch.c: Regenerate.
7401         * valops.c (hand_function_call): Update comment.
7402         * stack.c (return_command): Update comment.
7403         * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7404         * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7405         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7406         * x86-64-tdep.c (x86_64_init_abi): Update.
7407         * vax-tdep.c (vax_gdbarch_init): Update.
7408         * v850-tdep.c (v850_gdbarch_init): Update.
7409         * sparc-tdep.c (sparc_gdbarch_init): Update.
7410         * sh-tdep.c (sh_gdbarch_init): Update.
7411         * s390-tdep.c (s390_gdbarch_init): Update.
7412         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7413         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7414         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7415         * mips-tdep.c (mips_gdbarch_init): Update.
7416         * mcore-tdep.c (mcore_gdbarch_init): Update.
7417         * m68k-tdep.c (m68k_gdbarch_init): Update.
7418         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7419         * ia64-tdep.c (ia64_gdbarch_init): Update.
7420         * i386-tdep.c (i386_gdbarch_init): Update.
7421         * hppa-tdep.c (hppa_gdbarch_init): Update.
7422         * h8300-tdep.c (h8300_gdbarch_init): Update.
7423         * frv-tdep.c (frv_gdbarch_init): Update.
7424         * cris-tdep.c (cris_gdbarch_init): Update.
7425         * avr-tdep.c (avr_gdbarch_init): Update.
7426         * arm-tdep.c (arm_gdbarch_init): Update.
7427         * alpha-tdep.c (alpha_gdbarch_init): Update.
7428
7429 2003-03-13  Andrew Cagney  <cagney@redhat.com>
7430
7431         * frame.c (legacy_frame_p): New function.
7432         (get_prev_frame): Use legacy_frame_p.
7433         * frame.h (legacy_frame_p): Declare.
7434
7435 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7436
7437         * MAINTAINERS (write after approval): Alphabetically
7438         listing corrected.
7439
7440 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7441
7442         * MAINTAINERS (write after approval): Add myself.
7443
7444 2003-03-12  Andrew Cagney  <cagney@redhat.com>
7445
7446         * frame.c (get_prev_frame): Rename the frame parameter to
7447         "this_frame".
7448         (get_next_frame, legacy_get_prev_frame): Ditto.
7449
7450 2003-03-12  Andrew Cagney  <cagney@redhat.com>
7451
7452         * frame.c (get_current_frame): Check target_has_registers before
7453         checking target_has_stack.
7454         * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7455         instead of deprecated_selected_frame.
7456         * findvar.c (value_of_register): Pass "frame", not
7457         deprecated_selected_frame, to value_of_builtin_reg.
7458
7459 2003-03-12  Andrew Cagney  <cagney@redhat.com>
7460
7461         * regcache.c (regcache_cooked_write_signed): New function.
7462         (regcache_cooked_write_unsigned): New function.
7463         (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7464         (regcache_cooked_read_signed): Fix regnum in range assertion.
7465         * regcache.h (regcache_cooked_write_signed): Declare.
7466         (regcache_cooked_write_unsigned): Declare.
7467
7468 2003-03-12  Andrew Cagney  <cagney@redhat.com>
7469
7470         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7471         * gdbarch.h, gdbarch.c: Re-generate.
7472         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7473         * x86-64-tdep.h: Update.
7474         * x86-64-tdep.c (x86_64_init_abi): Update.
7475         * v850-tdep.c (v850_gdbarch_init): Update.
7476         * sparc-tdep.c (sparc_gdbarch_init): Update.
7477         * sh-tdep.c (sh_gdbarch_init): Update.
7478         * s390-tdep.c (s390_gdbarch_init): Update.
7479         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7480         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7481         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7482         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7483         * mips-tdep.c (mips_gdbarch_init): Update.
7484         * mcore-tdep.c (mcore_gdbarch_init): Update.
7485         * m68k-tdep.c (m68k_gdbarch_init): Update.
7486         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7487         * ia64-tdep.c (ia64_gdbarch_init): Update.
7488         * i386-tdep.c (i386_gdbarch_init): Update.
7489         * i386-interix-tdep.c (i386_interix_init_abi): Update.
7490         * hppa-tdep.c (hppa_gdbarch_init): Update.
7491         * h8300-tdep.c (h8300_gdbarch_init): Update.
7492         * frv-tdep.c (frv_gdbarch_init): Update.
7493         * cris-tdep.c (cris_gdbarch_init): Update.
7494         * avr-tdep.c (avr_gdbarch_init): Update.
7495         * arm-tdep.c (arm_gdbarch_init): Update.
7496         * alpha-tdep.c (alpha_gdbarch_init): Update.
7497         * sh-tdep.c (sh_init_extra_frame_info): Update.
7498         (sh64_init_extra_frame_info): Update.
7499         * ns32knbsd-nat.c (frame_num_args): Update.
7500         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7501         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7502         (xstormy16_frame_chain_valid): Update.
7503         * vax-tdep.c (vax_saved_pc_after_call): Update.
7504         * v850-tdep.c (v850_frame_chain): Update.
7505         (v850_pop_frame): Update.
7506         (v850_init_extra_frame_info): Update.
7507         * sparc-tdep.c (setup_arbitrary_frame): Update.
7508         * ns32k-tdep.c (umax_frame_num_args): Update.
7509         * s390-tdep.c (s390_pop_frame_regular): Update.
7510         * mn10300-tdep.c (mn10300_frame_chain): Update.
7511         (mn10300_pop_frame_regular): Update.
7512         (mn10300_init_extra_frame_info): Update.
7513         * mips-tdep.c (mips_init_frame_pc_first): Update.
7514         (mips_frame_chain): Update.
7515         (mips_pop_frame): Update.
7516         * mcore-tdep.c (mcore_frame_chain): Update.
7517         (mcore_pop_frame): Update.
7518         (mcore_init_extra_frame_info): Update.
7519         * arch-utils.c (init_frame_pc_default): Update.
7520         * m68k-tdep.c (isi_frame_num_args): Update.
7521         (delta68_frame_num_args): Update.
7522         (news_frame_num_args): Update.
7523         * ia64-tdep.c (ia64_pop_frame_regular): Update.
7524         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7525         (alpha_frame_chain): Update.
7526         (alpha_pop_frame): Update.
7527         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7528         (hppa_init_extra_frame_info): Update.
7529         (hppa_frame_chain): Update.
7530         (hppa_frame_chain_valid): Update.
7531         * cris-tdep.c (cris_init_extra_frame_info): Update.
7532         * avr-tdep.c (avr_init_extra_frame_info): Update.
7533         * arm-tdep.c (arm_frame_chain_valid): Update.
7534         (arm_init_extra_frame_info): Update.
7535         (arm_pop_frame): Update.
7536         * frame.c (frame_pc_unwind): Update.
7537         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7538         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7539         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7540         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7541         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7542         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7543
7544 2003-03-12  Andrew Cagney  <cagney@redhat.com>
7545
7546         Eliminate the need for POP_FRAME.
7547         * frame.c (do_frame_unwind_register): New function.
7548         (frame_pop): When no POP_FRAME, pop the frame using register
7549         unwind and a scratch regcache.
7550         (frame_saved_regs_pop): Delete function.
7551         (trad_frame_unwinder): Update.
7552         * d10v-tdep.c (d10v_frame_pop): Delete function.
7553         (d10v_frame_unwind): Update.
7554         * sentinel-frame.c (sentinel_frame_pop): Delete function.
7555         (sentinel_frame_unwinder): Update.
7556         * dummy-frame.c (dummy_frame_pop): Delete function.
7557         (dummy_frame_unwind): Update.
7558         * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7559         (struct frame_unwind): Update.
7560
7561 2003-03-11  Kevin Buettner  <kevinb@redhat.com>
7562
7563         * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
7564         mips_dwarf_dwarf2_ecoff_reg_to_regnum().
7565         (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
7566         Do range checks on register number obtained from debugging info.
7567         (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
7568         set_gdbarch_dwarf2_reg_to_regnum().  Adjust call of
7569         set_gdbarch_ecoff_reg_to_regnum() to account for new name of
7570         mapping function.
7571         (do_fp_register_row): Fix typo which caused double type to be
7572         used when attempting to unpack a float.
7573
7574 2003-03-11  J. Brobecker  <brobecker@gnat.com>
7575
7576         * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
7577
7578 2003-03-11  Andrew Cagney  <cagney@redhat.com>
7579
7580         * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
7581         frame.  Problem found by Corinna Vinschen.
7582
7583 2003-03-11  Pierre Muller  <muller@ics.u-strasbg.fr>
7584
7585         * doublest.c (floatformat_from_length): Accept also
7586         the real size of 'long double' type.
7587
7588 2003-03-10  Daniel Jacobowitz  <drow@mvista.com>
7589
7590         From Klee Dienes <kdienes@apple.com>:
7591         * breakpoint.c (bpstat_copy): Copy the command lines as well
7592         as the old value, to match what is freed in bpstat_clear.
7593
7594 2003-03-10  David Carlton  <carlton@math.stanford.edu>
7595
7596         * minsyms.c (add_minsym_to_hash_table): Replace
7597         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7598         (compare_minimal_symbols, compact_minimal_symbols)
7599         (install_minimal_symbols, find_solib_trampoline_target): Ditto.
7600         (lookup_minimal_symbol_text): Use strcmp on linkage names instead
7601         of DEPRECATED_SYMBOL_MATCHES_NAME.
7602         (lookup_minimal_symbol_solib_trampoline): Ditto.
7603
7604 2003-03-10  Andrew Cagney  <cagney@redhat.com>
7605
7606         * regcache.h (regcache_cooked_read_ftype): Define.
7607         (regcache_save, regcache_restore): Add a cooked_read parameter.
7608         * regcache.c (regcache_save, regcache_restore): Update.
7609         (do_cooked_read): New function.
7610         (regcache_cpy): Pass do_cooked_read to regcache_save and
7611         regcache_restore.
7612
7613 2003-03-10  Andrew Cagney  <cagney@redhat.com>
7614
7615         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7616         * gdbarch.h, gdbarch.c: Re-generate.
7617         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7618         * x86-64-tdep.h: Update.
7619         * x86-64-tdep.c (x86_64_init_abi): Update.
7620         * v850-tdep.c (v850_gdbarch_init): Update.
7621         * sparc-tdep.c (sparc_gdbarch_init): Update.
7622         * sh-tdep.c (sh_gdbarch_init): Update.
7623         * s390-tdep.c (s390_gdbarch_init): Update.
7624         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7625         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7626         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7627         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7628         * mips-tdep.c (mips_gdbarch_init): Update.
7629         * mcore-tdep.c (mcore_gdbarch_init): Update.
7630         * m68k-tdep.c (m68k_gdbarch_init): Update.
7631         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7632         * ia64-tdep.c (ia64_gdbarch_init): Update.
7633         * i386-tdep.c (i386_gdbarch_init): Update.
7634         * i386-interix-tdep.c (i386_interix_init_abi): Update.
7635         * hppa-tdep.c (hppa_gdbarch_init): Update.
7636         * h8300-tdep.c (h8300_gdbarch_init): Update.
7637         * frv-tdep.c (frv_gdbarch_init): Update.
7638         * cris-tdep.c (cris_gdbarch_init): Update.
7639         * avr-tdep.c (avr_gdbarch_init): Update.
7640         * arm-tdep.c (arm_gdbarch_init): Update.
7641         * alpha-tdep.c (alpha_gdbarch_init): Update.
7642         * sh-tdep.c (sh_init_extra_frame_info): Update.
7643         (sh64_init_extra_frame_info): Update.
7644         * ns32knbsd-nat.c (frame_num_args): Update.
7645         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7646         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7647         (xstormy16_frame_chain_valid): Update.
7648         * vax-tdep.c (vax_saved_pc_after_call): Update.
7649         * v850-tdep.c (v850_frame_chain): Update.
7650         (v850_pop_frame): Update.
7651         (v850_init_extra_frame_info): Update.
7652         * sparc-tdep.c (setup_arbitrary_frame): Update.
7653         * ns32k-tdep.c (umax_frame_num_args): Update.
7654         * s390-tdep.c (s390_pop_frame_regular): Update.
7655         * mn10300-tdep.c (mn10300_frame_chain): Update.
7656         (mn10300_pop_frame_regular): Update.
7657         (mn10300_init_extra_frame_info): Update.
7658         * mips-tdep.c (mips_init_frame_pc_first): Update.
7659         (mips_frame_chain): Update.
7660         (mips_pop_frame): Update.
7661         * mcore-tdep.c (mcore_frame_chain): Update.
7662         (mcore_pop_frame): Update.
7663         (mcore_init_extra_frame_info): Update.
7664         * arch-utils.c (init_frame_pc_default): Update.
7665         * m68k-tdep.c (isi_frame_num_args): Update.
7666         (delta68_frame_num_args): Update.
7667         (news_frame_num_args): Update.
7668         * ia64-tdep.c (ia64_pop_frame_regular): Update.
7669         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7670         (alpha_frame_chain): Update.
7671         (alpha_pop_frame): Update.
7672         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7673         (hppa_init_extra_frame_info): Update.
7674         (hppa_frame_chain): Update.
7675         (hppa_frame_chain_valid): Update.
7676         * cris-tdep.c (cris_init_extra_frame_info): Update.
7677         * avr-tdep.c (avr_init_extra_frame_info): Update.
7678         * arm-tdep.c (arm_frame_chain_valid): Update.
7679         (arm_init_extra_frame_info): Update.
7680         (arm_pop_frame): Update.
7681         * frame.c (frame_pc_unwind): Update.
7682         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7683         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7684         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7685         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7686         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7687         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7688
7689 2003-03-10  Andrew Cagney  <cagney@redhat.com>
7690
7691         * gdbarch.sh (gdbarch_unwind_pc): New method.
7692         * gdbarch.h, gdbarch.c: Regenerate.
7693         * frame.c (frame_pc_unwind): Rewrite.  Prefer gdbarch_unwind_pc,
7694         but use read_pc and FRAME_SAVED_PC as fall backs.
7695         (frame_saved_regs_pc_unwind): Delete function.
7696         (trad_frame_unwinder): Update.
7697         * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
7698         (struct frame_unwind): Update.
7699         * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
7700         (dummy_frame_unwind): Update.
7701         * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
7702         (sentinel_frame_unwinder): Update.
7703         * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
7704         (d10v_frame_unwind): Update.
7705         (d10v_unwind_pc): New function.
7706         (d10v_gdbarch_init): Set unwind_pc.
7707
7708 2003-03-10  Andrew Cagney  <cagney@redhat.com>
7709
7710         * gdbarch.h: Re-generate.
7711
7712         * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
7713         PC.
7714         (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
7715         the PC register.
7716
7717 2003-03-08  Mark Kettenis  <kettenis@gnu.org>
7718
7719         * gdbarch.sh (save_dummy_frame_tos): Add comment.
7720
7721 2003-03-08  Andrew Cagney  <cagney@redhat.com>
7722
7723         * cli-out.c: Update copyright.
7724         (cli_out_data): Define typedef.  Use instead of ui_out_data.
7725
7726 2003-03-08  Andrew Cagney  <cagney@redhat.com>
7727
7728         * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
7729         the result.
7730
7731 2003-03-07  Andrew Cagney  <cagney@redhat.com>
7732
7733         * gdbarch.sh: Don't generate two macro definitions when an
7734         undefined macro taking no arguments.
7735         * gdbarch.h: Regenerate.
7736
7737 2002-03-07  Michal Ludvig  <mludvig@suse.cz>
7738
7739         * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
7740         (x86_64_unwind_dummy_id): New functions.
7741         (x86_64_init_abi): Register these two new functions.
7742
7743 2003-03-07  Michal Ludvig  <mludvig@suse.cz>
7744
7745         * x86-64-tdep.c (x86_64_function_has_prologue): New function.
7746         (x86_64_skip_prologue): Move prologue detection to
7747         separate function.
7748         * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
7749
7750 2003-03-05  Andrew Cagney  <cagney@redhat.com>
7751
7752         * d10v-tdep.c (d10v_unwind_dummy_id): New function.
7753         (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
7754         * frame.c (get_prev_frame): Restructure the frame ID unwind code
7755         to use unwind_dummy_id when a dummy frame.
7756         * gdbarch.sh (unwind_dummy_id): New multi-arch method with
7757         predicate.
7758         * gdbarch.h, gdbarch.c: Regneerate.
7759
7760 2003-03-05  Andrew Cagney  <cagney@redhat.com>
7761
7762         * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
7763         (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
7764         Do not use d10v_read_sp or d10v_read_fp when obtaining register
7765         values.
7766
7767 2003-03-05  Andrew Cagney  <cagney@redhat.com>
7768
7769         * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
7770         (struct d10v_unwind_cache): Delete field "frameless".  Replace
7771         "next_addr" with "sp_offset".  Add "r11_offset".
7772         (d10v_frame_unwind_cache): Update.
7773         (prologue_find_regs): Update.  When "mv r11, sp", save the
7774         "sp_offset" in "r11_offset".  Recognize "st rn, @r11", note that
7775         RN was saved in r11_offset.
7776
7777 2003-03-05  Andrew Cagney  <cagney@redhat.com>
7778
7779         * frame.c (deprecated_update_frame_pc_hack): Also update the the
7780         cached PC value in the next frame.
7781
7782 2003-03-05  Andrew Cagney  <cagney@redhat.com>
7783
7784         * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
7785         "id_unwind_cache" with "id".
7786         (frame_id_unwind): Delete declaration.
7787         * frame.c (frame_id_unwind): Delete function.
7788         (get_prev_frame): Call the frame id unwind method directly.  Store
7789         the returned next frame's ID value in NEXT_FRAME.  Note that there
7790         is a problem with the wrong unwind ID being called with the wrong
7791         unwind cache.
7792
7793 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
7794
7795         * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
7796
7797 2003-03-05  James Ingham <jingham@apple.com>
7798             Daniel Jacobowitz  <drow@mvista.com>
7799
7800         * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
7801         (auto_cp_abi): New variable.
7802         (current_cp_abi, num_cp_abis): Make static.
7803         (CP_ABI_MAX): Define.
7804         (cp_abis): Turn into an array.
7805         (value_virtual_fn_field): Fix formatting.
7806         (switch_to_cp_abi, register_cp_abi): Update.  register_cp_abi now
7807         takes a pointer.
7808         (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
7809         (list_cp_abis, _initialize_cp_abi): New functions.
7810         * cp-abi.h: Add prototype for set_cp_abi_as_auto_default.  Remove
7811         declarations for cp_abis, num_cp_abis, current_cp_abi, and
7812         switch_to_cp_abi.  Update prototype for register_cp_abi.
7813         * Makefile.in (cp-abi.o): Update dependencies.
7814         * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
7815         instead of switch_to_cp_abi.
7816         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise.  Update call to
7817         register_cp_abi.
7818         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
7819         register_cp_abi.
7820         * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
7821
7822 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
7823
7824         * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
7825         * dwarf2loc.c: Include "regcache.h".
7826         (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum.  Use
7827         register_size.
7828         * Makefile.in (dwarf2loc.o): Update dependencies.
7829
7830 2003-03-04  Theodore A. Roth  <troth@openavr.org>
7831
7832         * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
7833         number of io registers reported by remote target is not a multiple of
7834         step.
7835
7836 2003-03-04  David Carlton  <carlton@math.stanford.edu>
7837
7838         * symtab.c (lookup_partial_symbol): Add linkage_name argument.
7839         (lookup_symbol_aux_psymtabs): Update call to
7840         lookup_partial_symbol.
7841         (lookup_transparent_type, find_main_psymtab)
7842         (make_symbol_overload_list): Ditto.
7843
7844 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
7845
7846         * MAINTAINERS (Write after approval): Update my email address.
7847
7848 2003-03-03  Andrew Cagney  <cagney@redhat.com>
7849
7850         Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
7851         * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
7852         predicate.  Replace MAX_REGISTER_RAW_SIZE.
7853         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
7854         MAX_REGISTER_VIRTUAL_SIZE.
7855         * regcache.c (legacy_max_register_raw_size): New function.
7856         (legacy_max_register_virtual_size): New function.
7857         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
7858         (MAX_REGISTER_RAW_SIZE): Define.
7859         (legacy_max_register_raw_size): Declare.
7860         (legacy_max_register_virtual_size): Declare.
7861         * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7862         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
7863         * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7864         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7865         * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7866         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7867         * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7868         * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7869         * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7870         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7871         * vax-tdep.c (vax_gdbarch_init): Update.
7872         * v850-tdep.c (v850_gdbarch_init): Update.
7873         * sparc-tdep.c (sparc_gdbarch_init): Update.
7874         * sh-tdep.c (sh_gdbarch_init): Update.
7875         * s390-tdep.c (s390_gdbarch_init): Update.
7876         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7877         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7878         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7879         * mips-tdep.c (mips_gdbarch_init): Update.
7880         * mcore-tdep.c (mcore_gdbarch_init): Update.
7881         * m68k-tdep.c (m68k_gdbarch_init): Update.
7882         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7883         * ia64-tdep.c (ia64_gdbarch_init): Update.
7884         * i386-tdep.c (i386_gdbarch_init): Update.
7885         * hppa-tdep.c (hppa_gdbarch_init): Update.
7886         * h8300-tdep.c (h8300_gdbarch_init): Update.
7887         * frv-tdep.c (frv_gdbarch_init): Update.
7888         * cris-tdep.c (cris_gdbarch_init): Update.
7889         * avr-tdep.c (avr_gdbarch_init): Update.
7890         * arm-tdep.c (arm_gdbarch_init): Update.
7891         * alpha-tdep.c (alpha_gdbarch_init): Update.
7892         * d10v-tdep.c (d10v_gdbarch_init): Do not set
7893         max_register_raw_size or max_register_virtual_size.
7894
7895 2003-03-03  David Carlton  <carlton@math.stanford.edu>
7896
7897         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
7898         SYMBOL_MATCHES_NAME, add comment.
7899         (SYMBOL_MATCHES_NATURAL_NAME): New.
7900         * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
7901         SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
7902         (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
7903         * symtab.c (lookup_partial_symbol): Use
7904         SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME.  Delete
7905         unhelpful comment.
7906         (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
7907         SYMBOL_MATCHES_NAME.
7908         Fix for PR c++/33.
7909
7910 2003-03-03  David Carlton  <carlton@math.stanford.edu>
7911
7912         * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
7913         * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
7914         by regexp matching against SYMBOL_NATURAL_NAME.
7915
7916 2003-03-03  David Carlton  <carlton@math.stanford.edu>
7917
7918         * linespec.c (find_method): Extract code into collect_methods.
7919         (collect_methods): New.
7920
7921 2003-03-02  Mark Kettenis  <kettenis@gnu.org>
7922
7923         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
7924         get_frame_base.
7925
7926         * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
7927         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7928
7929 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
7930
7931         * arch-utils.c (generic_register_byte): Fix to use the loop index
7932         and not regnum when summing the size of all registers up to regnum.
7933
7934 2003-03-01  Andrew Cagney  <cagney@redhat.com>
7935
7936         * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
7937         FRAME_INIT_SAVED_REGS.
7938         * gdbarch.h, gdbarch.c: Regenerate.
7939         * stack.c (frame_info): Update.
7940         * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
7941         (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
7942         (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
7943         * ns32k-tdep.c (ns32k_pop_frame): Update.
7944         * mips-tdep.c (mips_pop_frame): Update.
7945         * m68hc11-tdep.c (m68hc11_pop_frame): Update.
7946         * ia64-tdep.c (ia64_frame_chain): Update.
7947         (ia64_frame_saved_pc, ia64_get_saved_register): Update.
7948         (ia64_frameless_function_invocation): Update.
7949         (ia64_init_extra_frame_info): Update.
7950         (ia64_pop_frame_regular): Update.
7951         * frame.h (struct frame_info): Update comment.
7952         (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
7953         * frame.c (frame_saved_regs_register_unwind): Update.
7954         (frame_saved_regs_register_unwind): Update.
7955         (deprecated_generic_get_saved_register): Update.
7956         * cris-tdep.c: Update comment.
7957         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
7958         Rename macro.
7959         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7960         * x86-64-tdep.c (x86_64_init_abi): Update.
7961         * vax-tdep.c (vax_gdbarch_init): Update.
7962         * v850-tdep.c (v850_gdbarch_init): Update.
7963         * sparc-tdep.c (sparc_gdbarch_init): Update.
7964         * sh-tdep.c (sh_gdbarch_init): Update.
7965         * s390-tdep.c (s390_gdbarch_init): Update.
7966         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7967         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7968         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7969         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7970         * mips-tdep.c (mips_gdbarch_init): Update.
7971         * mcore-tdep.c (mcore_gdbarch_init): Update.
7972         * m68k-tdep.c (m68k_gdbarch_init): Update.
7973         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7974         * ia64-tdep.c (ia64_gdbarch_init): Update.
7975         * i386-tdep.c (i386_gdbarch_init): Update.
7976         * frv-tdep.c (frv_gdbarch_init): Update.
7977         * avr-tdep.c (avr_gdbarch_init): Update.
7978         * arm-tdep.c (arm_gdbarch_init): Update.
7979         * alpha-tdep.c (alpha_gdbarch_init): Update.
7980
7981 2003-03-01  Andrew Cagney  <cagney@redhat.com>
7982
7983         * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
7984         option enum and switch.  When no windows, set the interpreter to
7985         INTERP_CONSOLE.
7986
7987 2003-03-01  Andrew Cagney  <cagney@redhat.com>
7988
7989         * main.c (captured_main): Replace magic option characters with an
7990         enum.
7991
7992 2003-03-01  Andrew Cagney  <cagney@redhat.com>
7993
7994         * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
7995         INIT_EXTRA_FRAME_INFO.
7996         * gdbarch.h, gdbarch.c: Regenerate.
7997         * arm-tdep.c: Update comments.
7998         * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
7999         * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8000         * frame.h, avr-tdep.c: Ditto.
8001         * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8002         (create_new_frame, legacy_get_prev_frame): Ditto.
8003         * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8004         * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8005         * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8006         deprecated_init_extra_frame_info instead of init_extra_frame_info.
8007         * x86-64-tdep.c (x86_64_init_abi): Ditto.
8008         * v850-tdep.c (v850_gdbarch_init): Ditto.
8009         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8010         * sh-tdep.c (sh_gdbarch_init): Ditto.
8011         * s390-tdep.c (s390_gdbarch_init): Ditto.
8012         * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8013         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8014         * mips-tdep.c (mips_gdbarch_init): Ditto.
8015         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8016         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8017         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8018         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8019         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8020         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8021         * frv-tdep.c (frv_gdbarch_init): Ditto.
8022         * cris-tdep.c (cris_gdbarch_init): Ditto.
8023         * avr-tdep.c (avr_gdbarch_init): Ditto.
8024         * arm-tdep.c (arm_gdbarch_init): Ditto.
8025         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8026         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8027
8028 2003-03-01  Andrew Cagney  <cagney@redhat.com>
8029
8030         * gdbarch.sh (register_type): New function with predicate.
8031         (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8032         * gdbarch.h, gdbarch.c: Re-generate.
8033         * arch-utils.c (generic_register_byte): Use generic_register_size.
8034         (generic_register_size): When available, use
8035         gdbarch_register_type.
8036         * regcache.c (init_regcache_descr): When available, initialize the
8037         register type array using gdbarch_register_type.  If the
8038         architecture supplies gdbarch_register_type, do not use the legacy
8039         regcache layout.
8040         * d10v-tdep.c (d10v_register_type): Replace
8041         d10v_register_virtual_type.
8042         (d10v_gdbarch_init): Set register_type instead of
8043         register_virtual_type.
8044
8045 2003-03-01  Andrew Cagney  <cagney@redhat.com>
8046
8047         * Makefile.in (ax-gdb.o): Update dependencies.
8048         * ax-gdb.c: Include "regcache.h".
8049         (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8050         * findvar.c (value_of_register): Ditto.
8051         * infcmd.c (default_print_registers_info): Ditto.
8052
8053 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
8054
8055         * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8056         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8057
8058 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
8059
8060         * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8061         of STREQ.
8062
8063 2003-02-28  Daniel Jacobowitz  <drow@mvista.com>
8064
8065         * Makefile.in (dwarf2loc.o): Update dependencies.
8066         * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8067         * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8068         * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8069         * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8070         (locexpr_tracepoint_var_ref): New function.
8071         (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8072
8073 2003-02-28  Andrew Cagney  <cagney@redhat.com>
8074
8075         * regcache.c (register_size): New function.
8076         * regcache.h (register_size): Declare
8077         * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8078         max_register_size instead of MAX_REGISTER_RAW_SIZE.
8079
8080 2003-02-28  David Carlton  <carlton@math.stanford.edu>
8081
8082         * linespec.c (decode_compound): Extract code into find_method.
8083         (find_method): New.
8084
8085 2003-02-28  J. Brobecker  <brobecker@gnat.com>
8086
8087         * Makefile.in: Add rules to build and link in observer.o.
8088
8089 2003-02-27  J. Brobecker  <brobecker@gnat.com>
8090
8091         * observer.c: Minor comments edits.
8092
8093 2003-02-27  J. Brobecker  <brobecker@gnat.com>
8094
8095         * observer.h, observer.c: New file.
8096
8097 2003-02-27  Andrew Cagney  <cagney@redhat.com>
8098
8099         * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8100
8101 2003-02-27  Stephane Carrez  <stcarrez@nerim.fr>
8102
8103         * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8104         (M6812_OP_STS_EXT): Likewise.
8105         (m6811_prologue): Use the above to recognize prologue.
8106         (m6812_prologue): Likewise.
8107
8108 2003-02-27  David Carlton  <carlton@math.stanford.edu>
8109
8110         * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8111         SYMBOL_PRINT_NAME.
8112         (compare_psymbols): Ditto.
8113         * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8114
8115 2003-02-27  Michael Snyder  <msnyder@redhat.com>
8116
8117         * f-lang.c (build_fortran_types): New function.
8118         (_initialize_f_language): Gdbarch-register built-in fortran types.
8119         * doublest.c (extract_floating): Fix warning text.
8120
8121 2003-02-27  Andrew Cagney  <cagney@redhat.com>
8122
8123         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8124         predicate.  Replaces PUSH_DUMMY_FRAME.
8125         * gdbarch.h, gdbarch.c: Regnerate.
8126         * valops.c (hand_function_call): Update.  Call
8127         generic_push_dummy_frame directly.
8128         * vax-tdep.c (vax_gdbarch_init): Update.
8129         * sparc-tdep.c (sparc_gdbarch_init): Update.
8130         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8131         * m68k-tdep.c (m68k_gdbarch_init): Update.
8132         * hppa-tdep.c (hppa_gdbarch_init): Update.
8133         * alpha-tdep.c (alpha_gdbarch_init): Update.
8134         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8135         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8136         * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8137         * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8138         push_dummy_frame to generic_push_dummy_frame.
8139         * v850-tdep.c (v850_gdbarch_init): Ditto.
8140         * sh-tdep.c (sh_gdbarch_init): Ditto.
8141         * s390-tdep.c (s390_gdbarch_init): Ditto.
8142         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8143         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8144         * mips-tdep.c (mips_gdbarch_init): Ditto.
8145         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8146         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8147         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8148         * i386-tdep.c (i386_gdbarch_init): Ditto.
8149         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8150         * frv-tdep.c (frv_gdbarch_init): Ditto.
8151         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8152         * cris-tdep.c (cris_gdbarch_init): Ditto.
8153         * avr-tdep.c (avr_gdbarch_init): Ditto.
8154         * arm-tdep.c (arm_gdbarch_init): Ditto.
8155
8156 2003-02-26  Kevin Buettner  <kevinb@redhat.com>
8157
8158         * mips-tdep.c (show_mips_abi): New function.
8159         (_initialize_mips_tdep): Use show_mips_abi() to implement the
8160         command ``show mips abi''.
8161
8162 2003-02-26  Jeff Johnston  <jjohnstn@redhat.com>
8163
8164         From Elena Zannoni  <ezannoni@redhat.com>
8165         * dbxread.c (process_one_symbol): Only record line 0 if one or
8166         more sline entries have been seen for the function.
8167
8168 2003-02-26  Michael Chastain  <mec@shout.net>
8169
8170         * configure: Regenerate with autoconf 000227.
8171
8172 2003-02-26  Michael Chastain  <mec@shout.net>
8173
8174         Close PR build/660.
8175         * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8176         for old libc5/glibc.
8177         * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8178
8179 2003-02-26  Kris Warkentin  <kewarken@qnx.com>
8180
8181         * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8182         * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8183
8184 2003-02-26  Michael Chastain  <mec@shout.net>
8185
8186         * configure.in: New variable HAVE_UINTPTR_T.
8187         * configure, config.in: Regenerated.
8188
8189 2003-02-26  Daniel Jacobowitz  <drow@mvista.com>
8190
8191         Fix PR build/1097.
8192         * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8193
8194 2003-02-25  Andrew Cagney  <cagney@redhat.com>
8195
8196         * frame.c (get_prev_frame): Add comment on check for
8197         inside_entry_func. Only check for inside_entry_file when not a
8198         dummy and not a sentinel.  Check that the new frame is not inner
8199         to the old frame.
8200
8201 2003-02-25  Andrew Cagney  <cagney@redhat.com>
8202
8203         * frame.c (frame_debug): New variable.
8204         (_initialize_frame): Add "set/show debug frame" command.
8205         (get_prev_frame): When frame_debug, print reason why unwind
8206         failed.
8207
8208 2003-02-25  Michael Chastain  <mec@shout.net>
8209
8210         * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8211         to avoid uintptr_t definition problems.
8212
8213 2003-02-25  David Carlton  <carlton@math.stanford.edu>
8214
8215         * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8216         (SYMBOL_LINKAGE_NAME): Ditto.
8217         (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8218         SYMBOL_LINKAGE_NAME.
8219         (struct general_symbol_info): Expand comment.
8220         (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8221         (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8222         (SYMBOL_MATCHES_REGEXP): Ditto.
8223         * symtab.c (symbol_natural_name): New function.
8224         * objfiles.h: Replace all uses of SYMBOL_NAME by
8225         DEPRECATED_SYMBOL_NAME.
8226         * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8227         * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8228         * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8229         * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8230         * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8231         * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8232         * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8233         * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8234         * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8235         * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8236         * ada-exp.y: Ditto.
8237         * ada-exp.y: Update copyright.
8238         * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8239         * cp-valprint.c: Ditto.
8240
8241 2003-02-25  Jeff Johnston  <jjohnstn@redhat.com>
8242
8243         * infptrace.c (detach): Do not flag error if ptrace detach fails
8244         and errno is set to ESRCH.
8245
8246 2003-02-24  Andrew Cagney  <cagney@redhat.com>
8247
8248         * infptrace.c (udot_info): Change type of udot_off to long.  Use
8249         paddr when printing udot_off's value.
8250
8251 2003-02-24  David Carlton  <carlton@math.stanford.edu>
8252
8253         * symtab.c (make_symbol_overload_list): Only read in partial
8254         symtabs containing a matching partial symbol.
8255
8256 2003-02-24  David Carlton  <carlton@math.stanford.edu>
8257
8258         * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8259         do the comparison, not strcmp.
8260         * symfile.c (compare_psymbols): Ditto.
8261         * defs.h: Declare strcmp_iw_ordered.
8262         * utils.c (strcmp_iw_ordered): New function.
8263
8264 2003-02-24  Jim Blandy  <jimb@redhat.com>
8265
8266         * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8267         support, shared libs): Remove my name from here, to better reflect
8268         reality.
8269
8270 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
8271
8272         * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8273         (target_ops): Add to_have_continuable_watchpoint.
8274         * target.c (update_current_target): Add INHERIT line for
8275         to_have_continuable_watchpoint.
8276         * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8277         * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8278         config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8279         config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8280
8281 2003-02-24  Elena Zannoni  <ezannoni@redhat.com>
8282
8283         * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8284         maintainership.
8285
8286 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
8287
8288         * solib.c (solib_open): Call target defined search function after
8289         failing with solib-search-path.
8290         * solist.h (target_so_ops): Add find_and_open_solib function hook and
8291         create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8292
8293 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
8294
8295         * MAINTAINERS: Add myself to Write After section.
8296
8297 2003-02-23  Stephane Carrez  <stcarrez@nerim.fr>
8298
8299         * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8300
8301 2003-02-22  Stephane Carrez  <stcarrez@nerim.fr>
8302
8303         * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8304         (m68hc11_add_reggroups): New function.
8305         (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8306         (m68hc11_gdbarch_init): Install the reggroups.
8307         (_initialize_m68hc11_tdep): Initialize them.
8308
8309 2003-02-21  James E Wilson  <wilson@tuliptree.org>
8310
8311         * MAINTAINERS: Update my email address.
8312
8313 2003-02-21  David Carlton  <carlton@math.stanford.edu>
8314
8315         * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8316
8317 2003-02-21  Daniel Jacobowitz  <drow@mvista.com>
8318
8319         Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8320         * symtab.h: Add opaque declarations of struct axs_value and
8321         struct agent_expr.
8322         (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8323         (struct location_funcs): New type.
8324         (struct symbol): Add "loc" to aux_value.
8325         (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8326         * dwarf2read.c: Include "dwarf2expr.h".
8327         (dwarf2_symbol_mark_computed): New function.
8328         (read_func_scope): Use it.
8329         (var_decode_location): New function.
8330         (new_symbol): Use it.
8331         * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8332
8333         * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8334         (dwarf2expr_h, dwarf2loc_h): New variables.
8335         (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8336         (dwarf2expr.o, dwarf2loc.o): New rules.
8337         (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8338         * buildsym.c (finish_block): Handle LOC_COMPUTED and
8339         LOC_COMPUTED_ARG.
8340         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8341         * m2-exp.y (yylex): Likewise.
8342         * printcmd.c (address_info, print_frame_args): Likewise.
8343         * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8344         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8345         * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8346         (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8347         * symtab.c (lookup_block_symbol): Likewise.
8348
8349 2003-02-20  Adam Fedor  <fedor@gnu.org>
8350
8351         * symtab.h: Remove objc_specific struct
8352         (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8353         * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8354         Have language_objc use cplus_specific struct.
8355
8356 2003-02-20  Tom Tromey  <tromey@redhat.com>
8357
8358         * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8359         TYPE_NAME, when printing a String value.  PR java/1075.
8360
8361 2003-02-20  Adam Fedor  <fedor@gnu.org>
8362
8363         * objc-lang.h (find_methods): Remove declaration.
8364         * objc-lang.c (find_methods): Make static.
8365
8366 2003-02-20  Christopher Faylor  <cgf@redhat.com>
8367
8368         * win32-nat.c (get_image_name): Check return value from
8369         ReadProcessMemory.
8370         (child_xfer_memory): Ditto.
8371
8372 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
8373
8374         * configure.in (TARGET_SYSTEM_ROOT): Set default to
8375         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
8376         '${exec_prefix}' (in addition to the expansion thereof) as
8377         relocatable.
8378         * configure: Rebuilt.
8379
8380 2003-02-20  David Carlton  <carlton@math.stanford.edu>
8381
8382         * symtab.c (search_symbols): Revert the search_symbols part of my
8383         2002-12-23 patch.  Add comment.
8384
8385 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
8386
8387         * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8388         * dbxread.c (elfstab_build_psymtabs): Don't call
8389         install_minimal_symbols.
8390         (stabsect_build_psymtabs): Likewise.
8391         * elfread.c (elf_symfile_read): Call install_minimal_symbols
8392         earlier.
8393         * somread.c (som_symfile_read): Call install_minimal_symbols
8394         and do_cleanups earlier.
8395         * nlmread.c (nlm_symfile_read): Likewise.
8396         * mdebugread.c (elfmdebug_build_psymtabs): Call
8397         install_minimal_symbols and make appropriate cleanups.
8398
8399 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
8400
8401         * solib.c (reload_shared_libraries): New function.
8402         (_initialize_solib): Add callbacks for ``set solib-search-path''
8403         and ``set solib-absolute-prefix''.
8404
8405 2003-02-20  David Carlton  <carlton@math.stanford.edu>
8406
8407         * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8408         expand comment.
8409         * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8410         SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8411         * ada-typeprint.c (ada_typedef_print): Ditto.
8412         * ax-gdb.c (gen_var_ref): Ditto.
8413         * breakpoint.c (print_one_breakpoint): Ditto.
8414         * buildsym.c (finish_block): Ditto.
8415         * c-valprint.c (c_val_print): Ditto.
8416         * expprint.c (print_subexp): Ditto.
8417         * findvar.c (locate_var_value): Ditto.
8418         * infcmd.c (jump_command): Ditto.
8419         * linespec.c (decode_line_2, decode_compound): Ditto.
8420         * maint.c (maintenance_translate_address): Ditto.
8421         * objc-lang.c (compare_selectors, compare_classes): Ditto.
8422         * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8423         Ditto.
8424         * p-valprint.c (pascal_val_print): Ditto.
8425         * stabsread.c (define_symbol): Ditto.
8426         * stack.c (print_frame, frame_info, print_block_frame_locals)
8427         (print_frame_arg_vars, return_command): Ditto.
8428         * symfile.c (compare_symbols, compare_psymbols): Ditto.
8429         * symmisc.c (print_symbol): Ditto.
8430         * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8431         (compare_search_syms, print_symbol_info, print_msymbol_info)
8432         (rbreak_command): Ditto.
8433         * tracepoint.c (tracepoints_info): Ditto.
8434         * typeprint.c (typedef_print): Ditto.
8435         * valops.c (value_of_variable, hand_function_call): Ditto.
8436         * cli/cli-cmds.c (edit_command, list_command): Ditto.
8437         * ada-typeprint.c: Update Copyright.
8438         * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8439         * tracepoint.c, cli/cli-cmds.c: Ditto.
8440
8441 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
8442
8443         * frame.c (generic_unwind_get_saved_register): Make non-static.
8444         * frame.h (generic_unwind_get_saved_register): Declare.
8445         * mips-tdep.c (read_next_frame_reg): Fetch register from
8446         current regcache when frame is NULL.
8447         (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8448         that must be NULL.
8449         (mips_get_saved_register): Call generic_unwind_get_saved_register()
8450         instead of frame_register_unwind().
8451
8452 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
8453
8454         * remote-sim.c (gdbsim_insert_breakpoint)
8455         (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8456         code.
8457
8458 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
8459
8460         * remote.c (_initialize_remote): Add commands "set/show remote
8461         hardware-watchpoint-limit" and "set/show remote
8462         hardware-breakpoint-limit".
8463         (remote_hw_watchpoint_limit): Initialize to -1.
8464         (remote_hw_breakpoint_limit): Ditto.
8465         (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8466
8467 2003-02-19  Raoul Gough  <RaoulGough@yahoo.co.uk>
8468
8469         * coff-pe-read.c: New file - support reading of minimal symbols from a
8470         portable executable using the export table.
8471         * coff-pe-read.h: New file.
8472         * coffread.c: Include coff-pe-read.h.
8473         (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8474         debugging symbols found.
8475         * Makefile.in (SFILES): Add coff-pe-read.o.
8476         (coff_pe_read_h): Define.
8477         (COMMON_OBS): Add coff-pe-read.o.
8478         (coffread.o): Add coff_pe_read_h dependency.
8479         (coff-pe-read.o): New target.
8480
8481 2003-02-19  David Carlton  <carlton@math.stanford.edu>
8482
8483         * Makefile.in (SFILES): Add block.c.
8484         (block_h): New.
8485         (COMMON_OBS): Add block.o.
8486         (block.o): New.
8487         (x86-64-tdep.o): Add $(block_h).
8488         (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8489         (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8490         (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8491         (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8492         (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8493         (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8494         (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8495         * value.h: Add opaque declaration for struct block.
8496         * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8497         * ada-lang.h: Ditto.
8498         * x86-64-tdep.c: #include "block.h"
8499         * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8500         * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8501         * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8502         * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8503         * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8504         * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8505         * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8506         * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8507         * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8508         (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8509         * symtab.c (block_function): Ditto.
8510         (contained_in): Ditto.
8511         * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8512         block.h.  Add opaque declaration for struct block.
8513         * symtab.h: Move block_function and contained_in declarations to
8514         block.h.  Add opaque declarations for struct block, struct
8515         blockvector.
8516         (struct block): Move to block.h.
8517         (struct blockvector): Ditto.
8518         (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8519         (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8520         (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8521         (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8522         (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8523         Ditto.
8524         * block.c: New file.
8525         * block.h: New file.
8526
8527 2003-02-19  Theodore A. Roth  <troth@openavr.org>
8528
8529         * avr-tdep.c (avr_extract_return_value): Remove function.
8530         (avr_store_return_value): Remove function.
8531         (avr_extract_struct_value_address): Remove function.
8532         (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8533
8534 2003-02-19  Andrew Cagney  <ac131313@redhat.com>
8535
8536         * rs6000-tdep.c: Include "gdb_assert.h".
8537         (registers_e500): Add "acc" and "spefscr".
8538         (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8539         (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8540         ppc_gplast_regnum, sp_regnum and fp_regnum.  Check that gp0_regnum
8541         really is "r0".
8542         (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8543
8544 2003-02-18  Keith Seitz  <keiths@redhat.com>
8545
8546         * Makefile.in: Add gdbtk-interps.c.
8547
8548 2003-02-18  Kevin Buettner  <kevinb@redhat.com>
8549
8550         * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8551         * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8552
8553 2003-02-18  Andrew Cagney  <cagney@redhat.com>
8554
8555         * symtab.h (struct objfile): Add opaque declaration.
8556
8557 2003-02-18  Elena Zannoni  <ezannoni@redhat.com>
8558
8559         From Jim Ingham   <jingham@apple.com>:
8560         * dbxread.c (process_one_symbol): Use last_function_start rather
8561         than function_start_offset to find the real beginning of the
8562         current function.  The latter is just the text section offset on
8563         some systems, the former is always the real function start.
8564
8565 2003-02-17  Andrew Cagney  <cagney@redhat.com>
8566
8567         * configure.in: Revert ${target} != ${host}.
8568
8569 2003-02-17  Andrew Cagney  <ac131313@redhat.com>
8570
8571         * configure.in (Makefile): Use the test ${target} != ${host},
8572         instead of the absence of the "nm.h" file, to determine of the
8573         configuration non-native.
8574         * configure: Regenerate.
8575
8576 2003-02-14  Elena Zannoni  <ezannoni@redhat.com>
8577
8578         From Brian Ford  <ford@vss.fsi.com>
8579
8580         * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
8581         conditionalize tui_active test.
8582         (lookup_cmd_1): Ditto.
8583
8584 2003-02-14  Mark Kettenis  <kettenis@gnu.org>
8585
8586         * configure.in: Add check for _etext.
8587         * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
8588         available.
8589         * config.in, configure: regenerated.
8590
8591 2003-02-14  Daniel Jacobowitz  <drow@mvista.com>
8592
8593         * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
8594
8595 2003-02-14  Andrew Cagney  <ac131313@redhat.com>
8596
8597         * main.c (tui_version): Delete variable.
8598         (captured_main): When --tui, set interpreter_p to "tui" instead of
8599         enabling tui_version.
8600         * printcmd.c (display_command) [TUI]: Test tui_active instead of
8601         tui_version.
8602         * cli/cli-decode.c (lookup_cmd_composition): Ditto.
8603         * cli/cli-cmds.c (disassemble_command): Ditto.
8604         * defs.h (tui_version): Delete declaration.
8605         * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
8606         (tui-interp.o): Add rules.
8607         (SUBDIR_TUI_OBS): Add "tui-interp.o".
8608
8609 2003-02-14  Christopher Faylor  <cgf@redhat.com>
8610
8611         * win32-nat.c (register_loaded_dll): Correctly set address range for
8612         just-loaded dll.
8613
8614 2003-02-12  Jason Molenda  (jmolenda@apple.com)
8615
8616         * symmisc.c (print_objfile_statistics): Include information about
8617         the number of psymtabs and symtabs in each object file.
8618
8619 2003-02-13  Keith R Seitz  <keiths@redhat.com>
8620
8621         * main.h (struct captured_main_args): Add interpreter_p.
8622         * main.c (captured_main): Initialize interpreter_p from context.
8623         * gdb.c (main): Set interpreter_p argument.
8624         * Makefile.in (gdb.o): Add dependency for interps.h.
8625
8626 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
8627
8628         * event-top.c (cli_command_loop): Delete declaration.
8629         (_initialize_event_loop): Delete function setting event_loop_hook.
8630         * event-top.h (cli_command_loop): Declare.  Update copyright.
8631         (EVENT_TOP_H): Define.  Wrap header in #ifdef EVENT_TOP_H.
8632         * interps.c (current_interp_command_loop): When event_loop_p, call
8633         cli_command_loop.
8634
8635 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
8636
8637         * interps.h (interp_command_loop_ftype): Change return type to
8638         void.
8639
8640 2003-02-12  Michal Ludvig  <mludvig@suse.cz>
8641
8642         * x86-64-tdep.c (x86_64_extract_return_value)
8643         (x86_64_store_return_value): Use regcache instead of regbuf.
8644         (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
8645         * x86-64-linux-nat.c (fill_gregset): Use regcache.
8646
8647 2003-02-11  Andrew Cagney  <ac131313@redhat.com>
8648
8649         * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
8650         * aclocal.m4: Regenerate.
8651         * configure: Regenerate.
8652
8653         * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
8654         TCL_LD_SEARCH_FLAGS.
8655
8656 2003-02-10  Michal Ludvig  <mludvig@suse.cz>
8657
8658         * dwarf2cfi.c: Reindented.
8659
8660 2003-02-09  Andrew Cagney  <ac131313@redhat.com>
8661
8662         * interps.c (clear_interpreter_hooks): Convert function definition
8663         to ISO C.
8664
8665 2003-02-07  David Carlton  <carlton@math.stanford.edu>
8666
8667         * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8668
8669 2003-02-07  Kevin Buettner  <kevinb@redhat.com>
8670
8671         * gdbtypes.h (struct main_type): Move ``length'' field from here...
8672         (struct type): ...to here.
8673         (TYPE_LENGTH): Adjust to reflect different location of ``length''
8674         field.
8675         * gdbtypes.c (make_qualified_type): Set length on newly created type.
8676         (replace_type): Set length on all type variants for a given type.
8677
8678 2003-02-07  Andrew Cagney  <ac131313@redhat.com>
8679
8680         * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
8681         <sys/stat.h>.
8682         * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8683
8684 2003-02-06  Andrew Cagney  <ac131313@redhat.com>
8685
8686         * Makefile.in (symm-nat.o): Update dependencies.
8687         (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
8688         (lynx-nat.o, ia64-linux-nat.): Ditto.
8689         * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
8690         "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
8691         * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
8692
8693         * Makefile.in (inflow_h): Define.
8694         (procfs.o, inflow.o, procfs.o): Update dependencies.
8695         * inftarg.c (child_stop): Delete extern declaration of
8696         inferior_process_group.  Include "inflow.h".
8697         * procfs.c (procfs_stop): Ditto.  Include "inflow.h".
8698         * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
8699         * inflow.h (PROCESS_GROUP_TYPE): ... to here.  New file.
8700         (our_process_group, inferior_process_group): Extern declarations.
8701
8702         * procfs.c: Include "gdb_assert.h".
8703
8704         * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8705         * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
8706         * jv-typeprint.c (java_type_print_base): Ditto.
8707         * typeprint.c (typedef_print): Eliminate STREQ.
8708         * cli/cli-script.c (define_command, define_command): Ditto.
8709         * main.c (captured_main): Ditto.
8710         * values.c (lookup_internalvar): Ditto.
8711         * utils.c (safe_strerror, parse_escape): Eliminate assignment
8712         within `if' conditional.
8713         * linespec.c (decode_line_2): Ditto.
8714         * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
8715         (bfd_openw_with_cleanup): Ditto.
8716
8717 2003-02-07  Mark Kettenis  <kettenis@gnu.org>
8718
8719         * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
8720         legacy_extract_return_value and store_return_value to
8721         legacy_return_value.
8722
8723 2003-02-06  Raoul Gough  <RaoulGough@yahoo.co.uk>
8724
8725         * win32-nat.c (get_relocated_section_addrs): New function.  Find
8726         section load addresses for symbol handling in relocated DLLs.
8727         (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
8728
8729 2003-02-05  Fred Fish  <fnf@intrinsity.com>
8730
8731         * remote-e7000.c (e7000_drain_command): Fix precedence problem with
8732         '=' and '!='.
8733         * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
8734         with '&' and '=='.
8735         (angel_RDI_info): Ditto.
8736         * infttrace.c (threads_continue_all_but_one): Fix precedence problem
8737         with '&' and '!='.
8738         (threads_continue_all_with_signals): Ditto.
8739
8740 2003-02-05  Jim Ingham <jingham@apple.com>
8741             Keith Seitz  <keiths@redhat.com>
8742             Elena Zannoni  <ezannoni@redhat.com>
8743             Andrew Cagney  <ac131313@redhat.com>
8744
8745         * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
8746         (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
8747         (SUBDIR_MI_OBS): Add "mi-interp.o".
8748         (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
8749         (SFILES): Add "interps.c".
8750         (COMMON_OBS): Add "interps.o".
8751         (interps_h, mi_main_h): Define.
8752         (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
8753         (mi-main.o, main.o, event-top.o): Update dependencies.
8754         * cli/cli-interp.c: New file.
8755         * interps.h, interps.c: New files.
8756         * top.c: (gdb_init): Don't install the default interpreter, handed
8757         by captured_main.
8758         * main.c: Include "interps.h".
8759         (interpreter_p): Note that it should malloc'ed.
8760         (captured_command_loop): Call current_interp_command_loop.
8761         (captured_main): Initialize interpreter_p to INTERP_CONSOLE.  Use
8762         xfree and xstrdup when updating interpreter_p.  Install the
8763         default interpreter.  Add hack to stop mi1's copyright notice
8764         being encoded.
8765         * event-top.h (gdb_setup_readline): Declare.
8766         (gdb_disable_readline): Declare.
8767         * event-top.c: Include "interps.h".
8768         (display_gdb_prompt): Call current_interp_display_prompt_p.
8769         (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
8770         gdb_stdlog, and gdb_stdtarg.
8771         (_initialize_event_loop): Don't call gdb_setup_readline.
8772         * cli-out.c (cli_out_set_stream): New function.
8773         * cli-out.h (cli_out_set_stream): Declare.
8774
8775 2003-02-06  Mark Kettenis  <kettenis@gnu.org>
8776
8777         * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
8778         i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove.  These are all
8779         handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
8780         * config/i386/i386sco5.mt, config/i386/i386v4.mt,
8781         config/i386/i386v42mp.mt: Removed.
8782
8783 2003-02-05  Mark Kettenis  <kettenis@gnu.org>
8784
8785         * configure.tgt (*-*-solaris*): Set gdb_osabi to
8786         GDB_OSABI_SOLARIS.
8787
8788 2003-02-05  Michael Chastain  <mec@shout.net>
8789
8790         * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
8791         2.12.1 and earlier versions.
8792
8793 2003-02-05  Andrew Cagney  <ac131313@redhat.com>
8794
8795         Remove orphaned hosts, targets and files.
8796         * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
8797         * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
8798         * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
8799         * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
8800         * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
8801         * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
8802         * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
8803         * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
8804         * config/sparc/tm-sp64sim.h: Delete.
8805         * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
8806         hosts.
8807         * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
8808         mips*-dec-mach3* targets.
8809
8810 2003-02-04  Michael Chastain  <mec@shout.net>
8811
8812         * NEWS: Fix typo: sepcifying -> specifying.
8813
8814 2003-02-04  Michael Chastain  <mec@shout.net>
8815
8816         * dwarfread.c: Add documentation on the state of dwarf-1,
8817         looking towards obsoletion.
8818
8819 2003-02-03  Michael Chastain  <mec@shout.net>
8820
8821         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
8822         gdb/testsuite/gdb.c++/pr-1023.exp.
8823
8824 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
8825
8826         * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
8827         * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
8828
8829         * utils.c (init_page_info): Delete reference to MPW in comments.
8830         * main.c (captured_main): Delete #ifdef MPW.
8831
8832 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
8833
8834         * NEWS: Note that the m32r-*-elf* is obsolete.
8835         * monitor.c (monitor_expect): Obsolete reference to m32r.
8836         * configure.tgt: Mark m32r-*-elf* as obsolete.
8837         * MAINTAINERS: Mark m32k as obsolete.
8838         * m32r-rom.c: Obsolete file.
8839         * config/m32r/m32r.mt: Obsolete file.
8840         * config/m32r/tm-m32r.h: Obsolete file.
8841         * m32r-stub.c: Obsolete file.
8842         * m32r-tdep.c: Obsolete file.
8843
8844 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
8845
8846         * NEWS: Mention that the z8k-zilog-none is obsolete.
8847         * MAINTAINERS: Mark z8k as obsolete.
8848         * configure.tgt: Obsolete the z8k-*-coff* target.
8849         * config/z8k/z8k.mt: Obsolete file.
8850         * config/z8k/tm-z8k.h: Obsolete file.
8851         * z8k-tdep.c: Obsolete file.
8852
8853 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
8854
8855         * NEWS: Mention that the mn10200-elf is obsolete.
8856         * configure.tgt: Obsolete mn10200-*-* target.
8857         * breakpoint.c (update_breakpoints_after_exec): Update comment to
8858         mention that the mn10200 is obsolete.
8859         * breakpoint.h: Ditto.
8860         * MAINTAINERS: Mark the mn10200-elf as obsolete.
8861         * config/mn10200/mn10200.mt: Obsolete file.
8862         * config/mn10200/tm-mn10200.h: Obsolete file.
8863         * mn10200-tdep.c: Obsolete file.
8864
8865 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
8866
8867         * MAINTAINERS: Mark h8500 as obsolete.
8868         * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
8869         * findvar.c (value_from_register): Ditto.
8870         * h8500-tdep.c: Mark file as obsolete.
8871         * config/h8500/h8500.mt: Ditto.
8872         * config/h8500/tm-h8500.h: Ditto.
8873         * NEWS: Mention that h8500 is obsolete.
8874
8875 2003-02-04  David Carlton  <carlton@math.stanford.edu>
8876
8877         * objfiles.c (allocate_objfile): Always set name.  Add comment at
8878         start of function.
8879         * jv-lang.c (get_dynamics_objfile): Add comment.
8880
8881 2003-02-04  David Carlton  <carlton@math.stanford.edu>
8882
8883         * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
8884         * printcmd.c (build_address_symbolic): Replace uses of
8885         SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
8886         SYMBOL_NAME, and asm_demangle.
8887         Update copyright.
8888
8889 2003-02-04  David Carlton  <carlton@math.stanford.edu>
8890
8891         * linespec.c (decode_compound): Extract code into
8892         lookup_prefix_sym.
8893         (lookup_prefix_sym): New function.
8894
8895 2003-02-04  David Carlton  <carlton@math.stanford.edu>
8896
8897         * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
8898         FLOAT_COERCION_BADNESS.
8899         * gdbtypes.c (rank_one_type): Replace all uses of
8900         INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
8901
8902 2003-02-04  Jim Blandy  <jimb@redhat.com>
8903
8904         * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
8905         section, let dwarf_macinfo_section point to it, not
8906         dwarf_loc_section.
8907
8908 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
8909
8910         Pointed out by Anton Blanchard <anton@samba.org>.
8911         * ppc-linux-tdep.c (insn_is_sigreturn): New function.
8912         (ppc_linux_at_sigtramp_return_path): Use it.
8913
8914 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
8915
8916         * defs.h (streq): Add prototype.
8917         * utils.c (streq): New function.
8918
8919         * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
8920         SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
8921         * mdebugread.c (new_symbol): Likewise.
8922         * stabsread.c (define_symbol): Likewise.
8923         * coffread.c (process_coff_symbol): Likewise.
8924         * dwarfread.c (new_symbol): Likewise.
8925
8926         * minsyms.c (prim_record_minimal_symbol_and_info): Use
8927         SYMBOL_SET_NAMES instead of setting SYMBOL_NAME.  Set the language
8928         here.
8929         (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
8930         SYMBOL_INIT_DEMANGLED_NAME.
8931         * objfiles.c: Include "hashtab.h".
8932         (allocate_objfile): Call htab_set_functions_ex for the
8933         demangled_names_hash.
8934         (free_objfile): Call htab_delete for the demangled_names_hash.
8935         * objfiles.h (struct htab): Add declaration.
8936         (struct objfile): Add demangled_names_hash.
8937         * symfile.c: Include "hashtab.h".
8938         (reread_symbols): Call htab_delete for the demangled_names_hash.
8939         (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
8940         SYMBOL_NAME in the bcache.
8941         * symtab.c: Include "hashtab.h".  Update comments.
8942         (create_demangled_names_hash, symbol_set_names): New functions.
8943         (symbol_find_demangled_name): New function, broken out from
8944         symbol_init_demangled_names.
8945         (symbol_init_demangled_names): Use it.
8946         * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
8947         (SYMBOL_SET_NAMES): New macro.
8948         (symbol_set_names): Add prototype.
8949
8950 2003-02-03  Jim Blandy  <jimb@redhat.com>
8951
8952         Use a single, consistent representation for an empty minimal
8953         symbol table in an objfile.
8954         * objfiles.c (terminate_minimal_symbol_table): New function.
8955         (allocate_objfile): Call it.
8956         * objfiles.h (terminate_minimal_symbol_table): New declaration.
8957         (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8958         non-NULL.
8959         * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
8960         objfile has minimal symbols, compare minimal_symbol_count to zero,
8961         instead of comparing msymbols with NULL.
8962         * objfiles.c (have_minimal_symbols): Same.
8963         * solib-sunos.c (solib_add_common_symbols): Call
8964         terminate_minimal_symbol_table.
8965         * symfile.c (reread_symbols): Same.
8966
8967 2003-02-03  Kevin Buettner  <kevinb@redhat.com>
8968
8969         * s390-tdep.c (s390_address_class_type_flags)
8970         (s390_address_class_type_flags_to_name)
8971         (s390_address_class_name_to_type_flags): New functions.
8972         (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
8973         ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
8974
8975 2003-02-03  Michael Snyder  <msnyder@redhat.com>
8976
8977         * arm-tdep.c: Fix spell-o in comment.
8978
8979 2003-02-03  Michal Ludvig  <mludvig@suse.cz>
8980
8981         * dwarf2cfi.c (pointer_encoding): Added new parameter.
8982         * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8983         error messages to contain BFD filename.
8984
8985 2003-02-02  Elena Zannoni  <ezannoni@redhat.com>
8986
8987         Fix PR gdb/742 gdb/743 gdb/877
8988         * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
8989         (do_mixed_source_and_assembly): Use
8990         make_cleanup_ui_out_tuple_begin_end and
8991         make_cleanup_ui_out_tuple_begin_end.
8992         (do_mixed_source_and_assembly): Ditto.
8993         * thread.c (do_captured_list_thread_ids): Ditto.
8994         * ui-out.h (ui_out_table_begin, ui_out_list_begin,
8995         ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
8996         ui_out_tuple_end): Delete prototypes.
8997         * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
8998         ui_out_list_end, ui_out_tuple_end): Delete.
8999
9000         From Kevin Buettner  <kevinb@redhat.com>:
9001         * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9002         * ui-out.c (make_cleanup_ui_out_table_begin_end)
9003         (do_cleanup_table_end):  New functions.
9004         * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9005         Use cleanups to invoke_ui_out_tuple_end().
9006         (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9007         * cli/cli-setshow.c (cmd_show_list): Use
9008         make_cleanup_ui_out_tuple_begin_end.
9009
9010 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
9011
9012         * frame.c (frame_unwind_register): New function.
9013         (frame_unwind_unsigned_register): Use.
9014         (frame_unwind_signed_register): Use.
9015         (frame_read_register): New function.
9016         * frame.h (frame_unwind_register): Declare.
9017         (frame_read_register): Declare.
9018
9019         * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9020         and frame_unwind_register instead of read_memory, write_register
9021         and deprecated_write_register_bytes.
9022
9023 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
9024
9025         * frame.h: Note that namelen can be negative.
9026         * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9027         NAME's length.
9028
9029         * NEWS: Mention that the d10v's `regs' command is deprecated.
9030         * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9031         (d10v_print_registers_info): New function.
9032         (show_regs): Call d10v_print_registers_info.
9033         (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9034
9035 2003-02-02  Mark Kettenis  <kettenis@gnu.org>
9036
9037         * stack.c (print_frame_info): Restore call to annotate_frame_begin
9038         lost in the previous patch.
9039
9040 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
9041
9042         From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9043         * stack.c (print_frame_info_base): Output complete FRAME tuple
9044         for synthesized frames.
9045
9046 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
9047
9048         * mips-nat.c (zerobuf): Delete.
9049         (fetch_inferior_registers): Alloc local zerobuf.
9050         (fetch_core_registers): Alloc local zerobuf.
9051         * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9052         MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9053         * thread-db.c (thread_db_store_registers): Ditto.
9054         * sh-tdep.c (sh_do_register): Ditto.
9055         * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9056         * remote-sim.c (gdbsim_store_register): Ditto.
9057         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9058         * remote-e7000.c (fetch_regs_from_dump): Ditto.
9059         * monitor.c (monitor_supply_register): Ditto.
9060         * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9061         * mips-nat.c (fetch_inferior_registers): Ditto.
9062         * m68klinux-nat.c (fetch_register): Ditto.
9063         * lynx-nat.c (fetch_inferior_registers): Ditto.
9064         (fetch_inferior_registers): Ditto.
9065         * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9066         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9067         (hpux_thread_store_registers): Ditto.
9068         * hppah-nat.c (fetch_register): Ditto.
9069         * hppab-nat.c (fetch_register): Ditto.
9070         * hppa-tdep.c (pa_register_look_aside): Ditto.
9071         (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9072         * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9073
9074 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
9075
9076         * gdbarch.sh: Explictly specify all method levels.  When a
9077         variable with an empty level, provide a non-multi-arch default.
9078         (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9079         * gdbarch.h: Re-generate.
9080         * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete.  Always defined.
9081         * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9082
9083 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
9084
9085         * defs.h (host_pointer_to_address): Delete declaration.
9086         (address_to_host_pointer): Delete declaration.
9087         * utils.c (host_pointer_to_address): Delete function.
9088         (address_to_host_pointer): Delete function.
9089         * procfs.c (procfs_address_to_host_pointer): New function.
9090         * procfs.c (proc_set_watchpoint): Use.
9091         (procfs_can_use_hw_breakpoint): Update comments.
9092         * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9093         (som_solib_add): Use.
9094         * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9095         * hppa-tdep.c (unwind_command): Use.
9096
9097 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
9098
9099         * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9100         strlen d_name.
9101
9102         * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9103         ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9104         (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9105         * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9106         (define_symbol): Update.
9107         * symfile.c (generic_load): Remove references to nindy.
9108         * symtab.c: Remove references to nindy.
9109
9110 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
9111
9112         * infcmd.c (print_float_info): Delete code conditional on
9113         FLOAT_INFO.
9114         * config/nm-lynx.h: Delete #undef FLOAT_INFO.  Update copyright.
9115         * config/m68k/nm-apollo68b.h: Ditto.
9116         * config/i386/tm-ptx.h (FLOAT_INFO): Delete.  Update copyright.
9117         * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9118         * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9119
9120 2003-02-01  Mark Kettenis  <kettenis@gnu.org>
9121
9122         * config/i386/tm-i386os9k.h: Removed.
9123
9124         * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9125         Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9126         they're identical to i[3456]86-*-sysv* now.
9127         * config/i386/i386v32.mh: Removed.
9128         * config/i386/xm-i386v32.h: Removed.
9129         * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9130
9131         * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9132
9133         * config/i386/i386dgux.mh: Removed.
9134         * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9135
9136         * configure.in: Fix typo.
9137         * configure: Regenerated.
9138
9139 2003-01-31  David Carlton  <carlton@math.stanford.edu>
9140
9141         * dwarf2read.c (dwarf2_locate_sections): Set
9142         dwarf_ranges_section.
9143
9144 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
9145
9146         * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9147         * utils.c: Update comments documenting legitimate uses of PTR.
9148
9149         * utils.c: Re-indent.
9150
9151         * config/djgpp/fnchange.lst: Delete nindy files.
9152         * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9153         * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9154         * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9155         * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9156         * nindy-share/README, nindy-share/Onindy.c: Delete files.
9157         * nindy-tdep.c, nindy-share/Makefile: Delete files.
9158         * Makefile.in (init.c): Remove nindy references.
9159         (saber_gdb): Delete rule.
9160         (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9161         nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9162         and a68v-nat.c.
9163         (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9164         (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9165         (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9166         nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9167         nindy-share/stop.h.
9168         * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9169         * saber.suppress: Delete file.
9170
9171 2003-01-31  Daniel Jacobowitz  <drow@mvista.com>
9172
9173         * dbxread.c (stabs_data): New static variable.
9174         (fill_symbuf): Support an in-memory buffer for stabs data.
9175         (stabs_seek): New function.
9176         (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9177         (read_ofile_symtab): Use stabs_seek.
9178         (elfstab_build_psymtabs): Take an asection* instead of
9179         an offset and size.  Relocate the stabs data if necessary.
9180         Save the section* for dbx_psymtab_to_symtab.
9181         * dwarf2read.c: Add section variables for each debug section.
9182         (dwarf2_locate_sections): Fill them in.
9183         (dwarf2_read_section): Take an asection* argument.
9184         Relocate the section contents if necessary.
9185         (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9186         * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9187         it to dwarf2_read_section.
9188         (dwarf2_build_frame_info): Update callers.
9189         * elfread.c (elf_symfile_read): Update call to
9190         elfstab_build_psymtabs.
9191         * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9192         (DBX_STAB_SECTION): New macro.
9193         * stabsread.h (elfstab_build_psymtabs): Update prototype.
9194         * symfile.c (symfile_dummy_outputs): New function.
9195         (symfile_relocate_debug_section): New function.
9196         * symfile.h (symfile_relocate_debug_section): Add prototype.
9197
9198 2003-01-31  Richard Henderson  <rth@redhat.com>
9199
9200         * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9201         (register_addr): ... here.  Support ALPHA_UNIQUE_REGNUM.
9202         (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9203         * alpha-tdep.c (alpha_register_name): Add "unique".
9204         * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9205         (ALPHA_UNIQUE_REGNUM): New.
9206         * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9207
9208 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
9209
9210         * README: Remove reference to Ericsson 1800 monitor.
9211         * Makefile.in (remote-es.o): Delete rule.
9212         (ALLDEPFILES): Delete remote-es.c.
9213         * remote-es.c: Delete file.
9214         * config/m68k/es1800.mt: Delete file.
9215         * config/djgpp/fnchange.lst: Update.
9216         * configure.tgt: Delete m68*-ericsson-* target.
9217
9218 2003-01-31  Adam Fedor  <fedor@gnu.org>
9219
9220         * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9221         Remove duplicate/shadowing variable of same name.
9222
9223 2003-01-30  Jim Blandy  <jimb@redhat.com>
9224
9225         * symfile.c (find_separate_debug_file): Assert that the objfile's
9226         directory name we compute ends with a slash, and then assume that
9227         that's so everywhere we use it.
9228
9229 2003-01-30  Daniel Jacobowitz  <drow@mvista.com>
9230
9231         * valops.c (value_assign): Flush frame cache after stores to memory
9232         also.
9233
9234 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
9235
9236         * Makefile.in (mon960-rom.o): Delete rule.
9237         * mon960-rom.c: Delete file.
9238
9239 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
9240
9241         * d10v-tdep.c: Include "frame-unwind.h".
9242         (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9243         list.
9244         (next_addr, uses_frame): Delete.
9245         (struct d10v_unwind_cache): Define.
9246         (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9247         Use info instead of next_addr and uses_frame globals.
9248         (d10v_frame_init_saved_regs): Delete function.
9249         (d10v_init_extra_frame_info): Delete function.
9250         (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9251         frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9252         init_frame_pc or frame_saved_pc.
9253         (d10v_pop_frame): Delete function.
9254         (do_d10v_pop_frame): Delete function.
9255         (d10v_frame_chain): Delete function.
9256         (d10v_frame_chain_valid): Delete function.
9257         (d10v_frame_pc_unwind): New function.
9258         (d10v_frame_id_unwind): New function.
9259         (saved_regs_unwinder): New function.
9260         (d10v_frame_register_unwind): New function.
9261         (d10v_frame_pop): New function.
9262         (d10v_frame_unwind): New variable.
9263         (d10v_frame_p): New function.
9264         (d10v_frame_saved_pc): Delete function.
9265         * Makefile.in (d10v-tdep.o): Update dependencies.
9266
9267 2003-01-30  J. Brobecker  <brobecker@gnat.com>
9268
9269         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9270         causing some regressions due to a change in the default value
9271         for this macro.
9272
9273 2003-01-29  Richard Henderson  <rth@redhat.com>
9274             Elena Zannoni  <ezannoni@redhat.com>
9275             Daniel Jacobowitz  <drow@mvista.com>
9276
9277         Fix PR gdb/961.
9278         * dwarf2read.c  (dwarf_ranges_offset, dwarf_ranges_size): New
9279         variables.
9280         (RANGES_SECTION): New.
9281         (dwarf_ranges_buffer): New variable.
9282         (struct comp_unit_head): Add member "die".
9283         (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9284         (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9285         (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9286         (dwarf2_locate_sections): Likewise.
9287         (dwarf2_build_psymtabs): Read .debug_ranges.
9288         (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9289         (psymtab_to_symtab_1): Swap dwarf_ranges in.  Set cu_header.die.
9290         (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9291         Look for DW_AT_ranges and return the bounding box.
9292
9293 2003-01-29  Brian Ford <ford@vss.fsi.com>
9294
9295         * win32-nat.c (cygwin_pid): Removed as unused.
9296         (child_attach): Try fall back to Cygwin pid.
9297
9298 2003-01-29  Jim Blandy  <jimb@redhat.com>
9299
9300         * objfiles.h (struct objfile): Doc fix.
9301
9302 2003-01-29  Andrew Cagney  <ac131313@redhat.com>
9303
9304         * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9305         (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9306         (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9307         (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9308         * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9309         (FRAME_SAVED_PC): Change to a function with predicate.
9310         * gdbarch.h, gdbarch.c: Re-generate.
9311
9312 2003-01-28  Andrew Cagney  <ac131313@redhat.com>
9313
9314         * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9315
9316         * complaints.c (complain): Delete function.
9317         * complaints.h (struct deprecated_complaint): Delete definition.
9318         (complain): Delete declaration.
9319
9320 2003-01-28  Kevin Buettner  <kevinb@redhat.com>
9321
9322         * mips-tdep.c (mips_init_extra_frame_info): Return early for
9323         dummy frames.
9324
9325 2003-01-27  Andrew Cagney  <ac131313@redhat.com>
9326
9327         * sentinel-frame.h, sentinel-frame.c: New files.
9328         * Makefile.in (frame.o): Update dependencies.
9329         (SFILES): Add sentinel-frame.c.
9330         (sentinel_frame_h): Define.
9331         (COMMON_OBS): Add sentinel-frame.o.
9332         (sentinel-frame.o): Specify dependencies.
9333         * frame.c: Include "sentinel-frame.h".
9334         (frame_register_unwind): Rewrite assuming that there is always a a
9335         ->next frame.
9336         (frame_register, generic_unwind_get_saved_register): Ditto.
9337         (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9338         (create_sentinel_frame, unwind_to_current_frame): New functions.
9339         (get_current_frame): Rewrite using create_sentinel_frame and
9340         unwind_to_current_frame.  When possible, always create a frame.
9341         (create_new_frame): Set next to the sentinel frame.
9342         (get_next_frame): Rewrite.  Don't go below the level 0 frame.
9343         (deprecated_update_frame_pc_hack): Update the next frame's PC and
9344         ID cache when necessary.
9345         (frame_saved_regs_id_unwind): Use frame_relative_level.
9346         (deprecated_generic_get_saved_register): Use frame_relative_level,
9347         get_frame_saved_regs, get_frame_pc, get_frame_base and
9348         get_next_frame.
9349         (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9350         frame_register.
9351
9352 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
9353
9354         * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9355
9356 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
9357
9358         * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9359         (maintenance_set_profile_cmd): Use error () instead of warning ().
9360
9361 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
9362
9363         * configure.in: Check that -pg works if using --enable-profiling.
9364         Check for monstartup and _mcleanup regardless of --enable-profiling.
9365         * maint.c: Check for monstartup and _mcleanup before using them.
9366         * config.in: Regenerated.
9367         * configure: Regenerated.
9368
9369 2003-01-24  Nick Clifton  <nickc@redhat.com>
9370
9371         * Add sh2e support:
9372
9373         2002-04-02  Elena Zannoni  <ezannoni@redhat.com>
9374
9375                 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9376                 (sh2e_show_regs): New.
9377                 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9378                 * config/sh/tm-sh.h: Added sh2e to comments.
9379
9380 2003-01-23  Jim Blandy  <jimb@redhat.com>
9381
9382         * symfile.c (syms_from_objfile): Don't print the "(no debugging
9383         symbols found)" message here; we haven't checked for a separate
9384         debug info file yet, so we don't know yet.
9385         (symbol_file_add_with_addrs_or_offsets): Print it here, after
9386         we've looked everywhere.  Also, there's no need to print a special
9387         message when we're loading the separate debug info file: the one
9388         symbol_file_add prints is fine.
9389
9390 2003-01-23  Alexander Larsson <alexl@redhat.com>
9391             Jim Blandy  <jimb@redhat.com>
9392
9393         Add support for executables whose debug info has been separated
9394         out into a separate file, leaving only a link behind.
9395         * objfiles.h (struct objfile): New fields: separate_debug_objfile
9396         and separate_debug_objfile_backlink.
9397         (put_objfile_before): New declaration.
9398         * symfile.c: #include "filenames.h".
9399         (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9400         debug info in a separate file, read that, too. Save the addrs
9401         argument, so we can use it again to read the separated debug info;
9402         syms_from_objfile modifies the table we pass it.
9403         (reread_symbols): After re-reading an objfile, call
9404         reread_separate_symbols to refresh its separate debug info
9405         objfile, if it has one.
9406         (reread_separate_symbols, find_separate_debug_file,
9407         get_debug_link_info, separate_debug_file_exists): New functions.
9408         (debug_file_directory): New global var.
9409         (_initialize_symfile): Initialize debug_file_directory, and
9410         provide the new `set debug-file-directory' command to let the user
9411         change it.
9412         * objfiles.c (free_objfile): If this objfile has its debug info in
9413         a separate objfile, free that one too.  If this is itself a
9414         separate debug info objfile, clear our parent's backlink.
9415         (put_objfile_before): New function.
9416         * utils.c (gnu_debuglink_crc32): New function.
9417         * defs.h (gnu_debuglink_crc32): New declaration.
9418         * Makefile.in (symfile.o): Note dependency on "filenames.h".
9419         * configure.in: Handle --with-separate-debug-dir config option.
9420         * acinclude.m4 (AC_DEFINE_DIR): New macro.
9421         * acconfig.h (DEBUGDIR): New macro.
9422         * configure, aclocal.m4, config.in: Regenerated.
9423
9424 2003-01-22  Jim Blandy  <jimb@redhat.com>
9425
9426         * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9427         like the old symbol_file_add, but taking new arguments: you can
9428         now pass in either a `struct section_addr_info' list to say where
9429         each section is loaded, or a `struct section_offsets' table.  Pass
9430         these new arguments through to syms_from_objfile as appropriate.
9431         (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9432         with the appropriate quiescent values for the new arguments.
9433
9434         * symfile.c: #include "gdb_assert.h".
9435         (syms_from_objfile): Add the ability to pass in a section offset
9436         table directly, as an alternative to the section_addr_info table.
9437         Document arguments better.
9438         (symbol_file_add): Pass extra arguments to syms_from_objfile.
9439         * symfile.h (syms_from_objfile): Update declaration.
9440         * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9441         syms_from_objfile.
9442         * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9443
9444 2003-01-22  Daniel Jacobowitz  <drow@mvista.com>
9445
9446         Original patch by Tom Tromey <tromey@cygnus.com> and
9447         Jason Molenda <jmolenda@apple.com>.
9448         * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9449         (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9450         * NEWS: Mention profiling.
9451         * configure.in (--enable-gdbtk): Fix typo.
9452         (--enable-profiling): New.  Set PROFILE_CFLAGS.
9453         * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9454         Fill in function.
9455         (profiling_state): New variable.
9456         (mcleanup_wrapper): New function.
9457         (_initialize_maint): Remove NOTYET, fix call to
9458         add_setshow_boolean_cmd for "maint set profile".
9459         * configure: Regenerated.
9460
9461 2003-01-21  Martin M. Hunt  <hunt@redhat.com>
9462
9463         * Makefile.in (install-gdbtk): Install PNG images too.
9464
9465 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
9466
9467         * exec.c (text_start): Delete global variable.
9468         (exec_file_attach): Make text_start local to the function.
9469         * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9470         * valops.c (hand_function_call): Delete code that handles
9471         BEFORE_TEXT_END and AFTER_TEXT_END.
9472         * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9473         of CALL_DUMMY_LOCATION.
9474         * gdbarch.c: Regenerate.
9475         * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9476         (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9477         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9478         (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9479         (text_end): Delete extern declaration.
9480
9481 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
9482
9483         * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9484         * blockframe.c (backtrace_below_main): Move to "frame.c".
9485         (frame_chain_valid): Delete check for backtrace_below_main.
9486         (_initialize_blockframe): Delete initialization, move ``set
9487         backtrace-below-main'' command to "frame.c".
9488         (do_flush_frames_sfunc): Delete function.
9489         * frame.c: Include "command.h" and "gdbcmd.h".
9490         (frame_type_from_pc): New function.
9491         (create_new_frame): Use frame_type_from_pc.
9492         (legacy_get_prev_frame): New function.
9493         (get_prev_frame): Rewrite.  When an old style frame, call
9494         legacy_get_prev_frame.  Otherwize, unwind the PC first.
9495         (_initialize_frame): Add ``set backtrace-below-main'' command.
9496         * Makefile.in (frame.o): Update dependencies.
9497
9498 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
9499
9500         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9501         DEPRECATED_REGISTERS_INFO.
9502
9503 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
9504
9505         * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9506         Maintainers'.  Update `Various Maintainers'.
9507
9508 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
9509
9510         * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9511         * gdbarch.sh (POP_FRAME): Change to function with predicate.
9512         Suppress actual parameters when `-'.
9513         * gdbarch.h, gdbarch.c: Regenerate.
9514
9515 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
9516
9517         * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9518         code handling dummy frames.
9519
9520 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
9521
9522         * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9523         (struct frame_unwind): Add field pop.
9524         * frame.h (frame_pop): Declare.
9525         * frame.c (frame_saved_regs_pop): New function.
9526         (trad_frame_unwinder): Add frame_saved_regs_pop.
9527         (frame_pop): New function.
9528         * dummy-frame.c (dummy_frame_pop): New function.
9529         (discard_innermost_dummy): New function.
9530         (generic_pop_dummy_frame): Use discard_innermost_dummy.
9531         (dummy_frame_unwind): Add dummy_frame_pop.
9532         * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9533         * valops.c (hand_function_call): Ditto.
9534         * stack.c (return_command): Ditto.
9535
9536 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
9537
9538         * cris-tdep.c: Fix function declaration indentation.
9539         * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9540         * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9541         * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9542         * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9543         * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9544         * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9545
9546 2003-01-18  Michael Chastain  <mec@shout.net>
9547
9548         * README (Unpacking and Installation -- quick overview):
9549         Warn against ".../gdb-5.3/gdb/configure".
9550
9551 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
9552
9553         * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9554         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9555         (struct frame_unwind): Declare opaque.
9556         (dummy_frame_p): Declare function.
9557         * dummy-frame.c (dummy_frame_id_unwind): Make static.
9558         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9559         * dummy-frame.c: Include "frame-unwind.h".
9560         (dummy_frame_p): New function.
9561         (dummy_frame_unwind): New variable.
9562         * frame.c: Include "frame-unwind.h".
9563         (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
9564         to use the new unwind field.
9565         (set_unwind_by_pc): Delete function.
9566         (create_new_frame, get_prev_frame): Set unwind field using
9567         frame_unwind_find_by_pc.
9568         (trad_frame_unwind, trad_frame_unwinder): New variables.
9569         * frame.h (trad_frame_unwind): Declare variable.
9570         (frame_id_unwind_ftype): Delete declaration.
9571         (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
9572         (struct frame_unwind): Declare opaque.
9573         (struct frame_info): Replace the fields id_unwind, pc_unwind and
9574         register_unwind with a single unwind pointer.
9575         * frame-unwind.h, frame-unwind.c: New files.
9576         * Makefile.in (SFILES): Add frame-unwind.c.
9577         (frame_unwind_h): Define.
9578         (COMMON_OBS): Add frame-unwind.o.
9579         (frame-unwind.o): Specify dependencies.
9580         (frame.o, dummy-frame.o): Update dependencies.
9581
9582 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
9583
9584         * ada-valprint.c: Eliminate PTR.
9585         * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
9586         * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
9587         * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
9588         * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
9589         * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
9590         * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
9591         * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
9592
9593 2003-01-17  Andrew Cagney  <ac131313@redhat.com>
9594
9595         * main.c (captured_main): Don't use PTR.
9596         * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
9597         * gdbtypes.c (lookup_primitive_typename): Ditto.
9598         (lookup_struct_elt_type): Ditto.
9599         * f-valprint.c (info_common_command): Ditto.
9600         (list_all_visible_commons): Ditto.
9601         * jv-typeprint.c (java_type_print_base): Ditto.
9602
9603         * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
9604         mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
9605         Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c.  Rename
9606         i386-interix-nat.c and i386-interix-tdep.c.  Rename
9607         m68klinux-nat.c and m68klinux-tdep.c.  Rename
9608         config/mips/tm-linux.h and config/mips/tm-linux64.h.  Rename
9609         bfd/po/.cvsignore and opcodes/po/.cvsignore.  Rename
9610         gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
9611         * main.c (captured_main): Use xfree, not free.
9612
9613 2003-01-16  Andrew Cagney  <ac131313@redhat.com>
9614
9615         * frame.h (frame_id_unwind_ftype): Change type so that the frame's
9616         ID back using a parameter.
9617         * frame.c (frame_id_unwind): Update call.
9618         (frame_saved_regs_id_unwind): Update.
9619         * dummy-frame.c (dummy_frame_id_unwind): Update function.
9620         * dummy-frame.h (struct frame_id): Add opaque declaration.
9621         (dummy_frame_id_unwind): Update declaration.
9622
9623 2003-01-15  Andrew Cagney  <ac131313@redhat.com>
9624
9625         * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
9626
9627 2003-01-15  Stephen P. Smith <ischis2@cox.net>
9628
9629         * MAINTAINERS (Stephen P. Smith): Updated email address.
9630
9631 2003-01-14  Elena Zannoni  <ezannoni@redhat.com>
9632
9633         Fix PR gdb/898
9634         * breakpoint.c (until_break_command): Add new argument.  Use it to
9635         decide whether to stop only at the current frame or not.
9636         * breakpoint.h (until_break_command): Update prototype.
9637         * infcmd.c (until_command): Add new argument to until_break_command
9638         call.
9639         (advance_command): New function.
9640         (_initialize_infcmd): Update help string for 'until' command.
9641         Add new 'advance' command.
9642
9643 2003-01-14  David Carlton  <carlton@math.stanford.edu>
9644
9645         * linespec.c (decode_line_1): Normalize comments.
9646         (set_flags): Ditto.
9647         (locate_first_half): Ditto.
9648         (decode_compound): Ditto.
9649         (symtab_from_filename): Ditto.
9650         (decode_all_digits): Ditto.
9651         (decode_dollar): Ditto.
9652         (find_methods): Ditto.
9653         (find_toplevel_char): Ditto.
9654
9655 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
9656
9657         * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
9658         * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
9659         * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
9660         * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
9661         * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
9662         * language.c, language.h, m32r-tdep.c: Update copyright.
9663         * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
9664         * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
9665         * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
9666         * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
9667         * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9668         * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
9669
9670 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
9671
9672         * stabsread.h (process_later, resolve_cfront_continuation):
9673         Obsolete.
9674         Update copyright years.
9675         * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
9676         Update copyright year.
9677         * dbxread.c(struct cont_elem): Obsolete.
9678         (process_later, process_now): Obsolete functions.
9679         (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
9680         Update copyright year.
9681         * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
9682         (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
9683         * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
9684         (parse_partial_symbols): Obsolete cfront support.
9685         * stabsread.c
9686         (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
9687         macros.
9688         (get_substring, get_cfront_method_physname, msg_unknown_complaint,
9689         read_cfront_baseclasses, read_cfront_member_functions,
9690         resolve_cfront_continuation,read_cfront_static_fields,
9691         copy_cfront_struct_fields): Obsolete functions.
9692         (define_symbol, read_one_struct_field): Obsolete cfront support.
9693         * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
9694         Update Copyright year.
9695
9696 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
9697
9698         * stack.c (print_frame_info, print_stack_frame_base_stub,
9699         print_stack_frame_base, show_and_print_stack_frame_stub,
9700         show_and_print_stack_frame, print_only_stack_frame_stub,
9701         print_only_stack_frame): Delete functions.
9702         (print_stack_frame_stub): Call print_frame_info instead of
9703         print_frame_info_base.
9704         (print_frame_info_base): Rename to print_frame_info.
9705         (backtrace_command_1): Call print_frame_info, instead of
9706         print_frame_info_base.
9707         (current_frame_command): Call print_stack_frame, instead of
9708         print_only_stack_frame.
9709         (frame_command): Call print_stack_frame, instead of
9710         show_and_print_stack_frame.
9711         (up_command): Ditto.
9712         (down_command): Ditto.
9713         * frame.h (print_only_stack_frame): Delete prototype.
9714         * infrun.c (normal_stop): Call print_stack_frame, instead of
9715         show_and_print_stack_frame.
9716         * thread.c (info_threads_command): Call print_stack_frame, instead
9717         of print_only_stack_frame.
9718
9719 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
9720
9721         * README (Graphical interface to GDB): Update URL.  Point at
9722         gdb/links/.
9723
9724         * gdb_indent.sh: Update to version 2.2.9.  Warn when not exact
9725         version match.
9726
9727 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
9728
9729         * symtab.c (find_pc_sect_line): Don't consider end-of-function
9730         lines.
9731
9732 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
9733
9734         * thread-db.c (attach_thread): Prototype.
9735         (struct private_thread_info): Remove lwpid.  Add thread handle (th),
9736         thread information (ti), and valid flags (th_valid, ti_valid).
9737         (attach_thread): Move target_pid_to_str call to after the thread
9738         is added to GDB's list.  Initialize the cache.
9739         (thread_get_info_callback, thread_db_map_id2thr)
9740         (thread_db_get_info): New functions.
9741         (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
9742         (thread_db_store_registers, thread_db_thread_alive)
9743         (thread_db_get_thread_local_address): Use them.
9744         (thread_db_pid_to_str): Likewise.  Return "Missing" instead
9745         of calling error() for threads in unknown state.
9746
9747         (clear_lwpid_callback): New function.
9748         (thread_db_resume): Use it to clear the cache.
9749
9750 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
9751
9752         * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
9753         (resume_callback): Remove dead code.
9754
9755 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
9756
9757         * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
9758         predicate.
9759         * gdbarch.h, gdbarch.c: Regenerate.
9760         * stack.c (frame_info): Only initialize the saved registers when
9761         FRAME_INIT_SAVED_REGS_P.
9762         * frame.c (frame_saved_regs_register_unwind): Assert
9763         FRAME_INIT_SAVED_REGS_P.
9764         (deprecated_generic_get_saved_register): Ditto.
9765
9766 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
9767
9768         * source.c (openp): Squelch warning about "filename".
9769
9770 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
9771
9772         * source.c (openp): If the file does not exist don't necessarily
9773         search the path.
9774
9775 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
9776
9777         Fix PR gdb/872.
9778         * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
9779         (integer_types_same_name_p): New function.
9780         (rank_one_type): Use it.
9781         * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
9782
9783 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
9784
9785         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
9786         variables.
9787         (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
9788         * configure.in: Add --with-sysroot.
9789         * configure: Regenerated.
9790         * main.c (gdb_sysroot): New variable.
9791         (captured_main): Initialize gdb_sysroot.
9792         * defs.h (gdb_sysroot): New extern declaration.
9793         * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
9794
9795 2003-01-12  Michael Chastain  <mec@shout.net>
9796
9797         * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
9798
9799 2003-01-12  Michael Chastain  <mec@shout.net>
9800
9801         * top.c (print_gdb_version): Bump copyright year to 2003.
9802
9803 2003-01-12  David Carlton  <carlton@bactrian.org>
9804
9805         * linespec.c (symtab_from_filename): Rename variable 's' to
9806         'file_symtab'.
9807
9808 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
9809
9810         * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
9811         dummy frame.
9812         (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
9813
9814 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
9815
9816         * d10v-tdep.c: Include "gdb_assert.h".
9817         (d10v_store_return_value): Rewrite to match current interface.
9818         (d10v_extract_struct_value_address): Ditto.
9819         (d10v_extract_return_value): Ditto.
9820         (d10v_gdbarch_init): Set store_restore_value,
9821         extract_struct_value_address and extract_return_value.
9822
9823 2003-01-12  J. Brobecker  <brobecker@gnat.com>
9824
9825         * hpread.c (set_namestring): New procedure replacing the
9826         SET_NAMESTRING macro.
9827         (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
9828         by calls to set_namestring.
9829
9830 2003-01-11  J. Brobecker  <brobecker@gnat.com>
9831
9832         * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
9833         a compilation warning.
9834         (hpread_process_one_debug_symbol): Likewise.
9835
9836 2003-01-10  David Carlton  <carlton@math.stanford.edu>
9837
9838         * linespec.c (decode_line_1): Rename variable 's' to
9839         'file_symtab'.
9840         (decode_all_digits): Rename argument 's' to 'file_symtab'.
9841         (decode_dollar): Ditto.
9842         (decode_variable): Ditto.
9843         (symbol_found): Ditto.
9844
9845 2003-01-09  Michael Chastain  <mec@shout.net>
9846
9847         * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
9848
9849 2003-01-07  Corinna Vinschen  <vinschen@redhat.com>
9850
9851         * win32-nat.c (set_process_privilege): New function.
9852         (child_attach): Call set_process_privilege() to enable the
9853         SE_DEBUG_NAME user privilege if available in process token.
9854
9855 2003-01-10  J. Brobecker  <brobecker@gnat.com>
9856
9857         * hpread.c (hpread_process_one_debug_symbol): Fix a small
9858         compilation error in the previous revision.
9859
9860 2003-01-09  David Carlton  <carlton@math.stanford.edu>
9861
9862         * linespec.c: Update copyright.
9863
9864 2003-01-09  Daniel Jacobowitz  <drow@mvista.com>
9865
9866         * lin-lwp.c (child_wait): Ignore exit statuses for processes other
9867         than inferior_ptid.
9868         (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
9869
9870 2003-01-09  Andrew Cagney  <ac131313@redhat.com>
9871
9872         * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
9873         Update comments.
9874         * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
9875         (frame_saved_regs_zalloc): Update.
9876         (frame_saved_regs_register_unwind): Update.
9877         (create_new_frame): Update.
9878         (get_prev_frame): Update.
9879         (frame_extra_info_zalloc): Update.
9880         (deprecated_get_frame_saved_regs): Update.
9881         * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
9882         * cris-tdep.c: Update comment.
9883
9884         * somsolib.h: Fix function indentation.
9885         * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
9886         * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
9887         * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
9888         * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
9889         * somsolib.c, inftarg.c: Remove assignment in if conditional.
9890
9891         * infrun.c (follow_fork): Use ISO C definition.
9892         * expprint.c (print_subexp): Use xfree instead of free.
9893         * charset.c: Include "gdb_string.h" instead of <string.h>.
9894         (register_iconv_charsets): Use ISO C definition.
9895         (host_charset, target_charset): Ditto.
9896         * Makefile.in (charset.o): Update dependencies.
9897         (mi-cmd-env.o): Update dependencies.
9898
9899 2003-01-08  Andrew Cagney  <cagney@redhat.com>
9900
9901         * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
9902         get_frame_base.
9903
9904 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
9905
9906         * gdb_mbuild.sh: Add --keep option.  When specified, keep the
9907         build directories.  Save edited gdb output in Mbuild.log.  If a
9908         build fails, remove any final GDB executable.
9909
9910 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
9911
9912         * gdb_mbuild.sh: Edit the output of `maint print architecture'
9913         replacing hex constants with function names and stripping leading
9914         file name directory prefixes.
9915
9916 2003-01-08  Andrew Cagney  <cagney@redhat.com>
9917
9918         * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
9919         get_frame_base.
9920
9921 2003-01-08  David Carlton  <carlton@math.stanford.edu>
9922
9923         * linespec.c (decode_line_1): Move code into decode_variable.
9924         (decode_variable): New function.
9925
9926 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
9927
9928         * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
9929
9930 2003-01-08  Andrew Cagney  <cagney@redhat.com>
9931
9932         * cris-tdep.c (cris_frame_init_saved_regs): Use
9933         get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
9934         saved_regs buffer.
9935         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9936         (sh64_nofp_frame_init_saved_regs): Ditto.
9937         (sh_fp_frame_init_saved_regs): Ditto.
9938         * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
9939         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
9940         * mcore-tdep.c (analyze_dummy_frame): Ditto.
9941         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9942
9943 2003-01-08  Daniel Jacobowitz  <drow@mvista.com>
9944
9945         * minsyms.c (lookup_minimal_symbol): Update comment.
9946         (lookup_minimal_symbol_text): Update comment.  Use the hash table.
9947         (lookup_minimal_symbol_solib_trampoline): Likewise.
9948
9949 2003-01-08  Andrew Cagney  <cagney@redhat.com>
9950
9951         * d10v-tdep.c (d10v_init_extra_frame_info): Use
9952         frame_relative_level.
9953
9954         * alpha-tdep.c: Use get_frame_extra_info.
9955         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9956         * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
9957         * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
9958         * sparc-tdep.c, xstormy16-tdep.c: Ditto.
9959
9960         * alpha-tdep.c: Use get_next_frame.
9961         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9962         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
9963         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
9964         * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
9965         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
9966         * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
9967         * xstormy16-tdep.c: Ditto.
9968
9969 2003-01-07  Andrew Cagney  <cagney@redhat.com>
9970
9971         * alpha-tdep.c: Use get_frame_base.
9972         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9973         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
9974         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
9975         * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
9976         * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
9977         * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
9978         * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
9979         * config/sparc/tm-sparc.h: Ditto.
9980
9981 2003-01-07  Andrew Cagney  <cagney@redhat.com>
9982
9983         * frame.c (deprecated_get_frame_context): New function.
9984         (deprecated_set_frame_context): New function.
9985         * frame.h (deprecated_get_frame_context): Declare.
9986         (deprecated_set_frame_context): Declare.
9987         * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
9988         (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
9989
9990 2003-01-07  Andrew Cagney  <cagney@redhat.com>
9991
9992         * frame.c (deprecated_set_frame_next_hack): New function.
9993         (deprecated_set_frame_prev_hack): New function.
9994         * frame.h (deprecated_set_frame_next_hack): Declare.
9995         (deprecated_set_frame_prev_hack): Declare.
9996         * mcore-tdep.c (analyze_dummy_frame): Use
9997         deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
9998         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9999
10000 2003-01-07  David Carlton  <carlton@math.stanford.edu>
10001
10002         * linespec.c (decode_line_1): Move code into decode_dollar.
10003         (decode_dollar): New function.
10004
10005 2003-01-07  Andrew Cagney  <cagney@redhat.com>
10006
10007         * arm-tdep.c (arm_init_extra_frame_info): Use
10008         deprecated_update_frame_base_hack.
10009         * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10010         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10011         (fix_frame_pointer): Ditto.
10012         (mn10300_analyze_prologue): Ditto.
10013
10014 2003-01-07  Andrew Cagney  <cagney@redhat.com>
10015
10016         * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10017         extra_info using frame_extra_info_zalloc.
10018         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10019         * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10020         (sh64_init_extra_frame_info): Ditto.
10021         * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10022         * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10023         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10024         * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10025         * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10026         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10027         * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10028         * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10029         * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10030         * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10031         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10032         * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10033
10034         * mn10300-tdep.c (analyze_dummy_frame): Use
10035         deprecated_set_frame_extra_info_hack.
10036         * mcore-tdep.c (analyze_dummy_frame): Ditto.
10037
10038 2003-01-07  J. Brobecker  <brobecker@gnat.com>
10039
10040         * mdebugread.c (parse_symbol): Skip stProc entries which storage
10041         class is not scText. These do not define "real" procedures.
10042         (parse_partial_symbols): Likewise.
10043
10044 2003-01-06  Michael Snyder  <msnyder@redhat.com>
10045
10046         * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10047
10048 2003-01-06  Andrew Cagney  <ac131313@redhat.com>
10049
10050         * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10051         * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10052         * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10053         deprecated_frame_xmalloc_with_cleanup.
10054         * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10055         deprecated_frame_xmalloc.
10056         * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10057         * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10058
10059 2003-01-06  Andrew Cagney  <cagney@redhat.com>
10060
10061         * x86-64-linux-tdep.c: Include "osabi.h".
10062         * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10063
10064         * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10065
10066 2003-01-06  Andrew Cagney  <cagney@redhat.com>
10067
10068         * MAINTAINERS (Target Instruction Set Architectures): Update
10069         arm-elf.  Can be built with -Werror, has been multiarched.
10070
10071         * value.h (unpack_long): Make buffer parameter constant.
10072         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10073         * scm-lang.h (scm_parse): Ditto.
10074         * defs.h (extract_typed_address, extract_address): Ditto.
10075         (extract_long_unsigned_integer): Ditto.
10076         * inferior.h (unsigned_pointer_to_address): Ditto.
10077         (signed_pointer_to_address): Ditto.
10078         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10079         * gdbarch.h, gdbarch.c: Regenerate.
10080         * findvar.c (extract_long_unsigned_integer): Update.
10081         (extract_address): Update.
10082         (extract_typed_address): Update.
10083         (unsigned_pointer_to_address): Update.
10084         * values.c (unpack_long): Update.
10085         (unpack_double): Update.
10086         (unpack_pointer): Update.
10087         (unpack_field_as_long): Update.
10088         * d10v-tdep.c (d10v_pointer_to_address): Update.
10089         * avr-tdep.c (avr_pointer_to_address): Update.
10090         * scm-lang.c (scm_unpack): Update.
10091         * findvar.c (signed_pointer_to_address): Update.
10092
10093 2003-01-06  Michal Ludvig  <mludvig@suse.cz>
10094
10095         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10096         since it is in i386-tdep.c.
10097
10098 2003-01-06  J. Brobecker  <brobecker@gnat.com>
10099
10100         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10101         failure introduced in the previous change.
10102
10103 2003-01-05  Michael Chastain  <mec@shout.net>
10104
10105         * README: Remove references to deleted remote-*.c files:
10106         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10107         remote-nrom.c, remote-os9k.c, remote-udi.c.
10108
10109 2003-01-05  Mark Kettenis  <kettenis@gnu.org>
10110
10111         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10112         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10113         i386_get_longjmp_target.
10114
10115 2003-01-05  Andrew Cagney  <ac131313@redhat.com>
10116
10117         * arm-tdep.c (prologue_cache): Change to a pointer.
10118         (_initialize_arm_tdep): Allocate prologue_cache.
10119         (check_prologue_cache): Update.
10120         (save_prologue_cache): Update.
10121         (arm_gdbarch_init): Update.
10122
10123 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
10124
10125         * stabsread.c (update_method_name_from_physname): Call complaint()
10126         instead of error.
10127
10128 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
10129
10130         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
10131         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10132         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10133
10134         * blockframe.c: Include "gdbcmd.h" and "command.h".
10135         (backtrace_below_main): New variable.
10136         (file_frame_chain_valid, func_frame_chain_valid)
10137         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10138         (generic_func_frame_chain_valid): Remove functions.
10139         (frame_chain_valid, do_flush_frames_sfunc): New functions.
10140         (_initialize_blockframe): New function.
10141         * Makefile.in (blockframe.o): Update dependencies.
10142         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10143         comment.  Call frame_chain_valid ().
10144         * frame.h: Remove old prototypes.  Add prototype for
10145         frame_chain_valid and update comments to match.
10146         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10147         Remove old comment.
10148         * gdbarch.h: Regenerated.
10149         * gdbarch.c: Regenerated.
10150
10151         * alpha-tdep.c (alpha_gdbarch_init): Don't call
10152         set_gdbarch_frame_chain_valid.
10153         * avr-tdep.c (avr_gdbarch_init): Likewise.
10154         * cris-tdep.c (cris_gdbarch_init): Likewise.
10155         * frv-tdep.c (frv_gdbarch_init): Likewise.
10156         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10157         * i386-tdep.c (i386_svr4_init_abi): Likewise.
10158         (i386_nw_init_abi): Likewise.
10159         (i386_gdbarch_init): Likewise.
10160         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10161         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10162         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10163         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10164         * mips-tdep.c (mips_gdbarch_init): Likewise.
10165         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10166         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10167         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10168         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10169         * s390-tdep.c (s390_gdbarch_init): Likewise.
10170         * sh-tdep.c (sh_gdbarch_init): Likewise.
10171         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10172         * v850-tdep.c (v850_gdbarch_init): Likewise.
10173         * vax-tdep.c (vax_gdbarch_init): Likewise.
10174         * x86-64-tdep.c (x86_64_init_abi): Likewise.
10175
10176         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10177         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10178         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10179         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10180         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10181         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10182         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10183         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10184
10185 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
10186
10187         * Makefile.in (acconfig_h): Remove incorrect macro.
10188         (config_h): Define.
10189         (osabi.o): Update dependencies.
10190         * configure.tgt: Set gdb_osabi based on target triplet.
10191         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10192         * configure: Regenerated.
10193         * config.in: Regenerated.
10194         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10195         (GDB_OSABI_DEFAULT): Define if not already defined.
10196         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10197         (set_osabi_string): New variables.
10198         (gdbarch_register_osabi): Add new OS ABI to
10199         gdb_osabi_available_names.
10200         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10201         (set_osabi, show_osabi): New functions.
10202         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10203
10204 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
10205
10206         * arch-utils.c (gdbarch_info_init): Set osabi to
10207         GDB_OSABI_UNINITIALIZED.
10208         * gdbarch.sh: Add osabi to struct gdbarch and to struct
10209         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
10210         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10211         * gdbarch.c: Regenerated.
10212         * gdbarch.h: Regenerated.
10213         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10214         there's no BFD.
10215         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10216         * osabi.h (enum gdb_osabi): Move to defs.h.
10217         (gdbarch_init_osabi): Update prototype.
10218         * defs.h (enum gdb_osabi): Moved here.
10219         * Makefile.in: Update dependencies.
10220
10221         * alpha-tdep.h: Don't include "osabi.h".
10222         (struct gdbarch_tdep): Remove osabi member.
10223         * alpha-tdep.c: Include "osabi.h".
10224         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
10225         iterate over arches.  Update call to gdbarch_init_osabi.
10226         (alpha_dump_tdep): Don't dump osabi.
10227         * alpha-linux-tdep.c: Include "osabi.h".
10228         * alpha-osf1-tdep.c: Include "osabi.h".
10229         * alphafbsd-tdep.c: Include "osabi.h".
10230         * alphanbsd-tdep.c: Include "osabi.h".
10231
10232         * arm-tdep.h: Don't include "osabi.h".
10233         (struct gdbarch_tdep): Remove osabi member.
10234         * arm-tdep.c: Include "osabi.h".
10235         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
10236         iterate over arches.  Update call to gdbarch_init_osabi.
10237         (arm_dump_tdep): Don't dump osabi.
10238         * arm-linux-tdep.c: Include "osabi.h".
10239         * armnbsd-tdep.c: Include "osabi.h".
10240
10241         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10242         Update call to gdbarch_init_osabi.
10243
10244         * i386-tdep.h: Don't include "osabi.h".
10245         (struct gdbarch_tdep): Remove osabi member.
10246         * i386-tdep.c: Include "osabi.h".
10247         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
10248         iterate over arches.  Update call to gdbarch_init_osabi.
10249         (i386_dump_tdep): Don't dump osabi.
10250         * i386-linux-tdep.c: Include "osabi.h".
10251         * i386-sol2-tdep.c: Include "osabi.h".
10252         * i386bsd-tdep.c: Include "osabi.h".
10253         * i386gnu-tdep.c: Include "osabi.h".
10254         * i386ly-tdep.c: Include "osabi.h".
10255         * i386nbsd-tdep.c: Include "osabi.h".
10256         * i386obsd-tdep.c: Include "osabi.h".
10257
10258         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10259         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
10260         check osabi when iterating over arches.  Update call to
10261         gdbarch_init_osabi.
10262         (mips_dump_tdep): Don't dump osabi.
10263
10264         * ns32k-tdep.h: Don't include "osabi.h".
10265         (struct gdbarch_tdep): Remove.
10266         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10267         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
10268         allocate tdep.  Update call to gdbarch_init_osabi.
10269         (ns32k_dump_tdep): Remove.
10270         (_initialize_ns32k_tdep): Update call to gdbarch_register.
10271         * ns32knbsd-tdep.c: Include "osabi.h".
10272
10273         * ppc-tdep.h: Don't include "osabi.h".
10274         (struct gdbarch_tdep): Remove osabi member.
10275         * rs6000-tdep.c: Include "osabi.h".
10276         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
10277         osabi when iterating over arches.  Update call to
10278         gdbarch_init_osabi.
10279         (rs6000_dump_tdep): Don't dump osabi.
10280         * ppc-linux-tdep.c: Include "osabi.h".
10281         * ppcnbsd-tdep.c: Include "osabi.h".
10282
10283         * sh-tdep.h: Don't include "osabi.h".
10284         (struct gdbarch_tdep): Remove osabi member.
10285         * sh-tdep.c: Include "osabi.h".
10286         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
10287         iterate over arches.  Update call to gdbarch_init_osabi.
10288         (sh_dump_tdep): Don't dump osabi.
10289         * shnbsd-tdep.c: Include "osabi.h".
10290
10291         * sparc-tdep.c: Include "osabi.h".
10292         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
10293         iterate over arches.  Update call to gdbarch_init_osabi.
10294         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
10295         tdep structure.
10296
10297         * vax-tdep.h: Don't include "osabi.h".
10298         (struct gdbarch_tdep): Remove.
10299         * vax-tdep.c: Include "osabi.h".
10300         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
10301         iterate over arches.  Don't allocate tdep.  Update call
10302         to gdbarch_init_osabi.
10303         (vax_dump_tdep): Remove.
10304         (_initialize_vax_tdep): Update call to gdbarch_register.
10305
10306 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
10307
10308         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10309         entirely.
10310         (breakpoint_re_set_one): Don't fetch the value for a disabled
10311         watchpoint.
10312
10313 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
10314
10315         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10316         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10317         (COERCE_FLOAT_TO_DOUBLE): Remove.
10318         * gdbarch.c: Regenerate.
10319         * gdbarch.h: Regenerate.
10320         * Makefile.in: Remove value_h from gdbarch_h.
10321         * valops.c (coerce_float_to_double): New variable.
10322         (default_coerce_float_to_double): Remove.
10323         (standard_coerce_float_to_double): Remove.
10324         (value_arg_coerce): Use coerce_float_to_double.
10325         (_initialize_valops): Add "set coerce-float-to-double".
10326         * value.h (default_coerce_float_to_double): Remove prototype.
10327         (standard_coerce_float_to_double): Remove prototype.
10328
10329         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10330         prototyped.
10331         * mdebugread.c (parse_symbol): Likewise.
10332         * stabsread.c (define_symbol): Mark all functions as prototyped.
10333
10334         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10335         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10336         set_gdbarch_coerce_float_to_double.
10337         * arm-tdep.c (arm_gdbarch_init): Likewise.
10338         * frv-tdep.c (frv_gdbarch_init): Likewise.
10339         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10340         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10341         * mips-tdep.c (mips_gdbarch_init): Likewise.
10342         (mips_coerce_float_to_double): Remove.
10343         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10344         (rs6000_coerce_float_to_double): Remove.
10345         * s390-tdep.c (s390_gdbarch_init): Likewise.
10346         * sh-tdep.c (sh_gdbarch_init): Likewise.
10347         (sh_coerce_float_to_double): Remove.
10348         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10349         (sparc_coerce_float_to_double): Remove.
10350         * v850-tdep.c (v850_gdbarch_init): Likewise.
10351         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10352         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10353         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10354         (hppa_coerce_float_to_double): Remove prototype.
10355         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10356
10357 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
10358
10359         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10360
10361 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
10362
10363         Suggested by Stewart Brown <sb24@avaya.com>:
10364         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10365         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
10366         (c_type_print_varspec_suffix): Likewise.
10367
10368 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
10369
10370         * configure.in: Don't set and AC_SUBST SUBDIRS.
10371         * configure: Regenerated.
10372
10373         * configure.in: Remove code dealing with shared libraries.
10374         * Makefile.in: Remove HLDFLAGS and HLDENV.
10375         * configure: Regenerated.
10376
10377 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
10378
10379         * frame.c (deprecated_frame_xmalloc): New function.
10380         (deprecated_set_frame_saved_regs_hack): New function.
10381         (deprecated_set_frame_extra_info_hack): New function.
10382         * frame.h (deprecated_frame_xmalloc): Declare.
10383         (deprecated_set_frame_saved_regs_hack): Declare.
10384         (deprecated_set_frame_extra_info_hack): Declare.
10385
10386 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
10387
10388         * configure.in: Move code that provides the --enable-gdbtk option
10389         right after the code that handles the --enable-tui option, and
10390         polish it somewhat.
10391         * configure: Regenerated.
10392
10393         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
10394         AC_CHECK_FUNCS and remove the old check for pread64.
10395         * acinclude.m4 (AC_GNU_SOURCE): New macro.
10396         * acconfig.h (_GNU_SOURCE): Add.
10397         (HAVE_PREAD64): Remove.
10398         * configure, aclocal.m4, config.in: Regenerated.
10399
10400 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
10401
10402         * alpha-tdep.c: Use get_frame_saved_regs.
10403         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10404         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10405         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10406         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10407         * vax-tdep.c, xstormy16-tdep.c: Ditto.
10408
10409 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
10410
10411         * configure.in: Remove all use of the SUBDIRS variable; add
10412         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
10413         code providing the --enable-multi-ice option, and move it right in
10414         front of the code that checks whether gdbserver is supported.
10415         Polish that too.
10416         * configure: Regenerated.
10417         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10418         @SUBDIRS@.
10419
10420 2003-01-03  Andrew Cagney  <cagney@redhat.com>
10421
10422         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10423         * avr-tdep.c, cris-tdep.c: Ditto.
10424         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10425         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10426
10427 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
10428
10429         * configure.in: Remove --enable-netrom option.
10430         * configure: Regenerated.
10431
10432 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
10433
10434         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10435         declaration for `struct re_pattern_buffer' instead.
10436         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10437
10438 2003-01-03  J. Brobecker  <brobecker@gnat.com>
10439
10440         * mdebugread.c (parse_symbol): Count until the stEnd matching
10441         the structure name.
10442
10443 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
10444
10445         * configure.in: Remove --with-cpu option.
10446         subscripts.  Remove evil changequotes here.
10447         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10448         * config.in, configure: Regenerated.
10449
10450         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10451         * configure.in: Cleanup section that sources GDB and BFD configure
10452         subscripts.  Remove evil changequotes here.
10453         * config.in, configure: Regenerated.
10454
10455 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
10456
10457         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10458         frame accessor methods.
10459         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10460         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10461         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10462         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10463         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10464         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10465         * z8k-tdep.c: Ditto.
10466
10467 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
10468
10469         * configure.in: Remove UI_OUT configuration code.
10470         * ada-lang.c: Update assuming UI_OUT is always true.
10471         * Makefile.in (UIOUT_CFLAGS): Remove.
10472         * configure: Regenerated.
10473         * TODO: Remove blurb about elimination of -DUI_OUT.
10474
10475         * configure.in: Move code that provides the --enable-gdbcli,
10476         --enable-gdbmi options right before the code that handles the
10477         --enable-tui option.  Polish a bit.
10478         * configure: Regenerated.
10479
10480         * configure.in: Rewrite check for GNU regex and the
10481         --without-included regex option, and move it into the "Checks for
10482         library functions" section.  This makes us use the system regex
10483         again by default on systems with version 2 of the GNU C library.
10484         This was apparently broken.
10485         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10486         * acconfig.h (USE_INCLUDED_REGEX): Remove.
10487         * config.in, configure: Regenerated.
10488
10489         * configure.in: Move code that provides the --enable-tui option
10490         before the "Checks for libraries" section.  Polish the code
10491         somewhat and set need_curses to yes if we build the TUI.  Rewrite
10492         code that looks for a library providing termcap functionality to
10493         match more closely what's done in the Readline library, and move
10494         it into to the "Checks for libraries" section.
10495         * configure: Regenerated.
10496         * Makefile.in (TERMCAP): Remove variable.
10497         * config/i386/go32.mh (TERMCAP): Remove variable.
10498
10499 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
10500
10501         * MAINTAINERS: Mention gdb_mbuild.sh.
10502         * gdb_mbuild.sh: Rewrite.
10503
10504 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
10505
10506         * configure.in: Fix typo in last change.
10507         * config.in, configure: Regenerated.
10508
10509 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
10510
10511         * valarith.c (value_binop): Delete obsolete code and comments.
10512         * configure.host: Ditto.
10513         * buildsym.h (make_blockvector): Ditto.
10514         * buildsym.c (make_blockvector): Ditto.
10515         * defs.h (enum language): Ditto.
10516         (chill_demangle): Ditto.
10517         * elfread.c (elf_symtab_read): Ditto.
10518         * dwarfread.c (CHILL_PRODUCER): Ditto.
10519         (set_cu_language): Ditto.
10520         (handle_producer): Ditto.
10521         * expprint.c (print_subexp): Ditto.
10522         * gdbtypes.c (chill_varying_type): Ditto.
10523         * gdbtypes.h (builtin_type_chill_bool): Ditto.
10524         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10525         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10526         (chill_varying_type): Ditto.
10527         * language.h (_LANG_chill): Ditto.
10528         * language.c (binop_result_type, integral_type): Ditto.
10529         (character_type, string_type, structured_type): Ditto.
10530         (lang_bool_type, binop_type_check): Ditto.
10531         * stabsread.h (os9k_stabs): Ditto.
10532         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10533         (define_symbol, read_type, read_struct_fields): Ditto.
10534         (read_array_type, read_enum_type, read_huge_number): Ditto.
10535         (read_range_type, start_stabs): Ditto.
10536         * symfile.c (init_filename_language_table): Ditto.
10537         (add_psymbol_with_dem_name_to_list): Ditto.
10538         * symtab.c (symbol_init_language_specific): Ditto.
10539         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10540         * symtab.h (struct general_symbol_info): Ditto.
10541         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10542         * typeprint.c (typedef_print): Ditto.
10543         * utils.c (fprintf_symbol_filtered): Ditto.
10544         * valops.c (value_cast, search_struct_field, value_slice): Delete
10545         obsolete code.
10546         (varying_to_slice): Delete function.
10547         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10548         (varying_to_slice): Delete declaration.
10549         * MAINTAINERS: Update.
10550
10551 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
10552
10553         * configure.in: Reorganize "Checks for library functions section"
10554         a bit.  Remove check for `btowc' and `isascii' functions.
10555         * configure: Regenerated.
10556
10557         * acconfig.h (_MSE_INT_H): Remove.
10558         * configure.in: Create "Checks for header files" section, and move
10559         appropriate tests there.  Don't check for objlist.h, wchar.h,
10560         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
10561         misdetection fix.  Also add "Checks for types", "Checks for
10562         compiler characteristics" and "Checks for library functions"
10563         sections.
10564         * config.in, configure: Regenerated.
10565
10566         * configure.in: Create "Checks for programs" section, and move
10567         appropriate tests there.
10568
10569 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
10570
10571         * configure.in: Create "Checks for libraries" section, and move
10572         appropriate tests there.  Cleanup check for wctype in libw.  Use
10573         AC_SEARCH_LIBS to see whether we need libsocket.
10574         * configure: Regenerated.
10575
10576 For older changes see ChangeLog-2002
10577 \f
10578 Local Variables:
10579 mode: change-log
10580 left-margin: 8
10581 fill-column: 74
10582 version-control: never
10583 End: