* NEWS (New native configurations): Mention FreeBSD/amd64.
[binutils-gdb.git] / gdb / ChangeLog
1 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2
3 * NEWS (New native configurations): Mention FreeBSD/amd64.
4
5 2003-08-18 Andrew Cagney <cagney@redhat.com>
6
7 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
8 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
9 "m68k_frame_p".
10 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
11
12 2003-08-18 Mark Kettenis <kettenis@gnu.org>
13
14 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
15
16 2003-08-18 Michal Ludvig <mludvig@suse.cz>
17
18 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
19 Define.
20 * i386-linux-nat.c: Include "linux-nat.h".
21 (child_post_startup_inferior): New function.
22
23 2003-08-18 Mark Kettenis <kettenis@gnu.org>
24
25 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
26 at the start of a frameless function. This probably fixes PR
27 backtrace/1338.
28
29 2003-08-17 Michael Chastain <mec@shout.net>
30
31 * symfile.c (find_sym_fns): Remove special case for apollo target.
32
33 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
34
35 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
36 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
37 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
38 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
39 (linux_supports_tracevforkdone): New function.
40 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
41 TRACEVFORKDONE.
42 (child_follow_fork): Handle vfork.
43 (linux_handle_extended_wait): Likewise. Also handle exec.
44 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
45 * NEWS: Mention fork tracing.
46
47 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
48
49 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
50
51 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
52
53 * Makefile.in (i386-linux-nat.o): Update dependencies.
54 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
55 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
56 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
57 * i386-linux-nat.c: Include "linux-nat.h".
58 (child_post_startup_inferior): New function.
59 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
60 * infptrace.c (kill_inferior): Wrap in #ifdef.
61 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
62 attaching to each LWP.
63 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
64 (init_lin_lwp_ops): Fill in some more operations.
65 * linux-nat.h (linux_enable_event_reporting)
66 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
67 prototypes.
68 * linux-nat.c (linux_enable_event_reporting): New function.
69 (child_post_attach, linux_child_post_startup_inferior)
70 (child_post_startup_inferior, child_follow_fork)
71 (linux_handle_extended_wait, kill_inferior): New functions.
72
73 2003-08-16 Andrew Cagney <cagney@redhat.com>
74
75 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
76 * gdbarch.h, gdbarch.c: Re-generate.
77
78 2003-08-16 Mark Kettenis <kettenis@gnu.org>
79
80 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
81
82 2003-08-16 Andrew Cagney <cagney@redhat.com>
83
84 * NEWS: Mention that "set prompt-escape-char" was deleted.
85 * top.c (get_prompt_1): Delete function.
86 (gdb_prompt_escape):
87 (init_main): Do not clear "gdb_prompt_escape". Delete "set
88 prompt-escape-char" command.
89 (MAX_PROMPT_SIZE): Delete macro.
90 (get_prompt): Simplify, do not call get_prompt_1.
91
92 2003-08-16 Andrew Cagney <cagney@redhat.com>
93
94 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
95 -Werror. -Wformat-nonliteral problems.
96
97 2003-08-15 J. Brobecker <brobecker@gnat.com>
98
99 Further multiarching work mostly for hppa64-*-hpux11:
100 * hppa-tdep.h: New file.
101 * hppa-tdep.c: #include hppa-tdep.c.
102 (hppa32_num_regs): Renamed from hppa_num_regs.
103 (hppa64_num_regs): New constant.
104 (hppa64_call_dummy_breakpoint_offset): New constant.
105 (hppa32_call_dummy_length): New constant.
106 (hppa64_call_dummy_length): New constant.
107 (hppa32_stack_align): Make name 32bit explicit.
108 (hppa32_register_virtual_type): Likewise.
109 (hppa32_extract_return_value): Likewise.
110 (hppa32_use_struct_convention): Likewise.
111 (hppa32_store_return_value): Likewise.
112 (hppa64_register_virtual_type): New function.
113 (hppa64_extract_return_value): New function.
114 (hppa64_use_struct_convention): New function.
115 (hppa64_store_return_value): New function.
116 (hppa_frame_locals_address): Remove declaration, function does
117 not exist anymore.
118 (hppa_register_byte): Add support for PA64 ABI.
119 (hppa_gdbarch_init): Add support for PA64 ABI.
120 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
121 Make name 32bit explicit.
122 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
123 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
124 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
125 (hppa64_hpux_frame_base_before_sigtramp): New function.
126 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
127 * config/pa/tm-hppa64.h: Remove macros that are no longer
128 necessary now that the gdbarch vector is properly setup.
129 Transform some macros into function calls. Some minor cleanup.
130 * config/pa/tm-hppah.h: Update function calls in macros
131 following the function renaming in hppa-hpux-tdep.c.
132 * Makefile.in (hppa_tdep_h): New variable.
133 (hppa-tdep.o): Add dependency over hppa_tdep_h.
134
135 2003-08-14 Michael Snyder <msnyder@redhat.com>
136
137 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
138
139 2003-08-13 J. Brobecker <brobecker@gnat.com>
140
141 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
142 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
143 routine.
144
145 2003-08-13 Michael Snyder <msnyder@redhat.com>
146
147 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
148 (frv_saved_pc_after_call): Use deprecated ftype.
149 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
150 (frv_remote_translate_xfer_address): Remove.
151 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
152
153 2003-08-13 J. Brobecker <brobecker@gnat.com>
154
155 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
156 initialization after the common gdbarch initialization, not before.
157
158 2003-08-13 J. Brobecker <brobecker@gnat.com>
159
160 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
161 (ADDR_BITS_REMOVE): Remove, redundant.
162
163 2003-08-13 J. Brobecker <brobecker@gnat.com>
164
165 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
166 gdbarch method to clear the 2 low bits of text addresses.
167
168 2003-08-12 Andrew Cagney <cagney@redhat.com>
169
170 * Makefile.in (dsrec.o): Update dependencies.
171 * dsrec.c: Include "gdb_assert.h".
172 (make_srec): Use snprintf instead of sprintf, use a literal format
173 string.
174
175 2003-08-12 Andrew Cagney <cagney@redhat.com>
176
177 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
178 FRAME_OBSTACK_ZALLOC.
179
180 2003-08-12 Kevin Buettner <kevinb@redhat.com>
181
182 * i386-tdep.c (i386_gdbarch_init): Enable default support for
183 SSE registers.
184
185 2003-08-10 Mark Kettenis <kettenis@gnu.org>
186
187 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
188 amd64fbsd_sc_reg_offset): Add extern declarations.
189 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
190 declarations.
191
192 2003-08-11 Ben Elliston <bje@wasabisystems.com>
193
194 * MAINTAINERS (write after approval): Update my mail address.
195
196 2003-08-10 Andrew Cagney <cagney@redhat.com>
197
198 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
199
200 2003-08-10 Mark Kettenis <kettenis@gnu.org>
201
202 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
203 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
204 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
205 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
206 i386bsd_sc_reg_offset): Add extern declarations.
207 * i386obsd-nat.c: Include "i386-tdep.h"
208 (_initialize_i386obsd_nat): Remove extern declarations.
209 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
210 declarations.
211 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
212 declarations.
213
214 * i386-tdep.c (i386_register_to_value): Use get_frame_register
215 instead of frame_read_register.
216 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
217 instead of frame_read_register. Use I386_ESP_REGNUM instead of
218 SP_REGNUM.
219 (i386_frame_prev_register): Use frame_unwind_register_unsigned
220 instead of frame_unwind_unsigned_register. Use
221 I386_EFLAGS_REGISTER instead of PS_REGNUM.
222 (i386_get_longjmp_target): Use regcache_read_unsigned_register
223 instead of read_register. Use builtin_type_void_data_ptr instead
224 of builtin_type_void_func_ptr when extracting the address of the
225 jmp_buf.
226 (i386_extract_return_value, i386_store_return_value,
227 i386_pseudo_register_read, i386_pseudo_register_write): Use
228 register_size instead REGISTER_RAW_SIZE.
229
230 2003-08-10 Andrew Cagney <cagney@redhat.com>
231
232 * infcall.c (call_function_by_hand): Use xstrprintf instead of
233 sprintf. Make "name" constant.
234
235 2003-08-10 Mark Kettenis <kettenis@gnu.org>
236
237 * i387-tdep.c (i387_register_to_value): Use get_frame_register
238 instead of frame_read_register.
239 (i387_print_float_info): Use get_frame_register and
240 get_frame_register_unsigned instead of frame_register_read.
241
242 * i386fbsd-nat.c: Include "i386-tdep.h".
243 (child_resume): Make `eflags' an ULONGEST. Use
244 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
245 instead of register_read and register_write.
246
247 * i386bsd-nat.c (fetch_inferior_registers,
248 store_inferior_registers): Don't use && at the end of a line.
249 (_initialize_i386bsd_nat): Fix typo.
250
251 * frame.c (_initialize_frame): Add missing backslash.
252
253 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
254 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
255 and supply_register instead of manipulating the register buffer
256 directly.
257
258 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
259 * config/i386/nm-i386sol2.h
260 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
261
262 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
263 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
264 instructions that GCC likes to mingle into the prologue. Fixes
265 gdb/1253 and gdb/1255.
266
267 2003-08-09 Andrew Cagney <cagney@redhat.com>
268
269 Fix GDB PR cli/926.
270 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
271 * command.h (add_setshow_uinteger_cmd): Declare.
272 * frame.c (set_backtrace_cmd): New function.
273 (show_backtrace_cmd): New function.
274 * frame.c (_initialize_frame): Replace "set/show
275 backtrace-below-main" with "set/show backtrace past-main". Add
276 command "set/show backtrace limit".
277 (backtrace_past_main): Rename "backtrace_below_main".
278 (backtrace_limit): New variable.
279 (get_prev_frame): Update. Check the backtrace_limit.
280
281 2003-08-09 Andrew Cagney <cagney@redhat.com>
282
283 * defs.h (xstrprintf): Declare.
284 * utils.c (xstrprintf): New function.
285 * breakpoint.c (insert_breakpoints): Replace sprintf and
286 non-literal format strings, with xstrprintf and cleanups.
287 (delete_breakpoint,breakpoint_re_set): Ditto.
288 (commands_command, insert_breakpoints): Ditto.
289 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
290 (break_at_finish_command_1): Ditto.
291
292 2003-08-09 Andrew Cagney <cagney@redhat.com>
293
294 * MAINTAINERS (language support): List Adam Fedor as Objective C
295 maintainer.
296
297 2003-08-08 J. Brobecker <brobecker@gnat.com>
298
299 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
300 are now multiarched.
301
302 2003-08-08 J. Brobecker <brobecker@gnat.com>
303
304 * config/pa/tm-hppa64.h: Remove lots of macros that are no
305 longer necessary now that hppa64 is partially multiarch'ed.
306
307 2003-08-08 Andrew Cagney <cagney@redhat.com>
308
309 * interps.c (interp_set): Check for a NULL "old_interp".
310
311 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
312
313 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
314 (install-only): Support DESTDIR.
315 (uninstall): Likewise.
316 (install-gdbtk): Likewise.
317
318 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
319
320 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
321 contains something meaningful at all times.
322
323 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
324
325 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
326
327 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
328
329 * MAINTAINERS (write after approval): Added self.
330
331 2003-08-07 Andrew Cagney <cagney@redhat.com>
332
333 * inferior.h (AT_SYMBOL): Define.
334 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
335 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
336 * mips-tdep.c (mips_call_dummy_address): Delete function.
337 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
338 set call_dummy_address.
339
340 2003-08-07 Andrew Cagney <cagney@redhat.com>
341
342 * language.c (op_error): Delete function.
343 (binop_type_check): Delete function.
344 * language.h (type_op_error, range_op_error): Delete macros.
345 (op_error): Delete declaration.
346
347 2003-08-07 Andrew Cagney <cagney@redhat.com>
348
349 * interps.h (INTERP_MI2, INTERP_MI3): Define.
350
351 2003-08-07 Michal Ludvig <mludvig@suse.cz>
352
353 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
354 (x86_64_push_arguments): Skip the red zone.
355
356 2003-08-05 Andrew Cagney <cagney@redhat.com>
357
358 * reggroups.c (reggroup_next): Check for the final entry.
359
360 2003-08-04 Andrew Cagney <cagney@redhat.com>
361
362 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
363 * cli/cli-script.c (define_command): Call query directly, instead
364 of passing it a buffer.
365 * ocd.c (ocd_error): Pass error a constant format string.
366 * remote-mips.c (mips_error): Use fputs_filtered.
367
368 * solib-svr4.c (_initialize_svr4_solib): Update
369 register_gdbarch_data call.
370 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
371
372 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
373 (register_gdbarch_data): Delete "free" parameter. Update
374 comments.
375 * gdbarch.h, gdbarch.c: Re-generate.
376 * reggroups.c (_initialize_reggroup): Update.
377 * gnu-v3-abi.c (init_gnuv3_ops): Update.
378 * frame-base.c (_initialize_frame_base): Update.
379 * frame-unwind.c (_initialize_frame_unwind): Update.
380 * user-regs.c (_initialize_user_regs): Update.
381 * remote.c (_initialize_remote): Update.
382 * regcache.c (_initialize_regcache): Update.
383
384 * regcache.c (xfree_regcache_descr): Delete function.
385 (_initialize_regcache): Update call to register_gdbarch_data.
386 (init_regcache_descr, init_legacy_regcache_descr): Use
387 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
388
389 * remote.c (free_remote_state): Delete function.
390 (_initialize_remote): Update register_gdbarch_data.
391 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
392 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
393
394 2003-08-04 Andrew Cagney <cagney@redhat.com>
395
396 * reggroups.c (struct reggroup_el): Define.
397 (struct reggroups): Delete field "nr_group". Replace array
398 "group" with a "first" to "last" linked list.
399 (reggroups_init): Update. Allocate using gdbarch's obstack.
400 (reggroups_free): Delete function.
401 (add_group): Update. Add "el" parameter.
402 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
403 (default_groups): Update.
404 (reggroup_next): Replace reggroups.
405 (reggroups_dump): Update.
406 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
407 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
408 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
409
410 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
411
412 * Makefile.in (tui-interp.o): Update dependencies.
413
414 2003-08-04 David Carlton <carlton@kealia.com>
415
416 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
417 to internal_error call.
418 * source.c (forward_search_command): Add "%s" format argument.
419 (reverse_search_command): Ditto.
420 * top.c (quit_confirm): Ditto.
421 * cli/cli-setshow.c (do_setshow_command): Ditto.
422 * cp-valprint.c (cp_print_class_method): Replace
423 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
424 (cp_print_class_member): Ditto.
425 * event-top.c (command_line_handler): Ditto.
426 * linux-proc.c (linux_info_proc_cmd): Ditto.
427 * p-typeprint.c (pascal_type_print_base): Ditto.
428 * p-valprint.c (pascal_object_print_class_method): Ditto.
429 (pascal_object_print_class_member): Ditto.
430 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
431 * remote.c (remote_cisco_section_offsets): Ditto.
432 * top.c (command_line_input): Ditto.
433 * utils.c (vwarning,error_stream,quit): Ditto.
434 * valprint.c (print_floating,print_binary_chars)
435 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
436
437 2003-08-04 Andrew Cagney <cagney@redhat.com>
438
439 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
440
441 2003-08-02 Andrew Cagney <cagney@redhat.com>
442
443 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
444 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
445 amd64fbsd-nat.c.
446
447 2003-08-02 Andrew Cagney <cagney@redhat.com>
448
449 * Makefile.in: Update all dependencies and definitions.
450
451 2003-08-02 Adam Fedor <fedor@gnu.org>
452
453 * linespec.c (is_objc_method_format): New function
454 (decode_line_1, locate_first_half): Use it.
455 Fixes PR objc/1298
456
457 2003-08-01 Andrew Cagney <cagney@redhat.com>
458
459 * NEWS: Mention that m32r is multi-arch.
460 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
461 * configure.tgt: Recognize m32r-*-*.
462 * config/m32r/tm-m32r.h: Delete file.
463 * config/m32r/m32r.mt: New file.
464 * m32r-rom.c (m32r_upload_command): Use hostent only when
465 gethostname succeeds, in order to avoid a compilation
466 warning.
467 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
468 compiler warning.
469
470 2003-08-01 Michael Snyder <msnyder@redhat.com>
471
472 * sh-tdep.c (sh_frame_align): New gdbarch method.
473 (sh_gdbarch_init): Set up frame_align method.
474
475 2003-07-31 Michael Snyder <msnyder@redhat.com>
476
477 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
478 which is already covered by the new frames infrastructure.
479
480 2003-07-31 Andrew Cagney <cagney@redhat.com>
481
482 * user-regs.c (struct user_reg): Add "next" link.
483 (struct user_regs): Replace "user" with "first" and "last" links.
484 (append_user_reg): Add pre-allocated "reg" parameter.
485 (builtin_user_regs): Provide initial value for "last".
486 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
487 (user_regs_init): Allocate memory from the gdbarch obstack.
488 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
489 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
490 linked list.
491 (usernum_to_user_reg): New function.
492 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
493 (value_of_user_reg): Use usernum_to_user_reg.
494 (user_regs_free): Delete function.
495 (_initialize_user_regs): Update register_gdbarch_data call.
496
497 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
498
499 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
500
501 2003-07-30 Michael Snyder <msnyder@redhat.com>
502
503 * value.h (value_being_returned): Add a struct_addr argument.
504 * infcall.c (call_function_by_hand): Pass struct_addr to
505 value_being_returned.
506 * infcmd.c (print_return_value): Pass zero as struct_addr.
507 * values.c (value_being_returned): If struct_addr is passed,
508 use it instead of trying to recover it from the inferior.
509
510 2003-07-30 Kevin Buettner <kevinb@redhat.com>
511
512 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
513 the prologue analyzer won't need to attempt to extract the pc
514 value from the woefully incomplete dummy frame.
515 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
516 possible. Disable code which modifies the frame.
517
518 2003-07-28 Andrew Cagney <cagney@redhat.com>
519
520 * annotate.c (annotate_breakpoints_headers): Restrict annotation
521 to level 2.
522 (annotate_breakpoints_table, annotate_record): Ditto.
523 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
524 (annotate_field_name_end, annotate_field_value): Ditto.
525 (annotate_field_end, annotate_frame_source_begin): Ditto.
526 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
527 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
528 (annotate_frame_begin, annotate_frame_function_name): Ditto.
529 (annotate_frame_address_end, annotate_frame_address): Ditto.
530 (annotate_frame_args, annotate_frame_end): Ditto.
531 (annotate_frame_where, annotate_arg_begin): Ditto.
532 (annotate_arg_name_end, annotate_arg_value): Ditto.
533 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
534 (annotate_function_call, annotate_signal_name): Ditto.
535 (annotate_signal_string, annotate_signal_name_end): Ditto.
536 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
537 (annotate_value_begin, annotate_value_history_value): Ditto.
538 (annotate_value_history_end, annotate_value_end): Ditto.
539 (annotate_display_begin, annotate_display_number_end): Ditto.
540 (annotate_display_format, annotate_display_expression): Ditto.
541 (annotate_display_expression_end, annotate_display_value): Ditto.
542 (annotate_display_end, annotate_array_section_begin): Ditto.
543 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
544 (annotate_elt, annotate_array_section_end): Ditto.
545
546 2003-07-28 Andrew Cagney <cagney@redhat.com>
547
548 * regcache.c (struct regcache_descr): Update comments on
549 nr_raw_registers.
550 (init_legacy_regcache_descr): Don't set nr_raw_registers or
551 sizeof_raw_register_valid_p.
552 (init_regcache_descr): Set nr_raw_registers and
553 sizeof_raw_register_valid_p before calling
554 init_legacy_regcache_descr.
555
556 2003-07-28 Andrew Cagney <cagney@redhat.com>
557
558 * mips-tdep.c (print_gp_register_row): Print the GPR's register
559 MOD NUM_REGS.
560
561 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
562
563 * thread.c (info_threads_command): Use get_selected_frame ().
564 Check that there is at least one non-sentinel frame.
565
566 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
567
568 * m68hc11-tdep.c (struct frame_extra_info): Remove.
569 (m68hc11_pop_frame): Remove.
570 (m68hc11_frame_saved_pc): Remove.
571 (m68hc11_frame_chain): Remove.
572 (m68hc11_frame_init_saved_regs): Remove.
573 (m68hc11_init_extra_frame_info): Remove.
574 (m68hc11_store_struct_return): Remove.
575 (m68hc11_saved_pc_after_call): Remove.
576
577 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
578
579 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
580 frame unwind information.
581 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
582 and adapted for frame unwinding.
583 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
584 (m68hc11_unwind_pc): New function.
585 (m68hc11_frame_unwind_cache): New function to analyze frames.
586 (m68hc11_frame_this_id): New function to create new frame struct.
587 (m68hc11_frame_prev_register): New function to unwind a register from
588 the frame.
589 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
590 (m68hc11_frame_p): New function for the above.
591 (m68hc11_frame_base_address): New function to return fp of frame.
592 (m68hc11_frame_args_address): Update for frame.
593 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
594 (m68hc11_unwind_sp): New function.
595 (m68hc11_unwind_dummy_id): New function.
596 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
597 calls.
598
599 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
600
601 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
602 (m68hc11_guess_from_prologue): Advance the pc and frame size only
603 when we are beyond the current pc.
604
605 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
606
607 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
608 from m68hc11_push_arguments.
609 (m68hc11_push_arguments): Remove.
610 (m68hc11_push_return_address): Remove.
611 (m68hc11_gdbarch_init): Install the above; remove above deprecated
612 handlers; remove deprecated_extra_stack_alignment_needed.
613
614 2003-07-27 Andrew Cagney <cagney@redhat.com>
615
616 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
617 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
618 REAL_PC and not the pointer.
619 * hppa-hpux-tdep.c: Include frame.h
620
621 2003-07-27 Andrew Cagney <cagney@redhat.com>
622
623 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
624 GDB_MULTI_ACH_PARTIAL.
625
626 2003-07-27 Andrew Cagney <cagney@redhat.com>
627
628 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
629 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
630 operator at start and not end of line.
631 (decode_prologue): Ditto.
632 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
633 frame_unwind_register_unsigned instead of
634 frame_unwind_unsigned_register.
635 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
636 read_register.
637 (m32r_push_dummy_call): Use register_size instead of
638 REGISTER_RAW_SIZE.
639 (m32r_frame_sniffer): Replace m32r_frame_p.
640 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
641 * m32r-rom.c (report_transfer_performance): Delete extern
642 declaration.
643 (m32r_load, m32r_upload_command): Use print_transfer_performance
644 instead of report_transfer_performance.
645 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
646 / add_show_from_set.
647
648 2003-07-26 Andrew Cagney <cagney@redhat.com>
649
650 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
651 store_return_value and extract_struct_value_address.
652
653 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
654
655 PR c++/1267
656 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
657 NULL, default to the section containing PC.
658
659 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
660
661 * NEWS: Mention "regs" deprecated for m68hc11 too.
662
663 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
664 (m68hc11_print_register): New function to print out one register.
665 (m68hc11_print_registers_info): New function to print registers.
666 (show_regs): Deprecate and use the above.
667 (m68hc11_gdbarch_init): Install the print_registers_info.
668
669 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
670
671 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
672 that we have a SIGTRAP before returning non-zero.
673
674 2003-07-23 Michal Ludvig <mludvig@suse.cz>
675 Elena Zannoni <ezannoni@redhat.com>
676
677 * linespec.c (decode_line_2): Avoid crash if
678 find_function_start_sal() returns empty record.
679
680 2003-07-23 Andreas Schwab <schwab@suse.de>
681
682 * ia64-tdep.c (ia64_print_insn): New function.
683 (ia64_gdbarch_init): Set print_insn to it.
684 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
685 deprecated_tm_print_insn_info.
686
687 2003-07-22 Michael Snyder <msnyder@redhat.com>
688
689 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
690 handle 8-bit returns (long long).
691 (h8300h_extract_return_value): Ditto.
692 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
693
694 2003-07-22 Andrew Cagney <cagney@redhat.com>
695
696 * gdbarch.c Include "gdb_obstack.h".
697 (struct gdbarch): Add an "obstack".
698 (alloc_gdbarch_data): Allocate the gdbarch data using
699 GDBARCH_OBSTACK_CALLOC.
700 (free_gdbarch_data): Delete function.
701 (gdbarch_obstack_zalloc): New function.
702 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
703 Assert that the architecture is not initialized.
704 (gdbarch_alloc): Allocate an obstack, allocate the architecture
705 vector from the obstack.
706 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
707 architecture obstack.
708 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
709 (set_gdbarch_data): Assert that the data is not initialized.
710 (struct gdbarch_data): Delete member "free".
711 (register_gdbarch_data): Do not initialize "free".
712 * gdbarch.h, gdbarch.c: Re-generate.
713
714 2003-07-22 Andrew Cagney <cagney@redhat.com>
715
716 * configure.in (build_warnings): Add -Wformat-nonliteral.
717 * configure: Re-generate.
718
719 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
720
721 * dwarf2loc.c (locexpr_describe_location): Fix typos.
722
723 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
724
725 * findvar.c (read_var_value): Remove case for thread local storage
726 variables. It is now entirely handled by the dwarf2 location
727 expression code.
728 * printcmd.c (address_info): Ditto.
729 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
730 enumeration value.
731 (struct symbol): Remove objfile field, which was used by
732 LOC_THREAD_LOCAL_STATIC only.
733 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
734 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
735 usage of objfile pointer.
736 * dwarf2loc.c (locexpr_describe_location): Add case to handle
737 thread local variables.
738 Add include of objfiles.h.
739 * dwarf2expr.c (execute_stack_op): Add comments about thread local
740 storage variables.
741 * Makefile.in (dwarf2loc.o): Update dependencies.
742
743 2003-07-22 Andrew Cagney <cagney@redhat.com>
744
745 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
746 get_frame_base.
747 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
748 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
749 (struct value): Add opaque declaration.
750 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
751
752 2003-07-21 Andrew Cagney <cagney@redhat.com>
753
754 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
755 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
756
757 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
758
759 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
760 regcache_cooked_read_unsigned instead of read_register.
761 (m68hc11_saved_pc_after_call): Likewise.
762 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
763 instead of write_register.
764 (m68hc11_register_type): New function.
765 (m68hc11_register_virtual_type): Remove.
766 (m68hc11_store_return_value): Convert to use the regcache.
767 (m68hc11_extract_struct_value_address): Likewise.
768 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
769 m68hc11_register_type; undeprecate store_return_value and
770 extract_struct_value_address.
771
772 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
773
774 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
775 and translate to use regcache.
776 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
777
778 2003-07-18 Andrew Cagney <cagney@redhat.com>
779
780 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
781 * gdbarch.h, gdbarch.c: Re-generate.
782 * i386-tdep.c (i386_gdbarch_init): Do not set
783 DWARF2_BUILD_FRAME_INFO.
784 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
785 unconditionally.
786 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
787 DWARF2_BUILD_FRAME_INFO.
788
789 2003-07-18 Andrew Cagney <cagney@redhat.com>
790
791 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
792 * disasm.c (gdb_disassemble_info): Initilize di.arch.
793
794 2003-07-18 Andrew Cagney <cagney@redhat.com>
795
796 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
797 frame_unwind_address_in_block, instead of frame_pc_unwind.
798 (dwarf2_frame_cache): Ditto.
799
800 2003-07-18 Andrew Cagney <cagney@redhat.com>
801
802 * user-regs.h (struct gdbarch): Declare opaque.
803 * ui-out.h (struct ui_file): Declare opaque.
804 * dwarf2-frame.h (struct frame_info): Declare opaque.
805
806 2003-07-18 Kris Warkentin <kewarken@qnx.com>
807
808 * nto-procfs.c: Clean ARI hits. Change #include <..> to
809 #include "...".
810 (procfs_meminfo): Change strerror to safe_strerror.
811 (procfs_can_run): Remove K&R badness.
812
813 2003-07-17 Michael Snyder <msnyder@redhat.com>
814
815 * remote-sim.c: Comment typo fix.
816
817 2003-07-17 Andrew Cagney <cagney@redhat.com>
818
819 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
820 configure.
821 * sparc-tdep.c (sparc_intreg_size): Make non-static.
822 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
823 GDB_MULTI_ARCH_PARTIAL.
824
825 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
826
827 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
828 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
829 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
830
831 2003-07-16 Theodore A. Roth <troth@openavr.org>
832
833 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
834 found.
835 (avr_frame_unwind_cache): Don't unwind FP for main.
836 Update a comment.
837 Save the computed prev_sp.
838 (avr_saved_regs_unwinder): Remove function.
839 (avr_frame_prev_register): Use PC unwind logic from
840 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
841
842 2003-07-16 Andrew Cagney <cagney@redhat.com>
843
844 * frame-base.h (frame_base_p_ftype): Delete definition.
845 (frame_base_append_predicate): Delete declaration.
846 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
847 (frame_unwind_append_predicate): Delete declaration.
848 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
849 (append_predicate): Delete parameter "p".
850 (frame_unwind_append_predicate): Delete function.
851 (frame_unwind_append_sniffer): Update call to append_predicate.
852 (frame_unwind_free): Delete function.
853 (_initialize_frame_unwind): Pass NULL as "free" to
854 register_gdbarch_data.
855 (frame_unwind_init): Append the dummy_frame_sniffer.
856 (frame_unwind_find_by_frame): Simplify.
857 * frame-base.c (struct frame_base_table): Delete field "p".
858 (append_predicate): Delete parameter "p".
859 (frame_base_append_predicate): Delete function.
860 (frame_base_append_sniffer): Update call to append_predicate.
861 (frame_base_free): Delete function.
862 (frame_base_find_by_frame): Simplify.
863 (_initialize_frame_base): Pass NULL as "free" to
864 register_gdbarch_data.
865 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
866 (x86_64_sigtramp_frame_sniffer): Replace
867 "x86_64_sigtramp_frame_p".
868 (x86_64_init_abi): Set the frame unwind sniffers.
869 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
870 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
871 (m68k_gdbarch_init): Set the frame unwind sniffers.
872 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
873 "i386_sigtramp_frame_p".
874 (i386_frame_sniffer): Replace "i386_frame_p".
875 (i386_gdbarch_init): Set the frame unwind sniffers.
876 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
877 (avr_gdbarch_init): Set the frame unwind sniffers.
878 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
879 "alpha_sigtramp_frame_p"
880 (alpha_heuristic_frame_sniffer): Replace
881 "alpha_heuristic_frame_p".
882 (alpha_gdbarch_init): Set the frame unwind sniffers.
883 (alpha_dwarf2_init_abi): Ditto.
884 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
885 "alpha_debug_frame_p".
886 (alpha_mdebug_frame_base_sniffer): Replace
887 "alpha_mdebug_frame_base_p".
888 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
889 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
890 (d10v_gdbarch_init): Set the frame unwind sniffer.
891 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
892 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
893 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
894 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
895 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
896 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
897
898 2003-07-16 Michael Snyder <msnyder@redhat.com>
899
900 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
901 should go thru sh_dsp_register_sim_regno, else the dsp regs
902 will not get the right values.
903
904 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
905
906 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
907 deprecated_store_floating by call to store_typed_floating.
908 (sh_sh4_register_convert_to_raw): Substitute call to
909 deprecated_extract_floating by call to extract_typed_floating.
910
911 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
912
913 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
914
915 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
916
917 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
918 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
919 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
920 as possible.
921 (do_pseudo_register): Remove.
922 (sh_push_dummy_code): New function.
923 (sh64_store_struct_return): Rename from sh_store_struct_return.
924 Only called for sh64 now.
925 (sh_extract_struct_value_address): Regcache'ify.
926 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
927 and accomodate new tasks.
928 (sh64_push_return_address): Rename from sh_push_return_address.
929 Only called for sh64 now.
930 (sh_default_extract_return_value): Rename from sh_extract_return_value.
931 Regcache'ify.
932 (sh3e_sh4_extract_return_value): Regcache'ify.
933 (sh_default_store_return_value): Ditto.
934 (sh3e_sh4_store_return_value): Ditto.
935 (sh_default_register_byte): Remove.
936 (sh_sh4_register_byte): Remove.
937 (sh_default_register_raw_size): Remove.
938 (sh_sh4_register_raw_size): Remove.
939 (sh_register_virtual_size): Remove.
940 (sh_sh3e_register_virtual_type): Remove.
941 (sh_sh3e_register_type): New function.
942 (sh_sh4_register_virtual_type): Remove.
943 (sh_sh4_register_type): New function.
944 (sh_default_register_virtual_type): Remove.
945 (sh_default_register_type): New function.
946 (do_fv_register_info): Add parameters to accomodate call from
947 sh_print_registers_info.
948 (do_dr_register_info): Ditto.
949 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
950 Add parameters to accomodate call from sh_print_registers_info.
951 (sh_do_fp_register): Ditto.
952 (sh64_do_pseudo_register): Call do_dr_register_info,
953 do_fv_register_info and sh_do_fp_register with default parameters.
954 (sh_do_register): Add parameters to accomodate call from
955 sh_print_registers_info.
956 (sh_print_register): Ditto.
957 (sh_print_registers_info): Rename from sh_do_registers_info.
958 Add parameters to be used as gdbarch_print_registers_info
959 implementation. Accomodate removed do_pseudo_register function
960 pointer.
961 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
962 function pointer. Call sh_print_register with default parameters.
963 (sh64_do_registers_info): Call sh_print_registers_info instead of
964 sh_do_registers_info.
965 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
966 detection of deprecated vs. non-deprecated functionality.
967 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
968 function pointer assignments by direct function calls.
969
970 2003-07-15 Andrew Cagney <cagney@redhat.com>
971
972 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
973 (frame_register_unwind, create_new_frame): Ditto.
974 (legacy_get_prev_frame, get_frame_type): Ditto.
975 (get_frame_base_address): Use frame_base_find_by_frame.
976 (get_frame_locals_address): Use frame_base_find_by_frame.
977 (get_frame_args_address): Use frame_base_find_by_frame.
978 * frame-base.h (frame_base_sniffer_ftype): Declare.
979 (frame_base_append_sniffer): Declare.
980 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
981 * frame-base.c (append_predicate): Add a "sniffer" parameter.
982 (frame_base_append_sniffer): New function.
983 (frame_base_append_predicate): Add a NULL sniffer.
984 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
985 (struct frame_base_table): Add "sniffer".
986 (frame_base_free): Free the "sniffer" table.
987 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
988 (frame_unwind_append_sniffer): Declare.
989 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
990 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
991 (struct frame_unwind_table): Add "sniffer", delete "middle".
992 (append_predicate): Add "sniffer" parameter, append the sniffer.
993 (frame_unwind_init): Update append_predicate call.
994 (frame_unwind_append_sniffer): New function.
995 (frame_unwind_append_predicate): Update append_predicate call.
996 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
997
998 2003-07-15 Andrew Cagney <cagney@redhat.com>
999
1000 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1001 before code inhibiting repeated unwind attempts. Add to
1002 commentary on that test's problems.
1003 * blockframe.c (inside_main_func): Look for "main" in the minimal
1004 symbol table.
1005 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1006 identical.
1007
1008 2003-07-15 Andrew Cagney <cagney@redhat.com>
1009
1010 * complaints.c (struct explanation): Define.
1011 (struct complaints): Change type of "explanation" to "struct
1012 explanation".
1013 (symfile_explanations): Convert to a "struct explanation" table.
1014 (vcomplaint): Update.
1015
1016 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1017
1018 * x86-64-linux-nat.c (regmap): Removed.
1019 (supply_gregset, fill_gregset): Call
1020 x86_64_linux_(fill,supply)_gregset functions.
1021 * x86-64-linux-tdep.c (USER_*): New defines.
1022 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1023 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1024 New functions.
1025 (fetch_core_registers): Ditto.
1026 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1027 * x86-64-linux-tdep.h: New file.
1028 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1029 and core-regset.o.
1030 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1031
1032 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1033
1034 * x86-64-tdep.c (x86_64_store_return_value): Use
1035 regcache_cooked_write_part instead of regcache_cooked_write.
1036
1037 * configure.host: Add x86_64-*-freebsd*.
1038 * configure.tgt: Add x86_64-*-freebsd*.
1039 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1040 * amd64fbsd-nat.c: New file.
1041 * amd64fbsd-tdep.c: New file.
1042 * config/i386/nm-fbsd64.h: New file.
1043 * config/i386/fbsd64.mh: New file.
1044 * config/i386/fbsd64.mt: New file.
1045
1046 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1047
1048 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1049 `sc_regs_offset' and `sc_fpregs_offset'.
1050 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1051 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1052 (alpha_sigtramp_register_address): Rewrite to use new members of
1053 `struct gdbarch_tdep'.
1054 (alpha_gdbarch_init): Initialize new members of struct
1055 gdbarch_tdep'.
1056 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1057 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1058 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1059 (alphafbsd_pc_in_sigtramp): Implement.
1060 (alphafbsd_sigtramp_offset): New function.
1061 (alphafbsd_sigcontext_addr): New function.
1062 (alphafbsd_init_abi): Initialize signal trampoline related members
1063 of `struct gdbarch_tdep'.
1064 (_initialize_alphafbsd_tdep): Add prototype.
1065
1066 2003-07-11 Theodore A. Roth <troth@openavr.org>
1067
1068 * Makefile.in (install-only): Quote sed expression when generating
1069 transformed_name.
1070
1071 2003-07-11 Richard Henderson <rth@redhat.com>
1072
1073 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1074 * dwarf2-frame.c: Include complaints.h.
1075 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1076 variable initialization; return NULL on error.
1077 (decode_frame_entry): New.
1078
1079 2003-07-11 Andrew Cagney <cagney@redhat.com>
1080
1081 * frame.h (frame_address_in_block): Delete declaration.
1082 * blockframe.c (frame_address_in_block): Delete function.
1083 (get_frame_block): Use get_frame_address_in_block.
1084 (block_innermost_frame): Ditto.
1085 * stack.c (print_frame, backtrace_command_1): Ditto.
1086
1087 * frame.h (get_frame_address_in_block): Declare.
1088 (frame_unwind_address_in_block): Declare.
1089 * frame.c (frame_unwind_address_in_block): New function.
1090 (get_frame_address_in_block): New function.
1091
1092 2003-07-10 Andrew Cagney <cagney@redhat.com>
1093
1094 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1095 pre-default. Note: re-generate has no effect.
1096
1097 2003-07-10 Andrew Cagney <cagney@redhat.com>
1098
1099 * gdbarch.sh: When a variable, but not a function, compare against
1100 0. Fix problem in previous patch.
1101 * gdbarch.c: Re-generate.
1102
1103 2003-07-10 Andrew Cagney <cagney@redhat.com>
1104
1105 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1106 functions against NULL, not 0.
1107 * gdbarch.c: Re-generate.
1108
1109 2003-07-10 Fred Fish <fnf@ninemoons.com>
1110
1111 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1112 null string instead of a null pointer.
1113 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1114
1115 2003-07-09 Michael Snyder <msnyder@redhat.com>
1116
1117 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1118
1119 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1120
1121 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1122 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1123 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1124 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1125 * x86-64-tdep.c: ... from here.
1126
1127 2003-07-09 Andreas Schwab <schwab@suse.de>
1128
1129 * m68k-tdep.h (enum struct_return): Define.
1130 (struct gdbarch_tdep): Add struct_return.
1131 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1132 bytes are padded to the right, not to the left. Pass struct value
1133 address in register %a1, not on stack.
1134 (m68k_use_struct_convention): New function.
1135 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1136 struct_return in tdep to pcc_struct_return.
1137 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1138 reg_struct_return.
1139
1140 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1141
1142 * somread.c (som_symfile_offsets): Fix compilation error.
1143
1144 2003-07-09 Andrew Cagney <cagney@redhat.com>
1145
1146 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1147 Add comments about the checks.
1148
1149 2003-07-08 Andrew Cagney <cagney@redhat.com>
1150
1151 * Makefile.in: Make dependency section headers consistent.
1152 (config_h): Move to $BUILD headers section.
1153 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1154 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1155 (ada-exp.tab.c): Move to YACC/LEX section.
1156 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1157 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1158
1159 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1160
1161 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1162 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1163 of strerror with safe_strerror, use ISO C function definitions,
1164 and replace instances of sprintf with snprintf.
1165
1166 2003-07-07 Andrew Cagney <cagney@redhat.com>
1167
1168 * frame.c (get_prev_frame): Enable check for identical frames.
1169 Update comments. Update error messages.
1170
1171 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1172
1173 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1174
1175 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1176
1177 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1178 sort_symtab_syms, no longer necessary.
1179
1180 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1181
1182 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1183
1184 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1185
1186 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1187 (mips_register_byte): Likewise.
1188
1189 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1190
1191 * Makefile.in (sparc_tdep_h): New.
1192 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1193 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1194 * sparc-linux-nat.c: Include "sparc-tdep.h".
1195 * sparc-nat.c: Likewise.
1196 * sparc-tdep.c: Likewise.
1197 * sparc64nbsd-nat.c: Likewise.
1198 * sparcnbsd-nat.c: Likewise.
1199 * sparcnbsd-tdep.c: Likewise.
1200 * sparc-tdep.h: New file.
1201 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1202 and sparc_npc_regnum.
1203
1204 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1205
1206 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1207 (mips_linux_cannot_store_register): List supported instead of
1208 unsupported registers.
1209
1210 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1211
1212 * disasm.c (dump_insns): Separate instructions from addresses.
1213
1214 2003-07-07 Andreas Schwab <schwab@suse.de>
1215
1216 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1217 dependencies.
1218 * m68k-tdep.c (NUM_FREGS): Delete.
1219 (SIG_PC_FP_OFFSET): Delete.
1220 (TARGET_M68K): Delete.
1221 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1222 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1223 P_MOVEL_SP, P_MOVEML_SP): Define.
1224 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1225 P_TRAP): Delete.
1226 (m68k_register_raw_size): Delete.
1227 (m68k_register_virtual_size): Delete.
1228 (m68k_register_type): Renamed from m68k_register_virtual_type and
1229 add gdbarch argument.
1230 (m68k_store_struct_return): Delete.
1231 (m68k_deprecated_extract_return_value): Delete.
1232 (m68k_deprecated_extract_struct_value_address): Delete.
1233 (m68k_frame_chain): Delete.
1234 (m68k_frame_saved_pc): Delete.
1235 (m68k_fix_call_dummy): Delete.
1236 (m68k_push_dummy_frame): Delete.
1237 (m68k_pop_frame): Delete.
1238 (m68k_extract_return_value): New function.
1239 (m68k_store_return_value): Rewrite using regcache.
1240 (m68k_extract_struct_value_address): Rewrite using regcache.
1241 (m68k_push_dummy_call): New function.
1242 (struct m68k_frame_cache): Define.
1243 (m68k_alloc_frame_cache): New function.
1244 (m68k_analyze_frame_setup): New function.
1245 (m68k_analyze_register_saves): New function.
1246 (m68k_analyze_prologue): New function.
1247 (m68k_skip_prologue): Rewrite using above functions.
1248 (m68k_unwind_pc): New function.
1249 (m68k_frame_cache): New function.
1250 (m68k_frame_this_id): New function.
1251 (m68k_frame_prev_register): New function.
1252 (m68k_frame_unwind): New variable.
1253 (m68k_frame_p): New function.
1254 (m68k_sigtramp_frame_cache): New function.
1255 (m68k_sigtramp_frame_this_id): New function.
1256 (m68k_sigtramp_frame_prev_register): New function.
1257 (m68k_sigtramp_frame_unwind): New variable.
1258 (m68k_sigtramp_frame_p): New function.
1259 (m68k_frame_base_address): New function.
1260 (m68k_frame_base): New function.
1261 (m68k_unwind_dummy_id): New function.
1262 (fill_gregset): Use regcache_collect.
1263 (fill_fpregset): Likewise.
1264 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1265 defined.
1266 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1267 deprecated_init_frame_pc, deprecated_store_struct_return,
1268 deprecated_extract_return_value, deprecated_store_return_value,
1269 deprecated_frame_chain, deprecated_frame_saved_pc,
1270 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1271 deprecated_register_virtual_size,
1272 deprecated_max_register_raw_size,
1273 deprecated_max_register_virtual_size,
1274 deprecated_register_virtual_type, deprecated_register_size,
1275 deprecated_register_byte, deprecated_register_bytes,
1276 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1277 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1278 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1279 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1280 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1281 deprecated_push_dummy_frame, deprecated_pop_frame,
1282 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1283 only if SYSCALL_TRAP is defined. Set extract_return_value,
1284 store_return_value, extract_struct_value_address, register_type,
1285 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1286 predicates.
1287 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1288 M68K_MAX_REGISTER_SIZE): Define.
1289 (struct m68k_sigtramp_info): Define.
1290 (struct gdbarch_tdep): Add get_sigtramp_info.
1291 * m68klinux-nat.c (fetch_register): Use register_size instead of
1292 REGISTER_RAW_SIZE. Don't put assignment in if.
1293 (store_register): Likewise.
1294 (fetch_inferior_registers): Likewise.
1295 (store_inferior_registers): Likewise.
1296 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1297 (m68k_linux_frame_saved_pc): Delete.
1298 (m68k_linux_sigcontext_reg_offset,
1299 m68k_linux_ucontext_reg_offset): Define.
1300 (m68k_linux_get_sigtramp_info): New function.
1301 (m68k_linux_extract_return_value): Rewrite using regcache.
1302 (m68k_linux_store_return_value): Likewise.
1303 (m68k_linux_extract_struct_value_address): Likewise.
1304 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1305 Don't set deprecated_frame_saved_pc,
1306 deprecated_extract_return_value, deprecated_store_return_value,
1307 deprecated_extract_struct_value_address. Set
1308 extract_return_value, store_return_value,
1309 extract_struct_value_address.
1310
1311 2003-07-07 Andrew Cagney <cagney@redhat.com>
1312
1313 * expprint.c: Include "user-regs.h" instead of "frame.h".
1314 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1315 frame_map_regnum_to_name.
1316 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1317 (frame_map_name_to_regnum): Simplify, call
1318 user_reg_map_name_to_regnum.
1319 (frame_map_regnum_to_name): Simplify, call
1320 user_reg_map_regnum_to_name.
1321 (frame_register_unwind): Update.
1322 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1323 (_initialize_frame_reg): Call user_reg_add_builtin.
1324 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1325 (value_of_register): Use value_of_user_reg.
1326 * eval.c (evaluate_subexp_standard): Update.
1327 * parse.c (write_dollar_variable): Update.
1328 * d10v-tdep.c (d10v_print_registers_info): Update.
1329 * infcmd.c (registers_info): Update.
1330 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1331 (builtin_regs_h): Delete macro.
1332 (user_regs_h): Define.
1333 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1334 (builtin-regs.o): Delete target.
1335 (user-regs.o): Specify dependencies.
1336 (expprint.o): Update dependencies.
1337 (findvar.o): Update dependencies.
1338 (frame.o): Update dependencies.
1339 (std-regs.o): Update dependencies.
1340
1341 2003-07-06 Christopher Faylor <cgf@redhat.com>
1342
1343 * win32-nat.c (solib_symbols_add): Use one variable for all section
1344 address stuff. Pass variable rather than address of variable to
1345 safe_symbol_file_add.
1346
1347 2003-07-06 Andreas Schwab <schwab@suse.de>
1348
1349 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1350
1351 2003-07-04 Joel Brobecker <brobecker@gnat.com>
1352
1353 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1354
1355 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1356
1357 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1358
1359 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1360
1361 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1362 * config/i386/nto.mh: New file.
1363 * config/i386/nm-nto.h: New file.
1364 * configure.host: Add i[3456]86-*-nto*.
1365
1366 2003-07-03 Joel Brobecker <brobecker@gnat.com>
1367
1368 * remote-vx.c (vx_add_symbols): Fix compilation error.
1369
1370 2003-07-03 Andrew Cagney <cagney@redhat.com>
1371
1372 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1373 * gdbarch.h, gdbarch.c: Re-generate.
1374 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1375 (legacy_register_name): Declare.
1376 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1377 (REGISTER_NAME): Define.
1378 * sparc-tdep.c (legacy_register_name): New function.
1379 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1380 (REGISTER_NAME): Define.
1381 (hppa64_register_name): Declare.
1382 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1383 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1384 (hppa64_register_name): New function.
1385 (hppa_register_name): New function.
1386 * arch-utils.c (legacy_register_name): Delete.
1387 * arch-utils.h (legacy_register_name): Delete.
1388
1389 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
1390
1391 * cli/cli-interp.c (cli_interpreter_resume): Update the
1392 cli_uiout's stream to gdb_stdout.
1393
1394 2003-07-03 Andrew Cagney <cagney@redhat.com>
1395
1396 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1397 predicate.
1398 * gdbarch.h, gdbarch.c: Re-generate.
1399 * regcache.c (init_regcache_descr): Use legacy code when either
1400 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1401
1402 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1403
1404 * NEWS: Move "set logging" entry into GDB 6.0 section.
1405
1406 2003-07-02 Jim Blandy <jimb@redhat.com>
1407
1408 * s390-tdep.c (struct frame_extra_info): new member:
1409 'stack_bought_valid'.
1410 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1411 initialize fextra_info->stack_bought.
1412 (s390_frameless_function_invocation): Don't trust the value of
1413 fextra_info_ptr->stack_bought unless
1414 fextra_info->stack_bought_valid is set.
1415
1416 New S390 prologue analyzer.
1417 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1418 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1419 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1420 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1421 compute_x_addr, s390_on_stack, s390_store,
1422 s390_get_signal_frame_info): New functions.
1423 (S390_NUM_SPILL_SLOTS): New macro.
1424 (s390_get_frame_info): Rewritten.
1425 (is_arg_reg): Deleted.
1426
1427 Break out the decoding of S/390 instructions into separate
1428 functions, to make it more legible, and easier to check
1429 against the spec.
1430 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1431 is_rx, is_rxe): New functions.
1432 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1433 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1434 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1435 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1436 enums for opcode values. (Is this an improvement?)
1437
1438 2003-07-02 Andrew Cagney <cagney@redhat.com>
1439
1440 * i386-tdep.c: Revert change committed as part of trad-frame code
1441 below.
1442
1443 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1444
1445 * breakpoint.c (insert_catchpoint): Make static.
1446
1447 2003-07-02 Andreas Schwab <schwab@suse.de>
1448
1449 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1450 former ia64_push_arguments and ia64_push_return_address, and use
1451 regcache functions instead of read/write_register.
1452 (ia64_gdbarch_init): Set push_dummy_call instead of
1453 deprecated_push_arguments and deprecated_push_return_address.
1454
1455 2003-07-01 Andreas Jaeger <aj@suse.de>
1456
1457 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1458 before the call.
1459 Set %rax only to number of SSE registers used.
1460
1461 2003-07-01 Andrew Cagney <cagney@redhat.com>
1462
1463 * trad-frame.h: Update comments, a -1 .addr is reserved.
1464 (trad_frame_value_p, trad_frame_addr_p): Declare.
1465 (trad_frame_reg_p): Declare.
1466 (trad_frame_set_value): Rename trad_frame_register_value.
1467 (trad_frame_set_unknown): Declare.
1468 * trad-frame.c (trad_frame_realreg_p): New function.
1469 (trad_frame_addr_p, trad_frame_value_p): New function.
1470 (trad_frame_set_unknown): New function.
1471 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1472 (trad_frame_prev_register): Use trad_frame_realreg_p,
1473 trad_frame_addr_p and trad_frame_value_p.
1474 (trad_frame_set_value): Rename trad_frame_register_value.
1475 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1476 and trad_frame_set_value.
1477
1478 2003-06-30 Jim Blandy <jimb@redhat.com>
1479
1480 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1481 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1482 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1483 for 16 registers, and then 32 more bytes.
1484 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1485 New macros.
1486 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1487 Move up in the file, since it's now used by is_simple_arg.
1488 (is_simple_arg): Don't assume registers are four bytes long.
1489 Exclude all double arguments. Extended floats are not simple
1490 args.
1491 (is_power_of_two): New function.
1492 (pass_by_copy_ref): Call is_power_of_two, and check that the
1493 length fits in a register, rather than listing all the acceptable
1494 sizes. Extended floats are not passed by reference.
1495 (s390_push_arguments): Don't assume registers are four bytes long.
1496 Reserve an argument register to point to the buffer for structures
1497 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1498 S390_STACK_FRAME_OVERHEAD.
1499
1500 2003-06-30 Andreas Schwab <schwab@suse.de>
1501
1502 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1503 format error message.
1504
1505 2003-06-30 Joel Brobecker <brobecker@gnat.com>
1506
1507 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1508
1509 2003-06-30 David Carlton <carlton@kealia.com>
1510
1511 Band-aid for PR c++/1245.
1512 * Makefile.in (cp-support.o): Depend on complaints_h.
1513 * cp-support.c: Include complaints.h. Add declaration for
1514 find_last_component.
1515 (cp_find_first_component): Separate code into
1516 cp_find_first_component_aux.
1517 (cp_find_first_component_aux): Call demangled_name_complaint.
1518 (demangled_name_complaint): New.
1519
1520 2003-06-30 Andrew Cagney <cagney@redhat.com>
1521
1522 * remote.c (remote_write_bytes): Explicitly compute and then use
1523 the payload size. Update comments to reflect. Fixes problem of
1524 GDB not sending small packets as found by Fred Fish.
1525
1526 2003-06-30 Andrew Cagney <cagney@redhat.com>
1527
1528 * remote.c (remote_async_wait): Fix -Wformat problem.
1529
1530 2003-06-29 Andrew Cagney <cagney@redhat.com>
1531
1532 * remote.c (remote_wait): Call error, and not warning, when the
1533 packet is corrupt.
1534 (remote_async_wait): Ditto.
1535
1536 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1537
1538 * sparc-tdep.c (sparc_y_regnum): Make external again.
1539
1540 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1541
1542 * cli/cli-logging.c (pop_output_files): Add void to function
1543 definition.
1544
1545 2003-06-29 Andrew Cagney <cagney@redhat.com>
1546
1547 * frame.c (frame_register_unwind): Use unsigned char when dumping
1548 the buffer contents.
1549
1550 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1551
1552 * cli/cli-logging.c: New file.
1553 * cli-out.c (struct ui_out_data): Add original_stream.
1554 (cli_redirect): New function.
1555 (cli_ui_out_impl): Add cli_redirect.
1556 (cli_out_new): Initialize original_stream.
1557 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1558 (uo_redirect, ui_out_redirect): New.
1559 * ui-out.h (struct ui_out_impl): Add redirect member.
1560 (redirect_ftype): New.
1561 (ui_out_redirect): Add prototype.
1562 * Makefile.in: Add rules for cli-logging.c.
1563 * NEWS: Mention "set logging".
1564
1565 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1566
1567 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1568
1569 2003-06-27 Andrew Cagney <cagney@redhat.com>
1570
1571 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1572 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1573 * avr-tdep.c (avr_call_dummy_address): Delete function.
1574 (avr_gdbarch_init): Do not set call_dummy_address.
1575
1576 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1577
1578 * symfile.c (syms_from_objfile): Move variables to inner block.
1579 Move the checks for the non-mainline case a bit earlier to avoid
1580 doing some useless computations.
1581
1582 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1583
1584 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1585
1586 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
1587
1588 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1589 sections.
1590
1591 2003-06-26 Michael Chastain <mec@shout.net>
1592
1593 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1594 gdb/testsuite/gdb.c++/pr-1210.exp.
1595
1596 2003-06-26 Andrew Cagney <cagney@redhat.com>
1597
1598 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1599 altivec_expression.h and altivec_registers.h.
1600
1601 2003-06-26 Andrew Cagney <cagney@redhat.com>
1602
1603 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1604 info->mach when MIPS16. Patch suggested by Fred Fish.
1605
1606 2003-06-26 Andrew Cagney <cagney@redhat.com>
1607
1608 * utils.c (internal_vproblem): Print the problem to a reason
1609 buffer and then pass to query. Make the msg variable more local.
1610
1611 2003-06-26 Andrew Cagney <cagney@redhat.com>
1612
1613 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
1614 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
1615 * gdbarch.h, gdbarch.c: Re-generate.
1616 * frame-base.c (default_frame_args_address): Update. Use
1617 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
1618 not available.
1619 (default_frame_locals_address): Ditto for
1620 DEPRECATED_FRAME_LOCALS_ADDRESS.
1621 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
1622 (vax_frame_num_args): Update.
1623 (vax_gdbarch_init): Update.
1624 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1625 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1626 * mcore-tdep.c (mcore_gdbarch_init): Update.
1627 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1628 * ia64-tdep.c (ia64_gdbarch_init): Update.
1629 * symtab.h (address_class): Update comments.
1630 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
1631 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1632 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1633 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1634 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1635 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1636 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1637 * alpha-mdebug-tdep.c: Update.
1638 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
1639
1640 2003-06-26 Andreas Jaeger <aj@suse.de>
1641
1642 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
1643 of SSE registers so that varargs functions work. Rework handling
1644 of passing arguments on the stack.
1645 (x86_64_store_return_value): Return double and float values in SSE
1646 register.
1647
1648 2003-06-24 Michael Chastain <mec@shout.net>
1649
1650 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
1651 the "constructor breakpoints ignored" bug.
1652
1653 2003-06-25 David Carlton <carlton@kealia.com>
1654
1655 * MAINTAINERS: Update e-mail address.
1656
1657 2003-06-24 Jim Blandy <jimb@redhat.com>
1658
1659 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
1660
1661 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
1662 function.
1663 (ppc_linux_init_abi): Register it as the
1664 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
1665
1666 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
1667 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
1668 method.
1669
1670 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
1671 (ppc64_standard_linkage_target): Use it.
1672
1673 2003-06-23 Andrew Cagney <cagney@redhat.com>
1674
1675 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
1676 for 0 "int0" and 4 "int32" sized registers.
1677 * gdbtypes.c (builtin_type_int0): Define.
1678 (build_gdbtypes): Initialize builtin_type_int0.
1679 * gdbtypes.h (builtin_type_int0): Declare.
1680
1681 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
1682
1683 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
1684 as characters are unsigned.
1685
1686 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1687
1688 PR gdb/1179
1689 * dwarfread.c (struct_type): Skip static fields without crashing.
1690
1691 2003-06-22 Andrew Cagney <cagney@redhat.com>
1692
1693 GDB 6.0 branch created.
1694 * README: Update.
1695 * PROBLEMS: Update. Empty.
1696 * NEWS: Update.
1697
1698 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1699
1700 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
1701 Suggested by Nick Hibma <n_hibma@webweaving.org>.
1702
1703 2003-06-22 Andrew Cagney <cagney@redhat.com>
1704
1705 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
1706 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
1707 Velikov.
1708
1709 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1710
1711 * cli/cli-cmds.c (shell_escape): Silence warnings from old
1712 compilers.
1713
1714 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1715
1716 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
1717 argument of val_print.
1718 * cp-valprint.c (cp_print_value): Don't add the offset parameter
1719 to the address argument of baseclass_offset or target_read_memory.
1720 Do add it to the argument of cp_print_value_fields.
1721
1722 2003-06-21 Andrew Cagney <cagney@redhat.com>
1723
1724 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
1725 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
1726 instead of 0..NUM_REGS.
1727 (mips_register_reggroup_p): New function.
1728 (mips_pseudo_register_write): New function.
1729 (mips_pseudo_register_read): New function.
1730 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
1731 based on the register's type.
1732 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
1733 cooked.
1734 (mips_get_saved_register): Simplify. Assert that REGNO is a
1735 pseudo / cooked.
1736 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
1737 (mips_register_type): Replace mips_register_virtual_type. Map
1738 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
1739 when available.
1740 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
1741 that the register is cooked / virtual.
1742 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
1743 Only get the extra info when needed.
1744 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
1745 (mips32_heuristic_proc_desc): Fetch the cooked register.
1746 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
1747 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
1748 (mips_print_register): Use gdbarch_register_type, instead of
1749 REGISTER_VIRTUAL_TYPE.
1750 (print_gp_register_row): Use gdbarch_register_type, instead of
1751 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
1752 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1753 Print the pseudo / cooked registers.
1754 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1755 Print the pseudo / cooked registers.
1756 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
1757 REG_NUM is pseudo / cooked.
1758 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
1759 (mips_n32n64_xfer_return_value): Ditto.
1760 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
1761 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
1762 (mips_register_sim_regno): New function.
1763 (mips_gdbarch_init): Set deprecated_register_byte,
1764 register_group_p, pseudo_register_write, pseudo_register_read,
1765 register_sim_regno, and num_pseudo_regs. Set register_type,
1766 instead of register_virtual_type.
1767 * Makefile.in (mips-tdep.o): Update dependencies.
1768 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
1769 REGISTER_VIRTUAL_TYPE.
1770 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
1771 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
1772 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
1773 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
1774 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
1775
1776 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1777
1778 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
1779 * cli/cli-cmds.c: Include "gdb_vfork.h".
1780 (shell_escape): Use vfork.
1781
1782 2003-06-21 Andrew Cagney <cagney@redhat.com>
1783
1784 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
1785 32 bit floating-point register saves.
1786
1787 * frame.h (deprecated_unwind_get_saved_register): Delete.
1788 * frame.c (deprecated_unwind_get_saved_register): Delete function.
1789 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
1790 and deprecated_get_next_frame_hack instead of
1791 deprecated_unwind_get_saved_register.
1792
1793 * mips-tdep.c (mips_dump_tdep): Do not print
1794 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
1795
1796 * frame.c (get_frame_register): New function.
1797 (frame_unwind_register_signed): New function.
1798 (get_frame_register_signed): New function.
1799 (frame_unwind_register_unsigned): New function.
1800 (get_frame_register_unsigned): New function.
1801 * frame.h: Add comments on naming schema.
1802 (get_frame_register, frame_unwind_register_signed): Declare.
1803 (get_frame_register_signed, get_frame_register_signed): Declare.
1804 (frame_unwind_register_unsigned): Declare.
1805 (get_frame_register_unsigned): Declare.
1806
1807 2003-06-20 Theodore A. Roth <troth@openavr.org>
1808
1809 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
1810
1811 2003-06-20 Theodore A. Roth <troth@openavr.org>
1812
1813 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
1814 (avr_read_sp): Ditto.
1815
1816 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
1817
1818 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
1819 * config/arm/nm-linux.h: Likewise.
1820 * config/arm/tm-linux.h: Likewise.
1821 * config/ia64/nm-linux.h: Likewise.
1822 * config/ia64/tm-ia64.h: Likewise.
1823 * config/s390/tm-linux.h: Likewise.
1824 * config/s390/tm-s390.h: Likewise.
1825 * s390-nat.c: Likewise.
1826 * s390-tdep.c: Likewise.
1827
1828 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
1829 * config/ia64/linux.mt: Likewise.
1830 * config/m68k/linux.mh: Likewise.
1831 * config/mips/linux.mt: Likewise.
1832 * config/powerpc/linux.mh: Likewise.
1833 * config/sh/linux.mt: Likewise.
1834
1835 2003-06-19 Kris Warkentin <kewarken@qnx.com>
1836
1837 * solib.c (solib_open): Change tests for whether to search
1838 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
1839 comments.
1840
1841 2003-06-19 Theodore A. Roth <troth@openavr.org>
1842
1843 * avr-tdep.c (avr_frame_address): Delete function.
1844 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
1845 set_gdbarch_frame_args_address.
1846
1847 2003-06-19 Andrew Cagney <cagney@redhat.com>
1848
1849 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
1850 (REGISTER_CONVERT_FROM_TYPE): Delete.
1851 (mips_register_convert_to_type): Delete declaration.
1852 (mips_register_convert_from_type): Delete declaration.
1853 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
1854 kernel/.
1855
1856 2003-06-19 Michael Snyder <msnyder@redhat.com>
1857
1858 * linux-nat.h: New file.
1859 * linux-nat.c: Include linux-nat.h.
1860 * lin-lwp.c: Include linux-nat.h.
1861 Move struct lwp_info def to linux-nat.h.
1862 * linux-proc.c: Include linux-nat.h.
1863 (linux_make_note_section): Iterate over lwps instead of threads.
1864 (linux_do_thread_registers): Use lwp instead of merged pid.
1865 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
1866 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
1867 Add dependency on linux_nat_h.
1868
1869 2003-06-19 Theodore A. Roth <troth@openavr.org>
1870
1871 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
1872
1873 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1874
1875 * varobj.c (get_type, get_target_type): Use check_typedef.
1876
1877 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1878
1879 * breakpoint.c (insert_catchpoint): Call internal_error.
1880
1881 2003-06-19 Theodore A. Roth <troth@openavr.org>
1882
1883 * avr-tdep.c (avr_push_dummy_code): Delete function.
1884 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
1885
1886 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1887
1888 * arch-utils.c (default_prepare_to_proceed): Remove.
1889 (generic_prepare_to_proceed): Remove.
1890 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
1891 (generic_prepare_to_proceed): Remove prototype.
1892 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
1893 * gdbarch.c: Regenerate.
1894 * gdbarch.h: Regenerate.
1895 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
1896 * hppah-nat.c (hppa_switched_threads): Remove.
1897 * infrun.c (prepare_to_proceed): New static function, copied from
1898 generic_prepare_to_proceed. Remove select_it argument.
1899 (proceed): Call prepare_to_proceed.
1900 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
1901 variables.
1902 (ptrace_wait): Don't set the removed variables.
1903 (hppa_switched_threads): Remove.
1904 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
1905 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
1906 (lin_lwp_prepare_to_proceed): Remove prototype.
1907 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
1908 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
1909
1910 2003-06-18 Theodore A. Roth <troth@openavr.org>
1911
1912 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
1913 trad-frame.h.
1914 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
1915 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
1916 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
1917 (AVR_PROLOGUE_*): Enumerate prologue types.
1918 (struct frame_extra_info): Remove.
1919 (struct avr_unwind_cache): Define.
1920 (avr_write_sp): Delete function.
1921 (avr_read_fp): Ditto.
1922 (avr_init_extra_frame_info): Ditto.
1923 (avr_pop_frame): Ditto.
1924 (avr_frame_saved_pc): Ditto.
1925 (avr_saved_pc_after_call): Ditto.
1926 (avr_push_return_address): Ditto.
1927 (avr_frame_chain): Ditto.
1928 (avr_store_struct_return): Ditto.
1929 (avr_push_arguments): Ditto.
1930 (avr_scan_prologue): Update comments. Changed to set up the info for
1931 cache unwinding. Now returns end of prologue PC.
1932 (avr_skip_prologue): Better handling of functions lacking a prologue
1933 by using avr_scan_prologue.
1934 (avr_scan_arg_moves): New function.
1935 (avr_saved_regs_unwinder): Ditto.
1936 (avr_frame_unwind_cache): Ditto.
1937 (avr_unwind_pc): Ditto.
1938 (avr_frame_this_id): Ditto.
1939 (avr_frame_prev_register): Ditto.
1940 (avr_frame_p): Ditto.
1941 (avr_frame_base_address ): Ditto.
1942 (avr_unwind_dummy_id): Ditto.
1943 (avr_push_dummy_code): Ditto.
1944 (push_stack_item): Ditto.
1945 (pop_stack_item): Ditto.
1946 (avr_push_dummy_call): Ditto.
1947 (struct stack_item): Define.
1948 (avr_frame_unwind): Declare structure.
1949 (avr_frame_base): Ditto.
1950 (avr_gdbarch_init): Remove calls to
1951 set_gdbarch_deprecated_init_frame_pc,
1952 set_gdbarch_deprecated_target_read_fp,
1953 set_gdbarch_deprecated_dummy_write_sp,
1954 set_gdbarch_deprecated_fp_regnum,
1955 set_gdbarch_deprecated_push_arguments,
1956 set_gdbarch_deprecated_push_return_address,
1957 set_gdbarch_deprecated_pop_frame,
1958 set_gdbarch_deprecated_store_struct_return,
1959 set_gdbarch_deprecated_frame_init_saved_regs,
1960 set_gdbarch_deprecated_init_extra_frame_info,
1961 set_gdbarch_deprecated_frame_chain,
1962 set_gdbarch_deprecated_frame_saved_pc,
1963 set_gdbarch_deprecated_saved_pc_after_call.
1964 Add calls to set_gdbarch_push_dummy_call,
1965 set_gdbarch_push_dummy_code,
1966 frame_unwind_append_predicate,
1967 frame_base_set_default,
1968 set_gdbarch_unwind_dummy_id,
1969 set_gdbarch_unwind_pc.
1970 Wrap a long line.
1971
1972 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
1973
1974 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
1975 registers for H8/300S.
1976 (h8300_print_registers_info): Ditto.
1977 (h8300_gdbarch_init): Accommodate register count for H8/300S.
1978
1979 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
1980
1981 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
1982 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1983 (lin_lwp_wait): Likewise. Update comments.
1984 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
1985 (pull_pid_from_list, linux_record_stopped_pid): New.
1986
1987 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
1988
1989 * ada-lang.c (scan_discrim_bound): Name first argument.
1990 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
1991 declared by ALL_BLOCK_SYMBOLS.
1992
1993 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
1994
1995 * ada-tasks.c (find_function_in_inferior): Don't declare it.
1996 ("regcache.h"): Include it.
1997 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
1998
1999 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2000
2001 * NEWS: Mention gdbserver detach change and "disconnect" command.
2002 * infcmd.c (disconnect_command): New function.
2003 (_initialize_infcmd): Add ``disconnect'' command.
2004 * remote.c (remote_async_detach): Delete.
2005 (remote_detach): Merge remote_async_detach.
2006 (remote_disconnect): New.
2007 (init_remote_ops): Set to_disconnect.
2008 (init_remote_cisco_ops): Likewise.
2009 (init_remote_async_ops): Likewise. Use remote_detach.
2010 * target.c (cleanup_target): Default to_disconnect.
2011 (update_current_target): Inherit to_disconnect.
2012 (target_disconnect, debug_to_disconnect): New functions.
2013 (setup_target_debug): Set to_disconnect.
2014 * target.h (struct target_ops): Add to_disconnect.
2015 (target_disconnect): Add prototype.
2016
2017 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2018
2019 * breakpoint.c (insert_catchpoint): New function.
2020 (insert_breakpoints): Use catch_exceptions to call
2021 insert_catchpoint. Disable catchpoints if they fail to insert.
2022
2023 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2024
2025 * symfile.c (reread_symbols): Clear sym_private.
2026
2027 2003-06-17 Andrew Cagney <cagney@redhat.com>
2028
2029 * trad-frame.h (struct frame_info): Add opaque declaration.
2030 * remote-fileio.h (struct cmd_list_element): Add opaque
2031 declaration.
2032 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2033 comments.
2034
2035 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2036
2037 * remote.c (remote_prepare_to_store): Replace call to
2038 deprecated_read_register_bytes with multiple regcache_raw_read
2039 calls.
2040
2041 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2042
2043 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2044 (nto_find_and_open_solib): Likewise.
2045 (nto_init_solib_absolute_prefix): Likewise.
2046 (_initialize_nto_tdep): Fix indentation.
2047
2048 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2049
2050 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2051
2052 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2053
2054 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2055
2056 2003-06-17 Jim Blandy <jimb@redhat.com>
2057
2058 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2059
2060 2003-06-16 Theodore A. Roth <troth@openavr.org>
2061
2062 * avr-tdep.c (avr_extract_return_value): New function.
2063 (avr_gdbarch_init): Set extract_return_value method.
2064
2065 2003-06-16 Andrew Cagney <cagney@redhat.com>
2066
2067 * frame.h (deprecated_get_next_frame_hack): Declare.
2068 * frame.c (legacy_saved_regs_prev_register): Only require
2069 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2070 there are always saved regs.
2071 (deprecated_generic_get_saved_register): Do not require
2072 DEPRECATED_FRAME_INIT_SAVED_REGS.
2073 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2074 use frame ID unwind instead.
2075 (deprecated_get_next_frame_hack): New function.
2076
2077 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2078
2079 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2080 (h8300_push_dummy_call): ...this function. Some minor optimization.
2081 (h8300_push_return_address): Remove.
2082 (h8300_gdbarch_init): Remove calls to
2083 set_gdbarch_deprecated_dummy_write_sp,
2084 set_gdbarch_deprecated_push_arguments and
2085 set_gdbarch_deprecated_push_return_address.
2086 Add call to set_gdbarch_push_dummy_call.
2087
2088 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2089
2090 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2091 (E_PSEUDO_EXR_REGNUM): Ditto.
2092 (h8300_is_argument_spill): Check for instructions moving argument
2093 registers into safe registers.
2094 (h8300_skip_prologue): Check for stm instruction to push registers
2095 used for register variables onto stack.
2096 (gdb_print_insn_h8300): Remove.
2097 (h8300_examine_prologue): Add a comment.
2098 (h8300_register_name): Take pseudo registers into account.
2099 (h8300s_register_name): Ditto.
2100 (h8300sx_register_name): Ditto.
2101 (h8300_print_register): Ditto.
2102 (h8300_print_registers_info): Define "nice" printing order.
2103 (h8300_saved_pc_after_call): Take pseudo registers into account.
2104 (h8300_register_type): Ditto. Return type used for remote connection
2105 when requesting real CCR or EXR register, return actual type when
2106 requesting pseudo CCR or EXR.
2107 (h8300_pseudo_register_read): New function.
2108 (h8300_pseudo_register_write): Ditto.
2109 (h8300_dbg_reg_to_regnum): Ditto.
2110 (h8300s_dbg_reg_to_regnum): Ditto.
2111 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2112 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2113 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2114 set_gdbarch_print_insn architecture dependent.
2115 Call set_gdbarch_pseudo_register_read and
2116 set_gdbarch_pseudo_register_write.
2117 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2118
2119 2003-06-16 Andrew Cagney <cagney@redhat.com>
2120
2121 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2122 * gdbarch.h, gdbarch.c: Re-generate.
2123 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2124 * s390-tdep.c (s390_gdbarch_init): Update.
2125 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2126 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2127 * mips-tdep.c (mips_gdbarch_init): Update.
2128 * mcore-tdep.c (mcore_gdbarch_init): Update.
2129 * cris-tdep.c (cris_gdbarch_init): Update.
2130 * infcall.c (call_function_by_hand): Update.
2131 * ia64-tdep.c (ia64_push_arguments): Update comment.
2132 * frame.c (legacy_get_prev_frame): Do not assume
2133 SAVE_DUMMY_FRAME_TOS_P.
2134 * dummy-frame.c (find_dummy_frame): Update comment.
2135
2136 2003-06-16 Andrew Cagney <cagney@redhat.com>
2137
2138 * regcache.c (do_cooked_read): Do not use register_valid_p.
2139
2140 2003-06-15 Theodore A. Roth <troth@openavr.org>
2141
2142 * avr-tdep.c (avr_register_type): Remove a blank line.
2143 (avr_scan_prologue): Correct some comments.
2144
2145 2003-06-15 Theodore A. Roth <troth@openavr.org>
2146
2147 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2148 prologue types.
2149 Properly scan prologues generated by gcc with the -mcall-prologues
2150 option.
2151 Add code to scan -mcall-prologues for mega devices.
2152
2153 2003-06-15 Theodore A. Roth <troth@openavr.org>
2154
2155 * avr-tdep.c (avr_register_byte): Delete function.
2156 (avr_register_raw_size): Delete function.
2157 (avr_register_virtual_size): Delete function.
2158 (avr_register_virtual_type): Delete function.
2159 (avr_register_type): New function.
2160 (avr_address_to_pointer): Remove unused code.
2161 (avr_read_fp): Need to read FP as two separate bytes due to change to
2162 avr_register_type() usage.
2163 (avr_gdbarch_init): Don't set deprecated_register_size.
2164 Don't set deprecated_register_bytes.
2165 Don't set deprecated_register_byte.
2166 Don't set deprecated_register_raw_size.
2167 Don't set deprecated_max_register_raw_size.
2168 Don't set deprecated_register_virtual_size.
2169 Don't set deprecated_max_register_virtual_size.
2170 Don't set deprecated_register_virtual_type.
2171 Set register_type method.
2172
2173 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2174
2175 * Makefile.in (linux-nat.o): Add rule.
2176 * linux-nat.c: New file.
2177 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2178 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2179 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2180 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2181 * config/arm/linux.mh (NATDEPFILES): Likewise.
2182 * config/i386/linux.mh (NATDEPFILES): Likewise.
2183 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2184 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2185 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2186 * config/mips/linux.mh (NATDEPFILES): Likewise.
2187 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2188 * config/s390/s390.mh (NATDEPFILES): Likewise.
2189 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2190
2191 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2192
2193 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2194 replace out-of-date comment.
2195
2196 2003-06-15 Andrew Cagney <cagney@redhat.com>
2197
2198 * rdi-share/host.h (Fail): Change to a varargs function.
2199 * remote-rdi.c (Fail): Update.
2200
2201 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2202
2203 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2204 (i386_convert_register_p, i386_register_to_value,
2205 i386_register_from_value): Handle types longer than 8 bytes.
2206
2207 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2208
2209 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2210 Move floating-point code to new function in i387-tdep.c.
2211 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2212 New functions containing code moved here from i386-tdep.c.
2213 * i387-tdep.h: Add opaque declaration for `struct type'.
2214 (i387_register_to_value, i387_value_to_register): New prototypes.
2215 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2216 (x86_64_init_abi): Set convert_register_p, register_to_value and
2217 value_to_register here.
2218
2219 2003-06-14 Andrew Cagney <cagney@redhat.com>
2220
2221 * mips-tdep.c (mips_register_to_value): Make static.
2222 (mips_value_to_register): Make static.
2223 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2224 * ia64-tdep.c (ia64_register_raw_size): Make static.
2225 (ia64_register_virtual_size): Make static.
2226 (ia64_register_byte): Make static.
2227 * i387-tdep.c: Include "i387-tdep.h".
2228 (print_387_control_word): Delete function.
2229 (print_387_status_word): Delete function.
2230 (print_387_status_bits): Delete function.
2231 (print_387_control_bits): Delete function.
2232 * Makefile.in (i387-tdep.o): Update dependencies.
2233 * rdi-share/host.h (Fail): Declare.
2234 * remote-rdi.c (Fail): Update to match declaration.
2235
2236 2003-06-14 Andrew Cagney <cagney@redhat.com>
2237
2238 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2239 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2240 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2241 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2242 * README: Delete reference to remote-array.
2243 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2244 (remote-array.o): Delete target.
2245 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2246 * remote-array.c: Delete file.
2247
2248 2003-06-14 Andrew Cagney <cagney@redhat.com>
2249 Mark Kettenis <kettenis@gnu.org>
2250
2251 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2252 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2253 parameter with "frame".
2254 * gdbarch.h, gdbarch.c: Re-generate.
2255 * frame.h (put_frame_register): Declare.
2256 * frame.c (put_frame_register): New function.
2257 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2258 (legacy_register_to_value): Rewrite, use "frame" to get the
2259 register value.
2260 (legacy_value_to_register): Rewrite, use "frame" to find the
2261 register's location before storing.
2262 * arch-utils.h (legacy_convert_register_p): Update.
2263 (legacy_register_to_value, legacy_value_to_register): Update.
2264 * findvar.c (value_from_register): Rewrite, eliminate use of
2265 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2266 "frame" to REGISTER_TO_VALUE.
2267 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2268 lval_reg_frame_relative + lval_register branch of the switch. Do
2269 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2270 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2271 I386_EDI_REGNUM): New defines.
2272 (i386_next_regnum, i386_convert_register_p,
2273 i386_register_to_value, i386_value_to_register): New functions.
2274 (i386_register_convertible, i386_register_convert_to_virtual,
2275 i386_convert_to_raw): Remove functions.
2276 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2277 value_to_register instead of register_convertible,
2278 register_convert_to_virtual and register_convert_to_raw.
2279 * mips-tdep.c (mips_convert_register_p): New function.
2280 (mips_value_to_register): Replace mips_register_convert_from_type.
2281 (mips_register_to_value): Replace mips_register_convert_to_type.
2282 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2283 register_to_value.
2284 * alpha-tdep.c (alpha_convert_register_p): Update.
2285 (alpha_value_to_register): Update, store the register.
2286 (alpha_register_to_value): Update, fetch the register.
2287
2288 2003-06-14 Theodore A. Roth <troth@openavr.org>
2289
2290 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2291 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2292 Don't set deprecated_call_dummy_words.
2293 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2294 Don't set remote_translate_xfer_address.
2295 (avr_io_reg_read_command): Remove commented out debug printf.
2296 Wrap a long line.
2297
2298 2003-06-14 Theodore A. Roth <troth@openavr.org>
2299
2300 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2301 causes gdb to seg fault.
2302
2303 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
2304
2305 * sparc-nat.c (fetch_inferior_registers): Correct
2306 a reference to "registers".
2307
2308 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2309
2310 * Makefile.in (exc_request_U_h): Define
2311 (exc_request_S_h): Likewise.
2312 (msg_reply_S_h): Likewise.
2313 (msg_U_h): Likewise.
2314 (notify_S_h): Likewise.
2315 (process_reply_S_h): Likewise.
2316 (gnu-nat.o): Depend on gdb_obstack_h
2317 * gnu-nat.c: Include "gdb_obstack.h".
2318
2319 2003-06-13 Andrew Cagney <cagney@redhat.com>
2320
2321 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2322 * gdbarch.h, gdbarch.c: Re-generate.
2323
2324 2003-06-13 Andrew Cagney <cagney@redhat.com>
2325
2326 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2327 when deprecated REGISTER macros can be deleted.
2328 * gdbarch.h, gdbarch.c: Re-generate.
2329
2330 2003-06-13 Jim Blandy <jimb@redhat.com>
2331
2332 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2333 Linux entry point symbols for _dl_debug_state, too.
2334
2335 2003-06-13 Andrew Cagney <cagney@redhat.com>
2336
2337 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2338 available, do not use the FP register, and always save the TOS.
2339 * dummy-frame.c (dummy_frame_this_id): Do not assert
2340 SAVE_DUMMY_FRAME_TOS.
2341 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2342 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2343 (i386_push_dummy_call): Add 8 to the returned SP.
2344 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2345 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2346 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2347 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2348 (x86_64_push_dummy_call): Return "sp + 16".
2349 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2350 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2351 save_dummy_frame_tos.
2352
2353 2003-06-13 Jim Blandy <jimb@redhat.com>
2354
2355 * frv-tdep.c (frv_use_struct_convention): Delete static
2356 declaration for function deleted in my change of 2003-06-12.
2357
2358 2003-06-13 Theodore A. Roth <troth@openavr.org>
2359
2360 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2361 (avr_pointer_to_address): Shift code addrs left 1 bit.
2362 (avr_convert_from_func_ptr_addr): Delete function since operation is
2363 better handled by avr_address_to_pointer and avr_pointer_to_address.
2364 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2365
2366 2003-06-13 Mark Kettenis <kettenis@gnu.org>
2367
2368 From Kelley Cook <kelleycook@wideopenwest.com>:
2369 * configure.host: Accept i[34567]86 variants.
2370 * configure.tgt: Likewise.
2371 * nlm/configure.in: Likewise.
2372 * nlm/configure: Regenerated.
2373
2374 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2375
2376 * arm-tdep.c (solib-svr4.h): Dont' include it.
2377 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2378 * arm-linux-tdep.c: ... here. Make static.
2379 (arm_linux_init_abi): Register it.
2380 (solib-svr4.h): Include it.
2381 * Makefile.in: Update dependencies.
2382 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2383 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2384
2385 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2386
2387 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2388 indicate registers used for return values.
2389 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2390 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2391 members.
2392 (h8300_init_extra_frame_info): Ditto.
2393 (h8300_frame_locals_address): Removed.
2394 (h8300_frame_args_address): Removed.
2395 (h8300_extract_return_value): Use new regcache structure. Only care
2396 for 16 bit CPUs.
2397 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2398 (h8300_store_return_value): Use new regcache structure. Only care
2399 for 16 bit CPUs.
2400 (h8300h_store_return_value): Same function for 32 bit CPUs.
2401 (h8300_store_struct_return): Removed.
2402 (h8300_extract_struct_value_address): Use new regcache structure.
2403 (h8300h_extract_struct_value_address): Removed.
2404 (h8300_push_dummy_code): New function.
2405 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2406 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2407 set_gdbarch_store_return_value architecture dependent.
2408 Call set_gdbarch_push_dummy_code and
2409 set_gdbarch_extract_struct_value_address.
2410 Remove calls to set_gdbarch_frame_args_address,
2411 set_gdbarch_frame_locals_address,
2412 set_gdbarch_deprecated_store_struct_return,
2413 set_gdbarch_deprecated_extract_return_value,
2414 set_gdbarch_deprecated_extract_struct_value_address,
2415 set_gdbarch_deprecated_call_dummy_words and
2416 set_gdbarch_deprecated_sizeof_call_dummy_words.
2417
2418 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2419
2420 * h8300-tdep.c (h8300_register_byte): Remove.
2421 (h8300h_register_byte): Remove.
2422 (h8300_register_virtual_type): Remove. Substitute by...
2423 (h8300_register_type): New function.
2424 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2425 (h8300h_extract_struct_value_address): Ditto.
2426 (h8300_gdbarch_init): Drop calls to
2427 set_gdbarch_deprecated_register_byte and
2428 set_gdbarch_deprecated_register_virtual_type.
2429 Add call to set_gdbarch_register_type.
2430
2431 2003-06-13 Andrew Cagney <cagney@redhat.com>
2432
2433 * gdbarch.sh: Update comments on registers.
2434 (deprecated_register_byte): Rename register_byte.
2435 (deprecated_register_raw_size): Rename register_raw_size.
2436 (deprecated_register_virtual_size): Rename register_virtual_size.
2437 (deprecated_register_virtual_type): Rename register_virtual_type.
2438 * gdbarch.h, gdbarch.c: Re-generate.
2439 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2440 * vax-tdep.c (vax_gdbarch_init): Update.
2441 * v850-tdep.c (v850_gdbarch_init): Update.
2442 * sparc-tdep.c (sparc_gdbarch_init): Update.
2443 * sh-tdep.c (sh_gdbarch_init): Update.
2444 * s390-tdep.c (s390_gdbarch_init): Update.
2445 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2446 * ns32k-tdep.c: Update.
2447 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2448 * mips-tdep.c (mips_gdbarch_init): Update.
2449 * mcore-tdep.c (mcore_gdbarch_init): Update.
2450 * m68k-tdep.c (m68k_gdbarch_init): Update.
2451 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2452 * ia64-tdep.c (ia64_gdbarch_init): Update.
2453 * hppa-tdep.c (hppa_gdbarch_init): Update.
2454 * h8300-tdep.c (h8300_gdbarch_init): Update.
2455 * frv-tdep.c (frv_gdbarch_init): Update.
2456 * cris-tdep.c (cris_gdbarch_init): Update.
2457 * avr-tdep.c (avr_gdbarch_init): Update.
2458 * alpha-tdep.c (alpha_gdbarch_init): Update.
2459 * arm-tdep.c (arm_gdbarch_init): Update.
2460
2461 2003-06-13 Andrew Cagney <cagney@redhat.com>
2462
2463 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2464 mips_o32_use_struct_convention with always_use_struct_convention.
2465
2466 2003-06-12 David Carlton <carlton@kealia.com>
2467
2468 * cp-namespace.c (cp_set_block_scope): Comment out
2469 processing_has_namespace_info branch.
2470
2471 2003-06-12 Jim Blandy <jimb@redhat.com>
2472
2473 Recognize and skip 64-bit PowerPC Linux linkage functions.
2474 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2475 insn_pattern, insns_match_pattern, d_field, ds_field): New
2476 functions, macros, and types for working with PPC instructions.
2477 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2478 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2479 ppc64_skip_trampoline_code): New functions, variables, and macros
2480 for recognizing and skipping linkage functions.
2481 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2482 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2483
2484 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2485 register offsets for both the 32- and 64-bit interfaces.
2486
2487 Actually finish the job started by my change of 2003-05-29.
2488 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2489 other #definition of this.
2490 (ppc_linux_skip_trampoline_code): Remove declaration.
2491 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2492 static.
2493 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2494 method for GDBARCH.
2495
2496 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2497 'long' on ppc64-*-linux*.
2498
2499 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2500 isn't #defined, assume the register doesn't exist: act as if
2501 tdep->ppc_mq_regnum were -1.
2502
2503 * configure.host, configure.tgt: Add entries for
2504 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2505 powerpc/linux.mt.
2506 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2507 New files.
2508
2509 * arch-utils.c (always_use_struct_convention): New function.
2510 * arch-utils.h (always_use_struct_convention): New prototype.
2511 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2512 (alpha_gdbarch_init): Register always_use_struct_convention,
2513 instead of alpha_use_struct_convention.
2514 * cris-tdep.c (cris_use_struct_convention): Delete.
2515 (cris_gdbarch_init): Register always_use_struct_convention,
2516 instead of cris_use_struct_convention.
2517 * frv-tdep.c (frv_use_struct_convention): Delete.
2518 (frv_gdbarch_init): Register always_use_struct_convention,
2519 instead of frv_use_struct_convention.
2520 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2521 (h8300_gdbarch_init): Register always_use_struct_convention,
2522 instead of h8300_use_struct_convention.
2523 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
2524 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2525 instead of mips_o32_use_struct_convention.
2526
2527 2003-06-12 Andrew Cagney <cagney@redhat.com>
2528
2529 * wince.c: Include "mips-tdep.h".
2530 * mips-tdep.h (mips_next_pc): Declare.
2531 * mcore-tdep.c: Make more local functions static.
2532 * Makefile.in (wince.o): Update dependencies.
2533
2534 2003-06-12 David Carlton <carlton@kealia.com>
2535
2536 * symtab.c (lookup_symbol_aux_minsyms): Replace
2537 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2538 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2539 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2540 SYMBOL_NATURAL_NAME.
2541
2542 2003-06-12 Andreas Schwab <schwab@suse.de>
2543
2544 * Makefile.in (tuiDisassem.o): Update dependencies.
2545
2546 2003-06-12 David Carlton <carlton@bactrian.org>
2547
2548 * symtab.h: Delete declaration of make_symbol_overload_list.
2549 Add declaration of lookup_partial_symbol.
2550 * symtab.c (remove_params): Move to cp-support.c.
2551 (overload_list_add_symbol, make_symbol_overload_list)
2552 (sym_return_val_size, sym_return_val_index): Ditto.
2553 (lookup_partial_symbol): Make extern.
2554 * cp-support.h: Add declaration of make_symbol_overload_list.
2555 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2556 symtab.h, and block.h.
2557 (remove_params): Move here from symtab.c.
2558 (overload_list_add_symbol, make_symbol_overload_list)
2559 (sym_return_val_size, sym_return_val_index): Ditto.
2560 * valops.c: Include cp-support.h.
2561 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2562 frame_h, and block_h.
2563 (valops.o): Depend on cp_support_h.
2564
2565 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
2566
2567 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2568 substitute by NUM_REGS throughout.
2569 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2570 (h8300s_register_name): New function for H8S registers.
2571 (h8300sx_register_name): Ditto for H8SX registers.
2572 (h8300_print_register): Revise register printing, avoid depending
2573 on 32 bit long.
2574 (h8300_register_byte): Only care for H8/300 registers.
2575 (h8300h_register_byte): New function for any other architecture.
2576 (h8300_register_raw_size): Remove.
2577 (h8300_register_virtual_type): Revise to return actually useful
2578 type.
2579 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2580 (h8300h_extract_struct_value_address): New function for any other
2581 architecture.
2582 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2583 set_gdbarch_register_name, set_gdbarch_register_byte,
2584 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2585 Remove calls to set_gdbarch_deprecated_register_size,
2586 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2587 set_gdbarch_deprecated_max_register_raw_size,
2588 set_gdbarch_register_virtual_size and
2589 set_gdbarch_deprecated_max_register_virtual_size entirely.
2590 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2591 set_gdbarch_long_double_bit.
2592
2593 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2594
2595 * doublest.c (convert_doublest_to_floatformat): When dealing
2596 with the implied integer bit, only alter mant_bits if we are
2597 processing a full 32 bits of mantissa.
2598
2599 2003-06-11 David Carlton <carlton@bactrian.org>
2600
2601 * dictionary.h: New.
2602 * dictionary.c: New.
2603 * block.h: Add opaque declaration for struct dictionary.
2604 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2605 'sym' members.
2606 (BLOCK_DICT): New macro.
2607 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2608 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2609 BLOCK_SHOULD_SORT.
2610 (ALL_BLOCK_SYMBOLS): Update definition.
2611 * Makefile.in (SFILES): Add dictionary.c.
2612 (dictionary_h): New.
2613 (COMMON_OBS): Add dictionary.o.
2614 (dictionary.o): New.
2615 (ada-lang.o): Depend on dictionary_h.
2616 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
2617 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
2618 (mi-cmd-stack.o): Ditto.
2619 (gdbtk-cmds.o): Update dependencies.
2620 (gdbtk-stack.o): Ditto.
2621 * ada-lang.c: Include dictionary.h.
2622 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
2623 (fill_in_ada_prototype, debug_print_block): Ditto.
2624 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
2625 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
2626 'is_sorted'.
2627 * mdebugread.c: Include dictionary.h.
2628 (struct parse_stack): Delete 'maxsyms' member.
2629 (parse_symbol): Update calls to new_block. Delete calls to
2630 shrink_block. Use dictionary methods.
2631 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
2632 Update calls to new_symtab. Don't maintain maxsyms data.
2633 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
2634 (add_symbol): Just call dict_add_symbol.
2635 (new_symtab): Delete 'maxsyms' argument.
2636 (new_symtab): Update calls to new_block.
2637 (new_block): Delete 'maxsyms' argument; add 'function' argument.
2638 (shrink_block): Delete function.
2639 (fixup_sigtramp): Update call to new_block. Add symbol via
2640 dict_add_symbol.
2641 * jv-lang.c: Include dictionary.h.
2642 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
2643 appropriately. Set class_symtab->free_func. Make sure the
2644 blockvector is big enough to hold two blocks.
2645 (add_class_symtab_symbol): Use dictionary methods.
2646 (free_class_block): New function.
2647 (type_from_class): Replace explicit iteration by
2648 ALL_BLOCK_SYMBOLS.
2649 * symtab.h (struct symtab): Replace 'free_ptr' method by
2650 'free_func'.
2651 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
2652 sort_symtab_syms.
2653 * dwarfread.c (psymtab_to_symtab_1): Delete call to
2654 sort_symtab_syms.
2655 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
2656 Include dictionary.h.
2657 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
2658 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
2659 sort_symtab_syms.
2660 * objfiles.c: Include dictionary.h.
2661 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
2662 * buildsym.c: Include dictionary.h.
2663 (finish_block): Use dictionary methods.
2664 (end_symtab): Set free_func to NULL, not free_ptr.
2665 * tracepoint.c: Include dictionary.h.
2666 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
2667 (scope_info): Ditto.
2668 * stack.c: Include dictionary.h.
2669 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
2670 (print_block_frame_labels, print_frame_arg_vars)
2671 (print_frame_args): Ditto.
2672 * symmisc.c (free_symtab_block): Use dictionary methods.
2673 (dump_symtab): Ditto.
2674 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
2675 Include dictionary.h.
2676 * symfile.h: Delete declarations of sort_block_syms,
2677 sort_symtab_syms.
2678 * symfile.c (sort_block_syms): Delete.
2679 (sort_symtab_syms): Delete.
2680 * symtab.c: Include dictionary.h.
2681 (lookup_block_symbol): Use dictionary iterators.
2682 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
2683 (search_symbols, make_symbol_completion_list): Ditto.
2684 (make_symbol_overload_list): Ditto.
2685 * valops.c (value_of_local): Use dict_empty.
2686 Include dictionary.h.
2687
2688 2003-06-11 J. Brobecker <brobecker@gnat.com>
2689
2690 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
2691
2692 2003-06-11 David Carlton <carlton@bactrian.org>
2693
2694 * block.h (BLOCK_SHOULD_SORT): Delete.
2695 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
2696 blocks.
2697 * ada-lang.c (ada_add_block_symbols): Ditto.
2698 * symfile.c (sort_block_syms): Delete.
2699 (sort_symtab_syms): Ditto.
2700 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
2701 declarations.
2702 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
2703 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
2704 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
2705 * dwarfread.c (psymtab_to_symtab_1): Ditto.
2706 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
2707 * mdebugread.c (psymtab_to_symtab_1): Ditto.
2708 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2709
2710 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2711
2712 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
2713 bits to 128.
2714
2715 2003-06-11 Andrew Cagney <cagney@redhat.com>
2716
2717 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2718 REGISTER_CONVERTIBLE.
2719 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
2720 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
2721 * gdbarch.h, gdbarch.c: Re-generate.
2722 * arch-utils.h (deprecated_register_convertible_not): Rename
2723 generic_register_convertible_not.
2724 * arch-utils.c (deprecated_register_convertible_not): Rename
2725 generic_register_convertible.
2726 (legacy_convert_register_p, legacy_register_to_value): Update.
2727 * sh-tdep.c (sh64_push_arguments): Update.
2728 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
2729 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
2730 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
2731 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
2732 * arch-utils.c (legacy_value_to_register): Update.
2733 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2734 (rs6000_register_convert_to_raw): Make parameter "from" const.
2735 * mips-tdep.c (mips_gdbarch_init): Update.
2736 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
2737 * infcmd.c (default_print_registers_info): Update.
2738 * ia64-tdep.c (ia64_gdbarch_init): Update.
2739 (ia64_register_convert_to_raw): Make parameter "from" const.
2740 * i386-tdep.c (i386_gdbarch_init): Update.
2741 (i386_register_convert_to_raw): Update.
2742
2743 2003-06-11 Andrew Cagney <cagney@redhat.com>
2744
2745 * remote-fileio.c: Include "remote-fileio.h".
2746 * Makefile.in (remote-fileio.o): Update dependencies.
2747 (remote_fileio_h): Fix typo.
2748
2749 2003-06-11 Andrew Cagney <cagney@redhat.com>
2750
2751 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
2752 (xstormy16_save_dummy_frame_tos): Make static.
2753 (_initialize_xstormy16_tdep): Add declaration.
2754 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
2755 * v850-tdep.c: Make local functions static.
2756 (_initialize_v850_tdep): Add declaration.
2757 * sparc-tdep.c: Make local functions static.
2758 (_initialize_sparc_tdep): Add declaration.
2759 * sh-tdep.c: Make local functions static.
2760 (_initialize_sh_tdep): Add declaration.
2761 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
2762 * s390-tdep.c: Make local functions static.
2763 (_initialize_s390_tdep): Add declaration.
2764 * dbxread.c (find_stab_function_addr): Make static.
2765 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
2766 * ocd.c (_initialize_remote_ocd): Add declaration.
2767 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
2768 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
2769 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
2770 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
2771 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
2772 * remote-array.c (_initialize_array): Add declaration.
2773 (_initialize_remote_monitors): Add declaration.
2774 * remote-mips.c: Make local functions static.
2775 (_initialize_remote_mips): Add declaration.
2776 * mcore-tdep.c: Make all local functions static.
2777 (_initialize_mcore_tdep): Add declaration.
2778 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
2779 * abug-rom.c (_initialize_abug_rom): Add declaration.
2780 * rom68k-rom.c (_initialize_rom68k): Add declaration.
2781 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
2782 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
2783 * remote-est.c (_initialize_est): Add declaration.
2784 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
2785 (m68hc11_call_dummy_address): Make static.
2786 * ia64-tdep.c: Make local functions static.
2787 (_initialize_ia64_tdep): Add declaration.
2788 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
2789 * monitor.c (monitor_wait_filter): Make static.
2790 (_initialize_remote_monitors): Add declaration.
2791 * remote-hms.c (_initialize_remote_hms): Add declaration.
2792 * remote-e7000.c (fetch_regs_from_dump): Make static.
2793 (expect_n): Make static.
2794 (_initialize_remote_e7000): Add declaration.
2795 * ser-e7kpc.c: Always include "defs.h".
2796 (_initialize_ser_e7000pc): Add declaration.
2797 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
2798 * cris-tdep.c: Make all but one function static.
2799 (_initialize_cris_tdep): Add declaration.
2800 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
2801 * solib.c (update_solib_list): Make static.
2802 (_initialize_solib): Add declaration.
2803 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
2804 (_initialize_avr_tdep): Add declaration.
2805 * remote-rdi.c (voiddummy): Make static.
2806 (_initialize_remote_rdi): Add declaration.
2807 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
2808 * remote-rdp.c (send_rdp): Make static.
2809 (_initialize_remote_rdp): Add declaration.
2810 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
2811
2812 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
2813
2814 * remote-fileio.c: Make ari happy.
2815
2816 2003-06-10 J. Brobecker <brobecker@gnat.com>
2817
2818 * rs6000-nat.c (child_xfer_memory): Compute the right address when
2819 fetching the trailing bytes of the buffer we are about to write.
2820
2821 2003-06-10 Andrew Cagney <cagney@redhat.com>
2822
2823 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
2824 * Makefile.in (remote-fileio.o): Update dependencies.
2825 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
2826 include <setjmp.h>, or <sys/types.h> conditional on USG.
2827 (remote_fio_jmp_buf): Delete global variable.
2828
2829 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
2830 Martin M. Hunt <hunt@redhat.com>
2831
2832 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
2833 (SFILES): Add remote-fileio.c.
2834 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
2835 dependencies for building remote.o.
2836 * remote-fileio.c: New file implementing the remote File-I/O protocol.
2837 * remote-fileio.h: New header file defining remote File-I/O interface.
2838 * remote.c (remote_write_bytes, remote_read_bytes): Remove
2839 static storage class.
2840 (remote_wait, remote_async_wait): Call remote_fileio_request() on
2841 'F' packet.
2842 (_initialize_remote): Call initialize_remote_fileio().
2843 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
2844 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2845 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2846 (captured_main): Initialize new ui_files.
2847 * ui-file.c: Add read and fgets input functions.
2848 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
2849 (null_file_read): New function.
2850 (ui_file_read): New function.
2851 (set_ui_file_read): New function.
2852 (stdio_file_read): New function.
2853 * ui-file.h: New type ui_file_read_ftype.
2854 (set_ui_file_read): Declare.
2855 (ui_file_read): Declare.
2856
2857 2003-06-09 Andrew Cagney <cagney@redhat.com>
2858
2859 * frame.h (deprecated_unwind_get_saved_register): Rename
2860 generic_unwind_get_saved_register, update comments.
2861 * mips-tdep.c (mips_get_saved_register): Update.
2862 * frame.c (deprecated_unwind_get_saved_register): Update.
2863
2864 2003-06-09 Andrew Cagney <cagney@redhat.com>
2865
2866 * vax-tdep.c (vax_frame_locals_address): Delete function.
2867 (vax_gdbarch_init): Do not set frame_locals_address.
2868 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
2869 (m68hc11_gdbarch_init): Do not set frame_locals_address.
2870 * s390-tdep.c (s390_frame_args_address): Delete function.
2871 (s390_gdbarch_init): Do not set frame_args_address or
2872 frame_locals_address.
2873 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
2874 (ns32k_gdbarch_init): Do not set frame_locals_address.
2875 * hppa-tdep.c (hppa_frame_args_address): Delete function.
2876 (hppa_frame_locals_address): Delete function.
2877 (hppa_gdbarch_init): Do not set frame_args_address, or
2878 frame_locals_address.
2879 * arm-tdep.c (arm_frame_args_address): Delete.
2880 (arm_frame_locals_address): Delete.
2881 (arm_gdbarch_init): Do not set frame_args_address, or
2882 frame_locals_address.
2883
2884 2003-06-09 Andrew Cagney <cagney@redhat.com>
2885
2886 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
2887 * gdbarch.h, gdbarch.c: Re-generate.
2888 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
2889 * arch-utils.c (frame_num_args_unknown): Delete function.
2890 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
2891 (frame_info): Use FRAME_NUM_ARGS_P.
2892 * arm-tdep.c (arm_frame_num_args): Delete function.
2893 (arm_gdbarch_init): Do not set frame_num_args.
2894 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
2895 * hppa-tdep.c (hppa_frame_num_args): Delete function.
2896 (hppa_gdbarch_init): Do not set frame_num_args.
2897 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
2898 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2899 frame_num_args to default frame_num_args_unknown.
2900 * v850-tdep.c (v850_gdbarch_init): Ditto.
2901 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2902 * sh-tdep.c (sh_gdbarch_init): Ditto.
2903 * s390-tdep.c (s390_gdbarch_init): Ditto.
2904 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2905 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2906 * mips-tdep.c (mips_gdbarch_init): Ditto.
2907 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2908 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2909 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2910 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2911 * i386-tdep.c (i386_gdbarch_init): Ditto.
2912 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2913 * frv-tdep.c (frv_gdbarch_init): Ditto.
2914 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2915 * cris-tdep.c (cris_gdbarch_init): Ditto.
2916 * avr-tdep.c (avr_gdbarch_init): Ditto.
2917 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2918
2919 2003-06-09 Andrew Cagney <cagney@redhat.com>
2920
2921 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
2922 (print_frame_args): Moved to "stack.c".
2923 * stack.c: Include "gdb_assert.h".
2924 (print_frame_nameless_args): Moved from "printcmd.c", made static.
2925 (print_frame_args): Moved from "printcmd.c".
2926 * frame.h (print_frame_args): Delete declaration.
2927 * Makefile.in (stack.o): Update dependencies.
2928
2929 2003-06-08 Andrew Cagney <cagney@redhat.com>
2930
2931 * frame.c (get_prev_frame): Remove reference to
2932 frame_args_address_correct in comments.
2933 * frame-base.c (default_frame_args_address): Delete code
2934 conditional on FRAME_ARGS_ADDRESS_CORRECT.
2935 * vax-tdep.c (vax_frame_args_address_correct): Delete.
2936 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
2937 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
2938 (vax_frame_args_address_correct): Delete declaration.
2939
2940 2003-06-08 Andrew Cagney <cagney@redhat.com>
2941
2942 * gdbarch.sh (UNWIND_SP): Add.
2943 * gdbarch.h, gdbarch.c: Re-generate.
2944 * frame.c (frame_sp_unwind): New function.
2945 (get_frame_sp): New function.
2946 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
2947 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
2948 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
2949 value.
2950 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
2951 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
2952
2953 2003-06-08 Andrew Cagney <cagney@redhat.com>
2954
2955 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
2956 REMOTE_BREAKPOINT.
2957 * remote.c: Update.
2958 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
2959 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
2960 * config/m68k/tm-sun3.h: Update.
2961 * config/m68k/tm-m68klynx.h: Update.
2962 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
2963
2964 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
2965 trad_frame". Update comments.
2966 * d10v-tdep.c (struct d10v_unwind_cache): Update.
2967 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
2968 (trad_frame_register_value, trad_frame_prev_register): Update.
2969
2970 2003-06-08 Andrew Cagney <cagney@redhat.com>
2971
2972 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
2973 from GCC's acinclude.m4.
2974 * configure.in: Check for getopt's delcaration.
2975 * aclocal.m4, config.in, configure: Re-generate.
2976 * main.c (error_init): Delete declaration.
2977 * defs.h (error_init): Declare.
2978 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
2979 (rs6000_convert_from_func_ptr_addr): Make static.
2980 (_initialize_rs6000_tdep): Add declaration.
2981 * cli/cli-cmds.c (dont_repeat): Delete declaration.
2982 (show_commands, set_verbose, show_history): Delete declaration.
2983 * top.h (set_verbose): Add declaration.
2984 (show_history, set_history, show_commands): Add declaration.
2985 (do_restore_instream_cleanup): Add declaration.
2986 * objc-lang.c (specialcmp): Make static.
2987 (print_object_command): Make static.
2988 (find_objc_msgsend): Make static.
2989 (find_objc_msgcall_submethod_helper): Make static.
2990 (find_objc_msgcall_submethod): Make static.
2991 (_initialize_objc_language): Add declaration.
2992 (find_implementation_from_class): Make static.
2993 (find_implementation): Make static.
2994 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
2995 * objc-lang.h (lookup_struct_typedef): Add declaration.
2996 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
2997 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
2998 (do_restore_user_call_depth): Make static.
2999 (do_restore_instream_cleanup): Delete declaration.
3000 (dont_repeat): Delete declaration.
3001 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3002 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3003 * reggroups.c (_initialize_reggroup): Add declaration.
3004 * cp-support.c (_initialize_cp_support): Add declaration.
3005 * cp-abi.c (_initialize_cp_abi): Add declaration.
3006 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3007 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3008 (_initialize_gnu_v3_abi): Add declaration.
3009 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3010 (_initialize_gnu_v2_abi): Add declaration.
3011 * frame-base.c (_initialize_frame_base): Add declaration.
3012 * doublest.c (floatformat_from_length): Make static.
3013 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3014 * frame.c (create_sentinel_frame): Make static.
3015 (_initialize_frame): Add declaration.
3016 * top.c (do_catch_errors): Make static.
3017 (gdb_rl_operate_and_get_next_completion): Make static.
3018 * typeprint.c: Include "typeprint.h".
3019 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3020 (sentinel_frame_this_id): Make static.
3021 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3022 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3023 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3024 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3025 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3026 * maint.c (maintenance_print_architecture): Make static.
3027 * signals/signals.c (_initialize_signals): Add declaration.
3028 * std-regs.c (_initialize_frame_reg): Add declaration.
3029 * jv-exp.y (push_variable): ISO C definition.
3030 (push_qualified_expression_name): Ditto.
3031 * memattr.c (_initialize_mem): Add declaration.
3032 * remote.c (remote_check_watch_resources): Make static.
3033 (remote_stopped_by_watchpoint): Make static.
3034 (remote_stopped_data_address): Make static.
3035 * d10v-tdep.c (nr_dmap_regs): Make static.
3036 (a0_regnum): Make static.
3037 (d10v_frame_unwind_cache): Make static.
3038 (d10v_frame_p): Make static.
3039 * osabi.c (show_osabi): Make static.
3040 (_initialize_gdb_osabi): Add extern declaration.
3041 * gdbtypes.c (make_qualified_type): Make static.
3042 (safe_parse_type): Make static.
3043 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3044 * macrotab.c (macro_bcache_free): Make static.
3045 * interps.c (interp_set_quiet): Make static.
3046 (interpreter_exec_cmd): Make static.
3047 * stack.h (select_frame_command): New file.
3048 * stack.c: Include "stack.h".
3049 (select_frame_command_wrapper): Delete function.
3050 (select_frame_command): Make global.
3051 * infcall.c: Include "infcall.h".
3052 * linespec.c: Include "linespec.h".
3053 * symfile.c (sections_overlap): Make static.
3054 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3055 * charset.c (_initialize_charset): Add missing prototype.
3056 * regcache.c (init_legacy_regcache_descr): Make static.
3057 (do_regcache_xfree): Make static.
3058 (regcache_xfer_part): Make static.
3059 (_initialize_regcache): Add missing prototype.
3060 * breakpoint.c (parse_breakpoint_sals): Make static.
3061 (breakpoint_sals_to_pc): Make static.
3062 * interps.h (clear_interpreter_hooks): ISO C declaration.
3063 * Makefile.in (stack_h): Define.
3064 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3065 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3066
3067 2003-06-08 Andrew Cagney <cagney@redhat.com>
3068
3069 * Makefile.in (d10v-tdep.o): Update dependencies.
3070 (SFILES): Add trad-frame.c.
3071 (trad_frame_h): Define.
3072 (COMMON_OBS): Add trad-frame.o.
3073 (trad-frame.o): Specify dependencies.
3074 * d10v-tdep.c: Include "trad-frame.h".
3075 (saved_regs_unwinder): Delete function.
3076 (d10v_frame_prev_register): Use trad_frame_prev_register.
3077 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3078 trad_frame", delete "regs" and "prev_sp".
3079 (prologue_find_regs): Use trad-frame.
3080 * trad-frame.h, trad-frame.c: New files.
3081
3082 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3083
3084 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3085
3086 2003-06-07 Adam Fedor <fedor@gnu.org>
3087
3088 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3089 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3090 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3091 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3092 resolve_msgsend_super, resolve_msgsend_super_stret):
3093 Use it.
3094
3095 2003-06-07 Andrew Cagney <cagney@redhat.com>
3096
3097 * symfile.h: Re-indent, clean up comments.
3098
3099 2003-06-07 Andrew Cagney <cagney@redhat.com>
3100
3101 * inferior.h (deprecated_write_sp): Replace
3102 generic_target_write_sp.
3103 * regcache.c (deprecated_write_sp): Replace
3104 generic_target_write_sp.
3105 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3106 * vax-tdep.c (vax_gdbarch_init): Update.
3107 * v850-tdep.c (v850_gdbarch_init): Update.
3108 * sparc-tdep.c (sparc_gdbarch_init): Update.
3109 * sh-tdep.c (sh_gdbarch_init): Update.
3110 * s390-tdep.c (s390_gdbarch_init): Update.
3111 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3112 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3113 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3114 * mcore-tdep.c (mcore_gdbarch_init): Update.
3115 * m68k-tdep.c (m68k_gdbarch_init): Update.
3116 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3117 * ia64-tdep.c (ia64_gdbarch_init): Update.
3118 * h8300-tdep.c (h8300_gdbarch_init): Update.
3119 * frv-tdep.c (frv_gdbarch_init): Update.
3120 * cris-tdep.c (cris_gdbarch_init): Update.
3121 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3122
3123 2003-06-07 Andrew Cagney <cagney@redhat.com>
3124
3125 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3126 Assert that PC_REGNUM is valid.
3127 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3128
3129 2003-06-07 Andrew Cagney <cagney@redhat.com>
3130
3131 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3132 * gdbarch.h, gdbarch.c: Regenerate.
3133 * mn10300-tdep.c: Include "gdb_assert.h".
3134 (mn10300_read_fp): New function.
3135 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3136 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3137 * ia64-tdep.c: Include "gdb_assert.h".
3138 (ia64_read_fp): New function.
3139 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3140 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3141 * regcache.c (generic_target_read_sp): Delete function.
3142 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3143 * inferior.h (generic_target_read_sp): Delete declaration.
3144 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3145 generic_target_read_sp.
3146 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3147 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3148 * sh-tdep.c (sh_gdbarch_init): Ditto.
3149 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3150 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3151
3152 2003-06-07 Andrew Cagney <cagney@redhat.com>
3153
3154 * gdbarch.sh: Comment each field of startup_gdbarch.
3155 * gdbarch.h, gdbarch.c: Re-generate.
3156
3157 2003-06-07 Andrew Cagney <cagney@redhat.com>
3158
3159 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3160 * gdbarch.h, gdbarch.c: Re-generate.
3161 * regcache.c: Update comments on read_pc et.al.
3162 (generic_target_read_pc): Delete function.
3163 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3164 * inferior.h (generic_target_read_pc): Delete declaration.
3165 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3166 generic_target_read_pc.
3167 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3168 * sh-tdep.c (sh_gdbarch_init): Ditto.
3169 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3170 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3171
3172 2003-06-07 Andrew Cagney <cagney@redhat.com>
3173
3174 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3175 "index" with "special_local_sect". Use strcmp instead of STREQ.
3176 Append period to coments.
3177
3178 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3179
3180 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3181 (elfstab_offset_sections): Likewise.
3182 * gdb-stabs.h (stab_section_info): Likewise.
3183 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3184 * objfiles.c (objfile_relocate): Likewise.
3185 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3186 * remote.c (get_offsets): Likewise.
3187 (remote_cisco_objfile_relocate): Likewise.
3188 * somread.c (som_symfile_offsets): Likewise.
3189 * symfile.c (alloc_section_addr_info): New function.
3190 (build_section_addr_info_from_section_tab): Use it.
3191 (free_section_addr_info): Adjust.
3192 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3193 (syms_from_objfile): Allocate local_addr dynamically.
3194 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3195 dynamically.
3196 (add_symbol_file_command): Allocate sect_opts dynamically.
3197 (reread_symbols): Avoid use of SECT_OFF_MAX.
3198 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3199 (alloc_section_addr_info): Declare it.
3200 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3201 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3202 dynamically.
3203 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3204
3205 2003-06-06 Andrew Cagney <cagney@redhat.com>
3206
3207 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3208 (d10v_frame_unwind_cache): Do not set "return_pc".
3209
3210 2003-06-06 Michael Snyder <msnyder@redhat.com>
3211
3212 * h8300-tdep.c: Make tidy (long lines).
3213
3214 2003-06-06 Michal Ludvig <mludvig@suse.cz>
3215
3216 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3217 to regcache_collect().
3218
3219 2003-06-05 J. Brobecker <brobecker@gnat.com>
3220
3221 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3222 pc_in_sigtramp multiarch method.
3223 (hppa_hpux_som_init_abi): Use it.
3224 (hppa_hpux_elf_init_abi): Likewise.
3225 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3226 macro has been multiarched.
3227 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3228 macro here, as hppa64 isn't multiarched yet.
3229
3230 2003-06-05 Andrew Cagney <cagney@redhat.com>
3231
3232 * Makefile.in (value_h): Add $(frame_h).
3233 * value.h: Include "frame.h".
3234 (struct value): Replace "frame_addr" with "frame_id".
3235 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3236 * values.c (allocate_value): Use VALUE_FRAME_ID.
3237 (value_copy): Use VALUE_FRAME_ID.
3238 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3239 * valops.c (value_assign): Update. Use frame_find_by_id.
3240
3241 2003-06-05 Michal Ludvig <mludvig@suse.cz>
3242
3243 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3244 in each pass.
3245
3246 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3247
3248 * thread-db.c (check_event): For create/death event breakpoints,
3249 loop through all messages to ensure that we read the message
3250 corresponding to the breakpoint we are at.
3251
3252 2003-06-04 Michael Snyder <msnyder@redhat.com>
3253
3254 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3255
3256 2003-06-04 Mark Kettenis <kettenis@gnu.org>
3257
3258 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3259 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3260 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3261 when handling .eh_frame sections.
3262
3263 2003-06-04 J. Brobecker <brobecker@gnat.com>
3264
3265 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3266 prepare_to_proceed procedure instead of the hppa-specific one.
3267 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3268
3269 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
3270
3271 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3272 * config.in: Regenerated.
3273 * configure.in: Add test for syscall function and check for
3274 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3275 * configure: Regenerated.
3276 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3277 <sys/syscall.h>.
3278 (kill_lwp): New function that uses tkill syscall or
3279 uses kill, depending on whether threading model is nptl or not.
3280 All callers of kill() changed to use kill_lwp().
3281 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3282 see if all threads have already exited in the nptl model.
3283 (stop_and_resume_callback): New callback function used by the
3284 lin_lwp_wait thread exit handling code.
3285 (stop_wait_callback): Check for threads already having exited and
3286 delete such threads fromt the lwp list when discovered.
3287 (stop_callback): Don't assert retcode of kill call.
3288
3289 Roland McGrath <roland@redhat.com>
3290 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3291 nptl libthread_db.
3292
3293 2003-06-03 Richard Henderson <rth@redhat.com>
3294
3295 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3296 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3297 (alpha_sigtramp_frame_prev_register): Likewise.
3298 (alpha_heuristic_frame_prev_register): Likewise.
3299 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3300
3301 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3302 alpha-specific register id names.
3303 (alpha_mdebug_frame_unwind_cache): Likewise.
3304 (alpha_mdebug_frame_prev_register): Likewise.
3305
3306 2003-06-03 Richard Henderson <rth@redhat.com>
3307
3308 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3309 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3310 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3311 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3312 unwind routines.
3313 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3314 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3315 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3316
3317 * alpha-linux-tdep.c: Remove unnecessary includes.
3318 * Makefile.in (alpha-linux-tdep.o): Update.
3319
3320 2003-06-03 Richard Henderson <rth@redhat.com>
3321
3322 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3323 (alphabsd_fill_fpreg): Likewise.
3324
3325 2003-06-03 J. Brobecker <brobecker@gnat.com>
3326
3327 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3328 references to struct frame_info fields by calls to the equivalent
3329 accessors. Necessary now that frame_info is opaque.
3330
3331 2003-06-03 J. Brobecker <brobecker@gnat.com>
3332
3333 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3334 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3335 structure, field no longer exists.
3336
3337 2003-06-03 J. Brobecker <brobecker@gnat.com>
3338
3339 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3340 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3341
3342 2003-06-03 J. Brobecker <brobecker@gnat.com>
3343
3344 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3345 references to struct frame_info fields by calls to the equivalent
3346 accessors. Necessary now that frame_info is opaque.
3347
3348 2003-06-03 J. Brobecker <brobecker@gnat.com>
3349
3350 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3351 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3352 structure, field no longer exists.
3353
3354 2003-06-03 Theodore A. Roth <troth@openavr.org>
3355
3356 * remote.c (init_remote_state): Compute sizeof_g_packet by
3357 accumulation of the size of all registers instead of blindly using
3358 DEPRECATED_REGISTER_BYTES.
3359
3360 2003-06-03 Michael Snyder <msnyder@redhat.com>
3361
3362 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3363 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3364 for h8300sx.
3365
3366 2003-06-03 J. Brobecker <brobecker@gnat.com>
3367
3368 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3369 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3370
3371 2003-06-03 Andrew Cagney <cagney@redhat.com>
3372
3373 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3374 (sparc_convert_to_raw): Delete function.
3375 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3376 register_convert_to_virtual.
3377
3378 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3379
3380 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3381 layer if not dealing with a statically-linked threaded program.
3382
3383 2003-06-03 Kris Warkentin <kewarken@qnx.com>
3384
3385 * solib.c (solib_open): Update comment to reflect actual search order.
3386
3387 2003-06-03 Andrew Cagney <cagney@redhat.com>
3388
3389 * frame.c (get_frame_memory_signed): New function.
3390 (get_frame_memory, get_frame_memory_unsigned): New function.
3391 (get_frame_arch): New function.
3392 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3393 (get_frame_memory, get_frame_unsigned_memory): Declare.
3394 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3395 get_frame_memory_unsigned and get_frame_arch.
3396 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3397
3398 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3399
3400 * MAINTAINERS (write after approval): Add myself.
3401
3402 2003-06-03 Jim Blandy <jimb@redhat.com>
3403
3404 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3405 elements of gregset_t are 64 bits each, but access registers
3406 are still 32 bits, so they're packed two per gregset_t
3407 element. Unpack/pack them properly.
3408
3409 2003-06-02 David Carlton <carlton@bactrian.org>
3410
3411 * linespec.c (find_methods): Break out code into
3412 add_matching_methods and add_constructors.
3413 (add_matching_methods): New.
3414 (add_constructors): Ditto.
3415
3416 2003-06-02 Andrew Cagney <cagney@redhat.com>
3417
3418 * sparc-tdep.c (sparc_print_registers): Delete call to
3419 REGISTER_CONVERTIBLE.
3420 (sparc_gdbarch_init): Do not set register_convertible.
3421 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3422 * frv-tdep.c (frv_gdbarch_init): Ditto.
3423 * cris-tdep.c (cris_gdbarch_init): Ditto.
3424
3425 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
3426
3427 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3428 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3429 (syms_from_objfile): Ditto.
3430
3431 2003-06-03 Andreas Schwab <schwab@suse.de>
3432
3433 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3434 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3435
3436 2003-06-02 Richard Henderson <rth@redhat.com>
3437
3438 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3439 a member of all_reggroup.
3440
3441 2003-06-02 Richard Henderson <rth@redhat.com>
3442
3443 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3444 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3445 (alpha_lds, alpha_sts): New.
3446 (alpha_convert_register_p): Change from _register_convertible.
3447 (alpha_register_to_value): Change from _convert_to_virtual;
3448 restructure and fail for type sizes other than 4 or 8.
3449 (alpha_value_to_register): Similarly.
3450 (alpha_extract_return_value): Use alpha_sts.
3451 (alpha_store_return_value): Use alpha_lds.
3452 (alpha_gdbarch_init): Update hooks.
3453
3454 2003-06-02 Richard Henderson <rth@redhat.com>
3455
3456 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3457 regnum identifiers.
3458 (alpha_sigtramp_register_address): Likewise.
3459
3460 2003-06-02 Richard Henderson <rth@redhat.com>
3461
3462 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3463 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3464 * alpha-tdep.h: Declare them.
3465
3466 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3467 Remove zerobuf. Don't error on UNIQUE.
3468 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3469 (ALPHA_REGSET_UNIQUE): Provide default.
3470 (supply_gregset): Use alpha_supply_int_regs.
3471 (fill_gregset): Use alpha_fill_int_regs.
3472 (supply_fpregset): Use alpha_supply_fp_regs.
3473 (fill_fpregset): Use alpha_fill_fp_regs.
3474 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3475 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3476 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3477 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3478 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3479 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3480
3481 2003-06-02 Richard Henderson <rth@redhat.com>
3482
3483 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3484
3485 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3486 (alpha_store_return_value): Likewise.
3487
3488 2003-06-02 David Carlton <carlton@math.stanford.edu>
3489
3490 * block.c (contained_in): Add 'const' to arguments.
3491 (block_function): Ditto.
3492 * block.h: Update declarations for block_function and
3493 contained_in.
3494
3495 2003-06-02 David Carlton <carlton@math.stanford.edu>
3496
3497 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3498 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3499 * p-valprint.c (pascal_val_print): Ditto.
3500 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3501
3502 2003-06-02 Richard Henderson <rth@redhat.com>
3503
3504 * alpha-tdep.c (alpha_push_dummy_call): Use
3505 builtin_type_ieee_double_little instead of builtin_type_double.
3506
3507 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
3508 sign-extension of 32-bit values.
3509 (alpha_store_return_value): Similarly.
3510
3511 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3512 (alpha_extract_return_value): Likewise.
3513 (alpha_store_return_value): Likewise.
3514
3515 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3516 (alpha_store_return_value): Error on IEEE Quad floats.
3517
3518 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3519 (alpha_extract_struct_value_address): Likewise.
3520 (alpha_store_return_value): Likewise.
3521 (alpha_store_struct_return): Remove.
3522 (alpha_gdbarch_init): Update hook registration to match.
3523
3524 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3525 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3526 macros where appropriate.
3527 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3528 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
3529
3530 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3531 for SP, GP; void_func_ptr for PC; non-language-specific types
3532 for all others.
3533 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
3534
3535 2003-06-02 Richard Henderson <rth@redhat.com>
3536
3537 * top.h (lim_at_start): Declare.
3538 * main.c (captured_main): Set it.
3539 * top.c (lim_at_start): Define.
3540 (command_loop): Use it instead of &environ.
3541 * event-top.c (command_handler): Likewise.
3542
3543 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3544
3545 * mipsnbsd-tdep.c: Update copyright years.
3546 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3547
3548 2003-06-01 Richard Henderson <rth@redhat.com>
3549
3550 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3551 (alpha-linux-tdep.o): Update dependencies.
3552 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3553 * alpha-mdebug-tdep.c: Remove unneeded includes.
3554
3555 2003-06-01 Richard Henderson <rth@redhat.com>
3556
3557 * alpha-tdep.c (alpha_register_reggroup_p): New.
3558 (alpha_gdbarch_init): Register it.
3559
3560 2003-06-02 Andrew Cagney <cagney@redhat.com>
3561
3562 * dwarfread.c: Eliminate "register"
3563 (decode_die_type): Eliminate assignment within "if".
3564 (struct_type, decode_array_element_type): Ditto.
3565 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3566 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3567 (decode_modified_type, completedieinfo): Ditto.
3568 * block.c: Eliminate "register".
3569 (blockvector_for_pc_sect): Eliminate assignment within "if".
3570 * cp-support.h (struct symbol): Opaque declaration.
3571 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3572
3573 2003-06-01 Richard Henderson <rth@redhat.com>
3574
3575 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3576 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
3577
3578 2003-06-01 Adam Fedor <fedor@gnu.org>
3579
3580 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3581 * gdbarch.[ch]: Regenerate.
3582 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3583 (hppa_gdbarch_init): Set it in the gdbarch vector.
3584 * i386-tdep.c (i386_fetch_pointer_argument): New
3585 (i386_gdbarch_init): Set it into gdbarch.
3586 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3587 (rs6000_gdbarch_init): Set it in gdbarch.
3588 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3589 (sparc_gdbarch_init): Set it in gdbarch.
3590
3591 2003-06-01 Andrew Cagney <cagney@redhat.com>
3592
3593 * defs.h (extract_address): Delete declaration.
3594 * findvar.c (extract_address): Delete function.
3595 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3596 extract_address with the inline equivalent,
3597 extract_unsigned_integer.
3598 (xstormy16_extract_struct_value_address): Ditto.
3599 (xstormy16_pointer_to_address): Ditto.
3600 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3601 * v850-tdep.c (v850_push_arguments): Ditto.
3602 (v850_extract_return_value): Ditto.
3603 (v850_extract_struct_value_address): Ditto.
3604 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3605 (sparcnbsd_get_longjmp_target_64): Ditto.
3606 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3607 (get_longjmp_target): Ditto.
3608 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3609 (sh64_extract_struct_value_address): Ditto.
3610 (sh_push_arguments): Ditto.
3611 (sh64_push_arguments): Ditto.
3612 * remote-vxsparc.c (vx_read_register): Ditto.
3613 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
3614 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
3615 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
3616 * mipsv4-nat.c (get_longjmp_target): Ditto.
3617 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
3618 * mips-nat.c (get_longjmp_target): Ditto.
3619 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
3620 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
3621 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
3622 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
3623 * irix5-nat.c (get_longjmp_target): Ditto.
3624 * irix4-nat.c (get_longjmp_target): Ditto.
3625 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
3626 (ia64_push_arguments): Ditto.
3627 * hpux-thread.c (hpux_thread_store_registers): Ditto.
3628 * h8300-tdep.c (h8300_push_arguments): Ditto.
3629 (h8300_store_return_value): Ditto.
3630 (h8300_extract_struct_value_address): Ditto.
3631 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
3632 (frv_push_arguments): Ditto.
3633 * avr-tdep.c (avr_pointer_to_address): Ditto.
3634 (avr_push_arguments): Ditto.
3635 * arm-tdep.c (arm_push_dummy_call): Ditto.
3636 (arm_get_longjmp_target): Ditto.
3637 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3638 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
3639 (alpha_get_longjmp_target): Ditto.
3640
3641 * solib-irix.c (extract_mips_address): Inline extract_address,
3642 replacing it with extract_signed_integer.
3643 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3644 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
3645 (first_link_map_member, open_symbol_file_object): Ditto.
3646 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
3647 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3648 (LM_NEXT, LM_NAME): Ditto.
3649
3650 2003-06-01 Richard Henderson <rth@redhat.com>
3651
3652 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
3653 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
3654 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
3655 (alpha_cannot_store_register): Likewise.
3656 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
3657 * alpha-nat.c (supply_gregset): Likewise.
3658 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
3659
3660 2003-06-01 Andrew Cagney <cagney@redhat.com>
3661
3662 * infcall.c (call_function_by_hand): Update comment on
3663 DEPRECATED_DUMMY_WRITE_SP.
3664
3665 * mips-tdep.c (mips_gdbarch_init): Do not set
3666 deprecated_dummy_write_sp.
3667 (mips_eabi_push_dummy_call): Set the SP register.
3668 (mips_o64_push_dummy_call): Set the SP register.
3669 (mips_o32_push_dummy_call): Set the SP register.
3670 (mips_n32n64_push_dummy_call): Set the SP register.
3671
3672 2003-06-01 Richard Henderson <rth@redhat.com>
3673
3674 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
3675 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
3676 (supply_gregset): Likewise.
3677 * alpha-tdep.c (alpha_store_return_value): Likewise.
3678 (alpha_get_longjmp_target): Likewise.
3679 (alpha_register_name): Constify array.
3680 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
3681 deprecated_register_size, deprecated_register_bytes,
3682 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
3683 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
3684 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
3685
3686 2003-06-01 Richard Henderson <rth@redhat.com>
3687
3688 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
3689 from arg_reg_buffer to regcache to avoid double conversion.
3690
3691 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3692
3693 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
3694 SP_REGNUM.
3695 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
3696 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
3697
3698 2003-06-01 Richard Henderson <rth@redhat.com>
3699
3700 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
3701 (decode_frame_entry): Set it. Skip FDE augmentation.
3702
3703 2003-06-01 Richard Henderson <rth@redhat.com>
3704
3705 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
3706 not overlapping PC_REGNUM.
3707
3708 2003-06-01 Richard Henderson <rth@redhat.com>
3709
3710 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
3711 alpha_push_arguments. Don't dump argument register data to
3712 the target stack. Fix float and 128-bit long double semantics.
3713 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
3714 (alpha_fix_call_dummy): Remove.
3715 (alpha_call_dummy_words): Remove.
3716 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
3717
3718 2003-06-01 Richard Henderson <rth@redhat.com>
3719
3720 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
3721
3722 2003-06-01 Andrew Cagney <cagney@redhat.com>
3723
3724 * mips-tdep.c (is_mips16_addr): New function.
3725 (make_mips16_addr, unmake_mips16_addr): New functions.
3726 (pc_is_mips16, mips_fetch_instruction): Use.
3727 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
3728 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
3729 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
3730 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
3731 TARGET_MIPS.
3732 * config/mips/tm-mips.h: Update copyright.
3733 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
3734 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
3735 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
3736 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
3737 (TM_PRINT_INSN_MACH): Delete.
3738 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
3739
3740 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
3741 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
3742 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
3743 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
3744 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
3745 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
3746 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
3747 mips*-*-riscos* and mips*-*-sysv* onto mips.
3748 * config/mips/mips64.mt: New file.
3749 * config/mips/mips.mt: New file.
3750 * config/mips/littlemips.mt: Delete file.
3751 * config/mips/decstation.mt: Delete file.
3752 * config/mips/vr4300el.mt: Delete file.
3753 * config/mips/vr5000el.mt: Delete file.
3754 * config/mips/vr5000.mt: Delete file.
3755 * config/mips/vr4100.mt: Delete file.
3756 * config/mips/vr4xxxel.mt: Delete file.
3757 * config/mips/vr4300.mt: Delete file.
3758 * config/mips/vr4xxx.mt: Delete file.
3759 * config/mips/bigmips.mt: Delete file.
3760 * config/mips/bigmips64.mt: Delete file.
3761 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
3762 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
3763 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
3764 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
3765 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
3766 "tm-bigmips.h".
3767 * config/mips/tm-irix3.h: Ditto.
3768 * config/mips/tm-mipsv4.h: Ditto.
3769 * config/mips/tm-embed.h: Ditto.
3770 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
3771 "tm-bigmips64.h".
3772 * config/mips/tm-vr5000el.h: Delete file.
3773 * config/mips/tm-tx39l.h: Delete file.
3774 * config/mips/tm-vr4300el.h: Delete file.
3775 * config/mips/tm-vr4xxxel.h: Delete file.
3776 * config/mips/tm-vr4300.h: Delete file.
3777 * config/mips/tm-vr4100.h: Delete file.
3778 * config/mips/tm-vr4xxx.h: Delete file.
3779 * config/mips/tm-vr5000.h: Delete file.
3780 * config/mips/tm-embedl64.h: Delete file.
3781 * config/mips/tm-embedl.h: Delete file.
3782 * config/mips/tm-embed64.h: Delete file.
3783 * config/mips/tm-bigmips64.h: Delete file.
3784 * config/mips/tm-bigmips.h: Delete file.
3785
3786 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3787
3788 Fix gdb/1216.
3789 * shnbsd-nat.c: Include "sh-tdep.h".
3790
3791 From Richard Henderson <rth@redhat.com>:
3792 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
3793
3794 2003-05-31 Andrew Cagney <cagney@redhat.com>
3795
3796 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
3797 forward declaration.
3798 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3799 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3800 (mips_find_saved_regs): Use set_reg_offset.
3801 (mips_frame_init_saved_regs): Delete function.
3802 (mips_pop_frame): Call mips_find_saved_regs instead of
3803 DEPRECATED_FRAME_INIT_SAVED_REGS.
3804
3805 2003-05-31 Andrew Cagney <cagney@redhat.com>
3806
3807 * mips-tdep.c (mips_gdbarch_init): Do not set
3808 deprecated_max_register_raw_size, register_virtual_size, and
3809 deprecated_max_register_virtual_size.
3810
3811 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3812
3813 * i386-tdep.c: Include "dwarf2-frame.h".
3814 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
3815 * Makefile.in (i386-tdep.o): Update dependencies.
3816
3817 * dwarf2-frame.c, dwarf2-frame.h: New files.
3818 * Makefile.in (SFILES): Add dwarf2-frame.c.
3819 (dwarf2_frame_h): Define.
3820 (COMMON_OBS): Add dwarf2-frame.o.
3821 (dwarf2-frame.o): Add dependencies.
3822
3823 2003-05-31 Andreas Jaeger <aj@suse.de>
3824
3825 * x86-64-linux-nat.c: Fix comment.
3826
3827 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3828
3829 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
3830 function signature.
3831
3832 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
3833 have a sigcontext_addr handler.
3834 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
3835 sigcontext_addr handler.
3836
3837 2003-05-31 Andrew Cagney <cagney@redhat.com>
3838
3839 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
3840 (print_fp_register_row): Replace do_fp_register_row.
3841 (mips_print_fp_register): Add "file" and "frame" parameters.
3842 (mips_print_register): Add "file" and "frame" parameters.
3843 (mips_print_registers_info): Replace mips_do_registers_info.
3844 (mips_gdbarch_init): Set print_registers_info instead of
3845 deprecated_do_registers_info.
3846 (mips_read_fp_register_single): Add "frame" parameter.
3847 (mips_read_fp_register_double): Add "frame" parameter.
3848
3849 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3850
3851 * i386-tdep.c (i386_register_name): Check for MMX registers first.
3852 Fixes a bug where GDB would print the wrong register names for
3853 targets without SSE.
3854
3855 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
3856 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3857 registers.
3858
3859 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
3860 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
3861 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3862 TDEP->sc_sp_offset.
3863
3864 From Michal Ludvig <mludvig@suse.cz>:
3865 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
3866 and `sc_num_regs'.
3867 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3868 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3869 I386_ST0_REGNUM): Move here from...
3870 * i386-tdep.c: ... here.
3871 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
3872 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3873 registers if possible.
3874 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
3875 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
3876 Remove variables.
3877 (i386bsd_sc_reg_offset): New variable.
3878 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
3879 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3880 TDEP->sc_sp_offset.
3881 (i386fbsd_sc_reg_offset): New variable.
3882 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
3883 TDEP->sc_num_regs.
3884 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
3885 variables.
3886 (i386fbsd4_sc_reg_offset): New variable.
3887 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
3888 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3889 TDEP->sc_sp_offset.
3890 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
3891 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
3892 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
3893 Remove variables.
3894 (i386nbsd_sc_reg_offset): New variable.
3895 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
3896 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3897 TDEP->sc_sp_offset.
3898 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
3899 Remove variables.
3900 (i386obsd_sc_reg_offset): New variable.
3901 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
3902 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3903 TDEP->sc_sp_offset.
3904 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
3905 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
3906 for frame pointer offset in `struct sigcontext'.
3907
3908 2003-05-31 Andrew Cagney <cagney@redhat.com>
3909
3910 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
3911 architecture methods call_dummy_words, sizeof_call_dummy_words,
3912 push_return_address, store_struct_return, and fix_call_dummy. Set
3913 push_dummy_call instead of deprecated_push_arguments.
3914 (mips_store_struct_return): Delete function.
3915 (mips_fix_call_dummy): Delete function.
3916 (mips_push_return_address): Delete function.
3917 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
3918 RA_REGNUM and T9_REGNUM.
3919 (mips_n32n64_push_dummy_call): Ditto for
3920 mips_n32n64_push_arguments.
3921 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
3922 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
3923
3924 2003-05-31 Andrew Cagney <cagney@redhat.com>
3925
3926 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
3927 "dummy_addr" to "bp_addr".
3928 * infcall.c (call_function_by_hand): Pass "funaddr" to
3929 gdbarch_push_dummy_call.
3930 * gdbarch.h, gdbarch.c: Re-generate.
3931 * i386-tdep.c (i386_push_dummy_call): Update.
3932 * arm-tdep.c (arm_push_dummy_call): Update.
3933 * d10v-tdep.c (d10v_push_dummy_call): Update.
3934
3935 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3936
3937 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
3938 variable declarations.
3939 (x86_64_register_number, x86_64_register_name): Remove prototypes.
3940 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
3941 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
3942 x86_64_init_frame_pc, x86_64_init_frame_pc,
3943 x86_64_function_has_prologue): Remove prototypes.
3944 (X86_64_NUM_GREGS): New define.
3945 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
3946 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
3947 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
3948 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
3949 XMM1_REGNUM): Remove defines.
3950 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
3951 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
3952 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
3953 X86_64_XMM1_REGNUM): New defines.
3954 (struct x86_64_register_info): Renamed from `struct
3955 register_info'. Remove `size' member.
3956 (x86_64_register_info_table): Remove variable.
3957 (x86_64_register_info): New variable.
3958 (X86_64_NUM_REGS): New define.
3959 (X86_64_NUM_GREGS): Remove define.
3960 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
3961 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
3962 Remove variables.
3963 (x86_54_dwarf2_reg_to_regnum): Remove function.
3964 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
3965 (x86_64_dwarf_reg_to_regnum): New function.
3966 (x86_64_register_name): Rewrite.
3967 (x86_64_register_raw_size): Remove function.
3968 (x86_64_register_byte_table): Remove variable.
3969 (x86_64_register_byte): Remove function.
3970 (x86_64_register_virtual_type): Remove function.
3971 (x86_64_register_type): New function.
3972 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
3973 x86_64_register_convert_to_raw): Remove functions.
3974 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
3975 (x86_64_use_struct_convention): Make static. Adjust for renamed
3976 defines.
3977 (x86_64_frame_init_saved_regs): Remove function.
3978 (x86_64_push_arguments): Make static. Change to accept a regcache
3979 as argument.
3980 (x86_64_store_return_value, x86_64_extract_return_value): Make
3981 static. Rewrite based on i386 counterparts.
3982 (x86_64_push_dummy_call): New function.
3983 (X86_64_NUM_SAVED_REGS): New define.
3984 (x86_64_register_number): Remove function.
3985 (x86_64_store_struct_return): Remove function.
3986 (x86_64_frameless_function_invocation,
3987 x86_64_function_has_prologue): Remove functions.
3988 (PROLOG_BUFSIZE): Remove define.
3989 (struct x86_64_frame_cache): New structure.
3990 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
3991 x86_64_frame_cache, x86_64_frame_this_id,
3992 x86_64_frame_prev_register, x86_64_frame_p,
3993 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
3994 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
3995 functions.
3996 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
3997 variables.
3998 (x86_64_skip_prologue): Rewrite in terms of
3999 x86_64_analyze_prologue.
4000 (x86_64_frame_base_address): New function.
4001 (x86_64_frame_base): New variable.
4002 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4003 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4004 set deprecated_fp_regnum, deprecated_register_size,
4005 deprecated_register_bytes, register_raw_size, register_byte,
4006 register_virtual_type, register_convertiable,
4007 register_convert_to_virtual, convert_to_raw,
4008 deprecated_get_saved_register, deprecated_target_read_fp,
4009 deprecated_push_arguments, deprecated_push_return_address,
4010 deprecated_pop_frame, deprecated_store_struct_return,
4011 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4012 frameless_function_invocation, deprecated_frame_saved_pc,
4013 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4014 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4015 deprecated_init_frame_pc and virtual_frame_pointer. Call
4016 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4017 and x86_64_frame_p. Call frame_base_set_default to register
4018 x86_64_frame_base.
4019 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4020 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4021 (_initialize_x86_64_tdep): Remove function.
4022 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4023 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4024 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4025 define.
4026 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4027 (x86_64_linux_sigcontext_addr): Rewrite.
4028 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4029 x86_64_linux_frame_saved_pc): Remove functions.
4030 (x86_64_linux_pc_in_sigtramp): Renamed from
4031 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4032 trampoline.
4033 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4034 Remove_functions.
4035 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4036 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4037 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4038 (x86_64_regmap): Rename to regmap.
4039 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4040 x86_64_num_gregs.
4041 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4042 x86_64_regmap.
4043 (x86_64_fxsave_offset): Remove function.
4044 (supply_fpregset): Simply call x86_64_supply_fxsave.
4045 (fill_fpregset): Simply call x86_64_fill_fxsave.
4046 (fetch_inferior_registers, store_inferior_registers): Avoid
4047 asignment in if-statement.
4048 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4049 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4050 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4051 (fetch_core_registers): Remove function.
4052 (linux_elf_core_fns): Remove.
4053 (offsetoff): Don't define.
4054 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4055 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4056 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4057 add core-regset.o.
4058 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4059 protection against multiple includes instead of NM_X86_64_h. Add
4060 various comments. Include "config/nm-linux.h". Don't include
4061 <signal.h>.
4062 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4063 GET_THREAD_SIGNALS): Remove defines.
4064 (x86_64_register_u_addr, kernel_u_size,
4065 lin_thread_get_thread_signals): Remove prototypes.
4066 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4067 [HAVE_LINK_H]: Don't include "solib.h".
4068 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4069 * config/i386/tm-x86-64linux.h: Fix comments.
4070 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4071 x86-64-tdep.o): Update dependencies.
4072
4073 2003-05-30 Andrew Cagney <cagney@redhat.com>
4074
4075 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4076 Change parameter type to a "struct regcache *".
4077
4078 * gdbarch.sh: Regardless of the multi-arch level, always define
4079 the macro when not already defined.
4080 * gdbarch.h, gdbarch.c: Re-generate.
4081
4082 2003-05-30 Richard Henderson <rth@redhat.com>
4083
4084 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4085 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4086 (alpha_mdebug_frame_this_id): Likewise.
4087 (alpha_mdebug_frame_prev_register): Likewise.
4088 (alpha_mdebug_frame_base_address): Likewise.
4089 (alpha_mdebug_frame_locals_address): Likewise.
4090 (alpha_mdebug_frame_args_address): Likewise.
4091 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4092 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4093 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4094 loop increment.
4095 (alpha_heuristic_frame_this_id): Make static.
4096 (alpha_heuristic_frame_prev_register): Likewise.
4097 (alpha_heuristic_frame_base_address): Likewise.
4098 * alpha-tdep.h: Update.
4099
4100 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4101
4102 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4103 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4104 defenitions.
4105 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4106 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4107 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4108 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4109 I386_ST0_REGNUM): New defines.
4110 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4111 codestream_get): Remove define.
4112 (codestream_next_addr, condestream_addr, condestream_buf,
4113 codestream_off, codestream_cnt): Remove variables.
4114 (codestream_fill, codestream_seek, codestream_read): Remove
4115 functions.
4116 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4117 functionality.
4118 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4119 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4120 i386_frame_saved_pc, i386_saved_pc_after_call,
4121 i386_frame_num_args, i386_frame_init_saved_regs,
4122 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4123 i386_push_arguments): Remove functions.
4124 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4125 functionality. Use i386_analyze_prologue instead of
4126 i386_get_frame_setup.
4127 (I386_NUM_SAVED_REGS): New define.
4128 (struct i386_frame_cache): New structure.
4129 (i386_alloc_frame_cache, i386_analyze_struct_return,
4130 i386_skip_probe, i386_analyze_frame_setup,
4131 i386_analyze_register_saves, i386_analyze_prologue,
4132 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4133 i386_frame_prev_register, i386_sigtramp_frame_cache,
4134 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4135 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4136 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4137 New functions.
4138 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4139 New variables.
4140 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4141 I386_EAX_REGNUM and I386_EDX_REGNUM.
4142 (i386_extract_return_value, i386_store_return_value): Use
4143 I386_ST0_REGNUM where appropriate.
4144 (i386_extract_struct_value_address): Rewrite to use extract_address.
4145 (i386_svr4_pc_in_sigtramp): Add comment.
4146 (i386_svr4_sigcontext_addr): Rewrite.
4147 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4148 TDEP->sc_sp_offset.
4149 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4150 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4151 of new defines. Set push_dummy_call, don't set
4152 deprecated_push_arguments, deprecated_push_return_address,
4153 deprecated_pop_frame. Don't set parm_boundary. Don't set
4154 deprecated_frame_chain, deprecated_frame_saved_pc,
4155 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4156 save_dummy_frame_tos, unwind_pc. Call
4157 frame_unwind_append_predicate and frame_base_set_default. Don't
4158 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4159 Don't set frameless_function_invocation. Don't set
4160 deprecated_register_bytes, deprecated_register_size,
4161 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4162 * i386-linux-tdep.c: Fix formatting in some comments.
4163 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4164 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4165 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4166 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4167 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4168 redundant parentheses.
4169 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4170 (i386_linux_sigcontext_addr): Use it. Rewrite.
4171 (find_minsym_and_objfile): Change name of second argument.
4172 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4173 changed. Use frame_pc_unwind instead of
4174 DEPRECATED_SAVED_PC_AFTER_CALL.
4175 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4176 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4177 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4178 unwinder.
4179 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4180 "dummy-frame.h".
4181 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4182 (_initialize_i386_cygwin_tdep): New prototype.
4183 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4184 deprecated_frame_chain_valid.
4185 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4186 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4187 Rely on the SVR4 defaults.
4188 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4189 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4190
4191 2003-05-30 Andrew Cagney <cagney@redhat.com>
4192
4193 * infcall.c (call_function_by_hand): Always call
4194 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4195
4196 2003-05-30 Richard Henderson <rth@redhat.com>
4197
4198 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4199 increment.
4200
4201 2003-05-29 Jim Blandy <jimb@redhat.com>
4202
4203 Use gdbarch methods for solib stuff on PowerPC Linux.
4204 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4205 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4206 show through.
4207 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4208 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4209 giving the same effect as the #definitions above.
4210
4211 2003-05-29 Adam Fedor <fedor@gnu.org>
4212
4213 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4214 (find_implementation_from_class): Replace it with the standard
4215 case i.e. do nothing.
4216
4217 2003-05-29 Richard Henderson <rth@redhat.com>
4218
4219 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4220 (alpha_linux_sigtramp_offset): Use it. Make static.
4221 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4222 update for new frame model.
4223 * alpha-mdebug-tdep.c: New file.
4224 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4225 (alpha_osf1_init_abi): Install it.
4226 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4227 (linked_proc_desc_table): Remove.
4228 (alpha_frame_past_sigtramp_frame): Remove.
4229 (alpha_dynamic_sigtramp_offset): Remove.
4230 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4231 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4232 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4233 (push_sigtramp_desc): Remove.
4234 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4235 (alpha_cannot_store_register): Likewise.
4236 (alpha_sigcontext_addr): Remove.
4237 (alpha_find_saved_regs): Remove.
4238 (alpha_frame_init_saved_regs): Remove.
4239 (alpha_init_frame_pc_first): Remove.
4240 (read_next_frame_reg): Remove.
4241 (alpha_frame_saved_pc): Remove.
4242 (alpha_saved_pc_after_call): Remove.
4243 (temp_proc_desc, temp_saved_regs): Remove.
4244 (alpha_about_to_return): Remove.
4245 (cached_proc_desc): Remove.
4246 (alpha_frame_chain): Remove.
4247 (alpha_print_extra_frame_info): Remove.
4248 (alpha_init_extra_frame_info): Remove.
4249 (alpha_frame_locals_address): Remove.
4250 (alpha_frame_args_address): Remove.
4251 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4252 (alpha_push_dummy_frame): Remove.
4253 (alpha_pop_frame): Remove.
4254 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4255 (alpha_read_insn): New.
4256 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4257 for different insn encodings.
4258 (alpha_in_lenient_prologue): Remove.
4259 (struct alpha_sigtramp_unwind_cache): New.
4260 (alpha_sigtramp_frame_unwind_cache): New.
4261 (alpha_sigtramp_register_address): New.
4262 (alpha_sigtramp_frame_this_id): New.
4263 (alpha_sigtramp_frame_prev_register): New.
4264 (alpha_sigtramp_frame_unwind): New.
4265 (alpha_sigtramp_frame_p): New.
4266 (struct alpha_heuristic_unwind_cache): New.
4267 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4268 don't count nop insns that occur between functions.
4269 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4270 heuristic_proc_desc, but without the mdebug wrapping.
4271 (alpha_heuristic_frame_this_id): New.
4272 (alpha_heuristic_frame_prev_register): New.
4273 (alpha_heuristic_frame_unwind): New.
4274 (alpha_heuristic_frame_p): New.
4275 (alpha_heuristic_frame_base_address): New.
4276 (alpha_heuristic_frame_base): New.
4277 (alpha_unwind_dummy_id): New.
4278 (alpha_unwind_pc): New.
4279 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4280 frame related deprecated initializations; install replacements.
4281 (alpha_dump_tdep): Remove.
4282 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4283 (alpha_read_insn, alpha_after_prologue,
4284 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4285 alpha_heuristic_frame_prev_register,
4286 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4287 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4288 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4289 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4290
4291 2003-05-29 Andrew Cagney <cagney@redhat.com>
4292
4293 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4294 dependant on the availability of ASSERT_FUNCTION.
4295 (ASSERT_FUNCTION): Do not define when there is no function name.
4296
4297 2003-05-29 Kevin Buettner <kevinb@redhat.com>
4298
4299 From Jimi X <jimix@watson.ibm.com>:
4300 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4301
4302 2003-05-28 Jim Blandy <jimb@redhat.com>
4303
4304 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4305 argument to ptrace to int; the system headers should give it the
4306 right type, and pointers don't fit in ints on powerpc64-*-*.
4307
4308 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4309
4310 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4311 DW_TAG_catch_block.
4312
4313 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4314
4315 * stabsread.c (dbx_lookup_type): Make static.
4316 (read_type): Ditto.
4317 (add_undefined_type): Ditto.
4318 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4319 not export.
4320
4321 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4322
4323 * hpread.c (hpread_has_name): Make static.
4324 (hpread_psymtab_to_symtab): Ditto.
4325 (file_exists): Ditto.
4326 (hpread_call_pxdb): Ditto.
4327 (hpread_pxdb_needed): Ditto.
4328 (hpread_quick_traverse): Ditto.
4329 (hpread_get_header): Ditto.
4330 (hpread_get_lntt): Ditto.
4331 (hpread_get_slt): Ditto.
4332 (class_of): Ditto.
4333
4334 2003-05-25 Andreas Schwab <schwab@suse.de>
4335
4336 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4337 stack_align and deprecated_extra_stack_alignment_needed.
4338 (m68k_stack_align): Delete.
4339
4340 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4341 (m68k_register_virtual_size): Likewise.
4342 (altos_skip_prologue): Remove obsolete function.
4343 (isi_frame_num_args): Likewise.
4344 (news_frame_num_args): Likewise.
4345 (m68k_fix_call_dummy): Make static.
4346 (m68k_push_dummy_frame): Likewise.
4347 (m68k_pop_frame): Likewise.
4348 (m68k_skip_prologue): Likewise.
4349 (m68k_frame_init_saved_regs): Likewise.
4350 (m68k_saved_pc_after_call): Likewise.
4351 (m68k_get_longjmp_target): Make multi-arch.
4352 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4353 structure. Register m68k_get_longjmp_target if enabled.
4354 * m68k-tdep.h (struct gdbarch_tdep): Define.
4355 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4356
4357 * Makefile.in (config.status): Also depend on configure.tgt
4358 and configure.host.
4359 (m68klinux-tdep.o): Update dependencies.
4360 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4361 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4362 (M68K_LINUX_JB_PC): Define.
4363 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4364 and take additional parameter.
4365 (m68k_linux_sigtramp_saved_pc): Update.
4366 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4367 m68k_linux_pc_in_sigtramp, in_plt_section,
4368 find_solib_trampoline_target.
4369 * config/m68k/tm-linux.h: Don't include any tm headers.
4370 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4371 (JB_ELEMENT_SIZE): Likewise.
4372 (JB_PC): Likewise.
4373 (GET_LONGJMP_TARGET): Likewise.
4374 (IN_SIGTRAMP): Likewise.
4375 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4376
4377 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4378
4379 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4380 (sparc32_push_arguments): Re-implement by calling
4381 sparc32_do_push_arguments.
4382
4383 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4384
4385 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4386 SPARC_O1_REGNUM): New defines.
4387 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4388 (sparc32_store_return_value): New function.
4389 (sparc_extract_struct_value_address): Rewrite to operate on a
4390 regcache.
4391 (sparc_gdbarch_init): Don't set
4392 deprecated_extract_struct_value_address. Set
4393 extract_struct_value_address instead. Don't set
4394 deprecated_extract_return_value and deprecated_store_return_value
4395 for 32-bit targets. Set extract_return_value and
4396 store_return_value instead.
4397 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4398 DEPRECTAED_EXTRACT_RETURN_VALUE,
4399 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4400 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4401 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4402 (sparc_store_return_value): Remove prototype.
4403 (sparc32_store_return_value): New prototype.
4404 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4405 Adjust prototypes.
4406
4407 2003-05-24 Mark Kettenis <kettenis@gnu.org>
4408
4409 * sparcnbsd-tdep.c: Include "gdb_string.h".
4410
4411 2003-05-23 Andrew Cagney <cagney@redhat.com>
4412
4413 * p-valprint.c (pascal_val_print): Replace extract_address with
4414 the inline equivalent extract_unsigned_integer.
4415 * jv-valprint.c (java_value_print): Ditto.
4416 * ada-valprint.c (ada_val_print_1): Ditto.
4417 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4418
4419 2003-05-23 Theodore A. Roth <troth@openavr.org>
4420
4421 * blockframe.c (frameless_look_for_prologue): Remove unused
4422 after_prologue variable.
4423
4424 2003-05-23 Mark Kettenis <kettenis@gnu.org>
4425
4426 * blockframe.c (get_pc_function_start): Rewrite to avoid
4427 asignments in if-statements.
4428
4429 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4430
4431 Committed by Elena Zannoni <ezannoni@redhat.com>.
4432 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4433 files, don't relocate absolute symbols (and do use mst_abs).
4434
4435 2003-05-23 Andrew Cagney <cagney@redhat.com>
4436
4437 * objc-lang.c: Include "gdb_assert.h".
4438 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4439 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4440 (gdb_check, gdb_check_fatal): Delete functions.
4441 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4442 gdb_assert.
4443 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4444 * Makefile.in (objc-lang.o): Update dependencies.
4445
4446 2003-05-22 Ian Lance Taylor <ian@airs.com>
4447
4448 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4449 with fprintf_filtered, not fprintf_unfiltered.
4450
4451 2003-05-22 Andrew Cagney <cagney@redhat.com>
4452
4453 * stack.c (frame_info): Inline extract_address, replacing it with
4454 extract_unsigned_integer.
4455 * findvar.c (unsigned_pointer_to_address): Ditto.
4456 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4457 * dwarf2expr.c (dwarf2_read_address): Ditto.
4458 * frame.c (frame_pc_unwind): Update comment.
4459 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4460
4461 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4462
4463 * infptrace.c (detach): Call print_sys_errmsg rather than
4464 perror_with_name to issue warning message when errno is non-zero
4465 after calling ptrace detach.
4466
4467 2003-05-21 J. Brobecker <brobecker@gnat.com>
4468
4469 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4470 macro definitions from here...
4471 * hppa-tdep.c: ...to there.
4472
4473 2003-05-20 Kevin Buettner <kevinb@redhat.com>
4474
4475 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4476 register_ptrace_addr(). Fix all callers.
4477
4478 2003-05-21 Andreas Schwab <schwab@suse.de>
4479
4480 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4481 dependencies.
4482 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4483 end.
4484 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4485 (_initialize_m68k_linux_tdep): New function.
4486 (m68k_linux_frame_saved_pc): Make static.
4487 (m68k_linux_extract_return_value): Likewise.
4488 (m68k_linux_store_return_value): Likewise.
4489 (m68k_linux_extract_struct_value_address): Likewise.
4490 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4491 Remove.
4492 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4493 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4494 (DEPRECATED_FRAME_SAVED_PC): Remove.
4495
4496 2003-05-20 Kris Warkentin <kewarken@qnx.com>
4497
4498 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4499 regset numbering rather than our own.
4500
4501 2003-05-19 David Carlton <carlton@bactrian.org>
4502
4503 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4504
4505 2003-05-19 David Carlton <carlton@bactrian.org>
4506
4507 Partial fix for PR c++/827.
4508 * cp-support.h: Include symtab.h.
4509 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4510 * cp-namespace.c: Update contributors.
4511 (cp_lookup_symbol_nonlocal): New.
4512 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4513 (lookup_symbol_file): Ditto.
4514 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4515 * block.h: Declare block_scope, block_using, block_global_block.
4516 * block.c (block_scope): New.
4517 (block_using, block_global_block): Ditto.
4518 * Makefile.in (cp_support_h): Depend on symtab_h.
4519 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4520
4521 2003-05-19 David Carlton <carlton@bactrian.org>
4522
4523 * language.h (struct language_defn): Add 'la_value_of_this'
4524 and 'la_lookup_symbol_nonlocal' members.
4525 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4526 lookup_symbol_static, lookup_symbol_global,
4527 lookup_symbol_aux_block.
4528 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4529 if we should search fields of this and how to do static/global
4530 lookup.
4531 (lookup_symbol_aux_block): Make extern.
4532 (basic_lookup_symbol_nonlocal): New.
4533 (lookup_symbol_static, lookup_symbol_global): Ditto.
4534 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4535 'la_lookup_symbol_nonlocal' members.
4536 * c-lang.c (c_language_defn, cplus_language_defn)
4537 (asm_language_defn, minimal_language_defn): Ditto.
4538 * jv-lang.c (java_language_defn): Ditto.
4539 * language.c (unknown_language_defn, auto_language_defn)
4540 (local_language_defn): Ditto.
4541 * m2-lang.c (m2_language_defn): Ditto.
4542 * objc-lang.c (objc_language_defn): Ditto.
4543 * scm-lang.c (scm_language_defn): Ditto.
4544 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4545 * p-lang.c (pascal_language_defn): Ditto for both.
4546 * Makefile.in (f-lang.o): Depend on value_h.
4547 (p-lang.o): Ditto.
4548
4549 2003-05-19 David Carlton <carlton@bactrian.org>
4550
4551 * block.h: Declare block_static_block.
4552 * block.c (block_static_block): New.
4553 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4554 lookup_symbol_aux_local, calling block_static_block instead.
4555 (lookup_symbol_aux_local): Delete 'static_block' argument.
4556
4557 2003-05-19 David Carlton <carlton@bactrian.org>
4558
4559 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4560
4561 2003-05-19 Michal Ludvig <mludvig@suse.cz>
4562
4563 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4564 register numbers mapping.
4565
4566 2003-05-18 Adam Fedor <fedor@gnu.org>
4567
4568 * symtab.c (completion_list_objc_symbol): New function.
4569 (make_symbol_completion_list): Use it to add ObjC symbols
4570 when looking though the list.
4571 (language_search_unquoted_string): New function.
4572 (make_file_symbol_completion_list): Use it.
4573
4574 2003-05-18 Andreas Schwab <schwab@suse.de>
4575
4576 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4577 dependencies.
4578 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4579 as m68k_linux_extract_return_value.
4580 (DEPRECATED_STORE_RETURN_VALUE): Define as
4581 m68k_linux_store_return_value.
4582 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4583 m68k_linux_extract_struct_value_address.
4584 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4585 get_next_frame, get_frame_base, get_frame_pc.
4586 (m68k_linux_frame_saved_pc): Use get_frame_base.
4587 (m68k_linux_extract_return_value): New function.
4588 (m68k_linux_store_return_value): New function.
4589 (m68k_linux_extract_struct_value_address): New function.
4590 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4591
4592 * c-exp.y (typebase): Remove duplicate occurence of
4593 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
4594 of lookup_signed_typename.
4595
4596 2003-05-18 Mark Kettenis <kettenis@gnu.org>
4597
4598 * dwarf2loc.c (find_location_expression): Change type of second
4599 argument to `size_t *'.
4600 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4601 for size variable.
4602
4603 2003-05-18 David Carlton <carlton@bactrian.org>
4604
4605 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4606 'linkage_name'. Add comment.
4607 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4608 'linkage_name'.
4609 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4610 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
4611 (lookup_block_symbol): Ditto.
4612
4613 2003-05-16 Andrew Cagney <cagney@redhat.com>
4614
4615 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
4616 * gdbarch.h, gdbarch.c: Re-generate.
4617 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
4618 * TODO (REGISTER_BYTES): Delete reference.
4619 * alpha-tdep.c (alpha_gdbarch_init): Update.
4620 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4621 * x86-64-tdep.c (x86_64_init_abi): Update.
4622 * vax-tdep.c (vax_gdbarch_init): Update.
4623 * v850-tdep.c (v850_gdbarch_init): Update.
4624 * sparc-tdep.c (sparc_gdbarch_init): Update.
4625 * sh-tdep.c (sh_gdbarch_init): Update.
4626 * s390-tdep.c (s390_gdbarch_init): Update.
4627 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4628 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4629 (ns32k_gdbarch_init_32382): Update.
4630 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4631 * mcore-tdep.c (mcore_gdbarch_init): Update.
4632 * m68k-tdep.c (m68k_gdbarch_init): Update.
4633 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4634 * ia64-tdep.c (ia64_gdbarch_init): Update.
4635 * i386-tdep.c (i386_gdbarch_init): Update.
4636 * i386-linux-tdep.c (i386_linux_init_abi): Update.
4637 * hppa-tdep.c (hppa_gdbarch_init): Update.
4638 * h8300-tdep.c (h8300_gdbarch_init): Update.
4639 * frv-tdep.c (frv_gdbarch_init): Update.
4640 * cris-tdep.c (cris_gdbarch_init): Update.
4641 * avr-tdep.c (avr_gdbarch_init): Update.
4642 * arm-tdep.c (arm_gdbarch_init): Update.
4643 * sparc-tdep.c (sparc_pop_frame): Update.
4644 * rs6000-tdep.c (rs6000_pop_frame): Update.
4645 * remote.c (init_remote_state): Update.
4646 (remote_prepare_to_store): Update.
4647 * remote-vx.c (vx_prepare_to_store): Update.
4648 * remote-sds.c (sds_fetch_registers): Update.
4649 (sds_prepare_to_store): Update.
4650 * remote-array.c: Update.
4651 * regcache.c (init_legacy_regcache_descr): Update.
4652 (init_regcache_descr): Update.
4653 * mips-tdep.c (mips_eabi_extract_return_value): Update.
4654 (mips_o64_extract_return_value): Update.
4655 * irix5-nat.c (fetch_core_registers): Update.
4656 * irix4-nat.c (fetch_core_registers): Update.
4657 * i386-tdep.h: Update.
4658 * hppa-tdep.c (pa_do_registers_info): Update.
4659 (pa_do_strcat_registers_info): Update.
4660 * cris-tdep.c (cris_register_bytes_ok): Update.
4661 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4662 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
4663 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
4664 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
4665 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
4666 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
4667 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
4668 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
4669 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
4670 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
4671 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
4672 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
4673 (REGISTER_BYTES_OK): Update.
4674 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
4675 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
4676
4677 2003-05-16 Ian Lance Taylor <ian@airs.com>
4678
4679 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
4680 (vax_print_insn, print_insn_arg): Remove static functions.
4681 (vax_gdbarch_init): Call set_gdbarch_print_insn with
4682 print_insn_vax from opcodes library.
4683 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
4684
4685 2003-05-15 Andrew Cagney <cagney@redhat.com>
4686
4687 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
4688 * target.h (memory_breakpoint_from_pc): Delete declaration.
4689 * mem-break.c (memory_breakpoint_from_pc): Delete function.
4690 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
4691 * monitor.c (monitor_insert_breakpoint): Use
4692 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
4693 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
4694 * gdbarch.h, gdbarch.c: Re-generate.
4695 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
4696 (sparc_gdbarch_init): Set breakpoint_from_pc to
4697 sparc_breakpoint_from_pc.
4698 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
4699 (BREAKPOINT_FROM_PC): Define.
4700 (sparc_breakpoint_from_pc): Declare.
4701 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
4702 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
4703 (BREAKPOINT_FROM_PC): Define.
4704 (BREAKPOINT): Delete macro.
4705 * target.h: Update comment.
4706 * s390-tdep.c (s390_gdbarch_init): Update comments.
4707 * remote.c: Update comments.
4708 * remote-mips.c: Update comments.
4709 * proc-api.c (write_with_trace): Do not check for a breakpoint.
4710 * mem-break.c: Update comment.
4711 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
4712 (ia64_memory_insert_breakpoint): Update.
4713 * config/sparc/tm-sparc.h: Update comment.
4714 * config/pa/tm-hppa64.h: Update comment.
4715 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4716 (rs6000_breakpoint_from_pc): Update.
4717 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4718 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
4719 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
4720 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
4721 (mips_breakpoint_from_pc): Update.
4722 (mips_dump_tdep): Update.
4723
4724 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
4725 * minsyms.c (lookup_minimal_symbol): Inline
4726 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
4727
4728 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
4729 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4730 * p-lang.c (pascal_printstr): Ditto.
4731 * objc-lang.c (objc_printstr): Ditto.
4732 * m2-lang.c (m2_printstr): Ditto.
4733 * jv-valprint.c (java_print_value_fields): Ditto.
4734 * f-lang.c (f_printstr): Ditto.
4735 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
4736 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
4737 for repeat_count_threshold.
4738 * Makefile.in (cp-valprint.o): Update dependencies.
4739
4740 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
4741
4742 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
4743 (examine_prologue): Support looking through leaf functions, knowing
4744 they start with mov r2,r12. Support skipping over indirect stores
4745 of the input registers. Upon hitting a non-nop branch instruction
4746 or predicated instruction, bail out by setting lim_pc to the current
4747 pc value in the loop. At the end, if the lim_pc value is still
4748 beyond our calculated value and we have trust_limit set,
4749 use the lim_pc value.
4750
4751 2003-05-15 Andrew Cagney <cagney@redhat.com>
4752
4753 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
4754 generic_find_dummy_frame.
4755 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
4756 (deprecated_generic_find_dummy_frame): Update.
4757 (deprecated_read_register_dummy): Update.
4758 * frame.c (deprecated_generic_get_saved_register): Update.
4759
4760 2003-05-15 Theodore A. Roth <troth@openavr.org>
4761
4762 * avr-tdep.c (avr_breakpoint_from_pc): New function.
4763 (avr_gdbarch_init): Set breakpoint_from_pc method.
4764
4765 2003-05-15 Andrew Cagney <cagney@redhat.com>
4766
4767 * regcache.c (build_regcache): Set deprecated_register_valid
4768 directly.
4769 (deprecated_grub_regcache_for_register_valid): Delete function.
4770 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
4771 declaration.
4772
4773 2003-05-15 David Carlton <carlton@bactrian.org>
4774
4775 Committed by Elena Zannoni <ezannoni@redhat.com>
4776 * symtab.c (lookup_symbol_aux): Delete calls to
4777 lookup_symbol_aux_minsyms.
4778 (lookup_symbol_aux_minsyms): Comment out function and
4779 prototype. Delete lookup by mangled name.
4780
4781 2003-05-14 Kevin Buettner <kevinb@redhat.com>
4782
4783 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
4784 correctly indicate an empty stack and ``stack_allocated'' to the
4785 indicate the number of elements initially allocated.
4786 (dwarf_expr_grow_stack): Simplify method for computing new
4787 stack size. Don't loop infinitely if ``stack_len'' is zero.
4788 (execute_stack_op): Move ``ctx->in_reg'' initialization
4789 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
4790 be used in conjuction with DW_OP_piece. Revise error message
4791 accordingly.
4792
4793 2003-05-14 Theodore A. Roth <troth@openavr.org>
4794
4795 * MAINTAINERS: Update my email address.
4796 * avr-tdep.c: Ditto.
4797
4798 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
4799
4800 * symtab.h (enum domain_enum): Rename from namespace_enum.
4801 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
4802 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
4803 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
4804 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
4805 TYPES_NAMESPACE, METHODS_NAMESPACE.
4806 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
4807 (struct symbol, struct partial_symbol): Rename field
4808 'namespace_enum namespace' to 'domain_enum domain'.
4809 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
4810 Delete old define kludge for namespace.
4811
4812 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
4813 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
4814 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
4815 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
4816 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
4817 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
4818 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
4819 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
4820 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
4821 occurrences of the above.
4822
4823 2003-05-14 Ian Lance Taylor <ian@airs.com>
4824
4825 * Makefile.in (install-only): Use $(SHELL) when running
4826 mkinstalldirs.
4827
4828 2003-05-13 Ian Lance Taylor <ian@airs.com>
4829
4830 * MAINTAINERS (write after approval): Add myself.
4831
4832 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
4833 second and third arguments.
4834 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4835 * ser-unix.c (_initialize_ser_hardwire): Likewise.
4836
4837 2003-05-13 Andrew Cagney <cagney@redhat.com>
4838
4839 * defs.h (store_address): Delete declaration.
4840 findvar.c (store_address): Delete function.
4841 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
4842 store_unsigned_integer.
4843 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
4844 * v850-tdep.c (v850_push_arguments): Ditto.
4845 * sparc-tdep.c (sparc_get_saved_register): Ditto.
4846 * sh-tdep.c (sh64_get_saved_register): Ditto.
4847 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
4848 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
4849 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
4850 (mips_get_saved_register): Ditto.
4851 * ia64-tdep.c (ia64_get_saved_register): Ditto.
4852 (find_func_descr, ia64_push_arguments): Ditto.
4853 * i386-tdep.c (i386_push_arguments): Ditto.
4854 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
4855 * frv-tdep.c (frv_push_arguments): Ditto.
4856 * frame.c (legacy_saved_regs_prev_register): Ditto.
4857 (deprecated_generic_get_saved_register): Ditto.
4858 * findvar.c (unsigned_address_to_pointer): Ditto.
4859 * dwarf2read.c (dwarf2_const_value): Ditto.
4860 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4861 * alpha-tdep.c (alpha_push_arguments): Ditto.
4862
4863 2003-05-12 J. Brobecker <brobecker@gnat.com>
4864
4865 * NEWS: Mention that the hppa-hpux port has been partially
4866 multiarched (32bit ABIT only, so far).
4867
4868 2003-05-11 Andrew Cagney <cagney@redhat.com>
4869
4870 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
4871 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
4872 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
4873 sim/testsuite/sim/arm/misaligned2.ms, and
4874 sim/testsuite/sim/arm/misaligned3.ms.
4875 * disasm.h (struct ui_file): Add opaque struct declaration.
4876 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
4877 * frame.h (struct ui_file): Ditto.
4878
4879 2003-05-11 Mark Kettenis <kettenis@gnu.org>
4880
4881 * value.h: Pretty print.
4882
4883 2003-05-10 Mark Kettenis <kettenis@gnu.org>
4884
4885 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
4886
4887 2003-05-08 Andrew Cagney <cagney@redhat.com>
4888
4889 * regcache.h (max_register_size): Delete declaration.
4890 * regcache.c (max_register_size): Delete function.
4891 (struct regcache_descr): Delete field "max_register_size".
4892 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
4893 registers fit in MAX_REGISTER_SIZE.
4894 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
4895 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
4896 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
4897 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
4898 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
4899 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
4900 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
4901 * dve3900-rom.c, hppa-tdep.c: Ditto.
4902
4903 2003-05-08 David Carlton <carlton@math.stanford.edu>
4904
4905 * valops.c (push_word): Fix typo.
4906
4907 2003-05-08 Andrew Cagney <cagney@redhat.com>
4908
4909 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
4910 * gdbarch.h: Re-generate.
4911 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
4912 (legacy_max_register_raw_size): Delete declaration.
4913 * regcache.c (legacy_max_register_raw_size): Delete function.
4914 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
4915 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
4916 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
4917 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
4918 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
4919 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
4920 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
4921 * findvar.c, dwarf2cfi.c: Ditto.
4922
4923 2003-05-08 Andrew Cagney <cagney@redhat.com>
4924
4925 * mips-tdep.c (read_signed_register): New function, moved to here
4926 from "regcache.c".
4927 (read_signed_register_pid): Ditto.
4928 * regcache.c (read_signed_register_pid): Delete function, moved to
4929 "mips-tdep.c".
4930 (read_signed_register): Ditto.
4931 * regcache.h (read_signed_register): Delete declaration.
4932 (read_signed_register_pid): Delete declaration.
4933
4934 2003-05-08 Andrew Cagney <cagney@redhat.com>
4935
4936 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
4937 * gdbarch.h: Re-generate.
4938 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
4939 (legacy_max_register_virtual_size): Delete declaration.
4940 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
4941 * d10v-tdep.c (d10v_print_registers_info): Ditto.
4942 * tracepoint.c (memrange_sortmerge): Ditto.
4943 * sparc-tdep.c (sparc_print_registers): Ditto.
4944 * regcache.c (legacy_max_register_virtual_size): Delete function.
4945
4946 2002-05-08 J. Brobecker <brobecker@gnat.com>
4947
4948 * fork-child.c (escape_bang_in_quoted_argument): New function.
4949 (fork_inferior): Escape '!' characters in quoted arguments
4950 only when needed.
4951
4952 2003-05-08 J. Brobecker <brobecker@gnat.com>
4953
4954 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
4955 the language of the CU is not currently supported by GDB.
4956
4957 2003-05-08 J. Brobecker <brobecker@gnat.com>
4958
4959 * defs.h (language): Add language_minimal enum value.
4960 * c-lang.c (minimal_language_defn): New language definition.
4961 (_initialize_c_language): Add the new minimal language to the list
4962 of languages known to GDB.
4963
4964 2003-05-08 Kevin Buettner <kevinb@redhat.com>
4965
4966 * frame.c (get_frame_type): Don't attempt to lazily initialize
4967 frame's unwinder for legacy frames.
4968
4969 2003-05-07 Andrew Cagney <cagney@redhat.com>
4970
4971 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
4972 and "regcache" parameters.
4973 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
4974
4975 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
4976
4977 * dwarf2read.c (dwarf_decode_lines): Only use output of
4978 check_cu_functions() when calling record_line(). Do not update
4979 the current address.
4980
4981 2003-05-07 Andrew Cagney <cagney@redhat.com>
4982
4983 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
4984 code.
4985
4986 2003-05-07 Jim Blandy <jimb@redhat.com>
4987
4988 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
4989 'maint info symtabs' and 'maint info psymtabs'.
4990 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
4991 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
4992 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
4993 Declarations updated.
4994 * maint.c (maintenance_list_command): Delete.
4995 (_initialize_maint_cmds): Update calls to add_cmd.
4996 * gdbcmd.h (maintenancelistlist): Delete declaration.
4997 * cli/cli-cmds.c (maintenancelistlist): Delete.
4998 (init_cmd_lists): Don't initialize it.
4999 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5000
5001 2003-05-07 Andrew Cagney <cagney@redhat.com>
5002
5003 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5004 "regcache".
5005 (d10v_print_registers_info): Update.
5006 (d10v_dmap_register, d10v_imap_register): Delete functions.
5007 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5008 and "imap_register".
5009 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5010 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5011 * arch-utils.c (generic_remote_translate_xfer_address): Add
5012 "regcache" and "gdbarch" parameters.
5013 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5014 parameter. Change class to multi-arch.
5015 * gdbarch.h, gdbarch.c: Re-generate.
5016 * remote.c (remote_xfer_memory): Use
5017 gdbarch_remote_translate_xfer_address.
5018
5019 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5020
5021 * infrun.c (prev_pc): Move declaration ahead of proceed().
5022 (proceed): Refresh prev_pc value before resuming.
5023 (stop_stepping): Remove code to refresh prev_pc.
5024
5025 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5026
5027 * nto-tdep.c: Removed stray comment.
5028
5029 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5030
5031 * i386-nto-tdep.c: Fix old K&R function definitions.
5032 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5033 Also change add_show_from_set() call to add_setshow_cmd().
5034 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5035
5036 2003-05-05 Andrew Cagney <cagney@redhat.com>
5037
5038 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5039 (fprint_dummy_frames): New function.
5040 (maintenance_print_dummy_frames): New function.
5041 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5042 * frame.c (fprint_frame_id): Make global.
5043 * frame.h (fprint_frame_id): Declare.
5044 * Makefile.in (dummy-frame.o): Update dependencies.
5045
5046 2003-05-05 Andrew Cagney <cagney@redhat.com>
5047
5048 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5049 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5050 SIZEOF_CALL_DUMMY_WORDS.
5051 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5052 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5053 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5054 CALL_DUMMY_BREAKPOINT_OFFSET.
5055 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5056 CALL_DUMMY_START_OFFSET.
5057 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5058 * gdbarch.h, gdbarch.c: Re-generate.
5059 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5060 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5061 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5062 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5063 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5064 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5065 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5066 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5067 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5068 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5069 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5070 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5071 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5072 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5073 * config/sparc/tm-sparc.h: Update.
5074
5075 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5076
5077 * configure.tgt: Add i[3456]86-*-nto*.
5078 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5079 * nto-tdep.c: New file. Neutrino target support routines.
5080 * nto-tdep.h: New file. Neutrino target header.
5081 * config/tm-qnxnto.h: New file.
5082 * config/i386/i386nto.mt: New file.
5083 * config/i386/tm-i386nto.h: New file.
5084
5085 2003-05-04 Andrew Cagney <cagney@redhat.com>
5086
5087 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5088 (load_infrun_state): Ditto.
5089 (struct thread_info): Drop "prev_func_name" field.
5090 * thread.c (load_infrun_state): Update.
5091 (save_infrun_state): Update.
5092 * infrun.c (prev_func_name): Delete variable.
5093 (init_wait_for_inferior): Do not clear prev_func_name.
5094 (stop_stepping, keep_going, context_switch): Do not swap
5095 prev_func_name.
5096 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5097 instead of PC_IN_SIGTRAMP.
5098
5099 2003-05-04 Andrew Cagney <cagney@redhat.com>
5100
5101 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5102 REGISTER_BYTE with register_offset_hack.
5103 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5104 that REGISTER_BYTE is consistent with the regcache.
5105 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5106 * gdbarch.h, gdbarch.c: Regenerate.
5107
5108 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5109
5110 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5111 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5112
5113 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5114
5115 2003-05-03 J. Brobecker <brobecker@gnat.com>
5116
5117 From Thierry Schneider <tpschneider1@yahoo.com>
5118 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5119 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5120 (mi-cmd-symbol.o): Add rule.
5121
5122 2003-05-03 Andrew Cagney <cagney@redhat.com>
5123
5124 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5125 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5126 * gdbarch.h, gdbarch.c: Re-generate.
5127 * d10v-tdep.c (d10v_push_dummy_code): New function.
5128 (d10v_gdbarch_init): Set push_dummy_code.
5129 * infcall.c (legacy_push_dummy_code): New function.
5130 (generic_push_dummy_code): New function.
5131 (push_dummy_code): New function.
5132 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5133 instead of dummy_addr, to push_dummy_call. Move call to
5134 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5135 switch.
5136 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5137
5138 2003-05-03 Andrew Cagney <cagney@redhat.com>
5139
5140 * disasm.h (print_insn): Declare.
5141 * disasm.c (init_gdb_disassemble_info): New function.
5142 (gdb_disassembly): Call init_gdb_disassemble_info.
5143 (gdb_print_insn): New function.
5144 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5145 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5146 * mcore-tdep.c: Include "disasm.h"
5147 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5148 * d10v-tdep.c: Include "disasm.h".
5149 (display_trace): Call gdb_print_insn, instead of print_insn.
5150 (print_insn): Delete function.
5151 * printcmd.c: Include "disasm.h".
5152 (print_insn): Delete function.
5153 (print_formatted): Call gdb_print_insn, instead of print_insn.
5154 * Makefile.in (printcmd.o): Update dependencies.
5155 (mcore-tdep.o, d10v-tdep.o): Ditto.
5156
5157 2003-05-02 Andrew Cagney <cagney@redhat.com>
5158
5159 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5160 PC_REGNUM, re-indent.
5161 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5162 PC_REGNUM isn't set.
5163
5164 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5165 * gdbarch.h, gdbarch.c: Re-generate.
5166 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5167 register_virtual_size, pc_regnum, or register_bytes.
5168 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5169 (d10v_register_type): Use D10V_PC_REGNUM.
5170 (d10v_print_registers_info, d10v_read_pc): Ditto.
5171 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5172 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5173
5174 2003-05-02 David Carlton <carlton@bactrian.org>
5175
5176 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5177 the name with mstrsave.
5178
5179 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5180
5181 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5182 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5183 (host_charset_name, target_charset_name): New vars for use by
5184 set/show commands.
5185 (host_charset_enum, target_charset_enum): New enums for set/show
5186 commands.
5187 (set_charset_sfunc, set_host_charset_sfunc,
5188 set_target_charset_sfunc): New functions.
5189 (set_host_charset, set_target_charset): Make static.
5190 (list_charsets, set_host_charset_command,
5191 set_target_charset_command): Delete functions.
5192 (show_charset_command): Rewrite as....
5193 (show_charset): Hook this up with the set/show command mechanism.
5194 (_initialize_charset): Change names of charsets to match the
5195 set/show enums. Use host_charset_name and target_charset_name.
5196 Use set/show mechanism for charset, host-charset, target-charset
5197 commands. Do not make 'show host-charset' and 'show
5198 target-charset' be aliases of 'show charset'.
5199
5200 * charset.h (set_host_charset, set_target_charset): Don't export,
5201 they are not used outside the file.
5202
5203 2003-05-01 Andrew Cagney <cagney@redhat.com>
5204
5205 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5206 (gdb_disassembly): Make "di" non static, always initialize and
5207 cleanup. Always use dis_asm_read_memory.
5208 (gdb_dis_asm_read_memory): Delete function.
5209
5210 2003-05-01 Andrew Cagney <cagney@redhat.com>
5211
5212 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5213 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5214
5215 2003-04-30 Andrew Cagney <cagney@redhat.com>
5216
5217 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5218 "tm_print_insn_info".
5219 (TARGET_PRINT_INSN_INFO): Delete macro.
5220 (dis_asm_read_memory): Delete function declaration.
5221 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5222 (tm_print_insn_info): Delete variable definition.
5223 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5224 * gdbarch.h, gdbarch.c: Re-generate.
5225 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5226 "deprecated_tm_print_insn_info".
5227 * mcore-tdep.c (mcore_dump_insn): Ditto.
5228 * mips-tdep.c (mips_gdbarch_init): Ditto.
5229 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5230 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5231 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5232 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5233 instead of TARGET_PRINT_INSN_INFO, add comment.
5234 * s390-tdep.c (s390_get_frame_info): Instead of
5235 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5236 (s390_check_function_end, s390_is_sigreturn): Ditto.
5237 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5238 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5239 * disasm.c: Include "gdbcore.h".
5240 (_initialize_disasm): New function, initialize
5241 "deprecated_tm_print_insn_info".
5242 (deprecated_tm_print_insn_info): New variable.
5243 (dis_asm_read_memory): Moved from "corefile.c", made static.
5244 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5245 * Makefile.in (disasm.o): Update dependencies.
5246
5247 2003-04-30 Andrew Cagney <cagney@redhat.com>
5248
5249 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5250
5251 2003-04-29 Adam Fedor <fedor@gnu.org>
5252
5253 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5254 * infcall.c (find_function_addr): Make non-static.
5255 * infcall.h (find_function_addr): Declare.
5256 * Makefile.in (eval.o): Update dependencies.
5257
5258 2003-04-28 Adam Fedor <fedor@gnu.org>
5259
5260 * symtab.c (symbol_find_demangled_name): Check for and demangle
5261 ObjC symbols.
5262 (symbol_init_demangled_name): Init for language_objc as well.
5263
5264 2003-04-28 Andrew Cagney <cagney@redhat.com>
5265
5266 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5267 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5268 * gdbarch.h, gdbarch.c: Re-generate.
5269 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5270 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5271 * inferior.h (deprecated_read_fp): Rename read_fp.
5272 (generic_target_read_fp): Delete declaration.
5273 * regcache.c (generic_target_read_fp): Delete function.
5274 (deprecated_read_fp): Replace read_fp, use
5275 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5276 * d10v-tdep.c (d10v_read_fp): Delete function.
5277 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5278
5279 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5280 deprecated_target_read_fp to generic_target_read_fp.
5281 * sh-tdep.c (sh_gdbarch_init): Ditto.
5282 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5283 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5284 * frv-tdep.c (frv_gdbarch_init): Ditto.
5285
5286 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5287 deprecated_fp_regnum.
5288 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5289 * vax-tdep.c (vax_gdbarch_init): Ditto.
5290 * v850-tdep.c (v850_gdbarch_init): Ditto.
5291 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5292 * sh-tdep.c (sh_gdbarch_init): Ditto.
5293 * s390-tdep.c (s390_gdbarch_init): Ditto.
5294 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5295 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5296 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5297 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5298 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5299 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5300 * i386-tdep.c (i386_gdbarch_init): Ditto.
5301 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5302 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5303 * frv-tdep.c (frv_gdbarch_init): Ditto.
5304 * cris-tdep.c (cris_gdbarch_init): Ditto.
5305 * avr-tdep.c (avr_gdbarch_init): Ditto.
5306 * arm-tdep.c (arm_gdbarch_init): Ditto.
5307 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5308
5309 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5310 * v850-tdep.c (v850_gdbarch_init): Ditto.
5311 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5312 * sh-tdep.c (sh_gdbarch_init): Ditto.
5313 * s390-tdep.c (s390_gdbarch_init): Ditto.
5314 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5315 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5316 * mips-tdep.c (mips_gdbarch_init): Ditto.
5317 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5318 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5319 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5320 * frv-tdep.c (frv_gdbarch_init): Ditto.
5321 * avr-tdep.c (avr_gdbarch_init): Ditto.
5322 * arm-tdep.c (arm_gdbarch_init): Ditto.
5323
5324 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5325 DEPRECATED_FP_REGNUM.
5326 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5327 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5328 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5329 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5330 (sparc32_register_virtual_type): Ditto.
5331 * sh-tdep.c (sh64_frame_chain): Ditto.
5332 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5333 (sh_nofp_frame_init_saved_regs): Ditto.
5334 (sh64_nofp_frame_init_saved_regs): Ditto.
5335 (sh_fp_frame_init_saved_regs): Ditto.
5336 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5337 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5338 * procfs.c (procfs_fetch_registers): Ditto.
5339 (procfs_store_registers): Ditto.
5340 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5341 (store_inferior_registers, fetch_core_registers): Ditto.
5342 (fetch_kcore_registers, clear_regs): Ditto.
5343 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5344 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5345 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5346 * nlm/i386.c (do_status): Ditto.
5347 * mipsv4-nat.c (supply_gregset): Ditto.
5348 * mips-tdep.c: Ditto for comments.
5349 * mips-nat.c (fetch_inferior_registers): Ditto.
5350 (store_inferior_registers, fetch_core_registers): Ditto.
5351 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5352 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5353 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5354 (i386_do_pop_frame, i386_register_type): Ditto.
5355 * hppa-tdep.c (hppa_frame_chain): Ditto.
5356 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5357 (hppa_pop_frame, hppa_read_fp): Ditto.
5358 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5359 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5360 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5361 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5362 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5363 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5364 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5365 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5366 * blockframe.c: Ditto for comments.
5367 * arch-utils.h: Ditto for comments.
5368 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5369 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5370 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5371 * alpha-tdep.h: Ditto for comments.
5372 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5373 (alpha_cannot_store_register): Ditto.
5374 (alpha_push_dummy_frame): Ditto.
5375 * alpha-nat.c (supply_gregset): Ditto.
5376
5377 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5378 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5379 * config/sparc/tm-sparc.h: Update comment.
5380
5381 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5382 deprecated_read_fp instead of TARGET_READ_FP.
5383 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5384 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5385 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5386 deprecated_read_fp instead of read_fp.
5387 * s390-tdep.c (s390_push_arguments): Ditto.
5388 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5389 * frame.h: Ditto in comments.
5390 * frame.c (legacy_get_prev_frame): Ditto.
5391 * dummy-frame.c (dummy_frame_this_id): Ditto.
5392 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5393
5394 2003-04-28 Andrew Cagney <cagney@redhat.com>
5395
5396 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5397 * gdbarch.h, gdbarch.c: Re-generate.
5398 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5399 * vax-tdep.c (_initialize_vax_tdep): Update.
5400 * v850-tdep.c (_initialize_v850_tdep): Update.
5401 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5402 * s390-tdep.c (_initialize_s390_tdep): Update.
5403 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5404 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5405 * mips-tdep.c (_initialize_mips_tdep): Update.
5406 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5407 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5408 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5409 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5410 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5411 * frv-tdep.c (_initialize_frv_tdep): Update.
5412 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5413 (_initialize_cris_tdep): Update.
5414 * arch-utils.c (legacy_print_insn): Update.
5415 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5416
5417 2003-04-26 Adam Fedor <fedor@gnu.org>
5418
5419 * linespec.c (decode_objc): New function to decode ObjC calls
5420 (decode_line_1): Check for ObjC calls (using decode_objc)
5421 * Makefile (linespec.o): Update dependencies.
5422
5423 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
5424
5425 * breakpoint.h (struct breakpoint_ops): New.
5426 (struct breakpoint): Add ops member.
5427
5428 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5429 (mention): Use new breakpoint ops member.
5430 (set_raw_breakpoint): Initialize ops field to NULL.
5431 (print_exception_catchpoint, print_one_exception_catchpoint)
5432 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5433 (gnu_v3_exception_catchpoint_ops): New.
5434 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5435
5436 2003-04-25 Adam Fedor <fedor@gnu.org>
5437
5438 * Makefile.in (COMMON_OBS): Add objc-lang.o
5439
5440 2003-04-25 Andrew Cagney <cagney@redhat.com>
5441
5442 * d10v-tdep.c (print_insn): Delete function.
5443 (display_trace): Use TARGET_PRINT_INSN.
5444 (_initialize_d10v_tdep): Do not set tm_print_insn.
5445 (d10v_gdbarch_init): Set print_insn.
5446
5447 2003-04-25 Andrew Cagney <cagney@redhat.com>
5448
5449 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5450 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5451 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5452 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5453 (nr_dmap_regs, a0_regnum): ... new functions.
5454 (d10v_print_registers_info): Use a0_regnum, use register_size.
5455 (d10v_register_byte): Delete function.
5456 (d10v_register_raw_size): Delete function.
5457 (d10v_register_type): Use a0_regnum.
5458 (d10v_print_registers_info): Use a0_regnum.
5459 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5460 (d10v_gdbarch_init): Do not set register_byte or
5461 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5462 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5463 extract_address.
5464 (trace_command): Use XCALLOC.
5465 (print_insn): Delete reference to tm_print_insn.
5466 (saved_regs_unwinder): Use store_unsigned_integer instead of
5467 store_address.
5468 * frame.h (FRAME_OBSTACK_CALLOC): Define
5469
5470 2003-04-25 David Carlton <carlton@bactrian.org>
5471
5472 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5473
5474 2003-04-24 Adam Fedor <fedor@gnu.org>
5475
5476 * objc-lang.c: Include "valprint.h"
5477 * Makefile.in (objc-lang.o): Update dependencies.
5478
5479 2003-04-24 Adam Fedor <fedor@gnu.org>
5480
5481 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5482 architecture dependant compilation and mark as unimplemented
5483 (until they get put in the gdbarch vector).
5484
5485 2003-04-23 David Carlton <carlton@bactrian.org>
5486
5487 * cp-support.c (cp_find_first_component): Accept 'operator' in
5488 more locations.
5489
5490 2003-04-23 Andrew Cagney <cagney@redhat.com>
5491
5492 * infcall.c (call_function_by_hand): Eliminate redundant
5493 indentation. Move "saved_async" and "old_cleanups" to where they
5494 are needed.
5495
5496 2003-04-23 Andrew Cagney <cagney@redhat.com>
5497
5498 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5499 and "buffer". Move the "name" code to where it is needed.
5500
5501 2003-04-23 Andrew Cagney <cagney@redhat.com>
5502
5503 * infcall.c (call_function_by_hand): Move variables "start_sp",
5504 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5505 code to ON_STACK switch branch.
5506
5507 2003-04-23 Andrew Cagney <cagney@redhat.com>
5508
5509 * infcall.c (call_function_by_hand): Make declaration of "i",
5510 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5511 lint.
5512
5513 2003-04-23 Andrew Cagney <cagney@redhat.com>
5514
5515 * infcall.c (call_function_by_hand): Delete variable
5516 "n_method_args". Localize "param_type"'s declaration to the loop
5517 that it is used. Reinstate code assigning to said variable -
5518 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5519 Rationalize code using "param_type".
5520
5521 2003-04-22 Andrew Cagney <cagney@redhat.com>
5522
5523 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5524 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5525 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5526 to DEPRECATED_PUSH_RETURN_ADDRESS.
5527
5528 2003-04-22 Kevin Buettner <kevinb@redhat.com>
5529
5530 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5531 on the DWARF2 register number prior to fetching a register.
5532
5533 2003-04-22 J. Brobecker <brobecker@gnat.com>
5534
5535 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5536 Update all the tests using SOFT_FLOAT considering the fact that
5537 this macro was always set to 0.
5538 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5539 considering the fact that this macro was always set to 0.
5540 * hppa-tdep.h (hppa_store_return_value): Likewise.
5541 (hppa_extract_return_value): Likewise.
5542
5543 2003-04-22 J. Brobecker <brobecker@gnat.com>
5544
5545 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5546 the hppa-pro target only.
5547
5548 2003-04-21 J. Brobecker <brobecker@gnat.com>
5549
5550 Ongoing multi-arch conversion effort for HP/UX:
5551 * config/pa/tm-hppa.h: Move all macro that are no longer
5552 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5553 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5554
5555 2003-04-21 J. Brobecker <brobecker@gnat.com>
5556
5557 * config/pa/tm-hppa.h: Obsolete a section that was only used
5558 for hppa-pro.
5559
5560 2003-04-21 J. Brobecker <brobecker@gnat.com>
5561
5562 Ongoing multi-arch conversion for HP/UX.
5563 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5564 if already defined (allows hppa64 to stay non-multiarched for now).
5565 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5566
5567 2003-04-21 Andrew Cagney <cagney@redhat.com>
5568
5569 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5570
5571 2003-04-21 Andrew Cagney <cagney@redhat.com>
5572
5573 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5574 "i386_num_mmx_regs".
5575
5576 2003-04-21 Andrew Cagney <cagney@redhat.com>
5577
5578 * infcall.c: New file.
5579 * infcall.h: New file.
5580 * valarith.c: Include "infcall.h".
5581 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5582 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5583 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5584 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5585 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5586 (SFILES): Add "infcall.c"
5587 (COMMON_OBS): Add "infcall.o".
5588 (infcall.o): Specify dependencies.
5589 * value.h (call_function_by_hand): Delete declaration.
5590 * inferior.h (run_stack_dummy): Delete declaration.
5591 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5592 (run_stack_dummy): Move to "infcall.c", merged into
5593 call_function_by_hand.
5594 * valops.c (call_function_by_hand): Moved to "infcall.c".
5595 (find_function_addr, value_arg_coerce): Ditto.
5596 (unwindonsignal_p, coerce_float_to_double): Ditto.
5597 (_initialize_valops): Move "set/show coerce-float-to-double", and
5598 "set/show unwindonsignal" commands to "infcall.c".
5599 * v850-tdep.c, target.h: Update comments.
5600 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5601 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5602 (sh64_init_extra_frame_info): Update comments.
5603 * mn10300-tdep.c: Update comments.
5604 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5605 * config/sparc/tm-sparc.h: Update comments.
5606 * breakpoint.h: Update comments.
5607 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5608 * arm-tdep.c: Update comment.
5609
5610 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5611
5612 * i386-tdep.c (i386_num_register_names): New variable.
5613 (i386_num_mmx_regs): Renamed from mmx_num_regs.
5614 (MM0_REGNUM): Remove redundant parentheses in define.
5615 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
5616 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
5617 i386_mxcsr_regnum_p): Remove redundant parentheses.
5618 (i386_register_name): Use i386_num_register_names.
5619
5620 * i386-tdep.c (i386_extract_return_value,
5621 i386_store_return_value): Correct check for availability of
5622 floating-point registers.
5623
5624 * i386-tdep.c (i386_frame_num_args): Remove function.
5625 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
5626
5627 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
5628 mmx_regnum_to_fp_regnum. Adjust all callers.
5629
5630 * i386-tdep.c (i386_get_longjmp_target): Use
5631 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
5632 and TARGET_CHAR_BIT. Use extract_typed_address instead of
5633 extract_address.
5634
5635 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5636
5637 * core-regset.c: Update comments to reflect reality. Re-order
5638 includes.
5639 (fetch_core_registers): Use switch instead of if. Remove
5640 redundant prototype.
5641
5642 2003-04-18 Jim Blandy <jimb@redhat.com>
5643
5644 * s390-tdep.c (s390_frame_align): New function.
5645 (s390_gdbarch_init): Register it with the gdbarch object.
5646
5647 2003-04-17 Richard Henderson <rth@redhat.com>
5648
5649 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
5650
5651 2003-04-17 Michael Snyder <msnyder@redhat.com>
5652 Karen Bennet <bennet@redhat.com>
5653
5654 Committed by Elena Zannoni <ezannoni@redhat.com>
5655 * gdb_gcore.sh: New script to create a core dump of a process.
5656
5657 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
5658
5659 * values.c (value_being_returned): Don't fetch the return
5660 value if the return type is void.
5661
5662 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5663
5664 * thread-db.c: Reindented.
5665
5666 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5667
5668 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
5669 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
5670 as types.
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696 2003-04-16 Kevin Buettner <kevinb@redhat.com>
5697
5698 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
5699 the size of ``long double'' to 16, instead of 8.
5700
5701 2003-04-16 Mark Kettenis <kettenis@gnu.org>
5702
5703 * i386-linux-nat.c: Add some whitespace to make things more
5704 readable.
5705 (fetch_register, store_register, fetch_inferior_registers,
5706 store_inferior_registers): Get rid of assignment in if-statement.
5707 (store_register): Fix typo in error message.
5708
5709 2003-04-16 Andrew Cagney <cagney@redhat.com>
5710
5711 * utils.c (xmmalloc): Always allocate something, matches
5712 libiberty/xmalloc's semantics.
5713 (xmrealloc, xmcalloc): Ditto.
5714
5715 2003-04-16 Andrew Cagney <cagney@redhat.com>
5716
5717 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5718 update comments.
5719 (get_frame_type): Initialize unwind and type when needed.
5720 (get_frame_id, frame_register_unwind): Ditto.
5721
5722 2003-04-16 Andrew Cagney <cagney@redhat.com>
5723
5724 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
5725 obsolete.
5726 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
5727 * sparcl-stub.c: Obsolete file.
5728 * config/sparc/tm-sparclet.h: Obsolete file.
5729 * sparclet-stub.c: Obsolete file.
5730 * sparclet-rom.c: Obsolete file.
5731 * sparcl-tdep.c: Obsolete file.
5732 * config/sparc/tm-sparclite.h: Obsolete file.
5733 * config/sparc/sparclite.mt: Obsolete file.
5734 * config/sparc/sparclet.mt: Obsolete file.
5735 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
5736 sparc86x-*-* obsolete.
5737
5738 2003-04-15 David Carlton <carlton@math.stanford.edu>
5739
5740 * Makefile.in (SFILES): Add cp-namespace.c.
5741 (COMMON_OBS): Add cp-namespace.o.
5742 (block.o): Depend on gdb_obstack_h and cp_support_h.
5743 (buildsym.o): Depend on cp_support_h.
5744 (cp-namespace.o): New.
5745 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
5746 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
5747 (dwarf2read.o): Depend on cp_support_h.
5748 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
5749 * dwarf2read.c (process_die): Set processing_has_namespace_info,
5750 processing_current_namespace.
5751 (read_namespace): Update processing_current_namespace; check for
5752 anonymous namespaces.
5753 (dwarf2_name): New function.
5754 (dwarf2_extension): Ditto.
5755 * cp-support.h: Update copyright, contributors.
5756 Add inclusion guards.
5757 Add opaque declaration for structs obstack, block, symbol.
5758 (struct using_direct): New struct.
5759 Add declarations for cp_find_first_component,
5760 cp_entire_prefix_len, processing_has_namespace_info,
5761 processing_current_namespace, cp_is_anonymous,
5762 cp_add_using_directive, cp_initialize_namespace,
5763 cp_finalize_namespace, cp_set_block_scope,
5764 cp_scan_for_anonymous_namespaces.
5765 * cp-namespace.c: New file.
5766 * cp-support.c: Update copyright.
5767 Include ctype.h, gdb_assert.h, gdbcmd.h.
5768 New variable maint_cplus_cmd_list.
5769 (cp_find_first_component): New function.
5770 (cp_entire_prefix_len, maint_cplus_command)
5771 (first_component_command, _initialize_cp_support): Ditto.
5772 * buildsym.c: Include cp-support.h.
5773 New variable using_list.
5774 (add_symbol_to_list): Check for anonymous namespaces.
5775 (finish_block): Set block's scope.
5776 (start_symtab): Initialize C++ namespace support.
5777 (end_symtab): Finalize C++ namespace support.
5778 * block.h: Add opaque declarations for structs
5779 block_namespace_info, using_direct, and obstack.
5780 Add declarations for block_set_scope and block_set_using.
5781 (struct block): Add 'language_specific' member.
5782 (BLOCK_NAMESPACE): New macro.
5783 * block.c: Include gdb_obstack.h and cp-support.h.
5784 (struct block_namespace_info): New struct.
5785 (block_set_scope): New function.
5786 (block_set_using, block_initialize_namespace): Ditto.
5787
5788 2003-04-14 Kevin Buettner <kevinb@redhat.com>
5789
5790 * solib-svr4.c (svr4_have_link_map_offsets): New function.
5791 (locate_base): Return early if there aren't any link map offsets.
5792 (svr4_solib_create_inferior_hook): Warn if shared library support
5793 is unavailable.
5794
5795 2003-04-14 David Carlton <carlton@math.stanford.edu>
5796
5797 * symtab.c (symbol_set_names): Add prefix when storing Java names
5798 in hash table. Fix for PR java/1039.
5799
5800 2003-04-14 David Carlton <carlton@math.stanford.edu>
5801
5802 * symtab.c (symbol_set_names): Rename 'name' arg to
5803 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
5804 * symtab.h: Change 'name' argument in declaration of
5805 symbol_set_names to 'linkage_name'.
5806 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
5807
5808 2003-04-14 Andrew Cagney <cagney@redhat.com>
5809
5810 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
5811 return the fully sign-extended register value.
5812 (get_frame_pointer): Ditto.
5813 (mips_pop_frame): Initialize "proc_desc" after checking for a
5814 dummy frame.
5815
5816 2003-04-14 Andrew Cagney <cagney@redhat.com>
5817
5818 * mips-tdep.c (mips_push_dummy_frame): Delete function.
5819 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
5820 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
5821 (mips_push_register): Delete function.
5822 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
5823 PUSH_FP_REGNUM.
5824
5825 2003-04-14 Jim Blandy <jimb@redhat.com>
5826
5827 * symmisc.c: #include "gdb_regex.h".
5828 (maintenance_list_symtabs, maintenance_list_psymtabs): New
5829 functions.
5830 * maint.c (maintenance_list_command): New function.
5831 (_initialize_maint_cmds): Register the above as commands.
5832 * symtab.h (maintenance_list_symtabs,
5833 maintenance_list_psymtabs): New declarations.
5834 * cli/cli-cmds.c (maintenancelistlist): New variable.
5835 (init_cmd_lists): Initialize it.
5836 * cli/cli-cmds.h (maintenancelistlist): New declaration.
5837 * gdbcmd.h (maintenancelistlist): New declaration.
5838 * Makefile.in (symmisc.o): Update dependencies.
5839
5840 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
5841
5842 * s390-nat.c: Include asm/types.h for addr_t.
5843
5844 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
5845
5846 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
5847 actually incoming type.
5848
5849 2003-04-13 Andrew Cagney <cagney@redhat.com>
5850
5851 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
5852 get_next_frame and get_frame_saved_regs.
5853
5854 2003-04-13 Andrew Cagney <cagney@redhat.com>
5855
5856 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
5857 of gdbarch_num_regs.
5858
5859 2003-04-13 Andrew Cagney <cagney@redhat.com>
5860
5861 * frame.h: Mention what replaced what in "struct frame_info".
5862 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
5863 deprecated_update_frame_base_hack and
5864 deprecated_update_frame_pc_hack.
5865 * hppa-tdep.c: Ditto.
5866
5867 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5868
5869 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
5870 to read_reg and update its comment. Remove regnum member.
5871 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
5872 Don't call read_reg when setting in_reg. Call read_reg to get
5873 the frame base if it's in a register. Return the register number
5874 on the stack instead of in the context. Remove extra arguments
5875 to read_reg.
5876 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
5877 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
5878 the register number on the expression stack.
5879 (needs_frame_read_reg): Remove extra arguments.
5880
5881 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5882
5883 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
5884 made non-static.
5885 (execute_stack_op): All callers updated.
5886 * dwarf2expr.h: Add prototype for dwarf2_read_address.
5887 * dwarf2loc.c (find_location_expression): New function.
5888 (dwarf_expr_frame_base): Call it.
5889 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
5890 (dwarf2_tracepoint_var_ref): New function, broken out from
5891 locexpr_tracepoint_var_ref.
5892 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
5893 Make static.
5894 (loclist_read_variable, loclist_read_needs_frame): New functions.
5895 (loclist_describe_location, loclist_tracepoint_var_ref): New
5896 functions.
5897 (dwarf2_loclist_funcs): New struct location_funcs.
5898 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
5899 (struct dwarf2_locexpr_baton): Add comments.
5900 (dwarf2_loclist_funcs): New extern.
5901 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
5902 base_address and base_known.
5903 (dwarf_loc_buffer): New variable.
5904 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
5905 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
5906 (dwarf2_has_info): Initialize dwarf_loc_offset.
5907 (dwarf2_build_psymtabs): Read in .debug_loc.
5908 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
5909 DWARF_LOC_SIZE.
5910 (psymtab_to_symtab_1): Likewise. Move base address calculation
5911 here, from...
5912 (dwarf2_get_pc_bounds): ... here. Use the base address from
5913 cu_header.
5914 (dwarf2_symbol_mark_computed): Handle location lists.
5915
5916 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5917
5918 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
5919 if the linkage name demangled successfully.
5920
5921 2003-04-13 Mark Kettenis <kettenis@gnu.org>
5922
5923 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
5924 disassmbly_flavour): Removed.
5925
5926 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
5927
5928 2003-04-13 Mark Kettenis <kettenis@gnu.org>
5929
5930 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
5931
5932 2003-04-12 Andrew Cagney <cagney@redhat.com>
5933
5934 * frame.h (struct frame_info): Move definition from here ...
5935 * frame.c (struct frame_info): ... to here.
5936
5937 2003-04-12 Andrew Cagney <cagney@redhat.com>
5938
5939 * gdbthread.h (save_infrun_state): Delete parameter
5940 "prev_func_start".
5941 (struct thread_info): Delete field "prev_func_start".
5942 (load_infrun_state): Ditto.
5943 * thread.c (load_infrun_state, save_infrun_state): Update.
5944 * infrun.c (prev_func_start): Delete variable.
5945 (context_switch, init_wait_for_inferior): Update.
5946 (stop_stepping, keep_going): Update.
5947
5948 2003-04-12 Andrew Cagney <cagney@redhat.com>
5949
5950 * gdbarch.sh: Add missing opaque declarations.
5951 * gdbarch.h: Regnerate.
5952 * symtab.h: Add missing opaque declarations.
5953 * value.h, target.h, symfile.h, stabsread.h: Ditto.
5954 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
5955 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
5956 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
5957 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
5958 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
5959 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
5960 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
5961 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
5962 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
5963 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
5964 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
5965 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
5966
5967 2003-04-11 Andrew Cagney <cagney@redhat.com>
5968
5969 * frame.c (get_frame_id): Return this frame's "id".
5970 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
5971 function start.
5972 (legacy_saved_regs_this_id): Replace function body with
5973 internal-error.
5974 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
5975 FRAME_OBSTACK_ZALLOC.
5976 (create_new_frame): Mark the frame ID as valid.
5977
5978 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
5979
5980 * Makefile.in (libbfd_h): Added missing setting.
5981 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
5982 according to the selected ABI.
5983
5984 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
5985
5986 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
5987
5988 2003-04-11 Andrew Cagney <cagney@redhat.com>
5989
5990 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
5991 SAVED_PC_AFTER_CALL.
5992 * gdbarch.h, gdbarch.c: Regenerate.
5993 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5994 * x86-64-tdep.c (x86_64_init_abi): Update.
5995 * vax-tdep.c (vax_gdbarch_init): Update.
5996 * v850-tdep.c (v850_gdbarch_init): Update.
5997 * sparc-tdep.c (sparc_gdbarch_init): Update.
5998 * sh-tdep.c (sh_gdbarch_init): Update.
5999 * s390-tdep.c (s390_gdbarch_init): Update.
6000 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6001 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6002 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6003 * mips-tdep.c (mips_gdbarch_init): Update.
6004 * mcore-tdep.c (mcore_gdbarch_init): Update.
6005 * m68k-tdep.c (m68k_gdbarch_init): Update.
6006 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6007 * ia64-tdep.c (ia64_gdbarch_init): Update.
6008 (ia64_saved_pc_after_call): Update declaration.
6009 * i386ly-tdep.c (i386lynx_init_abi): Update.
6010 * i386-tdep.c (i386_gdbarch_init): Update.
6011 * hppa-tdep.c (hppa_gdbarch_init): Update.
6012 * h8300-tdep.c (h8300_gdbarch_init): Update.
6013 * frv-tdep.c (frv_gdbarch_init): Update.
6014 * cris-tdep.c (cris_gdbarch_init): Update.
6015 * avr-tdep.c (avr_gdbarch_init): Update.
6016 * arm-tdep.c (arm_gdbarch_init): Update.
6017 * alpha-tdep.c (alpha_gdbarch_init): Update.
6018 * ns32knbsd-nat.c (frame_num_args): Update.
6019 * ns32k-tdep.c (umax_frame_num_args): Update.
6020 * mips-tdep.c (mips_init_frame_pc_first): Update.
6021 * infrun.c (step_over_function): Update.
6022 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6023 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6024 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6025 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6026 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6027 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6028 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6029 * arch-utils.c (init_frame_pc_default): Update.
6030 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6031 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6032 declaration.
6033
6034 2003-04-11 Andrew Cagney <cagney@redhat.com>
6035
6036 * i387-tdep.c: Update copyright.
6037 (i387_to_double): Delete function.
6038 (double_to_i387): Delete function.
6039
6040 2003-04-10 Andrew Cagney <cagney@redhat.com>
6041
6042 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6043 frame's function's address. Simplify.
6044 (d10v_frame_unwind_cache): Check that the frame's function is
6045 non-zero.
6046
6047 2003-04-10 Jim Blandy <jimb@redhat.com>
6048
6049 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6050 call to set_gdbarch_deprecated_push_arguments.
6051
6052 2003-04-10 Andrew Cagney <cagney@redhat.com>
6053
6054 * frame.c (fprint_frame_id): New function.
6055 (fprint_frame_type, fprint_frame): New function.
6056 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6057 (create_sentinel_frame, get_frame_id): Ditto.
6058 (frame_id_p, frame_id_eq): Ditto.
6059 (frame_id_inner, create_new_frame): Ditto.
6060 (legacy_get_prev_frame, get_prev_frame): Ditto.
6061 (deprecated_update_frame_pc_hack): Ditto.
6062 (frame_register_unwind): Ditto.
6063 (deprecated_update_frame_base_hack): Ditto.
6064
6065 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6066
6067 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6068 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6069 frame_chain function.
6070 * Makefile.in: Add dependencies due to above change.
6071
6072 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6073
6074 * blockframe.c (legacy_frame_chain_valid): Move call to
6075 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6076 inside_entry_file.
6077
6078 2003-04-09 Andrew Cagney <cagney@redhat.com>
6079
6080 * frame.h (struct frame_id): Replace "pc" and "base" with
6081 "stack_addr" and "code_addr". Update comments.
6082 (frame_id_build): Update parameter names and comment.
6083 (struct frame_info): Replace "id_p" and "id" with "this_id".
6084 * dummy-frame.c (dummy_frame_this_id): Update.
6085 * breakpoint.c (print_one_breakpoint): Update.
6086 * frame.c (get_frame_id): Update.
6087 (get_frame_base, frame_id_build): Update.
6088 (create_sentinel_frame, legacy_get_prev_frame): Update.
6089 (deprecated_update_frame_base_hack): Update.
6090 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6091 (frame_id_inner): Ditto.
6092
6093 2003-04-09 Andrew Cagney <cagney@redhat.com>
6094
6095 * defs.h (gdb_print_host_address): Make "addr" parameter a
6096 pointer constant.
6097 * utils.c (gdb_print_host_address): Update.
6098
6099 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6100
6101 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6102 register number for R0 is 0.
6103
6104 2003-04-09 J. Brobecker <brobecker@gnat.com>
6105
6106 * frame.h (struct gdbarch): Add opaque structure definition
6107 to avoid a compilation warning on LynxOS 4.0.
6108
6109 2003-04-09 Andrew Cagney <cagney@redhat.com>
6110
6111 * frame.h (struct frame_info): Delete field "pc". Replace
6112 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6113 structure.
6114 * frame.c (frame_pc_unwind): Update.
6115 (create_sentinel_frame): Do not set "pc".
6116 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6117 (get_frame_pc): Call frame_pc_unwind.
6118 (deprecated_update_frame_pc_hack): Update.
6119 (create_new_frame): Use "pc" not "->pc".
6120
6121 2003-04-09 Andrew Cagney <cagney@redhat.com>
6122
6123 * frame.c (get_frame_id): Eliminate code updating "frame".
6124 (legacy_get_prev_frame): Ditto.
6125 (get_frame_base): Return id.base directly.
6126 (deprecated_update_frame_base_hack): Update "id.base".
6127 * frame.h (struct frame_info): Delete field "frame".
6128
6129 2003-04-09 Andrew Cagney <cagney@redhat.com>
6130
6131 * NEWS: Mention that the "Sequent family" is obsolete.
6132 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6133 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6134 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6135 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6136 * config/i386/tm-ptx4.h: Obsolete file.
6137 * config/i386/tm-ptx.h: Obsolete file.
6138 * symm-tdep.c: Obsolete file.
6139 * config/i386/symmetry.mt: Obsolete file.
6140 * config/i386/tm-symmetry.h: Obsolete file.
6141 * symm-nat.c: Obsolete file.
6142 * config/i386/nm-symmetry.h: Obsolete file.
6143 * config/i386/xm-symmetry.h: Obsolete file.
6144 * config/i386/symmetry.mh: Obsolete file.
6145 * config/i386/nm-ptx4.h: Obsolete file.
6146 * config/i386/ptx4.mh: Obsolete file.
6147 * config/i386/ptx.mt: Obsolete file.
6148 * config/i386/ptx.mh: Obsolete file.
6149 * config/i386/xm-ptx4.h: Obsolete file.
6150 * config/i386/xm-ptx.h: Obsolete file.
6151
6152 2003-04-09 Andrew Cagney <cagney@redhat.com>
6153
6154 Obsolete mips*-*-mach3*.
6155 * NEWS: Mention that mips*-*-mach3* is obsolete.
6156 * m3-nat.c: Obsolete file.
6157 * config/nm-m3.h: Obsolete file.
6158 * config/mips/tm-mipsm3.h: Obsolete file.
6159 * config/mips/mipsm3.mt: Obsolete file.
6160 * config/mips/mipsm3.mh: Obsolete file.
6161 * config/mips/xm-mipsm3.h: Obsolete file.
6162 * mipsm3-nat.c: Obsolete file.
6163 * configure.host: Obsolete mips-dec-mach3*.
6164 * configure.tgt: Obsolete mips*-*-mach3*.
6165
6166 2003-04-09 Andrew Cagney <cagney@redhat.com>
6167
6168 * doublest.h: Update copyright.
6169 (deprecated_store_floating, deprecated_extract_floating): Rename
6170 store_floating and extract_floating. Update comments.
6171 * doublest.c: Update copyright.
6172 (extract_floating_by_length): Replace extract_floating.
6173 (store_floating_by_length): Replace store_floating.
6174 (deprecated_extract_floating): New function.
6175 (deprecated_store_floating): New function.
6176 (extract_typed_floating): Call extract_floating_by_length.
6177 (store_typed_floating): Call store_floating_by_length.
6178 * x86-64-tdep.c (x86_64_store_return_value): Update.
6179 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6180 (sh64_extract_return_value): Update.
6181 (sh_sh4_register_convert_to_virtual): Update.
6182 (sh_sh64_register_convert_to_virtual): Update.
6183 (sh_sh4_register_convert_to_raw): Update.
6184 (sh_sh64_register_convert_to_raw): Update.
6185 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6186 (rs6000_register_convert_to_raw): Update.
6187 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6188 (ia64_register_convert_to_raw): Update.
6189 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6190 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6191 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6192 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6193 (alpha_register_convert_to_raw): Update.
6194
6195 2003-04-08 Andrew Cagney <cagney@redhat.com>
6196
6197 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6198 * gdbarch.h, gdbarch.c: Re-generate.
6199 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6200 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6201 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6202 conditionally, use frame_pc_unwind as an alternative. Add
6203 comments.
6204 * arch-utils.c (init_frame_pc_default): Only call
6205 SAVED_PC_AFTER_CALL when available.
6206
6207 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6208
6209 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6210 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6211 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6212 (start_remote): Ditto.
6213 (handle_inferior_event): Ditto.
6214 (save_inferior_status): Ditto.
6215 (restore_inferior_status): Ditto.
6216 * infcmd.c (attach_command): Ditto.
6217 * fork-child.c (startup_inferior): Ditto.
6218 * inferior.h (stop_soon): Rename from stop_soon_quietly.
6219 * alpha-tdep.c (heuristic_proc_start): Ditto.
6220 * mips-tdep.c (heuristic_proc_start): Ditto.
6221 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6222 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6223 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6224 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6225 * remote-vx.c (vx_create_inferior): Ditto.
6226
6227 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6228
6229 * infrun.c (stop_soon_quietly): Make it an enum, to better
6230 override the default behavior of handle_inferior_event.
6231 (clear_proceed_status): Update uses of stop_soon_quietly to
6232 reflect that it is now an enum.
6233 (start_remote): Ditto.
6234 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6235 is set to handle the new GNU/Linux kernel behavior for
6236 attach/sigstop. Update uses of stop_soon_quietly.
6237 * inferior.h (enum stop_kind): New enum.
6238 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6239 Reset normal handle_inferior_event behavior, afterwards.
6240 * fork-child.c (startup_inferior): Update.
6241 * alpha-tdep.c (heuristic_proc_start): Update.
6242 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6243 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6244 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6245 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6246 * remote-vx.c (vx_create_inferior): Update.
6247 * mips-tdep.c (heuristic_proc_start): Update.
6248
6249 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
6250
6251 * disasm.c (dump_insns): Move variables inside loop, or they will
6252 be freed more than once, causing wild memory corruptions.
6253 (gdb_disassembly): Look for the substring "-thread",
6254 instead of "-threads" in the target name, to make sure to find
6255 the 'multi-thread' target. Also, make sure we do the right thing
6256 with the "core" target.
6257
6258 2003-04-07 Kevin Buettner <kevinb@redhat.com>
6259
6260 * mips-tdep.c (mips_print_fp_register): New function, created from
6261 do_fp_register_row(). Registers are now (also) printed as hex.
6262 Only one register is printed per row.
6263 (mips_print_register, do_fp_register_row): Print floating point
6264 registers with mips_print_fp_register().
6265
6266 2003-04-06 Andrew Cagney <cagney@redhat.com>
6267
6268 * valprint.h (inspect_it): Add extern declaration.
6269 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6270 (selectors_info, classes_info): Ditto.
6271 (find_objc_msgcall): Fix indentation.
6272 (objc_printstr): Delete extern declarations.
6273
6274 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6275
6276 2003-04-06 Andrew Cagney <cagney@redhat.com>
6277
6278 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6279 Update comment.
6280 * frame.c (legacy_saved_regs_this_id): Update.
6281 (legacy_get_prev_frame): Update.
6282 * xstormy16-tdep.c: Update comment.
6283 * sparc-tdep.c (sparc_frame_chain): Update comment.
6284 * blockframe.c (legacy_frame_chain_valid): Update.
6285
6286 2003-04-06 Andrew Cagney <cagney@redhat.com>
6287
6288 * valprint.c (val_print_type_code_int): Delete #ifdef
6289 PRINT_TYPELESS_INTEGER code.
6290
6291 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6292 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6293 multi-arch definition.
6294 * gdbarch.h: Re-generate.
6295
6296 2003-04-05 Andrew Cagney <cagney@redhat.com>
6297
6298 Eliminate FRAME_FIND_SAVED_REGS.
6299 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6300 Change FSR parameter to a pointer.
6301 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6302 Assume FSR parameter is a pointer.
6303 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6304 Make fsr a pointer.
6305 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6306 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6307 saved_regs a pointer.
6308 (hppa_frame_saved_pc): Ditto.
6309 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6310 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6311 pointer.
6312 (restore_pc_queue): Make fsr a pointer.
6313 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6314 (hppa_frame_chain): Make saved_regs a pointer, call
6315 hppa_frame_init_saved_regs.
6316 * sparc-tdep.c: Include "gdb_assert.h".
6317 (sparc_frame_find_saved_regs): Replace internal_error with
6318 gdb_assert.
6319 * remote-vxsparc.c (vx_read_register): Delete reference to
6320 FRAME_FIND_SAVED_REGS.
6321 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6322 * gdbarch.h: Regenerate.
6323 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6324 (deprecated_get_frame_saved_regs): Delete declaration.
6325 (struct frame_saved_regs): Delete definition.
6326 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6327 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6328 (hppa_frame_find_saved_regs): Delete declaration.
6329 (FRAME_FIND_SAVED_REGS): Delete macro.
6330 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6331 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6332 FRAME_FIND_SAVED_REGS in comment.
6333
6334 2003-04-05 Andrew Cagney <cagney@redhat.com>
6335
6336 * frame.c (frame_func_unwind, get_frame_func): New functions.
6337 * frame.h (get_frame_func, frame_func_unwind): Declare.
6338 (struct frame_info): Add field "prev_func" for caching the
6339 previous frame's function address.
6340 * arm-tdep.c (arm_frameless_function_invocation): Combine
6341 get_pc_function_start and get_frame_pc into get_frame_func.
6342 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6343 (sh64_nofp_frame_init_saved_regs): Ditto.
6344 * s390-tdep.c (s390_function_start): Ditto.
6345 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6346 (rs6000_frameless_function_invocation): Ditto.
6347 (rs6000_frame_saved_pc): Ditto.
6348 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6349 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6350 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6351 (i386_frame_init_saved_regs): Ditto.
6352 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6353 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6354 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6355 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6356 * blockframe.c (frameless_look_for_prologue): Ditto.
6357
6358 2003-04-05 Andrew Cagney <cagney@redhat.com>
6359
6360 * frame.c (legacy_get_prev_frame): Link prev to next at the
6361 function start. Update comments.
6362
6363 2003-04-05 Andrew Cagney <cagney@redhat.com>
6364
6365 * frame.c (get_frame_id): Update comment.
6366 (legacy_get_prev_frame): Update comment.
6367 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6368 * gdbarch.h: Regenerate.
6369 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6370 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6371
6372 2003-04-05 Andrew Cagney <cagney@redhat.com>
6373
6374 * stack.c (print_frame_info): Use get_frame_pc.
6375
6376 2003-04-04 Andrew Cagney <cagney@redhat.com>
6377
6378 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6379 the frame's type from the unwinder.
6380 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6381 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6382 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6383 (get_frame_base_address): Use get_frame_type.
6384 (get_frame_locals_address, get_frame_args_address): Ditto.
6385 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6386 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6387 (struct frame_info): Add comment explaining why the frame contains
6388 a "type" field.
6389 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6390 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6391 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6392 NORMAL_FRAME.
6393 * frame-unwind.h: Include "frame.h".
6394 (struct frame_unwind): Add "type" field.
6395 * Makefile.in (frame_unwind_h): Add $(frame_h).
6396
6397 2003-04-04 Andrew Cagney <cagney@redhat.com>
6398
6399 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6400 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6401 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6402 get_frame_base.
6403 (d10v_unwind_dummy_id): Use frame_id_build.
6404 * frame.c (find_frame_sal): Use get_frame_pc.
6405 (create_new_frame): Use deprecated_update_frame_pc_hack and
6406 deprecated_update_frame_base_hack.
6407 (create_sentinel_frame): Add comment about ->pc going away.
6408 (get_prev_frame): Add comment about ->pc going away.
6409 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6410 frame_id_build, deprecated_update_frame_pc_hack and
6411 deprecated_update_frame_base_hack.
6412 (select_frame): Use get_frame_pc.
6413 (legacy_saved_regs_this_id): Use frame_id_build.
6414
6415 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
6416
6417 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6418 signed integer case.
6419 (classify_argument): Handle enumerations and references.
6420
6421 2003-04-04 Andrew Cagney <cagney@redhat.com>
6422
6423 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6424 ID to NULL.
6425
6426 2003-04-01 Adam Fedor <fedor@gnu.org>
6427
6428 * gdb/objc-lang.c (selectors_info): Replace calls to
6429 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6430 SYMBOL_NATURAL_NAME.
6431 (classes_info, find_methods): Likewise.
6432
6433 2003-04-03 Kevin Buettner <kevinb@redhat.com>
6434
6435 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6436 ``mach'' to the value determined by bfd_default_set_arch_mach().
6437
6438 2003-04-02 Bob Rossi <bob_rossi@cox.net>
6439
6440 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6441 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6442 (mi-cmd-file.o): Update dependencies.
6443
6444 2003-04-01 Kevin Buettner <kevinb@redhat.com>
6445
6446 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6447 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6448
6449 2003-04-01 Adam Fedor <fedor@gnu.org>
6450
6451 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6452 * language.h (struct language_defn): Add la_demangle.
6453 (language_demangle): Declare.
6454 * language.c (language_demangle): New function.
6455 (unk_lang_demangle): Likewise.
6456 (unknown_language_defn, auto_language_defn, local_language_defn):
6457 Add ukn_lang_demangle.
6458 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6459 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6460 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6461 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6462 * jv-lang.c (java_demangle): New function
6463 (java_language_defn): Use it for la_demangle element.
6464 * objc-lang.c (objc_demangle): Add options argument
6465 (objc_language_defn): Use objc_demangle for la_demangle element.
6466 * maint.c (maintenance_demangle): Replace switch with
6467 call to language_demangle.
6468 * utils.c (fprintf_symbol_filtered): Likewise.
6469
6470 2003-04-01 Andrew Cagney <cagney@redhat.com>
6471
6472 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6473 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6474 PRINT_TYPELESS_INTEGER.
6475 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6476 PUSH_RETURN_ADDRESS.
6477
6478 2003-04-01 Andrew Cagney <cagney@redhat.com>
6479
6480 * Makefile.in (d10v-tdep.o): Update dependencies.
6481 * d10v-tdep.c: Include "frame-base.h".
6482 (d10v_frame_unwind): Make constant.
6483 (d10v_frame_base_address): New function.
6484 (d10v_frame_base): New variable.
6485 (d10v_gdbarch_init): Set frame_base default.
6486 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6487 comment for base.
6488 (d10v_frame_unwind_cache): Set and use "prev_sp".
6489 (d10v_frame_this_id): Use the previous frame's inner most stack
6490 address and this frame's func address for the frame ID. Use
6491 frame_id_build. Don't analyze beyond the current instruction.
6492
6493 2003-04-01 Andrew Cagney <cagney@redhat.com>
6494
6495 * frame.h (get_frame_locals_address, get_frame_args_address):
6496 Refer to the base address, instead of the address of the first
6497 local or parameter.
6498
6499 2003-04-01 Andrew Cagney <cagney@redhat.com>
6500
6501 Add frame debug info addresses:
6502 * frame-base.c: New file.
6503 * frame-base.h: New file.
6504 * frame.h (struct frame_base): Add opaque declaration.
6505 (get_frame_base): Update comment.
6506 (get_frame_base_address): Declare.
6507 (get_frame_locals_address): Declare.
6508 (get_frame_args_address): Declare.
6509 (struct frame_info): Add "base" and "base_cache". Update
6510 comments on the unwinder.
6511 * frame.c: Include "frame-base.h".
6512 (get_frame_locals_address): New function.
6513 (get_frame_base_address): New function.
6514 (get_frame_args_address): New function.
6515 * findvar.c (read_var_value): Use get_frame_locals_address and
6516 get_frame_args_address.
6517 * stack.c (frame_info): Use get_frame_locals_address and
6518 get_frame_args_address.
6519 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6520 moved to "frame-base.c".
6521 * printcmd.c (print_frame_nameless_args): Ditto.
6522 * symtab.h (address_class): Update comments.
6523 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6524 get_frame_base_address.
6525 * dwarf2expr.c (execute_stack_op): Ditto.
6526 * Makefile.in (frame_base_h): Define.
6527 (frame.o): Update dependencies.
6528 (frame-base.o): Add dependencies.
6529 (SFILES): Add frame-base.c.
6530 (COMMON_OBS): Add frame-base.o.
6531
6532 2003-04-01 Andrew Cagney <cagney@redhat.com>
6533
6534 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6535 CALL_DUMMY_LENGTH): Ditto.
6536 * gdbarch.c: Re-generate.
6537 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6538 (CALL_DUMMY_LENGTH): Delete macro.
6539 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6540 * arm-tdep.c (arm_gdbarch_init): Ditto.
6541 * avr-tdep.c (avr_gdbarch_init): Ditto.
6542 * cris-tdep.c (cris_gdbarch_init): Ditto.
6543 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6544 * frv-tdep.c (frv_gdbarch_init): Ditto.
6545 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6546 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6547 * i386-tdep.c (i386_gdbarch_init): Ditto.
6548 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6549 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6550 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6551 * mips-tdep.c (mips_gdbarch_init): Ditto.
6552 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6553 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6554 * s390-tdep.c (s390_gdbarch_init): Ditto.
6555 * sh-tdep.c (sh_gdbarch_init): Ditto.
6556 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6557 * v850-tdep.c (v850_gdbarch_init): Ditto.
6558 * vax-tdep.c (vax_gdbarch_init): Ditto.
6559 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6560
6561 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
6562
6563 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6564
6565 2003-04-01 Andrew Cagney <cagney@redhat.com>
6566
6567 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6568 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6569 * gdbarch.h, gdbarch.c: Re-generate.
6570 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6571 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6572 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6573 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6574 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6575 * infcmd.c (run_stack_dummy): Simplify assuming
6576 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6577 * infrun.c (handle_inferior_event): Ditto.
6578 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6579 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6580 * arm-tdep.c (arm_gdbarch_init): Ditto.
6581 * avr-tdep.c (avr_gdbarch_init): Ditto.
6582 * cris-tdep.c (cris_gdbarch_init): Ditto.
6583 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6584 * frv-tdep.c (frv_gdbarch_init): Ditto.
6585 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6586 * i386-tdep.c (i386_gdbarch_init): Ditto.
6587 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6588 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6589 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6590 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6591 * mips-tdep.c (mips_gdbarch_init): Ditto.
6592 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6593 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6594 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6595 * s390-tdep.c (s390_gdbarch_init): Ditto.
6596 * sh-tdep.c (sh_gdbarch_init): Ditto.
6597 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6598 * v850-tdep.c (v850_gdbarch_init): Ditto.
6599 * vax-tdep.c (vax_gdbarch_init): Ditto.
6600 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6601
6602 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
6603
6604 * symfile.c (symfile_relocate_debug_section): Update call to
6605 bfd_simple_get_relocated_section_contents.
6606
6607 2003-03-31 Andrew Cagney <cagney@redhat.com>
6608
6609 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6610 * gdbarch.h, gdbarch.c: Regenerate.
6611 * inferior.h (FIX_CALL_DUMMY): Delete macro.
6612 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
6613 available.
6614 * frame.h (generic_fix_call_dummy): Delete declaration.
6615 * dummy-frame.h: Update comment.
6616 * dummy-frame.c (generic_fix_call_dummy): Delete function.
6617 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6618 fix_call_dummy.
6619 * sh-tdep.c (sh_gdbarch_init): Ditto.
6620 * s390-tdep.c (s390_gdbarch_init): Ditto.
6621 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6622 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6623 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6624 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6625 * i386-tdep.c (i386_gdbarch_init): Ditto.
6626 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6627 * frv-tdep.c (frv_gdbarch_init): Ditto.
6628 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6629 * cris-tdep.c (cris_gdbarch_init): Ditto.
6630 * avr-tdep.c (avr_gdbarch_init): Ditto.
6631 * arm-tdep.c (arm_gdbarch_init): Ditto.
6632
6633 2003-03-31 J. Brobecker <brobecker@gnat.com>
6634
6635 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
6636 (INIT_FRAME_AP): Likewise.
6637 (EXTRA_FRAME_INFO): Likewise.
6638
6639 2003-03-31 Andrew Cagney <cagney@redhat.com>
6640
6641 * gdbarch.sh: Include "symfile.h".
6642 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
6643 * gdbarch.h, gdbarch.c: Re-generate.
6644 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
6645 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6646 call_dummy_address, the default is at entry_point_address.
6647 * v850-tdep.c (v850_gdbarch_init): Ditto.
6648 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6649 * sh-tdep.c (sh_gdbarch_init): Ditto.
6650 * s390-tdep.c (s390_gdbarch_init): Ditto.
6651 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6652 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6653 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6654 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6655 * i386-tdep.c (i386_gdbarch_init): Ditto.
6656 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6657 * frv-tdep.c (frv_gdbarch_init): Ditto.
6658 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6659 * cris-tdep.c (cris_gdbarch_init): Ditto.
6660 * arm-tdep.c (arm_gdbarch_init): Ditto.
6661
6662 2003-03-31 Andrew Cagney <cagney@redhat.com>
6663
6664 * gdbarch.sh (CALL_DUMMY_P): Delete.
6665 * gdbarch.h, gdbarch.c: Re-generate.
6666 * inferior.h (CALL_DUMMY_P): Delete macro.
6667 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6668 * vax-tdep.c (vax_gdbarch_init): Update.
6669 * v850-tdep.c (v850_gdbarch_init): Update.
6670 * sparc-tdep.c (sparc_gdbarch_init): Update.
6671 * sh-tdep.c (sh_gdbarch_init): Update.
6672 * s390-tdep.c (s390_gdbarch_init): Update.
6673 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6674 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6675 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6676 * mips-tdep.c (mips_gdbarch_init): Update.
6677 * mcore-tdep.c (mcore_gdbarch_init): Update.
6678 * m68k-tdep.c (m68k_gdbarch_init): Update.
6679 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6680 * ia64-tdep.c (ia64_gdbarch_init): Update.
6681 * i386-tdep.c (i386_gdbarch_init): Update.
6682 * h8300-tdep.c (h8300_gdbarch_init): Update.
6683 * frv-tdep.c (frv_gdbarch_init): Update.
6684 * d10v-tdep.c (d10v_gdbarch_init): Update.
6685 * cris-tdep.c (cris_gdbarch_init): Update.
6686 * breakpoint.c (deprecated_frame_in_dummy): Update.
6687 * avr-tdep.c (avr_gdbarch_init): Update.
6688 * alpha-tdep.c (alpha_gdbarch_init): Update.
6689 * arm-tdep.c (arm_gdbarch_init): Update.
6690 * dummy-frame.c (dummy_frame_this_id): Update comments.
6691 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
6692 * frame.c (legacy_get_prev_frame): Ditto.
6693 * valops.c (call_function_by_hand): Delete function.
6694 (hand_function_call): Rename to call_function_by_hand
6695
6696 2003-03-30 Andrew Cagney <cagney@redhat.com>
6697
6698 2002-11-10 Klee Dienes <kdienes@apple.com>
6699 * value.h (struct value): Update comment.
6700
6701 2003-03-30 Andrew Cagney <cagney@redhat.com>
6702
6703 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
6704 D10V_FP_REGNUM.
6705 (d10v_gdbarch_init): Do not set fp_regnum.
6706
6707 * frame.c (get_frame_base): Force ID initialization.
6708 (get_prev_frame): Move computation of the frame ID from here ...
6709 (get_frame_id): ... to here.
6710 (legacy_get_prev_frame): Mark the frame ID as valid.
6711 * frame.h (struct frame_info): Add field "id_p".
6712
6713 2003-03-30 Mark Kettenis <kettenis@gnu.org>
6714
6715 * i386-tdep.c (i386_store_struct_return): Removed.
6716 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
6717
6718 2003-03-30 Andrew Cagney <cagney@redhat.com>
6719
6720 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
6721 * gdbarch.h, gdbarch.c: Regenerate.
6722 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
6723 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6724 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6725 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6726 * i386-tdep.c (i386_gdbarch_init): Ditto.
6727 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6728 * cris-tdep.c (cris_gdbarch_init): Ditto.
6729 * vax-tdep.c (vax_gdbarch_init): Ditto.
6730 * s390-tdep.c (s390_gdbarch_init): Ditto.
6731 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6732 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6733 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6734 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
6735 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6736 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
6737 * sparc-tdep.c (sparc_gdbarch_init): Update.
6738 * sh-tdep.c (sh_gdbarch_init): Update.
6739 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6740 * mips-tdep.c (mips_gdbarch_init): Update.
6741 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6742 * ia64-tdep.c (ia64_gdbarch_init): Update.
6743 * frv-tdep.c (frv_gdbarch_init): Update.
6744 * avr-tdep.c (avr_gdbarch_init): Update.
6745 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
6746 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
6747 instead of when push_dummy_call is not available.
6748
6749 2003-03-30 Andrew Cagney <cagney@redhat.com>
6750
6751 * infttrace.c: Include "gdbthread.h".
6752 (parent_attach_all): Fix function signature.
6753 (call_ptrace): Update call.
6754 * Makefile.in (infttrace.o): Update dependencies.
6755
6756 2003-03-30 Andrew Cagney <cagney@redhat.com>
6757
6758 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
6759 PUSH_RETURN_ADDRESS.
6760 * gdbarch.h, gdbarch.c: Regenerate.
6761 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6762 * x86-64-tdep.c (x86_64_init_abi): Update.
6763 * v850-tdep.c (v850_gdbarch_init): Update.
6764 * sparc-tdep.c (sparc_gdbarch_init): Update.
6765 * sh-tdep.c (sh_gdbarch_init): Update.
6766 * s390-tdep.c (s390_gdbarch_init): Update.
6767 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6768 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6769 * mips-tdep.c (mips_gdbarch_init): Update.
6770 * mcore-tdep.c (mcore_gdbarch_init): Update.
6771 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6772 * ia64-tdep.c (ia64_gdbarch_init): Update.
6773 * i386-tdep.c (i386_gdbarch_init): Update.
6774 * h8300-tdep.c (h8300_gdbarch_init): Update.
6775 * frv-tdep.c (frv_gdbarch_init): Update.
6776 * cris-tdep.c (cris_gdbarch_init): Update.
6777 * avr-tdep.c (avr_gdbarch_init): Update.
6778 * arm-tdep.c (arm_gdbarch_init): Update.
6779 * valops.c (hand_function_call): Update.
6780
6781 2003-03-29 Andrew Cagney <cagney@redhat.com>
6782
6783 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
6784 sizeof_call_dummy_words.
6785 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
6786 define.
6787 * gdbarch.h: Regenerate.
6788
6789 2003-03-29 Andrew Cagney <cagney@redhat.com>
6790
6791 * infttrace.h: New file.
6792 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
6793 (hpread_get_textlow): Detect an uninitialized dn_bufp.
6794 (hpread_read_doc_function_type): Detect an initialized type1.
6795 (hpread_quick_traverse): Initialize mod_name_string.
6796 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
6797 (som_solib_get_solib_by_pc): Declare.
6798 (so_lib_thread_start_addr): Declare.
6799 (no_shared_libraries): Declare.
6800 * somread.c (init_import_symbols): Make static. Add forward
6801 declaration.
6802 * config/pa/nm-hppah.h: Include "infttrace.h" for
6803 parent_attach_all.
6804 (hppa_insert_hw_watchpoint): Declare.
6805 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
6806 * hppah-nat.c: Include "gdb_string.h".
6807 (parent_attach_all): Delete extern declaration, moved to
6808 "infttrace.h".
6809 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
6810 int.
6811 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
6812 * Makefile.in (infttrace_h): Define.
6813 (hpread.o): Update dependencies.
6814 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
6815 * hppa-hpux-tdep.c: Include "gdb_string.h".
6816 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
6817 * infrun.c (handle_inferior_event): Always initialize
6818 stepped_after_stopped_by_watchpoint. Add default and remove
6819 fallthrough in switch statement.
6820 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
6821 parameter to int.
6822 (hppa_remove_hw_watchpoint): Ditto.
6823
6824 2003-03-29 Andrew Cagney <cagney@redhat.com>
6825
6826 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
6827 offset.
6828
6829 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
6830
6831 * arm-tdep.c (arm_push_arguments): Delete.
6832 (struct stack_item): New type.
6833 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
6834 (arm_store_struct_return): Delte.
6835 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
6836 arm_push_arguments or arm_store_struct_return.
6837
6838 2003-03-28 Andrew Cagney <cagney@redhat.com>
6839
6840 * Makefile.in (d10v-tdep.o): Update dependencies.
6841 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
6842 * d10v-tdep.c: Include "remote.h".
6843 (target_resume_hook): Delete extern declaration.
6844 (target_wait_loop_hook): Ditto.
6845 (tdisassemble_command): Eliminate assignment in "if" conditional.
6846 (d10v_ts2_register_sim_regno): Eliminate call to
6847 legacy_register_sim_regno.
6848 (d10v_ts3_register_sim_regno): Ditto.
6849
6850 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
6851
6852 * thread.c: Reindented.
6853 * lin-lwp.c: Ditto.
6854 * linux-proc.c: Ditto.
6855
6856 2003-03-28 Bob Rossi <bob_rossi@cox.net>
6857
6858 * MAINTAINERS (write after approval): Add myself.
6859
6860 2003-03-27 Theodore A. Roth <troth@openavr.org>
6861
6862 * objc-exp.y: Add missing semi-colons.
6863
6864 2003-03-27 Andrew Cagney <cagney@redhat.com>
6865
6866 * regcache.c (write_sp): Delete function and references.
6867 * inferior.h (write_sp): Delete declaration.
6868 * valops.c (hand_function_call): Replace write_sp with
6869 TARGET_WRITE_SP.
6870 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
6871 (sparc_pop_frame): Ditto.
6872
6873 2003-03-27 Andrew Cagney <cagney@redhat.com>
6874
6875 * NEWS: Mention removal of support for hppa*-*-bsd* and
6876 hppa*-*-osf* natives, and hppa*-*-pro* target.
6877 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
6878 * config/pa/xm-pa.h: Obsolete file.
6879 * config/pa/xm-hppab.h: Obsolete file.
6880 * config/pa/nm-hppab.h: Obsolete file.
6881 * config/pa/tm-hppab.h: Obsolete file.
6882 * config/pa/tm-hppao.h: Obsolete file.
6883 * config/pa/nm-hppao.h: Obsolete file.
6884 * config/pa/tm-pro.h: Obsolete file.
6885 * config/pa/hppaosf.mt: Obsolete file.
6886 * config/pa/hppaosf.mh: Obsolete file.
6887 * config/pa/hppapro.mt: Obsolete file.
6888 * config/pa/hppabsd.mt: Obsolete file.
6889 * config/pa/hppabsd.mh: Obsolete file.
6890 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
6891 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
6892 hppa*-*-osf*.
6893
6894 2003-03-27 Andrew Cagney <cagney@redhat.com>
6895
6896 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
6897 push_arguments. Don't set push_return_address or write_sp.
6898 (d10v_push_dummy_call): Replace d10v_push_arguments.
6899 (d10v_push_return_address, d10v_write_sp): Delete function,
6900 handled by push_dummy_call.
6901
6902 2003-03-26 Andrew Cagney <cagney@redhat.com>
6903
6904 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
6905 (push_dummy_call): New pure multi-arch replacement with gdbarch,
6906 regcache and dummy_addr parameters.
6907 * gdbarch.h, gdbarch.c: Re-generate.
6908 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
6909 available; assume it will handle stack alignment and return
6910 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
6911 legacy_push_arguments.
6912 (legacy_push_arguments): Rename default_push_arguments.
6913 * value.h (legacy_push_arguments): Rename default_push_arguments.
6914 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
6915 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6916 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6917 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6918 * config/i386/tm-symmetry.h: Update.
6919 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6920 * x86-64-tdep.c (x86_64_init_abi): Update.
6921 * v850-tdep.c (v850_gdbarch_init): Update.
6922 * sparc-tdep.c (sparc_gdbarch_init): Update.
6923 * sh-tdep.c (sh_gdbarch_init): Update.
6924 * s390-tdep.c (s390_gdbarch_init): Update.
6925 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6926 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6927 * mips-tdep.c (mips_gdbarch_init): Update.
6928 * mcore-tdep.c (mcore_gdbarch_init): Update.
6929 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6930 * ia64-tdep.c (ia64_gdbarch_init): Update.
6931 * i386-tdep.c (i386_gdbarch_init): Update.
6932 * hppa-tdep.c (hppa_gdbarch_init): Update.
6933 * h8300-tdep.c (h8300_gdbarch_init): Update.
6934 * frv-tdep.c (frv_gdbarch_init): Update.
6935 * d10v-tdep.c (d10v_gdbarch_init): Update.
6936 * cris-tdep.c (cris_gdbarch_init): Update.
6937 * avr-tdep.c (avr_gdbarch_init): Update.
6938 * arm-tdep.c (arm_gdbarch_init): Update.
6939 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6940 * alpha-tdep.c (alpha_gdbarch_init): Update.
6941
6942 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6943
6944 * signals/signals.c (do_target_signal_to_host): Correct realtime
6945 signal range test.
6946
6947 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6948
6949 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
6950 (struct sal_chain, map_catch_names): Remove.
6951 (catch_exception_command_1): Don't call
6952 handle_gnu_4_16_catch_command.
6953
6954 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6955
6956 From Mark Dettinger <dettinge@de.ibm.com>:
6957 * dwarf2cfi.c (read_2u): Increment pointer by two.
6958
6959 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6960
6961 * signals/signals.c: Fix typos in last change.
6962
6963 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6964
6965 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
6966 not already defined. Use __SIGRTMIN if available.
6967 (target_signal_from_host): Remove SIGRTMIN block.
6968 (do_target_signal_to_host): Remove SIGRTMIN block; check that
6969 the signal is within the realtime range.
6970
6971 2003-03-25 Adam Fedor <fedor@gnu.org>
6972
6973 * Makefile.in (infrun.o): Add $(language_h)
6974 * infrun.c (handle_inferior_event): Use skip_language_trampoline
6975 for language specific trampolines.
6976 * language.h (struct language_defn): Add skip_trampoline.
6977 (skip_language_trampoline): Declare.
6978 * language.c (unk_lang_trampoline, skip_language_trampoline):
6979 New functions.
6980 (unknown_language_defn, auto_language_defn, local_language_defn):
6981 Add ukn_lang_trampoline.
6982 * ada-lang.c (ada_language_defn): Add NULL for language
6983 specific skip_trampoline.
6984 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
6985 scm-lang.c: Likewise.
6986 * objc-lang.c (objc_skip_trampoline): New function.
6987 (objc_language_defn): Add objc_skip_trampoline.
6988
6989 2003-03-25 Andrew Cagney <cagney@redhat.com>
6990
6991 * frame.c (get_prev_frame): Delay validating a frame's ID -
6992 non-NULL, didn't go backwards - until an attempt to unwind it to
6993 the previous frame.
6994
6995 2003-03-25 Andrew Cagney <cagney@redhat.com>
6996
6997 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
6998 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
6999 * gdbarch.h, gdbarch.c: Re-generate.
7000 * config/sparc/tm-sparc.h
7001 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7002 * sparc-tdep.c (sparc_gdbarch_init): Set
7003 deprecated_extra_stack_alignment_needed.
7004 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7005 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7006 extra_stack_alignment_needed.
7007 * v850-tdep.c (v850_gdbarch_init): Ditto.
7008 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7009 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7010 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7011 * cris-tdep.c (cris_gdbarch_init): Ditto.
7012 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7013 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7014
7015 2003-03-25 Andrew Cagney <cagney@redhat.com>
7016
7017 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7018 STORE_STRUCT_RETURN.
7019 * gdbarch.h, gdbarch.c: Regenerate.
7020 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7021 (d10v_push_arguments): Set the struct return register.
7022 (d10v_gdbarch_init): Update.
7023 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7024 * x86-64-tdep.c (x86_64_init_abi): Update.
7025 * vax-tdep.c (vax_gdbarch_init): Update.
7026 * v850-tdep.c (v850_gdbarch_init): Update.
7027 * sparc-tdep.c (sparc_gdbarch_init): Update.
7028 * sh-tdep.c (sh_gdbarch_init): Update.
7029 * s390-tdep.c (s390_gdbarch_init): Update.
7030 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7031 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7032 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7033 * mips-tdep.c (mips_gdbarch_init): Update.
7034 * mcore-tdep.c (mcore_gdbarch_init): Update.
7035 * m68k-tdep.c (m68k_gdbarch_init): Update.
7036 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7037 * ia64-tdep.c (ia64_gdbarch_init): Update.
7038 * i386-tdep.c (i386_gdbarch_init): Update.
7039 * hppa-tdep.c (hppa_gdbarch_init): Update.
7040 * h8300-tdep.c (h8300_gdbarch_init): Update.
7041 * frv-tdep.c (frv_gdbarch_init): Update.
7042 * cris-tdep.c (cris_gdbarch_init): Update.
7043 * avr-tdep.c (avr_gdbarch_init): Update.
7044 * arm-tdep.c (arm_gdbarch_init): Update.
7045 * alpha-tdep.c (alpha_gdbarch_init): Update.
7046
7047 2003-03-25 Andrew Cagney <cagney@redhat.com>
7048
7049 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7050 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7051 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7052 * gdbarch.h, gdbarch.c: Regenerate.
7053 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7054 call_dummy_stack_adjust_p.
7055 * vax-tdep.c (vax_gdbarch_init): Ditto.
7056 * v850-tdep.c (v850_gdbarch_init): Ditto.
7057 * sh-tdep.c (sh_gdbarch_init): Ditto.
7058 * s390-tdep.c (s390_gdbarch_init): Ditto.
7059 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7060 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7061 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7062 * mips-tdep.c (mips_gdbarch_init): Ditto.
7063 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7064 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7065 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7066 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7067 * i386-tdep.c (i386_gdbarch_init): Ditto.
7068 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7069 * frv-tdep.c (frv_gdbarch_init): Ditto.
7070 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7071 * cris-tdep.c (cris_gdbarch_init): Ditto.
7072 * avr-tdep.c (avr_gdbarch_init): Ditto.
7073 * arm-tdep.c (arm_gdbarch_init): Ditto.
7074 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7075 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7076 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7077 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7078 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7079 call_dummy_stack_adjust_p.
7080 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7081 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7082 * sparc-tdep.c (sparc32_push_arguments): Update.
7083 * valops.c (hand_function_call): Update.
7084
7085 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7086
7087 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7088 set_gdbarch_char_signed.
7089
7090 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7091
7092 PR cli/548
7093 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7094
7095 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7096
7097 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7098 (_initialize_arm_tdep): Don't set tm_print_insn.
7099
7100 2003-03-24 Adam Fedor <fedor@gnu.org>
7101
7102 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7103 * objc-lang.h: Add multiple inclusion protection.
7104 (start_msglist, add_msglist, end_msglist): Additional declarations.
7105
7106 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7107
7108 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7109 value was renamed to ARM_FLOAT_SOFT_FPA.
7110
7111 2003-03-23 Andrew Cagney <cagney@redhat.com>
7112
7113 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7114 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7115 * gdbarch.h, gdbarch.c: Regenerate.
7116 * valops.c (hand_function_call): Update.
7117 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7118 * frame.c (legacy_saved_regs_this_id): Update.
7119 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7120 * dummy-frame.h: Update.
7121 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7122 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7123 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7124 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7125 * config/m68k/tm-sun3.h: Update.
7126 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7127 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7128 * x86-64-tdep.c (x86_64_init_abi): Update.
7129 * vax-tdep.c (vax_gdbarch_init): Update.
7130 * v850-tdep.c (v850_gdbarch_init): Update.
7131 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7132 * sh-tdep.c (sh_gdbarch_init): Update.
7133 * s390-tdep.c (s390_gdbarch_init): Update.
7134 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7135 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7136 (frame_get_saved_regs): Update.
7137 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7138 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7139 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7140 * mips-tdep.c (mips_gdbarch_init): Update.
7141 * mcore-tdep.c (mcore_gdbarch_init): Update.
7142 * m68k-tdep.c (m68k_gdbarch_init): Update.
7143 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7144 * ia64-tdep.c (ia64_gdbarch_init): Update.
7145 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7146 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7147 (i386_interix_back_one_frame): Update.
7148 * hppa-tdep.c (hppa_gdbarch_init): Update.
7149 (hppa_init_extra_frame_info): Update.
7150 * h8300-tdep.c (h8300_gdbarch_init): Update.
7151 * frv-tdep.c (frv_gdbarch_init): Update.
7152 * cris-tdep.c (cris_gdbarch_init): Update.
7153 * avr-tdep.c (avr_gdbarch_init): Update.
7154 * arm-tdep.c (arm_gdbarch_init): Update.
7155 * alpha-tdep.c (alpha_gdbarch_init): Update.
7156
7157 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7158
7159 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7160 (arm_get_fp_model): Declare.
7161 * arm-tdep.c (fp_model_strings): New string array.
7162 (arm_fp_model, current_fp_model): New variables.
7163 (arm_get_fp_model): New function.
7164 (arm_set_fp): New function.
7165 (set_fp_model_sfunc): New function.
7166 (show_fp_model): New function.
7167 (_initialize_arm_tdep): Add new command to set/show the FPU.
7168 (arm_extract_return_value): Use arm_get_fp_model.
7169 (arm_store_return_value): Likewise.
7170 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7171 to initialize the floating-point data types.
7172 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7173 model is FPA.
7174
7175 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7176
7177 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7178 the current setting of each value.
7179 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7180 new_set and new_show. Use add_setshow_cmd_full and
7181 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7182 commands and add new version as subcommands of "set/show arm".
7183
7184 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7185
7186 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7187 (set_arm_command, show_arm_command): New functions.
7188 (_initialize_arm_tdep): Add them.
7189 (num_disassembly_options): Renamed from num_flavor_options.
7190 (valid_disassembly_styles): Renamed from valid_flavors.
7191 (disassembly_style): Renamed from disassembly_flavor.
7192 (set_disassembly_style_sfunc): Renamed from
7193 set_disassembly_flavor_sfunc.
7194 (set_disassembly_style): Renamed from set_disassembly_flavor.
7195 (arm_othernames): Updated.
7196 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7197 command. Add "set/show arm disassembly" commands. Deprecate
7198 "othernames" command.
7199
7200 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7201
7202 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7203 (arm-tdep.o): Depend on elf_arm_h.
7204
7205 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7206
7207 * Makefile.in (coff_internal_h): Define.
7208 (arm-tdep.o): Update dependencies.
7209
7210 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7211
7212 * arm-tdep.c (prologue_cache): Delete.
7213 (check_prologue_cache, save_prologue_cache): Delete.
7214 (arm_scan_prologue): Don't check or update the prologue_cache.
7215 (arm_gdb_arch_init): Don't initialize it.
7216 (_initialize_arm_tdep): Likewise.
7217
7218 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7219
7220 * MAINTAINERS (tui): Maintainer of tui code.
7221
7222 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
7223
7224 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7225 (i386-cygwin-tdep.o): Add dependencies.
7226 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7227 * i386-cygwin-tdep.c: New file.
7228 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7229 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7230
7231 2003-03-20 Andrew Cagney <cagney@redhat.com>
7232
7233 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7234 (handle_inferior_event): Remove code calling
7235 DYNAMIC_TRAMPOLINE_NEXTPC.
7236
7237 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7238 already has a full path.
7239
7240 * main.c (gdb_main): Return 1.
7241 (captured_main): Call error to report an invalid interpreter.
7242
7243 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7244 * alpha-osf1-tdep.c: Include "gdb_string.h".
7245
7246 2003-03-19 J. Brobecker <brobecker@gnat.com>
7247
7248 Continuing work to convert the hppa targets to multiarch partial.
7249
7250 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7251 method, now that hppa_push_dummy_frame has a conformant prototype.
7252 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7253 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7254 for the switch to multiarch partial.
7255
7256 2003-03-19 Kevin Buettner <kevinb@redhat.com>
7257
7258 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7259 when iss is issNull.
7260
7261 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7262
7263 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7264 NUM_REGS bounds check.
7265
7266 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7267
7268 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7269 * mips-tdep.c (gdb_assert.h): Include.
7270 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7271 (mips_register_name): Handle integer registers explicitly. Add
7272 bounds checking.
7273 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7274 (mips_lsi33k_reg_names): Don't list integer registers; they're
7275 handled by mips_register_name() now.
7276 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7277 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7278 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7279 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7280 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7281
7282 2003-03-18 Andrew Cagney <cagney@redhat.com>
7283
7284 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7285 a void pointer.
7286 * gdbtypes.h (print_scalar_formatted): Update declaration.
7287 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7288
7289 2003-03-18 J. Brobecker <brobecker@gnat.com>
7290
7291 * infrun.c (observer.h): Add #include.
7292 (normal_stop): Add call to observer_notify_normal_stop.
7293 * Makefile.in (infrun.o): Add dependency on observer.h.
7294
7295 2003-03-18 J. Brobecker <brobecker@gnat.com>
7296
7297 Continuing work to convert the hppa targets to multiarch partial.
7298 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7299 parameter. Reformat comment.
7300 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7301 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7302 to match new profile.
7303
7304 2003-03-18 J. Brobecker <brobecker@gnat.com>
7305
7306 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7307 appear to be working in any case.
7308
7309 2003-03-18 J. Brobecker <brobecker@gnat.com>
7310
7311 * observer.c (observer_test_first_observer): New static variable.
7312 (observer_test_second_observer): Likewise.
7313 (observer_test_third_observer): Likewise.
7314 (observer_test_first_notification_function): New static function.
7315 (observer_test_second_notification_function): Likewise.
7316 (observer_test_third_notification_function): Likewise.
7317
7318 2003-03-17 J. Brobecker <brobecker@gnat.com>
7319
7320 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7321 * somsolib.c (gdb_assert.h): Likewise.
7322 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7323 (somsolib.o): Likewise.
7324
7325 2003-03-17 Andrew Cagney <cagney@redhat.com>
7326
7327 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7328 BFD. Simplify setting of di.endian.
7329
7330 2003-03-17 Andrew Cagney <cagney@redhat.com>
7331
7332 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7333 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7334
7335 From Elena Zannoni <ezannoni@redhat.com>
7336 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7337 vector and floating-point parameters.
7338 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7339 convention.
7340 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7341
7342 2003-03-17 Fernando Nasser <fnasser@redhat.com>
7343
7344 * MAINTAINERS: Remove my name from several maintainership roles.
7345
7346 2003-03-17 Andrew Cagney <cagney@redhat.com>
7347
7348 Fix frame off-by-one bug.
7349 * frame-unwind.h (frame_this_id_ftype): Replace
7350 frame_unwind_id_ftype.
7351 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7352 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7353 with "prev_register".
7354 * frame-unwind.c (frame_unwind_find_by_pc): Return
7355 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7356 comment.
7357 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7358 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7359 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7360 (dummy_frame_unwind): Update.
7361 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7362 sentinel_frame_register_unwind.
7363 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7364 (sentinel_frame_unwinder): Update.
7365 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7366 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7367 * frame.c (create_sentinel_frame): Update. Initialize
7368 "prologue_cache" instead of "unwind_cache".
7369 (frame_register_unwind): Call this frame's prev_register with the
7370 next frame and this frame's prologue cache.
7371 (get_prev_frame): Simplify. Always call prev frame's this_id with
7372 this frame and prev frame's prologue cache. Document that this
7373 call is shifted one to the left when compared to the
7374 frame_register_unwind call.
7375 (legacy_saved_regs_prev_register): Replace
7376 frame_saved_regs_register_unwind.
7377 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7378 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7379 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7380 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7381 (d10v_frame_unwind): Update.
7382 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7383 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7384 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7385 "saved_regs" with "this_saved_regs".
7386
7387 2003-03-16 Andrew Cagney <cagney@redhat.com>
7388
7389 * frame.c (frame_pop): Don't call target_store_registers. Fix
7390 problem reported by Mark Kettenis.
7391
7392 2003-03-16 Mark Kettenis <kettenis@gnu.org>
7393
7394 * i386-tdep.c (i386_register_type): Renamed from
7395 i386_register_virtual_type. Adjust function signature.
7396 (i386_gdbarch_init): Set register_type instead of
7397 deprecated_max_register_raw_size,
7398 deprecated_max_register_virtual_size and register_virtual_type.
7399
7400 2003-03-14 Andrew Cagney <cagney@redhat.com>
7401
7402 * frame.c (get_prev_frame): When a legacy frame, always call
7403 legacy_get_prev_frame. Simplify unwind code using assumption that
7404 the unwinder is new.
7405 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7406 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7407 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7408
7409 2003-03-14 Andrew Cagney <cagney@redhat.com>
7410
7411 * frame.c (get_saved_register): Delete function.
7412 * frame.h (get_saved_register): Delete declaration.
7413 * xstormy16-tdep.c: Update comment.
7414 * regcache.h: Update comments.
7415 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7416 get_saved_register and extract_address, use
7417 frame_read_unsigned_register.
7418 (sparc_frame_saved_pc): Ditto.
7419 (sparc_get_saved_register): Instead of get_saved_register, use
7420 frame_register.
7421 (sparc_pop_frame): Ditto.
7422 * findvar.c: Update comments.
7423 (value_of_register): Call frame_register instead of
7424 get_saved_register.
7425 (value_from_register): Ditto.
7426 * config/sparc/tm-sparc.h: Update comment.
7427 * breakpoint.c: Update comment.
7428
7429 2003-03-14 Andrew Cagney <cagney@redhat.com>
7430
7431 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7432 GET_SAVED_REGISTER.
7433 * gdbarch.h, gdbarch.c: Re-generate.
7434 * frame.h: Update comments.
7435 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7436 * x86-64-tdep.c (x86_64_init_abi): Update.
7437 * sparc-tdep.c (sparc_gdbarch_init): Update.
7438 * sh-tdep.c (sh_gdbarch_init): Update.
7439 * mips-tdep.c (mips_gdbarch_init): Update.
7440 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7441 * cris-tdep.c (cris_gdbarch_init): Update.
7442 * ia64-tdep.c (ia64_gdbarch_init): Update.
7443 * frame.c (frame_register): Update.
7444 (get_saved_register): Update.
7445 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7446
7447 2003-03-13 Andrew Cagney <cagney@redhat.com>
7448
7449 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7450 * gdbarch.h, gdbarch.c: Regenerate.
7451 * valops.c (hand_function_call): Update comment.
7452 * stack.c (return_command): Update comment.
7453 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7454 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7455 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7456 * x86-64-tdep.c (x86_64_init_abi): Update.
7457 * vax-tdep.c (vax_gdbarch_init): Update.
7458 * v850-tdep.c (v850_gdbarch_init): Update.
7459 * sparc-tdep.c (sparc_gdbarch_init): Update.
7460 * sh-tdep.c (sh_gdbarch_init): Update.
7461 * s390-tdep.c (s390_gdbarch_init): Update.
7462 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7463 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7464 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7465 * mips-tdep.c (mips_gdbarch_init): Update.
7466 * mcore-tdep.c (mcore_gdbarch_init): Update.
7467 * m68k-tdep.c (m68k_gdbarch_init): Update.
7468 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7469 * ia64-tdep.c (ia64_gdbarch_init): Update.
7470 * i386-tdep.c (i386_gdbarch_init): Update.
7471 * hppa-tdep.c (hppa_gdbarch_init): Update.
7472 * h8300-tdep.c (h8300_gdbarch_init): Update.
7473 * frv-tdep.c (frv_gdbarch_init): Update.
7474 * cris-tdep.c (cris_gdbarch_init): Update.
7475 * avr-tdep.c (avr_gdbarch_init): Update.
7476 * arm-tdep.c (arm_gdbarch_init): Update.
7477 * alpha-tdep.c (alpha_gdbarch_init): Update.
7478
7479 2003-03-13 Andrew Cagney <cagney@redhat.com>
7480
7481 * frame.c (legacy_frame_p): New function.
7482 (get_prev_frame): Use legacy_frame_p.
7483 * frame.h (legacy_frame_p): Declare.
7484
7485 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7486
7487 * MAINTAINERS (write after approval): Alphabetically
7488 listing corrected.
7489
7490 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7491
7492 * MAINTAINERS (write after approval): Add myself.
7493
7494 2003-03-12 Andrew Cagney <cagney@redhat.com>
7495
7496 * frame.c (get_prev_frame): Rename the frame parameter to
7497 "this_frame".
7498 (get_next_frame, legacy_get_prev_frame): Ditto.
7499
7500 2003-03-12 Andrew Cagney <cagney@redhat.com>
7501
7502 * frame.c (get_current_frame): Check target_has_registers before
7503 checking target_has_stack.
7504 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7505 instead of deprecated_selected_frame.
7506 * findvar.c (value_of_register): Pass "frame", not
7507 deprecated_selected_frame, to value_of_builtin_reg.
7508
7509 2003-03-12 Andrew Cagney <cagney@redhat.com>
7510
7511 * regcache.c (regcache_cooked_write_signed): New function.
7512 (regcache_cooked_write_unsigned): New function.
7513 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7514 (regcache_cooked_read_signed): Fix regnum in range assertion.
7515 * regcache.h (regcache_cooked_write_signed): Declare.
7516 (regcache_cooked_write_unsigned): Declare.
7517
7518 2003-03-12 Andrew Cagney <cagney@redhat.com>
7519
7520 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7521 * gdbarch.h, gdbarch.c: Re-generate.
7522 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7523 * x86-64-tdep.h: Update.
7524 * x86-64-tdep.c (x86_64_init_abi): Update.
7525 * v850-tdep.c (v850_gdbarch_init): Update.
7526 * sparc-tdep.c (sparc_gdbarch_init): Update.
7527 * sh-tdep.c (sh_gdbarch_init): Update.
7528 * s390-tdep.c (s390_gdbarch_init): Update.
7529 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7530 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7531 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7532 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7533 * mips-tdep.c (mips_gdbarch_init): Update.
7534 * mcore-tdep.c (mcore_gdbarch_init): Update.
7535 * m68k-tdep.c (m68k_gdbarch_init): Update.
7536 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7537 * ia64-tdep.c (ia64_gdbarch_init): Update.
7538 * i386-tdep.c (i386_gdbarch_init): Update.
7539 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7540 * hppa-tdep.c (hppa_gdbarch_init): Update.
7541 * h8300-tdep.c (h8300_gdbarch_init): Update.
7542 * frv-tdep.c (frv_gdbarch_init): Update.
7543 * cris-tdep.c (cris_gdbarch_init): Update.
7544 * avr-tdep.c (avr_gdbarch_init): Update.
7545 * arm-tdep.c (arm_gdbarch_init): Update.
7546 * alpha-tdep.c (alpha_gdbarch_init): Update.
7547 * sh-tdep.c (sh_init_extra_frame_info): Update.
7548 (sh64_init_extra_frame_info): Update.
7549 * ns32knbsd-nat.c (frame_num_args): Update.
7550 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7551 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7552 (xstormy16_frame_chain_valid): Update.
7553 * vax-tdep.c (vax_saved_pc_after_call): Update.
7554 * v850-tdep.c (v850_frame_chain): Update.
7555 (v850_pop_frame): Update.
7556 (v850_init_extra_frame_info): Update.
7557 * sparc-tdep.c (setup_arbitrary_frame): Update.
7558 * ns32k-tdep.c (umax_frame_num_args): Update.
7559 * s390-tdep.c (s390_pop_frame_regular): Update.
7560 * mn10300-tdep.c (mn10300_frame_chain): Update.
7561 (mn10300_pop_frame_regular): Update.
7562 (mn10300_init_extra_frame_info): Update.
7563 * mips-tdep.c (mips_init_frame_pc_first): Update.
7564 (mips_frame_chain): Update.
7565 (mips_pop_frame): Update.
7566 * mcore-tdep.c (mcore_frame_chain): Update.
7567 (mcore_pop_frame): Update.
7568 (mcore_init_extra_frame_info): Update.
7569 * arch-utils.c (init_frame_pc_default): Update.
7570 * m68k-tdep.c (isi_frame_num_args): Update.
7571 (delta68_frame_num_args): Update.
7572 (news_frame_num_args): Update.
7573 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7574 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7575 (alpha_frame_chain): Update.
7576 (alpha_pop_frame): Update.
7577 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7578 (hppa_init_extra_frame_info): Update.
7579 (hppa_frame_chain): Update.
7580 (hppa_frame_chain_valid): Update.
7581 * cris-tdep.c (cris_init_extra_frame_info): Update.
7582 * avr-tdep.c (avr_init_extra_frame_info): Update.
7583 * arm-tdep.c (arm_frame_chain_valid): Update.
7584 (arm_init_extra_frame_info): Update.
7585 (arm_pop_frame): Update.
7586 * frame.c (frame_pc_unwind): Update.
7587 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7588 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7589 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7590 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7591 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7592 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7593
7594 2003-03-12 Andrew Cagney <cagney@redhat.com>
7595
7596 Eliminate the need for POP_FRAME.
7597 * frame.c (do_frame_unwind_register): New function.
7598 (frame_pop): When no POP_FRAME, pop the frame using register
7599 unwind and a scratch regcache.
7600 (frame_saved_regs_pop): Delete function.
7601 (trad_frame_unwinder): Update.
7602 * d10v-tdep.c (d10v_frame_pop): Delete function.
7603 (d10v_frame_unwind): Update.
7604 * sentinel-frame.c (sentinel_frame_pop): Delete function.
7605 (sentinel_frame_unwinder): Update.
7606 * dummy-frame.c (dummy_frame_pop): Delete function.
7607 (dummy_frame_unwind): Update.
7608 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7609 (struct frame_unwind): Update.
7610
7611 2003-03-11 Kevin Buettner <kevinb@redhat.com>
7612
7613 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
7614 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
7615 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
7616 Do range checks on register number obtained from debugging info.
7617 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
7618 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
7619 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
7620 mapping function.
7621 (do_fp_register_row): Fix typo which caused double type to be
7622 used when attempting to unpack a float.
7623
7624 2003-03-11 J. Brobecker <brobecker@gnat.com>
7625
7626 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
7627
7628 2003-03-11 Andrew Cagney <cagney@redhat.com>
7629
7630 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
7631 frame. Problem found by Corinna Vinschen.
7632
7633 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
7634
7635 * doublest.c (floatformat_from_length): Accept also
7636 the real size of 'long double' type.
7637
7638 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
7639
7640 From Klee Dienes <kdienes@apple.com>:
7641 * breakpoint.c (bpstat_copy): Copy the command lines as well
7642 as the old value, to match what is freed in bpstat_clear.
7643
7644 2003-03-10 David Carlton <carlton@math.stanford.edu>
7645
7646 * minsyms.c (add_minsym_to_hash_table): Replace
7647 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7648 (compare_minimal_symbols, compact_minimal_symbols)
7649 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
7650 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
7651 of DEPRECATED_SYMBOL_MATCHES_NAME.
7652 (lookup_minimal_symbol_solib_trampoline): Ditto.
7653
7654 2003-03-10 Andrew Cagney <cagney@redhat.com>
7655
7656 * regcache.h (regcache_cooked_read_ftype): Define.
7657 (regcache_save, regcache_restore): Add a cooked_read parameter.
7658 * regcache.c (regcache_save, regcache_restore): Update.
7659 (do_cooked_read): New function.
7660 (regcache_cpy): Pass do_cooked_read to regcache_save and
7661 regcache_restore.
7662
7663 2003-03-10 Andrew Cagney <cagney@redhat.com>
7664
7665 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7666 * gdbarch.h, gdbarch.c: Re-generate.
7667 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7668 * x86-64-tdep.h: Update.
7669 * x86-64-tdep.c (x86_64_init_abi): Update.
7670 * v850-tdep.c (v850_gdbarch_init): Update.
7671 * sparc-tdep.c (sparc_gdbarch_init): Update.
7672 * sh-tdep.c (sh_gdbarch_init): Update.
7673 * s390-tdep.c (s390_gdbarch_init): Update.
7674 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7675 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7676 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7677 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7678 * mips-tdep.c (mips_gdbarch_init): Update.
7679 * mcore-tdep.c (mcore_gdbarch_init): Update.
7680 * m68k-tdep.c (m68k_gdbarch_init): Update.
7681 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7682 * ia64-tdep.c (ia64_gdbarch_init): Update.
7683 * i386-tdep.c (i386_gdbarch_init): Update.
7684 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7685 * hppa-tdep.c (hppa_gdbarch_init): Update.
7686 * h8300-tdep.c (h8300_gdbarch_init): Update.
7687 * frv-tdep.c (frv_gdbarch_init): Update.
7688 * cris-tdep.c (cris_gdbarch_init): Update.
7689 * avr-tdep.c (avr_gdbarch_init): Update.
7690 * arm-tdep.c (arm_gdbarch_init): Update.
7691 * alpha-tdep.c (alpha_gdbarch_init): Update.
7692 * sh-tdep.c (sh_init_extra_frame_info): Update.
7693 (sh64_init_extra_frame_info): Update.
7694 * ns32knbsd-nat.c (frame_num_args): Update.
7695 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7696 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7697 (xstormy16_frame_chain_valid): Update.
7698 * vax-tdep.c (vax_saved_pc_after_call): Update.
7699 * v850-tdep.c (v850_frame_chain): Update.
7700 (v850_pop_frame): Update.
7701 (v850_init_extra_frame_info): Update.
7702 * sparc-tdep.c (setup_arbitrary_frame): Update.
7703 * ns32k-tdep.c (umax_frame_num_args): Update.
7704 * s390-tdep.c (s390_pop_frame_regular): Update.
7705 * mn10300-tdep.c (mn10300_frame_chain): Update.
7706 (mn10300_pop_frame_regular): Update.
7707 (mn10300_init_extra_frame_info): Update.
7708 * mips-tdep.c (mips_init_frame_pc_first): Update.
7709 (mips_frame_chain): Update.
7710 (mips_pop_frame): Update.
7711 * mcore-tdep.c (mcore_frame_chain): Update.
7712 (mcore_pop_frame): Update.
7713 (mcore_init_extra_frame_info): Update.
7714 * arch-utils.c (init_frame_pc_default): Update.
7715 * m68k-tdep.c (isi_frame_num_args): Update.
7716 (delta68_frame_num_args): Update.
7717 (news_frame_num_args): Update.
7718 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7719 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7720 (alpha_frame_chain): Update.
7721 (alpha_pop_frame): Update.
7722 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7723 (hppa_init_extra_frame_info): Update.
7724 (hppa_frame_chain): Update.
7725 (hppa_frame_chain_valid): Update.
7726 * cris-tdep.c (cris_init_extra_frame_info): Update.
7727 * avr-tdep.c (avr_init_extra_frame_info): Update.
7728 * arm-tdep.c (arm_frame_chain_valid): Update.
7729 (arm_init_extra_frame_info): Update.
7730 (arm_pop_frame): Update.
7731 * frame.c (frame_pc_unwind): Update.
7732 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7733 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7734 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7735 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7736 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7737 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7738
7739 2003-03-10 Andrew Cagney <cagney@redhat.com>
7740
7741 * gdbarch.sh (gdbarch_unwind_pc): New method.
7742 * gdbarch.h, gdbarch.c: Regenerate.
7743 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
7744 but use read_pc and FRAME_SAVED_PC as fall backs.
7745 (frame_saved_regs_pc_unwind): Delete function.
7746 (trad_frame_unwinder): Update.
7747 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
7748 (struct frame_unwind): Update.
7749 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
7750 (dummy_frame_unwind): Update.
7751 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
7752 (sentinel_frame_unwinder): Update.
7753 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
7754 (d10v_frame_unwind): Update.
7755 (d10v_unwind_pc): New function.
7756 (d10v_gdbarch_init): Set unwind_pc.
7757
7758 2003-03-10 Andrew Cagney <cagney@redhat.com>
7759
7760 * gdbarch.h: Re-generate.
7761
7762 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
7763 PC.
7764 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
7765 the PC register.
7766
7767 2003-03-08 Mark Kettenis <kettenis@gnu.org>
7768
7769 * gdbarch.sh (save_dummy_frame_tos): Add comment.
7770
7771 2003-03-08 Andrew Cagney <cagney@redhat.com>
7772
7773 * cli-out.c: Update copyright.
7774 (cli_out_data): Define typedef. Use instead of ui_out_data.
7775
7776 2003-03-08 Andrew Cagney <cagney@redhat.com>
7777
7778 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
7779 the result.
7780
7781 2003-03-07 Andrew Cagney <cagney@redhat.com>
7782
7783 * gdbarch.sh: Don't generate two macro definitions when an
7784 undefined macro taking no arguments.
7785 * gdbarch.h: Regenerate.
7786
7787 2002-03-07 Michal Ludvig <mludvig@suse.cz>
7788
7789 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
7790 (x86_64_unwind_dummy_id): New functions.
7791 (x86_64_init_abi): Register these two new functions.
7792
7793 2003-03-07 Michal Ludvig <mludvig@suse.cz>
7794
7795 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
7796 (x86_64_skip_prologue): Move prologue detection to
7797 separate function.
7798 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
7799
7800 2003-03-05 Andrew Cagney <cagney@redhat.com>
7801
7802 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
7803 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
7804 * frame.c (get_prev_frame): Restructure the frame ID unwind code
7805 to use unwind_dummy_id when a dummy frame.
7806 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
7807 predicate.
7808 * gdbarch.h, gdbarch.c: Regneerate.
7809
7810 2003-03-05 Andrew Cagney <cagney@redhat.com>
7811
7812 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
7813 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
7814 Do not use d10v_read_sp or d10v_read_fp when obtaining register
7815 values.
7816
7817 2003-03-05 Andrew Cagney <cagney@redhat.com>
7818
7819 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
7820 (struct d10v_unwind_cache): Delete field "frameless". Replace
7821 "next_addr" with "sp_offset". Add "r11_offset".
7822 (d10v_frame_unwind_cache): Update.
7823 (prologue_find_regs): Update. When "mv r11, sp", save the
7824 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
7825 RN was saved in r11_offset.
7826
7827 2003-03-05 Andrew Cagney <cagney@redhat.com>
7828
7829 * frame.c (deprecated_update_frame_pc_hack): Also update the the
7830 cached PC value in the next frame.
7831
7832 2003-03-05 Andrew Cagney <cagney@redhat.com>
7833
7834 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
7835 "id_unwind_cache" with "id".
7836 (frame_id_unwind): Delete declaration.
7837 * frame.c (frame_id_unwind): Delete function.
7838 (get_prev_frame): Call the frame id unwind method directly. Store
7839 the returned next frame's ID value in NEXT_FRAME. Note that there
7840 is a problem with the wrong unwind ID being called with the wrong
7841 unwind cache.
7842
7843 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
7844
7845 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
7846
7847 2003-03-05 James Ingham <jingham@apple.com>
7848 Daniel Jacobowitz <drow@mvista.com>
7849
7850 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
7851 (auto_cp_abi): New variable.
7852 (current_cp_abi, num_cp_abis): Make static.
7853 (CP_ABI_MAX): Define.
7854 (cp_abis): Turn into an array.
7855 (value_virtual_fn_field): Fix formatting.
7856 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
7857 takes a pointer.
7858 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
7859 (list_cp_abis, _initialize_cp_abi): New functions.
7860 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
7861 declarations for cp_abis, num_cp_abis, current_cp_abi, and
7862 switch_to_cp_abi. Update prototype for register_cp_abi.
7863 * Makefile.in (cp-abi.o): Update dependencies.
7864 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
7865 instead of switch_to_cp_abi.
7866 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
7867 register_cp_abi.
7868 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
7869 register_cp_abi.
7870 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
7871
7872 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
7873
7874 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
7875 * dwarf2loc.c: Include "regcache.h".
7876 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
7877 register_size.
7878 * Makefile.in (dwarf2loc.o): Update dependencies.
7879
7880 2003-03-04 Theodore A. Roth <troth@openavr.org>
7881
7882 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
7883 number of io registers reported by remote target is not a multiple of
7884 step.
7885
7886 2003-03-04 David Carlton <carlton@math.stanford.edu>
7887
7888 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
7889 (lookup_symbol_aux_psymtabs): Update call to
7890 lookup_partial_symbol.
7891 (lookup_transparent_type, find_main_psymtab)
7892 (make_symbol_overload_list): Ditto.
7893
7894 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
7895
7896 * MAINTAINERS (Write after approval): Update my email address.
7897
7898 2003-03-03 Andrew Cagney <cagney@redhat.com>
7899
7900 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
7901 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
7902 predicate. Replace MAX_REGISTER_RAW_SIZE.
7903 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
7904 MAX_REGISTER_VIRTUAL_SIZE.
7905 * regcache.c (legacy_max_register_raw_size): New function.
7906 (legacy_max_register_virtual_size): New function.
7907 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
7908 (MAX_REGISTER_RAW_SIZE): Define.
7909 (legacy_max_register_raw_size): Declare.
7910 (legacy_max_register_virtual_size): Declare.
7911 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7912 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
7913 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7914 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7915 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7916 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7917 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7918 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7919 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7920 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7921 * vax-tdep.c (vax_gdbarch_init): Update.
7922 * v850-tdep.c (v850_gdbarch_init): Update.
7923 * sparc-tdep.c (sparc_gdbarch_init): Update.
7924 * sh-tdep.c (sh_gdbarch_init): Update.
7925 * s390-tdep.c (s390_gdbarch_init): Update.
7926 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7927 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7928 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7929 * mips-tdep.c (mips_gdbarch_init): Update.
7930 * mcore-tdep.c (mcore_gdbarch_init): Update.
7931 * m68k-tdep.c (m68k_gdbarch_init): Update.
7932 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7933 * ia64-tdep.c (ia64_gdbarch_init): Update.
7934 * i386-tdep.c (i386_gdbarch_init): Update.
7935 * hppa-tdep.c (hppa_gdbarch_init): Update.
7936 * h8300-tdep.c (h8300_gdbarch_init): Update.
7937 * frv-tdep.c (frv_gdbarch_init): Update.
7938 * cris-tdep.c (cris_gdbarch_init): Update.
7939 * avr-tdep.c (avr_gdbarch_init): Update.
7940 * arm-tdep.c (arm_gdbarch_init): Update.
7941 * alpha-tdep.c (alpha_gdbarch_init): Update.
7942 * d10v-tdep.c (d10v_gdbarch_init): Do not set
7943 max_register_raw_size or max_register_virtual_size.
7944
7945 2003-03-03 David Carlton <carlton@math.stanford.edu>
7946
7947 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
7948 SYMBOL_MATCHES_NAME, add comment.
7949 (SYMBOL_MATCHES_NATURAL_NAME): New.
7950 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
7951 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
7952 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
7953 * symtab.c (lookup_partial_symbol): Use
7954 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
7955 unhelpful comment.
7956 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
7957 SYMBOL_MATCHES_NAME.
7958 Fix for PR c++/33.
7959
7960 2003-03-03 David Carlton <carlton@math.stanford.edu>
7961
7962 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
7963 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
7964 by regexp matching against SYMBOL_NATURAL_NAME.
7965
7966 2003-03-03 David Carlton <carlton@math.stanford.edu>
7967
7968 * linespec.c (find_method): Extract code into collect_methods.
7969 (collect_methods): New.
7970
7971 2003-03-02 Mark Kettenis <kettenis@gnu.org>
7972
7973 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
7974 get_frame_base.
7975
7976 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
7977 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7978
7979 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
7980
7981 * arch-utils.c (generic_register_byte): Fix to use the loop index
7982 and not regnum when summing the size of all registers up to regnum.
7983
7984 2003-03-01 Andrew Cagney <cagney@redhat.com>
7985
7986 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
7987 FRAME_INIT_SAVED_REGS.
7988 * gdbarch.h, gdbarch.c: Regenerate.
7989 * stack.c (frame_info): Update.
7990 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
7991 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
7992 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
7993 * ns32k-tdep.c (ns32k_pop_frame): Update.
7994 * mips-tdep.c (mips_pop_frame): Update.
7995 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
7996 * ia64-tdep.c (ia64_frame_chain): Update.
7997 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
7998 (ia64_frameless_function_invocation): Update.
7999 (ia64_init_extra_frame_info): Update.
8000 (ia64_pop_frame_regular): Update.
8001 * frame.h (struct frame_info): Update comment.
8002 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8003 * frame.c (frame_saved_regs_register_unwind): Update.
8004 (frame_saved_regs_register_unwind): Update.
8005 (deprecated_generic_get_saved_register): Update.
8006 * cris-tdep.c: Update comment.
8007 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8008 Rename macro.
8009 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8010 * x86-64-tdep.c (x86_64_init_abi): Update.
8011 * vax-tdep.c (vax_gdbarch_init): Update.
8012 * v850-tdep.c (v850_gdbarch_init): Update.
8013 * sparc-tdep.c (sparc_gdbarch_init): Update.
8014 * sh-tdep.c (sh_gdbarch_init): Update.
8015 * s390-tdep.c (s390_gdbarch_init): Update.
8016 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8017 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8018 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8019 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8020 * mips-tdep.c (mips_gdbarch_init): Update.
8021 * mcore-tdep.c (mcore_gdbarch_init): Update.
8022 * m68k-tdep.c (m68k_gdbarch_init): Update.
8023 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8024 * ia64-tdep.c (ia64_gdbarch_init): Update.
8025 * i386-tdep.c (i386_gdbarch_init): Update.
8026 * frv-tdep.c (frv_gdbarch_init): Update.
8027 * avr-tdep.c (avr_gdbarch_init): Update.
8028 * arm-tdep.c (arm_gdbarch_init): Update.
8029 * alpha-tdep.c (alpha_gdbarch_init): Update.
8030
8031 2003-03-01 Andrew Cagney <cagney@redhat.com>
8032
8033 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8034 option enum and switch. When no windows, set the interpreter to
8035 INTERP_CONSOLE.
8036
8037 2003-03-01 Andrew Cagney <cagney@redhat.com>
8038
8039 * main.c (captured_main): Replace magic option characters with an
8040 enum.
8041
8042 2003-03-01 Andrew Cagney <cagney@redhat.com>
8043
8044 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8045 INIT_EXTRA_FRAME_INFO.
8046 * gdbarch.h, gdbarch.c: Regenerate.
8047 * arm-tdep.c: Update comments.
8048 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8049 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8050 * frame.h, avr-tdep.c: Ditto.
8051 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8052 (create_new_frame, legacy_get_prev_frame): Ditto.
8053 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8054 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8055 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8056 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8057 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8058 * v850-tdep.c (v850_gdbarch_init): Ditto.
8059 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8060 * sh-tdep.c (sh_gdbarch_init): Ditto.
8061 * s390-tdep.c (s390_gdbarch_init): Ditto.
8062 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8063 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8064 * mips-tdep.c (mips_gdbarch_init): Ditto.
8065 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8066 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8067 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8068 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8069 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8070 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8071 * frv-tdep.c (frv_gdbarch_init): Ditto.
8072 * cris-tdep.c (cris_gdbarch_init): Ditto.
8073 * avr-tdep.c (avr_gdbarch_init): Ditto.
8074 * arm-tdep.c (arm_gdbarch_init): Ditto.
8075 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8076 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8077
8078 2003-03-01 Andrew Cagney <cagney@redhat.com>
8079
8080 * gdbarch.sh (register_type): New function with predicate.
8081 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8082 * gdbarch.h, gdbarch.c: Re-generate.
8083 * arch-utils.c (generic_register_byte): Use generic_register_size.
8084 (generic_register_size): When available, use
8085 gdbarch_register_type.
8086 * regcache.c (init_regcache_descr): When available, initialize the
8087 register type array using gdbarch_register_type. If the
8088 architecture supplies gdbarch_register_type, do not use the legacy
8089 regcache layout.
8090 * d10v-tdep.c (d10v_register_type): Replace
8091 d10v_register_virtual_type.
8092 (d10v_gdbarch_init): Set register_type instead of
8093 register_virtual_type.
8094
8095 2003-03-01 Andrew Cagney <cagney@redhat.com>
8096
8097 * Makefile.in (ax-gdb.o): Update dependencies.
8098 * ax-gdb.c: Include "regcache.h".
8099 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8100 * findvar.c (value_of_register): Ditto.
8101 * infcmd.c (default_print_registers_info): Ditto.
8102
8103 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8104
8105 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8106 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8107
8108 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8109
8110 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8111 of STREQ.
8112
8113 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8114
8115 * Makefile.in (dwarf2loc.o): Update dependencies.
8116 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8117 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8118 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8119 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8120 (locexpr_tracepoint_var_ref): New function.
8121 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8122
8123 2003-02-28 Andrew Cagney <cagney@redhat.com>
8124
8125 * regcache.c (register_size): New function.
8126 * regcache.h (register_size): Declare
8127 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8128 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8129
8130 2003-02-28 David Carlton <carlton@math.stanford.edu>
8131
8132 * linespec.c (decode_compound): Extract code into find_method.
8133 (find_method): New.
8134
8135 2003-02-28 J. Brobecker <brobecker@gnat.com>
8136
8137 * Makefile.in: Add rules to build and link in observer.o.
8138
8139 2003-02-27 J. Brobecker <brobecker@gnat.com>
8140
8141 * observer.c: Minor comments edits.
8142
8143 2003-02-27 J. Brobecker <brobecker@gnat.com>
8144
8145 * observer.h, observer.c: New file.
8146
8147 2003-02-27 Andrew Cagney <cagney@redhat.com>
8148
8149 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8150
8151 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8152
8153 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8154 (M6812_OP_STS_EXT): Likewise.
8155 (m6811_prologue): Use the above to recognize prologue.
8156 (m6812_prologue): Likewise.
8157
8158 2003-02-27 David Carlton <carlton@math.stanford.edu>
8159
8160 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8161 SYMBOL_PRINT_NAME.
8162 (compare_psymbols): Ditto.
8163 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8164
8165 2003-02-27 Michael Snyder <msnyder@redhat.com>
8166
8167 * f-lang.c (build_fortran_types): New function.
8168 (_initialize_f_language): Gdbarch-register built-in fortran types.
8169 * doublest.c (extract_floating): Fix warning text.
8170
8171 2003-02-27 Andrew Cagney <cagney@redhat.com>
8172
8173 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8174 predicate. Replaces PUSH_DUMMY_FRAME.
8175 * gdbarch.h, gdbarch.c: Regnerate.
8176 * valops.c (hand_function_call): Update. Call
8177 generic_push_dummy_frame directly.
8178 * vax-tdep.c (vax_gdbarch_init): Update.
8179 * sparc-tdep.c (sparc_gdbarch_init): Update.
8180 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8181 * m68k-tdep.c (m68k_gdbarch_init): Update.
8182 * hppa-tdep.c (hppa_gdbarch_init): Update.
8183 * alpha-tdep.c (alpha_gdbarch_init): Update.
8184 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8185 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8186 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8187 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8188 push_dummy_frame to generic_push_dummy_frame.
8189 * v850-tdep.c (v850_gdbarch_init): Ditto.
8190 * sh-tdep.c (sh_gdbarch_init): Ditto.
8191 * s390-tdep.c (s390_gdbarch_init): Ditto.
8192 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8193 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8194 * mips-tdep.c (mips_gdbarch_init): Ditto.
8195 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8196 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8197 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8198 * i386-tdep.c (i386_gdbarch_init): Ditto.
8199 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8200 * frv-tdep.c (frv_gdbarch_init): Ditto.
8201 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8202 * cris-tdep.c (cris_gdbarch_init): Ditto.
8203 * avr-tdep.c (avr_gdbarch_init): Ditto.
8204 * arm-tdep.c (arm_gdbarch_init): Ditto.
8205
8206 2003-02-26 Kevin Buettner <kevinb@redhat.com>
8207
8208 * mips-tdep.c (show_mips_abi): New function.
8209 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8210 command ``show mips abi''.
8211
8212 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8213
8214 From Elena Zannoni <ezannoni@redhat.com>
8215 * dbxread.c (process_one_symbol): Only record line 0 if one or
8216 more sline entries have been seen for the function.
8217
8218 2003-02-26 Michael Chastain <mec@shout.net>
8219
8220 * configure: Regenerate with autoconf 000227.
8221
8222 2003-02-26 Michael Chastain <mec@shout.net>
8223
8224 Close PR build/660.
8225 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8226 for old libc5/glibc.
8227 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8228
8229 2003-02-26 Kris Warkentin <kewarken@qnx.com>
8230
8231 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8232 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8233
8234 2003-02-26 Michael Chastain <mec@shout.net>
8235
8236 * configure.in: New variable HAVE_UINTPTR_T.
8237 * configure, config.in: Regenerated.
8238
8239 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
8240
8241 Fix PR build/1097.
8242 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8243
8244 2003-02-25 Andrew Cagney <cagney@redhat.com>
8245
8246 * frame.c (get_prev_frame): Add comment on check for
8247 inside_entry_func. Only check for inside_entry_file when not a
8248 dummy and not a sentinel. Check that the new frame is not inner
8249 to the old frame.
8250
8251 2003-02-25 Andrew Cagney <cagney@redhat.com>
8252
8253 * frame.c (frame_debug): New variable.
8254 (_initialize_frame): Add "set/show debug frame" command.
8255 (get_prev_frame): When frame_debug, print reason why unwind
8256 failed.
8257
8258 2003-02-25 Michael Chastain <mec@shout.net>
8259
8260 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8261 to avoid uintptr_t definition problems.
8262
8263 2003-02-25 David Carlton <carlton@math.stanford.edu>
8264
8265 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8266 (SYMBOL_LINKAGE_NAME): Ditto.
8267 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8268 SYMBOL_LINKAGE_NAME.
8269 (struct general_symbol_info): Expand comment.
8270 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8271 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8272 (SYMBOL_MATCHES_REGEXP): Ditto.
8273 * symtab.c (symbol_natural_name): New function.
8274 * objfiles.h: Replace all uses of SYMBOL_NAME by
8275 DEPRECATED_SYMBOL_NAME.
8276 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8277 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8278 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8279 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8280 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8281 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8282 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8283 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8284 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8285 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8286 * ada-exp.y: Ditto.
8287 * ada-exp.y: Update copyright.
8288 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8289 * cp-valprint.c: Ditto.
8290
8291 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8292
8293 * infptrace.c (detach): Do not flag error if ptrace detach fails
8294 and errno is set to ESRCH.
8295
8296 2003-02-24 Andrew Cagney <cagney@redhat.com>
8297
8298 * infptrace.c (udot_info): Change type of udot_off to long. Use
8299 paddr when printing udot_off's value.
8300
8301 2003-02-24 David Carlton <carlton@math.stanford.edu>
8302
8303 * symtab.c (make_symbol_overload_list): Only read in partial
8304 symtabs containing a matching partial symbol.
8305
8306 2003-02-24 David Carlton <carlton@math.stanford.edu>
8307
8308 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8309 do the comparison, not strcmp.
8310 * symfile.c (compare_psymbols): Ditto.
8311 * defs.h: Declare strcmp_iw_ordered.
8312 * utils.c (strcmp_iw_ordered): New function.
8313
8314 2003-02-24 Jim Blandy <jimb@redhat.com>
8315
8316 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8317 support, shared libs): Remove my name from here, to better reflect
8318 reality.
8319
8320 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8321
8322 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8323 (target_ops): Add to_have_continuable_watchpoint.
8324 * target.c (update_current_target): Add INHERIT line for
8325 to_have_continuable_watchpoint.
8326 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8327 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8328 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8329 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8330
8331 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
8332
8333 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8334 maintainership.
8335
8336 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8337
8338 * solib.c (solib_open): Call target defined search function after
8339 failing with solib-search-path.
8340 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8341 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8342
8343 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8344
8345 * MAINTAINERS: Add myself to Write After section.
8346
8347 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8348
8349 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8350
8351 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8352
8353 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8354 (m68hc11_add_reggroups): New function.
8355 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8356 (m68hc11_gdbarch_init): Install the reggroups.
8357 (_initialize_m68hc11_tdep): Initialize them.
8358
8359 2003-02-21 James E Wilson <wilson@tuliptree.org>
8360
8361 * MAINTAINERS: Update my email address.
8362
8363 2003-02-21 David Carlton <carlton@math.stanford.edu>
8364
8365 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8366
8367 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
8368
8369 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8370 * symtab.h: Add opaque declarations of struct axs_value and
8371 struct agent_expr.
8372 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8373 (struct location_funcs): New type.
8374 (struct symbol): Add "loc" to aux_value.
8375 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8376 * dwarf2read.c: Include "dwarf2expr.h".
8377 (dwarf2_symbol_mark_computed): New function.
8378 (read_func_scope): Use it.
8379 (var_decode_location): New function.
8380 (new_symbol): Use it.
8381 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8382
8383 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8384 (dwarf2expr_h, dwarf2loc_h): New variables.
8385 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8386 (dwarf2expr.o, dwarf2loc.o): New rules.
8387 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8388 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8389 LOC_COMPUTED_ARG.
8390 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8391 * m2-exp.y (yylex): Likewise.
8392 * printcmd.c (address_info, print_frame_args): Likewise.
8393 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8394 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8395 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8396 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8397 * symtab.c (lookup_block_symbol): Likewise.
8398
8399 2003-02-20 Adam Fedor <fedor@gnu.org>
8400
8401 * symtab.h: Remove objc_specific struct
8402 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8403 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8404 Have language_objc use cplus_specific struct.
8405
8406 2003-02-20 Tom Tromey <tromey@redhat.com>
8407
8408 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8409 TYPE_NAME, when printing a String value. PR java/1075.
8410
8411 2003-02-20 Adam Fedor <fedor@gnu.org>
8412
8413 * objc-lang.h (find_methods): Remove declaration.
8414 * objc-lang.c (find_methods): Make static.
8415
8416 2003-02-20 Christopher Faylor <cgf@redhat.com>
8417
8418 * win32-nat.c (get_image_name): Check return value from
8419 ReadProcessMemory.
8420 (child_xfer_memory): Ditto.
8421
8422 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
8423
8424 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8425 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8426 '${exec_prefix}' (in addition to the expansion thereof) as
8427 relocatable.
8428 * configure: Rebuilt.
8429
8430 2003-02-20 David Carlton <carlton@math.stanford.edu>
8431
8432 * symtab.c (search_symbols): Revert the search_symbols part of my
8433 2002-12-23 patch. Add comment.
8434
8435 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8436
8437 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8438 * dbxread.c (elfstab_build_psymtabs): Don't call
8439 install_minimal_symbols.
8440 (stabsect_build_psymtabs): Likewise.
8441 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8442 earlier.
8443 * somread.c (som_symfile_read): Call install_minimal_symbols
8444 and do_cleanups earlier.
8445 * nlmread.c (nlm_symfile_read): Likewise.
8446 * mdebugread.c (elfmdebug_build_psymtabs): Call
8447 install_minimal_symbols and make appropriate cleanups.
8448
8449 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8450
8451 * solib.c (reload_shared_libraries): New function.
8452 (_initialize_solib): Add callbacks for ``set solib-search-path''
8453 and ``set solib-absolute-prefix''.
8454
8455 2003-02-20 David Carlton <carlton@math.stanford.edu>
8456
8457 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8458 expand comment.
8459 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8460 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8461 * ada-typeprint.c (ada_typedef_print): Ditto.
8462 * ax-gdb.c (gen_var_ref): Ditto.
8463 * breakpoint.c (print_one_breakpoint): Ditto.
8464 * buildsym.c (finish_block): Ditto.
8465 * c-valprint.c (c_val_print): Ditto.
8466 * expprint.c (print_subexp): Ditto.
8467 * findvar.c (locate_var_value): Ditto.
8468 * infcmd.c (jump_command): Ditto.
8469 * linespec.c (decode_line_2, decode_compound): Ditto.
8470 * maint.c (maintenance_translate_address): Ditto.
8471 * objc-lang.c (compare_selectors, compare_classes): Ditto.
8472 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8473 Ditto.
8474 * p-valprint.c (pascal_val_print): Ditto.
8475 * stabsread.c (define_symbol): Ditto.
8476 * stack.c (print_frame, frame_info, print_block_frame_locals)
8477 (print_frame_arg_vars, return_command): Ditto.
8478 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8479 * symmisc.c (print_symbol): Ditto.
8480 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8481 (compare_search_syms, print_symbol_info, print_msymbol_info)
8482 (rbreak_command): Ditto.
8483 * tracepoint.c (tracepoints_info): Ditto.
8484 * typeprint.c (typedef_print): Ditto.
8485 * valops.c (value_of_variable, hand_function_call): Ditto.
8486 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8487 * ada-typeprint.c: Update Copyright.
8488 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8489 * tracepoint.c, cli/cli-cmds.c: Ditto.
8490
8491 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8492
8493 * frame.c (generic_unwind_get_saved_register): Make non-static.
8494 * frame.h (generic_unwind_get_saved_register): Declare.
8495 * mips-tdep.c (read_next_frame_reg): Fetch register from
8496 current regcache when frame is NULL.
8497 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8498 that must be NULL.
8499 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8500 instead of frame_register_unwind().
8501
8502 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8503
8504 * remote-sim.c (gdbsim_insert_breakpoint)
8505 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8506 code.
8507
8508 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8509
8510 * remote.c (_initialize_remote): Add commands "set/show remote
8511 hardware-watchpoint-limit" and "set/show remote
8512 hardware-breakpoint-limit".
8513 (remote_hw_watchpoint_limit): Initialize to -1.
8514 (remote_hw_breakpoint_limit): Ditto.
8515 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8516
8517 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8518
8519 * coff-pe-read.c: New file - support reading of minimal symbols from a
8520 portable executable using the export table.
8521 * coff-pe-read.h: New file.
8522 * coffread.c: Include coff-pe-read.h.
8523 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8524 debugging symbols found.
8525 * Makefile.in (SFILES): Add coff-pe-read.o.
8526 (coff_pe_read_h): Define.
8527 (COMMON_OBS): Add coff-pe-read.o.
8528 (coffread.o): Add coff_pe_read_h dependency.
8529 (coff-pe-read.o): New target.
8530
8531 2003-02-19 David Carlton <carlton@math.stanford.edu>
8532
8533 * Makefile.in (SFILES): Add block.c.
8534 (block_h): New.
8535 (COMMON_OBS): Add block.o.
8536 (block.o): New.
8537 (x86-64-tdep.o): Add $(block_h).
8538 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8539 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8540 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8541 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8542 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8543 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8544 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8545 * value.h: Add opaque declaration for struct block.
8546 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8547 * ada-lang.h: Ditto.
8548 * x86-64-tdep.c: #include "block.h"
8549 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8550 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8551 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8552 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8553 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8554 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8555 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8556 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8557 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8558 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8559 * symtab.c (block_function): Ditto.
8560 (contained_in): Ditto.
8561 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8562 block.h. Add opaque declaration for struct block.
8563 * symtab.h: Move block_function and contained_in declarations to
8564 block.h. Add opaque declarations for struct block, struct
8565 blockvector.
8566 (struct block): Move to block.h.
8567 (struct blockvector): Ditto.
8568 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8569 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8570 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8571 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8572 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8573 Ditto.
8574 * block.c: New file.
8575 * block.h: New file.
8576
8577 2003-02-19 Theodore A. Roth <troth@openavr.org>
8578
8579 * avr-tdep.c (avr_extract_return_value): Remove function.
8580 (avr_store_return_value): Remove function.
8581 (avr_extract_struct_value_address): Remove function.
8582 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8583
8584 2003-02-19 Andrew Cagney <ac131313@redhat.com>
8585
8586 * rs6000-tdep.c: Include "gdb_assert.h".
8587 (registers_e500): Add "acc" and "spefscr".
8588 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8589 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8590 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
8591 really is "r0".
8592 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8593
8594 2003-02-18 Keith Seitz <keiths@redhat.com>
8595
8596 * Makefile.in: Add gdbtk-interps.c.
8597
8598 2003-02-18 Kevin Buettner <kevinb@redhat.com>
8599
8600 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8601 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8602
8603 2003-02-18 Andrew Cagney <cagney@redhat.com>
8604
8605 * symtab.h (struct objfile): Add opaque declaration.
8606
8607 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
8608
8609 From Jim Ingham <jingham@apple.com>:
8610 * dbxread.c (process_one_symbol): Use last_function_start rather
8611 than function_start_offset to find the real beginning of the
8612 current function. The latter is just the text section offset on
8613 some systems, the former is always the real function start.
8614
8615 2003-02-17 Andrew Cagney <cagney@redhat.com>
8616
8617 * configure.in: Revert ${target} != ${host}.
8618
8619 2003-02-17 Andrew Cagney <ac131313@redhat.com>
8620
8621 * configure.in (Makefile): Use the test ${target} != ${host},
8622 instead of the absence of the "nm.h" file, to determine of the
8623 configuration non-native.
8624 * configure: Regenerate.
8625
8626 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
8627
8628 From Brian Ford <ford@vss.fsi.com>
8629
8630 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
8631 conditionalize tui_active test.
8632 (lookup_cmd_1): Ditto.
8633
8634 2003-02-14 Mark Kettenis <kettenis@gnu.org>
8635
8636 * configure.in: Add check for _etext.
8637 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
8638 available.
8639 * config.in, configure: regenerated.
8640
8641 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
8642
8643 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
8644
8645 2003-02-14 Andrew Cagney <ac131313@redhat.com>
8646
8647 * main.c (tui_version): Delete variable.
8648 (captured_main): When --tui, set interpreter_p to "tui" instead of
8649 enabling tui_version.
8650 * printcmd.c (display_command) [TUI]: Test tui_active instead of
8651 tui_version.
8652 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
8653 * cli/cli-cmds.c (disassemble_command): Ditto.
8654 * defs.h (tui_version): Delete declaration.
8655 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
8656 (tui-interp.o): Add rules.
8657 (SUBDIR_TUI_OBS): Add "tui-interp.o".
8658
8659 2003-02-14 Christopher Faylor <cgf@redhat.com>
8660
8661 * win32-nat.c (register_loaded_dll): Correctly set address range for
8662 just-loaded dll.
8663
8664 2003-02-12 Jason Molenda (jmolenda@apple.com)
8665
8666 * symmisc.c (print_objfile_statistics): Include information about
8667 the number of psymtabs and symtabs in each object file.
8668
8669 2003-02-13 Keith R Seitz <keiths@redhat.com>
8670
8671 * main.h (struct captured_main_args): Add interpreter_p.
8672 * main.c (captured_main): Initialize interpreter_p from context.
8673 * gdb.c (main): Set interpreter_p argument.
8674 * Makefile.in (gdb.o): Add dependency for interps.h.
8675
8676 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8677
8678 * event-top.c (cli_command_loop): Delete declaration.
8679 (_initialize_event_loop): Delete function setting event_loop_hook.
8680 * event-top.h (cli_command_loop): Declare. Update copyright.
8681 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
8682 * interps.c (current_interp_command_loop): When event_loop_p, call
8683 cli_command_loop.
8684
8685 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8686
8687 * interps.h (interp_command_loop_ftype): Change return type to
8688 void.
8689
8690 2003-02-12 Michal Ludvig <mludvig@suse.cz>
8691
8692 * x86-64-tdep.c (x86_64_extract_return_value)
8693 (x86_64_store_return_value): Use regcache instead of regbuf.
8694 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
8695 * x86-64-linux-nat.c (fill_gregset): Use regcache.
8696
8697 2003-02-11 Andrew Cagney <ac131313@redhat.com>
8698
8699 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
8700 * aclocal.m4: Regenerate.
8701 * configure: Regenerate.
8702
8703 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
8704 TCL_LD_SEARCH_FLAGS.
8705
8706 2003-02-10 Michal Ludvig <mludvig@suse.cz>
8707
8708 * dwarf2cfi.c: Reindented.
8709
8710 2003-02-09 Andrew Cagney <ac131313@redhat.com>
8711
8712 * interps.c (clear_interpreter_hooks): Convert function definition
8713 to ISO C.
8714
8715 2003-02-07 David Carlton <carlton@math.stanford.edu>
8716
8717 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8718
8719 2003-02-07 Kevin Buettner <kevinb@redhat.com>
8720
8721 * gdbtypes.h (struct main_type): Move ``length'' field from here...
8722 (struct type): ...to here.
8723 (TYPE_LENGTH): Adjust to reflect different location of ``length''
8724 field.
8725 * gdbtypes.c (make_qualified_type): Set length on newly created type.
8726 (replace_type): Set length on all type variants for a given type.
8727
8728 2003-02-07 Andrew Cagney <ac131313@redhat.com>
8729
8730 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
8731 <sys/stat.h>.
8732 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8733
8734 2003-02-06 Andrew Cagney <ac131313@redhat.com>
8735
8736 * Makefile.in (symm-nat.o): Update dependencies.
8737 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
8738 (lynx-nat.o, ia64-linux-nat.): Ditto.
8739 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
8740 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
8741 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
8742
8743 * Makefile.in (inflow_h): Define.
8744 (procfs.o, inflow.o, procfs.o): Update dependencies.
8745 * inftarg.c (child_stop): Delete extern declaration of
8746 inferior_process_group. Include "inflow.h".
8747 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
8748 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
8749 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
8750 (our_process_group, inferior_process_group): Extern declarations.
8751
8752 * procfs.c: Include "gdb_assert.h".
8753
8754 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8755 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
8756 * jv-typeprint.c (java_type_print_base): Ditto.
8757 * typeprint.c (typedef_print): Eliminate STREQ.
8758 * cli/cli-script.c (define_command, define_command): Ditto.
8759 * main.c (captured_main): Ditto.
8760 * values.c (lookup_internalvar): Ditto.
8761 * utils.c (safe_strerror, parse_escape): Eliminate assignment
8762 within `if' conditional.
8763 * linespec.c (decode_line_2): Ditto.
8764 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
8765 (bfd_openw_with_cleanup): Ditto.
8766
8767 2003-02-07 Mark Kettenis <kettenis@gnu.org>
8768
8769 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
8770 legacy_extract_return_value and store_return_value to
8771 legacy_return_value.
8772
8773 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
8774
8775 * win32-nat.c (get_relocated_section_addrs): New function. Find
8776 section load addresses for symbol handling in relocated DLLs.
8777 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
8778
8779 2003-02-05 Fred Fish <fnf@intrinsity.com>
8780
8781 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
8782 '=' and '!='.
8783 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
8784 with '&' and '=='.
8785 (angel_RDI_info): Ditto.
8786 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
8787 with '&' and '!='.
8788 (threads_continue_all_with_signals): Ditto.
8789
8790 2003-02-05 Jim Ingham <jingham@apple.com>
8791 Keith Seitz <keiths@redhat.com>
8792 Elena Zannoni <ezannoni@redhat.com>
8793 Andrew Cagney <ac131313@redhat.com>
8794
8795 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
8796 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
8797 (SUBDIR_MI_OBS): Add "mi-interp.o".
8798 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
8799 (SFILES): Add "interps.c".
8800 (COMMON_OBS): Add "interps.o".
8801 (interps_h, mi_main_h): Define.
8802 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
8803 (mi-main.o, main.o, event-top.o): Update dependencies.
8804 * cli/cli-interp.c: New file.
8805 * interps.h, interps.c: New files.
8806 * top.c: (gdb_init): Don't install the default interpreter, handed
8807 by captured_main.
8808 * main.c: Include "interps.h".
8809 (interpreter_p): Note that it should malloc'ed.
8810 (captured_command_loop): Call current_interp_command_loop.
8811 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
8812 xfree and xstrdup when updating interpreter_p. Install the
8813 default interpreter. Add hack to stop mi1's copyright notice
8814 being encoded.
8815 * event-top.h (gdb_setup_readline): Declare.
8816 (gdb_disable_readline): Declare.
8817 * event-top.c: Include "interps.h".
8818 (display_gdb_prompt): Call current_interp_display_prompt_p.
8819 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
8820 gdb_stdlog, and gdb_stdtarg.
8821 (_initialize_event_loop): Don't call gdb_setup_readline.
8822 * cli-out.c (cli_out_set_stream): New function.
8823 * cli-out.h (cli_out_set_stream): Declare.
8824
8825 2003-02-06 Mark Kettenis <kettenis@gnu.org>
8826
8827 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
8828 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
8829 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
8830 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
8831 config/i386/i386v42mp.mt: Removed.
8832
8833 2003-02-05 Mark Kettenis <kettenis@gnu.org>
8834
8835 * configure.tgt (*-*-solaris*): Set gdb_osabi to
8836 GDB_OSABI_SOLARIS.
8837
8838 2003-02-05 Michael Chastain <mec@shout.net>
8839
8840 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
8841 2.12.1 and earlier versions.
8842
8843 2003-02-05 Andrew Cagney <ac131313@redhat.com>
8844
8845 Remove orphaned hosts, targets and files.
8846 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
8847 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
8848 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
8849 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
8850 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
8851 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
8852 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
8853 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
8854 * config/sparc/tm-sp64sim.h: Delete.
8855 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
8856 hosts.
8857 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
8858 mips*-dec-mach3* targets.
8859
8860 2003-02-04 Michael Chastain <mec@shout.net>
8861
8862 * NEWS: Fix typo: sepcifying -> specifying.
8863
8864 2003-02-04 Michael Chastain <mec@shout.net>
8865
8866 * dwarfread.c: Add documentation on the state of dwarf-1,
8867 looking towards obsoletion.
8868
8869 2003-02-03 Michael Chastain <mec@shout.net>
8870
8871 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
8872 gdb/testsuite/gdb.c++/pr-1023.exp.
8873
8874 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8875
8876 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
8877 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
8878
8879 * utils.c (init_page_info): Delete reference to MPW in comments.
8880 * main.c (captured_main): Delete #ifdef MPW.
8881
8882 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8883
8884 * NEWS: Note that the m32r-*-elf* is obsolete.
8885 * monitor.c (monitor_expect): Obsolete reference to m32r.
8886 * configure.tgt: Mark m32r-*-elf* as obsolete.
8887 * MAINTAINERS: Mark m32k as obsolete.
8888 * m32r-rom.c: Obsolete file.
8889 * config/m32r/m32r.mt: Obsolete file.
8890 * config/m32r/tm-m32r.h: Obsolete file.
8891 * m32r-stub.c: Obsolete file.
8892 * m32r-tdep.c: Obsolete file.
8893
8894 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8895
8896 * NEWS: Mention that the z8k-zilog-none is obsolete.
8897 * MAINTAINERS: Mark z8k as obsolete.
8898 * configure.tgt: Obsolete the z8k-*-coff* target.
8899 * config/z8k/z8k.mt: Obsolete file.
8900 * config/z8k/tm-z8k.h: Obsolete file.
8901 * z8k-tdep.c: Obsolete file.
8902
8903 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8904
8905 * NEWS: Mention that the mn10200-elf is obsolete.
8906 * configure.tgt: Obsolete mn10200-*-* target.
8907 * breakpoint.c (update_breakpoints_after_exec): Update comment to
8908 mention that the mn10200 is obsolete.
8909 * breakpoint.h: Ditto.
8910 * MAINTAINERS: Mark the mn10200-elf as obsolete.
8911 * config/mn10200/mn10200.mt: Obsolete file.
8912 * config/mn10200/tm-mn10200.h: Obsolete file.
8913 * mn10200-tdep.c: Obsolete file.
8914
8915 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8916
8917 * MAINTAINERS: Mark h8500 as obsolete.
8918 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
8919 * findvar.c (value_from_register): Ditto.
8920 * h8500-tdep.c: Mark file as obsolete.
8921 * config/h8500/h8500.mt: Ditto.
8922 * config/h8500/tm-h8500.h: Ditto.
8923 * NEWS: Mention that h8500 is obsolete.
8924
8925 2003-02-04 David Carlton <carlton@math.stanford.edu>
8926
8927 * objfiles.c (allocate_objfile): Always set name. Add comment at
8928 start of function.
8929 * jv-lang.c (get_dynamics_objfile): Add comment.
8930
8931 2003-02-04 David Carlton <carlton@math.stanford.edu>
8932
8933 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
8934 * printcmd.c (build_address_symbolic): Replace uses of
8935 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
8936 SYMBOL_NAME, and asm_demangle.
8937 Update copyright.
8938
8939 2003-02-04 David Carlton <carlton@math.stanford.edu>
8940
8941 * linespec.c (decode_compound): Extract code into
8942 lookup_prefix_sym.
8943 (lookup_prefix_sym): New function.
8944
8945 2003-02-04 David Carlton <carlton@math.stanford.edu>
8946
8947 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
8948 FLOAT_COERCION_BADNESS.
8949 * gdbtypes.c (rank_one_type): Replace all uses of
8950 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
8951
8952 2003-02-04 Jim Blandy <jimb@redhat.com>
8953
8954 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
8955 section, let dwarf_macinfo_section point to it, not
8956 dwarf_loc_section.
8957
8958 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
8959
8960 Pointed out by Anton Blanchard <anton@samba.org>.
8961 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
8962 (ppc_linux_at_sigtramp_return_path): Use it.
8963
8964 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
8965
8966 * defs.h (streq): Add prototype.
8967 * utils.c (streq): New function.
8968
8969 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
8970 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
8971 * mdebugread.c (new_symbol): Likewise.
8972 * stabsread.c (define_symbol): Likewise.
8973 * coffread.c (process_coff_symbol): Likewise.
8974 * dwarfread.c (new_symbol): Likewise.
8975
8976 * minsyms.c (prim_record_minimal_symbol_and_info): Use
8977 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
8978 here.
8979 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
8980 SYMBOL_INIT_DEMANGLED_NAME.
8981 * objfiles.c: Include "hashtab.h".
8982 (allocate_objfile): Call htab_set_functions_ex for the
8983 demangled_names_hash.
8984 (free_objfile): Call htab_delete for the demangled_names_hash.
8985 * objfiles.h (struct htab): Add declaration.
8986 (struct objfile): Add demangled_names_hash.
8987 * symfile.c: Include "hashtab.h".
8988 (reread_symbols): Call htab_delete for the demangled_names_hash.
8989 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
8990 SYMBOL_NAME in the bcache.
8991 * symtab.c: Include "hashtab.h". Update comments.
8992 (create_demangled_names_hash, symbol_set_names): New functions.
8993 (symbol_find_demangled_name): New function, broken out from
8994 symbol_init_demangled_names.
8995 (symbol_init_demangled_names): Use it.
8996 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
8997 (SYMBOL_SET_NAMES): New macro.
8998 (symbol_set_names): Add prototype.
8999
9000 2003-02-03 Jim Blandy <jimb@redhat.com>
9001
9002 Use a single, consistent representation for an empty minimal
9003 symbol table in an objfile.
9004 * objfiles.c (terminate_minimal_symbol_table): New function.
9005 (allocate_objfile): Call it.
9006 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9007 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9008 non-NULL.
9009 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9010 objfile has minimal symbols, compare minimal_symbol_count to zero,
9011 instead of comparing msymbols with NULL.
9012 * objfiles.c (have_minimal_symbols): Same.
9013 * solib-sunos.c (solib_add_common_symbols): Call
9014 terminate_minimal_symbol_table.
9015 * symfile.c (reread_symbols): Same.
9016
9017 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9018
9019 * s390-tdep.c (s390_address_class_type_flags)
9020 (s390_address_class_type_flags_to_name)
9021 (s390_address_class_name_to_type_flags): New functions.
9022 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9023 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9024
9025 2003-02-03 Michael Snyder <msnyder@redhat.com>
9026
9027 * arm-tdep.c: Fix spell-o in comment.
9028
9029 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9030
9031 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9032 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9033 error messages to contain BFD filename.
9034
9035 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9036
9037 Fix PR gdb/742 gdb/743 gdb/877
9038 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9039 (do_mixed_source_and_assembly): Use
9040 make_cleanup_ui_out_tuple_begin_end and
9041 make_cleanup_ui_out_tuple_begin_end.
9042 (do_mixed_source_and_assembly): Ditto.
9043 * thread.c (do_captured_list_thread_ids): Ditto.
9044 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9045 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9046 ui_out_tuple_end): Delete prototypes.
9047 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9048 ui_out_list_end, ui_out_tuple_end): Delete.
9049
9050 From Kevin Buettner <kevinb@redhat.com>:
9051 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9052 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9053 (do_cleanup_table_end): New functions.
9054 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9055 Use cleanups to invoke_ui_out_tuple_end().
9056 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9057 * cli/cli-setshow.c (cmd_show_list): Use
9058 make_cleanup_ui_out_tuple_begin_end.
9059
9060 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9061
9062 * frame.c (frame_unwind_register): New function.
9063 (frame_unwind_unsigned_register): Use.
9064 (frame_unwind_signed_register): Use.
9065 (frame_read_register): New function.
9066 * frame.h (frame_unwind_register): Declare.
9067 (frame_read_register): Declare.
9068
9069 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9070 and frame_unwind_register instead of read_memory, write_register
9071 and deprecated_write_register_bytes.
9072
9073 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9074
9075 * frame.h: Note that namelen can be negative.
9076 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9077 NAME's length.
9078
9079 * NEWS: Mention that the d10v's `regs' command is deprecated.
9080 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9081 (d10v_print_registers_info): New function.
9082 (show_regs): Call d10v_print_registers_info.
9083 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9084
9085 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9086
9087 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9088 lost in the previous patch.
9089
9090 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9091
9092 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9093 * stack.c (print_frame_info_base): Output complete FRAME tuple
9094 for synthesized frames.
9095
9096 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9097
9098 * mips-nat.c (zerobuf): Delete.
9099 (fetch_inferior_registers): Alloc local zerobuf.
9100 (fetch_core_registers): Alloc local zerobuf.
9101 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9102 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9103 * thread-db.c (thread_db_store_registers): Ditto.
9104 * sh-tdep.c (sh_do_register): Ditto.
9105 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9106 * remote-sim.c (gdbsim_store_register): Ditto.
9107 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9108 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9109 * monitor.c (monitor_supply_register): Ditto.
9110 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9111 * mips-nat.c (fetch_inferior_registers): Ditto.
9112 * m68klinux-nat.c (fetch_register): Ditto.
9113 * lynx-nat.c (fetch_inferior_registers): Ditto.
9114 (fetch_inferior_registers): Ditto.
9115 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9116 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9117 (hpux_thread_store_registers): Ditto.
9118 * hppah-nat.c (fetch_register): Ditto.
9119 * hppab-nat.c (fetch_register): Ditto.
9120 * hppa-tdep.c (pa_register_look_aside): Ditto.
9121 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9122 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9123
9124 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9125
9126 * gdbarch.sh: Explictly specify all method levels. When a
9127 variable with an empty level, provide a non-multi-arch default.
9128 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9129 * gdbarch.h: Re-generate.
9130 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9131 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9132
9133 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9134
9135 * defs.h (host_pointer_to_address): Delete declaration.
9136 (address_to_host_pointer): Delete declaration.
9137 * utils.c (host_pointer_to_address): Delete function.
9138 (address_to_host_pointer): Delete function.
9139 * procfs.c (procfs_address_to_host_pointer): New function.
9140 * procfs.c (proc_set_watchpoint): Use.
9141 (procfs_can_use_hw_breakpoint): Update comments.
9142 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9143 (som_solib_add): Use.
9144 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9145 * hppa-tdep.c (unwind_command): Use.
9146
9147 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9148
9149 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9150 strlen d_name.
9151
9152 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9153 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9154 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9155 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9156 (define_symbol): Update.
9157 * symfile.c (generic_load): Remove references to nindy.
9158 * symtab.c: Remove references to nindy.
9159
9160 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9161
9162 * infcmd.c (print_float_info): Delete code conditional on
9163 FLOAT_INFO.
9164 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9165 * config/m68k/nm-apollo68b.h: Ditto.
9166 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9167 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9168 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9169
9170 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9171
9172 * config/i386/tm-i386os9k.h: Removed.
9173
9174 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9175 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9176 they're identical to i[3456]86-*-sysv* now.
9177 * config/i386/i386v32.mh: Removed.
9178 * config/i386/xm-i386v32.h: Removed.
9179 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9180
9181 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9182
9183 * config/i386/i386dgux.mh: Removed.
9184 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9185
9186 * configure.in: Fix typo.
9187 * configure: Regenerated.
9188
9189 2003-01-31 David Carlton <carlton@math.stanford.edu>
9190
9191 * dwarf2read.c (dwarf2_locate_sections): Set
9192 dwarf_ranges_section.
9193
9194 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9195
9196 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9197 * utils.c: Update comments documenting legitimate uses of PTR.
9198
9199 * utils.c: Re-indent.
9200
9201 * config/djgpp/fnchange.lst: Delete nindy files.
9202 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9203 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9204 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9205 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9206 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9207 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9208 * Makefile.in (init.c): Remove nindy references.
9209 (saber_gdb): Delete rule.
9210 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9211 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9212 and a68v-nat.c.
9213 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9214 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9215 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9216 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9217 nindy-share/stop.h.
9218 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9219 * saber.suppress: Delete file.
9220
9221 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
9222
9223 * dbxread.c (stabs_data): New static variable.
9224 (fill_symbuf): Support an in-memory buffer for stabs data.
9225 (stabs_seek): New function.
9226 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9227 (read_ofile_symtab): Use stabs_seek.
9228 (elfstab_build_psymtabs): Take an asection* instead of
9229 an offset and size. Relocate the stabs data if necessary.
9230 Save the section* for dbx_psymtab_to_symtab.
9231 * dwarf2read.c: Add section variables for each debug section.
9232 (dwarf2_locate_sections): Fill them in.
9233 (dwarf2_read_section): Take an asection* argument.
9234 Relocate the section contents if necessary.
9235 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9236 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9237 it to dwarf2_read_section.
9238 (dwarf2_build_frame_info): Update callers.
9239 * elfread.c (elf_symfile_read): Update call to
9240 elfstab_build_psymtabs.
9241 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9242 (DBX_STAB_SECTION): New macro.
9243 * stabsread.h (elfstab_build_psymtabs): Update prototype.
9244 * symfile.c (symfile_dummy_outputs): New function.
9245 (symfile_relocate_debug_section): New function.
9246 * symfile.h (symfile_relocate_debug_section): Add prototype.
9247
9248 2003-01-31 Richard Henderson <rth@redhat.com>
9249
9250 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9251 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9252 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9253 * alpha-tdep.c (alpha_register_name): Add "unique".
9254 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9255 (ALPHA_UNIQUE_REGNUM): New.
9256 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9257
9258 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9259
9260 * README: Remove reference to Ericsson 1800 monitor.
9261 * Makefile.in (remote-es.o): Delete rule.
9262 (ALLDEPFILES): Delete remote-es.c.
9263 * remote-es.c: Delete file.
9264 * config/m68k/es1800.mt: Delete file.
9265 * config/djgpp/fnchange.lst: Update.
9266 * configure.tgt: Delete m68*-ericsson-* target.
9267
9268 2003-01-31 Adam Fedor <fedor@gnu.org>
9269
9270 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9271 Remove duplicate/shadowing variable of same name.
9272
9273 2003-01-30 Jim Blandy <jimb@redhat.com>
9274
9275 * symfile.c (find_separate_debug_file): Assert that the objfile's
9276 directory name we compute ends with a slash, and then assume that
9277 that's so everywhere we use it.
9278
9279 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
9280
9281 * valops.c (value_assign): Flush frame cache after stores to memory
9282 also.
9283
9284 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9285
9286 * Makefile.in (mon960-rom.o): Delete rule.
9287 * mon960-rom.c: Delete file.
9288
9289 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9290
9291 * d10v-tdep.c: Include "frame-unwind.h".
9292 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9293 list.
9294 (next_addr, uses_frame): Delete.
9295 (struct d10v_unwind_cache): Define.
9296 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9297 Use info instead of next_addr and uses_frame globals.
9298 (d10v_frame_init_saved_regs): Delete function.
9299 (d10v_init_extra_frame_info): Delete function.
9300 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9301 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9302 init_frame_pc or frame_saved_pc.
9303 (d10v_pop_frame): Delete function.
9304 (do_d10v_pop_frame): Delete function.
9305 (d10v_frame_chain): Delete function.
9306 (d10v_frame_chain_valid): Delete function.
9307 (d10v_frame_pc_unwind): New function.
9308 (d10v_frame_id_unwind): New function.
9309 (saved_regs_unwinder): New function.
9310 (d10v_frame_register_unwind): New function.
9311 (d10v_frame_pop): New function.
9312 (d10v_frame_unwind): New variable.
9313 (d10v_frame_p): New function.
9314 (d10v_frame_saved_pc): Delete function.
9315 * Makefile.in (d10v-tdep.o): Update dependencies.
9316
9317 2003-01-30 J. Brobecker <brobecker@gnat.com>
9318
9319 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9320 causing some regressions due to a change in the default value
9321 for this macro.
9322
9323 2003-01-29 Richard Henderson <rth@redhat.com>
9324 Elena Zannoni <ezannoni@redhat.com>
9325 Daniel Jacobowitz <drow@mvista.com>
9326
9327 Fix PR gdb/961.
9328 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
9329 variables.
9330 (RANGES_SECTION): New.
9331 (dwarf_ranges_buffer): New variable.
9332 (struct comp_unit_head): Add member "die".
9333 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9334 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9335 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9336 (dwarf2_locate_sections): Likewise.
9337 (dwarf2_build_psymtabs): Read .debug_ranges.
9338 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9339 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9340 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9341 Look for DW_AT_ranges and return the bounding box.
9342
9343 2003-01-29 Brian Ford <ford@vss.fsi.com>
9344
9345 * win32-nat.c (cygwin_pid): Removed as unused.
9346 (child_attach): Try fall back to Cygwin pid.
9347
9348 2003-01-29 Jim Blandy <jimb@redhat.com>
9349
9350 * objfiles.h (struct objfile): Doc fix.
9351
9352 2003-01-29 Andrew Cagney <ac131313@redhat.com>
9353
9354 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9355 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9356 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9357 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9358 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9359 (FRAME_SAVED_PC): Change to a function with predicate.
9360 * gdbarch.h, gdbarch.c: Re-generate.
9361
9362 2003-01-28 Andrew Cagney <ac131313@redhat.com>
9363
9364 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9365
9366 * complaints.c (complain): Delete function.
9367 * complaints.h (struct deprecated_complaint): Delete definition.
9368 (complain): Delete declaration.
9369
9370 2003-01-28 Kevin Buettner <kevinb@redhat.com>
9371
9372 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9373 dummy frames.
9374
9375 2003-01-27 Andrew Cagney <ac131313@redhat.com>
9376
9377 * sentinel-frame.h, sentinel-frame.c: New files.
9378 * Makefile.in (frame.o): Update dependencies.
9379 (SFILES): Add sentinel-frame.c.
9380 (sentinel_frame_h): Define.
9381 (COMMON_OBS): Add sentinel-frame.o.
9382 (sentinel-frame.o): Specify dependencies.
9383 * frame.c: Include "sentinel-frame.h".
9384 (frame_register_unwind): Rewrite assuming that there is always a a
9385 ->next frame.
9386 (frame_register, generic_unwind_get_saved_register): Ditto.
9387 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9388 (create_sentinel_frame, unwind_to_current_frame): New functions.
9389 (get_current_frame): Rewrite using create_sentinel_frame and
9390 unwind_to_current_frame. When possible, always create a frame.
9391 (create_new_frame): Set next to the sentinel frame.
9392 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9393 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9394 ID cache when necessary.
9395 (frame_saved_regs_id_unwind): Use frame_relative_level.
9396 (deprecated_generic_get_saved_register): Use frame_relative_level,
9397 get_frame_saved_regs, get_frame_pc, get_frame_base and
9398 get_next_frame.
9399 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9400 frame_register.
9401
9402 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9403
9404 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9405
9406 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9407
9408 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9409 (maintenance_set_profile_cmd): Use error () instead of warning ().
9410
9411 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9412
9413 * configure.in: Check that -pg works if using --enable-profiling.
9414 Check for monstartup and _mcleanup regardless of --enable-profiling.
9415 * maint.c: Check for monstartup and _mcleanup before using them.
9416 * config.in: Regenerated.
9417 * configure: Regenerated.
9418
9419 2003-01-24 Nick Clifton <nickc@redhat.com>
9420
9421 * Add sh2e support:
9422
9423 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9424
9425 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9426 (sh2e_show_regs): New.
9427 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9428 * config/sh/tm-sh.h: Added sh2e to comments.
9429
9430 2003-01-23 Jim Blandy <jimb@redhat.com>
9431
9432 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9433 symbols found)" message here; we haven't checked for a separate
9434 debug info file yet, so we don't know yet.
9435 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9436 we've looked everywhere. Also, there's no need to print a special
9437 message when we're loading the separate debug info file: the one
9438 symbol_file_add prints is fine.
9439
9440 2003-01-23 Alexander Larsson <alexl@redhat.com>
9441 Jim Blandy <jimb@redhat.com>
9442
9443 Add support for executables whose debug info has been separated
9444 out into a separate file, leaving only a link behind.
9445 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9446 and separate_debug_objfile_backlink.
9447 (put_objfile_before): New declaration.
9448 * symfile.c: #include "filenames.h".
9449 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9450 debug info in a separate file, read that, too. Save the addrs
9451 argument, so we can use it again to read the separated debug info;
9452 syms_from_objfile modifies the table we pass it.
9453 (reread_symbols): After re-reading an objfile, call
9454 reread_separate_symbols to refresh its separate debug info
9455 objfile, if it has one.
9456 (reread_separate_symbols, find_separate_debug_file,
9457 get_debug_link_info, separate_debug_file_exists): New functions.
9458 (debug_file_directory): New global var.
9459 (_initialize_symfile): Initialize debug_file_directory, and
9460 provide the new `set debug-file-directory' command to let the user
9461 change it.
9462 * objfiles.c (free_objfile): If this objfile has its debug info in
9463 a separate objfile, free that one too. If this is itself a
9464 separate debug info objfile, clear our parent's backlink.
9465 (put_objfile_before): New function.
9466 * utils.c (gnu_debuglink_crc32): New function.
9467 * defs.h (gnu_debuglink_crc32): New declaration.
9468 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9469 * configure.in: Handle --with-separate-debug-dir config option.
9470 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9471 * acconfig.h (DEBUGDIR): New macro.
9472 * configure, aclocal.m4, config.in: Regenerated.
9473
9474 2003-01-22 Jim Blandy <jimb@redhat.com>
9475
9476 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9477 like the old symbol_file_add, but taking new arguments: you can
9478 now pass in either a `struct section_addr_info' list to say where
9479 each section is loaded, or a `struct section_offsets' table. Pass
9480 these new arguments through to syms_from_objfile as appropriate.
9481 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9482 with the appropriate quiescent values for the new arguments.
9483
9484 * symfile.c: #include "gdb_assert.h".
9485 (syms_from_objfile): Add the ability to pass in a section offset
9486 table directly, as an alternative to the section_addr_info table.
9487 Document arguments better.
9488 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9489 * symfile.h (syms_from_objfile): Update declaration.
9490 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9491 syms_from_objfile.
9492 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9493
9494 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
9495
9496 Original patch by Tom Tromey <tromey@cygnus.com> and
9497 Jason Molenda <jmolenda@apple.com>.
9498 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9499 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9500 * NEWS: Mention profiling.
9501 * configure.in (--enable-gdbtk): Fix typo.
9502 (--enable-profiling): New. Set PROFILE_CFLAGS.
9503 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9504 Fill in function.
9505 (profiling_state): New variable.
9506 (mcleanup_wrapper): New function.
9507 (_initialize_maint): Remove NOTYET, fix call to
9508 add_setshow_boolean_cmd for "maint set profile".
9509 * configure: Regenerated.
9510
9511 2003-01-21 Martin M. Hunt <hunt@redhat.com>
9512
9513 * Makefile.in (install-gdbtk): Install PNG images too.
9514
9515 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9516
9517 * exec.c (text_start): Delete global variable.
9518 (exec_file_attach): Make text_start local to the function.
9519 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9520 * valops.c (hand_function_call): Delete code that handles
9521 BEFORE_TEXT_END and AFTER_TEXT_END.
9522 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9523 of CALL_DUMMY_LOCATION.
9524 * gdbarch.c: Regenerate.
9525 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9526 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9527 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9528 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9529 (text_end): Delete extern declaration.
9530
9531 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9532
9533 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9534 * blockframe.c (backtrace_below_main): Move to "frame.c".
9535 (frame_chain_valid): Delete check for backtrace_below_main.
9536 (_initialize_blockframe): Delete initialization, move ``set
9537 backtrace-below-main'' command to "frame.c".
9538 (do_flush_frames_sfunc): Delete function.
9539 * frame.c: Include "command.h" and "gdbcmd.h".
9540 (frame_type_from_pc): New function.
9541 (create_new_frame): Use frame_type_from_pc.
9542 (legacy_get_prev_frame): New function.
9543 (get_prev_frame): Rewrite. When an old style frame, call
9544 legacy_get_prev_frame. Otherwize, unwind the PC first.
9545 (_initialize_frame): Add ``set backtrace-below-main'' command.
9546 * Makefile.in (frame.o): Update dependencies.
9547
9548 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9549
9550 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9551 DEPRECATED_REGISTERS_INFO.
9552
9553 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9554
9555 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9556 Maintainers'. Update `Various Maintainers'.
9557
9558 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9559
9560 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9561 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9562 Suppress actual parameters when `-'.
9563 * gdbarch.h, gdbarch.c: Regenerate.
9564
9565 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9566
9567 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9568 code handling dummy frames.
9569
9570 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9571
9572 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9573 (struct frame_unwind): Add field pop.
9574 * frame.h (frame_pop): Declare.
9575 * frame.c (frame_saved_regs_pop): New function.
9576 (trad_frame_unwinder): Add frame_saved_regs_pop.
9577 (frame_pop): New function.
9578 * dummy-frame.c (dummy_frame_pop): New function.
9579 (discard_innermost_dummy): New function.
9580 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9581 (dummy_frame_unwind): Add dummy_frame_pop.
9582 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9583 * valops.c (hand_function_call): Ditto.
9584 * stack.c (return_command): Ditto.
9585
9586 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9587
9588 * cris-tdep.c: Fix function declaration indentation.
9589 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9590 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9591 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9592 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9593 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9594 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9595
9596 2003-01-18 Michael Chastain <mec@shout.net>
9597
9598 * README (Unpacking and Installation -- quick overview):
9599 Warn against ".../gdb-5.3/gdb/configure".
9600
9601 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9602
9603 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9604 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9605 (struct frame_unwind): Declare opaque.
9606 (dummy_frame_p): Declare function.
9607 * dummy-frame.c (dummy_frame_id_unwind): Make static.
9608 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9609 * dummy-frame.c: Include "frame-unwind.h".
9610 (dummy_frame_p): New function.
9611 (dummy_frame_unwind): New variable.
9612 * frame.c: Include "frame-unwind.h".
9613 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
9614 to use the new unwind field.
9615 (set_unwind_by_pc): Delete function.
9616 (create_new_frame, get_prev_frame): Set unwind field using
9617 frame_unwind_find_by_pc.
9618 (trad_frame_unwind, trad_frame_unwinder): New variables.
9619 * frame.h (trad_frame_unwind): Declare variable.
9620 (frame_id_unwind_ftype): Delete declaration.
9621 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
9622 (struct frame_unwind): Declare opaque.
9623 (struct frame_info): Replace the fields id_unwind, pc_unwind and
9624 register_unwind with a single unwind pointer.
9625 * frame-unwind.h, frame-unwind.c: New files.
9626 * Makefile.in (SFILES): Add frame-unwind.c.
9627 (frame_unwind_h): Define.
9628 (COMMON_OBS): Add frame-unwind.o.
9629 (frame-unwind.o): Specify dependencies.
9630 (frame.o, dummy-frame.o): Update dependencies.
9631
9632 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9633
9634 * ada-valprint.c: Eliminate PTR.
9635 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
9636 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
9637 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
9638 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
9639 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
9640 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
9641 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
9642
9643 2003-01-17 Andrew Cagney <ac131313@redhat.com>
9644
9645 * main.c (captured_main): Don't use PTR.
9646 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
9647 * gdbtypes.c (lookup_primitive_typename): Ditto.
9648 (lookup_struct_elt_type): Ditto.
9649 * f-valprint.c (info_common_command): Ditto.
9650 (list_all_visible_commons): Ditto.
9651 * jv-typeprint.c (java_type_print_base): Ditto.
9652
9653 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
9654 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
9655 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
9656 i386-interix-nat.c and i386-interix-tdep.c. Rename
9657 m68klinux-nat.c and m68klinux-tdep.c. Rename
9658 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
9659 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
9660 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
9661 * main.c (captured_main): Use xfree, not free.
9662
9663 2003-01-16 Andrew Cagney <ac131313@redhat.com>
9664
9665 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
9666 ID back using a parameter.
9667 * frame.c (frame_id_unwind): Update call.
9668 (frame_saved_regs_id_unwind): Update.
9669 * dummy-frame.c (dummy_frame_id_unwind): Update function.
9670 * dummy-frame.h (struct frame_id): Add opaque declaration.
9671 (dummy_frame_id_unwind): Update declaration.
9672
9673 2003-01-15 Andrew Cagney <ac131313@redhat.com>
9674
9675 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
9676
9677 2003-01-15 Stephen P. Smith <ischis2@cox.net>
9678
9679 * MAINTAINERS (Stephen P. Smith): Updated email address.
9680
9681 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
9682
9683 Fix PR gdb/898
9684 * breakpoint.c (until_break_command): Add new argument. Use it to
9685 decide whether to stop only at the current frame or not.
9686 * breakpoint.h (until_break_command): Update prototype.
9687 * infcmd.c (until_command): Add new argument to until_break_command
9688 call.
9689 (advance_command): New function.
9690 (_initialize_infcmd): Update help string for 'until' command.
9691 Add new 'advance' command.
9692
9693 2003-01-14 David Carlton <carlton@math.stanford.edu>
9694
9695 * linespec.c (decode_line_1): Normalize comments.
9696 (set_flags): Ditto.
9697 (locate_first_half): Ditto.
9698 (decode_compound): Ditto.
9699 (symtab_from_filename): Ditto.
9700 (decode_all_digits): Ditto.
9701 (decode_dollar): Ditto.
9702 (find_methods): Ditto.
9703 (find_toplevel_char): Ditto.
9704
9705 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9706
9707 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
9708 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
9709 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
9710 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
9711 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
9712 * language.c, language.h, m32r-tdep.c: Update copyright.
9713 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
9714 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
9715 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
9716 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
9717 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9718 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
9719
9720 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9721
9722 * stabsread.h (process_later, resolve_cfront_continuation):
9723 Obsolete.
9724 Update copyright years.
9725 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
9726 Update copyright year.
9727 * dbxread.c(struct cont_elem): Obsolete.
9728 (process_later, process_now): Obsolete functions.
9729 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
9730 Update copyright year.
9731 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
9732 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
9733 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
9734 (parse_partial_symbols): Obsolete cfront support.
9735 * stabsread.c
9736 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
9737 macros.
9738 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
9739 read_cfront_baseclasses, read_cfront_member_functions,
9740 resolve_cfront_continuation,read_cfront_static_fields,
9741 copy_cfront_struct_fields): Obsolete functions.
9742 (define_symbol, read_one_struct_field): Obsolete cfront support.
9743 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
9744 Update Copyright year.
9745
9746 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9747
9748 * stack.c (print_frame_info, print_stack_frame_base_stub,
9749 print_stack_frame_base, show_and_print_stack_frame_stub,
9750 show_and_print_stack_frame, print_only_stack_frame_stub,
9751 print_only_stack_frame): Delete functions.
9752 (print_stack_frame_stub): Call print_frame_info instead of
9753 print_frame_info_base.
9754 (print_frame_info_base): Rename to print_frame_info.
9755 (backtrace_command_1): Call print_frame_info, instead of
9756 print_frame_info_base.
9757 (current_frame_command): Call print_stack_frame, instead of
9758 print_only_stack_frame.
9759 (frame_command): Call print_stack_frame, instead of
9760 show_and_print_stack_frame.
9761 (up_command): Ditto.
9762 (down_command): Ditto.
9763 * frame.h (print_only_stack_frame): Delete prototype.
9764 * infrun.c (normal_stop): Call print_stack_frame, instead of
9765 show_and_print_stack_frame.
9766 * thread.c (info_threads_command): Call print_stack_frame, instead
9767 of print_only_stack_frame.
9768
9769 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9770
9771 * README (Graphical interface to GDB): Update URL. Point at
9772 gdb/links/.
9773
9774 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
9775 version match.
9776
9777 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9778
9779 * symtab.c (find_pc_sect_line): Don't consider end-of-function
9780 lines.
9781
9782 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9783
9784 * thread-db.c (attach_thread): Prototype.
9785 (struct private_thread_info): Remove lwpid. Add thread handle (th),
9786 thread information (ti), and valid flags (th_valid, ti_valid).
9787 (attach_thread): Move target_pid_to_str call to after the thread
9788 is added to GDB's list. Initialize the cache.
9789 (thread_get_info_callback, thread_db_map_id2thr)
9790 (thread_db_get_info): New functions.
9791 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
9792 (thread_db_store_registers, thread_db_thread_alive)
9793 (thread_db_get_thread_local_address): Use them.
9794 (thread_db_pid_to_str): Likewise. Return "Missing" instead
9795 of calling error() for threads in unknown state.
9796
9797 (clear_lwpid_callback): New function.
9798 (thread_db_resume): Use it to clear the cache.
9799
9800 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9801
9802 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
9803 (resume_callback): Remove dead code.
9804
9805 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9806
9807 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
9808 predicate.
9809 * gdbarch.h, gdbarch.c: Regenerate.
9810 * stack.c (frame_info): Only initialize the saved registers when
9811 FRAME_INIT_SAVED_REGS_P.
9812 * frame.c (frame_saved_regs_register_unwind): Assert
9813 FRAME_INIT_SAVED_REGS_P.
9814 (deprecated_generic_get_saved_register): Ditto.
9815
9816 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9817
9818 * source.c (openp): Squelch warning about "filename".
9819
9820 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9821
9822 * source.c (openp): If the file does not exist don't necessarily
9823 search the path.
9824
9825 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9826
9827 Fix PR gdb/872.
9828 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
9829 (integer_types_same_name_p): New function.
9830 (rank_one_type): Use it.
9831 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
9832
9833 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9834
9835 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
9836 variables.
9837 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
9838 * configure.in: Add --with-sysroot.
9839 * configure: Regenerated.
9840 * main.c (gdb_sysroot): New variable.
9841 (captured_main): Initialize gdb_sysroot.
9842 * defs.h (gdb_sysroot): New extern declaration.
9843 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
9844
9845 2003-01-12 Michael Chastain <mec@shout.net>
9846
9847 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
9848
9849 2003-01-12 Michael Chastain <mec@shout.net>
9850
9851 * top.c (print_gdb_version): Bump copyright year to 2003.
9852
9853 2003-01-12 David Carlton <carlton@bactrian.org>
9854
9855 * linespec.c (symtab_from_filename): Rename variable 's' to
9856 'file_symtab'.
9857
9858 2003-01-12 Andrew Cagney <ac131313@redhat.com>
9859
9860 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
9861 dummy frame.
9862 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
9863
9864 2003-01-12 Andrew Cagney <ac131313@redhat.com>
9865
9866 * d10v-tdep.c: Include "gdb_assert.h".
9867 (d10v_store_return_value): Rewrite to match current interface.
9868 (d10v_extract_struct_value_address): Ditto.
9869 (d10v_extract_return_value): Ditto.
9870 (d10v_gdbarch_init): Set store_restore_value,
9871 extract_struct_value_address and extract_return_value.
9872
9873 2003-01-12 J. Brobecker <brobecker@gnat.com>
9874
9875 * hpread.c (set_namestring): New procedure replacing the
9876 SET_NAMESTRING macro.
9877 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
9878 by calls to set_namestring.
9879
9880 2003-01-11 J. Brobecker <brobecker@gnat.com>
9881
9882 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
9883 a compilation warning.
9884 (hpread_process_one_debug_symbol): Likewise.
9885
9886 2003-01-10 David Carlton <carlton@math.stanford.edu>
9887
9888 * linespec.c (decode_line_1): Rename variable 's' to
9889 'file_symtab'.
9890 (decode_all_digits): Rename argument 's' to 'file_symtab'.
9891 (decode_dollar): Ditto.
9892 (decode_variable): Ditto.
9893 (symbol_found): Ditto.
9894
9895 2003-01-09 Michael Chastain <mec@shout.net>
9896
9897 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
9898
9899 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
9900
9901 * win32-nat.c (set_process_privilege): New function.
9902 (child_attach): Call set_process_privilege() to enable the
9903 SE_DEBUG_NAME user privilege if available in process token.
9904
9905 2003-01-10 J. Brobecker <brobecker@gnat.com>
9906
9907 * hpread.c (hpread_process_one_debug_symbol): Fix a small
9908 compilation error in the previous revision.
9909
9910 2003-01-09 David Carlton <carlton@math.stanford.edu>
9911
9912 * linespec.c: Update copyright.
9913
9914 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
9915
9916 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
9917 than inferior_ptid.
9918 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
9919
9920 2003-01-09 Andrew Cagney <ac131313@redhat.com>
9921
9922 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
9923 Update comments.
9924 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
9925 (frame_saved_regs_zalloc): Update.
9926 (frame_saved_regs_register_unwind): Update.
9927 (create_new_frame): Update.
9928 (get_prev_frame): Update.
9929 (frame_extra_info_zalloc): Update.
9930 (deprecated_get_frame_saved_regs): Update.
9931 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
9932 * cris-tdep.c: Update comment.
9933
9934 * somsolib.h: Fix function indentation.
9935 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
9936 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
9937 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
9938 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
9939 * somsolib.c, inftarg.c: Remove assignment in if conditional.
9940
9941 * infrun.c (follow_fork): Use ISO C definition.
9942 * expprint.c (print_subexp): Use xfree instead of free.
9943 * charset.c: Include "gdb_string.h" instead of <string.h>.
9944 (register_iconv_charsets): Use ISO C definition.
9945 (host_charset, target_charset): Ditto.
9946 * Makefile.in (charset.o): Update dependencies.
9947 (mi-cmd-env.o): Update dependencies.
9948
9949 2003-01-08 Andrew Cagney <cagney@redhat.com>
9950
9951 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
9952 get_frame_base.
9953
9954 2003-01-08 Andrew Cagney <ac131313@redhat.com>
9955
9956 * gdb_mbuild.sh: Add --keep option. When specified, keep the
9957 build directories. Save edited gdb output in Mbuild.log. If a
9958 build fails, remove any final GDB executable.
9959
9960 2003-01-08 Andrew Cagney <ac131313@redhat.com>
9961
9962 * gdb_mbuild.sh: Edit the output of `maint print architecture'
9963 replacing hex constants with function names and stripping leading
9964 file name directory prefixes.
9965
9966 2003-01-08 Andrew Cagney <cagney@redhat.com>
9967
9968 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
9969 get_frame_base.
9970
9971 2003-01-08 David Carlton <carlton@math.stanford.edu>
9972
9973 * linespec.c (decode_line_1): Move code into decode_variable.
9974 (decode_variable): New function.
9975
9976 2003-01-08 Andrew Cagney <ac131313@redhat.com>
9977
9978 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
9979
9980 2003-01-08 Andrew Cagney <cagney@redhat.com>
9981
9982 * cris-tdep.c (cris_frame_init_saved_regs): Use
9983 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
9984 saved_regs buffer.
9985 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9986 (sh64_nofp_frame_init_saved_regs): Ditto.
9987 (sh_fp_frame_init_saved_regs): Ditto.
9988 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
9989 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
9990 * mcore-tdep.c (analyze_dummy_frame): Ditto.
9991 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9992
9993 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
9994
9995 * minsyms.c (lookup_minimal_symbol): Update comment.
9996 (lookup_minimal_symbol_text): Update comment. Use the hash table.
9997 (lookup_minimal_symbol_solib_trampoline): Likewise.
9998
9999 2003-01-08 Andrew Cagney <cagney@redhat.com>
10000
10001 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10002 frame_relative_level.
10003
10004 * alpha-tdep.c: Use get_frame_extra_info.
10005 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10006 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10007 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10008 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10009
10010 * alpha-tdep.c: Use get_next_frame.
10011 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10012 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10013 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10014 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10015 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10016 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10017 * xstormy16-tdep.c: Ditto.
10018
10019 2003-01-07 Andrew Cagney <cagney@redhat.com>
10020
10021 * alpha-tdep.c: Use get_frame_base.
10022 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10023 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10024 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10025 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10026 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10027 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10028 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10029 * config/sparc/tm-sparc.h: Ditto.
10030
10031 2003-01-07 Andrew Cagney <cagney@redhat.com>
10032
10033 * frame.c (deprecated_get_frame_context): New function.
10034 (deprecated_set_frame_context): New function.
10035 * frame.h (deprecated_get_frame_context): Declare.
10036 (deprecated_set_frame_context): Declare.
10037 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10038 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10039
10040 2003-01-07 Andrew Cagney <cagney@redhat.com>
10041
10042 * frame.c (deprecated_set_frame_next_hack): New function.
10043 (deprecated_set_frame_prev_hack): New function.
10044 * frame.h (deprecated_set_frame_next_hack): Declare.
10045 (deprecated_set_frame_prev_hack): Declare.
10046 * mcore-tdep.c (analyze_dummy_frame): Use
10047 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10048 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10049
10050 2003-01-07 David Carlton <carlton@math.stanford.edu>
10051
10052 * linespec.c (decode_line_1): Move code into decode_dollar.
10053 (decode_dollar): New function.
10054
10055 2003-01-07 Andrew Cagney <cagney@redhat.com>
10056
10057 * arm-tdep.c (arm_init_extra_frame_info): Use
10058 deprecated_update_frame_base_hack.
10059 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10060 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10061 (fix_frame_pointer): Ditto.
10062 (mn10300_analyze_prologue): Ditto.
10063
10064 2003-01-07 Andrew Cagney <cagney@redhat.com>
10065
10066 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10067 extra_info using frame_extra_info_zalloc.
10068 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10069 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10070 (sh64_init_extra_frame_info): Ditto.
10071 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10072 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10073 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10074 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10075 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10076 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10077 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10078 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10079 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10080 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10081 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10082 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10083
10084 * mn10300-tdep.c (analyze_dummy_frame): Use
10085 deprecated_set_frame_extra_info_hack.
10086 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10087
10088 2003-01-07 J. Brobecker <brobecker@gnat.com>
10089
10090 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10091 class is not scText. These do not define "real" procedures.
10092 (parse_partial_symbols): Likewise.
10093
10094 2003-01-06 Michael Snyder <msnyder@redhat.com>
10095
10096 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10097
10098 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10099
10100 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10101 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10102 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10103 deprecated_frame_xmalloc_with_cleanup.
10104 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10105 deprecated_frame_xmalloc.
10106 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10107 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10108
10109 2003-01-06 Andrew Cagney <cagney@redhat.com>
10110
10111 * x86-64-linux-tdep.c: Include "osabi.h".
10112 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10113
10114 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10115
10116 2003-01-06 Andrew Cagney <cagney@redhat.com>
10117
10118 * MAINTAINERS (Target Instruction Set Architectures): Update
10119 arm-elf. Can be built with -Werror, has been multiarched.
10120
10121 * value.h (unpack_long): Make buffer parameter constant.
10122 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10123 * scm-lang.h (scm_parse): Ditto.
10124 * defs.h (extract_typed_address, extract_address): Ditto.
10125 (extract_long_unsigned_integer): Ditto.
10126 * inferior.h (unsigned_pointer_to_address): Ditto.
10127 (signed_pointer_to_address): Ditto.
10128 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10129 * gdbarch.h, gdbarch.c: Regenerate.
10130 * findvar.c (extract_long_unsigned_integer): Update.
10131 (extract_address): Update.
10132 (extract_typed_address): Update.
10133 (unsigned_pointer_to_address): Update.
10134 * values.c (unpack_long): Update.
10135 (unpack_double): Update.
10136 (unpack_pointer): Update.
10137 (unpack_field_as_long): Update.
10138 * d10v-tdep.c (d10v_pointer_to_address): Update.
10139 * avr-tdep.c (avr_pointer_to_address): Update.
10140 * scm-lang.c (scm_unpack): Update.
10141 * findvar.c (signed_pointer_to_address): Update.
10142
10143 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10144
10145 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10146 since it is in i386-tdep.c.
10147
10148 2003-01-06 J. Brobecker <brobecker@gnat.com>
10149
10150 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10151 failure introduced in the previous change.
10152
10153 2003-01-05 Michael Chastain <mec@shout.net>
10154
10155 * README: Remove references to deleted remote-*.c files:
10156 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10157 remote-nrom.c, remote-os9k.c, remote-udi.c.
10158
10159 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10160
10161 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10162 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10163 i386_get_longjmp_target.
10164
10165 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10166
10167 * arm-tdep.c (prologue_cache): Change to a pointer.
10168 (_initialize_arm_tdep): Allocate prologue_cache.
10169 (check_prologue_cache): Update.
10170 (save_prologue_cache): Update.
10171 (arm_gdbarch_init): Update.
10172
10173 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10174
10175 * stabsread.c (update_method_name_from_physname): Call complaint()
10176 instead of error.
10177
10178 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10179
10180 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10181 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10182 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10183
10184 * blockframe.c: Include "gdbcmd.h" and "command.h".
10185 (backtrace_below_main): New variable.
10186 (file_frame_chain_valid, func_frame_chain_valid)
10187 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10188 (generic_func_frame_chain_valid): Remove functions.
10189 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10190 (_initialize_blockframe): New function.
10191 * Makefile.in (blockframe.o): Update dependencies.
10192 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10193 comment. Call frame_chain_valid ().
10194 * frame.h: Remove old prototypes. Add prototype for
10195 frame_chain_valid and update comments to match.
10196 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10197 Remove old comment.
10198 * gdbarch.h: Regenerated.
10199 * gdbarch.c: Regenerated.
10200
10201 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10202 set_gdbarch_frame_chain_valid.
10203 * avr-tdep.c (avr_gdbarch_init): Likewise.
10204 * cris-tdep.c (cris_gdbarch_init): Likewise.
10205 * frv-tdep.c (frv_gdbarch_init): Likewise.
10206 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10207 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10208 (i386_nw_init_abi): Likewise.
10209 (i386_gdbarch_init): Likewise.
10210 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10211 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10212 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10213 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10214 * mips-tdep.c (mips_gdbarch_init): Likewise.
10215 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10216 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10217 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10218 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10219 * s390-tdep.c (s390_gdbarch_init): Likewise.
10220 * sh-tdep.c (sh_gdbarch_init): Likewise.
10221 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10222 * v850-tdep.c (v850_gdbarch_init): Likewise.
10223 * vax-tdep.c (vax_gdbarch_init): Likewise.
10224 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10225
10226 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10227 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10228 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10229 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10230 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10231 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10232 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10233 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10234
10235 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10236
10237 * Makefile.in (acconfig_h): Remove incorrect macro.
10238 (config_h): Define.
10239 (osabi.o): Update dependencies.
10240 * configure.tgt: Set gdb_osabi based on target triplet.
10241 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10242 * configure: Regenerated.
10243 * config.in: Regenerated.
10244 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10245 (GDB_OSABI_DEFAULT): Define if not already defined.
10246 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10247 (set_osabi_string): New variables.
10248 (gdbarch_register_osabi): Add new OS ABI to
10249 gdb_osabi_available_names.
10250 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10251 (set_osabi, show_osabi): New functions.
10252 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10253
10254 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10255
10256 * arch-utils.c (gdbarch_info_init): Set osabi to
10257 GDB_OSABI_UNINITIALIZED.
10258 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10259 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10260 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10261 * gdbarch.c: Regenerated.
10262 * gdbarch.h: Regenerated.
10263 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10264 there's no BFD.
10265 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10266 * osabi.h (enum gdb_osabi): Move to defs.h.
10267 (gdbarch_init_osabi): Update prototype.
10268 * defs.h (enum gdb_osabi): Moved here.
10269 * Makefile.in: Update dependencies.
10270
10271 * alpha-tdep.h: Don't include "osabi.h".
10272 (struct gdbarch_tdep): Remove osabi member.
10273 * alpha-tdep.c: Include "osabi.h".
10274 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10275 iterate over arches. Update call to gdbarch_init_osabi.
10276 (alpha_dump_tdep): Don't dump osabi.
10277 * alpha-linux-tdep.c: Include "osabi.h".
10278 * alpha-osf1-tdep.c: Include "osabi.h".
10279 * alphafbsd-tdep.c: Include "osabi.h".
10280 * alphanbsd-tdep.c: Include "osabi.h".
10281
10282 * arm-tdep.h: Don't include "osabi.h".
10283 (struct gdbarch_tdep): Remove osabi member.
10284 * arm-tdep.c: Include "osabi.h".
10285 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10286 iterate over arches. Update call to gdbarch_init_osabi.
10287 (arm_dump_tdep): Don't dump osabi.
10288 * arm-linux-tdep.c: Include "osabi.h".
10289 * armnbsd-tdep.c: Include "osabi.h".
10290
10291 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10292 Update call to gdbarch_init_osabi.
10293
10294 * i386-tdep.h: Don't include "osabi.h".
10295 (struct gdbarch_tdep): Remove osabi member.
10296 * i386-tdep.c: Include "osabi.h".
10297 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10298 iterate over arches. Update call to gdbarch_init_osabi.
10299 (i386_dump_tdep): Don't dump osabi.
10300 * i386-linux-tdep.c: Include "osabi.h".
10301 * i386-sol2-tdep.c: Include "osabi.h".
10302 * i386bsd-tdep.c: Include "osabi.h".
10303 * i386gnu-tdep.c: Include "osabi.h".
10304 * i386ly-tdep.c: Include "osabi.h".
10305 * i386nbsd-tdep.c: Include "osabi.h".
10306 * i386obsd-tdep.c: Include "osabi.h".
10307
10308 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10309 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10310 check osabi when iterating over arches. Update call to
10311 gdbarch_init_osabi.
10312 (mips_dump_tdep): Don't dump osabi.
10313
10314 * ns32k-tdep.h: Don't include "osabi.h".
10315 (struct gdbarch_tdep): Remove.
10316 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10317 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10318 allocate tdep. Update call to gdbarch_init_osabi.
10319 (ns32k_dump_tdep): Remove.
10320 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10321 * ns32knbsd-tdep.c: Include "osabi.h".
10322
10323 * ppc-tdep.h: Don't include "osabi.h".
10324 (struct gdbarch_tdep): Remove osabi member.
10325 * rs6000-tdep.c: Include "osabi.h".
10326 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10327 osabi when iterating over arches. Update call to
10328 gdbarch_init_osabi.
10329 (rs6000_dump_tdep): Don't dump osabi.
10330 * ppc-linux-tdep.c: Include "osabi.h".
10331 * ppcnbsd-tdep.c: Include "osabi.h".
10332
10333 * sh-tdep.h: Don't include "osabi.h".
10334 (struct gdbarch_tdep): Remove osabi member.
10335 * sh-tdep.c: Include "osabi.h".
10336 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10337 iterate over arches. Update call to gdbarch_init_osabi.
10338 (sh_dump_tdep): Don't dump osabi.
10339 * shnbsd-tdep.c: Include "osabi.h".
10340
10341 * sparc-tdep.c: Include "osabi.h".
10342 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10343 iterate over arches. Update call to gdbarch_init_osabi.
10344 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10345 tdep structure.
10346
10347 * vax-tdep.h: Don't include "osabi.h".
10348 (struct gdbarch_tdep): Remove.
10349 * vax-tdep.c: Include "osabi.h".
10350 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10351 iterate over arches. Don't allocate tdep. Update call
10352 to gdbarch_init_osabi.
10353 (vax_dump_tdep): Remove.
10354 (_initialize_vax_tdep): Update call to gdbarch_register.
10355
10356 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10357
10358 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10359 entirely.
10360 (breakpoint_re_set_one): Don't fetch the value for a disabled
10361 watchpoint.
10362
10363 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10364
10365 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10366 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10367 (COERCE_FLOAT_TO_DOUBLE): Remove.
10368 * gdbarch.c: Regenerate.
10369 * gdbarch.h: Regenerate.
10370 * Makefile.in: Remove value_h from gdbarch_h.
10371 * valops.c (coerce_float_to_double): New variable.
10372 (default_coerce_float_to_double): Remove.
10373 (standard_coerce_float_to_double): Remove.
10374 (value_arg_coerce): Use coerce_float_to_double.
10375 (_initialize_valops): Add "set coerce-float-to-double".
10376 * value.h (default_coerce_float_to_double): Remove prototype.
10377 (standard_coerce_float_to_double): Remove prototype.
10378
10379 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10380 prototyped.
10381 * mdebugread.c (parse_symbol): Likewise.
10382 * stabsread.c (define_symbol): Mark all functions as prototyped.
10383
10384 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10385 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10386 set_gdbarch_coerce_float_to_double.
10387 * arm-tdep.c (arm_gdbarch_init): Likewise.
10388 * frv-tdep.c (frv_gdbarch_init): Likewise.
10389 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10390 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10391 * mips-tdep.c (mips_gdbarch_init): Likewise.
10392 (mips_coerce_float_to_double): Remove.
10393 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10394 (rs6000_coerce_float_to_double): Remove.
10395 * s390-tdep.c (s390_gdbarch_init): Likewise.
10396 * sh-tdep.c (sh_gdbarch_init): Likewise.
10397 (sh_coerce_float_to_double): Remove.
10398 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10399 (sparc_coerce_float_to_double): Remove.
10400 * v850-tdep.c (v850_gdbarch_init): Likewise.
10401 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10402 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10403 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10404 (hppa_coerce_float_to_double): Remove prototype.
10405 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10406
10407 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10408
10409 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10410
10411 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10412
10413 Suggested by Stewart Brown <sb24@avaya.com>:
10414 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10415 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10416 (c_type_print_varspec_suffix): Likewise.
10417
10418 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10419
10420 * configure.in: Don't set and AC_SUBST SUBDIRS.
10421 * configure: Regenerated.
10422
10423 * configure.in: Remove code dealing with shared libraries.
10424 * Makefile.in: Remove HLDFLAGS and HLDENV.
10425 * configure: Regenerated.
10426
10427 2003-01-04 Andrew Cagney <ac131313@redhat.com>
10428
10429 * frame.c (deprecated_frame_xmalloc): New function.
10430 (deprecated_set_frame_saved_regs_hack): New function.
10431 (deprecated_set_frame_extra_info_hack): New function.
10432 * frame.h (deprecated_frame_xmalloc): Declare.
10433 (deprecated_set_frame_saved_regs_hack): Declare.
10434 (deprecated_set_frame_extra_info_hack): Declare.
10435
10436 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10437
10438 * configure.in: Move code that provides the --enable-gdbtk option
10439 right after the code that handles the --enable-tui option, and
10440 polish it somewhat.
10441 * configure: Regenerated.
10442
10443 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10444 AC_CHECK_FUNCS and remove the old check for pread64.
10445 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10446 * acconfig.h (_GNU_SOURCE): Add.
10447 (HAVE_PREAD64): Remove.
10448 * configure, aclocal.m4, config.in: Regenerated.
10449
10450 2003-01-03 Andrew Cagney <ac131313@redhat.com>
10451
10452 * alpha-tdep.c: Use get_frame_saved_regs.
10453 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10454 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10455 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10456 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10457 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10458
10459 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10460
10461 * configure.in: Remove all use of the SUBDIRS variable; add
10462 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10463 code providing the --enable-multi-ice option, and move it right in
10464 front of the code that checks whether gdbserver is supported.
10465 Polish that too.
10466 * configure: Regenerated.
10467 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10468 @SUBDIRS@.
10469
10470 2003-01-03 Andrew Cagney <cagney@redhat.com>
10471
10472 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10473 * avr-tdep.c, cris-tdep.c: Ditto.
10474 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10475 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10476
10477 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10478
10479 * configure.in: Remove --enable-netrom option.
10480 * configure: Regenerated.
10481
10482 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10483
10484 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10485 declaration for `struct re_pattern_buffer' instead.
10486 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10487
10488 2003-01-03 J. Brobecker <brobecker@gnat.com>
10489
10490 * mdebugread.c (parse_symbol): Count until the stEnd matching
10491 the structure name.
10492
10493 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10494
10495 * configure.in: Remove --with-cpu option.
10496 subscripts. Remove evil changequotes here.
10497 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10498 * config.in, configure: Regenerated.
10499
10500 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10501 * configure.in: Cleanup section that sources GDB and BFD configure
10502 subscripts. Remove evil changequotes here.
10503 * config.in, configure: Regenerated.
10504
10505 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10506
10507 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10508 frame accessor methods.
10509 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10510 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10511 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10512 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10513 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10514 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10515 * z8k-tdep.c: Ditto.
10516
10517 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10518
10519 * configure.in: Remove UI_OUT configuration code.
10520 * ada-lang.c: Update assuming UI_OUT is always true.
10521 * Makefile.in (UIOUT_CFLAGS): Remove.
10522 * configure: Regenerated.
10523 * TODO: Remove blurb about elimination of -DUI_OUT.
10524
10525 * configure.in: Move code that provides the --enable-gdbcli,
10526 --enable-gdbmi options right before the code that handles the
10527 --enable-tui option. Polish a bit.
10528 * configure: Regenerated.
10529
10530 * configure.in: Rewrite check for GNU regex and the
10531 --without-included regex option, and move it into the "Checks for
10532 library functions" section. This makes us use the system regex
10533 again by default on systems with version 2 of the GNU C library.
10534 This was apparently broken.
10535 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10536 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10537 * config.in, configure: Regenerated.
10538
10539 * configure.in: Move code that provides the --enable-tui option
10540 before the "Checks for libraries" section. Polish the code
10541 somewhat and set need_curses to yes if we build the TUI. Rewrite
10542 code that looks for a library providing termcap functionality to
10543 match more closely what's done in the Readline library, and move
10544 it into to the "Checks for libraries" section.
10545 * configure: Regenerated.
10546 * Makefile.in (TERMCAP): Remove variable.
10547 * config/i386/go32.mh (TERMCAP): Remove variable.
10548
10549 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10550
10551 * MAINTAINERS: Mention gdb_mbuild.sh.
10552 * gdb_mbuild.sh: Rewrite.
10553
10554 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10555
10556 * configure.in: Fix typo in last change.
10557 * config.in, configure: Regenerated.
10558
10559 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10560
10561 * valarith.c (value_binop): Delete obsolete code and comments.
10562 * configure.host: Ditto.
10563 * buildsym.h (make_blockvector): Ditto.
10564 * buildsym.c (make_blockvector): Ditto.
10565 * defs.h (enum language): Ditto.
10566 (chill_demangle): Ditto.
10567 * elfread.c (elf_symtab_read): Ditto.
10568 * dwarfread.c (CHILL_PRODUCER): Ditto.
10569 (set_cu_language): Ditto.
10570 (handle_producer): Ditto.
10571 * expprint.c (print_subexp): Ditto.
10572 * gdbtypes.c (chill_varying_type): Ditto.
10573 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10574 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10575 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10576 (chill_varying_type): Ditto.
10577 * language.h (_LANG_chill): Ditto.
10578 * language.c (binop_result_type, integral_type): Ditto.
10579 (character_type, string_type, structured_type): Ditto.
10580 (lang_bool_type, binop_type_check): Ditto.
10581 * stabsread.h (os9k_stabs): Ditto.
10582 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10583 (define_symbol, read_type, read_struct_fields): Ditto.
10584 (read_array_type, read_enum_type, read_huge_number): Ditto.
10585 (read_range_type, start_stabs): Ditto.
10586 * symfile.c (init_filename_language_table): Ditto.
10587 (add_psymbol_with_dem_name_to_list): Ditto.
10588 * symtab.c (symbol_init_language_specific): Ditto.
10589 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10590 * symtab.h (struct general_symbol_info): Ditto.
10591 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10592 * typeprint.c (typedef_print): Ditto.
10593 * utils.c (fprintf_symbol_filtered): Ditto.
10594 * valops.c (value_cast, search_struct_field, value_slice): Delete
10595 obsolete code.
10596 (varying_to_slice): Delete function.
10597 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10598 (varying_to_slice): Delete declaration.
10599 * MAINTAINERS: Update.
10600
10601 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10602
10603 * configure.in: Reorganize "Checks for library functions section"
10604 a bit. Remove check for `btowc' and `isascii' functions.
10605 * configure: Regenerated.
10606
10607 * acconfig.h (_MSE_INT_H): Remove.
10608 * configure.in: Create "Checks for header files" section, and move
10609 appropriate tests there. Don't check for objlist.h, wchar.h,
10610 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
10611 misdetection fix. Also add "Checks for types", "Checks for
10612 compiler characteristics" and "Checks for library functions"
10613 sections.
10614 * config.in, configure: Regenerated.
10615
10616 * configure.in: Create "Checks for programs" section, and move
10617 appropriate tests there.
10618
10619 2003-01-01 Mark Kettenis <kettenis@gnu.org>
10620
10621 * configure.in: Create "Checks for libraries" section, and move
10622 appropriate tests there. Cleanup check for wctype in libw. Use
10623 AC_SEARCH_LIBS to see whether we need libsocket.
10624 * configure: Regenerated.
10625
10626 For older changes see ChangeLog-2002
10627 \f
10628 Local Variables:
10629 mode: change-log
10630 left-margin: 8
10631 fill-column: 74
10632 version-control: never
10633 End: