2003-08-20 Michael Snyder <msnyder@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-08-20 Michael Snyder <msnyder@redhat.com>
2
3 * trad-frame.c: Comment typo fix.
4
5 2003-08-20 Michael Snyder <msnyder@redhat.com>
6 Kevin Buettner <kevinb@redhat.com>
7
8 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
9 (frv_frame_init_saved_regs): Add declaration.
10 (frame_extra_info): Add new field ``saved_regs''.
11 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
12 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
13 Update frame related code.
14 (frv_extract_struct_value_address): Adjust formatting.
15 * Makefile.in (frv-tdep.o): Update dependencies.
16 * config/frv/tm-frv.h (target_insert_watchpoint)
17 (target_remove_watchpoint, target_insert_hw_breakpoint)
18 (target_remove_hw_breakpoint): Delete these macros.
19 (remote_insert_watchpoint, remote_remove_watchpoint)
20 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
21 these declarations.
22
23 2003-08-20 Michael Chastain <mec@shout.net>
24
25 * defs.h (ENUM_BITFIELD): New macro.
26 * symtab.h (ENUM_BITFIELD): Use it.
27 (BYTE_BITFIELD): Remove old macro, which was already disabled.
28
29 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
30
31 * MAINTAINERS (write after approval): Add myself.
32
33 2003-08-18 Andrew Cagney <cagney@redhat.com>
34
35 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
36 * gdbarch.h, gdbarch.c: Re-generate.
37 * infcall.c (call_function_by_hand): Adjust the SP by
38 frame_red_zone_size before allocating any stack space.
39 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
40 * x86-64-tdep.c (x86_64_frame_align): New function.
41 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
42
43 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
44 Remove code adjusting SP so that it skips over the Red Zone.
45
46 2003-08-18 Mark Kettenis <kettenis@gnu.org>
47
48 * NEWS (New native configurations): Mention FreeBSD/amd64.
49
50 2003-08-18 Andrew Cagney <cagney@redhat.com>
51
52 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
53 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
54 "m68k_frame_p".
55 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
56
57 2003-08-18 Mark Kettenis <kettenis@gnu.org>
58
59 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
60
61 2003-08-18 Michal Ludvig <mludvig@suse.cz>
62
63 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
64 Define.
65 * i386-linux-nat.c: Include "linux-nat.h".
66 (child_post_startup_inferior): New function.
67
68 2003-08-18 Mark Kettenis <kettenis@gnu.org>
69
70 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
71 at the start of a frameless function. This probably fixes PR
72 backtrace/1338.
73
74 2003-08-17 Michael Chastain <mec@shout.net>
75
76 * symfile.c (find_sym_fns): Remove special case for apollo target.
77
78 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
79
80 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
81 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
82 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
83 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
84 (linux_supports_tracevforkdone): New function.
85 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
86 TRACEVFORKDONE.
87 (child_follow_fork): Handle vfork.
88 (linux_handle_extended_wait): Likewise. Also handle exec.
89 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
90 * NEWS: Mention fork tracing.
91
92 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
93
94 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
95
96 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
97
98 * Makefile.in (i386-linux-nat.o): Update dependencies.
99 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
100 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
101 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
102 * i386-linux-nat.c: Include "linux-nat.h".
103 (child_post_startup_inferior): New function.
104 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
105 * infptrace.c (kill_inferior): Wrap in #ifdef.
106 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
107 attaching to each LWP.
108 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
109 (init_lin_lwp_ops): Fill in some more operations.
110 * linux-nat.h (linux_enable_event_reporting)
111 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
112 prototypes.
113 * linux-nat.c (linux_enable_event_reporting): New function.
114 (child_post_attach, linux_child_post_startup_inferior)
115 (child_post_startup_inferior, child_follow_fork)
116 (linux_handle_extended_wait, kill_inferior): New functions.
117
118 2003-08-16 Andrew Cagney <cagney@redhat.com>
119
120 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
121 * gdbarch.h, gdbarch.c: Re-generate.
122
123 2003-08-16 Mark Kettenis <kettenis@gnu.org>
124
125 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
126
127 2003-08-16 Andrew Cagney <cagney@redhat.com>
128
129 * NEWS: Mention that "set prompt-escape-char" was deleted.
130 * top.c (get_prompt_1): Delete function.
131 (gdb_prompt_escape):
132 (init_main): Do not clear "gdb_prompt_escape". Delete "set
133 prompt-escape-char" command.
134 (MAX_PROMPT_SIZE): Delete macro.
135 (get_prompt): Simplify, do not call get_prompt_1.
136
137 2003-08-16 Andrew Cagney <cagney@redhat.com>
138
139 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
140 -Werror. -Wformat-nonliteral problems.
141
142 2003-08-15 J. Brobecker <brobecker@gnat.com>
143
144 Further multiarching work mostly for hppa64-*-hpux11:
145 * hppa-tdep.h: New file.
146 * hppa-tdep.c: #include hppa-tdep.c.
147 (hppa32_num_regs): Renamed from hppa_num_regs.
148 (hppa64_num_regs): New constant.
149 (hppa64_call_dummy_breakpoint_offset): New constant.
150 (hppa32_call_dummy_length): New constant.
151 (hppa64_call_dummy_length): New constant.
152 (hppa32_stack_align): Make name 32bit explicit.
153 (hppa32_register_virtual_type): Likewise.
154 (hppa32_extract_return_value): Likewise.
155 (hppa32_use_struct_convention): Likewise.
156 (hppa32_store_return_value): Likewise.
157 (hppa64_register_virtual_type): New function.
158 (hppa64_extract_return_value): New function.
159 (hppa64_use_struct_convention): New function.
160 (hppa64_store_return_value): New function.
161 (hppa_frame_locals_address): Remove declaration, function does
162 not exist anymore.
163 (hppa_register_byte): Add support for PA64 ABI.
164 (hppa_gdbarch_init): Add support for PA64 ABI.
165 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
166 Make name 32bit explicit.
167 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
168 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
169 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
170 (hppa64_hpux_frame_base_before_sigtramp): New function.
171 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
172 * config/pa/tm-hppa64.h: Remove macros that are no longer
173 necessary now that the gdbarch vector is properly setup.
174 Transform some macros into function calls. Some minor cleanup.
175 * config/pa/tm-hppah.h: Update function calls in macros
176 following the function renaming in hppa-hpux-tdep.c.
177 * Makefile.in (hppa_tdep_h): New variable.
178 (hppa-tdep.o): Add dependency over hppa_tdep_h.
179
180 2003-08-14 Michael Snyder <msnyder@redhat.com>
181
182 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
183
184 2003-08-13 J. Brobecker <brobecker@gnat.com>
185
186 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
187 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
188 routine.
189
190 2003-08-13 Michael Snyder <msnyder@redhat.com>
191
192 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
193 (frv_saved_pc_after_call): Use deprecated ftype.
194 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
195 (frv_remote_translate_xfer_address): Remove.
196 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
197
198 2003-08-13 J. Brobecker <brobecker@gnat.com>
199
200 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
201 initialization after the common gdbarch initialization, not before.
202
203 2003-08-13 J. Brobecker <brobecker@gnat.com>
204
205 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
206 (ADDR_BITS_REMOVE): Remove, redundant.
207
208 2003-08-13 J. Brobecker <brobecker@gnat.com>
209
210 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
211 gdbarch method to clear the 2 low bits of text addresses.
212
213 2003-08-12 Andrew Cagney <cagney@redhat.com>
214
215 * Makefile.in (dsrec.o): Update dependencies.
216 * dsrec.c: Include "gdb_assert.h".
217 (make_srec): Use snprintf instead of sprintf, use a literal format
218 string.
219
220 2003-08-12 Andrew Cagney <cagney@redhat.com>
221
222 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
223 FRAME_OBSTACK_ZALLOC.
224
225 2003-08-12 Kevin Buettner <kevinb@redhat.com>
226
227 * i386-tdep.c (i386_gdbarch_init): Enable default support for
228 SSE registers.
229
230 2003-08-10 Mark Kettenis <kettenis@gnu.org>
231
232 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
233 amd64fbsd_sc_reg_offset): Add extern declarations.
234 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
235 declarations.
236
237 2003-08-11 Ben Elliston <bje@wasabisystems.com>
238
239 * MAINTAINERS (write after approval): Update my mail address.
240
241 2003-08-10 Andrew Cagney <cagney@redhat.com>
242
243 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
244
245 2003-08-10 Mark Kettenis <kettenis@gnu.org>
246
247 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
248 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
249 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
250 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
251 i386bsd_sc_reg_offset): Add extern declarations.
252 * i386obsd-nat.c: Include "i386-tdep.h"
253 (_initialize_i386obsd_nat): Remove extern declarations.
254 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
255 declarations.
256 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
257 declarations.
258
259 * i386-tdep.c (i386_register_to_value): Use get_frame_register
260 instead of frame_read_register.
261 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
262 instead of frame_read_register. Use I386_ESP_REGNUM instead of
263 SP_REGNUM.
264 (i386_frame_prev_register): Use frame_unwind_register_unsigned
265 instead of frame_unwind_unsigned_register. Use
266 I386_EFLAGS_REGISTER instead of PS_REGNUM.
267 (i386_get_longjmp_target): Use regcache_read_unsigned_register
268 instead of read_register. Use builtin_type_void_data_ptr instead
269 of builtin_type_void_func_ptr when extracting the address of the
270 jmp_buf.
271 (i386_extract_return_value, i386_store_return_value,
272 i386_pseudo_register_read, i386_pseudo_register_write): Use
273 register_size instead REGISTER_RAW_SIZE.
274
275 2003-08-10 Andrew Cagney <cagney@redhat.com>
276
277 * infcall.c (call_function_by_hand): Use xstrprintf instead of
278 sprintf. Make "name" constant.
279
280 2003-08-10 Mark Kettenis <kettenis@gnu.org>
281
282 * i387-tdep.c (i387_register_to_value): Use get_frame_register
283 instead of frame_read_register.
284 (i387_print_float_info): Use get_frame_register and
285 get_frame_register_unsigned instead of frame_register_read.
286
287 * i386fbsd-nat.c: Include "i386-tdep.h".
288 (child_resume): Make `eflags' an ULONGEST. Use
289 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
290 instead of register_read and register_write.
291
292 * i386bsd-nat.c (fetch_inferior_registers,
293 store_inferior_registers): Don't use && at the end of a line.
294 (_initialize_i386bsd_nat): Fix typo.
295
296 * frame.c (_initialize_frame): Add missing backslash.
297
298 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
299 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
300 and supply_register instead of manipulating the register buffer
301 directly.
302
303 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
304 * config/i386/nm-i386sol2.h
305 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
306
307 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
308 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
309 instructions that GCC likes to mingle into the prologue. Fixes
310 gdb/1253 and gdb/1255.
311
312 2003-08-09 Andrew Cagney <cagney@redhat.com>
313
314 Fix GDB PR cli/926.
315 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
316 * command.h (add_setshow_uinteger_cmd): Declare.
317 * frame.c (set_backtrace_cmd): New function.
318 (show_backtrace_cmd): New function.
319 * frame.c (_initialize_frame): Replace "set/show
320 backtrace-below-main" with "set/show backtrace past-main". Add
321 command "set/show backtrace limit".
322 (backtrace_past_main): Rename "backtrace_below_main".
323 (backtrace_limit): New variable.
324 (get_prev_frame): Update. Check the backtrace_limit.
325
326 2003-08-09 Andrew Cagney <cagney@redhat.com>
327
328 * defs.h (xstrprintf): Declare.
329 * utils.c (xstrprintf): New function.
330 * breakpoint.c (insert_breakpoints): Replace sprintf and
331 non-literal format strings, with xstrprintf and cleanups.
332 (delete_breakpoint,breakpoint_re_set): Ditto.
333 (commands_command, insert_breakpoints): Ditto.
334 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
335 (break_at_finish_command_1): Ditto.
336
337 2003-08-09 Andrew Cagney <cagney@redhat.com>
338
339 * MAINTAINERS (language support): List Adam Fedor as Objective C
340 maintainer.
341
342 2003-08-08 J. Brobecker <brobecker@gnat.com>
343
344 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
345 are now multiarched.
346
347 2003-08-08 J. Brobecker <brobecker@gnat.com>
348
349 * config/pa/tm-hppa64.h: Remove lots of macros that are no
350 longer necessary now that hppa64 is partially multiarch'ed.
351
352 2003-08-08 Andrew Cagney <cagney@redhat.com>
353
354 * interps.c (interp_set): Check for a NULL "old_interp".
355
356 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
357
358 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
359 (install-only): Support DESTDIR.
360 (uninstall): Likewise.
361 (install-gdbtk): Likewise.
362
363 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
364
365 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
366 contains something meaningful at all times.
367
368 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
369
370 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
371
372 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
373
374 * MAINTAINERS (write after approval): Added self.
375
376 2003-08-07 Andrew Cagney <cagney@redhat.com>
377
378 * inferior.h (AT_SYMBOL): Define.
379 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
380 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
381 * mips-tdep.c (mips_call_dummy_address): Delete function.
382 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
383 set call_dummy_address.
384
385 2003-08-07 Andrew Cagney <cagney@redhat.com>
386
387 * language.c (op_error): Delete function.
388 (binop_type_check): Delete function.
389 * language.h (type_op_error, range_op_error): Delete macros.
390 (op_error): Delete declaration.
391
392 2003-08-07 Andrew Cagney <cagney@redhat.com>
393
394 * interps.h (INTERP_MI2, INTERP_MI3): Define.
395
396 2003-08-07 Michal Ludvig <mludvig@suse.cz>
397
398 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
399 (x86_64_push_arguments): Skip the red zone.
400
401 2003-08-05 Andrew Cagney <cagney@redhat.com>
402
403 * reggroups.c (reggroup_next): Check for the final entry.
404
405 2003-08-04 Andrew Cagney <cagney@redhat.com>
406
407 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
408 * cli/cli-script.c (define_command): Call query directly, instead
409 of passing it a buffer.
410 * ocd.c (ocd_error): Pass error a constant format string.
411 * remote-mips.c (mips_error): Use fputs_filtered.
412
413 * solib-svr4.c (_initialize_svr4_solib): Update
414 register_gdbarch_data call.
415 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
416
417 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
418 (register_gdbarch_data): Delete "free" parameter. Update
419 comments.
420 * gdbarch.h, gdbarch.c: Re-generate.
421 * reggroups.c (_initialize_reggroup): Update.
422 * gnu-v3-abi.c (init_gnuv3_ops): Update.
423 * frame-base.c (_initialize_frame_base): Update.
424 * frame-unwind.c (_initialize_frame_unwind): Update.
425 * user-regs.c (_initialize_user_regs): Update.
426 * remote.c (_initialize_remote): Update.
427 * regcache.c (_initialize_regcache): Update.
428
429 * regcache.c (xfree_regcache_descr): Delete function.
430 (_initialize_regcache): Update call to register_gdbarch_data.
431 (init_regcache_descr, init_legacy_regcache_descr): Use
432 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
433
434 * remote.c (free_remote_state): Delete function.
435 (_initialize_remote): Update register_gdbarch_data.
436 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
437 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
438
439 2003-08-04 Andrew Cagney <cagney@redhat.com>
440
441 * reggroups.c (struct reggroup_el): Define.
442 (struct reggroups): Delete field "nr_group". Replace array
443 "group" with a "first" to "last" linked list.
444 (reggroups_init): Update. Allocate using gdbarch's obstack.
445 (reggroups_free): Delete function.
446 (add_group): Update. Add "el" parameter.
447 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
448 (default_groups): Update.
449 (reggroup_next): Replace reggroups.
450 (reggroups_dump): Update.
451 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
452 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
453 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
454
455 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
456
457 * Makefile.in (tui-interp.o): Update dependencies.
458
459 2003-08-04 David Carlton <carlton@kealia.com>
460
461 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
462 to internal_error call.
463 * source.c (forward_search_command): Add "%s" format argument.
464 (reverse_search_command): Ditto.
465 * top.c (quit_confirm): Ditto.
466 * cli/cli-setshow.c (do_setshow_command): Ditto.
467 * cp-valprint.c (cp_print_class_method): Replace
468 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
469 (cp_print_class_member): Ditto.
470 * event-top.c (command_line_handler): Ditto.
471 * linux-proc.c (linux_info_proc_cmd): Ditto.
472 * p-typeprint.c (pascal_type_print_base): Ditto.
473 * p-valprint.c (pascal_object_print_class_method): Ditto.
474 (pascal_object_print_class_member): Ditto.
475 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
476 * remote.c (remote_cisco_section_offsets): Ditto.
477 * top.c (command_line_input): Ditto.
478 * utils.c (vwarning,error_stream,quit): Ditto.
479 * valprint.c (print_floating,print_binary_chars)
480 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
481
482 2003-08-04 Andrew Cagney <cagney@redhat.com>
483
484 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
485
486 2003-08-02 Andrew Cagney <cagney@redhat.com>
487
488 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
489 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
490 amd64fbsd-nat.c.
491
492 2003-08-02 Andrew Cagney <cagney@redhat.com>
493
494 * Makefile.in: Update all dependencies and definitions.
495
496 2003-08-02 Adam Fedor <fedor@gnu.org>
497
498 * linespec.c (is_objc_method_format): New function
499 (decode_line_1, locate_first_half): Use it.
500 Fixes PR objc/1298
501
502 2003-08-01 Andrew Cagney <cagney@redhat.com>
503
504 * NEWS: Mention that m32r is multi-arch.
505 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
506 * configure.tgt: Recognize m32r-*-*.
507 * config/m32r/tm-m32r.h: Delete file.
508 * config/m32r/m32r.mt: New file.
509 * m32r-rom.c (m32r_upload_command): Use hostent only when
510 gethostname succeeds, in order to avoid a compilation
511 warning.
512 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
513 compiler warning.
514
515 2003-08-01 Michael Snyder <msnyder@redhat.com>
516
517 * sh-tdep.c (sh_frame_align): New gdbarch method.
518 (sh_gdbarch_init): Set up frame_align method.
519
520 2003-07-31 Michael Snyder <msnyder@redhat.com>
521
522 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
523 which is already covered by the new frames infrastructure.
524
525 2003-07-31 Andrew Cagney <cagney@redhat.com>
526
527 * user-regs.c (struct user_reg): Add "next" link.
528 (struct user_regs): Replace "user" with "first" and "last" links.
529 (append_user_reg): Add pre-allocated "reg" parameter.
530 (builtin_user_regs): Provide initial value for "last".
531 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
532 (user_regs_init): Allocate memory from the gdbarch obstack.
533 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
534 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
535 linked list.
536 (usernum_to_user_reg): New function.
537 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
538 (value_of_user_reg): Use usernum_to_user_reg.
539 (user_regs_free): Delete function.
540 (_initialize_user_regs): Update register_gdbarch_data call.
541
542 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
543
544 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
545
546 2003-07-30 Michael Snyder <msnyder@redhat.com>
547
548 * value.h (value_being_returned): Add a struct_addr argument.
549 * infcall.c (call_function_by_hand): Pass struct_addr to
550 value_being_returned.
551 * infcmd.c (print_return_value): Pass zero as struct_addr.
552 * values.c (value_being_returned): If struct_addr is passed,
553 use it instead of trying to recover it from the inferior.
554
555 2003-07-30 Kevin Buettner <kevinb@redhat.com>
556
557 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
558 the prologue analyzer won't need to attempt to extract the pc
559 value from the woefully incomplete dummy frame.
560 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
561 possible. Disable code which modifies the frame.
562
563 2003-07-28 Andrew Cagney <cagney@redhat.com>
564
565 * annotate.c (annotate_breakpoints_headers): Restrict annotation
566 to level 2.
567 (annotate_breakpoints_table, annotate_record): Ditto.
568 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
569 (annotate_field_name_end, annotate_field_value): Ditto.
570 (annotate_field_end, annotate_frame_source_begin): Ditto.
571 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
572 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
573 (annotate_frame_begin, annotate_frame_function_name): Ditto.
574 (annotate_frame_address_end, annotate_frame_address): Ditto.
575 (annotate_frame_args, annotate_frame_end): Ditto.
576 (annotate_frame_where, annotate_arg_begin): Ditto.
577 (annotate_arg_name_end, annotate_arg_value): Ditto.
578 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
579 (annotate_function_call, annotate_signal_name): Ditto.
580 (annotate_signal_string, annotate_signal_name_end): Ditto.
581 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
582 (annotate_value_begin, annotate_value_history_value): Ditto.
583 (annotate_value_history_end, annotate_value_end): Ditto.
584 (annotate_display_begin, annotate_display_number_end): Ditto.
585 (annotate_display_format, annotate_display_expression): Ditto.
586 (annotate_display_expression_end, annotate_display_value): Ditto.
587 (annotate_display_end, annotate_array_section_begin): Ditto.
588 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
589 (annotate_elt, annotate_array_section_end): Ditto.
590
591 2003-07-28 Andrew Cagney <cagney@redhat.com>
592
593 * regcache.c (struct regcache_descr): Update comments on
594 nr_raw_registers.
595 (init_legacy_regcache_descr): Don't set nr_raw_registers or
596 sizeof_raw_register_valid_p.
597 (init_regcache_descr): Set nr_raw_registers and
598 sizeof_raw_register_valid_p before calling
599 init_legacy_regcache_descr.
600
601 2003-07-28 Andrew Cagney <cagney@redhat.com>
602
603 * mips-tdep.c (print_gp_register_row): Print the GPR's register
604 MOD NUM_REGS.
605
606 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
607
608 * thread.c (info_threads_command): Use get_selected_frame ().
609 Check that there is at least one non-sentinel frame.
610
611 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
612
613 * m68hc11-tdep.c (struct frame_extra_info): Remove.
614 (m68hc11_pop_frame): Remove.
615 (m68hc11_frame_saved_pc): Remove.
616 (m68hc11_frame_chain): Remove.
617 (m68hc11_frame_init_saved_regs): Remove.
618 (m68hc11_init_extra_frame_info): Remove.
619 (m68hc11_store_struct_return): Remove.
620 (m68hc11_saved_pc_after_call): Remove.
621
622 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
623
624 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
625 frame unwind information.
626 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
627 and adapted for frame unwinding.
628 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
629 (m68hc11_unwind_pc): New function.
630 (m68hc11_frame_unwind_cache): New function to analyze frames.
631 (m68hc11_frame_this_id): New function to create new frame struct.
632 (m68hc11_frame_prev_register): New function to unwind a register from
633 the frame.
634 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
635 (m68hc11_frame_p): New function for the above.
636 (m68hc11_frame_base_address): New function to return fp of frame.
637 (m68hc11_frame_args_address): Update for frame.
638 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
639 (m68hc11_unwind_sp): New function.
640 (m68hc11_unwind_dummy_id): New function.
641 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
642 calls.
643
644 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
645
646 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
647 (m68hc11_guess_from_prologue): Advance the pc and frame size only
648 when we are beyond the current pc.
649
650 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
651
652 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
653 from m68hc11_push_arguments.
654 (m68hc11_push_arguments): Remove.
655 (m68hc11_push_return_address): Remove.
656 (m68hc11_gdbarch_init): Install the above; remove above deprecated
657 handlers; remove deprecated_extra_stack_alignment_needed.
658
659 2003-07-27 Andrew Cagney <cagney@redhat.com>
660
661 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
662 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
663 REAL_PC and not the pointer.
664 * hppa-hpux-tdep.c: Include frame.h
665
666 2003-07-27 Andrew Cagney <cagney@redhat.com>
667
668 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
669 GDB_MULTI_ACH_PARTIAL.
670
671 2003-07-27 Andrew Cagney <cagney@redhat.com>
672
673 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
674 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
675 operator at start and not end of line.
676 (decode_prologue): Ditto.
677 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
678 frame_unwind_register_unsigned instead of
679 frame_unwind_unsigned_register.
680 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
681 read_register.
682 (m32r_push_dummy_call): Use register_size instead of
683 REGISTER_RAW_SIZE.
684 (m32r_frame_sniffer): Replace m32r_frame_p.
685 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
686 * m32r-rom.c (report_transfer_performance): Delete extern
687 declaration.
688 (m32r_load, m32r_upload_command): Use print_transfer_performance
689 instead of report_transfer_performance.
690 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
691 / add_show_from_set.
692
693 2003-07-26 Andrew Cagney <cagney@redhat.com>
694
695 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
696 store_return_value and extract_struct_value_address.
697
698 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
699
700 PR c++/1267
701 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
702 NULL, default to the section containing PC.
703
704 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
705
706 * NEWS: Mention "regs" deprecated for m68hc11 too.
707
708 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
709 (m68hc11_print_register): New function to print out one register.
710 (m68hc11_print_registers_info): New function to print registers.
711 (show_regs): Deprecate and use the above.
712 (m68hc11_gdbarch_init): Install the print_registers_info.
713
714 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
715
716 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
717 that we have a SIGTRAP before returning non-zero.
718
719 2003-07-23 Michal Ludvig <mludvig@suse.cz>
720 Elena Zannoni <ezannoni@redhat.com>
721
722 * linespec.c (decode_line_2): Avoid crash if
723 find_function_start_sal() returns empty record.
724
725 2003-07-23 Andreas Schwab <schwab@suse.de>
726
727 * ia64-tdep.c (ia64_print_insn): New function.
728 (ia64_gdbarch_init): Set print_insn to it.
729 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
730 deprecated_tm_print_insn_info.
731
732 2003-07-22 Michael Snyder <msnyder@redhat.com>
733
734 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
735 handle 8-bit returns (long long).
736 (h8300h_extract_return_value): Ditto.
737 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
738
739 2003-07-22 Andrew Cagney <cagney@redhat.com>
740
741 * gdbarch.c Include "gdb_obstack.h".
742 (struct gdbarch): Add an "obstack".
743 (alloc_gdbarch_data): Allocate the gdbarch data using
744 GDBARCH_OBSTACK_CALLOC.
745 (free_gdbarch_data): Delete function.
746 (gdbarch_obstack_zalloc): New function.
747 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
748 Assert that the architecture is not initialized.
749 (gdbarch_alloc): Allocate an obstack, allocate the architecture
750 vector from the obstack.
751 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
752 architecture obstack.
753 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
754 (set_gdbarch_data): Assert that the data is not initialized.
755 (struct gdbarch_data): Delete member "free".
756 (register_gdbarch_data): Do not initialize "free".
757 * gdbarch.h, gdbarch.c: Re-generate.
758
759 2003-07-22 Andrew Cagney <cagney@redhat.com>
760
761 * configure.in (build_warnings): Add -Wformat-nonliteral.
762 * configure: Re-generate.
763
764 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
765
766 * dwarf2loc.c (locexpr_describe_location): Fix typos.
767
768 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
769
770 * findvar.c (read_var_value): Remove case for thread local storage
771 variables. It is now entirely handled by the dwarf2 location
772 expression code.
773 * printcmd.c (address_info): Ditto.
774 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
775 enumeration value.
776 (struct symbol): Remove objfile field, which was used by
777 LOC_THREAD_LOCAL_STATIC only.
778 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
779 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
780 usage of objfile pointer.
781 * dwarf2loc.c (locexpr_describe_location): Add case to handle
782 thread local variables.
783 Add include of objfiles.h.
784 * dwarf2expr.c (execute_stack_op): Add comments about thread local
785 storage variables.
786 * Makefile.in (dwarf2loc.o): Update dependencies.
787
788 2003-07-22 Andrew Cagney <cagney@redhat.com>
789
790 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
791 get_frame_base.
792 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
793 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
794 (struct value): Add opaque declaration.
795 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
796
797 2003-07-21 Andrew Cagney <cagney@redhat.com>
798
799 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
800 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
801
802 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
803
804 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
805 regcache_cooked_read_unsigned instead of read_register.
806 (m68hc11_saved_pc_after_call): Likewise.
807 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
808 instead of write_register.
809 (m68hc11_register_type): New function.
810 (m68hc11_register_virtual_type): Remove.
811 (m68hc11_store_return_value): Convert to use the regcache.
812 (m68hc11_extract_struct_value_address): Likewise.
813 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
814 m68hc11_register_type; undeprecate store_return_value and
815 extract_struct_value_address.
816
817 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
818
819 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
820 and translate to use regcache.
821 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
822
823 2003-07-18 Andrew Cagney <cagney@redhat.com>
824
825 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
826 * gdbarch.h, gdbarch.c: Re-generate.
827 * i386-tdep.c (i386_gdbarch_init): Do not set
828 DWARF2_BUILD_FRAME_INFO.
829 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
830 unconditionally.
831 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
832 DWARF2_BUILD_FRAME_INFO.
833
834 2003-07-18 Andrew Cagney <cagney@redhat.com>
835
836 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
837 * disasm.c (gdb_disassemble_info): Initilize di.arch.
838
839 2003-07-18 Andrew Cagney <cagney@redhat.com>
840
841 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
842 frame_unwind_address_in_block, instead of frame_pc_unwind.
843 (dwarf2_frame_cache): Ditto.
844
845 2003-07-18 Andrew Cagney <cagney@redhat.com>
846
847 * user-regs.h (struct gdbarch): Declare opaque.
848 * ui-out.h (struct ui_file): Declare opaque.
849 * dwarf2-frame.h (struct frame_info): Declare opaque.
850
851 2003-07-18 Kris Warkentin <kewarken@qnx.com>
852
853 * nto-procfs.c: Clean ARI hits. Change #include <..> to
854 #include "...".
855 (procfs_meminfo): Change strerror to safe_strerror.
856 (procfs_can_run): Remove K&R badness.
857
858 2003-07-17 Michael Snyder <msnyder@redhat.com>
859
860 * remote-sim.c: Comment typo fix.
861
862 2003-07-17 Andrew Cagney <cagney@redhat.com>
863
864 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
865 configure.
866 * sparc-tdep.c (sparc_intreg_size): Make non-static.
867 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
868 GDB_MULTI_ARCH_PARTIAL.
869
870 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
871
872 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
873 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
874 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
875
876 2003-07-16 Theodore A. Roth <troth@openavr.org>
877
878 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
879 found.
880 (avr_frame_unwind_cache): Don't unwind FP for main.
881 Update a comment.
882 Save the computed prev_sp.
883 (avr_saved_regs_unwinder): Remove function.
884 (avr_frame_prev_register): Use PC unwind logic from
885 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
886
887 2003-07-16 Andrew Cagney <cagney@redhat.com>
888
889 * frame-base.h (frame_base_p_ftype): Delete definition.
890 (frame_base_append_predicate): Delete declaration.
891 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
892 (frame_unwind_append_predicate): Delete declaration.
893 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
894 (append_predicate): Delete parameter "p".
895 (frame_unwind_append_predicate): Delete function.
896 (frame_unwind_append_sniffer): Update call to append_predicate.
897 (frame_unwind_free): Delete function.
898 (_initialize_frame_unwind): Pass NULL as "free" to
899 register_gdbarch_data.
900 (frame_unwind_init): Append the dummy_frame_sniffer.
901 (frame_unwind_find_by_frame): Simplify.
902 * frame-base.c (struct frame_base_table): Delete field "p".
903 (append_predicate): Delete parameter "p".
904 (frame_base_append_predicate): Delete function.
905 (frame_base_append_sniffer): Update call to append_predicate.
906 (frame_base_free): Delete function.
907 (frame_base_find_by_frame): Simplify.
908 (_initialize_frame_base): Pass NULL as "free" to
909 register_gdbarch_data.
910 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
911 (x86_64_sigtramp_frame_sniffer): Replace
912 "x86_64_sigtramp_frame_p".
913 (x86_64_init_abi): Set the frame unwind sniffers.
914 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
915 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
916 (m68k_gdbarch_init): Set the frame unwind sniffers.
917 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
918 "i386_sigtramp_frame_p".
919 (i386_frame_sniffer): Replace "i386_frame_p".
920 (i386_gdbarch_init): Set the frame unwind sniffers.
921 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
922 (avr_gdbarch_init): Set the frame unwind sniffers.
923 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
924 "alpha_sigtramp_frame_p"
925 (alpha_heuristic_frame_sniffer): Replace
926 "alpha_heuristic_frame_p".
927 (alpha_gdbarch_init): Set the frame unwind sniffers.
928 (alpha_dwarf2_init_abi): Ditto.
929 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
930 "alpha_debug_frame_p".
931 (alpha_mdebug_frame_base_sniffer): Replace
932 "alpha_mdebug_frame_base_p".
933 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
934 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
935 (d10v_gdbarch_init): Set the frame unwind sniffer.
936 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
937 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
938 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
939 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
940 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
941 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
942
943 2003-07-16 Michael Snyder <msnyder@redhat.com>
944
945 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
946 should go thru sh_dsp_register_sim_regno, else the dsp regs
947 will not get the right values.
948
949 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
950
951 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
952 deprecated_store_floating by call to store_typed_floating.
953 (sh_sh4_register_convert_to_raw): Substitute call to
954 deprecated_extract_floating by call to extract_typed_floating.
955
956 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
957
958 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
959
960 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
961
962 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
963 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
964 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
965 as possible.
966 (do_pseudo_register): Remove.
967 (sh_push_dummy_code): New function.
968 (sh64_store_struct_return): Rename from sh_store_struct_return.
969 Only called for sh64 now.
970 (sh_extract_struct_value_address): Regcache'ify.
971 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
972 and accomodate new tasks.
973 (sh64_push_return_address): Rename from sh_push_return_address.
974 Only called for sh64 now.
975 (sh_default_extract_return_value): Rename from sh_extract_return_value.
976 Regcache'ify.
977 (sh3e_sh4_extract_return_value): Regcache'ify.
978 (sh_default_store_return_value): Ditto.
979 (sh3e_sh4_store_return_value): Ditto.
980 (sh_default_register_byte): Remove.
981 (sh_sh4_register_byte): Remove.
982 (sh_default_register_raw_size): Remove.
983 (sh_sh4_register_raw_size): Remove.
984 (sh_register_virtual_size): Remove.
985 (sh_sh3e_register_virtual_type): Remove.
986 (sh_sh3e_register_type): New function.
987 (sh_sh4_register_virtual_type): Remove.
988 (sh_sh4_register_type): New function.
989 (sh_default_register_virtual_type): Remove.
990 (sh_default_register_type): New function.
991 (do_fv_register_info): Add parameters to accomodate call from
992 sh_print_registers_info.
993 (do_dr_register_info): Ditto.
994 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
995 Add parameters to accomodate call from sh_print_registers_info.
996 (sh_do_fp_register): Ditto.
997 (sh64_do_pseudo_register): Call do_dr_register_info,
998 do_fv_register_info and sh_do_fp_register with default parameters.
999 (sh_do_register): Add parameters to accomodate call from
1000 sh_print_registers_info.
1001 (sh_print_register): Ditto.
1002 (sh_print_registers_info): Rename from sh_do_registers_info.
1003 Add parameters to be used as gdbarch_print_registers_info
1004 implementation. Accomodate removed do_pseudo_register function
1005 pointer.
1006 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
1007 function pointer. Call sh_print_register with default parameters.
1008 (sh64_do_registers_info): Call sh_print_registers_info instead of
1009 sh_do_registers_info.
1010 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
1011 detection of deprecated vs. non-deprecated functionality.
1012 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
1013 function pointer assignments by direct function calls.
1014
1015 2003-07-15 Andrew Cagney <cagney@redhat.com>
1016
1017 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
1018 (frame_register_unwind, create_new_frame): Ditto.
1019 (legacy_get_prev_frame, get_frame_type): Ditto.
1020 (get_frame_base_address): Use frame_base_find_by_frame.
1021 (get_frame_locals_address): Use frame_base_find_by_frame.
1022 (get_frame_args_address): Use frame_base_find_by_frame.
1023 * frame-base.h (frame_base_sniffer_ftype): Declare.
1024 (frame_base_append_sniffer): Declare.
1025 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
1026 * frame-base.c (append_predicate): Add a "sniffer" parameter.
1027 (frame_base_append_sniffer): New function.
1028 (frame_base_append_predicate): Add a NULL sniffer.
1029 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1030 (struct frame_base_table): Add "sniffer".
1031 (frame_base_free): Free the "sniffer" table.
1032 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1033 (frame_unwind_append_sniffer): Declare.
1034 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1035 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1036 (struct frame_unwind_table): Add "sniffer", delete "middle".
1037 (append_predicate): Add "sniffer" parameter, append the sniffer.
1038 (frame_unwind_init): Update append_predicate call.
1039 (frame_unwind_append_sniffer): New function.
1040 (frame_unwind_append_predicate): Update append_predicate call.
1041 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1042
1043 2003-07-15 Andrew Cagney <cagney@redhat.com>
1044
1045 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1046 before code inhibiting repeated unwind attempts. Add to
1047 commentary on that test's problems.
1048 * blockframe.c (inside_main_func): Look for "main" in the minimal
1049 symbol table.
1050 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1051 identical.
1052
1053 2003-07-15 Andrew Cagney <cagney@redhat.com>
1054
1055 * complaints.c (struct explanation): Define.
1056 (struct complaints): Change type of "explanation" to "struct
1057 explanation".
1058 (symfile_explanations): Convert to a "struct explanation" table.
1059 (vcomplaint): Update.
1060
1061 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1062
1063 * x86-64-linux-nat.c (regmap): Removed.
1064 (supply_gregset, fill_gregset): Call
1065 x86_64_linux_(fill,supply)_gregset functions.
1066 * x86-64-linux-tdep.c (USER_*): New defines.
1067 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1068 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1069 New functions.
1070 (fetch_core_registers): Ditto.
1071 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1072 * x86-64-linux-tdep.h: New file.
1073 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1074 and core-regset.o.
1075 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1076
1077 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1078
1079 * x86-64-tdep.c (x86_64_store_return_value): Use
1080 regcache_cooked_write_part instead of regcache_cooked_write.
1081
1082 * configure.host: Add x86_64-*-freebsd*.
1083 * configure.tgt: Add x86_64-*-freebsd*.
1084 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1085 * amd64fbsd-nat.c: New file.
1086 * amd64fbsd-tdep.c: New file.
1087 * config/i386/nm-fbsd64.h: New file.
1088 * config/i386/fbsd64.mh: New file.
1089 * config/i386/fbsd64.mt: New file.
1090
1091 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1092
1093 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1094 `sc_regs_offset' and `sc_fpregs_offset'.
1095 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1096 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1097 (alpha_sigtramp_register_address): Rewrite to use new members of
1098 `struct gdbarch_tdep'.
1099 (alpha_gdbarch_init): Initialize new members of struct
1100 gdbarch_tdep'.
1101 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1102 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1103 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1104 (alphafbsd_pc_in_sigtramp): Implement.
1105 (alphafbsd_sigtramp_offset): New function.
1106 (alphafbsd_sigcontext_addr): New function.
1107 (alphafbsd_init_abi): Initialize signal trampoline related members
1108 of `struct gdbarch_tdep'.
1109 (_initialize_alphafbsd_tdep): Add prototype.
1110
1111 2003-07-11 Theodore A. Roth <troth@openavr.org>
1112
1113 * Makefile.in (install-only): Quote sed expression when generating
1114 transformed_name.
1115
1116 2003-07-11 Richard Henderson <rth@redhat.com>
1117
1118 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1119 * dwarf2-frame.c: Include complaints.h.
1120 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1121 variable initialization; return NULL on error.
1122 (decode_frame_entry): New.
1123
1124 2003-07-11 Andrew Cagney <cagney@redhat.com>
1125
1126 * frame.h (frame_address_in_block): Delete declaration.
1127 * blockframe.c (frame_address_in_block): Delete function.
1128 (get_frame_block): Use get_frame_address_in_block.
1129 (block_innermost_frame): Ditto.
1130 * stack.c (print_frame, backtrace_command_1): Ditto.
1131
1132 * frame.h (get_frame_address_in_block): Declare.
1133 (frame_unwind_address_in_block): Declare.
1134 * frame.c (frame_unwind_address_in_block): New function.
1135 (get_frame_address_in_block): New function.
1136
1137 2003-07-10 Andrew Cagney <cagney@redhat.com>
1138
1139 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1140 pre-default. Note: re-generate has no effect.
1141
1142 2003-07-10 Andrew Cagney <cagney@redhat.com>
1143
1144 * gdbarch.sh: When a variable, but not a function, compare against
1145 0. Fix problem in previous patch.
1146 * gdbarch.c: Re-generate.
1147
1148 2003-07-10 Andrew Cagney <cagney@redhat.com>
1149
1150 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1151 functions against NULL, not 0.
1152 * gdbarch.c: Re-generate.
1153
1154 2003-07-10 Fred Fish <fnf@ninemoons.com>
1155
1156 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1157 null string instead of a null pointer.
1158 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1159
1160 2003-07-09 Michael Snyder <msnyder@redhat.com>
1161
1162 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1163
1164 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1165
1166 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1167 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1168 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1169 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1170 * x86-64-tdep.c: ... from here.
1171
1172 2003-07-09 Andreas Schwab <schwab@suse.de>
1173
1174 * m68k-tdep.h (enum struct_return): Define.
1175 (struct gdbarch_tdep): Add struct_return.
1176 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1177 bytes are padded to the right, not to the left. Pass struct value
1178 address in register %a1, not on stack.
1179 (m68k_use_struct_convention): New function.
1180 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1181 struct_return in tdep to pcc_struct_return.
1182 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1183 reg_struct_return.
1184
1185 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1186
1187 * somread.c (som_symfile_offsets): Fix compilation error.
1188
1189 2003-07-09 Andrew Cagney <cagney@redhat.com>
1190
1191 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1192 Add comments about the checks.
1193
1194 2003-07-08 Andrew Cagney <cagney@redhat.com>
1195
1196 * Makefile.in: Make dependency section headers consistent.
1197 (config_h): Move to $BUILD headers section.
1198 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1199 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1200 (ada-exp.tab.c): Move to YACC/LEX section.
1201 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1202 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1203
1204 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1205
1206 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1207 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1208 of strerror with safe_strerror, use ISO C function definitions,
1209 and replace instances of sprintf with snprintf.
1210
1211 2003-07-07 Andrew Cagney <cagney@redhat.com>
1212
1213 * frame.c (get_prev_frame): Enable check for identical frames.
1214 Update comments. Update error messages.
1215
1216 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1217
1218 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1219
1220 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1221
1222 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1223 sort_symtab_syms, no longer necessary.
1224
1225 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1226
1227 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1228
1229 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1230
1231 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1232 (mips_register_byte): Likewise.
1233
1234 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1235
1236 * Makefile.in (sparc_tdep_h): New.
1237 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1238 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1239 * sparc-linux-nat.c: Include "sparc-tdep.h".
1240 * sparc-nat.c: Likewise.
1241 * sparc-tdep.c: Likewise.
1242 * sparc64nbsd-nat.c: Likewise.
1243 * sparcnbsd-nat.c: Likewise.
1244 * sparcnbsd-tdep.c: Likewise.
1245 * sparc-tdep.h: New file.
1246 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1247 and sparc_npc_regnum.
1248
1249 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1250
1251 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1252 (mips_linux_cannot_store_register): List supported instead of
1253 unsupported registers.
1254
1255 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1256
1257 * disasm.c (dump_insns): Separate instructions from addresses.
1258
1259 2003-07-07 Andreas Schwab <schwab@suse.de>
1260
1261 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1262 dependencies.
1263 * m68k-tdep.c (NUM_FREGS): Delete.
1264 (SIG_PC_FP_OFFSET): Delete.
1265 (TARGET_M68K): Delete.
1266 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1267 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1268 P_MOVEL_SP, P_MOVEML_SP): Define.
1269 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1270 P_TRAP): Delete.
1271 (m68k_register_raw_size): Delete.
1272 (m68k_register_virtual_size): Delete.
1273 (m68k_register_type): Renamed from m68k_register_virtual_type and
1274 add gdbarch argument.
1275 (m68k_store_struct_return): Delete.
1276 (m68k_deprecated_extract_return_value): Delete.
1277 (m68k_deprecated_extract_struct_value_address): Delete.
1278 (m68k_frame_chain): Delete.
1279 (m68k_frame_saved_pc): Delete.
1280 (m68k_fix_call_dummy): Delete.
1281 (m68k_push_dummy_frame): Delete.
1282 (m68k_pop_frame): Delete.
1283 (m68k_extract_return_value): New function.
1284 (m68k_store_return_value): Rewrite using regcache.
1285 (m68k_extract_struct_value_address): Rewrite using regcache.
1286 (m68k_push_dummy_call): New function.
1287 (struct m68k_frame_cache): Define.
1288 (m68k_alloc_frame_cache): New function.
1289 (m68k_analyze_frame_setup): New function.
1290 (m68k_analyze_register_saves): New function.
1291 (m68k_analyze_prologue): New function.
1292 (m68k_skip_prologue): Rewrite using above functions.
1293 (m68k_unwind_pc): New function.
1294 (m68k_frame_cache): New function.
1295 (m68k_frame_this_id): New function.
1296 (m68k_frame_prev_register): New function.
1297 (m68k_frame_unwind): New variable.
1298 (m68k_frame_p): New function.
1299 (m68k_sigtramp_frame_cache): New function.
1300 (m68k_sigtramp_frame_this_id): New function.
1301 (m68k_sigtramp_frame_prev_register): New function.
1302 (m68k_sigtramp_frame_unwind): New variable.
1303 (m68k_sigtramp_frame_p): New function.
1304 (m68k_frame_base_address): New function.
1305 (m68k_frame_base): New function.
1306 (m68k_unwind_dummy_id): New function.
1307 (fill_gregset): Use regcache_collect.
1308 (fill_fpregset): Likewise.
1309 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1310 defined.
1311 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1312 deprecated_init_frame_pc, deprecated_store_struct_return,
1313 deprecated_extract_return_value, deprecated_store_return_value,
1314 deprecated_frame_chain, deprecated_frame_saved_pc,
1315 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1316 deprecated_register_virtual_size,
1317 deprecated_max_register_raw_size,
1318 deprecated_max_register_virtual_size,
1319 deprecated_register_virtual_type, deprecated_register_size,
1320 deprecated_register_byte, deprecated_register_bytes,
1321 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1322 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1323 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1324 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1325 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1326 deprecated_push_dummy_frame, deprecated_pop_frame,
1327 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1328 only if SYSCALL_TRAP is defined. Set extract_return_value,
1329 store_return_value, extract_struct_value_address, register_type,
1330 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1331 predicates.
1332 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1333 M68K_MAX_REGISTER_SIZE): Define.
1334 (struct m68k_sigtramp_info): Define.
1335 (struct gdbarch_tdep): Add get_sigtramp_info.
1336 * m68klinux-nat.c (fetch_register): Use register_size instead of
1337 REGISTER_RAW_SIZE. Don't put assignment in if.
1338 (store_register): Likewise.
1339 (fetch_inferior_registers): Likewise.
1340 (store_inferior_registers): Likewise.
1341 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1342 (m68k_linux_frame_saved_pc): Delete.
1343 (m68k_linux_sigcontext_reg_offset,
1344 m68k_linux_ucontext_reg_offset): Define.
1345 (m68k_linux_get_sigtramp_info): New function.
1346 (m68k_linux_extract_return_value): Rewrite using regcache.
1347 (m68k_linux_store_return_value): Likewise.
1348 (m68k_linux_extract_struct_value_address): Likewise.
1349 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1350 Don't set deprecated_frame_saved_pc,
1351 deprecated_extract_return_value, deprecated_store_return_value,
1352 deprecated_extract_struct_value_address. Set
1353 extract_return_value, store_return_value,
1354 extract_struct_value_address.
1355
1356 2003-07-07 Andrew Cagney <cagney@redhat.com>
1357
1358 * expprint.c: Include "user-regs.h" instead of "frame.h".
1359 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1360 frame_map_regnum_to_name.
1361 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1362 (frame_map_name_to_regnum): Simplify, call
1363 user_reg_map_name_to_regnum.
1364 (frame_map_regnum_to_name): Simplify, call
1365 user_reg_map_regnum_to_name.
1366 (frame_register_unwind): Update.
1367 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1368 (_initialize_frame_reg): Call user_reg_add_builtin.
1369 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1370 (value_of_register): Use value_of_user_reg.
1371 * eval.c (evaluate_subexp_standard): Update.
1372 * parse.c (write_dollar_variable): Update.
1373 * d10v-tdep.c (d10v_print_registers_info): Update.
1374 * infcmd.c (registers_info): Update.
1375 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1376 (builtin_regs_h): Delete macro.
1377 (user_regs_h): Define.
1378 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1379 (builtin-regs.o): Delete target.
1380 (user-regs.o): Specify dependencies.
1381 (expprint.o): Update dependencies.
1382 (findvar.o): Update dependencies.
1383 (frame.o): Update dependencies.
1384 (std-regs.o): Update dependencies.
1385
1386 2003-07-06 Christopher Faylor <cgf@redhat.com>
1387
1388 * win32-nat.c (solib_symbols_add): Use one variable for all section
1389 address stuff. Pass variable rather than address of variable to
1390 safe_symbol_file_add.
1391
1392 2003-07-06 Andreas Schwab <schwab@suse.de>
1393
1394 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1395
1396 2003-07-04 Joel Brobecker <brobecker@gnat.com>
1397
1398 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1399
1400 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1401
1402 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1403
1404 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1405
1406 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1407 * config/i386/nto.mh: New file.
1408 * config/i386/nm-nto.h: New file.
1409 * configure.host: Add i[3456]86-*-nto*.
1410
1411 2003-07-03 Joel Brobecker <brobecker@gnat.com>
1412
1413 * remote-vx.c (vx_add_symbols): Fix compilation error.
1414
1415 2003-07-03 Andrew Cagney <cagney@redhat.com>
1416
1417 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1418 * gdbarch.h, gdbarch.c: Re-generate.
1419 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1420 (legacy_register_name): Declare.
1421 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1422 (REGISTER_NAME): Define.
1423 * sparc-tdep.c (legacy_register_name): New function.
1424 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1425 (REGISTER_NAME): Define.
1426 (hppa64_register_name): Declare.
1427 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1428 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1429 (hppa64_register_name): New function.
1430 (hppa_register_name): New function.
1431 * arch-utils.c (legacy_register_name): Delete.
1432 * arch-utils.h (legacy_register_name): Delete.
1433
1434 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
1435
1436 * cli/cli-interp.c (cli_interpreter_resume): Update the
1437 cli_uiout's stream to gdb_stdout.
1438
1439 2003-07-03 Andrew Cagney <cagney@redhat.com>
1440
1441 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1442 predicate.
1443 * gdbarch.h, gdbarch.c: Re-generate.
1444 * regcache.c (init_regcache_descr): Use legacy code when either
1445 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1446
1447 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1448
1449 * NEWS: Move "set logging" entry into GDB 6.0 section.
1450
1451 2003-07-02 Jim Blandy <jimb@redhat.com>
1452
1453 * s390-tdep.c (struct frame_extra_info): new member:
1454 'stack_bought_valid'.
1455 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1456 initialize fextra_info->stack_bought.
1457 (s390_frameless_function_invocation): Don't trust the value of
1458 fextra_info_ptr->stack_bought unless
1459 fextra_info->stack_bought_valid is set.
1460
1461 New S390 prologue analyzer.
1462 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1463 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1464 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1465 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1466 compute_x_addr, s390_on_stack, s390_store,
1467 s390_get_signal_frame_info): New functions.
1468 (S390_NUM_SPILL_SLOTS): New macro.
1469 (s390_get_frame_info): Rewritten.
1470 (is_arg_reg): Deleted.
1471
1472 Break out the decoding of S/390 instructions into separate
1473 functions, to make it more legible, and easier to check
1474 against the spec.
1475 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1476 is_rx, is_rxe): New functions.
1477 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1478 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1479 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1480 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1481 enums for opcode values. (Is this an improvement?)
1482
1483 2003-07-02 Andrew Cagney <cagney@redhat.com>
1484
1485 * i386-tdep.c: Revert change committed as part of trad-frame code
1486 below.
1487
1488 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1489
1490 * breakpoint.c (insert_catchpoint): Make static.
1491
1492 2003-07-02 Andreas Schwab <schwab@suse.de>
1493
1494 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1495 former ia64_push_arguments and ia64_push_return_address, and use
1496 regcache functions instead of read/write_register.
1497 (ia64_gdbarch_init): Set push_dummy_call instead of
1498 deprecated_push_arguments and deprecated_push_return_address.
1499
1500 2003-07-01 Andreas Jaeger <aj@suse.de>
1501
1502 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1503 before the call.
1504 Set %rax only to number of SSE registers used.
1505
1506 2003-07-01 Andrew Cagney <cagney@redhat.com>
1507
1508 * trad-frame.h: Update comments, a -1 .addr is reserved.
1509 (trad_frame_value_p, trad_frame_addr_p): Declare.
1510 (trad_frame_reg_p): Declare.
1511 (trad_frame_set_value): Rename trad_frame_register_value.
1512 (trad_frame_set_unknown): Declare.
1513 * trad-frame.c (trad_frame_realreg_p): New function.
1514 (trad_frame_addr_p, trad_frame_value_p): New function.
1515 (trad_frame_set_unknown): New function.
1516 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1517 (trad_frame_prev_register): Use trad_frame_realreg_p,
1518 trad_frame_addr_p and trad_frame_value_p.
1519 (trad_frame_set_value): Rename trad_frame_register_value.
1520 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1521 and trad_frame_set_value.
1522
1523 2003-06-30 Jim Blandy <jimb@redhat.com>
1524
1525 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1526 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1527 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1528 for 16 registers, and then 32 more bytes.
1529 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1530 New macros.
1531 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1532 Move up in the file, since it's now used by is_simple_arg.
1533 (is_simple_arg): Don't assume registers are four bytes long.
1534 Exclude all double arguments. Extended floats are not simple
1535 args.
1536 (is_power_of_two): New function.
1537 (pass_by_copy_ref): Call is_power_of_two, and check that the
1538 length fits in a register, rather than listing all the acceptable
1539 sizes. Extended floats are not passed by reference.
1540 (s390_push_arguments): Don't assume registers are four bytes long.
1541 Reserve an argument register to point to the buffer for structures
1542 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1543 S390_STACK_FRAME_OVERHEAD.
1544
1545 2003-06-30 Andreas Schwab <schwab@suse.de>
1546
1547 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1548 format error message.
1549
1550 2003-06-30 Joel Brobecker <brobecker@gnat.com>
1551
1552 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1553
1554 2003-06-30 David Carlton <carlton@kealia.com>
1555
1556 Band-aid for PR c++/1245.
1557 * Makefile.in (cp-support.o): Depend on complaints_h.
1558 * cp-support.c: Include complaints.h. Add declaration for
1559 find_last_component.
1560 (cp_find_first_component): Separate code into
1561 cp_find_first_component_aux.
1562 (cp_find_first_component_aux): Call demangled_name_complaint.
1563 (demangled_name_complaint): New.
1564
1565 2003-06-30 Andrew Cagney <cagney@redhat.com>
1566
1567 * remote.c (remote_write_bytes): Explicitly compute and then use
1568 the payload size. Update comments to reflect. Fixes problem of
1569 GDB not sending small packets as found by Fred Fish.
1570
1571 2003-06-30 Andrew Cagney <cagney@redhat.com>
1572
1573 * remote.c (remote_async_wait): Fix -Wformat problem.
1574
1575 2003-06-29 Andrew Cagney <cagney@redhat.com>
1576
1577 * remote.c (remote_wait): Call error, and not warning, when the
1578 packet is corrupt.
1579 (remote_async_wait): Ditto.
1580
1581 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1582
1583 * sparc-tdep.c (sparc_y_regnum): Make external again.
1584
1585 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1586
1587 * cli/cli-logging.c (pop_output_files): Add void to function
1588 definition.
1589
1590 2003-06-29 Andrew Cagney <cagney@redhat.com>
1591
1592 * frame.c (frame_register_unwind): Use unsigned char when dumping
1593 the buffer contents.
1594
1595 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1596
1597 * cli/cli-logging.c: New file.
1598 * cli-out.c (struct ui_out_data): Add original_stream.
1599 (cli_redirect): New function.
1600 (cli_ui_out_impl): Add cli_redirect.
1601 (cli_out_new): Initialize original_stream.
1602 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1603 (uo_redirect, ui_out_redirect): New.
1604 * ui-out.h (struct ui_out_impl): Add redirect member.
1605 (redirect_ftype): New.
1606 (ui_out_redirect): Add prototype.
1607 * Makefile.in: Add rules for cli-logging.c.
1608 * NEWS: Mention "set logging".
1609
1610 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1611
1612 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1613
1614 2003-06-27 Andrew Cagney <cagney@redhat.com>
1615
1616 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1617 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1618 * avr-tdep.c (avr_call_dummy_address): Delete function.
1619 (avr_gdbarch_init): Do not set call_dummy_address.
1620
1621 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1622
1623 * symfile.c (syms_from_objfile): Move variables to inner block.
1624 Move the checks for the non-mainline case a bit earlier to avoid
1625 doing some useless computations.
1626
1627 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1628
1629 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1630
1631 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
1632
1633 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1634 sections.
1635
1636 2003-06-26 Michael Chastain <mec@shout.net>
1637
1638 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1639 gdb/testsuite/gdb.c++/pr-1210.exp.
1640
1641 2003-06-26 Andrew Cagney <cagney@redhat.com>
1642
1643 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1644 altivec_expression.h and altivec_registers.h.
1645
1646 2003-06-26 Andrew Cagney <cagney@redhat.com>
1647
1648 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1649 info->mach when MIPS16. Patch suggested by Fred Fish.
1650
1651 2003-06-26 Andrew Cagney <cagney@redhat.com>
1652
1653 * utils.c (internal_vproblem): Print the problem to a reason
1654 buffer and then pass to query. Make the msg variable more local.
1655
1656 2003-06-26 Andrew Cagney <cagney@redhat.com>
1657
1658 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
1659 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
1660 * gdbarch.h, gdbarch.c: Re-generate.
1661 * frame-base.c (default_frame_args_address): Update. Use
1662 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
1663 not available.
1664 (default_frame_locals_address): Ditto for
1665 DEPRECATED_FRAME_LOCALS_ADDRESS.
1666 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
1667 (vax_frame_num_args): Update.
1668 (vax_gdbarch_init): Update.
1669 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1670 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1671 * mcore-tdep.c (mcore_gdbarch_init): Update.
1672 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1673 * ia64-tdep.c (ia64_gdbarch_init): Update.
1674 * symtab.h (address_class): Update comments.
1675 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
1676 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1677 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1678 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1679 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1680 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1681 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1682 * alpha-mdebug-tdep.c: Update.
1683 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
1684
1685 2003-06-26 Andreas Jaeger <aj@suse.de>
1686
1687 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
1688 of SSE registers so that varargs functions work. Rework handling
1689 of passing arguments on the stack.
1690 (x86_64_store_return_value): Return double and float values in SSE
1691 register.
1692
1693 2003-06-24 Michael Chastain <mec@shout.net>
1694
1695 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
1696 the "constructor breakpoints ignored" bug.
1697
1698 2003-06-25 David Carlton <carlton@kealia.com>
1699
1700 * MAINTAINERS: Update e-mail address.
1701
1702 2003-06-24 Jim Blandy <jimb@redhat.com>
1703
1704 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
1705
1706 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
1707 function.
1708 (ppc_linux_init_abi): Register it as the
1709 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
1710
1711 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
1712 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
1713 method.
1714
1715 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
1716 (ppc64_standard_linkage_target): Use it.
1717
1718 2003-06-23 Andrew Cagney <cagney@redhat.com>
1719
1720 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
1721 for 0 "int0" and 4 "int32" sized registers.
1722 * gdbtypes.c (builtin_type_int0): Define.
1723 (build_gdbtypes): Initialize builtin_type_int0.
1724 * gdbtypes.h (builtin_type_int0): Declare.
1725
1726 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
1727
1728 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
1729 as characters are unsigned.
1730
1731 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1732
1733 PR gdb/1179
1734 * dwarfread.c (struct_type): Skip static fields without crashing.
1735
1736 2003-06-22 Andrew Cagney <cagney@redhat.com>
1737
1738 GDB 6.0 branch created.
1739 * README: Update.
1740 * PROBLEMS: Update. Empty.
1741 * NEWS: Update.
1742
1743 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1744
1745 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
1746 Suggested by Nick Hibma <n_hibma@webweaving.org>.
1747
1748 2003-06-22 Andrew Cagney <cagney@redhat.com>
1749
1750 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
1751 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
1752 Velikov.
1753
1754 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1755
1756 * cli/cli-cmds.c (shell_escape): Silence warnings from old
1757 compilers.
1758
1759 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1760
1761 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
1762 argument of val_print.
1763 * cp-valprint.c (cp_print_value): Don't add the offset parameter
1764 to the address argument of baseclass_offset or target_read_memory.
1765 Do add it to the argument of cp_print_value_fields.
1766
1767 2003-06-21 Andrew Cagney <cagney@redhat.com>
1768
1769 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
1770 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
1771 instead of 0..NUM_REGS.
1772 (mips_register_reggroup_p): New function.
1773 (mips_pseudo_register_write): New function.
1774 (mips_pseudo_register_read): New function.
1775 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
1776 based on the register's type.
1777 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
1778 cooked.
1779 (mips_get_saved_register): Simplify. Assert that REGNO is a
1780 pseudo / cooked.
1781 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
1782 (mips_register_type): Replace mips_register_virtual_type. Map
1783 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
1784 when available.
1785 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
1786 that the register is cooked / virtual.
1787 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
1788 Only get the extra info when needed.
1789 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
1790 (mips32_heuristic_proc_desc): Fetch the cooked register.
1791 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
1792 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
1793 (mips_print_register): Use gdbarch_register_type, instead of
1794 REGISTER_VIRTUAL_TYPE.
1795 (print_gp_register_row): Use gdbarch_register_type, instead of
1796 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
1797 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1798 Print the pseudo / cooked registers.
1799 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1800 Print the pseudo / cooked registers.
1801 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
1802 REG_NUM is pseudo / cooked.
1803 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
1804 (mips_n32n64_xfer_return_value): Ditto.
1805 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
1806 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
1807 (mips_register_sim_regno): New function.
1808 (mips_gdbarch_init): Set deprecated_register_byte,
1809 register_group_p, pseudo_register_write, pseudo_register_read,
1810 register_sim_regno, and num_pseudo_regs. Set register_type,
1811 instead of register_virtual_type.
1812 * Makefile.in (mips-tdep.o): Update dependencies.
1813 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
1814 REGISTER_VIRTUAL_TYPE.
1815 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
1816 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
1817 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
1818 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
1819 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
1820
1821 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1822
1823 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
1824 * cli/cli-cmds.c: Include "gdb_vfork.h".
1825 (shell_escape): Use vfork.
1826
1827 2003-06-21 Andrew Cagney <cagney@redhat.com>
1828
1829 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
1830 32 bit floating-point register saves.
1831
1832 * frame.h (deprecated_unwind_get_saved_register): Delete.
1833 * frame.c (deprecated_unwind_get_saved_register): Delete function.
1834 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
1835 and deprecated_get_next_frame_hack instead of
1836 deprecated_unwind_get_saved_register.
1837
1838 * mips-tdep.c (mips_dump_tdep): Do not print
1839 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
1840
1841 * frame.c (get_frame_register): New function.
1842 (frame_unwind_register_signed): New function.
1843 (get_frame_register_signed): New function.
1844 (frame_unwind_register_unsigned): New function.
1845 (get_frame_register_unsigned): New function.
1846 * frame.h: Add comments on naming schema.
1847 (get_frame_register, frame_unwind_register_signed): Declare.
1848 (get_frame_register_signed, get_frame_register_signed): Declare.
1849 (frame_unwind_register_unsigned): Declare.
1850 (get_frame_register_unsigned): Declare.
1851
1852 2003-06-20 Theodore A. Roth <troth@openavr.org>
1853
1854 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
1855
1856 2003-06-20 Theodore A. Roth <troth@openavr.org>
1857
1858 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
1859 (avr_read_sp): Ditto.
1860
1861 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
1862
1863 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
1864 * config/arm/nm-linux.h: Likewise.
1865 * config/arm/tm-linux.h: Likewise.
1866 * config/ia64/nm-linux.h: Likewise.
1867 * config/ia64/tm-ia64.h: Likewise.
1868 * config/s390/tm-linux.h: Likewise.
1869 * config/s390/tm-s390.h: Likewise.
1870 * s390-nat.c: Likewise.
1871 * s390-tdep.c: Likewise.
1872
1873 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
1874 * config/ia64/linux.mt: Likewise.
1875 * config/m68k/linux.mh: Likewise.
1876 * config/mips/linux.mt: Likewise.
1877 * config/powerpc/linux.mh: Likewise.
1878 * config/sh/linux.mt: Likewise.
1879
1880 2003-06-19 Kris Warkentin <kewarken@qnx.com>
1881
1882 * solib.c (solib_open): Change tests for whether to search
1883 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
1884 comments.
1885
1886 2003-06-19 Theodore A. Roth <troth@openavr.org>
1887
1888 * avr-tdep.c (avr_frame_address): Delete function.
1889 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
1890 set_gdbarch_frame_args_address.
1891
1892 2003-06-19 Andrew Cagney <cagney@redhat.com>
1893
1894 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
1895 (REGISTER_CONVERT_FROM_TYPE): Delete.
1896 (mips_register_convert_to_type): Delete declaration.
1897 (mips_register_convert_from_type): Delete declaration.
1898 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
1899 kernel/.
1900
1901 2003-06-19 Michael Snyder <msnyder@redhat.com>
1902
1903 * linux-nat.h: New file.
1904 * linux-nat.c: Include linux-nat.h.
1905 * lin-lwp.c: Include linux-nat.h.
1906 Move struct lwp_info def to linux-nat.h.
1907 * linux-proc.c: Include linux-nat.h.
1908 (linux_make_note_section): Iterate over lwps instead of threads.
1909 (linux_do_thread_registers): Use lwp instead of merged pid.
1910 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
1911 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
1912 Add dependency on linux_nat_h.
1913
1914 2003-06-19 Theodore A. Roth <troth@openavr.org>
1915
1916 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
1917
1918 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1919
1920 * varobj.c (get_type, get_target_type): Use check_typedef.
1921
1922 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1923
1924 * breakpoint.c (insert_catchpoint): Call internal_error.
1925
1926 2003-06-19 Theodore A. Roth <troth@openavr.org>
1927
1928 * avr-tdep.c (avr_push_dummy_code): Delete function.
1929 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
1930
1931 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1932
1933 * arch-utils.c (default_prepare_to_proceed): Remove.
1934 (generic_prepare_to_proceed): Remove.
1935 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
1936 (generic_prepare_to_proceed): Remove prototype.
1937 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
1938 * gdbarch.c: Regenerate.
1939 * gdbarch.h: Regenerate.
1940 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
1941 * hppah-nat.c (hppa_switched_threads): Remove.
1942 * infrun.c (prepare_to_proceed): New static function, copied from
1943 generic_prepare_to_proceed. Remove select_it argument.
1944 (proceed): Call prepare_to_proceed.
1945 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
1946 variables.
1947 (ptrace_wait): Don't set the removed variables.
1948 (hppa_switched_threads): Remove.
1949 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
1950 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
1951 (lin_lwp_prepare_to_proceed): Remove prototype.
1952 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
1953 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
1954
1955 2003-06-18 Theodore A. Roth <troth@openavr.org>
1956
1957 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
1958 trad-frame.h.
1959 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
1960 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
1961 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
1962 (AVR_PROLOGUE_*): Enumerate prologue types.
1963 (struct frame_extra_info): Remove.
1964 (struct avr_unwind_cache): Define.
1965 (avr_write_sp): Delete function.
1966 (avr_read_fp): Ditto.
1967 (avr_init_extra_frame_info): Ditto.
1968 (avr_pop_frame): Ditto.
1969 (avr_frame_saved_pc): Ditto.
1970 (avr_saved_pc_after_call): Ditto.
1971 (avr_push_return_address): Ditto.
1972 (avr_frame_chain): Ditto.
1973 (avr_store_struct_return): Ditto.
1974 (avr_push_arguments): Ditto.
1975 (avr_scan_prologue): Update comments. Changed to set up the info for
1976 cache unwinding. Now returns end of prologue PC.
1977 (avr_skip_prologue): Better handling of functions lacking a prologue
1978 by using avr_scan_prologue.
1979 (avr_scan_arg_moves): New function.
1980 (avr_saved_regs_unwinder): Ditto.
1981 (avr_frame_unwind_cache): Ditto.
1982 (avr_unwind_pc): Ditto.
1983 (avr_frame_this_id): Ditto.
1984 (avr_frame_prev_register): Ditto.
1985 (avr_frame_p): Ditto.
1986 (avr_frame_base_address ): Ditto.
1987 (avr_unwind_dummy_id): Ditto.
1988 (avr_push_dummy_code): Ditto.
1989 (push_stack_item): Ditto.
1990 (pop_stack_item): Ditto.
1991 (avr_push_dummy_call): Ditto.
1992 (struct stack_item): Define.
1993 (avr_frame_unwind): Declare structure.
1994 (avr_frame_base): Ditto.
1995 (avr_gdbarch_init): Remove calls to
1996 set_gdbarch_deprecated_init_frame_pc,
1997 set_gdbarch_deprecated_target_read_fp,
1998 set_gdbarch_deprecated_dummy_write_sp,
1999 set_gdbarch_deprecated_fp_regnum,
2000 set_gdbarch_deprecated_push_arguments,
2001 set_gdbarch_deprecated_push_return_address,
2002 set_gdbarch_deprecated_pop_frame,
2003 set_gdbarch_deprecated_store_struct_return,
2004 set_gdbarch_deprecated_frame_init_saved_regs,
2005 set_gdbarch_deprecated_init_extra_frame_info,
2006 set_gdbarch_deprecated_frame_chain,
2007 set_gdbarch_deprecated_frame_saved_pc,
2008 set_gdbarch_deprecated_saved_pc_after_call.
2009 Add calls to set_gdbarch_push_dummy_call,
2010 set_gdbarch_push_dummy_code,
2011 frame_unwind_append_predicate,
2012 frame_base_set_default,
2013 set_gdbarch_unwind_dummy_id,
2014 set_gdbarch_unwind_pc.
2015 Wrap a long line.
2016
2017 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
2018
2019 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
2020 registers for H8/300S.
2021 (h8300_print_registers_info): Ditto.
2022 (h8300_gdbarch_init): Accommodate register count for H8/300S.
2023
2024 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
2025
2026 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
2027 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2028 (lin_lwp_wait): Likewise. Update comments.
2029 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2030 (pull_pid_from_list, linux_record_stopped_pid): New.
2031
2032 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2033
2034 * ada-lang.c (scan_discrim_bound): Name first argument.
2035 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2036 declared by ALL_BLOCK_SYMBOLS.
2037
2038 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2039
2040 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2041 ("regcache.h"): Include it.
2042 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2043
2044 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2045
2046 * NEWS: Mention gdbserver detach change and "disconnect" command.
2047 * infcmd.c (disconnect_command): New function.
2048 (_initialize_infcmd): Add ``disconnect'' command.
2049 * remote.c (remote_async_detach): Delete.
2050 (remote_detach): Merge remote_async_detach.
2051 (remote_disconnect): New.
2052 (init_remote_ops): Set to_disconnect.
2053 (init_remote_cisco_ops): Likewise.
2054 (init_remote_async_ops): Likewise. Use remote_detach.
2055 * target.c (cleanup_target): Default to_disconnect.
2056 (update_current_target): Inherit to_disconnect.
2057 (target_disconnect, debug_to_disconnect): New functions.
2058 (setup_target_debug): Set to_disconnect.
2059 * target.h (struct target_ops): Add to_disconnect.
2060 (target_disconnect): Add prototype.
2061
2062 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2063
2064 * breakpoint.c (insert_catchpoint): New function.
2065 (insert_breakpoints): Use catch_exceptions to call
2066 insert_catchpoint. Disable catchpoints if they fail to insert.
2067
2068 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2069
2070 * symfile.c (reread_symbols): Clear sym_private.
2071
2072 2003-06-17 Andrew Cagney <cagney@redhat.com>
2073
2074 * trad-frame.h (struct frame_info): Add opaque declaration.
2075 * remote-fileio.h (struct cmd_list_element): Add opaque
2076 declaration.
2077 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2078 comments.
2079
2080 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2081
2082 * remote.c (remote_prepare_to_store): Replace call to
2083 deprecated_read_register_bytes with multiple regcache_raw_read
2084 calls.
2085
2086 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2087
2088 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2089 (nto_find_and_open_solib): Likewise.
2090 (nto_init_solib_absolute_prefix): Likewise.
2091 (_initialize_nto_tdep): Fix indentation.
2092
2093 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2094
2095 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2096
2097 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2098
2099 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2100
2101 2003-06-17 Jim Blandy <jimb@redhat.com>
2102
2103 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2104
2105 2003-06-16 Theodore A. Roth <troth@openavr.org>
2106
2107 * avr-tdep.c (avr_extract_return_value): New function.
2108 (avr_gdbarch_init): Set extract_return_value method.
2109
2110 2003-06-16 Andrew Cagney <cagney@redhat.com>
2111
2112 * frame.h (deprecated_get_next_frame_hack): Declare.
2113 * frame.c (legacy_saved_regs_prev_register): Only require
2114 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2115 there are always saved regs.
2116 (deprecated_generic_get_saved_register): Do not require
2117 DEPRECATED_FRAME_INIT_SAVED_REGS.
2118 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2119 use frame ID unwind instead.
2120 (deprecated_get_next_frame_hack): New function.
2121
2122 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2123
2124 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2125 (h8300_push_dummy_call): ...this function. Some minor optimization.
2126 (h8300_push_return_address): Remove.
2127 (h8300_gdbarch_init): Remove calls to
2128 set_gdbarch_deprecated_dummy_write_sp,
2129 set_gdbarch_deprecated_push_arguments and
2130 set_gdbarch_deprecated_push_return_address.
2131 Add call to set_gdbarch_push_dummy_call.
2132
2133 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2134
2135 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2136 (E_PSEUDO_EXR_REGNUM): Ditto.
2137 (h8300_is_argument_spill): Check for instructions moving argument
2138 registers into safe registers.
2139 (h8300_skip_prologue): Check for stm instruction to push registers
2140 used for register variables onto stack.
2141 (gdb_print_insn_h8300): Remove.
2142 (h8300_examine_prologue): Add a comment.
2143 (h8300_register_name): Take pseudo registers into account.
2144 (h8300s_register_name): Ditto.
2145 (h8300sx_register_name): Ditto.
2146 (h8300_print_register): Ditto.
2147 (h8300_print_registers_info): Define "nice" printing order.
2148 (h8300_saved_pc_after_call): Take pseudo registers into account.
2149 (h8300_register_type): Ditto. Return type used for remote connection
2150 when requesting real CCR or EXR register, return actual type when
2151 requesting pseudo CCR or EXR.
2152 (h8300_pseudo_register_read): New function.
2153 (h8300_pseudo_register_write): Ditto.
2154 (h8300_dbg_reg_to_regnum): Ditto.
2155 (h8300s_dbg_reg_to_regnum): Ditto.
2156 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2157 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2158 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2159 set_gdbarch_print_insn architecture dependent.
2160 Call set_gdbarch_pseudo_register_read and
2161 set_gdbarch_pseudo_register_write.
2162 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2163
2164 2003-06-16 Andrew Cagney <cagney@redhat.com>
2165
2166 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2167 * gdbarch.h, gdbarch.c: Re-generate.
2168 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2169 * s390-tdep.c (s390_gdbarch_init): Update.
2170 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2171 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2172 * mips-tdep.c (mips_gdbarch_init): Update.
2173 * mcore-tdep.c (mcore_gdbarch_init): Update.
2174 * cris-tdep.c (cris_gdbarch_init): Update.
2175 * infcall.c (call_function_by_hand): Update.
2176 * ia64-tdep.c (ia64_push_arguments): Update comment.
2177 * frame.c (legacy_get_prev_frame): Do not assume
2178 SAVE_DUMMY_FRAME_TOS_P.
2179 * dummy-frame.c (find_dummy_frame): Update comment.
2180
2181 2003-06-16 Andrew Cagney <cagney@redhat.com>
2182
2183 * regcache.c (do_cooked_read): Do not use register_valid_p.
2184
2185 2003-06-15 Theodore A. Roth <troth@openavr.org>
2186
2187 * avr-tdep.c (avr_register_type): Remove a blank line.
2188 (avr_scan_prologue): Correct some comments.
2189
2190 2003-06-15 Theodore A. Roth <troth@openavr.org>
2191
2192 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2193 prologue types.
2194 Properly scan prologues generated by gcc with the -mcall-prologues
2195 option.
2196 Add code to scan -mcall-prologues for mega devices.
2197
2198 2003-06-15 Theodore A. Roth <troth@openavr.org>
2199
2200 * avr-tdep.c (avr_register_byte): Delete function.
2201 (avr_register_raw_size): Delete function.
2202 (avr_register_virtual_size): Delete function.
2203 (avr_register_virtual_type): Delete function.
2204 (avr_register_type): New function.
2205 (avr_address_to_pointer): Remove unused code.
2206 (avr_read_fp): Need to read FP as two separate bytes due to change to
2207 avr_register_type() usage.
2208 (avr_gdbarch_init): Don't set deprecated_register_size.
2209 Don't set deprecated_register_bytes.
2210 Don't set deprecated_register_byte.
2211 Don't set deprecated_register_raw_size.
2212 Don't set deprecated_max_register_raw_size.
2213 Don't set deprecated_register_virtual_size.
2214 Don't set deprecated_max_register_virtual_size.
2215 Don't set deprecated_register_virtual_type.
2216 Set register_type method.
2217
2218 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2219
2220 * Makefile.in (linux-nat.o): Add rule.
2221 * linux-nat.c: New file.
2222 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2223 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2224 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2225 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2226 * config/arm/linux.mh (NATDEPFILES): Likewise.
2227 * config/i386/linux.mh (NATDEPFILES): Likewise.
2228 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2229 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2230 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2231 * config/mips/linux.mh (NATDEPFILES): Likewise.
2232 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2233 * config/s390/s390.mh (NATDEPFILES): Likewise.
2234 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2235
2236 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2237
2238 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2239 replace out-of-date comment.
2240
2241 2003-06-15 Andrew Cagney <cagney@redhat.com>
2242
2243 * rdi-share/host.h (Fail): Change to a varargs function.
2244 * remote-rdi.c (Fail): Update.
2245
2246 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2247
2248 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2249 (i386_convert_register_p, i386_register_to_value,
2250 i386_register_from_value): Handle types longer than 8 bytes.
2251
2252 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2253
2254 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2255 Move floating-point code to new function in i387-tdep.c.
2256 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2257 New functions containing code moved here from i386-tdep.c.
2258 * i387-tdep.h: Add opaque declaration for `struct type'.
2259 (i387_register_to_value, i387_value_to_register): New prototypes.
2260 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2261 (x86_64_init_abi): Set convert_register_p, register_to_value and
2262 value_to_register here.
2263
2264 2003-06-14 Andrew Cagney <cagney@redhat.com>
2265
2266 * mips-tdep.c (mips_register_to_value): Make static.
2267 (mips_value_to_register): Make static.
2268 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2269 * ia64-tdep.c (ia64_register_raw_size): Make static.
2270 (ia64_register_virtual_size): Make static.
2271 (ia64_register_byte): Make static.
2272 * i387-tdep.c: Include "i387-tdep.h".
2273 (print_387_control_word): Delete function.
2274 (print_387_status_word): Delete function.
2275 (print_387_status_bits): Delete function.
2276 (print_387_control_bits): Delete function.
2277 * Makefile.in (i387-tdep.o): Update dependencies.
2278 * rdi-share/host.h (Fail): Declare.
2279 * remote-rdi.c (Fail): Update to match declaration.
2280
2281 2003-06-14 Andrew Cagney <cagney@redhat.com>
2282
2283 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2284 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2285 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2286 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2287 * README: Delete reference to remote-array.
2288 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2289 (remote-array.o): Delete target.
2290 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2291 * remote-array.c: Delete file.
2292
2293 2003-06-14 Andrew Cagney <cagney@redhat.com>
2294 Mark Kettenis <kettenis@gnu.org>
2295
2296 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2297 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2298 parameter with "frame".
2299 * gdbarch.h, gdbarch.c: Re-generate.
2300 * frame.h (put_frame_register): Declare.
2301 * frame.c (put_frame_register): New function.
2302 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2303 (legacy_register_to_value): Rewrite, use "frame" to get the
2304 register value.
2305 (legacy_value_to_register): Rewrite, use "frame" to find the
2306 register's location before storing.
2307 * arch-utils.h (legacy_convert_register_p): Update.
2308 (legacy_register_to_value, legacy_value_to_register): Update.
2309 * findvar.c (value_from_register): Rewrite, eliminate use of
2310 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2311 "frame" to REGISTER_TO_VALUE.
2312 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2313 lval_reg_frame_relative + lval_register branch of the switch. Do
2314 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2315 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2316 I386_EDI_REGNUM): New defines.
2317 (i386_next_regnum, i386_convert_register_p,
2318 i386_register_to_value, i386_value_to_register): New functions.
2319 (i386_register_convertible, i386_register_convert_to_virtual,
2320 i386_convert_to_raw): Remove functions.
2321 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2322 value_to_register instead of register_convertible,
2323 register_convert_to_virtual and register_convert_to_raw.
2324 * mips-tdep.c (mips_convert_register_p): New function.
2325 (mips_value_to_register): Replace mips_register_convert_from_type.
2326 (mips_register_to_value): Replace mips_register_convert_to_type.
2327 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2328 register_to_value.
2329 * alpha-tdep.c (alpha_convert_register_p): Update.
2330 (alpha_value_to_register): Update, store the register.
2331 (alpha_register_to_value): Update, fetch the register.
2332
2333 2003-06-14 Theodore A. Roth <troth@openavr.org>
2334
2335 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2336 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2337 Don't set deprecated_call_dummy_words.
2338 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2339 Don't set remote_translate_xfer_address.
2340 (avr_io_reg_read_command): Remove commented out debug printf.
2341 Wrap a long line.
2342
2343 2003-06-14 Theodore A. Roth <troth@openavr.org>
2344
2345 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2346 causes gdb to seg fault.
2347
2348 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
2349
2350 * sparc-nat.c (fetch_inferior_registers): Correct
2351 a reference to "registers".
2352
2353 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2354
2355 * Makefile.in (exc_request_U_h): Define
2356 (exc_request_S_h): Likewise.
2357 (msg_reply_S_h): Likewise.
2358 (msg_U_h): Likewise.
2359 (notify_S_h): Likewise.
2360 (process_reply_S_h): Likewise.
2361 (gnu-nat.o): Depend on gdb_obstack_h
2362 * gnu-nat.c: Include "gdb_obstack.h".
2363
2364 2003-06-13 Andrew Cagney <cagney@redhat.com>
2365
2366 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2367 * gdbarch.h, gdbarch.c: Re-generate.
2368
2369 2003-06-13 Andrew Cagney <cagney@redhat.com>
2370
2371 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2372 when deprecated REGISTER macros can be deleted.
2373 * gdbarch.h, gdbarch.c: Re-generate.
2374
2375 2003-06-13 Jim Blandy <jimb@redhat.com>
2376
2377 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2378 Linux entry point symbols for _dl_debug_state, too.
2379
2380 2003-06-13 Andrew Cagney <cagney@redhat.com>
2381
2382 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2383 available, do not use the FP register, and always save the TOS.
2384 * dummy-frame.c (dummy_frame_this_id): Do not assert
2385 SAVE_DUMMY_FRAME_TOS.
2386 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2387 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2388 (i386_push_dummy_call): Add 8 to the returned SP.
2389 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2390 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2391 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2392 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2393 (x86_64_push_dummy_call): Return "sp + 16".
2394 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2395 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2396 save_dummy_frame_tos.
2397
2398 2003-06-13 Jim Blandy <jimb@redhat.com>
2399
2400 * frv-tdep.c (frv_use_struct_convention): Delete static
2401 declaration for function deleted in my change of 2003-06-12.
2402
2403 2003-06-13 Theodore A. Roth <troth@openavr.org>
2404
2405 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2406 (avr_pointer_to_address): Shift code addrs left 1 bit.
2407 (avr_convert_from_func_ptr_addr): Delete function since operation is
2408 better handled by avr_address_to_pointer and avr_pointer_to_address.
2409 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2410
2411 2003-06-13 Mark Kettenis <kettenis@gnu.org>
2412
2413 From Kelley Cook <kelleycook@wideopenwest.com>:
2414 * configure.host: Accept i[34567]86 variants.
2415 * configure.tgt: Likewise.
2416 * nlm/configure.in: Likewise.
2417 * nlm/configure: Regenerated.
2418
2419 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2420
2421 * arm-tdep.c (solib-svr4.h): Dont' include it.
2422 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2423 * arm-linux-tdep.c: ... here. Make static.
2424 (arm_linux_init_abi): Register it.
2425 (solib-svr4.h): Include it.
2426 * Makefile.in: Update dependencies.
2427 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2428 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2429
2430 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2431
2432 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2433 indicate registers used for return values.
2434 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2435 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2436 members.
2437 (h8300_init_extra_frame_info): Ditto.
2438 (h8300_frame_locals_address): Removed.
2439 (h8300_frame_args_address): Removed.
2440 (h8300_extract_return_value): Use new regcache structure. Only care
2441 for 16 bit CPUs.
2442 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2443 (h8300_store_return_value): Use new regcache structure. Only care
2444 for 16 bit CPUs.
2445 (h8300h_store_return_value): Same function for 32 bit CPUs.
2446 (h8300_store_struct_return): Removed.
2447 (h8300_extract_struct_value_address): Use new regcache structure.
2448 (h8300h_extract_struct_value_address): Removed.
2449 (h8300_push_dummy_code): New function.
2450 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2451 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2452 set_gdbarch_store_return_value architecture dependent.
2453 Call set_gdbarch_push_dummy_code and
2454 set_gdbarch_extract_struct_value_address.
2455 Remove calls to set_gdbarch_frame_args_address,
2456 set_gdbarch_frame_locals_address,
2457 set_gdbarch_deprecated_store_struct_return,
2458 set_gdbarch_deprecated_extract_return_value,
2459 set_gdbarch_deprecated_extract_struct_value_address,
2460 set_gdbarch_deprecated_call_dummy_words and
2461 set_gdbarch_deprecated_sizeof_call_dummy_words.
2462
2463 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2464
2465 * h8300-tdep.c (h8300_register_byte): Remove.
2466 (h8300h_register_byte): Remove.
2467 (h8300_register_virtual_type): Remove. Substitute by...
2468 (h8300_register_type): New function.
2469 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2470 (h8300h_extract_struct_value_address): Ditto.
2471 (h8300_gdbarch_init): Drop calls to
2472 set_gdbarch_deprecated_register_byte and
2473 set_gdbarch_deprecated_register_virtual_type.
2474 Add call to set_gdbarch_register_type.
2475
2476 2003-06-13 Andrew Cagney <cagney@redhat.com>
2477
2478 * gdbarch.sh: Update comments on registers.
2479 (deprecated_register_byte): Rename register_byte.
2480 (deprecated_register_raw_size): Rename register_raw_size.
2481 (deprecated_register_virtual_size): Rename register_virtual_size.
2482 (deprecated_register_virtual_type): Rename register_virtual_type.
2483 * gdbarch.h, gdbarch.c: Re-generate.
2484 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2485 * vax-tdep.c (vax_gdbarch_init): Update.
2486 * v850-tdep.c (v850_gdbarch_init): Update.
2487 * sparc-tdep.c (sparc_gdbarch_init): Update.
2488 * sh-tdep.c (sh_gdbarch_init): Update.
2489 * s390-tdep.c (s390_gdbarch_init): Update.
2490 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2491 * ns32k-tdep.c: Update.
2492 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2493 * mips-tdep.c (mips_gdbarch_init): Update.
2494 * mcore-tdep.c (mcore_gdbarch_init): Update.
2495 * m68k-tdep.c (m68k_gdbarch_init): Update.
2496 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2497 * ia64-tdep.c (ia64_gdbarch_init): Update.
2498 * hppa-tdep.c (hppa_gdbarch_init): Update.
2499 * h8300-tdep.c (h8300_gdbarch_init): Update.
2500 * frv-tdep.c (frv_gdbarch_init): Update.
2501 * cris-tdep.c (cris_gdbarch_init): Update.
2502 * avr-tdep.c (avr_gdbarch_init): Update.
2503 * alpha-tdep.c (alpha_gdbarch_init): Update.
2504 * arm-tdep.c (arm_gdbarch_init): Update.
2505
2506 2003-06-13 Andrew Cagney <cagney@redhat.com>
2507
2508 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2509 mips_o32_use_struct_convention with always_use_struct_convention.
2510
2511 2003-06-12 David Carlton <carlton@kealia.com>
2512
2513 * cp-namespace.c (cp_set_block_scope): Comment out
2514 processing_has_namespace_info branch.
2515
2516 2003-06-12 Jim Blandy <jimb@redhat.com>
2517
2518 Recognize and skip 64-bit PowerPC Linux linkage functions.
2519 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2520 insn_pattern, insns_match_pattern, d_field, ds_field): New
2521 functions, macros, and types for working with PPC instructions.
2522 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2523 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2524 ppc64_skip_trampoline_code): New functions, variables, and macros
2525 for recognizing and skipping linkage functions.
2526 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2527 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2528
2529 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2530 register offsets for both the 32- and 64-bit interfaces.
2531
2532 Actually finish the job started by my change of 2003-05-29.
2533 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2534 other #definition of this.
2535 (ppc_linux_skip_trampoline_code): Remove declaration.
2536 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2537 static.
2538 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2539 method for GDBARCH.
2540
2541 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2542 'long' on ppc64-*-linux*.
2543
2544 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2545 isn't #defined, assume the register doesn't exist: act as if
2546 tdep->ppc_mq_regnum were -1.
2547
2548 * configure.host, configure.tgt: Add entries for
2549 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2550 powerpc/linux.mt.
2551 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2552 New files.
2553
2554 * arch-utils.c (always_use_struct_convention): New function.
2555 * arch-utils.h (always_use_struct_convention): New prototype.
2556 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2557 (alpha_gdbarch_init): Register always_use_struct_convention,
2558 instead of alpha_use_struct_convention.
2559 * cris-tdep.c (cris_use_struct_convention): Delete.
2560 (cris_gdbarch_init): Register always_use_struct_convention,
2561 instead of cris_use_struct_convention.
2562 * frv-tdep.c (frv_use_struct_convention): Delete.
2563 (frv_gdbarch_init): Register always_use_struct_convention,
2564 instead of frv_use_struct_convention.
2565 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2566 (h8300_gdbarch_init): Register always_use_struct_convention,
2567 instead of h8300_use_struct_convention.
2568 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
2569 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2570 instead of mips_o32_use_struct_convention.
2571
2572 2003-06-12 Andrew Cagney <cagney@redhat.com>
2573
2574 * wince.c: Include "mips-tdep.h".
2575 * mips-tdep.h (mips_next_pc): Declare.
2576 * mcore-tdep.c: Make more local functions static.
2577 * Makefile.in (wince.o): Update dependencies.
2578
2579 2003-06-12 David Carlton <carlton@kealia.com>
2580
2581 * symtab.c (lookup_symbol_aux_minsyms): Replace
2582 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2583 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2584 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2585 SYMBOL_NATURAL_NAME.
2586
2587 2003-06-12 Andreas Schwab <schwab@suse.de>
2588
2589 * Makefile.in (tuiDisassem.o): Update dependencies.
2590
2591 2003-06-12 David Carlton <carlton@bactrian.org>
2592
2593 * symtab.h: Delete declaration of make_symbol_overload_list.
2594 Add declaration of lookup_partial_symbol.
2595 * symtab.c (remove_params): Move to cp-support.c.
2596 (overload_list_add_symbol, make_symbol_overload_list)
2597 (sym_return_val_size, sym_return_val_index): Ditto.
2598 (lookup_partial_symbol): Make extern.
2599 * cp-support.h: Add declaration of make_symbol_overload_list.
2600 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2601 symtab.h, and block.h.
2602 (remove_params): Move here from symtab.c.
2603 (overload_list_add_symbol, make_symbol_overload_list)
2604 (sym_return_val_size, sym_return_val_index): Ditto.
2605 * valops.c: Include cp-support.h.
2606 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2607 frame_h, and block_h.
2608 (valops.o): Depend on cp_support_h.
2609
2610 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
2611
2612 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2613 substitute by NUM_REGS throughout.
2614 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2615 (h8300s_register_name): New function for H8S registers.
2616 (h8300sx_register_name): Ditto for H8SX registers.
2617 (h8300_print_register): Revise register printing, avoid depending
2618 on 32 bit long.
2619 (h8300_register_byte): Only care for H8/300 registers.
2620 (h8300h_register_byte): New function for any other architecture.
2621 (h8300_register_raw_size): Remove.
2622 (h8300_register_virtual_type): Revise to return actually useful
2623 type.
2624 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2625 (h8300h_extract_struct_value_address): New function for any other
2626 architecture.
2627 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2628 set_gdbarch_register_name, set_gdbarch_register_byte,
2629 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2630 Remove calls to set_gdbarch_deprecated_register_size,
2631 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2632 set_gdbarch_deprecated_max_register_raw_size,
2633 set_gdbarch_register_virtual_size and
2634 set_gdbarch_deprecated_max_register_virtual_size entirely.
2635 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2636 set_gdbarch_long_double_bit.
2637
2638 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2639
2640 * doublest.c (convert_doublest_to_floatformat): When dealing
2641 with the implied integer bit, only alter mant_bits if we are
2642 processing a full 32 bits of mantissa.
2643
2644 2003-06-11 David Carlton <carlton@bactrian.org>
2645
2646 * dictionary.h: New.
2647 * dictionary.c: New.
2648 * block.h: Add opaque declaration for struct dictionary.
2649 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2650 'sym' members.
2651 (BLOCK_DICT): New macro.
2652 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2653 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2654 BLOCK_SHOULD_SORT.
2655 (ALL_BLOCK_SYMBOLS): Update definition.
2656 * Makefile.in (SFILES): Add dictionary.c.
2657 (dictionary_h): New.
2658 (COMMON_OBS): Add dictionary.o.
2659 (dictionary.o): New.
2660 (ada-lang.o): Depend on dictionary_h.
2661 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
2662 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
2663 (mi-cmd-stack.o): Ditto.
2664 (gdbtk-cmds.o): Update dependencies.
2665 (gdbtk-stack.o): Ditto.
2666 * ada-lang.c: Include dictionary.h.
2667 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
2668 (fill_in_ada_prototype, debug_print_block): Ditto.
2669 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
2670 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
2671 'is_sorted'.
2672 * mdebugread.c: Include dictionary.h.
2673 (struct parse_stack): Delete 'maxsyms' member.
2674 (parse_symbol): Update calls to new_block. Delete calls to
2675 shrink_block. Use dictionary methods.
2676 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
2677 Update calls to new_symtab. Don't maintain maxsyms data.
2678 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
2679 (add_symbol): Just call dict_add_symbol.
2680 (new_symtab): Delete 'maxsyms' argument.
2681 (new_symtab): Update calls to new_block.
2682 (new_block): Delete 'maxsyms' argument; add 'function' argument.
2683 (shrink_block): Delete function.
2684 (fixup_sigtramp): Update call to new_block. Add symbol via
2685 dict_add_symbol.
2686 * jv-lang.c: Include dictionary.h.
2687 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
2688 appropriately. Set class_symtab->free_func. Make sure the
2689 blockvector is big enough to hold two blocks.
2690 (add_class_symtab_symbol): Use dictionary methods.
2691 (free_class_block): New function.
2692 (type_from_class): Replace explicit iteration by
2693 ALL_BLOCK_SYMBOLS.
2694 * symtab.h (struct symtab): Replace 'free_ptr' method by
2695 'free_func'.
2696 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
2697 sort_symtab_syms.
2698 * dwarfread.c (psymtab_to_symtab_1): Delete call to
2699 sort_symtab_syms.
2700 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
2701 Include dictionary.h.
2702 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
2703 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
2704 sort_symtab_syms.
2705 * objfiles.c: Include dictionary.h.
2706 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
2707 * buildsym.c: Include dictionary.h.
2708 (finish_block): Use dictionary methods.
2709 (end_symtab): Set free_func to NULL, not free_ptr.
2710 * tracepoint.c: Include dictionary.h.
2711 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
2712 (scope_info): Ditto.
2713 * stack.c: Include dictionary.h.
2714 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
2715 (print_block_frame_labels, print_frame_arg_vars)
2716 (print_frame_args): Ditto.
2717 * symmisc.c (free_symtab_block): Use dictionary methods.
2718 (dump_symtab): Ditto.
2719 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
2720 Include dictionary.h.
2721 * symfile.h: Delete declarations of sort_block_syms,
2722 sort_symtab_syms.
2723 * symfile.c (sort_block_syms): Delete.
2724 (sort_symtab_syms): Delete.
2725 * symtab.c: Include dictionary.h.
2726 (lookup_block_symbol): Use dictionary iterators.
2727 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
2728 (search_symbols, make_symbol_completion_list): Ditto.
2729 (make_symbol_overload_list): Ditto.
2730 * valops.c (value_of_local): Use dict_empty.
2731 Include dictionary.h.
2732
2733 2003-06-11 J. Brobecker <brobecker@gnat.com>
2734
2735 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
2736
2737 2003-06-11 David Carlton <carlton@bactrian.org>
2738
2739 * block.h (BLOCK_SHOULD_SORT): Delete.
2740 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
2741 blocks.
2742 * ada-lang.c (ada_add_block_symbols): Ditto.
2743 * symfile.c (sort_block_syms): Delete.
2744 (sort_symtab_syms): Ditto.
2745 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
2746 declarations.
2747 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
2748 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
2749 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
2750 * dwarfread.c (psymtab_to_symtab_1): Ditto.
2751 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
2752 * mdebugread.c (psymtab_to_symtab_1): Ditto.
2753 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2754
2755 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2756
2757 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
2758 bits to 128.
2759
2760 2003-06-11 Andrew Cagney <cagney@redhat.com>
2761
2762 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2763 REGISTER_CONVERTIBLE.
2764 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
2765 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
2766 * gdbarch.h, gdbarch.c: Re-generate.
2767 * arch-utils.h (deprecated_register_convertible_not): Rename
2768 generic_register_convertible_not.
2769 * arch-utils.c (deprecated_register_convertible_not): Rename
2770 generic_register_convertible.
2771 (legacy_convert_register_p, legacy_register_to_value): Update.
2772 * sh-tdep.c (sh64_push_arguments): Update.
2773 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
2774 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
2775 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
2776 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
2777 * arch-utils.c (legacy_value_to_register): Update.
2778 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2779 (rs6000_register_convert_to_raw): Make parameter "from" const.
2780 * mips-tdep.c (mips_gdbarch_init): Update.
2781 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
2782 * infcmd.c (default_print_registers_info): Update.
2783 * ia64-tdep.c (ia64_gdbarch_init): Update.
2784 (ia64_register_convert_to_raw): Make parameter "from" const.
2785 * i386-tdep.c (i386_gdbarch_init): Update.
2786 (i386_register_convert_to_raw): Update.
2787
2788 2003-06-11 Andrew Cagney <cagney@redhat.com>
2789
2790 * remote-fileio.c: Include "remote-fileio.h".
2791 * Makefile.in (remote-fileio.o): Update dependencies.
2792 (remote_fileio_h): Fix typo.
2793
2794 2003-06-11 Andrew Cagney <cagney@redhat.com>
2795
2796 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
2797 (xstormy16_save_dummy_frame_tos): Make static.
2798 (_initialize_xstormy16_tdep): Add declaration.
2799 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
2800 * v850-tdep.c: Make local functions static.
2801 (_initialize_v850_tdep): Add declaration.
2802 * sparc-tdep.c: Make local functions static.
2803 (_initialize_sparc_tdep): Add declaration.
2804 * sh-tdep.c: Make local functions static.
2805 (_initialize_sh_tdep): Add declaration.
2806 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
2807 * s390-tdep.c: Make local functions static.
2808 (_initialize_s390_tdep): Add declaration.
2809 * dbxread.c (find_stab_function_addr): Make static.
2810 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
2811 * ocd.c (_initialize_remote_ocd): Add declaration.
2812 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
2813 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
2814 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
2815 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
2816 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
2817 * remote-array.c (_initialize_array): Add declaration.
2818 (_initialize_remote_monitors): Add declaration.
2819 * remote-mips.c: Make local functions static.
2820 (_initialize_remote_mips): Add declaration.
2821 * mcore-tdep.c: Make all local functions static.
2822 (_initialize_mcore_tdep): Add declaration.
2823 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
2824 * abug-rom.c (_initialize_abug_rom): Add declaration.
2825 * rom68k-rom.c (_initialize_rom68k): Add declaration.
2826 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
2827 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
2828 * remote-est.c (_initialize_est): Add declaration.
2829 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
2830 (m68hc11_call_dummy_address): Make static.
2831 * ia64-tdep.c: Make local functions static.
2832 (_initialize_ia64_tdep): Add declaration.
2833 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
2834 * monitor.c (monitor_wait_filter): Make static.
2835 (_initialize_remote_monitors): Add declaration.
2836 * remote-hms.c (_initialize_remote_hms): Add declaration.
2837 * remote-e7000.c (fetch_regs_from_dump): Make static.
2838 (expect_n): Make static.
2839 (_initialize_remote_e7000): Add declaration.
2840 * ser-e7kpc.c: Always include "defs.h".
2841 (_initialize_ser_e7000pc): Add declaration.
2842 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
2843 * cris-tdep.c: Make all but one function static.
2844 (_initialize_cris_tdep): Add declaration.
2845 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
2846 * solib.c (update_solib_list): Make static.
2847 (_initialize_solib): Add declaration.
2848 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
2849 (_initialize_avr_tdep): Add declaration.
2850 * remote-rdi.c (voiddummy): Make static.
2851 (_initialize_remote_rdi): Add declaration.
2852 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
2853 * remote-rdp.c (send_rdp): Make static.
2854 (_initialize_remote_rdp): Add declaration.
2855 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
2856
2857 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
2858
2859 * remote-fileio.c: Make ari happy.
2860
2861 2003-06-10 J. Brobecker <brobecker@gnat.com>
2862
2863 * rs6000-nat.c (child_xfer_memory): Compute the right address when
2864 fetching the trailing bytes of the buffer we are about to write.
2865
2866 2003-06-10 Andrew Cagney <cagney@redhat.com>
2867
2868 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
2869 * Makefile.in (remote-fileio.o): Update dependencies.
2870 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
2871 include <setjmp.h>, or <sys/types.h> conditional on USG.
2872 (remote_fio_jmp_buf): Delete global variable.
2873
2874 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
2875 Martin M. Hunt <hunt@redhat.com>
2876
2877 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
2878 (SFILES): Add remote-fileio.c.
2879 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
2880 dependencies for building remote.o.
2881 * remote-fileio.c: New file implementing the remote File-I/O protocol.
2882 * remote-fileio.h: New header file defining remote File-I/O interface.
2883 * remote.c (remote_write_bytes, remote_read_bytes): Remove
2884 static storage class.
2885 (remote_wait, remote_async_wait): Call remote_fileio_request() on
2886 'F' packet.
2887 (_initialize_remote): Call initialize_remote_fileio().
2888 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
2889 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2890 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2891 (captured_main): Initialize new ui_files.
2892 * ui-file.c: Add read and fgets input functions.
2893 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
2894 (null_file_read): New function.
2895 (ui_file_read): New function.
2896 (set_ui_file_read): New function.
2897 (stdio_file_read): New function.
2898 * ui-file.h: New type ui_file_read_ftype.
2899 (set_ui_file_read): Declare.
2900 (ui_file_read): Declare.
2901
2902 2003-06-09 Andrew Cagney <cagney@redhat.com>
2903
2904 * frame.h (deprecated_unwind_get_saved_register): Rename
2905 generic_unwind_get_saved_register, update comments.
2906 * mips-tdep.c (mips_get_saved_register): Update.
2907 * frame.c (deprecated_unwind_get_saved_register): Update.
2908
2909 2003-06-09 Andrew Cagney <cagney@redhat.com>
2910
2911 * vax-tdep.c (vax_frame_locals_address): Delete function.
2912 (vax_gdbarch_init): Do not set frame_locals_address.
2913 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
2914 (m68hc11_gdbarch_init): Do not set frame_locals_address.
2915 * s390-tdep.c (s390_frame_args_address): Delete function.
2916 (s390_gdbarch_init): Do not set frame_args_address or
2917 frame_locals_address.
2918 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
2919 (ns32k_gdbarch_init): Do not set frame_locals_address.
2920 * hppa-tdep.c (hppa_frame_args_address): Delete function.
2921 (hppa_frame_locals_address): Delete function.
2922 (hppa_gdbarch_init): Do not set frame_args_address, or
2923 frame_locals_address.
2924 * arm-tdep.c (arm_frame_args_address): Delete.
2925 (arm_frame_locals_address): Delete.
2926 (arm_gdbarch_init): Do not set frame_args_address, or
2927 frame_locals_address.
2928
2929 2003-06-09 Andrew Cagney <cagney@redhat.com>
2930
2931 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
2932 * gdbarch.h, gdbarch.c: Re-generate.
2933 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
2934 * arch-utils.c (frame_num_args_unknown): Delete function.
2935 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
2936 (frame_info): Use FRAME_NUM_ARGS_P.
2937 * arm-tdep.c (arm_frame_num_args): Delete function.
2938 (arm_gdbarch_init): Do not set frame_num_args.
2939 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
2940 * hppa-tdep.c (hppa_frame_num_args): Delete function.
2941 (hppa_gdbarch_init): Do not set frame_num_args.
2942 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
2943 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2944 frame_num_args to default frame_num_args_unknown.
2945 * v850-tdep.c (v850_gdbarch_init): Ditto.
2946 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2947 * sh-tdep.c (sh_gdbarch_init): Ditto.
2948 * s390-tdep.c (s390_gdbarch_init): Ditto.
2949 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2950 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2951 * mips-tdep.c (mips_gdbarch_init): Ditto.
2952 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2953 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2954 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2955 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2956 * i386-tdep.c (i386_gdbarch_init): Ditto.
2957 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2958 * frv-tdep.c (frv_gdbarch_init): Ditto.
2959 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2960 * cris-tdep.c (cris_gdbarch_init): Ditto.
2961 * avr-tdep.c (avr_gdbarch_init): Ditto.
2962 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2963
2964 2003-06-09 Andrew Cagney <cagney@redhat.com>
2965
2966 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
2967 (print_frame_args): Moved to "stack.c".
2968 * stack.c: Include "gdb_assert.h".
2969 (print_frame_nameless_args): Moved from "printcmd.c", made static.
2970 (print_frame_args): Moved from "printcmd.c".
2971 * frame.h (print_frame_args): Delete declaration.
2972 * Makefile.in (stack.o): Update dependencies.
2973
2974 2003-06-08 Andrew Cagney <cagney@redhat.com>
2975
2976 * frame.c (get_prev_frame): Remove reference to
2977 frame_args_address_correct in comments.
2978 * frame-base.c (default_frame_args_address): Delete code
2979 conditional on FRAME_ARGS_ADDRESS_CORRECT.
2980 * vax-tdep.c (vax_frame_args_address_correct): Delete.
2981 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
2982 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
2983 (vax_frame_args_address_correct): Delete declaration.
2984
2985 2003-06-08 Andrew Cagney <cagney@redhat.com>
2986
2987 * gdbarch.sh (UNWIND_SP): Add.
2988 * gdbarch.h, gdbarch.c: Re-generate.
2989 * frame.c (frame_sp_unwind): New function.
2990 (get_frame_sp): New function.
2991 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
2992 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
2993 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
2994 value.
2995 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
2996 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
2997
2998 2003-06-08 Andrew Cagney <cagney@redhat.com>
2999
3000 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
3001 REMOTE_BREAKPOINT.
3002 * remote.c: Update.
3003 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
3004 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
3005 * config/m68k/tm-sun3.h: Update.
3006 * config/m68k/tm-m68klynx.h: Update.
3007 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
3008
3009 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
3010 trad_frame". Update comments.
3011 * d10v-tdep.c (struct d10v_unwind_cache): Update.
3012 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
3013 (trad_frame_register_value, trad_frame_prev_register): Update.
3014
3015 2003-06-08 Andrew Cagney <cagney@redhat.com>
3016
3017 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
3018 from GCC's acinclude.m4.
3019 * configure.in: Check for getopt's delcaration.
3020 * aclocal.m4, config.in, configure: Re-generate.
3021 * main.c (error_init): Delete declaration.
3022 * defs.h (error_init): Declare.
3023 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
3024 (rs6000_convert_from_func_ptr_addr): Make static.
3025 (_initialize_rs6000_tdep): Add declaration.
3026 * cli/cli-cmds.c (dont_repeat): Delete declaration.
3027 (show_commands, set_verbose, show_history): Delete declaration.
3028 * top.h (set_verbose): Add declaration.
3029 (show_history, set_history, show_commands): Add declaration.
3030 (do_restore_instream_cleanup): Add declaration.
3031 * objc-lang.c (specialcmp): Make static.
3032 (print_object_command): Make static.
3033 (find_objc_msgsend): Make static.
3034 (find_objc_msgcall_submethod_helper): Make static.
3035 (find_objc_msgcall_submethod): Make static.
3036 (_initialize_objc_language): Add declaration.
3037 (find_implementation_from_class): Make static.
3038 (find_implementation): Make static.
3039 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3040 * objc-lang.h (lookup_struct_typedef): Add declaration.
3041 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3042 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3043 (do_restore_user_call_depth): Make static.
3044 (do_restore_instream_cleanup): Delete declaration.
3045 (dont_repeat): Delete declaration.
3046 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3047 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3048 * reggroups.c (_initialize_reggroup): Add declaration.
3049 * cp-support.c (_initialize_cp_support): Add declaration.
3050 * cp-abi.c (_initialize_cp_abi): Add declaration.
3051 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3052 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3053 (_initialize_gnu_v3_abi): Add declaration.
3054 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3055 (_initialize_gnu_v2_abi): Add declaration.
3056 * frame-base.c (_initialize_frame_base): Add declaration.
3057 * doublest.c (floatformat_from_length): Make static.
3058 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3059 * frame.c (create_sentinel_frame): Make static.
3060 (_initialize_frame): Add declaration.
3061 * top.c (do_catch_errors): Make static.
3062 (gdb_rl_operate_and_get_next_completion): Make static.
3063 * typeprint.c: Include "typeprint.h".
3064 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3065 (sentinel_frame_this_id): Make static.
3066 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3067 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3068 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3069 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3070 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3071 * maint.c (maintenance_print_architecture): Make static.
3072 * signals/signals.c (_initialize_signals): Add declaration.
3073 * std-regs.c (_initialize_frame_reg): Add declaration.
3074 * jv-exp.y (push_variable): ISO C definition.
3075 (push_qualified_expression_name): Ditto.
3076 * memattr.c (_initialize_mem): Add declaration.
3077 * remote.c (remote_check_watch_resources): Make static.
3078 (remote_stopped_by_watchpoint): Make static.
3079 (remote_stopped_data_address): Make static.
3080 * d10v-tdep.c (nr_dmap_regs): Make static.
3081 (a0_regnum): Make static.
3082 (d10v_frame_unwind_cache): Make static.
3083 (d10v_frame_p): Make static.
3084 * osabi.c (show_osabi): Make static.
3085 (_initialize_gdb_osabi): Add extern declaration.
3086 * gdbtypes.c (make_qualified_type): Make static.
3087 (safe_parse_type): Make static.
3088 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3089 * macrotab.c (macro_bcache_free): Make static.
3090 * interps.c (interp_set_quiet): Make static.
3091 (interpreter_exec_cmd): Make static.
3092 * stack.h (select_frame_command): New file.
3093 * stack.c: Include "stack.h".
3094 (select_frame_command_wrapper): Delete function.
3095 (select_frame_command): Make global.
3096 * infcall.c: Include "infcall.h".
3097 * linespec.c: Include "linespec.h".
3098 * symfile.c (sections_overlap): Make static.
3099 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3100 * charset.c (_initialize_charset): Add missing prototype.
3101 * regcache.c (init_legacy_regcache_descr): Make static.
3102 (do_regcache_xfree): Make static.
3103 (regcache_xfer_part): Make static.
3104 (_initialize_regcache): Add missing prototype.
3105 * breakpoint.c (parse_breakpoint_sals): Make static.
3106 (breakpoint_sals_to_pc): Make static.
3107 * interps.h (clear_interpreter_hooks): ISO C declaration.
3108 * Makefile.in (stack_h): Define.
3109 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3110 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3111
3112 2003-06-08 Andrew Cagney <cagney@redhat.com>
3113
3114 * Makefile.in (d10v-tdep.o): Update dependencies.
3115 (SFILES): Add trad-frame.c.
3116 (trad_frame_h): Define.
3117 (COMMON_OBS): Add trad-frame.o.
3118 (trad-frame.o): Specify dependencies.
3119 * d10v-tdep.c: Include "trad-frame.h".
3120 (saved_regs_unwinder): Delete function.
3121 (d10v_frame_prev_register): Use trad_frame_prev_register.
3122 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3123 trad_frame", delete "regs" and "prev_sp".
3124 (prologue_find_regs): Use trad-frame.
3125 * trad-frame.h, trad-frame.c: New files.
3126
3127 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3128
3129 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3130
3131 2003-06-07 Adam Fedor <fedor@gnu.org>
3132
3133 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3134 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3135 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3136 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3137 resolve_msgsend_super, resolve_msgsend_super_stret):
3138 Use it.
3139
3140 2003-06-07 Andrew Cagney <cagney@redhat.com>
3141
3142 * symfile.h: Re-indent, clean up comments.
3143
3144 2003-06-07 Andrew Cagney <cagney@redhat.com>
3145
3146 * inferior.h (deprecated_write_sp): Replace
3147 generic_target_write_sp.
3148 * regcache.c (deprecated_write_sp): Replace
3149 generic_target_write_sp.
3150 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3151 * vax-tdep.c (vax_gdbarch_init): Update.
3152 * v850-tdep.c (v850_gdbarch_init): Update.
3153 * sparc-tdep.c (sparc_gdbarch_init): Update.
3154 * sh-tdep.c (sh_gdbarch_init): Update.
3155 * s390-tdep.c (s390_gdbarch_init): Update.
3156 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3157 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3158 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3159 * mcore-tdep.c (mcore_gdbarch_init): Update.
3160 * m68k-tdep.c (m68k_gdbarch_init): Update.
3161 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3162 * ia64-tdep.c (ia64_gdbarch_init): Update.
3163 * h8300-tdep.c (h8300_gdbarch_init): Update.
3164 * frv-tdep.c (frv_gdbarch_init): Update.
3165 * cris-tdep.c (cris_gdbarch_init): Update.
3166 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3167
3168 2003-06-07 Andrew Cagney <cagney@redhat.com>
3169
3170 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3171 Assert that PC_REGNUM is valid.
3172 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3173
3174 2003-06-07 Andrew Cagney <cagney@redhat.com>
3175
3176 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3177 * gdbarch.h, gdbarch.c: Regenerate.
3178 * mn10300-tdep.c: Include "gdb_assert.h".
3179 (mn10300_read_fp): New function.
3180 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3181 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3182 * ia64-tdep.c: Include "gdb_assert.h".
3183 (ia64_read_fp): New function.
3184 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3185 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3186 * regcache.c (generic_target_read_sp): Delete function.
3187 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3188 * inferior.h (generic_target_read_sp): Delete declaration.
3189 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3190 generic_target_read_sp.
3191 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3192 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3193 * sh-tdep.c (sh_gdbarch_init): Ditto.
3194 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3195 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3196
3197 2003-06-07 Andrew Cagney <cagney@redhat.com>
3198
3199 * gdbarch.sh: Comment each field of startup_gdbarch.
3200 * gdbarch.h, gdbarch.c: Re-generate.
3201
3202 2003-06-07 Andrew Cagney <cagney@redhat.com>
3203
3204 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3205 * gdbarch.h, gdbarch.c: Re-generate.
3206 * regcache.c: Update comments on read_pc et.al.
3207 (generic_target_read_pc): Delete function.
3208 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3209 * inferior.h (generic_target_read_pc): Delete declaration.
3210 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3211 generic_target_read_pc.
3212 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3213 * sh-tdep.c (sh_gdbarch_init): Ditto.
3214 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3215 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3216
3217 2003-06-07 Andrew Cagney <cagney@redhat.com>
3218
3219 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3220 "index" with "special_local_sect". Use strcmp instead of STREQ.
3221 Append period to coments.
3222
3223 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3224
3225 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3226 (elfstab_offset_sections): Likewise.
3227 * gdb-stabs.h (stab_section_info): Likewise.
3228 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3229 * objfiles.c (objfile_relocate): Likewise.
3230 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3231 * remote.c (get_offsets): Likewise.
3232 (remote_cisco_objfile_relocate): Likewise.
3233 * somread.c (som_symfile_offsets): Likewise.
3234 * symfile.c (alloc_section_addr_info): New function.
3235 (build_section_addr_info_from_section_tab): Use it.
3236 (free_section_addr_info): Adjust.
3237 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3238 (syms_from_objfile): Allocate local_addr dynamically.
3239 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3240 dynamically.
3241 (add_symbol_file_command): Allocate sect_opts dynamically.
3242 (reread_symbols): Avoid use of SECT_OFF_MAX.
3243 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3244 (alloc_section_addr_info): Declare it.
3245 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3246 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3247 dynamically.
3248 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3249
3250 2003-06-06 Andrew Cagney <cagney@redhat.com>
3251
3252 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3253 (d10v_frame_unwind_cache): Do not set "return_pc".
3254
3255 2003-06-06 Michael Snyder <msnyder@redhat.com>
3256
3257 * h8300-tdep.c: Make tidy (long lines).
3258
3259 2003-06-06 Michal Ludvig <mludvig@suse.cz>
3260
3261 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3262 to regcache_collect().
3263
3264 2003-06-05 J. Brobecker <brobecker@gnat.com>
3265
3266 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3267 pc_in_sigtramp multiarch method.
3268 (hppa_hpux_som_init_abi): Use it.
3269 (hppa_hpux_elf_init_abi): Likewise.
3270 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3271 macro has been multiarched.
3272 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3273 macro here, as hppa64 isn't multiarched yet.
3274
3275 2003-06-05 Andrew Cagney <cagney@redhat.com>
3276
3277 * Makefile.in (value_h): Add $(frame_h).
3278 * value.h: Include "frame.h".
3279 (struct value): Replace "frame_addr" with "frame_id".
3280 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3281 * values.c (allocate_value): Use VALUE_FRAME_ID.
3282 (value_copy): Use VALUE_FRAME_ID.
3283 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3284 * valops.c (value_assign): Update. Use frame_find_by_id.
3285
3286 2003-06-05 Michal Ludvig <mludvig@suse.cz>
3287
3288 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3289 in each pass.
3290
3291 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3292
3293 * thread-db.c (check_event): For create/death event breakpoints,
3294 loop through all messages to ensure that we read the message
3295 corresponding to the breakpoint we are at.
3296
3297 2003-06-04 Michael Snyder <msnyder@redhat.com>
3298
3299 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3300
3301 2003-06-04 Mark Kettenis <kettenis@gnu.org>
3302
3303 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3304 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3305 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3306 when handling .eh_frame sections.
3307
3308 2003-06-04 J. Brobecker <brobecker@gnat.com>
3309
3310 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3311 prepare_to_proceed procedure instead of the hppa-specific one.
3312 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3313
3314 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
3315
3316 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3317 * config.in: Regenerated.
3318 * configure.in: Add test for syscall function and check for
3319 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3320 * configure: Regenerated.
3321 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3322 <sys/syscall.h>.
3323 (kill_lwp): New function that uses tkill syscall or
3324 uses kill, depending on whether threading model is nptl or not.
3325 All callers of kill() changed to use kill_lwp().
3326 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3327 see if all threads have already exited in the nptl model.
3328 (stop_and_resume_callback): New callback function used by the
3329 lin_lwp_wait thread exit handling code.
3330 (stop_wait_callback): Check for threads already having exited and
3331 delete such threads fromt the lwp list when discovered.
3332 (stop_callback): Don't assert retcode of kill call.
3333
3334 Roland McGrath <roland@redhat.com>
3335 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3336 nptl libthread_db.
3337
3338 2003-06-03 Richard Henderson <rth@redhat.com>
3339
3340 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3341 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3342 (alpha_sigtramp_frame_prev_register): Likewise.
3343 (alpha_heuristic_frame_prev_register): Likewise.
3344 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3345
3346 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3347 alpha-specific register id names.
3348 (alpha_mdebug_frame_unwind_cache): Likewise.
3349 (alpha_mdebug_frame_prev_register): Likewise.
3350
3351 2003-06-03 Richard Henderson <rth@redhat.com>
3352
3353 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3354 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3355 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3356 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3357 unwind routines.
3358 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3359 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3360 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3361
3362 * alpha-linux-tdep.c: Remove unnecessary includes.
3363 * Makefile.in (alpha-linux-tdep.o): Update.
3364
3365 2003-06-03 Richard Henderson <rth@redhat.com>
3366
3367 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3368 (alphabsd_fill_fpreg): Likewise.
3369
3370 2003-06-03 J. Brobecker <brobecker@gnat.com>
3371
3372 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3373 references to struct frame_info fields by calls to the equivalent
3374 accessors. Necessary now that frame_info is opaque.
3375
3376 2003-06-03 J. Brobecker <brobecker@gnat.com>
3377
3378 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3379 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3380 structure, field no longer exists.
3381
3382 2003-06-03 J. Brobecker <brobecker@gnat.com>
3383
3384 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3385 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3386
3387 2003-06-03 J. Brobecker <brobecker@gnat.com>
3388
3389 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3390 references to struct frame_info fields by calls to the equivalent
3391 accessors. Necessary now that frame_info is opaque.
3392
3393 2003-06-03 J. Brobecker <brobecker@gnat.com>
3394
3395 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3396 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3397 structure, field no longer exists.
3398
3399 2003-06-03 Theodore A. Roth <troth@openavr.org>
3400
3401 * remote.c (init_remote_state): Compute sizeof_g_packet by
3402 accumulation of the size of all registers instead of blindly using
3403 DEPRECATED_REGISTER_BYTES.
3404
3405 2003-06-03 Michael Snyder <msnyder@redhat.com>
3406
3407 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3408 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3409 for h8300sx.
3410
3411 2003-06-03 J. Brobecker <brobecker@gnat.com>
3412
3413 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3414 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3415
3416 2003-06-03 Andrew Cagney <cagney@redhat.com>
3417
3418 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3419 (sparc_convert_to_raw): Delete function.
3420 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3421 register_convert_to_virtual.
3422
3423 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3424
3425 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3426 layer if not dealing with a statically-linked threaded program.
3427
3428 2003-06-03 Kris Warkentin <kewarken@qnx.com>
3429
3430 * solib.c (solib_open): Update comment to reflect actual search order.
3431
3432 2003-06-03 Andrew Cagney <cagney@redhat.com>
3433
3434 * frame.c (get_frame_memory_signed): New function.
3435 (get_frame_memory, get_frame_memory_unsigned): New function.
3436 (get_frame_arch): New function.
3437 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3438 (get_frame_memory, get_frame_unsigned_memory): Declare.
3439 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3440 get_frame_memory_unsigned and get_frame_arch.
3441 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3442
3443 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3444
3445 * MAINTAINERS (write after approval): Add myself.
3446
3447 2003-06-03 Jim Blandy <jimb@redhat.com>
3448
3449 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3450 elements of gregset_t are 64 bits each, but access registers
3451 are still 32 bits, so they're packed two per gregset_t
3452 element. Unpack/pack them properly.
3453
3454 2003-06-02 David Carlton <carlton@bactrian.org>
3455
3456 * linespec.c (find_methods): Break out code into
3457 add_matching_methods and add_constructors.
3458 (add_matching_methods): New.
3459 (add_constructors): Ditto.
3460
3461 2003-06-02 Andrew Cagney <cagney@redhat.com>
3462
3463 * sparc-tdep.c (sparc_print_registers): Delete call to
3464 REGISTER_CONVERTIBLE.
3465 (sparc_gdbarch_init): Do not set register_convertible.
3466 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3467 * frv-tdep.c (frv_gdbarch_init): Ditto.
3468 * cris-tdep.c (cris_gdbarch_init): Ditto.
3469
3470 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
3471
3472 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3473 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3474 (syms_from_objfile): Ditto.
3475
3476 2003-06-03 Andreas Schwab <schwab@suse.de>
3477
3478 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3479 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3480
3481 2003-06-02 Richard Henderson <rth@redhat.com>
3482
3483 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3484 a member of all_reggroup.
3485
3486 2003-06-02 Richard Henderson <rth@redhat.com>
3487
3488 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3489 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3490 (alpha_lds, alpha_sts): New.
3491 (alpha_convert_register_p): Change from _register_convertible.
3492 (alpha_register_to_value): Change from _convert_to_virtual;
3493 restructure and fail for type sizes other than 4 or 8.
3494 (alpha_value_to_register): Similarly.
3495 (alpha_extract_return_value): Use alpha_sts.
3496 (alpha_store_return_value): Use alpha_lds.
3497 (alpha_gdbarch_init): Update hooks.
3498
3499 2003-06-02 Richard Henderson <rth@redhat.com>
3500
3501 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3502 regnum identifiers.
3503 (alpha_sigtramp_register_address): Likewise.
3504
3505 2003-06-02 Richard Henderson <rth@redhat.com>
3506
3507 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3508 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3509 * alpha-tdep.h: Declare them.
3510
3511 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3512 Remove zerobuf. Don't error on UNIQUE.
3513 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3514 (ALPHA_REGSET_UNIQUE): Provide default.
3515 (supply_gregset): Use alpha_supply_int_regs.
3516 (fill_gregset): Use alpha_fill_int_regs.
3517 (supply_fpregset): Use alpha_supply_fp_regs.
3518 (fill_fpregset): Use alpha_fill_fp_regs.
3519 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3520 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3521 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3522 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3523 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3524 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3525
3526 2003-06-02 Richard Henderson <rth@redhat.com>
3527
3528 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3529
3530 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3531 (alpha_store_return_value): Likewise.
3532
3533 2003-06-02 David Carlton <carlton@math.stanford.edu>
3534
3535 * block.c (contained_in): Add 'const' to arguments.
3536 (block_function): Ditto.
3537 * block.h: Update declarations for block_function and
3538 contained_in.
3539
3540 2003-06-02 David Carlton <carlton@math.stanford.edu>
3541
3542 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3543 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3544 * p-valprint.c (pascal_val_print): Ditto.
3545 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3546
3547 2003-06-02 Richard Henderson <rth@redhat.com>
3548
3549 * alpha-tdep.c (alpha_push_dummy_call): Use
3550 builtin_type_ieee_double_little instead of builtin_type_double.
3551
3552 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
3553 sign-extension of 32-bit values.
3554 (alpha_store_return_value): Similarly.
3555
3556 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3557 (alpha_extract_return_value): Likewise.
3558 (alpha_store_return_value): Likewise.
3559
3560 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3561 (alpha_store_return_value): Error on IEEE Quad floats.
3562
3563 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3564 (alpha_extract_struct_value_address): Likewise.
3565 (alpha_store_return_value): Likewise.
3566 (alpha_store_struct_return): Remove.
3567 (alpha_gdbarch_init): Update hook registration to match.
3568
3569 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3570 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3571 macros where appropriate.
3572 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3573 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
3574
3575 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3576 for SP, GP; void_func_ptr for PC; non-language-specific types
3577 for all others.
3578 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
3579
3580 2003-06-02 Richard Henderson <rth@redhat.com>
3581
3582 * top.h (lim_at_start): Declare.
3583 * main.c (captured_main): Set it.
3584 * top.c (lim_at_start): Define.
3585 (command_loop): Use it instead of &environ.
3586 * event-top.c (command_handler): Likewise.
3587
3588 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3589
3590 * mipsnbsd-tdep.c: Update copyright years.
3591 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3592
3593 2003-06-01 Richard Henderson <rth@redhat.com>
3594
3595 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3596 (alpha-linux-tdep.o): Update dependencies.
3597 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3598 * alpha-mdebug-tdep.c: Remove unneeded includes.
3599
3600 2003-06-01 Richard Henderson <rth@redhat.com>
3601
3602 * alpha-tdep.c (alpha_register_reggroup_p): New.
3603 (alpha_gdbarch_init): Register it.
3604
3605 2003-06-02 Andrew Cagney <cagney@redhat.com>
3606
3607 * dwarfread.c: Eliminate "register"
3608 (decode_die_type): Eliminate assignment within "if".
3609 (struct_type, decode_array_element_type): Ditto.
3610 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3611 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3612 (decode_modified_type, completedieinfo): Ditto.
3613 * block.c: Eliminate "register".
3614 (blockvector_for_pc_sect): Eliminate assignment within "if".
3615 * cp-support.h (struct symbol): Opaque declaration.
3616 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3617
3618 2003-06-01 Richard Henderson <rth@redhat.com>
3619
3620 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3621 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
3622
3623 2003-06-01 Adam Fedor <fedor@gnu.org>
3624
3625 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3626 * gdbarch.[ch]: Regenerate.
3627 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3628 (hppa_gdbarch_init): Set it in the gdbarch vector.
3629 * i386-tdep.c (i386_fetch_pointer_argument): New
3630 (i386_gdbarch_init): Set it into gdbarch.
3631 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3632 (rs6000_gdbarch_init): Set it in gdbarch.
3633 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3634 (sparc_gdbarch_init): Set it in gdbarch.
3635
3636 2003-06-01 Andrew Cagney <cagney@redhat.com>
3637
3638 * defs.h (extract_address): Delete declaration.
3639 * findvar.c (extract_address): Delete function.
3640 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3641 extract_address with the inline equivalent,
3642 extract_unsigned_integer.
3643 (xstormy16_extract_struct_value_address): Ditto.
3644 (xstormy16_pointer_to_address): Ditto.
3645 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3646 * v850-tdep.c (v850_push_arguments): Ditto.
3647 (v850_extract_return_value): Ditto.
3648 (v850_extract_struct_value_address): Ditto.
3649 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3650 (sparcnbsd_get_longjmp_target_64): Ditto.
3651 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3652 (get_longjmp_target): Ditto.
3653 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3654 (sh64_extract_struct_value_address): Ditto.
3655 (sh_push_arguments): Ditto.
3656 (sh64_push_arguments): Ditto.
3657 * remote-vxsparc.c (vx_read_register): Ditto.
3658 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
3659 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
3660 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
3661 * mipsv4-nat.c (get_longjmp_target): Ditto.
3662 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
3663 * mips-nat.c (get_longjmp_target): Ditto.
3664 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
3665 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
3666 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
3667 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
3668 * irix5-nat.c (get_longjmp_target): Ditto.
3669 * irix4-nat.c (get_longjmp_target): Ditto.
3670 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
3671 (ia64_push_arguments): Ditto.
3672 * hpux-thread.c (hpux_thread_store_registers): Ditto.
3673 * h8300-tdep.c (h8300_push_arguments): Ditto.
3674 (h8300_store_return_value): Ditto.
3675 (h8300_extract_struct_value_address): Ditto.
3676 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
3677 (frv_push_arguments): Ditto.
3678 * avr-tdep.c (avr_pointer_to_address): Ditto.
3679 (avr_push_arguments): Ditto.
3680 * arm-tdep.c (arm_push_dummy_call): Ditto.
3681 (arm_get_longjmp_target): Ditto.
3682 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3683 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
3684 (alpha_get_longjmp_target): Ditto.
3685
3686 * solib-irix.c (extract_mips_address): Inline extract_address,
3687 replacing it with extract_signed_integer.
3688 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3689 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
3690 (first_link_map_member, open_symbol_file_object): Ditto.
3691 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
3692 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3693 (LM_NEXT, LM_NAME): Ditto.
3694
3695 2003-06-01 Richard Henderson <rth@redhat.com>
3696
3697 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
3698 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
3699 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
3700 (alpha_cannot_store_register): Likewise.
3701 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
3702 * alpha-nat.c (supply_gregset): Likewise.
3703 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
3704
3705 2003-06-01 Andrew Cagney <cagney@redhat.com>
3706
3707 * infcall.c (call_function_by_hand): Update comment on
3708 DEPRECATED_DUMMY_WRITE_SP.
3709
3710 * mips-tdep.c (mips_gdbarch_init): Do not set
3711 deprecated_dummy_write_sp.
3712 (mips_eabi_push_dummy_call): Set the SP register.
3713 (mips_o64_push_dummy_call): Set the SP register.
3714 (mips_o32_push_dummy_call): Set the SP register.
3715 (mips_n32n64_push_dummy_call): Set the SP register.
3716
3717 2003-06-01 Richard Henderson <rth@redhat.com>
3718
3719 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
3720 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
3721 (supply_gregset): Likewise.
3722 * alpha-tdep.c (alpha_store_return_value): Likewise.
3723 (alpha_get_longjmp_target): Likewise.
3724 (alpha_register_name): Constify array.
3725 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
3726 deprecated_register_size, deprecated_register_bytes,
3727 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
3728 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
3729 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
3730
3731 2003-06-01 Richard Henderson <rth@redhat.com>
3732
3733 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
3734 from arg_reg_buffer to regcache to avoid double conversion.
3735
3736 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3737
3738 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
3739 SP_REGNUM.
3740 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
3741 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
3742
3743 2003-06-01 Richard Henderson <rth@redhat.com>
3744
3745 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
3746 (decode_frame_entry): Set it. Skip FDE augmentation.
3747
3748 2003-06-01 Richard Henderson <rth@redhat.com>
3749
3750 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
3751 not overlapping PC_REGNUM.
3752
3753 2003-06-01 Richard Henderson <rth@redhat.com>
3754
3755 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
3756 alpha_push_arguments. Don't dump argument register data to
3757 the target stack. Fix float and 128-bit long double semantics.
3758 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
3759 (alpha_fix_call_dummy): Remove.
3760 (alpha_call_dummy_words): Remove.
3761 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
3762
3763 2003-06-01 Richard Henderson <rth@redhat.com>
3764
3765 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
3766
3767 2003-06-01 Andrew Cagney <cagney@redhat.com>
3768
3769 * mips-tdep.c (is_mips16_addr): New function.
3770 (make_mips16_addr, unmake_mips16_addr): New functions.
3771 (pc_is_mips16, mips_fetch_instruction): Use.
3772 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
3773 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
3774 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
3775 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
3776 TARGET_MIPS.
3777 * config/mips/tm-mips.h: Update copyright.
3778 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
3779 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
3780 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
3781 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
3782 (TM_PRINT_INSN_MACH): Delete.
3783 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
3784
3785 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
3786 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
3787 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
3788 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
3789 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
3790 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
3791 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
3792 mips*-*-riscos* and mips*-*-sysv* onto mips.
3793 * config/mips/mips64.mt: New file.
3794 * config/mips/mips.mt: New file.
3795 * config/mips/littlemips.mt: Delete file.
3796 * config/mips/decstation.mt: Delete file.
3797 * config/mips/vr4300el.mt: Delete file.
3798 * config/mips/vr5000el.mt: Delete file.
3799 * config/mips/vr5000.mt: Delete file.
3800 * config/mips/vr4100.mt: Delete file.
3801 * config/mips/vr4xxxel.mt: Delete file.
3802 * config/mips/vr4300.mt: Delete file.
3803 * config/mips/vr4xxx.mt: Delete file.
3804 * config/mips/bigmips.mt: Delete file.
3805 * config/mips/bigmips64.mt: Delete file.
3806 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
3807 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
3808 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
3809 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
3810 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
3811 "tm-bigmips.h".
3812 * config/mips/tm-irix3.h: Ditto.
3813 * config/mips/tm-mipsv4.h: Ditto.
3814 * config/mips/tm-embed.h: Ditto.
3815 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
3816 "tm-bigmips64.h".
3817 * config/mips/tm-vr5000el.h: Delete file.
3818 * config/mips/tm-tx39l.h: Delete file.
3819 * config/mips/tm-vr4300el.h: Delete file.
3820 * config/mips/tm-vr4xxxel.h: Delete file.
3821 * config/mips/tm-vr4300.h: Delete file.
3822 * config/mips/tm-vr4100.h: Delete file.
3823 * config/mips/tm-vr4xxx.h: Delete file.
3824 * config/mips/tm-vr5000.h: Delete file.
3825 * config/mips/tm-embedl64.h: Delete file.
3826 * config/mips/tm-embedl.h: Delete file.
3827 * config/mips/tm-embed64.h: Delete file.
3828 * config/mips/tm-bigmips64.h: Delete file.
3829 * config/mips/tm-bigmips.h: Delete file.
3830
3831 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3832
3833 Fix gdb/1216.
3834 * shnbsd-nat.c: Include "sh-tdep.h".
3835
3836 From Richard Henderson <rth@redhat.com>:
3837 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
3838
3839 2003-05-31 Andrew Cagney <cagney@redhat.com>
3840
3841 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
3842 forward declaration.
3843 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3844 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3845 (mips_find_saved_regs): Use set_reg_offset.
3846 (mips_frame_init_saved_regs): Delete function.
3847 (mips_pop_frame): Call mips_find_saved_regs instead of
3848 DEPRECATED_FRAME_INIT_SAVED_REGS.
3849
3850 2003-05-31 Andrew Cagney <cagney@redhat.com>
3851
3852 * mips-tdep.c (mips_gdbarch_init): Do not set
3853 deprecated_max_register_raw_size, register_virtual_size, and
3854 deprecated_max_register_virtual_size.
3855
3856 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3857
3858 * i386-tdep.c: Include "dwarf2-frame.h".
3859 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
3860 * Makefile.in (i386-tdep.o): Update dependencies.
3861
3862 * dwarf2-frame.c, dwarf2-frame.h: New files.
3863 * Makefile.in (SFILES): Add dwarf2-frame.c.
3864 (dwarf2_frame_h): Define.
3865 (COMMON_OBS): Add dwarf2-frame.o.
3866 (dwarf2-frame.o): Add dependencies.
3867
3868 2003-05-31 Andreas Jaeger <aj@suse.de>
3869
3870 * x86-64-linux-nat.c: Fix comment.
3871
3872 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3873
3874 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
3875 function signature.
3876
3877 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
3878 have a sigcontext_addr handler.
3879 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
3880 sigcontext_addr handler.
3881
3882 2003-05-31 Andrew Cagney <cagney@redhat.com>
3883
3884 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
3885 (print_fp_register_row): Replace do_fp_register_row.
3886 (mips_print_fp_register): Add "file" and "frame" parameters.
3887 (mips_print_register): Add "file" and "frame" parameters.
3888 (mips_print_registers_info): Replace mips_do_registers_info.
3889 (mips_gdbarch_init): Set print_registers_info instead of
3890 deprecated_do_registers_info.
3891 (mips_read_fp_register_single): Add "frame" parameter.
3892 (mips_read_fp_register_double): Add "frame" parameter.
3893
3894 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3895
3896 * i386-tdep.c (i386_register_name): Check for MMX registers first.
3897 Fixes a bug where GDB would print the wrong register names for
3898 targets without SSE.
3899
3900 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
3901 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3902 registers.
3903
3904 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
3905 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
3906 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3907 TDEP->sc_sp_offset.
3908
3909 From Michal Ludvig <mludvig@suse.cz>:
3910 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
3911 and `sc_num_regs'.
3912 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3913 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3914 I386_ST0_REGNUM): Move here from...
3915 * i386-tdep.c: ... here.
3916 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
3917 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3918 registers if possible.
3919 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
3920 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
3921 Remove variables.
3922 (i386bsd_sc_reg_offset): New variable.
3923 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
3924 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3925 TDEP->sc_sp_offset.
3926 (i386fbsd_sc_reg_offset): New variable.
3927 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
3928 TDEP->sc_num_regs.
3929 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
3930 variables.
3931 (i386fbsd4_sc_reg_offset): New variable.
3932 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
3933 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3934 TDEP->sc_sp_offset.
3935 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
3936 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
3937 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
3938 Remove variables.
3939 (i386nbsd_sc_reg_offset): New variable.
3940 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
3941 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3942 TDEP->sc_sp_offset.
3943 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
3944 Remove variables.
3945 (i386obsd_sc_reg_offset): New variable.
3946 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
3947 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3948 TDEP->sc_sp_offset.
3949 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
3950 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
3951 for frame pointer offset in `struct sigcontext'.
3952
3953 2003-05-31 Andrew Cagney <cagney@redhat.com>
3954
3955 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
3956 architecture methods call_dummy_words, sizeof_call_dummy_words,
3957 push_return_address, store_struct_return, and fix_call_dummy. Set
3958 push_dummy_call instead of deprecated_push_arguments.
3959 (mips_store_struct_return): Delete function.
3960 (mips_fix_call_dummy): Delete function.
3961 (mips_push_return_address): Delete function.
3962 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
3963 RA_REGNUM and T9_REGNUM.
3964 (mips_n32n64_push_dummy_call): Ditto for
3965 mips_n32n64_push_arguments.
3966 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
3967 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
3968
3969 2003-05-31 Andrew Cagney <cagney@redhat.com>
3970
3971 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
3972 "dummy_addr" to "bp_addr".
3973 * infcall.c (call_function_by_hand): Pass "funaddr" to
3974 gdbarch_push_dummy_call.
3975 * gdbarch.h, gdbarch.c: Re-generate.
3976 * i386-tdep.c (i386_push_dummy_call): Update.
3977 * arm-tdep.c (arm_push_dummy_call): Update.
3978 * d10v-tdep.c (d10v_push_dummy_call): Update.
3979
3980 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3981
3982 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
3983 variable declarations.
3984 (x86_64_register_number, x86_64_register_name): Remove prototypes.
3985 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
3986 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
3987 x86_64_init_frame_pc, x86_64_init_frame_pc,
3988 x86_64_function_has_prologue): Remove prototypes.
3989 (X86_64_NUM_GREGS): New define.
3990 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
3991 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
3992 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
3993 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
3994 XMM1_REGNUM): Remove defines.
3995 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
3996 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
3997 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
3998 X86_64_XMM1_REGNUM): New defines.
3999 (struct x86_64_register_info): Renamed from `struct
4000 register_info'. Remove `size' member.
4001 (x86_64_register_info_table): Remove variable.
4002 (x86_64_register_info): New variable.
4003 (X86_64_NUM_REGS): New define.
4004 (X86_64_NUM_GREGS): Remove define.
4005 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
4006 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
4007 Remove variables.
4008 (x86_54_dwarf2_reg_to_regnum): Remove function.
4009 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
4010 (x86_64_dwarf_reg_to_regnum): New function.
4011 (x86_64_register_name): Rewrite.
4012 (x86_64_register_raw_size): Remove function.
4013 (x86_64_register_byte_table): Remove variable.
4014 (x86_64_register_byte): Remove function.
4015 (x86_64_register_virtual_type): Remove function.
4016 (x86_64_register_type): New function.
4017 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
4018 x86_64_register_convert_to_raw): Remove functions.
4019 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
4020 (x86_64_use_struct_convention): Make static. Adjust for renamed
4021 defines.
4022 (x86_64_frame_init_saved_regs): Remove function.
4023 (x86_64_push_arguments): Make static. Change to accept a regcache
4024 as argument.
4025 (x86_64_store_return_value, x86_64_extract_return_value): Make
4026 static. Rewrite based on i386 counterparts.
4027 (x86_64_push_dummy_call): New function.
4028 (X86_64_NUM_SAVED_REGS): New define.
4029 (x86_64_register_number): Remove function.
4030 (x86_64_store_struct_return): Remove function.
4031 (x86_64_frameless_function_invocation,
4032 x86_64_function_has_prologue): Remove functions.
4033 (PROLOG_BUFSIZE): Remove define.
4034 (struct x86_64_frame_cache): New structure.
4035 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4036 x86_64_frame_cache, x86_64_frame_this_id,
4037 x86_64_frame_prev_register, x86_64_frame_p,
4038 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4039 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4040 functions.
4041 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4042 variables.
4043 (x86_64_skip_prologue): Rewrite in terms of
4044 x86_64_analyze_prologue.
4045 (x86_64_frame_base_address): New function.
4046 (x86_64_frame_base): New variable.
4047 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4048 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4049 set deprecated_fp_regnum, deprecated_register_size,
4050 deprecated_register_bytes, register_raw_size, register_byte,
4051 register_virtual_type, register_convertiable,
4052 register_convert_to_virtual, convert_to_raw,
4053 deprecated_get_saved_register, deprecated_target_read_fp,
4054 deprecated_push_arguments, deprecated_push_return_address,
4055 deprecated_pop_frame, deprecated_store_struct_return,
4056 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4057 frameless_function_invocation, deprecated_frame_saved_pc,
4058 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4059 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4060 deprecated_init_frame_pc and virtual_frame_pointer. Call
4061 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4062 and x86_64_frame_p. Call frame_base_set_default to register
4063 x86_64_frame_base.
4064 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4065 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4066 (_initialize_x86_64_tdep): Remove function.
4067 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4068 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4069 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4070 define.
4071 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4072 (x86_64_linux_sigcontext_addr): Rewrite.
4073 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4074 x86_64_linux_frame_saved_pc): Remove functions.
4075 (x86_64_linux_pc_in_sigtramp): Renamed from
4076 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4077 trampoline.
4078 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4079 Remove_functions.
4080 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4081 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4082 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4083 (x86_64_regmap): Rename to regmap.
4084 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4085 x86_64_num_gregs.
4086 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4087 x86_64_regmap.
4088 (x86_64_fxsave_offset): Remove function.
4089 (supply_fpregset): Simply call x86_64_supply_fxsave.
4090 (fill_fpregset): Simply call x86_64_fill_fxsave.
4091 (fetch_inferior_registers, store_inferior_registers): Avoid
4092 asignment in if-statement.
4093 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4094 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4095 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4096 (fetch_core_registers): Remove function.
4097 (linux_elf_core_fns): Remove.
4098 (offsetoff): Don't define.
4099 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4100 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4101 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4102 add core-regset.o.
4103 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4104 protection against multiple includes instead of NM_X86_64_h. Add
4105 various comments. Include "config/nm-linux.h". Don't include
4106 <signal.h>.
4107 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4108 GET_THREAD_SIGNALS): Remove defines.
4109 (x86_64_register_u_addr, kernel_u_size,
4110 lin_thread_get_thread_signals): Remove prototypes.
4111 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4112 [HAVE_LINK_H]: Don't include "solib.h".
4113 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4114 * config/i386/tm-x86-64linux.h: Fix comments.
4115 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4116 x86-64-tdep.o): Update dependencies.
4117
4118 2003-05-30 Andrew Cagney <cagney@redhat.com>
4119
4120 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4121 Change parameter type to a "struct regcache *".
4122
4123 * gdbarch.sh: Regardless of the multi-arch level, always define
4124 the macro when not already defined.
4125 * gdbarch.h, gdbarch.c: Re-generate.
4126
4127 2003-05-30 Richard Henderson <rth@redhat.com>
4128
4129 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4130 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4131 (alpha_mdebug_frame_this_id): Likewise.
4132 (alpha_mdebug_frame_prev_register): Likewise.
4133 (alpha_mdebug_frame_base_address): Likewise.
4134 (alpha_mdebug_frame_locals_address): Likewise.
4135 (alpha_mdebug_frame_args_address): Likewise.
4136 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4137 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4138 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4139 loop increment.
4140 (alpha_heuristic_frame_this_id): Make static.
4141 (alpha_heuristic_frame_prev_register): Likewise.
4142 (alpha_heuristic_frame_base_address): Likewise.
4143 * alpha-tdep.h: Update.
4144
4145 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4146
4147 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4148 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4149 defenitions.
4150 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4151 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4152 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4153 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4154 I386_ST0_REGNUM): New defines.
4155 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4156 codestream_get): Remove define.
4157 (codestream_next_addr, condestream_addr, condestream_buf,
4158 codestream_off, codestream_cnt): Remove variables.
4159 (codestream_fill, codestream_seek, codestream_read): Remove
4160 functions.
4161 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4162 functionality.
4163 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4164 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4165 i386_frame_saved_pc, i386_saved_pc_after_call,
4166 i386_frame_num_args, i386_frame_init_saved_regs,
4167 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4168 i386_push_arguments): Remove functions.
4169 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4170 functionality. Use i386_analyze_prologue instead of
4171 i386_get_frame_setup.
4172 (I386_NUM_SAVED_REGS): New define.
4173 (struct i386_frame_cache): New structure.
4174 (i386_alloc_frame_cache, i386_analyze_struct_return,
4175 i386_skip_probe, i386_analyze_frame_setup,
4176 i386_analyze_register_saves, i386_analyze_prologue,
4177 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4178 i386_frame_prev_register, i386_sigtramp_frame_cache,
4179 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4180 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4181 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4182 New functions.
4183 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4184 New variables.
4185 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4186 I386_EAX_REGNUM and I386_EDX_REGNUM.
4187 (i386_extract_return_value, i386_store_return_value): Use
4188 I386_ST0_REGNUM where appropriate.
4189 (i386_extract_struct_value_address): Rewrite to use extract_address.
4190 (i386_svr4_pc_in_sigtramp): Add comment.
4191 (i386_svr4_sigcontext_addr): Rewrite.
4192 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4193 TDEP->sc_sp_offset.
4194 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4195 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4196 of new defines. Set push_dummy_call, don't set
4197 deprecated_push_arguments, deprecated_push_return_address,
4198 deprecated_pop_frame. Don't set parm_boundary. Don't set
4199 deprecated_frame_chain, deprecated_frame_saved_pc,
4200 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4201 save_dummy_frame_tos, unwind_pc. Call
4202 frame_unwind_append_predicate and frame_base_set_default. Don't
4203 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4204 Don't set frameless_function_invocation. Don't set
4205 deprecated_register_bytes, deprecated_register_size,
4206 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4207 * i386-linux-tdep.c: Fix formatting in some comments.
4208 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4209 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4210 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4211 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4212 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4213 redundant parentheses.
4214 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4215 (i386_linux_sigcontext_addr): Use it. Rewrite.
4216 (find_minsym_and_objfile): Change name of second argument.
4217 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4218 changed. Use frame_pc_unwind instead of
4219 DEPRECATED_SAVED_PC_AFTER_CALL.
4220 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4221 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4222 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4223 unwinder.
4224 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4225 "dummy-frame.h".
4226 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4227 (_initialize_i386_cygwin_tdep): New prototype.
4228 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4229 deprecated_frame_chain_valid.
4230 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4231 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4232 Rely on the SVR4 defaults.
4233 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4234 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4235
4236 2003-05-30 Andrew Cagney <cagney@redhat.com>
4237
4238 * infcall.c (call_function_by_hand): Always call
4239 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4240
4241 2003-05-30 Richard Henderson <rth@redhat.com>
4242
4243 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4244 increment.
4245
4246 2003-05-29 Jim Blandy <jimb@redhat.com>
4247
4248 Use gdbarch methods for solib stuff on PowerPC Linux.
4249 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4250 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4251 show through.
4252 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4253 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4254 giving the same effect as the #definitions above.
4255
4256 2003-05-29 Adam Fedor <fedor@gnu.org>
4257
4258 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4259 (find_implementation_from_class): Replace it with the standard
4260 case i.e. do nothing.
4261
4262 2003-05-29 Richard Henderson <rth@redhat.com>
4263
4264 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4265 (alpha_linux_sigtramp_offset): Use it. Make static.
4266 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4267 update for new frame model.
4268 * alpha-mdebug-tdep.c: New file.
4269 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4270 (alpha_osf1_init_abi): Install it.
4271 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4272 (linked_proc_desc_table): Remove.
4273 (alpha_frame_past_sigtramp_frame): Remove.
4274 (alpha_dynamic_sigtramp_offset): Remove.
4275 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4276 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4277 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4278 (push_sigtramp_desc): Remove.
4279 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4280 (alpha_cannot_store_register): Likewise.
4281 (alpha_sigcontext_addr): Remove.
4282 (alpha_find_saved_regs): Remove.
4283 (alpha_frame_init_saved_regs): Remove.
4284 (alpha_init_frame_pc_first): Remove.
4285 (read_next_frame_reg): Remove.
4286 (alpha_frame_saved_pc): Remove.
4287 (alpha_saved_pc_after_call): Remove.
4288 (temp_proc_desc, temp_saved_regs): Remove.
4289 (alpha_about_to_return): Remove.
4290 (cached_proc_desc): Remove.
4291 (alpha_frame_chain): Remove.
4292 (alpha_print_extra_frame_info): Remove.
4293 (alpha_init_extra_frame_info): Remove.
4294 (alpha_frame_locals_address): Remove.
4295 (alpha_frame_args_address): Remove.
4296 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4297 (alpha_push_dummy_frame): Remove.
4298 (alpha_pop_frame): Remove.
4299 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4300 (alpha_read_insn): New.
4301 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4302 for different insn encodings.
4303 (alpha_in_lenient_prologue): Remove.
4304 (struct alpha_sigtramp_unwind_cache): New.
4305 (alpha_sigtramp_frame_unwind_cache): New.
4306 (alpha_sigtramp_register_address): New.
4307 (alpha_sigtramp_frame_this_id): New.
4308 (alpha_sigtramp_frame_prev_register): New.
4309 (alpha_sigtramp_frame_unwind): New.
4310 (alpha_sigtramp_frame_p): New.
4311 (struct alpha_heuristic_unwind_cache): New.
4312 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4313 don't count nop insns that occur between functions.
4314 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4315 heuristic_proc_desc, but without the mdebug wrapping.
4316 (alpha_heuristic_frame_this_id): New.
4317 (alpha_heuristic_frame_prev_register): New.
4318 (alpha_heuristic_frame_unwind): New.
4319 (alpha_heuristic_frame_p): New.
4320 (alpha_heuristic_frame_base_address): New.
4321 (alpha_heuristic_frame_base): New.
4322 (alpha_unwind_dummy_id): New.
4323 (alpha_unwind_pc): New.
4324 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4325 frame related deprecated initializations; install replacements.
4326 (alpha_dump_tdep): Remove.
4327 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4328 (alpha_read_insn, alpha_after_prologue,
4329 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4330 alpha_heuristic_frame_prev_register,
4331 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4332 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4333 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4334 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4335
4336 2003-05-29 Andrew Cagney <cagney@redhat.com>
4337
4338 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4339 dependant on the availability of ASSERT_FUNCTION.
4340 (ASSERT_FUNCTION): Do not define when there is no function name.
4341
4342 2003-05-29 Kevin Buettner <kevinb@redhat.com>
4343
4344 From Jimi X <jimix@watson.ibm.com>:
4345 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4346
4347 2003-05-28 Jim Blandy <jimb@redhat.com>
4348
4349 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4350 argument to ptrace to int; the system headers should give it the
4351 right type, and pointers don't fit in ints on powerpc64-*-*.
4352
4353 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4354
4355 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4356 DW_TAG_catch_block.
4357
4358 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4359
4360 * stabsread.c (dbx_lookup_type): Make static.
4361 (read_type): Ditto.
4362 (add_undefined_type): Ditto.
4363 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4364 not export.
4365
4366 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4367
4368 * hpread.c (hpread_has_name): Make static.
4369 (hpread_psymtab_to_symtab): Ditto.
4370 (file_exists): Ditto.
4371 (hpread_call_pxdb): Ditto.
4372 (hpread_pxdb_needed): Ditto.
4373 (hpread_quick_traverse): Ditto.
4374 (hpread_get_header): Ditto.
4375 (hpread_get_lntt): Ditto.
4376 (hpread_get_slt): Ditto.
4377 (class_of): Ditto.
4378
4379 2003-05-25 Andreas Schwab <schwab@suse.de>
4380
4381 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4382 stack_align and deprecated_extra_stack_alignment_needed.
4383 (m68k_stack_align): Delete.
4384
4385 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4386 (m68k_register_virtual_size): Likewise.
4387 (altos_skip_prologue): Remove obsolete function.
4388 (isi_frame_num_args): Likewise.
4389 (news_frame_num_args): Likewise.
4390 (m68k_fix_call_dummy): Make static.
4391 (m68k_push_dummy_frame): Likewise.
4392 (m68k_pop_frame): Likewise.
4393 (m68k_skip_prologue): Likewise.
4394 (m68k_frame_init_saved_regs): Likewise.
4395 (m68k_saved_pc_after_call): Likewise.
4396 (m68k_get_longjmp_target): Make multi-arch.
4397 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4398 structure. Register m68k_get_longjmp_target if enabled.
4399 * m68k-tdep.h (struct gdbarch_tdep): Define.
4400 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4401
4402 * Makefile.in (config.status): Also depend on configure.tgt
4403 and configure.host.
4404 (m68klinux-tdep.o): Update dependencies.
4405 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4406 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4407 (M68K_LINUX_JB_PC): Define.
4408 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4409 and take additional parameter.
4410 (m68k_linux_sigtramp_saved_pc): Update.
4411 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4412 m68k_linux_pc_in_sigtramp, in_plt_section,
4413 find_solib_trampoline_target.
4414 * config/m68k/tm-linux.h: Don't include any tm headers.
4415 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4416 (JB_ELEMENT_SIZE): Likewise.
4417 (JB_PC): Likewise.
4418 (GET_LONGJMP_TARGET): Likewise.
4419 (IN_SIGTRAMP): Likewise.
4420 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4421
4422 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4423
4424 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4425 (sparc32_push_arguments): Re-implement by calling
4426 sparc32_do_push_arguments.
4427
4428 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4429
4430 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4431 SPARC_O1_REGNUM): New defines.
4432 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4433 (sparc32_store_return_value): New function.
4434 (sparc_extract_struct_value_address): Rewrite to operate on a
4435 regcache.
4436 (sparc_gdbarch_init): Don't set
4437 deprecated_extract_struct_value_address. Set
4438 extract_struct_value_address instead. Don't set
4439 deprecated_extract_return_value and deprecated_store_return_value
4440 for 32-bit targets. Set extract_return_value and
4441 store_return_value instead.
4442 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4443 DEPRECTAED_EXTRACT_RETURN_VALUE,
4444 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4445 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4446 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4447 (sparc_store_return_value): Remove prototype.
4448 (sparc32_store_return_value): New prototype.
4449 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4450 Adjust prototypes.
4451
4452 2003-05-24 Mark Kettenis <kettenis@gnu.org>
4453
4454 * sparcnbsd-tdep.c: Include "gdb_string.h".
4455
4456 2003-05-23 Andrew Cagney <cagney@redhat.com>
4457
4458 * p-valprint.c (pascal_val_print): Replace extract_address with
4459 the inline equivalent extract_unsigned_integer.
4460 * jv-valprint.c (java_value_print): Ditto.
4461 * ada-valprint.c (ada_val_print_1): Ditto.
4462 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4463
4464 2003-05-23 Theodore A. Roth <troth@openavr.org>
4465
4466 * blockframe.c (frameless_look_for_prologue): Remove unused
4467 after_prologue variable.
4468
4469 2003-05-23 Mark Kettenis <kettenis@gnu.org>
4470
4471 * blockframe.c (get_pc_function_start): Rewrite to avoid
4472 asignments in if-statements.
4473
4474 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4475
4476 Committed by Elena Zannoni <ezannoni@redhat.com>.
4477 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4478 files, don't relocate absolute symbols (and do use mst_abs).
4479
4480 2003-05-23 Andrew Cagney <cagney@redhat.com>
4481
4482 * objc-lang.c: Include "gdb_assert.h".
4483 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4484 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4485 (gdb_check, gdb_check_fatal): Delete functions.
4486 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4487 gdb_assert.
4488 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4489 * Makefile.in (objc-lang.o): Update dependencies.
4490
4491 2003-05-22 Ian Lance Taylor <ian@airs.com>
4492
4493 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4494 with fprintf_filtered, not fprintf_unfiltered.
4495
4496 2003-05-22 Andrew Cagney <cagney@redhat.com>
4497
4498 * stack.c (frame_info): Inline extract_address, replacing it with
4499 extract_unsigned_integer.
4500 * findvar.c (unsigned_pointer_to_address): Ditto.
4501 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4502 * dwarf2expr.c (dwarf2_read_address): Ditto.
4503 * frame.c (frame_pc_unwind): Update comment.
4504 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4505
4506 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4507
4508 * infptrace.c (detach): Call print_sys_errmsg rather than
4509 perror_with_name to issue warning message when errno is non-zero
4510 after calling ptrace detach.
4511
4512 2003-05-21 J. Brobecker <brobecker@gnat.com>
4513
4514 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4515 macro definitions from here...
4516 * hppa-tdep.c: ...to there.
4517
4518 2003-05-20 Kevin Buettner <kevinb@redhat.com>
4519
4520 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4521 register_ptrace_addr(). Fix all callers.
4522
4523 2003-05-21 Andreas Schwab <schwab@suse.de>
4524
4525 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4526 dependencies.
4527 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4528 end.
4529 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4530 (_initialize_m68k_linux_tdep): New function.
4531 (m68k_linux_frame_saved_pc): Make static.
4532 (m68k_linux_extract_return_value): Likewise.
4533 (m68k_linux_store_return_value): Likewise.
4534 (m68k_linux_extract_struct_value_address): Likewise.
4535 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4536 Remove.
4537 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4538 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4539 (DEPRECATED_FRAME_SAVED_PC): Remove.
4540
4541 2003-05-20 Kris Warkentin <kewarken@qnx.com>
4542
4543 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4544 regset numbering rather than our own.
4545
4546 2003-05-19 David Carlton <carlton@bactrian.org>
4547
4548 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4549
4550 2003-05-19 David Carlton <carlton@bactrian.org>
4551
4552 Partial fix for PR c++/827.
4553 * cp-support.h: Include symtab.h.
4554 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4555 * cp-namespace.c: Update contributors.
4556 (cp_lookup_symbol_nonlocal): New.
4557 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4558 (lookup_symbol_file): Ditto.
4559 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4560 * block.h: Declare block_scope, block_using, block_global_block.
4561 * block.c (block_scope): New.
4562 (block_using, block_global_block): Ditto.
4563 * Makefile.in (cp_support_h): Depend on symtab_h.
4564 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4565
4566 2003-05-19 David Carlton <carlton@bactrian.org>
4567
4568 * language.h (struct language_defn): Add 'la_value_of_this'
4569 and 'la_lookup_symbol_nonlocal' members.
4570 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4571 lookup_symbol_static, lookup_symbol_global,
4572 lookup_symbol_aux_block.
4573 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4574 if we should search fields of this and how to do static/global
4575 lookup.
4576 (lookup_symbol_aux_block): Make extern.
4577 (basic_lookup_symbol_nonlocal): New.
4578 (lookup_symbol_static, lookup_symbol_global): Ditto.
4579 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4580 'la_lookup_symbol_nonlocal' members.
4581 * c-lang.c (c_language_defn, cplus_language_defn)
4582 (asm_language_defn, minimal_language_defn): Ditto.
4583 * jv-lang.c (java_language_defn): Ditto.
4584 * language.c (unknown_language_defn, auto_language_defn)
4585 (local_language_defn): Ditto.
4586 * m2-lang.c (m2_language_defn): Ditto.
4587 * objc-lang.c (objc_language_defn): Ditto.
4588 * scm-lang.c (scm_language_defn): Ditto.
4589 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4590 * p-lang.c (pascal_language_defn): Ditto for both.
4591 * Makefile.in (f-lang.o): Depend on value_h.
4592 (p-lang.o): Ditto.
4593
4594 2003-05-19 David Carlton <carlton@bactrian.org>
4595
4596 * block.h: Declare block_static_block.
4597 * block.c (block_static_block): New.
4598 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4599 lookup_symbol_aux_local, calling block_static_block instead.
4600 (lookup_symbol_aux_local): Delete 'static_block' argument.
4601
4602 2003-05-19 David Carlton <carlton@bactrian.org>
4603
4604 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4605
4606 2003-05-19 Michal Ludvig <mludvig@suse.cz>
4607
4608 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4609 register numbers mapping.
4610
4611 2003-05-18 Adam Fedor <fedor@gnu.org>
4612
4613 * symtab.c (completion_list_objc_symbol): New function.
4614 (make_symbol_completion_list): Use it to add ObjC symbols
4615 when looking though the list.
4616 (language_search_unquoted_string): New function.
4617 (make_file_symbol_completion_list): Use it.
4618
4619 2003-05-18 Andreas Schwab <schwab@suse.de>
4620
4621 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4622 dependencies.
4623 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4624 as m68k_linux_extract_return_value.
4625 (DEPRECATED_STORE_RETURN_VALUE): Define as
4626 m68k_linux_store_return_value.
4627 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4628 m68k_linux_extract_struct_value_address.
4629 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4630 get_next_frame, get_frame_base, get_frame_pc.
4631 (m68k_linux_frame_saved_pc): Use get_frame_base.
4632 (m68k_linux_extract_return_value): New function.
4633 (m68k_linux_store_return_value): New function.
4634 (m68k_linux_extract_struct_value_address): New function.
4635 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4636
4637 * c-exp.y (typebase): Remove duplicate occurence of
4638 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
4639 of lookup_signed_typename.
4640
4641 2003-05-18 Mark Kettenis <kettenis@gnu.org>
4642
4643 * dwarf2loc.c (find_location_expression): Change type of second
4644 argument to `size_t *'.
4645 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4646 for size variable.
4647
4648 2003-05-18 David Carlton <carlton@bactrian.org>
4649
4650 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4651 'linkage_name'. Add comment.
4652 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4653 'linkage_name'.
4654 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4655 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
4656 (lookup_block_symbol): Ditto.
4657
4658 2003-05-16 Andrew Cagney <cagney@redhat.com>
4659
4660 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
4661 * gdbarch.h, gdbarch.c: Re-generate.
4662 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
4663 * TODO (REGISTER_BYTES): Delete reference.
4664 * alpha-tdep.c (alpha_gdbarch_init): Update.
4665 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4666 * x86-64-tdep.c (x86_64_init_abi): Update.
4667 * vax-tdep.c (vax_gdbarch_init): Update.
4668 * v850-tdep.c (v850_gdbarch_init): Update.
4669 * sparc-tdep.c (sparc_gdbarch_init): Update.
4670 * sh-tdep.c (sh_gdbarch_init): Update.
4671 * s390-tdep.c (s390_gdbarch_init): Update.
4672 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4673 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4674 (ns32k_gdbarch_init_32382): Update.
4675 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4676 * mcore-tdep.c (mcore_gdbarch_init): Update.
4677 * m68k-tdep.c (m68k_gdbarch_init): Update.
4678 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4679 * ia64-tdep.c (ia64_gdbarch_init): Update.
4680 * i386-tdep.c (i386_gdbarch_init): Update.
4681 * i386-linux-tdep.c (i386_linux_init_abi): Update.
4682 * hppa-tdep.c (hppa_gdbarch_init): Update.
4683 * h8300-tdep.c (h8300_gdbarch_init): Update.
4684 * frv-tdep.c (frv_gdbarch_init): Update.
4685 * cris-tdep.c (cris_gdbarch_init): Update.
4686 * avr-tdep.c (avr_gdbarch_init): Update.
4687 * arm-tdep.c (arm_gdbarch_init): Update.
4688 * sparc-tdep.c (sparc_pop_frame): Update.
4689 * rs6000-tdep.c (rs6000_pop_frame): Update.
4690 * remote.c (init_remote_state): Update.
4691 (remote_prepare_to_store): Update.
4692 * remote-vx.c (vx_prepare_to_store): Update.
4693 * remote-sds.c (sds_fetch_registers): Update.
4694 (sds_prepare_to_store): Update.
4695 * remote-array.c: Update.
4696 * regcache.c (init_legacy_regcache_descr): Update.
4697 (init_regcache_descr): Update.
4698 * mips-tdep.c (mips_eabi_extract_return_value): Update.
4699 (mips_o64_extract_return_value): Update.
4700 * irix5-nat.c (fetch_core_registers): Update.
4701 * irix4-nat.c (fetch_core_registers): Update.
4702 * i386-tdep.h: Update.
4703 * hppa-tdep.c (pa_do_registers_info): Update.
4704 (pa_do_strcat_registers_info): Update.
4705 * cris-tdep.c (cris_register_bytes_ok): Update.
4706 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4707 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
4708 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
4709 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
4710 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
4711 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
4712 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
4713 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
4714 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
4715 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
4716 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
4717 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
4718 (REGISTER_BYTES_OK): Update.
4719 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
4720 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
4721
4722 2003-05-16 Ian Lance Taylor <ian@airs.com>
4723
4724 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
4725 (vax_print_insn, print_insn_arg): Remove static functions.
4726 (vax_gdbarch_init): Call set_gdbarch_print_insn with
4727 print_insn_vax from opcodes library.
4728 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
4729
4730 2003-05-15 Andrew Cagney <cagney@redhat.com>
4731
4732 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
4733 * target.h (memory_breakpoint_from_pc): Delete declaration.
4734 * mem-break.c (memory_breakpoint_from_pc): Delete function.
4735 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
4736 * monitor.c (monitor_insert_breakpoint): Use
4737 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
4738 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
4739 * gdbarch.h, gdbarch.c: Re-generate.
4740 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
4741 (sparc_gdbarch_init): Set breakpoint_from_pc to
4742 sparc_breakpoint_from_pc.
4743 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
4744 (BREAKPOINT_FROM_PC): Define.
4745 (sparc_breakpoint_from_pc): Declare.
4746 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
4747 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
4748 (BREAKPOINT_FROM_PC): Define.
4749 (BREAKPOINT): Delete macro.
4750 * target.h: Update comment.
4751 * s390-tdep.c (s390_gdbarch_init): Update comments.
4752 * remote.c: Update comments.
4753 * remote-mips.c: Update comments.
4754 * proc-api.c (write_with_trace): Do not check for a breakpoint.
4755 * mem-break.c: Update comment.
4756 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
4757 (ia64_memory_insert_breakpoint): Update.
4758 * config/sparc/tm-sparc.h: Update comment.
4759 * config/pa/tm-hppa64.h: Update comment.
4760 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4761 (rs6000_breakpoint_from_pc): Update.
4762 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4763 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
4764 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
4765 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
4766 (mips_breakpoint_from_pc): Update.
4767 (mips_dump_tdep): Update.
4768
4769 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
4770 * minsyms.c (lookup_minimal_symbol): Inline
4771 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
4772
4773 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
4774 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4775 * p-lang.c (pascal_printstr): Ditto.
4776 * objc-lang.c (objc_printstr): Ditto.
4777 * m2-lang.c (m2_printstr): Ditto.
4778 * jv-valprint.c (java_print_value_fields): Ditto.
4779 * f-lang.c (f_printstr): Ditto.
4780 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
4781 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
4782 for repeat_count_threshold.
4783 * Makefile.in (cp-valprint.o): Update dependencies.
4784
4785 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
4786
4787 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
4788 (examine_prologue): Support looking through leaf functions, knowing
4789 they start with mov r2,r12. Support skipping over indirect stores
4790 of the input registers. Upon hitting a non-nop branch instruction
4791 or predicated instruction, bail out by setting lim_pc to the current
4792 pc value in the loop. At the end, if the lim_pc value is still
4793 beyond our calculated value and we have trust_limit set,
4794 use the lim_pc value.
4795
4796 2003-05-15 Andrew Cagney <cagney@redhat.com>
4797
4798 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
4799 generic_find_dummy_frame.
4800 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
4801 (deprecated_generic_find_dummy_frame): Update.
4802 (deprecated_read_register_dummy): Update.
4803 * frame.c (deprecated_generic_get_saved_register): Update.
4804
4805 2003-05-15 Theodore A. Roth <troth@openavr.org>
4806
4807 * avr-tdep.c (avr_breakpoint_from_pc): New function.
4808 (avr_gdbarch_init): Set breakpoint_from_pc method.
4809
4810 2003-05-15 Andrew Cagney <cagney@redhat.com>
4811
4812 * regcache.c (build_regcache): Set deprecated_register_valid
4813 directly.
4814 (deprecated_grub_regcache_for_register_valid): Delete function.
4815 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
4816 declaration.
4817
4818 2003-05-15 David Carlton <carlton@bactrian.org>
4819
4820 Committed by Elena Zannoni <ezannoni@redhat.com>
4821 * symtab.c (lookup_symbol_aux): Delete calls to
4822 lookup_symbol_aux_minsyms.
4823 (lookup_symbol_aux_minsyms): Comment out function and
4824 prototype. Delete lookup by mangled name.
4825
4826 2003-05-14 Kevin Buettner <kevinb@redhat.com>
4827
4828 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
4829 correctly indicate an empty stack and ``stack_allocated'' to the
4830 indicate the number of elements initially allocated.
4831 (dwarf_expr_grow_stack): Simplify method for computing new
4832 stack size. Don't loop infinitely if ``stack_len'' is zero.
4833 (execute_stack_op): Move ``ctx->in_reg'' initialization
4834 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
4835 be used in conjuction with DW_OP_piece. Revise error message
4836 accordingly.
4837
4838 2003-05-14 Theodore A. Roth <troth@openavr.org>
4839
4840 * MAINTAINERS: Update my email address.
4841 * avr-tdep.c: Ditto.
4842
4843 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
4844
4845 * symtab.h (enum domain_enum): Rename from namespace_enum.
4846 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
4847 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
4848 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
4849 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
4850 TYPES_NAMESPACE, METHODS_NAMESPACE.
4851 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
4852 (struct symbol, struct partial_symbol): Rename field
4853 'namespace_enum namespace' to 'domain_enum domain'.
4854 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
4855 Delete old define kludge for namespace.
4856
4857 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
4858 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
4859 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
4860 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
4861 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
4862 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
4863 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
4864 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
4865 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
4866 occurrences of the above.
4867
4868 2003-05-14 Ian Lance Taylor <ian@airs.com>
4869
4870 * Makefile.in (install-only): Use $(SHELL) when running
4871 mkinstalldirs.
4872
4873 2003-05-13 Ian Lance Taylor <ian@airs.com>
4874
4875 * MAINTAINERS (write after approval): Add myself.
4876
4877 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
4878 second and third arguments.
4879 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4880 * ser-unix.c (_initialize_ser_hardwire): Likewise.
4881
4882 2003-05-13 Andrew Cagney <cagney@redhat.com>
4883
4884 * defs.h (store_address): Delete declaration.
4885 findvar.c (store_address): Delete function.
4886 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
4887 store_unsigned_integer.
4888 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
4889 * v850-tdep.c (v850_push_arguments): Ditto.
4890 * sparc-tdep.c (sparc_get_saved_register): Ditto.
4891 * sh-tdep.c (sh64_get_saved_register): Ditto.
4892 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
4893 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
4894 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
4895 (mips_get_saved_register): Ditto.
4896 * ia64-tdep.c (ia64_get_saved_register): Ditto.
4897 (find_func_descr, ia64_push_arguments): Ditto.
4898 * i386-tdep.c (i386_push_arguments): Ditto.
4899 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
4900 * frv-tdep.c (frv_push_arguments): Ditto.
4901 * frame.c (legacy_saved_regs_prev_register): Ditto.
4902 (deprecated_generic_get_saved_register): Ditto.
4903 * findvar.c (unsigned_address_to_pointer): Ditto.
4904 * dwarf2read.c (dwarf2_const_value): Ditto.
4905 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4906 * alpha-tdep.c (alpha_push_arguments): Ditto.
4907
4908 2003-05-12 J. Brobecker <brobecker@gnat.com>
4909
4910 * NEWS: Mention that the hppa-hpux port has been partially
4911 multiarched (32bit ABIT only, so far).
4912
4913 2003-05-11 Andrew Cagney <cagney@redhat.com>
4914
4915 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
4916 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
4917 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
4918 sim/testsuite/sim/arm/misaligned2.ms, and
4919 sim/testsuite/sim/arm/misaligned3.ms.
4920 * disasm.h (struct ui_file): Add opaque struct declaration.
4921 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
4922 * frame.h (struct ui_file): Ditto.
4923
4924 2003-05-11 Mark Kettenis <kettenis@gnu.org>
4925
4926 * value.h: Pretty print.
4927
4928 2003-05-10 Mark Kettenis <kettenis@gnu.org>
4929
4930 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
4931
4932 2003-05-08 Andrew Cagney <cagney@redhat.com>
4933
4934 * regcache.h (max_register_size): Delete declaration.
4935 * regcache.c (max_register_size): Delete function.
4936 (struct regcache_descr): Delete field "max_register_size".
4937 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
4938 registers fit in MAX_REGISTER_SIZE.
4939 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
4940 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
4941 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
4942 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
4943 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
4944 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
4945 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
4946 * dve3900-rom.c, hppa-tdep.c: Ditto.
4947
4948 2003-05-08 David Carlton <carlton@math.stanford.edu>
4949
4950 * valops.c (push_word): Fix typo.
4951
4952 2003-05-08 Andrew Cagney <cagney@redhat.com>
4953
4954 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
4955 * gdbarch.h: Re-generate.
4956 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
4957 (legacy_max_register_raw_size): Delete declaration.
4958 * regcache.c (legacy_max_register_raw_size): Delete function.
4959 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
4960 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
4961 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
4962 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
4963 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
4964 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
4965 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
4966 * findvar.c, dwarf2cfi.c: Ditto.
4967
4968 2003-05-08 Andrew Cagney <cagney@redhat.com>
4969
4970 * mips-tdep.c (read_signed_register): New function, moved to here
4971 from "regcache.c".
4972 (read_signed_register_pid): Ditto.
4973 * regcache.c (read_signed_register_pid): Delete function, moved to
4974 "mips-tdep.c".
4975 (read_signed_register): Ditto.
4976 * regcache.h (read_signed_register): Delete declaration.
4977 (read_signed_register_pid): Delete declaration.
4978
4979 2003-05-08 Andrew Cagney <cagney@redhat.com>
4980
4981 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
4982 * gdbarch.h: Re-generate.
4983 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
4984 (legacy_max_register_virtual_size): Delete declaration.
4985 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
4986 * d10v-tdep.c (d10v_print_registers_info): Ditto.
4987 * tracepoint.c (memrange_sortmerge): Ditto.
4988 * sparc-tdep.c (sparc_print_registers): Ditto.
4989 * regcache.c (legacy_max_register_virtual_size): Delete function.
4990
4991 2002-05-08 J. Brobecker <brobecker@gnat.com>
4992
4993 * fork-child.c (escape_bang_in_quoted_argument): New function.
4994 (fork_inferior): Escape '!' characters in quoted arguments
4995 only when needed.
4996
4997 2003-05-08 J. Brobecker <brobecker@gnat.com>
4998
4999 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
5000 the language of the CU is not currently supported by GDB.
5001
5002 2003-05-08 J. Brobecker <brobecker@gnat.com>
5003
5004 * defs.h (language): Add language_minimal enum value.
5005 * c-lang.c (minimal_language_defn): New language definition.
5006 (_initialize_c_language): Add the new minimal language to the list
5007 of languages known to GDB.
5008
5009 2003-05-08 Kevin Buettner <kevinb@redhat.com>
5010
5011 * frame.c (get_frame_type): Don't attempt to lazily initialize
5012 frame's unwinder for legacy frames.
5013
5014 2003-05-07 Andrew Cagney <cagney@redhat.com>
5015
5016 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
5017 and "regcache" parameters.
5018 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
5019
5020 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5021
5022 * dwarf2read.c (dwarf_decode_lines): Only use output of
5023 check_cu_functions() when calling record_line(). Do not update
5024 the current address.
5025
5026 2003-05-07 Andrew Cagney <cagney@redhat.com>
5027
5028 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5029 code.
5030
5031 2003-05-07 Jim Blandy <jimb@redhat.com>
5032
5033 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5034 'maint info symtabs' and 'maint info psymtabs'.
5035 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5036 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5037 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5038 Declarations updated.
5039 * maint.c (maintenance_list_command): Delete.
5040 (_initialize_maint_cmds): Update calls to add_cmd.
5041 * gdbcmd.h (maintenancelistlist): Delete declaration.
5042 * cli/cli-cmds.c (maintenancelistlist): Delete.
5043 (init_cmd_lists): Don't initialize it.
5044 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5045
5046 2003-05-07 Andrew Cagney <cagney@redhat.com>
5047
5048 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5049 "regcache".
5050 (d10v_print_registers_info): Update.
5051 (d10v_dmap_register, d10v_imap_register): Delete functions.
5052 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5053 and "imap_register".
5054 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5055 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5056 * arch-utils.c (generic_remote_translate_xfer_address): Add
5057 "regcache" and "gdbarch" parameters.
5058 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5059 parameter. Change class to multi-arch.
5060 * gdbarch.h, gdbarch.c: Re-generate.
5061 * remote.c (remote_xfer_memory): Use
5062 gdbarch_remote_translate_xfer_address.
5063
5064 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5065
5066 * infrun.c (prev_pc): Move declaration ahead of proceed().
5067 (proceed): Refresh prev_pc value before resuming.
5068 (stop_stepping): Remove code to refresh prev_pc.
5069
5070 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5071
5072 * nto-tdep.c: Removed stray comment.
5073
5074 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5075
5076 * i386-nto-tdep.c: Fix old K&R function definitions.
5077 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5078 Also change add_show_from_set() call to add_setshow_cmd().
5079 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5080
5081 2003-05-05 Andrew Cagney <cagney@redhat.com>
5082
5083 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5084 (fprint_dummy_frames): New function.
5085 (maintenance_print_dummy_frames): New function.
5086 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5087 * frame.c (fprint_frame_id): Make global.
5088 * frame.h (fprint_frame_id): Declare.
5089 * Makefile.in (dummy-frame.o): Update dependencies.
5090
5091 2003-05-05 Andrew Cagney <cagney@redhat.com>
5092
5093 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5094 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5095 SIZEOF_CALL_DUMMY_WORDS.
5096 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5097 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5098 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5099 CALL_DUMMY_BREAKPOINT_OFFSET.
5100 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5101 CALL_DUMMY_START_OFFSET.
5102 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5103 * gdbarch.h, gdbarch.c: Re-generate.
5104 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5105 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5106 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5107 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5108 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5109 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5110 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5111 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5112 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5113 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5114 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5115 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5116 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5117 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5118 * config/sparc/tm-sparc.h: Update.
5119
5120 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5121
5122 * configure.tgt: Add i[3456]86-*-nto*.
5123 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5124 * nto-tdep.c: New file. Neutrino target support routines.
5125 * nto-tdep.h: New file. Neutrino target header.
5126 * config/tm-qnxnto.h: New file.
5127 * config/i386/i386nto.mt: New file.
5128 * config/i386/tm-i386nto.h: New file.
5129
5130 2003-05-04 Andrew Cagney <cagney@redhat.com>
5131
5132 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5133 (load_infrun_state): Ditto.
5134 (struct thread_info): Drop "prev_func_name" field.
5135 * thread.c (load_infrun_state): Update.
5136 (save_infrun_state): Update.
5137 * infrun.c (prev_func_name): Delete variable.
5138 (init_wait_for_inferior): Do not clear prev_func_name.
5139 (stop_stepping, keep_going, context_switch): Do not swap
5140 prev_func_name.
5141 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5142 instead of PC_IN_SIGTRAMP.
5143
5144 2003-05-04 Andrew Cagney <cagney@redhat.com>
5145
5146 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5147 REGISTER_BYTE with register_offset_hack.
5148 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5149 that REGISTER_BYTE is consistent with the regcache.
5150 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5151 * gdbarch.h, gdbarch.c: Regenerate.
5152
5153 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5154
5155 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5156 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5157
5158 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5159
5160 2003-05-03 J. Brobecker <brobecker@gnat.com>
5161
5162 From Thierry Schneider <tpschneider1@yahoo.com>
5163 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5164 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5165 (mi-cmd-symbol.o): Add rule.
5166
5167 2003-05-03 Andrew Cagney <cagney@redhat.com>
5168
5169 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5170 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5171 * gdbarch.h, gdbarch.c: Re-generate.
5172 * d10v-tdep.c (d10v_push_dummy_code): New function.
5173 (d10v_gdbarch_init): Set push_dummy_code.
5174 * infcall.c (legacy_push_dummy_code): New function.
5175 (generic_push_dummy_code): New function.
5176 (push_dummy_code): New function.
5177 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5178 instead of dummy_addr, to push_dummy_call. Move call to
5179 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5180 switch.
5181 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5182
5183 2003-05-03 Andrew Cagney <cagney@redhat.com>
5184
5185 * disasm.h (print_insn): Declare.
5186 * disasm.c (init_gdb_disassemble_info): New function.
5187 (gdb_disassembly): Call init_gdb_disassemble_info.
5188 (gdb_print_insn): New function.
5189 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5190 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5191 * mcore-tdep.c: Include "disasm.h"
5192 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5193 * d10v-tdep.c: Include "disasm.h".
5194 (display_trace): Call gdb_print_insn, instead of print_insn.
5195 (print_insn): Delete function.
5196 * printcmd.c: Include "disasm.h".
5197 (print_insn): Delete function.
5198 (print_formatted): Call gdb_print_insn, instead of print_insn.
5199 * Makefile.in (printcmd.o): Update dependencies.
5200 (mcore-tdep.o, d10v-tdep.o): Ditto.
5201
5202 2003-05-02 Andrew Cagney <cagney@redhat.com>
5203
5204 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5205 PC_REGNUM, re-indent.
5206 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5207 PC_REGNUM isn't set.
5208
5209 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5210 * gdbarch.h, gdbarch.c: Re-generate.
5211 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5212 register_virtual_size, pc_regnum, or register_bytes.
5213 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5214 (d10v_register_type): Use D10V_PC_REGNUM.
5215 (d10v_print_registers_info, d10v_read_pc): Ditto.
5216 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5217 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5218
5219 2003-05-02 David Carlton <carlton@bactrian.org>
5220
5221 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5222 the name with mstrsave.
5223
5224 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5225
5226 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5227 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5228 (host_charset_name, target_charset_name): New vars for use by
5229 set/show commands.
5230 (host_charset_enum, target_charset_enum): New enums for set/show
5231 commands.
5232 (set_charset_sfunc, set_host_charset_sfunc,
5233 set_target_charset_sfunc): New functions.
5234 (set_host_charset, set_target_charset): Make static.
5235 (list_charsets, set_host_charset_command,
5236 set_target_charset_command): Delete functions.
5237 (show_charset_command): Rewrite as....
5238 (show_charset): Hook this up with the set/show command mechanism.
5239 (_initialize_charset): Change names of charsets to match the
5240 set/show enums. Use host_charset_name and target_charset_name.
5241 Use set/show mechanism for charset, host-charset, target-charset
5242 commands. Do not make 'show host-charset' and 'show
5243 target-charset' be aliases of 'show charset'.
5244
5245 * charset.h (set_host_charset, set_target_charset): Don't export,
5246 they are not used outside the file.
5247
5248 2003-05-01 Andrew Cagney <cagney@redhat.com>
5249
5250 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5251 (gdb_disassembly): Make "di" non static, always initialize and
5252 cleanup. Always use dis_asm_read_memory.
5253 (gdb_dis_asm_read_memory): Delete function.
5254
5255 2003-05-01 Andrew Cagney <cagney@redhat.com>
5256
5257 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5258 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5259
5260 2003-04-30 Andrew Cagney <cagney@redhat.com>
5261
5262 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5263 "tm_print_insn_info".
5264 (TARGET_PRINT_INSN_INFO): Delete macro.
5265 (dis_asm_read_memory): Delete function declaration.
5266 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5267 (tm_print_insn_info): Delete variable definition.
5268 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5269 * gdbarch.h, gdbarch.c: Re-generate.
5270 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5271 "deprecated_tm_print_insn_info".
5272 * mcore-tdep.c (mcore_dump_insn): Ditto.
5273 * mips-tdep.c (mips_gdbarch_init): Ditto.
5274 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5275 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5276 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5277 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5278 instead of TARGET_PRINT_INSN_INFO, add comment.
5279 * s390-tdep.c (s390_get_frame_info): Instead of
5280 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5281 (s390_check_function_end, s390_is_sigreturn): Ditto.
5282 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5283 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5284 * disasm.c: Include "gdbcore.h".
5285 (_initialize_disasm): New function, initialize
5286 "deprecated_tm_print_insn_info".
5287 (deprecated_tm_print_insn_info): New variable.
5288 (dis_asm_read_memory): Moved from "corefile.c", made static.
5289 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5290 * Makefile.in (disasm.o): Update dependencies.
5291
5292 2003-04-30 Andrew Cagney <cagney@redhat.com>
5293
5294 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5295
5296 2003-04-29 Adam Fedor <fedor@gnu.org>
5297
5298 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5299 * infcall.c (find_function_addr): Make non-static.
5300 * infcall.h (find_function_addr): Declare.
5301 * Makefile.in (eval.o): Update dependencies.
5302
5303 2003-04-28 Adam Fedor <fedor@gnu.org>
5304
5305 * symtab.c (symbol_find_demangled_name): Check for and demangle
5306 ObjC symbols.
5307 (symbol_init_demangled_name): Init for language_objc as well.
5308
5309 2003-04-28 Andrew Cagney <cagney@redhat.com>
5310
5311 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5312 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5313 * gdbarch.h, gdbarch.c: Re-generate.
5314 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5315 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5316 * inferior.h (deprecated_read_fp): Rename read_fp.
5317 (generic_target_read_fp): Delete declaration.
5318 * regcache.c (generic_target_read_fp): Delete function.
5319 (deprecated_read_fp): Replace read_fp, use
5320 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5321 * d10v-tdep.c (d10v_read_fp): Delete function.
5322 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5323
5324 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5325 deprecated_target_read_fp to generic_target_read_fp.
5326 * sh-tdep.c (sh_gdbarch_init): Ditto.
5327 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5328 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5329 * frv-tdep.c (frv_gdbarch_init): Ditto.
5330
5331 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5332 deprecated_fp_regnum.
5333 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5334 * vax-tdep.c (vax_gdbarch_init): Ditto.
5335 * v850-tdep.c (v850_gdbarch_init): Ditto.
5336 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5337 * sh-tdep.c (sh_gdbarch_init): Ditto.
5338 * s390-tdep.c (s390_gdbarch_init): Ditto.
5339 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5340 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5341 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5342 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5343 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5344 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5345 * i386-tdep.c (i386_gdbarch_init): Ditto.
5346 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5347 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5348 * frv-tdep.c (frv_gdbarch_init): Ditto.
5349 * cris-tdep.c (cris_gdbarch_init): Ditto.
5350 * avr-tdep.c (avr_gdbarch_init): Ditto.
5351 * arm-tdep.c (arm_gdbarch_init): Ditto.
5352 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5353
5354 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5355 * v850-tdep.c (v850_gdbarch_init): Ditto.
5356 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5357 * sh-tdep.c (sh_gdbarch_init): Ditto.
5358 * s390-tdep.c (s390_gdbarch_init): Ditto.
5359 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5360 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5361 * mips-tdep.c (mips_gdbarch_init): Ditto.
5362 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5363 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5364 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5365 * frv-tdep.c (frv_gdbarch_init): Ditto.
5366 * avr-tdep.c (avr_gdbarch_init): Ditto.
5367 * arm-tdep.c (arm_gdbarch_init): Ditto.
5368
5369 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5370 DEPRECATED_FP_REGNUM.
5371 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5372 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5373 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5374 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5375 (sparc32_register_virtual_type): Ditto.
5376 * sh-tdep.c (sh64_frame_chain): Ditto.
5377 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5378 (sh_nofp_frame_init_saved_regs): Ditto.
5379 (sh64_nofp_frame_init_saved_regs): Ditto.
5380 (sh_fp_frame_init_saved_regs): Ditto.
5381 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5382 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5383 * procfs.c (procfs_fetch_registers): Ditto.
5384 (procfs_store_registers): Ditto.
5385 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5386 (store_inferior_registers, fetch_core_registers): Ditto.
5387 (fetch_kcore_registers, clear_regs): Ditto.
5388 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5389 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5390 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5391 * nlm/i386.c (do_status): Ditto.
5392 * mipsv4-nat.c (supply_gregset): Ditto.
5393 * mips-tdep.c: Ditto for comments.
5394 * mips-nat.c (fetch_inferior_registers): Ditto.
5395 (store_inferior_registers, fetch_core_registers): Ditto.
5396 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5397 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5398 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5399 (i386_do_pop_frame, i386_register_type): Ditto.
5400 * hppa-tdep.c (hppa_frame_chain): Ditto.
5401 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5402 (hppa_pop_frame, hppa_read_fp): Ditto.
5403 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5404 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5405 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5406 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5407 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5408 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5409 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5410 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5411 * blockframe.c: Ditto for comments.
5412 * arch-utils.h: Ditto for comments.
5413 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5414 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5415 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5416 * alpha-tdep.h: Ditto for comments.
5417 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5418 (alpha_cannot_store_register): Ditto.
5419 (alpha_push_dummy_frame): Ditto.
5420 * alpha-nat.c (supply_gregset): Ditto.
5421
5422 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5423 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5424 * config/sparc/tm-sparc.h: Update comment.
5425
5426 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5427 deprecated_read_fp instead of TARGET_READ_FP.
5428 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5429 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5430 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5431 deprecated_read_fp instead of read_fp.
5432 * s390-tdep.c (s390_push_arguments): Ditto.
5433 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5434 * frame.h: Ditto in comments.
5435 * frame.c (legacy_get_prev_frame): Ditto.
5436 * dummy-frame.c (dummy_frame_this_id): Ditto.
5437 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5438
5439 2003-04-28 Andrew Cagney <cagney@redhat.com>
5440
5441 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5442 * gdbarch.h, gdbarch.c: Re-generate.
5443 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5444 * vax-tdep.c (_initialize_vax_tdep): Update.
5445 * v850-tdep.c (_initialize_v850_tdep): Update.
5446 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5447 * s390-tdep.c (_initialize_s390_tdep): Update.
5448 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5449 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5450 * mips-tdep.c (_initialize_mips_tdep): Update.
5451 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5452 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5453 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5454 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5455 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5456 * frv-tdep.c (_initialize_frv_tdep): Update.
5457 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5458 (_initialize_cris_tdep): Update.
5459 * arch-utils.c (legacy_print_insn): Update.
5460 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5461
5462 2003-04-26 Adam Fedor <fedor@gnu.org>
5463
5464 * linespec.c (decode_objc): New function to decode ObjC calls
5465 (decode_line_1): Check for ObjC calls (using decode_objc)
5466 * Makefile (linespec.o): Update dependencies.
5467
5468 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
5469
5470 * breakpoint.h (struct breakpoint_ops): New.
5471 (struct breakpoint): Add ops member.
5472
5473 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5474 (mention): Use new breakpoint ops member.
5475 (set_raw_breakpoint): Initialize ops field to NULL.
5476 (print_exception_catchpoint, print_one_exception_catchpoint)
5477 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5478 (gnu_v3_exception_catchpoint_ops): New.
5479 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5480
5481 2003-04-25 Adam Fedor <fedor@gnu.org>
5482
5483 * Makefile.in (COMMON_OBS): Add objc-lang.o
5484
5485 2003-04-25 Andrew Cagney <cagney@redhat.com>
5486
5487 * d10v-tdep.c (print_insn): Delete function.
5488 (display_trace): Use TARGET_PRINT_INSN.
5489 (_initialize_d10v_tdep): Do not set tm_print_insn.
5490 (d10v_gdbarch_init): Set print_insn.
5491
5492 2003-04-25 Andrew Cagney <cagney@redhat.com>
5493
5494 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5495 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5496 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5497 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5498 (nr_dmap_regs, a0_regnum): ... new functions.
5499 (d10v_print_registers_info): Use a0_regnum, use register_size.
5500 (d10v_register_byte): Delete function.
5501 (d10v_register_raw_size): Delete function.
5502 (d10v_register_type): Use a0_regnum.
5503 (d10v_print_registers_info): Use a0_regnum.
5504 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5505 (d10v_gdbarch_init): Do not set register_byte or
5506 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5507 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5508 extract_address.
5509 (trace_command): Use XCALLOC.
5510 (print_insn): Delete reference to tm_print_insn.
5511 (saved_regs_unwinder): Use store_unsigned_integer instead of
5512 store_address.
5513 * frame.h (FRAME_OBSTACK_CALLOC): Define
5514
5515 2003-04-25 David Carlton <carlton@bactrian.org>
5516
5517 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5518
5519 2003-04-24 Adam Fedor <fedor@gnu.org>
5520
5521 * objc-lang.c: Include "valprint.h"
5522 * Makefile.in (objc-lang.o): Update dependencies.
5523
5524 2003-04-24 Adam Fedor <fedor@gnu.org>
5525
5526 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5527 architecture dependant compilation and mark as unimplemented
5528 (until they get put in the gdbarch vector).
5529
5530 2003-04-23 David Carlton <carlton@bactrian.org>
5531
5532 * cp-support.c (cp_find_first_component): Accept 'operator' in
5533 more locations.
5534
5535 2003-04-23 Andrew Cagney <cagney@redhat.com>
5536
5537 * infcall.c (call_function_by_hand): Eliminate redundant
5538 indentation. Move "saved_async" and "old_cleanups" to where they
5539 are needed.
5540
5541 2003-04-23 Andrew Cagney <cagney@redhat.com>
5542
5543 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5544 and "buffer". Move the "name" code to where it is needed.
5545
5546 2003-04-23 Andrew Cagney <cagney@redhat.com>
5547
5548 * infcall.c (call_function_by_hand): Move variables "start_sp",
5549 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5550 code to ON_STACK switch branch.
5551
5552 2003-04-23 Andrew Cagney <cagney@redhat.com>
5553
5554 * infcall.c (call_function_by_hand): Make declaration of "i",
5555 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5556 lint.
5557
5558 2003-04-23 Andrew Cagney <cagney@redhat.com>
5559
5560 * infcall.c (call_function_by_hand): Delete variable
5561 "n_method_args". Localize "param_type"'s declaration to the loop
5562 that it is used. Reinstate code assigning to said variable -
5563 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5564 Rationalize code using "param_type".
5565
5566 2003-04-22 Andrew Cagney <cagney@redhat.com>
5567
5568 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5569 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5570 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5571 to DEPRECATED_PUSH_RETURN_ADDRESS.
5572
5573 2003-04-22 Kevin Buettner <kevinb@redhat.com>
5574
5575 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5576 on the DWARF2 register number prior to fetching a register.
5577
5578 2003-04-22 J. Brobecker <brobecker@gnat.com>
5579
5580 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5581 Update all the tests using SOFT_FLOAT considering the fact that
5582 this macro was always set to 0.
5583 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5584 considering the fact that this macro was always set to 0.
5585 * hppa-tdep.h (hppa_store_return_value): Likewise.
5586 (hppa_extract_return_value): Likewise.
5587
5588 2003-04-22 J. Brobecker <brobecker@gnat.com>
5589
5590 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5591 the hppa-pro target only.
5592
5593 2003-04-21 J. Brobecker <brobecker@gnat.com>
5594
5595 Ongoing multi-arch conversion effort for HP/UX:
5596 * config/pa/tm-hppa.h: Move all macro that are no longer
5597 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5598 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5599
5600 2003-04-21 J. Brobecker <brobecker@gnat.com>
5601
5602 * config/pa/tm-hppa.h: Obsolete a section that was only used
5603 for hppa-pro.
5604
5605 2003-04-21 J. Brobecker <brobecker@gnat.com>
5606
5607 Ongoing multi-arch conversion for HP/UX.
5608 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5609 if already defined (allows hppa64 to stay non-multiarched for now).
5610 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5611
5612 2003-04-21 Andrew Cagney <cagney@redhat.com>
5613
5614 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5615
5616 2003-04-21 Andrew Cagney <cagney@redhat.com>
5617
5618 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5619 "i386_num_mmx_regs".
5620
5621 2003-04-21 Andrew Cagney <cagney@redhat.com>
5622
5623 * infcall.c: New file.
5624 * infcall.h: New file.
5625 * valarith.c: Include "infcall.h".
5626 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5627 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5628 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5629 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5630 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5631 (SFILES): Add "infcall.c"
5632 (COMMON_OBS): Add "infcall.o".
5633 (infcall.o): Specify dependencies.
5634 * value.h (call_function_by_hand): Delete declaration.
5635 * inferior.h (run_stack_dummy): Delete declaration.
5636 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5637 (run_stack_dummy): Move to "infcall.c", merged into
5638 call_function_by_hand.
5639 * valops.c (call_function_by_hand): Moved to "infcall.c".
5640 (find_function_addr, value_arg_coerce): Ditto.
5641 (unwindonsignal_p, coerce_float_to_double): Ditto.
5642 (_initialize_valops): Move "set/show coerce-float-to-double", and
5643 "set/show unwindonsignal" commands to "infcall.c".
5644 * v850-tdep.c, target.h: Update comments.
5645 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5646 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5647 (sh64_init_extra_frame_info): Update comments.
5648 * mn10300-tdep.c: Update comments.
5649 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5650 * config/sparc/tm-sparc.h: Update comments.
5651 * breakpoint.h: Update comments.
5652 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5653 * arm-tdep.c: Update comment.
5654
5655 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5656
5657 * i386-tdep.c (i386_num_register_names): New variable.
5658 (i386_num_mmx_regs): Renamed from mmx_num_regs.
5659 (MM0_REGNUM): Remove redundant parentheses in define.
5660 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
5661 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
5662 i386_mxcsr_regnum_p): Remove redundant parentheses.
5663 (i386_register_name): Use i386_num_register_names.
5664
5665 * i386-tdep.c (i386_extract_return_value,
5666 i386_store_return_value): Correct check for availability of
5667 floating-point registers.
5668
5669 * i386-tdep.c (i386_frame_num_args): Remove function.
5670 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
5671
5672 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
5673 mmx_regnum_to_fp_regnum. Adjust all callers.
5674
5675 * i386-tdep.c (i386_get_longjmp_target): Use
5676 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
5677 and TARGET_CHAR_BIT. Use extract_typed_address instead of
5678 extract_address.
5679
5680 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5681
5682 * core-regset.c: Update comments to reflect reality. Re-order
5683 includes.
5684 (fetch_core_registers): Use switch instead of if. Remove
5685 redundant prototype.
5686
5687 2003-04-18 Jim Blandy <jimb@redhat.com>
5688
5689 * s390-tdep.c (s390_frame_align): New function.
5690 (s390_gdbarch_init): Register it with the gdbarch object.
5691
5692 2003-04-17 Richard Henderson <rth@redhat.com>
5693
5694 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
5695
5696 2003-04-17 Michael Snyder <msnyder@redhat.com>
5697 Karen Bennet <bennet@redhat.com>
5698
5699 Committed by Elena Zannoni <ezannoni@redhat.com>
5700 * gdb_gcore.sh: New script to create a core dump of a process.
5701
5702 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
5703
5704 * values.c (value_being_returned): Don't fetch the return
5705 value if the return type is void.
5706
5707 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5708
5709 * thread-db.c: Reindented.
5710
5711 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5712
5713 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
5714 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
5715 as types.
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741 2003-04-16 Kevin Buettner <kevinb@redhat.com>
5742
5743 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
5744 the size of ``long double'' to 16, instead of 8.
5745
5746 2003-04-16 Mark Kettenis <kettenis@gnu.org>
5747
5748 * i386-linux-nat.c: Add some whitespace to make things more
5749 readable.
5750 (fetch_register, store_register, fetch_inferior_registers,
5751 store_inferior_registers): Get rid of assignment in if-statement.
5752 (store_register): Fix typo in error message.
5753
5754 2003-04-16 Andrew Cagney <cagney@redhat.com>
5755
5756 * utils.c (xmmalloc): Always allocate something, matches
5757 libiberty/xmalloc's semantics.
5758 (xmrealloc, xmcalloc): Ditto.
5759
5760 2003-04-16 Andrew Cagney <cagney@redhat.com>
5761
5762 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5763 update comments.
5764 (get_frame_type): Initialize unwind and type when needed.
5765 (get_frame_id, frame_register_unwind): Ditto.
5766
5767 2003-04-16 Andrew Cagney <cagney@redhat.com>
5768
5769 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
5770 obsolete.
5771 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
5772 * sparcl-stub.c: Obsolete file.
5773 * config/sparc/tm-sparclet.h: Obsolete file.
5774 * sparclet-stub.c: Obsolete file.
5775 * sparclet-rom.c: Obsolete file.
5776 * sparcl-tdep.c: Obsolete file.
5777 * config/sparc/tm-sparclite.h: Obsolete file.
5778 * config/sparc/sparclite.mt: Obsolete file.
5779 * config/sparc/sparclet.mt: Obsolete file.
5780 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
5781 sparc86x-*-* obsolete.
5782
5783 2003-04-15 David Carlton <carlton@math.stanford.edu>
5784
5785 * Makefile.in (SFILES): Add cp-namespace.c.
5786 (COMMON_OBS): Add cp-namespace.o.
5787 (block.o): Depend on gdb_obstack_h and cp_support_h.
5788 (buildsym.o): Depend on cp_support_h.
5789 (cp-namespace.o): New.
5790 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
5791 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
5792 (dwarf2read.o): Depend on cp_support_h.
5793 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
5794 * dwarf2read.c (process_die): Set processing_has_namespace_info,
5795 processing_current_namespace.
5796 (read_namespace): Update processing_current_namespace; check for
5797 anonymous namespaces.
5798 (dwarf2_name): New function.
5799 (dwarf2_extension): Ditto.
5800 * cp-support.h: Update copyright, contributors.
5801 Add inclusion guards.
5802 Add opaque declaration for structs obstack, block, symbol.
5803 (struct using_direct): New struct.
5804 Add declarations for cp_find_first_component,
5805 cp_entire_prefix_len, processing_has_namespace_info,
5806 processing_current_namespace, cp_is_anonymous,
5807 cp_add_using_directive, cp_initialize_namespace,
5808 cp_finalize_namespace, cp_set_block_scope,
5809 cp_scan_for_anonymous_namespaces.
5810 * cp-namespace.c: New file.
5811 * cp-support.c: Update copyright.
5812 Include ctype.h, gdb_assert.h, gdbcmd.h.
5813 New variable maint_cplus_cmd_list.
5814 (cp_find_first_component): New function.
5815 (cp_entire_prefix_len, maint_cplus_command)
5816 (first_component_command, _initialize_cp_support): Ditto.
5817 * buildsym.c: Include cp-support.h.
5818 New variable using_list.
5819 (add_symbol_to_list): Check for anonymous namespaces.
5820 (finish_block): Set block's scope.
5821 (start_symtab): Initialize C++ namespace support.
5822 (end_symtab): Finalize C++ namespace support.
5823 * block.h: Add opaque declarations for structs
5824 block_namespace_info, using_direct, and obstack.
5825 Add declarations for block_set_scope and block_set_using.
5826 (struct block): Add 'language_specific' member.
5827 (BLOCK_NAMESPACE): New macro.
5828 * block.c: Include gdb_obstack.h and cp-support.h.
5829 (struct block_namespace_info): New struct.
5830 (block_set_scope): New function.
5831 (block_set_using, block_initialize_namespace): Ditto.
5832
5833 2003-04-14 Kevin Buettner <kevinb@redhat.com>
5834
5835 * solib-svr4.c (svr4_have_link_map_offsets): New function.
5836 (locate_base): Return early if there aren't any link map offsets.
5837 (svr4_solib_create_inferior_hook): Warn if shared library support
5838 is unavailable.
5839
5840 2003-04-14 David Carlton <carlton@math.stanford.edu>
5841
5842 * symtab.c (symbol_set_names): Add prefix when storing Java names
5843 in hash table. Fix for PR java/1039.
5844
5845 2003-04-14 David Carlton <carlton@math.stanford.edu>
5846
5847 * symtab.c (symbol_set_names): Rename 'name' arg to
5848 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
5849 * symtab.h: Change 'name' argument in declaration of
5850 symbol_set_names to 'linkage_name'.
5851 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
5852
5853 2003-04-14 Andrew Cagney <cagney@redhat.com>
5854
5855 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
5856 return the fully sign-extended register value.
5857 (get_frame_pointer): Ditto.
5858 (mips_pop_frame): Initialize "proc_desc" after checking for a
5859 dummy frame.
5860
5861 2003-04-14 Andrew Cagney <cagney@redhat.com>
5862
5863 * mips-tdep.c (mips_push_dummy_frame): Delete function.
5864 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
5865 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
5866 (mips_push_register): Delete function.
5867 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
5868 PUSH_FP_REGNUM.
5869
5870 2003-04-14 Jim Blandy <jimb@redhat.com>
5871
5872 * symmisc.c: #include "gdb_regex.h".
5873 (maintenance_list_symtabs, maintenance_list_psymtabs): New
5874 functions.
5875 * maint.c (maintenance_list_command): New function.
5876 (_initialize_maint_cmds): Register the above as commands.
5877 * symtab.h (maintenance_list_symtabs,
5878 maintenance_list_psymtabs): New declarations.
5879 * cli/cli-cmds.c (maintenancelistlist): New variable.
5880 (init_cmd_lists): Initialize it.
5881 * cli/cli-cmds.h (maintenancelistlist): New declaration.
5882 * gdbcmd.h (maintenancelistlist): New declaration.
5883 * Makefile.in (symmisc.o): Update dependencies.
5884
5885 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
5886
5887 * s390-nat.c: Include asm/types.h for addr_t.
5888
5889 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
5890
5891 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
5892 actually incoming type.
5893
5894 2003-04-13 Andrew Cagney <cagney@redhat.com>
5895
5896 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
5897 get_next_frame and get_frame_saved_regs.
5898
5899 2003-04-13 Andrew Cagney <cagney@redhat.com>
5900
5901 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
5902 of gdbarch_num_regs.
5903
5904 2003-04-13 Andrew Cagney <cagney@redhat.com>
5905
5906 * frame.h: Mention what replaced what in "struct frame_info".
5907 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
5908 deprecated_update_frame_base_hack and
5909 deprecated_update_frame_pc_hack.
5910 * hppa-tdep.c: Ditto.
5911
5912 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5913
5914 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
5915 to read_reg and update its comment. Remove regnum member.
5916 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
5917 Don't call read_reg when setting in_reg. Call read_reg to get
5918 the frame base if it's in a register. Return the register number
5919 on the stack instead of in the context. Remove extra arguments
5920 to read_reg.
5921 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
5922 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
5923 the register number on the expression stack.
5924 (needs_frame_read_reg): Remove extra arguments.
5925
5926 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5927
5928 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
5929 made non-static.
5930 (execute_stack_op): All callers updated.
5931 * dwarf2expr.h: Add prototype for dwarf2_read_address.
5932 * dwarf2loc.c (find_location_expression): New function.
5933 (dwarf_expr_frame_base): Call it.
5934 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
5935 (dwarf2_tracepoint_var_ref): New function, broken out from
5936 locexpr_tracepoint_var_ref.
5937 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
5938 Make static.
5939 (loclist_read_variable, loclist_read_needs_frame): New functions.
5940 (loclist_describe_location, loclist_tracepoint_var_ref): New
5941 functions.
5942 (dwarf2_loclist_funcs): New struct location_funcs.
5943 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
5944 (struct dwarf2_locexpr_baton): Add comments.
5945 (dwarf2_loclist_funcs): New extern.
5946 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
5947 base_address and base_known.
5948 (dwarf_loc_buffer): New variable.
5949 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
5950 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
5951 (dwarf2_has_info): Initialize dwarf_loc_offset.
5952 (dwarf2_build_psymtabs): Read in .debug_loc.
5953 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
5954 DWARF_LOC_SIZE.
5955 (psymtab_to_symtab_1): Likewise. Move base address calculation
5956 here, from...
5957 (dwarf2_get_pc_bounds): ... here. Use the base address from
5958 cu_header.
5959 (dwarf2_symbol_mark_computed): Handle location lists.
5960
5961 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5962
5963 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
5964 if the linkage name demangled successfully.
5965
5966 2003-04-13 Mark Kettenis <kettenis@gnu.org>
5967
5968 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
5969 disassmbly_flavour): Removed.
5970
5971 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
5972
5973 2003-04-13 Mark Kettenis <kettenis@gnu.org>
5974
5975 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
5976
5977 2003-04-12 Andrew Cagney <cagney@redhat.com>
5978
5979 * frame.h (struct frame_info): Move definition from here ...
5980 * frame.c (struct frame_info): ... to here.
5981
5982 2003-04-12 Andrew Cagney <cagney@redhat.com>
5983
5984 * gdbthread.h (save_infrun_state): Delete parameter
5985 "prev_func_start".
5986 (struct thread_info): Delete field "prev_func_start".
5987 (load_infrun_state): Ditto.
5988 * thread.c (load_infrun_state, save_infrun_state): Update.
5989 * infrun.c (prev_func_start): Delete variable.
5990 (context_switch, init_wait_for_inferior): Update.
5991 (stop_stepping, keep_going): Update.
5992
5993 2003-04-12 Andrew Cagney <cagney@redhat.com>
5994
5995 * gdbarch.sh: Add missing opaque declarations.
5996 * gdbarch.h: Regnerate.
5997 * symtab.h: Add missing opaque declarations.
5998 * value.h, target.h, symfile.h, stabsread.h: Ditto.
5999 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
6000 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
6001 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
6002 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
6003 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
6004 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
6005 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
6006 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
6007 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
6008 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
6009 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
6010 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
6011
6012 2003-04-11 Andrew Cagney <cagney@redhat.com>
6013
6014 * frame.c (get_frame_id): Return this frame's "id".
6015 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
6016 function start.
6017 (legacy_saved_regs_this_id): Replace function body with
6018 internal-error.
6019 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
6020 FRAME_OBSTACK_ZALLOC.
6021 (create_new_frame): Mark the frame ID as valid.
6022
6023 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
6024
6025 * Makefile.in (libbfd_h): Added missing setting.
6026 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
6027 according to the selected ABI.
6028
6029 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6030
6031 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6032
6033 2003-04-11 Andrew Cagney <cagney@redhat.com>
6034
6035 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6036 SAVED_PC_AFTER_CALL.
6037 * gdbarch.h, gdbarch.c: Regenerate.
6038 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6039 * x86-64-tdep.c (x86_64_init_abi): Update.
6040 * vax-tdep.c (vax_gdbarch_init): Update.
6041 * v850-tdep.c (v850_gdbarch_init): Update.
6042 * sparc-tdep.c (sparc_gdbarch_init): Update.
6043 * sh-tdep.c (sh_gdbarch_init): Update.
6044 * s390-tdep.c (s390_gdbarch_init): Update.
6045 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6046 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6047 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6048 * mips-tdep.c (mips_gdbarch_init): Update.
6049 * mcore-tdep.c (mcore_gdbarch_init): Update.
6050 * m68k-tdep.c (m68k_gdbarch_init): Update.
6051 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6052 * ia64-tdep.c (ia64_gdbarch_init): Update.
6053 (ia64_saved_pc_after_call): Update declaration.
6054 * i386ly-tdep.c (i386lynx_init_abi): Update.
6055 * i386-tdep.c (i386_gdbarch_init): Update.
6056 * hppa-tdep.c (hppa_gdbarch_init): Update.
6057 * h8300-tdep.c (h8300_gdbarch_init): Update.
6058 * frv-tdep.c (frv_gdbarch_init): Update.
6059 * cris-tdep.c (cris_gdbarch_init): Update.
6060 * avr-tdep.c (avr_gdbarch_init): Update.
6061 * arm-tdep.c (arm_gdbarch_init): Update.
6062 * alpha-tdep.c (alpha_gdbarch_init): Update.
6063 * ns32knbsd-nat.c (frame_num_args): Update.
6064 * ns32k-tdep.c (umax_frame_num_args): Update.
6065 * mips-tdep.c (mips_init_frame_pc_first): Update.
6066 * infrun.c (step_over_function): Update.
6067 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6068 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6069 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6070 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6071 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6072 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6073 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6074 * arch-utils.c (init_frame_pc_default): Update.
6075 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6076 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6077 declaration.
6078
6079 2003-04-11 Andrew Cagney <cagney@redhat.com>
6080
6081 * i387-tdep.c: Update copyright.
6082 (i387_to_double): Delete function.
6083 (double_to_i387): Delete function.
6084
6085 2003-04-10 Andrew Cagney <cagney@redhat.com>
6086
6087 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6088 frame's function's address. Simplify.
6089 (d10v_frame_unwind_cache): Check that the frame's function is
6090 non-zero.
6091
6092 2003-04-10 Jim Blandy <jimb@redhat.com>
6093
6094 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6095 call to set_gdbarch_deprecated_push_arguments.
6096
6097 2003-04-10 Andrew Cagney <cagney@redhat.com>
6098
6099 * frame.c (fprint_frame_id): New function.
6100 (fprint_frame_type, fprint_frame): New function.
6101 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6102 (create_sentinel_frame, get_frame_id): Ditto.
6103 (frame_id_p, frame_id_eq): Ditto.
6104 (frame_id_inner, create_new_frame): Ditto.
6105 (legacy_get_prev_frame, get_prev_frame): Ditto.
6106 (deprecated_update_frame_pc_hack): Ditto.
6107 (frame_register_unwind): Ditto.
6108 (deprecated_update_frame_base_hack): Ditto.
6109
6110 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6111
6112 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6113 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6114 frame_chain function.
6115 * Makefile.in: Add dependencies due to above change.
6116
6117 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6118
6119 * blockframe.c (legacy_frame_chain_valid): Move call to
6120 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6121 inside_entry_file.
6122
6123 2003-04-09 Andrew Cagney <cagney@redhat.com>
6124
6125 * frame.h (struct frame_id): Replace "pc" and "base" with
6126 "stack_addr" and "code_addr". Update comments.
6127 (frame_id_build): Update parameter names and comment.
6128 (struct frame_info): Replace "id_p" and "id" with "this_id".
6129 * dummy-frame.c (dummy_frame_this_id): Update.
6130 * breakpoint.c (print_one_breakpoint): Update.
6131 * frame.c (get_frame_id): Update.
6132 (get_frame_base, frame_id_build): Update.
6133 (create_sentinel_frame, legacy_get_prev_frame): Update.
6134 (deprecated_update_frame_base_hack): Update.
6135 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6136 (frame_id_inner): Ditto.
6137
6138 2003-04-09 Andrew Cagney <cagney@redhat.com>
6139
6140 * defs.h (gdb_print_host_address): Make "addr" parameter a
6141 pointer constant.
6142 * utils.c (gdb_print_host_address): Update.
6143
6144 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6145
6146 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6147 register number for R0 is 0.
6148
6149 2003-04-09 J. Brobecker <brobecker@gnat.com>
6150
6151 * frame.h (struct gdbarch): Add opaque structure definition
6152 to avoid a compilation warning on LynxOS 4.0.
6153
6154 2003-04-09 Andrew Cagney <cagney@redhat.com>
6155
6156 * frame.h (struct frame_info): Delete field "pc". Replace
6157 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6158 structure.
6159 * frame.c (frame_pc_unwind): Update.
6160 (create_sentinel_frame): Do not set "pc".
6161 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6162 (get_frame_pc): Call frame_pc_unwind.
6163 (deprecated_update_frame_pc_hack): Update.
6164 (create_new_frame): Use "pc" not "->pc".
6165
6166 2003-04-09 Andrew Cagney <cagney@redhat.com>
6167
6168 * frame.c (get_frame_id): Eliminate code updating "frame".
6169 (legacy_get_prev_frame): Ditto.
6170 (get_frame_base): Return id.base directly.
6171 (deprecated_update_frame_base_hack): Update "id.base".
6172 * frame.h (struct frame_info): Delete field "frame".
6173
6174 2003-04-09 Andrew Cagney <cagney@redhat.com>
6175
6176 * NEWS: Mention that the "Sequent family" is obsolete.
6177 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6178 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6179 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6180 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6181 * config/i386/tm-ptx4.h: Obsolete file.
6182 * config/i386/tm-ptx.h: Obsolete file.
6183 * symm-tdep.c: Obsolete file.
6184 * config/i386/symmetry.mt: Obsolete file.
6185 * config/i386/tm-symmetry.h: Obsolete file.
6186 * symm-nat.c: Obsolete file.
6187 * config/i386/nm-symmetry.h: Obsolete file.
6188 * config/i386/xm-symmetry.h: Obsolete file.
6189 * config/i386/symmetry.mh: Obsolete file.
6190 * config/i386/nm-ptx4.h: Obsolete file.
6191 * config/i386/ptx4.mh: Obsolete file.
6192 * config/i386/ptx.mt: Obsolete file.
6193 * config/i386/ptx.mh: Obsolete file.
6194 * config/i386/xm-ptx4.h: Obsolete file.
6195 * config/i386/xm-ptx.h: Obsolete file.
6196
6197 2003-04-09 Andrew Cagney <cagney@redhat.com>
6198
6199 Obsolete mips*-*-mach3*.
6200 * NEWS: Mention that mips*-*-mach3* is obsolete.
6201 * m3-nat.c: Obsolete file.
6202 * config/nm-m3.h: Obsolete file.
6203 * config/mips/tm-mipsm3.h: Obsolete file.
6204 * config/mips/mipsm3.mt: Obsolete file.
6205 * config/mips/mipsm3.mh: Obsolete file.
6206 * config/mips/xm-mipsm3.h: Obsolete file.
6207 * mipsm3-nat.c: Obsolete file.
6208 * configure.host: Obsolete mips-dec-mach3*.
6209 * configure.tgt: Obsolete mips*-*-mach3*.
6210
6211 2003-04-09 Andrew Cagney <cagney@redhat.com>
6212
6213 * doublest.h: Update copyright.
6214 (deprecated_store_floating, deprecated_extract_floating): Rename
6215 store_floating and extract_floating. Update comments.
6216 * doublest.c: Update copyright.
6217 (extract_floating_by_length): Replace extract_floating.
6218 (store_floating_by_length): Replace store_floating.
6219 (deprecated_extract_floating): New function.
6220 (deprecated_store_floating): New function.
6221 (extract_typed_floating): Call extract_floating_by_length.
6222 (store_typed_floating): Call store_floating_by_length.
6223 * x86-64-tdep.c (x86_64_store_return_value): Update.
6224 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6225 (sh64_extract_return_value): Update.
6226 (sh_sh4_register_convert_to_virtual): Update.
6227 (sh_sh64_register_convert_to_virtual): Update.
6228 (sh_sh4_register_convert_to_raw): Update.
6229 (sh_sh64_register_convert_to_raw): Update.
6230 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6231 (rs6000_register_convert_to_raw): Update.
6232 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6233 (ia64_register_convert_to_raw): Update.
6234 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6235 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6236 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6237 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6238 (alpha_register_convert_to_raw): Update.
6239
6240 2003-04-08 Andrew Cagney <cagney@redhat.com>
6241
6242 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6243 * gdbarch.h, gdbarch.c: Re-generate.
6244 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6245 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6246 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6247 conditionally, use frame_pc_unwind as an alternative. Add
6248 comments.
6249 * arch-utils.c (init_frame_pc_default): Only call
6250 SAVED_PC_AFTER_CALL when available.
6251
6252 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6253
6254 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6255 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6256 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6257 (start_remote): Ditto.
6258 (handle_inferior_event): Ditto.
6259 (save_inferior_status): Ditto.
6260 (restore_inferior_status): Ditto.
6261 * infcmd.c (attach_command): Ditto.
6262 * fork-child.c (startup_inferior): Ditto.
6263 * inferior.h (stop_soon): Rename from stop_soon_quietly.
6264 * alpha-tdep.c (heuristic_proc_start): Ditto.
6265 * mips-tdep.c (heuristic_proc_start): Ditto.
6266 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6267 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6268 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6269 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6270 * remote-vx.c (vx_create_inferior): Ditto.
6271
6272 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6273
6274 * infrun.c (stop_soon_quietly): Make it an enum, to better
6275 override the default behavior of handle_inferior_event.
6276 (clear_proceed_status): Update uses of stop_soon_quietly to
6277 reflect that it is now an enum.
6278 (start_remote): Ditto.
6279 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6280 is set to handle the new GNU/Linux kernel behavior for
6281 attach/sigstop. Update uses of stop_soon_quietly.
6282 * inferior.h (enum stop_kind): New enum.
6283 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6284 Reset normal handle_inferior_event behavior, afterwards.
6285 * fork-child.c (startup_inferior): Update.
6286 * alpha-tdep.c (heuristic_proc_start): Update.
6287 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6288 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6289 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6290 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6291 * remote-vx.c (vx_create_inferior): Update.
6292 * mips-tdep.c (heuristic_proc_start): Update.
6293
6294 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
6295
6296 * disasm.c (dump_insns): Move variables inside loop, or they will
6297 be freed more than once, causing wild memory corruptions.
6298 (gdb_disassembly): Look for the substring "-thread",
6299 instead of "-threads" in the target name, to make sure to find
6300 the 'multi-thread' target. Also, make sure we do the right thing
6301 with the "core" target.
6302
6303 2003-04-07 Kevin Buettner <kevinb@redhat.com>
6304
6305 * mips-tdep.c (mips_print_fp_register): New function, created from
6306 do_fp_register_row(). Registers are now (also) printed as hex.
6307 Only one register is printed per row.
6308 (mips_print_register, do_fp_register_row): Print floating point
6309 registers with mips_print_fp_register().
6310
6311 2003-04-06 Andrew Cagney <cagney@redhat.com>
6312
6313 * valprint.h (inspect_it): Add extern declaration.
6314 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6315 (selectors_info, classes_info): Ditto.
6316 (find_objc_msgcall): Fix indentation.
6317 (objc_printstr): Delete extern declarations.
6318
6319 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6320
6321 2003-04-06 Andrew Cagney <cagney@redhat.com>
6322
6323 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6324 Update comment.
6325 * frame.c (legacy_saved_regs_this_id): Update.
6326 (legacy_get_prev_frame): Update.
6327 * xstormy16-tdep.c: Update comment.
6328 * sparc-tdep.c (sparc_frame_chain): Update comment.
6329 * blockframe.c (legacy_frame_chain_valid): Update.
6330
6331 2003-04-06 Andrew Cagney <cagney@redhat.com>
6332
6333 * valprint.c (val_print_type_code_int): Delete #ifdef
6334 PRINT_TYPELESS_INTEGER code.
6335
6336 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6337 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6338 multi-arch definition.
6339 * gdbarch.h: Re-generate.
6340
6341 2003-04-05 Andrew Cagney <cagney@redhat.com>
6342
6343 Eliminate FRAME_FIND_SAVED_REGS.
6344 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6345 Change FSR parameter to a pointer.
6346 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6347 Assume FSR parameter is a pointer.
6348 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6349 Make fsr a pointer.
6350 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6351 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6352 saved_regs a pointer.
6353 (hppa_frame_saved_pc): Ditto.
6354 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6355 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6356 pointer.
6357 (restore_pc_queue): Make fsr a pointer.
6358 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6359 (hppa_frame_chain): Make saved_regs a pointer, call
6360 hppa_frame_init_saved_regs.
6361 * sparc-tdep.c: Include "gdb_assert.h".
6362 (sparc_frame_find_saved_regs): Replace internal_error with
6363 gdb_assert.
6364 * remote-vxsparc.c (vx_read_register): Delete reference to
6365 FRAME_FIND_SAVED_REGS.
6366 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6367 * gdbarch.h: Regenerate.
6368 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6369 (deprecated_get_frame_saved_regs): Delete declaration.
6370 (struct frame_saved_regs): Delete definition.
6371 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6372 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6373 (hppa_frame_find_saved_regs): Delete declaration.
6374 (FRAME_FIND_SAVED_REGS): Delete macro.
6375 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6376 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6377 FRAME_FIND_SAVED_REGS in comment.
6378
6379 2003-04-05 Andrew Cagney <cagney@redhat.com>
6380
6381 * frame.c (frame_func_unwind, get_frame_func): New functions.
6382 * frame.h (get_frame_func, frame_func_unwind): Declare.
6383 (struct frame_info): Add field "prev_func" for caching the
6384 previous frame's function address.
6385 * arm-tdep.c (arm_frameless_function_invocation): Combine
6386 get_pc_function_start and get_frame_pc into get_frame_func.
6387 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6388 (sh64_nofp_frame_init_saved_regs): Ditto.
6389 * s390-tdep.c (s390_function_start): Ditto.
6390 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6391 (rs6000_frameless_function_invocation): Ditto.
6392 (rs6000_frame_saved_pc): Ditto.
6393 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6394 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6395 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6396 (i386_frame_init_saved_regs): Ditto.
6397 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6398 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6399 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6400 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6401 * blockframe.c (frameless_look_for_prologue): Ditto.
6402
6403 2003-04-05 Andrew Cagney <cagney@redhat.com>
6404
6405 * frame.c (legacy_get_prev_frame): Link prev to next at the
6406 function start. Update comments.
6407
6408 2003-04-05 Andrew Cagney <cagney@redhat.com>
6409
6410 * frame.c (get_frame_id): Update comment.
6411 (legacy_get_prev_frame): Update comment.
6412 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6413 * gdbarch.h: Regenerate.
6414 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6415 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6416
6417 2003-04-05 Andrew Cagney <cagney@redhat.com>
6418
6419 * stack.c (print_frame_info): Use get_frame_pc.
6420
6421 2003-04-04 Andrew Cagney <cagney@redhat.com>
6422
6423 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6424 the frame's type from the unwinder.
6425 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6426 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6427 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6428 (get_frame_base_address): Use get_frame_type.
6429 (get_frame_locals_address, get_frame_args_address): Ditto.
6430 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6431 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6432 (struct frame_info): Add comment explaining why the frame contains
6433 a "type" field.
6434 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6435 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6436 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6437 NORMAL_FRAME.
6438 * frame-unwind.h: Include "frame.h".
6439 (struct frame_unwind): Add "type" field.
6440 * Makefile.in (frame_unwind_h): Add $(frame_h).
6441
6442 2003-04-04 Andrew Cagney <cagney@redhat.com>
6443
6444 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6445 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6446 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6447 get_frame_base.
6448 (d10v_unwind_dummy_id): Use frame_id_build.
6449 * frame.c (find_frame_sal): Use get_frame_pc.
6450 (create_new_frame): Use deprecated_update_frame_pc_hack and
6451 deprecated_update_frame_base_hack.
6452 (create_sentinel_frame): Add comment about ->pc going away.
6453 (get_prev_frame): Add comment about ->pc going away.
6454 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6455 frame_id_build, deprecated_update_frame_pc_hack and
6456 deprecated_update_frame_base_hack.
6457 (select_frame): Use get_frame_pc.
6458 (legacy_saved_regs_this_id): Use frame_id_build.
6459
6460 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
6461
6462 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6463 signed integer case.
6464 (classify_argument): Handle enumerations and references.
6465
6466 2003-04-04 Andrew Cagney <cagney@redhat.com>
6467
6468 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6469 ID to NULL.
6470
6471 2003-04-01 Adam Fedor <fedor@gnu.org>
6472
6473 * gdb/objc-lang.c (selectors_info): Replace calls to
6474 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6475 SYMBOL_NATURAL_NAME.
6476 (classes_info, find_methods): Likewise.
6477
6478 2003-04-03 Kevin Buettner <kevinb@redhat.com>
6479
6480 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6481 ``mach'' to the value determined by bfd_default_set_arch_mach().
6482
6483 2003-04-02 Bob Rossi <bob_rossi@cox.net>
6484
6485 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6486 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6487 (mi-cmd-file.o): Update dependencies.
6488
6489 2003-04-01 Kevin Buettner <kevinb@redhat.com>
6490
6491 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6492 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6493
6494 2003-04-01 Adam Fedor <fedor@gnu.org>
6495
6496 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6497 * language.h (struct language_defn): Add la_demangle.
6498 (language_demangle): Declare.
6499 * language.c (language_demangle): New function.
6500 (unk_lang_demangle): Likewise.
6501 (unknown_language_defn, auto_language_defn, local_language_defn):
6502 Add ukn_lang_demangle.
6503 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6504 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6505 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6506 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6507 * jv-lang.c (java_demangle): New function
6508 (java_language_defn): Use it for la_demangle element.
6509 * objc-lang.c (objc_demangle): Add options argument
6510 (objc_language_defn): Use objc_demangle for la_demangle element.
6511 * maint.c (maintenance_demangle): Replace switch with
6512 call to language_demangle.
6513 * utils.c (fprintf_symbol_filtered): Likewise.
6514
6515 2003-04-01 Andrew Cagney <cagney@redhat.com>
6516
6517 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6518 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6519 PRINT_TYPELESS_INTEGER.
6520 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6521 PUSH_RETURN_ADDRESS.
6522
6523 2003-04-01 Andrew Cagney <cagney@redhat.com>
6524
6525 * Makefile.in (d10v-tdep.o): Update dependencies.
6526 * d10v-tdep.c: Include "frame-base.h".
6527 (d10v_frame_unwind): Make constant.
6528 (d10v_frame_base_address): New function.
6529 (d10v_frame_base): New variable.
6530 (d10v_gdbarch_init): Set frame_base default.
6531 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6532 comment for base.
6533 (d10v_frame_unwind_cache): Set and use "prev_sp".
6534 (d10v_frame_this_id): Use the previous frame's inner most stack
6535 address and this frame's func address for the frame ID. Use
6536 frame_id_build. Don't analyze beyond the current instruction.
6537
6538 2003-04-01 Andrew Cagney <cagney@redhat.com>
6539
6540 * frame.h (get_frame_locals_address, get_frame_args_address):
6541 Refer to the base address, instead of the address of the first
6542 local or parameter.
6543
6544 2003-04-01 Andrew Cagney <cagney@redhat.com>
6545
6546 Add frame debug info addresses:
6547 * frame-base.c: New file.
6548 * frame-base.h: New file.
6549 * frame.h (struct frame_base): Add opaque declaration.
6550 (get_frame_base): Update comment.
6551 (get_frame_base_address): Declare.
6552 (get_frame_locals_address): Declare.
6553 (get_frame_args_address): Declare.
6554 (struct frame_info): Add "base" and "base_cache". Update
6555 comments on the unwinder.
6556 * frame.c: Include "frame-base.h".
6557 (get_frame_locals_address): New function.
6558 (get_frame_base_address): New function.
6559 (get_frame_args_address): New function.
6560 * findvar.c (read_var_value): Use get_frame_locals_address and
6561 get_frame_args_address.
6562 * stack.c (frame_info): Use get_frame_locals_address and
6563 get_frame_args_address.
6564 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6565 moved to "frame-base.c".
6566 * printcmd.c (print_frame_nameless_args): Ditto.
6567 * symtab.h (address_class): Update comments.
6568 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6569 get_frame_base_address.
6570 * dwarf2expr.c (execute_stack_op): Ditto.
6571 * Makefile.in (frame_base_h): Define.
6572 (frame.o): Update dependencies.
6573 (frame-base.o): Add dependencies.
6574 (SFILES): Add frame-base.c.
6575 (COMMON_OBS): Add frame-base.o.
6576
6577 2003-04-01 Andrew Cagney <cagney@redhat.com>
6578
6579 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6580 CALL_DUMMY_LENGTH): Ditto.
6581 * gdbarch.c: Re-generate.
6582 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6583 (CALL_DUMMY_LENGTH): Delete macro.
6584 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6585 * arm-tdep.c (arm_gdbarch_init): Ditto.
6586 * avr-tdep.c (avr_gdbarch_init): Ditto.
6587 * cris-tdep.c (cris_gdbarch_init): Ditto.
6588 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6589 * frv-tdep.c (frv_gdbarch_init): Ditto.
6590 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6591 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6592 * i386-tdep.c (i386_gdbarch_init): Ditto.
6593 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6594 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6595 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6596 * mips-tdep.c (mips_gdbarch_init): Ditto.
6597 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6598 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6599 * s390-tdep.c (s390_gdbarch_init): Ditto.
6600 * sh-tdep.c (sh_gdbarch_init): Ditto.
6601 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6602 * v850-tdep.c (v850_gdbarch_init): Ditto.
6603 * vax-tdep.c (vax_gdbarch_init): Ditto.
6604 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6605
6606 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
6607
6608 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6609
6610 2003-04-01 Andrew Cagney <cagney@redhat.com>
6611
6612 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6613 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6614 * gdbarch.h, gdbarch.c: Re-generate.
6615 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6616 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6617 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6618 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6619 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6620 * infcmd.c (run_stack_dummy): Simplify assuming
6621 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6622 * infrun.c (handle_inferior_event): Ditto.
6623 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6624 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6625 * arm-tdep.c (arm_gdbarch_init): Ditto.
6626 * avr-tdep.c (avr_gdbarch_init): Ditto.
6627 * cris-tdep.c (cris_gdbarch_init): Ditto.
6628 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6629 * frv-tdep.c (frv_gdbarch_init): Ditto.
6630 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6631 * i386-tdep.c (i386_gdbarch_init): Ditto.
6632 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6633 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6634 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6635 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6636 * mips-tdep.c (mips_gdbarch_init): Ditto.
6637 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6638 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6639 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6640 * s390-tdep.c (s390_gdbarch_init): Ditto.
6641 * sh-tdep.c (sh_gdbarch_init): Ditto.
6642 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6643 * v850-tdep.c (v850_gdbarch_init): Ditto.
6644 * vax-tdep.c (vax_gdbarch_init): Ditto.
6645 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6646
6647 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
6648
6649 * symfile.c (symfile_relocate_debug_section): Update call to
6650 bfd_simple_get_relocated_section_contents.
6651
6652 2003-03-31 Andrew Cagney <cagney@redhat.com>
6653
6654 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6655 * gdbarch.h, gdbarch.c: Regenerate.
6656 * inferior.h (FIX_CALL_DUMMY): Delete macro.
6657 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
6658 available.
6659 * frame.h (generic_fix_call_dummy): Delete declaration.
6660 * dummy-frame.h: Update comment.
6661 * dummy-frame.c (generic_fix_call_dummy): Delete function.
6662 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6663 fix_call_dummy.
6664 * sh-tdep.c (sh_gdbarch_init): Ditto.
6665 * s390-tdep.c (s390_gdbarch_init): Ditto.
6666 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6667 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6668 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6669 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6670 * i386-tdep.c (i386_gdbarch_init): Ditto.
6671 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6672 * frv-tdep.c (frv_gdbarch_init): Ditto.
6673 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6674 * cris-tdep.c (cris_gdbarch_init): Ditto.
6675 * avr-tdep.c (avr_gdbarch_init): Ditto.
6676 * arm-tdep.c (arm_gdbarch_init): Ditto.
6677
6678 2003-03-31 J. Brobecker <brobecker@gnat.com>
6679
6680 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
6681 (INIT_FRAME_AP): Likewise.
6682 (EXTRA_FRAME_INFO): Likewise.
6683
6684 2003-03-31 Andrew Cagney <cagney@redhat.com>
6685
6686 * gdbarch.sh: Include "symfile.h".
6687 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
6688 * gdbarch.h, gdbarch.c: Re-generate.
6689 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
6690 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6691 call_dummy_address, the default is at entry_point_address.
6692 * v850-tdep.c (v850_gdbarch_init): Ditto.
6693 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6694 * sh-tdep.c (sh_gdbarch_init): Ditto.
6695 * s390-tdep.c (s390_gdbarch_init): Ditto.
6696 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6697 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6698 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6699 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6700 * i386-tdep.c (i386_gdbarch_init): Ditto.
6701 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6702 * frv-tdep.c (frv_gdbarch_init): Ditto.
6703 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6704 * cris-tdep.c (cris_gdbarch_init): Ditto.
6705 * arm-tdep.c (arm_gdbarch_init): Ditto.
6706
6707 2003-03-31 Andrew Cagney <cagney@redhat.com>
6708
6709 * gdbarch.sh (CALL_DUMMY_P): Delete.
6710 * gdbarch.h, gdbarch.c: Re-generate.
6711 * inferior.h (CALL_DUMMY_P): Delete macro.
6712 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6713 * vax-tdep.c (vax_gdbarch_init): Update.
6714 * v850-tdep.c (v850_gdbarch_init): Update.
6715 * sparc-tdep.c (sparc_gdbarch_init): Update.
6716 * sh-tdep.c (sh_gdbarch_init): Update.
6717 * s390-tdep.c (s390_gdbarch_init): Update.
6718 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6719 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6720 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6721 * mips-tdep.c (mips_gdbarch_init): Update.
6722 * mcore-tdep.c (mcore_gdbarch_init): Update.
6723 * m68k-tdep.c (m68k_gdbarch_init): Update.
6724 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6725 * ia64-tdep.c (ia64_gdbarch_init): Update.
6726 * i386-tdep.c (i386_gdbarch_init): Update.
6727 * h8300-tdep.c (h8300_gdbarch_init): Update.
6728 * frv-tdep.c (frv_gdbarch_init): Update.
6729 * d10v-tdep.c (d10v_gdbarch_init): Update.
6730 * cris-tdep.c (cris_gdbarch_init): Update.
6731 * breakpoint.c (deprecated_frame_in_dummy): Update.
6732 * avr-tdep.c (avr_gdbarch_init): Update.
6733 * alpha-tdep.c (alpha_gdbarch_init): Update.
6734 * arm-tdep.c (arm_gdbarch_init): Update.
6735 * dummy-frame.c (dummy_frame_this_id): Update comments.
6736 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
6737 * frame.c (legacy_get_prev_frame): Ditto.
6738 * valops.c (call_function_by_hand): Delete function.
6739 (hand_function_call): Rename to call_function_by_hand
6740
6741 2003-03-30 Andrew Cagney <cagney@redhat.com>
6742
6743 2002-11-10 Klee Dienes <kdienes@apple.com>
6744 * value.h (struct value): Update comment.
6745
6746 2003-03-30 Andrew Cagney <cagney@redhat.com>
6747
6748 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
6749 D10V_FP_REGNUM.
6750 (d10v_gdbarch_init): Do not set fp_regnum.
6751
6752 * frame.c (get_frame_base): Force ID initialization.
6753 (get_prev_frame): Move computation of the frame ID from here ...
6754 (get_frame_id): ... to here.
6755 (legacy_get_prev_frame): Mark the frame ID as valid.
6756 * frame.h (struct frame_info): Add field "id_p".
6757
6758 2003-03-30 Mark Kettenis <kettenis@gnu.org>
6759
6760 * i386-tdep.c (i386_store_struct_return): Removed.
6761 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
6762
6763 2003-03-30 Andrew Cagney <cagney@redhat.com>
6764
6765 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
6766 * gdbarch.h, gdbarch.c: Regenerate.
6767 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
6768 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6769 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6770 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6771 * i386-tdep.c (i386_gdbarch_init): Ditto.
6772 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6773 * cris-tdep.c (cris_gdbarch_init): Ditto.
6774 * vax-tdep.c (vax_gdbarch_init): Ditto.
6775 * s390-tdep.c (s390_gdbarch_init): Ditto.
6776 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6777 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6778 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6779 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
6780 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6781 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
6782 * sparc-tdep.c (sparc_gdbarch_init): Update.
6783 * sh-tdep.c (sh_gdbarch_init): Update.
6784 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6785 * mips-tdep.c (mips_gdbarch_init): Update.
6786 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6787 * ia64-tdep.c (ia64_gdbarch_init): Update.
6788 * frv-tdep.c (frv_gdbarch_init): Update.
6789 * avr-tdep.c (avr_gdbarch_init): Update.
6790 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
6791 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
6792 instead of when push_dummy_call is not available.
6793
6794 2003-03-30 Andrew Cagney <cagney@redhat.com>
6795
6796 * infttrace.c: Include "gdbthread.h".
6797 (parent_attach_all): Fix function signature.
6798 (call_ptrace): Update call.
6799 * Makefile.in (infttrace.o): Update dependencies.
6800
6801 2003-03-30 Andrew Cagney <cagney@redhat.com>
6802
6803 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
6804 PUSH_RETURN_ADDRESS.
6805 * gdbarch.h, gdbarch.c: Regenerate.
6806 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6807 * x86-64-tdep.c (x86_64_init_abi): Update.
6808 * v850-tdep.c (v850_gdbarch_init): Update.
6809 * sparc-tdep.c (sparc_gdbarch_init): Update.
6810 * sh-tdep.c (sh_gdbarch_init): Update.
6811 * s390-tdep.c (s390_gdbarch_init): Update.
6812 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6813 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6814 * mips-tdep.c (mips_gdbarch_init): Update.
6815 * mcore-tdep.c (mcore_gdbarch_init): Update.
6816 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6817 * ia64-tdep.c (ia64_gdbarch_init): Update.
6818 * i386-tdep.c (i386_gdbarch_init): Update.
6819 * h8300-tdep.c (h8300_gdbarch_init): Update.
6820 * frv-tdep.c (frv_gdbarch_init): Update.
6821 * cris-tdep.c (cris_gdbarch_init): Update.
6822 * avr-tdep.c (avr_gdbarch_init): Update.
6823 * arm-tdep.c (arm_gdbarch_init): Update.
6824 * valops.c (hand_function_call): Update.
6825
6826 2003-03-29 Andrew Cagney <cagney@redhat.com>
6827
6828 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
6829 sizeof_call_dummy_words.
6830 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
6831 define.
6832 * gdbarch.h: Regenerate.
6833
6834 2003-03-29 Andrew Cagney <cagney@redhat.com>
6835
6836 * infttrace.h: New file.
6837 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
6838 (hpread_get_textlow): Detect an uninitialized dn_bufp.
6839 (hpread_read_doc_function_type): Detect an initialized type1.
6840 (hpread_quick_traverse): Initialize mod_name_string.
6841 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
6842 (som_solib_get_solib_by_pc): Declare.
6843 (so_lib_thread_start_addr): Declare.
6844 (no_shared_libraries): Declare.
6845 * somread.c (init_import_symbols): Make static. Add forward
6846 declaration.
6847 * config/pa/nm-hppah.h: Include "infttrace.h" for
6848 parent_attach_all.
6849 (hppa_insert_hw_watchpoint): Declare.
6850 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
6851 * hppah-nat.c: Include "gdb_string.h".
6852 (parent_attach_all): Delete extern declaration, moved to
6853 "infttrace.h".
6854 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
6855 int.
6856 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
6857 * Makefile.in (infttrace_h): Define.
6858 (hpread.o): Update dependencies.
6859 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
6860 * hppa-hpux-tdep.c: Include "gdb_string.h".
6861 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
6862 * infrun.c (handle_inferior_event): Always initialize
6863 stepped_after_stopped_by_watchpoint. Add default and remove
6864 fallthrough in switch statement.
6865 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
6866 parameter to int.
6867 (hppa_remove_hw_watchpoint): Ditto.
6868
6869 2003-03-29 Andrew Cagney <cagney@redhat.com>
6870
6871 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
6872 offset.
6873
6874 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
6875
6876 * arm-tdep.c (arm_push_arguments): Delete.
6877 (struct stack_item): New type.
6878 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
6879 (arm_store_struct_return): Delte.
6880 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
6881 arm_push_arguments or arm_store_struct_return.
6882
6883 2003-03-28 Andrew Cagney <cagney@redhat.com>
6884
6885 * Makefile.in (d10v-tdep.o): Update dependencies.
6886 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
6887 * d10v-tdep.c: Include "remote.h".
6888 (target_resume_hook): Delete extern declaration.
6889 (target_wait_loop_hook): Ditto.
6890 (tdisassemble_command): Eliminate assignment in "if" conditional.
6891 (d10v_ts2_register_sim_regno): Eliminate call to
6892 legacy_register_sim_regno.
6893 (d10v_ts3_register_sim_regno): Ditto.
6894
6895 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
6896
6897 * thread.c: Reindented.
6898 * lin-lwp.c: Ditto.
6899 * linux-proc.c: Ditto.
6900
6901 2003-03-28 Bob Rossi <bob_rossi@cox.net>
6902
6903 * MAINTAINERS (write after approval): Add myself.
6904
6905 2003-03-27 Theodore A. Roth <troth@openavr.org>
6906
6907 * objc-exp.y: Add missing semi-colons.
6908
6909 2003-03-27 Andrew Cagney <cagney@redhat.com>
6910
6911 * regcache.c (write_sp): Delete function and references.
6912 * inferior.h (write_sp): Delete declaration.
6913 * valops.c (hand_function_call): Replace write_sp with
6914 TARGET_WRITE_SP.
6915 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
6916 (sparc_pop_frame): Ditto.
6917
6918 2003-03-27 Andrew Cagney <cagney@redhat.com>
6919
6920 * NEWS: Mention removal of support for hppa*-*-bsd* and
6921 hppa*-*-osf* natives, and hppa*-*-pro* target.
6922 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
6923 * config/pa/xm-pa.h: Obsolete file.
6924 * config/pa/xm-hppab.h: Obsolete file.
6925 * config/pa/nm-hppab.h: Obsolete file.
6926 * config/pa/tm-hppab.h: Obsolete file.
6927 * config/pa/tm-hppao.h: Obsolete file.
6928 * config/pa/nm-hppao.h: Obsolete file.
6929 * config/pa/tm-pro.h: Obsolete file.
6930 * config/pa/hppaosf.mt: Obsolete file.
6931 * config/pa/hppaosf.mh: Obsolete file.
6932 * config/pa/hppapro.mt: Obsolete file.
6933 * config/pa/hppabsd.mt: Obsolete file.
6934 * config/pa/hppabsd.mh: Obsolete file.
6935 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
6936 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
6937 hppa*-*-osf*.
6938
6939 2003-03-27 Andrew Cagney <cagney@redhat.com>
6940
6941 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
6942 push_arguments. Don't set push_return_address or write_sp.
6943 (d10v_push_dummy_call): Replace d10v_push_arguments.
6944 (d10v_push_return_address, d10v_write_sp): Delete function,
6945 handled by push_dummy_call.
6946
6947 2003-03-26 Andrew Cagney <cagney@redhat.com>
6948
6949 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
6950 (push_dummy_call): New pure multi-arch replacement with gdbarch,
6951 regcache and dummy_addr parameters.
6952 * gdbarch.h, gdbarch.c: Re-generate.
6953 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
6954 available; assume it will handle stack alignment and return
6955 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
6956 legacy_push_arguments.
6957 (legacy_push_arguments): Rename default_push_arguments.
6958 * value.h (legacy_push_arguments): Rename default_push_arguments.
6959 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
6960 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6961 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6962 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6963 * config/i386/tm-symmetry.h: Update.
6964 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6965 * x86-64-tdep.c (x86_64_init_abi): Update.
6966 * v850-tdep.c (v850_gdbarch_init): Update.
6967 * sparc-tdep.c (sparc_gdbarch_init): Update.
6968 * sh-tdep.c (sh_gdbarch_init): Update.
6969 * s390-tdep.c (s390_gdbarch_init): Update.
6970 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6971 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6972 * mips-tdep.c (mips_gdbarch_init): Update.
6973 * mcore-tdep.c (mcore_gdbarch_init): Update.
6974 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6975 * ia64-tdep.c (ia64_gdbarch_init): Update.
6976 * i386-tdep.c (i386_gdbarch_init): Update.
6977 * hppa-tdep.c (hppa_gdbarch_init): Update.
6978 * h8300-tdep.c (h8300_gdbarch_init): Update.
6979 * frv-tdep.c (frv_gdbarch_init): Update.
6980 * d10v-tdep.c (d10v_gdbarch_init): Update.
6981 * cris-tdep.c (cris_gdbarch_init): Update.
6982 * avr-tdep.c (avr_gdbarch_init): Update.
6983 * arm-tdep.c (arm_gdbarch_init): Update.
6984 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6985 * alpha-tdep.c (alpha_gdbarch_init): Update.
6986
6987 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6988
6989 * signals/signals.c (do_target_signal_to_host): Correct realtime
6990 signal range test.
6991
6992 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6993
6994 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
6995 (struct sal_chain, map_catch_names): Remove.
6996 (catch_exception_command_1): Don't call
6997 handle_gnu_4_16_catch_command.
6998
6999 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7000
7001 From Mark Dettinger <dettinge@de.ibm.com>:
7002 * dwarf2cfi.c (read_2u): Increment pointer by two.
7003
7004 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7005
7006 * signals/signals.c: Fix typos in last change.
7007
7008 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7009
7010 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
7011 not already defined. Use __SIGRTMIN if available.
7012 (target_signal_from_host): Remove SIGRTMIN block.
7013 (do_target_signal_to_host): Remove SIGRTMIN block; check that
7014 the signal is within the realtime range.
7015
7016 2003-03-25 Adam Fedor <fedor@gnu.org>
7017
7018 * Makefile.in (infrun.o): Add $(language_h)
7019 * infrun.c (handle_inferior_event): Use skip_language_trampoline
7020 for language specific trampolines.
7021 * language.h (struct language_defn): Add skip_trampoline.
7022 (skip_language_trampoline): Declare.
7023 * language.c (unk_lang_trampoline, skip_language_trampoline):
7024 New functions.
7025 (unknown_language_defn, auto_language_defn, local_language_defn):
7026 Add ukn_lang_trampoline.
7027 * ada-lang.c (ada_language_defn): Add NULL for language
7028 specific skip_trampoline.
7029 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7030 scm-lang.c: Likewise.
7031 * objc-lang.c (objc_skip_trampoline): New function.
7032 (objc_language_defn): Add objc_skip_trampoline.
7033
7034 2003-03-25 Andrew Cagney <cagney@redhat.com>
7035
7036 * frame.c (get_prev_frame): Delay validating a frame's ID -
7037 non-NULL, didn't go backwards - until an attempt to unwind it to
7038 the previous frame.
7039
7040 2003-03-25 Andrew Cagney <cagney@redhat.com>
7041
7042 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7043 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7044 * gdbarch.h, gdbarch.c: Re-generate.
7045 * config/sparc/tm-sparc.h
7046 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7047 * sparc-tdep.c (sparc_gdbarch_init): Set
7048 deprecated_extra_stack_alignment_needed.
7049 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7050 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7051 extra_stack_alignment_needed.
7052 * v850-tdep.c (v850_gdbarch_init): Ditto.
7053 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7054 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7055 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7056 * cris-tdep.c (cris_gdbarch_init): Ditto.
7057 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7058 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7059
7060 2003-03-25 Andrew Cagney <cagney@redhat.com>
7061
7062 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7063 STORE_STRUCT_RETURN.
7064 * gdbarch.h, gdbarch.c: Regenerate.
7065 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7066 (d10v_push_arguments): Set the struct return register.
7067 (d10v_gdbarch_init): Update.
7068 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7069 * x86-64-tdep.c (x86_64_init_abi): Update.
7070 * vax-tdep.c (vax_gdbarch_init): Update.
7071 * v850-tdep.c (v850_gdbarch_init): Update.
7072 * sparc-tdep.c (sparc_gdbarch_init): Update.
7073 * sh-tdep.c (sh_gdbarch_init): Update.
7074 * s390-tdep.c (s390_gdbarch_init): Update.
7075 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7076 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7077 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7078 * mips-tdep.c (mips_gdbarch_init): Update.
7079 * mcore-tdep.c (mcore_gdbarch_init): Update.
7080 * m68k-tdep.c (m68k_gdbarch_init): Update.
7081 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7082 * ia64-tdep.c (ia64_gdbarch_init): Update.
7083 * i386-tdep.c (i386_gdbarch_init): Update.
7084 * hppa-tdep.c (hppa_gdbarch_init): Update.
7085 * h8300-tdep.c (h8300_gdbarch_init): Update.
7086 * frv-tdep.c (frv_gdbarch_init): Update.
7087 * cris-tdep.c (cris_gdbarch_init): Update.
7088 * avr-tdep.c (avr_gdbarch_init): Update.
7089 * arm-tdep.c (arm_gdbarch_init): Update.
7090 * alpha-tdep.c (alpha_gdbarch_init): Update.
7091
7092 2003-03-25 Andrew Cagney <cagney@redhat.com>
7093
7094 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7095 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7096 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7097 * gdbarch.h, gdbarch.c: Regenerate.
7098 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7099 call_dummy_stack_adjust_p.
7100 * vax-tdep.c (vax_gdbarch_init): Ditto.
7101 * v850-tdep.c (v850_gdbarch_init): Ditto.
7102 * sh-tdep.c (sh_gdbarch_init): Ditto.
7103 * s390-tdep.c (s390_gdbarch_init): Ditto.
7104 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7105 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7106 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7107 * mips-tdep.c (mips_gdbarch_init): Ditto.
7108 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7109 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7110 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7111 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7112 * i386-tdep.c (i386_gdbarch_init): Ditto.
7113 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7114 * frv-tdep.c (frv_gdbarch_init): Ditto.
7115 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7116 * cris-tdep.c (cris_gdbarch_init): Ditto.
7117 * avr-tdep.c (avr_gdbarch_init): Ditto.
7118 * arm-tdep.c (arm_gdbarch_init): Ditto.
7119 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7120 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7121 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7122 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7123 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7124 call_dummy_stack_adjust_p.
7125 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7126 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7127 * sparc-tdep.c (sparc32_push_arguments): Update.
7128 * valops.c (hand_function_call): Update.
7129
7130 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7131
7132 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7133 set_gdbarch_char_signed.
7134
7135 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7136
7137 PR cli/548
7138 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7139
7140 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7141
7142 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7143 (_initialize_arm_tdep): Don't set tm_print_insn.
7144
7145 2003-03-24 Adam Fedor <fedor@gnu.org>
7146
7147 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7148 * objc-lang.h: Add multiple inclusion protection.
7149 (start_msglist, add_msglist, end_msglist): Additional declarations.
7150
7151 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7152
7153 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7154 value was renamed to ARM_FLOAT_SOFT_FPA.
7155
7156 2003-03-23 Andrew Cagney <cagney@redhat.com>
7157
7158 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7159 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7160 * gdbarch.h, gdbarch.c: Regenerate.
7161 * valops.c (hand_function_call): Update.
7162 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7163 * frame.c (legacy_saved_regs_this_id): Update.
7164 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7165 * dummy-frame.h: Update.
7166 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7167 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7168 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7169 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7170 * config/m68k/tm-sun3.h: Update.
7171 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7172 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7173 * x86-64-tdep.c (x86_64_init_abi): Update.
7174 * vax-tdep.c (vax_gdbarch_init): Update.
7175 * v850-tdep.c (v850_gdbarch_init): Update.
7176 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7177 * sh-tdep.c (sh_gdbarch_init): Update.
7178 * s390-tdep.c (s390_gdbarch_init): Update.
7179 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7180 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7181 (frame_get_saved_regs): Update.
7182 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7183 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7184 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7185 * mips-tdep.c (mips_gdbarch_init): Update.
7186 * mcore-tdep.c (mcore_gdbarch_init): Update.
7187 * m68k-tdep.c (m68k_gdbarch_init): Update.
7188 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7189 * ia64-tdep.c (ia64_gdbarch_init): Update.
7190 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7191 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7192 (i386_interix_back_one_frame): Update.
7193 * hppa-tdep.c (hppa_gdbarch_init): Update.
7194 (hppa_init_extra_frame_info): Update.
7195 * h8300-tdep.c (h8300_gdbarch_init): Update.
7196 * frv-tdep.c (frv_gdbarch_init): Update.
7197 * cris-tdep.c (cris_gdbarch_init): Update.
7198 * avr-tdep.c (avr_gdbarch_init): Update.
7199 * arm-tdep.c (arm_gdbarch_init): Update.
7200 * alpha-tdep.c (alpha_gdbarch_init): Update.
7201
7202 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7203
7204 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7205 (arm_get_fp_model): Declare.
7206 * arm-tdep.c (fp_model_strings): New string array.
7207 (arm_fp_model, current_fp_model): New variables.
7208 (arm_get_fp_model): New function.
7209 (arm_set_fp): New function.
7210 (set_fp_model_sfunc): New function.
7211 (show_fp_model): New function.
7212 (_initialize_arm_tdep): Add new command to set/show the FPU.
7213 (arm_extract_return_value): Use arm_get_fp_model.
7214 (arm_store_return_value): Likewise.
7215 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7216 to initialize the floating-point data types.
7217 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7218 model is FPA.
7219
7220 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7221
7222 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7223 the current setting of each value.
7224 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7225 new_set and new_show. Use add_setshow_cmd_full and
7226 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7227 commands and add new version as subcommands of "set/show arm".
7228
7229 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7230
7231 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7232 (set_arm_command, show_arm_command): New functions.
7233 (_initialize_arm_tdep): Add them.
7234 (num_disassembly_options): Renamed from num_flavor_options.
7235 (valid_disassembly_styles): Renamed from valid_flavors.
7236 (disassembly_style): Renamed from disassembly_flavor.
7237 (set_disassembly_style_sfunc): Renamed from
7238 set_disassembly_flavor_sfunc.
7239 (set_disassembly_style): Renamed from set_disassembly_flavor.
7240 (arm_othernames): Updated.
7241 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7242 command. Add "set/show arm disassembly" commands. Deprecate
7243 "othernames" command.
7244
7245 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7246
7247 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7248 (arm-tdep.o): Depend on elf_arm_h.
7249
7250 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7251
7252 * Makefile.in (coff_internal_h): Define.
7253 (arm-tdep.o): Update dependencies.
7254
7255 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7256
7257 * arm-tdep.c (prologue_cache): Delete.
7258 (check_prologue_cache, save_prologue_cache): Delete.
7259 (arm_scan_prologue): Don't check or update the prologue_cache.
7260 (arm_gdb_arch_init): Don't initialize it.
7261 (_initialize_arm_tdep): Likewise.
7262
7263 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7264
7265 * MAINTAINERS (tui): Maintainer of tui code.
7266
7267 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
7268
7269 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7270 (i386-cygwin-tdep.o): Add dependencies.
7271 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7272 * i386-cygwin-tdep.c: New file.
7273 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7274 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7275
7276 2003-03-20 Andrew Cagney <cagney@redhat.com>
7277
7278 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7279 (handle_inferior_event): Remove code calling
7280 DYNAMIC_TRAMPOLINE_NEXTPC.
7281
7282 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7283 already has a full path.
7284
7285 * main.c (gdb_main): Return 1.
7286 (captured_main): Call error to report an invalid interpreter.
7287
7288 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7289 * alpha-osf1-tdep.c: Include "gdb_string.h".
7290
7291 2003-03-19 J. Brobecker <brobecker@gnat.com>
7292
7293 Continuing work to convert the hppa targets to multiarch partial.
7294
7295 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7296 method, now that hppa_push_dummy_frame has a conformant prototype.
7297 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7298 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7299 for the switch to multiarch partial.
7300
7301 2003-03-19 Kevin Buettner <kevinb@redhat.com>
7302
7303 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7304 when iss is issNull.
7305
7306 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7307
7308 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7309 NUM_REGS bounds check.
7310
7311 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7312
7313 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7314 * mips-tdep.c (gdb_assert.h): Include.
7315 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7316 (mips_register_name): Handle integer registers explicitly. Add
7317 bounds checking.
7318 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7319 (mips_lsi33k_reg_names): Don't list integer registers; they're
7320 handled by mips_register_name() now.
7321 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7322 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7323 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7324 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7325 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7326
7327 2003-03-18 Andrew Cagney <cagney@redhat.com>
7328
7329 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7330 a void pointer.
7331 * gdbtypes.h (print_scalar_formatted): Update declaration.
7332 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7333
7334 2003-03-18 J. Brobecker <brobecker@gnat.com>
7335
7336 * infrun.c (observer.h): Add #include.
7337 (normal_stop): Add call to observer_notify_normal_stop.
7338 * Makefile.in (infrun.o): Add dependency on observer.h.
7339
7340 2003-03-18 J. Brobecker <brobecker@gnat.com>
7341
7342 Continuing work to convert the hppa targets to multiarch partial.
7343 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7344 parameter. Reformat comment.
7345 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7346 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7347 to match new profile.
7348
7349 2003-03-18 J. Brobecker <brobecker@gnat.com>
7350
7351 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7352 appear to be working in any case.
7353
7354 2003-03-18 J. Brobecker <brobecker@gnat.com>
7355
7356 * observer.c (observer_test_first_observer): New static variable.
7357 (observer_test_second_observer): Likewise.
7358 (observer_test_third_observer): Likewise.
7359 (observer_test_first_notification_function): New static function.
7360 (observer_test_second_notification_function): Likewise.
7361 (observer_test_third_notification_function): Likewise.
7362
7363 2003-03-17 J. Brobecker <brobecker@gnat.com>
7364
7365 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7366 * somsolib.c (gdb_assert.h): Likewise.
7367 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7368 (somsolib.o): Likewise.
7369
7370 2003-03-17 Andrew Cagney <cagney@redhat.com>
7371
7372 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7373 BFD. Simplify setting of di.endian.
7374
7375 2003-03-17 Andrew Cagney <cagney@redhat.com>
7376
7377 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7378 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7379
7380 From Elena Zannoni <ezannoni@redhat.com>
7381 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7382 vector and floating-point parameters.
7383 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7384 convention.
7385 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7386
7387 2003-03-17 Fernando Nasser <fnasser@redhat.com>
7388
7389 * MAINTAINERS: Remove my name from several maintainership roles.
7390
7391 2003-03-17 Andrew Cagney <cagney@redhat.com>
7392
7393 Fix frame off-by-one bug.
7394 * frame-unwind.h (frame_this_id_ftype): Replace
7395 frame_unwind_id_ftype.
7396 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7397 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7398 with "prev_register".
7399 * frame-unwind.c (frame_unwind_find_by_pc): Return
7400 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7401 comment.
7402 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7403 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7404 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7405 (dummy_frame_unwind): Update.
7406 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7407 sentinel_frame_register_unwind.
7408 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7409 (sentinel_frame_unwinder): Update.
7410 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7411 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7412 * frame.c (create_sentinel_frame): Update. Initialize
7413 "prologue_cache" instead of "unwind_cache".
7414 (frame_register_unwind): Call this frame's prev_register with the
7415 next frame and this frame's prologue cache.
7416 (get_prev_frame): Simplify. Always call prev frame's this_id with
7417 this frame and prev frame's prologue cache. Document that this
7418 call is shifted one to the left when compared to the
7419 frame_register_unwind call.
7420 (legacy_saved_regs_prev_register): Replace
7421 frame_saved_regs_register_unwind.
7422 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7423 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7424 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7425 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7426 (d10v_frame_unwind): Update.
7427 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7428 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7429 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7430 "saved_regs" with "this_saved_regs".
7431
7432 2003-03-16 Andrew Cagney <cagney@redhat.com>
7433
7434 * frame.c (frame_pop): Don't call target_store_registers. Fix
7435 problem reported by Mark Kettenis.
7436
7437 2003-03-16 Mark Kettenis <kettenis@gnu.org>
7438
7439 * i386-tdep.c (i386_register_type): Renamed from
7440 i386_register_virtual_type. Adjust function signature.
7441 (i386_gdbarch_init): Set register_type instead of
7442 deprecated_max_register_raw_size,
7443 deprecated_max_register_virtual_size and register_virtual_type.
7444
7445 2003-03-14 Andrew Cagney <cagney@redhat.com>
7446
7447 * frame.c (get_prev_frame): When a legacy frame, always call
7448 legacy_get_prev_frame. Simplify unwind code using assumption that
7449 the unwinder is new.
7450 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7451 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7452 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7453
7454 2003-03-14 Andrew Cagney <cagney@redhat.com>
7455
7456 * frame.c (get_saved_register): Delete function.
7457 * frame.h (get_saved_register): Delete declaration.
7458 * xstormy16-tdep.c: Update comment.
7459 * regcache.h: Update comments.
7460 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7461 get_saved_register and extract_address, use
7462 frame_read_unsigned_register.
7463 (sparc_frame_saved_pc): Ditto.
7464 (sparc_get_saved_register): Instead of get_saved_register, use
7465 frame_register.
7466 (sparc_pop_frame): Ditto.
7467 * findvar.c: Update comments.
7468 (value_of_register): Call frame_register instead of
7469 get_saved_register.
7470 (value_from_register): Ditto.
7471 * config/sparc/tm-sparc.h: Update comment.
7472 * breakpoint.c: Update comment.
7473
7474 2003-03-14 Andrew Cagney <cagney@redhat.com>
7475
7476 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7477 GET_SAVED_REGISTER.
7478 * gdbarch.h, gdbarch.c: Re-generate.
7479 * frame.h: Update comments.
7480 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7481 * x86-64-tdep.c (x86_64_init_abi): Update.
7482 * sparc-tdep.c (sparc_gdbarch_init): Update.
7483 * sh-tdep.c (sh_gdbarch_init): Update.
7484 * mips-tdep.c (mips_gdbarch_init): Update.
7485 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7486 * cris-tdep.c (cris_gdbarch_init): Update.
7487 * ia64-tdep.c (ia64_gdbarch_init): Update.
7488 * frame.c (frame_register): Update.
7489 (get_saved_register): Update.
7490 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7491
7492 2003-03-13 Andrew Cagney <cagney@redhat.com>
7493
7494 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7495 * gdbarch.h, gdbarch.c: Regenerate.
7496 * valops.c (hand_function_call): Update comment.
7497 * stack.c (return_command): Update comment.
7498 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7499 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7500 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7501 * x86-64-tdep.c (x86_64_init_abi): Update.
7502 * vax-tdep.c (vax_gdbarch_init): Update.
7503 * v850-tdep.c (v850_gdbarch_init): Update.
7504 * sparc-tdep.c (sparc_gdbarch_init): Update.
7505 * sh-tdep.c (sh_gdbarch_init): Update.
7506 * s390-tdep.c (s390_gdbarch_init): Update.
7507 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7508 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7509 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7510 * mips-tdep.c (mips_gdbarch_init): Update.
7511 * mcore-tdep.c (mcore_gdbarch_init): Update.
7512 * m68k-tdep.c (m68k_gdbarch_init): Update.
7513 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7514 * ia64-tdep.c (ia64_gdbarch_init): Update.
7515 * i386-tdep.c (i386_gdbarch_init): Update.
7516 * hppa-tdep.c (hppa_gdbarch_init): Update.
7517 * h8300-tdep.c (h8300_gdbarch_init): Update.
7518 * frv-tdep.c (frv_gdbarch_init): Update.
7519 * cris-tdep.c (cris_gdbarch_init): Update.
7520 * avr-tdep.c (avr_gdbarch_init): Update.
7521 * arm-tdep.c (arm_gdbarch_init): Update.
7522 * alpha-tdep.c (alpha_gdbarch_init): Update.
7523
7524 2003-03-13 Andrew Cagney <cagney@redhat.com>
7525
7526 * frame.c (legacy_frame_p): New function.
7527 (get_prev_frame): Use legacy_frame_p.
7528 * frame.h (legacy_frame_p): Declare.
7529
7530 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7531
7532 * MAINTAINERS (write after approval): Alphabetically
7533 listing corrected.
7534
7535 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7536
7537 * MAINTAINERS (write after approval): Add myself.
7538
7539 2003-03-12 Andrew Cagney <cagney@redhat.com>
7540
7541 * frame.c (get_prev_frame): Rename the frame parameter to
7542 "this_frame".
7543 (get_next_frame, legacy_get_prev_frame): Ditto.
7544
7545 2003-03-12 Andrew Cagney <cagney@redhat.com>
7546
7547 * frame.c (get_current_frame): Check target_has_registers before
7548 checking target_has_stack.
7549 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7550 instead of deprecated_selected_frame.
7551 * findvar.c (value_of_register): Pass "frame", not
7552 deprecated_selected_frame, to value_of_builtin_reg.
7553
7554 2003-03-12 Andrew Cagney <cagney@redhat.com>
7555
7556 * regcache.c (regcache_cooked_write_signed): New function.
7557 (regcache_cooked_write_unsigned): New function.
7558 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7559 (regcache_cooked_read_signed): Fix regnum in range assertion.
7560 * regcache.h (regcache_cooked_write_signed): Declare.
7561 (regcache_cooked_write_unsigned): Declare.
7562
7563 2003-03-12 Andrew Cagney <cagney@redhat.com>
7564
7565 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7566 * gdbarch.h, gdbarch.c: Re-generate.
7567 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7568 * x86-64-tdep.h: Update.
7569 * x86-64-tdep.c (x86_64_init_abi): Update.
7570 * v850-tdep.c (v850_gdbarch_init): Update.
7571 * sparc-tdep.c (sparc_gdbarch_init): Update.
7572 * sh-tdep.c (sh_gdbarch_init): Update.
7573 * s390-tdep.c (s390_gdbarch_init): Update.
7574 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7575 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7576 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7577 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7578 * mips-tdep.c (mips_gdbarch_init): Update.
7579 * mcore-tdep.c (mcore_gdbarch_init): Update.
7580 * m68k-tdep.c (m68k_gdbarch_init): Update.
7581 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7582 * ia64-tdep.c (ia64_gdbarch_init): Update.
7583 * i386-tdep.c (i386_gdbarch_init): Update.
7584 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7585 * hppa-tdep.c (hppa_gdbarch_init): Update.
7586 * h8300-tdep.c (h8300_gdbarch_init): Update.
7587 * frv-tdep.c (frv_gdbarch_init): Update.
7588 * cris-tdep.c (cris_gdbarch_init): Update.
7589 * avr-tdep.c (avr_gdbarch_init): Update.
7590 * arm-tdep.c (arm_gdbarch_init): Update.
7591 * alpha-tdep.c (alpha_gdbarch_init): Update.
7592 * sh-tdep.c (sh_init_extra_frame_info): Update.
7593 (sh64_init_extra_frame_info): Update.
7594 * ns32knbsd-nat.c (frame_num_args): Update.
7595 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7596 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7597 (xstormy16_frame_chain_valid): Update.
7598 * vax-tdep.c (vax_saved_pc_after_call): Update.
7599 * v850-tdep.c (v850_frame_chain): Update.
7600 (v850_pop_frame): Update.
7601 (v850_init_extra_frame_info): Update.
7602 * sparc-tdep.c (setup_arbitrary_frame): Update.
7603 * ns32k-tdep.c (umax_frame_num_args): Update.
7604 * s390-tdep.c (s390_pop_frame_regular): Update.
7605 * mn10300-tdep.c (mn10300_frame_chain): Update.
7606 (mn10300_pop_frame_regular): Update.
7607 (mn10300_init_extra_frame_info): Update.
7608 * mips-tdep.c (mips_init_frame_pc_first): Update.
7609 (mips_frame_chain): Update.
7610 (mips_pop_frame): Update.
7611 * mcore-tdep.c (mcore_frame_chain): Update.
7612 (mcore_pop_frame): Update.
7613 (mcore_init_extra_frame_info): Update.
7614 * arch-utils.c (init_frame_pc_default): Update.
7615 * m68k-tdep.c (isi_frame_num_args): Update.
7616 (delta68_frame_num_args): Update.
7617 (news_frame_num_args): Update.
7618 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7619 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7620 (alpha_frame_chain): Update.
7621 (alpha_pop_frame): Update.
7622 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7623 (hppa_init_extra_frame_info): Update.
7624 (hppa_frame_chain): Update.
7625 (hppa_frame_chain_valid): Update.
7626 * cris-tdep.c (cris_init_extra_frame_info): Update.
7627 * avr-tdep.c (avr_init_extra_frame_info): Update.
7628 * arm-tdep.c (arm_frame_chain_valid): Update.
7629 (arm_init_extra_frame_info): Update.
7630 (arm_pop_frame): Update.
7631 * frame.c (frame_pc_unwind): Update.
7632 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7633 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7634 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7635 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7636 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7637 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7638
7639 2003-03-12 Andrew Cagney <cagney@redhat.com>
7640
7641 Eliminate the need for POP_FRAME.
7642 * frame.c (do_frame_unwind_register): New function.
7643 (frame_pop): When no POP_FRAME, pop the frame using register
7644 unwind and a scratch regcache.
7645 (frame_saved_regs_pop): Delete function.
7646 (trad_frame_unwinder): Update.
7647 * d10v-tdep.c (d10v_frame_pop): Delete function.
7648 (d10v_frame_unwind): Update.
7649 * sentinel-frame.c (sentinel_frame_pop): Delete function.
7650 (sentinel_frame_unwinder): Update.
7651 * dummy-frame.c (dummy_frame_pop): Delete function.
7652 (dummy_frame_unwind): Update.
7653 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7654 (struct frame_unwind): Update.
7655
7656 2003-03-11 Kevin Buettner <kevinb@redhat.com>
7657
7658 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
7659 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
7660 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
7661 Do range checks on register number obtained from debugging info.
7662 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
7663 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
7664 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
7665 mapping function.
7666 (do_fp_register_row): Fix typo which caused double type to be
7667 used when attempting to unpack a float.
7668
7669 2003-03-11 J. Brobecker <brobecker@gnat.com>
7670
7671 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
7672
7673 2003-03-11 Andrew Cagney <cagney@redhat.com>
7674
7675 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
7676 frame. Problem found by Corinna Vinschen.
7677
7678 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
7679
7680 * doublest.c (floatformat_from_length): Accept also
7681 the real size of 'long double' type.
7682
7683 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
7684
7685 From Klee Dienes <kdienes@apple.com>:
7686 * breakpoint.c (bpstat_copy): Copy the command lines as well
7687 as the old value, to match what is freed in bpstat_clear.
7688
7689 2003-03-10 David Carlton <carlton@math.stanford.edu>
7690
7691 * minsyms.c (add_minsym_to_hash_table): Replace
7692 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7693 (compare_minimal_symbols, compact_minimal_symbols)
7694 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
7695 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
7696 of DEPRECATED_SYMBOL_MATCHES_NAME.
7697 (lookup_minimal_symbol_solib_trampoline): Ditto.
7698
7699 2003-03-10 Andrew Cagney <cagney@redhat.com>
7700
7701 * regcache.h (regcache_cooked_read_ftype): Define.
7702 (regcache_save, regcache_restore): Add a cooked_read parameter.
7703 * regcache.c (regcache_save, regcache_restore): Update.
7704 (do_cooked_read): New function.
7705 (regcache_cpy): Pass do_cooked_read to regcache_save and
7706 regcache_restore.
7707
7708 2003-03-10 Andrew Cagney <cagney@redhat.com>
7709
7710 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7711 * gdbarch.h, gdbarch.c: Re-generate.
7712 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7713 * x86-64-tdep.h: Update.
7714 * x86-64-tdep.c (x86_64_init_abi): Update.
7715 * v850-tdep.c (v850_gdbarch_init): Update.
7716 * sparc-tdep.c (sparc_gdbarch_init): Update.
7717 * sh-tdep.c (sh_gdbarch_init): Update.
7718 * s390-tdep.c (s390_gdbarch_init): Update.
7719 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7720 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7721 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7722 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7723 * mips-tdep.c (mips_gdbarch_init): Update.
7724 * mcore-tdep.c (mcore_gdbarch_init): Update.
7725 * m68k-tdep.c (m68k_gdbarch_init): Update.
7726 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7727 * ia64-tdep.c (ia64_gdbarch_init): Update.
7728 * i386-tdep.c (i386_gdbarch_init): Update.
7729 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7730 * hppa-tdep.c (hppa_gdbarch_init): Update.
7731 * h8300-tdep.c (h8300_gdbarch_init): Update.
7732 * frv-tdep.c (frv_gdbarch_init): Update.
7733 * cris-tdep.c (cris_gdbarch_init): Update.
7734 * avr-tdep.c (avr_gdbarch_init): Update.
7735 * arm-tdep.c (arm_gdbarch_init): Update.
7736 * alpha-tdep.c (alpha_gdbarch_init): Update.
7737 * sh-tdep.c (sh_init_extra_frame_info): Update.
7738 (sh64_init_extra_frame_info): Update.
7739 * ns32knbsd-nat.c (frame_num_args): Update.
7740 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7741 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7742 (xstormy16_frame_chain_valid): Update.
7743 * vax-tdep.c (vax_saved_pc_after_call): Update.
7744 * v850-tdep.c (v850_frame_chain): Update.
7745 (v850_pop_frame): Update.
7746 (v850_init_extra_frame_info): Update.
7747 * sparc-tdep.c (setup_arbitrary_frame): Update.
7748 * ns32k-tdep.c (umax_frame_num_args): Update.
7749 * s390-tdep.c (s390_pop_frame_regular): Update.
7750 * mn10300-tdep.c (mn10300_frame_chain): Update.
7751 (mn10300_pop_frame_regular): Update.
7752 (mn10300_init_extra_frame_info): Update.
7753 * mips-tdep.c (mips_init_frame_pc_first): Update.
7754 (mips_frame_chain): Update.
7755 (mips_pop_frame): Update.
7756 * mcore-tdep.c (mcore_frame_chain): Update.
7757 (mcore_pop_frame): Update.
7758 (mcore_init_extra_frame_info): Update.
7759 * arch-utils.c (init_frame_pc_default): Update.
7760 * m68k-tdep.c (isi_frame_num_args): Update.
7761 (delta68_frame_num_args): Update.
7762 (news_frame_num_args): Update.
7763 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7764 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7765 (alpha_frame_chain): Update.
7766 (alpha_pop_frame): Update.
7767 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7768 (hppa_init_extra_frame_info): Update.
7769 (hppa_frame_chain): Update.
7770 (hppa_frame_chain_valid): Update.
7771 * cris-tdep.c (cris_init_extra_frame_info): Update.
7772 * avr-tdep.c (avr_init_extra_frame_info): Update.
7773 * arm-tdep.c (arm_frame_chain_valid): Update.
7774 (arm_init_extra_frame_info): Update.
7775 (arm_pop_frame): Update.
7776 * frame.c (frame_pc_unwind): Update.
7777 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7778 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7779 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7780 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7781 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7782 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7783
7784 2003-03-10 Andrew Cagney <cagney@redhat.com>
7785
7786 * gdbarch.sh (gdbarch_unwind_pc): New method.
7787 * gdbarch.h, gdbarch.c: Regenerate.
7788 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
7789 but use read_pc and FRAME_SAVED_PC as fall backs.
7790 (frame_saved_regs_pc_unwind): Delete function.
7791 (trad_frame_unwinder): Update.
7792 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
7793 (struct frame_unwind): Update.
7794 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
7795 (dummy_frame_unwind): Update.
7796 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
7797 (sentinel_frame_unwinder): Update.
7798 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
7799 (d10v_frame_unwind): Update.
7800 (d10v_unwind_pc): New function.
7801 (d10v_gdbarch_init): Set unwind_pc.
7802
7803 2003-03-10 Andrew Cagney <cagney@redhat.com>
7804
7805 * gdbarch.h: Re-generate.
7806
7807 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
7808 PC.
7809 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
7810 the PC register.
7811
7812 2003-03-08 Mark Kettenis <kettenis@gnu.org>
7813
7814 * gdbarch.sh (save_dummy_frame_tos): Add comment.
7815
7816 2003-03-08 Andrew Cagney <cagney@redhat.com>
7817
7818 * cli-out.c: Update copyright.
7819 (cli_out_data): Define typedef. Use instead of ui_out_data.
7820
7821 2003-03-08 Andrew Cagney <cagney@redhat.com>
7822
7823 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
7824 the result.
7825
7826 2003-03-07 Andrew Cagney <cagney@redhat.com>
7827
7828 * gdbarch.sh: Don't generate two macro definitions when an
7829 undefined macro taking no arguments.
7830 * gdbarch.h: Regenerate.
7831
7832 2002-03-07 Michal Ludvig <mludvig@suse.cz>
7833
7834 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
7835 (x86_64_unwind_dummy_id): New functions.
7836 (x86_64_init_abi): Register these two new functions.
7837
7838 2003-03-07 Michal Ludvig <mludvig@suse.cz>
7839
7840 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
7841 (x86_64_skip_prologue): Move prologue detection to
7842 separate function.
7843 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
7844
7845 2003-03-05 Andrew Cagney <cagney@redhat.com>
7846
7847 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
7848 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
7849 * frame.c (get_prev_frame): Restructure the frame ID unwind code
7850 to use unwind_dummy_id when a dummy frame.
7851 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
7852 predicate.
7853 * gdbarch.h, gdbarch.c: Regneerate.
7854
7855 2003-03-05 Andrew Cagney <cagney@redhat.com>
7856
7857 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
7858 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
7859 Do not use d10v_read_sp or d10v_read_fp when obtaining register
7860 values.
7861
7862 2003-03-05 Andrew Cagney <cagney@redhat.com>
7863
7864 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
7865 (struct d10v_unwind_cache): Delete field "frameless". Replace
7866 "next_addr" with "sp_offset". Add "r11_offset".
7867 (d10v_frame_unwind_cache): Update.
7868 (prologue_find_regs): Update. When "mv r11, sp", save the
7869 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
7870 RN was saved in r11_offset.
7871
7872 2003-03-05 Andrew Cagney <cagney@redhat.com>
7873
7874 * frame.c (deprecated_update_frame_pc_hack): Also update the the
7875 cached PC value in the next frame.
7876
7877 2003-03-05 Andrew Cagney <cagney@redhat.com>
7878
7879 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
7880 "id_unwind_cache" with "id".
7881 (frame_id_unwind): Delete declaration.
7882 * frame.c (frame_id_unwind): Delete function.
7883 (get_prev_frame): Call the frame id unwind method directly. Store
7884 the returned next frame's ID value in NEXT_FRAME. Note that there
7885 is a problem with the wrong unwind ID being called with the wrong
7886 unwind cache.
7887
7888 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
7889
7890 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
7891
7892 2003-03-05 James Ingham <jingham@apple.com>
7893 Daniel Jacobowitz <drow@mvista.com>
7894
7895 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
7896 (auto_cp_abi): New variable.
7897 (current_cp_abi, num_cp_abis): Make static.
7898 (CP_ABI_MAX): Define.
7899 (cp_abis): Turn into an array.
7900 (value_virtual_fn_field): Fix formatting.
7901 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
7902 takes a pointer.
7903 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
7904 (list_cp_abis, _initialize_cp_abi): New functions.
7905 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
7906 declarations for cp_abis, num_cp_abis, current_cp_abi, and
7907 switch_to_cp_abi. Update prototype for register_cp_abi.
7908 * Makefile.in (cp-abi.o): Update dependencies.
7909 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
7910 instead of switch_to_cp_abi.
7911 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
7912 register_cp_abi.
7913 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
7914 register_cp_abi.
7915 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
7916
7917 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
7918
7919 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
7920 * dwarf2loc.c: Include "regcache.h".
7921 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
7922 register_size.
7923 * Makefile.in (dwarf2loc.o): Update dependencies.
7924
7925 2003-03-04 Theodore A. Roth <troth@openavr.org>
7926
7927 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
7928 number of io registers reported by remote target is not a multiple of
7929 step.
7930
7931 2003-03-04 David Carlton <carlton@math.stanford.edu>
7932
7933 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
7934 (lookup_symbol_aux_psymtabs): Update call to
7935 lookup_partial_symbol.
7936 (lookup_transparent_type, find_main_psymtab)
7937 (make_symbol_overload_list): Ditto.
7938
7939 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
7940
7941 * MAINTAINERS (Write after approval): Update my email address.
7942
7943 2003-03-03 Andrew Cagney <cagney@redhat.com>
7944
7945 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
7946 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
7947 predicate. Replace MAX_REGISTER_RAW_SIZE.
7948 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
7949 MAX_REGISTER_VIRTUAL_SIZE.
7950 * regcache.c (legacy_max_register_raw_size): New function.
7951 (legacy_max_register_virtual_size): New function.
7952 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
7953 (MAX_REGISTER_RAW_SIZE): Define.
7954 (legacy_max_register_raw_size): Declare.
7955 (legacy_max_register_virtual_size): Declare.
7956 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7957 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
7958 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7959 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7960 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7961 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7962 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7963 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7964 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7965 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7966 * vax-tdep.c (vax_gdbarch_init): Update.
7967 * v850-tdep.c (v850_gdbarch_init): Update.
7968 * sparc-tdep.c (sparc_gdbarch_init): Update.
7969 * sh-tdep.c (sh_gdbarch_init): Update.
7970 * s390-tdep.c (s390_gdbarch_init): Update.
7971 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7972 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7973 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7974 * mips-tdep.c (mips_gdbarch_init): Update.
7975 * mcore-tdep.c (mcore_gdbarch_init): Update.
7976 * m68k-tdep.c (m68k_gdbarch_init): Update.
7977 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7978 * ia64-tdep.c (ia64_gdbarch_init): Update.
7979 * i386-tdep.c (i386_gdbarch_init): Update.
7980 * hppa-tdep.c (hppa_gdbarch_init): Update.
7981 * h8300-tdep.c (h8300_gdbarch_init): Update.
7982 * frv-tdep.c (frv_gdbarch_init): Update.
7983 * cris-tdep.c (cris_gdbarch_init): Update.
7984 * avr-tdep.c (avr_gdbarch_init): Update.
7985 * arm-tdep.c (arm_gdbarch_init): Update.
7986 * alpha-tdep.c (alpha_gdbarch_init): Update.
7987 * d10v-tdep.c (d10v_gdbarch_init): Do not set
7988 max_register_raw_size or max_register_virtual_size.
7989
7990 2003-03-03 David Carlton <carlton@math.stanford.edu>
7991
7992 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
7993 SYMBOL_MATCHES_NAME, add comment.
7994 (SYMBOL_MATCHES_NATURAL_NAME): New.
7995 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
7996 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
7997 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
7998 * symtab.c (lookup_partial_symbol): Use
7999 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
8000 unhelpful comment.
8001 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
8002 SYMBOL_MATCHES_NAME.
8003 Fix for PR c++/33.
8004
8005 2003-03-03 David Carlton <carlton@math.stanford.edu>
8006
8007 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
8008 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
8009 by regexp matching against SYMBOL_NATURAL_NAME.
8010
8011 2003-03-03 David Carlton <carlton@math.stanford.edu>
8012
8013 * linespec.c (find_method): Extract code into collect_methods.
8014 (collect_methods): New.
8015
8016 2003-03-02 Mark Kettenis <kettenis@gnu.org>
8017
8018 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
8019 get_frame_base.
8020
8021 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
8022 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8023
8024 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
8025
8026 * arch-utils.c (generic_register_byte): Fix to use the loop index
8027 and not regnum when summing the size of all registers up to regnum.
8028
8029 2003-03-01 Andrew Cagney <cagney@redhat.com>
8030
8031 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8032 FRAME_INIT_SAVED_REGS.
8033 * gdbarch.h, gdbarch.c: Regenerate.
8034 * stack.c (frame_info): Update.
8035 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8036 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8037 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8038 * ns32k-tdep.c (ns32k_pop_frame): Update.
8039 * mips-tdep.c (mips_pop_frame): Update.
8040 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8041 * ia64-tdep.c (ia64_frame_chain): Update.
8042 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8043 (ia64_frameless_function_invocation): Update.
8044 (ia64_init_extra_frame_info): Update.
8045 (ia64_pop_frame_regular): Update.
8046 * frame.h (struct frame_info): Update comment.
8047 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8048 * frame.c (frame_saved_regs_register_unwind): Update.
8049 (frame_saved_regs_register_unwind): Update.
8050 (deprecated_generic_get_saved_register): Update.
8051 * cris-tdep.c: Update comment.
8052 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8053 Rename macro.
8054 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8055 * x86-64-tdep.c (x86_64_init_abi): Update.
8056 * vax-tdep.c (vax_gdbarch_init): Update.
8057 * v850-tdep.c (v850_gdbarch_init): Update.
8058 * sparc-tdep.c (sparc_gdbarch_init): Update.
8059 * sh-tdep.c (sh_gdbarch_init): Update.
8060 * s390-tdep.c (s390_gdbarch_init): Update.
8061 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8062 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8063 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8064 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8065 * mips-tdep.c (mips_gdbarch_init): Update.
8066 * mcore-tdep.c (mcore_gdbarch_init): Update.
8067 * m68k-tdep.c (m68k_gdbarch_init): Update.
8068 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8069 * ia64-tdep.c (ia64_gdbarch_init): Update.
8070 * i386-tdep.c (i386_gdbarch_init): Update.
8071 * frv-tdep.c (frv_gdbarch_init): Update.
8072 * avr-tdep.c (avr_gdbarch_init): Update.
8073 * arm-tdep.c (arm_gdbarch_init): Update.
8074 * alpha-tdep.c (alpha_gdbarch_init): Update.
8075
8076 2003-03-01 Andrew Cagney <cagney@redhat.com>
8077
8078 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8079 option enum and switch. When no windows, set the interpreter to
8080 INTERP_CONSOLE.
8081
8082 2003-03-01 Andrew Cagney <cagney@redhat.com>
8083
8084 * main.c (captured_main): Replace magic option characters with an
8085 enum.
8086
8087 2003-03-01 Andrew Cagney <cagney@redhat.com>
8088
8089 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8090 INIT_EXTRA_FRAME_INFO.
8091 * gdbarch.h, gdbarch.c: Regenerate.
8092 * arm-tdep.c: Update comments.
8093 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8094 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8095 * frame.h, avr-tdep.c: Ditto.
8096 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8097 (create_new_frame, legacy_get_prev_frame): Ditto.
8098 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8099 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8100 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8101 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8102 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8103 * v850-tdep.c (v850_gdbarch_init): Ditto.
8104 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8105 * sh-tdep.c (sh_gdbarch_init): Ditto.
8106 * s390-tdep.c (s390_gdbarch_init): Ditto.
8107 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8108 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8109 * mips-tdep.c (mips_gdbarch_init): Ditto.
8110 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8111 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8112 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8113 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8114 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8115 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8116 * frv-tdep.c (frv_gdbarch_init): Ditto.
8117 * cris-tdep.c (cris_gdbarch_init): Ditto.
8118 * avr-tdep.c (avr_gdbarch_init): Ditto.
8119 * arm-tdep.c (arm_gdbarch_init): Ditto.
8120 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8121 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8122
8123 2003-03-01 Andrew Cagney <cagney@redhat.com>
8124
8125 * gdbarch.sh (register_type): New function with predicate.
8126 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8127 * gdbarch.h, gdbarch.c: Re-generate.
8128 * arch-utils.c (generic_register_byte): Use generic_register_size.
8129 (generic_register_size): When available, use
8130 gdbarch_register_type.
8131 * regcache.c (init_regcache_descr): When available, initialize the
8132 register type array using gdbarch_register_type. If the
8133 architecture supplies gdbarch_register_type, do not use the legacy
8134 regcache layout.
8135 * d10v-tdep.c (d10v_register_type): Replace
8136 d10v_register_virtual_type.
8137 (d10v_gdbarch_init): Set register_type instead of
8138 register_virtual_type.
8139
8140 2003-03-01 Andrew Cagney <cagney@redhat.com>
8141
8142 * Makefile.in (ax-gdb.o): Update dependencies.
8143 * ax-gdb.c: Include "regcache.h".
8144 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8145 * findvar.c (value_of_register): Ditto.
8146 * infcmd.c (default_print_registers_info): Ditto.
8147
8148 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8149
8150 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8151 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8152
8153 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8154
8155 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8156 of STREQ.
8157
8158 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8159
8160 * Makefile.in (dwarf2loc.o): Update dependencies.
8161 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8162 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8163 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8164 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8165 (locexpr_tracepoint_var_ref): New function.
8166 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8167
8168 2003-02-28 Andrew Cagney <cagney@redhat.com>
8169
8170 * regcache.c (register_size): New function.
8171 * regcache.h (register_size): Declare
8172 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8173 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8174
8175 2003-02-28 David Carlton <carlton@math.stanford.edu>
8176
8177 * linespec.c (decode_compound): Extract code into find_method.
8178 (find_method): New.
8179
8180 2003-02-28 J. Brobecker <brobecker@gnat.com>
8181
8182 * Makefile.in: Add rules to build and link in observer.o.
8183
8184 2003-02-27 J. Brobecker <brobecker@gnat.com>
8185
8186 * observer.c: Minor comments edits.
8187
8188 2003-02-27 J. Brobecker <brobecker@gnat.com>
8189
8190 * observer.h, observer.c: New file.
8191
8192 2003-02-27 Andrew Cagney <cagney@redhat.com>
8193
8194 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8195
8196 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8197
8198 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8199 (M6812_OP_STS_EXT): Likewise.
8200 (m6811_prologue): Use the above to recognize prologue.
8201 (m6812_prologue): Likewise.
8202
8203 2003-02-27 David Carlton <carlton@math.stanford.edu>
8204
8205 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8206 SYMBOL_PRINT_NAME.
8207 (compare_psymbols): Ditto.
8208 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8209
8210 2003-02-27 Michael Snyder <msnyder@redhat.com>
8211
8212 * f-lang.c (build_fortran_types): New function.
8213 (_initialize_f_language): Gdbarch-register built-in fortran types.
8214 * doublest.c (extract_floating): Fix warning text.
8215
8216 2003-02-27 Andrew Cagney <cagney@redhat.com>
8217
8218 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8219 predicate. Replaces PUSH_DUMMY_FRAME.
8220 * gdbarch.h, gdbarch.c: Regnerate.
8221 * valops.c (hand_function_call): Update. Call
8222 generic_push_dummy_frame directly.
8223 * vax-tdep.c (vax_gdbarch_init): Update.
8224 * sparc-tdep.c (sparc_gdbarch_init): Update.
8225 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8226 * m68k-tdep.c (m68k_gdbarch_init): Update.
8227 * hppa-tdep.c (hppa_gdbarch_init): Update.
8228 * alpha-tdep.c (alpha_gdbarch_init): Update.
8229 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8230 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8231 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8232 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8233 push_dummy_frame to generic_push_dummy_frame.
8234 * v850-tdep.c (v850_gdbarch_init): Ditto.
8235 * sh-tdep.c (sh_gdbarch_init): Ditto.
8236 * s390-tdep.c (s390_gdbarch_init): Ditto.
8237 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8238 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8239 * mips-tdep.c (mips_gdbarch_init): Ditto.
8240 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8241 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8242 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8243 * i386-tdep.c (i386_gdbarch_init): Ditto.
8244 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8245 * frv-tdep.c (frv_gdbarch_init): Ditto.
8246 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8247 * cris-tdep.c (cris_gdbarch_init): Ditto.
8248 * avr-tdep.c (avr_gdbarch_init): Ditto.
8249 * arm-tdep.c (arm_gdbarch_init): Ditto.
8250
8251 2003-02-26 Kevin Buettner <kevinb@redhat.com>
8252
8253 * mips-tdep.c (show_mips_abi): New function.
8254 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8255 command ``show mips abi''.
8256
8257 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8258
8259 From Elena Zannoni <ezannoni@redhat.com>
8260 * dbxread.c (process_one_symbol): Only record line 0 if one or
8261 more sline entries have been seen for the function.
8262
8263 2003-02-26 Michael Chastain <mec@shout.net>
8264
8265 * configure: Regenerate with autoconf 000227.
8266
8267 2003-02-26 Michael Chastain <mec@shout.net>
8268
8269 Close PR build/660.
8270 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8271 for old libc5/glibc.
8272 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8273
8274 2003-02-26 Kris Warkentin <kewarken@qnx.com>
8275
8276 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8277 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8278
8279 2003-02-26 Michael Chastain <mec@shout.net>
8280
8281 * configure.in: New variable HAVE_UINTPTR_T.
8282 * configure, config.in: Regenerated.
8283
8284 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
8285
8286 Fix PR build/1097.
8287 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8288
8289 2003-02-25 Andrew Cagney <cagney@redhat.com>
8290
8291 * frame.c (get_prev_frame): Add comment on check for
8292 inside_entry_func. Only check for inside_entry_file when not a
8293 dummy and not a sentinel. Check that the new frame is not inner
8294 to the old frame.
8295
8296 2003-02-25 Andrew Cagney <cagney@redhat.com>
8297
8298 * frame.c (frame_debug): New variable.
8299 (_initialize_frame): Add "set/show debug frame" command.
8300 (get_prev_frame): When frame_debug, print reason why unwind
8301 failed.
8302
8303 2003-02-25 Michael Chastain <mec@shout.net>
8304
8305 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8306 to avoid uintptr_t definition problems.
8307
8308 2003-02-25 David Carlton <carlton@math.stanford.edu>
8309
8310 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8311 (SYMBOL_LINKAGE_NAME): Ditto.
8312 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8313 SYMBOL_LINKAGE_NAME.
8314 (struct general_symbol_info): Expand comment.
8315 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8316 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8317 (SYMBOL_MATCHES_REGEXP): Ditto.
8318 * symtab.c (symbol_natural_name): New function.
8319 * objfiles.h: Replace all uses of SYMBOL_NAME by
8320 DEPRECATED_SYMBOL_NAME.
8321 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8322 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8323 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8324 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8325 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8326 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8327 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8328 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8329 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8330 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8331 * ada-exp.y: Ditto.
8332 * ada-exp.y: Update copyright.
8333 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8334 * cp-valprint.c: Ditto.
8335
8336 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8337
8338 * infptrace.c (detach): Do not flag error if ptrace detach fails
8339 and errno is set to ESRCH.
8340
8341 2003-02-24 Andrew Cagney <cagney@redhat.com>
8342
8343 * infptrace.c (udot_info): Change type of udot_off to long. Use
8344 paddr when printing udot_off's value.
8345
8346 2003-02-24 David Carlton <carlton@math.stanford.edu>
8347
8348 * symtab.c (make_symbol_overload_list): Only read in partial
8349 symtabs containing a matching partial symbol.
8350
8351 2003-02-24 David Carlton <carlton@math.stanford.edu>
8352
8353 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8354 do the comparison, not strcmp.
8355 * symfile.c (compare_psymbols): Ditto.
8356 * defs.h: Declare strcmp_iw_ordered.
8357 * utils.c (strcmp_iw_ordered): New function.
8358
8359 2003-02-24 Jim Blandy <jimb@redhat.com>
8360
8361 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8362 support, shared libs): Remove my name from here, to better reflect
8363 reality.
8364
8365 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8366
8367 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8368 (target_ops): Add to_have_continuable_watchpoint.
8369 * target.c (update_current_target): Add INHERIT line for
8370 to_have_continuable_watchpoint.
8371 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8372 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8373 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8374 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8375
8376 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
8377
8378 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8379 maintainership.
8380
8381 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8382
8383 * solib.c (solib_open): Call target defined search function after
8384 failing with solib-search-path.
8385 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8386 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8387
8388 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8389
8390 * MAINTAINERS: Add myself to Write After section.
8391
8392 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8393
8394 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8395
8396 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8397
8398 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8399 (m68hc11_add_reggroups): New function.
8400 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8401 (m68hc11_gdbarch_init): Install the reggroups.
8402 (_initialize_m68hc11_tdep): Initialize them.
8403
8404 2003-02-21 James E Wilson <wilson@tuliptree.org>
8405
8406 * MAINTAINERS: Update my email address.
8407
8408 2003-02-21 David Carlton <carlton@math.stanford.edu>
8409
8410 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8411
8412 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
8413
8414 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8415 * symtab.h: Add opaque declarations of struct axs_value and
8416 struct agent_expr.
8417 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8418 (struct location_funcs): New type.
8419 (struct symbol): Add "loc" to aux_value.
8420 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8421 * dwarf2read.c: Include "dwarf2expr.h".
8422 (dwarf2_symbol_mark_computed): New function.
8423 (read_func_scope): Use it.
8424 (var_decode_location): New function.
8425 (new_symbol): Use it.
8426 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8427
8428 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8429 (dwarf2expr_h, dwarf2loc_h): New variables.
8430 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8431 (dwarf2expr.o, dwarf2loc.o): New rules.
8432 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8433 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8434 LOC_COMPUTED_ARG.
8435 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8436 * m2-exp.y (yylex): Likewise.
8437 * printcmd.c (address_info, print_frame_args): Likewise.
8438 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8439 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8440 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8441 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8442 * symtab.c (lookup_block_symbol): Likewise.
8443
8444 2003-02-20 Adam Fedor <fedor@gnu.org>
8445
8446 * symtab.h: Remove objc_specific struct
8447 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8448 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8449 Have language_objc use cplus_specific struct.
8450
8451 2003-02-20 Tom Tromey <tromey@redhat.com>
8452
8453 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8454 TYPE_NAME, when printing a String value. PR java/1075.
8455
8456 2003-02-20 Adam Fedor <fedor@gnu.org>
8457
8458 * objc-lang.h (find_methods): Remove declaration.
8459 * objc-lang.c (find_methods): Make static.
8460
8461 2003-02-20 Christopher Faylor <cgf@redhat.com>
8462
8463 * win32-nat.c (get_image_name): Check return value from
8464 ReadProcessMemory.
8465 (child_xfer_memory): Ditto.
8466
8467 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
8468
8469 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8470 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8471 '${exec_prefix}' (in addition to the expansion thereof) as
8472 relocatable.
8473 * configure: Rebuilt.
8474
8475 2003-02-20 David Carlton <carlton@math.stanford.edu>
8476
8477 * symtab.c (search_symbols): Revert the search_symbols part of my
8478 2002-12-23 patch. Add comment.
8479
8480 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8481
8482 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8483 * dbxread.c (elfstab_build_psymtabs): Don't call
8484 install_minimal_symbols.
8485 (stabsect_build_psymtabs): Likewise.
8486 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8487 earlier.
8488 * somread.c (som_symfile_read): Call install_minimal_symbols
8489 and do_cleanups earlier.
8490 * nlmread.c (nlm_symfile_read): Likewise.
8491 * mdebugread.c (elfmdebug_build_psymtabs): Call
8492 install_minimal_symbols and make appropriate cleanups.
8493
8494 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8495
8496 * solib.c (reload_shared_libraries): New function.
8497 (_initialize_solib): Add callbacks for ``set solib-search-path''
8498 and ``set solib-absolute-prefix''.
8499
8500 2003-02-20 David Carlton <carlton@math.stanford.edu>
8501
8502 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8503 expand comment.
8504 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8505 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8506 * ada-typeprint.c (ada_typedef_print): Ditto.
8507 * ax-gdb.c (gen_var_ref): Ditto.
8508 * breakpoint.c (print_one_breakpoint): Ditto.
8509 * buildsym.c (finish_block): Ditto.
8510 * c-valprint.c (c_val_print): Ditto.
8511 * expprint.c (print_subexp): Ditto.
8512 * findvar.c (locate_var_value): Ditto.
8513 * infcmd.c (jump_command): Ditto.
8514 * linespec.c (decode_line_2, decode_compound): Ditto.
8515 * maint.c (maintenance_translate_address): Ditto.
8516 * objc-lang.c (compare_selectors, compare_classes): Ditto.
8517 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8518 Ditto.
8519 * p-valprint.c (pascal_val_print): Ditto.
8520 * stabsread.c (define_symbol): Ditto.
8521 * stack.c (print_frame, frame_info, print_block_frame_locals)
8522 (print_frame_arg_vars, return_command): Ditto.
8523 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8524 * symmisc.c (print_symbol): Ditto.
8525 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8526 (compare_search_syms, print_symbol_info, print_msymbol_info)
8527 (rbreak_command): Ditto.
8528 * tracepoint.c (tracepoints_info): Ditto.
8529 * typeprint.c (typedef_print): Ditto.
8530 * valops.c (value_of_variable, hand_function_call): Ditto.
8531 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8532 * ada-typeprint.c: Update Copyright.
8533 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8534 * tracepoint.c, cli/cli-cmds.c: Ditto.
8535
8536 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8537
8538 * frame.c (generic_unwind_get_saved_register): Make non-static.
8539 * frame.h (generic_unwind_get_saved_register): Declare.
8540 * mips-tdep.c (read_next_frame_reg): Fetch register from
8541 current regcache when frame is NULL.
8542 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8543 that must be NULL.
8544 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8545 instead of frame_register_unwind().
8546
8547 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8548
8549 * remote-sim.c (gdbsim_insert_breakpoint)
8550 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8551 code.
8552
8553 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8554
8555 * remote.c (_initialize_remote): Add commands "set/show remote
8556 hardware-watchpoint-limit" and "set/show remote
8557 hardware-breakpoint-limit".
8558 (remote_hw_watchpoint_limit): Initialize to -1.
8559 (remote_hw_breakpoint_limit): Ditto.
8560 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8561
8562 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8563
8564 * coff-pe-read.c: New file - support reading of minimal symbols from a
8565 portable executable using the export table.
8566 * coff-pe-read.h: New file.
8567 * coffread.c: Include coff-pe-read.h.
8568 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8569 debugging symbols found.
8570 * Makefile.in (SFILES): Add coff-pe-read.o.
8571 (coff_pe_read_h): Define.
8572 (COMMON_OBS): Add coff-pe-read.o.
8573 (coffread.o): Add coff_pe_read_h dependency.
8574 (coff-pe-read.o): New target.
8575
8576 2003-02-19 David Carlton <carlton@math.stanford.edu>
8577
8578 * Makefile.in (SFILES): Add block.c.
8579 (block_h): New.
8580 (COMMON_OBS): Add block.o.
8581 (block.o): New.
8582 (x86-64-tdep.o): Add $(block_h).
8583 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8584 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8585 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8586 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8587 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8588 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8589 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8590 * value.h: Add opaque declaration for struct block.
8591 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8592 * ada-lang.h: Ditto.
8593 * x86-64-tdep.c: #include "block.h"
8594 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8595 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8596 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8597 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8598 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8599 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8600 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8601 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8602 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8603 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8604 * symtab.c (block_function): Ditto.
8605 (contained_in): Ditto.
8606 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8607 block.h. Add opaque declaration for struct block.
8608 * symtab.h: Move block_function and contained_in declarations to
8609 block.h. Add opaque declarations for struct block, struct
8610 blockvector.
8611 (struct block): Move to block.h.
8612 (struct blockvector): Ditto.
8613 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8614 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8615 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8616 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8617 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8618 Ditto.
8619 * block.c: New file.
8620 * block.h: New file.
8621
8622 2003-02-19 Theodore A. Roth <troth@openavr.org>
8623
8624 * avr-tdep.c (avr_extract_return_value): Remove function.
8625 (avr_store_return_value): Remove function.
8626 (avr_extract_struct_value_address): Remove function.
8627 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8628
8629 2003-02-19 Andrew Cagney <ac131313@redhat.com>
8630
8631 * rs6000-tdep.c: Include "gdb_assert.h".
8632 (registers_e500): Add "acc" and "spefscr".
8633 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8634 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8635 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
8636 really is "r0".
8637 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8638
8639 2003-02-18 Keith Seitz <keiths@redhat.com>
8640
8641 * Makefile.in: Add gdbtk-interps.c.
8642
8643 2003-02-18 Kevin Buettner <kevinb@redhat.com>
8644
8645 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8646 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8647
8648 2003-02-18 Andrew Cagney <cagney@redhat.com>
8649
8650 * symtab.h (struct objfile): Add opaque declaration.
8651
8652 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
8653
8654 From Jim Ingham <jingham@apple.com>:
8655 * dbxread.c (process_one_symbol): Use last_function_start rather
8656 than function_start_offset to find the real beginning of the
8657 current function. The latter is just the text section offset on
8658 some systems, the former is always the real function start.
8659
8660 2003-02-17 Andrew Cagney <cagney@redhat.com>
8661
8662 * configure.in: Revert ${target} != ${host}.
8663
8664 2003-02-17 Andrew Cagney <ac131313@redhat.com>
8665
8666 * configure.in (Makefile): Use the test ${target} != ${host},
8667 instead of the absence of the "nm.h" file, to determine of the
8668 configuration non-native.
8669 * configure: Regenerate.
8670
8671 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
8672
8673 From Brian Ford <ford@vss.fsi.com>
8674
8675 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
8676 conditionalize tui_active test.
8677 (lookup_cmd_1): Ditto.
8678
8679 2003-02-14 Mark Kettenis <kettenis@gnu.org>
8680
8681 * configure.in: Add check for _etext.
8682 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
8683 available.
8684 * config.in, configure: regenerated.
8685
8686 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
8687
8688 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
8689
8690 2003-02-14 Andrew Cagney <ac131313@redhat.com>
8691
8692 * main.c (tui_version): Delete variable.
8693 (captured_main): When --tui, set interpreter_p to "tui" instead of
8694 enabling tui_version.
8695 * printcmd.c (display_command) [TUI]: Test tui_active instead of
8696 tui_version.
8697 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
8698 * cli/cli-cmds.c (disassemble_command): Ditto.
8699 * defs.h (tui_version): Delete declaration.
8700 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
8701 (tui-interp.o): Add rules.
8702 (SUBDIR_TUI_OBS): Add "tui-interp.o".
8703
8704 2003-02-14 Christopher Faylor <cgf@redhat.com>
8705
8706 * win32-nat.c (register_loaded_dll): Correctly set address range for
8707 just-loaded dll.
8708
8709 2003-02-12 Jason Molenda (jmolenda@apple.com)
8710
8711 * symmisc.c (print_objfile_statistics): Include information about
8712 the number of psymtabs and symtabs in each object file.
8713
8714 2003-02-13 Keith R Seitz <keiths@redhat.com>
8715
8716 * main.h (struct captured_main_args): Add interpreter_p.
8717 * main.c (captured_main): Initialize interpreter_p from context.
8718 * gdb.c (main): Set interpreter_p argument.
8719 * Makefile.in (gdb.o): Add dependency for interps.h.
8720
8721 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8722
8723 * event-top.c (cli_command_loop): Delete declaration.
8724 (_initialize_event_loop): Delete function setting event_loop_hook.
8725 * event-top.h (cli_command_loop): Declare. Update copyright.
8726 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
8727 * interps.c (current_interp_command_loop): When event_loop_p, call
8728 cli_command_loop.
8729
8730 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8731
8732 * interps.h (interp_command_loop_ftype): Change return type to
8733 void.
8734
8735 2003-02-12 Michal Ludvig <mludvig@suse.cz>
8736
8737 * x86-64-tdep.c (x86_64_extract_return_value)
8738 (x86_64_store_return_value): Use regcache instead of regbuf.
8739 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
8740 * x86-64-linux-nat.c (fill_gregset): Use regcache.
8741
8742 2003-02-11 Andrew Cagney <ac131313@redhat.com>
8743
8744 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
8745 * aclocal.m4: Regenerate.
8746 * configure: Regenerate.
8747
8748 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
8749 TCL_LD_SEARCH_FLAGS.
8750
8751 2003-02-10 Michal Ludvig <mludvig@suse.cz>
8752
8753 * dwarf2cfi.c: Reindented.
8754
8755 2003-02-09 Andrew Cagney <ac131313@redhat.com>
8756
8757 * interps.c (clear_interpreter_hooks): Convert function definition
8758 to ISO C.
8759
8760 2003-02-07 David Carlton <carlton@math.stanford.edu>
8761
8762 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8763
8764 2003-02-07 Kevin Buettner <kevinb@redhat.com>
8765
8766 * gdbtypes.h (struct main_type): Move ``length'' field from here...
8767 (struct type): ...to here.
8768 (TYPE_LENGTH): Adjust to reflect different location of ``length''
8769 field.
8770 * gdbtypes.c (make_qualified_type): Set length on newly created type.
8771 (replace_type): Set length on all type variants for a given type.
8772
8773 2003-02-07 Andrew Cagney <ac131313@redhat.com>
8774
8775 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
8776 <sys/stat.h>.
8777 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8778
8779 2003-02-06 Andrew Cagney <ac131313@redhat.com>
8780
8781 * Makefile.in (symm-nat.o): Update dependencies.
8782 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
8783 (lynx-nat.o, ia64-linux-nat.): Ditto.
8784 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
8785 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
8786 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
8787
8788 * Makefile.in (inflow_h): Define.
8789 (procfs.o, inflow.o, procfs.o): Update dependencies.
8790 * inftarg.c (child_stop): Delete extern declaration of
8791 inferior_process_group. Include "inflow.h".
8792 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
8793 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
8794 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
8795 (our_process_group, inferior_process_group): Extern declarations.
8796
8797 * procfs.c: Include "gdb_assert.h".
8798
8799 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8800 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
8801 * jv-typeprint.c (java_type_print_base): Ditto.
8802 * typeprint.c (typedef_print): Eliminate STREQ.
8803 * cli/cli-script.c (define_command, define_command): Ditto.
8804 * main.c (captured_main): Ditto.
8805 * values.c (lookup_internalvar): Ditto.
8806 * utils.c (safe_strerror, parse_escape): Eliminate assignment
8807 within `if' conditional.
8808 * linespec.c (decode_line_2): Ditto.
8809 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
8810 (bfd_openw_with_cleanup): Ditto.
8811
8812 2003-02-07 Mark Kettenis <kettenis@gnu.org>
8813
8814 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
8815 legacy_extract_return_value and store_return_value to
8816 legacy_return_value.
8817
8818 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
8819
8820 * win32-nat.c (get_relocated_section_addrs): New function. Find
8821 section load addresses for symbol handling in relocated DLLs.
8822 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
8823
8824 2003-02-05 Fred Fish <fnf@intrinsity.com>
8825
8826 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
8827 '=' and '!='.
8828 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
8829 with '&' and '=='.
8830 (angel_RDI_info): Ditto.
8831 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
8832 with '&' and '!='.
8833 (threads_continue_all_with_signals): Ditto.
8834
8835 2003-02-05 Jim Ingham <jingham@apple.com>
8836 Keith Seitz <keiths@redhat.com>
8837 Elena Zannoni <ezannoni@redhat.com>
8838 Andrew Cagney <ac131313@redhat.com>
8839
8840 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
8841 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
8842 (SUBDIR_MI_OBS): Add "mi-interp.o".
8843 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
8844 (SFILES): Add "interps.c".
8845 (COMMON_OBS): Add "interps.o".
8846 (interps_h, mi_main_h): Define.
8847 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
8848 (mi-main.o, main.o, event-top.o): Update dependencies.
8849 * cli/cli-interp.c: New file.
8850 * interps.h, interps.c: New files.
8851 * top.c: (gdb_init): Don't install the default interpreter, handed
8852 by captured_main.
8853 * main.c: Include "interps.h".
8854 (interpreter_p): Note that it should malloc'ed.
8855 (captured_command_loop): Call current_interp_command_loop.
8856 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
8857 xfree and xstrdup when updating interpreter_p. Install the
8858 default interpreter. Add hack to stop mi1's copyright notice
8859 being encoded.
8860 * event-top.h (gdb_setup_readline): Declare.
8861 (gdb_disable_readline): Declare.
8862 * event-top.c: Include "interps.h".
8863 (display_gdb_prompt): Call current_interp_display_prompt_p.
8864 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
8865 gdb_stdlog, and gdb_stdtarg.
8866 (_initialize_event_loop): Don't call gdb_setup_readline.
8867 * cli-out.c (cli_out_set_stream): New function.
8868 * cli-out.h (cli_out_set_stream): Declare.
8869
8870 2003-02-06 Mark Kettenis <kettenis@gnu.org>
8871
8872 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
8873 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
8874 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
8875 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
8876 config/i386/i386v42mp.mt: Removed.
8877
8878 2003-02-05 Mark Kettenis <kettenis@gnu.org>
8879
8880 * configure.tgt (*-*-solaris*): Set gdb_osabi to
8881 GDB_OSABI_SOLARIS.
8882
8883 2003-02-05 Michael Chastain <mec@shout.net>
8884
8885 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
8886 2.12.1 and earlier versions.
8887
8888 2003-02-05 Andrew Cagney <ac131313@redhat.com>
8889
8890 Remove orphaned hosts, targets and files.
8891 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
8892 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
8893 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
8894 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
8895 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
8896 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
8897 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
8898 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
8899 * config/sparc/tm-sp64sim.h: Delete.
8900 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
8901 hosts.
8902 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
8903 mips*-dec-mach3* targets.
8904
8905 2003-02-04 Michael Chastain <mec@shout.net>
8906
8907 * NEWS: Fix typo: sepcifying -> specifying.
8908
8909 2003-02-04 Michael Chastain <mec@shout.net>
8910
8911 * dwarfread.c: Add documentation on the state of dwarf-1,
8912 looking towards obsoletion.
8913
8914 2003-02-03 Michael Chastain <mec@shout.net>
8915
8916 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
8917 gdb/testsuite/gdb.c++/pr-1023.exp.
8918
8919 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8920
8921 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
8922 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
8923
8924 * utils.c (init_page_info): Delete reference to MPW in comments.
8925 * main.c (captured_main): Delete #ifdef MPW.
8926
8927 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8928
8929 * NEWS: Note that the m32r-*-elf* is obsolete.
8930 * monitor.c (monitor_expect): Obsolete reference to m32r.
8931 * configure.tgt: Mark m32r-*-elf* as obsolete.
8932 * MAINTAINERS: Mark m32k as obsolete.
8933 * m32r-rom.c: Obsolete file.
8934 * config/m32r/m32r.mt: Obsolete file.
8935 * config/m32r/tm-m32r.h: Obsolete file.
8936 * m32r-stub.c: Obsolete file.
8937 * m32r-tdep.c: Obsolete file.
8938
8939 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8940
8941 * NEWS: Mention that the z8k-zilog-none is obsolete.
8942 * MAINTAINERS: Mark z8k as obsolete.
8943 * configure.tgt: Obsolete the z8k-*-coff* target.
8944 * config/z8k/z8k.mt: Obsolete file.
8945 * config/z8k/tm-z8k.h: Obsolete file.
8946 * z8k-tdep.c: Obsolete file.
8947
8948 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8949
8950 * NEWS: Mention that the mn10200-elf is obsolete.
8951 * configure.tgt: Obsolete mn10200-*-* target.
8952 * breakpoint.c (update_breakpoints_after_exec): Update comment to
8953 mention that the mn10200 is obsolete.
8954 * breakpoint.h: Ditto.
8955 * MAINTAINERS: Mark the mn10200-elf as obsolete.
8956 * config/mn10200/mn10200.mt: Obsolete file.
8957 * config/mn10200/tm-mn10200.h: Obsolete file.
8958 * mn10200-tdep.c: Obsolete file.
8959
8960 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8961
8962 * MAINTAINERS: Mark h8500 as obsolete.
8963 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
8964 * findvar.c (value_from_register): Ditto.
8965 * h8500-tdep.c: Mark file as obsolete.
8966 * config/h8500/h8500.mt: Ditto.
8967 * config/h8500/tm-h8500.h: Ditto.
8968 * NEWS: Mention that h8500 is obsolete.
8969
8970 2003-02-04 David Carlton <carlton@math.stanford.edu>
8971
8972 * objfiles.c (allocate_objfile): Always set name. Add comment at
8973 start of function.
8974 * jv-lang.c (get_dynamics_objfile): Add comment.
8975
8976 2003-02-04 David Carlton <carlton@math.stanford.edu>
8977
8978 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
8979 * printcmd.c (build_address_symbolic): Replace uses of
8980 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
8981 SYMBOL_NAME, and asm_demangle.
8982 Update copyright.
8983
8984 2003-02-04 David Carlton <carlton@math.stanford.edu>
8985
8986 * linespec.c (decode_compound): Extract code into
8987 lookup_prefix_sym.
8988 (lookup_prefix_sym): New function.
8989
8990 2003-02-04 David Carlton <carlton@math.stanford.edu>
8991
8992 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
8993 FLOAT_COERCION_BADNESS.
8994 * gdbtypes.c (rank_one_type): Replace all uses of
8995 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
8996
8997 2003-02-04 Jim Blandy <jimb@redhat.com>
8998
8999 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
9000 section, let dwarf_macinfo_section point to it, not
9001 dwarf_loc_section.
9002
9003 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9004
9005 Pointed out by Anton Blanchard <anton@samba.org>.
9006 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
9007 (ppc_linux_at_sigtramp_return_path): Use it.
9008
9009 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
9010
9011 * defs.h (streq): Add prototype.
9012 * utils.c (streq): New function.
9013
9014 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
9015 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
9016 * mdebugread.c (new_symbol): Likewise.
9017 * stabsread.c (define_symbol): Likewise.
9018 * coffread.c (process_coff_symbol): Likewise.
9019 * dwarfread.c (new_symbol): Likewise.
9020
9021 * minsyms.c (prim_record_minimal_symbol_and_info): Use
9022 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
9023 here.
9024 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
9025 SYMBOL_INIT_DEMANGLED_NAME.
9026 * objfiles.c: Include "hashtab.h".
9027 (allocate_objfile): Call htab_set_functions_ex for the
9028 demangled_names_hash.
9029 (free_objfile): Call htab_delete for the demangled_names_hash.
9030 * objfiles.h (struct htab): Add declaration.
9031 (struct objfile): Add demangled_names_hash.
9032 * symfile.c: Include "hashtab.h".
9033 (reread_symbols): Call htab_delete for the demangled_names_hash.
9034 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9035 SYMBOL_NAME in the bcache.
9036 * symtab.c: Include "hashtab.h". Update comments.
9037 (create_demangled_names_hash, symbol_set_names): New functions.
9038 (symbol_find_demangled_name): New function, broken out from
9039 symbol_init_demangled_names.
9040 (symbol_init_demangled_names): Use it.
9041 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9042 (SYMBOL_SET_NAMES): New macro.
9043 (symbol_set_names): Add prototype.
9044
9045 2003-02-03 Jim Blandy <jimb@redhat.com>
9046
9047 Use a single, consistent representation for an empty minimal
9048 symbol table in an objfile.
9049 * objfiles.c (terminate_minimal_symbol_table): New function.
9050 (allocate_objfile): Call it.
9051 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9052 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9053 non-NULL.
9054 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9055 objfile has minimal symbols, compare minimal_symbol_count to zero,
9056 instead of comparing msymbols with NULL.
9057 * objfiles.c (have_minimal_symbols): Same.
9058 * solib-sunos.c (solib_add_common_symbols): Call
9059 terminate_minimal_symbol_table.
9060 * symfile.c (reread_symbols): Same.
9061
9062 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9063
9064 * s390-tdep.c (s390_address_class_type_flags)
9065 (s390_address_class_type_flags_to_name)
9066 (s390_address_class_name_to_type_flags): New functions.
9067 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9068 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9069
9070 2003-02-03 Michael Snyder <msnyder@redhat.com>
9071
9072 * arm-tdep.c: Fix spell-o in comment.
9073
9074 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9075
9076 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9077 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9078 error messages to contain BFD filename.
9079
9080 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9081
9082 Fix PR gdb/742 gdb/743 gdb/877
9083 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9084 (do_mixed_source_and_assembly): Use
9085 make_cleanup_ui_out_tuple_begin_end and
9086 make_cleanup_ui_out_tuple_begin_end.
9087 (do_mixed_source_and_assembly): Ditto.
9088 * thread.c (do_captured_list_thread_ids): Ditto.
9089 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9090 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9091 ui_out_tuple_end): Delete prototypes.
9092 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9093 ui_out_list_end, ui_out_tuple_end): Delete.
9094
9095 From Kevin Buettner <kevinb@redhat.com>:
9096 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9097 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9098 (do_cleanup_table_end): New functions.
9099 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9100 Use cleanups to invoke_ui_out_tuple_end().
9101 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9102 * cli/cli-setshow.c (cmd_show_list): Use
9103 make_cleanup_ui_out_tuple_begin_end.
9104
9105 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9106
9107 * frame.c (frame_unwind_register): New function.
9108 (frame_unwind_unsigned_register): Use.
9109 (frame_unwind_signed_register): Use.
9110 (frame_read_register): New function.
9111 * frame.h (frame_unwind_register): Declare.
9112 (frame_read_register): Declare.
9113
9114 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9115 and frame_unwind_register instead of read_memory, write_register
9116 and deprecated_write_register_bytes.
9117
9118 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9119
9120 * frame.h: Note that namelen can be negative.
9121 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9122 NAME's length.
9123
9124 * NEWS: Mention that the d10v's `regs' command is deprecated.
9125 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9126 (d10v_print_registers_info): New function.
9127 (show_regs): Call d10v_print_registers_info.
9128 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9129
9130 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9131
9132 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9133 lost in the previous patch.
9134
9135 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9136
9137 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9138 * stack.c (print_frame_info_base): Output complete FRAME tuple
9139 for synthesized frames.
9140
9141 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9142
9143 * mips-nat.c (zerobuf): Delete.
9144 (fetch_inferior_registers): Alloc local zerobuf.
9145 (fetch_core_registers): Alloc local zerobuf.
9146 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9147 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9148 * thread-db.c (thread_db_store_registers): Ditto.
9149 * sh-tdep.c (sh_do_register): Ditto.
9150 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9151 * remote-sim.c (gdbsim_store_register): Ditto.
9152 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9153 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9154 * monitor.c (monitor_supply_register): Ditto.
9155 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9156 * mips-nat.c (fetch_inferior_registers): Ditto.
9157 * m68klinux-nat.c (fetch_register): Ditto.
9158 * lynx-nat.c (fetch_inferior_registers): Ditto.
9159 (fetch_inferior_registers): Ditto.
9160 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9161 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9162 (hpux_thread_store_registers): Ditto.
9163 * hppah-nat.c (fetch_register): Ditto.
9164 * hppab-nat.c (fetch_register): Ditto.
9165 * hppa-tdep.c (pa_register_look_aside): Ditto.
9166 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9167 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9168
9169 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9170
9171 * gdbarch.sh: Explictly specify all method levels. When a
9172 variable with an empty level, provide a non-multi-arch default.
9173 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9174 * gdbarch.h: Re-generate.
9175 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9176 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9177
9178 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9179
9180 * defs.h (host_pointer_to_address): Delete declaration.
9181 (address_to_host_pointer): Delete declaration.
9182 * utils.c (host_pointer_to_address): Delete function.
9183 (address_to_host_pointer): Delete function.
9184 * procfs.c (procfs_address_to_host_pointer): New function.
9185 * procfs.c (proc_set_watchpoint): Use.
9186 (procfs_can_use_hw_breakpoint): Update comments.
9187 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9188 (som_solib_add): Use.
9189 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9190 * hppa-tdep.c (unwind_command): Use.
9191
9192 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9193
9194 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9195 strlen d_name.
9196
9197 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9198 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9199 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9200 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9201 (define_symbol): Update.
9202 * symfile.c (generic_load): Remove references to nindy.
9203 * symtab.c: Remove references to nindy.
9204
9205 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9206
9207 * infcmd.c (print_float_info): Delete code conditional on
9208 FLOAT_INFO.
9209 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9210 * config/m68k/nm-apollo68b.h: Ditto.
9211 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9212 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9213 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9214
9215 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9216
9217 * config/i386/tm-i386os9k.h: Removed.
9218
9219 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9220 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9221 they're identical to i[3456]86-*-sysv* now.
9222 * config/i386/i386v32.mh: Removed.
9223 * config/i386/xm-i386v32.h: Removed.
9224 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9225
9226 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9227
9228 * config/i386/i386dgux.mh: Removed.
9229 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9230
9231 * configure.in: Fix typo.
9232 * configure: Regenerated.
9233
9234 2003-01-31 David Carlton <carlton@math.stanford.edu>
9235
9236 * dwarf2read.c (dwarf2_locate_sections): Set
9237 dwarf_ranges_section.
9238
9239 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9240
9241 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9242 * utils.c: Update comments documenting legitimate uses of PTR.
9243
9244 * utils.c: Re-indent.
9245
9246 * config/djgpp/fnchange.lst: Delete nindy files.
9247 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9248 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9249 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9250 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9251 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9252 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9253 * Makefile.in (init.c): Remove nindy references.
9254 (saber_gdb): Delete rule.
9255 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9256 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9257 and a68v-nat.c.
9258 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9259 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9260 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9261 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9262 nindy-share/stop.h.
9263 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9264 * saber.suppress: Delete file.
9265
9266 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
9267
9268 * dbxread.c (stabs_data): New static variable.
9269 (fill_symbuf): Support an in-memory buffer for stabs data.
9270 (stabs_seek): New function.
9271 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9272 (read_ofile_symtab): Use stabs_seek.
9273 (elfstab_build_psymtabs): Take an asection* instead of
9274 an offset and size. Relocate the stabs data if necessary.
9275 Save the section* for dbx_psymtab_to_symtab.
9276 * dwarf2read.c: Add section variables for each debug section.
9277 (dwarf2_locate_sections): Fill them in.
9278 (dwarf2_read_section): Take an asection* argument.
9279 Relocate the section contents if necessary.
9280 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9281 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9282 it to dwarf2_read_section.
9283 (dwarf2_build_frame_info): Update callers.
9284 * elfread.c (elf_symfile_read): Update call to
9285 elfstab_build_psymtabs.
9286 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9287 (DBX_STAB_SECTION): New macro.
9288 * stabsread.h (elfstab_build_psymtabs): Update prototype.
9289 * symfile.c (symfile_dummy_outputs): New function.
9290 (symfile_relocate_debug_section): New function.
9291 * symfile.h (symfile_relocate_debug_section): Add prototype.
9292
9293 2003-01-31 Richard Henderson <rth@redhat.com>
9294
9295 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9296 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9297 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9298 * alpha-tdep.c (alpha_register_name): Add "unique".
9299 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9300 (ALPHA_UNIQUE_REGNUM): New.
9301 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9302
9303 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9304
9305 * README: Remove reference to Ericsson 1800 monitor.
9306 * Makefile.in (remote-es.o): Delete rule.
9307 (ALLDEPFILES): Delete remote-es.c.
9308 * remote-es.c: Delete file.
9309 * config/m68k/es1800.mt: Delete file.
9310 * config/djgpp/fnchange.lst: Update.
9311 * configure.tgt: Delete m68*-ericsson-* target.
9312
9313 2003-01-31 Adam Fedor <fedor@gnu.org>
9314
9315 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9316 Remove duplicate/shadowing variable of same name.
9317
9318 2003-01-30 Jim Blandy <jimb@redhat.com>
9319
9320 * symfile.c (find_separate_debug_file): Assert that the objfile's
9321 directory name we compute ends with a slash, and then assume that
9322 that's so everywhere we use it.
9323
9324 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
9325
9326 * valops.c (value_assign): Flush frame cache after stores to memory
9327 also.
9328
9329 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9330
9331 * Makefile.in (mon960-rom.o): Delete rule.
9332 * mon960-rom.c: Delete file.
9333
9334 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9335
9336 * d10v-tdep.c: Include "frame-unwind.h".
9337 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9338 list.
9339 (next_addr, uses_frame): Delete.
9340 (struct d10v_unwind_cache): Define.
9341 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9342 Use info instead of next_addr and uses_frame globals.
9343 (d10v_frame_init_saved_regs): Delete function.
9344 (d10v_init_extra_frame_info): Delete function.
9345 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9346 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9347 init_frame_pc or frame_saved_pc.
9348 (d10v_pop_frame): Delete function.
9349 (do_d10v_pop_frame): Delete function.
9350 (d10v_frame_chain): Delete function.
9351 (d10v_frame_chain_valid): Delete function.
9352 (d10v_frame_pc_unwind): New function.
9353 (d10v_frame_id_unwind): New function.
9354 (saved_regs_unwinder): New function.
9355 (d10v_frame_register_unwind): New function.
9356 (d10v_frame_pop): New function.
9357 (d10v_frame_unwind): New variable.
9358 (d10v_frame_p): New function.
9359 (d10v_frame_saved_pc): Delete function.
9360 * Makefile.in (d10v-tdep.o): Update dependencies.
9361
9362 2003-01-30 J. Brobecker <brobecker@gnat.com>
9363
9364 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9365 causing some regressions due to a change in the default value
9366 for this macro.
9367
9368 2003-01-29 Richard Henderson <rth@redhat.com>
9369 Elena Zannoni <ezannoni@redhat.com>
9370 Daniel Jacobowitz <drow@mvista.com>
9371
9372 Fix PR gdb/961.
9373 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
9374 variables.
9375 (RANGES_SECTION): New.
9376 (dwarf_ranges_buffer): New variable.
9377 (struct comp_unit_head): Add member "die".
9378 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9379 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9380 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9381 (dwarf2_locate_sections): Likewise.
9382 (dwarf2_build_psymtabs): Read .debug_ranges.
9383 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9384 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9385 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9386 Look for DW_AT_ranges and return the bounding box.
9387
9388 2003-01-29 Brian Ford <ford@vss.fsi.com>
9389
9390 * win32-nat.c (cygwin_pid): Removed as unused.
9391 (child_attach): Try fall back to Cygwin pid.
9392
9393 2003-01-29 Jim Blandy <jimb@redhat.com>
9394
9395 * objfiles.h (struct objfile): Doc fix.
9396
9397 2003-01-29 Andrew Cagney <ac131313@redhat.com>
9398
9399 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9400 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9401 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9402 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9403 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9404 (FRAME_SAVED_PC): Change to a function with predicate.
9405 * gdbarch.h, gdbarch.c: Re-generate.
9406
9407 2003-01-28 Andrew Cagney <ac131313@redhat.com>
9408
9409 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9410
9411 * complaints.c (complain): Delete function.
9412 * complaints.h (struct deprecated_complaint): Delete definition.
9413 (complain): Delete declaration.
9414
9415 2003-01-28 Kevin Buettner <kevinb@redhat.com>
9416
9417 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9418 dummy frames.
9419
9420 2003-01-27 Andrew Cagney <ac131313@redhat.com>
9421
9422 * sentinel-frame.h, sentinel-frame.c: New files.
9423 * Makefile.in (frame.o): Update dependencies.
9424 (SFILES): Add sentinel-frame.c.
9425 (sentinel_frame_h): Define.
9426 (COMMON_OBS): Add sentinel-frame.o.
9427 (sentinel-frame.o): Specify dependencies.
9428 * frame.c: Include "sentinel-frame.h".
9429 (frame_register_unwind): Rewrite assuming that there is always a a
9430 ->next frame.
9431 (frame_register, generic_unwind_get_saved_register): Ditto.
9432 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9433 (create_sentinel_frame, unwind_to_current_frame): New functions.
9434 (get_current_frame): Rewrite using create_sentinel_frame and
9435 unwind_to_current_frame. When possible, always create a frame.
9436 (create_new_frame): Set next to the sentinel frame.
9437 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9438 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9439 ID cache when necessary.
9440 (frame_saved_regs_id_unwind): Use frame_relative_level.
9441 (deprecated_generic_get_saved_register): Use frame_relative_level,
9442 get_frame_saved_regs, get_frame_pc, get_frame_base and
9443 get_next_frame.
9444 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9445 frame_register.
9446
9447 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9448
9449 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9450
9451 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9452
9453 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9454 (maintenance_set_profile_cmd): Use error () instead of warning ().
9455
9456 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9457
9458 * configure.in: Check that -pg works if using --enable-profiling.
9459 Check for monstartup and _mcleanup regardless of --enable-profiling.
9460 * maint.c: Check for monstartup and _mcleanup before using them.
9461 * config.in: Regenerated.
9462 * configure: Regenerated.
9463
9464 2003-01-24 Nick Clifton <nickc@redhat.com>
9465
9466 * Add sh2e support:
9467
9468 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9469
9470 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9471 (sh2e_show_regs): New.
9472 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9473 * config/sh/tm-sh.h: Added sh2e to comments.
9474
9475 2003-01-23 Jim Blandy <jimb@redhat.com>
9476
9477 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9478 symbols found)" message here; we haven't checked for a separate
9479 debug info file yet, so we don't know yet.
9480 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9481 we've looked everywhere. Also, there's no need to print a special
9482 message when we're loading the separate debug info file: the one
9483 symbol_file_add prints is fine.
9484
9485 2003-01-23 Alexander Larsson <alexl@redhat.com>
9486 Jim Blandy <jimb@redhat.com>
9487
9488 Add support for executables whose debug info has been separated
9489 out into a separate file, leaving only a link behind.
9490 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9491 and separate_debug_objfile_backlink.
9492 (put_objfile_before): New declaration.
9493 * symfile.c: #include "filenames.h".
9494 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9495 debug info in a separate file, read that, too. Save the addrs
9496 argument, so we can use it again to read the separated debug info;
9497 syms_from_objfile modifies the table we pass it.
9498 (reread_symbols): After re-reading an objfile, call
9499 reread_separate_symbols to refresh its separate debug info
9500 objfile, if it has one.
9501 (reread_separate_symbols, find_separate_debug_file,
9502 get_debug_link_info, separate_debug_file_exists): New functions.
9503 (debug_file_directory): New global var.
9504 (_initialize_symfile): Initialize debug_file_directory, and
9505 provide the new `set debug-file-directory' command to let the user
9506 change it.
9507 * objfiles.c (free_objfile): If this objfile has its debug info in
9508 a separate objfile, free that one too. If this is itself a
9509 separate debug info objfile, clear our parent's backlink.
9510 (put_objfile_before): New function.
9511 * utils.c (gnu_debuglink_crc32): New function.
9512 * defs.h (gnu_debuglink_crc32): New declaration.
9513 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9514 * configure.in: Handle --with-separate-debug-dir config option.
9515 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9516 * acconfig.h (DEBUGDIR): New macro.
9517 * configure, aclocal.m4, config.in: Regenerated.
9518
9519 2003-01-22 Jim Blandy <jimb@redhat.com>
9520
9521 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9522 like the old symbol_file_add, but taking new arguments: you can
9523 now pass in either a `struct section_addr_info' list to say where
9524 each section is loaded, or a `struct section_offsets' table. Pass
9525 these new arguments through to syms_from_objfile as appropriate.
9526 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9527 with the appropriate quiescent values for the new arguments.
9528
9529 * symfile.c: #include "gdb_assert.h".
9530 (syms_from_objfile): Add the ability to pass in a section offset
9531 table directly, as an alternative to the section_addr_info table.
9532 Document arguments better.
9533 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9534 * symfile.h (syms_from_objfile): Update declaration.
9535 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9536 syms_from_objfile.
9537 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9538
9539 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
9540
9541 Original patch by Tom Tromey <tromey@cygnus.com> and
9542 Jason Molenda <jmolenda@apple.com>.
9543 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9544 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9545 * NEWS: Mention profiling.
9546 * configure.in (--enable-gdbtk): Fix typo.
9547 (--enable-profiling): New. Set PROFILE_CFLAGS.
9548 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9549 Fill in function.
9550 (profiling_state): New variable.
9551 (mcleanup_wrapper): New function.
9552 (_initialize_maint): Remove NOTYET, fix call to
9553 add_setshow_boolean_cmd for "maint set profile".
9554 * configure: Regenerated.
9555
9556 2003-01-21 Martin M. Hunt <hunt@redhat.com>
9557
9558 * Makefile.in (install-gdbtk): Install PNG images too.
9559
9560 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9561
9562 * exec.c (text_start): Delete global variable.
9563 (exec_file_attach): Make text_start local to the function.
9564 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9565 * valops.c (hand_function_call): Delete code that handles
9566 BEFORE_TEXT_END and AFTER_TEXT_END.
9567 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9568 of CALL_DUMMY_LOCATION.
9569 * gdbarch.c: Regenerate.
9570 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9571 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9572 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9573 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9574 (text_end): Delete extern declaration.
9575
9576 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9577
9578 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9579 * blockframe.c (backtrace_below_main): Move to "frame.c".
9580 (frame_chain_valid): Delete check for backtrace_below_main.
9581 (_initialize_blockframe): Delete initialization, move ``set
9582 backtrace-below-main'' command to "frame.c".
9583 (do_flush_frames_sfunc): Delete function.
9584 * frame.c: Include "command.h" and "gdbcmd.h".
9585 (frame_type_from_pc): New function.
9586 (create_new_frame): Use frame_type_from_pc.
9587 (legacy_get_prev_frame): New function.
9588 (get_prev_frame): Rewrite. When an old style frame, call
9589 legacy_get_prev_frame. Otherwize, unwind the PC first.
9590 (_initialize_frame): Add ``set backtrace-below-main'' command.
9591 * Makefile.in (frame.o): Update dependencies.
9592
9593 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9594
9595 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9596 DEPRECATED_REGISTERS_INFO.
9597
9598 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9599
9600 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9601 Maintainers'. Update `Various Maintainers'.
9602
9603 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9604
9605 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9606 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9607 Suppress actual parameters when `-'.
9608 * gdbarch.h, gdbarch.c: Regenerate.
9609
9610 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9611
9612 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9613 code handling dummy frames.
9614
9615 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9616
9617 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9618 (struct frame_unwind): Add field pop.
9619 * frame.h (frame_pop): Declare.
9620 * frame.c (frame_saved_regs_pop): New function.
9621 (trad_frame_unwinder): Add frame_saved_regs_pop.
9622 (frame_pop): New function.
9623 * dummy-frame.c (dummy_frame_pop): New function.
9624 (discard_innermost_dummy): New function.
9625 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9626 (dummy_frame_unwind): Add dummy_frame_pop.
9627 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9628 * valops.c (hand_function_call): Ditto.
9629 * stack.c (return_command): Ditto.
9630
9631 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9632
9633 * cris-tdep.c: Fix function declaration indentation.
9634 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9635 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9636 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9637 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9638 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9639 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9640
9641 2003-01-18 Michael Chastain <mec@shout.net>
9642
9643 * README (Unpacking and Installation -- quick overview):
9644 Warn against ".../gdb-5.3/gdb/configure".
9645
9646 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9647
9648 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9649 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9650 (struct frame_unwind): Declare opaque.
9651 (dummy_frame_p): Declare function.
9652 * dummy-frame.c (dummy_frame_id_unwind): Make static.
9653 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9654 * dummy-frame.c: Include "frame-unwind.h".
9655 (dummy_frame_p): New function.
9656 (dummy_frame_unwind): New variable.
9657 * frame.c: Include "frame-unwind.h".
9658 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
9659 to use the new unwind field.
9660 (set_unwind_by_pc): Delete function.
9661 (create_new_frame, get_prev_frame): Set unwind field using
9662 frame_unwind_find_by_pc.
9663 (trad_frame_unwind, trad_frame_unwinder): New variables.
9664 * frame.h (trad_frame_unwind): Declare variable.
9665 (frame_id_unwind_ftype): Delete declaration.
9666 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
9667 (struct frame_unwind): Declare opaque.
9668 (struct frame_info): Replace the fields id_unwind, pc_unwind and
9669 register_unwind with a single unwind pointer.
9670 * frame-unwind.h, frame-unwind.c: New files.
9671 * Makefile.in (SFILES): Add frame-unwind.c.
9672 (frame_unwind_h): Define.
9673 (COMMON_OBS): Add frame-unwind.o.
9674 (frame-unwind.o): Specify dependencies.
9675 (frame.o, dummy-frame.o): Update dependencies.
9676
9677 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9678
9679 * ada-valprint.c: Eliminate PTR.
9680 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
9681 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
9682 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
9683 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
9684 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
9685 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
9686 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
9687
9688 2003-01-17 Andrew Cagney <ac131313@redhat.com>
9689
9690 * main.c (captured_main): Don't use PTR.
9691 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
9692 * gdbtypes.c (lookup_primitive_typename): Ditto.
9693 (lookup_struct_elt_type): Ditto.
9694 * f-valprint.c (info_common_command): Ditto.
9695 (list_all_visible_commons): Ditto.
9696 * jv-typeprint.c (java_type_print_base): Ditto.
9697
9698 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
9699 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
9700 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
9701 i386-interix-nat.c and i386-interix-tdep.c. Rename
9702 m68klinux-nat.c and m68klinux-tdep.c. Rename
9703 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
9704 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
9705 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
9706 * main.c (captured_main): Use xfree, not free.
9707
9708 2003-01-16 Andrew Cagney <ac131313@redhat.com>
9709
9710 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
9711 ID back using a parameter.
9712 * frame.c (frame_id_unwind): Update call.
9713 (frame_saved_regs_id_unwind): Update.
9714 * dummy-frame.c (dummy_frame_id_unwind): Update function.
9715 * dummy-frame.h (struct frame_id): Add opaque declaration.
9716 (dummy_frame_id_unwind): Update declaration.
9717
9718 2003-01-15 Andrew Cagney <ac131313@redhat.com>
9719
9720 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
9721
9722 2003-01-15 Stephen P. Smith <ischis2@cox.net>
9723
9724 * MAINTAINERS (Stephen P. Smith): Updated email address.
9725
9726 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
9727
9728 Fix PR gdb/898
9729 * breakpoint.c (until_break_command): Add new argument. Use it to
9730 decide whether to stop only at the current frame or not.
9731 * breakpoint.h (until_break_command): Update prototype.
9732 * infcmd.c (until_command): Add new argument to until_break_command
9733 call.
9734 (advance_command): New function.
9735 (_initialize_infcmd): Update help string for 'until' command.
9736 Add new 'advance' command.
9737
9738 2003-01-14 David Carlton <carlton@math.stanford.edu>
9739
9740 * linespec.c (decode_line_1): Normalize comments.
9741 (set_flags): Ditto.
9742 (locate_first_half): Ditto.
9743 (decode_compound): Ditto.
9744 (symtab_from_filename): Ditto.
9745 (decode_all_digits): Ditto.
9746 (decode_dollar): Ditto.
9747 (find_methods): Ditto.
9748 (find_toplevel_char): Ditto.
9749
9750 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9751
9752 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
9753 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
9754 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
9755 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
9756 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
9757 * language.c, language.h, m32r-tdep.c: Update copyright.
9758 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
9759 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
9760 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
9761 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
9762 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9763 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
9764
9765 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9766
9767 * stabsread.h (process_later, resolve_cfront_continuation):
9768 Obsolete.
9769 Update copyright years.
9770 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
9771 Update copyright year.
9772 * dbxread.c(struct cont_elem): Obsolete.
9773 (process_later, process_now): Obsolete functions.
9774 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
9775 Update copyright year.
9776 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
9777 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
9778 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
9779 (parse_partial_symbols): Obsolete cfront support.
9780 * stabsread.c
9781 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
9782 macros.
9783 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
9784 read_cfront_baseclasses, read_cfront_member_functions,
9785 resolve_cfront_continuation,read_cfront_static_fields,
9786 copy_cfront_struct_fields): Obsolete functions.
9787 (define_symbol, read_one_struct_field): Obsolete cfront support.
9788 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
9789 Update Copyright year.
9790
9791 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9792
9793 * stack.c (print_frame_info, print_stack_frame_base_stub,
9794 print_stack_frame_base, show_and_print_stack_frame_stub,
9795 show_and_print_stack_frame, print_only_stack_frame_stub,
9796 print_only_stack_frame): Delete functions.
9797 (print_stack_frame_stub): Call print_frame_info instead of
9798 print_frame_info_base.
9799 (print_frame_info_base): Rename to print_frame_info.
9800 (backtrace_command_1): Call print_frame_info, instead of
9801 print_frame_info_base.
9802 (current_frame_command): Call print_stack_frame, instead of
9803 print_only_stack_frame.
9804 (frame_command): Call print_stack_frame, instead of
9805 show_and_print_stack_frame.
9806 (up_command): Ditto.
9807 (down_command): Ditto.
9808 * frame.h (print_only_stack_frame): Delete prototype.
9809 * infrun.c (normal_stop): Call print_stack_frame, instead of
9810 show_and_print_stack_frame.
9811 * thread.c (info_threads_command): Call print_stack_frame, instead
9812 of print_only_stack_frame.
9813
9814 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9815
9816 * README (Graphical interface to GDB): Update URL. Point at
9817 gdb/links/.
9818
9819 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
9820 version match.
9821
9822 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9823
9824 * symtab.c (find_pc_sect_line): Don't consider end-of-function
9825 lines.
9826
9827 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9828
9829 * thread-db.c (attach_thread): Prototype.
9830 (struct private_thread_info): Remove lwpid. Add thread handle (th),
9831 thread information (ti), and valid flags (th_valid, ti_valid).
9832 (attach_thread): Move target_pid_to_str call to after the thread
9833 is added to GDB's list. Initialize the cache.
9834 (thread_get_info_callback, thread_db_map_id2thr)
9835 (thread_db_get_info): New functions.
9836 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
9837 (thread_db_store_registers, thread_db_thread_alive)
9838 (thread_db_get_thread_local_address): Use them.
9839 (thread_db_pid_to_str): Likewise. Return "Missing" instead
9840 of calling error() for threads in unknown state.
9841
9842 (clear_lwpid_callback): New function.
9843 (thread_db_resume): Use it to clear the cache.
9844
9845 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9846
9847 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
9848 (resume_callback): Remove dead code.
9849
9850 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9851
9852 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
9853 predicate.
9854 * gdbarch.h, gdbarch.c: Regenerate.
9855 * stack.c (frame_info): Only initialize the saved registers when
9856 FRAME_INIT_SAVED_REGS_P.
9857 * frame.c (frame_saved_regs_register_unwind): Assert
9858 FRAME_INIT_SAVED_REGS_P.
9859 (deprecated_generic_get_saved_register): Ditto.
9860
9861 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9862
9863 * source.c (openp): Squelch warning about "filename".
9864
9865 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9866
9867 * source.c (openp): If the file does not exist don't necessarily
9868 search the path.
9869
9870 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9871
9872 Fix PR gdb/872.
9873 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
9874 (integer_types_same_name_p): New function.
9875 (rank_one_type): Use it.
9876 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
9877
9878 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9879
9880 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
9881 variables.
9882 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
9883 * configure.in: Add --with-sysroot.
9884 * configure: Regenerated.
9885 * main.c (gdb_sysroot): New variable.
9886 (captured_main): Initialize gdb_sysroot.
9887 * defs.h (gdb_sysroot): New extern declaration.
9888 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
9889
9890 2003-01-12 Michael Chastain <mec@shout.net>
9891
9892 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
9893
9894 2003-01-12 Michael Chastain <mec@shout.net>
9895
9896 * top.c (print_gdb_version): Bump copyright year to 2003.
9897
9898 2003-01-12 David Carlton <carlton@bactrian.org>
9899
9900 * linespec.c (symtab_from_filename): Rename variable 's' to
9901 'file_symtab'.
9902
9903 2003-01-12 Andrew Cagney <ac131313@redhat.com>
9904
9905 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
9906 dummy frame.
9907 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
9908
9909 2003-01-12 Andrew Cagney <ac131313@redhat.com>
9910
9911 * d10v-tdep.c: Include "gdb_assert.h".
9912 (d10v_store_return_value): Rewrite to match current interface.
9913 (d10v_extract_struct_value_address): Ditto.
9914 (d10v_extract_return_value): Ditto.
9915 (d10v_gdbarch_init): Set store_restore_value,
9916 extract_struct_value_address and extract_return_value.
9917
9918 2003-01-12 J. Brobecker <brobecker@gnat.com>
9919
9920 * hpread.c (set_namestring): New procedure replacing the
9921 SET_NAMESTRING macro.
9922 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
9923 by calls to set_namestring.
9924
9925 2003-01-11 J. Brobecker <brobecker@gnat.com>
9926
9927 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
9928 a compilation warning.
9929 (hpread_process_one_debug_symbol): Likewise.
9930
9931 2003-01-10 David Carlton <carlton@math.stanford.edu>
9932
9933 * linespec.c (decode_line_1): Rename variable 's' to
9934 'file_symtab'.
9935 (decode_all_digits): Rename argument 's' to 'file_symtab'.
9936 (decode_dollar): Ditto.
9937 (decode_variable): Ditto.
9938 (symbol_found): Ditto.
9939
9940 2003-01-09 Michael Chastain <mec@shout.net>
9941
9942 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
9943
9944 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
9945
9946 * win32-nat.c (set_process_privilege): New function.
9947 (child_attach): Call set_process_privilege() to enable the
9948 SE_DEBUG_NAME user privilege if available in process token.
9949
9950 2003-01-10 J. Brobecker <brobecker@gnat.com>
9951
9952 * hpread.c (hpread_process_one_debug_symbol): Fix a small
9953 compilation error in the previous revision.
9954
9955 2003-01-09 David Carlton <carlton@math.stanford.edu>
9956
9957 * linespec.c: Update copyright.
9958
9959 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
9960
9961 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
9962 than inferior_ptid.
9963 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
9964
9965 2003-01-09 Andrew Cagney <ac131313@redhat.com>
9966
9967 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
9968 Update comments.
9969 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
9970 (frame_saved_regs_zalloc): Update.
9971 (frame_saved_regs_register_unwind): Update.
9972 (create_new_frame): Update.
9973 (get_prev_frame): Update.
9974 (frame_extra_info_zalloc): Update.
9975 (deprecated_get_frame_saved_regs): Update.
9976 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
9977 * cris-tdep.c: Update comment.
9978
9979 * somsolib.h: Fix function indentation.
9980 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
9981 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
9982 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
9983 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
9984 * somsolib.c, inftarg.c: Remove assignment in if conditional.
9985
9986 * infrun.c (follow_fork): Use ISO C definition.
9987 * expprint.c (print_subexp): Use xfree instead of free.
9988 * charset.c: Include "gdb_string.h" instead of <string.h>.
9989 (register_iconv_charsets): Use ISO C definition.
9990 (host_charset, target_charset): Ditto.
9991 * Makefile.in (charset.o): Update dependencies.
9992 (mi-cmd-env.o): Update dependencies.
9993
9994 2003-01-08 Andrew Cagney <cagney@redhat.com>
9995
9996 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
9997 get_frame_base.
9998
9999 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10000
10001 * gdb_mbuild.sh: Add --keep option. When specified, keep the
10002 build directories. Save edited gdb output in Mbuild.log. If a
10003 build fails, remove any final GDB executable.
10004
10005 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10006
10007 * gdb_mbuild.sh: Edit the output of `maint print architecture'
10008 replacing hex constants with function names and stripping leading
10009 file name directory prefixes.
10010
10011 2003-01-08 Andrew Cagney <cagney@redhat.com>
10012
10013 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
10014 get_frame_base.
10015
10016 2003-01-08 David Carlton <carlton@math.stanford.edu>
10017
10018 * linespec.c (decode_line_1): Move code into decode_variable.
10019 (decode_variable): New function.
10020
10021 2003-01-08 Andrew Cagney <ac131313@redhat.com>
10022
10023 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
10024
10025 2003-01-08 Andrew Cagney <cagney@redhat.com>
10026
10027 * cris-tdep.c (cris_frame_init_saved_regs): Use
10028 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10029 saved_regs buffer.
10030 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10031 (sh64_nofp_frame_init_saved_regs): Ditto.
10032 (sh_fp_frame_init_saved_regs): Ditto.
10033 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10034 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10035 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10036 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10037
10038 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10039
10040 * minsyms.c (lookup_minimal_symbol): Update comment.
10041 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10042 (lookup_minimal_symbol_solib_trampoline): Likewise.
10043
10044 2003-01-08 Andrew Cagney <cagney@redhat.com>
10045
10046 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10047 frame_relative_level.
10048
10049 * alpha-tdep.c: Use get_frame_extra_info.
10050 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10051 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10052 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10053 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10054
10055 * alpha-tdep.c: Use get_next_frame.
10056 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10057 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10058 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10059 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10060 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10061 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10062 * xstormy16-tdep.c: Ditto.
10063
10064 2003-01-07 Andrew Cagney <cagney@redhat.com>
10065
10066 * alpha-tdep.c: Use get_frame_base.
10067 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10068 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10069 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10070 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10071 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10072 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10073 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10074 * config/sparc/tm-sparc.h: Ditto.
10075
10076 2003-01-07 Andrew Cagney <cagney@redhat.com>
10077
10078 * frame.c (deprecated_get_frame_context): New function.
10079 (deprecated_set_frame_context): New function.
10080 * frame.h (deprecated_get_frame_context): Declare.
10081 (deprecated_set_frame_context): Declare.
10082 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10083 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10084
10085 2003-01-07 Andrew Cagney <cagney@redhat.com>
10086
10087 * frame.c (deprecated_set_frame_next_hack): New function.
10088 (deprecated_set_frame_prev_hack): New function.
10089 * frame.h (deprecated_set_frame_next_hack): Declare.
10090 (deprecated_set_frame_prev_hack): Declare.
10091 * mcore-tdep.c (analyze_dummy_frame): Use
10092 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10093 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10094
10095 2003-01-07 David Carlton <carlton@math.stanford.edu>
10096
10097 * linespec.c (decode_line_1): Move code into decode_dollar.
10098 (decode_dollar): New function.
10099
10100 2003-01-07 Andrew Cagney <cagney@redhat.com>
10101
10102 * arm-tdep.c (arm_init_extra_frame_info): Use
10103 deprecated_update_frame_base_hack.
10104 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10105 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10106 (fix_frame_pointer): Ditto.
10107 (mn10300_analyze_prologue): Ditto.
10108
10109 2003-01-07 Andrew Cagney <cagney@redhat.com>
10110
10111 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10112 extra_info using frame_extra_info_zalloc.
10113 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10114 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10115 (sh64_init_extra_frame_info): Ditto.
10116 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10117 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10118 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10119 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10120 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10121 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10122 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10123 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10124 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10125 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10126 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10127 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10128
10129 * mn10300-tdep.c (analyze_dummy_frame): Use
10130 deprecated_set_frame_extra_info_hack.
10131 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10132
10133 2003-01-07 J. Brobecker <brobecker@gnat.com>
10134
10135 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10136 class is not scText. These do not define "real" procedures.
10137 (parse_partial_symbols): Likewise.
10138
10139 2003-01-06 Michael Snyder <msnyder@redhat.com>
10140
10141 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10142
10143 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10144
10145 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10146 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10147 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10148 deprecated_frame_xmalloc_with_cleanup.
10149 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10150 deprecated_frame_xmalloc.
10151 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10152 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10153
10154 2003-01-06 Andrew Cagney <cagney@redhat.com>
10155
10156 * x86-64-linux-tdep.c: Include "osabi.h".
10157 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10158
10159 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10160
10161 2003-01-06 Andrew Cagney <cagney@redhat.com>
10162
10163 * MAINTAINERS (Target Instruction Set Architectures): Update
10164 arm-elf. Can be built with -Werror, has been multiarched.
10165
10166 * value.h (unpack_long): Make buffer parameter constant.
10167 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10168 * scm-lang.h (scm_parse): Ditto.
10169 * defs.h (extract_typed_address, extract_address): Ditto.
10170 (extract_long_unsigned_integer): Ditto.
10171 * inferior.h (unsigned_pointer_to_address): Ditto.
10172 (signed_pointer_to_address): Ditto.
10173 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10174 * gdbarch.h, gdbarch.c: Regenerate.
10175 * findvar.c (extract_long_unsigned_integer): Update.
10176 (extract_address): Update.
10177 (extract_typed_address): Update.
10178 (unsigned_pointer_to_address): Update.
10179 * values.c (unpack_long): Update.
10180 (unpack_double): Update.
10181 (unpack_pointer): Update.
10182 (unpack_field_as_long): Update.
10183 * d10v-tdep.c (d10v_pointer_to_address): Update.
10184 * avr-tdep.c (avr_pointer_to_address): Update.
10185 * scm-lang.c (scm_unpack): Update.
10186 * findvar.c (signed_pointer_to_address): Update.
10187
10188 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10189
10190 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10191 since it is in i386-tdep.c.
10192
10193 2003-01-06 J. Brobecker <brobecker@gnat.com>
10194
10195 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10196 failure introduced in the previous change.
10197
10198 2003-01-05 Michael Chastain <mec@shout.net>
10199
10200 * README: Remove references to deleted remote-*.c files:
10201 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10202 remote-nrom.c, remote-os9k.c, remote-udi.c.
10203
10204 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10205
10206 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10207 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10208 i386_get_longjmp_target.
10209
10210 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10211
10212 * arm-tdep.c (prologue_cache): Change to a pointer.
10213 (_initialize_arm_tdep): Allocate prologue_cache.
10214 (check_prologue_cache): Update.
10215 (save_prologue_cache): Update.
10216 (arm_gdbarch_init): Update.
10217
10218 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10219
10220 * stabsread.c (update_method_name_from_physname): Call complaint()
10221 instead of error.
10222
10223 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10224
10225 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10226 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10227 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10228
10229 * blockframe.c: Include "gdbcmd.h" and "command.h".
10230 (backtrace_below_main): New variable.
10231 (file_frame_chain_valid, func_frame_chain_valid)
10232 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10233 (generic_func_frame_chain_valid): Remove functions.
10234 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10235 (_initialize_blockframe): New function.
10236 * Makefile.in (blockframe.o): Update dependencies.
10237 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10238 comment. Call frame_chain_valid ().
10239 * frame.h: Remove old prototypes. Add prototype for
10240 frame_chain_valid and update comments to match.
10241 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10242 Remove old comment.
10243 * gdbarch.h: Regenerated.
10244 * gdbarch.c: Regenerated.
10245
10246 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10247 set_gdbarch_frame_chain_valid.
10248 * avr-tdep.c (avr_gdbarch_init): Likewise.
10249 * cris-tdep.c (cris_gdbarch_init): Likewise.
10250 * frv-tdep.c (frv_gdbarch_init): Likewise.
10251 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10252 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10253 (i386_nw_init_abi): Likewise.
10254 (i386_gdbarch_init): Likewise.
10255 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10256 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10257 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10258 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10259 * mips-tdep.c (mips_gdbarch_init): Likewise.
10260 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10261 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10262 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10263 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10264 * s390-tdep.c (s390_gdbarch_init): Likewise.
10265 * sh-tdep.c (sh_gdbarch_init): Likewise.
10266 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10267 * v850-tdep.c (v850_gdbarch_init): Likewise.
10268 * vax-tdep.c (vax_gdbarch_init): Likewise.
10269 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10270
10271 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10272 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10273 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10274 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10275 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10276 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10277 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10278 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10279
10280 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10281
10282 * Makefile.in (acconfig_h): Remove incorrect macro.
10283 (config_h): Define.
10284 (osabi.o): Update dependencies.
10285 * configure.tgt: Set gdb_osabi based on target triplet.
10286 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10287 * configure: Regenerated.
10288 * config.in: Regenerated.
10289 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10290 (GDB_OSABI_DEFAULT): Define if not already defined.
10291 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10292 (set_osabi_string): New variables.
10293 (gdbarch_register_osabi): Add new OS ABI to
10294 gdb_osabi_available_names.
10295 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10296 (set_osabi, show_osabi): New functions.
10297 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10298
10299 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10300
10301 * arch-utils.c (gdbarch_info_init): Set osabi to
10302 GDB_OSABI_UNINITIALIZED.
10303 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10304 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10305 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10306 * gdbarch.c: Regenerated.
10307 * gdbarch.h: Regenerated.
10308 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10309 there's no BFD.
10310 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10311 * osabi.h (enum gdb_osabi): Move to defs.h.
10312 (gdbarch_init_osabi): Update prototype.
10313 * defs.h (enum gdb_osabi): Moved here.
10314 * Makefile.in: Update dependencies.
10315
10316 * alpha-tdep.h: Don't include "osabi.h".
10317 (struct gdbarch_tdep): Remove osabi member.
10318 * alpha-tdep.c: Include "osabi.h".
10319 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10320 iterate over arches. Update call to gdbarch_init_osabi.
10321 (alpha_dump_tdep): Don't dump osabi.
10322 * alpha-linux-tdep.c: Include "osabi.h".
10323 * alpha-osf1-tdep.c: Include "osabi.h".
10324 * alphafbsd-tdep.c: Include "osabi.h".
10325 * alphanbsd-tdep.c: Include "osabi.h".
10326
10327 * arm-tdep.h: Don't include "osabi.h".
10328 (struct gdbarch_tdep): Remove osabi member.
10329 * arm-tdep.c: Include "osabi.h".
10330 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10331 iterate over arches. Update call to gdbarch_init_osabi.
10332 (arm_dump_tdep): Don't dump osabi.
10333 * arm-linux-tdep.c: Include "osabi.h".
10334 * armnbsd-tdep.c: Include "osabi.h".
10335
10336 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10337 Update call to gdbarch_init_osabi.
10338
10339 * i386-tdep.h: Don't include "osabi.h".
10340 (struct gdbarch_tdep): Remove osabi member.
10341 * i386-tdep.c: Include "osabi.h".
10342 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10343 iterate over arches. Update call to gdbarch_init_osabi.
10344 (i386_dump_tdep): Don't dump osabi.
10345 * i386-linux-tdep.c: Include "osabi.h".
10346 * i386-sol2-tdep.c: Include "osabi.h".
10347 * i386bsd-tdep.c: Include "osabi.h".
10348 * i386gnu-tdep.c: Include "osabi.h".
10349 * i386ly-tdep.c: Include "osabi.h".
10350 * i386nbsd-tdep.c: Include "osabi.h".
10351 * i386obsd-tdep.c: Include "osabi.h".
10352
10353 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10354 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10355 check osabi when iterating over arches. Update call to
10356 gdbarch_init_osabi.
10357 (mips_dump_tdep): Don't dump osabi.
10358
10359 * ns32k-tdep.h: Don't include "osabi.h".
10360 (struct gdbarch_tdep): Remove.
10361 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10362 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10363 allocate tdep. Update call to gdbarch_init_osabi.
10364 (ns32k_dump_tdep): Remove.
10365 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10366 * ns32knbsd-tdep.c: Include "osabi.h".
10367
10368 * ppc-tdep.h: Don't include "osabi.h".
10369 (struct gdbarch_tdep): Remove osabi member.
10370 * rs6000-tdep.c: Include "osabi.h".
10371 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10372 osabi when iterating over arches. Update call to
10373 gdbarch_init_osabi.
10374 (rs6000_dump_tdep): Don't dump osabi.
10375 * ppc-linux-tdep.c: Include "osabi.h".
10376 * ppcnbsd-tdep.c: Include "osabi.h".
10377
10378 * sh-tdep.h: Don't include "osabi.h".
10379 (struct gdbarch_tdep): Remove osabi member.
10380 * sh-tdep.c: Include "osabi.h".
10381 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10382 iterate over arches. Update call to gdbarch_init_osabi.
10383 (sh_dump_tdep): Don't dump osabi.
10384 * shnbsd-tdep.c: Include "osabi.h".
10385
10386 * sparc-tdep.c: Include "osabi.h".
10387 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10388 iterate over arches. Update call to gdbarch_init_osabi.
10389 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10390 tdep structure.
10391
10392 * vax-tdep.h: Don't include "osabi.h".
10393 (struct gdbarch_tdep): Remove.
10394 * vax-tdep.c: Include "osabi.h".
10395 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10396 iterate over arches. Don't allocate tdep. Update call
10397 to gdbarch_init_osabi.
10398 (vax_dump_tdep): Remove.
10399 (_initialize_vax_tdep): Update call to gdbarch_register.
10400
10401 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10402
10403 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10404 entirely.
10405 (breakpoint_re_set_one): Don't fetch the value for a disabled
10406 watchpoint.
10407
10408 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10409
10410 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10411 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10412 (COERCE_FLOAT_TO_DOUBLE): Remove.
10413 * gdbarch.c: Regenerate.
10414 * gdbarch.h: Regenerate.
10415 * Makefile.in: Remove value_h from gdbarch_h.
10416 * valops.c (coerce_float_to_double): New variable.
10417 (default_coerce_float_to_double): Remove.
10418 (standard_coerce_float_to_double): Remove.
10419 (value_arg_coerce): Use coerce_float_to_double.
10420 (_initialize_valops): Add "set coerce-float-to-double".
10421 * value.h (default_coerce_float_to_double): Remove prototype.
10422 (standard_coerce_float_to_double): Remove prototype.
10423
10424 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10425 prototyped.
10426 * mdebugread.c (parse_symbol): Likewise.
10427 * stabsread.c (define_symbol): Mark all functions as prototyped.
10428
10429 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10430 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10431 set_gdbarch_coerce_float_to_double.
10432 * arm-tdep.c (arm_gdbarch_init): Likewise.
10433 * frv-tdep.c (frv_gdbarch_init): Likewise.
10434 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10435 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10436 * mips-tdep.c (mips_gdbarch_init): Likewise.
10437 (mips_coerce_float_to_double): Remove.
10438 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10439 (rs6000_coerce_float_to_double): Remove.
10440 * s390-tdep.c (s390_gdbarch_init): Likewise.
10441 * sh-tdep.c (sh_gdbarch_init): Likewise.
10442 (sh_coerce_float_to_double): Remove.
10443 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10444 (sparc_coerce_float_to_double): Remove.
10445 * v850-tdep.c (v850_gdbarch_init): Likewise.
10446 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10447 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10448 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10449 (hppa_coerce_float_to_double): Remove prototype.
10450 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10451
10452 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10453
10454 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10455
10456 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10457
10458 Suggested by Stewart Brown <sb24@avaya.com>:
10459 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10460 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10461 (c_type_print_varspec_suffix): Likewise.
10462
10463 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10464
10465 * configure.in: Don't set and AC_SUBST SUBDIRS.
10466 * configure: Regenerated.
10467
10468 * configure.in: Remove code dealing with shared libraries.
10469 * Makefile.in: Remove HLDFLAGS and HLDENV.
10470 * configure: Regenerated.
10471
10472 2003-01-04 Andrew Cagney <ac131313@redhat.com>
10473
10474 * frame.c (deprecated_frame_xmalloc): New function.
10475 (deprecated_set_frame_saved_regs_hack): New function.
10476 (deprecated_set_frame_extra_info_hack): New function.
10477 * frame.h (deprecated_frame_xmalloc): Declare.
10478 (deprecated_set_frame_saved_regs_hack): Declare.
10479 (deprecated_set_frame_extra_info_hack): Declare.
10480
10481 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10482
10483 * configure.in: Move code that provides the --enable-gdbtk option
10484 right after the code that handles the --enable-tui option, and
10485 polish it somewhat.
10486 * configure: Regenerated.
10487
10488 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10489 AC_CHECK_FUNCS and remove the old check for pread64.
10490 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10491 * acconfig.h (_GNU_SOURCE): Add.
10492 (HAVE_PREAD64): Remove.
10493 * configure, aclocal.m4, config.in: Regenerated.
10494
10495 2003-01-03 Andrew Cagney <ac131313@redhat.com>
10496
10497 * alpha-tdep.c: Use get_frame_saved_regs.
10498 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10499 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10500 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10501 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10502 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10503
10504 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10505
10506 * configure.in: Remove all use of the SUBDIRS variable; add
10507 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10508 code providing the --enable-multi-ice option, and move it right in
10509 front of the code that checks whether gdbserver is supported.
10510 Polish that too.
10511 * configure: Regenerated.
10512 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10513 @SUBDIRS@.
10514
10515 2003-01-03 Andrew Cagney <cagney@redhat.com>
10516
10517 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10518 * avr-tdep.c, cris-tdep.c: Ditto.
10519 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10520 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10521
10522 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10523
10524 * configure.in: Remove --enable-netrom option.
10525 * configure: Regenerated.
10526
10527 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10528
10529 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10530 declaration for `struct re_pattern_buffer' instead.
10531 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10532
10533 2003-01-03 J. Brobecker <brobecker@gnat.com>
10534
10535 * mdebugread.c (parse_symbol): Count until the stEnd matching
10536 the structure name.
10537
10538 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10539
10540 * configure.in: Remove --with-cpu option.
10541 subscripts. Remove evil changequotes here.
10542 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10543 * config.in, configure: Regenerated.
10544
10545 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10546 * configure.in: Cleanup section that sources GDB and BFD configure
10547 subscripts. Remove evil changequotes here.
10548 * config.in, configure: Regenerated.
10549
10550 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10551
10552 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10553 frame accessor methods.
10554 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10555 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10556 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10557 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10558 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10559 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10560 * z8k-tdep.c: Ditto.
10561
10562 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10563
10564 * configure.in: Remove UI_OUT configuration code.
10565 * ada-lang.c: Update assuming UI_OUT is always true.
10566 * Makefile.in (UIOUT_CFLAGS): Remove.
10567 * configure: Regenerated.
10568 * TODO: Remove blurb about elimination of -DUI_OUT.
10569
10570 * configure.in: Move code that provides the --enable-gdbcli,
10571 --enable-gdbmi options right before the code that handles the
10572 --enable-tui option. Polish a bit.
10573 * configure: Regenerated.
10574
10575 * configure.in: Rewrite check for GNU regex and the
10576 --without-included regex option, and move it into the "Checks for
10577 library functions" section. This makes us use the system regex
10578 again by default on systems with version 2 of the GNU C library.
10579 This was apparently broken.
10580 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10581 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10582 * config.in, configure: Regenerated.
10583
10584 * configure.in: Move code that provides the --enable-tui option
10585 before the "Checks for libraries" section. Polish the code
10586 somewhat and set need_curses to yes if we build the TUI. Rewrite
10587 code that looks for a library providing termcap functionality to
10588 match more closely what's done in the Readline library, and move
10589 it into to the "Checks for libraries" section.
10590 * configure: Regenerated.
10591 * Makefile.in (TERMCAP): Remove variable.
10592 * config/i386/go32.mh (TERMCAP): Remove variable.
10593
10594 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10595
10596 * MAINTAINERS: Mention gdb_mbuild.sh.
10597 * gdb_mbuild.sh: Rewrite.
10598
10599 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10600
10601 * configure.in: Fix typo in last change.
10602 * config.in, configure: Regenerated.
10603
10604 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10605
10606 * valarith.c (value_binop): Delete obsolete code and comments.
10607 * configure.host: Ditto.
10608 * buildsym.h (make_blockvector): Ditto.
10609 * buildsym.c (make_blockvector): Ditto.
10610 * defs.h (enum language): Ditto.
10611 (chill_demangle): Ditto.
10612 * elfread.c (elf_symtab_read): Ditto.
10613 * dwarfread.c (CHILL_PRODUCER): Ditto.
10614 (set_cu_language): Ditto.
10615 (handle_producer): Ditto.
10616 * expprint.c (print_subexp): Ditto.
10617 * gdbtypes.c (chill_varying_type): Ditto.
10618 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10619 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10620 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10621 (chill_varying_type): Ditto.
10622 * language.h (_LANG_chill): Ditto.
10623 * language.c (binop_result_type, integral_type): Ditto.
10624 (character_type, string_type, structured_type): Ditto.
10625 (lang_bool_type, binop_type_check): Ditto.
10626 * stabsread.h (os9k_stabs): Ditto.
10627 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10628 (define_symbol, read_type, read_struct_fields): Ditto.
10629 (read_array_type, read_enum_type, read_huge_number): Ditto.
10630 (read_range_type, start_stabs): Ditto.
10631 * symfile.c (init_filename_language_table): Ditto.
10632 (add_psymbol_with_dem_name_to_list): Ditto.
10633 * symtab.c (symbol_init_language_specific): Ditto.
10634 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10635 * symtab.h (struct general_symbol_info): Ditto.
10636 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10637 * typeprint.c (typedef_print): Ditto.
10638 * utils.c (fprintf_symbol_filtered): Ditto.
10639 * valops.c (value_cast, search_struct_field, value_slice): Delete
10640 obsolete code.
10641 (varying_to_slice): Delete function.
10642 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10643 (varying_to_slice): Delete declaration.
10644 * MAINTAINERS: Update.
10645
10646 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10647
10648 * configure.in: Reorganize "Checks for library functions section"
10649 a bit. Remove check for `btowc' and `isascii' functions.
10650 * configure: Regenerated.
10651
10652 * acconfig.h (_MSE_INT_H): Remove.
10653 * configure.in: Create "Checks for header files" section, and move
10654 appropriate tests there. Don't check for objlist.h, wchar.h,
10655 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
10656 misdetection fix. Also add "Checks for types", "Checks for
10657 compiler characteristics" and "Checks for library functions"
10658 sections.
10659 * config.in, configure: Regenerated.
10660
10661 * configure.in: Create "Checks for programs" section, and move
10662 appropriate tests there.
10663
10664 2003-01-01 Mark Kettenis <kettenis@gnu.org>
10665
10666 * configure.in: Create "Checks for libraries" section, and move
10667 appropriate tests there. Cleanup check for wctype in libw. Use
10668 AC_SEARCH_LIBS to see whether we need libsocket.
10669 * configure: Regenerated.
10670
10671 For older changes see ChangeLog-2002
10672 \f
10673 Local Variables:
10674 mode: change-log
10675 left-margin: 8
10676 fill-column: 74
10677 version-control: never
10678 End:
This page took 0.241356 seconds and 5 git commands to generate.