2003-08-21 Michael Chastain <mec@shout.net>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-08-21 Michael Chastain <mec@shout.net>
2
3 * symtab.h: Add doco on the space critical structures and
4 some measurements of space usage.
5
6 2003-08-21 Michael Snyder <msnyder@redhat.com>
7
8 * tracepoint.c (trace_dump_command): Trace break address
9 is subject to DECR_PC_AFTER_BREAK.
10 (set_traceframe_context): Make "trace_line" an int.
11 Fixes suggested by Mark Newman <mark.newman@lmco.com>
12
13 2003-08-20 Michael Snyder <msnyder@redhat.com>
14
15 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
16 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
17 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
18 argument passing.
19 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
20 functions, replace sh_push_dummy_call.
21 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
22
23 2003-08-20 Michael Chastain <mec@shout.net>
24
25 * gdbtypes.h (struct main_type): Rearrange to save space.
26
27 2003-08-20 Michael Snyder <msnyder@redhat.com>
28
29 * trad-frame.c: Comment typo fix.
30
31 2003-08-20 Michael Snyder <msnyder@redhat.com>
32 Kevin Buettner <kevinb@redhat.com>
33
34 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
35 (frv_frame_init_saved_regs): Add declaration.
36 (frame_extra_info): Add new field ``saved_regs''.
37 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
38 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
39 Update frame related code.
40 (frv_extract_struct_value_address): Adjust formatting.
41 * Makefile.in (frv-tdep.o): Update dependencies.
42 * config/frv/tm-frv.h (target_insert_watchpoint)
43 (target_remove_watchpoint, target_insert_hw_breakpoint)
44 (target_remove_hw_breakpoint): Delete these macros.
45 (remote_insert_watchpoint, remote_remove_watchpoint)
46 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
47 these declarations.
48
49 2003-08-20 Michael Chastain <mec@shout.net>
50
51 * defs.h (ENUM_BITFIELD): New macro.
52 * symtab.h (ENUM_BITFIELD): Use it.
53 (BYTE_BITFIELD): Remove old macro, which was already disabled.
54
55 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
56
57 * MAINTAINERS (write after approval): Add myself.
58
59 2003-08-18 Andrew Cagney <cagney@redhat.com>
60
61 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
62 * gdbarch.h, gdbarch.c: Re-generate.
63 * infcall.c (call_function_by_hand): Adjust the SP by
64 frame_red_zone_size before allocating any stack space.
65 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
66 * x86-64-tdep.c (x86_64_frame_align): New function.
67 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
68
69 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
70 Remove code adjusting SP so that it skips over the Red Zone.
71
72 2003-08-18 Mark Kettenis <kettenis@gnu.org>
73
74 * NEWS (New native configurations): Mention FreeBSD/amd64.
75
76 2003-08-18 Andrew Cagney <cagney@redhat.com>
77
78 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
79 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
80 "m68k_frame_p".
81 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
82
83 2003-08-18 Mark Kettenis <kettenis@gnu.org>
84
85 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
86
87 2003-08-18 Michal Ludvig <mludvig@suse.cz>
88
89 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
90 Define.
91 * i386-linux-nat.c: Include "linux-nat.h".
92 (child_post_startup_inferior): New function.
93
94 2003-08-18 Mark Kettenis <kettenis@gnu.org>
95
96 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
97 at the start of a frameless function. This probably fixes PR
98 backtrace/1338.
99
100 2003-08-17 Michael Chastain <mec@shout.net>
101
102 * symfile.c (find_sym_fns): Remove special case for apollo target.
103
104 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
105
106 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
107 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
108 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
109 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
110 (linux_supports_tracevforkdone): New function.
111 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
112 TRACEVFORKDONE.
113 (child_follow_fork): Handle vfork.
114 (linux_handle_extended_wait): Likewise. Also handle exec.
115 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
116 * NEWS: Mention fork tracing.
117
118 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
119
120 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
121
122 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
123
124 * Makefile.in (i386-linux-nat.o): Update dependencies.
125 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
126 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
127 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
128 * i386-linux-nat.c: Include "linux-nat.h".
129 (child_post_startup_inferior): New function.
130 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
131 * infptrace.c (kill_inferior): Wrap in #ifdef.
132 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
133 attaching to each LWP.
134 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
135 (init_lin_lwp_ops): Fill in some more operations.
136 * linux-nat.h (linux_enable_event_reporting)
137 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
138 prototypes.
139 * linux-nat.c (linux_enable_event_reporting): New function.
140 (child_post_attach, linux_child_post_startup_inferior)
141 (child_post_startup_inferior, child_follow_fork)
142 (linux_handle_extended_wait, kill_inferior): New functions.
143
144 2003-08-16 Andrew Cagney <cagney@redhat.com>
145
146 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
147 * gdbarch.h, gdbarch.c: Re-generate.
148
149 2003-08-16 Mark Kettenis <kettenis@gnu.org>
150
151 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
152
153 2003-08-16 Andrew Cagney <cagney@redhat.com>
154
155 * NEWS: Mention that "set prompt-escape-char" was deleted.
156 * top.c (get_prompt_1): Delete function.
157 (gdb_prompt_escape):
158 (init_main): Do not clear "gdb_prompt_escape". Delete "set
159 prompt-escape-char" command.
160 (MAX_PROMPT_SIZE): Delete macro.
161 (get_prompt): Simplify, do not call get_prompt_1.
162
163 2003-08-16 Andrew Cagney <cagney@redhat.com>
164
165 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
166 -Werror. -Wformat-nonliteral problems.
167
168 2003-08-15 J. Brobecker <brobecker@gnat.com>
169
170 Further multiarching work mostly for hppa64-*-hpux11:
171 * hppa-tdep.h: New file.
172 * hppa-tdep.c: #include hppa-tdep.c.
173 (hppa32_num_regs): Renamed from hppa_num_regs.
174 (hppa64_num_regs): New constant.
175 (hppa64_call_dummy_breakpoint_offset): New constant.
176 (hppa32_call_dummy_length): New constant.
177 (hppa64_call_dummy_length): New constant.
178 (hppa32_stack_align): Make name 32bit explicit.
179 (hppa32_register_virtual_type): Likewise.
180 (hppa32_extract_return_value): Likewise.
181 (hppa32_use_struct_convention): Likewise.
182 (hppa32_store_return_value): Likewise.
183 (hppa64_register_virtual_type): New function.
184 (hppa64_extract_return_value): New function.
185 (hppa64_use_struct_convention): New function.
186 (hppa64_store_return_value): New function.
187 (hppa_frame_locals_address): Remove declaration, function does
188 not exist anymore.
189 (hppa_register_byte): Add support for PA64 ABI.
190 (hppa_gdbarch_init): Add support for PA64 ABI.
191 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
192 Make name 32bit explicit.
193 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
194 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
195 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
196 (hppa64_hpux_frame_base_before_sigtramp): New function.
197 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
198 * config/pa/tm-hppa64.h: Remove macros that are no longer
199 necessary now that the gdbarch vector is properly setup.
200 Transform some macros into function calls. Some minor cleanup.
201 * config/pa/tm-hppah.h: Update function calls in macros
202 following the function renaming in hppa-hpux-tdep.c.
203 * Makefile.in (hppa_tdep_h): New variable.
204 (hppa-tdep.o): Add dependency over hppa_tdep_h.
205
206 2003-08-14 Michael Snyder <msnyder@redhat.com>
207
208 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
209
210 2003-08-13 J. Brobecker <brobecker@gnat.com>
211
212 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
213 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
214 routine.
215
216 2003-08-13 Michael Snyder <msnyder@redhat.com>
217
218 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
219 (frv_saved_pc_after_call): Use deprecated ftype.
220 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
221 (frv_remote_translate_xfer_address): Remove.
222 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
223
224 2003-08-13 J. Brobecker <brobecker@gnat.com>
225
226 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
227 initialization after the common gdbarch initialization, not before.
228
229 2003-08-13 J. Brobecker <brobecker@gnat.com>
230
231 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
232 (ADDR_BITS_REMOVE): Remove, redundant.
233
234 2003-08-13 J. Brobecker <brobecker@gnat.com>
235
236 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
237 gdbarch method to clear the 2 low bits of text addresses.
238
239 2003-08-12 Andrew Cagney <cagney@redhat.com>
240
241 * Makefile.in (dsrec.o): Update dependencies.
242 * dsrec.c: Include "gdb_assert.h".
243 (make_srec): Use snprintf instead of sprintf, use a literal format
244 string.
245
246 2003-08-12 Andrew Cagney <cagney@redhat.com>
247
248 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
249 FRAME_OBSTACK_ZALLOC.
250
251 2003-08-12 Kevin Buettner <kevinb@redhat.com>
252
253 * i386-tdep.c (i386_gdbarch_init): Enable default support for
254 SSE registers.
255
256 2003-08-10 Mark Kettenis <kettenis@gnu.org>
257
258 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
259 amd64fbsd_sc_reg_offset): Add extern declarations.
260 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
261 declarations.
262
263 2003-08-11 Ben Elliston <bje@wasabisystems.com>
264
265 * MAINTAINERS (write after approval): Update my mail address.
266
267 2003-08-10 Andrew Cagney <cagney@redhat.com>
268
269 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
270
271 2003-08-10 Mark Kettenis <kettenis@gnu.org>
272
273 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
274 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
275 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
276 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
277 i386bsd_sc_reg_offset): Add extern declarations.
278 * i386obsd-nat.c: Include "i386-tdep.h"
279 (_initialize_i386obsd_nat): Remove extern declarations.
280 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
281 declarations.
282 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
283 declarations.
284
285 * i386-tdep.c (i386_register_to_value): Use get_frame_register
286 instead of frame_read_register.
287 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
288 instead of frame_read_register. Use I386_ESP_REGNUM instead of
289 SP_REGNUM.
290 (i386_frame_prev_register): Use frame_unwind_register_unsigned
291 instead of frame_unwind_unsigned_register. Use
292 I386_EFLAGS_REGISTER instead of PS_REGNUM.
293 (i386_get_longjmp_target): Use regcache_read_unsigned_register
294 instead of read_register. Use builtin_type_void_data_ptr instead
295 of builtin_type_void_func_ptr when extracting the address of the
296 jmp_buf.
297 (i386_extract_return_value, i386_store_return_value,
298 i386_pseudo_register_read, i386_pseudo_register_write): Use
299 register_size instead REGISTER_RAW_SIZE.
300
301 2003-08-10 Andrew Cagney <cagney@redhat.com>
302
303 * infcall.c (call_function_by_hand): Use xstrprintf instead of
304 sprintf. Make "name" constant.
305
306 2003-08-10 Mark Kettenis <kettenis@gnu.org>
307
308 * i387-tdep.c (i387_register_to_value): Use get_frame_register
309 instead of frame_read_register.
310 (i387_print_float_info): Use get_frame_register and
311 get_frame_register_unsigned instead of frame_register_read.
312
313 * i386fbsd-nat.c: Include "i386-tdep.h".
314 (child_resume): Make `eflags' an ULONGEST. Use
315 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
316 instead of register_read and register_write.
317
318 * i386bsd-nat.c (fetch_inferior_registers,
319 store_inferior_registers): Don't use && at the end of a line.
320 (_initialize_i386bsd_nat): Fix typo.
321
322 * frame.c (_initialize_frame): Add missing backslash.
323
324 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
325 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
326 and supply_register instead of manipulating the register buffer
327 directly.
328
329 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
330 * config/i386/nm-i386sol2.h
331 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
332
333 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
334 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
335 instructions that GCC likes to mingle into the prologue. Fixes
336 gdb/1253 and gdb/1255.
337
338 2003-08-09 Andrew Cagney <cagney@redhat.com>
339
340 Fix GDB PR cli/926.
341 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
342 * command.h (add_setshow_uinteger_cmd): Declare.
343 * frame.c (set_backtrace_cmd): New function.
344 (show_backtrace_cmd): New function.
345 * frame.c (_initialize_frame): Replace "set/show
346 backtrace-below-main" with "set/show backtrace past-main". Add
347 command "set/show backtrace limit".
348 (backtrace_past_main): Rename "backtrace_below_main".
349 (backtrace_limit): New variable.
350 (get_prev_frame): Update. Check the backtrace_limit.
351
352 2003-08-09 Andrew Cagney <cagney@redhat.com>
353
354 * defs.h (xstrprintf): Declare.
355 * utils.c (xstrprintf): New function.
356 * breakpoint.c (insert_breakpoints): Replace sprintf and
357 non-literal format strings, with xstrprintf and cleanups.
358 (delete_breakpoint,breakpoint_re_set): Ditto.
359 (commands_command, insert_breakpoints): Ditto.
360 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
361 (break_at_finish_command_1): Ditto.
362
363 2003-08-09 Andrew Cagney <cagney@redhat.com>
364
365 * MAINTAINERS (language support): List Adam Fedor as Objective C
366 maintainer.
367
368 2003-08-08 J. Brobecker <brobecker@gnat.com>
369
370 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
371 are now multiarched.
372
373 2003-08-08 J. Brobecker <brobecker@gnat.com>
374
375 * config/pa/tm-hppa64.h: Remove lots of macros that are no
376 longer necessary now that hppa64 is partially multiarch'ed.
377
378 2003-08-08 Andrew Cagney <cagney@redhat.com>
379
380 * interps.c (interp_set): Check for a NULL "old_interp".
381
382 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
383
384 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
385 (install-only): Support DESTDIR.
386 (uninstall): Likewise.
387 (install-gdbtk): Likewise.
388
389 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
390
391 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
392 contains something meaningful at all times.
393
394 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
395
396 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
397
398 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
399
400 * MAINTAINERS (write after approval): Added self.
401
402 2003-08-07 Andrew Cagney <cagney@redhat.com>
403
404 * inferior.h (AT_SYMBOL): Define.
405 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
406 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
407 * mips-tdep.c (mips_call_dummy_address): Delete function.
408 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
409 set call_dummy_address.
410
411 2003-08-07 Andrew Cagney <cagney@redhat.com>
412
413 * language.c (op_error): Delete function.
414 (binop_type_check): Delete function.
415 * language.h (type_op_error, range_op_error): Delete macros.
416 (op_error): Delete declaration.
417
418 2003-08-07 Andrew Cagney <cagney@redhat.com>
419
420 * interps.h (INTERP_MI2, INTERP_MI3): Define.
421
422 2003-08-07 Michal Ludvig <mludvig@suse.cz>
423
424 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
425 (x86_64_push_arguments): Skip the red zone.
426
427 2003-08-05 Andrew Cagney <cagney@redhat.com>
428
429 * reggroups.c (reggroup_next): Check for the final entry.
430
431 2003-08-04 Andrew Cagney <cagney@redhat.com>
432
433 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
434 * cli/cli-script.c (define_command): Call query directly, instead
435 of passing it a buffer.
436 * ocd.c (ocd_error): Pass error a constant format string.
437 * remote-mips.c (mips_error): Use fputs_filtered.
438
439 * solib-svr4.c (_initialize_svr4_solib): Update
440 register_gdbarch_data call.
441 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
442
443 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
444 (register_gdbarch_data): Delete "free" parameter. Update
445 comments.
446 * gdbarch.h, gdbarch.c: Re-generate.
447 * reggroups.c (_initialize_reggroup): Update.
448 * gnu-v3-abi.c (init_gnuv3_ops): Update.
449 * frame-base.c (_initialize_frame_base): Update.
450 * frame-unwind.c (_initialize_frame_unwind): Update.
451 * user-regs.c (_initialize_user_regs): Update.
452 * remote.c (_initialize_remote): Update.
453 * regcache.c (_initialize_regcache): Update.
454
455 * regcache.c (xfree_regcache_descr): Delete function.
456 (_initialize_regcache): Update call to register_gdbarch_data.
457 (init_regcache_descr, init_legacy_regcache_descr): Use
458 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
459
460 * remote.c (free_remote_state): Delete function.
461 (_initialize_remote): Update register_gdbarch_data.
462 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
463 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
464
465 2003-08-04 Andrew Cagney <cagney@redhat.com>
466
467 * reggroups.c (struct reggroup_el): Define.
468 (struct reggroups): Delete field "nr_group". Replace array
469 "group" with a "first" to "last" linked list.
470 (reggroups_init): Update. Allocate using gdbarch's obstack.
471 (reggroups_free): Delete function.
472 (add_group): Update. Add "el" parameter.
473 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
474 (default_groups): Update.
475 (reggroup_next): Replace reggroups.
476 (reggroups_dump): Update.
477 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
478 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
479 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
480
481 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
482
483 * Makefile.in (tui-interp.o): Update dependencies.
484
485 2003-08-04 David Carlton <carlton@kealia.com>
486
487 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
488 to internal_error call.
489 * source.c (forward_search_command): Add "%s" format argument.
490 (reverse_search_command): Ditto.
491 * top.c (quit_confirm): Ditto.
492 * cli/cli-setshow.c (do_setshow_command): Ditto.
493 * cp-valprint.c (cp_print_class_method): Replace
494 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
495 (cp_print_class_member): Ditto.
496 * event-top.c (command_line_handler): Ditto.
497 * linux-proc.c (linux_info_proc_cmd): Ditto.
498 * p-typeprint.c (pascal_type_print_base): Ditto.
499 * p-valprint.c (pascal_object_print_class_method): Ditto.
500 (pascal_object_print_class_member): Ditto.
501 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
502 * remote.c (remote_cisco_section_offsets): Ditto.
503 * top.c (command_line_input): Ditto.
504 * utils.c (vwarning,error_stream,quit): Ditto.
505 * valprint.c (print_floating,print_binary_chars)
506 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
507
508 2003-08-04 Andrew Cagney <cagney@redhat.com>
509
510 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
511
512 2003-08-02 Andrew Cagney <cagney@redhat.com>
513
514 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
515 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
516 amd64fbsd-nat.c.
517
518 2003-08-02 Andrew Cagney <cagney@redhat.com>
519
520 * Makefile.in: Update all dependencies and definitions.
521
522 2003-08-02 Adam Fedor <fedor@gnu.org>
523
524 * linespec.c (is_objc_method_format): New function
525 (decode_line_1, locate_first_half): Use it.
526 Fixes PR objc/1298
527
528 2003-08-01 Andrew Cagney <cagney@redhat.com>
529
530 * NEWS: Mention that m32r is multi-arch.
531 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
532 * configure.tgt: Recognize m32r-*-*.
533 * config/m32r/tm-m32r.h: Delete file.
534 * config/m32r/m32r.mt: New file.
535 * m32r-rom.c (m32r_upload_command): Use hostent only when
536 gethostname succeeds, in order to avoid a compilation
537 warning.
538 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
539 compiler warning.
540
541 2003-08-01 Michael Snyder <msnyder@redhat.com>
542
543 * sh-tdep.c (sh_frame_align): New gdbarch method.
544 (sh_gdbarch_init): Set up frame_align method.
545
546 2003-07-31 Michael Snyder <msnyder@redhat.com>
547
548 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
549 which is already covered by the new frames infrastructure.
550
551 2003-07-31 Andrew Cagney <cagney@redhat.com>
552
553 * user-regs.c (struct user_reg): Add "next" link.
554 (struct user_regs): Replace "user" with "first" and "last" links.
555 (append_user_reg): Add pre-allocated "reg" parameter.
556 (builtin_user_regs): Provide initial value for "last".
557 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
558 (user_regs_init): Allocate memory from the gdbarch obstack.
559 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
560 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
561 linked list.
562 (usernum_to_user_reg): New function.
563 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
564 (value_of_user_reg): Use usernum_to_user_reg.
565 (user_regs_free): Delete function.
566 (_initialize_user_regs): Update register_gdbarch_data call.
567
568 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
569
570 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
571
572 2003-07-30 Michael Snyder <msnyder@redhat.com>
573
574 * value.h (value_being_returned): Add a struct_addr argument.
575 * infcall.c (call_function_by_hand): Pass struct_addr to
576 value_being_returned.
577 * infcmd.c (print_return_value): Pass zero as struct_addr.
578 * values.c (value_being_returned): If struct_addr is passed,
579 use it instead of trying to recover it from the inferior.
580
581 2003-07-30 Kevin Buettner <kevinb@redhat.com>
582
583 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
584 the prologue analyzer won't need to attempt to extract the pc
585 value from the woefully incomplete dummy frame.
586 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
587 possible. Disable code which modifies the frame.
588
589 2003-07-28 Andrew Cagney <cagney@redhat.com>
590
591 * annotate.c (annotate_breakpoints_headers): Restrict annotation
592 to level 2.
593 (annotate_breakpoints_table, annotate_record): Ditto.
594 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
595 (annotate_field_name_end, annotate_field_value): Ditto.
596 (annotate_field_end, annotate_frame_source_begin): Ditto.
597 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
598 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
599 (annotate_frame_begin, annotate_frame_function_name): Ditto.
600 (annotate_frame_address_end, annotate_frame_address): Ditto.
601 (annotate_frame_args, annotate_frame_end): Ditto.
602 (annotate_frame_where, annotate_arg_begin): Ditto.
603 (annotate_arg_name_end, annotate_arg_value): Ditto.
604 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
605 (annotate_function_call, annotate_signal_name): Ditto.
606 (annotate_signal_string, annotate_signal_name_end): Ditto.
607 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
608 (annotate_value_begin, annotate_value_history_value): Ditto.
609 (annotate_value_history_end, annotate_value_end): Ditto.
610 (annotate_display_begin, annotate_display_number_end): Ditto.
611 (annotate_display_format, annotate_display_expression): Ditto.
612 (annotate_display_expression_end, annotate_display_value): Ditto.
613 (annotate_display_end, annotate_array_section_begin): Ditto.
614 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
615 (annotate_elt, annotate_array_section_end): Ditto.
616
617 2003-07-28 Andrew Cagney <cagney@redhat.com>
618
619 * regcache.c (struct regcache_descr): Update comments on
620 nr_raw_registers.
621 (init_legacy_regcache_descr): Don't set nr_raw_registers or
622 sizeof_raw_register_valid_p.
623 (init_regcache_descr): Set nr_raw_registers and
624 sizeof_raw_register_valid_p before calling
625 init_legacy_regcache_descr.
626
627 2003-07-28 Andrew Cagney <cagney@redhat.com>
628
629 * mips-tdep.c (print_gp_register_row): Print the GPR's register
630 MOD NUM_REGS.
631
632 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
633
634 * thread.c (info_threads_command): Use get_selected_frame ().
635 Check that there is at least one non-sentinel frame.
636
637 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
638
639 * m68hc11-tdep.c (struct frame_extra_info): Remove.
640 (m68hc11_pop_frame): Remove.
641 (m68hc11_frame_saved_pc): Remove.
642 (m68hc11_frame_chain): Remove.
643 (m68hc11_frame_init_saved_regs): Remove.
644 (m68hc11_init_extra_frame_info): Remove.
645 (m68hc11_store_struct_return): Remove.
646 (m68hc11_saved_pc_after_call): Remove.
647
648 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
649
650 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
651 frame unwind information.
652 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
653 and adapted for frame unwinding.
654 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
655 (m68hc11_unwind_pc): New function.
656 (m68hc11_frame_unwind_cache): New function to analyze frames.
657 (m68hc11_frame_this_id): New function to create new frame struct.
658 (m68hc11_frame_prev_register): New function to unwind a register from
659 the frame.
660 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
661 (m68hc11_frame_p): New function for the above.
662 (m68hc11_frame_base_address): New function to return fp of frame.
663 (m68hc11_frame_args_address): Update for frame.
664 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
665 (m68hc11_unwind_sp): New function.
666 (m68hc11_unwind_dummy_id): New function.
667 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
668 calls.
669
670 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
671
672 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
673 (m68hc11_guess_from_prologue): Advance the pc and frame size only
674 when we are beyond the current pc.
675
676 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
677
678 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
679 from m68hc11_push_arguments.
680 (m68hc11_push_arguments): Remove.
681 (m68hc11_push_return_address): Remove.
682 (m68hc11_gdbarch_init): Install the above; remove above deprecated
683 handlers; remove deprecated_extra_stack_alignment_needed.
684
685 2003-07-27 Andrew Cagney <cagney@redhat.com>
686
687 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
688 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
689 REAL_PC and not the pointer.
690 * hppa-hpux-tdep.c: Include frame.h
691
692 2003-07-27 Andrew Cagney <cagney@redhat.com>
693
694 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
695 GDB_MULTI_ACH_PARTIAL.
696
697 2003-07-27 Andrew Cagney <cagney@redhat.com>
698
699 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
700 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
701 operator at start and not end of line.
702 (decode_prologue): Ditto.
703 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
704 frame_unwind_register_unsigned instead of
705 frame_unwind_unsigned_register.
706 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
707 read_register.
708 (m32r_push_dummy_call): Use register_size instead of
709 REGISTER_RAW_SIZE.
710 (m32r_frame_sniffer): Replace m32r_frame_p.
711 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
712 * m32r-rom.c (report_transfer_performance): Delete extern
713 declaration.
714 (m32r_load, m32r_upload_command): Use print_transfer_performance
715 instead of report_transfer_performance.
716 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
717 / add_show_from_set.
718
719 2003-07-26 Andrew Cagney <cagney@redhat.com>
720
721 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
722 store_return_value and extract_struct_value_address.
723
724 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
725
726 PR c++/1267
727 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
728 NULL, default to the section containing PC.
729
730 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
731
732 * NEWS: Mention "regs" deprecated for m68hc11 too.
733
734 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
735 (m68hc11_print_register): New function to print out one register.
736 (m68hc11_print_registers_info): New function to print registers.
737 (show_regs): Deprecate and use the above.
738 (m68hc11_gdbarch_init): Install the print_registers_info.
739
740 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
741
742 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
743 that we have a SIGTRAP before returning non-zero.
744
745 2003-07-23 Michal Ludvig <mludvig@suse.cz>
746 Elena Zannoni <ezannoni@redhat.com>
747
748 * linespec.c (decode_line_2): Avoid crash if
749 find_function_start_sal() returns empty record.
750
751 2003-07-23 Andreas Schwab <schwab@suse.de>
752
753 * ia64-tdep.c (ia64_print_insn): New function.
754 (ia64_gdbarch_init): Set print_insn to it.
755 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
756 deprecated_tm_print_insn_info.
757
758 2003-07-22 Michael Snyder <msnyder@redhat.com>
759
760 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
761 handle 8-bit returns (long long).
762 (h8300h_extract_return_value): Ditto.
763 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
764
765 2003-07-22 Andrew Cagney <cagney@redhat.com>
766
767 * gdbarch.c Include "gdb_obstack.h".
768 (struct gdbarch): Add an "obstack".
769 (alloc_gdbarch_data): Allocate the gdbarch data using
770 GDBARCH_OBSTACK_CALLOC.
771 (free_gdbarch_data): Delete function.
772 (gdbarch_obstack_zalloc): New function.
773 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
774 Assert that the architecture is not initialized.
775 (gdbarch_alloc): Allocate an obstack, allocate the architecture
776 vector from the obstack.
777 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
778 architecture obstack.
779 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
780 (set_gdbarch_data): Assert that the data is not initialized.
781 (struct gdbarch_data): Delete member "free".
782 (register_gdbarch_data): Do not initialize "free".
783 * gdbarch.h, gdbarch.c: Re-generate.
784
785 2003-07-22 Andrew Cagney <cagney@redhat.com>
786
787 * configure.in (build_warnings): Add -Wformat-nonliteral.
788 * configure: Re-generate.
789
790 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
791
792 * dwarf2loc.c (locexpr_describe_location): Fix typos.
793
794 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
795
796 * findvar.c (read_var_value): Remove case for thread local storage
797 variables. It is now entirely handled by the dwarf2 location
798 expression code.
799 * printcmd.c (address_info): Ditto.
800 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
801 enumeration value.
802 (struct symbol): Remove objfile field, which was used by
803 LOC_THREAD_LOCAL_STATIC only.
804 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
805 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
806 usage of objfile pointer.
807 * dwarf2loc.c (locexpr_describe_location): Add case to handle
808 thread local variables.
809 Add include of objfiles.h.
810 * dwarf2expr.c (execute_stack_op): Add comments about thread local
811 storage variables.
812 * Makefile.in (dwarf2loc.o): Update dependencies.
813
814 2003-07-22 Andrew Cagney <cagney@redhat.com>
815
816 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
817 get_frame_base.
818 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
819 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
820 (struct value): Add opaque declaration.
821 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
822
823 2003-07-21 Andrew Cagney <cagney@redhat.com>
824
825 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
826 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
827
828 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
829
830 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
831 regcache_cooked_read_unsigned instead of read_register.
832 (m68hc11_saved_pc_after_call): Likewise.
833 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
834 instead of write_register.
835 (m68hc11_register_type): New function.
836 (m68hc11_register_virtual_type): Remove.
837 (m68hc11_store_return_value): Convert to use the regcache.
838 (m68hc11_extract_struct_value_address): Likewise.
839 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
840 m68hc11_register_type; undeprecate store_return_value and
841 extract_struct_value_address.
842
843 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
844
845 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
846 and translate to use regcache.
847 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
848
849 2003-07-18 Andrew Cagney <cagney@redhat.com>
850
851 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
852 * gdbarch.h, gdbarch.c: Re-generate.
853 * i386-tdep.c (i386_gdbarch_init): Do not set
854 DWARF2_BUILD_FRAME_INFO.
855 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
856 unconditionally.
857 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
858 DWARF2_BUILD_FRAME_INFO.
859
860 2003-07-18 Andrew Cagney <cagney@redhat.com>
861
862 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
863 * disasm.c (gdb_disassemble_info): Initilize di.arch.
864
865 2003-07-18 Andrew Cagney <cagney@redhat.com>
866
867 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
868 frame_unwind_address_in_block, instead of frame_pc_unwind.
869 (dwarf2_frame_cache): Ditto.
870
871 2003-07-18 Andrew Cagney <cagney@redhat.com>
872
873 * user-regs.h (struct gdbarch): Declare opaque.
874 * ui-out.h (struct ui_file): Declare opaque.
875 * dwarf2-frame.h (struct frame_info): Declare opaque.
876
877 2003-07-18 Kris Warkentin <kewarken@qnx.com>
878
879 * nto-procfs.c: Clean ARI hits. Change #include <..> to
880 #include "...".
881 (procfs_meminfo): Change strerror to safe_strerror.
882 (procfs_can_run): Remove K&R badness.
883
884 2003-07-17 Michael Snyder <msnyder@redhat.com>
885
886 * remote-sim.c: Comment typo fix.
887
888 2003-07-17 Andrew Cagney <cagney@redhat.com>
889
890 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
891 configure.
892 * sparc-tdep.c (sparc_intreg_size): Make non-static.
893 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
894 GDB_MULTI_ARCH_PARTIAL.
895
896 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
897
898 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
899 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
900 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
901
902 2003-07-16 Theodore A. Roth <troth@openavr.org>
903
904 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
905 found.
906 (avr_frame_unwind_cache): Don't unwind FP for main.
907 Update a comment.
908 Save the computed prev_sp.
909 (avr_saved_regs_unwinder): Remove function.
910 (avr_frame_prev_register): Use PC unwind logic from
911 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
912
913 2003-07-16 Andrew Cagney <cagney@redhat.com>
914
915 * frame-base.h (frame_base_p_ftype): Delete definition.
916 (frame_base_append_predicate): Delete declaration.
917 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
918 (frame_unwind_append_predicate): Delete declaration.
919 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
920 (append_predicate): Delete parameter "p".
921 (frame_unwind_append_predicate): Delete function.
922 (frame_unwind_append_sniffer): Update call to append_predicate.
923 (frame_unwind_free): Delete function.
924 (_initialize_frame_unwind): Pass NULL as "free" to
925 register_gdbarch_data.
926 (frame_unwind_init): Append the dummy_frame_sniffer.
927 (frame_unwind_find_by_frame): Simplify.
928 * frame-base.c (struct frame_base_table): Delete field "p".
929 (append_predicate): Delete parameter "p".
930 (frame_base_append_predicate): Delete function.
931 (frame_base_append_sniffer): Update call to append_predicate.
932 (frame_base_free): Delete function.
933 (frame_base_find_by_frame): Simplify.
934 (_initialize_frame_base): Pass NULL as "free" to
935 register_gdbarch_data.
936 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
937 (x86_64_sigtramp_frame_sniffer): Replace
938 "x86_64_sigtramp_frame_p".
939 (x86_64_init_abi): Set the frame unwind sniffers.
940 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
941 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
942 (m68k_gdbarch_init): Set the frame unwind sniffers.
943 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
944 "i386_sigtramp_frame_p".
945 (i386_frame_sniffer): Replace "i386_frame_p".
946 (i386_gdbarch_init): Set the frame unwind sniffers.
947 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
948 (avr_gdbarch_init): Set the frame unwind sniffers.
949 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
950 "alpha_sigtramp_frame_p"
951 (alpha_heuristic_frame_sniffer): Replace
952 "alpha_heuristic_frame_p".
953 (alpha_gdbarch_init): Set the frame unwind sniffers.
954 (alpha_dwarf2_init_abi): Ditto.
955 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
956 "alpha_debug_frame_p".
957 (alpha_mdebug_frame_base_sniffer): Replace
958 "alpha_mdebug_frame_base_p".
959 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
960 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
961 (d10v_gdbarch_init): Set the frame unwind sniffer.
962 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
963 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
964 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
965 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
966 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
967 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
968
969 2003-07-16 Michael Snyder <msnyder@redhat.com>
970
971 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
972 should go thru sh_dsp_register_sim_regno, else the dsp regs
973 will not get the right values.
974
975 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
976
977 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
978 deprecated_store_floating by call to store_typed_floating.
979 (sh_sh4_register_convert_to_raw): Substitute call to
980 deprecated_extract_floating by call to extract_typed_floating.
981
982 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
983
984 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
985
986 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
987
988 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
989 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
990 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
991 as possible.
992 (do_pseudo_register): Remove.
993 (sh_push_dummy_code): New function.
994 (sh64_store_struct_return): Rename from sh_store_struct_return.
995 Only called for sh64 now.
996 (sh_extract_struct_value_address): Regcache'ify.
997 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
998 and accomodate new tasks.
999 (sh64_push_return_address): Rename from sh_push_return_address.
1000 Only called for sh64 now.
1001 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1002 Regcache'ify.
1003 (sh3e_sh4_extract_return_value): Regcache'ify.
1004 (sh_default_store_return_value): Ditto.
1005 (sh3e_sh4_store_return_value): Ditto.
1006 (sh_default_register_byte): Remove.
1007 (sh_sh4_register_byte): Remove.
1008 (sh_default_register_raw_size): Remove.
1009 (sh_sh4_register_raw_size): Remove.
1010 (sh_register_virtual_size): Remove.
1011 (sh_sh3e_register_virtual_type): Remove.
1012 (sh_sh3e_register_type): New function.
1013 (sh_sh4_register_virtual_type): Remove.
1014 (sh_sh4_register_type): New function.
1015 (sh_default_register_virtual_type): Remove.
1016 (sh_default_register_type): New function.
1017 (do_fv_register_info): Add parameters to accomodate call from
1018 sh_print_registers_info.
1019 (do_dr_register_info): Ditto.
1020 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
1021 Add parameters to accomodate call from sh_print_registers_info.
1022 (sh_do_fp_register): Ditto.
1023 (sh64_do_pseudo_register): Call do_dr_register_info,
1024 do_fv_register_info and sh_do_fp_register with default parameters.
1025 (sh_do_register): Add parameters to accomodate call from
1026 sh_print_registers_info.
1027 (sh_print_register): Ditto.
1028 (sh_print_registers_info): Rename from sh_do_registers_info.
1029 Add parameters to be used as gdbarch_print_registers_info
1030 implementation. Accomodate removed do_pseudo_register function
1031 pointer.
1032 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1033 function pointer. Call sh_print_register with default parameters.
1034 (sh64_do_registers_info): Call sh_print_registers_info instead of
1035 sh_do_registers_info.
1036 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1037 detection of deprecated vs. non-deprecated functionality.
1038 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1039 function pointer assignments by direct function calls.
1040
1041 2003-07-15 Andrew Cagney <cagney@redhat.com>
1042
1043 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1044 (frame_register_unwind, create_new_frame): Ditto.
1045 (legacy_get_prev_frame, get_frame_type): Ditto.
1046 (get_frame_base_address): Use frame_base_find_by_frame.
1047 (get_frame_locals_address): Use frame_base_find_by_frame.
1048 (get_frame_args_address): Use frame_base_find_by_frame.
1049 * frame-base.h (frame_base_sniffer_ftype): Declare.
1050 (frame_base_append_sniffer): Declare.
1051 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1052 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1053 (frame_base_append_sniffer): New function.
1054 (frame_base_append_predicate): Add a NULL sniffer.
1055 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1056 (struct frame_base_table): Add "sniffer".
1057 (frame_base_free): Free the "sniffer" table.
1058 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1059 (frame_unwind_append_sniffer): Declare.
1060 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1061 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1062 (struct frame_unwind_table): Add "sniffer", delete "middle".
1063 (append_predicate): Add "sniffer" parameter, append the sniffer.
1064 (frame_unwind_init): Update append_predicate call.
1065 (frame_unwind_append_sniffer): New function.
1066 (frame_unwind_append_predicate): Update append_predicate call.
1067 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1068
1069 2003-07-15 Andrew Cagney <cagney@redhat.com>
1070
1071 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1072 before code inhibiting repeated unwind attempts. Add to
1073 commentary on that test's problems.
1074 * blockframe.c (inside_main_func): Look for "main" in the minimal
1075 symbol table.
1076 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1077 identical.
1078
1079 2003-07-15 Andrew Cagney <cagney@redhat.com>
1080
1081 * complaints.c (struct explanation): Define.
1082 (struct complaints): Change type of "explanation" to "struct
1083 explanation".
1084 (symfile_explanations): Convert to a "struct explanation" table.
1085 (vcomplaint): Update.
1086
1087 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1088
1089 * x86-64-linux-nat.c (regmap): Removed.
1090 (supply_gregset, fill_gregset): Call
1091 x86_64_linux_(fill,supply)_gregset functions.
1092 * x86-64-linux-tdep.c (USER_*): New defines.
1093 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1094 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1095 New functions.
1096 (fetch_core_registers): Ditto.
1097 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1098 * x86-64-linux-tdep.h: New file.
1099 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1100 and core-regset.o.
1101 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1102
1103 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1104
1105 * x86-64-tdep.c (x86_64_store_return_value): Use
1106 regcache_cooked_write_part instead of regcache_cooked_write.
1107
1108 * configure.host: Add x86_64-*-freebsd*.
1109 * configure.tgt: Add x86_64-*-freebsd*.
1110 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1111 * amd64fbsd-nat.c: New file.
1112 * amd64fbsd-tdep.c: New file.
1113 * config/i386/nm-fbsd64.h: New file.
1114 * config/i386/fbsd64.mh: New file.
1115 * config/i386/fbsd64.mt: New file.
1116
1117 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1118
1119 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1120 `sc_regs_offset' and `sc_fpregs_offset'.
1121 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1122 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1123 (alpha_sigtramp_register_address): Rewrite to use new members of
1124 `struct gdbarch_tdep'.
1125 (alpha_gdbarch_init): Initialize new members of struct
1126 gdbarch_tdep'.
1127 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1128 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1129 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1130 (alphafbsd_pc_in_sigtramp): Implement.
1131 (alphafbsd_sigtramp_offset): New function.
1132 (alphafbsd_sigcontext_addr): New function.
1133 (alphafbsd_init_abi): Initialize signal trampoline related members
1134 of `struct gdbarch_tdep'.
1135 (_initialize_alphafbsd_tdep): Add prototype.
1136
1137 2003-07-11 Theodore A. Roth <troth@openavr.org>
1138
1139 * Makefile.in (install-only): Quote sed expression when generating
1140 transformed_name.
1141
1142 2003-07-11 Richard Henderson <rth@redhat.com>
1143
1144 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1145 * dwarf2-frame.c: Include complaints.h.
1146 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1147 variable initialization; return NULL on error.
1148 (decode_frame_entry): New.
1149
1150 2003-07-11 Andrew Cagney <cagney@redhat.com>
1151
1152 * frame.h (frame_address_in_block): Delete declaration.
1153 * blockframe.c (frame_address_in_block): Delete function.
1154 (get_frame_block): Use get_frame_address_in_block.
1155 (block_innermost_frame): Ditto.
1156 * stack.c (print_frame, backtrace_command_1): Ditto.
1157
1158 * frame.h (get_frame_address_in_block): Declare.
1159 (frame_unwind_address_in_block): Declare.
1160 * frame.c (frame_unwind_address_in_block): New function.
1161 (get_frame_address_in_block): New function.
1162
1163 2003-07-10 Andrew Cagney <cagney@redhat.com>
1164
1165 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1166 pre-default. Note: re-generate has no effect.
1167
1168 2003-07-10 Andrew Cagney <cagney@redhat.com>
1169
1170 * gdbarch.sh: When a variable, but not a function, compare against
1171 0. Fix problem in previous patch.
1172 * gdbarch.c: Re-generate.
1173
1174 2003-07-10 Andrew Cagney <cagney@redhat.com>
1175
1176 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1177 functions against NULL, not 0.
1178 * gdbarch.c: Re-generate.
1179
1180 2003-07-10 Fred Fish <fnf@ninemoons.com>
1181
1182 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1183 null string instead of a null pointer.
1184 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1185
1186 2003-07-09 Michael Snyder <msnyder@redhat.com>
1187
1188 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1189
1190 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1191
1192 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1193 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1194 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1195 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1196 * x86-64-tdep.c: ... from here.
1197
1198 2003-07-09 Andreas Schwab <schwab@suse.de>
1199
1200 * m68k-tdep.h (enum struct_return): Define.
1201 (struct gdbarch_tdep): Add struct_return.
1202 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1203 bytes are padded to the right, not to the left. Pass struct value
1204 address in register %a1, not on stack.
1205 (m68k_use_struct_convention): New function.
1206 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1207 struct_return in tdep to pcc_struct_return.
1208 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1209 reg_struct_return.
1210
1211 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1212
1213 * somread.c (som_symfile_offsets): Fix compilation error.
1214
1215 2003-07-09 Andrew Cagney <cagney@redhat.com>
1216
1217 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1218 Add comments about the checks.
1219
1220 2003-07-08 Andrew Cagney <cagney@redhat.com>
1221
1222 * Makefile.in: Make dependency section headers consistent.
1223 (config_h): Move to $BUILD headers section.
1224 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1225 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1226 (ada-exp.tab.c): Move to YACC/LEX section.
1227 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1228 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1229
1230 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1231
1232 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1233 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1234 of strerror with safe_strerror, use ISO C function definitions,
1235 and replace instances of sprintf with snprintf.
1236
1237 2003-07-07 Andrew Cagney <cagney@redhat.com>
1238
1239 * frame.c (get_prev_frame): Enable check for identical frames.
1240 Update comments. Update error messages.
1241
1242 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1243
1244 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1245
1246 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1247
1248 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1249 sort_symtab_syms, no longer necessary.
1250
1251 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1252
1253 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1254
1255 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1256
1257 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1258 (mips_register_byte): Likewise.
1259
1260 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1261
1262 * Makefile.in (sparc_tdep_h): New.
1263 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1264 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1265 * sparc-linux-nat.c: Include "sparc-tdep.h".
1266 * sparc-nat.c: Likewise.
1267 * sparc-tdep.c: Likewise.
1268 * sparc64nbsd-nat.c: Likewise.
1269 * sparcnbsd-nat.c: Likewise.
1270 * sparcnbsd-tdep.c: Likewise.
1271 * sparc-tdep.h: New file.
1272 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1273 and sparc_npc_regnum.
1274
1275 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1276
1277 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1278 (mips_linux_cannot_store_register): List supported instead of
1279 unsupported registers.
1280
1281 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1282
1283 * disasm.c (dump_insns): Separate instructions from addresses.
1284
1285 2003-07-07 Andreas Schwab <schwab@suse.de>
1286
1287 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1288 dependencies.
1289 * m68k-tdep.c (NUM_FREGS): Delete.
1290 (SIG_PC_FP_OFFSET): Delete.
1291 (TARGET_M68K): Delete.
1292 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1293 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1294 P_MOVEL_SP, P_MOVEML_SP): Define.
1295 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1296 P_TRAP): Delete.
1297 (m68k_register_raw_size): Delete.
1298 (m68k_register_virtual_size): Delete.
1299 (m68k_register_type): Renamed from m68k_register_virtual_type and
1300 add gdbarch argument.
1301 (m68k_store_struct_return): Delete.
1302 (m68k_deprecated_extract_return_value): Delete.
1303 (m68k_deprecated_extract_struct_value_address): Delete.
1304 (m68k_frame_chain): Delete.
1305 (m68k_frame_saved_pc): Delete.
1306 (m68k_fix_call_dummy): Delete.
1307 (m68k_push_dummy_frame): Delete.
1308 (m68k_pop_frame): Delete.
1309 (m68k_extract_return_value): New function.
1310 (m68k_store_return_value): Rewrite using regcache.
1311 (m68k_extract_struct_value_address): Rewrite using regcache.
1312 (m68k_push_dummy_call): New function.
1313 (struct m68k_frame_cache): Define.
1314 (m68k_alloc_frame_cache): New function.
1315 (m68k_analyze_frame_setup): New function.
1316 (m68k_analyze_register_saves): New function.
1317 (m68k_analyze_prologue): New function.
1318 (m68k_skip_prologue): Rewrite using above functions.
1319 (m68k_unwind_pc): New function.
1320 (m68k_frame_cache): New function.
1321 (m68k_frame_this_id): New function.
1322 (m68k_frame_prev_register): New function.
1323 (m68k_frame_unwind): New variable.
1324 (m68k_frame_p): New function.
1325 (m68k_sigtramp_frame_cache): New function.
1326 (m68k_sigtramp_frame_this_id): New function.
1327 (m68k_sigtramp_frame_prev_register): New function.
1328 (m68k_sigtramp_frame_unwind): New variable.
1329 (m68k_sigtramp_frame_p): New function.
1330 (m68k_frame_base_address): New function.
1331 (m68k_frame_base): New function.
1332 (m68k_unwind_dummy_id): New function.
1333 (fill_gregset): Use regcache_collect.
1334 (fill_fpregset): Likewise.
1335 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1336 defined.
1337 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1338 deprecated_init_frame_pc, deprecated_store_struct_return,
1339 deprecated_extract_return_value, deprecated_store_return_value,
1340 deprecated_frame_chain, deprecated_frame_saved_pc,
1341 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1342 deprecated_register_virtual_size,
1343 deprecated_max_register_raw_size,
1344 deprecated_max_register_virtual_size,
1345 deprecated_register_virtual_type, deprecated_register_size,
1346 deprecated_register_byte, deprecated_register_bytes,
1347 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1348 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1349 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1350 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1351 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1352 deprecated_push_dummy_frame, deprecated_pop_frame,
1353 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1354 only if SYSCALL_TRAP is defined. Set extract_return_value,
1355 store_return_value, extract_struct_value_address, register_type,
1356 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1357 predicates.
1358 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1359 M68K_MAX_REGISTER_SIZE): Define.
1360 (struct m68k_sigtramp_info): Define.
1361 (struct gdbarch_tdep): Add get_sigtramp_info.
1362 * m68klinux-nat.c (fetch_register): Use register_size instead of
1363 REGISTER_RAW_SIZE. Don't put assignment in if.
1364 (store_register): Likewise.
1365 (fetch_inferior_registers): Likewise.
1366 (store_inferior_registers): Likewise.
1367 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1368 (m68k_linux_frame_saved_pc): Delete.
1369 (m68k_linux_sigcontext_reg_offset,
1370 m68k_linux_ucontext_reg_offset): Define.
1371 (m68k_linux_get_sigtramp_info): New function.
1372 (m68k_linux_extract_return_value): Rewrite using regcache.
1373 (m68k_linux_store_return_value): Likewise.
1374 (m68k_linux_extract_struct_value_address): Likewise.
1375 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1376 Don't set deprecated_frame_saved_pc,
1377 deprecated_extract_return_value, deprecated_store_return_value,
1378 deprecated_extract_struct_value_address. Set
1379 extract_return_value, store_return_value,
1380 extract_struct_value_address.
1381
1382 2003-07-07 Andrew Cagney <cagney@redhat.com>
1383
1384 * expprint.c: Include "user-regs.h" instead of "frame.h".
1385 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1386 frame_map_regnum_to_name.
1387 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1388 (frame_map_name_to_regnum): Simplify, call
1389 user_reg_map_name_to_regnum.
1390 (frame_map_regnum_to_name): Simplify, call
1391 user_reg_map_regnum_to_name.
1392 (frame_register_unwind): Update.
1393 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1394 (_initialize_frame_reg): Call user_reg_add_builtin.
1395 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1396 (value_of_register): Use value_of_user_reg.
1397 * eval.c (evaluate_subexp_standard): Update.
1398 * parse.c (write_dollar_variable): Update.
1399 * d10v-tdep.c (d10v_print_registers_info): Update.
1400 * infcmd.c (registers_info): Update.
1401 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1402 (builtin_regs_h): Delete macro.
1403 (user_regs_h): Define.
1404 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1405 (builtin-regs.o): Delete target.
1406 (user-regs.o): Specify dependencies.
1407 (expprint.o): Update dependencies.
1408 (findvar.o): Update dependencies.
1409 (frame.o): Update dependencies.
1410 (std-regs.o): Update dependencies.
1411
1412 2003-07-06 Christopher Faylor <cgf@redhat.com>
1413
1414 * win32-nat.c (solib_symbols_add): Use one variable for all section
1415 address stuff. Pass variable rather than address of variable to
1416 safe_symbol_file_add.
1417
1418 2003-07-06 Andreas Schwab <schwab@suse.de>
1419
1420 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1421
1422 2003-07-04 Joel Brobecker <brobecker@gnat.com>
1423
1424 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1425
1426 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1427
1428 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1429
1430 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1431
1432 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1433 * config/i386/nto.mh: New file.
1434 * config/i386/nm-nto.h: New file.
1435 * configure.host: Add i[3456]86-*-nto*.
1436
1437 2003-07-03 Joel Brobecker <brobecker@gnat.com>
1438
1439 * remote-vx.c (vx_add_symbols): Fix compilation error.
1440
1441 2003-07-03 Andrew Cagney <cagney@redhat.com>
1442
1443 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1444 * gdbarch.h, gdbarch.c: Re-generate.
1445 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1446 (legacy_register_name): Declare.
1447 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1448 (REGISTER_NAME): Define.
1449 * sparc-tdep.c (legacy_register_name): New function.
1450 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1451 (REGISTER_NAME): Define.
1452 (hppa64_register_name): Declare.
1453 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1454 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1455 (hppa64_register_name): New function.
1456 (hppa_register_name): New function.
1457 * arch-utils.c (legacy_register_name): Delete.
1458 * arch-utils.h (legacy_register_name): Delete.
1459
1460 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
1461
1462 * cli/cli-interp.c (cli_interpreter_resume): Update the
1463 cli_uiout's stream to gdb_stdout.
1464
1465 2003-07-03 Andrew Cagney <cagney@redhat.com>
1466
1467 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1468 predicate.
1469 * gdbarch.h, gdbarch.c: Re-generate.
1470 * regcache.c (init_regcache_descr): Use legacy code when either
1471 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1472
1473 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1474
1475 * NEWS: Move "set logging" entry into GDB 6.0 section.
1476
1477 2003-07-02 Jim Blandy <jimb@redhat.com>
1478
1479 * s390-tdep.c (struct frame_extra_info): new member:
1480 'stack_bought_valid'.
1481 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1482 initialize fextra_info->stack_bought.
1483 (s390_frameless_function_invocation): Don't trust the value of
1484 fextra_info_ptr->stack_bought unless
1485 fextra_info->stack_bought_valid is set.
1486
1487 New S390 prologue analyzer.
1488 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1489 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1490 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1491 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1492 compute_x_addr, s390_on_stack, s390_store,
1493 s390_get_signal_frame_info): New functions.
1494 (S390_NUM_SPILL_SLOTS): New macro.
1495 (s390_get_frame_info): Rewritten.
1496 (is_arg_reg): Deleted.
1497
1498 Break out the decoding of S/390 instructions into separate
1499 functions, to make it more legible, and easier to check
1500 against the spec.
1501 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1502 is_rx, is_rxe): New functions.
1503 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1504 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1505 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1506 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1507 enums for opcode values. (Is this an improvement?)
1508
1509 2003-07-02 Andrew Cagney <cagney@redhat.com>
1510
1511 * i386-tdep.c: Revert change committed as part of trad-frame code
1512 below.
1513
1514 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1515
1516 * breakpoint.c (insert_catchpoint): Make static.
1517
1518 2003-07-02 Andreas Schwab <schwab@suse.de>
1519
1520 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1521 former ia64_push_arguments and ia64_push_return_address, and use
1522 regcache functions instead of read/write_register.
1523 (ia64_gdbarch_init): Set push_dummy_call instead of
1524 deprecated_push_arguments and deprecated_push_return_address.
1525
1526 2003-07-01 Andreas Jaeger <aj@suse.de>
1527
1528 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1529 before the call.
1530 Set %rax only to number of SSE registers used.
1531
1532 2003-07-01 Andrew Cagney <cagney@redhat.com>
1533
1534 * trad-frame.h: Update comments, a -1 .addr is reserved.
1535 (trad_frame_value_p, trad_frame_addr_p): Declare.
1536 (trad_frame_reg_p): Declare.
1537 (trad_frame_set_value): Rename trad_frame_register_value.
1538 (trad_frame_set_unknown): Declare.
1539 * trad-frame.c (trad_frame_realreg_p): New function.
1540 (trad_frame_addr_p, trad_frame_value_p): New function.
1541 (trad_frame_set_unknown): New function.
1542 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1543 (trad_frame_prev_register): Use trad_frame_realreg_p,
1544 trad_frame_addr_p and trad_frame_value_p.
1545 (trad_frame_set_value): Rename trad_frame_register_value.
1546 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1547 and trad_frame_set_value.
1548
1549 2003-06-30 Jim Blandy <jimb@redhat.com>
1550
1551 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1552 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1553 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1554 for 16 registers, and then 32 more bytes.
1555 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1556 New macros.
1557 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1558 Move up in the file, since it's now used by is_simple_arg.
1559 (is_simple_arg): Don't assume registers are four bytes long.
1560 Exclude all double arguments. Extended floats are not simple
1561 args.
1562 (is_power_of_two): New function.
1563 (pass_by_copy_ref): Call is_power_of_two, and check that the
1564 length fits in a register, rather than listing all the acceptable
1565 sizes. Extended floats are not passed by reference.
1566 (s390_push_arguments): Don't assume registers are four bytes long.
1567 Reserve an argument register to point to the buffer for structures
1568 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1569 S390_STACK_FRAME_OVERHEAD.
1570
1571 2003-06-30 Andreas Schwab <schwab@suse.de>
1572
1573 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1574 format error message.
1575
1576 2003-06-30 Joel Brobecker <brobecker@gnat.com>
1577
1578 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1579
1580 2003-06-30 David Carlton <carlton@kealia.com>
1581
1582 Band-aid for PR c++/1245.
1583 * Makefile.in (cp-support.o): Depend on complaints_h.
1584 * cp-support.c: Include complaints.h. Add declaration for
1585 find_last_component.
1586 (cp_find_first_component): Separate code into
1587 cp_find_first_component_aux.
1588 (cp_find_first_component_aux): Call demangled_name_complaint.
1589 (demangled_name_complaint): New.
1590
1591 2003-06-30 Andrew Cagney <cagney@redhat.com>
1592
1593 * remote.c (remote_write_bytes): Explicitly compute and then use
1594 the payload size. Update comments to reflect. Fixes problem of
1595 GDB not sending small packets as found by Fred Fish.
1596
1597 2003-06-30 Andrew Cagney <cagney@redhat.com>
1598
1599 * remote.c (remote_async_wait): Fix -Wformat problem.
1600
1601 2003-06-29 Andrew Cagney <cagney@redhat.com>
1602
1603 * remote.c (remote_wait): Call error, and not warning, when the
1604 packet is corrupt.
1605 (remote_async_wait): Ditto.
1606
1607 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1608
1609 * sparc-tdep.c (sparc_y_regnum): Make external again.
1610
1611 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1612
1613 * cli/cli-logging.c (pop_output_files): Add void to function
1614 definition.
1615
1616 2003-06-29 Andrew Cagney <cagney@redhat.com>
1617
1618 * frame.c (frame_register_unwind): Use unsigned char when dumping
1619 the buffer contents.
1620
1621 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1622
1623 * cli/cli-logging.c: New file.
1624 * cli-out.c (struct ui_out_data): Add original_stream.
1625 (cli_redirect): New function.
1626 (cli_ui_out_impl): Add cli_redirect.
1627 (cli_out_new): Initialize original_stream.
1628 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1629 (uo_redirect, ui_out_redirect): New.
1630 * ui-out.h (struct ui_out_impl): Add redirect member.
1631 (redirect_ftype): New.
1632 (ui_out_redirect): Add prototype.
1633 * Makefile.in: Add rules for cli-logging.c.
1634 * NEWS: Mention "set logging".
1635
1636 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1637
1638 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1639
1640 2003-06-27 Andrew Cagney <cagney@redhat.com>
1641
1642 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1643 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1644 * avr-tdep.c (avr_call_dummy_address): Delete function.
1645 (avr_gdbarch_init): Do not set call_dummy_address.
1646
1647 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1648
1649 * symfile.c (syms_from_objfile): Move variables to inner block.
1650 Move the checks for the non-mainline case a bit earlier to avoid
1651 doing some useless computations.
1652
1653 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1654
1655 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1656
1657 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
1658
1659 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1660 sections.
1661
1662 2003-06-26 Michael Chastain <mec@shout.net>
1663
1664 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1665 gdb/testsuite/gdb.c++/pr-1210.exp.
1666
1667 2003-06-26 Andrew Cagney <cagney@redhat.com>
1668
1669 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1670 altivec_expression.h and altivec_registers.h.
1671
1672 2003-06-26 Andrew Cagney <cagney@redhat.com>
1673
1674 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1675 info->mach when MIPS16. Patch suggested by Fred Fish.
1676
1677 2003-06-26 Andrew Cagney <cagney@redhat.com>
1678
1679 * utils.c (internal_vproblem): Print the problem to a reason
1680 buffer and then pass to query. Make the msg variable more local.
1681
1682 2003-06-26 Andrew Cagney <cagney@redhat.com>
1683
1684 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
1685 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
1686 * gdbarch.h, gdbarch.c: Re-generate.
1687 * frame-base.c (default_frame_args_address): Update. Use
1688 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
1689 not available.
1690 (default_frame_locals_address): Ditto for
1691 DEPRECATED_FRAME_LOCALS_ADDRESS.
1692 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
1693 (vax_frame_num_args): Update.
1694 (vax_gdbarch_init): Update.
1695 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1696 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1697 * mcore-tdep.c (mcore_gdbarch_init): Update.
1698 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1699 * ia64-tdep.c (ia64_gdbarch_init): Update.
1700 * symtab.h (address_class): Update comments.
1701 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
1702 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1703 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1704 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1705 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1706 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1707 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1708 * alpha-mdebug-tdep.c: Update.
1709 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
1710
1711 2003-06-26 Andreas Jaeger <aj@suse.de>
1712
1713 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
1714 of SSE registers so that varargs functions work. Rework handling
1715 of passing arguments on the stack.
1716 (x86_64_store_return_value): Return double and float values in SSE
1717 register.
1718
1719 2003-06-24 Michael Chastain <mec@shout.net>
1720
1721 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
1722 the "constructor breakpoints ignored" bug.
1723
1724 2003-06-25 David Carlton <carlton@kealia.com>
1725
1726 * MAINTAINERS: Update e-mail address.
1727
1728 2003-06-24 Jim Blandy <jimb@redhat.com>
1729
1730 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
1731
1732 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
1733 function.
1734 (ppc_linux_init_abi): Register it as the
1735 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
1736
1737 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
1738 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
1739 method.
1740
1741 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
1742 (ppc64_standard_linkage_target): Use it.
1743
1744 2003-06-23 Andrew Cagney <cagney@redhat.com>
1745
1746 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
1747 for 0 "int0" and 4 "int32" sized registers.
1748 * gdbtypes.c (builtin_type_int0): Define.
1749 (build_gdbtypes): Initialize builtin_type_int0.
1750 * gdbtypes.h (builtin_type_int0): Declare.
1751
1752 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
1753
1754 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
1755 as characters are unsigned.
1756
1757 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1758
1759 PR gdb/1179
1760 * dwarfread.c (struct_type): Skip static fields without crashing.
1761
1762 2003-06-22 Andrew Cagney <cagney@redhat.com>
1763
1764 GDB 6.0 branch created.
1765 * README: Update.
1766 * PROBLEMS: Update. Empty.
1767 * NEWS: Update.
1768
1769 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1770
1771 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
1772 Suggested by Nick Hibma <n_hibma@webweaving.org>.
1773
1774 2003-06-22 Andrew Cagney <cagney@redhat.com>
1775
1776 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
1777 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
1778 Velikov.
1779
1780 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1781
1782 * cli/cli-cmds.c (shell_escape): Silence warnings from old
1783 compilers.
1784
1785 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1786
1787 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
1788 argument of val_print.
1789 * cp-valprint.c (cp_print_value): Don't add the offset parameter
1790 to the address argument of baseclass_offset or target_read_memory.
1791 Do add it to the argument of cp_print_value_fields.
1792
1793 2003-06-21 Andrew Cagney <cagney@redhat.com>
1794
1795 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
1796 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
1797 instead of 0..NUM_REGS.
1798 (mips_register_reggroup_p): New function.
1799 (mips_pseudo_register_write): New function.
1800 (mips_pseudo_register_read): New function.
1801 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
1802 based on the register's type.
1803 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
1804 cooked.
1805 (mips_get_saved_register): Simplify. Assert that REGNO is a
1806 pseudo / cooked.
1807 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
1808 (mips_register_type): Replace mips_register_virtual_type. Map
1809 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
1810 when available.
1811 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
1812 that the register is cooked / virtual.
1813 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
1814 Only get the extra info when needed.
1815 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
1816 (mips32_heuristic_proc_desc): Fetch the cooked register.
1817 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
1818 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
1819 (mips_print_register): Use gdbarch_register_type, instead of
1820 REGISTER_VIRTUAL_TYPE.
1821 (print_gp_register_row): Use gdbarch_register_type, instead of
1822 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
1823 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1824 Print the pseudo / cooked registers.
1825 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1826 Print the pseudo / cooked registers.
1827 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
1828 REG_NUM is pseudo / cooked.
1829 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
1830 (mips_n32n64_xfer_return_value): Ditto.
1831 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
1832 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
1833 (mips_register_sim_regno): New function.
1834 (mips_gdbarch_init): Set deprecated_register_byte,
1835 register_group_p, pseudo_register_write, pseudo_register_read,
1836 register_sim_regno, and num_pseudo_regs. Set register_type,
1837 instead of register_virtual_type.
1838 * Makefile.in (mips-tdep.o): Update dependencies.
1839 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
1840 REGISTER_VIRTUAL_TYPE.
1841 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
1842 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
1843 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
1844 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
1845 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
1846
1847 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1848
1849 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
1850 * cli/cli-cmds.c: Include "gdb_vfork.h".
1851 (shell_escape): Use vfork.
1852
1853 2003-06-21 Andrew Cagney <cagney@redhat.com>
1854
1855 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
1856 32 bit floating-point register saves.
1857
1858 * frame.h (deprecated_unwind_get_saved_register): Delete.
1859 * frame.c (deprecated_unwind_get_saved_register): Delete function.
1860 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
1861 and deprecated_get_next_frame_hack instead of
1862 deprecated_unwind_get_saved_register.
1863
1864 * mips-tdep.c (mips_dump_tdep): Do not print
1865 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
1866
1867 * frame.c (get_frame_register): New function.
1868 (frame_unwind_register_signed): New function.
1869 (get_frame_register_signed): New function.
1870 (frame_unwind_register_unsigned): New function.
1871 (get_frame_register_unsigned): New function.
1872 * frame.h: Add comments on naming schema.
1873 (get_frame_register, frame_unwind_register_signed): Declare.
1874 (get_frame_register_signed, get_frame_register_signed): Declare.
1875 (frame_unwind_register_unsigned): Declare.
1876 (get_frame_register_unsigned): Declare.
1877
1878 2003-06-20 Theodore A. Roth <troth@openavr.org>
1879
1880 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
1881
1882 2003-06-20 Theodore A. Roth <troth@openavr.org>
1883
1884 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
1885 (avr_read_sp): Ditto.
1886
1887 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
1888
1889 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
1890 * config/arm/nm-linux.h: Likewise.
1891 * config/arm/tm-linux.h: Likewise.
1892 * config/ia64/nm-linux.h: Likewise.
1893 * config/ia64/tm-ia64.h: Likewise.
1894 * config/s390/tm-linux.h: Likewise.
1895 * config/s390/tm-s390.h: Likewise.
1896 * s390-nat.c: Likewise.
1897 * s390-tdep.c: Likewise.
1898
1899 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
1900 * config/ia64/linux.mt: Likewise.
1901 * config/m68k/linux.mh: Likewise.
1902 * config/mips/linux.mt: Likewise.
1903 * config/powerpc/linux.mh: Likewise.
1904 * config/sh/linux.mt: Likewise.
1905
1906 2003-06-19 Kris Warkentin <kewarken@qnx.com>
1907
1908 * solib.c (solib_open): Change tests for whether to search
1909 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
1910 comments.
1911
1912 2003-06-19 Theodore A. Roth <troth@openavr.org>
1913
1914 * avr-tdep.c (avr_frame_address): Delete function.
1915 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
1916 set_gdbarch_frame_args_address.
1917
1918 2003-06-19 Andrew Cagney <cagney@redhat.com>
1919
1920 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
1921 (REGISTER_CONVERT_FROM_TYPE): Delete.
1922 (mips_register_convert_to_type): Delete declaration.
1923 (mips_register_convert_from_type): Delete declaration.
1924 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
1925 kernel/.
1926
1927 2003-06-19 Michael Snyder <msnyder@redhat.com>
1928
1929 * linux-nat.h: New file.
1930 * linux-nat.c: Include linux-nat.h.
1931 * lin-lwp.c: Include linux-nat.h.
1932 Move struct lwp_info def to linux-nat.h.
1933 * linux-proc.c: Include linux-nat.h.
1934 (linux_make_note_section): Iterate over lwps instead of threads.
1935 (linux_do_thread_registers): Use lwp instead of merged pid.
1936 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
1937 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
1938 Add dependency on linux_nat_h.
1939
1940 2003-06-19 Theodore A. Roth <troth@openavr.org>
1941
1942 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
1943
1944 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1945
1946 * varobj.c (get_type, get_target_type): Use check_typedef.
1947
1948 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1949
1950 * breakpoint.c (insert_catchpoint): Call internal_error.
1951
1952 2003-06-19 Theodore A. Roth <troth@openavr.org>
1953
1954 * avr-tdep.c (avr_push_dummy_code): Delete function.
1955 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
1956
1957 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1958
1959 * arch-utils.c (default_prepare_to_proceed): Remove.
1960 (generic_prepare_to_proceed): Remove.
1961 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
1962 (generic_prepare_to_proceed): Remove prototype.
1963 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
1964 * gdbarch.c: Regenerate.
1965 * gdbarch.h: Regenerate.
1966 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
1967 * hppah-nat.c (hppa_switched_threads): Remove.
1968 * infrun.c (prepare_to_proceed): New static function, copied from
1969 generic_prepare_to_proceed. Remove select_it argument.
1970 (proceed): Call prepare_to_proceed.
1971 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
1972 variables.
1973 (ptrace_wait): Don't set the removed variables.
1974 (hppa_switched_threads): Remove.
1975 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
1976 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
1977 (lin_lwp_prepare_to_proceed): Remove prototype.
1978 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
1979 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
1980
1981 2003-06-18 Theodore A. Roth <troth@openavr.org>
1982
1983 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
1984 trad-frame.h.
1985 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
1986 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
1987 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
1988 (AVR_PROLOGUE_*): Enumerate prologue types.
1989 (struct frame_extra_info): Remove.
1990 (struct avr_unwind_cache): Define.
1991 (avr_write_sp): Delete function.
1992 (avr_read_fp): Ditto.
1993 (avr_init_extra_frame_info): Ditto.
1994 (avr_pop_frame): Ditto.
1995 (avr_frame_saved_pc): Ditto.
1996 (avr_saved_pc_after_call): Ditto.
1997 (avr_push_return_address): Ditto.
1998 (avr_frame_chain): Ditto.
1999 (avr_store_struct_return): Ditto.
2000 (avr_push_arguments): Ditto.
2001 (avr_scan_prologue): Update comments. Changed to set up the info for
2002 cache unwinding. Now returns end of prologue PC.
2003 (avr_skip_prologue): Better handling of functions lacking a prologue
2004 by using avr_scan_prologue.
2005 (avr_scan_arg_moves): New function.
2006 (avr_saved_regs_unwinder): Ditto.
2007 (avr_frame_unwind_cache): Ditto.
2008 (avr_unwind_pc): Ditto.
2009 (avr_frame_this_id): Ditto.
2010 (avr_frame_prev_register): Ditto.
2011 (avr_frame_p): Ditto.
2012 (avr_frame_base_address ): Ditto.
2013 (avr_unwind_dummy_id): Ditto.
2014 (avr_push_dummy_code): Ditto.
2015 (push_stack_item): Ditto.
2016 (pop_stack_item): Ditto.
2017 (avr_push_dummy_call): Ditto.
2018 (struct stack_item): Define.
2019 (avr_frame_unwind): Declare structure.
2020 (avr_frame_base): Ditto.
2021 (avr_gdbarch_init): Remove calls to
2022 set_gdbarch_deprecated_init_frame_pc,
2023 set_gdbarch_deprecated_target_read_fp,
2024 set_gdbarch_deprecated_dummy_write_sp,
2025 set_gdbarch_deprecated_fp_regnum,
2026 set_gdbarch_deprecated_push_arguments,
2027 set_gdbarch_deprecated_push_return_address,
2028 set_gdbarch_deprecated_pop_frame,
2029 set_gdbarch_deprecated_store_struct_return,
2030 set_gdbarch_deprecated_frame_init_saved_regs,
2031 set_gdbarch_deprecated_init_extra_frame_info,
2032 set_gdbarch_deprecated_frame_chain,
2033 set_gdbarch_deprecated_frame_saved_pc,
2034 set_gdbarch_deprecated_saved_pc_after_call.
2035 Add calls to set_gdbarch_push_dummy_call,
2036 set_gdbarch_push_dummy_code,
2037 frame_unwind_append_predicate,
2038 frame_base_set_default,
2039 set_gdbarch_unwind_dummy_id,
2040 set_gdbarch_unwind_pc.
2041 Wrap a long line.
2042
2043 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2044
2045 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2046 registers for H8/300S.
2047 (h8300_print_registers_info): Ditto.
2048 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2049
2050 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2051
2052 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2053 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2054 (lin_lwp_wait): Likewise. Update comments.
2055 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2056 (pull_pid_from_list, linux_record_stopped_pid): New.
2057
2058 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2059
2060 * ada-lang.c (scan_discrim_bound): Name first argument.
2061 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2062 declared by ALL_BLOCK_SYMBOLS.
2063
2064 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2065
2066 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2067 ("regcache.h"): Include it.
2068 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2069
2070 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2071
2072 * NEWS: Mention gdbserver detach change and "disconnect" command.
2073 * infcmd.c (disconnect_command): New function.
2074 (_initialize_infcmd): Add ``disconnect'' command.
2075 * remote.c (remote_async_detach): Delete.
2076 (remote_detach): Merge remote_async_detach.
2077 (remote_disconnect): New.
2078 (init_remote_ops): Set to_disconnect.
2079 (init_remote_cisco_ops): Likewise.
2080 (init_remote_async_ops): Likewise. Use remote_detach.
2081 * target.c (cleanup_target): Default to_disconnect.
2082 (update_current_target): Inherit to_disconnect.
2083 (target_disconnect, debug_to_disconnect): New functions.
2084 (setup_target_debug): Set to_disconnect.
2085 * target.h (struct target_ops): Add to_disconnect.
2086 (target_disconnect): Add prototype.
2087
2088 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2089
2090 * breakpoint.c (insert_catchpoint): New function.
2091 (insert_breakpoints): Use catch_exceptions to call
2092 insert_catchpoint. Disable catchpoints if they fail to insert.
2093
2094 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2095
2096 * symfile.c (reread_symbols): Clear sym_private.
2097
2098 2003-06-17 Andrew Cagney <cagney@redhat.com>
2099
2100 * trad-frame.h (struct frame_info): Add opaque declaration.
2101 * remote-fileio.h (struct cmd_list_element): Add opaque
2102 declaration.
2103 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2104 comments.
2105
2106 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2107
2108 * remote.c (remote_prepare_to_store): Replace call to
2109 deprecated_read_register_bytes with multiple regcache_raw_read
2110 calls.
2111
2112 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2113
2114 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2115 (nto_find_and_open_solib): Likewise.
2116 (nto_init_solib_absolute_prefix): Likewise.
2117 (_initialize_nto_tdep): Fix indentation.
2118
2119 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2120
2121 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2122
2123 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2124
2125 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2126
2127 2003-06-17 Jim Blandy <jimb@redhat.com>
2128
2129 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2130
2131 2003-06-16 Theodore A. Roth <troth@openavr.org>
2132
2133 * avr-tdep.c (avr_extract_return_value): New function.
2134 (avr_gdbarch_init): Set extract_return_value method.
2135
2136 2003-06-16 Andrew Cagney <cagney@redhat.com>
2137
2138 * frame.h (deprecated_get_next_frame_hack): Declare.
2139 * frame.c (legacy_saved_regs_prev_register): Only require
2140 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2141 there are always saved regs.
2142 (deprecated_generic_get_saved_register): Do not require
2143 DEPRECATED_FRAME_INIT_SAVED_REGS.
2144 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2145 use frame ID unwind instead.
2146 (deprecated_get_next_frame_hack): New function.
2147
2148 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2149
2150 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2151 (h8300_push_dummy_call): ...this function. Some minor optimization.
2152 (h8300_push_return_address): Remove.
2153 (h8300_gdbarch_init): Remove calls to
2154 set_gdbarch_deprecated_dummy_write_sp,
2155 set_gdbarch_deprecated_push_arguments and
2156 set_gdbarch_deprecated_push_return_address.
2157 Add call to set_gdbarch_push_dummy_call.
2158
2159 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2160
2161 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2162 (E_PSEUDO_EXR_REGNUM): Ditto.
2163 (h8300_is_argument_spill): Check for instructions moving argument
2164 registers into safe registers.
2165 (h8300_skip_prologue): Check for stm instruction to push registers
2166 used for register variables onto stack.
2167 (gdb_print_insn_h8300): Remove.
2168 (h8300_examine_prologue): Add a comment.
2169 (h8300_register_name): Take pseudo registers into account.
2170 (h8300s_register_name): Ditto.
2171 (h8300sx_register_name): Ditto.
2172 (h8300_print_register): Ditto.
2173 (h8300_print_registers_info): Define "nice" printing order.
2174 (h8300_saved_pc_after_call): Take pseudo registers into account.
2175 (h8300_register_type): Ditto. Return type used for remote connection
2176 when requesting real CCR or EXR register, return actual type when
2177 requesting pseudo CCR or EXR.
2178 (h8300_pseudo_register_read): New function.
2179 (h8300_pseudo_register_write): Ditto.
2180 (h8300_dbg_reg_to_regnum): Ditto.
2181 (h8300s_dbg_reg_to_regnum): Ditto.
2182 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2183 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2184 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2185 set_gdbarch_print_insn architecture dependent.
2186 Call set_gdbarch_pseudo_register_read and
2187 set_gdbarch_pseudo_register_write.
2188 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2189
2190 2003-06-16 Andrew Cagney <cagney@redhat.com>
2191
2192 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2193 * gdbarch.h, gdbarch.c: Re-generate.
2194 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2195 * s390-tdep.c (s390_gdbarch_init): Update.
2196 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2197 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2198 * mips-tdep.c (mips_gdbarch_init): Update.
2199 * mcore-tdep.c (mcore_gdbarch_init): Update.
2200 * cris-tdep.c (cris_gdbarch_init): Update.
2201 * infcall.c (call_function_by_hand): Update.
2202 * ia64-tdep.c (ia64_push_arguments): Update comment.
2203 * frame.c (legacy_get_prev_frame): Do not assume
2204 SAVE_DUMMY_FRAME_TOS_P.
2205 * dummy-frame.c (find_dummy_frame): Update comment.
2206
2207 2003-06-16 Andrew Cagney <cagney@redhat.com>
2208
2209 * regcache.c (do_cooked_read): Do not use register_valid_p.
2210
2211 2003-06-15 Theodore A. Roth <troth@openavr.org>
2212
2213 * avr-tdep.c (avr_register_type): Remove a blank line.
2214 (avr_scan_prologue): Correct some comments.
2215
2216 2003-06-15 Theodore A. Roth <troth@openavr.org>
2217
2218 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2219 prologue types.
2220 Properly scan prologues generated by gcc with the -mcall-prologues
2221 option.
2222 Add code to scan -mcall-prologues for mega devices.
2223
2224 2003-06-15 Theodore A. Roth <troth@openavr.org>
2225
2226 * avr-tdep.c (avr_register_byte): Delete function.
2227 (avr_register_raw_size): Delete function.
2228 (avr_register_virtual_size): Delete function.
2229 (avr_register_virtual_type): Delete function.
2230 (avr_register_type): New function.
2231 (avr_address_to_pointer): Remove unused code.
2232 (avr_read_fp): Need to read FP as two separate bytes due to change to
2233 avr_register_type() usage.
2234 (avr_gdbarch_init): Don't set deprecated_register_size.
2235 Don't set deprecated_register_bytes.
2236 Don't set deprecated_register_byte.
2237 Don't set deprecated_register_raw_size.
2238 Don't set deprecated_max_register_raw_size.
2239 Don't set deprecated_register_virtual_size.
2240 Don't set deprecated_max_register_virtual_size.
2241 Don't set deprecated_register_virtual_type.
2242 Set register_type method.
2243
2244 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2245
2246 * Makefile.in (linux-nat.o): Add rule.
2247 * linux-nat.c: New file.
2248 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2249 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2250 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2251 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2252 * config/arm/linux.mh (NATDEPFILES): Likewise.
2253 * config/i386/linux.mh (NATDEPFILES): Likewise.
2254 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2255 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2256 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2257 * config/mips/linux.mh (NATDEPFILES): Likewise.
2258 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2259 * config/s390/s390.mh (NATDEPFILES): Likewise.
2260 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2261
2262 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2263
2264 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2265 replace out-of-date comment.
2266
2267 2003-06-15 Andrew Cagney <cagney@redhat.com>
2268
2269 * rdi-share/host.h (Fail): Change to a varargs function.
2270 * remote-rdi.c (Fail): Update.
2271
2272 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2273
2274 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2275 (i386_convert_register_p, i386_register_to_value,
2276 i386_register_from_value): Handle types longer than 8 bytes.
2277
2278 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2279
2280 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2281 Move floating-point code to new function in i387-tdep.c.
2282 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2283 New functions containing code moved here from i386-tdep.c.
2284 * i387-tdep.h: Add opaque declaration for `struct type'.
2285 (i387_register_to_value, i387_value_to_register): New prototypes.
2286 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2287 (x86_64_init_abi): Set convert_register_p, register_to_value and
2288 value_to_register here.
2289
2290 2003-06-14 Andrew Cagney <cagney@redhat.com>
2291
2292 * mips-tdep.c (mips_register_to_value): Make static.
2293 (mips_value_to_register): Make static.
2294 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2295 * ia64-tdep.c (ia64_register_raw_size): Make static.
2296 (ia64_register_virtual_size): Make static.
2297 (ia64_register_byte): Make static.
2298 * i387-tdep.c: Include "i387-tdep.h".
2299 (print_387_control_word): Delete function.
2300 (print_387_status_word): Delete function.
2301 (print_387_status_bits): Delete function.
2302 (print_387_control_bits): Delete function.
2303 * Makefile.in (i387-tdep.o): Update dependencies.
2304 * rdi-share/host.h (Fail): Declare.
2305 * remote-rdi.c (Fail): Update to match declaration.
2306
2307 2003-06-14 Andrew Cagney <cagney@redhat.com>
2308
2309 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2310 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2311 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2312 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2313 * README: Delete reference to remote-array.
2314 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2315 (remote-array.o): Delete target.
2316 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2317 * remote-array.c: Delete file.
2318
2319 2003-06-14 Andrew Cagney <cagney@redhat.com>
2320 Mark Kettenis <kettenis@gnu.org>
2321
2322 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2323 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2324 parameter with "frame".
2325 * gdbarch.h, gdbarch.c: Re-generate.
2326 * frame.h (put_frame_register): Declare.
2327 * frame.c (put_frame_register): New function.
2328 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2329 (legacy_register_to_value): Rewrite, use "frame" to get the
2330 register value.
2331 (legacy_value_to_register): Rewrite, use "frame" to find the
2332 register's location before storing.
2333 * arch-utils.h (legacy_convert_register_p): Update.
2334 (legacy_register_to_value, legacy_value_to_register): Update.
2335 * findvar.c (value_from_register): Rewrite, eliminate use of
2336 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2337 "frame" to REGISTER_TO_VALUE.
2338 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2339 lval_reg_frame_relative + lval_register branch of the switch. Do
2340 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2341 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2342 I386_EDI_REGNUM): New defines.
2343 (i386_next_regnum, i386_convert_register_p,
2344 i386_register_to_value, i386_value_to_register): New functions.
2345 (i386_register_convertible, i386_register_convert_to_virtual,
2346 i386_convert_to_raw): Remove functions.
2347 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2348 value_to_register instead of register_convertible,
2349 register_convert_to_virtual and register_convert_to_raw.
2350 * mips-tdep.c (mips_convert_register_p): New function.
2351 (mips_value_to_register): Replace mips_register_convert_from_type.
2352 (mips_register_to_value): Replace mips_register_convert_to_type.
2353 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2354 register_to_value.
2355 * alpha-tdep.c (alpha_convert_register_p): Update.
2356 (alpha_value_to_register): Update, store the register.
2357 (alpha_register_to_value): Update, fetch the register.
2358
2359 2003-06-14 Theodore A. Roth <troth@openavr.org>
2360
2361 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2362 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2363 Don't set deprecated_call_dummy_words.
2364 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2365 Don't set remote_translate_xfer_address.
2366 (avr_io_reg_read_command): Remove commented out debug printf.
2367 Wrap a long line.
2368
2369 2003-06-14 Theodore A. Roth <troth@openavr.org>
2370
2371 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2372 causes gdb to seg fault.
2373
2374 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
2375
2376 * sparc-nat.c (fetch_inferior_registers): Correct
2377 a reference to "registers".
2378
2379 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2380
2381 * Makefile.in (exc_request_U_h): Define
2382 (exc_request_S_h): Likewise.
2383 (msg_reply_S_h): Likewise.
2384 (msg_U_h): Likewise.
2385 (notify_S_h): Likewise.
2386 (process_reply_S_h): Likewise.
2387 (gnu-nat.o): Depend on gdb_obstack_h
2388 * gnu-nat.c: Include "gdb_obstack.h".
2389
2390 2003-06-13 Andrew Cagney <cagney@redhat.com>
2391
2392 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2393 * gdbarch.h, gdbarch.c: Re-generate.
2394
2395 2003-06-13 Andrew Cagney <cagney@redhat.com>
2396
2397 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2398 when deprecated REGISTER macros can be deleted.
2399 * gdbarch.h, gdbarch.c: Re-generate.
2400
2401 2003-06-13 Jim Blandy <jimb@redhat.com>
2402
2403 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2404 Linux entry point symbols for _dl_debug_state, too.
2405
2406 2003-06-13 Andrew Cagney <cagney@redhat.com>
2407
2408 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2409 available, do not use the FP register, and always save the TOS.
2410 * dummy-frame.c (dummy_frame_this_id): Do not assert
2411 SAVE_DUMMY_FRAME_TOS.
2412 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2413 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2414 (i386_push_dummy_call): Add 8 to the returned SP.
2415 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2416 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2417 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2418 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2419 (x86_64_push_dummy_call): Return "sp + 16".
2420 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2421 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2422 save_dummy_frame_tos.
2423
2424 2003-06-13 Jim Blandy <jimb@redhat.com>
2425
2426 * frv-tdep.c (frv_use_struct_convention): Delete static
2427 declaration for function deleted in my change of 2003-06-12.
2428
2429 2003-06-13 Theodore A. Roth <troth@openavr.org>
2430
2431 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2432 (avr_pointer_to_address): Shift code addrs left 1 bit.
2433 (avr_convert_from_func_ptr_addr): Delete function since operation is
2434 better handled by avr_address_to_pointer and avr_pointer_to_address.
2435 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2436
2437 2003-06-13 Mark Kettenis <kettenis@gnu.org>
2438
2439 From Kelley Cook <kelleycook@wideopenwest.com>:
2440 * configure.host: Accept i[34567]86 variants.
2441 * configure.tgt: Likewise.
2442 * nlm/configure.in: Likewise.
2443 * nlm/configure: Regenerated.
2444
2445 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2446
2447 * arm-tdep.c (solib-svr4.h): Dont' include it.
2448 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2449 * arm-linux-tdep.c: ... here. Make static.
2450 (arm_linux_init_abi): Register it.
2451 (solib-svr4.h): Include it.
2452 * Makefile.in: Update dependencies.
2453 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2454 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2455
2456 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2457
2458 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2459 indicate registers used for return values.
2460 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2461 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2462 members.
2463 (h8300_init_extra_frame_info): Ditto.
2464 (h8300_frame_locals_address): Removed.
2465 (h8300_frame_args_address): Removed.
2466 (h8300_extract_return_value): Use new regcache structure. Only care
2467 for 16 bit CPUs.
2468 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2469 (h8300_store_return_value): Use new regcache structure. Only care
2470 for 16 bit CPUs.
2471 (h8300h_store_return_value): Same function for 32 bit CPUs.
2472 (h8300_store_struct_return): Removed.
2473 (h8300_extract_struct_value_address): Use new regcache structure.
2474 (h8300h_extract_struct_value_address): Removed.
2475 (h8300_push_dummy_code): New function.
2476 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2477 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2478 set_gdbarch_store_return_value architecture dependent.
2479 Call set_gdbarch_push_dummy_code and
2480 set_gdbarch_extract_struct_value_address.
2481 Remove calls to set_gdbarch_frame_args_address,
2482 set_gdbarch_frame_locals_address,
2483 set_gdbarch_deprecated_store_struct_return,
2484 set_gdbarch_deprecated_extract_return_value,
2485 set_gdbarch_deprecated_extract_struct_value_address,
2486 set_gdbarch_deprecated_call_dummy_words and
2487 set_gdbarch_deprecated_sizeof_call_dummy_words.
2488
2489 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2490
2491 * h8300-tdep.c (h8300_register_byte): Remove.
2492 (h8300h_register_byte): Remove.
2493 (h8300_register_virtual_type): Remove. Substitute by...
2494 (h8300_register_type): New function.
2495 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2496 (h8300h_extract_struct_value_address): Ditto.
2497 (h8300_gdbarch_init): Drop calls to
2498 set_gdbarch_deprecated_register_byte and
2499 set_gdbarch_deprecated_register_virtual_type.
2500 Add call to set_gdbarch_register_type.
2501
2502 2003-06-13 Andrew Cagney <cagney@redhat.com>
2503
2504 * gdbarch.sh: Update comments on registers.
2505 (deprecated_register_byte): Rename register_byte.
2506 (deprecated_register_raw_size): Rename register_raw_size.
2507 (deprecated_register_virtual_size): Rename register_virtual_size.
2508 (deprecated_register_virtual_type): Rename register_virtual_type.
2509 * gdbarch.h, gdbarch.c: Re-generate.
2510 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2511 * vax-tdep.c (vax_gdbarch_init): Update.
2512 * v850-tdep.c (v850_gdbarch_init): Update.
2513 * sparc-tdep.c (sparc_gdbarch_init): Update.
2514 * sh-tdep.c (sh_gdbarch_init): Update.
2515 * s390-tdep.c (s390_gdbarch_init): Update.
2516 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2517 * ns32k-tdep.c: Update.
2518 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2519 * mips-tdep.c (mips_gdbarch_init): Update.
2520 * mcore-tdep.c (mcore_gdbarch_init): Update.
2521 * m68k-tdep.c (m68k_gdbarch_init): Update.
2522 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2523 * ia64-tdep.c (ia64_gdbarch_init): Update.
2524 * hppa-tdep.c (hppa_gdbarch_init): Update.
2525 * h8300-tdep.c (h8300_gdbarch_init): Update.
2526 * frv-tdep.c (frv_gdbarch_init): Update.
2527 * cris-tdep.c (cris_gdbarch_init): Update.
2528 * avr-tdep.c (avr_gdbarch_init): Update.
2529 * alpha-tdep.c (alpha_gdbarch_init): Update.
2530 * arm-tdep.c (arm_gdbarch_init): Update.
2531
2532 2003-06-13 Andrew Cagney <cagney@redhat.com>
2533
2534 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2535 mips_o32_use_struct_convention with always_use_struct_convention.
2536
2537 2003-06-12 David Carlton <carlton@kealia.com>
2538
2539 * cp-namespace.c (cp_set_block_scope): Comment out
2540 processing_has_namespace_info branch.
2541
2542 2003-06-12 Jim Blandy <jimb@redhat.com>
2543
2544 Recognize and skip 64-bit PowerPC Linux linkage functions.
2545 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2546 insn_pattern, insns_match_pattern, d_field, ds_field): New
2547 functions, macros, and types for working with PPC instructions.
2548 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2549 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2550 ppc64_skip_trampoline_code): New functions, variables, and macros
2551 for recognizing and skipping linkage functions.
2552 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2553 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2554
2555 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2556 register offsets for both the 32- and 64-bit interfaces.
2557
2558 Actually finish the job started by my change of 2003-05-29.
2559 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2560 other #definition of this.
2561 (ppc_linux_skip_trampoline_code): Remove declaration.
2562 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2563 static.
2564 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2565 method for GDBARCH.
2566
2567 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2568 'long' on ppc64-*-linux*.
2569
2570 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2571 isn't #defined, assume the register doesn't exist: act as if
2572 tdep->ppc_mq_regnum were -1.
2573
2574 * configure.host, configure.tgt: Add entries for
2575 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2576 powerpc/linux.mt.
2577 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2578 New files.
2579
2580 * arch-utils.c (always_use_struct_convention): New function.
2581 * arch-utils.h (always_use_struct_convention): New prototype.
2582 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2583 (alpha_gdbarch_init): Register always_use_struct_convention,
2584 instead of alpha_use_struct_convention.
2585 * cris-tdep.c (cris_use_struct_convention): Delete.
2586 (cris_gdbarch_init): Register always_use_struct_convention,
2587 instead of cris_use_struct_convention.
2588 * frv-tdep.c (frv_use_struct_convention): Delete.
2589 (frv_gdbarch_init): Register always_use_struct_convention,
2590 instead of frv_use_struct_convention.
2591 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2592 (h8300_gdbarch_init): Register always_use_struct_convention,
2593 instead of h8300_use_struct_convention.
2594 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
2595 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2596 instead of mips_o32_use_struct_convention.
2597
2598 2003-06-12 Andrew Cagney <cagney@redhat.com>
2599
2600 * wince.c: Include "mips-tdep.h".
2601 * mips-tdep.h (mips_next_pc): Declare.
2602 * mcore-tdep.c: Make more local functions static.
2603 * Makefile.in (wince.o): Update dependencies.
2604
2605 2003-06-12 David Carlton <carlton@kealia.com>
2606
2607 * symtab.c (lookup_symbol_aux_minsyms): Replace
2608 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2609 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2610 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2611 SYMBOL_NATURAL_NAME.
2612
2613 2003-06-12 Andreas Schwab <schwab@suse.de>
2614
2615 * Makefile.in (tuiDisassem.o): Update dependencies.
2616
2617 2003-06-12 David Carlton <carlton@bactrian.org>
2618
2619 * symtab.h: Delete declaration of make_symbol_overload_list.
2620 Add declaration of lookup_partial_symbol.
2621 * symtab.c (remove_params): Move to cp-support.c.
2622 (overload_list_add_symbol, make_symbol_overload_list)
2623 (sym_return_val_size, sym_return_val_index): Ditto.
2624 (lookup_partial_symbol): Make extern.
2625 * cp-support.h: Add declaration of make_symbol_overload_list.
2626 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2627 symtab.h, and block.h.
2628 (remove_params): Move here from symtab.c.
2629 (overload_list_add_symbol, make_symbol_overload_list)
2630 (sym_return_val_size, sym_return_val_index): Ditto.
2631 * valops.c: Include cp-support.h.
2632 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2633 frame_h, and block_h.
2634 (valops.o): Depend on cp_support_h.
2635
2636 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
2637
2638 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2639 substitute by NUM_REGS throughout.
2640 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2641 (h8300s_register_name): New function for H8S registers.
2642 (h8300sx_register_name): Ditto for H8SX registers.
2643 (h8300_print_register): Revise register printing, avoid depending
2644 on 32 bit long.
2645 (h8300_register_byte): Only care for H8/300 registers.
2646 (h8300h_register_byte): New function for any other architecture.
2647 (h8300_register_raw_size): Remove.
2648 (h8300_register_virtual_type): Revise to return actually useful
2649 type.
2650 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2651 (h8300h_extract_struct_value_address): New function for any other
2652 architecture.
2653 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2654 set_gdbarch_register_name, set_gdbarch_register_byte,
2655 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2656 Remove calls to set_gdbarch_deprecated_register_size,
2657 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2658 set_gdbarch_deprecated_max_register_raw_size,
2659 set_gdbarch_register_virtual_size and
2660 set_gdbarch_deprecated_max_register_virtual_size entirely.
2661 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2662 set_gdbarch_long_double_bit.
2663
2664 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2665
2666 * doublest.c (convert_doublest_to_floatformat): When dealing
2667 with the implied integer bit, only alter mant_bits if we are
2668 processing a full 32 bits of mantissa.
2669
2670 2003-06-11 David Carlton <carlton@bactrian.org>
2671
2672 * dictionary.h: New.
2673 * dictionary.c: New.
2674 * block.h: Add opaque declaration for struct dictionary.
2675 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2676 'sym' members.
2677 (BLOCK_DICT): New macro.
2678 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2679 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2680 BLOCK_SHOULD_SORT.
2681 (ALL_BLOCK_SYMBOLS): Update definition.
2682 * Makefile.in (SFILES): Add dictionary.c.
2683 (dictionary_h): New.
2684 (COMMON_OBS): Add dictionary.o.
2685 (dictionary.o): New.
2686 (ada-lang.o): Depend on dictionary_h.
2687 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
2688 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
2689 (mi-cmd-stack.o): Ditto.
2690 (gdbtk-cmds.o): Update dependencies.
2691 (gdbtk-stack.o): Ditto.
2692 * ada-lang.c: Include dictionary.h.
2693 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
2694 (fill_in_ada_prototype, debug_print_block): Ditto.
2695 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
2696 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
2697 'is_sorted'.
2698 * mdebugread.c: Include dictionary.h.
2699 (struct parse_stack): Delete 'maxsyms' member.
2700 (parse_symbol): Update calls to new_block. Delete calls to
2701 shrink_block. Use dictionary methods.
2702 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
2703 Update calls to new_symtab. Don't maintain maxsyms data.
2704 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
2705 (add_symbol): Just call dict_add_symbol.
2706 (new_symtab): Delete 'maxsyms' argument.
2707 (new_symtab): Update calls to new_block.
2708 (new_block): Delete 'maxsyms' argument; add 'function' argument.
2709 (shrink_block): Delete function.
2710 (fixup_sigtramp): Update call to new_block. Add symbol via
2711 dict_add_symbol.
2712 * jv-lang.c: Include dictionary.h.
2713 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
2714 appropriately. Set class_symtab->free_func. Make sure the
2715 blockvector is big enough to hold two blocks.
2716 (add_class_symtab_symbol): Use dictionary methods.
2717 (free_class_block): New function.
2718 (type_from_class): Replace explicit iteration by
2719 ALL_BLOCK_SYMBOLS.
2720 * symtab.h (struct symtab): Replace 'free_ptr' method by
2721 'free_func'.
2722 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
2723 sort_symtab_syms.
2724 * dwarfread.c (psymtab_to_symtab_1): Delete call to
2725 sort_symtab_syms.
2726 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
2727 Include dictionary.h.
2728 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
2729 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
2730 sort_symtab_syms.
2731 * objfiles.c: Include dictionary.h.
2732 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
2733 * buildsym.c: Include dictionary.h.
2734 (finish_block): Use dictionary methods.
2735 (end_symtab): Set free_func to NULL, not free_ptr.
2736 * tracepoint.c: Include dictionary.h.
2737 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
2738 (scope_info): Ditto.
2739 * stack.c: Include dictionary.h.
2740 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
2741 (print_block_frame_labels, print_frame_arg_vars)
2742 (print_frame_args): Ditto.
2743 * symmisc.c (free_symtab_block): Use dictionary methods.
2744 (dump_symtab): Ditto.
2745 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
2746 Include dictionary.h.
2747 * symfile.h: Delete declarations of sort_block_syms,
2748 sort_symtab_syms.
2749 * symfile.c (sort_block_syms): Delete.
2750 (sort_symtab_syms): Delete.
2751 * symtab.c: Include dictionary.h.
2752 (lookup_block_symbol): Use dictionary iterators.
2753 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
2754 (search_symbols, make_symbol_completion_list): Ditto.
2755 (make_symbol_overload_list): Ditto.
2756 * valops.c (value_of_local): Use dict_empty.
2757 Include dictionary.h.
2758
2759 2003-06-11 J. Brobecker <brobecker@gnat.com>
2760
2761 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
2762
2763 2003-06-11 David Carlton <carlton@bactrian.org>
2764
2765 * block.h (BLOCK_SHOULD_SORT): Delete.
2766 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
2767 blocks.
2768 * ada-lang.c (ada_add_block_symbols): Ditto.
2769 * symfile.c (sort_block_syms): Delete.
2770 (sort_symtab_syms): Ditto.
2771 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
2772 declarations.
2773 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
2774 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
2775 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
2776 * dwarfread.c (psymtab_to_symtab_1): Ditto.
2777 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
2778 * mdebugread.c (psymtab_to_symtab_1): Ditto.
2779 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2780
2781 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2782
2783 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
2784 bits to 128.
2785
2786 2003-06-11 Andrew Cagney <cagney@redhat.com>
2787
2788 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2789 REGISTER_CONVERTIBLE.
2790 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
2791 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
2792 * gdbarch.h, gdbarch.c: Re-generate.
2793 * arch-utils.h (deprecated_register_convertible_not): Rename
2794 generic_register_convertible_not.
2795 * arch-utils.c (deprecated_register_convertible_not): Rename
2796 generic_register_convertible.
2797 (legacy_convert_register_p, legacy_register_to_value): Update.
2798 * sh-tdep.c (sh64_push_arguments): Update.
2799 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
2800 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
2801 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
2802 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
2803 * arch-utils.c (legacy_value_to_register): Update.
2804 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2805 (rs6000_register_convert_to_raw): Make parameter "from" const.
2806 * mips-tdep.c (mips_gdbarch_init): Update.
2807 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
2808 * infcmd.c (default_print_registers_info): Update.
2809 * ia64-tdep.c (ia64_gdbarch_init): Update.
2810 (ia64_register_convert_to_raw): Make parameter "from" const.
2811 * i386-tdep.c (i386_gdbarch_init): Update.
2812 (i386_register_convert_to_raw): Update.
2813
2814 2003-06-11 Andrew Cagney <cagney@redhat.com>
2815
2816 * remote-fileio.c: Include "remote-fileio.h".
2817 * Makefile.in (remote-fileio.o): Update dependencies.
2818 (remote_fileio_h): Fix typo.
2819
2820 2003-06-11 Andrew Cagney <cagney@redhat.com>
2821
2822 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
2823 (xstormy16_save_dummy_frame_tos): Make static.
2824 (_initialize_xstormy16_tdep): Add declaration.
2825 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
2826 * v850-tdep.c: Make local functions static.
2827 (_initialize_v850_tdep): Add declaration.
2828 * sparc-tdep.c: Make local functions static.
2829 (_initialize_sparc_tdep): Add declaration.
2830 * sh-tdep.c: Make local functions static.
2831 (_initialize_sh_tdep): Add declaration.
2832 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
2833 * s390-tdep.c: Make local functions static.
2834 (_initialize_s390_tdep): Add declaration.
2835 * dbxread.c (find_stab_function_addr): Make static.
2836 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
2837 * ocd.c (_initialize_remote_ocd): Add declaration.
2838 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
2839 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
2840 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
2841 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
2842 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
2843 * remote-array.c (_initialize_array): Add declaration.
2844 (_initialize_remote_monitors): Add declaration.
2845 * remote-mips.c: Make local functions static.
2846 (_initialize_remote_mips): Add declaration.
2847 * mcore-tdep.c: Make all local functions static.
2848 (_initialize_mcore_tdep): Add declaration.
2849 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
2850 * abug-rom.c (_initialize_abug_rom): Add declaration.
2851 * rom68k-rom.c (_initialize_rom68k): Add declaration.
2852 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
2853 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
2854 * remote-est.c (_initialize_est): Add declaration.
2855 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
2856 (m68hc11_call_dummy_address): Make static.
2857 * ia64-tdep.c: Make local functions static.
2858 (_initialize_ia64_tdep): Add declaration.
2859 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
2860 * monitor.c (monitor_wait_filter): Make static.
2861 (_initialize_remote_monitors): Add declaration.
2862 * remote-hms.c (_initialize_remote_hms): Add declaration.
2863 * remote-e7000.c (fetch_regs_from_dump): Make static.
2864 (expect_n): Make static.
2865 (_initialize_remote_e7000): Add declaration.
2866 * ser-e7kpc.c: Always include "defs.h".
2867 (_initialize_ser_e7000pc): Add declaration.
2868 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
2869 * cris-tdep.c: Make all but one function static.
2870 (_initialize_cris_tdep): Add declaration.
2871 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
2872 * solib.c (update_solib_list): Make static.
2873 (_initialize_solib): Add declaration.
2874 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
2875 (_initialize_avr_tdep): Add declaration.
2876 * remote-rdi.c (voiddummy): Make static.
2877 (_initialize_remote_rdi): Add declaration.
2878 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
2879 * remote-rdp.c (send_rdp): Make static.
2880 (_initialize_remote_rdp): Add declaration.
2881 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
2882
2883 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
2884
2885 * remote-fileio.c: Make ari happy.
2886
2887 2003-06-10 J. Brobecker <brobecker@gnat.com>
2888
2889 * rs6000-nat.c (child_xfer_memory): Compute the right address when
2890 fetching the trailing bytes of the buffer we are about to write.
2891
2892 2003-06-10 Andrew Cagney <cagney@redhat.com>
2893
2894 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
2895 * Makefile.in (remote-fileio.o): Update dependencies.
2896 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
2897 include <setjmp.h>, or <sys/types.h> conditional on USG.
2898 (remote_fio_jmp_buf): Delete global variable.
2899
2900 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
2901 Martin M. Hunt <hunt@redhat.com>
2902
2903 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
2904 (SFILES): Add remote-fileio.c.
2905 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
2906 dependencies for building remote.o.
2907 * remote-fileio.c: New file implementing the remote File-I/O protocol.
2908 * remote-fileio.h: New header file defining remote File-I/O interface.
2909 * remote.c (remote_write_bytes, remote_read_bytes): Remove
2910 static storage class.
2911 (remote_wait, remote_async_wait): Call remote_fileio_request() on
2912 'F' packet.
2913 (_initialize_remote): Call initialize_remote_fileio().
2914 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
2915 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2916 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2917 (captured_main): Initialize new ui_files.
2918 * ui-file.c: Add read and fgets input functions.
2919 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
2920 (null_file_read): New function.
2921 (ui_file_read): New function.
2922 (set_ui_file_read): New function.
2923 (stdio_file_read): New function.
2924 * ui-file.h: New type ui_file_read_ftype.
2925 (set_ui_file_read): Declare.
2926 (ui_file_read): Declare.
2927
2928 2003-06-09 Andrew Cagney <cagney@redhat.com>
2929
2930 * frame.h (deprecated_unwind_get_saved_register): Rename
2931 generic_unwind_get_saved_register, update comments.
2932 * mips-tdep.c (mips_get_saved_register): Update.
2933 * frame.c (deprecated_unwind_get_saved_register): Update.
2934
2935 2003-06-09 Andrew Cagney <cagney@redhat.com>
2936
2937 * vax-tdep.c (vax_frame_locals_address): Delete function.
2938 (vax_gdbarch_init): Do not set frame_locals_address.
2939 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
2940 (m68hc11_gdbarch_init): Do not set frame_locals_address.
2941 * s390-tdep.c (s390_frame_args_address): Delete function.
2942 (s390_gdbarch_init): Do not set frame_args_address or
2943 frame_locals_address.
2944 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
2945 (ns32k_gdbarch_init): Do not set frame_locals_address.
2946 * hppa-tdep.c (hppa_frame_args_address): Delete function.
2947 (hppa_frame_locals_address): Delete function.
2948 (hppa_gdbarch_init): Do not set frame_args_address, or
2949 frame_locals_address.
2950 * arm-tdep.c (arm_frame_args_address): Delete.
2951 (arm_frame_locals_address): Delete.
2952 (arm_gdbarch_init): Do not set frame_args_address, or
2953 frame_locals_address.
2954
2955 2003-06-09 Andrew Cagney <cagney@redhat.com>
2956
2957 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
2958 * gdbarch.h, gdbarch.c: Re-generate.
2959 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
2960 * arch-utils.c (frame_num_args_unknown): Delete function.
2961 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
2962 (frame_info): Use FRAME_NUM_ARGS_P.
2963 * arm-tdep.c (arm_frame_num_args): Delete function.
2964 (arm_gdbarch_init): Do not set frame_num_args.
2965 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
2966 * hppa-tdep.c (hppa_frame_num_args): Delete function.
2967 (hppa_gdbarch_init): Do not set frame_num_args.
2968 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
2969 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2970 frame_num_args to default frame_num_args_unknown.
2971 * v850-tdep.c (v850_gdbarch_init): Ditto.
2972 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2973 * sh-tdep.c (sh_gdbarch_init): Ditto.
2974 * s390-tdep.c (s390_gdbarch_init): Ditto.
2975 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2976 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2977 * mips-tdep.c (mips_gdbarch_init): Ditto.
2978 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2979 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2980 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2981 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2982 * i386-tdep.c (i386_gdbarch_init): Ditto.
2983 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2984 * frv-tdep.c (frv_gdbarch_init): Ditto.
2985 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2986 * cris-tdep.c (cris_gdbarch_init): Ditto.
2987 * avr-tdep.c (avr_gdbarch_init): Ditto.
2988 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2989
2990 2003-06-09 Andrew Cagney <cagney@redhat.com>
2991
2992 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
2993 (print_frame_args): Moved to "stack.c".
2994 * stack.c: Include "gdb_assert.h".
2995 (print_frame_nameless_args): Moved from "printcmd.c", made static.
2996 (print_frame_args): Moved from "printcmd.c".
2997 * frame.h (print_frame_args): Delete declaration.
2998 * Makefile.in (stack.o): Update dependencies.
2999
3000 2003-06-08 Andrew Cagney <cagney@redhat.com>
3001
3002 * frame.c (get_prev_frame): Remove reference to
3003 frame_args_address_correct in comments.
3004 * frame-base.c (default_frame_args_address): Delete code
3005 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3006 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3007 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3008 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3009 (vax_frame_args_address_correct): Delete declaration.
3010
3011 2003-06-08 Andrew Cagney <cagney@redhat.com>
3012
3013 * gdbarch.sh (UNWIND_SP): Add.
3014 * gdbarch.h, gdbarch.c: Re-generate.
3015 * frame.c (frame_sp_unwind): New function.
3016 (get_frame_sp): New function.
3017 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
3018 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
3019 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
3020 value.
3021 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
3022 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
3023
3024 2003-06-08 Andrew Cagney <cagney@redhat.com>
3025
3026 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3027 REMOTE_BREAKPOINT.
3028 * remote.c: Update.
3029 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3030 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3031 * config/m68k/tm-sun3.h: Update.
3032 * config/m68k/tm-m68klynx.h: Update.
3033 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3034
3035 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3036 trad_frame". Update comments.
3037 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3038 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3039 (trad_frame_register_value, trad_frame_prev_register): Update.
3040
3041 2003-06-08 Andrew Cagney <cagney@redhat.com>
3042
3043 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3044 from GCC's acinclude.m4.
3045 * configure.in: Check for getopt's delcaration.
3046 * aclocal.m4, config.in, configure: Re-generate.
3047 * main.c (error_init): Delete declaration.
3048 * defs.h (error_init): Declare.
3049 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3050 (rs6000_convert_from_func_ptr_addr): Make static.
3051 (_initialize_rs6000_tdep): Add declaration.
3052 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3053 (show_commands, set_verbose, show_history): Delete declaration.
3054 * top.h (set_verbose): Add declaration.
3055 (show_history, set_history, show_commands): Add declaration.
3056 (do_restore_instream_cleanup): Add declaration.
3057 * objc-lang.c (specialcmp): Make static.
3058 (print_object_command): Make static.
3059 (find_objc_msgsend): Make static.
3060 (find_objc_msgcall_submethod_helper): Make static.
3061 (find_objc_msgcall_submethod): Make static.
3062 (_initialize_objc_language): Add declaration.
3063 (find_implementation_from_class): Make static.
3064 (find_implementation): Make static.
3065 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3066 * objc-lang.h (lookup_struct_typedef): Add declaration.
3067 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3068 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3069 (do_restore_user_call_depth): Make static.
3070 (do_restore_instream_cleanup): Delete declaration.
3071 (dont_repeat): Delete declaration.
3072 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3073 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3074 * reggroups.c (_initialize_reggroup): Add declaration.
3075 * cp-support.c (_initialize_cp_support): Add declaration.
3076 * cp-abi.c (_initialize_cp_abi): Add declaration.
3077 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3078 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3079 (_initialize_gnu_v3_abi): Add declaration.
3080 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3081 (_initialize_gnu_v2_abi): Add declaration.
3082 * frame-base.c (_initialize_frame_base): Add declaration.
3083 * doublest.c (floatformat_from_length): Make static.
3084 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3085 * frame.c (create_sentinel_frame): Make static.
3086 (_initialize_frame): Add declaration.
3087 * top.c (do_catch_errors): Make static.
3088 (gdb_rl_operate_and_get_next_completion): Make static.
3089 * typeprint.c: Include "typeprint.h".
3090 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3091 (sentinel_frame_this_id): Make static.
3092 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3093 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3094 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3095 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3096 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3097 * maint.c (maintenance_print_architecture): Make static.
3098 * signals/signals.c (_initialize_signals): Add declaration.
3099 * std-regs.c (_initialize_frame_reg): Add declaration.
3100 * jv-exp.y (push_variable): ISO C definition.
3101 (push_qualified_expression_name): Ditto.
3102 * memattr.c (_initialize_mem): Add declaration.
3103 * remote.c (remote_check_watch_resources): Make static.
3104 (remote_stopped_by_watchpoint): Make static.
3105 (remote_stopped_data_address): Make static.
3106 * d10v-tdep.c (nr_dmap_regs): Make static.
3107 (a0_regnum): Make static.
3108 (d10v_frame_unwind_cache): Make static.
3109 (d10v_frame_p): Make static.
3110 * osabi.c (show_osabi): Make static.
3111 (_initialize_gdb_osabi): Add extern declaration.
3112 * gdbtypes.c (make_qualified_type): Make static.
3113 (safe_parse_type): Make static.
3114 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3115 * macrotab.c (macro_bcache_free): Make static.
3116 * interps.c (interp_set_quiet): Make static.
3117 (interpreter_exec_cmd): Make static.
3118 * stack.h (select_frame_command): New file.
3119 * stack.c: Include "stack.h".
3120 (select_frame_command_wrapper): Delete function.
3121 (select_frame_command): Make global.
3122 * infcall.c: Include "infcall.h".
3123 * linespec.c: Include "linespec.h".
3124 * symfile.c (sections_overlap): Make static.
3125 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3126 * charset.c (_initialize_charset): Add missing prototype.
3127 * regcache.c (init_legacy_regcache_descr): Make static.
3128 (do_regcache_xfree): Make static.
3129 (regcache_xfer_part): Make static.
3130 (_initialize_regcache): Add missing prototype.
3131 * breakpoint.c (parse_breakpoint_sals): Make static.
3132 (breakpoint_sals_to_pc): Make static.
3133 * interps.h (clear_interpreter_hooks): ISO C declaration.
3134 * Makefile.in (stack_h): Define.
3135 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3136 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3137
3138 2003-06-08 Andrew Cagney <cagney@redhat.com>
3139
3140 * Makefile.in (d10v-tdep.o): Update dependencies.
3141 (SFILES): Add trad-frame.c.
3142 (trad_frame_h): Define.
3143 (COMMON_OBS): Add trad-frame.o.
3144 (trad-frame.o): Specify dependencies.
3145 * d10v-tdep.c: Include "trad-frame.h".
3146 (saved_regs_unwinder): Delete function.
3147 (d10v_frame_prev_register): Use trad_frame_prev_register.
3148 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3149 trad_frame", delete "regs" and "prev_sp".
3150 (prologue_find_regs): Use trad-frame.
3151 * trad-frame.h, trad-frame.c: New files.
3152
3153 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3154
3155 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3156
3157 2003-06-07 Adam Fedor <fedor@gnu.org>
3158
3159 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3160 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3161 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3162 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3163 resolve_msgsend_super, resolve_msgsend_super_stret):
3164 Use it.
3165
3166 2003-06-07 Andrew Cagney <cagney@redhat.com>
3167
3168 * symfile.h: Re-indent, clean up comments.
3169
3170 2003-06-07 Andrew Cagney <cagney@redhat.com>
3171
3172 * inferior.h (deprecated_write_sp): Replace
3173 generic_target_write_sp.
3174 * regcache.c (deprecated_write_sp): Replace
3175 generic_target_write_sp.
3176 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3177 * vax-tdep.c (vax_gdbarch_init): Update.
3178 * v850-tdep.c (v850_gdbarch_init): Update.
3179 * sparc-tdep.c (sparc_gdbarch_init): Update.
3180 * sh-tdep.c (sh_gdbarch_init): Update.
3181 * s390-tdep.c (s390_gdbarch_init): Update.
3182 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3183 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3184 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3185 * mcore-tdep.c (mcore_gdbarch_init): Update.
3186 * m68k-tdep.c (m68k_gdbarch_init): Update.
3187 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3188 * ia64-tdep.c (ia64_gdbarch_init): Update.
3189 * h8300-tdep.c (h8300_gdbarch_init): Update.
3190 * frv-tdep.c (frv_gdbarch_init): Update.
3191 * cris-tdep.c (cris_gdbarch_init): Update.
3192 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3193
3194 2003-06-07 Andrew Cagney <cagney@redhat.com>
3195
3196 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3197 Assert that PC_REGNUM is valid.
3198 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3199
3200 2003-06-07 Andrew Cagney <cagney@redhat.com>
3201
3202 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3203 * gdbarch.h, gdbarch.c: Regenerate.
3204 * mn10300-tdep.c: Include "gdb_assert.h".
3205 (mn10300_read_fp): New function.
3206 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3207 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3208 * ia64-tdep.c: Include "gdb_assert.h".
3209 (ia64_read_fp): New function.
3210 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3211 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3212 * regcache.c (generic_target_read_sp): Delete function.
3213 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3214 * inferior.h (generic_target_read_sp): Delete declaration.
3215 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3216 generic_target_read_sp.
3217 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3218 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3219 * sh-tdep.c (sh_gdbarch_init): Ditto.
3220 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3221 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3222
3223 2003-06-07 Andrew Cagney <cagney@redhat.com>
3224
3225 * gdbarch.sh: Comment each field of startup_gdbarch.
3226 * gdbarch.h, gdbarch.c: Re-generate.
3227
3228 2003-06-07 Andrew Cagney <cagney@redhat.com>
3229
3230 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3231 * gdbarch.h, gdbarch.c: Re-generate.
3232 * regcache.c: Update comments on read_pc et.al.
3233 (generic_target_read_pc): Delete function.
3234 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3235 * inferior.h (generic_target_read_pc): Delete declaration.
3236 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3237 generic_target_read_pc.
3238 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3239 * sh-tdep.c (sh_gdbarch_init): Ditto.
3240 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3241 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3242
3243 2003-06-07 Andrew Cagney <cagney@redhat.com>
3244
3245 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3246 "index" with "special_local_sect". Use strcmp instead of STREQ.
3247 Append period to coments.
3248
3249 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3250
3251 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3252 (elfstab_offset_sections): Likewise.
3253 * gdb-stabs.h (stab_section_info): Likewise.
3254 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3255 * objfiles.c (objfile_relocate): Likewise.
3256 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3257 * remote.c (get_offsets): Likewise.
3258 (remote_cisco_objfile_relocate): Likewise.
3259 * somread.c (som_symfile_offsets): Likewise.
3260 * symfile.c (alloc_section_addr_info): New function.
3261 (build_section_addr_info_from_section_tab): Use it.
3262 (free_section_addr_info): Adjust.
3263 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3264 (syms_from_objfile): Allocate local_addr dynamically.
3265 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3266 dynamically.
3267 (add_symbol_file_command): Allocate sect_opts dynamically.
3268 (reread_symbols): Avoid use of SECT_OFF_MAX.
3269 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3270 (alloc_section_addr_info): Declare it.
3271 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3272 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3273 dynamically.
3274 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3275
3276 2003-06-06 Andrew Cagney <cagney@redhat.com>
3277
3278 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3279 (d10v_frame_unwind_cache): Do not set "return_pc".
3280
3281 2003-06-06 Michael Snyder <msnyder@redhat.com>
3282
3283 * h8300-tdep.c: Make tidy (long lines).
3284
3285 2003-06-06 Michal Ludvig <mludvig@suse.cz>
3286
3287 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3288 to regcache_collect().
3289
3290 2003-06-05 J. Brobecker <brobecker@gnat.com>
3291
3292 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3293 pc_in_sigtramp multiarch method.
3294 (hppa_hpux_som_init_abi): Use it.
3295 (hppa_hpux_elf_init_abi): Likewise.
3296 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3297 macro has been multiarched.
3298 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3299 macro here, as hppa64 isn't multiarched yet.
3300
3301 2003-06-05 Andrew Cagney <cagney@redhat.com>
3302
3303 * Makefile.in (value_h): Add $(frame_h).
3304 * value.h: Include "frame.h".
3305 (struct value): Replace "frame_addr" with "frame_id".
3306 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3307 * values.c (allocate_value): Use VALUE_FRAME_ID.
3308 (value_copy): Use VALUE_FRAME_ID.
3309 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3310 * valops.c (value_assign): Update. Use frame_find_by_id.
3311
3312 2003-06-05 Michal Ludvig <mludvig@suse.cz>
3313
3314 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3315 in each pass.
3316
3317 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3318
3319 * thread-db.c (check_event): For create/death event breakpoints,
3320 loop through all messages to ensure that we read the message
3321 corresponding to the breakpoint we are at.
3322
3323 2003-06-04 Michael Snyder <msnyder@redhat.com>
3324
3325 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3326
3327 2003-06-04 Mark Kettenis <kettenis@gnu.org>
3328
3329 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3330 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3331 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3332 when handling .eh_frame sections.
3333
3334 2003-06-04 J. Brobecker <brobecker@gnat.com>
3335
3336 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3337 prepare_to_proceed procedure instead of the hppa-specific one.
3338 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3339
3340 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
3341
3342 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3343 * config.in: Regenerated.
3344 * configure.in: Add test for syscall function and check for
3345 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3346 * configure: Regenerated.
3347 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3348 <sys/syscall.h>.
3349 (kill_lwp): New function that uses tkill syscall or
3350 uses kill, depending on whether threading model is nptl or not.
3351 All callers of kill() changed to use kill_lwp().
3352 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3353 see if all threads have already exited in the nptl model.
3354 (stop_and_resume_callback): New callback function used by the
3355 lin_lwp_wait thread exit handling code.
3356 (stop_wait_callback): Check for threads already having exited and
3357 delete such threads fromt the lwp list when discovered.
3358 (stop_callback): Don't assert retcode of kill call.
3359
3360 Roland McGrath <roland@redhat.com>
3361 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3362 nptl libthread_db.
3363
3364 2003-06-03 Richard Henderson <rth@redhat.com>
3365
3366 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3367 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3368 (alpha_sigtramp_frame_prev_register): Likewise.
3369 (alpha_heuristic_frame_prev_register): Likewise.
3370 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3371
3372 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3373 alpha-specific register id names.
3374 (alpha_mdebug_frame_unwind_cache): Likewise.
3375 (alpha_mdebug_frame_prev_register): Likewise.
3376
3377 2003-06-03 Richard Henderson <rth@redhat.com>
3378
3379 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3380 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3381 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3382 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3383 unwind routines.
3384 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3385 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3386 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3387
3388 * alpha-linux-tdep.c: Remove unnecessary includes.
3389 * Makefile.in (alpha-linux-tdep.o): Update.
3390
3391 2003-06-03 Richard Henderson <rth@redhat.com>
3392
3393 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3394 (alphabsd_fill_fpreg): Likewise.
3395
3396 2003-06-03 J. Brobecker <brobecker@gnat.com>
3397
3398 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3399 references to struct frame_info fields by calls to the equivalent
3400 accessors. Necessary now that frame_info is opaque.
3401
3402 2003-06-03 J. Brobecker <brobecker@gnat.com>
3403
3404 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3405 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3406 structure, field no longer exists.
3407
3408 2003-06-03 J. Brobecker <brobecker@gnat.com>
3409
3410 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3411 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3412
3413 2003-06-03 J. Brobecker <brobecker@gnat.com>
3414
3415 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3416 references to struct frame_info fields by calls to the equivalent
3417 accessors. Necessary now that frame_info is opaque.
3418
3419 2003-06-03 J. Brobecker <brobecker@gnat.com>
3420
3421 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3422 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3423 structure, field no longer exists.
3424
3425 2003-06-03 Theodore A. Roth <troth@openavr.org>
3426
3427 * remote.c (init_remote_state): Compute sizeof_g_packet by
3428 accumulation of the size of all registers instead of blindly using
3429 DEPRECATED_REGISTER_BYTES.
3430
3431 2003-06-03 Michael Snyder <msnyder@redhat.com>
3432
3433 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3434 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3435 for h8300sx.
3436
3437 2003-06-03 J. Brobecker <brobecker@gnat.com>
3438
3439 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3440 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3441
3442 2003-06-03 Andrew Cagney <cagney@redhat.com>
3443
3444 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3445 (sparc_convert_to_raw): Delete function.
3446 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3447 register_convert_to_virtual.
3448
3449 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3450
3451 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3452 layer if not dealing with a statically-linked threaded program.
3453
3454 2003-06-03 Kris Warkentin <kewarken@qnx.com>
3455
3456 * solib.c (solib_open): Update comment to reflect actual search order.
3457
3458 2003-06-03 Andrew Cagney <cagney@redhat.com>
3459
3460 * frame.c (get_frame_memory_signed): New function.
3461 (get_frame_memory, get_frame_memory_unsigned): New function.
3462 (get_frame_arch): New function.
3463 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3464 (get_frame_memory, get_frame_unsigned_memory): Declare.
3465 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3466 get_frame_memory_unsigned and get_frame_arch.
3467 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3468
3469 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3470
3471 * MAINTAINERS (write after approval): Add myself.
3472
3473 2003-06-03 Jim Blandy <jimb@redhat.com>
3474
3475 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3476 elements of gregset_t are 64 bits each, but access registers
3477 are still 32 bits, so they're packed two per gregset_t
3478 element. Unpack/pack them properly.
3479
3480 2003-06-02 David Carlton <carlton@bactrian.org>
3481
3482 * linespec.c (find_methods): Break out code into
3483 add_matching_methods and add_constructors.
3484 (add_matching_methods): New.
3485 (add_constructors): Ditto.
3486
3487 2003-06-02 Andrew Cagney <cagney@redhat.com>
3488
3489 * sparc-tdep.c (sparc_print_registers): Delete call to
3490 REGISTER_CONVERTIBLE.
3491 (sparc_gdbarch_init): Do not set register_convertible.
3492 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3493 * frv-tdep.c (frv_gdbarch_init): Ditto.
3494 * cris-tdep.c (cris_gdbarch_init): Ditto.
3495
3496 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
3497
3498 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3499 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3500 (syms_from_objfile): Ditto.
3501
3502 2003-06-03 Andreas Schwab <schwab@suse.de>
3503
3504 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3505 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3506
3507 2003-06-02 Richard Henderson <rth@redhat.com>
3508
3509 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3510 a member of all_reggroup.
3511
3512 2003-06-02 Richard Henderson <rth@redhat.com>
3513
3514 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3515 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3516 (alpha_lds, alpha_sts): New.
3517 (alpha_convert_register_p): Change from _register_convertible.
3518 (alpha_register_to_value): Change from _convert_to_virtual;
3519 restructure and fail for type sizes other than 4 or 8.
3520 (alpha_value_to_register): Similarly.
3521 (alpha_extract_return_value): Use alpha_sts.
3522 (alpha_store_return_value): Use alpha_lds.
3523 (alpha_gdbarch_init): Update hooks.
3524
3525 2003-06-02 Richard Henderson <rth@redhat.com>
3526
3527 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3528 regnum identifiers.
3529 (alpha_sigtramp_register_address): Likewise.
3530
3531 2003-06-02 Richard Henderson <rth@redhat.com>
3532
3533 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3534 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3535 * alpha-tdep.h: Declare them.
3536
3537 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3538 Remove zerobuf. Don't error on UNIQUE.
3539 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3540 (ALPHA_REGSET_UNIQUE): Provide default.
3541 (supply_gregset): Use alpha_supply_int_regs.
3542 (fill_gregset): Use alpha_fill_int_regs.
3543 (supply_fpregset): Use alpha_supply_fp_regs.
3544 (fill_fpregset): Use alpha_fill_fp_regs.
3545 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3546 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3547 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3548 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3549 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3550 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3551
3552 2003-06-02 Richard Henderson <rth@redhat.com>
3553
3554 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3555
3556 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3557 (alpha_store_return_value): Likewise.
3558
3559 2003-06-02 David Carlton <carlton@math.stanford.edu>
3560
3561 * block.c (contained_in): Add 'const' to arguments.
3562 (block_function): Ditto.
3563 * block.h: Update declarations for block_function and
3564 contained_in.
3565
3566 2003-06-02 David Carlton <carlton@math.stanford.edu>
3567
3568 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3569 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3570 * p-valprint.c (pascal_val_print): Ditto.
3571 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3572
3573 2003-06-02 Richard Henderson <rth@redhat.com>
3574
3575 * alpha-tdep.c (alpha_push_dummy_call): Use
3576 builtin_type_ieee_double_little instead of builtin_type_double.
3577
3578 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
3579 sign-extension of 32-bit values.
3580 (alpha_store_return_value): Similarly.
3581
3582 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3583 (alpha_extract_return_value): Likewise.
3584 (alpha_store_return_value): Likewise.
3585
3586 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3587 (alpha_store_return_value): Error on IEEE Quad floats.
3588
3589 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3590 (alpha_extract_struct_value_address): Likewise.
3591 (alpha_store_return_value): Likewise.
3592 (alpha_store_struct_return): Remove.
3593 (alpha_gdbarch_init): Update hook registration to match.
3594
3595 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3596 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3597 macros where appropriate.
3598 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3599 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
3600
3601 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3602 for SP, GP; void_func_ptr for PC; non-language-specific types
3603 for all others.
3604 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
3605
3606 2003-06-02 Richard Henderson <rth@redhat.com>
3607
3608 * top.h (lim_at_start): Declare.
3609 * main.c (captured_main): Set it.
3610 * top.c (lim_at_start): Define.
3611 (command_loop): Use it instead of &environ.
3612 * event-top.c (command_handler): Likewise.
3613
3614 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3615
3616 * mipsnbsd-tdep.c: Update copyright years.
3617 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3618
3619 2003-06-01 Richard Henderson <rth@redhat.com>
3620
3621 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3622 (alpha-linux-tdep.o): Update dependencies.
3623 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3624 * alpha-mdebug-tdep.c: Remove unneeded includes.
3625
3626 2003-06-01 Richard Henderson <rth@redhat.com>
3627
3628 * alpha-tdep.c (alpha_register_reggroup_p): New.
3629 (alpha_gdbarch_init): Register it.
3630
3631 2003-06-02 Andrew Cagney <cagney@redhat.com>
3632
3633 * dwarfread.c: Eliminate "register"
3634 (decode_die_type): Eliminate assignment within "if".
3635 (struct_type, decode_array_element_type): Ditto.
3636 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3637 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3638 (decode_modified_type, completedieinfo): Ditto.
3639 * block.c: Eliminate "register".
3640 (blockvector_for_pc_sect): Eliminate assignment within "if".
3641 * cp-support.h (struct symbol): Opaque declaration.
3642 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3643
3644 2003-06-01 Richard Henderson <rth@redhat.com>
3645
3646 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3647 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
3648
3649 2003-06-01 Adam Fedor <fedor@gnu.org>
3650
3651 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3652 * gdbarch.[ch]: Regenerate.
3653 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3654 (hppa_gdbarch_init): Set it in the gdbarch vector.
3655 * i386-tdep.c (i386_fetch_pointer_argument): New
3656 (i386_gdbarch_init): Set it into gdbarch.
3657 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3658 (rs6000_gdbarch_init): Set it in gdbarch.
3659 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3660 (sparc_gdbarch_init): Set it in gdbarch.
3661
3662 2003-06-01 Andrew Cagney <cagney@redhat.com>
3663
3664 * defs.h (extract_address): Delete declaration.
3665 * findvar.c (extract_address): Delete function.
3666 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3667 extract_address with the inline equivalent,
3668 extract_unsigned_integer.
3669 (xstormy16_extract_struct_value_address): Ditto.
3670 (xstormy16_pointer_to_address): Ditto.
3671 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3672 * v850-tdep.c (v850_push_arguments): Ditto.
3673 (v850_extract_return_value): Ditto.
3674 (v850_extract_struct_value_address): Ditto.
3675 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3676 (sparcnbsd_get_longjmp_target_64): Ditto.
3677 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3678 (get_longjmp_target): Ditto.
3679 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3680 (sh64_extract_struct_value_address): Ditto.
3681 (sh_push_arguments): Ditto.
3682 (sh64_push_arguments): Ditto.
3683 * remote-vxsparc.c (vx_read_register): Ditto.
3684 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
3685 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
3686 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
3687 * mipsv4-nat.c (get_longjmp_target): Ditto.
3688 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
3689 * mips-nat.c (get_longjmp_target): Ditto.
3690 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
3691 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
3692 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
3693 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
3694 * irix5-nat.c (get_longjmp_target): Ditto.
3695 * irix4-nat.c (get_longjmp_target): Ditto.
3696 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
3697 (ia64_push_arguments): Ditto.
3698 * hpux-thread.c (hpux_thread_store_registers): Ditto.
3699 * h8300-tdep.c (h8300_push_arguments): Ditto.
3700 (h8300_store_return_value): Ditto.
3701 (h8300_extract_struct_value_address): Ditto.
3702 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
3703 (frv_push_arguments): Ditto.
3704 * avr-tdep.c (avr_pointer_to_address): Ditto.
3705 (avr_push_arguments): Ditto.
3706 * arm-tdep.c (arm_push_dummy_call): Ditto.
3707 (arm_get_longjmp_target): Ditto.
3708 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3709 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
3710 (alpha_get_longjmp_target): Ditto.
3711
3712 * solib-irix.c (extract_mips_address): Inline extract_address,
3713 replacing it with extract_signed_integer.
3714 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3715 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
3716 (first_link_map_member, open_symbol_file_object): Ditto.
3717 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
3718 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3719 (LM_NEXT, LM_NAME): Ditto.
3720
3721 2003-06-01 Richard Henderson <rth@redhat.com>
3722
3723 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
3724 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
3725 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
3726 (alpha_cannot_store_register): Likewise.
3727 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
3728 * alpha-nat.c (supply_gregset): Likewise.
3729 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
3730
3731 2003-06-01 Andrew Cagney <cagney@redhat.com>
3732
3733 * infcall.c (call_function_by_hand): Update comment on
3734 DEPRECATED_DUMMY_WRITE_SP.
3735
3736 * mips-tdep.c (mips_gdbarch_init): Do not set
3737 deprecated_dummy_write_sp.
3738 (mips_eabi_push_dummy_call): Set the SP register.
3739 (mips_o64_push_dummy_call): Set the SP register.
3740 (mips_o32_push_dummy_call): Set the SP register.
3741 (mips_n32n64_push_dummy_call): Set the SP register.
3742
3743 2003-06-01 Richard Henderson <rth@redhat.com>
3744
3745 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
3746 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
3747 (supply_gregset): Likewise.
3748 * alpha-tdep.c (alpha_store_return_value): Likewise.
3749 (alpha_get_longjmp_target): Likewise.
3750 (alpha_register_name): Constify array.
3751 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
3752 deprecated_register_size, deprecated_register_bytes,
3753 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
3754 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
3755 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
3756
3757 2003-06-01 Richard Henderson <rth@redhat.com>
3758
3759 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
3760 from arg_reg_buffer to regcache to avoid double conversion.
3761
3762 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3763
3764 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
3765 SP_REGNUM.
3766 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
3767 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
3768
3769 2003-06-01 Richard Henderson <rth@redhat.com>
3770
3771 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
3772 (decode_frame_entry): Set it. Skip FDE augmentation.
3773
3774 2003-06-01 Richard Henderson <rth@redhat.com>
3775
3776 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
3777 not overlapping PC_REGNUM.
3778
3779 2003-06-01 Richard Henderson <rth@redhat.com>
3780
3781 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
3782 alpha_push_arguments. Don't dump argument register data to
3783 the target stack. Fix float and 128-bit long double semantics.
3784 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
3785 (alpha_fix_call_dummy): Remove.
3786 (alpha_call_dummy_words): Remove.
3787 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
3788
3789 2003-06-01 Richard Henderson <rth@redhat.com>
3790
3791 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
3792
3793 2003-06-01 Andrew Cagney <cagney@redhat.com>
3794
3795 * mips-tdep.c (is_mips16_addr): New function.
3796 (make_mips16_addr, unmake_mips16_addr): New functions.
3797 (pc_is_mips16, mips_fetch_instruction): Use.
3798 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
3799 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
3800 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
3801 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
3802 TARGET_MIPS.
3803 * config/mips/tm-mips.h: Update copyright.
3804 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
3805 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
3806 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
3807 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
3808 (TM_PRINT_INSN_MACH): Delete.
3809 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
3810
3811 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
3812 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
3813 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
3814 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
3815 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
3816 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
3817 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
3818 mips*-*-riscos* and mips*-*-sysv* onto mips.
3819 * config/mips/mips64.mt: New file.
3820 * config/mips/mips.mt: New file.
3821 * config/mips/littlemips.mt: Delete file.
3822 * config/mips/decstation.mt: Delete file.
3823 * config/mips/vr4300el.mt: Delete file.
3824 * config/mips/vr5000el.mt: Delete file.
3825 * config/mips/vr5000.mt: Delete file.
3826 * config/mips/vr4100.mt: Delete file.
3827 * config/mips/vr4xxxel.mt: Delete file.
3828 * config/mips/vr4300.mt: Delete file.
3829 * config/mips/vr4xxx.mt: Delete file.
3830 * config/mips/bigmips.mt: Delete file.
3831 * config/mips/bigmips64.mt: Delete file.
3832 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
3833 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
3834 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
3835 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
3836 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
3837 "tm-bigmips.h".
3838 * config/mips/tm-irix3.h: Ditto.
3839 * config/mips/tm-mipsv4.h: Ditto.
3840 * config/mips/tm-embed.h: Ditto.
3841 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
3842 "tm-bigmips64.h".
3843 * config/mips/tm-vr5000el.h: Delete file.
3844 * config/mips/tm-tx39l.h: Delete file.
3845 * config/mips/tm-vr4300el.h: Delete file.
3846 * config/mips/tm-vr4xxxel.h: Delete file.
3847 * config/mips/tm-vr4300.h: Delete file.
3848 * config/mips/tm-vr4100.h: Delete file.
3849 * config/mips/tm-vr4xxx.h: Delete file.
3850 * config/mips/tm-vr5000.h: Delete file.
3851 * config/mips/tm-embedl64.h: Delete file.
3852 * config/mips/tm-embedl.h: Delete file.
3853 * config/mips/tm-embed64.h: Delete file.
3854 * config/mips/tm-bigmips64.h: Delete file.
3855 * config/mips/tm-bigmips.h: Delete file.
3856
3857 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3858
3859 Fix gdb/1216.
3860 * shnbsd-nat.c: Include "sh-tdep.h".
3861
3862 From Richard Henderson <rth@redhat.com>:
3863 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
3864
3865 2003-05-31 Andrew Cagney <cagney@redhat.com>
3866
3867 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
3868 forward declaration.
3869 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3870 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3871 (mips_find_saved_regs): Use set_reg_offset.
3872 (mips_frame_init_saved_regs): Delete function.
3873 (mips_pop_frame): Call mips_find_saved_regs instead of
3874 DEPRECATED_FRAME_INIT_SAVED_REGS.
3875
3876 2003-05-31 Andrew Cagney <cagney@redhat.com>
3877
3878 * mips-tdep.c (mips_gdbarch_init): Do not set
3879 deprecated_max_register_raw_size, register_virtual_size, and
3880 deprecated_max_register_virtual_size.
3881
3882 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3883
3884 * i386-tdep.c: Include "dwarf2-frame.h".
3885 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
3886 * Makefile.in (i386-tdep.o): Update dependencies.
3887
3888 * dwarf2-frame.c, dwarf2-frame.h: New files.
3889 * Makefile.in (SFILES): Add dwarf2-frame.c.
3890 (dwarf2_frame_h): Define.
3891 (COMMON_OBS): Add dwarf2-frame.o.
3892 (dwarf2-frame.o): Add dependencies.
3893
3894 2003-05-31 Andreas Jaeger <aj@suse.de>
3895
3896 * x86-64-linux-nat.c: Fix comment.
3897
3898 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3899
3900 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
3901 function signature.
3902
3903 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
3904 have a sigcontext_addr handler.
3905 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
3906 sigcontext_addr handler.
3907
3908 2003-05-31 Andrew Cagney <cagney@redhat.com>
3909
3910 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
3911 (print_fp_register_row): Replace do_fp_register_row.
3912 (mips_print_fp_register): Add "file" and "frame" parameters.
3913 (mips_print_register): Add "file" and "frame" parameters.
3914 (mips_print_registers_info): Replace mips_do_registers_info.
3915 (mips_gdbarch_init): Set print_registers_info instead of
3916 deprecated_do_registers_info.
3917 (mips_read_fp_register_single): Add "frame" parameter.
3918 (mips_read_fp_register_double): Add "frame" parameter.
3919
3920 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3921
3922 * i386-tdep.c (i386_register_name): Check for MMX registers first.
3923 Fixes a bug where GDB would print the wrong register names for
3924 targets without SSE.
3925
3926 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
3927 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3928 registers.
3929
3930 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
3931 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
3932 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3933 TDEP->sc_sp_offset.
3934
3935 From Michal Ludvig <mludvig@suse.cz>:
3936 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
3937 and `sc_num_regs'.
3938 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3939 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3940 I386_ST0_REGNUM): Move here from...
3941 * i386-tdep.c: ... here.
3942 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
3943 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3944 registers if possible.
3945 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
3946 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
3947 Remove variables.
3948 (i386bsd_sc_reg_offset): New variable.
3949 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
3950 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3951 TDEP->sc_sp_offset.
3952 (i386fbsd_sc_reg_offset): New variable.
3953 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
3954 TDEP->sc_num_regs.
3955 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
3956 variables.
3957 (i386fbsd4_sc_reg_offset): New variable.
3958 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
3959 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3960 TDEP->sc_sp_offset.
3961 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
3962 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
3963 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
3964 Remove variables.
3965 (i386nbsd_sc_reg_offset): New variable.
3966 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
3967 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3968 TDEP->sc_sp_offset.
3969 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
3970 Remove variables.
3971 (i386obsd_sc_reg_offset): New variable.
3972 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
3973 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3974 TDEP->sc_sp_offset.
3975 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
3976 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
3977 for frame pointer offset in `struct sigcontext'.
3978
3979 2003-05-31 Andrew Cagney <cagney@redhat.com>
3980
3981 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
3982 architecture methods call_dummy_words, sizeof_call_dummy_words,
3983 push_return_address, store_struct_return, and fix_call_dummy. Set
3984 push_dummy_call instead of deprecated_push_arguments.
3985 (mips_store_struct_return): Delete function.
3986 (mips_fix_call_dummy): Delete function.
3987 (mips_push_return_address): Delete function.
3988 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
3989 RA_REGNUM and T9_REGNUM.
3990 (mips_n32n64_push_dummy_call): Ditto for
3991 mips_n32n64_push_arguments.
3992 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
3993 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
3994
3995 2003-05-31 Andrew Cagney <cagney@redhat.com>
3996
3997 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
3998 "dummy_addr" to "bp_addr".
3999 * infcall.c (call_function_by_hand): Pass "funaddr" to
4000 gdbarch_push_dummy_call.
4001 * gdbarch.h, gdbarch.c: Re-generate.
4002 * i386-tdep.c (i386_push_dummy_call): Update.
4003 * arm-tdep.c (arm_push_dummy_call): Update.
4004 * d10v-tdep.c (d10v_push_dummy_call): Update.
4005
4006 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4007
4008 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4009 variable declarations.
4010 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4011 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4012 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4013 x86_64_init_frame_pc, x86_64_init_frame_pc,
4014 x86_64_function_has_prologue): Remove prototypes.
4015 (X86_64_NUM_GREGS): New define.
4016 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
4017 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
4018 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
4019 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
4020 XMM1_REGNUM): Remove defines.
4021 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
4022 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
4023 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
4024 X86_64_XMM1_REGNUM): New defines.
4025 (struct x86_64_register_info): Renamed from `struct
4026 register_info'. Remove `size' member.
4027 (x86_64_register_info_table): Remove variable.
4028 (x86_64_register_info): New variable.
4029 (X86_64_NUM_REGS): New define.
4030 (X86_64_NUM_GREGS): Remove define.
4031 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4032 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4033 Remove variables.
4034 (x86_54_dwarf2_reg_to_regnum): Remove function.
4035 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4036 (x86_64_dwarf_reg_to_regnum): New function.
4037 (x86_64_register_name): Rewrite.
4038 (x86_64_register_raw_size): Remove function.
4039 (x86_64_register_byte_table): Remove variable.
4040 (x86_64_register_byte): Remove function.
4041 (x86_64_register_virtual_type): Remove function.
4042 (x86_64_register_type): New function.
4043 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4044 x86_64_register_convert_to_raw): Remove functions.
4045 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4046 (x86_64_use_struct_convention): Make static. Adjust for renamed
4047 defines.
4048 (x86_64_frame_init_saved_regs): Remove function.
4049 (x86_64_push_arguments): Make static. Change to accept a regcache
4050 as argument.
4051 (x86_64_store_return_value, x86_64_extract_return_value): Make
4052 static. Rewrite based on i386 counterparts.
4053 (x86_64_push_dummy_call): New function.
4054 (X86_64_NUM_SAVED_REGS): New define.
4055 (x86_64_register_number): Remove function.
4056 (x86_64_store_struct_return): Remove function.
4057 (x86_64_frameless_function_invocation,
4058 x86_64_function_has_prologue): Remove functions.
4059 (PROLOG_BUFSIZE): Remove define.
4060 (struct x86_64_frame_cache): New structure.
4061 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4062 x86_64_frame_cache, x86_64_frame_this_id,
4063 x86_64_frame_prev_register, x86_64_frame_p,
4064 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4065 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4066 functions.
4067 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4068 variables.
4069 (x86_64_skip_prologue): Rewrite in terms of
4070 x86_64_analyze_prologue.
4071 (x86_64_frame_base_address): New function.
4072 (x86_64_frame_base): New variable.
4073 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4074 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4075 set deprecated_fp_regnum, deprecated_register_size,
4076 deprecated_register_bytes, register_raw_size, register_byte,
4077 register_virtual_type, register_convertiable,
4078 register_convert_to_virtual, convert_to_raw,
4079 deprecated_get_saved_register, deprecated_target_read_fp,
4080 deprecated_push_arguments, deprecated_push_return_address,
4081 deprecated_pop_frame, deprecated_store_struct_return,
4082 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4083 frameless_function_invocation, deprecated_frame_saved_pc,
4084 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4085 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4086 deprecated_init_frame_pc and virtual_frame_pointer. Call
4087 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4088 and x86_64_frame_p. Call frame_base_set_default to register
4089 x86_64_frame_base.
4090 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4091 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4092 (_initialize_x86_64_tdep): Remove function.
4093 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4094 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4095 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4096 define.
4097 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4098 (x86_64_linux_sigcontext_addr): Rewrite.
4099 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4100 x86_64_linux_frame_saved_pc): Remove functions.
4101 (x86_64_linux_pc_in_sigtramp): Renamed from
4102 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4103 trampoline.
4104 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4105 Remove_functions.
4106 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4107 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4108 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4109 (x86_64_regmap): Rename to regmap.
4110 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4111 x86_64_num_gregs.
4112 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4113 x86_64_regmap.
4114 (x86_64_fxsave_offset): Remove function.
4115 (supply_fpregset): Simply call x86_64_supply_fxsave.
4116 (fill_fpregset): Simply call x86_64_fill_fxsave.
4117 (fetch_inferior_registers, store_inferior_registers): Avoid
4118 asignment in if-statement.
4119 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4120 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4121 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4122 (fetch_core_registers): Remove function.
4123 (linux_elf_core_fns): Remove.
4124 (offsetoff): Don't define.
4125 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4126 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4127 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4128 add core-regset.o.
4129 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4130 protection against multiple includes instead of NM_X86_64_h. Add
4131 various comments. Include "config/nm-linux.h". Don't include
4132 <signal.h>.
4133 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4134 GET_THREAD_SIGNALS): Remove defines.
4135 (x86_64_register_u_addr, kernel_u_size,
4136 lin_thread_get_thread_signals): Remove prototypes.
4137 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4138 [HAVE_LINK_H]: Don't include "solib.h".
4139 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4140 * config/i386/tm-x86-64linux.h: Fix comments.
4141 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4142 x86-64-tdep.o): Update dependencies.
4143
4144 2003-05-30 Andrew Cagney <cagney@redhat.com>
4145
4146 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4147 Change parameter type to a "struct regcache *".
4148
4149 * gdbarch.sh: Regardless of the multi-arch level, always define
4150 the macro when not already defined.
4151 * gdbarch.h, gdbarch.c: Re-generate.
4152
4153 2003-05-30 Richard Henderson <rth@redhat.com>
4154
4155 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4156 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4157 (alpha_mdebug_frame_this_id): Likewise.
4158 (alpha_mdebug_frame_prev_register): Likewise.
4159 (alpha_mdebug_frame_base_address): Likewise.
4160 (alpha_mdebug_frame_locals_address): Likewise.
4161 (alpha_mdebug_frame_args_address): Likewise.
4162 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4163 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4164 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4165 loop increment.
4166 (alpha_heuristic_frame_this_id): Make static.
4167 (alpha_heuristic_frame_prev_register): Likewise.
4168 (alpha_heuristic_frame_base_address): Likewise.
4169 * alpha-tdep.h: Update.
4170
4171 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4172
4173 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4174 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4175 defenitions.
4176 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4177 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4178 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4179 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4180 I386_ST0_REGNUM): New defines.
4181 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4182 codestream_get): Remove define.
4183 (codestream_next_addr, condestream_addr, condestream_buf,
4184 codestream_off, codestream_cnt): Remove variables.
4185 (codestream_fill, codestream_seek, codestream_read): Remove
4186 functions.
4187 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4188 functionality.
4189 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4190 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4191 i386_frame_saved_pc, i386_saved_pc_after_call,
4192 i386_frame_num_args, i386_frame_init_saved_regs,
4193 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4194 i386_push_arguments): Remove functions.
4195 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4196 functionality. Use i386_analyze_prologue instead of
4197 i386_get_frame_setup.
4198 (I386_NUM_SAVED_REGS): New define.
4199 (struct i386_frame_cache): New structure.
4200 (i386_alloc_frame_cache, i386_analyze_struct_return,
4201 i386_skip_probe, i386_analyze_frame_setup,
4202 i386_analyze_register_saves, i386_analyze_prologue,
4203 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4204 i386_frame_prev_register, i386_sigtramp_frame_cache,
4205 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4206 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4207 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4208 New functions.
4209 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4210 New variables.
4211 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4212 I386_EAX_REGNUM and I386_EDX_REGNUM.
4213 (i386_extract_return_value, i386_store_return_value): Use
4214 I386_ST0_REGNUM where appropriate.
4215 (i386_extract_struct_value_address): Rewrite to use extract_address.
4216 (i386_svr4_pc_in_sigtramp): Add comment.
4217 (i386_svr4_sigcontext_addr): Rewrite.
4218 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4219 TDEP->sc_sp_offset.
4220 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4221 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4222 of new defines. Set push_dummy_call, don't set
4223 deprecated_push_arguments, deprecated_push_return_address,
4224 deprecated_pop_frame. Don't set parm_boundary. Don't set
4225 deprecated_frame_chain, deprecated_frame_saved_pc,
4226 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4227 save_dummy_frame_tos, unwind_pc. Call
4228 frame_unwind_append_predicate and frame_base_set_default. Don't
4229 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4230 Don't set frameless_function_invocation. Don't set
4231 deprecated_register_bytes, deprecated_register_size,
4232 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4233 * i386-linux-tdep.c: Fix formatting in some comments.
4234 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4235 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4236 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4237 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4238 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4239 redundant parentheses.
4240 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4241 (i386_linux_sigcontext_addr): Use it. Rewrite.
4242 (find_minsym_and_objfile): Change name of second argument.
4243 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4244 changed. Use frame_pc_unwind instead of
4245 DEPRECATED_SAVED_PC_AFTER_CALL.
4246 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4247 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4248 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4249 unwinder.
4250 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4251 "dummy-frame.h".
4252 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4253 (_initialize_i386_cygwin_tdep): New prototype.
4254 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4255 deprecated_frame_chain_valid.
4256 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4257 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4258 Rely on the SVR4 defaults.
4259 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4260 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4261
4262 2003-05-30 Andrew Cagney <cagney@redhat.com>
4263
4264 * infcall.c (call_function_by_hand): Always call
4265 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4266
4267 2003-05-30 Richard Henderson <rth@redhat.com>
4268
4269 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4270 increment.
4271
4272 2003-05-29 Jim Blandy <jimb@redhat.com>
4273
4274 Use gdbarch methods for solib stuff on PowerPC Linux.
4275 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4276 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4277 show through.
4278 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4279 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4280 giving the same effect as the #definitions above.
4281
4282 2003-05-29 Adam Fedor <fedor@gnu.org>
4283
4284 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4285 (find_implementation_from_class): Replace it with the standard
4286 case i.e. do nothing.
4287
4288 2003-05-29 Richard Henderson <rth@redhat.com>
4289
4290 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4291 (alpha_linux_sigtramp_offset): Use it. Make static.
4292 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4293 update for new frame model.
4294 * alpha-mdebug-tdep.c: New file.
4295 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4296 (alpha_osf1_init_abi): Install it.
4297 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4298 (linked_proc_desc_table): Remove.
4299 (alpha_frame_past_sigtramp_frame): Remove.
4300 (alpha_dynamic_sigtramp_offset): Remove.
4301 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4302 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4303 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4304 (push_sigtramp_desc): Remove.
4305 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4306 (alpha_cannot_store_register): Likewise.
4307 (alpha_sigcontext_addr): Remove.
4308 (alpha_find_saved_regs): Remove.
4309 (alpha_frame_init_saved_regs): Remove.
4310 (alpha_init_frame_pc_first): Remove.
4311 (read_next_frame_reg): Remove.
4312 (alpha_frame_saved_pc): Remove.
4313 (alpha_saved_pc_after_call): Remove.
4314 (temp_proc_desc, temp_saved_regs): Remove.
4315 (alpha_about_to_return): Remove.
4316 (cached_proc_desc): Remove.
4317 (alpha_frame_chain): Remove.
4318 (alpha_print_extra_frame_info): Remove.
4319 (alpha_init_extra_frame_info): Remove.
4320 (alpha_frame_locals_address): Remove.
4321 (alpha_frame_args_address): Remove.
4322 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4323 (alpha_push_dummy_frame): Remove.
4324 (alpha_pop_frame): Remove.
4325 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4326 (alpha_read_insn): New.
4327 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4328 for different insn encodings.
4329 (alpha_in_lenient_prologue): Remove.
4330 (struct alpha_sigtramp_unwind_cache): New.
4331 (alpha_sigtramp_frame_unwind_cache): New.
4332 (alpha_sigtramp_register_address): New.
4333 (alpha_sigtramp_frame_this_id): New.
4334 (alpha_sigtramp_frame_prev_register): New.
4335 (alpha_sigtramp_frame_unwind): New.
4336 (alpha_sigtramp_frame_p): New.
4337 (struct alpha_heuristic_unwind_cache): New.
4338 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4339 don't count nop insns that occur between functions.
4340 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4341 heuristic_proc_desc, but without the mdebug wrapping.
4342 (alpha_heuristic_frame_this_id): New.
4343 (alpha_heuristic_frame_prev_register): New.
4344 (alpha_heuristic_frame_unwind): New.
4345 (alpha_heuristic_frame_p): New.
4346 (alpha_heuristic_frame_base_address): New.
4347 (alpha_heuristic_frame_base): New.
4348 (alpha_unwind_dummy_id): New.
4349 (alpha_unwind_pc): New.
4350 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4351 frame related deprecated initializations; install replacements.
4352 (alpha_dump_tdep): Remove.
4353 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4354 (alpha_read_insn, alpha_after_prologue,
4355 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4356 alpha_heuristic_frame_prev_register,
4357 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4358 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4359 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4360 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4361
4362 2003-05-29 Andrew Cagney <cagney@redhat.com>
4363
4364 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4365 dependant on the availability of ASSERT_FUNCTION.
4366 (ASSERT_FUNCTION): Do not define when there is no function name.
4367
4368 2003-05-29 Kevin Buettner <kevinb@redhat.com>
4369
4370 From Jimi X <jimix@watson.ibm.com>:
4371 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4372
4373 2003-05-28 Jim Blandy <jimb@redhat.com>
4374
4375 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4376 argument to ptrace to int; the system headers should give it the
4377 right type, and pointers don't fit in ints on powerpc64-*-*.
4378
4379 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4380
4381 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4382 DW_TAG_catch_block.
4383
4384 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4385
4386 * stabsread.c (dbx_lookup_type): Make static.
4387 (read_type): Ditto.
4388 (add_undefined_type): Ditto.
4389 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4390 not export.
4391
4392 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4393
4394 * hpread.c (hpread_has_name): Make static.
4395 (hpread_psymtab_to_symtab): Ditto.
4396 (file_exists): Ditto.
4397 (hpread_call_pxdb): Ditto.
4398 (hpread_pxdb_needed): Ditto.
4399 (hpread_quick_traverse): Ditto.
4400 (hpread_get_header): Ditto.
4401 (hpread_get_lntt): Ditto.
4402 (hpread_get_slt): Ditto.
4403 (class_of): Ditto.
4404
4405 2003-05-25 Andreas Schwab <schwab@suse.de>
4406
4407 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4408 stack_align and deprecated_extra_stack_alignment_needed.
4409 (m68k_stack_align): Delete.
4410
4411 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4412 (m68k_register_virtual_size): Likewise.
4413 (altos_skip_prologue): Remove obsolete function.
4414 (isi_frame_num_args): Likewise.
4415 (news_frame_num_args): Likewise.
4416 (m68k_fix_call_dummy): Make static.
4417 (m68k_push_dummy_frame): Likewise.
4418 (m68k_pop_frame): Likewise.
4419 (m68k_skip_prologue): Likewise.
4420 (m68k_frame_init_saved_regs): Likewise.
4421 (m68k_saved_pc_after_call): Likewise.
4422 (m68k_get_longjmp_target): Make multi-arch.
4423 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4424 structure. Register m68k_get_longjmp_target if enabled.
4425 * m68k-tdep.h (struct gdbarch_tdep): Define.
4426 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4427
4428 * Makefile.in (config.status): Also depend on configure.tgt
4429 and configure.host.
4430 (m68klinux-tdep.o): Update dependencies.
4431 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4432 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4433 (M68K_LINUX_JB_PC): Define.
4434 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4435 and take additional parameter.
4436 (m68k_linux_sigtramp_saved_pc): Update.
4437 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4438 m68k_linux_pc_in_sigtramp, in_plt_section,
4439 find_solib_trampoline_target.
4440 * config/m68k/tm-linux.h: Don't include any tm headers.
4441 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4442 (JB_ELEMENT_SIZE): Likewise.
4443 (JB_PC): Likewise.
4444 (GET_LONGJMP_TARGET): Likewise.
4445 (IN_SIGTRAMP): Likewise.
4446 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4447
4448 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4449
4450 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4451 (sparc32_push_arguments): Re-implement by calling
4452 sparc32_do_push_arguments.
4453
4454 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4455
4456 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4457 SPARC_O1_REGNUM): New defines.
4458 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4459 (sparc32_store_return_value): New function.
4460 (sparc_extract_struct_value_address): Rewrite to operate on a
4461 regcache.
4462 (sparc_gdbarch_init): Don't set
4463 deprecated_extract_struct_value_address. Set
4464 extract_struct_value_address instead. Don't set
4465 deprecated_extract_return_value and deprecated_store_return_value
4466 for 32-bit targets. Set extract_return_value and
4467 store_return_value instead.
4468 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4469 DEPRECTAED_EXTRACT_RETURN_VALUE,
4470 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4471 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4472 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4473 (sparc_store_return_value): Remove prototype.
4474 (sparc32_store_return_value): New prototype.
4475 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4476 Adjust prototypes.
4477
4478 2003-05-24 Mark Kettenis <kettenis@gnu.org>
4479
4480 * sparcnbsd-tdep.c: Include "gdb_string.h".
4481
4482 2003-05-23 Andrew Cagney <cagney@redhat.com>
4483
4484 * p-valprint.c (pascal_val_print): Replace extract_address with
4485 the inline equivalent extract_unsigned_integer.
4486 * jv-valprint.c (java_value_print): Ditto.
4487 * ada-valprint.c (ada_val_print_1): Ditto.
4488 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4489
4490 2003-05-23 Theodore A. Roth <troth@openavr.org>
4491
4492 * blockframe.c (frameless_look_for_prologue): Remove unused
4493 after_prologue variable.
4494
4495 2003-05-23 Mark Kettenis <kettenis@gnu.org>
4496
4497 * blockframe.c (get_pc_function_start): Rewrite to avoid
4498 asignments in if-statements.
4499
4500 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4501
4502 Committed by Elena Zannoni <ezannoni@redhat.com>.
4503 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4504 files, don't relocate absolute symbols (and do use mst_abs).
4505
4506 2003-05-23 Andrew Cagney <cagney@redhat.com>
4507
4508 * objc-lang.c: Include "gdb_assert.h".
4509 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4510 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4511 (gdb_check, gdb_check_fatal): Delete functions.
4512 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4513 gdb_assert.
4514 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4515 * Makefile.in (objc-lang.o): Update dependencies.
4516
4517 2003-05-22 Ian Lance Taylor <ian@airs.com>
4518
4519 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4520 with fprintf_filtered, not fprintf_unfiltered.
4521
4522 2003-05-22 Andrew Cagney <cagney@redhat.com>
4523
4524 * stack.c (frame_info): Inline extract_address, replacing it with
4525 extract_unsigned_integer.
4526 * findvar.c (unsigned_pointer_to_address): Ditto.
4527 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4528 * dwarf2expr.c (dwarf2_read_address): Ditto.
4529 * frame.c (frame_pc_unwind): Update comment.
4530 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4531
4532 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4533
4534 * infptrace.c (detach): Call print_sys_errmsg rather than
4535 perror_with_name to issue warning message when errno is non-zero
4536 after calling ptrace detach.
4537
4538 2003-05-21 J. Brobecker <brobecker@gnat.com>
4539
4540 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4541 macro definitions from here...
4542 * hppa-tdep.c: ...to there.
4543
4544 2003-05-20 Kevin Buettner <kevinb@redhat.com>
4545
4546 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4547 register_ptrace_addr(). Fix all callers.
4548
4549 2003-05-21 Andreas Schwab <schwab@suse.de>
4550
4551 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4552 dependencies.
4553 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4554 end.
4555 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4556 (_initialize_m68k_linux_tdep): New function.
4557 (m68k_linux_frame_saved_pc): Make static.
4558 (m68k_linux_extract_return_value): Likewise.
4559 (m68k_linux_store_return_value): Likewise.
4560 (m68k_linux_extract_struct_value_address): Likewise.
4561 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4562 Remove.
4563 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4564 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4565 (DEPRECATED_FRAME_SAVED_PC): Remove.
4566
4567 2003-05-20 Kris Warkentin <kewarken@qnx.com>
4568
4569 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4570 regset numbering rather than our own.
4571
4572 2003-05-19 David Carlton <carlton@bactrian.org>
4573
4574 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4575
4576 2003-05-19 David Carlton <carlton@bactrian.org>
4577
4578 Partial fix for PR c++/827.
4579 * cp-support.h: Include symtab.h.
4580 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4581 * cp-namespace.c: Update contributors.
4582 (cp_lookup_symbol_nonlocal): New.
4583 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4584 (lookup_symbol_file): Ditto.
4585 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4586 * block.h: Declare block_scope, block_using, block_global_block.
4587 * block.c (block_scope): New.
4588 (block_using, block_global_block): Ditto.
4589 * Makefile.in (cp_support_h): Depend on symtab_h.
4590 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4591
4592 2003-05-19 David Carlton <carlton@bactrian.org>
4593
4594 * language.h (struct language_defn): Add 'la_value_of_this'
4595 and 'la_lookup_symbol_nonlocal' members.
4596 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4597 lookup_symbol_static, lookup_symbol_global,
4598 lookup_symbol_aux_block.
4599 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4600 if we should search fields of this and how to do static/global
4601 lookup.
4602 (lookup_symbol_aux_block): Make extern.
4603 (basic_lookup_symbol_nonlocal): New.
4604 (lookup_symbol_static, lookup_symbol_global): Ditto.
4605 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4606 'la_lookup_symbol_nonlocal' members.
4607 * c-lang.c (c_language_defn, cplus_language_defn)
4608 (asm_language_defn, minimal_language_defn): Ditto.
4609 * jv-lang.c (java_language_defn): Ditto.
4610 * language.c (unknown_language_defn, auto_language_defn)
4611 (local_language_defn): Ditto.
4612 * m2-lang.c (m2_language_defn): Ditto.
4613 * objc-lang.c (objc_language_defn): Ditto.
4614 * scm-lang.c (scm_language_defn): Ditto.
4615 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4616 * p-lang.c (pascal_language_defn): Ditto for both.
4617 * Makefile.in (f-lang.o): Depend on value_h.
4618 (p-lang.o): Ditto.
4619
4620 2003-05-19 David Carlton <carlton@bactrian.org>
4621
4622 * block.h: Declare block_static_block.
4623 * block.c (block_static_block): New.
4624 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4625 lookup_symbol_aux_local, calling block_static_block instead.
4626 (lookup_symbol_aux_local): Delete 'static_block' argument.
4627
4628 2003-05-19 David Carlton <carlton@bactrian.org>
4629
4630 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4631
4632 2003-05-19 Michal Ludvig <mludvig@suse.cz>
4633
4634 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4635 register numbers mapping.
4636
4637 2003-05-18 Adam Fedor <fedor@gnu.org>
4638
4639 * symtab.c (completion_list_objc_symbol): New function.
4640 (make_symbol_completion_list): Use it to add ObjC symbols
4641 when looking though the list.
4642 (language_search_unquoted_string): New function.
4643 (make_file_symbol_completion_list): Use it.
4644
4645 2003-05-18 Andreas Schwab <schwab@suse.de>
4646
4647 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4648 dependencies.
4649 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4650 as m68k_linux_extract_return_value.
4651 (DEPRECATED_STORE_RETURN_VALUE): Define as
4652 m68k_linux_store_return_value.
4653 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4654 m68k_linux_extract_struct_value_address.
4655 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4656 get_next_frame, get_frame_base, get_frame_pc.
4657 (m68k_linux_frame_saved_pc): Use get_frame_base.
4658 (m68k_linux_extract_return_value): New function.
4659 (m68k_linux_store_return_value): New function.
4660 (m68k_linux_extract_struct_value_address): New function.
4661 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4662
4663 * c-exp.y (typebase): Remove duplicate occurence of
4664 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
4665 of lookup_signed_typename.
4666
4667 2003-05-18 Mark Kettenis <kettenis@gnu.org>
4668
4669 * dwarf2loc.c (find_location_expression): Change type of second
4670 argument to `size_t *'.
4671 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4672 for size variable.
4673
4674 2003-05-18 David Carlton <carlton@bactrian.org>
4675
4676 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4677 'linkage_name'. Add comment.
4678 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4679 'linkage_name'.
4680 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4681 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
4682 (lookup_block_symbol): Ditto.
4683
4684 2003-05-16 Andrew Cagney <cagney@redhat.com>
4685
4686 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
4687 * gdbarch.h, gdbarch.c: Re-generate.
4688 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
4689 * TODO (REGISTER_BYTES): Delete reference.
4690 * alpha-tdep.c (alpha_gdbarch_init): Update.
4691 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4692 * x86-64-tdep.c (x86_64_init_abi): Update.
4693 * vax-tdep.c (vax_gdbarch_init): Update.
4694 * v850-tdep.c (v850_gdbarch_init): Update.
4695 * sparc-tdep.c (sparc_gdbarch_init): Update.
4696 * sh-tdep.c (sh_gdbarch_init): Update.
4697 * s390-tdep.c (s390_gdbarch_init): Update.
4698 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4699 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4700 (ns32k_gdbarch_init_32382): Update.
4701 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4702 * mcore-tdep.c (mcore_gdbarch_init): Update.
4703 * m68k-tdep.c (m68k_gdbarch_init): Update.
4704 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4705 * ia64-tdep.c (ia64_gdbarch_init): Update.
4706 * i386-tdep.c (i386_gdbarch_init): Update.
4707 * i386-linux-tdep.c (i386_linux_init_abi): Update.
4708 * hppa-tdep.c (hppa_gdbarch_init): Update.
4709 * h8300-tdep.c (h8300_gdbarch_init): Update.
4710 * frv-tdep.c (frv_gdbarch_init): Update.
4711 * cris-tdep.c (cris_gdbarch_init): Update.
4712 * avr-tdep.c (avr_gdbarch_init): Update.
4713 * arm-tdep.c (arm_gdbarch_init): Update.
4714 * sparc-tdep.c (sparc_pop_frame): Update.
4715 * rs6000-tdep.c (rs6000_pop_frame): Update.
4716 * remote.c (init_remote_state): Update.
4717 (remote_prepare_to_store): Update.
4718 * remote-vx.c (vx_prepare_to_store): Update.
4719 * remote-sds.c (sds_fetch_registers): Update.
4720 (sds_prepare_to_store): Update.
4721 * remote-array.c: Update.
4722 * regcache.c (init_legacy_regcache_descr): Update.
4723 (init_regcache_descr): Update.
4724 * mips-tdep.c (mips_eabi_extract_return_value): Update.
4725 (mips_o64_extract_return_value): Update.
4726 * irix5-nat.c (fetch_core_registers): Update.
4727 * irix4-nat.c (fetch_core_registers): Update.
4728 * i386-tdep.h: Update.
4729 * hppa-tdep.c (pa_do_registers_info): Update.
4730 (pa_do_strcat_registers_info): Update.
4731 * cris-tdep.c (cris_register_bytes_ok): Update.
4732 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4733 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
4734 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
4735 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
4736 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
4737 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
4738 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
4739 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
4740 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
4741 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
4742 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
4743 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
4744 (REGISTER_BYTES_OK): Update.
4745 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
4746 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
4747
4748 2003-05-16 Ian Lance Taylor <ian@airs.com>
4749
4750 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
4751 (vax_print_insn, print_insn_arg): Remove static functions.
4752 (vax_gdbarch_init): Call set_gdbarch_print_insn with
4753 print_insn_vax from opcodes library.
4754 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
4755
4756 2003-05-15 Andrew Cagney <cagney@redhat.com>
4757
4758 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
4759 * target.h (memory_breakpoint_from_pc): Delete declaration.
4760 * mem-break.c (memory_breakpoint_from_pc): Delete function.
4761 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
4762 * monitor.c (monitor_insert_breakpoint): Use
4763 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
4764 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
4765 * gdbarch.h, gdbarch.c: Re-generate.
4766 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
4767 (sparc_gdbarch_init): Set breakpoint_from_pc to
4768 sparc_breakpoint_from_pc.
4769 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
4770 (BREAKPOINT_FROM_PC): Define.
4771 (sparc_breakpoint_from_pc): Declare.
4772 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
4773 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
4774 (BREAKPOINT_FROM_PC): Define.
4775 (BREAKPOINT): Delete macro.
4776 * target.h: Update comment.
4777 * s390-tdep.c (s390_gdbarch_init): Update comments.
4778 * remote.c: Update comments.
4779 * remote-mips.c: Update comments.
4780 * proc-api.c (write_with_trace): Do not check for a breakpoint.
4781 * mem-break.c: Update comment.
4782 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
4783 (ia64_memory_insert_breakpoint): Update.
4784 * config/sparc/tm-sparc.h: Update comment.
4785 * config/pa/tm-hppa64.h: Update comment.
4786 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4787 (rs6000_breakpoint_from_pc): Update.
4788 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4789 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
4790 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
4791 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
4792 (mips_breakpoint_from_pc): Update.
4793 (mips_dump_tdep): Update.
4794
4795 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
4796 * minsyms.c (lookup_minimal_symbol): Inline
4797 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
4798
4799 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
4800 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4801 * p-lang.c (pascal_printstr): Ditto.
4802 * objc-lang.c (objc_printstr): Ditto.
4803 * m2-lang.c (m2_printstr): Ditto.
4804 * jv-valprint.c (java_print_value_fields): Ditto.
4805 * f-lang.c (f_printstr): Ditto.
4806 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
4807 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
4808 for repeat_count_threshold.
4809 * Makefile.in (cp-valprint.o): Update dependencies.
4810
4811 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
4812
4813 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
4814 (examine_prologue): Support looking through leaf functions, knowing
4815 they start with mov r2,r12. Support skipping over indirect stores
4816 of the input registers. Upon hitting a non-nop branch instruction
4817 or predicated instruction, bail out by setting lim_pc to the current
4818 pc value in the loop. At the end, if the lim_pc value is still
4819 beyond our calculated value and we have trust_limit set,
4820 use the lim_pc value.
4821
4822 2003-05-15 Andrew Cagney <cagney@redhat.com>
4823
4824 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
4825 generic_find_dummy_frame.
4826 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
4827 (deprecated_generic_find_dummy_frame): Update.
4828 (deprecated_read_register_dummy): Update.
4829 * frame.c (deprecated_generic_get_saved_register): Update.
4830
4831 2003-05-15 Theodore A. Roth <troth@openavr.org>
4832
4833 * avr-tdep.c (avr_breakpoint_from_pc): New function.
4834 (avr_gdbarch_init): Set breakpoint_from_pc method.
4835
4836 2003-05-15 Andrew Cagney <cagney@redhat.com>
4837
4838 * regcache.c (build_regcache): Set deprecated_register_valid
4839 directly.
4840 (deprecated_grub_regcache_for_register_valid): Delete function.
4841 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
4842 declaration.
4843
4844 2003-05-15 David Carlton <carlton@bactrian.org>
4845
4846 Committed by Elena Zannoni <ezannoni@redhat.com>
4847 * symtab.c (lookup_symbol_aux): Delete calls to
4848 lookup_symbol_aux_minsyms.
4849 (lookup_symbol_aux_minsyms): Comment out function and
4850 prototype. Delete lookup by mangled name.
4851
4852 2003-05-14 Kevin Buettner <kevinb@redhat.com>
4853
4854 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
4855 correctly indicate an empty stack and ``stack_allocated'' to the
4856 indicate the number of elements initially allocated.
4857 (dwarf_expr_grow_stack): Simplify method for computing new
4858 stack size. Don't loop infinitely if ``stack_len'' is zero.
4859 (execute_stack_op): Move ``ctx->in_reg'' initialization
4860 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
4861 be used in conjuction with DW_OP_piece. Revise error message
4862 accordingly.
4863
4864 2003-05-14 Theodore A. Roth <troth@openavr.org>
4865
4866 * MAINTAINERS: Update my email address.
4867 * avr-tdep.c: Ditto.
4868
4869 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
4870
4871 * symtab.h (enum domain_enum): Rename from namespace_enum.
4872 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
4873 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
4874 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
4875 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
4876 TYPES_NAMESPACE, METHODS_NAMESPACE.
4877 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
4878 (struct symbol, struct partial_symbol): Rename field
4879 'namespace_enum namespace' to 'domain_enum domain'.
4880 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
4881 Delete old define kludge for namespace.
4882
4883 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
4884 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
4885 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
4886 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
4887 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
4888 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
4889 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
4890 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
4891 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
4892 occurrences of the above.
4893
4894 2003-05-14 Ian Lance Taylor <ian@airs.com>
4895
4896 * Makefile.in (install-only): Use $(SHELL) when running
4897 mkinstalldirs.
4898
4899 2003-05-13 Ian Lance Taylor <ian@airs.com>
4900
4901 * MAINTAINERS (write after approval): Add myself.
4902
4903 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
4904 second and third arguments.
4905 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4906 * ser-unix.c (_initialize_ser_hardwire): Likewise.
4907
4908 2003-05-13 Andrew Cagney <cagney@redhat.com>
4909
4910 * defs.h (store_address): Delete declaration.
4911 findvar.c (store_address): Delete function.
4912 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
4913 store_unsigned_integer.
4914 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
4915 * v850-tdep.c (v850_push_arguments): Ditto.
4916 * sparc-tdep.c (sparc_get_saved_register): Ditto.
4917 * sh-tdep.c (sh64_get_saved_register): Ditto.
4918 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
4919 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
4920 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
4921 (mips_get_saved_register): Ditto.
4922 * ia64-tdep.c (ia64_get_saved_register): Ditto.
4923 (find_func_descr, ia64_push_arguments): Ditto.
4924 * i386-tdep.c (i386_push_arguments): Ditto.
4925 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
4926 * frv-tdep.c (frv_push_arguments): Ditto.
4927 * frame.c (legacy_saved_regs_prev_register): Ditto.
4928 (deprecated_generic_get_saved_register): Ditto.
4929 * findvar.c (unsigned_address_to_pointer): Ditto.
4930 * dwarf2read.c (dwarf2_const_value): Ditto.
4931 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4932 * alpha-tdep.c (alpha_push_arguments): Ditto.
4933
4934 2003-05-12 J. Brobecker <brobecker@gnat.com>
4935
4936 * NEWS: Mention that the hppa-hpux port has been partially
4937 multiarched (32bit ABIT only, so far).
4938
4939 2003-05-11 Andrew Cagney <cagney@redhat.com>
4940
4941 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
4942 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
4943 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
4944 sim/testsuite/sim/arm/misaligned2.ms, and
4945 sim/testsuite/sim/arm/misaligned3.ms.
4946 * disasm.h (struct ui_file): Add opaque struct declaration.
4947 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
4948 * frame.h (struct ui_file): Ditto.
4949
4950 2003-05-11 Mark Kettenis <kettenis@gnu.org>
4951
4952 * value.h: Pretty print.
4953
4954 2003-05-10 Mark Kettenis <kettenis@gnu.org>
4955
4956 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
4957
4958 2003-05-08 Andrew Cagney <cagney@redhat.com>
4959
4960 * regcache.h (max_register_size): Delete declaration.
4961 * regcache.c (max_register_size): Delete function.
4962 (struct regcache_descr): Delete field "max_register_size".
4963 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
4964 registers fit in MAX_REGISTER_SIZE.
4965 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
4966 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
4967 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
4968 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
4969 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
4970 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
4971 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
4972 * dve3900-rom.c, hppa-tdep.c: Ditto.
4973
4974 2003-05-08 David Carlton <carlton@math.stanford.edu>
4975
4976 * valops.c (push_word): Fix typo.
4977
4978 2003-05-08 Andrew Cagney <cagney@redhat.com>
4979
4980 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
4981 * gdbarch.h: Re-generate.
4982 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
4983 (legacy_max_register_raw_size): Delete declaration.
4984 * regcache.c (legacy_max_register_raw_size): Delete function.
4985 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
4986 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
4987 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
4988 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
4989 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
4990 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
4991 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
4992 * findvar.c, dwarf2cfi.c: Ditto.
4993
4994 2003-05-08 Andrew Cagney <cagney@redhat.com>
4995
4996 * mips-tdep.c (read_signed_register): New function, moved to here
4997 from "regcache.c".
4998 (read_signed_register_pid): Ditto.
4999 * regcache.c (read_signed_register_pid): Delete function, moved to
5000 "mips-tdep.c".
5001 (read_signed_register): Ditto.
5002 * regcache.h (read_signed_register): Delete declaration.
5003 (read_signed_register_pid): Delete declaration.
5004
5005 2003-05-08 Andrew Cagney <cagney@redhat.com>
5006
5007 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5008 * gdbarch.h: Re-generate.
5009 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5010 (legacy_max_register_virtual_size): Delete declaration.
5011 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5012 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5013 * tracepoint.c (memrange_sortmerge): Ditto.
5014 * sparc-tdep.c (sparc_print_registers): Ditto.
5015 * regcache.c (legacy_max_register_virtual_size): Delete function.
5016
5017 2002-05-08 J. Brobecker <brobecker@gnat.com>
5018
5019 * fork-child.c (escape_bang_in_quoted_argument): New function.
5020 (fork_inferior): Escape '!' characters in quoted arguments
5021 only when needed.
5022
5023 2003-05-08 J. Brobecker <brobecker@gnat.com>
5024
5025 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5026 the language of the CU is not currently supported by GDB.
5027
5028 2003-05-08 J. Brobecker <brobecker@gnat.com>
5029
5030 * defs.h (language): Add language_minimal enum value.
5031 * c-lang.c (minimal_language_defn): New language definition.
5032 (_initialize_c_language): Add the new minimal language to the list
5033 of languages known to GDB.
5034
5035 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5036
5037 * frame.c (get_frame_type): Don't attempt to lazily initialize
5038 frame's unwinder for legacy frames.
5039
5040 2003-05-07 Andrew Cagney <cagney@redhat.com>
5041
5042 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5043 and "regcache" parameters.
5044 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5045
5046 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5047
5048 * dwarf2read.c (dwarf_decode_lines): Only use output of
5049 check_cu_functions() when calling record_line(). Do not update
5050 the current address.
5051
5052 2003-05-07 Andrew Cagney <cagney@redhat.com>
5053
5054 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5055 code.
5056
5057 2003-05-07 Jim Blandy <jimb@redhat.com>
5058
5059 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5060 'maint info symtabs' and 'maint info psymtabs'.
5061 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5062 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5063 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5064 Declarations updated.
5065 * maint.c (maintenance_list_command): Delete.
5066 (_initialize_maint_cmds): Update calls to add_cmd.
5067 * gdbcmd.h (maintenancelistlist): Delete declaration.
5068 * cli/cli-cmds.c (maintenancelistlist): Delete.
5069 (init_cmd_lists): Don't initialize it.
5070 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5071
5072 2003-05-07 Andrew Cagney <cagney@redhat.com>
5073
5074 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5075 "regcache".
5076 (d10v_print_registers_info): Update.
5077 (d10v_dmap_register, d10v_imap_register): Delete functions.
5078 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5079 and "imap_register".
5080 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5081 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5082 * arch-utils.c (generic_remote_translate_xfer_address): Add
5083 "regcache" and "gdbarch" parameters.
5084 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5085 parameter. Change class to multi-arch.
5086 * gdbarch.h, gdbarch.c: Re-generate.
5087 * remote.c (remote_xfer_memory): Use
5088 gdbarch_remote_translate_xfer_address.
5089
5090 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5091
5092 * infrun.c (prev_pc): Move declaration ahead of proceed().
5093 (proceed): Refresh prev_pc value before resuming.
5094 (stop_stepping): Remove code to refresh prev_pc.
5095
5096 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5097
5098 * nto-tdep.c: Removed stray comment.
5099
5100 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5101
5102 * i386-nto-tdep.c: Fix old K&R function definitions.
5103 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5104 Also change add_show_from_set() call to add_setshow_cmd().
5105 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5106
5107 2003-05-05 Andrew Cagney <cagney@redhat.com>
5108
5109 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5110 (fprint_dummy_frames): New function.
5111 (maintenance_print_dummy_frames): New function.
5112 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5113 * frame.c (fprint_frame_id): Make global.
5114 * frame.h (fprint_frame_id): Declare.
5115 * Makefile.in (dummy-frame.o): Update dependencies.
5116
5117 2003-05-05 Andrew Cagney <cagney@redhat.com>
5118
5119 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5120 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5121 SIZEOF_CALL_DUMMY_WORDS.
5122 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5123 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5124 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5125 CALL_DUMMY_BREAKPOINT_OFFSET.
5126 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5127 CALL_DUMMY_START_OFFSET.
5128 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5129 * gdbarch.h, gdbarch.c: Re-generate.
5130 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5131 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5132 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5133 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5134 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5135 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5136 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5137 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5138 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5139 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5140 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5141 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5142 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5143 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5144 * config/sparc/tm-sparc.h: Update.
5145
5146 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5147
5148 * configure.tgt: Add i[3456]86-*-nto*.
5149 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5150 * nto-tdep.c: New file. Neutrino target support routines.
5151 * nto-tdep.h: New file. Neutrino target header.
5152 * config/tm-qnxnto.h: New file.
5153 * config/i386/i386nto.mt: New file.
5154 * config/i386/tm-i386nto.h: New file.
5155
5156 2003-05-04 Andrew Cagney <cagney@redhat.com>
5157
5158 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5159 (load_infrun_state): Ditto.
5160 (struct thread_info): Drop "prev_func_name" field.
5161 * thread.c (load_infrun_state): Update.
5162 (save_infrun_state): Update.
5163 * infrun.c (prev_func_name): Delete variable.
5164 (init_wait_for_inferior): Do not clear prev_func_name.
5165 (stop_stepping, keep_going, context_switch): Do not swap
5166 prev_func_name.
5167 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5168 instead of PC_IN_SIGTRAMP.
5169
5170 2003-05-04 Andrew Cagney <cagney@redhat.com>
5171
5172 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5173 REGISTER_BYTE with register_offset_hack.
5174 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5175 that REGISTER_BYTE is consistent with the regcache.
5176 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5177 * gdbarch.h, gdbarch.c: Regenerate.
5178
5179 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5180
5181 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5182 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5183
5184 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5185
5186 2003-05-03 J. Brobecker <brobecker@gnat.com>
5187
5188 From Thierry Schneider <tpschneider1@yahoo.com>
5189 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5190 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5191 (mi-cmd-symbol.o): Add rule.
5192
5193 2003-05-03 Andrew Cagney <cagney@redhat.com>
5194
5195 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5196 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5197 * gdbarch.h, gdbarch.c: Re-generate.
5198 * d10v-tdep.c (d10v_push_dummy_code): New function.
5199 (d10v_gdbarch_init): Set push_dummy_code.
5200 * infcall.c (legacy_push_dummy_code): New function.
5201 (generic_push_dummy_code): New function.
5202 (push_dummy_code): New function.
5203 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5204 instead of dummy_addr, to push_dummy_call. Move call to
5205 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5206 switch.
5207 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5208
5209 2003-05-03 Andrew Cagney <cagney@redhat.com>
5210
5211 * disasm.h (print_insn): Declare.
5212 * disasm.c (init_gdb_disassemble_info): New function.
5213 (gdb_disassembly): Call init_gdb_disassemble_info.
5214 (gdb_print_insn): New function.
5215 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5216 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5217 * mcore-tdep.c: Include "disasm.h"
5218 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5219 * d10v-tdep.c: Include "disasm.h".
5220 (display_trace): Call gdb_print_insn, instead of print_insn.
5221 (print_insn): Delete function.
5222 * printcmd.c: Include "disasm.h".
5223 (print_insn): Delete function.
5224 (print_formatted): Call gdb_print_insn, instead of print_insn.
5225 * Makefile.in (printcmd.o): Update dependencies.
5226 (mcore-tdep.o, d10v-tdep.o): Ditto.
5227
5228 2003-05-02 Andrew Cagney <cagney@redhat.com>
5229
5230 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5231 PC_REGNUM, re-indent.
5232 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5233 PC_REGNUM isn't set.
5234
5235 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5236 * gdbarch.h, gdbarch.c: Re-generate.
5237 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5238 register_virtual_size, pc_regnum, or register_bytes.
5239 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5240 (d10v_register_type): Use D10V_PC_REGNUM.
5241 (d10v_print_registers_info, d10v_read_pc): Ditto.
5242 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5243 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5244
5245 2003-05-02 David Carlton <carlton@bactrian.org>
5246
5247 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5248 the name with mstrsave.
5249
5250 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5251
5252 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5253 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5254 (host_charset_name, target_charset_name): New vars for use by
5255 set/show commands.
5256 (host_charset_enum, target_charset_enum): New enums for set/show
5257 commands.
5258 (set_charset_sfunc, set_host_charset_sfunc,
5259 set_target_charset_sfunc): New functions.
5260 (set_host_charset, set_target_charset): Make static.
5261 (list_charsets, set_host_charset_command,
5262 set_target_charset_command): Delete functions.
5263 (show_charset_command): Rewrite as....
5264 (show_charset): Hook this up with the set/show command mechanism.
5265 (_initialize_charset): Change names of charsets to match the
5266 set/show enums. Use host_charset_name and target_charset_name.
5267 Use set/show mechanism for charset, host-charset, target-charset
5268 commands. Do not make 'show host-charset' and 'show
5269 target-charset' be aliases of 'show charset'.
5270
5271 * charset.h (set_host_charset, set_target_charset): Don't export,
5272 they are not used outside the file.
5273
5274 2003-05-01 Andrew Cagney <cagney@redhat.com>
5275
5276 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5277 (gdb_disassembly): Make "di" non static, always initialize and
5278 cleanup. Always use dis_asm_read_memory.
5279 (gdb_dis_asm_read_memory): Delete function.
5280
5281 2003-05-01 Andrew Cagney <cagney@redhat.com>
5282
5283 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5284 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5285
5286 2003-04-30 Andrew Cagney <cagney@redhat.com>
5287
5288 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5289 "tm_print_insn_info".
5290 (TARGET_PRINT_INSN_INFO): Delete macro.
5291 (dis_asm_read_memory): Delete function declaration.
5292 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5293 (tm_print_insn_info): Delete variable definition.
5294 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5295 * gdbarch.h, gdbarch.c: Re-generate.
5296 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5297 "deprecated_tm_print_insn_info".
5298 * mcore-tdep.c (mcore_dump_insn): Ditto.
5299 * mips-tdep.c (mips_gdbarch_init): Ditto.
5300 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5301 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5302 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5303 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5304 instead of TARGET_PRINT_INSN_INFO, add comment.
5305 * s390-tdep.c (s390_get_frame_info): Instead of
5306 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5307 (s390_check_function_end, s390_is_sigreturn): Ditto.
5308 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5309 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5310 * disasm.c: Include "gdbcore.h".
5311 (_initialize_disasm): New function, initialize
5312 "deprecated_tm_print_insn_info".
5313 (deprecated_tm_print_insn_info): New variable.
5314 (dis_asm_read_memory): Moved from "corefile.c", made static.
5315 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5316 * Makefile.in (disasm.o): Update dependencies.
5317
5318 2003-04-30 Andrew Cagney <cagney@redhat.com>
5319
5320 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5321
5322 2003-04-29 Adam Fedor <fedor@gnu.org>
5323
5324 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5325 * infcall.c (find_function_addr): Make non-static.
5326 * infcall.h (find_function_addr): Declare.
5327 * Makefile.in (eval.o): Update dependencies.
5328
5329 2003-04-28 Adam Fedor <fedor@gnu.org>
5330
5331 * symtab.c (symbol_find_demangled_name): Check for and demangle
5332 ObjC symbols.
5333 (symbol_init_demangled_name): Init for language_objc as well.
5334
5335 2003-04-28 Andrew Cagney <cagney@redhat.com>
5336
5337 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5338 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5339 * gdbarch.h, gdbarch.c: Re-generate.
5340 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5341 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5342 * inferior.h (deprecated_read_fp): Rename read_fp.
5343 (generic_target_read_fp): Delete declaration.
5344 * regcache.c (generic_target_read_fp): Delete function.
5345 (deprecated_read_fp): Replace read_fp, use
5346 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5347 * d10v-tdep.c (d10v_read_fp): Delete function.
5348 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5349
5350 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5351 deprecated_target_read_fp to generic_target_read_fp.
5352 * sh-tdep.c (sh_gdbarch_init): Ditto.
5353 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5354 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5355 * frv-tdep.c (frv_gdbarch_init): Ditto.
5356
5357 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5358 deprecated_fp_regnum.
5359 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5360 * vax-tdep.c (vax_gdbarch_init): Ditto.
5361 * v850-tdep.c (v850_gdbarch_init): Ditto.
5362 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5363 * sh-tdep.c (sh_gdbarch_init): Ditto.
5364 * s390-tdep.c (s390_gdbarch_init): Ditto.
5365 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5366 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5367 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5368 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5369 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5370 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5371 * i386-tdep.c (i386_gdbarch_init): Ditto.
5372 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5373 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5374 * frv-tdep.c (frv_gdbarch_init): Ditto.
5375 * cris-tdep.c (cris_gdbarch_init): Ditto.
5376 * avr-tdep.c (avr_gdbarch_init): Ditto.
5377 * arm-tdep.c (arm_gdbarch_init): Ditto.
5378 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5379
5380 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5381 * v850-tdep.c (v850_gdbarch_init): Ditto.
5382 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5383 * sh-tdep.c (sh_gdbarch_init): Ditto.
5384 * s390-tdep.c (s390_gdbarch_init): Ditto.
5385 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5386 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5387 * mips-tdep.c (mips_gdbarch_init): Ditto.
5388 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5389 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5390 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5391 * frv-tdep.c (frv_gdbarch_init): Ditto.
5392 * avr-tdep.c (avr_gdbarch_init): Ditto.
5393 * arm-tdep.c (arm_gdbarch_init): Ditto.
5394
5395 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5396 DEPRECATED_FP_REGNUM.
5397 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5398 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5399 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5400 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5401 (sparc32_register_virtual_type): Ditto.
5402 * sh-tdep.c (sh64_frame_chain): Ditto.
5403 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5404 (sh_nofp_frame_init_saved_regs): Ditto.
5405 (sh64_nofp_frame_init_saved_regs): Ditto.
5406 (sh_fp_frame_init_saved_regs): Ditto.
5407 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5408 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5409 * procfs.c (procfs_fetch_registers): Ditto.
5410 (procfs_store_registers): Ditto.
5411 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5412 (store_inferior_registers, fetch_core_registers): Ditto.
5413 (fetch_kcore_registers, clear_regs): Ditto.
5414 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5415 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5416 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5417 * nlm/i386.c (do_status): Ditto.
5418 * mipsv4-nat.c (supply_gregset): Ditto.
5419 * mips-tdep.c: Ditto for comments.
5420 * mips-nat.c (fetch_inferior_registers): Ditto.
5421 (store_inferior_registers, fetch_core_registers): Ditto.
5422 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5423 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5424 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5425 (i386_do_pop_frame, i386_register_type): Ditto.
5426 * hppa-tdep.c (hppa_frame_chain): Ditto.
5427 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5428 (hppa_pop_frame, hppa_read_fp): Ditto.
5429 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5430 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5431 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5432 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5433 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5434 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5435 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5436 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5437 * blockframe.c: Ditto for comments.
5438 * arch-utils.h: Ditto for comments.
5439 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5440 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5441 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5442 * alpha-tdep.h: Ditto for comments.
5443 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5444 (alpha_cannot_store_register): Ditto.
5445 (alpha_push_dummy_frame): Ditto.
5446 * alpha-nat.c (supply_gregset): Ditto.
5447
5448 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5449 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5450 * config/sparc/tm-sparc.h: Update comment.
5451
5452 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5453 deprecated_read_fp instead of TARGET_READ_FP.
5454 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5455 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5456 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5457 deprecated_read_fp instead of read_fp.
5458 * s390-tdep.c (s390_push_arguments): Ditto.
5459 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5460 * frame.h: Ditto in comments.
5461 * frame.c (legacy_get_prev_frame): Ditto.
5462 * dummy-frame.c (dummy_frame_this_id): Ditto.
5463 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5464
5465 2003-04-28 Andrew Cagney <cagney@redhat.com>
5466
5467 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5468 * gdbarch.h, gdbarch.c: Re-generate.
5469 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5470 * vax-tdep.c (_initialize_vax_tdep): Update.
5471 * v850-tdep.c (_initialize_v850_tdep): Update.
5472 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5473 * s390-tdep.c (_initialize_s390_tdep): Update.
5474 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5475 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5476 * mips-tdep.c (_initialize_mips_tdep): Update.
5477 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5478 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5479 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5480 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5481 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5482 * frv-tdep.c (_initialize_frv_tdep): Update.
5483 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5484 (_initialize_cris_tdep): Update.
5485 * arch-utils.c (legacy_print_insn): Update.
5486 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5487
5488 2003-04-26 Adam Fedor <fedor@gnu.org>
5489
5490 * linespec.c (decode_objc): New function to decode ObjC calls
5491 (decode_line_1): Check for ObjC calls (using decode_objc)
5492 * Makefile (linespec.o): Update dependencies.
5493
5494 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
5495
5496 * breakpoint.h (struct breakpoint_ops): New.
5497 (struct breakpoint): Add ops member.
5498
5499 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5500 (mention): Use new breakpoint ops member.
5501 (set_raw_breakpoint): Initialize ops field to NULL.
5502 (print_exception_catchpoint, print_one_exception_catchpoint)
5503 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5504 (gnu_v3_exception_catchpoint_ops): New.
5505 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5506
5507 2003-04-25 Adam Fedor <fedor@gnu.org>
5508
5509 * Makefile.in (COMMON_OBS): Add objc-lang.o
5510
5511 2003-04-25 Andrew Cagney <cagney@redhat.com>
5512
5513 * d10v-tdep.c (print_insn): Delete function.
5514 (display_trace): Use TARGET_PRINT_INSN.
5515 (_initialize_d10v_tdep): Do not set tm_print_insn.
5516 (d10v_gdbarch_init): Set print_insn.
5517
5518 2003-04-25 Andrew Cagney <cagney@redhat.com>
5519
5520 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5521 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5522 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5523 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5524 (nr_dmap_regs, a0_regnum): ... new functions.
5525 (d10v_print_registers_info): Use a0_regnum, use register_size.
5526 (d10v_register_byte): Delete function.
5527 (d10v_register_raw_size): Delete function.
5528 (d10v_register_type): Use a0_regnum.
5529 (d10v_print_registers_info): Use a0_regnum.
5530 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5531 (d10v_gdbarch_init): Do not set register_byte or
5532 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5533 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5534 extract_address.
5535 (trace_command): Use XCALLOC.
5536 (print_insn): Delete reference to tm_print_insn.
5537 (saved_regs_unwinder): Use store_unsigned_integer instead of
5538 store_address.
5539 * frame.h (FRAME_OBSTACK_CALLOC): Define
5540
5541 2003-04-25 David Carlton <carlton@bactrian.org>
5542
5543 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5544
5545 2003-04-24 Adam Fedor <fedor@gnu.org>
5546
5547 * objc-lang.c: Include "valprint.h"
5548 * Makefile.in (objc-lang.o): Update dependencies.
5549
5550 2003-04-24 Adam Fedor <fedor@gnu.org>
5551
5552 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5553 architecture dependant compilation and mark as unimplemented
5554 (until they get put in the gdbarch vector).
5555
5556 2003-04-23 David Carlton <carlton@bactrian.org>
5557
5558 * cp-support.c (cp_find_first_component): Accept 'operator' in
5559 more locations.
5560
5561 2003-04-23 Andrew Cagney <cagney@redhat.com>
5562
5563 * infcall.c (call_function_by_hand): Eliminate redundant
5564 indentation. Move "saved_async" and "old_cleanups" to where they
5565 are needed.
5566
5567 2003-04-23 Andrew Cagney <cagney@redhat.com>
5568
5569 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5570 and "buffer". Move the "name" code to where it is needed.
5571
5572 2003-04-23 Andrew Cagney <cagney@redhat.com>
5573
5574 * infcall.c (call_function_by_hand): Move variables "start_sp",
5575 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5576 code to ON_STACK switch branch.
5577
5578 2003-04-23 Andrew Cagney <cagney@redhat.com>
5579
5580 * infcall.c (call_function_by_hand): Make declaration of "i",
5581 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5582 lint.
5583
5584 2003-04-23 Andrew Cagney <cagney@redhat.com>
5585
5586 * infcall.c (call_function_by_hand): Delete variable
5587 "n_method_args". Localize "param_type"'s declaration to the loop
5588 that it is used. Reinstate code assigning to said variable -
5589 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5590 Rationalize code using "param_type".
5591
5592 2003-04-22 Andrew Cagney <cagney@redhat.com>
5593
5594 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5595 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5596 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5597 to DEPRECATED_PUSH_RETURN_ADDRESS.
5598
5599 2003-04-22 Kevin Buettner <kevinb@redhat.com>
5600
5601 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5602 on the DWARF2 register number prior to fetching a register.
5603
5604 2003-04-22 J. Brobecker <brobecker@gnat.com>
5605
5606 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5607 Update all the tests using SOFT_FLOAT considering the fact that
5608 this macro was always set to 0.
5609 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5610 considering the fact that this macro was always set to 0.
5611 * hppa-tdep.h (hppa_store_return_value): Likewise.
5612 (hppa_extract_return_value): Likewise.
5613
5614 2003-04-22 J. Brobecker <brobecker@gnat.com>
5615
5616 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5617 the hppa-pro target only.
5618
5619 2003-04-21 J. Brobecker <brobecker@gnat.com>
5620
5621 Ongoing multi-arch conversion effort for HP/UX:
5622 * config/pa/tm-hppa.h: Move all macro that are no longer
5623 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5624 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5625
5626 2003-04-21 J. Brobecker <brobecker@gnat.com>
5627
5628 * config/pa/tm-hppa.h: Obsolete a section that was only used
5629 for hppa-pro.
5630
5631 2003-04-21 J. Brobecker <brobecker@gnat.com>
5632
5633 Ongoing multi-arch conversion for HP/UX.
5634 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5635 if already defined (allows hppa64 to stay non-multiarched for now).
5636 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5637
5638 2003-04-21 Andrew Cagney <cagney@redhat.com>
5639
5640 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5641
5642 2003-04-21 Andrew Cagney <cagney@redhat.com>
5643
5644 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5645 "i386_num_mmx_regs".
5646
5647 2003-04-21 Andrew Cagney <cagney@redhat.com>
5648
5649 * infcall.c: New file.
5650 * infcall.h: New file.
5651 * valarith.c: Include "infcall.h".
5652 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5653 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5654 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5655 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5656 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5657 (SFILES): Add "infcall.c"
5658 (COMMON_OBS): Add "infcall.o".
5659 (infcall.o): Specify dependencies.
5660 * value.h (call_function_by_hand): Delete declaration.
5661 * inferior.h (run_stack_dummy): Delete declaration.
5662 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5663 (run_stack_dummy): Move to "infcall.c", merged into
5664 call_function_by_hand.
5665 * valops.c (call_function_by_hand): Moved to "infcall.c".
5666 (find_function_addr, value_arg_coerce): Ditto.
5667 (unwindonsignal_p, coerce_float_to_double): Ditto.
5668 (_initialize_valops): Move "set/show coerce-float-to-double", and
5669 "set/show unwindonsignal" commands to "infcall.c".
5670 * v850-tdep.c, target.h: Update comments.
5671 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5672 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5673 (sh64_init_extra_frame_info): Update comments.
5674 * mn10300-tdep.c: Update comments.
5675 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5676 * config/sparc/tm-sparc.h: Update comments.
5677 * breakpoint.h: Update comments.
5678 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5679 * arm-tdep.c: Update comment.
5680
5681 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5682
5683 * i386-tdep.c (i386_num_register_names): New variable.
5684 (i386_num_mmx_regs): Renamed from mmx_num_regs.
5685 (MM0_REGNUM): Remove redundant parentheses in define.
5686 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
5687 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
5688 i386_mxcsr_regnum_p): Remove redundant parentheses.
5689 (i386_register_name): Use i386_num_register_names.
5690
5691 * i386-tdep.c (i386_extract_return_value,
5692 i386_store_return_value): Correct check for availability of
5693 floating-point registers.
5694
5695 * i386-tdep.c (i386_frame_num_args): Remove function.
5696 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
5697
5698 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
5699 mmx_regnum_to_fp_regnum. Adjust all callers.
5700
5701 * i386-tdep.c (i386_get_longjmp_target): Use
5702 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
5703 and TARGET_CHAR_BIT. Use extract_typed_address instead of
5704 extract_address.
5705
5706 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5707
5708 * core-regset.c: Update comments to reflect reality. Re-order
5709 includes.
5710 (fetch_core_registers): Use switch instead of if. Remove
5711 redundant prototype.
5712
5713 2003-04-18 Jim Blandy <jimb@redhat.com>
5714
5715 * s390-tdep.c (s390_frame_align): New function.
5716 (s390_gdbarch_init): Register it with the gdbarch object.
5717
5718 2003-04-17 Richard Henderson <rth@redhat.com>
5719
5720 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
5721
5722 2003-04-17 Michael Snyder <msnyder@redhat.com>
5723 Karen Bennet <bennet@redhat.com>
5724
5725 Committed by Elena Zannoni <ezannoni@redhat.com>
5726 * gdb_gcore.sh: New script to create a core dump of a process.
5727
5728 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
5729
5730 * values.c (value_being_returned): Don't fetch the return
5731 value if the return type is void.
5732
5733 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5734
5735 * thread-db.c: Reindented.
5736
5737 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5738
5739 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
5740 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
5741 as types.
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767 2003-04-16 Kevin Buettner <kevinb@redhat.com>
5768
5769 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
5770 the size of ``long double'' to 16, instead of 8.
5771
5772 2003-04-16 Mark Kettenis <kettenis@gnu.org>
5773
5774 * i386-linux-nat.c: Add some whitespace to make things more
5775 readable.
5776 (fetch_register, store_register, fetch_inferior_registers,
5777 store_inferior_registers): Get rid of assignment in if-statement.
5778 (store_register): Fix typo in error message.
5779
5780 2003-04-16 Andrew Cagney <cagney@redhat.com>
5781
5782 * utils.c (xmmalloc): Always allocate something, matches
5783 libiberty/xmalloc's semantics.
5784 (xmrealloc, xmcalloc): Ditto.
5785
5786 2003-04-16 Andrew Cagney <cagney@redhat.com>
5787
5788 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5789 update comments.
5790 (get_frame_type): Initialize unwind and type when needed.
5791 (get_frame_id, frame_register_unwind): Ditto.
5792
5793 2003-04-16 Andrew Cagney <cagney@redhat.com>
5794
5795 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
5796 obsolete.
5797 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
5798 * sparcl-stub.c: Obsolete file.
5799 * config/sparc/tm-sparclet.h: Obsolete file.
5800 * sparclet-stub.c: Obsolete file.
5801 * sparclet-rom.c: Obsolete file.
5802 * sparcl-tdep.c: Obsolete file.
5803 * config/sparc/tm-sparclite.h: Obsolete file.
5804 * config/sparc/sparclite.mt: Obsolete file.
5805 * config/sparc/sparclet.mt: Obsolete file.
5806 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
5807 sparc86x-*-* obsolete.
5808
5809 2003-04-15 David Carlton <carlton@math.stanford.edu>
5810
5811 * Makefile.in (SFILES): Add cp-namespace.c.
5812 (COMMON_OBS): Add cp-namespace.o.
5813 (block.o): Depend on gdb_obstack_h and cp_support_h.
5814 (buildsym.o): Depend on cp_support_h.
5815 (cp-namespace.o): New.
5816 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
5817 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
5818 (dwarf2read.o): Depend on cp_support_h.
5819 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
5820 * dwarf2read.c (process_die): Set processing_has_namespace_info,
5821 processing_current_namespace.
5822 (read_namespace): Update processing_current_namespace; check for
5823 anonymous namespaces.
5824 (dwarf2_name): New function.
5825 (dwarf2_extension): Ditto.
5826 * cp-support.h: Update copyright, contributors.
5827 Add inclusion guards.
5828 Add opaque declaration for structs obstack, block, symbol.
5829 (struct using_direct): New struct.
5830 Add declarations for cp_find_first_component,
5831 cp_entire_prefix_len, processing_has_namespace_info,
5832 processing_current_namespace, cp_is_anonymous,
5833 cp_add_using_directive, cp_initialize_namespace,
5834 cp_finalize_namespace, cp_set_block_scope,
5835 cp_scan_for_anonymous_namespaces.
5836 * cp-namespace.c: New file.
5837 * cp-support.c: Update copyright.
5838 Include ctype.h, gdb_assert.h, gdbcmd.h.
5839 New variable maint_cplus_cmd_list.
5840 (cp_find_first_component): New function.
5841 (cp_entire_prefix_len, maint_cplus_command)
5842 (first_component_command, _initialize_cp_support): Ditto.
5843 * buildsym.c: Include cp-support.h.
5844 New variable using_list.
5845 (add_symbol_to_list): Check for anonymous namespaces.
5846 (finish_block): Set block's scope.
5847 (start_symtab): Initialize C++ namespace support.
5848 (end_symtab): Finalize C++ namespace support.
5849 * block.h: Add opaque declarations for structs
5850 block_namespace_info, using_direct, and obstack.
5851 Add declarations for block_set_scope and block_set_using.
5852 (struct block): Add 'language_specific' member.
5853 (BLOCK_NAMESPACE): New macro.
5854 * block.c: Include gdb_obstack.h and cp-support.h.
5855 (struct block_namespace_info): New struct.
5856 (block_set_scope): New function.
5857 (block_set_using, block_initialize_namespace): Ditto.
5858
5859 2003-04-14 Kevin Buettner <kevinb@redhat.com>
5860
5861 * solib-svr4.c (svr4_have_link_map_offsets): New function.
5862 (locate_base): Return early if there aren't any link map offsets.
5863 (svr4_solib_create_inferior_hook): Warn if shared library support
5864 is unavailable.
5865
5866 2003-04-14 David Carlton <carlton@math.stanford.edu>
5867
5868 * symtab.c (symbol_set_names): Add prefix when storing Java names
5869 in hash table. Fix for PR java/1039.
5870
5871 2003-04-14 David Carlton <carlton@math.stanford.edu>
5872
5873 * symtab.c (symbol_set_names): Rename 'name' arg to
5874 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
5875 * symtab.h: Change 'name' argument in declaration of
5876 symbol_set_names to 'linkage_name'.
5877 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
5878
5879 2003-04-14 Andrew Cagney <cagney@redhat.com>
5880
5881 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
5882 return the fully sign-extended register value.
5883 (get_frame_pointer): Ditto.
5884 (mips_pop_frame): Initialize "proc_desc" after checking for a
5885 dummy frame.
5886
5887 2003-04-14 Andrew Cagney <cagney@redhat.com>
5888
5889 * mips-tdep.c (mips_push_dummy_frame): Delete function.
5890 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
5891 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
5892 (mips_push_register): Delete function.
5893 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
5894 PUSH_FP_REGNUM.
5895
5896 2003-04-14 Jim Blandy <jimb@redhat.com>
5897
5898 * symmisc.c: #include "gdb_regex.h".
5899 (maintenance_list_symtabs, maintenance_list_psymtabs): New
5900 functions.
5901 * maint.c (maintenance_list_command): New function.
5902 (_initialize_maint_cmds): Register the above as commands.
5903 * symtab.h (maintenance_list_symtabs,
5904 maintenance_list_psymtabs): New declarations.
5905 * cli/cli-cmds.c (maintenancelistlist): New variable.
5906 (init_cmd_lists): Initialize it.
5907 * cli/cli-cmds.h (maintenancelistlist): New declaration.
5908 * gdbcmd.h (maintenancelistlist): New declaration.
5909 * Makefile.in (symmisc.o): Update dependencies.
5910
5911 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
5912
5913 * s390-nat.c: Include asm/types.h for addr_t.
5914
5915 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
5916
5917 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
5918 actually incoming type.
5919
5920 2003-04-13 Andrew Cagney <cagney@redhat.com>
5921
5922 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
5923 get_next_frame and get_frame_saved_regs.
5924
5925 2003-04-13 Andrew Cagney <cagney@redhat.com>
5926
5927 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
5928 of gdbarch_num_regs.
5929
5930 2003-04-13 Andrew Cagney <cagney@redhat.com>
5931
5932 * frame.h: Mention what replaced what in "struct frame_info".
5933 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
5934 deprecated_update_frame_base_hack and
5935 deprecated_update_frame_pc_hack.
5936 * hppa-tdep.c: Ditto.
5937
5938 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5939
5940 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
5941 to read_reg and update its comment. Remove regnum member.
5942 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
5943 Don't call read_reg when setting in_reg. Call read_reg to get
5944 the frame base if it's in a register. Return the register number
5945 on the stack instead of in the context. Remove extra arguments
5946 to read_reg.
5947 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
5948 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
5949 the register number on the expression stack.
5950 (needs_frame_read_reg): Remove extra arguments.
5951
5952 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5953
5954 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
5955 made non-static.
5956 (execute_stack_op): All callers updated.
5957 * dwarf2expr.h: Add prototype for dwarf2_read_address.
5958 * dwarf2loc.c (find_location_expression): New function.
5959 (dwarf_expr_frame_base): Call it.
5960 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
5961 (dwarf2_tracepoint_var_ref): New function, broken out from
5962 locexpr_tracepoint_var_ref.
5963 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
5964 Make static.
5965 (loclist_read_variable, loclist_read_needs_frame): New functions.
5966 (loclist_describe_location, loclist_tracepoint_var_ref): New
5967 functions.
5968 (dwarf2_loclist_funcs): New struct location_funcs.
5969 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
5970 (struct dwarf2_locexpr_baton): Add comments.
5971 (dwarf2_loclist_funcs): New extern.
5972 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
5973 base_address and base_known.
5974 (dwarf_loc_buffer): New variable.
5975 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
5976 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
5977 (dwarf2_has_info): Initialize dwarf_loc_offset.
5978 (dwarf2_build_psymtabs): Read in .debug_loc.
5979 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
5980 DWARF_LOC_SIZE.
5981 (psymtab_to_symtab_1): Likewise. Move base address calculation
5982 here, from...
5983 (dwarf2_get_pc_bounds): ... here. Use the base address from
5984 cu_header.
5985 (dwarf2_symbol_mark_computed): Handle location lists.
5986
5987 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5988
5989 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
5990 if the linkage name demangled successfully.
5991
5992 2003-04-13 Mark Kettenis <kettenis@gnu.org>
5993
5994 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
5995 disassmbly_flavour): Removed.
5996
5997 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
5998
5999 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6000
6001 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6002
6003 2003-04-12 Andrew Cagney <cagney@redhat.com>
6004
6005 * frame.h (struct frame_info): Move definition from here ...
6006 * frame.c (struct frame_info): ... to here.
6007
6008 2003-04-12 Andrew Cagney <cagney@redhat.com>
6009
6010 * gdbthread.h (save_infrun_state): Delete parameter
6011 "prev_func_start".
6012 (struct thread_info): Delete field "prev_func_start".
6013 (load_infrun_state): Ditto.
6014 * thread.c (load_infrun_state, save_infrun_state): Update.
6015 * infrun.c (prev_func_start): Delete variable.
6016 (context_switch, init_wait_for_inferior): Update.
6017 (stop_stepping, keep_going): Update.
6018
6019 2003-04-12 Andrew Cagney <cagney@redhat.com>
6020
6021 * gdbarch.sh: Add missing opaque declarations.
6022 * gdbarch.h: Regnerate.
6023 * symtab.h: Add missing opaque declarations.
6024 * value.h, target.h, symfile.h, stabsread.h: Ditto.
6025 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6026 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6027 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6028 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6029 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6030 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6031 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6032 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6033 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6034 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6035 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6036 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6037
6038 2003-04-11 Andrew Cagney <cagney@redhat.com>
6039
6040 * frame.c (get_frame_id): Return this frame's "id".
6041 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6042 function start.
6043 (legacy_saved_regs_this_id): Replace function body with
6044 internal-error.
6045 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6046 FRAME_OBSTACK_ZALLOC.
6047 (create_new_frame): Mark the frame ID as valid.
6048
6049 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6050
6051 * Makefile.in (libbfd_h): Added missing setting.
6052 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6053 according to the selected ABI.
6054
6055 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6056
6057 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6058
6059 2003-04-11 Andrew Cagney <cagney@redhat.com>
6060
6061 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6062 SAVED_PC_AFTER_CALL.
6063 * gdbarch.h, gdbarch.c: Regenerate.
6064 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6065 * x86-64-tdep.c (x86_64_init_abi): Update.
6066 * vax-tdep.c (vax_gdbarch_init): Update.
6067 * v850-tdep.c (v850_gdbarch_init): Update.
6068 * sparc-tdep.c (sparc_gdbarch_init): Update.
6069 * sh-tdep.c (sh_gdbarch_init): Update.
6070 * s390-tdep.c (s390_gdbarch_init): Update.
6071 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6072 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6073 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6074 * mips-tdep.c (mips_gdbarch_init): Update.
6075 * mcore-tdep.c (mcore_gdbarch_init): Update.
6076 * m68k-tdep.c (m68k_gdbarch_init): Update.
6077 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6078 * ia64-tdep.c (ia64_gdbarch_init): Update.
6079 (ia64_saved_pc_after_call): Update declaration.
6080 * i386ly-tdep.c (i386lynx_init_abi): Update.
6081 * i386-tdep.c (i386_gdbarch_init): Update.
6082 * hppa-tdep.c (hppa_gdbarch_init): Update.
6083 * h8300-tdep.c (h8300_gdbarch_init): Update.
6084 * frv-tdep.c (frv_gdbarch_init): Update.
6085 * cris-tdep.c (cris_gdbarch_init): Update.
6086 * avr-tdep.c (avr_gdbarch_init): Update.
6087 * arm-tdep.c (arm_gdbarch_init): Update.
6088 * alpha-tdep.c (alpha_gdbarch_init): Update.
6089 * ns32knbsd-nat.c (frame_num_args): Update.
6090 * ns32k-tdep.c (umax_frame_num_args): Update.
6091 * mips-tdep.c (mips_init_frame_pc_first): Update.
6092 * infrun.c (step_over_function): Update.
6093 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6094 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6095 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6096 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6097 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6098 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6099 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6100 * arch-utils.c (init_frame_pc_default): Update.
6101 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6102 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6103 declaration.
6104
6105 2003-04-11 Andrew Cagney <cagney@redhat.com>
6106
6107 * i387-tdep.c: Update copyright.
6108 (i387_to_double): Delete function.
6109 (double_to_i387): Delete function.
6110
6111 2003-04-10 Andrew Cagney <cagney@redhat.com>
6112
6113 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6114 frame's function's address. Simplify.
6115 (d10v_frame_unwind_cache): Check that the frame's function is
6116 non-zero.
6117
6118 2003-04-10 Jim Blandy <jimb@redhat.com>
6119
6120 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6121 call to set_gdbarch_deprecated_push_arguments.
6122
6123 2003-04-10 Andrew Cagney <cagney@redhat.com>
6124
6125 * frame.c (fprint_frame_id): New function.
6126 (fprint_frame_type, fprint_frame): New function.
6127 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6128 (create_sentinel_frame, get_frame_id): Ditto.
6129 (frame_id_p, frame_id_eq): Ditto.
6130 (frame_id_inner, create_new_frame): Ditto.
6131 (legacy_get_prev_frame, get_prev_frame): Ditto.
6132 (deprecated_update_frame_pc_hack): Ditto.
6133 (frame_register_unwind): Ditto.
6134 (deprecated_update_frame_base_hack): Ditto.
6135
6136 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6137
6138 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6139 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6140 frame_chain function.
6141 * Makefile.in: Add dependencies due to above change.
6142
6143 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6144
6145 * blockframe.c (legacy_frame_chain_valid): Move call to
6146 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6147 inside_entry_file.
6148
6149 2003-04-09 Andrew Cagney <cagney@redhat.com>
6150
6151 * frame.h (struct frame_id): Replace "pc" and "base" with
6152 "stack_addr" and "code_addr". Update comments.
6153 (frame_id_build): Update parameter names and comment.
6154 (struct frame_info): Replace "id_p" and "id" with "this_id".
6155 * dummy-frame.c (dummy_frame_this_id): Update.
6156 * breakpoint.c (print_one_breakpoint): Update.
6157 * frame.c (get_frame_id): Update.
6158 (get_frame_base, frame_id_build): Update.
6159 (create_sentinel_frame, legacy_get_prev_frame): Update.
6160 (deprecated_update_frame_base_hack): Update.
6161 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6162 (frame_id_inner): Ditto.
6163
6164 2003-04-09 Andrew Cagney <cagney@redhat.com>
6165
6166 * defs.h (gdb_print_host_address): Make "addr" parameter a
6167 pointer constant.
6168 * utils.c (gdb_print_host_address): Update.
6169
6170 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6171
6172 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6173 register number for R0 is 0.
6174
6175 2003-04-09 J. Brobecker <brobecker@gnat.com>
6176
6177 * frame.h (struct gdbarch): Add opaque structure definition
6178 to avoid a compilation warning on LynxOS 4.0.
6179
6180 2003-04-09 Andrew Cagney <cagney@redhat.com>
6181
6182 * frame.h (struct frame_info): Delete field "pc". Replace
6183 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6184 structure.
6185 * frame.c (frame_pc_unwind): Update.
6186 (create_sentinel_frame): Do not set "pc".
6187 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6188 (get_frame_pc): Call frame_pc_unwind.
6189 (deprecated_update_frame_pc_hack): Update.
6190 (create_new_frame): Use "pc" not "->pc".
6191
6192 2003-04-09 Andrew Cagney <cagney@redhat.com>
6193
6194 * frame.c (get_frame_id): Eliminate code updating "frame".
6195 (legacy_get_prev_frame): Ditto.
6196 (get_frame_base): Return id.base directly.
6197 (deprecated_update_frame_base_hack): Update "id.base".
6198 * frame.h (struct frame_info): Delete field "frame".
6199
6200 2003-04-09 Andrew Cagney <cagney@redhat.com>
6201
6202 * NEWS: Mention that the "Sequent family" is obsolete.
6203 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6204 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6205 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6206 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6207 * config/i386/tm-ptx4.h: Obsolete file.
6208 * config/i386/tm-ptx.h: Obsolete file.
6209 * symm-tdep.c: Obsolete file.
6210 * config/i386/symmetry.mt: Obsolete file.
6211 * config/i386/tm-symmetry.h: Obsolete file.
6212 * symm-nat.c: Obsolete file.
6213 * config/i386/nm-symmetry.h: Obsolete file.
6214 * config/i386/xm-symmetry.h: Obsolete file.
6215 * config/i386/symmetry.mh: Obsolete file.
6216 * config/i386/nm-ptx4.h: Obsolete file.
6217 * config/i386/ptx4.mh: Obsolete file.
6218 * config/i386/ptx.mt: Obsolete file.
6219 * config/i386/ptx.mh: Obsolete file.
6220 * config/i386/xm-ptx4.h: Obsolete file.
6221 * config/i386/xm-ptx.h: Obsolete file.
6222
6223 2003-04-09 Andrew Cagney <cagney@redhat.com>
6224
6225 Obsolete mips*-*-mach3*.
6226 * NEWS: Mention that mips*-*-mach3* is obsolete.
6227 * m3-nat.c: Obsolete file.
6228 * config/nm-m3.h: Obsolete file.
6229 * config/mips/tm-mipsm3.h: Obsolete file.
6230 * config/mips/mipsm3.mt: Obsolete file.
6231 * config/mips/mipsm3.mh: Obsolete file.
6232 * config/mips/xm-mipsm3.h: Obsolete file.
6233 * mipsm3-nat.c: Obsolete file.
6234 * configure.host: Obsolete mips-dec-mach3*.
6235 * configure.tgt: Obsolete mips*-*-mach3*.
6236
6237 2003-04-09 Andrew Cagney <cagney@redhat.com>
6238
6239 * doublest.h: Update copyright.
6240 (deprecated_store_floating, deprecated_extract_floating): Rename
6241 store_floating and extract_floating. Update comments.
6242 * doublest.c: Update copyright.
6243 (extract_floating_by_length): Replace extract_floating.
6244 (store_floating_by_length): Replace store_floating.
6245 (deprecated_extract_floating): New function.
6246 (deprecated_store_floating): New function.
6247 (extract_typed_floating): Call extract_floating_by_length.
6248 (store_typed_floating): Call store_floating_by_length.
6249 * x86-64-tdep.c (x86_64_store_return_value): Update.
6250 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6251 (sh64_extract_return_value): Update.
6252 (sh_sh4_register_convert_to_virtual): Update.
6253 (sh_sh64_register_convert_to_virtual): Update.
6254 (sh_sh4_register_convert_to_raw): Update.
6255 (sh_sh64_register_convert_to_raw): Update.
6256 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6257 (rs6000_register_convert_to_raw): Update.
6258 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6259 (ia64_register_convert_to_raw): Update.
6260 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6261 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6262 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6263 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6264 (alpha_register_convert_to_raw): Update.
6265
6266 2003-04-08 Andrew Cagney <cagney@redhat.com>
6267
6268 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6269 * gdbarch.h, gdbarch.c: Re-generate.
6270 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6271 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6272 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6273 conditionally, use frame_pc_unwind as an alternative. Add
6274 comments.
6275 * arch-utils.c (init_frame_pc_default): Only call
6276 SAVED_PC_AFTER_CALL when available.
6277
6278 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6279
6280 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6281 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6282 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6283 (start_remote): Ditto.
6284 (handle_inferior_event): Ditto.
6285 (save_inferior_status): Ditto.
6286 (restore_inferior_status): Ditto.
6287 * infcmd.c (attach_command): Ditto.
6288 * fork-child.c (startup_inferior): Ditto.
6289 * inferior.h (stop_soon): Rename from stop_soon_quietly.
6290 * alpha-tdep.c (heuristic_proc_start): Ditto.
6291 * mips-tdep.c (heuristic_proc_start): Ditto.
6292 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6293 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6294 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6295 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6296 * remote-vx.c (vx_create_inferior): Ditto.
6297
6298 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6299
6300 * infrun.c (stop_soon_quietly): Make it an enum, to better
6301 override the default behavior of handle_inferior_event.
6302 (clear_proceed_status): Update uses of stop_soon_quietly to
6303 reflect that it is now an enum.
6304 (start_remote): Ditto.
6305 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6306 is set to handle the new GNU/Linux kernel behavior for
6307 attach/sigstop. Update uses of stop_soon_quietly.
6308 * inferior.h (enum stop_kind): New enum.
6309 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6310 Reset normal handle_inferior_event behavior, afterwards.
6311 * fork-child.c (startup_inferior): Update.
6312 * alpha-tdep.c (heuristic_proc_start): Update.
6313 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6314 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6315 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6316 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6317 * remote-vx.c (vx_create_inferior): Update.
6318 * mips-tdep.c (heuristic_proc_start): Update.
6319
6320 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
6321
6322 * disasm.c (dump_insns): Move variables inside loop, or they will
6323 be freed more than once, causing wild memory corruptions.
6324 (gdb_disassembly): Look for the substring "-thread",
6325 instead of "-threads" in the target name, to make sure to find
6326 the 'multi-thread' target. Also, make sure we do the right thing
6327 with the "core" target.
6328
6329 2003-04-07 Kevin Buettner <kevinb@redhat.com>
6330
6331 * mips-tdep.c (mips_print_fp_register): New function, created from
6332 do_fp_register_row(). Registers are now (also) printed as hex.
6333 Only one register is printed per row.
6334 (mips_print_register, do_fp_register_row): Print floating point
6335 registers with mips_print_fp_register().
6336
6337 2003-04-06 Andrew Cagney <cagney@redhat.com>
6338
6339 * valprint.h (inspect_it): Add extern declaration.
6340 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6341 (selectors_info, classes_info): Ditto.
6342 (find_objc_msgcall): Fix indentation.
6343 (objc_printstr): Delete extern declarations.
6344
6345 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6346
6347 2003-04-06 Andrew Cagney <cagney@redhat.com>
6348
6349 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6350 Update comment.
6351 * frame.c (legacy_saved_regs_this_id): Update.
6352 (legacy_get_prev_frame): Update.
6353 * xstormy16-tdep.c: Update comment.
6354 * sparc-tdep.c (sparc_frame_chain): Update comment.
6355 * blockframe.c (legacy_frame_chain_valid): Update.
6356
6357 2003-04-06 Andrew Cagney <cagney@redhat.com>
6358
6359 * valprint.c (val_print_type_code_int): Delete #ifdef
6360 PRINT_TYPELESS_INTEGER code.
6361
6362 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6363 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6364 multi-arch definition.
6365 * gdbarch.h: Re-generate.
6366
6367 2003-04-05 Andrew Cagney <cagney@redhat.com>
6368
6369 Eliminate FRAME_FIND_SAVED_REGS.
6370 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6371 Change FSR parameter to a pointer.
6372 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6373 Assume FSR parameter is a pointer.
6374 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6375 Make fsr a pointer.
6376 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6377 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6378 saved_regs a pointer.
6379 (hppa_frame_saved_pc): Ditto.
6380 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6381 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6382 pointer.
6383 (restore_pc_queue): Make fsr a pointer.
6384 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6385 (hppa_frame_chain): Make saved_regs a pointer, call
6386 hppa_frame_init_saved_regs.
6387 * sparc-tdep.c: Include "gdb_assert.h".
6388 (sparc_frame_find_saved_regs): Replace internal_error with
6389 gdb_assert.
6390 * remote-vxsparc.c (vx_read_register): Delete reference to
6391 FRAME_FIND_SAVED_REGS.
6392 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6393 * gdbarch.h: Regenerate.
6394 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6395 (deprecated_get_frame_saved_regs): Delete declaration.
6396 (struct frame_saved_regs): Delete definition.
6397 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6398 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6399 (hppa_frame_find_saved_regs): Delete declaration.
6400 (FRAME_FIND_SAVED_REGS): Delete macro.
6401 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6402 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6403 FRAME_FIND_SAVED_REGS in comment.
6404
6405 2003-04-05 Andrew Cagney <cagney@redhat.com>
6406
6407 * frame.c (frame_func_unwind, get_frame_func): New functions.
6408 * frame.h (get_frame_func, frame_func_unwind): Declare.
6409 (struct frame_info): Add field "prev_func" for caching the
6410 previous frame's function address.
6411 * arm-tdep.c (arm_frameless_function_invocation): Combine
6412 get_pc_function_start and get_frame_pc into get_frame_func.
6413 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6414 (sh64_nofp_frame_init_saved_regs): Ditto.
6415 * s390-tdep.c (s390_function_start): Ditto.
6416 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6417 (rs6000_frameless_function_invocation): Ditto.
6418 (rs6000_frame_saved_pc): Ditto.
6419 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6420 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6421 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6422 (i386_frame_init_saved_regs): Ditto.
6423 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6424 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6425 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6426 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6427 * blockframe.c (frameless_look_for_prologue): Ditto.
6428
6429 2003-04-05 Andrew Cagney <cagney@redhat.com>
6430
6431 * frame.c (legacy_get_prev_frame): Link prev to next at the
6432 function start. Update comments.
6433
6434 2003-04-05 Andrew Cagney <cagney@redhat.com>
6435
6436 * frame.c (get_frame_id): Update comment.
6437 (legacy_get_prev_frame): Update comment.
6438 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6439 * gdbarch.h: Regenerate.
6440 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6441 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6442
6443 2003-04-05 Andrew Cagney <cagney@redhat.com>
6444
6445 * stack.c (print_frame_info): Use get_frame_pc.
6446
6447 2003-04-04 Andrew Cagney <cagney@redhat.com>
6448
6449 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6450 the frame's type from the unwinder.
6451 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6452 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6453 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6454 (get_frame_base_address): Use get_frame_type.
6455 (get_frame_locals_address, get_frame_args_address): Ditto.
6456 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6457 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6458 (struct frame_info): Add comment explaining why the frame contains
6459 a "type" field.
6460 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6461 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6462 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6463 NORMAL_FRAME.
6464 * frame-unwind.h: Include "frame.h".
6465 (struct frame_unwind): Add "type" field.
6466 * Makefile.in (frame_unwind_h): Add $(frame_h).
6467
6468 2003-04-04 Andrew Cagney <cagney@redhat.com>
6469
6470 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6471 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6472 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6473 get_frame_base.
6474 (d10v_unwind_dummy_id): Use frame_id_build.
6475 * frame.c (find_frame_sal): Use get_frame_pc.
6476 (create_new_frame): Use deprecated_update_frame_pc_hack and
6477 deprecated_update_frame_base_hack.
6478 (create_sentinel_frame): Add comment about ->pc going away.
6479 (get_prev_frame): Add comment about ->pc going away.
6480 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6481 frame_id_build, deprecated_update_frame_pc_hack and
6482 deprecated_update_frame_base_hack.
6483 (select_frame): Use get_frame_pc.
6484 (legacy_saved_regs_this_id): Use frame_id_build.
6485
6486 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
6487
6488 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6489 signed integer case.
6490 (classify_argument): Handle enumerations and references.
6491
6492 2003-04-04 Andrew Cagney <cagney@redhat.com>
6493
6494 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6495 ID to NULL.
6496
6497 2003-04-01 Adam Fedor <fedor@gnu.org>
6498
6499 * gdb/objc-lang.c (selectors_info): Replace calls to
6500 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6501 SYMBOL_NATURAL_NAME.
6502 (classes_info, find_methods): Likewise.
6503
6504 2003-04-03 Kevin Buettner <kevinb@redhat.com>
6505
6506 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6507 ``mach'' to the value determined by bfd_default_set_arch_mach().
6508
6509 2003-04-02 Bob Rossi <bob_rossi@cox.net>
6510
6511 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6512 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6513 (mi-cmd-file.o): Update dependencies.
6514
6515 2003-04-01 Kevin Buettner <kevinb@redhat.com>
6516
6517 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6518 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6519
6520 2003-04-01 Adam Fedor <fedor@gnu.org>
6521
6522 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6523 * language.h (struct language_defn): Add la_demangle.
6524 (language_demangle): Declare.
6525 * language.c (language_demangle): New function.
6526 (unk_lang_demangle): Likewise.
6527 (unknown_language_defn, auto_language_defn, local_language_defn):
6528 Add ukn_lang_demangle.
6529 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6530 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6531 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6532 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6533 * jv-lang.c (java_demangle): New function
6534 (java_language_defn): Use it for la_demangle element.
6535 * objc-lang.c (objc_demangle): Add options argument
6536 (objc_language_defn): Use objc_demangle for la_demangle element.
6537 * maint.c (maintenance_demangle): Replace switch with
6538 call to language_demangle.
6539 * utils.c (fprintf_symbol_filtered): Likewise.
6540
6541 2003-04-01 Andrew Cagney <cagney@redhat.com>
6542
6543 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6544 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6545 PRINT_TYPELESS_INTEGER.
6546 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6547 PUSH_RETURN_ADDRESS.
6548
6549 2003-04-01 Andrew Cagney <cagney@redhat.com>
6550
6551 * Makefile.in (d10v-tdep.o): Update dependencies.
6552 * d10v-tdep.c: Include "frame-base.h".
6553 (d10v_frame_unwind): Make constant.
6554 (d10v_frame_base_address): New function.
6555 (d10v_frame_base): New variable.
6556 (d10v_gdbarch_init): Set frame_base default.
6557 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6558 comment for base.
6559 (d10v_frame_unwind_cache): Set and use "prev_sp".
6560 (d10v_frame_this_id): Use the previous frame's inner most stack
6561 address and this frame's func address for the frame ID. Use
6562 frame_id_build. Don't analyze beyond the current instruction.
6563
6564 2003-04-01 Andrew Cagney <cagney@redhat.com>
6565
6566 * frame.h (get_frame_locals_address, get_frame_args_address):
6567 Refer to the base address, instead of the address of the first
6568 local or parameter.
6569
6570 2003-04-01 Andrew Cagney <cagney@redhat.com>
6571
6572 Add frame debug info addresses:
6573 * frame-base.c: New file.
6574 * frame-base.h: New file.
6575 * frame.h (struct frame_base): Add opaque declaration.
6576 (get_frame_base): Update comment.
6577 (get_frame_base_address): Declare.
6578 (get_frame_locals_address): Declare.
6579 (get_frame_args_address): Declare.
6580 (struct frame_info): Add "base" and "base_cache". Update
6581 comments on the unwinder.
6582 * frame.c: Include "frame-base.h".
6583 (get_frame_locals_address): New function.
6584 (get_frame_base_address): New function.
6585 (get_frame_args_address): New function.
6586 * findvar.c (read_var_value): Use get_frame_locals_address and
6587 get_frame_args_address.
6588 * stack.c (frame_info): Use get_frame_locals_address and
6589 get_frame_args_address.
6590 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6591 moved to "frame-base.c".
6592 * printcmd.c (print_frame_nameless_args): Ditto.
6593 * symtab.h (address_class): Update comments.
6594 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6595 get_frame_base_address.
6596 * dwarf2expr.c (execute_stack_op): Ditto.
6597 * Makefile.in (frame_base_h): Define.
6598 (frame.o): Update dependencies.
6599 (frame-base.o): Add dependencies.
6600 (SFILES): Add frame-base.c.
6601 (COMMON_OBS): Add frame-base.o.
6602
6603 2003-04-01 Andrew Cagney <cagney@redhat.com>
6604
6605 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6606 CALL_DUMMY_LENGTH): Ditto.
6607 * gdbarch.c: Re-generate.
6608 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6609 (CALL_DUMMY_LENGTH): Delete macro.
6610 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6611 * arm-tdep.c (arm_gdbarch_init): Ditto.
6612 * avr-tdep.c (avr_gdbarch_init): Ditto.
6613 * cris-tdep.c (cris_gdbarch_init): Ditto.
6614 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6615 * frv-tdep.c (frv_gdbarch_init): Ditto.
6616 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6617 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6618 * i386-tdep.c (i386_gdbarch_init): Ditto.
6619 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6620 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6621 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6622 * mips-tdep.c (mips_gdbarch_init): Ditto.
6623 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6624 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6625 * s390-tdep.c (s390_gdbarch_init): Ditto.
6626 * sh-tdep.c (sh_gdbarch_init): Ditto.
6627 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6628 * v850-tdep.c (v850_gdbarch_init): Ditto.
6629 * vax-tdep.c (vax_gdbarch_init): Ditto.
6630 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6631
6632 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
6633
6634 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6635
6636 2003-04-01 Andrew Cagney <cagney@redhat.com>
6637
6638 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6639 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6640 * gdbarch.h, gdbarch.c: Re-generate.
6641 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6642 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6643 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6644 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6645 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6646 * infcmd.c (run_stack_dummy): Simplify assuming
6647 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6648 * infrun.c (handle_inferior_event): Ditto.
6649 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6650 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6651 * arm-tdep.c (arm_gdbarch_init): Ditto.
6652 * avr-tdep.c (avr_gdbarch_init): Ditto.
6653 * cris-tdep.c (cris_gdbarch_init): Ditto.
6654 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6655 * frv-tdep.c (frv_gdbarch_init): Ditto.
6656 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6657 * i386-tdep.c (i386_gdbarch_init): Ditto.
6658 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6659 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6660 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6661 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6662 * mips-tdep.c (mips_gdbarch_init): Ditto.
6663 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6664 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6665 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6666 * s390-tdep.c (s390_gdbarch_init): Ditto.
6667 * sh-tdep.c (sh_gdbarch_init): Ditto.
6668 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6669 * v850-tdep.c (v850_gdbarch_init): Ditto.
6670 * vax-tdep.c (vax_gdbarch_init): Ditto.
6671 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6672
6673 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
6674
6675 * symfile.c (symfile_relocate_debug_section): Update call to
6676 bfd_simple_get_relocated_section_contents.
6677
6678 2003-03-31 Andrew Cagney <cagney@redhat.com>
6679
6680 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6681 * gdbarch.h, gdbarch.c: Regenerate.
6682 * inferior.h (FIX_CALL_DUMMY): Delete macro.
6683 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
6684 available.
6685 * frame.h (generic_fix_call_dummy): Delete declaration.
6686 * dummy-frame.h: Update comment.
6687 * dummy-frame.c (generic_fix_call_dummy): Delete function.
6688 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6689 fix_call_dummy.
6690 * sh-tdep.c (sh_gdbarch_init): Ditto.
6691 * s390-tdep.c (s390_gdbarch_init): Ditto.
6692 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6693 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6694 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6695 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6696 * i386-tdep.c (i386_gdbarch_init): Ditto.
6697 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6698 * frv-tdep.c (frv_gdbarch_init): Ditto.
6699 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6700 * cris-tdep.c (cris_gdbarch_init): Ditto.
6701 * avr-tdep.c (avr_gdbarch_init): Ditto.
6702 * arm-tdep.c (arm_gdbarch_init): Ditto.
6703
6704 2003-03-31 J. Brobecker <brobecker@gnat.com>
6705
6706 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
6707 (INIT_FRAME_AP): Likewise.
6708 (EXTRA_FRAME_INFO): Likewise.
6709
6710 2003-03-31 Andrew Cagney <cagney@redhat.com>
6711
6712 * gdbarch.sh: Include "symfile.h".
6713 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
6714 * gdbarch.h, gdbarch.c: Re-generate.
6715 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
6716 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6717 call_dummy_address, the default is at entry_point_address.
6718 * v850-tdep.c (v850_gdbarch_init): Ditto.
6719 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6720 * sh-tdep.c (sh_gdbarch_init): Ditto.
6721 * s390-tdep.c (s390_gdbarch_init): Ditto.
6722 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6723 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6724 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6725 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6726 * i386-tdep.c (i386_gdbarch_init): Ditto.
6727 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6728 * frv-tdep.c (frv_gdbarch_init): Ditto.
6729 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6730 * cris-tdep.c (cris_gdbarch_init): Ditto.
6731 * arm-tdep.c (arm_gdbarch_init): Ditto.
6732
6733 2003-03-31 Andrew Cagney <cagney@redhat.com>
6734
6735 * gdbarch.sh (CALL_DUMMY_P): Delete.
6736 * gdbarch.h, gdbarch.c: Re-generate.
6737 * inferior.h (CALL_DUMMY_P): Delete macro.
6738 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6739 * vax-tdep.c (vax_gdbarch_init): Update.
6740 * v850-tdep.c (v850_gdbarch_init): Update.
6741 * sparc-tdep.c (sparc_gdbarch_init): Update.
6742 * sh-tdep.c (sh_gdbarch_init): Update.
6743 * s390-tdep.c (s390_gdbarch_init): Update.
6744 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6745 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6746 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6747 * mips-tdep.c (mips_gdbarch_init): Update.
6748 * mcore-tdep.c (mcore_gdbarch_init): Update.
6749 * m68k-tdep.c (m68k_gdbarch_init): Update.
6750 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6751 * ia64-tdep.c (ia64_gdbarch_init): Update.
6752 * i386-tdep.c (i386_gdbarch_init): Update.
6753 * h8300-tdep.c (h8300_gdbarch_init): Update.
6754 * frv-tdep.c (frv_gdbarch_init): Update.
6755 * d10v-tdep.c (d10v_gdbarch_init): Update.
6756 * cris-tdep.c (cris_gdbarch_init): Update.
6757 * breakpoint.c (deprecated_frame_in_dummy): Update.
6758 * avr-tdep.c (avr_gdbarch_init): Update.
6759 * alpha-tdep.c (alpha_gdbarch_init): Update.
6760 * arm-tdep.c (arm_gdbarch_init): Update.
6761 * dummy-frame.c (dummy_frame_this_id): Update comments.
6762 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
6763 * frame.c (legacy_get_prev_frame): Ditto.
6764 * valops.c (call_function_by_hand): Delete function.
6765 (hand_function_call): Rename to call_function_by_hand
6766
6767 2003-03-30 Andrew Cagney <cagney@redhat.com>
6768
6769 2002-11-10 Klee Dienes <kdienes@apple.com>
6770 * value.h (struct value): Update comment.
6771
6772 2003-03-30 Andrew Cagney <cagney@redhat.com>
6773
6774 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
6775 D10V_FP_REGNUM.
6776 (d10v_gdbarch_init): Do not set fp_regnum.
6777
6778 * frame.c (get_frame_base): Force ID initialization.
6779 (get_prev_frame): Move computation of the frame ID from here ...
6780 (get_frame_id): ... to here.
6781 (legacy_get_prev_frame): Mark the frame ID as valid.
6782 * frame.h (struct frame_info): Add field "id_p".
6783
6784 2003-03-30 Mark Kettenis <kettenis@gnu.org>
6785
6786 * i386-tdep.c (i386_store_struct_return): Removed.
6787 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
6788
6789 2003-03-30 Andrew Cagney <cagney@redhat.com>
6790
6791 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
6792 * gdbarch.h, gdbarch.c: Regenerate.
6793 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
6794 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6795 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6796 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6797 * i386-tdep.c (i386_gdbarch_init): Ditto.
6798 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6799 * cris-tdep.c (cris_gdbarch_init): Ditto.
6800 * vax-tdep.c (vax_gdbarch_init): Ditto.
6801 * s390-tdep.c (s390_gdbarch_init): Ditto.
6802 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6803 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6804 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6805 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
6806 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6807 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
6808 * sparc-tdep.c (sparc_gdbarch_init): Update.
6809 * sh-tdep.c (sh_gdbarch_init): Update.
6810 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6811 * mips-tdep.c (mips_gdbarch_init): Update.
6812 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6813 * ia64-tdep.c (ia64_gdbarch_init): Update.
6814 * frv-tdep.c (frv_gdbarch_init): Update.
6815 * avr-tdep.c (avr_gdbarch_init): Update.
6816 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
6817 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
6818 instead of when push_dummy_call is not available.
6819
6820 2003-03-30 Andrew Cagney <cagney@redhat.com>
6821
6822 * infttrace.c: Include "gdbthread.h".
6823 (parent_attach_all): Fix function signature.
6824 (call_ptrace): Update call.
6825 * Makefile.in (infttrace.o): Update dependencies.
6826
6827 2003-03-30 Andrew Cagney <cagney@redhat.com>
6828
6829 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
6830 PUSH_RETURN_ADDRESS.
6831 * gdbarch.h, gdbarch.c: Regenerate.
6832 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6833 * x86-64-tdep.c (x86_64_init_abi): Update.
6834 * v850-tdep.c (v850_gdbarch_init): Update.
6835 * sparc-tdep.c (sparc_gdbarch_init): Update.
6836 * sh-tdep.c (sh_gdbarch_init): Update.
6837 * s390-tdep.c (s390_gdbarch_init): Update.
6838 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6839 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6840 * mips-tdep.c (mips_gdbarch_init): Update.
6841 * mcore-tdep.c (mcore_gdbarch_init): Update.
6842 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6843 * ia64-tdep.c (ia64_gdbarch_init): Update.
6844 * i386-tdep.c (i386_gdbarch_init): Update.
6845 * h8300-tdep.c (h8300_gdbarch_init): Update.
6846 * frv-tdep.c (frv_gdbarch_init): Update.
6847 * cris-tdep.c (cris_gdbarch_init): Update.
6848 * avr-tdep.c (avr_gdbarch_init): Update.
6849 * arm-tdep.c (arm_gdbarch_init): Update.
6850 * valops.c (hand_function_call): Update.
6851
6852 2003-03-29 Andrew Cagney <cagney@redhat.com>
6853
6854 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
6855 sizeof_call_dummy_words.
6856 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
6857 define.
6858 * gdbarch.h: Regenerate.
6859
6860 2003-03-29 Andrew Cagney <cagney@redhat.com>
6861
6862 * infttrace.h: New file.
6863 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
6864 (hpread_get_textlow): Detect an uninitialized dn_bufp.
6865 (hpread_read_doc_function_type): Detect an initialized type1.
6866 (hpread_quick_traverse): Initialize mod_name_string.
6867 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
6868 (som_solib_get_solib_by_pc): Declare.
6869 (so_lib_thread_start_addr): Declare.
6870 (no_shared_libraries): Declare.
6871 * somread.c (init_import_symbols): Make static. Add forward
6872 declaration.
6873 * config/pa/nm-hppah.h: Include "infttrace.h" for
6874 parent_attach_all.
6875 (hppa_insert_hw_watchpoint): Declare.
6876 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
6877 * hppah-nat.c: Include "gdb_string.h".
6878 (parent_attach_all): Delete extern declaration, moved to
6879 "infttrace.h".
6880 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
6881 int.
6882 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
6883 * Makefile.in (infttrace_h): Define.
6884 (hpread.o): Update dependencies.
6885 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
6886 * hppa-hpux-tdep.c: Include "gdb_string.h".
6887 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
6888 * infrun.c (handle_inferior_event): Always initialize
6889 stepped_after_stopped_by_watchpoint. Add default and remove
6890 fallthrough in switch statement.
6891 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
6892 parameter to int.
6893 (hppa_remove_hw_watchpoint): Ditto.
6894
6895 2003-03-29 Andrew Cagney <cagney@redhat.com>
6896
6897 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
6898 offset.
6899
6900 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
6901
6902 * arm-tdep.c (arm_push_arguments): Delete.
6903 (struct stack_item): New type.
6904 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
6905 (arm_store_struct_return): Delte.
6906 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
6907 arm_push_arguments or arm_store_struct_return.
6908
6909 2003-03-28 Andrew Cagney <cagney@redhat.com>
6910
6911 * Makefile.in (d10v-tdep.o): Update dependencies.
6912 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
6913 * d10v-tdep.c: Include "remote.h".
6914 (target_resume_hook): Delete extern declaration.
6915 (target_wait_loop_hook): Ditto.
6916 (tdisassemble_command): Eliminate assignment in "if" conditional.
6917 (d10v_ts2_register_sim_regno): Eliminate call to
6918 legacy_register_sim_regno.
6919 (d10v_ts3_register_sim_regno): Ditto.
6920
6921 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
6922
6923 * thread.c: Reindented.
6924 * lin-lwp.c: Ditto.
6925 * linux-proc.c: Ditto.
6926
6927 2003-03-28 Bob Rossi <bob_rossi@cox.net>
6928
6929 * MAINTAINERS (write after approval): Add myself.
6930
6931 2003-03-27 Theodore A. Roth <troth@openavr.org>
6932
6933 * objc-exp.y: Add missing semi-colons.
6934
6935 2003-03-27 Andrew Cagney <cagney@redhat.com>
6936
6937 * regcache.c (write_sp): Delete function and references.
6938 * inferior.h (write_sp): Delete declaration.
6939 * valops.c (hand_function_call): Replace write_sp with
6940 TARGET_WRITE_SP.
6941 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
6942 (sparc_pop_frame): Ditto.
6943
6944 2003-03-27 Andrew Cagney <cagney@redhat.com>
6945
6946 * NEWS: Mention removal of support for hppa*-*-bsd* and
6947 hppa*-*-osf* natives, and hppa*-*-pro* target.
6948 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
6949 * config/pa/xm-pa.h: Obsolete file.
6950 * config/pa/xm-hppab.h: Obsolete file.
6951 * config/pa/nm-hppab.h: Obsolete file.
6952 * config/pa/tm-hppab.h: Obsolete file.
6953 * config/pa/tm-hppao.h: Obsolete file.
6954 * config/pa/nm-hppao.h: Obsolete file.
6955 * config/pa/tm-pro.h: Obsolete file.
6956 * config/pa/hppaosf.mt: Obsolete file.
6957 * config/pa/hppaosf.mh: Obsolete file.
6958 * config/pa/hppapro.mt: Obsolete file.
6959 * config/pa/hppabsd.mt: Obsolete file.
6960 * config/pa/hppabsd.mh: Obsolete file.
6961 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
6962 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
6963 hppa*-*-osf*.
6964
6965 2003-03-27 Andrew Cagney <cagney@redhat.com>
6966
6967 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
6968 push_arguments. Don't set push_return_address or write_sp.
6969 (d10v_push_dummy_call): Replace d10v_push_arguments.
6970 (d10v_push_return_address, d10v_write_sp): Delete function,
6971 handled by push_dummy_call.
6972
6973 2003-03-26 Andrew Cagney <cagney@redhat.com>
6974
6975 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
6976 (push_dummy_call): New pure multi-arch replacement with gdbarch,
6977 regcache and dummy_addr parameters.
6978 * gdbarch.h, gdbarch.c: Re-generate.
6979 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
6980 available; assume it will handle stack alignment and return
6981 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
6982 legacy_push_arguments.
6983 (legacy_push_arguments): Rename default_push_arguments.
6984 * value.h (legacy_push_arguments): Rename default_push_arguments.
6985 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
6986 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6987 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6988 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6989 * config/i386/tm-symmetry.h: Update.
6990 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6991 * x86-64-tdep.c (x86_64_init_abi): Update.
6992 * v850-tdep.c (v850_gdbarch_init): Update.
6993 * sparc-tdep.c (sparc_gdbarch_init): Update.
6994 * sh-tdep.c (sh_gdbarch_init): Update.
6995 * s390-tdep.c (s390_gdbarch_init): Update.
6996 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6997 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6998 * mips-tdep.c (mips_gdbarch_init): Update.
6999 * mcore-tdep.c (mcore_gdbarch_init): Update.
7000 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7001 * ia64-tdep.c (ia64_gdbarch_init): Update.
7002 * i386-tdep.c (i386_gdbarch_init): Update.
7003 * hppa-tdep.c (hppa_gdbarch_init): Update.
7004 * h8300-tdep.c (h8300_gdbarch_init): Update.
7005 * frv-tdep.c (frv_gdbarch_init): Update.
7006 * d10v-tdep.c (d10v_gdbarch_init): Update.
7007 * cris-tdep.c (cris_gdbarch_init): Update.
7008 * avr-tdep.c (avr_gdbarch_init): Update.
7009 * arm-tdep.c (arm_gdbarch_init): Update.
7010 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7011 * alpha-tdep.c (alpha_gdbarch_init): Update.
7012
7013 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7014
7015 * signals/signals.c (do_target_signal_to_host): Correct realtime
7016 signal range test.
7017
7018 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7019
7020 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
7021 (struct sal_chain, map_catch_names): Remove.
7022 (catch_exception_command_1): Don't call
7023 handle_gnu_4_16_catch_command.
7024
7025 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7026
7027 From Mark Dettinger <dettinge@de.ibm.com>:
7028 * dwarf2cfi.c (read_2u): Increment pointer by two.
7029
7030 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7031
7032 * signals/signals.c: Fix typos in last change.
7033
7034 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7035
7036 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7037 not already defined. Use __SIGRTMIN if available.
7038 (target_signal_from_host): Remove SIGRTMIN block.
7039 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7040 the signal is within the realtime range.
7041
7042 2003-03-25 Adam Fedor <fedor@gnu.org>
7043
7044 * Makefile.in (infrun.o): Add $(language_h)
7045 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7046 for language specific trampolines.
7047 * language.h (struct language_defn): Add skip_trampoline.
7048 (skip_language_trampoline): Declare.
7049 * language.c (unk_lang_trampoline, skip_language_trampoline):
7050 New functions.
7051 (unknown_language_defn, auto_language_defn, local_language_defn):
7052 Add ukn_lang_trampoline.
7053 * ada-lang.c (ada_language_defn): Add NULL for language
7054 specific skip_trampoline.
7055 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7056 scm-lang.c: Likewise.
7057 * objc-lang.c (objc_skip_trampoline): New function.
7058 (objc_language_defn): Add objc_skip_trampoline.
7059
7060 2003-03-25 Andrew Cagney <cagney@redhat.com>
7061
7062 * frame.c (get_prev_frame): Delay validating a frame's ID -
7063 non-NULL, didn't go backwards - until an attempt to unwind it to
7064 the previous frame.
7065
7066 2003-03-25 Andrew Cagney <cagney@redhat.com>
7067
7068 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7069 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7070 * gdbarch.h, gdbarch.c: Re-generate.
7071 * config/sparc/tm-sparc.h
7072 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7073 * sparc-tdep.c (sparc_gdbarch_init): Set
7074 deprecated_extra_stack_alignment_needed.
7075 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7076 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7077 extra_stack_alignment_needed.
7078 * v850-tdep.c (v850_gdbarch_init): Ditto.
7079 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7080 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7081 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7082 * cris-tdep.c (cris_gdbarch_init): Ditto.
7083 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7084 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7085
7086 2003-03-25 Andrew Cagney <cagney@redhat.com>
7087
7088 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7089 STORE_STRUCT_RETURN.
7090 * gdbarch.h, gdbarch.c: Regenerate.
7091 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7092 (d10v_push_arguments): Set the struct return register.
7093 (d10v_gdbarch_init): Update.
7094 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7095 * x86-64-tdep.c (x86_64_init_abi): Update.
7096 * vax-tdep.c (vax_gdbarch_init): Update.
7097 * v850-tdep.c (v850_gdbarch_init): Update.
7098 * sparc-tdep.c (sparc_gdbarch_init): Update.
7099 * sh-tdep.c (sh_gdbarch_init): Update.
7100 * s390-tdep.c (s390_gdbarch_init): Update.
7101 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7102 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7103 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7104 * mips-tdep.c (mips_gdbarch_init): Update.
7105 * mcore-tdep.c (mcore_gdbarch_init): Update.
7106 * m68k-tdep.c (m68k_gdbarch_init): Update.
7107 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7108 * ia64-tdep.c (ia64_gdbarch_init): Update.
7109 * i386-tdep.c (i386_gdbarch_init): Update.
7110 * hppa-tdep.c (hppa_gdbarch_init): Update.
7111 * h8300-tdep.c (h8300_gdbarch_init): Update.
7112 * frv-tdep.c (frv_gdbarch_init): Update.
7113 * cris-tdep.c (cris_gdbarch_init): Update.
7114 * avr-tdep.c (avr_gdbarch_init): Update.
7115 * arm-tdep.c (arm_gdbarch_init): Update.
7116 * alpha-tdep.c (alpha_gdbarch_init): Update.
7117
7118 2003-03-25 Andrew Cagney <cagney@redhat.com>
7119
7120 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7121 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7122 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7123 * gdbarch.h, gdbarch.c: Regenerate.
7124 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7125 call_dummy_stack_adjust_p.
7126 * vax-tdep.c (vax_gdbarch_init): Ditto.
7127 * v850-tdep.c (v850_gdbarch_init): Ditto.
7128 * sh-tdep.c (sh_gdbarch_init): Ditto.
7129 * s390-tdep.c (s390_gdbarch_init): Ditto.
7130 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7131 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7132 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7133 * mips-tdep.c (mips_gdbarch_init): Ditto.
7134 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7135 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7136 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7137 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7138 * i386-tdep.c (i386_gdbarch_init): Ditto.
7139 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7140 * frv-tdep.c (frv_gdbarch_init): Ditto.
7141 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7142 * cris-tdep.c (cris_gdbarch_init): Ditto.
7143 * avr-tdep.c (avr_gdbarch_init): Ditto.
7144 * arm-tdep.c (arm_gdbarch_init): Ditto.
7145 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7146 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7147 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7148 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7149 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7150 call_dummy_stack_adjust_p.
7151 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7152 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7153 * sparc-tdep.c (sparc32_push_arguments): Update.
7154 * valops.c (hand_function_call): Update.
7155
7156 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7157
7158 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7159 set_gdbarch_char_signed.
7160
7161 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7162
7163 PR cli/548
7164 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7165
7166 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7167
7168 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7169 (_initialize_arm_tdep): Don't set tm_print_insn.
7170
7171 2003-03-24 Adam Fedor <fedor@gnu.org>
7172
7173 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7174 * objc-lang.h: Add multiple inclusion protection.
7175 (start_msglist, add_msglist, end_msglist): Additional declarations.
7176
7177 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7178
7179 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7180 value was renamed to ARM_FLOAT_SOFT_FPA.
7181
7182 2003-03-23 Andrew Cagney <cagney@redhat.com>
7183
7184 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7185 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7186 * gdbarch.h, gdbarch.c: Regenerate.
7187 * valops.c (hand_function_call): Update.
7188 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7189 * frame.c (legacy_saved_regs_this_id): Update.
7190 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7191 * dummy-frame.h: Update.
7192 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7193 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7194 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7195 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7196 * config/m68k/tm-sun3.h: Update.
7197 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7198 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7199 * x86-64-tdep.c (x86_64_init_abi): Update.
7200 * vax-tdep.c (vax_gdbarch_init): Update.
7201 * v850-tdep.c (v850_gdbarch_init): Update.
7202 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7203 * sh-tdep.c (sh_gdbarch_init): Update.
7204 * s390-tdep.c (s390_gdbarch_init): Update.
7205 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7206 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7207 (frame_get_saved_regs): Update.
7208 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7209 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7210 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7211 * mips-tdep.c (mips_gdbarch_init): Update.
7212 * mcore-tdep.c (mcore_gdbarch_init): Update.
7213 * m68k-tdep.c (m68k_gdbarch_init): Update.
7214 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7215 * ia64-tdep.c (ia64_gdbarch_init): Update.
7216 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7217 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7218 (i386_interix_back_one_frame): Update.
7219 * hppa-tdep.c (hppa_gdbarch_init): Update.
7220 (hppa_init_extra_frame_info): Update.
7221 * h8300-tdep.c (h8300_gdbarch_init): Update.
7222 * frv-tdep.c (frv_gdbarch_init): Update.
7223 * cris-tdep.c (cris_gdbarch_init): Update.
7224 * avr-tdep.c (avr_gdbarch_init): Update.
7225 * arm-tdep.c (arm_gdbarch_init): Update.
7226 * alpha-tdep.c (alpha_gdbarch_init): Update.
7227
7228 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7229
7230 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7231 (arm_get_fp_model): Declare.
7232 * arm-tdep.c (fp_model_strings): New string array.
7233 (arm_fp_model, current_fp_model): New variables.
7234 (arm_get_fp_model): New function.
7235 (arm_set_fp): New function.
7236 (set_fp_model_sfunc): New function.
7237 (show_fp_model): New function.
7238 (_initialize_arm_tdep): Add new command to set/show the FPU.
7239 (arm_extract_return_value): Use arm_get_fp_model.
7240 (arm_store_return_value): Likewise.
7241 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7242 to initialize the floating-point data types.
7243 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7244 model is FPA.
7245
7246 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7247
7248 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7249 the current setting of each value.
7250 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7251 new_set and new_show. Use add_setshow_cmd_full and
7252 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7253 commands and add new version as subcommands of "set/show arm".
7254
7255 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7256
7257 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7258 (set_arm_command, show_arm_command): New functions.
7259 (_initialize_arm_tdep): Add them.
7260 (num_disassembly_options): Renamed from num_flavor_options.
7261 (valid_disassembly_styles): Renamed from valid_flavors.
7262 (disassembly_style): Renamed from disassembly_flavor.
7263 (set_disassembly_style_sfunc): Renamed from
7264 set_disassembly_flavor_sfunc.
7265 (set_disassembly_style): Renamed from set_disassembly_flavor.
7266 (arm_othernames): Updated.
7267 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7268 command. Add "set/show arm disassembly" commands. Deprecate
7269 "othernames" command.
7270
7271 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7272
7273 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7274 (arm-tdep.o): Depend on elf_arm_h.
7275
7276 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7277
7278 * Makefile.in (coff_internal_h): Define.
7279 (arm-tdep.o): Update dependencies.
7280
7281 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7282
7283 * arm-tdep.c (prologue_cache): Delete.
7284 (check_prologue_cache, save_prologue_cache): Delete.
7285 (arm_scan_prologue): Don't check or update the prologue_cache.
7286 (arm_gdb_arch_init): Don't initialize it.
7287 (_initialize_arm_tdep): Likewise.
7288
7289 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7290
7291 * MAINTAINERS (tui): Maintainer of tui code.
7292
7293 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
7294
7295 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7296 (i386-cygwin-tdep.o): Add dependencies.
7297 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7298 * i386-cygwin-tdep.c: New file.
7299 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7300 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7301
7302 2003-03-20 Andrew Cagney <cagney@redhat.com>
7303
7304 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7305 (handle_inferior_event): Remove code calling
7306 DYNAMIC_TRAMPOLINE_NEXTPC.
7307
7308 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7309 already has a full path.
7310
7311 * main.c (gdb_main): Return 1.
7312 (captured_main): Call error to report an invalid interpreter.
7313
7314 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7315 * alpha-osf1-tdep.c: Include "gdb_string.h".
7316
7317 2003-03-19 J. Brobecker <brobecker@gnat.com>
7318
7319 Continuing work to convert the hppa targets to multiarch partial.
7320
7321 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7322 method, now that hppa_push_dummy_frame has a conformant prototype.
7323 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7324 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7325 for the switch to multiarch partial.
7326
7327 2003-03-19 Kevin Buettner <kevinb@redhat.com>
7328
7329 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7330 when iss is issNull.
7331
7332 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7333
7334 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7335 NUM_REGS bounds check.
7336
7337 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7338
7339 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7340 * mips-tdep.c (gdb_assert.h): Include.
7341 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7342 (mips_register_name): Handle integer registers explicitly. Add
7343 bounds checking.
7344 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7345 (mips_lsi33k_reg_names): Don't list integer registers; they're
7346 handled by mips_register_name() now.
7347 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7348 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7349 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7350 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7351 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7352
7353 2003-03-18 Andrew Cagney <cagney@redhat.com>
7354
7355 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7356 a void pointer.
7357 * gdbtypes.h (print_scalar_formatted): Update declaration.
7358 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7359
7360 2003-03-18 J. Brobecker <brobecker@gnat.com>
7361
7362 * infrun.c (observer.h): Add #include.
7363 (normal_stop): Add call to observer_notify_normal_stop.
7364 * Makefile.in (infrun.o): Add dependency on observer.h.
7365
7366 2003-03-18 J. Brobecker <brobecker@gnat.com>
7367
7368 Continuing work to convert the hppa targets to multiarch partial.
7369 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7370 parameter. Reformat comment.
7371 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7372 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7373 to match new profile.
7374
7375 2003-03-18 J. Brobecker <brobecker@gnat.com>
7376
7377 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7378 appear to be working in any case.
7379
7380 2003-03-18 J. Brobecker <brobecker@gnat.com>
7381
7382 * observer.c (observer_test_first_observer): New static variable.
7383 (observer_test_second_observer): Likewise.
7384 (observer_test_third_observer): Likewise.
7385 (observer_test_first_notification_function): New static function.
7386 (observer_test_second_notification_function): Likewise.
7387 (observer_test_third_notification_function): Likewise.
7388
7389 2003-03-17 J. Brobecker <brobecker@gnat.com>
7390
7391 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7392 * somsolib.c (gdb_assert.h): Likewise.
7393 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7394 (somsolib.o): Likewise.
7395
7396 2003-03-17 Andrew Cagney <cagney@redhat.com>
7397
7398 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7399 BFD. Simplify setting of di.endian.
7400
7401 2003-03-17 Andrew Cagney <cagney@redhat.com>
7402
7403 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7404 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7405
7406 From Elena Zannoni <ezannoni@redhat.com>
7407 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7408 vector and floating-point parameters.
7409 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7410 convention.
7411 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7412
7413 2003-03-17 Fernando Nasser <fnasser@redhat.com>
7414
7415 * MAINTAINERS: Remove my name from several maintainership roles.
7416
7417 2003-03-17 Andrew Cagney <cagney@redhat.com>
7418
7419 Fix frame off-by-one bug.
7420 * frame-unwind.h (frame_this_id_ftype): Replace
7421 frame_unwind_id_ftype.
7422 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7423 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7424 with "prev_register".
7425 * frame-unwind.c (frame_unwind_find_by_pc): Return
7426 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7427 comment.
7428 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7429 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7430 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7431 (dummy_frame_unwind): Update.
7432 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7433 sentinel_frame_register_unwind.
7434 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7435 (sentinel_frame_unwinder): Update.
7436 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7437 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7438 * frame.c (create_sentinel_frame): Update. Initialize
7439 "prologue_cache" instead of "unwind_cache".
7440 (frame_register_unwind): Call this frame's prev_register with the
7441 next frame and this frame's prologue cache.
7442 (get_prev_frame): Simplify. Always call prev frame's this_id with
7443 this frame and prev frame's prologue cache. Document that this
7444 call is shifted one to the left when compared to the
7445 frame_register_unwind call.
7446 (legacy_saved_regs_prev_register): Replace
7447 frame_saved_regs_register_unwind.
7448 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7449 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7450 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7451 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7452 (d10v_frame_unwind): Update.
7453 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7454 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7455 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7456 "saved_regs" with "this_saved_regs".
7457
7458 2003-03-16 Andrew Cagney <cagney@redhat.com>
7459
7460 * frame.c (frame_pop): Don't call target_store_registers. Fix
7461 problem reported by Mark Kettenis.
7462
7463 2003-03-16 Mark Kettenis <kettenis@gnu.org>
7464
7465 * i386-tdep.c (i386_register_type): Renamed from
7466 i386_register_virtual_type. Adjust function signature.
7467 (i386_gdbarch_init): Set register_type instead of
7468 deprecated_max_register_raw_size,
7469 deprecated_max_register_virtual_size and register_virtual_type.
7470
7471 2003-03-14 Andrew Cagney <cagney@redhat.com>
7472
7473 * frame.c (get_prev_frame): When a legacy frame, always call
7474 legacy_get_prev_frame. Simplify unwind code using assumption that
7475 the unwinder is new.
7476 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7477 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7478 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7479
7480 2003-03-14 Andrew Cagney <cagney@redhat.com>
7481
7482 * frame.c (get_saved_register): Delete function.
7483 * frame.h (get_saved_register): Delete declaration.
7484 * xstormy16-tdep.c: Update comment.
7485 * regcache.h: Update comments.
7486 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7487 get_saved_register and extract_address, use
7488 frame_read_unsigned_register.
7489 (sparc_frame_saved_pc): Ditto.
7490 (sparc_get_saved_register): Instead of get_saved_register, use
7491 frame_register.
7492 (sparc_pop_frame): Ditto.
7493 * findvar.c: Update comments.
7494 (value_of_register): Call frame_register instead of
7495 get_saved_register.
7496 (value_from_register): Ditto.
7497 * config/sparc/tm-sparc.h: Update comment.
7498 * breakpoint.c: Update comment.
7499
7500 2003-03-14 Andrew Cagney <cagney@redhat.com>
7501
7502 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7503 GET_SAVED_REGISTER.
7504 * gdbarch.h, gdbarch.c: Re-generate.
7505 * frame.h: Update comments.
7506 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7507 * x86-64-tdep.c (x86_64_init_abi): Update.
7508 * sparc-tdep.c (sparc_gdbarch_init): Update.
7509 * sh-tdep.c (sh_gdbarch_init): Update.
7510 * mips-tdep.c (mips_gdbarch_init): Update.
7511 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7512 * cris-tdep.c (cris_gdbarch_init): Update.
7513 * ia64-tdep.c (ia64_gdbarch_init): Update.
7514 * frame.c (frame_register): Update.
7515 (get_saved_register): Update.
7516 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7517
7518 2003-03-13 Andrew Cagney <cagney@redhat.com>
7519
7520 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7521 * gdbarch.h, gdbarch.c: Regenerate.
7522 * valops.c (hand_function_call): Update comment.
7523 * stack.c (return_command): Update comment.
7524 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7525 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7526 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7527 * x86-64-tdep.c (x86_64_init_abi): Update.
7528 * vax-tdep.c (vax_gdbarch_init): Update.
7529 * v850-tdep.c (v850_gdbarch_init): Update.
7530 * sparc-tdep.c (sparc_gdbarch_init): Update.
7531 * sh-tdep.c (sh_gdbarch_init): Update.
7532 * s390-tdep.c (s390_gdbarch_init): Update.
7533 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7534 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7535 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7536 * mips-tdep.c (mips_gdbarch_init): Update.
7537 * mcore-tdep.c (mcore_gdbarch_init): Update.
7538 * m68k-tdep.c (m68k_gdbarch_init): Update.
7539 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7540 * ia64-tdep.c (ia64_gdbarch_init): Update.
7541 * i386-tdep.c (i386_gdbarch_init): Update.
7542 * hppa-tdep.c (hppa_gdbarch_init): Update.
7543 * h8300-tdep.c (h8300_gdbarch_init): Update.
7544 * frv-tdep.c (frv_gdbarch_init): Update.
7545 * cris-tdep.c (cris_gdbarch_init): Update.
7546 * avr-tdep.c (avr_gdbarch_init): Update.
7547 * arm-tdep.c (arm_gdbarch_init): Update.
7548 * alpha-tdep.c (alpha_gdbarch_init): Update.
7549
7550 2003-03-13 Andrew Cagney <cagney@redhat.com>
7551
7552 * frame.c (legacy_frame_p): New function.
7553 (get_prev_frame): Use legacy_frame_p.
7554 * frame.h (legacy_frame_p): Declare.
7555
7556 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7557
7558 * MAINTAINERS (write after approval): Alphabetically
7559 listing corrected.
7560
7561 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7562
7563 * MAINTAINERS (write after approval): Add myself.
7564
7565 2003-03-12 Andrew Cagney <cagney@redhat.com>
7566
7567 * frame.c (get_prev_frame): Rename the frame parameter to
7568 "this_frame".
7569 (get_next_frame, legacy_get_prev_frame): Ditto.
7570
7571 2003-03-12 Andrew Cagney <cagney@redhat.com>
7572
7573 * frame.c (get_current_frame): Check target_has_registers before
7574 checking target_has_stack.
7575 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7576 instead of deprecated_selected_frame.
7577 * findvar.c (value_of_register): Pass "frame", not
7578 deprecated_selected_frame, to value_of_builtin_reg.
7579
7580 2003-03-12 Andrew Cagney <cagney@redhat.com>
7581
7582 * regcache.c (regcache_cooked_write_signed): New function.
7583 (regcache_cooked_write_unsigned): New function.
7584 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7585 (regcache_cooked_read_signed): Fix regnum in range assertion.
7586 * regcache.h (regcache_cooked_write_signed): Declare.
7587 (regcache_cooked_write_unsigned): Declare.
7588
7589 2003-03-12 Andrew Cagney <cagney@redhat.com>
7590
7591 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7592 * gdbarch.h, gdbarch.c: Re-generate.
7593 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7594 * x86-64-tdep.h: Update.
7595 * x86-64-tdep.c (x86_64_init_abi): Update.
7596 * v850-tdep.c (v850_gdbarch_init): Update.
7597 * sparc-tdep.c (sparc_gdbarch_init): Update.
7598 * sh-tdep.c (sh_gdbarch_init): Update.
7599 * s390-tdep.c (s390_gdbarch_init): Update.
7600 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7601 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7602 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7603 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7604 * mips-tdep.c (mips_gdbarch_init): Update.
7605 * mcore-tdep.c (mcore_gdbarch_init): Update.
7606 * m68k-tdep.c (m68k_gdbarch_init): Update.
7607 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7608 * ia64-tdep.c (ia64_gdbarch_init): Update.
7609 * i386-tdep.c (i386_gdbarch_init): Update.
7610 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7611 * hppa-tdep.c (hppa_gdbarch_init): Update.
7612 * h8300-tdep.c (h8300_gdbarch_init): Update.
7613 * frv-tdep.c (frv_gdbarch_init): Update.
7614 * cris-tdep.c (cris_gdbarch_init): Update.
7615 * avr-tdep.c (avr_gdbarch_init): Update.
7616 * arm-tdep.c (arm_gdbarch_init): Update.
7617 * alpha-tdep.c (alpha_gdbarch_init): Update.
7618 * sh-tdep.c (sh_init_extra_frame_info): Update.
7619 (sh64_init_extra_frame_info): Update.
7620 * ns32knbsd-nat.c (frame_num_args): Update.
7621 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7622 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7623 (xstormy16_frame_chain_valid): Update.
7624 * vax-tdep.c (vax_saved_pc_after_call): Update.
7625 * v850-tdep.c (v850_frame_chain): Update.
7626 (v850_pop_frame): Update.
7627 (v850_init_extra_frame_info): Update.
7628 * sparc-tdep.c (setup_arbitrary_frame): Update.
7629 * ns32k-tdep.c (umax_frame_num_args): Update.
7630 * s390-tdep.c (s390_pop_frame_regular): Update.
7631 * mn10300-tdep.c (mn10300_frame_chain): Update.
7632 (mn10300_pop_frame_regular): Update.
7633 (mn10300_init_extra_frame_info): Update.
7634 * mips-tdep.c (mips_init_frame_pc_first): Update.
7635 (mips_frame_chain): Update.
7636 (mips_pop_frame): Update.
7637 * mcore-tdep.c (mcore_frame_chain): Update.
7638 (mcore_pop_frame): Update.
7639 (mcore_init_extra_frame_info): Update.
7640 * arch-utils.c (init_frame_pc_default): Update.
7641 * m68k-tdep.c (isi_frame_num_args): Update.
7642 (delta68_frame_num_args): Update.
7643 (news_frame_num_args): Update.
7644 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7645 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7646 (alpha_frame_chain): Update.
7647 (alpha_pop_frame): Update.
7648 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7649 (hppa_init_extra_frame_info): Update.
7650 (hppa_frame_chain): Update.
7651 (hppa_frame_chain_valid): Update.
7652 * cris-tdep.c (cris_init_extra_frame_info): Update.
7653 * avr-tdep.c (avr_init_extra_frame_info): Update.
7654 * arm-tdep.c (arm_frame_chain_valid): Update.
7655 (arm_init_extra_frame_info): Update.
7656 (arm_pop_frame): Update.
7657 * frame.c (frame_pc_unwind): Update.
7658 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7659 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7660 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7661 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7662 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7663 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7664
7665 2003-03-12 Andrew Cagney <cagney@redhat.com>
7666
7667 Eliminate the need for POP_FRAME.
7668 * frame.c (do_frame_unwind_register): New function.
7669 (frame_pop): When no POP_FRAME, pop the frame using register
7670 unwind and a scratch regcache.
7671 (frame_saved_regs_pop): Delete function.
7672 (trad_frame_unwinder): Update.
7673 * d10v-tdep.c (d10v_frame_pop): Delete function.
7674 (d10v_frame_unwind): Update.
7675 * sentinel-frame.c (sentinel_frame_pop): Delete function.
7676 (sentinel_frame_unwinder): Update.
7677 * dummy-frame.c (dummy_frame_pop): Delete function.
7678 (dummy_frame_unwind): Update.
7679 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7680 (struct frame_unwind): Update.
7681
7682 2003-03-11 Kevin Buettner <kevinb@redhat.com>
7683
7684 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
7685 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
7686 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
7687 Do range checks on register number obtained from debugging info.
7688 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
7689 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
7690 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
7691 mapping function.
7692 (do_fp_register_row): Fix typo which caused double type to be
7693 used when attempting to unpack a float.
7694
7695 2003-03-11 J. Brobecker <brobecker@gnat.com>
7696
7697 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
7698
7699 2003-03-11 Andrew Cagney <cagney@redhat.com>
7700
7701 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
7702 frame. Problem found by Corinna Vinschen.
7703
7704 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
7705
7706 * doublest.c (floatformat_from_length): Accept also
7707 the real size of 'long double' type.
7708
7709 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
7710
7711 From Klee Dienes <kdienes@apple.com>:
7712 * breakpoint.c (bpstat_copy): Copy the command lines as well
7713 as the old value, to match what is freed in bpstat_clear.
7714
7715 2003-03-10 David Carlton <carlton@math.stanford.edu>
7716
7717 * minsyms.c (add_minsym_to_hash_table): Replace
7718 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7719 (compare_minimal_symbols, compact_minimal_symbols)
7720 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
7721 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
7722 of DEPRECATED_SYMBOL_MATCHES_NAME.
7723 (lookup_minimal_symbol_solib_trampoline): Ditto.
7724
7725 2003-03-10 Andrew Cagney <cagney@redhat.com>
7726
7727 * regcache.h (regcache_cooked_read_ftype): Define.
7728 (regcache_save, regcache_restore): Add a cooked_read parameter.
7729 * regcache.c (regcache_save, regcache_restore): Update.
7730 (do_cooked_read): New function.
7731 (regcache_cpy): Pass do_cooked_read to regcache_save and
7732 regcache_restore.
7733
7734 2003-03-10 Andrew Cagney <cagney@redhat.com>
7735
7736 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7737 * gdbarch.h, gdbarch.c: Re-generate.
7738 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7739 * x86-64-tdep.h: Update.
7740 * x86-64-tdep.c (x86_64_init_abi): Update.
7741 * v850-tdep.c (v850_gdbarch_init): Update.
7742 * sparc-tdep.c (sparc_gdbarch_init): Update.
7743 * sh-tdep.c (sh_gdbarch_init): Update.
7744 * s390-tdep.c (s390_gdbarch_init): Update.
7745 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7746 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7747 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7748 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7749 * mips-tdep.c (mips_gdbarch_init): Update.
7750 * mcore-tdep.c (mcore_gdbarch_init): Update.
7751 * m68k-tdep.c (m68k_gdbarch_init): Update.
7752 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7753 * ia64-tdep.c (ia64_gdbarch_init): Update.
7754 * i386-tdep.c (i386_gdbarch_init): Update.
7755 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7756 * hppa-tdep.c (hppa_gdbarch_init): Update.
7757 * h8300-tdep.c (h8300_gdbarch_init): Update.
7758 * frv-tdep.c (frv_gdbarch_init): Update.
7759 * cris-tdep.c (cris_gdbarch_init): Update.
7760 * avr-tdep.c (avr_gdbarch_init): Update.
7761 * arm-tdep.c (arm_gdbarch_init): Update.
7762 * alpha-tdep.c (alpha_gdbarch_init): Update.
7763 * sh-tdep.c (sh_init_extra_frame_info): Update.
7764 (sh64_init_extra_frame_info): Update.
7765 * ns32knbsd-nat.c (frame_num_args): Update.
7766 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7767 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7768 (xstormy16_frame_chain_valid): Update.
7769 * vax-tdep.c (vax_saved_pc_after_call): Update.
7770 * v850-tdep.c (v850_frame_chain): Update.
7771 (v850_pop_frame): Update.
7772 (v850_init_extra_frame_info): Update.
7773 * sparc-tdep.c (setup_arbitrary_frame): Update.
7774 * ns32k-tdep.c (umax_frame_num_args): Update.
7775 * s390-tdep.c (s390_pop_frame_regular): Update.
7776 * mn10300-tdep.c (mn10300_frame_chain): Update.
7777 (mn10300_pop_frame_regular): Update.
7778 (mn10300_init_extra_frame_info): Update.
7779 * mips-tdep.c (mips_init_frame_pc_first): Update.
7780 (mips_frame_chain): Update.
7781 (mips_pop_frame): Update.
7782 * mcore-tdep.c (mcore_frame_chain): Update.
7783 (mcore_pop_frame): Update.
7784 (mcore_init_extra_frame_info): Update.
7785 * arch-utils.c (init_frame_pc_default): Update.
7786 * m68k-tdep.c (isi_frame_num_args): Update.
7787 (delta68_frame_num_args): Update.
7788 (news_frame_num_args): Update.
7789 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7790 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7791 (alpha_frame_chain): Update.
7792 (alpha_pop_frame): Update.
7793 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7794 (hppa_init_extra_frame_info): Update.
7795 (hppa_frame_chain): Update.
7796 (hppa_frame_chain_valid): Update.
7797 * cris-tdep.c (cris_init_extra_frame_info): Update.
7798 * avr-tdep.c (avr_init_extra_frame_info): Update.
7799 * arm-tdep.c (arm_frame_chain_valid): Update.
7800 (arm_init_extra_frame_info): Update.
7801 (arm_pop_frame): Update.
7802 * frame.c (frame_pc_unwind): Update.
7803 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7804 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7805 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7806 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7807 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7808 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7809
7810 2003-03-10 Andrew Cagney <cagney@redhat.com>
7811
7812 * gdbarch.sh (gdbarch_unwind_pc): New method.
7813 * gdbarch.h, gdbarch.c: Regenerate.
7814 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
7815 but use read_pc and FRAME_SAVED_PC as fall backs.
7816 (frame_saved_regs_pc_unwind): Delete function.
7817 (trad_frame_unwinder): Update.
7818 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
7819 (struct frame_unwind): Update.
7820 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
7821 (dummy_frame_unwind): Update.
7822 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
7823 (sentinel_frame_unwinder): Update.
7824 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
7825 (d10v_frame_unwind): Update.
7826 (d10v_unwind_pc): New function.
7827 (d10v_gdbarch_init): Set unwind_pc.
7828
7829 2003-03-10 Andrew Cagney <cagney@redhat.com>
7830
7831 * gdbarch.h: Re-generate.
7832
7833 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
7834 PC.
7835 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
7836 the PC register.
7837
7838 2003-03-08 Mark Kettenis <kettenis@gnu.org>
7839
7840 * gdbarch.sh (save_dummy_frame_tos): Add comment.
7841
7842 2003-03-08 Andrew Cagney <cagney@redhat.com>
7843
7844 * cli-out.c: Update copyright.
7845 (cli_out_data): Define typedef. Use instead of ui_out_data.
7846
7847 2003-03-08 Andrew Cagney <cagney@redhat.com>
7848
7849 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
7850 the result.
7851
7852 2003-03-07 Andrew Cagney <cagney@redhat.com>
7853
7854 * gdbarch.sh: Don't generate two macro definitions when an
7855 undefined macro taking no arguments.
7856 * gdbarch.h: Regenerate.
7857
7858 2002-03-07 Michal Ludvig <mludvig@suse.cz>
7859
7860 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
7861 (x86_64_unwind_dummy_id): New functions.
7862 (x86_64_init_abi): Register these two new functions.
7863
7864 2003-03-07 Michal Ludvig <mludvig@suse.cz>
7865
7866 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
7867 (x86_64_skip_prologue): Move prologue detection to
7868 separate function.
7869 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
7870
7871 2003-03-05 Andrew Cagney <cagney@redhat.com>
7872
7873 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
7874 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
7875 * frame.c (get_prev_frame): Restructure the frame ID unwind code
7876 to use unwind_dummy_id when a dummy frame.
7877 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
7878 predicate.
7879 * gdbarch.h, gdbarch.c: Regneerate.
7880
7881 2003-03-05 Andrew Cagney <cagney@redhat.com>
7882
7883 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
7884 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
7885 Do not use d10v_read_sp or d10v_read_fp when obtaining register
7886 values.
7887
7888 2003-03-05 Andrew Cagney <cagney@redhat.com>
7889
7890 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
7891 (struct d10v_unwind_cache): Delete field "frameless". Replace
7892 "next_addr" with "sp_offset". Add "r11_offset".
7893 (d10v_frame_unwind_cache): Update.
7894 (prologue_find_regs): Update. When "mv r11, sp", save the
7895 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
7896 RN was saved in r11_offset.
7897
7898 2003-03-05 Andrew Cagney <cagney@redhat.com>
7899
7900 * frame.c (deprecated_update_frame_pc_hack): Also update the the
7901 cached PC value in the next frame.
7902
7903 2003-03-05 Andrew Cagney <cagney@redhat.com>
7904
7905 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
7906 "id_unwind_cache" with "id".
7907 (frame_id_unwind): Delete declaration.
7908 * frame.c (frame_id_unwind): Delete function.
7909 (get_prev_frame): Call the frame id unwind method directly. Store
7910 the returned next frame's ID value in NEXT_FRAME. Note that there
7911 is a problem with the wrong unwind ID being called with the wrong
7912 unwind cache.
7913
7914 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
7915
7916 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
7917
7918 2003-03-05 James Ingham <jingham@apple.com>
7919 Daniel Jacobowitz <drow@mvista.com>
7920
7921 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
7922 (auto_cp_abi): New variable.
7923 (current_cp_abi, num_cp_abis): Make static.
7924 (CP_ABI_MAX): Define.
7925 (cp_abis): Turn into an array.
7926 (value_virtual_fn_field): Fix formatting.
7927 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
7928 takes a pointer.
7929 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
7930 (list_cp_abis, _initialize_cp_abi): New functions.
7931 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
7932 declarations for cp_abis, num_cp_abis, current_cp_abi, and
7933 switch_to_cp_abi. Update prototype for register_cp_abi.
7934 * Makefile.in (cp-abi.o): Update dependencies.
7935 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
7936 instead of switch_to_cp_abi.
7937 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
7938 register_cp_abi.
7939 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
7940 register_cp_abi.
7941 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
7942
7943 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
7944
7945 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
7946 * dwarf2loc.c: Include "regcache.h".
7947 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
7948 register_size.
7949 * Makefile.in (dwarf2loc.o): Update dependencies.
7950
7951 2003-03-04 Theodore A. Roth <troth@openavr.org>
7952
7953 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
7954 number of io registers reported by remote target is not a multiple of
7955 step.
7956
7957 2003-03-04 David Carlton <carlton@math.stanford.edu>
7958
7959 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
7960 (lookup_symbol_aux_psymtabs): Update call to
7961 lookup_partial_symbol.
7962 (lookup_transparent_type, find_main_psymtab)
7963 (make_symbol_overload_list): Ditto.
7964
7965 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
7966
7967 * MAINTAINERS (Write after approval): Update my email address.
7968
7969 2003-03-03 Andrew Cagney <cagney@redhat.com>
7970
7971 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
7972 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
7973 predicate. Replace MAX_REGISTER_RAW_SIZE.
7974 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
7975 MAX_REGISTER_VIRTUAL_SIZE.
7976 * regcache.c (legacy_max_register_raw_size): New function.
7977 (legacy_max_register_virtual_size): New function.
7978 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
7979 (MAX_REGISTER_RAW_SIZE): Define.
7980 (legacy_max_register_raw_size): Declare.
7981 (legacy_max_register_virtual_size): Declare.
7982 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7983 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
7984 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7985 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7986 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7987 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7988 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7989 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7990 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7991 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7992 * vax-tdep.c (vax_gdbarch_init): Update.
7993 * v850-tdep.c (v850_gdbarch_init): Update.
7994 * sparc-tdep.c (sparc_gdbarch_init): Update.
7995 * sh-tdep.c (sh_gdbarch_init): Update.
7996 * s390-tdep.c (s390_gdbarch_init): Update.
7997 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7998 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7999 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8000 * mips-tdep.c (mips_gdbarch_init): Update.
8001 * mcore-tdep.c (mcore_gdbarch_init): Update.
8002 * m68k-tdep.c (m68k_gdbarch_init): Update.
8003 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8004 * ia64-tdep.c (ia64_gdbarch_init): Update.
8005 * i386-tdep.c (i386_gdbarch_init): Update.
8006 * hppa-tdep.c (hppa_gdbarch_init): Update.
8007 * h8300-tdep.c (h8300_gdbarch_init): Update.
8008 * frv-tdep.c (frv_gdbarch_init): Update.
8009 * cris-tdep.c (cris_gdbarch_init): Update.
8010 * avr-tdep.c (avr_gdbarch_init): Update.
8011 * arm-tdep.c (arm_gdbarch_init): Update.
8012 * alpha-tdep.c (alpha_gdbarch_init): Update.
8013 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8014 max_register_raw_size or max_register_virtual_size.
8015
8016 2003-03-03 David Carlton <carlton@math.stanford.edu>
8017
8018 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
8019 SYMBOL_MATCHES_NAME, add comment.
8020 (SYMBOL_MATCHES_NATURAL_NAME): New.
8021 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
8022 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
8023 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
8024 * symtab.c (lookup_partial_symbol): Use
8025 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8026 unhelpful comment.
8027 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8028 SYMBOL_MATCHES_NAME.
8029 Fix for PR c++/33.
8030
8031 2003-03-03 David Carlton <carlton@math.stanford.edu>
8032
8033 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8034 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8035 by regexp matching against SYMBOL_NATURAL_NAME.
8036
8037 2003-03-03 David Carlton <carlton@math.stanford.edu>
8038
8039 * linespec.c (find_method): Extract code into collect_methods.
8040 (collect_methods): New.
8041
8042 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8043
8044 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8045 get_frame_base.
8046
8047 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8048 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8049
8050 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8051
8052 * arch-utils.c (generic_register_byte): Fix to use the loop index
8053 and not regnum when summing the size of all registers up to regnum.
8054
8055 2003-03-01 Andrew Cagney <cagney@redhat.com>
8056
8057 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8058 FRAME_INIT_SAVED_REGS.
8059 * gdbarch.h, gdbarch.c: Regenerate.
8060 * stack.c (frame_info): Update.
8061 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8062 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8063 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8064 * ns32k-tdep.c (ns32k_pop_frame): Update.
8065 * mips-tdep.c (mips_pop_frame): Update.
8066 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8067 * ia64-tdep.c (ia64_frame_chain): Update.
8068 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8069 (ia64_frameless_function_invocation): Update.
8070 (ia64_init_extra_frame_info): Update.
8071 (ia64_pop_frame_regular): Update.
8072 * frame.h (struct frame_info): Update comment.
8073 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8074 * frame.c (frame_saved_regs_register_unwind): Update.
8075 (frame_saved_regs_register_unwind): Update.
8076 (deprecated_generic_get_saved_register): Update.
8077 * cris-tdep.c: Update comment.
8078 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8079 Rename macro.
8080 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8081 * x86-64-tdep.c (x86_64_init_abi): Update.
8082 * vax-tdep.c (vax_gdbarch_init): Update.
8083 * v850-tdep.c (v850_gdbarch_init): Update.
8084 * sparc-tdep.c (sparc_gdbarch_init): Update.
8085 * sh-tdep.c (sh_gdbarch_init): Update.
8086 * s390-tdep.c (s390_gdbarch_init): Update.
8087 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8088 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8089 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8090 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8091 * mips-tdep.c (mips_gdbarch_init): Update.
8092 * mcore-tdep.c (mcore_gdbarch_init): Update.
8093 * m68k-tdep.c (m68k_gdbarch_init): Update.
8094 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8095 * ia64-tdep.c (ia64_gdbarch_init): Update.
8096 * i386-tdep.c (i386_gdbarch_init): Update.
8097 * frv-tdep.c (frv_gdbarch_init): Update.
8098 * avr-tdep.c (avr_gdbarch_init): Update.
8099 * arm-tdep.c (arm_gdbarch_init): Update.
8100 * alpha-tdep.c (alpha_gdbarch_init): Update.
8101
8102 2003-03-01 Andrew Cagney <cagney@redhat.com>
8103
8104 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8105 option enum and switch. When no windows, set the interpreter to
8106 INTERP_CONSOLE.
8107
8108 2003-03-01 Andrew Cagney <cagney@redhat.com>
8109
8110 * main.c (captured_main): Replace magic option characters with an
8111 enum.
8112
8113 2003-03-01 Andrew Cagney <cagney@redhat.com>
8114
8115 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8116 INIT_EXTRA_FRAME_INFO.
8117 * gdbarch.h, gdbarch.c: Regenerate.
8118 * arm-tdep.c: Update comments.
8119 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8120 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8121 * frame.h, avr-tdep.c: Ditto.
8122 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8123 (create_new_frame, legacy_get_prev_frame): Ditto.
8124 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8125 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8126 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8127 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8128 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8129 * v850-tdep.c (v850_gdbarch_init): Ditto.
8130 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8131 * sh-tdep.c (sh_gdbarch_init): Ditto.
8132 * s390-tdep.c (s390_gdbarch_init): Ditto.
8133 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8134 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8135 * mips-tdep.c (mips_gdbarch_init): Ditto.
8136 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8137 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8138 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8139 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8140 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8141 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8142 * frv-tdep.c (frv_gdbarch_init): Ditto.
8143 * cris-tdep.c (cris_gdbarch_init): Ditto.
8144 * avr-tdep.c (avr_gdbarch_init): Ditto.
8145 * arm-tdep.c (arm_gdbarch_init): Ditto.
8146 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8147 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8148
8149 2003-03-01 Andrew Cagney <cagney@redhat.com>
8150
8151 * gdbarch.sh (register_type): New function with predicate.
8152 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8153 * gdbarch.h, gdbarch.c: Re-generate.
8154 * arch-utils.c (generic_register_byte): Use generic_register_size.
8155 (generic_register_size): When available, use
8156 gdbarch_register_type.
8157 * regcache.c (init_regcache_descr): When available, initialize the
8158 register type array using gdbarch_register_type. If the
8159 architecture supplies gdbarch_register_type, do not use the legacy
8160 regcache layout.
8161 * d10v-tdep.c (d10v_register_type): Replace
8162 d10v_register_virtual_type.
8163 (d10v_gdbarch_init): Set register_type instead of
8164 register_virtual_type.
8165
8166 2003-03-01 Andrew Cagney <cagney@redhat.com>
8167
8168 * Makefile.in (ax-gdb.o): Update dependencies.
8169 * ax-gdb.c: Include "regcache.h".
8170 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8171 * findvar.c (value_of_register): Ditto.
8172 * infcmd.c (default_print_registers_info): Ditto.
8173
8174 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8175
8176 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8177 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8178
8179 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8180
8181 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8182 of STREQ.
8183
8184 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8185
8186 * Makefile.in (dwarf2loc.o): Update dependencies.
8187 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8188 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8189 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8190 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8191 (locexpr_tracepoint_var_ref): New function.
8192 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8193
8194 2003-02-28 Andrew Cagney <cagney@redhat.com>
8195
8196 * regcache.c (register_size): New function.
8197 * regcache.h (register_size): Declare
8198 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8199 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8200
8201 2003-02-28 David Carlton <carlton@math.stanford.edu>
8202
8203 * linespec.c (decode_compound): Extract code into find_method.
8204 (find_method): New.
8205
8206 2003-02-28 J. Brobecker <brobecker@gnat.com>
8207
8208 * Makefile.in: Add rules to build and link in observer.o.
8209
8210 2003-02-27 J. Brobecker <brobecker@gnat.com>
8211
8212 * observer.c: Minor comments edits.
8213
8214 2003-02-27 J. Brobecker <brobecker@gnat.com>
8215
8216 * observer.h, observer.c: New file.
8217
8218 2003-02-27 Andrew Cagney <cagney@redhat.com>
8219
8220 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8221
8222 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8223
8224 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8225 (M6812_OP_STS_EXT): Likewise.
8226 (m6811_prologue): Use the above to recognize prologue.
8227 (m6812_prologue): Likewise.
8228
8229 2003-02-27 David Carlton <carlton@math.stanford.edu>
8230
8231 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8232 SYMBOL_PRINT_NAME.
8233 (compare_psymbols): Ditto.
8234 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8235
8236 2003-02-27 Michael Snyder <msnyder@redhat.com>
8237
8238 * f-lang.c (build_fortran_types): New function.
8239 (_initialize_f_language): Gdbarch-register built-in fortran types.
8240 * doublest.c (extract_floating): Fix warning text.
8241
8242 2003-02-27 Andrew Cagney <cagney@redhat.com>
8243
8244 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8245 predicate. Replaces PUSH_DUMMY_FRAME.
8246 * gdbarch.h, gdbarch.c: Regnerate.
8247 * valops.c (hand_function_call): Update. Call
8248 generic_push_dummy_frame directly.
8249 * vax-tdep.c (vax_gdbarch_init): Update.
8250 * sparc-tdep.c (sparc_gdbarch_init): Update.
8251 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8252 * m68k-tdep.c (m68k_gdbarch_init): Update.
8253 * hppa-tdep.c (hppa_gdbarch_init): Update.
8254 * alpha-tdep.c (alpha_gdbarch_init): Update.
8255 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8256 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8257 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8258 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8259 push_dummy_frame to generic_push_dummy_frame.
8260 * v850-tdep.c (v850_gdbarch_init): Ditto.
8261 * sh-tdep.c (sh_gdbarch_init): Ditto.
8262 * s390-tdep.c (s390_gdbarch_init): Ditto.
8263 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8264 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8265 * mips-tdep.c (mips_gdbarch_init): Ditto.
8266 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8267 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8268 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8269 * i386-tdep.c (i386_gdbarch_init): Ditto.
8270 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8271 * frv-tdep.c (frv_gdbarch_init): Ditto.
8272 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8273 * cris-tdep.c (cris_gdbarch_init): Ditto.
8274 * avr-tdep.c (avr_gdbarch_init): Ditto.
8275 * arm-tdep.c (arm_gdbarch_init): Ditto.
8276
8277 2003-02-26 Kevin Buettner <kevinb@redhat.com>
8278
8279 * mips-tdep.c (show_mips_abi): New function.
8280 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8281 command ``show mips abi''.
8282
8283 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8284
8285 From Elena Zannoni <ezannoni@redhat.com>
8286 * dbxread.c (process_one_symbol): Only record line 0 if one or
8287 more sline entries have been seen for the function.
8288
8289 2003-02-26 Michael Chastain <mec@shout.net>
8290
8291 * configure: Regenerate with autoconf 000227.
8292
8293 2003-02-26 Michael Chastain <mec@shout.net>
8294
8295 Close PR build/660.
8296 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8297 for old libc5/glibc.
8298 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8299
8300 2003-02-26 Kris Warkentin <kewarken@qnx.com>
8301
8302 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8303 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8304
8305 2003-02-26 Michael Chastain <mec@shout.net>
8306
8307 * configure.in: New variable HAVE_UINTPTR_T.
8308 * configure, config.in: Regenerated.
8309
8310 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
8311
8312 Fix PR build/1097.
8313 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8314
8315 2003-02-25 Andrew Cagney <cagney@redhat.com>
8316
8317 * frame.c (get_prev_frame): Add comment on check for
8318 inside_entry_func. Only check for inside_entry_file when not a
8319 dummy and not a sentinel. Check that the new frame is not inner
8320 to the old frame.
8321
8322 2003-02-25 Andrew Cagney <cagney@redhat.com>
8323
8324 * frame.c (frame_debug): New variable.
8325 (_initialize_frame): Add "set/show debug frame" command.
8326 (get_prev_frame): When frame_debug, print reason why unwind
8327 failed.
8328
8329 2003-02-25 Michael Chastain <mec@shout.net>
8330
8331 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8332 to avoid uintptr_t definition problems.
8333
8334 2003-02-25 David Carlton <carlton@math.stanford.edu>
8335
8336 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8337 (SYMBOL_LINKAGE_NAME): Ditto.
8338 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8339 SYMBOL_LINKAGE_NAME.
8340 (struct general_symbol_info): Expand comment.
8341 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8342 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8343 (SYMBOL_MATCHES_REGEXP): Ditto.
8344 * symtab.c (symbol_natural_name): New function.
8345 * objfiles.h: Replace all uses of SYMBOL_NAME by
8346 DEPRECATED_SYMBOL_NAME.
8347 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8348 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8349 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8350 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8351 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8352 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8353 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8354 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8355 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8356 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8357 * ada-exp.y: Ditto.
8358 * ada-exp.y: Update copyright.
8359 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8360 * cp-valprint.c: Ditto.
8361
8362 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8363
8364 * infptrace.c (detach): Do not flag error if ptrace detach fails
8365 and errno is set to ESRCH.
8366
8367 2003-02-24 Andrew Cagney <cagney@redhat.com>
8368
8369 * infptrace.c (udot_info): Change type of udot_off to long. Use
8370 paddr when printing udot_off's value.
8371
8372 2003-02-24 David Carlton <carlton@math.stanford.edu>
8373
8374 * symtab.c (make_symbol_overload_list): Only read in partial
8375 symtabs containing a matching partial symbol.
8376
8377 2003-02-24 David Carlton <carlton@math.stanford.edu>
8378
8379 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8380 do the comparison, not strcmp.
8381 * symfile.c (compare_psymbols): Ditto.
8382 * defs.h: Declare strcmp_iw_ordered.
8383 * utils.c (strcmp_iw_ordered): New function.
8384
8385 2003-02-24 Jim Blandy <jimb@redhat.com>
8386
8387 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8388 support, shared libs): Remove my name from here, to better reflect
8389 reality.
8390
8391 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8392
8393 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8394 (target_ops): Add to_have_continuable_watchpoint.
8395 * target.c (update_current_target): Add INHERIT line for
8396 to_have_continuable_watchpoint.
8397 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8398 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8399 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8400 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8401
8402 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
8403
8404 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8405 maintainership.
8406
8407 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8408
8409 * solib.c (solib_open): Call target defined search function after
8410 failing with solib-search-path.
8411 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8412 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8413
8414 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8415
8416 * MAINTAINERS: Add myself to Write After section.
8417
8418 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8419
8420 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8421
8422 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8423
8424 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8425 (m68hc11_add_reggroups): New function.
8426 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8427 (m68hc11_gdbarch_init): Install the reggroups.
8428 (_initialize_m68hc11_tdep): Initialize them.
8429
8430 2003-02-21 James E Wilson <wilson@tuliptree.org>
8431
8432 * MAINTAINERS: Update my email address.
8433
8434 2003-02-21 David Carlton <carlton@math.stanford.edu>
8435
8436 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8437
8438 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
8439
8440 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8441 * symtab.h: Add opaque declarations of struct axs_value and
8442 struct agent_expr.
8443 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8444 (struct location_funcs): New type.
8445 (struct symbol): Add "loc" to aux_value.
8446 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8447 * dwarf2read.c: Include "dwarf2expr.h".
8448 (dwarf2_symbol_mark_computed): New function.
8449 (read_func_scope): Use it.
8450 (var_decode_location): New function.
8451 (new_symbol): Use it.
8452 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8453
8454 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8455 (dwarf2expr_h, dwarf2loc_h): New variables.
8456 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8457 (dwarf2expr.o, dwarf2loc.o): New rules.
8458 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8459 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8460 LOC_COMPUTED_ARG.
8461 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8462 * m2-exp.y (yylex): Likewise.
8463 * printcmd.c (address_info, print_frame_args): Likewise.
8464 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8465 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8466 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8467 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8468 * symtab.c (lookup_block_symbol): Likewise.
8469
8470 2003-02-20 Adam Fedor <fedor@gnu.org>
8471
8472 * symtab.h: Remove objc_specific struct
8473 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8474 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8475 Have language_objc use cplus_specific struct.
8476
8477 2003-02-20 Tom Tromey <tromey@redhat.com>
8478
8479 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8480 TYPE_NAME, when printing a String value. PR java/1075.
8481
8482 2003-02-20 Adam Fedor <fedor@gnu.org>
8483
8484 * objc-lang.h (find_methods): Remove declaration.
8485 * objc-lang.c (find_methods): Make static.
8486
8487 2003-02-20 Christopher Faylor <cgf@redhat.com>
8488
8489 * win32-nat.c (get_image_name): Check return value from
8490 ReadProcessMemory.
8491 (child_xfer_memory): Ditto.
8492
8493 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
8494
8495 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8496 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8497 '${exec_prefix}' (in addition to the expansion thereof) as
8498 relocatable.
8499 * configure: Rebuilt.
8500
8501 2003-02-20 David Carlton <carlton@math.stanford.edu>
8502
8503 * symtab.c (search_symbols): Revert the search_symbols part of my
8504 2002-12-23 patch. Add comment.
8505
8506 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8507
8508 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8509 * dbxread.c (elfstab_build_psymtabs): Don't call
8510 install_minimal_symbols.
8511 (stabsect_build_psymtabs): Likewise.
8512 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8513 earlier.
8514 * somread.c (som_symfile_read): Call install_minimal_symbols
8515 and do_cleanups earlier.
8516 * nlmread.c (nlm_symfile_read): Likewise.
8517 * mdebugread.c (elfmdebug_build_psymtabs): Call
8518 install_minimal_symbols and make appropriate cleanups.
8519
8520 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8521
8522 * solib.c (reload_shared_libraries): New function.
8523 (_initialize_solib): Add callbacks for ``set solib-search-path''
8524 and ``set solib-absolute-prefix''.
8525
8526 2003-02-20 David Carlton <carlton@math.stanford.edu>
8527
8528 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8529 expand comment.
8530 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8531 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8532 * ada-typeprint.c (ada_typedef_print): Ditto.
8533 * ax-gdb.c (gen_var_ref): Ditto.
8534 * breakpoint.c (print_one_breakpoint): Ditto.
8535 * buildsym.c (finish_block): Ditto.
8536 * c-valprint.c (c_val_print): Ditto.
8537 * expprint.c (print_subexp): Ditto.
8538 * findvar.c (locate_var_value): Ditto.
8539 * infcmd.c (jump_command): Ditto.
8540 * linespec.c (decode_line_2, decode_compound): Ditto.
8541 * maint.c (maintenance_translate_address): Ditto.
8542 * objc-lang.c (compare_selectors, compare_classes): Ditto.
8543 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8544 Ditto.
8545 * p-valprint.c (pascal_val_print): Ditto.
8546 * stabsread.c (define_symbol): Ditto.
8547 * stack.c (print_frame, frame_info, print_block_frame_locals)
8548 (print_frame_arg_vars, return_command): Ditto.
8549 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8550 * symmisc.c (print_symbol): Ditto.
8551 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8552 (compare_search_syms, print_symbol_info, print_msymbol_info)
8553 (rbreak_command): Ditto.
8554 * tracepoint.c (tracepoints_info): Ditto.
8555 * typeprint.c (typedef_print): Ditto.
8556 * valops.c (value_of_variable, hand_function_call): Ditto.
8557 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8558 * ada-typeprint.c: Update Copyright.
8559 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8560 * tracepoint.c, cli/cli-cmds.c: Ditto.
8561
8562 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8563
8564 * frame.c (generic_unwind_get_saved_register): Make non-static.
8565 * frame.h (generic_unwind_get_saved_register): Declare.
8566 * mips-tdep.c (read_next_frame_reg): Fetch register from
8567 current regcache when frame is NULL.
8568 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8569 that must be NULL.
8570 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8571 instead of frame_register_unwind().
8572
8573 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8574
8575 * remote-sim.c (gdbsim_insert_breakpoint)
8576 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8577 code.
8578
8579 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8580
8581 * remote.c (_initialize_remote): Add commands "set/show remote
8582 hardware-watchpoint-limit" and "set/show remote
8583 hardware-breakpoint-limit".
8584 (remote_hw_watchpoint_limit): Initialize to -1.
8585 (remote_hw_breakpoint_limit): Ditto.
8586 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8587
8588 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8589
8590 * coff-pe-read.c: New file - support reading of minimal symbols from a
8591 portable executable using the export table.
8592 * coff-pe-read.h: New file.
8593 * coffread.c: Include coff-pe-read.h.
8594 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8595 debugging symbols found.
8596 * Makefile.in (SFILES): Add coff-pe-read.o.
8597 (coff_pe_read_h): Define.
8598 (COMMON_OBS): Add coff-pe-read.o.
8599 (coffread.o): Add coff_pe_read_h dependency.
8600 (coff-pe-read.o): New target.
8601
8602 2003-02-19 David Carlton <carlton@math.stanford.edu>
8603
8604 * Makefile.in (SFILES): Add block.c.
8605 (block_h): New.
8606 (COMMON_OBS): Add block.o.
8607 (block.o): New.
8608 (x86-64-tdep.o): Add $(block_h).
8609 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8610 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8611 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8612 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8613 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8614 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8615 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8616 * value.h: Add opaque declaration for struct block.
8617 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8618 * ada-lang.h: Ditto.
8619 * x86-64-tdep.c: #include "block.h"
8620 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8621 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8622 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8623 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8624 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8625 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8626 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8627 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8628 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8629 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8630 * symtab.c (block_function): Ditto.
8631 (contained_in): Ditto.
8632 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8633 block.h. Add opaque declaration for struct block.
8634 * symtab.h: Move block_function and contained_in declarations to
8635 block.h. Add opaque declarations for struct block, struct
8636 blockvector.
8637 (struct block): Move to block.h.
8638 (struct blockvector): Ditto.
8639 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8640 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8641 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8642 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8643 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8644 Ditto.
8645 * block.c: New file.
8646 * block.h: New file.
8647
8648 2003-02-19 Theodore A. Roth <troth@openavr.org>
8649
8650 * avr-tdep.c (avr_extract_return_value): Remove function.
8651 (avr_store_return_value): Remove function.
8652 (avr_extract_struct_value_address): Remove function.
8653 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8654
8655 2003-02-19 Andrew Cagney <ac131313@redhat.com>
8656
8657 * rs6000-tdep.c: Include "gdb_assert.h".
8658 (registers_e500): Add "acc" and "spefscr".
8659 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8660 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8661 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
8662 really is "r0".
8663 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8664
8665 2003-02-18 Keith Seitz <keiths@redhat.com>
8666
8667 * Makefile.in: Add gdbtk-interps.c.
8668
8669 2003-02-18 Kevin Buettner <kevinb@redhat.com>
8670
8671 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8672 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8673
8674 2003-02-18 Andrew Cagney <cagney@redhat.com>
8675
8676 * symtab.h (struct objfile): Add opaque declaration.
8677
8678 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
8679
8680 From Jim Ingham <jingham@apple.com>:
8681 * dbxread.c (process_one_symbol): Use last_function_start rather
8682 than function_start_offset to find the real beginning of the
8683 current function. The latter is just the text section offset on
8684 some systems, the former is always the real function start.
8685
8686 2003-02-17 Andrew Cagney <cagney@redhat.com>
8687
8688 * configure.in: Revert ${target} != ${host}.
8689
8690 2003-02-17 Andrew Cagney <ac131313@redhat.com>
8691
8692 * configure.in (Makefile): Use the test ${target} != ${host},
8693 instead of the absence of the "nm.h" file, to determine of the
8694 configuration non-native.
8695 * configure: Regenerate.
8696
8697 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
8698
8699 From Brian Ford <ford@vss.fsi.com>
8700
8701 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
8702 conditionalize tui_active test.
8703 (lookup_cmd_1): Ditto.
8704
8705 2003-02-14 Mark Kettenis <kettenis@gnu.org>
8706
8707 * configure.in: Add check for _etext.
8708 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
8709 available.
8710 * config.in, configure: regenerated.
8711
8712 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
8713
8714 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
8715
8716 2003-02-14 Andrew Cagney <ac131313@redhat.com>
8717
8718 * main.c (tui_version): Delete variable.
8719 (captured_main): When --tui, set interpreter_p to "tui" instead of
8720 enabling tui_version.
8721 * printcmd.c (display_command) [TUI]: Test tui_active instead of
8722 tui_version.
8723 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
8724 * cli/cli-cmds.c (disassemble_command): Ditto.
8725 * defs.h (tui_version): Delete declaration.
8726 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
8727 (tui-interp.o): Add rules.
8728 (SUBDIR_TUI_OBS): Add "tui-interp.o".
8729
8730 2003-02-14 Christopher Faylor <cgf@redhat.com>
8731
8732 * win32-nat.c (register_loaded_dll): Correctly set address range for
8733 just-loaded dll.
8734
8735 2003-02-12 Jason Molenda (jmolenda@apple.com)
8736
8737 * symmisc.c (print_objfile_statistics): Include information about
8738 the number of psymtabs and symtabs in each object file.
8739
8740 2003-02-13 Keith R Seitz <keiths@redhat.com>
8741
8742 * main.h (struct captured_main_args): Add interpreter_p.
8743 * main.c (captured_main): Initialize interpreter_p from context.
8744 * gdb.c (main): Set interpreter_p argument.
8745 * Makefile.in (gdb.o): Add dependency for interps.h.
8746
8747 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8748
8749 * event-top.c (cli_command_loop): Delete declaration.
8750 (_initialize_event_loop): Delete function setting event_loop_hook.
8751 * event-top.h (cli_command_loop): Declare. Update copyright.
8752 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
8753 * interps.c (current_interp_command_loop): When event_loop_p, call
8754 cli_command_loop.
8755
8756 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8757
8758 * interps.h (interp_command_loop_ftype): Change return type to
8759 void.
8760
8761 2003-02-12 Michal Ludvig <mludvig@suse.cz>
8762
8763 * x86-64-tdep.c (x86_64_extract_return_value)
8764 (x86_64_store_return_value): Use regcache instead of regbuf.
8765 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
8766 * x86-64-linux-nat.c (fill_gregset): Use regcache.
8767
8768 2003-02-11 Andrew Cagney <ac131313@redhat.com>
8769
8770 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
8771 * aclocal.m4: Regenerate.
8772 * configure: Regenerate.
8773
8774 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
8775 TCL_LD_SEARCH_FLAGS.
8776
8777 2003-02-10 Michal Ludvig <mludvig@suse.cz>
8778
8779 * dwarf2cfi.c: Reindented.
8780
8781 2003-02-09 Andrew Cagney <ac131313@redhat.com>
8782
8783 * interps.c (clear_interpreter_hooks): Convert function definition
8784 to ISO C.
8785
8786 2003-02-07 David Carlton <carlton@math.stanford.edu>
8787
8788 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8789
8790 2003-02-07 Kevin Buettner <kevinb@redhat.com>
8791
8792 * gdbtypes.h (struct main_type): Move ``length'' field from here...
8793 (struct type): ...to here.
8794 (TYPE_LENGTH): Adjust to reflect different location of ``length''
8795 field.
8796 * gdbtypes.c (make_qualified_type): Set length on newly created type.
8797 (replace_type): Set length on all type variants for a given type.
8798
8799 2003-02-07 Andrew Cagney <ac131313@redhat.com>
8800
8801 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
8802 <sys/stat.h>.
8803 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8804
8805 2003-02-06 Andrew Cagney <ac131313@redhat.com>
8806
8807 * Makefile.in (symm-nat.o): Update dependencies.
8808 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
8809 (lynx-nat.o, ia64-linux-nat.): Ditto.
8810 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
8811 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
8812 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
8813
8814 * Makefile.in (inflow_h): Define.
8815 (procfs.o, inflow.o, procfs.o): Update dependencies.
8816 * inftarg.c (child_stop): Delete extern declaration of
8817 inferior_process_group. Include "inflow.h".
8818 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
8819 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
8820 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
8821 (our_process_group, inferior_process_group): Extern declarations.
8822
8823 * procfs.c: Include "gdb_assert.h".
8824
8825 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8826 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
8827 * jv-typeprint.c (java_type_print_base): Ditto.
8828 * typeprint.c (typedef_print): Eliminate STREQ.
8829 * cli/cli-script.c (define_command, define_command): Ditto.
8830 * main.c (captured_main): Ditto.
8831 * values.c (lookup_internalvar): Ditto.
8832 * utils.c (safe_strerror, parse_escape): Eliminate assignment
8833 within `if' conditional.
8834 * linespec.c (decode_line_2): Ditto.
8835 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
8836 (bfd_openw_with_cleanup): Ditto.
8837
8838 2003-02-07 Mark Kettenis <kettenis@gnu.org>
8839
8840 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
8841 legacy_extract_return_value and store_return_value to
8842 legacy_return_value.
8843
8844 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
8845
8846 * win32-nat.c (get_relocated_section_addrs): New function. Find
8847 section load addresses for symbol handling in relocated DLLs.
8848 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
8849
8850 2003-02-05 Fred Fish <fnf@intrinsity.com>
8851
8852 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
8853 '=' and '!='.
8854 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
8855 with '&' and '=='.
8856 (angel_RDI_info): Ditto.
8857 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
8858 with '&' and '!='.
8859 (threads_continue_all_with_signals): Ditto.
8860
8861 2003-02-05 Jim Ingham <jingham@apple.com>
8862 Keith Seitz <keiths@redhat.com>
8863 Elena Zannoni <ezannoni@redhat.com>
8864 Andrew Cagney <ac131313@redhat.com>
8865
8866 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
8867 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
8868 (SUBDIR_MI_OBS): Add "mi-interp.o".
8869 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
8870 (SFILES): Add "interps.c".
8871 (COMMON_OBS): Add "interps.o".
8872 (interps_h, mi_main_h): Define.
8873 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
8874 (mi-main.o, main.o, event-top.o): Update dependencies.
8875 * cli/cli-interp.c: New file.
8876 * interps.h, interps.c: New files.
8877 * top.c: (gdb_init): Don't install the default interpreter, handed
8878 by captured_main.
8879 * main.c: Include "interps.h".
8880 (interpreter_p): Note that it should malloc'ed.
8881 (captured_command_loop): Call current_interp_command_loop.
8882 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
8883 xfree and xstrdup when updating interpreter_p. Install the
8884 default interpreter. Add hack to stop mi1's copyright notice
8885 being encoded.
8886 * event-top.h (gdb_setup_readline): Declare.
8887 (gdb_disable_readline): Declare.
8888 * event-top.c: Include "interps.h".
8889 (display_gdb_prompt): Call current_interp_display_prompt_p.
8890 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
8891 gdb_stdlog, and gdb_stdtarg.
8892 (_initialize_event_loop): Don't call gdb_setup_readline.
8893 * cli-out.c (cli_out_set_stream): New function.
8894 * cli-out.h (cli_out_set_stream): Declare.
8895
8896 2003-02-06 Mark Kettenis <kettenis@gnu.org>
8897
8898 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
8899 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
8900 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
8901 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
8902 config/i386/i386v42mp.mt: Removed.
8903
8904 2003-02-05 Mark Kettenis <kettenis@gnu.org>
8905
8906 * configure.tgt (*-*-solaris*): Set gdb_osabi to
8907 GDB_OSABI_SOLARIS.
8908
8909 2003-02-05 Michael Chastain <mec@shout.net>
8910
8911 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
8912 2.12.1 and earlier versions.
8913
8914 2003-02-05 Andrew Cagney <ac131313@redhat.com>
8915
8916 Remove orphaned hosts, targets and files.
8917 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
8918 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
8919 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
8920 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
8921 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
8922 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
8923 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
8924 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
8925 * config/sparc/tm-sp64sim.h: Delete.
8926 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
8927 hosts.
8928 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
8929 mips*-dec-mach3* targets.
8930
8931 2003-02-04 Michael Chastain <mec@shout.net>
8932
8933 * NEWS: Fix typo: sepcifying -> specifying.
8934
8935 2003-02-04 Michael Chastain <mec@shout.net>
8936
8937 * dwarfread.c: Add documentation on the state of dwarf-1,
8938 looking towards obsoletion.
8939
8940 2003-02-03 Michael Chastain <mec@shout.net>
8941
8942 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
8943 gdb/testsuite/gdb.c++/pr-1023.exp.
8944
8945 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8946
8947 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
8948 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
8949
8950 * utils.c (init_page_info): Delete reference to MPW in comments.
8951 * main.c (captured_main): Delete #ifdef MPW.
8952
8953 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8954
8955 * NEWS: Note that the m32r-*-elf* is obsolete.
8956 * monitor.c (monitor_expect): Obsolete reference to m32r.
8957 * configure.tgt: Mark m32r-*-elf* as obsolete.
8958 * MAINTAINERS: Mark m32k as obsolete.
8959 * m32r-rom.c: Obsolete file.
8960 * config/m32r/m32r.mt: Obsolete file.
8961 * config/m32r/tm-m32r.h: Obsolete file.
8962 * m32r-stub.c: Obsolete file.
8963 * m32r-tdep.c: Obsolete file.
8964
8965 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8966
8967 * NEWS: Mention that the z8k-zilog-none is obsolete.
8968 * MAINTAINERS: Mark z8k as obsolete.
8969 * configure.tgt: Obsolete the z8k-*-coff* target.
8970 * config/z8k/z8k.mt: Obsolete file.
8971 * config/z8k/tm-z8k.h: Obsolete file.
8972 * z8k-tdep.c: Obsolete file.
8973
8974 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8975
8976 * NEWS: Mention that the mn10200-elf is obsolete.
8977 * configure.tgt: Obsolete mn10200-*-* target.
8978 * breakpoint.c (update_breakpoints_after_exec): Update comment to
8979 mention that the mn10200 is obsolete.
8980 * breakpoint.h: Ditto.
8981 * MAINTAINERS: Mark the mn10200-elf as obsolete.
8982 * config/mn10200/mn10200.mt: Obsolete file.
8983 * config/mn10200/tm-mn10200.h: Obsolete file.
8984 * mn10200-tdep.c: Obsolete file.
8985
8986 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8987
8988 * MAINTAINERS: Mark h8500 as obsolete.
8989 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
8990 * findvar.c (value_from_register): Ditto.
8991 * h8500-tdep.c: Mark file as obsolete.
8992 * config/h8500/h8500.mt: Ditto.
8993 * config/h8500/tm-h8500.h: Ditto.
8994 * NEWS: Mention that h8500 is obsolete.
8995
8996 2003-02-04 David Carlton <carlton@math.stanford.edu>
8997
8998 * objfiles.c (allocate_objfile): Always set name. Add comment at
8999 start of function.
9000 * jv-lang.c (get_dynamics_objfile): Add comment.
9001
9002 2003-02-04 David Carlton <carlton@math.stanford.edu>
9003
9004 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9005 * printcmd.c (build_address_symbolic): Replace uses of
9006 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9007 SYMBOL_NAME, and asm_demangle.
9008 Update copyright.
9009
9010 2003-02-04 David Carlton <carlton@math.stanford.edu>
9011
9012 * linespec.c (decode_compound): Extract code into
9013 lookup_prefix_sym.
9014 (lookup_prefix_sym): New function.
9015
9016 2003-02-04 David Carlton <carlton@math.stanford.edu>
9017
9018 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
9019 FLOAT_COERCION_BADNESS.
9020 * gdbtypes.c (rank_one_type): Replace all uses of
9021 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
9022
9023 2003-02-04 Jim Blandy <jimb@redhat.com>
9024
9025 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9026 section, let dwarf_macinfo_section point to it, not
9027 dwarf_loc_section.
9028
9029 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9030
9031 Pointed out by Anton Blanchard <anton@samba.org>.
9032 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9033 (ppc_linux_at_sigtramp_return_path): Use it.
9034
9035 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9036
9037 * defs.h (streq): Add prototype.
9038 * utils.c (streq): New function.
9039
9040 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9041 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9042 * mdebugread.c (new_symbol): Likewise.
9043 * stabsread.c (define_symbol): Likewise.
9044 * coffread.c (process_coff_symbol): Likewise.
9045 * dwarfread.c (new_symbol): Likewise.
9046
9047 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9048 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9049 here.
9050 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9051 SYMBOL_INIT_DEMANGLED_NAME.
9052 * objfiles.c: Include "hashtab.h".
9053 (allocate_objfile): Call htab_set_functions_ex for the
9054 demangled_names_hash.
9055 (free_objfile): Call htab_delete for the demangled_names_hash.
9056 * objfiles.h (struct htab): Add declaration.
9057 (struct objfile): Add demangled_names_hash.
9058 * symfile.c: Include "hashtab.h".
9059 (reread_symbols): Call htab_delete for the demangled_names_hash.
9060 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9061 SYMBOL_NAME in the bcache.
9062 * symtab.c: Include "hashtab.h". Update comments.
9063 (create_demangled_names_hash, symbol_set_names): New functions.
9064 (symbol_find_demangled_name): New function, broken out from
9065 symbol_init_demangled_names.
9066 (symbol_init_demangled_names): Use it.
9067 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9068 (SYMBOL_SET_NAMES): New macro.
9069 (symbol_set_names): Add prototype.
9070
9071 2003-02-03 Jim Blandy <jimb@redhat.com>
9072
9073 Use a single, consistent representation for an empty minimal
9074 symbol table in an objfile.
9075 * objfiles.c (terminate_minimal_symbol_table): New function.
9076 (allocate_objfile): Call it.
9077 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9078 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9079 non-NULL.
9080 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9081 objfile has minimal symbols, compare minimal_symbol_count to zero,
9082 instead of comparing msymbols with NULL.
9083 * objfiles.c (have_minimal_symbols): Same.
9084 * solib-sunos.c (solib_add_common_symbols): Call
9085 terminate_minimal_symbol_table.
9086 * symfile.c (reread_symbols): Same.
9087
9088 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9089
9090 * s390-tdep.c (s390_address_class_type_flags)
9091 (s390_address_class_type_flags_to_name)
9092 (s390_address_class_name_to_type_flags): New functions.
9093 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9094 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9095
9096 2003-02-03 Michael Snyder <msnyder@redhat.com>
9097
9098 * arm-tdep.c: Fix spell-o in comment.
9099
9100 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9101
9102 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9103 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9104 error messages to contain BFD filename.
9105
9106 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9107
9108 Fix PR gdb/742 gdb/743 gdb/877
9109 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9110 (do_mixed_source_and_assembly): Use
9111 make_cleanup_ui_out_tuple_begin_end and
9112 make_cleanup_ui_out_tuple_begin_end.
9113 (do_mixed_source_and_assembly): Ditto.
9114 * thread.c (do_captured_list_thread_ids): Ditto.
9115 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9116 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9117 ui_out_tuple_end): Delete prototypes.
9118 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9119 ui_out_list_end, ui_out_tuple_end): Delete.
9120
9121 From Kevin Buettner <kevinb@redhat.com>:
9122 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9123 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9124 (do_cleanup_table_end): New functions.
9125 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9126 Use cleanups to invoke_ui_out_tuple_end().
9127 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9128 * cli/cli-setshow.c (cmd_show_list): Use
9129 make_cleanup_ui_out_tuple_begin_end.
9130
9131 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9132
9133 * frame.c (frame_unwind_register): New function.
9134 (frame_unwind_unsigned_register): Use.
9135 (frame_unwind_signed_register): Use.
9136 (frame_read_register): New function.
9137 * frame.h (frame_unwind_register): Declare.
9138 (frame_read_register): Declare.
9139
9140 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9141 and frame_unwind_register instead of read_memory, write_register
9142 and deprecated_write_register_bytes.
9143
9144 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9145
9146 * frame.h: Note that namelen can be negative.
9147 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9148 NAME's length.
9149
9150 * NEWS: Mention that the d10v's `regs' command is deprecated.
9151 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9152 (d10v_print_registers_info): New function.
9153 (show_regs): Call d10v_print_registers_info.
9154 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9155
9156 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9157
9158 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9159 lost in the previous patch.
9160
9161 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9162
9163 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9164 * stack.c (print_frame_info_base): Output complete FRAME tuple
9165 for synthesized frames.
9166
9167 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9168
9169 * mips-nat.c (zerobuf): Delete.
9170 (fetch_inferior_registers): Alloc local zerobuf.
9171 (fetch_core_registers): Alloc local zerobuf.
9172 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9173 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9174 * thread-db.c (thread_db_store_registers): Ditto.
9175 * sh-tdep.c (sh_do_register): Ditto.
9176 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9177 * remote-sim.c (gdbsim_store_register): Ditto.
9178 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9179 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9180 * monitor.c (monitor_supply_register): Ditto.
9181 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9182 * mips-nat.c (fetch_inferior_registers): Ditto.
9183 * m68klinux-nat.c (fetch_register): Ditto.
9184 * lynx-nat.c (fetch_inferior_registers): Ditto.
9185 (fetch_inferior_registers): Ditto.
9186 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9187 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9188 (hpux_thread_store_registers): Ditto.
9189 * hppah-nat.c (fetch_register): Ditto.
9190 * hppab-nat.c (fetch_register): Ditto.
9191 * hppa-tdep.c (pa_register_look_aside): Ditto.
9192 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9193 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9194
9195 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9196
9197 * gdbarch.sh: Explictly specify all method levels. When a
9198 variable with an empty level, provide a non-multi-arch default.
9199 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9200 * gdbarch.h: Re-generate.
9201 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9202 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9203
9204 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9205
9206 * defs.h (host_pointer_to_address): Delete declaration.
9207 (address_to_host_pointer): Delete declaration.
9208 * utils.c (host_pointer_to_address): Delete function.
9209 (address_to_host_pointer): Delete function.
9210 * procfs.c (procfs_address_to_host_pointer): New function.
9211 * procfs.c (proc_set_watchpoint): Use.
9212 (procfs_can_use_hw_breakpoint): Update comments.
9213 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9214 (som_solib_add): Use.
9215 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9216 * hppa-tdep.c (unwind_command): Use.
9217
9218 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9219
9220 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9221 strlen d_name.
9222
9223 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9224 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9225 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9226 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9227 (define_symbol): Update.
9228 * symfile.c (generic_load): Remove references to nindy.
9229 * symtab.c: Remove references to nindy.
9230
9231 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9232
9233 * infcmd.c (print_float_info): Delete code conditional on
9234 FLOAT_INFO.
9235 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9236 * config/m68k/nm-apollo68b.h: Ditto.
9237 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9238 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9239 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9240
9241 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9242
9243 * config/i386/tm-i386os9k.h: Removed.
9244
9245 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9246 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9247 they're identical to i[3456]86-*-sysv* now.
9248 * config/i386/i386v32.mh: Removed.
9249 * config/i386/xm-i386v32.h: Removed.
9250 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9251
9252 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9253
9254 * config/i386/i386dgux.mh: Removed.
9255 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9256
9257 * configure.in: Fix typo.
9258 * configure: Regenerated.
9259
9260 2003-01-31 David Carlton <carlton@math.stanford.edu>
9261
9262 * dwarf2read.c (dwarf2_locate_sections): Set
9263 dwarf_ranges_section.
9264
9265 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9266
9267 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9268 * utils.c: Update comments documenting legitimate uses of PTR.
9269
9270 * utils.c: Re-indent.
9271
9272 * config/djgpp/fnchange.lst: Delete nindy files.
9273 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9274 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9275 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9276 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9277 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9278 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9279 * Makefile.in (init.c): Remove nindy references.
9280 (saber_gdb): Delete rule.
9281 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9282 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9283 and a68v-nat.c.
9284 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9285 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9286 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9287 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9288 nindy-share/stop.h.
9289 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9290 * saber.suppress: Delete file.
9291
9292 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
9293
9294 * dbxread.c (stabs_data): New static variable.
9295 (fill_symbuf): Support an in-memory buffer for stabs data.
9296 (stabs_seek): New function.
9297 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9298 (read_ofile_symtab): Use stabs_seek.
9299 (elfstab_build_psymtabs): Take an asection* instead of
9300 an offset and size. Relocate the stabs data if necessary.
9301 Save the section* for dbx_psymtab_to_symtab.
9302 * dwarf2read.c: Add section variables for each debug section.
9303 (dwarf2_locate_sections): Fill them in.
9304 (dwarf2_read_section): Take an asection* argument.
9305 Relocate the section contents if necessary.
9306 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9307 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9308 it to dwarf2_read_section.
9309 (dwarf2_build_frame_info): Update callers.
9310 * elfread.c (elf_symfile_read): Update call to
9311 elfstab_build_psymtabs.
9312 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9313 (DBX_STAB_SECTION): New macro.
9314 * stabsread.h (elfstab_build_psymtabs): Update prototype.
9315 * symfile.c (symfile_dummy_outputs): New function.
9316 (symfile_relocate_debug_section): New function.
9317 * symfile.h (symfile_relocate_debug_section): Add prototype.
9318
9319 2003-01-31 Richard Henderson <rth@redhat.com>
9320
9321 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9322 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9323 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9324 * alpha-tdep.c (alpha_register_name): Add "unique".
9325 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9326 (ALPHA_UNIQUE_REGNUM): New.
9327 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9328
9329 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9330
9331 * README: Remove reference to Ericsson 1800 monitor.
9332 * Makefile.in (remote-es.o): Delete rule.
9333 (ALLDEPFILES): Delete remote-es.c.
9334 * remote-es.c: Delete file.
9335 * config/m68k/es1800.mt: Delete file.
9336 * config/djgpp/fnchange.lst: Update.
9337 * configure.tgt: Delete m68*-ericsson-* target.
9338
9339 2003-01-31 Adam Fedor <fedor@gnu.org>
9340
9341 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9342 Remove duplicate/shadowing variable of same name.
9343
9344 2003-01-30 Jim Blandy <jimb@redhat.com>
9345
9346 * symfile.c (find_separate_debug_file): Assert that the objfile's
9347 directory name we compute ends with a slash, and then assume that
9348 that's so everywhere we use it.
9349
9350 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
9351
9352 * valops.c (value_assign): Flush frame cache after stores to memory
9353 also.
9354
9355 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9356
9357 * Makefile.in (mon960-rom.o): Delete rule.
9358 * mon960-rom.c: Delete file.
9359
9360 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9361
9362 * d10v-tdep.c: Include "frame-unwind.h".
9363 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9364 list.
9365 (next_addr, uses_frame): Delete.
9366 (struct d10v_unwind_cache): Define.
9367 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9368 Use info instead of next_addr and uses_frame globals.
9369 (d10v_frame_init_saved_regs): Delete function.
9370 (d10v_init_extra_frame_info): Delete function.
9371 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9372 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9373 init_frame_pc or frame_saved_pc.
9374 (d10v_pop_frame): Delete function.
9375 (do_d10v_pop_frame): Delete function.
9376 (d10v_frame_chain): Delete function.
9377 (d10v_frame_chain_valid): Delete function.
9378 (d10v_frame_pc_unwind): New function.
9379 (d10v_frame_id_unwind): New function.
9380 (saved_regs_unwinder): New function.
9381 (d10v_frame_register_unwind): New function.
9382 (d10v_frame_pop): New function.
9383 (d10v_frame_unwind): New variable.
9384 (d10v_frame_p): New function.
9385 (d10v_frame_saved_pc): Delete function.
9386 * Makefile.in (d10v-tdep.o): Update dependencies.
9387
9388 2003-01-30 J. Brobecker <brobecker@gnat.com>
9389
9390 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9391 causing some regressions due to a change in the default value
9392 for this macro.
9393
9394 2003-01-29 Richard Henderson <rth@redhat.com>
9395 Elena Zannoni <ezannoni@redhat.com>
9396 Daniel Jacobowitz <drow@mvista.com>
9397
9398 Fix PR gdb/961.
9399 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
9400 variables.
9401 (RANGES_SECTION): New.
9402 (dwarf_ranges_buffer): New variable.
9403 (struct comp_unit_head): Add member "die".
9404 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9405 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9406 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9407 (dwarf2_locate_sections): Likewise.
9408 (dwarf2_build_psymtabs): Read .debug_ranges.
9409 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9410 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9411 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9412 Look for DW_AT_ranges and return the bounding box.
9413
9414 2003-01-29 Brian Ford <ford@vss.fsi.com>
9415
9416 * win32-nat.c (cygwin_pid): Removed as unused.
9417 (child_attach): Try fall back to Cygwin pid.
9418
9419 2003-01-29 Jim Blandy <jimb@redhat.com>
9420
9421 * objfiles.h (struct objfile): Doc fix.
9422
9423 2003-01-29 Andrew Cagney <ac131313@redhat.com>
9424
9425 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9426 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9427 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9428 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9429 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9430 (FRAME_SAVED_PC): Change to a function with predicate.
9431 * gdbarch.h, gdbarch.c: Re-generate.
9432
9433 2003-01-28 Andrew Cagney <ac131313@redhat.com>
9434
9435 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9436
9437 * complaints.c (complain): Delete function.
9438 * complaints.h (struct deprecated_complaint): Delete definition.
9439 (complain): Delete declaration.
9440
9441 2003-01-28 Kevin Buettner <kevinb@redhat.com>
9442
9443 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9444 dummy frames.
9445
9446 2003-01-27 Andrew Cagney <ac131313@redhat.com>
9447
9448 * sentinel-frame.h, sentinel-frame.c: New files.
9449 * Makefile.in (frame.o): Update dependencies.
9450 (SFILES): Add sentinel-frame.c.
9451 (sentinel_frame_h): Define.
9452 (COMMON_OBS): Add sentinel-frame.o.
9453 (sentinel-frame.o): Specify dependencies.
9454 * frame.c: Include "sentinel-frame.h".
9455 (frame_register_unwind): Rewrite assuming that there is always a a
9456 ->next frame.
9457 (frame_register, generic_unwind_get_saved_register): Ditto.
9458 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9459 (create_sentinel_frame, unwind_to_current_frame): New functions.
9460 (get_current_frame): Rewrite using create_sentinel_frame and
9461 unwind_to_current_frame. When possible, always create a frame.
9462 (create_new_frame): Set next to the sentinel frame.
9463 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9464 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9465 ID cache when necessary.
9466 (frame_saved_regs_id_unwind): Use frame_relative_level.
9467 (deprecated_generic_get_saved_register): Use frame_relative_level,
9468 get_frame_saved_regs, get_frame_pc, get_frame_base and
9469 get_next_frame.
9470 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9471 frame_register.
9472
9473 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9474
9475 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9476
9477 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9478
9479 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9480 (maintenance_set_profile_cmd): Use error () instead of warning ().
9481
9482 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9483
9484 * configure.in: Check that -pg works if using --enable-profiling.
9485 Check for monstartup and _mcleanup regardless of --enable-profiling.
9486 * maint.c: Check for monstartup and _mcleanup before using them.
9487 * config.in: Regenerated.
9488 * configure: Regenerated.
9489
9490 2003-01-24 Nick Clifton <nickc@redhat.com>
9491
9492 * Add sh2e support:
9493
9494 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9495
9496 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9497 (sh2e_show_regs): New.
9498 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9499 * config/sh/tm-sh.h: Added sh2e to comments.
9500
9501 2003-01-23 Jim Blandy <jimb@redhat.com>
9502
9503 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9504 symbols found)" message here; we haven't checked for a separate
9505 debug info file yet, so we don't know yet.
9506 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9507 we've looked everywhere. Also, there's no need to print a special
9508 message when we're loading the separate debug info file: the one
9509 symbol_file_add prints is fine.
9510
9511 2003-01-23 Alexander Larsson <alexl@redhat.com>
9512 Jim Blandy <jimb@redhat.com>
9513
9514 Add support for executables whose debug info has been separated
9515 out into a separate file, leaving only a link behind.
9516 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9517 and separate_debug_objfile_backlink.
9518 (put_objfile_before): New declaration.
9519 * symfile.c: #include "filenames.h".
9520 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9521 debug info in a separate file, read that, too. Save the addrs
9522 argument, so we can use it again to read the separated debug info;
9523 syms_from_objfile modifies the table we pass it.
9524 (reread_symbols): After re-reading an objfile, call
9525 reread_separate_symbols to refresh its separate debug info
9526 objfile, if it has one.
9527 (reread_separate_symbols, find_separate_debug_file,
9528 get_debug_link_info, separate_debug_file_exists): New functions.
9529 (debug_file_directory): New global var.
9530 (_initialize_symfile): Initialize debug_file_directory, and
9531 provide the new `set debug-file-directory' command to let the user
9532 change it.
9533 * objfiles.c (free_objfile): If this objfile has its debug info in
9534 a separate objfile, free that one too. If this is itself a
9535 separate debug info objfile, clear our parent's backlink.
9536 (put_objfile_before): New function.
9537 * utils.c (gnu_debuglink_crc32): New function.
9538 * defs.h (gnu_debuglink_crc32): New declaration.
9539 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9540 * configure.in: Handle --with-separate-debug-dir config option.
9541 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9542 * acconfig.h (DEBUGDIR): New macro.
9543 * configure, aclocal.m4, config.in: Regenerated.
9544
9545 2003-01-22 Jim Blandy <jimb@redhat.com>
9546
9547 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9548 like the old symbol_file_add, but taking new arguments: you can
9549 now pass in either a `struct section_addr_info' list to say where
9550 each section is loaded, or a `struct section_offsets' table. Pass
9551 these new arguments through to syms_from_objfile as appropriate.
9552 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9553 with the appropriate quiescent values for the new arguments.
9554
9555 * symfile.c: #include "gdb_assert.h".
9556 (syms_from_objfile): Add the ability to pass in a section offset
9557 table directly, as an alternative to the section_addr_info table.
9558 Document arguments better.
9559 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9560 * symfile.h (syms_from_objfile): Update declaration.
9561 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9562 syms_from_objfile.
9563 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9564
9565 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
9566
9567 Original patch by Tom Tromey <tromey@cygnus.com> and
9568 Jason Molenda <jmolenda@apple.com>.
9569 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9570 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9571 * NEWS: Mention profiling.
9572 * configure.in (--enable-gdbtk): Fix typo.
9573 (--enable-profiling): New. Set PROFILE_CFLAGS.
9574 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9575 Fill in function.
9576 (profiling_state): New variable.
9577 (mcleanup_wrapper): New function.
9578 (_initialize_maint): Remove NOTYET, fix call to
9579 add_setshow_boolean_cmd for "maint set profile".
9580 * configure: Regenerated.
9581
9582 2003-01-21 Martin M. Hunt <hunt@redhat.com>
9583
9584 * Makefile.in (install-gdbtk): Install PNG images too.
9585
9586 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9587
9588 * exec.c (text_start): Delete global variable.
9589 (exec_file_attach): Make text_start local to the function.
9590 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9591 * valops.c (hand_function_call): Delete code that handles
9592 BEFORE_TEXT_END and AFTER_TEXT_END.
9593 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9594 of CALL_DUMMY_LOCATION.
9595 * gdbarch.c: Regenerate.
9596 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9597 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9598 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9599 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9600 (text_end): Delete extern declaration.
9601
9602 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9603
9604 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9605 * blockframe.c (backtrace_below_main): Move to "frame.c".
9606 (frame_chain_valid): Delete check for backtrace_below_main.
9607 (_initialize_blockframe): Delete initialization, move ``set
9608 backtrace-below-main'' command to "frame.c".
9609 (do_flush_frames_sfunc): Delete function.
9610 * frame.c: Include "command.h" and "gdbcmd.h".
9611 (frame_type_from_pc): New function.
9612 (create_new_frame): Use frame_type_from_pc.
9613 (legacy_get_prev_frame): New function.
9614 (get_prev_frame): Rewrite. When an old style frame, call
9615 legacy_get_prev_frame. Otherwize, unwind the PC first.
9616 (_initialize_frame): Add ``set backtrace-below-main'' command.
9617 * Makefile.in (frame.o): Update dependencies.
9618
9619 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9620
9621 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9622 DEPRECATED_REGISTERS_INFO.
9623
9624 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9625
9626 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9627 Maintainers'. Update `Various Maintainers'.
9628
9629 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9630
9631 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9632 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9633 Suppress actual parameters when `-'.
9634 * gdbarch.h, gdbarch.c: Regenerate.
9635
9636 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9637
9638 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9639 code handling dummy frames.
9640
9641 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9642
9643 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9644 (struct frame_unwind): Add field pop.
9645 * frame.h (frame_pop): Declare.
9646 * frame.c (frame_saved_regs_pop): New function.
9647 (trad_frame_unwinder): Add frame_saved_regs_pop.
9648 (frame_pop): New function.
9649 * dummy-frame.c (dummy_frame_pop): New function.
9650 (discard_innermost_dummy): New function.
9651 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9652 (dummy_frame_unwind): Add dummy_frame_pop.
9653 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9654 * valops.c (hand_function_call): Ditto.
9655 * stack.c (return_command): Ditto.
9656
9657 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9658
9659 * cris-tdep.c: Fix function declaration indentation.
9660 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9661 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9662 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9663 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9664 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9665 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9666
9667 2003-01-18 Michael Chastain <mec@shout.net>
9668
9669 * README (Unpacking and Installation -- quick overview):
9670 Warn against ".../gdb-5.3/gdb/configure".
9671
9672 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9673
9674 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9675 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9676 (struct frame_unwind): Declare opaque.
9677 (dummy_frame_p): Declare function.
9678 * dummy-frame.c (dummy_frame_id_unwind): Make static.
9679 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9680 * dummy-frame.c: Include "frame-unwind.h".
9681 (dummy_frame_p): New function.
9682 (dummy_frame_unwind): New variable.
9683 * frame.c: Include "frame-unwind.h".
9684 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
9685 to use the new unwind field.
9686 (set_unwind_by_pc): Delete function.
9687 (create_new_frame, get_prev_frame): Set unwind field using
9688 frame_unwind_find_by_pc.
9689 (trad_frame_unwind, trad_frame_unwinder): New variables.
9690 * frame.h (trad_frame_unwind): Declare variable.
9691 (frame_id_unwind_ftype): Delete declaration.
9692 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
9693 (struct frame_unwind): Declare opaque.
9694 (struct frame_info): Replace the fields id_unwind, pc_unwind and
9695 register_unwind with a single unwind pointer.
9696 * frame-unwind.h, frame-unwind.c: New files.
9697 * Makefile.in (SFILES): Add frame-unwind.c.
9698 (frame_unwind_h): Define.
9699 (COMMON_OBS): Add frame-unwind.o.
9700 (frame-unwind.o): Specify dependencies.
9701 (frame.o, dummy-frame.o): Update dependencies.
9702
9703 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9704
9705 * ada-valprint.c: Eliminate PTR.
9706 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
9707 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
9708 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
9709 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
9710 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
9711 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
9712 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
9713
9714 2003-01-17 Andrew Cagney <ac131313@redhat.com>
9715
9716 * main.c (captured_main): Don't use PTR.
9717 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
9718 * gdbtypes.c (lookup_primitive_typename): Ditto.
9719 (lookup_struct_elt_type): Ditto.
9720 * f-valprint.c (info_common_command): Ditto.
9721 (list_all_visible_commons): Ditto.
9722 * jv-typeprint.c (java_type_print_base): Ditto.
9723
9724 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
9725 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
9726 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
9727 i386-interix-nat.c and i386-interix-tdep.c. Rename
9728 m68klinux-nat.c and m68klinux-tdep.c. Rename
9729 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
9730 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
9731 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
9732 * main.c (captured_main): Use xfree, not free.
9733
9734 2003-01-16 Andrew Cagney <ac131313@redhat.com>
9735
9736 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
9737 ID back using a parameter.
9738 * frame.c (frame_id_unwind): Update call.
9739 (frame_saved_regs_id_unwind): Update.
9740 * dummy-frame.c (dummy_frame_id_unwind): Update function.
9741 * dummy-frame.h (struct frame_id): Add opaque declaration.
9742 (dummy_frame_id_unwind): Update declaration.
9743
9744 2003-01-15 Andrew Cagney <ac131313@redhat.com>
9745
9746 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
9747
9748 2003-01-15 Stephen P. Smith <ischis2@cox.net>
9749
9750 * MAINTAINERS (Stephen P. Smith): Updated email address.
9751
9752 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
9753
9754 Fix PR gdb/898
9755 * breakpoint.c (until_break_command): Add new argument. Use it to
9756 decide whether to stop only at the current frame or not.
9757 * breakpoint.h (until_break_command): Update prototype.
9758 * infcmd.c (until_command): Add new argument to until_break_command
9759 call.
9760 (advance_command): New function.
9761 (_initialize_infcmd): Update help string for 'until' command.
9762 Add new 'advance' command.
9763
9764 2003-01-14 David Carlton <carlton@math.stanford.edu>
9765
9766 * linespec.c (decode_line_1): Normalize comments.
9767 (set_flags): Ditto.
9768 (locate_first_half): Ditto.
9769 (decode_compound): Ditto.
9770 (symtab_from_filename): Ditto.
9771 (decode_all_digits): Ditto.
9772 (decode_dollar): Ditto.
9773 (find_methods): Ditto.
9774 (find_toplevel_char): Ditto.
9775
9776 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9777
9778 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
9779 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
9780 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
9781 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
9782 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
9783 * language.c, language.h, m32r-tdep.c: Update copyright.
9784 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
9785 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
9786 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
9787 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
9788 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9789 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
9790
9791 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9792
9793 * stabsread.h (process_later, resolve_cfront_continuation):
9794 Obsolete.
9795 Update copyright years.
9796 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
9797 Update copyright year.
9798 * dbxread.c(struct cont_elem): Obsolete.
9799 (process_later, process_now): Obsolete functions.
9800 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
9801 Update copyright year.
9802 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
9803 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
9804 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
9805 (parse_partial_symbols): Obsolete cfront support.
9806 * stabsread.c
9807 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
9808 macros.
9809 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
9810 read_cfront_baseclasses, read_cfront_member_functions,
9811 resolve_cfront_continuation,read_cfront_static_fields,
9812 copy_cfront_struct_fields): Obsolete functions.
9813 (define_symbol, read_one_struct_field): Obsolete cfront support.
9814 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
9815 Update Copyright year.
9816
9817 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9818
9819 * stack.c (print_frame_info, print_stack_frame_base_stub,
9820 print_stack_frame_base, show_and_print_stack_frame_stub,
9821 show_and_print_stack_frame, print_only_stack_frame_stub,
9822 print_only_stack_frame): Delete functions.
9823 (print_stack_frame_stub): Call print_frame_info instead of
9824 print_frame_info_base.
9825 (print_frame_info_base): Rename to print_frame_info.
9826 (backtrace_command_1): Call print_frame_info, instead of
9827 print_frame_info_base.
9828 (current_frame_command): Call print_stack_frame, instead of
9829 print_only_stack_frame.
9830 (frame_command): Call print_stack_frame, instead of
9831 show_and_print_stack_frame.
9832 (up_command): Ditto.
9833 (down_command): Ditto.
9834 * frame.h (print_only_stack_frame): Delete prototype.
9835 * infrun.c (normal_stop): Call print_stack_frame, instead of
9836 show_and_print_stack_frame.
9837 * thread.c (info_threads_command): Call print_stack_frame, instead
9838 of print_only_stack_frame.
9839
9840 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9841
9842 * README (Graphical interface to GDB): Update URL. Point at
9843 gdb/links/.
9844
9845 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
9846 version match.
9847
9848 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9849
9850 * symtab.c (find_pc_sect_line): Don't consider end-of-function
9851 lines.
9852
9853 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9854
9855 * thread-db.c (attach_thread): Prototype.
9856 (struct private_thread_info): Remove lwpid. Add thread handle (th),
9857 thread information (ti), and valid flags (th_valid, ti_valid).
9858 (attach_thread): Move target_pid_to_str call to after the thread
9859 is added to GDB's list. Initialize the cache.
9860 (thread_get_info_callback, thread_db_map_id2thr)
9861 (thread_db_get_info): New functions.
9862 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
9863 (thread_db_store_registers, thread_db_thread_alive)
9864 (thread_db_get_thread_local_address): Use them.
9865 (thread_db_pid_to_str): Likewise. Return "Missing" instead
9866 of calling error() for threads in unknown state.
9867
9868 (clear_lwpid_callback): New function.
9869 (thread_db_resume): Use it to clear the cache.
9870
9871 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9872
9873 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
9874 (resume_callback): Remove dead code.
9875
9876 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9877
9878 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
9879 predicate.
9880 * gdbarch.h, gdbarch.c: Regenerate.
9881 * stack.c (frame_info): Only initialize the saved registers when
9882 FRAME_INIT_SAVED_REGS_P.
9883 * frame.c (frame_saved_regs_register_unwind): Assert
9884 FRAME_INIT_SAVED_REGS_P.
9885 (deprecated_generic_get_saved_register): Ditto.
9886
9887 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9888
9889 * source.c (openp): Squelch warning about "filename".
9890
9891 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9892
9893 * source.c (openp): If the file does not exist don't necessarily
9894 search the path.
9895
9896 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9897
9898 Fix PR gdb/872.
9899 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
9900 (integer_types_same_name_p): New function.
9901 (rank_one_type): Use it.
9902 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
9903
9904 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9905
9906 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
9907 variables.
9908 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
9909 * configure.in: Add --with-sysroot.
9910 * configure: Regenerated.
9911 * main.c (gdb_sysroot): New variable.
9912 (captured_main): Initialize gdb_sysroot.
9913 * defs.h (gdb_sysroot): New extern declaration.
9914 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
9915
9916 2003-01-12 Michael Chastain <mec@shout.net>
9917
9918 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
9919
9920 2003-01-12 Michael Chastain <mec@shout.net>
9921
9922 * top.c (print_gdb_version): Bump copyright year to 2003.
9923
9924 2003-01-12 David Carlton <carlton@bactrian.org>
9925
9926 * linespec.c (symtab_from_filename): Rename variable 's' to
9927 'file_symtab'.
9928
9929 2003-01-12 Andrew Cagney <ac131313@redhat.com>
9930
9931 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
9932 dummy frame.
9933 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
9934
9935 2003-01-12 Andrew Cagney <ac131313@redhat.com>
9936
9937 * d10v-tdep.c: Include "gdb_assert.h".
9938 (d10v_store_return_value): Rewrite to match current interface.
9939 (d10v_extract_struct_value_address): Ditto.
9940 (d10v_extract_return_value): Ditto.
9941 (d10v_gdbarch_init): Set store_restore_value,
9942 extract_struct_value_address and extract_return_value.
9943
9944 2003-01-12 J. Brobecker <brobecker@gnat.com>
9945
9946 * hpread.c (set_namestring): New procedure replacing the
9947 SET_NAMESTRING macro.
9948 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
9949 by calls to set_namestring.
9950
9951 2003-01-11 J. Brobecker <brobecker@gnat.com>
9952
9953 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
9954 a compilation warning.
9955 (hpread_process_one_debug_symbol): Likewise.
9956
9957 2003-01-10 David Carlton <carlton@math.stanford.edu>
9958
9959 * linespec.c (decode_line_1): Rename variable 's' to
9960 'file_symtab'.
9961 (decode_all_digits): Rename argument 's' to 'file_symtab'.
9962 (decode_dollar): Ditto.
9963 (decode_variable): Ditto.
9964 (symbol_found): Ditto.
9965
9966 2003-01-09 Michael Chastain <mec@shout.net>
9967
9968 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
9969
9970 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
9971
9972 * win32-nat.c (set_process_privilege): New function.
9973 (child_attach): Call set_process_privilege() to enable the
9974 SE_DEBUG_NAME user privilege if available in process token.
9975
9976 2003-01-10 J. Brobecker <brobecker@gnat.com>
9977
9978 * hpread.c (hpread_process_one_debug_symbol): Fix a small
9979 compilation error in the previous revision.
9980
9981 2003-01-09 David Carlton <carlton@math.stanford.edu>
9982
9983 * linespec.c: Update copyright.
9984
9985 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
9986
9987 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
9988 than inferior_ptid.
9989 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
9990
9991 2003-01-09 Andrew Cagney <ac131313@redhat.com>
9992
9993 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
9994 Update comments.
9995 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
9996 (frame_saved_regs_zalloc): Update.
9997 (frame_saved_regs_register_unwind): Update.
9998 (create_new_frame): Update.
9999 (get_prev_frame): Update.
10000 (frame_extra_info_zalloc): Update.
10001 (deprecated_get_frame_saved_regs): Update.
10002 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10003 * cris-tdep.c: Update comment.
10004
10005 * somsolib.h: Fix function indentation.
10006 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10007 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10008 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10009 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10010 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10011
10012 * infrun.c (follow_fork): Use ISO C definition.
10013 * expprint.c (print_subexp): Use xfree instead of free.
10014 * charset.c: Include "gdb_string.h" instead of <string.h>.
10015 (register_iconv_charsets): Use ISO C definition.
10016 (host_charset, target_charset): Ditto.
10017 * Makefile.in (charset.o): Update dependencies.
10018 (mi-cmd-env.o): Update dependencies.
10019
10020 2003-01-08 Andrew Cagney <cagney@redhat.com>
10021
10022 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
10023 get_frame_base.
10024
10025 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10026
10027 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10028 build directories. Save edited gdb output in Mbuild.log. If a
10029 build fails, remove any final GDB executable.
10030
10031 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10032
10033 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10034 replacing hex constants with function names and stripping leading
10035 file name directory prefixes.
10036
10037 2003-01-08 Andrew Cagney <cagney@redhat.com>
10038
10039 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10040 get_frame_base.
10041
10042 2003-01-08 David Carlton <carlton@math.stanford.edu>
10043
10044 * linespec.c (decode_line_1): Move code into decode_variable.
10045 (decode_variable): New function.
10046
10047 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10048
10049 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10050
10051 2003-01-08 Andrew Cagney <cagney@redhat.com>
10052
10053 * cris-tdep.c (cris_frame_init_saved_regs): Use
10054 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10055 saved_regs buffer.
10056 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10057 (sh64_nofp_frame_init_saved_regs): Ditto.
10058 (sh_fp_frame_init_saved_regs): Ditto.
10059 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10060 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10061 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10062 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10063
10064 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10065
10066 * minsyms.c (lookup_minimal_symbol): Update comment.
10067 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10068 (lookup_minimal_symbol_solib_trampoline): Likewise.
10069
10070 2003-01-08 Andrew Cagney <cagney@redhat.com>
10071
10072 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10073 frame_relative_level.
10074
10075 * alpha-tdep.c: Use get_frame_extra_info.
10076 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10077 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10078 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10079 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10080
10081 * alpha-tdep.c: Use get_next_frame.
10082 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10083 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10084 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10085 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10086 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10087 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10088 * xstormy16-tdep.c: Ditto.
10089
10090 2003-01-07 Andrew Cagney <cagney@redhat.com>
10091
10092 * alpha-tdep.c: Use get_frame_base.
10093 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10094 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10095 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10096 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10097 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10098 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10099 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10100 * config/sparc/tm-sparc.h: Ditto.
10101
10102 2003-01-07 Andrew Cagney <cagney@redhat.com>
10103
10104 * frame.c (deprecated_get_frame_context): New function.
10105 (deprecated_set_frame_context): New function.
10106 * frame.h (deprecated_get_frame_context): Declare.
10107 (deprecated_set_frame_context): Declare.
10108 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10109 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10110
10111 2003-01-07 Andrew Cagney <cagney@redhat.com>
10112
10113 * frame.c (deprecated_set_frame_next_hack): New function.
10114 (deprecated_set_frame_prev_hack): New function.
10115 * frame.h (deprecated_set_frame_next_hack): Declare.
10116 (deprecated_set_frame_prev_hack): Declare.
10117 * mcore-tdep.c (analyze_dummy_frame): Use
10118 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10119 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10120
10121 2003-01-07 David Carlton <carlton@math.stanford.edu>
10122
10123 * linespec.c (decode_line_1): Move code into decode_dollar.
10124 (decode_dollar): New function.
10125
10126 2003-01-07 Andrew Cagney <cagney@redhat.com>
10127
10128 * arm-tdep.c (arm_init_extra_frame_info): Use
10129 deprecated_update_frame_base_hack.
10130 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10131 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10132 (fix_frame_pointer): Ditto.
10133 (mn10300_analyze_prologue): Ditto.
10134
10135 2003-01-07 Andrew Cagney <cagney@redhat.com>
10136
10137 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10138 extra_info using frame_extra_info_zalloc.
10139 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10140 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10141 (sh64_init_extra_frame_info): Ditto.
10142 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10143 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10144 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10145 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10146 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10147 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10148 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10149 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10150 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10151 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10152 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10153 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10154
10155 * mn10300-tdep.c (analyze_dummy_frame): Use
10156 deprecated_set_frame_extra_info_hack.
10157 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10158
10159 2003-01-07 J. Brobecker <brobecker@gnat.com>
10160
10161 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10162 class is not scText. These do not define "real" procedures.
10163 (parse_partial_symbols): Likewise.
10164
10165 2003-01-06 Michael Snyder <msnyder@redhat.com>
10166
10167 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10168
10169 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10170
10171 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10172 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10173 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10174 deprecated_frame_xmalloc_with_cleanup.
10175 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10176 deprecated_frame_xmalloc.
10177 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10178 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10179
10180 2003-01-06 Andrew Cagney <cagney@redhat.com>
10181
10182 * x86-64-linux-tdep.c: Include "osabi.h".
10183 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10184
10185 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10186
10187 2003-01-06 Andrew Cagney <cagney@redhat.com>
10188
10189 * MAINTAINERS (Target Instruction Set Architectures): Update
10190 arm-elf. Can be built with -Werror, has been multiarched.
10191
10192 * value.h (unpack_long): Make buffer parameter constant.
10193 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10194 * scm-lang.h (scm_parse): Ditto.
10195 * defs.h (extract_typed_address, extract_address): Ditto.
10196 (extract_long_unsigned_integer): Ditto.
10197 * inferior.h (unsigned_pointer_to_address): Ditto.
10198 (signed_pointer_to_address): Ditto.
10199 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10200 * gdbarch.h, gdbarch.c: Regenerate.
10201 * findvar.c (extract_long_unsigned_integer): Update.
10202 (extract_address): Update.
10203 (extract_typed_address): Update.
10204 (unsigned_pointer_to_address): Update.
10205 * values.c (unpack_long): Update.
10206 (unpack_double): Update.
10207 (unpack_pointer): Update.
10208 (unpack_field_as_long): Update.
10209 * d10v-tdep.c (d10v_pointer_to_address): Update.
10210 * avr-tdep.c (avr_pointer_to_address): Update.
10211 * scm-lang.c (scm_unpack): Update.
10212 * findvar.c (signed_pointer_to_address): Update.
10213
10214 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10215
10216 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10217 since it is in i386-tdep.c.
10218
10219 2003-01-06 J. Brobecker <brobecker@gnat.com>
10220
10221 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10222 failure introduced in the previous change.
10223
10224 2003-01-05 Michael Chastain <mec@shout.net>
10225
10226 * README: Remove references to deleted remote-*.c files:
10227 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10228 remote-nrom.c, remote-os9k.c, remote-udi.c.
10229
10230 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10231
10232 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10233 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10234 i386_get_longjmp_target.
10235
10236 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10237
10238 * arm-tdep.c (prologue_cache): Change to a pointer.
10239 (_initialize_arm_tdep): Allocate prologue_cache.
10240 (check_prologue_cache): Update.
10241 (save_prologue_cache): Update.
10242 (arm_gdbarch_init): Update.
10243
10244 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10245
10246 * stabsread.c (update_method_name_from_physname): Call complaint()
10247 instead of error.
10248
10249 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10250
10251 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10252 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10253 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10254
10255 * blockframe.c: Include "gdbcmd.h" and "command.h".
10256 (backtrace_below_main): New variable.
10257 (file_frame_chain_valid, func_frame_chain_valid)
10258 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10259 (generic_func_frame_chain_valid): Remove functions.
10260 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10261 (_initialize_blockframe): New function.
10262 * Makefile.in (blockframe.o): Update dependencies.
10263 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10264 comment. Call frame_chain_valid ().
10265 * frame.h: Remove old prototypes. Add prototype for
10266 frame_chain_valid and update comments to match.
10267 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10268 Remove old comment.
10269 * gdbarch.h: Regenerated.
10270 * gdbarch.c: Regenerated.
10271
10272 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10273 set_gdbarch_frame_chain_valid.
10274 * avr-tdep.c (avr_gdbarch_init): Likewise.
10275 * cris-tdep.c (cris_gdbarch_init): Likewise.
10276 * frv-tdep.c (frv_gdbarch_init): Likewise.
10277 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10278 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10279 (i386_nw_init_abi): Likewise.
10280 (i386_gdbarch_init): Likewise.
10281 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10282 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10283 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10284 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10285 * mips-tdep.c (mips_gdbarch_init): Likewise.
10286 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10287 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10288 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10289 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10290 * s390-tdep.c (s390_gdbarch_init): Likewise.
10291 * sh-tdep.c (sh_gdbarch_init): Likewise.
10292 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10293 * v850-tdep.c (v850_gdbarch_init): Likewise.
10294 * vax-tdep.c (vax_gdbarch_init): Likewise.
10295 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10296
10297 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10298 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10299 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10300 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10301 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10302 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10303 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10304 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10305
10306 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10307
10308 * Makefile.in (acconfig_h): Remove incorrect macro.
10309 (config_h): Define.
10310 (osabi.o): Update dependencies.
10311 * configure.tgt: Set gdb_osabi based on target triplet.
10312 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10313 * configure: Regenerated.
10314 * config.in: Regenerated.
10315 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10316 (GDB_OSABI_DEFAULT): Define if not already defined.
10317 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10318 (set_osabi_string): New variables.
10319 (gdbarch_register_osabi): Add new OS ABI to
10320 gdb_osabi_available_names.
10321 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10322 (set_osabi, show_osabi): New functions.
10323 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10324
10325 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10326
10327 * arch-utils.c (gdbarch_info_init): Set osabi to
10328 GDB_OSABI_UNINITIALIZED.
10329 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10330 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10331 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10332 * gdbarch.c: Regenerated.
10333 * gdbarch.h: Regenerated.
10334 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10335 there's no BFD.
10336 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10337 * osabi.h (enum gdb_osabi): Move to defs.h.
10338 (gdbarch_init_osabi): Update prototype.
10339 * defs.h (enum gdb_osabi): Moved here.
10340 * Makefile.in: Update dependencies.
10341
10342 * alpha-tdep.h: Don't include "osabi.h".
10343 (struct gdbarch_tdep): Remove osabi member.
10344 * alpha-tdep.c: Include "osabi.h".
10345 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10346 iterate over arches. Update call to gdbarch_init_osabi.
10347 (alpha_dump_tdep): Don't dump osabi.
10348 * alpha-linux-tdep.c: Include "osabi.h".
10349 * alpha-osf1-tdep.c: Include "osabi.h".
10350 * alphafbsd-tdep.c: Include "osabi.h".
10351 * alphanbsd-tdep.c: Include "osabi.h".
10352
10353 * arm-tdep.h: Don't include "osabi.h".
10354 (struct gdbarch_tdep): Remove osabi member.
10355 * arm-tdep.c: Include "osabi.h".
10356 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10357 iterate over arches. Update call to gdbarch_init_osabi.
10358 (arm_dump_tdep): Don't dump osabi.
10359 * arm-linux-tdep.c: Include "osabi.h".
10360 * armnbsd-tdep.c: Include "osabi.h".
10361
10362 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10363 Update call to gdbarch_init_osabi.
10364
10365 * i386-tdep.h: Don't include "osabi.h".
10366 (struct gdbarch_tdep): Remove osabi member.
10367 * i386-tdep.c: Include "osabi.h".
10368 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10369 iterate over arches. Update call to gdbarch_init_osabi.
10370 (i386_dump_tdep): Don't dump osabi.
10371 * i386-linux-tdep.c: Include "osabi.h".
10372 * i386-sol2-tdep.c: Include "osabi.h".
10373 * i386bsd-tdep.c: Include "osabi.h".
10374 * i386gnu-tdep.c: Include "osabi.h".
10375 * i386ly-tdep.c: Include "osabi.h".
10376 * i386nbsd-tdep.c: Include "osabi.h".
10377 * i386obsd-tdep.c: Include "osabi.h".
10378
10379 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10380 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10381 check osabi when iterating over arches. Update call to
10382 gdbarch_init_osabi.
10383 (mips_dump_tdep): Don't dump osabi.
10384
10385 * ns32k-tdep.h: Don't include "osabi.h".
10386 (struct gdbarch_tdep): Remove.
10387 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10388 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10389 allocate tdep. Update call to gdbarch_init_osabi.
10390 (ns32k_dump_tdep): Remove.
10391 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10392 * ns32knbsd-tdep.c: Include "osabi.h".
10393
10394 * ppc-tdep.h: Don't include "osabi.h".
10395 (struct gdbarch_tdep): Remove osabi member.
10396 * rs6000-tdep.c: Include "osabi.h".
10397 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10398 osabi when iterating over arches. Update call to
10399 gdbarch_init_osabi.
10400 (rs6000_dump_tdep): Don't dump osabi.
10401 * ppc-linux-tdep.c: Include "osabi.h".
10402 * ppcnbsd-tdep.c: Include "osabi.h".
10403
10404 * sh-tdep.h: Don't include "osabi.h".
10405 (struct gdbarch_tdep): Remove osabi member.
10406 * sh-tdep.c: Include "osabi.h".
10407 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10408 iterate over arches. Update call to gdbarch_init_osabi.
10409 (sh_dump_tdep): Don't dump osabi.
10410 * shnbsd-tdep.c: Include "osabi.h".
10411
10412 * sparc-tdep.c: Include "osabi.h".
10413 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10414 iterate over arches. Update call to gdbarch_init_osabi.
10415 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10416 tdep structure.
10417
10418 * vax-tdep.h: Don't include "osabi.h".
10419 (struct gdbarch_tdep): Remove.
10420 * vax-tdep.c: Include "osabi.h".
10421 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10422 iterate over arches. Don't allocate tdep. Update call
10423 to gdbarch_init_osabi.
10424 (vax_dump_tdep): Remove.
10425 (_initialize_vax_tdep): Update call to gdbarch_register.
10426
10427 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10428
10429 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10430 entirely.
10431 (breakpoint_re_set_one): Don't fetch the value for a disabled
10432 watchpoint.
10433
10434 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10435
10436 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10437 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10438 (COERCE_FLOAT_TO_DOUBLE): Remove.
10439 * gdbarch.c: Regenerate.
10440 * gdbarch.h: Regenerate.
10441 * Makefile.in: Remove value_h from gdbarch_h.
10442 * valops.c (coerce_float_to_double): New variable.
10443 (default_coerce_float_to_double): Remove.
10444 (standard_coerce_float_to_double): Remove.
10445 (value_arg_coerce): Use coerce_float_to_double.
10446 (_initialize_valops): Add "set coerce-float-to-double".
10447 * value.h (default_coerce_float_to_double): Remove prototype.
10448 (standard_coerce_float_to_double): Remove prototype.
10449
10450 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10451 prototyped.
10452 * mdebugread.c (parse_symbol): Likewise.
10453 * stabsread.c (define_symbol): Mark all functions as prototyped.
10454
10455 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10456 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10457 set_gdbarch_coerce_float_to_double.
10458 * arm-tdep.c (arm_gdbarch_init): Likewise.
10459 * frv-tdep.c (frv_gdbarch_init): Likewise.
10460 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10461 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10462 * mips-tdep.c (mips_gdbarch_init): Likewise.
10463 (mips_coerce_float_to_double): Remove.
10464 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10465 (rs6000_coerce_float_to_double): Remove.
10466 * s390-tdep.c (s390_gdbarch_init): Likewise.
10467 * sh-tdep.c (sh_gdbarch_init): Likewise.
10468 (sh_coerce_float_to_double): Remove.
10469 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10470 (sparc_coerce_float_to_double): Remove.
10471 * v850-tdep.c (v850_gdbarch_init): Likewise.
10472 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10473 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10474 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10475 (hppa_coerce_float_to_double): Remove prototype.
10476 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10477
10478 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10479
10480 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10481
10482 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10483
10484 Suggested by Stewart Brown <sb24@avaya.com>:
10485 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10486 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10487 (c_type_print_varspec_suffix): Likewise.
10488
10489 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10490
10491 * configure.in: Don't set and AC_SUBST SUBDIRS.
10492 * configure: Regenerated.
10493
10494 * configure.in: Remove code dealing with shared libraries.
10495 * Makefile.in: Remove HLDFLAGS and HLDENV.
10496 * configure: Regenerated.
10497
10498 2003-01-04 Andrew Cagney <ac131313@redhat.com>
10499
10500 * frame.c (deprecated_frame_xmalloc): New function.
10501 (deprecated_set_frame_saved_regs_hack): New function.
10502 (deprecated_set_frame_extra_info_hack): New function.
10503 * frame.h (deprecated_frame_xmalloc): Declare.
10504 (deprecated_set_frame_saved_regs_hack): Declare.
10505 (deprecated_set_frame_extra_info_hack): Declare.
10506
10507 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10508
10509 * configure.in: Move code that provides the --enable-gdbtk option
10510 right after the code that handles the --enable-tui option, and
10511 polish it somewhat.
10512 * configure: Regenerated.
10513
10514 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10515 AC_CHECK_FUNCS and remove the old check for pread64.
10516 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10517 * acconfig.h (_GNU_SOURCE): Add.
10518 (HAVE_PREAD64): Remove.
10519 * configure, aclocal.m4, config.in: Regenerated.
10520
10521 2003-01-03 Andrew Cagney <ac131313@redhat.com>
10522
10523 * alpha-tdep.c: Use get_frame_saved_regs.
10524 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10525 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10526 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10527 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10528 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10529
10530 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10531
10532 * configure.in: Remove all use of the SUBDIRS variable; add
10533 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10534 code providing the --enable-multi-ice option, and move it right in
10535 front of the code that checks whether gdbserver is supported.
10536 Polish that too.
10537 * configure: Regenerated.
10538 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10539 @SUBDIRS@.
10540
10541 2003-01-03 Andrew Cagney <cagney@redhat.com>
10542
10543 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10544 * avr-tdep.c, cris-tdep.c: Ditto.
10545 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10546 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10547
10548 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10549
10550 * configure.in: Remove --enable-netrom option.
10551 * configure: Regenerated.
10552
10553 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10554
10555 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10556 declaration for `struct re_pattern_buffer' instead.
10557 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10558
10559 2003-01-03 J. Brobecker <brobecker@gnat.com>
10560
10561 * mdebugread.c (parse_symbol): Count until the stEnd matching
10562 the structure name.
10563
10564 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10565
10566 * configure.in: Remove --with-cpu option.
10567 subscripts. Remove evil changequotes here.
10568 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10569 * config.in, configure: Regenerated.
10570
10571 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10572 * configure.in: Cleanup section that sources GDB and BFD configure
10573 subscripts. Remove evil changequotes here.
10574 * config.in, configure: Regenerated.
10575
10576 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10577
10578 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10579 frame accessor methods.
10580 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10581 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10582 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10583 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10584 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10585 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10586 * z8k-tdep.c: Ditto.
10587
10588 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10589
10590 * configure.in: Remove UI_OUT configuration code.
10591 * ada-lang.c: Update assuming UI_OUT is always true.
10592 * Makefile.in (UIOUT_CFLAGS): Remove.
10593 * configure: Regenerated.
10594 * TODO: Remove blurb about elimination of -DUI_OUT.
10595
10596 * configure.in: Move code that provides the --enable-gdbcli,
10597 --enable-gdbmi options right before the code that handles the
10598 --enable-tui option. Polish a bit.
10599 * configure: Regenerated.
10600
10601 * configure.in: Rewrite check for GNU regex and the
10602 --without-included regex option, and move it into the "Checks for
10603 library functions" section. This makes us use the system regex
10604 again by default on systems with version 2 of the GNU C library.
10605 This was apparently broken.
10606 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10607 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10608 * config.in, configure: Regenerated.
10609
10610 * configure.in: Move code that provides the --enable-tui option
10611 before the "Checks for libraries" section. Polish the code
10612 somewhat and set need_curses to yes if we build the TUI. Rewrite
10613 code that looks for a library providing termcap functionality to
10614 match more closely what's done in the Readline library, and move
10615 it into to the "Checks for libraries" section.
10616 * configure: Regenerated.
10617 * Makefile.in (TERMCAP): Remove variable.
10618 * config/i386/go32.mh (TERMCAP): Remove variable.
10619
10620 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10621
10622 * MAINTAINERS: Mention gdb_mbuild.sh.
10623 * gdb_mbuild.sh: Rewrite.
10624
10625 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10626
10627 * configure.in: Fix typo in last change.
10628 * config.in, configure: Regenerated.
10629
10630 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10631
10632 * valarith.c (value_binop): Delete obsolete code and comments.
10633 * configure.host: Ditto.
10634 * buildsym.h (make_blockvector): Ditto.
10635 * buildsym.c (make_blockvector): Ditto.
10636 * defs.h (enum language): Ditto.
10637 (chill_demangle): Ditto.
10638 * elfread.c (elf_symtab_read): Ditto.
10639 * dwarfread.c (CHILL_PRODUCER): Ditto.
10640 (set_cu_language): Ditto.
10641 (handle_producer): Ditto.
10642 * expprint.c (print_subexp): Ditto.
10643 * gdbtypes.c (chill_varying_type): Ditto.
10644 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10645 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10646 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10647 (chill_varying_type): Ditto.
10648 * language.h (_LANG_chill): Ditto.
10649 * language.c (binop_result_type, integral_type): Ditto.
10650 (character_type, string_type, structured_type): Ditto.
10651 (lang_bool_type, binop_type_check): Ditto.
10652 * stabsread.h (os9k_stabs): Ditto.
10653 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10654 (define_symbol, read_type, read_struct_fields): Ditto.
10655 (read_array_type, read_enum_type, read_huge_number): Ditto.
10656 (read_range_type, start_stabs): Ditto.
10657 * symfile.c (init_filename_language_table): Ditto.
10658 (add_psymbol_with_dem_name_to_list): Ditto.
10659 * symtab.c (symbol_init_language_specific): Ditto.
10660 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10661 * symtab.h (struct general_symbol_info): Ditto.
10662 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10663 * typeprint.c (typedef_print): Ditto.
10664 * utils.c (fprintf_symbol_filtered): Ditto.
10665 * valops.c (value_cast, search_struct_field, value_slice): Delete
10666 obsolete code.
10667 (varying_to_slice): Delete function.
10668 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10669 (varying_to_slice): Delete declaration.
10670 * MAINTAINERS: Update.
10671
10672 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10673
10674 * configure.in: Reorganize "Checks for library functions section"
10675 a bit. Remove check for `btowc' and `isascii' functions.
10676 * configure: Regenerated.
10677
10678 * acconfig.h (_MSE_INT_H): Remove.
10679 * configure.in: Create "Checks for header files" section, and move
10680 appropriate tests there. Don't check for objlist.h, wchar.h,
10681 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
10682 misdetection fix. Also add "Checks for types", "Checks for
10683 compiler characteristics" and "Checks for library functions"
10684 sections.
10685 * config.in, configure: Regenerated.
10686
10687 * configure.in: Create "Checks for programs" section, and move
10688 appropriate tests there.
10689
10690 2003-01-01 Mark Kettenis <kettenis@gnu.org>
10691
10692 * configure.in: Create "Checks for libraries" section, and move
10693 appropriate tests there. Cleanup check for wctype in libw. Use
10694 AC_SEARCH_LIBS to see whether we need libsocket.
10695 * configure: Regenerated.
10696
10697 For older changes see ChangeLog-2002
10698 \f
10699 Local Variables:
10700 mode: change-log
10701 left-margin: 8
10702 fill-column: 74
10703 version-control: never
10704 End:
This page took 0.254239 seconds and 4 git commands to generate.