2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2
3 * MAINTAINERS (write after approval): Add myself.
4
5 2003-08-18 Andrew Cagney <cagney@redhat.com>
6
7 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
8 * gdbarch.h, gdbarch.c: Re-generate.
9 * infcall.c (call_function_by_hand): Adjust the SP by
10 frame_red_zone_size before allocating any stack space.
11 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
12 * x86-64-tdep.c (x86_64_frame_align): New function.
13 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
14
15 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
16 Remove code adjusting SP so that it skips over the Red Zone.
17
18 2003-08-18 Mark Kettenis <kettenis@gnu.org>
19
20 * NEWS (New native configurations): Mention FreeBSD/amd64.
21
22 2003-08-18 Andrew Cagney <cagney@redhat.com>
23
24 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
25 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
26 "m68k_frame_p".
27 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
28
29 2003-08-18 Mark Kettenis <kettenis@gnu.org>
30
31 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
32
33 2003-08-18 Michal Ludvig <mludvig@suse.cz>
34
35 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
36 Define.
37 * i386-linux-nat.c: Include "linux-nat.h".
38 (child_post_startup_inferior): New function.
39
40 2003-08-18 Mark Kettenis <kettenis@gnu.org>
41
42 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
43 at the start of a frameless function. This probably fixes PR
44 backtrace/1338.
45
46 2003-08-17 Michael Chastain <mec@shout.net>
47
48 * symfile.c (find_sym_fns): Remove special case for apollo target.
49
50 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
51
52 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
53 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
54 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
55 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
56 (linux_supports_tracevforkdone): New function.
57 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
58 TRACEVFORKDONE.
59 (child_follow_fork): Handle vfork.
60 (linux_handle_extended_wait): Likewise. Also handle exec.
61 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
62 * NEWS: Mention fork tracing.
63
64 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
65
66 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
67
68 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
69
70 * Makefile.in (i386-linux-nat.o): Update dependencies.
71 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
72 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
73 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
74 * i386-linux-nat.c: Include "linux-nat.h".
75 (child_post_startup_inferior): New function.
76 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
77 * infptrace.c (kill_inferior): Wrap in #ifdef.
78 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
79 attaching to each LWP.
80 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
81 (init_lin_lwp_ops): Fill in some more operations.
82 * linux-nat.h (linux_enable_event_reporting)
83 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
84 prototypes.
85 * linux-nat.c (linux_enable_event_reporting): New function.
86 (child_post_attach, linux_child_post_startup_inferior)
87 (child_post_startup_inferior, child_follow_fork)
88 (linux_handle_extended_wait, kill_inferior): New functions.
89
90 2003-08-16 Andrew Cagney <cagney@redhat.com>
91
92 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
93 * gdbarch.h, gdbarch.c: Re-generate.
94
95 2003-08-16 Mark Kettenis <kettenis@gnu.org>
96
97 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
98
99 2003-08-16 Andrew Cagney <cagney@redhat.com>
100
101 * NEWS: Mention that "set prompt-escape-char" was deleted.
102 * top.c (get_prompt_1): Delete function.
103 (gdb_prompt_escape):
104 (init_main): Do not clear "gdb_prompt_escape". Delete "set
105 prompt-escape-char" command.
106 (MAX_PROMPT_SIZE): Delete macro.
107 (get_prompt): Simplify, do not call get_prompt_1.
108
109 2003-08-16 Andrew Cagney <cagney@redhat.com>
110
111 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
112 -Werror. -Wformat-nonliteral problems.
113
114 2003-08-15 J. Brobecker <brobecker@gnat.com>
115
116 Further multiarching work mostly for hppa64-*-hpux11:
117 * hppa-tdep.h: New file.
118 * hppa-tdep.c: #include hppa-tdep.c.
119 (hppa32_num_regs): Renamed from hppa_num_regs.
120 (hppa64_num_regs): New constant.
121 (hppa64_call_dummy_breakpoint_offset): New constant.
122 (hppa32_call_dummy_length): New constant.
123 (hppa64_call_dummy_length): New constant.
124 (hppa32_stack_align): Make name 32bit explicit.
125 (hppa32_register_virtual_type): Likewise.
126 (hppa32_extract_return_value): Likewise.
127 (hppa32_use_struct_convention): Likewise.
128 (hppa32_store_return_value): Likewise.
129 (hppa64_register_virtual_type): New function.
130 (hppa64_extract_return_value): New function.
131 (hppa64_use_struct_convention): New function.
132 (hppa64_store_return_value): New function.
133 (hppa_frame_locals_address): Remove declaration, function does
134 not exist anymore.
135 (hppa_register_byte): Add support for PA64 ABI.
136 (hppa_gdbarch_init): Add support for PA64 ABI.
137 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
138 Make name 32bit explicit.
139 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
140 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
141 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
142 (hppa64_hpux_frame_base_before_sigtramp): New function.
143 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
144 * config/pa/tm-hppa64.h: Remove macros that are no longer
145 necessary now that the gdbarch vector is properly setup.
146 Transform some macros into function calls. Some minor cleanup.
147 * config/pa/tm-hppah.h: Update function calls in macros
148 following the function renaming in hppa-hpux-tdep.c.
149 * Makefile.in (hppa_tdep_h): New variable.
150 (hppa-tdep.o): Add dependency over hppa_tdep_h.
151
152 2003-08-14 Michael Snyder <msnyder@redhat.com>
153
154 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
155
156 2003-08-13 J. Brobecker <brobecker@gnat.com>
157
158 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
159 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
160 routine.
161
162 2003-08-13 Michael Snyder <msnyder@redhat.com>
163
164 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
165 (frv_saved_pc_after_call): Use deprecated ftype.
166 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
167 (frv_remote_translate_xfer_address): Remove.
168 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
169
170 2003-08-13 J. Brobecker <brobecker@gnat.com>
171
172 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
173 initialization after the common gdbarch initialization, not before.
174
175 2003-08-13 J. Brobecker <brobecker@gnat.com>
176
177 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
178 (ADDR_BITS_REMOVE): Remove, redundant.
179
180 2003-08-13 J. Brobecker <brobecker@gnat.com>
181
182 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
183 gdbarch method to clear the 2 low bits of text addresses.
184
185 2003-08-12 Andrew Cagney <cagney@redhat.com>
186
187 * Makefile.in (dsrec.o): Update dependencies.
188 * dsrec.c: Include "gdb_assert.h".
189 (make_srec): Use snprintf instead of sprintf, use a literal format
190 string.
191
192 2003-08-12 Andrew Cagney <cagney@redhat.com>
193
194 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
195 FRAME_OBSTACK_ZALLOC.
196
197 2003-08-12 Kevin Buettner <kevinb@redhat.com>
198
199 * i386-tdep.c (i386_gdbarch_init): Enable default support for
200 SSE registers.
201
202 2003-08-10 Mark Kettenis <kettenis@gnu.org>
203
204 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
205 amd64fbsd_sc_reg_offset): Add extern declarations.
206 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
207 declarations.
208
209 2003-08-11 Ben Elliston <bje@wasabisystems.com>
210
211 * MAINTAINERS (write after approval): Update my mail address.
212
213 2003-08-10 Andrew Cagney <cagney@redhat.com>
214
215 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
216
217 2003-08-10 Mark Kettenis <kettenis@gnu.org>
218
219 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
220 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
221 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
222 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
223 i386bsd_sc_reg_offset): Add extern declarations.
224 * i386obsd-nat.c: Include "i386-tdep.h"
225 (_initialize_i386obsd_nat): Remove extern declarations.
226 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
227 declarations.
228 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
229 declarations.
230
231 * i386-tdep.c (i386_register_to_value): Use get_frame_register
232 instead of frame_read_register.
233 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
234 instead of frame_read_register. Use I386_ESP_REGNUM instead of
235 SP_REGNUM.
236 (i386_frame_prev_register): Use frame_unwind_register_unsigned
237 instead of frame_unwind_unsigned_register. Use
238 I386_EFLAGS_REGISTER instead of PS_REGNUM.
239 (i386_get_longjmp_target): Use regcache_read_unsigned_register
240 instead of read_register. Use builtin_type_void_data_ptr instead
241 of builtin_type_void_func_ptr when extracting the address of the
242 jmp_buf.
243 (i386_extract_return_value, i386_store_return_value,
244 i386_pseudo_register_read, i386_pseudo_register_write): Use
245 register_size instead REGISTER_RAW_SIZE.
246
247 2003-08-10 Andrew Cagney <cagney@redhat.com>
248
249 * infcall.c (call_function_by_hand): Use xstrprintf instead of
250 sprintf. Make "name" constant.
251
252 2003-08-10 Mark Kettenis <kettenis@gnu.org>
253
254 * i387-tdep.c (i387_register_to_value): Use get_frame_register
255 instead of frame_read_register.
256 (i387_print_float_info): Use get_frame_register and
257 get_frame_register_unsigned instead of frame_register_read.
258
259 * i386fbsd-nat.c: Include "i386-tdep.h".
260 (child_resume): Make `eflags' an ULONGEST. Use
261 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
262 instead of register_read and register_write.
263
264 * i386bsd-nat.c (fetch_inferior_registers,
265 store_inferior_registers): Don't use && at the end of a line.
266 (_initialize_i386bsd_nat): Fix typo.
267
268 * frame.c (_initialize_frame): Add missing backslash.
269
270 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
271 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
272 and supply_register instead of manipulating the register buffer
273 directly.
274
275 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
276 * config/i386/nm-i386sol2.h
277 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
278
279 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
280 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
281 instructions that GCC likes to mingle into the prologue. Fixes
282 gdb/1253 and gdb/1255.
283
284 2003-08-09 Andrew Cagney <cagney@redhat.com>
285
286 Fix GDB PR cli/926.
287 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
288 * command.h (add_setshow_uinteger_cmd): Declare.
289 * frame.c (set_backtrace_cmd): New function.
290 (show_backtrace_cmd): New function.
291 * frame.c (_initialize_frame): Replace "set/show
292 backtrace-below-main" with "set/show backtrace past-main". Add
293 command "set/show backtrace limit".
294 (backtrace_past_main): Rename "backtrace_below_main".
295 (backtrace_limit): New variable.
296 (get_prev_frame): Update. Check the backtrace_limit.
297
298 2003-08-09 Andrew Cagney <cagney@redhat.com>
299
300 * defs.h (xstrprintf): Declare.
301 * utils.c (xstrprintf): New function.
302 * breakpoint.c (insert_breakpoints): Replace sprintf and
303 non-literal format strings, with xstrprintf and cleanups.
304 (delete_breakpoint,breakpoint_re_set): Ditto.
305 (commands_command, insert_breakpoints): Ditto.
306 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
307 (break_at_finish_command_1): Ditto.
308
309 2003-08-09 Andrew Cagney <cagney@redhat.com>
310
311 * MAINTAINERS (language support): List Adam Fedor as Objective C
312 maintainer.
313
314 2003-08-08 J. Brobecker <brobecker@gnat.com>
315
316 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
317 are now multiarched.
318
319 2003-08-08 J. Brobecker <brobecker@gnat.com>
320
321 * config/pa/tm-hppa64.h: Remove lots of macros that are no
322 longer necessary now that hppa64 is partially multiarch'ed.
323
324 2003-08-08 Andrew Cagney <cagney@redhat.com>
325
326 * interps.c (interp_set): Check for a NULL "old_interp".
327
328 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
329
330 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
331 (install-only): Support DESTDIR.
332 (uninstall): Likewise.
333 (install-gdbtk): Likewise.
334
335 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
336
337 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
338 contains something meaningful at all times.
339
340 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
341
342 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
343
344 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
345
346 * MAINTAINERS (write after approval): Added self.
347
348 2003-08-07 Andrew Cagney <cagney@redhat.com>
349
350 * inferior.h (AT_SYMBOL): Define.
351 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
352 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
353 * mips-tdep.c (mips_call_dummy_address): Delete function.
354 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
355 set call_dummy_address.
356
357 2003-08-07 Andrew Cagney <cagney@redhat.com>
358
359 * language.c (op_error): Delete function.
360 (binop_type_check): Delete function.
361 * language.h (type_op_error, range_op_error): Delete macros.
362 (op_error): Delete declaration.
363
364 2003-08-07 Andrew Cagney <cagney@redhat.com>
365
366 * interps.h (INTERP_MI2, INTERP_MI3): Define.
367
368 2003-08-07 Michal Ludvig <mludvig@suse.cz>
369
370 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
371 (x86_64_push_arguments): Skip the red zone.
372
373 2003-08-05 Andrew Cagney <cagney@redhat.com>
374
375 * reggroups.c (reggroup_next): Check for the final entry.
376
377 2003-08-04 Andrew Cagney <cagney@redhat.com>
378
379 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
380 * cli/cli-script.c (define_command): Call query directly, instead
381 of passing it a buffer.
382 * ocd.c (ocd_error): Pass error a constant format string.
383 * remote-mips.c (mips_error): Use fputs_filtered.
384
385 * solib-svr4.c (_initialize_svr4_solib): Update
386 register_gdbarch_data call.
387 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
388
389 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
390 (register_gdbarch_data): Delete "free" parameter. Update
391 comments.
392 * gdbarch.h, gdbarch.c: Re-generate.
393 * reggroups.c (_initialize_reggroup): Update.
394 * gnu-v3-abi.c (init_gnuv3_ops): Update.
395 * frame-base.c (_initialize_frame_base): Update.
396 * frame-unwind.c (_initialize_frame_unwind): Update.
397 * user-regs.c (_initialize_user_regs): Update.
398 * remote.c (_initialize_remote): Update.
399 * regcache.c (_initialize_regcache): Update.
400
401 * regcache.c (xfree_regcache_descr): Delete function.
402 (_initialize_regcache): Update call to register_gdbarch_data.
403 (init_regcache_descr, init_legacy_regcache_descr): Use
404 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
405
406 * remote.c (free_remote_state): Delete function.
407 (_initialize_remote): Update register_gdbarch_data.
408 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
409 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
410
411 2003-08-04 Andrew Cagney <cagney@redhat.com>
412
413 * reggroups.c (struct reggroup_el): Define.
414 (struct reggroups): Delete field "nr_group". Replace array
415 "group" with a "first" to "last" linked list.
416 (reggroups_init): Update. Allocate using gdbarch's obstack.
417 (reggroups_free): Delete function.
418 (add_group): Update. Add "el" parameter.
419 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
420 (default_groups): Update.
421 (reggroup_next): Replace reggroups.
422 (reggroups_dump): Update.
423 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
424 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
425 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
426
427 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
428
429 * Makefile.in (tui-interp.o): Update dependencies.
430
431 2003-08-04 David Carlton <carlton@kealia.com>
432
433 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
434 to internal_error call.
435 * source.c (forward_search_command): Add "%s" format argument.
436 (reverse_search_command): Ditto.
437 * top.c (quit_confirm): Ditto.
438 * cli/cli-setshow.c (do_setshow_command): Ditto.
439 * cp-valprint.c (cp_print_class_method): Replace
440 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
441 (cp_print_class_member): Ditto.
442 * event-top.c (command_line_handler): Ditto.
443 * linux-proc.c (linux_info_proc_cmd): Ditto.
444 * p-typeprint.c (pascal_type_print_base): Ditto.
445 * p-valprint.c (pascal_object_print_class_method): Ditto.
446 (pascal_object_print_class_member): Ditto.
447 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
448 * remote.c (remote_cisco_section_offsets): Ditto.
449 * top.c (command_line_input): Ditto.
450 * utils.c (vwarning,error_stream,quit): Ditto.
451 * valprint.c (print_floating,print_binary_chars)
452 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
453
454 2003-08-04 Andrew Cagney <cagney@redhat.com>
455
456 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
457
458 2003-08-02 Andrew Cagney <cagney@redhat.com>
459
460 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
461 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
462 amd64fbsd-nat.c.
463
464 2003-08-02 Andrew Cagney <cagney@redhat.com>
465
466 * Makefile.in: Update all dependencies and definitions.
467
468 2003-08-02 Adam Fedor <fedor@gnu.org>
469
470 * linespec.c (is_objc_method_format): New function
471 (decode_line_1, locate_first_half): Use it.
472 Fixes PR objc/1298
473
474 2003-08-01 Andrew Cagney <cagney@redhat.com>
475
476 * NEWS: Mention that m32r is multi-arch.
477 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
478 * configure.tgt: Recognize m32r-*-*.
479 * config/m32r/tm-m32r.h: Delete file.
480 * config/m32r/m32r.mt: New file.
481 * m32r-rom.c (m32r_upload_command): Use hostent only when
482 gethostname succeeds, in order to avoid a compilation
483 warning.
484 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
485 compiler warning.
486
487 2003-08-01 Michael Snyder <msnyder@redhat.com>
488
489 * sh-tdep.c (sh_frame_align): New gdbarch method.
490 (sh_gdbarch_init): Set up frame_align method.
491
492 2003-07-31 Michael Snyder <msnyder@redhat.com>
493
494 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
495 which is already covered by the new frames infrastructure.
496
497 2003-07-31 Andrew Cagney <cagney@redhat.com>
498
499 * user-regs.c (struct user_reg): Add "next" link.
500 (struct user_regs): Replace "user" with "first" and "last" links.
501 (append_user_reg): Add pre-allocated "reg" parameter.
502 (builtin_user_regs): Provide initial value for "last".
503 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
504 (user_regs_init): Allocate memory from the gdbarch obstack.
505 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
506 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
507 linked list.
508 (usernum_to_user_reg): New function.
509 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
510 (value_of_user_reg): Use usernum_to_user_reg.
511 (user_regs_free): Delete function.
512 (_initialize_user_regs): Update register_gdbarch_data call.
513
514 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
515
516 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
517
518 2003-07-30 Michael Snyder <msnyder@redhat.com>
519
520 * value.h (value_being_returned): Add a struct_addr argument.
521 * infcall.c (call_function_by_hand): Pass struct_addr to
522 value_being_returned.
523 * infcmd.c (print_return_value): Pass zero as struct_addr.
524 * values.c (value_being_returned): If struct_addr is passed,
525 use it instead of trying to recover it from the inferior.
526
527 2003-07-30 Kevin Buettner <kevinb@redhat.com>
528
529 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
530 the prologue analyzer won't need to attempt to extract the pc
531 value from the woefully incomplete dummy frame.
532 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
533 possible. Disable code which modifies the frame.
534
535 2003-07-28 Andrew Cagney <cagney@redhat.com>
536
537 * annotate.c (annotate_breakpoints_headers): Restrict annotation
538 to level 2.
539 (annotate_breakpoints_table, annotate_record): Ditto.
540 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
541 (annotate_field_name_end, annotate_field_value): Ditto.
542 (annotate_field_end, annotate_frame_source_begin): Ditto.
543 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
544 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
545 (annotate_frame_begin, annotate_frame_function_name): Ditto.
546 (annotate_frame_address_end, annotate_frame_address): Ditto.
547 (annotate_frame_args, annotate_frame_end): Ditto.
548 (annotate_frame_where, annotate_arg_begin): Ditto.
549 (annotate_arg_name_end, annotate_arg_value): Ditto.
550 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
551 (annotate_function_call, annotate_signal_name): Ditto.
552 (annotate_signal_string, annotate_signal_name_end): Ditto.
553 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
554 (annotate_value_begin, annotate_value_history_value): Ditto.
555 (annotate_value_history_end, annotate_value_end): Ditto.
556 (annotate_display_begin, annotate_display_number_end): Ditto.
557 (annotate_display_format, annotate_display_expression): Ditto.
558 (annotate_display_expression_end, annotate_display_value): Ditto.
559 (annotate_display_end, annotate_array_section_begin): Ditto.
560 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
561 (annotate_elt, annotate_array_section_end): Ditto.
562
563 2003-07-28 Andrew Cagney <cagney@redhat.com>
564
565 * regcache.c (struct regcache_descr): Update comments on
566 nr_raw_registers.
567 (init_legacy_regcache_descr): Don't set nr_raw_registers or
568 sizeof_raw_register_valid_p.
569 (init_regcache_descr): Set nr_raw_registers and
570 sizeof_raw_register_valid_p before calling
571 init_legacy_regcache_descr.
572
573 2003-07-28 Andrew Cagney <cagney@redhat.com>
574
575 * mips-tdep.c (print_gp_register_row): Print the GPR's register
576 MOD NUM_REGS.
577
578 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
579
580 * thread.c (info_threads_command): Use get_selected_frame ().
581 Check that there is at least one non-sentinel frame.
582
583 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
584
585 * m68hc11-tdep.c (struct frame_extra_info): Remove.
586 (m68hc11_pop_frame): Remove.
587 (m68hc11_frame_saved_pc): Remove.
588 (m68hc11_frame_chain): Remove.
589 (m68hc11_frame_init_saved_regs): Remove.
590 (m68hc11_init_extra_frame_info): Remove.
591 (m68hc11_store_struct_return): Remove.
592 (m68hc11_saved_pc_after_call): Remove.
593
594 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
595
596 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
597 frame unwind information.
598 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
599 and adapted for frame unwinding.
600 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
601 (m68hc11_unwind_pc): New function.
602 (m68hc11_frame_unwind_cache): New function to analyze frames.
603 (m68hc11_frame_this_id): New function to create new frame struct.
604 (m68hc11_frame_prev_register): New function to unwind a register from
605 the frame.
606 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
607 (m68hc11_frame_p): New function for the above.
608 (m68hc11_frame_base_address): New function to return fp of frame.
609 (m68hc11_frame_args_address): Update for frame.
610 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
611 (m68hc11_unwind_sp): New function.
612 (m68hc11_unwind_dummy_id): New function.
613 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
614 calls.
615
616 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
617
618 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
619 (m68hc11_guess_from_prologue): Advance the pc and frame size only
620 when we are beyond the current pc.
621
622 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
623
624 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
625 from m68hc11_push_arguments.
626 (m68hc11_push_arguments): Remove.
627 (m68hc11_push_return_address): Remove.
628 (m68hc11_gdbarch_init): Install the above; remove above deprecated
629 handlers; remove deprecated_extra_stack_alignment_needed.
630
631 2003-07-27 Andrew Cagney <cagney@redhat.com>
632
633 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
634 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
635 REAL_PC and not the pointer.
636 * hppa-hpux-tdep.c: Include frame.h
637
638 2003-07-27 Andrew Cagney <cagney@redhat.com>
639
640 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
641 GDB_MULTI_ACH_PARTIAL.
642
643 2003-07-27 Andrew Cagney <cagney@redhat.com>
644
645 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
646 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
647 operator at start and not end of line.
648 (decode_prologue): Ditto.
649 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
650 frame_unwind_register_unsigned instead of
651 frame_unwind_unsigned_register.
652 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
653 read_register.
654 (m32r_push_dummy_call): Use register_size instead of
655 REGISTER_RAW_SIZE.
656 (m32r_frame_sniffer): Replace m32r_frame_p.
657 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
658 * m32r-rom.c (report_transfer_performance): Delete extern
659 declaration.
660 (m32r_load, m32r_upload_command): Use print_transfer_performance
661 instead of report_transfer_performance.
662 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
663 / add_show_from_set.
664
665 2003-07-26 Andrew Cagney <cagney@redhat.com>
666
667 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
668 store_return_value and extract_struct_value_address.
669
670 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
671
672 PR c++/1267
673 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
674 NULL, default to the section containing PC.
675
676 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
677
678 * NEWS: Mention "regs" deprecated for m68hc11 too.
679
680 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
681 (m68hc11_print_register): New function to print out one register.
682 (m68hc11_print_registers_info): New function to print registers.
683 (show_regs): Deprecate and use the above.
684 (m68hc11_gdbarch_init): Install the print_registers_info.
685
686 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
687
688 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
689 that we have a SIGTRAP before returning non-zero.
690
691 2003-07-23 Michal Ludvig <mludvig@suse.cz>
692 Elena Zannoni <ezannoni@redhat.com>
693
694 * linespec.c (decode_line_2): Avoid crash if
695 find_function_start_sal() returns empty record.
696
697 2003-07-23 Andreas Schwab <schwab@suse.de>
698
699 * ia64-tdep.c (ia64_print_insn): New function.
700 (ia64_gdbarch_init): Set print_insn to it.
701 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
702 deprecated_tm_print_insn_info.
703
704 2003-07-22 Michael Snyder <msnyder@redhat.com>
705
706 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
707 handle 8-bit returns (long long).
708 (h8300h_extract_return_value): Ditto.
709 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
710
711 2003-07-22 Andrew Cagney <cagney@redhat.com>
712
713 * gdbarch.c Include "gdb_obstack.h".
714 (struct gdbarch): Add an "obstack".
715 (alloc_gdbarch_data): Allocate the gdbarch data using
716 GDBARCH_OBSTACK_CALLOC.
717 (free_gdbarch_data): Delete function.
718 (gdbarch_obstack_zalloc): New function.
719 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
720 Assert that the architecture is not initialized.
721 (gdbarch_alloc): Allocate an obstack, allocate the architecture
722 vector from the obstack.
723 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
724 architecture obstack.
725 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
726 (set_gdbarch_data): Assert that the data is not initialized.
727 (struct gdbarch_data): Delete member "free".
728 (register_gdbarch_data): Do not initialize "free".
729 * gdbarch.h, gdbarch.c: Re-generate.
730
731 2003-07-22 Andrew Cagney <cagney@redhat.com>
732
733 * configure.in (build_warnings): Add -Wformat-nonliteral.
734 * configure: Re-generate.
735
736 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
737
738 * dwarf2loc.c (locexpr_describe_location): Fix typos.
739
740 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
741
742 * findvar.c (read_var_value): Remove case for thread local storage
743 variables. It is now entirely handled by the dwarf2 location
744 expression code.
745 * printcmd.c (address_info): Ditto.
746 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
747 enumeration value.
748 (struct symbol): Remove objfile field, which was used by
749 LOC_THREAD_LOCAL_STATIC only.
750 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
751 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
752 usage of objfile pointer.
753 * dwarf2loc.c (locexpr_describe_location): Add case to handle
754 thread local variables.
755 Add include of objfiles.h.
756 * dwarf2expr.c (execute_stack_op): Add comments about thread local
757 storage variables.
758 * Makefile.in (dwarf2loc.o): Update dependencies.
759
760 2003-07-22 Andrew Cagney <cagney@redhat.com>
761
762 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
763 get_frame_base.
764 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
765 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
766 (struct value): Add opaque declaration.
767 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
768
769 2003-07-21 Andrew Cagney <cagney@redhat.com>
770
771 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
772 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
773
774 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
775
776 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
777 regcache_cooked_read_unsigned instead of read_register.
778 (m68hc11_saved_pc_after_call): Likewise.
779 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
780 instead of write_register.
781 (m68hc11_register_type): New function.
782 (m68hc11_register_virtual_type): Remove.
783 (m68hc11_store_return_value): Convert to use the regcache.
784 (m68hc11_extract_struct_value_address): Likewise.
785 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
786 m68hc11_register_type; undeprecate store_return_value and
787 extract_struct_value_address.
788
789 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
790
791 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
792 and translate to use regcache.
793 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
794
795 2003-07-18 Andrew Cagney <cagney@redhat.com>
796
797 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
798 * gdbarch.h, gdbarch.c: Re-generate.
799 * i386-tdep.c (i386_gdbarch_init): Do not set
800 DWARF2_BUILD_FRAME_INFO.
801 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
802 unconditionally.
803 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
804 DWARF2_BUILD_FRAME_INFO.
805
806 2003-07-18 Andrew Cagney <cagney@redhat.com>
807
808 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
809 * disasm.c (gdb_disassemble_info): Initilize di.arch.
810
811 2003-07-18 Andrew Cagney <cagney@redhat.com>
812
813 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
814 frame_unwind_address_in_block, instead of frame_pc_unwind.
815 (dwarf2_frame_cache): Ditto.
816
817 2003-07-18 Andrew Cagney <cagney@redhat.com>
818
819 * user-regs.h (struct gdbarch): Declare opaque.
820 * ui-out.h (struct ui_file): Declare opaque.
821 * dwarf2-frame.h (struct frame_info): Declare opaque.
822
823 2003-07-18 Kris Warkentin <kewarken@qnx.com>
824
825 * nto-procfs.c: Clean ARI hits. Change #include <..> to
826 #include "...".
827 (procfs_meminfo): Change strerror to safe_strerror.
828 (procfs_can_run): Remove K&R badness.
829
830 2003-07-17 Michael Snyder <msnyder@redhat.com>
831
832 * remote-sim.c: Comment typo fix.
833
834 2003-07-17 Andrew Cagney <cagney@redhat.com>
835
836 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
837 configure.
838 * sparc-tdep.c (sparc_intreg_size): Make non-static.
839 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
840 GDB_MULTI_ARCH_PARTIAL.
841
842 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
843
844 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
845 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
846 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
847
848 2003-07-16 Theodore A. Roth <troth@openavr.org>
849
850 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
851 found.
852 (avr_frame_unwind_cache): Don't unwind FP for main.
853 Update a comment.
854 Save the computed prev_sp.
855 (avr_saved_regs_unwinder): Remove function.
856 (avr_frame_prev_register): Use PC unwind logic from
857 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
858
859 2003-07-16 Andrew Cagney <cagney@redhat.com>
860
861 * frame-base.h (frame_base_p_ftype): Delete definition.
862 (frame_base_append_predicate): Delete declaration.
863 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
864 (frame_unwind_append_predicate): Delete declaration.
865 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
866 (append_predicate): Delete parameter "p".
867 (frame_unwind_append_predicate): Delete function.
868 (frame_unwind_append_sniffer): Update call to append_predicate.
869 (frame_unwind_free): Delete function.
870 (_initialize_frame_unwind): Pass NULL as "free" to
871 register_gdbarch_data.
872 (frame_unwind_init): Append the dummy_frame_sniffer.
873 (frame_unwind_find_by_frame): Simplify.
874 * frame-base.c (struct frame_base_table): Delete field "p".
875 (append_predicate): Delete parameter "p".
876 (frame_base_append_predicate): Delete function.
877 (frame_base_append_sniffer): Update call to append_predicate.
878 (frame_base_free): Delete function.
879 (frame_base_find_by_frame): Simplify.
880 (_initialize_frame_base): Pass NULL as "free" to
881 register_gdbarch_data.
882 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
883 (x86_64_sigtramp_frame_sniffer): Replace
884 "x86_64_sigtramp_frame_p".
885 (x86_64_init_abi): Set the frame unwind sniffers.
886 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
887 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
888 (m68k_gdbarch_init): Set the frame unwind sniffers.
889 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
890 "i386_sigtramp_frame_p".
891 (i386_frame_sniffer): Replace "i386_frame_p".
892 (i386_gdbarch_init): Set the frame unwind sniffers.
893 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
894 (avr_gdbarch_init): Set the frame unwind sniffers.
895 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
896 "alpha_sigtramp_frame_p"
897 (alpha_heuristic_frame_sniffer): Replace
898 "alpha_heuristic_frame_p".
899 (alpha_gdbarch_init): Set the frame unwind sniffers.
900 (alpha_dwarf2_init_abi): Ditto.
901 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
902 "alpha_debug_frame_p".
903 (alpha_mdebug_frame_base_sniffer): Replace
904 "alpha_mdebug_frame_base_p".
905 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
906 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
907 (d10v_gdbarch_init): Set the frame unwind sniffer.
908 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
909 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
910 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
911 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
912 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
913 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
914
915 2003-07-16 Michael Snyder <msnyder@redhat.com>
916
917 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
918 should go thru sh_dsp_register_sim_regno, else the dsp regs
919 will not get the right values.
920
921 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
922
923 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
924 deprecated_store_floating by call to store_typed_floating.
925 (sh_sh4_register_convert_to_raw): Substitute call to
926 deprecated_extract_floating by call to extract_typed_floating.
927
928 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
929
930 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
931
932 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
933
934 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
935 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
936 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
937 as possible.
938 (do_pseudo_register): Remove.
939 (sh_push_dummy_code): New function.
940 (sh64_store_struct_return): Rename from sh_store_struct_return.
941 Only called for sh64 now.
942 (sh_extract_struct_value_address): Regcache'ify.
943 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
944 and accomodate new tasks.
945 (sh64_push_return_address): Rename from sh_push_return_address.
946 Only called for sh64 now.
947 (sh_default_extract_return_value): Rename from sh_extract_return_value.
948 Regcache'ify.
949 (sh3e_sh4_extract_return_value): Regcache'ify.
950 (sh_default_store_return_value): Ditto.
951 (sh3e_sh4_store_return_value): Ditto.
952 (sh_default_register_byte): Remove.
953 (sh_sh4_register_byte): Remove.
954 (sh_default_register_raw_size): Remove.
955 (sh_sh4_register_raw_size): Remove.
956 (sh_register_virtual_size): Remove.
957 (sh_sh3e_register_virtual_type): Remove.
958 (sh_sh3e_register_type): New function.
959 (sh_sh4_register_virtual_type): Remove.
960 (sh_sh4_register_type): New function.
961 (sh_default_register_virtual_type): Remove.
962 (sh_default_register_type): New function.
963 (do_fv_register_info): Add parameters to accomodate call from
964 sh_print_registers_info.
965 (do_dr_register_info): Ditto.
966 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
967 Add parameters to accomodate call from sh_print_registers_info.
968 (sh_do_fp_register): Ditto.
969 (sh64_do_pseudo_register): Call do_dr_register_info,
970 do_fv_register_info and sh_do_fp_register with default parameters.
971 (sh_do_register): Add parameters to accomodate call from
972 sh_print_registers_info.
973 (sh_print_register): Ditto.
974 (sh_print_registers_info): Rename from sh_do_registers_info.
975 Add parameters to be used as gdbarch_print_registers_info
976 implementation. Accomodate removed do_pseudo_register function
977 pointer.
978 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
979 function pointer. Call sh_print_register with default parameters.
980 (sh64_do_registers_info): Call sh_print_registers_info instead of
981 sh_do_registers_info.
982 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
983 detection of deprecated vs. non-deprecated functionality.
984 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
985 function pointer assignments by direct function calls.
986
987 2003-07-15 Andrew Cagney <cagney@redhat.com>
988
989 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
990 (frame_register_unwind, create_new_frame): Ditto.
991 (legacy_get_prev_frame, get_frame_type): Ditto.
992 (get_frame_base_address): Use frame_base_find_by_frame.
993 (get_frame_locals_address): Use frame_base_find_by_frame.
994 (get_frame_args_address): Use frame_base_find_by_frame.
995 * frame-base.h (frame_base_sniffer_ftype): Declare.
996 (frame_base_append_sniffer): Declare.
997 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
998 * frame-base.c (append_predicate): Add a "sniffer" parameter.
999 (frame_base_append_sniffer): New function.
1000 (frame_base_append_predicate): Add a NULL sniffer.
1001 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
1002 (struct frame_base_table): Add "sniffer".
1003 (frame_base_free): Free the "sniffer" table.
1004 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
1005 (frame_unwind_append_sniffer): Declare.
1006 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1007 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
1008 (struct frame_unwind_table): Add "sniffer", delete "middle".
1009 (append_predicate): Add "sniffer" parameter, append the sniffer.
1010 (frame_unwind_init): Update append_predicate call.
1011 (frame_unwind_append_sniffer): New function.
1012 (frame_unwind_append_predicate): Update append_predicate call.
1013 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
1014
1015 2003-07-15 Andrew Cagney <cagney@redhat.com>
1016
1017 * frame.c (get_prev_frame): Move disabled inside_entry_func to
1018 before code inhibiting repeated unwind attempts. Add to
1019 commentary on that test's problems.
1020 * blockframe.c (inside_main_func): Look for "main" in the minimal
1021 symbol table.
1022 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
1023 identical.
1024
1025 2003-07-15 Andrew Cagney <cagney@redhat.com>
1026
1027 * complaints.c (struct explanation): Define.
1028 (struct complaints): Change type of "explanation" to "struct
1029 explanation".
1030 (symfile_explanations): Convert to a "struct explanation" table.
1031 (vcomplaint): Update.
1032
1033 2003-07-15 Michal Ludvig <mludvig@suse.cz>
1034
1035 * x86-64-linux-nat.c (regmap): Removed.
1036 (supply_gregset, fill_gregset): Call
1037 x86_64_linux_(fill,supply)_gregset functions.
1038 * x86-64-linux-tdep.c (USER_*): New defines.
1039 (user_to_gdb_regmap, x86_64_core_fns): New structure.
1040 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
1041 New functions.
1042 (fetch_core_registers): Ditto.
1043 (_initialize_x86_64_linux_tdep): Call add_core_fns().
1044 * x86-64-linux-tdep.h: New file.
1045 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
1046 and core-regset.o.
1047 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
1048
1049 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1050
1051 * x86-64-tdep.c (x86_64_store_return_value): Use
1052 regcache_cooked_write_part instead of regcache_cooked_write.
1053
1054 * configure.host: Add x86_64-*-freebsd*.
1055 * configure.tgt: Add x86_64-*-freebsd*.
1056 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
1057 * amd64fbsd-nat.c: New file.
1058 * amd64fbsd-tdep.c: New file.
1059 * config/i386/nm-fbsd64.h: New file.
1060 * config/i386/fbsd64.mh: New file.
1061 * config/i386/fbsd64.mt: New file.
1062
1063 2003-07-11 Mark Kettenis <kettenis@gnu.org>
1064
1065 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
1066 `sc_regs_offset' and `sc_fpregs_offset'.
1067 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
1068 SIGFRAME_FPREGSAVE_OFF): Remove defines.
1069 (alpha_sigtramp_register_address): Rewrite to use new members of
1070 `struct gdbarch_tdep'.
1071 (alpha_gdbarch_init): Initialize new members of struct
1072 gdbarch_tdep'.
1073 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
1074 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
1075 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
1076 (alphafbsd_pc_in_sigtramp): Implement.
1077 (alphafbsd_sigtramp_offset): New function.
1078 (alphafbsd_sigcontext_addr): New function.
1079 (alphafbsd_init_abi): Initialize signal trampoline related members
1080 of `struct gdbarch_tdep'.
1081 (_initialize_alphafbsd_tdep): Add prototype.
1082
1083 2003-07-11 Theodore A. Roth <troth@openavr.org>
1084
1085 * Makefile.in (install-only): Quote sed expression when generating
1086 transformed_name.
1087
1088 2003-07-11 Richard Henderson <rth@redhat.com>
1089
1090 * Makefile.in (dwarf2-frame.o): Add complaints_h.
1091 * dwarf2-frame.c: Include complaints.h.
1092 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
1093 variable initialization; return NULL on error.
1094 (decode_frame_entry): New.
1095
1096 2003-07-11 Andrew Cagney <cagney@redhat.com>
1097
1098 * frame.h (frame_address_in_block): Delete declaration.
1099 * blockframe.c (frame_address_in_block): Delete function.
1100 (get_frame_block): Use get_frame_address_in_block.
1101 (block_innermost_frame): Ditto.
1102 * stack.c (print_frame, backtrace_command_1): Ditto.
1103
1104 * frame.h (get_frame_address_in_block): Declare.
1105 (frame_unwind_address_in_block): Declare.
1106 * frame.c (frame_unwind_address_in_block): New function.
1107 (get_frame_address_in_block): New function.
1108
1109 2003-07-10 Andrew Cagney <cagney@redhat.com>
1110
1111 * gdbarch.sh: Simplify predicate methods. Remove need to provide
1112 pre-default. Note: re-generate has no effect.
1113
1114 2003-07-10 Andrew Cagney <cagney@redhat.com>
1115
1116 * gdbarch.sh: When a variable, but not a function, compare against
1117 0. Fix problem in previous patch.
1118 * gdbarch.c: Re-generate.
1119
1120 2003-07-10 Andrew Cagney <cagney@redhat.com>
1121
1122 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
1123 functions against NULL, not 0.
1124 * gdbarch.c: Re-generate.
1125
1126 2003-07-10 Fred Fish <fnf@ninemoons.com>
1127
1128 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
1129 null string instead of a null pointer.
1130 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
1131
1132 2003-07-09 Michael Snyder <msnyder@redhat.com>
1133
1134 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
1135
1136 2003-07-09 Mark Kettenis <kettenis@gnu.org>
1137
1138 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
1139 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
1140 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
1141 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
1142 * x86-64-tdep.c: ... from here.
1143
1144 2003-07-09 Andreas Schwab <schwab@suse.de>
1145
1146 * m68k-tdep.h (enum struct_return): Define.
1147 (struct gdbarch_tdep): Add struct_return.
1148 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
1149 bytes are padded to the right, not to the left. Pass struct value
1150 address in register %a1, not on stack.
1151 (m68k_use_struct_convention): New function.
1152 (m68k_gdbarch_init): Set use_struct_convention. Initialize
1153 struct_return in tdep to pcc_struct_return.
1154 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
1155 reg_struct_return.
1156
1157 2003-07-09 Joel Brobecker <brobecker@gnat.com>
1158
1159 * somread.c (som_symfile_offsets): Fix compilation error.
1160
1161 2003-07-09 Andrew Cagney <cagney@redhat.com>
1162
1163 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
1164 Add comments about the checks.
1165
1166 2003-07-08 Andrew Cagney <cagney@redhat.com>
1167
1168 * Makefile.in: Make dependency section headers consistent.
1169 (config_h): Move to $BUILD headers section.
1170 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
1171 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
1172 (ada-exp.tab.c): Move to YACC/LEX section.
1173 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
1174 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
1175
1176 2003-07-08 Kris Warkentin <kewarken@qnx.com>
1177
1178 * nto-procfs.c: Cleaned up a bunch of ARI hits.
1179 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
1180 of strerror with safe_strerror, use ISO C function definitions,
1181 and replace instances of sprintf with snprintf.
1182
1183 2003-07-07 Andrew Cagney <cagney@redhat.com>
1184
1185 * frame.c (get_prev_frame): Enable check for identical frames.
1186 Update comments. Update error messages.
1187
1188 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1189
1190 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
1191
1192 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1193
1194 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
1195 sort_symtab_syms, no longer necessary.
1196
1197 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1198
1199 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
1200
1201 2003-07-07 Joel Brobecker <brobecker@gnat.com>
1202
1203 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
1204 (mips_register_byte): Likewise.
1205
1206 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1207
1208 * Makefile.in (sparc_tdep_h): New.
1209 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
1210 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
1211 * sparc-linux-nat.c: Include "sparc-tdep.h".
1212 * sparc-nat.c: Likewise.
1213 * sparc-tdep.c: Likewise.
1214 * sparc64nbsd-nat.c: Likewise.
1215 * sparcnbsd-nat.c: Likewise.
1216 * sparcnbsd-tdep.c: Likewise.
1217 * sparc-tdep.h: New file.
1218 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
1219 and sparc_npc_regnum.
1220
1221 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1222
1223 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
1224 (mips_linux_cannot_store_register): List supported instead of
1225 unsupported registers.
1226
1227 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
1228
1229 * disasm.c (dump_insns): Separate instructions from addresses.
1230
1231 2003-07-07 Andreas Schwab <schwab@suse.de>
1232
1233 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1234 dependencies.
1235 * m68k-tdep.c (NUM_FREGS): Delete.
1236 (SIG_PC_FP_OFFSET): Delete.
1237 (TARGET_M68K): Delete.
1238 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
1239 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
1240 P_MOVEL_SP, P_MOVEML_SP): Define.
1241 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
1242 P_TRAP): Delete.
1243 (m68k_register_raw_size): Delete.
1244 (m68k_register_virtual_size): Delete.
1245 (m68k_register_type): Renamed from m68k_register_virtual_type and
1246 add gdbarch argument.
1247 (m68k_store_struct_return): Delete.
1248 (m68k_deprecated_extract_return_value): Delete.
1249 (m68k_deprecated_extract_struct_value_address): Delete.
1250 (m68k_frame_chain): Delete.
1251 (m68k_frame_saved_pc): Delete.
1252 (m68k_fix_call_dummy): Delete.
1253 (m68k_push_dummy_frame): Delete.
1254 (m68k_pop_frame): Delete.
1255 (m68k_extract_return_value): New function.
1256 (m68k_store_return_value): Rewrite using regcache.
1257 (m68k_extract_struct_value_address): Rewrite using regcache.
1258 (m68k_push_dummy_call): New function.
1259 (struct m68k_frame_cache): Define.
1260 (m68k_alloc_frame_cache): New function.
1261 (m68k_analyze_frame_setup): New function.
1262 (m68k_analyze_register_saves): New function.
1263 (m68k_analyze_prologue): New function.
1264 (m68k_skip_prologue): Rewrite using above functions.
1265 (m68k_unwind_pc): New function.
1266 (m68k_frame_cache): New function.
1267 (m68k_frame_this_id): New function.
1268 (m68k_frame_prev_register): New function.
1269 (m68k_frame_unwind): New variable.
1270 (m68k_frame_p): New function.
1271 (m68k_sigtramp_frame_cache): New function.
1272 (m68k_sigtramp_frame_this_id): New function.
1273 (m68k_sigtramp_frame_prev_register): New function.
1274 (m68k_sigtramp_frame_unwind): New variable.
1275 (m68k_sigtramp_frame_p): New function.
1276 (m68k_frame_base_address): New function.
1277 (m68k_frame_base): New function.
1278 (m68k_unwind_dummy_id): New function.
1279 (fill_gregset): Use regcache_collect.
1280 (fill_fpregset): Likewise.
1281 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
1282 defined.
1283 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
1284 deprecated_init_frame_pc, deprecated_store_struct_return,
1285 deprecated_extract_return_value, deprecated_store_return_value,
1286 deprecated_frame_chain, deprecated_frame_saved_pc,
1287 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
1288 deprecated_register_virtual_size,
1289 deprecated_max_register_raw_size,
1290 deprecated_max_register_virtual_size,
1291 deprecated_register_virtual_type, deprecated_register_size,
1292 deprecated_register_byte, deprecated_register_bytes,
1293 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
1294 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
1295 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
1296 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
1297 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
1298 deprecated_push_dummy_frame, deprecated_pop_frame,
1299 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
1300 only if SYSCALL_TRAP is defined. Set extract_return_value,
1301 store_return_value, extract_struct_value_address, register_type,
1302 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
1303 predicates.
1304 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
1305 M68K_MAX_REGISTER_SIZE): Define.
1306 (struct m68k_sigtramp_info): Define.
1307 (struct gdbarch_tdep): Add get_sigtramp_info.
1308 * m68klinux-nat.c (fetch_register): Use register_size instead of
1309 REGISTER_RAW_SIZE. Don't put assignment in if.
1310 (store_register): Likewise.
1311 (fetch_inferior_registers): Likewise.
1312 (store_inferior_registers): Likewise.
1313 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1314 (m68k_linux_frame_saved_pc): Delete.
1315 (m68k_linux_sigcontext_reg_offset,
1316 m68k_linux_ucontext_reg_offset): Define.
1317 (m68k_linux_get_sigtramp_info): New function.
1318 (m68k_linux_extract_return_value): Rewrite using regcache.
1319 (m68k_linux_store_return_value): Likewise.
1320 (m68k_linux_extract_struct_value_address): Likewise.
1321 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1322 Don't set deprecated_frame_saved_pc,
1323 deprecated_extract_return_value, deprecated_store_return_value,
1324 deprecated_extract_struct_value_address. Set
1325 extract_return_value, store_return_value,
1326 extract_struct_value_address.
1327
1328 2003-07-07 Andrew Cagney <cagney@redhat.com>
1329
1330 * expprint.c: Include "user-regs.h" instead of "frame.h".
1331 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1332 frame_map_regnum_to_name.
1333 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1334 (frame_map_name_to_regnum): Simplify, call
1335 user_reg_map_name_to_regnum.
1336 (frame_map_regnum_to_name): Simplify, call
1337 user_reg_map_regnum_to_name.
1338 (frame_register_unwind): Update.
1339 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1340 (_initialize_frame_reg): Call user_reg_add_builtin.
1341 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1342 (value_of_register): Use value_of_user_reg.
1343 * eval.c (evaluate_subexp_standard): Update.
1344 * parse.c (write_dollar_variable): Update.
1345 * d10v-tdep.c (d10v_print_registers_info): Update.
1346 * infcmd.c (registers_info): Update.
1347 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1348 (builtin_regs_h): Delete macro.
1349 (user_regs_h): Define.
1350 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1351 (builtin-regs.o): Delete target.
1352 (user-regs.o): Specify dependencies.
1353 (expprint.o): Update dependencies.
1354 (findvar.o): Update dependencies.
1355 (frame.o): Update dependencies.
1356 (std-regs.o): Update dependencies.
1357
1358 2003-07-06 Christopher Faylor <cgf@redhat.com>
1359
1360 * win32-nat.c (solib_symbols_add): Use one variable for all section
1361 address stuff. Pass variable rather than address of variable to
1362 safe_symbol_file_add.
1363
1364 2003-07-06 Andreas Schwab <schwab@suse.de>
1365
1366 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1367
1368 2003-07-04 Joel Brobecker <brobecker@gnat.com>
1369
1370 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1371
1372 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1373
1374 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1375
1376 2003-07-04 Kris Warkentin <kewarken@qnx.com>
1377
1378 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1379 * config/i386/nto.mh: New file.
1380 * config/i386/nm-nto.h: New file.
1381 * configure.host: Add i[3456]86-*-nto*.
1382
1383 2003-07-03 Joel Brobecker <brobecker@gnat.com>
1384
1385 * remote-vx.c (vx_add_symbols): Fix compilation error.
1386
1387 2003-07-03 Andrew Cagney <cagney@redhat.com>
1388
1389 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1390 * gdbarch.h, gdbarch.c: Re-generate.
1391 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1392 (legacy_register_name): Declare.
1393 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1394 (REGISTER_NAME): Define.
1395 * sparc-tdep.c (legacy_register_name): New function.
1396 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1397 (REGISTER_NAME): Define.
1398 (hppa64_register_name): Declare.
1399 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1400 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1401 (hppa64_register_name): New function.
1402 (hppa_register_name): New function.
1403 * arch-utils.c (legacy_register_name): Delete.
1404 * arch-utils.h (legacy_register_name): Delete.
1405
1406 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
1407
1408 * cli/cli-interp.c (cli_interpreter_resume): Update the
1409 cli_uiout's stream to gdb_stdout.
1410
1411 2003-07-03 Andrew Cagney <cagney@redhat.com>
1412
1413 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1414 predicate.
1415 * gdbarch.h, gdbarch.c: Re-generate.
1416 * regcache.c (init_regcache_descr): Use legacy code when either
1417 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1418
1419 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1420
1421 * NEWS: Move "set logging" entry into GDB 6.0 section.
1422
1423 2003-07-02 Jim Blandy <jimb@redhat.com>
1424
1425 * s390-tdep.c (struct frame_extra_info): new member:
1426 'stack_bought_valid'.
1427 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1428 initialize fextra_info->stack_bought.
1429 (s390_frameless_function_invocation): Don't trust the value of
1430 fextra_info_ptr->stack_bought unless
1431 fextra_info->stack_bought_valid is set.
1432
1433 New S390 prologue analyzer.
1434 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1435 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1436 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1437 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1438 compute_x_addr, s390_on_stack, s390_store,
1439 s390_get_signal_frame_info): New functions.
1440 (S390_NUM_SPILL_SLOTS): New macro.
1441 (s390_get_frame_info): Rewritten.
1442 (is_arg_reg): Deleted.
1443
1444 Break out the decoding of S/390 instructions into separate
1445 functions, to make it more legible, and easier to check
1446 against the spec.
1447 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1448 is_rx, is_rxe): New functions.
1449 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1450 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1451 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1452 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1453 enums for opcode values. (Is this an improvement?)
1454
1455 2003-07-02 Andrew Cagney <cagney@redhat.com>
1456
1457 * i386-tdep.c: Revert change committed as part of trad-frame code
1458 below.
1459
1460 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
1461
1462 * breakpoint.c (insert_catchpoint): Make static.
1463
1464 2003-07-02 Andreas Schwab <schwab@suse.de>
1465
1466 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1467 former ia64_push_arguments and ia64_push_return_address, and use
1468 regcache functions instead of read/write_register.
1469 (ia64_gdbarch_init): Set push_dummy_call instead of
1470 deprecated_push_arguments and deprecated_push_return_address.
1471
1472 2003-07-01 Andreas Jaeger <aj@suse.de>
1473
1474 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1475 before the call.
1476 Set %rax only to number of SSE registers used.
1477
1478 2003-07-01 Andrew Cagney <cagney@redhat.com>
1479
1480 * trad-frame.h: Update comments, a -1 .addr is reserved.
1481 (trad_frame_value_p, trad_frame_addr_p): Declare.
1482 (trad_frame_reg_p): Declare.
1483 (trad_frame_set_value): Rename trad_frame_register_value.
1484 (trad_frame_set_unknown): Declare.
1485 * trad-frame.c (trad_frame_realreg_p): New function.
1486 (trad_frame_addr_p, trad_frame_value_p): New function.
1487 (trad_frame_set_unknown): New function.
1488 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1489 (trad_frame_prev_register): Use trad_frame_realreg_p,
1490 trad_frame_addr_p and trad_frame_value_p.
1491 (trad_frame_set_value): Rename trad_frame_register_value.
1492 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1493 and trad_frame_set_value.
1494
1495 2003-06-30 Jim Blandy <jimb@redhat.com>
1496
1497 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1498 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1499 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1500 for 16 registers, and then 32 more bytes.
1501 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1502 New macros.
1503 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1504 Move up in the file, since it's now used by is_simple_arg.
1505 (is_simple_arg): Don't assume registers are four bytes long.
1506 Exclude all double arguments. Extended floats are not simple
1507 args.
1508 (is_power_of_two): New function.
1509 (pass_by_copy_ref): Call is_power_of_two, and check that the
1510 length fits in a register, rather than listing all the acceptable
1511 sizes. Extended floats are not passed by reference.
1512 (s390_push_arguments): Don't assume registers are four bytes long.
1513 Reserve an argument register to point to the buffer for structures
1514 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1515 S390_STACK_FRAME_OVERHEAD.
1516
1517 2003-06-30 Andreas Schwab <schwab@suse.de>
1518
1519 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1520 format error message.
1521
1522 2003-06-30 Joel Brobecker <brobecker@gnat.com>
1523
1524 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1525
1526 2003-06-30 David Carlton <carlton@kealia.com>
1527
1528 Band-aid for PR c++/1245.
1529 * Makefile.in (cp-support.o): Depend on complaints_h.
1530 * cp-support.c: Include complaints.h. Add declaration for
1531 find_last_component.
1532 (cp_find_first_component): Separate code into
1533 cp_find_first_component_aux.
1534 (cp_find_first_component_aux): Call demangled_name_complaint.
1535 (demangled_name_complaint): New.
1536
1537 2003-06-30 Andrew Cagney <cagney@redhat.com>
1538
1539 * remote.c (remote_write_bytes): Explicitly compute and then use
1540 the payload size. Update comments to reflect. Fixes problem of
1541 GDB not sending small packets as found by Fred Fish.
1542
1543 2003-06-30 Andrew Cagney <cagney@redhat.com>
1544
1545 * remote.c (remote_async_wait): Fix -Wformat problem.
1546
1547 2003-06-29 Andrew Cagney <cagney@redhat.com>
1548
1549 * remote.c (remote_wait): Call error, and not warning, when the
1550 packet is corrupt.
1551 (remote_async_wait): Ditto.
1552
1553 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1554
1555 * sparc-tdep.c (sparc_y_regnum): Make external again.
1556
1557 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
1558
1559 * cli/cli-logging.c (pop_output_files): Add void to function
1560 definition.
1561
1562 2003-06-29 Andrew Cagney <cagney@redhat.com>
1563
1564 * frame.c (frame_register_unwind): Use unsigned char when dumping
1565 the buffer contents.
1566
1567 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
1568
1569 * cli/cli-logging.c: New file.
1570 * cli-out.c (struct ui_out_data): Add original_stream.
1571 (cli_redirect): New function.
1572 (cli_ui_out_impl): Add cli_redirect.
1573 (cli_out_new): Initialize original_stream.
1574 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1575 (uo_redirect, ui_out_redirect): New.
1576 * ui-out.h (struct ui_out_impl): Add redirect member.
1577 (redirect_ftype): New.
1578 (ui_out_redirect): Add prototype.
1579 * Makefile.in: Add rules for cli-logging.c.
1580 * NEWS: Mention "set logging".
1581
1582 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1583
1584 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1585
1586 2003-06-27 Andrew Cagney <cagney@redhat.com>
1587
1588 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1589 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1590 * avr-tdep.c (avr_call_dummy_address): Delete function.
1591 (avr_gdbarch_init): Do not set call_dummy_address.
1592
1593 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1594
1595 * symfile.c (syms_from_objfile): Move variables to inner block.
1596 Move the checks for the non-mainline case a bit earlier to avoid
1597 doing some useless computations.
1598
1599 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
1600
1601 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1602
1603 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
1604
1605 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1606 sections.
1607
1608 2003-06-26 Michael Chastain <mec@shout.net>
1609
1610 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1611 gdb/testsuite/gdb.c++/pr-1210.exp.
1612
1613 2003-06-26 Andrew Cagney <cagney@redhat.com>
1614
1615 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1616 altivec_expression.h and altivec_registers.h.
1617
1618 2003-06-26 Andrew Cagney <cagney@redhat.com>
1619
1620 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1621 info->mach when MIPS16. Patch suggested by Fred Fish.
1622
1623 2003-06-26 Andrew Cagney <cagney@redhat.com>
1624
1625 * utils.c (internal_vproblem): Print the problem to a reason
1626 buffer and then pass to query. Make the msg variable more local.
1627
1628 2003-06-26 Andrew Cagney <cagney@redhat.com>
1629
1630 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
1631 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
1632 * gdbarch.h, gdbarch.c: Re-generate.
1633 * frame-base.c (default_frame_args_address): Update. Use
1634 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
1635 not available.
1636 (default_frame_locals_address): Ditto for
1637 DEPRECATED_FRAME_LOCALS_ADDRESS.
1638 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
1639 (vax_frame_num_args): Update.
1640 (vax_gdbarch_init): Update.
1641 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1642 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1643 * mcore-tdep.c (mcore_gdbarch_init): Update.
1644 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1645 * ia64-tdep.c (ia64_gdbarch_init): Update.
1646 * symtab.h (address_class): Update comments.
1647 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
1648 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1649 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1650 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1651 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1652 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1653 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1654 * alpha-mdebug-tdep.c: Update.
1655 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
1656
1657 2003-06-26 Andreas Jaeger <aj@suse.de>
1658
1659 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
1660 of SSE registers so that varargs functions work. Rework handling
1661 of passing arguments on the stack.
1662 (x86_64_store_return_value): Return double and float values in SSE
1663 register.
1664
1665 2003-06-24 Michael Chastain <mec@shout.net>
1666
1667 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
1668 the "constructor breakpoints ignored" bug.
1669
1670 2003-06-25 David Carlton <carlton@kealia.com>
1671
1672 * MAINTAINERS: Update e-mail address.
1673
1674 2003-06-24 Jim Blandy <jimb@redhat.com>
1675
1676 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
1677
1678 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
1679 function.
1680 (ppc_linux_init_abi): Register it as the
1681 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
1682
1683 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
1684 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
1685 method.
1686
1687 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
1688 (ppc64_standard_linkage_target): Use it.
1689
1690 2003-06-23 Andrew Cagney <cagney@redhat.com>
1691
1692 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
1693 for 0 "int0" and 4 "int32" sized registers.
1694 * gdbtypes.c (builtin_type_int0): Define.
1695 (build_gdbtypes): Initialize builtin_type_int0.
1696 * gdbtypes.h (builtin_type_int0): Declare.
1697
1698 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
1699
1700 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
1701 as characters are unsigned.
1702
1703 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1704
1705 PR gdb/1179
1706 * dwarfread.c (struct_type): Skip static fields without crashing.
1707
1708 2003-06-22 Andrew Cagney <cagney@redhat.com>
1709
1710 GDB 6.0 branch created.
1711 * README: Update.
1712 * PROBLEMS: Update. Empty.
1713 * NEWS: Update.
1714
1715 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1716
1717 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
1718 Suggested by Nick Hibma <n_hibma@webweaving.org>.
1719
1720 2003-06-22 Andrew Cagney <cagney@redhat.com>
1721
1722 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
1723 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
1724 Velikov.
1725
1726 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
1727
1728 * cli/cli-cmds.c (shell_escape): Silence warnings from old
1729 compilers.
1730
1731 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1732
1733 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
1734 argument of val_print.
1735 * cp-valprint.c (cp_print_value): Don't add the offset parameter
1736 to the address argument of baseclass_offset or target_read_memory.
1737 Do add it to the argument of cp_print_value_fields.
1738
1739 2003-06-21 Andrew Cagney <cagney@redhat.com>
1740
1741 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
1742 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
1743 instead of 0..NUM_REGS.
1744 (mips_register_reggroup_p): New function.
1745 (mips_pseudo_register_write): New function.
1746 (mips_pseudo_register_read): New function.
1747 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
1748 based on the register's type.
1749 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
1750 cooked.
1751 (mips_get_saved_register): Simplify. Assert that REGNO is a
1752 pseudo / cooked.
1753 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
1754 (mips_register_type): Replace mips_register_virtual_type. Map
1755 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
1756 when available.
1757 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
1758 that the register is cooked / virtual.
1759 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
1760 Only get the extra info when needed.
1761 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
1762 (mips32_heuristic_proc_desc): Fetch the cooked register.
1763 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
1764 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
1765 (mips_print_register): Use gdbarch_register_type, instead of
1766 REGISTER_VIRTUAL_TYPE.
1767 (print_gp_register_row): Use gdbarch_register_type, instead of
1768 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
1769 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1770 Print the pseudo / cooked registers.
1771 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1772 Print the pseudo / cooked registers.
1773 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
1774 REG_NUM is pseudo / cooked.
1775 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
1776 (mips_n32n64_xfer_return_value): Ditto.
1777 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
1778 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
1779 (mips_register_sim_regno): New function.
1780 (mips_gdbarch_init): Set deprecated_register_byte,
1781 register_group_p, pseudo_register_write, pseudo_register_read,
1782 register_sim_regno, and num_pseudo_regs. Set register_type,
1783 instead of register_virtual_type.
1784 * Makefile.in (mips-tdep.o): Update dependencies.
1785 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
1786 REGISTER_VIRTUAL_TYPE.
1787 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
1788 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
1789 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
1790 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
1791 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
1792
1793 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
1794
1795 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
1796 * cli/cli-cmds.c: Include "gdb_vfork.h".
1797 (shell_escape): Use vfork.
1798
1799 2003-06-21 Andrew Cagney <cagney@redhat.com>
1800
1801 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
1802 32 bit floating-point register saves.
1803
1804 * frame.h (deprecated_unwind_get_saved_register): Delete.
1805 * frame.c (deprecated_unwind_get_saved_register): Delete function.
1806 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
1807 and deprecated_get_next_frame_hack instead of
1808 deprecated_unwind_get_saved_register.
1809
1810 * mips-tdep.c (mips_dump_tdep): Do not print
1811 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
1812
1813 * frame.c (get_frame_register): New function.
1814 (frame_unwind_register_signed): New function.
1815 (get_frame_register_signed): New function.
1816 (frame_unwind_register_unsigned): New function.
1817 (get_frame_register_unsigned): New function.
1818 * frame.h: Add comments on naming schema.
1819 (get_frame_register, frame_unwind_register_signed): Declare.
1820 (get_frame_register_signed, get_frame_register_signed): Declare.
1821 (frame_unwind_register_unsigned): Declare.
1822 (get_frame_register_unsigned): Declare.
1823
1824 2003-06-20 Theodore A. Roth <troth@openavr.org>
1825
1826 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
1827
1828 2003-06-20 Theodore A. Roth <troth@openavr.org>
1829
1830 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
1831 (avr_read_sp): Ditto.
1832
1833 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
1834
1835 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
1836 * config/arm/nm-linux.h: Likewise.
1837 * config/arm/tm-linux.h: Likewise.
1838 * config/ia64/nm-linux.h: Likewise.
1839 * config/ia64/tm-ia64.h: Likewise.
1840 * config/s390/tm-linux.h: Likewise.
1841 * config/s390/tm-s390.h: Likewise.
1842 * s390-nat.c: Likewise.
1843 * s390-tdep.c: Likewise.
1844
1845 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
1846 * config/ia64/linux.mt: Likewise.
1847 * config/m68k/linux.mh: Likewise.
1848 * config/mips/linux.mt: Likewise.
1849 * config/powerpc/linux.mh: Likewise.
1850 * config/sh/linux.mt: Likewise.
1851
1852 2003-06-19 Kris Warkentin <kewarken@qnx.com>
1853
1854 * solib.c (solib_open): Change tests for whether to search
1855 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
1856 comments.
1857
1858 2003-06-19 Theodore A. Roth <troth@openavr.org>
1859
1860 * avr-tdep.c (avr_frame_address): Delete function.
1861 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
1862 set_gdbarch_frame_args_address.
1863
1864 2003-06-19 Andrew Cagney <cagney@redhat.com>
1865
1866 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
1867 (REGISTER_CONVERT_FROM_TYPE): Delete.
1868 (mips_register_convert_to_type): Delete declaration.
1869 (mips_register_convert_from_type): Delete declaration.
1870 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
1871 kernel/.
1872
1873 2003-06-19 Michael Snyder <msnyder@redhat.com>
1874
1875 * linux-nat.h: New file.
1876 * linux-nat.c: Include linux-nat.h.
1877 * lin-lwp.c: Include linux-nat.h.
1878 Move struct lwp_info def to linux-nat.h.
1879 * linux-proc.c: Include linux-nat.h.
1880 (linux_make_note_section): Iterate over lwps instead of threads.
1881 (linux_do_thread_registers): Use lwp instead of merged pid.
1882 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
1883 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
1884 Add dependency on linux_nat_h.
1885
1886 2003-06-19 Theodore A. Roth <troth@openavr.org>
1887
1888 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
1889
1890 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1891
1892 * varobj.c (get_type, get_target_type): Use check_typedef.
1893
1894 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1895
1896 * breakpoint.c (insert_catchpoint): Call internal_error.
1897
1898 2003-06-19 Theodore A. Roth <troth@openavr.org>
1899
1900 * avr-tdep.c (avr_push_dummy_code): Delete function.
1901 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
1902
1903 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
1904
1905 * arch-utils.c (default_prepare_to_proceed): Remove.
1906 (generic_prepare_to_proceed): Remove.
1907 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
1908 (generic_prepare_to_proceed): Remove prototype.
1909 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
1910 * gdbarch.c: Regenerate.
1911 * gdbarch.h: Regenerate.
1912 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
1913 * hppah-nat.c (hppa_switched_threads): Remove.
1914 * infrun.c (prepare_to_proceed): New static function, copied from
1915 generic_prepare_to_proceed. Remove select_it argument.
1916 (proceed): Call prepare_to_proceed.
1917 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
1918 variables.
1919 (ptrace_wait): Don't set the removed variables.
1920 (hppa_switched_threads): Remove.
1921 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
1922 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
1923 (lin_lwp_prepare_to_proceed): Remove prototype.
1924 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
1925 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
1926
1927 2003-06-18 Theodore A. Roth <troth@openavr.org>
1928
1929 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
1930 trad-frame.h.
1931 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
1932 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
1933 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
1934 (AVR_PROLOGUE_*): Enumerate prologue types.
1935 (struct frame_extra_info): Remove.
1936 (struct avr_unwind_cache): Define.
1937 (avr_write_sp): Delete function.
1938 (avr_read_fp): Ditto.
1939 (avr_init_extra_frame_info): Ditto.
1940 (avr_pop_frame): Ditto.
1941 (avr_frame_saved_pc): Ditto.
1942 (avr_saved_pc_after_call): Ditto.
1943 (avr_push_return_address): Ditto.
1944 (avr_frame_chain): Ditto.
1945 (avr_store_struct_return): Ditto.
1946 (avr_push_arguments): Ditto.
1947 (avr_scan_prologue): Update comments. Changed to set up the info for
1948 cache unwinding. Now returns end of prologue PC.
1949 (avr_skip_prologue): Better handling of functions lacking a prologue
1950 by using avr_scan_prologue.
1951 (avr_scan_arg_moves): New function.
1952 (avr_saved_regs_unwinder): Ditto.
1953 (avr_frame_unwind_cache): Ditto.
1954 (avr_unwind_pc): Ditto.
1955 (avr_frame_this_id): Ditto.
1956 (avr_frame_prev_register): Ditto.
1957 (avr_frame_p): Ditto.
1958 (avr_frame_base_address ): Ditto.
1959 (avr_unwind_dummy_id): Ditto.
1960 (avr_push_dummy_code): Ditto.
1961 (push_stack_item): Ditto.
1962 (pop_stack_item): Ditto.
1963 (avr_push_dummy_call): Ditto.
1964 (struct stack_item): Define.
1965 (avr_frame_unwind): Declare structure.
1966 (avr_frame_base): Ditto.
1967 (avr_gdbarch_init): Remove calls to
1968 set_gdbarch_deprecated_init_frame_pc,
1969 set_gdbarch_deprecated_target_read_fp,
1970 set_gdbarch_deprecated_dummy_write_sp,
1971 set_gdbarch_deprecated_fp_regnum,
1972 set_gdbarch_deprecated_push_arguments,
1973 set_gdbarch_deprecated_push_return_address,
1974 set_gdbarch_deprecated_pop_frame,
1975 set_gdbarch_deprecated_store_struct_return,
1976 set_gdbarch_deprecated_frame_init_saved_regs,
1977 set_gdbarch_deprecated_init_extra_frame_info,
1978 set_gdbarch_deprecated_frame_chain,
1979 set_gdbarch_deprecated_frame_saved_pc,
1980 set_gdbarch_deprecated_saved_pc_after_call.
1981 Add calls to set_gdbarch_push_dummy_call,
1982 set_gdbarch_push_dummy_code,
1983 frame_unwind_append_predicate,
1984 frame_base_set_default,
1985 set_gdbarch_unwind_dummy_id,
1986 set_gdbarch_unwind_pc.
1987 Wrap a long line.
1988
1989 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
1990
1991 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
1992 registers for H8/300S.
1993 (h8300_print_registers_info): Ditto.
1994 (h8300_gdbarch_init): Accommodate register count for H8/300S.
1995
1996 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
1997
1998 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
1999 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2000 (lin_lwp_wait): Likewise. Update comments.
2001 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
2002 (pull_pid_from_list, linux_record_stopped_pid): New.
2003
2004 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2005
2006 * ada-lang.c (scan_discrim_bound): Name first argument.
2007 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
2008 declared by ALL_BLOCK_SYMBOLS.
2009
2010 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
2011
2012 * ada-tasks.c (find_function_in_inferior): Don't declare it.
2013 ("regcache.h"): Include it.
2014 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
2015
2016 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2017
2018 * NEWS: Mention gdbserver detach change and "disconnect" command.
2019 * infcmd.c (disconnect_command): New function.
2020 (_initialize_infcmd): Add ``disconnect'' command.
2021 * remote.c (remote_async_detach): Delete.
2022 (remote_detach): Merge remote_async_detach.
2023 (remote_disconnect): New.
2024 (init_remote_ops): Set to_disconnect.
2025 (init_remote_cisco_ops): Likewise.
2026 (init_remote_async_ops): Likewise. Use remote_detach.
2027 * target.c (cleanup_target): Default to_disconnect.
2028 (update_current_target): Inherit to_disconnect.
2029 (target_disconnect, debug_to_disconnect): New functions.
2030 (setup_target_debug): Set to_disconnect.
2031 * target.h (struct target_ops): Add to_disconnect.
2032 (target_disconnect): Add prototype.
2033
2034 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2035
2036 * breakpoint.c (insert_catchpoint): New function.
2037 (insert_breakpoints): Use catch_exceptions to call
2038 insert_catchpoint. Disable catchpoints if they fail to insert.
2039
2040 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2041
2042 * symfile.c (reread_symbols): Clear sym_private.
2043
2044 2003-06-17 Andrew Cagney <cagney@redhat.com>
2045
2046 * trad-frame.h (struct frame_info): Add opaque declaration.
2047 * remote-fileio.h (struct cmd_list_element): Add opaque
2048 declaration.
2049 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
2050 comments.
2051
2052 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
2053
2054 * remote.c (remote_prepare_to_store): Replace call to
2055 deprecated_read_register_bytes with multiple regcache_raw_read
2056 calls.
2057
2058 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2059
2060 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
2061 (nto_find_and_open_solib): Likewise.
2062 (nto_init_solib_absolute_prefix): Likewise.
2063 (_initialize_nto_tdep): Fix indentation.
2064
2065 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2066
2067 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
2068
2069 2003-06-17 Kris Warkentin <kewarken@qnx.com>
2070
2071 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
2072
2073 2003-06-17 Jim Blandy <jimb@redhat.com>
2074
2075 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
2076
2077 2003-06-16 Theodore A. Roth <troth@openavr.org>
2078
2079 * avr-tdep.c (avr_extract_return_value): New function.
2080 (avr_gdbarch_init): Set extract_return_value method.
2081
2082 2003-06-16 Andrew Cagney <cagney@redhat.com>
2083
2084 * frame.h (deprecated_get_next_frame_hack): Declare.
2085 * frame.c (legacy_saved_regs_prev_register): Only require
2086 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
2087 there are always saved regs.
2088 (deprecated_generic_get_saved_register): Do not require
2089 DEPRECATED_FRAME_INIT_SAVED_REGS.
2090 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
2091 use frame ID unwind instead.
2092 (deprecated_get_next_frame_hack): New function.
2093
2094 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2095
2096 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
2097 (h8300_push_dummy_call): ...this function. Some minor optimization.
2098 (h8300_push_return_address): Remove.
2099 (h8300_gdbarch_init): Remove calls to
2100 set_gdbarch_deprecated_dummy_write_sp,
2101 set_gdbarch_deprecated_push_arguments and
2102 set_gdbarch_deprecated_push_return_address.
2103 Add call to set_gdbarch_push_dummy_call.
2104
2105 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
2106
2107 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
2108 (E_PSEUDO_EXR_REGNUM): Ditto.
2109 (h8300_is_argument_spill): Check for instructions moving argument
2110 registers into safe registers.
2111 (h8300_skip_prologue): Check for stm instruction to push registers
2112 used for register variables onto stack.
2113 (gdb_print_insn_h8300): Remove.
2114 (h8300_examine_prologue): Add a comment.
2115 (h8300_register_name): Take pseudo registers into account.
2116 (h8300s_register_name): Ditto.
2117 (h8300sx_register_name): Ditto.
2118 (h8300_print_register): Ditto.
2119 (h8300_print_registers_info): Define "nice" printing order.
2120 (h8300_saved_pc_after_call): Take pseudo registers into account.
2121 (h8300_register_type): Ditto. Return type used for remote connection
2122 when requesting real CCR or EXR register, return actual type when
2123 requesting pseudo CCR or EXR.
2124 (h8300_pseudo_register_read): New function.
2125 (h8300_pseudo_register_write): Ditto.
2126 (h8300_dbg_reg_to_regnum): Ditto.
2127 (h8300s_dbg_reg_to_regnum): Ditto.
2128 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
2129 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
2130 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
2131 set_gdbarch_print_insn architecture dependent.
2132 Call set_gdbarch_pseudo_register_read and
2133 set_gdbarch_pseudo_register_write.
2134 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
2135
2136 2003-06-16 Andrew Cagney <cagney@redhat.com>
2137
2138 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
2139 * gdbarch.h, gdbarch.c: Re-generate.
2140 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2141 * s390-tdep.c (s390_gdbarch_init): Update.
2142 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2143 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2144 * mips-tdep.c (mips_gdbarch_init): Update.
2145 * mcore-tdep.c (mcore_gdbarch_init): Update.
2146 * cris-tdep.c (cris_gdbarch_init): Update.
2147 * infcall.c (call_function_by_hand): Update.
2148 * ia64-tdep.c (ia64_push_arguments): Update comment.
2149 * frame.c (legacy_get_prev_frame): Do not assume
2150 SAVE_DUMMY_FRAME_TOS_P.
2151 * dummy-frame.c (find_dummy_frame): Update comment.
2152
2153 2003-06-16 Andrew Cagney <cagney@redhat.com>
2154
2155 * regcache.c (do_cooked_read): Do not use register_valid_p.
2156
2157 2003-06-15 Theodore A. Roth <troth@openavr.org>
2158
2159 * avr-tdep.c (avr_register_type): Remove a blank line.
2160 (avr_scan_prologue): Correct some comments.
2161
2162 2003-06-15 Theodore A. Roth <troth@openavr.org>
2163
2164 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
2165 prologue types.
2166 Properly scan prologues generated by gcc with the -mcall-prologues
2167 option.
2168 Add code to scan -mcall-prologues for mega devices.
2169
2170 2003-06-15 Theodore A. Roth <troth@openavr.org>
2171
2172 * avr-tdep.c (avr_register_byte): Delete function.
2173 (avr_register_raw_size): Delete function.
2174 (avr_register_virtual_size): Delete function.
2175 (avr_register_virtual_type): Delete function.
2176 (avr_register_type): New function.
2177 (avr_address_to_pointer): Remove unused code.
2178 (avr_read_fp): Need to read FP as two separate bytes due to change to
2179 avr_register_type() usage.
2180 (avr_gdbarch_init): Don't set deprecated_register_size.
2181 Don't set deprecated_register_bytes.
2182 Don't set deprecated_register_byte.
2183 Don't set deprecated_register_raw_size.
2184 Don't set deprecated_max_register_raw_size.
2185 Don't set deprecated_register_virtual_size.
2186 Don't set deprecated_max_register_virtual_size.
2187 Don't set deprecated_register_virtual_type.
2188 Set register_type method.
2189
2190 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
2191
2192 * Makefile.in (linux-nat.o): Add rule.
2193 * linux-nat.c: New file.
2194 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
2195 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
2196 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
2197 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
2198 * config/arm/linux.mh (NATDEPFILES): Likewise.
2199 * config/i386/linux.mh (NATDEPFILES): Likewise.
2200 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
2201 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2202 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2203 * config/mips/linux.mh (NATDEPFILES): Likewise.
2204 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2205 * config/s390/s390.mh (NATDEPFILES): Likewise.
2206 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2207
2208 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2209
2210 * i387-tdep.c: Reorder includes, fix some whitespace issues and
2211 replace out-of-date comment.
2212
2213 2003-06-15 Andrew Cagney <cagney@redhat.com>
2214
2215 * rdi-share/host.h (Fail): Change to a varargs function.
2216 * remote-rdi.c (Fail): Update.
2217
2218 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2219
2220 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
2221 (i386_convert_register_p, i386_register_to_value,
2222 i386_register_from_value): Handle types longer than 8 bytes.
2223
2224 2003-06-15 Mark Kettenis <kettenis@gnu.org>
2225
2226 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
2227 Move floating-point code to new function in i387-tdep.c.
2228 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
2229 New functions containing code moved here from i386-tdep.c.
2230 * i387-tdep.h: Add opaque declaration for `struct type'.
2231 (i387_register_to_value, i387_value_to_register): New prototypes.
2232 * x86-64-tdep.c (x86_64_convert_register_p): New function.
2233 (x86_64_init_abi): Set convert_register_p, register_to_value and
2234 value_to_register here.
2235
2236 2003-06-14 Andrew Cagney <cagney@redhat.com>
2237
2238 * mips-tdep.c (mips_register_to_value): Make static.
2239 (mips_value_to_register): Make static.
2240 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
2241 * ia64-tdep.c (ia64_register_raw_size): Make static.
2242 (ia64_register_virtual_size): Make static.
2243 (ia64_register_byte): Make static.
2244 * i387-tdep.c: Include "i387-tdep.h".
2245 (print_387_control_word): Delete function.
2246 (print_387_status_word): Delete function.
2247 (print_387_status_bits): Delete function.
2248 (print_387_control_bits): Delete function.
2249 * Makefile.in (i387-tdep.o): Update dependencies.
2250 * rdi-share/host.h (Fail): Declare.
2251 * remote-rdi.c (Fail): Update to match declaration.
2252
2253 2003-06-14 Andrew Cagney <cagney@redhat.com>
2254
2255 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
2256 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
2257 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
2258 * config/djgpp/fnchange.lst: Delete "remote-array.c".
2259 * README: Delete reference to remote-array.
2260 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
2261 (remote-array.o): Delete target.
2262 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
2263 * remote-array.c: Delete file.
2264
2265 2003-06-14 Andrew Cagney <cagney@redhat.com>
2266 Mark Kettenis <kettenis@gnu.org>
2267
2268 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
2269 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
2270 parameter with "frame".
2271 * gdbarch.h, gdbarch.c: Re-generate.
2272 * frame.h (put_frame_register): Declare.
2273 * frame.c (put_frame_register): New function.
2274 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
2275 (legacy_register_to_value): Rewrite, use "frame" to get the
2276 register value.
2277 (legacy_value_to_register): Rewrite, use "frame" to find the
2278 register's location before storing.
2279 * arch-utils.h (legacy_convert_register_p): Update.
2280 (legacy_register_to_value, legacy_value_to_register): Update.
2281 * findvar.c (value_from_register): Rewrite, eliminate use of
2282 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
2283 "frame" to REGISTER_TO_VALUE.
2284 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
2285 lval_reg_frame_relative + lval_register branch of the switch. Do
2286 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
2287 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
2288 I386_EDI_REGNUM): New defines.
2289 (i386_next_regnum, i386_convert_register_p,
2290 i386_register_to_value, i386_value_to_register): New functions.
2291 (i386_register_convertible, i386_register_convert_to_virtual,
2292 i386_convert_to_raw): Remove functions.
2293 (i386_gdbarch_init): Set convert_register_p, register_to_value and
2294 value_to_register instead of register_convertible,
2295 register_convert_to_virtual and register_convert_to_raw.
2296 * mips-tdep.c (mips_convert_register_p): New function.
2297 (mips_value_to_register): Replace mips_register_convert_from_type.
2298 (mips_register_to_value): Replace mips_register_convert_to_type.
2299 (mips_gdbarch_init): Set conver_register_p, value_to_register and
2300 register_to_value.
2301 * alpha-tdep.c (alpha_convert_register_p): Update.
2302 (alpha_value_to_register): Update, store the register.
2303 (alpha_register_to_value): Update, fetch the register.
2304
2305 2003-06-14 Theodore A. Roth <troth@openavr.org>
2306
2307 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2308 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2309 Don't set deprecated_call_dummy_words.
2310 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2311 Don't set remote_translate_xfer_address.
2312 (avr_io_reg_read_command): Remove commented out debug printf.
2313 Wrap a long line.
2314
2315 2003-06-14 Theodore A. Roth <troth@openavr.org>
2316
2317 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2318 causes gdb to seg fault.
2319
2320 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
2321
2322 * sparc-nat.c (fetch_inferior_registers): Correct
2323 a reference to "registers".
2324
2325 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2326
2327 * Makefile.in (exc_request_U_h): Define
2328 (exc_request_S_h): Likewise.
2329 (msg_reply_S_h): Likewise.
2330 (msg_U_h): Likewise.
2331 (notify_S_h): Likewise.
2332 (process_reply_S_h): Likewise.
2333 (gnu-nat.o): Depend on gdb_obstack_h
2334 * gnu-nat.c: Include "gdb_obstack.h".
2335
2336 2003-06-13 Andrew Cagney <cagney@redhat.com>
2337
2338 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2339 * gdbarch.h, gdbarch.c: Re-generate.
2340
2341 2003-06-13 Andrew Cagney <cagney@redhat.com>
2342
2343 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2344 when deprecated REGISTER macros can be deleted.
2345 * gdbarch.h, gdbarch.c: Re-generate.
2346
2347 2003-06-13 Jim Blandy <jimb@redhat.com>
2348
2349 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2350 Linux entry point symbols for _dl_debug_state, too.
2351
2352 2003-06-13 Andrew Cagney <cagney@redhat.com>
2353
2354 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2355 available, do not use the FP register, and always save the TOS.
2356 * dummy-frame.c (dummy_frame_this_id): Do not assert
2357 SAVE_DUMMY_FRAME_TOS.
2358 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2359 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2360 (i386_push_dummy_call): Add 8 to the returned SP.
2361 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2362 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2363 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2364 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2365 (x86_64_push_dummy_call): Return "sp + 16".
2366 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2367 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2368 save_dummy_frame_tos.
2369
2370 2003-06-13 Jim Blandy <jimb@redhat.com>
2371
2372 * frv-tdep.c (frv_use_struct_convention): Delete static
2373 declaration for function deleted in my change of 2003-06-12.
2374
2375 2003-06-13 Theodore A. Roth <troth@openavr.org>
2376
2377 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2378 (avr_pointer_to_address): Shift code addrs left 1 bit.
2379 (avr_convert_from_func_ptr_addr): Delete function since operation is
2380 better handled by avr_address_to_pointer and avr_pointer_to_address.
2381 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2382
2383 2003-06-13 Mark Kettenis <kettenis@gnu.org>
2384
2385 From Kelley Cook <kelleycook@wideopenwest.com>:
2386 * configure.host: Accept i[34567]86 variants.
2387 * configure.tgt: Likewise.
2388 * nlm/configure.in: Likewise.
2389 * nlm/configure: Regenerated.
2390
2391 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
2392
2393 * arm-tdep.c (solib-svr4.h): Dont' include it.
2394 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2395 * arm-linux-tdep.c: ... here. Make static.
2396 (arm_linux_init_abi): Register it.
2397 (solib-svr4.h): Include it.
2398 * Makefile.in: Update dependencies.
2399 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2400 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2401
2402 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2403
2404 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2405 indicate registers used for return values.
2406 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2407 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2408 members.
2409 (h8300_init_extra_frame_info): Ditto.
2410 (h8300_frame_locals_address): Removed.
2411 (h8300_frame_args_address): Removed.
2412 (h8300_extract_return_value): Use new regcache structure. Only care
2413 for 16 bit CPUs.
2414 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2415 (h8300_store_return_value): Use new regcache structure. Only care
2416 for 16 bit CPUs.
2417 (h8300h_store_return_value): Same function for 32 bit CPUs.
2418 (h8300_store_struct_return): Removed.
2419 (h8300_extract_struct_value_address): Use new regcache structure.
2420 (h8300h_extract_struct_value_address): Removed.
2421 (h8300_push_dummy_code): New function.
2422 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2423 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2424 set_gdbarch_store_return_value architecture dependent.
2425 Call set_gdbarch_push_dummy_code and
2426 set_gdbarch_extract_struct_value_address.
2427 Remove calls to set_gdbarch_frame_args_address,
2428 set_gdbarch_frame_locals_address,
2429 set_gdbarch_deprecated_store_struct_return,
2430 set_gdbarch_deprecated_extract_return_value,
2431 set_gdbarch_deprecated_extract_struct_value_address,
2432 set_gdbarch_deprecated_call_dummy_words and
2433 set_gdbarch_deprecated_sizeof_call_dummy_words.
2434
2435 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
2436
2437 * h8300-tdep.c (h8300_register_byte): Remove.
2438 (h8300h_register_byte): Remove.
2439 (h8300_register_virtual_type): Remove. Substitute by...
2440 (h8300_register_type): New function.
2441 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2442 (h8300h_extract_struct_value_address): Ditto.
2443 (h8300_gdbarch_init): Drop calls to
2444 set_gdbarch_deprecated_register_byte and
2445 set_gdbarch_deprecated_register_virtual_type.
2446 Add call to set_gdbarch_register_type.
2447
2448 2003-06-13 Andrew Cagney <cagney@redhat.com>
2449
2450 * gdbarch.sh: Update comments on registers.
2451 (deprecated_register_byte): Rename register_byte.
2452 (deprecated_register_raw_size): Rename register_raw_size.
2453 (deprecated_register_virtual_size): Rename register_virtual_size.
2454 (deprecated_register_virtual_type): Rename register_virtual_type.
2455 * gdbarch.h, gdbarch.c: Re-generate.
2456 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2457 * vax-tdep.c (vax_gdbarch_init): Update.
2458 * v850-tdep.c (v850_gdbarch_init): Update.
2459 * sparc-tdep.c (sparc_gdbarch_init): Update.
2460 * sh-tdep.c (sh_gdbarch_init): Update.
2461 * s390-tdep.c (s390_gdbarch_init): Update.
2462 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2463 * ns32k-tdep.c: Update.
2464 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2465 * mips-tdep.c (mips_gdbarch_init): Update.
2466 * mcore-tdep.c (mcore_gdbarch_init): Update.
2467 * m68k-tdep.c (m68k_gdbarch_init): Update.
2468 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2469 * ia64-tdep.c (ia64_gdbarch_init): Update.
2470 * hppa-tdep.c (hppa_gdbarch_init): Update.
2471 * h8300-tdep.c (h8300_gdbarch_init): Update.
2472 * frv-tdep.c (frv_gdbarch_init): Update.
2473 * cris-tdep.c (cris_gdbarch_init): Update.
2474 * avr-tdep.c (avr_gdbarch_init): Update.
2475 * alpha-tdep.c (alpha_gdbarch_init): Update.
2476 * arm-tdep.c (arm_gdbarch_init): Update.
2477
2478 2003-06-13 Andrew Cagney <cagney@redhat.com>
2479
2480 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2481 mips_o32_use_struct_convention with always_use_struct_convention.
2482
2483 2003-06-12 David Carlton <carlton@kealia.com>
2484
2485 * cp-namespace.c (cp_set_block_scope): Comment out
2486 processing_has_namespace_info branch.
2487
2488 2003-06-12 Jim Blandy <jimb@redhat.com>
2489
2490 Recognize and skip 64-bit PowerPC Linux linkage functions.
2491 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2492 insn_pattern, insns_match_pattern, d_field, ds_field): New
2493 functions, macros, and types for working with PPC instructions.
2494 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2495 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2496 ppc64_skip_trampoline_code): New functions, variables, and macros
2497 for recognizing and skipping linkage functions.
2498 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2499 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2500
2501 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2502 register offsets for both the 32- and 64-bit interfaces.
2503
2504 Actually finish the job started by my change of 2003-05-29.
2505 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2506 other #definition of this.
2507 (ppc_linux_skip_trampoline_code): Remove declaration.
2508 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2509 static.
2510 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2511 method for GDBARCH.
2512
2513 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2514 'long' on ppc64-*-linux*.
2515
2516 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2517 isn't #defined, assume the register doesn't exist: act as if
2518 tdep->ppc_mq_regnum were -1.
2519
2520 * configure.host, configure.tgt: Add entries for
2521 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2522 powerpc/linux.mt.
2523 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2524 New files.
2525
2526 * arch-utils.c (always_use_struct_convention): New function.
2527 * arch-utils.h (always_use_struct_convention): New prototype.
2528 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2529 (alpha_gdbarch_init): Register always_use_struct_convention,
2530 instead of alpha_use_struct_convention.
2531 * cris-tdep.c (cris_use_struct_convention): Delete.
2532 (cris_gdbarch_init): Register always_use_struct_convention,
2533 instead of cris_use_struct_convention.
2534 * frv-tdep.c (frv_use_struct_convention): Delete.
2535 (frv_gdbarch_init): Register always_use_struct_convention,
2536 instead of frv_use_struct_convention.
2537 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2538 (h8300_gdbarch_init): Register always_use_struct_convention,
2539 instead of h8300_use_struct_convention.
2540 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
2541 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2542 instead of mips_o32_use_struct_convention.
2543
2544 2003-06-12 Andrew Cagney <cagney@redhat.com>
2545
2546 * wince.c: Include "mips-tdep.h".
2547 * mips-tdep.h (mips_next_pc): Declare.
2548 * mcore-tdep.c: Make more local functions static.
2549 * Makefile.in (wince.o): Update dependencies.
2550
2551 2003-06-12 David Carlton <carlton@kealia.com>
2552
2553 * symtab.c (lookup_symbol_aux_minsyms): Replace
2554 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2555 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2556 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2557 SYMBOL_NATURAL_NAME.
2558
2559 2003-06-12 Andreas Schwab <schwab@suse.de>
2560
2561 * Makefile.in (tuiDisassem.o): Update dependencies.
2562
2563 2003-06-12 David Carlton <carlton@bactrian.org>
2564
2565 * symtab.h: Delete declaration of make_symbol_overload_list.
2566 Add declaration of lookup_partial_symbol.
2567 * symtab.c (remove_params): Move to cp-support.c.
2568 (overload_list_add_symbol, make_symbol_overload_list)
2569 (sym_return_val_size, sym_return_val_index): Ditto.
2570 (lookup_partial_symbol): Make extern.
2571 * cp-support.h: Add declaration of make_symbol_overload_list.
2572 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2573 symtab.h, and block.h.
2574 (remove_params): Move here from symtab.c.
2575 (overload_list_add_symbol, make_symbol_overload_list)
2576 (sym_return_val_size, sym_return_val_index): Ditto.
2577 * valops.c: Include cp-support.h.
2578 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2579 frame_h, and block_h.
2580 (valops.o): Depend on cp_support_h.
2581
2582 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
2583
2584 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2585 substitute by NUM_REGS throughout.
2586 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2587 (h8300s_register_name): New function for H8S registers.
2588 (h8300sx_register_name): Ditto for H8SX registers.
2589 (h8300_print_register): Revise register printing, avoid depending
2590 on 32 bit long.
2591 (h8300_register_byte): Only care for H8/300 registers.
2592 (h8300h_register_byte): New function for any other architecture.
2593 (h8300_register_raw_size): Remove.
2594 (h8300_register_virtual_type): Revise to return actually useful
2595 type.
2596 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2597 (h8300h_extract_struct_value_address): New function for any other
2598 architecture.
2599 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2600 set_gdbarch_register_name, set_gdbarch_register_byte,
2601 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2602 Remove calls to set_gdbarch_deprecated_register_size,
2603 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2604 set_gdbarch_deprecated_max_register_raw_size,
2605 set_gdbarch_register_virtual_size and
2606 set_gdbarch_deprecated_max_register_virtual_size entirely.
2607 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2608 set_gdbarch_long_double_bit.
2609
2610 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2611
2612 * doublest.c (convert_doublest_to_floatformat): When dealing
2613 with the implied integer bit, only alter mant_bits if we are
2614 processing a full 32 bits of mantissa.
2615
2616 2003-06-11 David Carlton <carlton@bactrian.org>
2617
2618 * dictionary.h: New.
2619 * dictionary.c: New.
2620 * block.h: Add opaque declaration for struct dictionary.
2621 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2622 'sym' members.
2623 (BLOCK_DICT): New macro.
2624 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2625 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2626 BLOCK_SHOULD_SORT.
2627 (ALL_BLOCK_SYMBOLS): Update definition.
2628 * Makefile.in (SFILES): Add dictionary.c.
2629 (dictionary_h): New.
2630 (COMMON_OBS): Add dictionary.o.
2631 (dictionary.o): New.
2632 (ada-lang.o): Depend on dictionary_h.
2633 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
2634 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
2635 (mi-cmd-stack.o): Ditto.
2636 (gdbtk-cmds.o): Update dependencies.
2637 (gdbtk-stack.o): Ditto.
2638 * ada-lang.c: Include dictionary.h.
2639 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
2640 (fill_in_ada_prototype, debug_print_block): Ditto.
2641 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
2642 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
2643 'is_sorted'.
2644 * mdebugread.c: Include dictionary.h.
2645 (struct parse_stack): Delete 'maxsyms' member.
2646 (parse_symbol): Update calls to new_block. Delete calls to
2647 shrink_block. Use dictionary methods.
2648 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
2649 Update calls to new_symtab. Don't maintain maxsyms data.
2650 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
2651 (add_symbol): Just call dict_add_symbol.
2652 (new_symtab): Delete 'maxsyms' argument.
2653 (new_symtab): Update calls to new_block.
2654 (new_block): Delete 'maxsyms' argument; add 'function' argument.
2655 (shrink_block): Delete function.
2656 (fixup_sigtramp): Update call to new_block. Add symbol via
2657 dict_add_symbol.
2658 * jv-lang.c: Include dictionary.h.
2659 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
2660 appropriately. Set class_symtab->free_func. Make sure the
2661 blockvector is big enough to hold two blocks.
2662 (add_class_symtab_symbol): Use dictionary methods.
2663 (free_class_block): New function.
2664 (type_from_class): Replace explicit iteration by
2665 ALL_BLOCK_SYMBOLS.
2666 * symtab.h (struct symtab): Replace 'free_ptr' method by
2667 'free_func'.
2668 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
2669 sort_symtab_syms.
2670 * dwarfread.c (psymtab_to_symtab_1): Delete call to
2671 sort_symtab_syms.
2672 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
2673 Include dictionary.h.
2674 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
2675 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
2676 sort_symtab_syms.
2677 * objfiles.c: Include dictionary.h.
2678 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
2679 * buildsym.c: Include dictionary.h.
2680 (finish_block): Use dictionary methods.
2681 (end_symtab): Set free_func to NULL, not free_ptr.
2682 * tracepoint.c: Include dictionary.h.
2683 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
2684 (scope_info): Ditto.
2685 * stack.c: Include dictionary.h.
2686 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
2687 (print_block_frame_labels, print_frame_arg_vars)
2688 (print_frame_args): Ditto.
2689 * symmisc.c (free_symtab_block): Use dictionary methods.
2690 (dump_symtab): Ditto.
2691 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
2692 Include dictionary.h.
2693 * symfile.h: Delete declarations of sort_block_syms,
2694 sort_symtab_syms.
2695 * symfile.c (sort_block_syms): Delete.
2696 (sort_symtab_syms): Delete.
2697 * symtab.c: Include dictionary.h.
2698 (lookup_block_symbol): Use dictionary iterators.
2699 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
2700 (search_symbols, make_symbol_completion_list): Ditto.
2701 (make_symbol_overload_list): Ditto.
2702 * valops.c (value_of_local): Use dict_empty.
2703 Include dictionary.h.
2704
2705 2003-06-11 J. Brobecker <brobecker@gnat.com>
2706
2707 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
2708
2709 2003-06-11 David Carlton <carlton@bactrian.org>
2710
2711 * block.h (BLOCK_SHOULD_SORT): Delete.
2712 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
2713 blocks.
2714 * ada-lang.c (ada_add_block_symbols): Ditto.
2715 * symfile.c (sort_block_syms): Delete.
2716 (sort_symtab_syms): Ditto.
2717 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
2718 declarations.
2719 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
2720 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
2721 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
2722 * dwarfread.c (psymtab_to_symtab_1): Ditto.
2723 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
2724 * mdebugread.c (psymtab_to_symtab_1): Ditto.
2725 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2726
2727 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2728
2729 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
2730 bits to 128.
2731
2732 2003-06-11 Andrew Cagney <cagney@redhat.com>
2733
2734 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2735 REGISTER_CONVERTIBLE.
2736 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
2737 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
2738 * gdbarch.h, gdbarch.c: Re-generate.
2739 * arch-utils.h (deprecated_register_convertible_not): Rename
2740 generic_register_convertible_not.
2741 * arch-utils.c (deprecated_register_convertible_not): Rename
2742 generic_register_convertible.
2743 (legacy_convert_register_p, legacy_register_to_value): Update.
2744 * sh-tdep.c (sh64_push_arguments): Update.
2745 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
2746 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
2747 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
2748 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
2749 * arch-utils.c (legacy_value_to_register): Update.
2750 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2751 (rs6000_register_convert_to_raw): Make parameter "from" const.
2752 * mips-tdep.c (mips_gdbarch_init): Update.
2753 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
2754 * infcmd.c (default_print_registers_info): Update.
2755 * ia64-tdep.c (ia64_gdbarch_init): Update.
2756 (ia64_register_convert_to_raw): Make parameter "from" const.
2757 * i386-tdep.c (i386_gdbarch_init): Update.
2758 (i386_register_convert_to_raw): Update.
2759
2760 2003-06-11 Andrew Cagney <cagney@redhat.com>
2761
2762 * remote-fileio.c: Include "remote-fileio.h".
2763 * Makefile.in (remote-fileio.o): Update dependencies.
2764 (remote_fileio_h): Fix typo.
2765
2766 2003-06-11 Andrew Cagney <cagney@redhat.com>
2767
2768 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
2769 (xstormy16_save_dummy_frame_tos): Make static.
2770 (_initialize_xstormy16_tdep): Add declaration.
2771 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
2772 * v850-tdep.c: Make local functions static.
2773 (_initialize_v850_tdep): Add declaration.
2774 * sparc-tdep.c: Make local functions static.
2775 (_initialize_sparc_tdep): Add declaration.
2776 * sh-tdep.c: Make local functions static.
2777 (_initialize_sh_tdep): Add declaration.
2778 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
2779 * s390-tdep.c: Make local functions static.
2780 (_initialize_s390_tdep): Add declaration.
2781 * dbxread.c (find_stab_function_addr): Make static.
2782 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
2783 * ocd.c (_initialize_remote_ocd): Add declaration.
2784 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
2785 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
2786 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
2787 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
2788 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
2789 * remote-array.c (_initialize_array): Add declaration.
2790 (_initialize_remote_monitors): Add declaration.
2791 * remote-mips.c: Make local functions static.
2792 (_initialize_remote_mips): Add declaration.
2793 * mcore-tdep.c: Make all local functions static.
2794 (_initialize_mcore_tdep): Add declaration.
2795 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
2796 * abug-rom.c (_initialize_abug_rom): Add declaration.
2797 * rom68k-rom.c (_initialize_rom68k): Add declaration.
2798 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
2799 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
2800 * remote-est.c (_initialize_est): Add declaration.
2801 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
2802 (m68hc11_call_dummy_address): Make static.
2803 * ia64-tdep.c: Make local functions static.
2804 (_initialize_ia64_tdep): Add declaration.
2805 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
2806 * monitor.c (monitor_wait_filter): Make static.
2807 (_initialize_remote_monitors): Add declaration.
2808 * remote-hms.c (_initialize_remote_hms): Add declaration.
2809 * remote-e7000.c (fetch_regs_from_dump): Make static.
2810 (expect_n): Make static.
2811 (_initialize_remote_e7000): Add declaration.
2812 * ser-e7kpc.c: Always include "defs.h".
2813 (_initialize_ser_e7000pc): Add declaration.
2814 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
2815 * cris-tdep.c: Make all but one function static.
2816 (_initialize_cris_tdep): Add declaration.
2817 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
2818 * solib.c (update_solib_list): Make static.
2819 (_initialize_solib): Add declaration.
2820 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
2821 (_initialize_avr_tdep): Add declaration.
2822 * remote-rdi.c (voiddummy): Make static.
2823 (_initialize_remote_rdi): Add declaration.
2824 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
2825 * remote-rdp.c (send_rdp): Make static.
2826 (_initialize_remote_rdp): Add declaration.
2827 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
2828
2829 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
2830
2831 * remote-fileio.c: Make ari happy.
2832
2833 2003-06-10 J. Brobecker <brobecker@gnat.com>
2834
2835 * rs6000-nat.c (child_xfer_memory): Compute the right address when
2836 fetching the trailing bytes of the buffer we are about to write.
2837
2838 2003-06-10 Andrew Cagney <cagney@redhat.com>
2839
2840 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
2841 * Makefile.in (remote-fileio.o): Update dependencies.
2842 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
2843 include <setjmp.h>, or <sys/types.h> conditional on USG.
2844 (remote_fio_jmp_buf): Delete global variable.
2845
2846 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
2847 Martin M. Hunt <hunt@redhat.com>
2848
2849 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
2850 (SFILES): Add remote-fileio.c.
2851 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
2852 dependencies for building remote.o.
2853 * remote-fileio.c: New file implementing the remote File-I/O protocol.
2854 * remote-fileio.h: New header file defining remote File-I/O interface.
2855 * remote.c (remote_write_bytes, remote_read_bytes): Remove
2856 static storage class.
2857 (remote_wait, remote_async_wait): Call remote_fileio_request() on
2858 'F' packet.
2859 (_initialize_remote): Call initialize_remote_fileio().
2860 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
2861 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2862 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2863 (captured_main): Initialize new ui_files.
2864 * ui-file.c: Add read and fgets input functions.
2865 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
2866 (null_file_read): New function.
2867 (ui_file_read): New function.
2868 (set_ui_file_read): New function.
2869 (stdio_file_read): New function.
2870 * ui-file.h: New type ui_file_read_ftype.
2871 (set_ui_file_read): Declare.
2872 (ui_file_read): Declare.
2873
2874 2003-06-09 Andrew Cagney <cagney@redhat.com>
2875
2876 * frame.h (deprecated_unwind_get_saved_register): Rename
2877 generic_unwind_get_saved_register, update comments.
2878 * mips-tdep.c (mips_get_saved_register): Update.
2879 * frame.c (deprecated_unwind_get_saved_register): Update.
2880
2881 2003-06-09 Andrew Cagney <cagney@redhat.com>
2882
2883 * vax-tdep.c (vax_frame_locals_address): Delete function.
2884 (vax_gdbarch_init): Do not set frame_locals_address.
2885 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
2886 (m68hc11_gdbarch_init): Do not set frame_locals_address.
2887 * s390-tdep.c (s390_frame_args_address): Delete function.
2888 (s390_gdbarch_init): Do not set frame_args_address or
2889 frame_locals_address.
2890 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
2891 (ns32k_gdbarch_init): Do not set frame_locals_address.
2892 * hppa-tdep.c (hppa_frame_args_address): Delete function.
2893 (hppa_frame_locals_address): Delete function.
2894 (hppa_gdbarch_init): Do not set frame_args_address, or
2895 frame_locals_address.
2896 * arm-tdep.c (arm_frame_args_address): Delete.
2897 (arm_frame_locals_address): Delete.
2898 (arm_gdbarch_init): Do not set frame_args_address, or
2899 frame_locals_address.
2900
2901 2003-06-09 Andrew Cagney <cagney@redhat.com>
2902
2903 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
2904 * gdbarch.h, gdbarch.c: Re-generate.
2905 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
2906 * arch-utils.c (frame_num_args_unknown): Delete function.
2907 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
2908 (frame_info): Use FRAME_NUM_ARGS_P.
2909 * arm-tdep.c (arm_frame_num_args): Delete function.
2910 (arm_gdbarch_init): Do not set frame_num_args.
2911 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
2912 * hppa-tdep.c (hppa_frame_num_args): Delete function.
2913 (hppa_gdbarch_init): Do not set frame_num_args.
2914 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
2915 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2916 frame_num_args to default frame_num_args_unknown.
2917 * v850-tdep.c (v850_gdbarch_init): Ditto.
2918 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2919 * sh-tdep.c (sh_gdbarch_init): Ditto.
2920 * s390-tdep.c (s390_gdbarch_init): Ditto.
2921 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2922 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2923 * mips-tdep.c (mips_gdbarch_init): Ditto.
2924 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2925 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2926 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2927 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2928 * i386-tdep.c (i386_gdbarch_init): Ditto.
2929 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2930 * frv-tdep.c (frv_gdbarch_init): Ditto.
2931 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2932 * cris-tdep.c (cris_gdbarch_init): Ditto.
2933 * avr-tdep.c (avr_gdbarch_init): Ditto.
2934 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2935
2936 2003-06-09 Andrew Cagney <cagney@redhat.com>
2937
2938 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
2939 (print_frame_args): Moved to "stack.c".
2940 * stack.c: Include "gdb_assert.h".
2941 (print_frame_nameless_args): Moved from "printcmd.c", made static.
2942 (print_frame_args): Moved from "printcmd.c".
2943 * frame.h (print_frame_args): Delete declaration.
2944 * Makefile.in (stack.o): Update dependencies.
2945
2946 2003-06-08 Andrew Cagney <cagney@redhat.com>
2947
2948 * frame.c (get_prev_frame): Remove reference to
2949 frame_args_address_correct in comments.
2950 * frame-base.c (default_frame_args_address): Delete code
2951 conditional on FRAME_ARGS_ADDRESS_CORRECT.
2952 * vax-tdep.c (vax_frame_args_address_correct): Delete.
2953 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
2954 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
2955 (vax_frame_args_address_correct): Delete declaration.
2956
2957 2003-06-08 Andrew Cagney <cagney@redhat.com>
2958
2959 * gdbarch.sh (UNWIND_SP): Add.
2960 * gdbarch.h, gdbarch.c: Re-generate.
2961 * frame.c (frame_sp_unwind): New function.
2962 (get_frame_sp): New function.
2963 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
2964 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
2965 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
2966 value.
2967 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
2968 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
2969
2970 2003-06-08 Andrew Cagney <cagney@redhat.com>
2971
2972 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
2973 REMOTE_BREAKPOINT.
2974 * remote.c: Update.
2975 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
2976 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
2977 * config/m68k/tm-sun3.h: Update.
2978 * config/m68k/tm-m68klynx.h: Update.
2979 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
2980
2981 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
2982 trad_frame". Update comments.
2983 * d10v-tdep.c (struct d10v_unwind_cache): Update.
2984 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
2985 (trad_frame_register_value, trad_frame_prev_register): Update.
2986
2987 2003-06-08 Andrew Cagney <cagney@redhat.com>
2988
2989 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
2990 from GCC's acinclude.m4.
2991 * configure.in: Check for getopt's delcaration.
2992 * aclocal.m4, config.in, configure: Re-generate.
2993 * main.c (error_init): Delete declaration.
2994 * defs.h (error_init): Declare.
2995 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
2996 (rs6000_convert_from_func_ptr_addr): Make static.
2997 (_initialize_rs6000_tdep): Add declaration.
2998 * cli/cli-cmds.c (dont_repeat): Delete declaration.
2999 (show_commands, set_verbose, show_history): Delete declaration.
3000 * top.h (set_verbose): Add declaration.
3001 (show_history, set_history, show_commands): Add declaration.
3002 (do_restore_instream_cleanup): Add declaration.
3003 * objc-lang.c (specialcmp): Make static.
3004 (print_object_command): Make static.
3005 (find_objc_msgsend): Make static.
3006 (find_objc_msgcall_submethod_helper): Make static.
3007 (find_objc_msgcall_submethod): Make static.
3008 (_initialize_objc_language): Add declaration.
3009 (find_implementation_from_class): Make static.
3010 (find_implementation): Make static.
3011 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
3012 * objc-lang.h (lookup_struct_typedef): Add declaration.
3013 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3014 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
3015 (do_restore_user_call_depth): Make static.
3016 (do_restore_instream_cleanup): Delete declaration.
3017 (dont_repeat): Delete declaration.
3018 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
3019 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3020 * reggroups.c (_initialize_reggroup): Add declaration.
3021 * cp-support.c (_initialize_cp_support): Add declaration.
3022 * cp-abi.c (_initialize_cp_abi): Add declaration.
3023 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
3024 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
3025 (_initialize_gnu_v3_abi): Add declaration.
3026 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
3027 (_initialize_gnu_v2_abi): Add declaration.
3028 * frame-base.c (_initialize_frame_base): Add declaration.
3029 * doublest.c (floatformat_from_length): Make static.
3030 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3031 * frame.c (create_sentinel_frame): Make static.
3032 (_initialize_frame): Add declaration.
3033 * top.c (do_catch_errors): Make static.
3034 (gdb_rl_operate_and_get_next_completion): Make static.
3035 * typeprint.c: Include "typeprint.h".
3036 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
3037 (sentinel_frame_this_id): Make static.
3038 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3039 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
3040 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
3041 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
3042 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
3043 * maint.c (maintenance_print_architecture): Make static.
3044 * signals/signals.c (_initialize_signals): Add declaration.
3045 * std-regs.c (_initialize_frame_reg): Add declaration.
3046 * jv-exp.y (push_variable): ISO C definition.
3047 (push_qualified_expression_name): Ditto.
3048 * memattr.c (_initialize_mem): Add declaration.
3049 * remote.c (remote_check_watch_resources): Make static.
3050 (remote_stopped_by_watchpoint): Make static.
3051 (remote_stopped_data_address): Make static.
3052 * d10v-tdep.c (nr_dmap_regs): Make static.
3053 (a0_regnum): Make static.
3054 (d10v_frame_unwind_cache): Make static.
3055 (d10v_frame_p): Make static.
3056 * osabi.c (show_osabi): Make static.
3057 (_initialize_gdb_osabi): Add extern declaration.
3058 * gdbtypes.c (make_qualified_type): Make static.
3059 (safe_parse_type): Make static.
3060 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
3061 * macrotab.c (macro_bcache_free): Make static.
3062 * interps.c (interp_set_quiet): Make static.
3063 (interpreter_exec_cmd): Make static.
3064 * stack.h (select_frame_command): New file.
3065 * stack.c: Include "stack.h".
3066 (select_frame_command_wrapper): Delete function.
3067 (select_frame_command): Make global.
3068 * infcall.c: Include "infcall.h".
3069 * linespec.c: Include "linespec.h".
3070 * symfile.c (sections_overlap): Make static.
3071 * cp-support.h (cp_initialize_namespace): ISO C declaration.
3072 * charset.c (_initialize_charset): Add missing prototype.
3073 * regcache.c (init_legacy_regcache_descr): Make static.
3074 (do_regcache_xfree): Make static.
3075 (regcache_xfer_part): Make static.
3076 (_initialize_regcache): Add missing prototype.
3077 * breakpoint.c (parse_breakpoint_sals): Make static.
3078 (breakpoint_sals_to_pc): Make static.
3079 * interps.h (clear_interpreter_hooks): ISO C declaration.
3080 * Makefile.in (stack_h): Define.
3081 (stack.o, typeprint.o, mi-main.o): Update dependencies.
3082 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
3083
3084 2003-06-08 Andrew Cagney <cagney@redhat.com>
3085
3086 * Makefile.in (d10v-tdep.o): Update dependencies.
3087 (SFILES): Add trad-frame.c.
3088 (trad_frame_h): Define.
3089 (COMMON_OBS): Add trad-frame.o.
3090 (trad-frame.o): Specify dependencies.
3091 * d10v-tdep.c: Include "trad-frame.h".
3092 (saved_regs_unwinder): Delete function.
3093 (d10v_frame_prev_register): Use trad_frame_prev_register.
3094 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
3095 trad_frame", delete "regs" and "prev_sp".
3096 (prologue_find_regs): Use trad-frame.
3097 * trad-frame.h, trad-frame.c: New files.
3098
3099 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3100
3101 * dwarf2cfi.c, dwarf2cfi.h: Remove.
3102
3103 2003-06-07 Adam Fedor <fedor@gnu.org>
3104
3105 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
3106 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
3107 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
3108 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
3109 resolve_msgsend_super, resolve_msgsend_super_stret):
3110 Use it.
3111
3112 2003-06-07 Andrew Cagney <cagney@redhat.com>
3113
3114 * symfile.h: Re-indent, clean up comments.
3115
3116 2003-06-07 Andrew Cagney <cagney@redhat.com>
3117
3118 * inferior.h (deprecated_write_sp): Replace
3119 generic_target_write_sp.
3120 * regcache.c (deprecated_write_sp): Replace
3121 generic_target_write_sp.
3122 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3123 * vax-tdep.c (vax_gdbarch_init): Update.
3124 * v850-tdep.c (v850_gdbarch_init): Update.
3125 * sparc-tdep.c (sparc_gdbarch_init): Update.
3126 * sh-tdep.c (sh_gdbarch_init): Update.
3127 * s390-tdep.c (s390_gdbarch_init): Update.
3128 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3129 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3130 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3131 * mcore-tdep.c (mcore_gdbarch_init): Update.
3132 * m68k-tdep.c (m68k_gdbarch_init): Update.
3133 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3134 * ia64-tdep.c (ia64_gdbarch_init): Update.
3135 * h8300-tdep.c (h8300_gdbarch_init): Update.
3136 * frv-tdep.c (frv_gdbarch_init): Update.
3137 * cris-tdep.c (cris_gdbarch_init): Update.
3138 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3139
3140 2003-06-07 Andrew Cagney <cagney@redhat.com>
3141
3142 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
3143 Assert that PC_REGNUM is valid.
3144 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
3145
3146 2003-06-07 Andrew Cagney <cagney@redhat.com>
3147
3148 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
3149 * gdbarch.h, gdbarch.c: Regenerate.
3150 * mn10300-tdep.c: Include "gdb_assert.h".
3151 (mn10300_read_fp): New function.
3152 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
3153 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
3154 * ia64-tdep.c: Include "gdb_assert.h".
3155 (ia64_read_fp): New function.
3156 (ia64_gdbarch_init): Set deprecated_target_read_fp to
3157 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
3158 * regcache.c (generic_target_read_sp): Delete function.
3159 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
3160 * inferior.h (generic_target_read_sp): Delete declaration.
3161 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
3162 generic_target_read_sp.
3163 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3164 * sparc-tdep.c (sparc_gdbarch_init): Ditto
3165 * sh-tdep.c (sh_gdbarch_init): Ditto.
3166 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3167 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
3168
3169 2003-06-07 Andrew Cagney <cagney@redhat.com>
3170
3171 * gdbarch.sh: Comment each field of startup_gdbarch.
3172 * gdbarch.h, gdbarch.c: Re-generate.
3173
3174 2003-06-07 Andrew Cagney <cagney@redhat.com>
3175
3176 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
3177 * gdbarch.h, gdbarch.c: Re-generate.
3178 * regcache.c: Update comments on read_pc et.al.
3179 (generic_target_read_pc): Delete function.
3180 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
3181 * inferior.h (generic_target_read_pc): Delete declaration.
3182 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
3183 generic_target_read_pc.
3184 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3185 * sh-tdep.c (sh_gdbarch_init): Ditto.
3186 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3187 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3188
3189 2003-06-07 Andrew Cagney <cagney@redhat.com>
3190
3191 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
3192 "index" with "special_local_sect". Use strcmp instead of STREQ.
3193 Append period to coments.
3194
3195 2003-06-06 Mark Mitchell <mark@codesourcery.com>
3196
3197 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
3198 (elfstab_offset_sections): Likewise.
3199 * gdb-stabs.h (stab_section_info): Likewise.
3200 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
3201 * objfiles.c (objfile_relocate): Likewise.
3202 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
3203 * remote.c (get_offsets): Likewise.
3204 (remote_cisco_objfile_relocate): Likewise.
3205 * somread.c (som_symfile_offsets): Likewise.
3206 * symfile.c (alloc_section_addr_info): New function.
3207 (build_section_addr_info_from_section_tab): Use it.
3208 (free_section_addr_info): Adjust.
3209 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
3210 (syms_from_objfile): Allocate local_addr dynamically.
3211 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
3212 dynamically.
3213 (add_symbol_file_command): Allocate sect_opts dynamically.
3214 (reread_symbols): Avoid use of SECT_OFF_MAX.
3215 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
3216 (alloc_section_addr_info): Declare it.
3217 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
3218 * win32-nat.c (solib_symbols_add): Allocate section_addrs
3219 dynamically.
3220 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
3221
3222 2003-06-06 Andrew Cagney <cagney@redhat.com>
3223
3224 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
3225 (d10v_frame_unwind_cache): Do not set "return_pc".
3226
3227 2003-06-06 Michael Snyder <msnyder@redhat.com>
3228
3229 * h8300-tdep.c: Make tidy (long lines).
3230
3231 2003-06-06 Michal Ludvig <mludvig@suse.cz>
3232
3233 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
3234 to regcache_collect().
3235
3236 2003-06-05 J. Brobecker <brobecker@gnat.com>
3237
3238 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
3239 pc_in_sigtramp multiarch method.
3240 (hppa_hpux_som_init_abi): Use it.
3241 (hppa_hpux_elf_init_abi): Likewise.
3242 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
3243 macro has been multiarched.
3244 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
3245 macro here, as hppa64 isn't multiarched yet.
3246
3247 2003-06-05 Andrew Cagney <cagney@redhat.com>
3248
3249 * Makefile.in (value_h): Add $(frame_h).
3250 * value.h: Include "frame.h".
3251 (struct value): Replace "frame_addr" with "frame_id".
3252 (VALUE_FRAME_ID): Replace VALUE_FRAME.
3253 * values.c (allocate_value): Use VALUE_FRAME_ID.
3254 (value_copy): Use VALUE_FRAME_ID.
3255 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
3256 * valops.c (value_assign): Update. Use frame_find_by_id.
3257
3258 2003-06-05 Michal Ludvig <mludvig@suse.cz>
3259
3260 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
3261 in each pass.
3262
3263 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
3264
3265 * thread-db.c (check_event): For create/death event breakpoints,
3266 loop through all messages to ensure that we read the message
3267 corresponding to the breakpoint we are at.
3268
3269 2003-06-04 Michael Snyder <msnyder@redhat.com>
3270
3271 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
3272
3273 2003-06-04 Mark Kettenis <kettenis@gnu.org>
3274
3275 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
3276 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
3277 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
3278 when handling .eh_frame sections.
3279
3280 2003-06-04 J. Brobecker <brobecker@gnat.com>
3281
3282 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
3283 prepare_to_proceed procedure instead of the hppa-specific one.
3284 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
3285
3286 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
3287
3288 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
3289 * config.in: Regenerated.
3290 * configure.in: Add test for syscall function and check for
3291 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
3292 * configure: Regenerated.
3293 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
3294 <sys/syscall.h>.
3295 (kill_lwp): New function that uses tkill syscall or
3296 uses kill, depending on whether threading model is nptl or not.
3297 All callers of kill() changed to use kill_lwp().
3298 (lin_lwp_wait): Make special check when WIFEXITED occurs to
3299 see if all threads have already exited in the nptl model.
3300 (stop_and_resume_callback): New callback function used by the
3301 lin_lwp_wait thread exit handling code.
3302 (stop_wait_callback): Check for threads already having exited and
3303 delete such threads fromt the lwp list when discovered.
3304 (stop_callback): Don't assert retcode of kill call.
3305
3306 Roland McGrath <roland@redhat.com>
3307 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3308 nptl libthread_db.
3309
3310 2003-06-03 Richard Henderson <rth@redhat.com>
3311
3312 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3313 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3314 (alpha_sigtramp_frame_prev_register): Likewise.
3315 (alpha_heuristic_frame_prev_register): Likewise.
3316 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3317
3318 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
3319 alpha-specific register id names.
3320 (alpha_mdebug_frame_unwind_cache): Likewise.
3321 (alpha_mdebug_frame_prev_register): Likewise.
3322
3323 2003-06-03 Richard Henderson <rth@redhat.com>
3324
3325 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3326 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3327 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3328 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3329 unwind routines.
3330 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3331 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3332 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3333
3334 * alpha-linux-tdep.c: Remove unnecessary includes.
3335 * Makefile.in (alpha-linux-tdep.o): Update.
3336
3337 2003-06-03 Richard Henderson <rth@redhat.com>
3338
3339 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3340 (alphabsd_fill_fpreg): Likewise.
3341
3342 2003-06-03 J. Brobecker <brobecker@gnat.com>
3343
3344 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3345 references to struct frame_info fields by calls to the equivalent
3346 accessors. Necessary now that frame_info is opaque.
3347
3348 2003-06-03 J. Brobecker <brobecker@gnat.com>
3349
3350 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3351 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3352 structure, field no longer exists.
3353
3354 2003-06-03 J. Brobecker <brobecker@gnat.com>
3355
3356 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3357 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3358
3359 2003-06-03 J. Brobecker <brobecker@gnat.com>
3360
3361 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3362 references to struct frame_info fields by calls to the equivalent
3363 accessors. Necessary now that frame_info is opaque.
3364
3365 2003-06-03 J. Brobecker <brobecker@gnat.com>
3366
3367 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3368 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3369 structure, field no longer exists.
3370
3371 2003-06-03 Theodore A. Roth <troth@openavr.org>
3372
3373 * remote.c (init_remote_state): Compute sizeof_g_packet by
3374 accumulation of the size of all registers instead of blindly using
3375 DEPRECATED_REGISTER_BYTES.
3376
3377 2003-06-03 Michael Snyder <msnyder@redhat.com>
3378
3379 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3380 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3381 for h8300sx.
3382
3383 2003-06-03 J. Brobecker <brobecker@gnat.com>
3384
3385 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3386 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3387
3388 2003-06-03 Andrew Cagney <cagney@redhat.com>
3389
3390 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3391 (sparc_convert_to_raw): Delete function.
3392 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3393 register_convert_to_virtual.
3394
3395 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3396
3397 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3398 layer if not dealing with a statically-linked threaded program.
3399
3400 2003-06-03 Kris Warkentin <kewarken@qnx.com>
3401
3402 * solib.c (solib_open): Update comment to reflect actual search order.
3403
3404 2003-06-03 Andrew Cagney <cagney@redhat.com>
3405
3406 * frame.c (get_frame_memory_signed): New function.
3407 (get_frame_memory, get_frame_memory_unsigned): New function.
3408 (get_frame_arch): New function.
3409 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3410 (get_frame_memory, get_frame_unsigned_memory): Declare.
3411 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3412 get_frame_memory_unsigned and get_frame_arch.
3413 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3414
3415 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3416
3417 * MAINTAINERS (write after approval): Add myself.
3418
3419 2003-06-03 Jim Blandy <jimb@redhat.com>
3420
3421 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3422 elements of gregset_t are 64 bits each, but access registers
3423 are still 32 bits, so they're packed two per gregset_t
3424 element. Unpack/pack them properly.
3425
3426 2003-06-02 David Carlton <carlton@bactrian.org>
3427
3428 * linespec.c (find_methods): Break out code into
3429 add_matching_methods and add_constructors.
3430 (add_matching_methods): New.
3431 (add_constructors): Ditto.
3432
3433 2003-06-02 Andrew Cagney <cagney@redhat.com>
3434
3435 * sparc-tdep.c (sparc_print_registers): Delete call to
3436 REGISTER_CONVERTIBLE.
3437 (sparc_gdbarch_init): Do not set register_convertible.
3438 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3439 * frv-tdep.c (frv_gdbarch_init): Ditto.
3440 * cris-tdep.c (cris_gdbarch_init): Ditto.
3441
3442 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
3443
3444 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
3445 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3446 (syms_from_objfile): Ditto.
3447
3448 2003-06-03 Andreas Schwab <schwab@suse.de>
3449
3450 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3451 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3452
3453 2003-06-02 Richard Henderson <rth@redhat.com>
3454
3455 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3456 a member of all_reggroup.
3457
3458 2003-06-02 Richard Henderson <rth@redhat.com>
3459
3460 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3461 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3462 (alpha_lds, alpha_sts): New.
3463 (alpha_convert_register_p): Change from _register_convertible.
3464 (alpha_register_to_value): Change from _convert_to_virtual;
3465 restructure and fail for type sizes other than 4 or 8.
3466 (alpha_value_to_register): Similarly.
3467 (alpha_extract_return_value): Use alpha_sts.
3468 (alpha_store_return_value): Use alpha_lds.
3469 (alpha_gdbarch_init): Update hooks.
3470
3471 2003-06-02 Richard Henderson <rth@redhat.com>
3472
3473 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3474 regnum identifiers.
3475 (alpha_sigtramp_register_address): Likewise.
3476
3477 2003-06-02 Richard Henderson <rth@redhat.com>
3478
3479 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3480 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3481 * alpha-tdep.h: Declare them.
3482
3483 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3484 Remove zerobuf. Don't error on UNIQUE.
3485 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3486 (ALPHA_REGSET_UNIQUE): Provide default.
3487 (supply_gregset): Use alpha_supply_int_regs.
3488 (fill_gregset): Use alpha_fill_int_regs.
3489 (supply_fpregset): Use alpha_supply_fp_regs.
3490 (fill_fpregset): Use alpha_fill_fp_regs.
3491 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3492 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3493 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3494 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3495 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3496 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3497
3498 2003-06-02 Richard Henderson <rth@redhat.com>
3499
3500 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3501
3502 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3503 (alpha_store_return_value): Likewise.
3504
3505 2003-06-02 David Carlton <carlton@math.stanford.edu>
3506
3507 * block.c (contained_in): Add 'const' to arguments.
3508 (block_function): Ditto.
3509 * block.h: Update declarations for block_function and
3510 contained_in.
3511
3512 2003-06-02 David Carlton <carlton@math.stanford.edu>
3513
3514 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3515 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3516 * p-valprint.c (pascal_val_print): Ditto.
3517 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3518
3519 2003-06-02 Richard Henderson <rth@redhat.com>
3520
3521 * alpha-tdep.c (alpha_push_dummy_call): Use
3522 builtin_type_ieee_double_little instead of builtin_type_double.
3523
3524 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
3525 sign-extension of 32-bit values.
3526 (alpha_store_return_value): Similarly.
3527
3528 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3529 (alpha_extract_return_value): Likewise.
3530 (alpha_store_return_value): Likewise.
3531
3532 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3533 (alpha_store_return_value): Error on IEEE Quad floats.
3534
3535 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3536 (alpha_extract_struct_value_address): Likewise.
3537 (alpha_store_return_value): Likewise.
3538 (alpha_store_struct_return): Remove.
3539 (alpha_gdbarch_init): Update hook registration to match.
3540
3541 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3542 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3543 macros where appropriate.
3544 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3545 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
3546
3547 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3548 for SP, GP; void_func_ptr for PC; non-language-specific types
3549 for all others.
3550 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
3551
3552 2003-06-02 Richard Henderson <rth@redhat.com>
3553
3554 * top.h (lim_at_start): Declare.
3555 * main.c (captured_main): Set it.
3556 * top.c (lim_at_start): Define.
3557 (command_loop): Use it instead of &environ.
3558 * event-top.c (command_handler): Likewise.
3559
3560 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3561
3562 * mipsnbsd-tdep.c: Update copyright years.
3563 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3564
3565 2003-06-01 Richard Henderson <rth@redhat.com>
3566
3567 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3568 (alpha-linux-tdep.o): Update dependencies.
3569 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3570 * alpha-mdebug-tdep.c: Remove unneeded includes.
3571
3572 2003-06-01 Richard Henderson <rth@redhat.com>
3573
3574 * alpha-tdep.c (alpha_register_reggroup_p): New.
3575 (alpha_gdbarch_init): Register it.
3576
3577 2003-06-02 Andrew Cagney <cagney@redhat.com>
3578
3579 * dwarfread.c: Eliminate "register"
3580 (decode_die_type): Eliminate assignment within "if".
3581 (struct_type, decode_array_element_type): Ditto.
3582 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3583 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3584 (decode_modified_type, completedieinfo): Ditto.
3585 * block.c: Eliminate "register".
3586 (blockvector_for_pc_sect): Eliminate assignment within "if".
3587 * cp-support.h (struct symbol): Opaque declaration.
3588 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3589
3590 2003-06-01 Richard Henderson <rth@redhat.com>
3591
3592 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3593 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
3594
3595 2003-06-01 Adam Fedor <fedor@gnu.org>
3596
3597 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3598 * gdbarch.[ch]: Regenerate.
3599 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3600 (hppa_gdbarch_init): Set it in the gdbarch vector.
3601 * i386-tdep.c (i386_fetch_pointer_argument): New
3602 (i386_gdbarch_init): Set it into gdbarch.
3603 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3604 (rs6000_gdbarch_init): Set it in gdbarch.
3605 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3606 (sparc_gdbarch_init): Set it in gdbarch.
3607
3608 2003-06-01 Andrew Cagney <cagney@redhat.com>
3609
3610 * defs.h (extract_address): Delete declaration.
3611 * findvar.c (extract_address): Delete function.
3612 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3613 extract_address with the inline equivalent,
3614 extract_unsigned_integer.
3615 (xstormy16_extract_struct_value_address): Ditto.
3616 (xstormy16_pointer_to_address): Ditto.
3617 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3618 * v850-tdep.c (v850_push_arguments): Ditto.
3619 (v850_extract_return_value): Ditto.
3620 (v850_extract_struct_value_address): Ditto.
3621 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3622 (sparcnbsd_get_longjmp_target_64): Ditto.
3623 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3624 (get_longjmp_target): Ditto.
3625 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3626 (sh64_extract_struct_value_address): Ditto.
3627 (sh_push_arguments): Ditto.
3628 (sh64_push_arguments): Ditto.
3629 * remote-vxsparc.c (vx_read_register): Ditto.
3630 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
3631 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
3632 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
3633 * mipsv4-nat.c (get_longjmp_target): Ditto.
3634 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
3635 * mips-nat.c (get_longjmp_target): Ditto.
3636 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
3637 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
3638 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
3639 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
3640 * irix5-nat.c (get_longjmp_target): Ditto.
3641 * irix4-nat.c (get_longjmp_target): Ditto.
3642 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
3643 (ia64_push_arguments): Ditto.
3644 * hpux-thread.c (hpux_thread_store_registers): Ditto.
3645 * h8300-tdep.c (h8300_push_arguments): Ditto.
3646 (h8300_store_return_value): Ditto.
3647 (h8300_extract_struct_value_address): Ditto.
3648 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
3649 (frv_push_arguments): Ditto.
3650 * avr-tdep.c (avr_pointer_to_address): Ditto.
3651 (avr_push_arguments): Ditto.
3652 * arm-tdep.c (arm_push_dummy_call): Ditto.
3653 (arm_get_longjmp_target): Ditto.
3654 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3655 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
3656 (alpha_get_longjmp_target): Ditto.
3657
3658 * solib-irix.c (extract_mips_address): Inline extract_address,
3659 replacing it with extract_signed_integer.
3660 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3661 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
3662 (first_link_map_member, open_symbol_file_object): Ditto.
3663 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
3664 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3665 (LM_NEXT, LM_NAME): Ditto.
3666
3667 2003-06-01 Richard Henderson <rth@redhat.com>
3668
3669 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
3670 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
3671 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
3672 (alpha_cannot_store_register): Likewise.
3673 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
3674 * alpha-nat.c (supply_gregset): Likewise.
3675 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
3676
3677 2003-06-01 Andrew Cagney <cagney@redhat.com>
3678
3679 * infcall.c (call_function_by_hand): Update comment on
3680 DEPRECATED_DUMMY_WRITE_SP.
3681
3682 * mips-tdep.c (mips_gdbarch_init): Do not set
3683 deprecated_dummy_write_sp.
3684 (mips_eabi_push_dummy_call): Set the SP register.
3685 (mips_o64_push_dummy_call): Set the SP register.
3686 (mips_o32_push_dummy_call): Set the SP register.
3687 (mips_n32n64_push_dummy_call): Set the SP register.
3688
3689 2003-06-01 Richard Henderson <rth@redhat.com>
3690
3691 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
3692 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
3693 (supply_gregset): Likewise.
3694 * alpha-tdep.c (alpha_store_return_value): Likewise.
3695 (alpha_get_longjmp_target): Likewise.
3696 (alpha_register_name): Constify array.
3697 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
3698 deprecated_register_size, deprecated_register_bytes,
3699 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
3700 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
3701 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
3702
3703 2003-06-01 Richard Henderson <rth@redhat.com>
3704
3705 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
3706 from arg_reg_buffer to regcache to avoid double conversion.
3707
3708 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3709
3710 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
3711 SP_REGNUM.
3712 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
3713 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
3714
3715 2003-06-01 Richard Henderson <rth@redhat.com>
3716
3717 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
3718 (decode_frame_entry): Set it. Skip FDE augmentation.
3719
3720 2003-06-01 Richard Henderson <rth@redhat.com>
3721
3722 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
3723 not overlapping PC_REGNUM.
3724
3725 2003-06-01 Richard Henderson <rth@redhat.com>
3726
3727 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
3728 alpha_push_arguments. Don't dump argument register data to
3729 the target stack. Fix float and 128-bit long double semantics.
3730 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
3731 (alpha_fix_call_dummy): Remove.
3732 (alpha_call_dummy_words): Remove.
3733 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
3734
3735 2003-06-01 Richard Henderson <rth@redhat.com>
3736
3737 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
3738
3739 2003-06-01 Andrew Cagney <cagney@redhat.com>
3740
3741 * mips-tdep.c (is_mips16_addr): New function.
3742 (make_mips16_addr, unmake_mips16_addr): New functions.
3743 (pc_is_mips16, mips_fetch_instruction): Use.
3744 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
3745 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
3746 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
3747 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
3748 TARGET_MIPS.
3749 * config/mips/tm-mips.h: Update copyright.
3750 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
3751 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
3752 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
3753 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
3754 (TM_PRINT_INSN_MACH): Delete.
3755 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
3756
3757 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
3758 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
3759 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
3760 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
3761 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
3762 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
3763 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
3764 mips*-*-riscos* and mips*-*-sysv* onto mips.
3765 * config/mips/mips64.mt: New file.
3766 * config/mips/mips.mt: New file.
3767 * config/mips/littlemips.mt: Delete file.
3768 * config/mips/decstation.mt: Delete file.
3769 * config/mips/vr4300el.mt: Delete file.
3770 * config/mips/vr5000el.mt: Delete file.
3771 * config/mips/vr5000.mt: Delete file.
3772 * config/mips/vr4100.mt: Delete file.
3773 * config/mips/vr4xxxel.mt: Delete file.
3774 * config/mips/vr4300.mt: Delete file.
3775 * config/mips/vr4xxx.mt: Delete file.
3776 * config/mips/bigmips.mt: Delete file.
3777 * config/mips/bigmips64.mt: Delete file.
3778 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
3779 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
3780 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
3781 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
3782 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
3783 "tm-bigmips.h".
3784 * config/mips/tm-irix3.h: Ditto.
3785 * config/mips/tm-mipsv4.h: Ditto.
3786 * config/mips/tm-embed.h: Ditto.
3787 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
3788 "tm-bigmips64.h".
3789 * config/mips/tm-vr5000el.h: Delete file.
3790 * config/mips/tm-tx39l.h: Delete file.
3791 * config/mips/tm-vr4300el.h: Delete file.
3792 * config/mips/tm-vr4xxxel.h: Delete file.
3793 * config/mips/tm-vr4300.h: Delete file.
3794 * config/mips/tm-vr4100.h: Delete file.
3795 * config/mips/tm-vr4xxx.h: Delete file.
3796 * config/mips/tm-vr5000.h: Delete file.
3797 * config/mips/tm-embedl64.h: Delete file.
3798 * config/mips/tm-embedl.h: Delete file.
3799 * config/mips/tm-embed64.h: Delete file.
3800 * config/mips/tm-bigmips64.h: Delete file.
3801 * config/mips/tm-bigmips.h: Delete file.
3802
3803 2003-06-01 Mark Kettenis <kettenis@gnu.org>
3804
3805 Fix gdb/1216.
3806 * shnbsd-nat.c: Include "sh-tdep.h".
3807
3808 From Richard Henderson <rth@redhat.com>:
3809 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
3810
3811 2003-05-31 Andrew Cagney <cagney@redhat.com>
3812
3813 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
3814 forward declaration.
3815 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3816 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3817 (mips_find_saved_regs): Use set_reg_offset.
3818 (mips_frame_init_saved_regs): Delete function.
3819 (mips_pop_frame): Call mips_find_saved_regs instead of
3820 DEPRECATED_FRAME_INIT_SAVED_REGS.
3821
3822 2003-05-31 Andrew Cagney <cagney@redhat.com>
3823
3824 * mips-tdep.c (mips_gdbarch_init): Do not set
3825 deprecated_max_register_raw_size, register_virtual_size, and
3826 deprecated_max_register_virtual_size.
3827
3828 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3829
3830 * i386-tdep.c: Include "dwarf2-frame.h".
3831 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
3832 * Makefile.in (i386-tdep.o): Update dependencies.
3833
3834 * dwarf2-frame.c, dwarf2-frame.h: New files.
3835 * Makefile.in (SFILES): Add dwarf2-frame.c.
3836 (dwarf2_frame_h): Define.
3837 (COMMON_OBS): Add dwarf2-frame.o.
3838 (dwarf2-frame.o): Add dependencies.
3839
3840 2003-05-31 Andreas Jaeger <aj@suse.de>
3841
3842 * x86-64-linux-nat.c: Fix comment.
3843
3844 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3845
3846 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
3847 function signature.
3848
3849 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
3850 have a sigcontext_addr handler.
3851 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
3852 sigcontext_addr handler.
3853
3854 2003-05-31 Andrew Cagney <cagney@redhat.com>
3855
3856 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
3857 (print_fp_register_row): Replace do_fp_register_row.
3858 (mips_print_fp_register): Add "file" and "frame" parameters.
3859 (mips_print_register): Add "file" and "frame" parameters.
3860 (mips_print_registers_info): Replace mips_do_registers_info.
3861 (mips_gdbarch_init): Set print_registers_info instead of
3862 deprecated_do_registers_info.
3863 (mips_read_fp_register_single): Add "frame" parameter.
3864 (mips_read_fp_register_double): Add "frame" parameter.
3865
3866 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3867
3868 * i386-tdep.c (i386_register_name): Check for MMX registers first.
3869 Fixes a bug where GDB would print the wrong register names for
3870 targets without SSE.
3871
3872 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
3873 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3874 registers.
3875
3876 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
3877 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
3878 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3879 TDEP->sc_sp_offset.
3880
3881 From Michal Ludvig <mludvig@suse.cz>:
3882 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
3883 and `sc_num_regs'.
3884 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3885 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3886 I386_ST0_REGNUM): Move here from...
3887 * i386-tdep.c: ... here.
3888 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
3889 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3890 registers if possible.
3891 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
3892 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
3893 Remove variables.
3894 (i386bsd_sc_reg_offset): New variable.
3895 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
3896 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3897 TDEP->sc_sp_offset.
3898 (i386fbsd_sc_reg_offset): New variable.
3899 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
3900 TDEP->sc_num_regs.
3901 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
3902 variables.
3903 (i386fbsd4_sc_reg_offset): New variable.
3904 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
3905 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3906 TDEP->sc_sp_offset.
3907 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
3908 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
3909 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
3910 Remove variables.
3911 (i386nbsd_sc_reg_offset): New variable.
3912 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
3913 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3914 TDEP->sc_sp_offset.
3915 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
3916 Remove variables.
3917 (i386obsd_sc_reg_offset): New variable.
3918 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
3919 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3920 TDEP->sc_sp_offset.
3921 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
3922 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
3923 for frame pointer offset in `struct sigcontext'.
3924
3925 2003-05-31 Andrew Cagney <cagney@redhat.com>
3926
3927 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
3928 architecture methods call_dummy_words, sizeof_call_dummy_words,
3929 push_return_address, store_struct_return, and fix_call_dummy. Set
3930 push_dummy_call instead of deprecated_push_arguments.
3931 (mips_store_struct_return): Delete function.
3932 (mips_fix_call_dummy): Delete function.
3933 (mips_push_return_address): Delete function.
3934 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
3935 RA_REGNUM and T9_REGNUM.
3936 (mips_n32n64_push_dummy_call): Ditto for
3937 mips_n32n64_push_arguments.
3938 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
3939 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
3940
3941 2003-05-31 Andrew Cagney <cagney@redhat.com>
3942
3943 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
3944 "dummy_addr" to "bp_addr".
3945 * infcall.c (call_function_by_hand): Pass "funaddr" to
3946 gdbarch_push_dummy_call.
3947 * gdbarch.h, gdbarch.c: Re-generate.
3948 * i386-tdep.c (i386_push_dummy_call): Update.
3949 * arm-tdep.c (arm_push_dummy_call): Update.
3950 * d10v-tdep.c (d10v_push_dummy_call): Update.
3951
3952 2003-05-31 Mark Kettenis <kettenis@gnu.org>
3953
3954 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
3955 variable declarations.
3956 (x86_64_register_number, x86_64_register_name): Remove prototypes.
3957 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
3958 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
3959 x86_64_init_frame_pc, x86_64_init_frame_pc,
3960 x86_64_function_has_prologue): Remove prototypes.
3961 (X86_64_NUM_GREGS): New define.
3962 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
3963 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
3964 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
3965 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
3966 XMM1_REGNUM): Remove defines.
3967 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
3968 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
3969 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
3970 X86_64_XMM1_REGNUM): New defines.
3971 (struct x86_64_register_info): Renamed from `struct
3972 register_info'. Remove `size' member.
3973 (x86_64_register_info_table): Remove variable.
3974 (x86_64_register_info): New variable.
3975 (X86_64_NUM_REGS): New define.
3976 (X86_64_NUM_GREGS): Remove define.
3977 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
3978 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
3979 Remove variables.
3980 (x86_54_dwarf2_reg_to_regnum): Remove function.
3981 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
3982 (x86_64_dwarf_reg_to_regnum): New function.
3983 (x86_64_register_name): Rewrite.
3984 (x86_64_register_raw_size): Remove function.
3985 (x86_64_register_byte_table): Remove variable.
3986 (x86_64_register_byte): Remove function.
3987 (x86_64_register_virtual_type): Remove function.
3988 (x86_64_register_type): New function.
3989 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
3990 x86_64_register_convert_to_raw): Remove functions.
3991 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
3992 (x86_64_use_struct_convention): Make static. Adjust for renamed
3993 defines.
3994 (x86_64_frame_init_saved_regs): Remove function.
3995 (x86_64_push_arguments): Make static. Change to accept a regcache
3996 as argument.
3997 (x86_64_store_return_value, x86_64_extract_return_value): Make
3998 static. Rewrite based on i386 counterparts.
3999 (x86_64_push_dummy_call): New function.
4000 (X86_64_NUM_SAVED_REGS): New define.
4001 (x86_64_register_number): Remove function.
4002 (x86_64_store_struct_return): Remove function.
4003 (x86_64_frameless_function_invocation,
4004 x86_64_function_has_prologue): Remove functions.
4005 (PROLOG_BUFSIZE): Remove define.
4006 (struct x86_64_frame_cache): New structure.
4007 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
4008 x86_64_frame_cache, x86_64_frame_this_id,
4009 x86_64_frame_prev_register, x86_64_frame_p,
4010 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
4011 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
4012 functions.
4013 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
4014 variables.
4015 (x86_64_skip_prologue): Rewrite in terms of
4016 x86_64_analyze_prologue.
4017 (x86_64_frame_base_address): New function.
4018 (x86_64_frame_base): New variable.
4019 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
4020 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
4021 set deprecated_fp_regnum, deprecated_register_size,
4022 deprecated_register_bytes, register_raw_size, register_byte,
4023 register_virtual_type, register_convertiable,
4024 register_convert_to_virtual, convert_to_raw,
4025 deprecated_get_saved_register, deprecated_target_read_fp,
4026 deprecated_push_arguments, deprecated_push_return_address,
4027 deprecated_pop_frame, deprecated_store_struct_return,
4028 deprecated_frame_init_saved_regs, deprecated_frame_chain,
4029 frameless_function_invocation, deprecated_frame_saved_pc,
4030 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
4031 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
4032 deprecated_init_frame_pc and virtual_frame_pointer. Call
4033 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
4034 and x86_64_frame_p. Call frame_base_set_default to register
4035 x86_64_frame_base.
4036 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
4037 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
4038 (_initialize_x86_64_tdep): Remove function.
4039 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
4040 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
4041 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
4042 define.
4043 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
4044 (x86_64_linux_sigcontext_addr): Rewrite.
4045 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
4046 x86_64_linux_frame_saved_pc): Remove functions.
4047 (x86_64_linux_pc_in_sigtramp): Renamed from
4048 x86_64_linux_in_sigtramp. Try harder to recognize a signal
4049 trampoline.
4050 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
4051 Remove_functions.
4052 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
4053 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4054 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
4055 (x86_64_regmap): Rename to regmap.
4056 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
4057 x86_64_num_gregs.
4058 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
4059 x86_64_regmap.
4060 (x86_64_fxsave_offset): Remove function.
4061 (supply_fpregset): Simply call x86_64_supply_fxsave.
4062 (fill_fpregset): Simply call x86_64_fill_fxsave.
4063 (fetch_inferior_registers, store_inferior_registers): Avoid
4064 asignment in if-statement.
4065 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
4066 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
4067 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
4068 (fetch_core_registers): Remove function.
4069 (linux_elf_core_fns): Remove.
4070 (offsetoff): Don't define.
4071 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
4072 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
4073 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
4074 add core-regset.o.
4075 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
4076 protection against multiple includes instead of NM_X86_64_h. Add
4077 various comments. Include "config/nm-linux.h". Don't include
4078 <signal.h>.
4079 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
4080 GET_THREAD_SIGNALS): Remove defines.
4081 (x86_64_register_u_addr, kernel_u_size,
4082 lin_thread_get_thread_signals): Remove prototypes.
4083 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
4084 [HAVE_LINK_H]: Don't include "solib.h".
4085 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
4086 * config/i386/tm-x86-64linux.h: Fix comments.
4087 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
4088 x86-64-tdep.o): Update dependencies.
4089
4090 2003-05-30 Andrew Cagney <cagney@redhat.com>
4091
4092 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
4093 Change parameter type to a "struct regcache *".
4094
4095 * gdbarch.sh: Regardless of the multi-arch level, always define
4096 the macro when not already defined.
4097 * gdbarch.h, gdbarch.c: Re-generate.
4098
4099 2003-05-30 Richard Henderson <rth@redhat.com>
4100
4101 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
4102 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
4103 (alpha_mdebug_frame_this_id): Likewise.
4104 (alpha_mdebug_frame_prev_register): Likewise.
4105 (alpha_mdebug_frame_base_address): Likewise.
4106 (alpha_mdebug_frame_locals_address): Likewise.
4107 (alpha_mdebug_frame_args_address): Likewise.
4108 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
4109 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
4110 (alpha_heuristic_frame_unwind_cache): Make static; add missing
4111 loop increment.
4112 (alpha_heuristic_frame_this_id): Make static.
4113 (alpha_heuristic_frame_prev_register): Likewise.
4114 (alpha_heuristic_frame_base_address): Likewise.
4115 * alpha-tdep.h: Update.
4116
4117 2003-05-30 Mark Kettenis <kettenis@gnu.org>
4118
4119 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
4120 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
4121 defenitions.
4122 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
4123 * i386-tdep.c: Mark functions that are 64-bit safe as such.
4124 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4125 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4126 I386_ST0_REGNUM): New defines.
4127 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
4128 codestream_get): Remove define.
4129 (codestream_next_addr, condestream_addr, condestream_buf,
4130 codestream_off, codestream_cnt): Remove variables.
4131 (codestream_fill, codestream_seek, codestream_read): Remove
4132 functions.
4133 (i386_follow_jump): Rewrite to avoid usage of removed codestream
4134 functionality.
4135 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
4136 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
4137 i386_frame_saved_pc, i386_saved_pc_after_call,
4138 i386_frame_num_args, i386_frame_init_saved_regs,
4139 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
4140 i386_push_arguments): Remove functions.
4141 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
4142 functionality. Use i386_analyze_prologue instead of
4143 i386_get_frame_setup.
4144 (I386_NUM_SAVED_REGS): New define.
4145 (struct i386_frame_cache): New structure.
4146 (i386_alloc_frame_cache, i386_analyze_struct_return,
4147 i386_skip_probe, i386_analyze_frame_setup,
4148 i386_analyze_register_saves, i386_analyze_prologue,
4149 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
4150 i386_frame_prev_register, i386_sigtramp_frame_cache,
4151 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
4152 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
4153 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
4154 New functions.
4155 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
4156 New variables.
4157 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
4158 I386_EAX_REGNUM and I386_EDX_REGNUM.
4159 (i386_extract_return_value, i386_store_return_value): Use
4160 I386_ST0_REGNUM where appropriate.
4161 (i386_extract_struct_value_address): Rewrite to use extract_address.
4162 (i386_svr4_pc_in_sigtramp): Add comment.
4163 (i386_svr4_sigcontext_addr): Rewrite.
4164 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
4165 TDEP->sc_sp_offset.
4166 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
4167 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
4168 of new defines. Set push_dummy_call, don't set
4169 deprecated_push_arguments, deprecated_push_return_address,
4170 deprecated_pop_frame. Don't set parm_boundary. Don't set
4171 deprecated_frame_chain, deprecated_frame_saved_pc,
4172 deprecated_saved_pc_after_call. Set unwind_dummy_id,
4173 save_dummy_frame_tos, unwind_pc. Call
4174 frame_unwind_append_predicate and frame_base_set_default. Don't
4175 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
4176 Don't set frameless_function_invocation. Don't set
4177 deprecated_register_bytes, deprecated_register_size,
4178 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
4179 * i386-linux-tdep.c: Fix formatting in some comments.
4180 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
4181 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
4182 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
4183 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
4184 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
4185 redundant parentheses.
4186 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
4187 (i386_linux_sigcontext_addr): Use it. Rewrite.
4188 (find_minsym_and_objfile): Change name of second argument.
4189 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
4190 changed. Use frame_pc_unwind instead of
4191 DEPRECATED_SAVED_PC_AFTER_CALL.
4192 (i386_linux_init_abi): Don't set deprecated_register_bytes.
4193 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
4194 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
4195 unwinder.
4196 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
4197 "dummy-frame.h".
4198 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
4199 (_initialize_i386_cygwin_tdep): New prototype.
4200 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
4201 deprecated_frame_chain_valid.
4202 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
4203 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
4204 Rely on the SVR4 defaults.
4205 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
4206 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
4207
4208 2003-05-30 Andrew Cagney <cagney@redhat.com>
4209
4210 * infcall.c (call_function_by_hand): Always call
4211 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
4212
4213 2003-05-30 Richard Henderson <rth@redhat.com>
4214
4215 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
4216 increment.
4217
4218 2003-05-29 Jim Blandy <jimb@redhat.com>
4219
4220 Use gdbarch methods for solib stuff on PowerPC Linux.
4221 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
4222 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
4223 show through.
4224 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
4225 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
4226 giving the same effect as the #definitions above.
4227
4228 2003-05-29 Adam Fedor <fedor@gnu.org>
4229
4230 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
4231 (find_implementation_from_class): Replace it with the standard
4232 case i.e. do nothing.
4233
4234 2003-05-29 Richard Henderson <rth@redhat.com>
4235
4236 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
4237 (alpha_linux_sigtramp_offset): Use it. Make static.
4238 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
4239 update for new frame model.
4240 * alpha-mdebug-tdep.c: New file.
4241 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
4242 (alpha_osf1_init_abi): Install it.
4243 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
4244 (linked_proc_desc_table): Remove.
4245 (alpha_frame_past_sigtramp_frame): Remove.
4246 (alpha_dynamic_sigtramp_offset): Remove.
4247 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
4248 (alpha_proc_desc_is_dyn_sigtramp): Remove.
4249 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
4250 (push_sigtramp_desc): Remove.
4251 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
4252 (alpha_cannot_store_register): Likewise.
4253 (alpha_sigcontext_addr): Remove.
4254 (alpha_find_saved_regs): Remove.
4255 (alpha_frame_init_saved_regs): Remove.
4256 (alpha_init_frame_pc_first): Remove.
4257 (read_next_frame_reg): Remove.
4258 (alpha_frame_saved_pc): Remove.
4259 (alpha_saved_pc_after_call): Remove.
4260 (temp_proc_desc, temp_saved_regs): Remove.
4261 (alpha_about_to_return): Remove.
4262 (cached_proc_desc): Remove.
4263 (alpha_frame_chain): Remove.
4264 (alpha_print_extra_frame_info): Remove.
4265 (alpha_init_extra_frame_info): Remove.
4266 (alpha_frame_locals_address): Remove.
4267 (alpha_frame_args_address): Remove.
4268 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
4269 (alpha_push_dummy_frame): Remove.
4270 (alpha_pop_frame): Remove.
4271 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
4272 (alpha_read_insn): New.
4273 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
4274 for different insn encodings.
4275 (alpha_in_lenient_prologue): Remove.
4276 (struct alpha_sigtramp_unwind_cache): New.
4277 (alpha_sigtramp_frame_unwind_cache): New.
4278 (alpha_sigtramp_register_address): New.
4279 (alpha_sigtramp_frame_this_id): New.
4280 (alpha_sigtramp_frame_prev_register): New.
4281 (alpha_sigtramp_frame_unwind): New.
4282 (alpha_sigtramp_frame_p): New.
4283 (struct alpha_heuristic_unwind_cache): New.
4284 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
4285 don't count nop insns that occur between functions.
4286 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
4287 heuristic_proc_desc, but without the mdebug wrapping.
4288 (alpha_heuristic_frame_this_id): New.
4289 (alpha_heuristic_frame_prev_register): New.
4290 (alpha_heuristic_frame_unwind): New.
4291 (alpha_heuristic_frame_p): New.
4292 (alpha_heuristic_frame_base_address): New.
4293 (alpha_heuristic_frame_base): New.
4294 (alpha_unwind_dummy_id): New.
4295 (alpha_unwind_pc): New.
4296 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
4297 frame related deprecated initializations; install replacements.
4298 (alpha_dump_tdep): Remove.
4299 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
4300 (alpha_read_insn, alpha_after_prologue,
4301 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
4302 alpha_heuristic_frame_prev_register,
4303 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
4304 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4305 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
4306 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
4307
4308 2003-05-29 Andrew Cagney <cagney@redhat.com>
4309
4310 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4311 dependant on the availability of ASSERT_FUNCTION.
4312 (ASSERT_FUNCTION): Do not define when there is no function name.
4313
4314 2003-05-29 Kevin Buettner <kevinb@redhat.com>
4315
4316 From Jimi X <jimix@watson.ibm.com>:
4317 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4318
4319 2003-05-28 Jim Blandy <jimb@redhat.com>
4320
4321 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4322 argument to ptrace to int; the system headers should give it the
4323 right type, and pointers don't fit in ints on powerpc64-*-*.
4324
4325 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4326
4327 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4328 DW_TAG_catch_block.
4329
4330 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4331
4332 * stabsread.c (dbx_lookup_type): Make static.
4333 (read_type): Ditto.
4334 (add_undefined_type): Ditto.
4335 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4336 not export.
4337
4338 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
4339
4340 * hpread.c (hpread_has_name): Make static.
4341 (hpread_psymtab_to_symtab): Ditto.
4342 (file_exists): Ditto.
4343 (hpread_call_pxdb): Ditto.
4344 (hpread_pxdb_needed): Ditto.
4345 (hpread_quick_traverse): Ditto.
4346 (hpread_get_header): Ditto.
4347 (hpread_get_lntt): Ditto.
4348 (hpread_get_slt): Ditto.
4349 (class_of): Ditto.
4350
4351 2003-05-25 Andreas Schwab <schwab@suse.de>
4352
4353 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4354 stack_align and deprecated_extra_stack_alignment_needed.
4355 (m68k_stack_align): Delete.
4356
4357 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4358 (m68k_register_virtual_size): Likewise.
4359 (altos_skip_prologue): Remove obsolete function.
4360 (isi_frame_num_args): Likewise.
4361 (news_frame_num_args): Likewise.
4362 (m68k_fix_call_dummy): Make static.
4363 (m68k_push_dummy_frame): Likewise.
4364 (m68k_pop_frame): Likewise.
4365 (m68k_skip_prologue): Likewise.
4366 (m68k_frame_init_saved_regs): Likewise.
4367 (m68k_saved_pc_after_call): Likewise.
4368 (m68k_get_longjmp_target): Make multi-arch.
4369 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4370 structure. Register m68k_get_longjmp_target if enabled.
4371 * m68k-tdep.h (struct gdbarch_tdep): Define.
4372 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4373
4374 * Makefile.in (config.status): Also depend on configure.tgt
4375 and configure.host.
4376 (m68klinux-tdep.o): Update dependencies.
4377 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4378 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4379 (M68K_LINUX_JB_PC): Define.
4380 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4381 and take additional parameter.
4382 (m68k_linux_sigtramp_saved_pc): Update.
4383 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4384 m68k_linux_pc_in_sigtramp, in_plt_section,
4385 find_solib_trampoline_target.
4386 * config/m68k/tm-linux.h: Don't include any tm headers.
4387 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4388 (JB_ELEMENT_SIZE): Likewise.
4389 (JB_PC): Likewise.
4390 (GET_LONGJMP_TARGET): Likewise.
4391 (IN_SIGTRAMP): Likewise.
4392 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4393
4394 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4395
4396 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4397 (sparc32_push_arguments): Re-implement by calling
4398 sparc32_do_push_arguments.
4399
4400 2003-05-25 Mark Kettenis <kettenis@gnu.org>
4401
4402 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4403 SPARC_O1_REGNUM): New defines.
4404 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4405 (sparc32_store_return_value): New function.
4406 (sparc_extract_struct_value_address): Rewrite to operate on a
4407 regcache.
4408 (sparc_gdbarch_init): Don't set
4409 deprecated_extract_struct_value_address. Set
4410 extract_struct_value_address instead. Don't set
4411 deprecated_extract_return_value and deprecated_store_return_value
4412 for 32-bit targets. Set extract_return_value and
4413 store_return_value instead.
4414 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4415 DEPRECTAED_EXTRACT_RETURN_VALUE,
4416 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4417 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4418 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4419 (sparc_store_return_value): Remove prototype.
4420 (sparc32_store_return_value): New prototype.
4421 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4422 Adjust prototypes.
4423
4424 2003-05-24 Mark Kettenis <kettenis@gnu.org>
4425
4426 * sparcnbsd-tdep.c: Include "gdb_string.h".
4427
4428 2003-05-23 Andrew Cagney <cagney@redhat.com>
4429
4430 * p-valprint.c (pascal_val_print): Replace extract_address with
4431 the inline equivalent extract_unsigned_integer.
4432 * jv-valprint.c (java_value_print): Ditto.
4433 * ada-valprint.c (ada_val_print_1): Ditto.
4434 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4435
4436 2003-05-23 Theodore A. Roth <troth@openavr.org>
4437
4438 * blockframe.c (frameless_look_for_prologue): Remove unused
4439 after_prologue variable.
4440
4441 2003-05-23 Mark Kettenis <kettenis@gnu.org>
4442
4443 * blockframe.c (get_pc_function_start): Rewrite to avoid
4444 asignments in if-statements.
4445
4446 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4447
4448 Committed by Elena Zannoni <ezannoni@redhat.com>.
4449 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
4450 files, don't relocate absolute symbols (and do use mst_abs).
4451
4452 2003-05-23 Andrew Cagney <cagney@redhat.com>
4453
4454 * objc-lang.c: Include "gdb_assert.h".
4455 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4456 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4457 (gdb_check, gdb_check_fatal): Delete functions.
4458 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4459 gdb_assert.
4460 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4461 * Makefile.in (objc-lang.o): Update dependencies.
4462
4463 2003-05-22 Ian Lance Taylor <ian@airs.com>
4464
4465 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4466 with fprintf_filtered, not fprintf_unfiltered.
4467
4468 2003-05-22 Andrew Cagney <cagney@redhat.com>
4469
4470 * stack.c (frame_info): Inline extract_address, replacing it with
4471 extract_unsigned_integer.
4472 * findvar.c (unsigned_pointer_to_address): Ditto.
4473 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4474 * dwarf2expr.c (dwarf2_read_address): Ditto.
4475 * frame.c (frame_pc_unwind): Update comment.
4476 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4477
4478 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4479
4480 * infptrace.c (detach): Call print_sys_errmsg rather than
4481 perror_with_name to issue warning message when errno is non-zero
4482 after calling ptrace detach.
4483
4484 2003-05-21 J. Brobecker <brobecker@gnat.com>
4485
4486 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4487 macro definitions from here...
4488 * hppa-tdep.c: ...to there.
4489
4490 2003-05-20 Kevin Buettner <kevinb@redhat.com>
4491
4492 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4493 register_ptrace_addr(). Fix all callers.
4494
4495 2003-05-21 Andreas Schwab <schwab@suse.de>
4496
4497 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4498 dependencies.
4499 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4500 end.
4501 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4502 (_initialize_m68k_linux_tdep): New function.
4503 (m68k_linux_frame_saved_pc): Make static.
4504 (m68k_linux_extract_return_value): Likewise.
4505 (m68k_linux_store_return_value): Likewise.
4506 (m68k_linux_extract_struct_value_address): Likewise.
4507 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4508 Remove.
4509 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4510 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4511 (DEPRECATED_FRAME_SAVED_PC): Remove.
4512
4513 2003-05-20 Kris Warkentin <kewarken@qnx.com>
4514
4515 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4516 regset numbering rather than our own.
4517
4518 2003-05-19 David Carlton <carlton@bactrian.org>
4519
4520 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4521
4522 2003-05-19 David Carlton <carlton@bactrian.org>
4523
4524 Partial fix for PR c++/827.
4525 * cp-support.h: Include symtab.h.
4526 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4527 * cp-namespace.c: Update contributors.
4528 (cp_lookup_symbol_nonlocal): New.
4529 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4530 (lookup_symbol_file): Ditto.
4531 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4532 * block.h: Declare block_scope, block_using, block_global_block.
4533 * block.c (block_scope): New.
4534 (block_using, block_global_block): Ditto.
4535 * Makefile.in (cp_support_h): Depend on symtab_h.
4536 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4537
4538 2003-05-19 David Carlton <carlton@bactrian.org>
4539
4540 * language.h (struct language_defn): Add 'la_value_of_this'
4541 and 'la_lookup_symbol_nonlocal' members.
4542 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4543 lookup_symbol_static, lookup_symbol_global,
4544 lookup_symbol_aux_block.
4545 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4546 if we should search fields of this and how to do static/global
4547 lookup.
4548 (lookup_symbol_aux_block): Make extern.
4549 (basic_lookup_symbol_nonlocal): New.
4550 (lookup_symbol_static, lookup_symbol_global): Ditto.
4551 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4552 'la_lookup_symbol_nonlocal' members.
4553 * c-lang.c (c_language_defn, cplus_language_defn)
4554 (asm_language_defn, minimal_language_defn): Ditto.
4555 * jv-lang.c (java_language_defn): Ditto.
4556 * language.c (unknown_language_defn, auto_language_defn)
4557 (local_language_defn): Ditto.
4558 * m2-lang.c (m2_language_defn): Ditto.
4559 * objc-lang.c (objc_language_defn): Ditto.
4560 * scm-lang.c (scm_language_defn): Ditto.
4561 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4562 * p-lang.c (pascal_language_defn): Ditto for both.
4563 * Makefile.in (f-lang.o): Depend on value_h.
4564 (p-lang.o): Ditto.
4565
4566 2003-05-19 David Carlton <carlton@bactrian.org>
4567
4568 * block.h: Declare block_static_block.
4569 * block.c (block_static_block): New.
4570 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4571 lookup_symbol_aux_local, calling block_static_block instead.
4572 (lookup_symbol_aux_local): Delete 'static_block' argument.
4573
4574 2003-05-19 David Carlton <carlton@bactrian.org>
4575
4576 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4577
4578 2003-05-19 Michal Ludvig <mludvig@suse.cz>
4579
4580 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4581 register numbers mapping.
4582
4583 2003-05-18 Adam Fedor <fedor@gnu.org>
4584
4585 * symtab.c (completion_list_objc_symbol): New function.
4586 (make_symbol_completion_list): Use it to add ObjC symbols
4587 when looking though the list.
4588 (language_search_unquoted_string): New function.
4589 (make_file_symbol_completion_list): Use it.
4590
4591 2003-05-18 Andreas Schwab <schwab@suse.de>
4592
4593 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4594 dependencies.
4595 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4596 as m68k_linux_extract_return_value.
4597 (DEPRECATED_STORE_RETURN_VALUE): Define as
4598 m68k_linux_store_return_value.
4599 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4600 m68k_linux_extract_struct_value_address.
4601 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4602 get_next_frame, get_frame_base, get_frame_pc.
4603 (m68k_linux_frame_saved_pc): Use get_frame_base.
4604 (m68k_linux_extract_return_value): New function.
4605 (m68k_linux_store_return_value): New function.
4606 (m68k_linux_extract_struct_value_address): New function.
4607 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4608
4609 * c-exp.y (typebase): Remove duplicate occurence of
4610 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
4611 of lookup_signed_typename.
4612
4613 2003-05-18 Mark Kettenis <kettenis@gnu.org>
4614
4615 * dwarf2loc.c (find_location_expression): Change type of second
4616 argument to `size_t *'.
4617 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4618 for size variable.
4619
4620 2003-05-18 David Carlton <carlton@bactrian.org>
4621
4622 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4623 'linkage_name'. Add comment.
4624 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4625 'linkage_name'.
4626 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4627 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
4628 (lookup_block_symbol): Ditto.
4629
4630 2003-05-16 Andrew Cagney <cagney@redhat.com>
4631
4632 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
4633 * gdbarch.h, gdbarch.c: Re-generate.
4634 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
4635 * TODO (REGISTER_BYTES): Delete reference.
4636 * alpha-tdep.c (alpha_gdbarch_init): Update.
4637 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4638 * x86-64-tdep.c (x86_64_init_abi): Update.
4639 * vax-tdep.c (vax_gdbarch_init): Update.
4640 * v850-tdep.c (v850_gdbarch_init): Update.
4641 * sparc-tdep.c (sparc_gdbarch_init): Update.
4642 * sh-tdep.c (sh_gdbarch_init): Update.
4643 * s390-tdep.c (s390_gdbarch_init): Update.
4644 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4645 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4646 (ns32k_gdbarch_init_32382): Update.
4647 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4648 * mcore-tdep.c (mcore_gdbarch_init): Update.
4649 * m68k-tdep.c (m68k_gdbarch_init): Update.
4650 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4651 * ia64-tdep.c (ia64_gdbarch_init): Update.
4652 * i386-tdep.c (i386_gdbarch_init): Update.
4653 * i386-linux-tdep.c (i386_linux_init_abi): Update.
4654 * hppa-tdep.c (hppa_gdbarch_init): Update.
4655 * h8300-tdep.c (h8300_gdbarch_init): Update.
4656 * frv-tdep.c (frv_gdbarch_init): Update.
4657 * cris-tdep.c (cris_gdbarch_init): Update.
4658 * avr-tdep.c (avr_gdbarch_init): Update.
4659 * arm-tdep.c (arm_gdbarch_init): Update.
4660 * sparc-tdep.c (sparc_pop_frame): Update.
4661 * rs6000-tdep.c (rs6000_pop_frame): Update.
4662 * remote.c (init_remote_state): Update.
4663 (remote_prepare_to_store): Update.
4664 * remote-vx.c (vx_prepare_to_store): Update.
4665 * remote-sds.c (sds_fetch_registers): Update.
4666 (sds_prepare_to_store): Update.
4667 * remote-array.c: Update.
4668 * regcache.c (init_legacy_regcache_descr): Update.
4669 (init_regcache_descr): Update.
4670 * mips-tdep.c (mips_eabi_extract_return_value): Update.
4671 (mips_o64_extract_return_value): Update.
4672 * irix5-nat.c (fetch_core_registers): Update.
4673 * irix4-nat.c (fetch_core_registers): Update.
4674 * i386-tdep.h: Update.
4675 * hppa-tdep.c (pa_do_registers_info): Update.
4676 (pa_do_strcat_registers_info): Update.
4677 * cris-tdep.c (cris_register_bytes_ok): Update.
4678 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4679 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
4680 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
4681 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
4682 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
4683 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
4684 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
4685 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
4686 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
4687 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
4688 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
4689 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
4690 (REGISTER_BYTES_OK): Update.
4691 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
4692 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
4693
4694 2003-05-16 Ian Lance Taylor <ian@airs.com>
4695
4696 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
4697 (vax_print_insn, print_insn_arg): Remove static functions.
4698 (vax_gdbarch_init): Call set_gdbarch_print_insn with
4699 print_insn_vax from opcodes library.
4700 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
4701
4702 2003-05-15 Andrew Cagney <cagney@redhat.com>
4703
4704 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
4705 * target.h (memory_breakpoint_from_pc): Delete declaration.
4706 * mem-break.c (memory_breakpoint_from_pc): Delete function.
4707 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
4708 * monitor.c (monitor_insert_breakpoint): Use
4709 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
4710 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
4711 * gdbarch.h, gdbarch.c: Re-generate.
4712 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
4713 (sparc_gdbarch_init): Set breakpoint_from_pc to
4714 sparc_breakpoint_from_pc.
4715 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
4716 (BREAKPOINT_FROM_PC): Define.
4717 (sparc_breakpoint_from_pc): Declare.
4718 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
4719 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
4720 (BREAKPOINT_FROM_PC): Define.
4721 (BREAKPOINT): Delete macro.
4722 * target.h: Update comment.
4723 * s390-tdep.c (s390_gdbarch_init): Update comments.
4724 * remote.c: Update comments.
4725 * remote-mips.c: Update comments.
4726 * proc-api.c (write_with_trace): Do not check for a breakpoint.
4727 * mem-break.c: Update comment.
4728 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
4729 (ia64_memory_insert_breakpoint): Update.
4730 * config/sparc/tm-sparc.h: Update comment.
4731 * config/pa/tm-hppa64.h: Update comment.
4732 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4733 (rs6000_breakpoint_from_pc): Update.
4734 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4735 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
4736 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
4737 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
4738 (mips_breakpoint_from_pc): Update.
4739 (mips_dump_tdep): Update.
4740
4741 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
4742 * minsyms.c (lookup_minimal_symbol): Inline
4743 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
4744
4745 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
4746 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4747 * p-lang.c (pascal_printstr): Ditto.
4748 * objc-lang.c (objc_printstr): Ditto.
4749 * m2-lang.c (m2_printstr): Ditto.
4750 * jv-valprint.c (java_print_value_fields): Ditto.
4751 * f-lang.c (f_printstr): Ditto.
4752 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
4753 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
4754 for repeat_count_threshold.
4755 * Makefile.in (cp-valprint.o): Update dependencies.
4756
4757 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
4758
4759 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
4760 (examine_prologue): Support looking through leaf functions, knowing
4761 they start with mov r2,r12. Support skipping over indirect stores
4762 of the input registers. Upon hitting a non-nop branch instruction
4763 or predicated instruction, bail out by setting lim_pc to the current
4764 pc value in the loop. At the end, if the lim_pc value is still
4765 beyond our calculated value and we have trust_limit set,
4766 use the lim_pc value.
4767
4768 2003-05-15 Andrew Cagney <cagney@redhat.com>
4769
4770 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
4771 generic_find_dummy_frame.
4772 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
4773 (deprecated_generic_find_dummy_frame): Update.
4774 (deprecated_read_register_dummy): Update.
4775 * frame.c (deprecated_generic_get_saved_register): Update.
4776
4777 2003-05-15 Theodore A. Roth <troth@openavr.org>
4778
4779 * avr-tdep.c (avr_breakpoint_from_pc): New function.
4780 (avr_gdbarch_init): Set breakpoint_from_pc method.
4781
4782 2003-05-15 Andrew Cagney <cagney@redhat.com>
4783
4784 * regcache.c (build_regcache): Set deprecated_register_valid
4785 directly.
4786 (deprecated_grub_regcache_for_register_valid): Delete function.
4787 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
4788 declaration.
4789
4790 2003-05-15 David Carlton <carlton@bactrian.org>
4791
4792 Committed by Elena Zannoni <ezannoni@redhat.com>
4793 * symtab.c (lookup_symbol_aux): Delete calls to
4794 lookup_symbol_aux_minsyms.
4795 (lookup_symbol_aux_minsyms): Comment out function and
4796 prototype. Delete lookup by mangled name.
4797
4798 2003-05-14 Kevin Buettner <kevinb@redhat.com>
4799
4800 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
4801 correctly indicate an empty stack and ``stack_allocated'' to the
4802 indicate the number of elements initially allocated.
4803 (dwarf_expr_grow_stack): Simplify method for computing new
4804 stack size. Don't loop infinitely if ``stack_len'' is zero.
4805 (execute_stack_op): Move ``ctx->in_reg'' initialization
4806 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
4807 be used in conjuction with DW_OP_piece. Revise error message
4808 accordingly.
4809
4810 2003-05-14 Theodore A. Roth <troth@openavr.org>
4811
4812 * MAINTAINERS: Update my email address.
4813 * avr-tdep.c: Ditto.
4814
4815 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
4816
4817 * symtab.h (enum domain_enum): Rename from namespace_enum.
4818 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
4819 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
4820 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
4821 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
4822 TYPES_NAMESPACE, METHODS_NAMESPACE.
4823 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
4824 (struct symbol, struct partial_symbol): Rename field
4825 'namespace_enum namespace' to 'domain_enum domain'.
4826 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
4827 Delete old define kludge for namespace.
4828
4829 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
4830 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
4831 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
4832 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
4833 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
4834 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
4835 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
4836 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
4837 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
4838 occurrences of the above.
4839
4840 2003-05-14 Ian Lance Taylor <ian@airs.com>
4841
4842 * Makefile.in (install-only): Use $(SHELL) when running
4843 mkinstalldirs.
4844
4845 2003-05-13 Ian Lance Taylor <ian@airs.com>
4846
4847 * MAINTAINERS (write after approval): Add myself.
4848
4849 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
4850 second and third arguments.
4851 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4852 * ser-unix.c (_initialize_ser_hardwire): Likewise.
4853
4854 2003-05-13 Andrew Cagney <cagney@redhat.com>
4855
4856 * defs.h (store_address): Delete declaration.
4857 findvar.c (store_address): Delete function.
4858 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
4859 store_unsigned_integer.
4860 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
4861 * v850-tdep.c (v850_push_arguments): Ditto.
4862 * sparc-tdep.c (sparc_get_saved_register): Ditto.
4863 * sh-tdep.c (sh64_get_saved_register): Ditto.
4864 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
4865 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
4866 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
4867 (mips_get_saved_register): Ditto.
4868 * ia64-tdep.c (ia64_get_saved_register): Ditto.
4869 (find_func_descr, ia64_push_arguments): Ditto.
4870 * i386-tdep.c (i386_push_arguments): Ditto.
4871 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
4872 * frv-tdep.c (frv_push_arguments): Ditto.
4873 * frame.c (legacy_saved_regs_prev_register): Ditto.
4874 (deprecated_generic_get_saved_register): Ditto.
4875 * findvar.c (unsigned_address_to_pointer): Ditto.
4876 * dwarf2read.c (dwarf2_const_value): Ditto.
4877 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4878 * alpha-tdep.c (alpha_push_arguments): Ditto.
4879
4880 2003-05-12 J. Brobecker <brobecker@gnat.com>
4881
4882 * NEWS: Mention that the hppa-hpux port has been partially
4883 multiarched (32bit ABIT only, so far).
4884
4885 2003-05-11 Andrew Cagney <cagney@redhat.com>
4886
4887 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
4888 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
4889 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
4890 sim/testsuite/sim/arm/misaligned2.ms, and
4891 sim/testsuite/sim/arm/misaligned3.ms.
4892 * disasm.h (struct ui_file): Add opaque struct declaration.
4893 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
4894 * frame.h (struct ui_file): Ditto.
4895
4896 2003-05-11 Mark Kettenis <kettenis@gnu.org>
4897
4898 * value.h: Pretty print.
4899
4900 2003-05-10 Mark Kettenis <kettenis@gnu.org>
4901
4902 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
4903
4904 2003-05-08 Andrew Cagney <cagney@redhat.com>
4905
4906 * regcache.h (max_register_size): Delete declaration.
4907 * regcache.c (max_register_size): Delete function.
4908 (struct regcache_descr): Delete field "max_register_size".
4909 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
4910 registers fit in MAX_REGISTER_SIZE.
4911 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
4912 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
4913 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
4914 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
4915 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
4916 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
4917 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
4918 * dve3900-rom.c, hppa-tdep.c: Ditto.
4919
4920 2003-05-08 David Carlton <carlton@math.stanford.edu>
4921
4922 * valops.c (push_word): Fix typo.
4923
4924 2003-05-08 Andrew Cagney <cagney@redhat.com>
4925
4926 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
4927 * gdbarch.h: Re-generate.
4928 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
4929 (legacy_max_register_raw_size): Delete declaration.
4930 * regcache.c (legacy_max_register_raw_size): Delete function.
4931 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
4932 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
4933 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
4934 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
4935 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
4936 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
4937 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
4938 * findvar.c, dwarf2cfi.c: Ditto.
4939
4940 2003-05-08 Andrew Cagney <cagney@redhat.com>
4941
4942 * mips-tdep.c (read_signed_register): New function, moved to here
4943 from "regcache.c".
4944 (read_signed_register_pid): Ditto.
4945 * regcache.c (read_signed_register_pid): Delete function, moved to
4946 "mips-tdep.c".
4947 (read_signed_register): Ditto.
4948 * regcache.h (read_signed_register): Delete declaration.
4949 (read_signed_register_pid): Delete declaration.
4950
4951 2003-05-08 Andrew Cagney <cagney@redhat.com>
4952
4953 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
4954 * gdbarch.h: Re-generate.
4955 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
4956 (legacy_max_register_virtual_size): Delete declaration.
4957 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
4958 * d10v-tdep.c (d10v_print_registers_info): Ditto.
4959 * tracepoint.c (memrange_sortmerge): Ditto.
4960 * sparc-tdep.c (sparc_print_registers): Ditto.
4961 * regcache.c (legacy_max_register_virtual_size): Delete function.
4962
4963 2002-05-08 J. Brobecker <brobecker@gnat.com>
4964
4965 * fork-child.c (escape_bang_in_quoted_argument): New function.
4966 (fork_inferior): Escape '!' characters in quoted arguments
4967 only when needed.
4968
4969 2003-05-08 J. Brobecker <brobecker@gnat.com>
4970
4971 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
4972 the language of the CU is not currently supported by GDB.
4973
4974 2003-05-08 J. Brobecker <brobecker@gnat.com>
4975
4976 * defs.h (language): Add language_minimal enum value.
4977 * c-lang.c (minimal_language_defn): New language definition.
4978 (_initialize_c_language): Add the new minimal language to the list
4979 of languages known to GDB.
4980
4981 2003-05-08 Kevin Buettner <kevinb@redhat.com>
4982
4983 * frame.c (get_frame_type): Don't attempt to lazily initialize
4984 frame's unwinder for legacy frames.
4985
4986 2003-05-07 Andrew Cagney <cagney@redhat.com>
4987
4988 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
4989 and "regcache" parameters.
4990 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
4991
4992 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
4993
4994 * dwarf2read.c (dwarf_decode_lines): Only use output of
4995 check_cu_functions() when calling record_line(). Do not update
4996 the current address.
4997
4998 2003-05-07 Andrew Cagney <cagney@redhat.com>
4999
5000 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
5001 code.
5002
5003 2003-05-07 Jim Blandy <jimb@redhat.com>
5004
5005 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
5006 'maint info symtabs' and 'maint info psymtabs'.
5007 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
5008 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
5009 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
5010 Declarations updated.
5011 * maint.c (maintenance_list_command): Delete.
5012 (_initialize_maint_cmds): Update calls to add_cmd.
5013 * gdbcmd.h (maintenancelistlist): Delete declaration.
5014 * cli/cli-cmds.c (maintenancelistlist): Delete.
5015 (init_cmd_lists): Don't initialize it.
5016 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
5017
5018 2003-05-07 Andrew Cagney <cagney@redhat.com>
5019
5020 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
5021 "regcache".
5022 (d10v_print_registers_info): Update.
5023 (d10v_dmap_register, d10v_imap_register): Delete functions.
5024 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
5025 and "imap_register".
5026 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
5027 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
5028 * arch-utils.c (generic_remote_translate_xfer_address): Add
5029 "regcache" and "gdbarch" parameters.
5030 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
5031 parameter. Change class to multi-arch.
5032 * gdbarch.h, gdbarch.c: Re-generate.
5033 * remote.c (remote_xfer_memory): Use
5034 gdbarch_remote_translate_xfer_address.
5035
5036 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
5037
5038 * infrun.c (prev_pc): Move declaration ahead of proceed().
5039 (proceed): Refresh prev_pc value before resuming.
5040 (stop_stepping): Remove code to refresh prev_pc.
5041
5042 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5043
5044 * nto-tdep.c: Removed stray comment.
5045
5046 2003-05-06 Kris Warkentin <kewarken@qnx.com>
5047
5048 * i386-nto-tdep.c: Fix old K&R function definitions.
5049 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
5050 Also change add_show_from_set() call to add_setshow_cmd().
5051 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
5052
5053 2003-05-05 Andrew Cagney <cagney@redhat.com>
5054
5055 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
5056 (fprint_dummy_frames): New function.
5057 (maintenance_print_dummy_frames): New function.
5058 (_initialize_dummy_frame): Add command "maint print dummy-frames".
5059 * frame.c (fprint_frame_id): Make global.
5060 * frame.h (fprint_frame_id): Declare.
5061 * Makefile.in (dummy-frame.o): Update dependencies.
5062
5063 2003-05-05 Andrew Cagney <cagney@redhat.com>
5064
5065 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
5066 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
5067 SIZEOF_CALL_DUMMY_WORDS.
5068 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
5069 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
5070 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
5071 CALL_DUMMY_BREAKPOINT_OFFSET.
5072 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
5073 CALL_DUMMY_START_OFFSET.
5074 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
5075 * gdbarch.h, gdbarch.c: Re-generate.
5076 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
5077 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
5078 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
5079 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
5080 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
5081 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
5082 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
5083 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
5084 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
5085 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
5086 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
5087 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
5088 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
5089 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
5090 * config/sparc/tm-sparc.h: Update.
5091
5092 2003-05-05 Kris Warkentin <kewarken@qnx.com>
5093
5094 * configure.tgt: Add i[3456]86-*-nto*.
5095 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
5096 * nto-tdep.c: New file. Neutrino target support routines.
5097 * nto-tdep.h: New file. Neutrino target header.
5098 * config/tm-qnxnto.h: New file.
5099 * config/i386/i386nto.mt: New file.
5100 * config/i386/tm-i386nto.h: New file.
5101
5102 2003-05-04 Andrew Cagney <cagney@redhat.com>
5103
5104 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
5105 (load_infrun_state): Ditto.
5106 (struct thread_info): Drop "prev_func_name" field.
5107 * thread.c (load_infrun_state): Update.
5108 (save_infrun_state): Update.
5109 * infrun.c (prev_func_name): Delete variable.
5110 (init_wait_for_inferior): Do not clear prev_func_name.
5111 (stop_stepping, keep_going, context_switch): Do not swap
5112 prev_func_name.
5113 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
5114 instead of PC_IN_SIGTRAMP.
5115
5116 2003-05-04 Andrew Cagney <cagney@redhat.com>
5117
5118 * sentinel-frame.c (sentinel_frame_prev_register): Replace
5119 REGISTER_BYTE with register_offset_hack.
5120 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
5121 that REGISTER_BYTE is consistent with the regcache.
5122 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
5123 * gdbarch.h, gdbarch.c: Regenerate.
5124
5125 2003-05-04 Mark Kettenis <kettenis@gnu.org>
5126
5127 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
5128 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
5129
5130 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
5131
5132 2003-05-03 J. Brobecker <brobecker@gnat.com>
5133
5134 From Thierry Schneider <tpschneider1@yahoo.com>
5135 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
5136 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
5137 (mi-cmd-symbol.o): Add rule.
5138
5139 2003-05-03 Andrew Cagney <cagney@redhat.com>
5140
5141 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
5142 comments noteing that it replaces the old FIX_CALL_DUMMY code.
5143 * gdbarch.h, gdbarch.c: Re-generate.
5144 * d10v-tdep.c (d10v_push_dummy_code): New function.
5145 (d10v_gdbarch_init): Set push_dummy_code.
5146 * infcall.c (legacy_push_dummy_code): New function.
5147 (generic_push_dummy_code): New function.
5148 (push_dummy_code): New function.
5149 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
5150 instead of dummy_addr, to push_dummy_call. Move call to
5151 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
5152 switch.
5153 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
5154
5155 2003-05-03 Andrew Cagney <cagney@redhat.com>
5156
5157 * disasm.h (print_insn): Declare.
5158 * disasm.c (init_gdb_disassemble_info): New function.
5159 (gdb_disassembly): Call init_gdb_disassemble_info.
5160 (gdb_print_insn): New function.
5161 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
5162 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
5163 * mcore-tdep.c: Include "disasm.h"
5164 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
5165 * d10v-tdep.c: Include "disasm.h".
5166 (display_trace): Call gdb_print_insn, instead of print_insn.
5167 (print_insn): Delete function.
5168 * printcmd.c: Include "disasm.h".
5169 (print_insn): Delete function.
5170 (print_formatted): Call gdb_print_insn, instead of print_insn.
5171 * Makefile.in (printcmd.o): Update dependencies.
5172 (mcore-tdep.o, d10v-tdep.o): Ditto.
5173
5174 2003-05-02 Andrew Cagney <cagney@redhat.com>
5175
5176 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
5177 PC_REGNUM, re-indent.
5178 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
5179 PC_REGNUM isn't set.
5180
5181 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
5182 * gdbarch.h, gdbarch.c: Re-generate.
5183 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
5184 register_virtual_size, pc_regnum, or register_bytes.
5185 (D10V_PC_REGNUM): Rename _PC_REGNUM.
5186 (d10v_register_type): Use D10V_PC_REGNUM.
5187 (d10v_print_registers_info, d10v_read_pc): Ditto.
5188 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
5189 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
5190
5191 2003-05-02 David Carlton <carlton@bactrian.org>
5192
5193 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
5194 the name with mstrsave.
5195
5196 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
5197
5198 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
5199 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
5200 (host_charset_name, target_charset_name): New vars for use by
5201 set/show commands.
5202 (host_charset_enum, target_charset_enum): New enums for set/show
5203 commands.
5204 (set_charset_sfunc, set_host_charset_sfunc,
5205 set_target_charset_sfunc): New functions.
5206 (set_host_charset, set_target_charset): Make static.
5207 (list_charsets, set_host_charset_command,
5208 set_target_charset_command): Delete functions.
5209 (show_charset_command): Rewrite as....
5210 (show_charset): Hook this up with the set/show command mechanism.
5211 (_initialize_charset): Change names of charsets to match the
5212 set/show enums. Use host_charset_name and target_charset_name.
5213 Use set/show mechanism for charset, host-charset, target-charset
5214 commands. Do not make 'show host-charset' and 'show
5215 target-charset' be aliases of 'show charset'.
5216
5217 * charset.h (set_host_charset, set_target_charset): Don't export,
5218 they are not used outside the file.
5219
5220 2003-05-01 Andrew Cagney <cagney@redhat.com>
5221
5222 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
5223 (gdb_disassembly): Make "di" non static, always initialize and
5224 cleanup. Always use dis_asm_read_memory.
5225 (gdb_dis_asm_read_memory): Delete function.
5226
5227 2003-05-01 Andrew Cagney <cagney@redhat.com>
5228
5229 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
5230 (d10v_gdbarch_init): Set frame_align instead of stack_align.
5231
5232 2003-04-30 Andrew Cagney <cagney@redhat.com>
5233
5234 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
5235 "tm_print_insn_info".
5236 (TARGET_PRINT_INSN_INFO): Delete macro.
5237 (dis_asm_read_memory): Delete function declaration.
5238 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5239 (tm_print_insn_info): Delete variable definition.
5240 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
5241 * gdbarch.h, gdbarch.c: Re-generate.
5242 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
5243 "deprecated_tm_print_insn_info".
5244 * mcore-tdep.c (mcore_dump_insn): Ditto.
5245 * mips-tdep.c (mips_gdbarch_init): Ditto.
5246 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
5247 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
5248 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
5249 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
5250 instead of TARGET_PRINT_INSN_INFO, add comment.
5251 * s390-tdep.c (s390_get_frame_info): Instead of
5252 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
5253 (s390_check_function_end, s390_is_sigreturn): Ditto.
5254 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
5255 (dis_asm_memory_error, dis_asm_print_address): Ditto.
5256 * disasm.c: Include "gdbcore.h".
5257 (_initialize_disasm): New function, initialize
5258 "deprecated_tm_print_insn_info".
5259 (deprecated_tm_print_insn_info): New variable.
5260 (dis_asm_read_memory): Moved from "corefile.c", made static.
5261 (dis_asm_print_address, dis_asm_memory_error): Ditto.
5262 * Makefile.in (disasm.o): Update dependencies.
5263
5264 2003-04-30 Andrew Cagney <cagney@redhat.com>
5265
5266 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
5267
5268 2003-04-29 Adam Fedor <fedor@gnu.org>
5269
5270 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
5271 * infcall.c (find_function_addr): Make non-static.
5272 * infcall.h (find_function_addr): Declare.
5273 * Makefile.in (eval.o): Update dependencies.
5274
5275 2003-04-28 Adam Fedor <fedor@gnu.org>
5276
5277 * symtab.c (symbol_find_demangled_name): Check for and demangle
5278 ObjC symbols.
5279 (symbol_init_demangled_name): Init for language_objc as well.
5280
5281 2003-04-28 Andrew Cagney <cagney@redhat.com>
5282
5283 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
5284 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
5285 * gdbarch.h, gdbarch.c: Re-generate.
5286 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
5287 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
5288 * inferior.h (deprecated_read_fp): Rename read_fp.
5289 (generic_target_read_fp): Delete declaration.
5290 * regcache.c (generic_target_read_fp): Delete function.
5291 (deprecated_read_fp): Replace read_fp, use
5292 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
5293 * d10v-tdep.c (d10v_read_fp): Delete function.
5294 (d10v_gdbarch_init): Do not set deprecated_read_fp.
5295
5296 * sparc-tdep.c (sparc_gdbarch_init): Do not set
5297 deprecated_target_read_fp to generic_target_read_fp.
5298 * sh-tdep.c (sh_gdbarch_init): Ditto.
5299 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5300 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5301 * frv-tdep.c (frv_gdbarch_init): Ditto.
5302
5303 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
5304 deprecated_fp_regnum.
5305 * x86-64-tdep.c (x86_64_init_abi): Ditto.
5306 * vax-tdep.c (vax_gdbarch_init): Ditto.
5307 * v850-tdep.c (v850_gdbarch_init): Ditto.
5308 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5309 * sh-tdep.c (sh_gdbarch_init): Ditto.
5310 * s390-tdep.c (s390_gdbarch_init): Ditto.
5311 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5312 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5313 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5314 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5315 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5316 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5317 * i386-tdep.c (i386_gdbarch_init): Ditto.
5318 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5319 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5320 * frv-tdep.c (frv_gdbarch_init): Ditto.
5321 * cris-tdep.c (cris_gdbarch_init): Ditto.
5322 * avr-tdep.c (avr_gdbarch_init): Ditto.
5323 * arm-tdep.c (arm_gdbarch_init): Ditto.
5324 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5325
5326 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5327 * v850-tdep.c (v850_gdbarch_init): Ditto.
5328 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5329 * sh-tdep.c (sh_gdbarch_init): Ditto.
5330 * s390-tdep.c (s390_gdbarch_init): Ditto.
5331 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5332 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5333 * mips-tdep.c (mips_gdbarch_init): Ditto.
5334 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5335 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5336 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5337 * frv-tdep.c (frv_gdbarch_init): Ditto.
5338 * avr-tdep.c (avr_gdbarch_init): Ditto.
5339 * arm-tdep.c (arm_gdbarch_init): Ditto.
5340
5341 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5342 DEPRECATED_FP_REGNUM.
5343 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5344 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5345 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5346 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5347 (sparc32_register_virtual_type): Ditto.
5348 * sh-tdep.c (sh64_frame_chain): Ditto.
5349 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5350 (sh_nofp_frame_init_saved_regs): Ditto.
5351 (sh64_nofp_frame_init_saved_regs): Ditto.
5352 (sh_fp_frame_init_saved_regs): Ditto.
5353 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5354 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5355 * procfs.c (procfs_fetch_registers): Ditto.
5356 (procfs_store_registers): Ditto.
5357 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5358 (store_inferior_registers, fetch_core_registers): Ditto.
5359 (fetch_kcore_registers, clear_regs): Ditto.
5360 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5361 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5362 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5363 * nlm/i386.c (do_status): Ditto.
5364 * mipsv4-nat.c (supply_gregset): Ditto.
5365 * mips-tdep.c: Ditto for comments.
5366 * mips-nat.c (fetch_inferior_registers): Ditto.
5367 (store_inferior_registers, fetch_core_registers): Ditto.
5368 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5369 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5370 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5371 (i386_do_pop_frame, i386_register_type): Ditto.
5372 * hppa-tdep.c (hppa_frame_chain): Ditto.
5373 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5374 (hppa_pop_frame, hppa_read_fp): Ditto.
5375 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5376 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5377 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5378 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5379 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5380 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5381 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5382 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5383 * blockframe.c: Ditto for comments.
5384 * arch-utils.h: Ditto for comments.
5385 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5386 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5387 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5388 * alpha-tdep.h: Ditto for comments.
5389 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5390 (alpha_cannot_store_register): Ditto.
5391 (alpha_push_dummy_frame): Ditto.
5392 * alpha-nat.c (supply_gregset): Ditto.
5393
5394 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5395 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5396 * config/sparc/tm-sparc.h: Update comment.
5397
5398 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5399 deprecated_read_fp instead of TARGET_READ_FP.
5400 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5401 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5402 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5403 deprecated_read_fp instead of read_fp.
5404 * s390-tdep.c (s390_push_arguments): Ditto.
5405 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5406 * frame.h: Ditto in comments.
5407 * frame.c (legacy_get_prev_frame): Ditto.
5408 * dummy-frame.c (dummy_frame_this_id): Ditto.
5409 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5410
5411 2003-04-28 Andrew Cagney <cagney@redhat.com>
5412
5413 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5414 * gdbarch.h, gdbarch.c: Re-generate.
5415 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5416 * vax-tdep.c (_initialize_vax_tdep): Update.
5417 * v850-tdep.c (_initialize_v850_tdep): Update.
5418 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5419 * s390-tdep.c (_initialize_s390_tdep): Update.
5420 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5421 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5422 * mips-tdep.c (_initialize_mips_tdep): Update.
5423 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5424 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5425 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5426 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5427 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5428 * frv-tdep.c (_initialize_frv_tdep): Update.
5429 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5430 (_initialize_cris_tdep): Update.
5431 * arch-utils.c (legacy_print_insn): Update.
5432 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5433
5434 2003-04-26 Adam Fedor <fedor@gnu.org>
5435
5436 * linespec.c (decode_objc): New function to decode ObjC calls
5437 (decode_line_1): Check for ObjC calls (using decode_objc)
5438 * Makefile (linespec.o): Update dependencies.
5439
5440 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
5441
5442 * breakpoint.h (struct breakpoint_ops): New.
5443 (struct breakpoint): Add ops member.
5444
5445 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5446 (mention): Use new breakpoint ops member.
5447 (set_raw_breakpoint): Initialize ops field to NULL.
5448 (print_exception_catchpoint, print_one_exception_catchpoint)
5449 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5450 (gnu_v3_exception_catchpoint_ops): New.
5451 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5452
5453 2003-04-25 Adam Fedor <fedor@gnu.org>
5454
5455 * Makefile.in (COMMON_OBS): Add objc-lang.o
5456
5457 2003-04-25 Andrew Cagney <cagney@redhat.com>
5458
5459 * d10v-tdep.c (print_insn): Delete function.
5460 (display_trace): Use TARGET_PRINT_INSN.
5461 (_initialize_d10v_tdep): Do not set tm_print_insn.
5462 (d10v_gdbarch_init): Set print_insn.
5463
5464 2003-04-25 Andrew Cagney <cagney@redhat.com>
5465
5466 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5467 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5468 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5469 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5470 (nr_dmap_regs, a0_regnum): ... new functions.
5471 (d10v_print_registers_info): Use a0_regnum, use register_size.
5472 (d10v_register_byte): Delete function.
5473 (d10v_register_raw_size): Delete function.
5474 (d10v_register_type): Use a0_regnum.
5475 (d10v_print_registers_info): Use a0_regnum.
5476 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5477 (d10v_gdbarch_init): Do not set register_byte or
5478 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5479 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5480 extract_address.
5481 (trace_command): Use XCALLOC.
5482 (print_insn): Delete reference to tm_print_insn.
5483 (saved_regs_unwinder): Use store_unsigned_integer instead of
5484 store_address.
5485 * frame.h (FRAME_OBSTACK_CALLOC): Define
5486
5487 2003-04-25 David Carlton <carlton@bactrian.org>
5488
5489 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5490
5491 2003-04-24 Adam Fedor <fedor@gnu.org>
5492
5493 * objc-lang.c: Include "valprint.h"
5494 * Makefile.in (objc-lang.o): Update dependencies.
5495
5496 2003-04-24 Adam Fedor <fedor@gnu.org>
5497
5498 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
5499 architecture dependant compilation and mark as unimplemented
5500 (until they get put in the gdbarch vector).
5501
5502 2003-04-23 David Carlton <carlton@bactrian.org>
5503
5504 * cp-support.c (cp_find_first_component): Accept 'operator' in
5505 more locations.
5506
5507 2003-04-23 Andrew Cagney <cagney@redhat.com>
5508
5509 * infcall.c (call_function_by_hand): Eliminate redundant
5510 indentation. Move "saved_async" and "old_cleanups" to where they
5511 are needed.
5512
5513 2003-04-23 Andrew Cagney <cagney@redhat.com>
5514
5515 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5516 and "buffer". Move the "name" code to where it is needed.
5517
5518 2003-04-23 Andrew Cagney <cagney@redhat.com>
5519
5520 * infcall.c (call_function_by_hand): Move variables "start_sp",
5521 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5522 code to ON_STACK switch branch.
5523
5524 2003-04-23 Andrew Cagney <cagney@redhat.com>
5525
5526 * infcall.c (call_function_by_hand): Make declaration of "i",
5527 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5528 lint.
5529
5530 2003-04-23 Andrew Cagney <cagney@redhat.com>
5531
5532 * infcall.c (call_function_by_hand): Delete variable
5533 "n_method_args". Localize "param_type"'s declaration to the loop
5534 that it is used. Reinstate code assigning to said variable -
5535 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5536 Rationalize code using "param_type".
5537
5538 2003-04-22 Andrew Cagney <cagney@redhat.com>
5539
5540 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5541 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5542 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5543 to DEPRECATED_PUSH_RETURN_ADDRESS.
5544
5545 2003-04-22 Kevin Buettner <kevinb@redhat.com>
5546
5547 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5548 on the DWARF2 register number prior to fetching a register.
5549
5550 2003-04-22 J. Brobecker <brobecker@gnat.com>
5551
5552 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5553 Update all the tests using SOFT_FLOAT considering the fact that
5554 this macro was always set to 0.
5555 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5556 considering the fact that this macro was always set to 0.
5557 * hppa-tdep.h (hppa_store_return_value): Likewise.
5558 (hppa_extract_return_value): Likewise.
5559
5560 2003-04-22 J. Brobecker <brobecker@gnat.com>
5561
5562 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5563 the hppa-pro target only.
5564
5565 2003-04-21 J. Brobecker <brobecker@gnat.com>
5566
5567 Ongoing multi-arch conversion effort for HP/UX:
5568 * config/pa/tm-hppa.h: Move all macro that are no longer
5569 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5570 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5571
5572 2003-04-21 J. Brobecker <brobecker@gnat.com>
5573
5574 * config/pa/tm-hppa.h: Obsolete a section that was only used
5575 for hppa-pro.
5576
5577 2003-04-21 J. Brobecker <brobecker@gnat.com>
5578
5579 Ongoing multi-arch conversion for HP/UX.
5580 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5581 if already defined (allows hppa64 to stay non-multiarched for now).
5582 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5583
5584 2003-04-21 Andrew Cagney <cagney@redhat.com>
5585
5586 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5587
5588 2003-04-21 Andrew Cagney <cagney@redhat.com>
5589
5590 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5591 "i386_num_mmx_regs".
5592
5593 2003-04-21 Andrew Cagney <cagney@redhat.com>
5594
5595 * infcall.c: New file.
5596 * infcall.h: New file.
5597 * valarith.c: Include "infcall.h".
5598 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5599 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5600 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5601 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5602 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5603 (SFILES): Add "infcall.c"
5604 (COMMON_OBS): Add "infcall.o".
5605 (infcall.o): Specify dependencies.
5606 * value.h (call_function_by_hand): Delete declaration.
5607 * inferior.h (run_stack_dummy): Delete declaration.
5608 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5609 (run_stack_dummy): Move to "infcall.c", merged into
5610 call_function_by_hand.
5611 * valops.c (call_function_by_hand): Moved to "infcall.c".
5612 (find_function_addr, value_arg_coerce): Ditto.
5613 (unwindonsignal_p, coerce_float_to_double): Ditto.
5614 (_initialize_valops): Move "set/show coerce-float-to-double", and
5615 "set/show unwindonsignal" commands to "infcall.c".
5616 * v850-tdep.c, target.h: Update comments.
5617 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5618 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5619 (sh64_init_extra_frame_info): Update comments.
5620 * mn10300-tdep.c: Update comments.
5621 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5622 * config/sparc/tm-sparc.h: Update comments.
5623 * breakpoint.h: Update comments.
5624 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5625 * arm-tdep.c: Update comment.
5626
5627 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5628
5629 * i386-tdep.c (i386_num_register_names): New variable.
5630 (i386_num_mmx_regs): Renamed from mmx_num_regs.
5631 (MM0_REGNUM): Remove redundant parentheses in define.
5632 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
5633 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
5634 i386_mxcsr_regnum_p): Remove redundant parentheses.
5635 (i386_register_name): Use i386_num_register_names.
5636
5637 * i386-tdep.c (i386_extract_return_value,
5638 i386_store_return_value): Correct check for availability of
5639 floating-point registers.
5640
5641 * i386-tdep.c (i386_frame_num_args): Remove function.
5642 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
5643
5644 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
5645 mmx_regnum_to_fp_regnum. Adjust all callers.
5646
5647 * i386-tdep.c (i386_get_longjmp_target): Use
5648 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
5649 and TARGET_CHAR_BIT. Use extract_typed_address instead of
5650 extract_address.
5651
5652 2003-04-19 Mark Kettenis <kettenis@gnu.org>
5653
5654 * core-regset.c: Update comments to reflect reality. Re-order
5655 includes.
5656 (fetch_core_registers): Use switch instead of if. Remove
5657 redundant prototype.
5658
5659 2003-04-18 Jim Blandy <jimb@redhat.com>
5660
5661 * s390-tdep.c (s390_frame_align): New function.
5662 (s390_gdbarch_init): Register it with the gdbarch object.
5663
5664 2003-04-17 Richard Henderson <rth@redhat.com>
5665
5666 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
5667
5668 2003-04-17 Michael Snyder <msnyder@redhat.com>
5669 Karen Bennet <bennet@redhat.com>
5670
5671 Committed by Elena Zannoni <ezannoni@redhat.com>
5672 * gdb_gcore.sh: New script to create a core dump of a process.
5673
5674 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
5675
5676 * values.c (value_being_returned): Don't fetch the return
5677 value if the return type is void.
5678
5679 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5680
5681 * thread-db.c: Reindented.
5682
5683 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5684
5685 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
5686 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
5687 as types.
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713 2003-04-16 Kevin Buettner <kevinb@redhat.com>
5714
5715 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
5716 the size of ``long double'' to 16, instead of 8.
5717
5718 2003-04-16 Mark Kettenis <kettenis@gnu.org>
5719
5720 * i386-linux-nat.c: Add some whitespace to make things more
5721 readable.
5722 (fetch_register, store_register, fetch_inferior_registers,
5723 store_inferior_registers): Get rid of assignment in if-statement.
5724 (store_register): Fix typo in error message.
5725
5726 2003-04-16 Andrew Cagney <cagney@redhat.com>
5727
5728 * utils.c (xmmalloc): Always allocate something, matches
5729 libiberty/xmalloc's semantics.
5730 (xmrealloc, xmcalloc): Ditto.
5731
5732 2003-04-16 Andrew Cagney <cagney@redhat.com>
5733
5734 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5735 update comments.
5736 (get_frame_type): Initialize unwind and type when needed.
5737 (get_frame_id, frame_register_unwind): Ditto.
5738
5739 2003-04-16 Andrew Cagney <cagney@redhat.com>
5740
5741 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
5742 obsolete.
5743 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
5744 * sparcl-stub.c: Obsolete file.
5745 * config/sparc/tm-sparclet.h: Obsolete file.
5746 * sparclet-stub.c: Obsolete file.
5747 * sparclet-rom.c: Obsolete file.
5748 * sparcl-tdep.c: Obsolete file.
5749 * config/sparc/tm-sparclite.h: Obsolete file.
5750 * config/sparc/sparclite.mt: Obsolete file.
5751 * config/sparc/sparclet.mt: Obsolete file.
5752 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
5753 sparc86x-*-* obsolete.
5754
5755 2003-04-15 David Carlton <carlton@math.stanford.edu>
5756
5757 * Makefile.in (SFILES): Add cp-namespace.c.
5758 (COMMON_OBS): Add cp-namespace.o.
5759 (block.o): Depend on gdb_obstack_h and cp_support_h.
5760 (buildsym.o): Depend on cp_support_h.
5761 (cp-namespace.o): New.
5762 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
5763 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
5764 (dwarf2read.o): Depend on cp_support_h.
5765 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
5766 * dwarf2read.c (process_die): Set processing_has_namespace_info,
5767 processing_current_namespace.
5768 (read_namespace): Update processing_current_namespace; check for
5769 anonymous namespaces.
5770 (dwarf2_name): New function.
5771 (dwarf2_extension): Ditto.
5772 * cp-support.h: Update copyright, contributors.
5773 Add inclusion guards.
5774 Add opaque declaration for structs obstack, block, symbol.
5775 (struct using_direct): New struct.
5776 Add declarations for cp_find_first_component,
5777 cp_entire_prefix_len, processing_has_namespace_info,
5778 processing_current_namespace, cp_is_anonymous,
5779 cp_add_using_directive, cp_initialize_namespace,
5780 cp_finalize_namespace, cp_set_block_scope,
5781 cp_scan_for_anonymous_namespaces.
5782 * cp-namespace.c: New file.
5783 * cp-support.c: Update copyright.
5784 Include ctype.h, gdb_assert.h, gdbcmd.h.
5785 New variable maint_cplus_cmd_list.
5786 (cp_find_first_component): New function.
5787 (cp_entire_prefix_len, maint_cplus_command)
5788 (first_component_command, _initialize_cp_support): Ditto.
5789 * buildsym.c: Include cp-support.h.
5790 New variable using_list.
5791 (add_symbol_to_list): Check for anonymous namespaces.
5792 (finish_block): Set block's scope.
5793 (start_symtab): Initialize C++ namespace support.
5794 (end_symtab): Finalize C++ namespace support.
5795 * block.h: Add opaque declarations for structs
5796 block_namespace_info, using_direct, and obstack.
5797 Add declarations for block_set_scope and block_set_using.
5798 (struct block): Add 'language_specific' member.
5799 (BLOCK_NAMESPACE): New macro.
5800 * block.c: Include gdb_obstack.h and cp-support.h.
5801 (struct block_namespace_info): New struct.
5802 (block_set_scope): New function.
5803 (block_set_using, block_initialize_namespace): Ditto.
5804
5805 2003-04-14 Kevin Buettner <kevinb@redhat.com>
5806
5807 * solib-svr4.c (svr4_have_link_map_offsets): New function.
5808 (locate_base): Return early if there aren't any link map offsets.
5809 (svr4_solib_create_inferior_hook): Warn if shared library support
5810 is unavailable.
5811
5812 2003-04-14 David Carlton <carlton@math.stanford.edu>
5813
5814 * symtab.c (symbol_set_names): Add prefix when storing Java names
5815 in hash table. Fix for PR java/1039.
5816
5817 2003-04-14 David Carlton <carlton@math.stanford.edu>
5818
5819 * symtab.c (symbol_set_names): Rename 'name' arg to
5820 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
5821 * symtab.h: Change 'name' argument in declaration of
5822 symbol_set_names to 'linkage_name'.
5823 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
5824
5825 2003-04-14 Andrew Cagney <cagney@redhat.com>
5826
5827 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
5828 return the fully sign-extended register value.
5829 (get_frame_pointer): Ditto.
5830 (mips_pop_frame): Initialize "proc_desc" after checking for a
5831 dummy frame.
5832
5833 2003-04-14 Andrew Cagney <cagney@redhat.com>
5834
5835 * mips-tdep.c (mips_push_dummy_frame): Delete function.
5836 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
5837 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
5838 (mips_push_register): Delete function.
5839 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
5840 PUSH_FP_REGNUM.
5841
5842 2003-04-14 Jim Blandy <jimb@redhat.com>
5843
5844 * symmisc.c: #include "gdb_regex.h".
5845 (maintenance_list_symtabs, maintenance_list_psymtabs): New
5846 functions.
5847 * maint.c (maintenance_list_command): New function.
5848 (_initialize_maint_cmds): Register the above as commands.
5849 * symtab.h (maintenance_list_symtabs,
5850 maintenance_list_psymtabs): New declarations.
5851 * cli/cli-cmds.c (maintenancelistlist): New variable.
5852 (init_cmd_lists): Initialize it.
5853 * cli/cli-cmds.h (maintenancelistlist): New declaration.
5854 * gdbcmd.h (maintenancelistlist): New declaration.
5855 * Makefile.in (symmisc.o): Update dependencies.
5856
5857 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
5858
5859 * s390-nat.c: Include asm/types.h for addr_t.
5860
5861 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
5862
5863 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
5864 actually incoming type.
5865
5866 2003-04-13 Andrew Cagney <cagney@redhat.com>
5867
5868 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
5869 get_next_frame and get_frame_saved_regs.
5870
5871 2003-04-13 Andrew Cagney <cagney@redhat.com>
5872
5873 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
5874 of gdbarch_num_regs.
5875
5876 2003-04-13 Andrew Cagney <cagney@redhat.com>
5877
5878 * frame.h: Mention what replaced what in "struct frame_info".
5879 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
5880 deprecated_update_frame_base_hack and
5881 deprecated_update_frame_pc_hack.
5882 * hppa-tdep.c: Ditto.
5883
5884 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5885
5886 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
5887 to read_reg and update its comment. Remove regnum member.
5888 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
5889 Don't call read_reg when setting in_reg. Call read_reg to get
5890 the frame base if it's in a register. Return the register number
5891 on the stack instead of in the context. Remove extra arguments
5892 to read_reg.
5893 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
5894 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
5895 the register number on the expression stack.
5896 (needs_frame_read_reg): Remove extra arguments.
5897
5898 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5899
5900 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
5901 made non-static.
5902 (execute_stack_op): All callers updated.
5903 * dwarf2expr.h: Add prototype for dwarf2_read_address.
5904 * dwarf2loc.c (find_location_expression): New function.
5905 (dwarf_expr_frame_base): Call it.
5906 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
5907 (dwarf2_tracepoint_var_ref): New function, broken out from
5908 locexpr_tracepoint_var_ref.
5909 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
5910 Make static.
5911 (loclist_read_variable, loclist_read_needs_frame): New functions.
5912 (loclist_describe_location, loclist_tracepoint_var_ref): New
5913 functions.
5914 (dwarf2_loclist_funcs): New struct location_funcs.
5915 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
5916 (struct dwarf2_locexpr_baton): Add comments.
5917 (dwarf2_loclist_funcs): New extern.
5918 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
5919 base_address and base_known.
5920 (dwarf_loc_buffer): New variable.
5921 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
5922 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
5923 (dwarf2_has_info): Initialize dwarf_loc_offset.
5924 (dwarf2_build_psymtabs): Read in .debug_loc.
5925 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
5926 DWARF_LOC_SIZE.
5927 (psymtab_to_symtab_1): Likewise. Move base address calculation
5928 here, from...
5929 (dwarf2_get_pc_bounds): ... here. Use the base address from
5930 cu_header.
5931 (dwarf2_symbol_mark_computed): Handle location lists.
5932
5933 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
5934
5935 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
5936 if the linkage name demangled successfully.
5937
5938 2003-04-13 Mark Kettenis <kettenis@gnu.org>
5939
5940 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
5941 disassmbly_flavour): Removed.
5942
5943 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
5944
5945 2003-04-13 Mark Kettenis <kettenis@gnu.org>
5946
5947 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
5948
5949 2003-04-12 Andrew Cagney <cagney@redhat.com>
5950
5951 * frame.h (struct frame_info): Move definition from here ...
5952 * frame.c (struct frame_info): ... to here.
5953
5954 2003-04-12 Andrew Cagney <cagney@redhat.com>
5955
5956 * gdbthread.h (save_infrun_state): Delete parameter
5957 "prev_func_start".
5958 (struct thread_info): Delete field "prev_func_start".
5959 (load_infrun_state): Ditto.
5960 * thread.c (load_infrun_state, save_infrun_state): Update.
5961 * infrun.c (prev_func_start): Delete variable.
5962 (context_switch, init_wait_for_inferior): Update.
5963 (stop_stepping, keep_going): Update.
5964
5965 2003-04-12 Andrew Cagney <cagney@redhat.com>
5966
5967 * gdbarch.sh: Add missing opaque declarations.
5968 * gdbarch.h: Regnerate.
5969 * symtab.h: Add missing opaque declarations.
5970 * value.h, target.h, symfile.h, stabsread.h: Ditto.
5971 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
5972 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
5973 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
5974 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
5975 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
5976 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
5977 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
5978 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
5979 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
5980 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
5981 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
5982 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
5983
5984 2003-04-11 Andrew Cagney <cagney@redhat.com>
5985
5986 * frame.c (get_frame_id): Return this frame's "id".
5987 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
5988 function start.
5989 (legacy_saved_regs_this_id): Replace function body with
5990 internal-error.
5991 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
5992 FRAME_OBSTACK_ZALLOC.
5993 (create_new_frame): Mark the frame ID as valid.
5994
5995 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
5996
5997 * Makefile.in (libbfd_h): Added missing setting.
5998 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
5999 according to the selected ABI.
6000
6001 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
6002
6003 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
6004
6005 2003-04-11 Andrew Cagney <cagney@redhat.com>
6006
6007 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
6008 SAVED_PC_AFTER_CALL.
6009 * gdbarch.h, gdbarch.c: Regenerate.
6010 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6011 * x86-64-tdep.c (x86_64_init_abi): Update.
6012 * vax-tdep.c (vax_gdbarch_init): Update.
6013 * v850-tdep.c (v850_gdbarch_init): Update.
6014 * sparc-tdep.c (sparc_gdbarch_init): Update.
6015 * sh-tdep.c (sh_gdbarch_init): Update.
6016 * s390-tdep.c (s390_gdbarch_init): Update.
6017 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6018 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6019 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6020 * mips-tdep.c (mips_gdbarch_init): Update.
6021 * mcore-tdep.c (mcore_gdbarch_init): Update.
6022 * m68k-tdep.c (m68k_gdbarch_init): Update.
6023 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6024 * ia64-tdep.c (ia64_gdbarch_init): Update.
6025 (ia64_saved_pc_after_call): Update declaration.
6026 * i386ly-tdep.c (i386lynx_init_abi): Update.
6027 * i386-tdep.c (i386_gdbarch_init): Update.
6028 * hppa-tdep.c (hppa_gdbarch_init): Update.
6029 * h8300-tdep.c (h8300_gdbarch_init): Update.
6030 * frv-tdep.c (frv_gdbarch_init): Update.
6031 * cris-tdep.c (cris_gdbarch_init): Update.
6032 * avr-tdep.c (avr_gdbarch_init): Update.
6033 * arm-tdep.c (arm_gdbarch_init): Update.
6034 * alpha-tdep.c (alpha_gdbarch_init): Update.
6035 * ns32knbsd-nat.c (frame_num_args): Update.
6036 * ns32k-tdep.c (umax_frame_num_args): Update.
6037 * mips-tdep.c (mips_init_frame_pc_first): Update.
6038 * infrun.c (step_over_function): Update.
6039 * i386-linux-tdep.c (skip_hurd_resolver): Update.
6040 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
6041 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6042 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6043 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
6044 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
6045 * arm-linux-tdep.c (skip_hurd_resolver): Update.
6046 * arch-utils.c (init_frame_pc_default): Update.
6047 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
6048 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
6049 declaration.
6050
6051 2003-04-11 Andrew Cagney <cagney@redhat.com>
6052
6053 * i387-tdep.c: Update copyright.
6054 (i387_to_double): Delete function.
6055 (double_to_i387): Delete function.
6056
6057 2003-04-10 Andrew Cagney <cagney@redhat.com>
6058
6059 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
6060 frame's function's address. Simplify.
6061 (d10v_frame_unwind_cache): Check that the frame's function is
6062 non-zero.
6063
6064 2003-04-10 Jim Blandy <jimb@redhat.com>
6065
6066 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
6067 call to set_gdbarch_deprecated_push_arguments.
6068
6069 2003-04-10 Andrew Cagney <cagney@redhat.com>
6070
6071 * frame.c (fprint_frame_id): New function.
6072 (fprint_frame_type, fprint_frame): New function.
6073 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
6074 (create_sentinel_frame, get_frame_id): Ditto.
6075 (frame_id_p, frame_id_eq): Ditto.
6076 (frame_id_inner, create_new_frame): Ditto.
6077 (legacy_get_prev_frame, get_prev_frame): Ditto.
6078 (deprecated_update_frame_pc_hack): Ditto.
6079 (frame_register_unwind): Ditto.
6080 (deprecated_update_frame_base_hack): Ditto.
6081
6082 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6083
6084 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
6085 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
6086 frame_chain function.
6087 * Makefile.in: Add dependencies due to above change.
6088
6089 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
6090
6091 * blockframe.c (legacy_frame_chain_valid): Move call to
6092 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
6093 inside_entry_file.
6094
6095 2003-04-09 Andrew Cagney <cagney@redhat.com>
6096
6097 * frame.h (struct frame_id): Replace "pc" and "base" with
6098 "stack_addr" and "code_addr". Update comments.
6099 (frame_id_build): Update parameter names and comment.
6100 (struct frame_info): Replace "id_p" and "id" with "this_id".
6101 * dummy-frame.c (dummy_frame_this_id): Update.
6102 * breakpoint.c (print_one_breakpoint): Update.
6103 * frame.c (get_frame_id): Update.
6104 (get_frame_base, frame_id_build): Update.
6105 (create_sentinel_frame, legacy_get_prev_frame): Update.
6106 (deprecated_update_frame_base_hack): Update.
6107 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
6108 (frame_id_inner): Ditto.
6109
6110 2003-04-09 Andrew Cagney <cagney@redhat.com>
6111
6112 * defs.h (gdb_print_host_address): Make "addr" parameter a
6113 pointer constant.
6114 * utils.c (gdb_print_host_address): Update.
6115
6116 2003-04-09 Kevin Buettner <kevinb@redhat.com>
6117
6118 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
6119 register number for R0 is 0.
6120
6121 2003-04-09 J. Brobecker <brobecker@gnat.com>
6122
6123 * frame.h (struct gdbarch): Add opaque structure definition
6124 to avoid a compilation warning on LynxOS 4.0.
6125
6126 2003-04-09 Andrew Cagney <cagney@redhat.com>
6127
6128 * frame.h (struct frame_info): Delete field "pc". Replace
6129 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
6130 structure.
6131 * frame.c (frame_pc_unwind): Update.
6132 (create_sentinel_frame): Do not set "pc".
6133 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
6134 (get_frame_pc): Call frame_pc_unwind.
6135 (deprecated_update_frame_pc_hack): Update.
6136 (create_new_frame): Use "pc" not "->pc".
6137
6138 2003-04-09 Andrew Cagney <cagney@redhat.com>
6139
6140 * frame.c (get_frame_id): Eliminate code updating "frame".
6141 (legacy_get_prev_frame): Ditto.
6142 (get_frame_base): Return id.base directly.
6143 (deprecated_update_frame_base_hack): Update "id.base".
6144 * frame.h (struct frame_info): Delete field "frame".
6145
6146 2003-04-09 Andrew Cagney <cagney@redhat.com>
6147
6148 * NEWS: Mention that the "Sequent family" is obsolete.
6149 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
6150 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6151 * configure.host: Obsolete i[3456]86-sequent-bsd*,
6152 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
6153 * config/i386/tm-ptx4.h: Obsolete file.
6154 * config/i386/tm-ptx.h: Obsolete file.
6155 * symm-tdep.c: Obsolete file.
6156 * config/i386/symmetry.mt: Obsolete file.
6157 * config/i386/tm-symmetry.h: Obsolete file.
6158 * symm-nat.c: Obsolete file.
6159 * config/i386/nm-symmetry.h: Obsolete file.
6160 * config/i386/xm-symmetry.h: Obsolete file.
6161 * config/i386/symmetry.mh: Obsolete file.
6162 * config/i386/nm-ptx4.h: Obsolete file.
6163 * config/i386/ptx4.mh: Obsolete file.
6164 * config/i386/ptx.mt: Obsolete file.
6165 * config/i386/ptx.mh: Obsolete file.
6166 * config/i386/xm-ptx4.h: Obsolete file.
6167 * config/i386/xm-ptx.h: Obsolete file.
6168
6169 2003-04-09 Andrew Cagney <cagney@redhat.com>
6170
6171 Obsolete mips*-*-mach3*.
6172 * NEWS: Mention that mips*-*-mach3* is obsolete.
6173 * m3-nat.c: Obsolete file.
6174 * config/nm-m3.h: Obsolete file.
6175 * config/mips/tm-mipsm3.h: Obsolete file.
6176 * config/mips/mipsm3.mt: Obsolete file.
6177 * config/mips/mipsm3.mh: Obsolete file.
6178 * config/mips/xm-mipsm3.h: Obsolete file.
6179 * mipsm3-nat.c: Obsolete file.
6180 * configure.host: Obsolete mips-dec-mach3*.
6181 * configure.tgt: Obsolete mips*-*-mach3*.
6182
6183 2003-04-09 Andrew Cagney <cagney@redhat.com>
6184
6185 * doublest.h: Update copyright.
6186 (deprecated_store_floating, deprecated_extract_floating): Rename
6187 store_floating and extract_floating. Update comments.
6188 * doublest.c: Update copyright.
6189 (extract_floating_by_length): Replace extract_floating.
6190 (store_floating_by_length): Replace store_floating.
6191 (deprecated_extract_floating): New function.
6192 (deprecated_store_floating): New function.
6193 (extract_typed_floating): Call extract_floating_by_length.
6194 (store_typed_floating): Call store_floating_by_length.
6195 * x86-64-tdep.c (x86_64_store_return_value): Update.
6196 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
6197 (sh64_extract_return_value): Update.
6198 (sh_sh4_register_convert_to_virtual): Update.
6199 (sh_sh64_register_convert_to_virtual): Update.
6200 (sh_sh4_register_convert_to_raw): Update.
6201 (sh_sh64_register_convert_to_raw): Update.
6202 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
6203 (rs6000_register_convert_to_raw): Update.
6204 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
6205 (ia64_register_convert_to_raw): Update.
6206 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
6207 (REGISTER_CONVERT_TO_VIRTUAL): Update.
6208 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
6209 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
6210 (alpha_register_convert_to_raw): Update.
6211
6212 2003-04-08 Andrew Cagney <cagney@redhat.com>
6213
6214 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
6215 * gdbarch.h, gdbarch.c: Re-generate.
6216 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
6217 (d10v_gdbarch_init): Do not set saved_pc_after_call.
6218 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
6219 conditionally, use frame_pc_unwind as an alternative. Add
6220 comments.
6221 * arch-utils.c (init_frame_pc_default): Only call
6222 SAVED_PC_AFTER_CALL when available.
6223
6224 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6225
6226 * infrun.c (stop_soon): Rename from stop_soon_quietly.
6227 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
6228 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
6229 (start_remote): Ditto.
6230 (handle_inferior_event): Ditto.
6231 (save_inferior_status): Ditto.
6232 (restore_inferior_status): Ditto.
6233 * infcmd.c (attach_command): Ditto.
6234 * fork-child.c (startup_inferior): Ditto.
6235 * inferior.h (stop_soon): Rename from stop_soon_quietly.
6236 * alpha-tdep.c (heuristic_proc_start): Ditto.
6237 * mips-tdep.c (heuristic_proc_start): Ditto.
6238 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
6239 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
6240 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
6241 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
6242 * remote-vx.c (vx_create_inferior): Ditto.
6243
6244 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
6245
6246 * infrun.c (stop_soon_quietly): Make it an enum, to better
6247 override the default behavior of handle_inferior_event.
6248 (clear_proceed_status): Update uses of stop_soon_quietly to
6249 reflect that it is now an enum.
6250 (start_remote): Ditto.
6251 (handle_inferior_event): Change logic a bit if stop_soon_quietly
6252 is set to handle the new GNU/Linux kernel behavior for
6253 attach/sigstop. Update uses of stop_soon_quietly.
6254 * inferior.h (enum stop_kind): New enum.
6255 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
6256 Reset normal handle_inferior_event behavior, afterwards.
6257 * fork-child.c (startup_inferior): Update.
6258 * alpha-tdep.c (heuristic_proc_start): Update.
6259 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
6260 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
6261 * solib-osf.c (osf_solib_create_inferior_hook): Update.
6262 * solib-irix.c (irix_solib_create_inferior_hook): Update.
6263 * remote-vx.c (vx_create_inferior): Update.
6264 * mips-tdep.c (heuristic_proc_start): Update.
6265
6266 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
6267
6268 * disasm.c (dump_insns): Move variables inside loop, or they will
6269 be freed more than once, causing wild memory corruptions.
6270 (gdb_disassembly): Look for the substring "-thread",
6271 instead of "-threads" in the target name, to make sure to find
6272 the 'multi-thread' target. Also, make sure we do the right thing
6273 with the "core" target.
6274
6275 2003-04-07 Kevin Buettner <kevinb@redhat.com>
6276
6277 * mips-tdep.c (mips_print_fp_register): New function, created from
6278 do_fp_register_row(). Registers are now (also) printed as hex.
6279 Only one register is printed per row.
6280 (mips_print_register, do_fp_register_row): Print floating point
6281 registers with mips_print_fp_register().
6282
6283 2003-04-06 Andrew Cagney <cagney@redhat.com>
6284
6285 * valprint.h (inspect_it): Add extern declaration.
6286 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
6287 (selectors_info, classes_info): Ditto.
6288 (find_objc_msgcall): Fix indentation.
6289 (objc_printstr): Delete extern declarations.
6290
6291 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
6292
6293 2003-04-06 Andrew Cagney <cagney@redhat.com>
6294
6295 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
6296 Update comment.
6297 * frame.c (legacy_saved_regs_this_id): Update.
6298 (legacy_get_prev_frame): Update.
6299 * xstormy16-tdep.c: Update comment.
6300 * sparc-tdep.c (sparc_frame_chain): Update comment.
6301 * blockframe.c (legacy_frame_chain_valid): Update.
6302
6303 2003-04-06 Andrew Cagney <cagney@redhat.com>
6304
6305 * valprint.c (val_print_type_code_int): Delete #ifdef
6306 PRINT_TYPELESS_INTEGER code.
6307
6308 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6309 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6310 multi-arch definition.
6311 * gdbarch.h: Re-generate.
6312
6313 2003-04-05 Andrew Cagney <cagney@redhat.com>
6314
6315 Eliminate FRAME_FIND_SAVED_REGS.
6316 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6317 Change FSR parameter to a pointer.
6318 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6319 Assume FSR parameter is a pointer.
6320 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6321 Make fsr a pointer.
6322 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6323 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6324 saved_regs a pointer.
6325 (hppa_frame_saved_pc): Ditto.
6326 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6327 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6328 pointer.
6329 (restore_pc_queue): Make fsr a pointer.
6330 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6331 (hppa_frame_chain): Make saved_regs a pointer, call
6332 hppa_frame_init_saved_regs.
6333 * sparc-tdep.c: Include "gdb_assert.h".
6334 (sparc_frame_find_saved_regs): Replace internal_error with
6335 gdb_assert.
6336 * remote-vxsparc.c (vx_read_register): Delete reference to
6337 FRAME_FIND_SAVED_REGS.
6338 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6339 * gdbarch.h: Regenerate.
6340 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6341 (deprecated_get_frame_saved_regs): Delete declaration.
6342 (struct frame_saved_regs): Delete definition.
6343 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6344 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6345 (hppa_frame_find_saved_regs): Delete declaration.
6346 (FRAME_FIND_SAVED_REGS): Delete macro.
6347 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6348 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6349 FRAME_FIND_SAVED_REGS in comment.
6350
6351 2003-04-05 Andrew Cagney <cagney@redhat.com>
6352
6353 * frame.c (frame_func_unwind, get_frame_func): New functions.
6354 * frame.h (get_frame_func, frame_func_unwind): Declare.
6355 (struct frame_info): Add field "prev_func" for caching the
6356 previous frame's function address.
6357 * arm-tdep.c (arm_frameless_function_invocation): Combine
6358 get_pc_function_start and get_frame_pc into get_frame_func.
6359 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6360 (sh64_nofp_frame_init_saved_regs): Ditto.
6361 * s390-tdep.c (s390_function_start): Ditto.
6362 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6363 (rs6000_frameless_function_invocation): Ditto.
6364 (rs6000_frame_saved_pc): Ditto.
6365 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6366 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6367 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6368 (i386_frame_init_saved_regs): Ditto.
6369 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6370 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6371 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6372 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6373 * blockframe.c (frameless_look_for_prologue): Ditto.
6374
6375 2003-04-05 Andrew Cagney <cagney@redhat.com>
6376
6377 * frame.c (legacy_get_prev_frame): Link prev to next at the
6378 function start. Update comments.
6379
6380 2003-04-05 Andrew Cagney <cagney@redhat.com>
6381
6382 * frame.c (get_frame_id): Update comment.
6383 (legacy_get_prev_frame): Update comment.
6384 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6385 * gdbarch.h: Regenerate.
6386 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6387 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6388
6389 2003-04-05 Andrew Cagney <cagney@redhat.com>
6390
6391 * stack.c (print_frame_info): Use get_frame_pc.
6392
6393 2003-04-04 Andrew Cagney <cagney@redhat.com>
6394
6395 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6396 the frame's type from the unwinder.
6397 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6398 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6399 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6400 (get_frame_base_address): Use get_frame_type.
6401 (get_frame_locals_address, get_frame_args_address): Ditto.
6402 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6403 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6404 (struct frame_info): Add comment explaining why the frame contains
6405 a "type" field.
6406 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6407 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6408 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6409 NORMAL_FRAME.
6410 * frame-unwind.h: Include "frame.h".
6411 (struct frame_unwind): Add "type" field.
6412 * Makefile.in (frame_unwind_h): Add $(frame_h).
6413
6414 2003-04-04 Andrew Cagney <cagney@redhat.com>
6415
6416 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6417 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6418 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6419 get_frame_base.
6420 (d10v_unwind_dummy_id): Use frame_id_build.
6421 * frame.c (find_frame_sal): Use get_frame_pc.
6422 (create_new_frame): Use deprecated_update_frame_pc_hack and
6423 deprecated_update_frame_base_hack.
6424 (create_sentinel_frame): Add comment about ->pc going away.
6425 (get_prev_frame): Add comment about ->pc going away.
6426 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6427 frame_id_build, deprecated_update_frame_pc_hack and
6428 deprecated_update_frame_base_hack.
6429 (select_frame): Use get_frame_pc.
6430 (legacy_saved_regs_this_id): Use frame_id_build.
6431
6432 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
6433
6434 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6435 signed integer case.
6436 (classify_argument): Handle enumerations and references.
6437
6438 2003-04-04 Andrew Cagney <cagney@redhat.com>
6439
6440 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6441 ID to NULL.
6442
6443 2003-04-01 Adam Fedor <fedor@gnu.org>
6444
6445 * gdb/objc-lang.c (selectors_info): Replace calls to
6446 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6447 SYMBOL_NATURAL_NAME.
6448 (classes_info, find_methods): Likewise.
6449
6450 2003-04-03 Kevin Buettner <kevinb@redhat.com>
6451
6452 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6453 ``mach'' to the value determined by bfd_default_set_arch_mach().
6454
6455 2003-04-02 Bob Rossi <bob_rossi@cox.net>
6456
6457 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6458 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6459 (mi-cmd-file.o): Update dependencies.
6460
6461 2003-04-01 Kevin Buettner <kevinb@redhat.com>
6462
6463 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6464 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6465
6466 2003-04-01 Adam Fedor <fedor@gnu.org>
6467
6468 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6469 * language.h (struct language_defn): Add la_demangle.
6470 (language_demangle): Declare.
6471 * language.c (language_demangle): New function.
6472 (unk_lang_demangle): Likewise.
6473 (unknown_language_defn, auto_language_defn, local_language_defn):
6474 Add ukn_lang_demangle.
6475 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
6476 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
6477 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6478 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6479 * jv-lang.c (java_demangle): New function
6480 (java_language_defn): Use it for la_demangle element.
6481 * objc-lang.c (objc_demangle): Add options argument
6482 (objc_language_defn): Use objc_demangle for la_demangle element.
6483 * maint.c (maintenance_demangle): Replace switch with
6484 call to language_demangle.
6485 * utils.c (fprintf_symbol_filtered): Likewise.
6486
6487 2003-04-01 Andrew Cagney <cagney@redhat.com>
6488
6489 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6490 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6491 PRINT_TYPELESS_INTEGER.
6492 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6493 PUSH_RETURN_ADDRESS.
6494
6495 2003-04-01 Andrew Cagney <cagney@redhat.com>
6496
6497 * Makefile.in (d10v-tdep.o): Update dependencies.
6498 * d10v-tdep.c: Include "frame-base.h".
6499 (d10v_frame_unwind): Make constant.
6500 (d10v_frame_base_address): New function.
6501 (d10v_frame_base): New variable.
6502 (d10v_gdbarch_init): Set frame_base default.
6503 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6504 comment for base.
6505 (d10v_frame_unwind_cache): Set and use "prev_sp".
6506 (d10v_frame_this_id): Use the previous frame's inner most stack
6507 address and this frame's func address for the frame ID. Use
6508 frame_id_build. Don't analyze beyond the current instruction.
6509
6510 2003-04-01 Andrew Cagney <cagney@redhat.com>
6511
6512 * frame.h (get_frame_locals_address, get_frame_args_address):
6513 Refer to the base address, instead of the address of the first
6514 local or parameter.
6515
6516 2003-04-01 Andrew Cagney <cagney@redhat.com>
6517
6518 Add frame debug info addresses:
6519 * frame-base.c: New file.
6520 * frame-base.h: New file.
6521 * frame.h (struct frame_base): Add opaque declaration.
6522 (get_frame_base): Update comment.
6523 (get_frame_base_address): Declare.
6524 (get_frame_locals_address): Declare.
6525 (get_frame_args_address): Declare.
6526 (struct frame_info): Add "base" and "base_cache". Update
6527 comments on the unwinder.
6528 * frame.c: Include "frame-base.h".
6529 (get_frame_locals_address): New function.
6530 (get_frame_base_address): New function.
6531 (get_frame_args_address): New function.
6532 * findvar.c (read_var_value): Use get_frame_locals_address and
6533 get_frame_args_address.
6534 * stack.c (frame_info): Use get_frame_locals_address and
6535 get_frame_args_address.
6536 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6537 moved to "frame-base.c".
6538 * printcmd.c (print_frame_nameless_args): Ditto.
6539 * symtab.h (address_class): Update comments.
6540 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6541 get_frame_base_address.
6542 * dwarf2expr.c (execute_stack_op): Ditto.
6543 * Makefile.in (frame_base_h): Define.
6544 (frame.o): Update dependencies.
6545 (frame-base.o): Add dependencies.
6546 (SFILES): Add frame-base.c.
6547 (COMMON_OBS): Add frame-base.o.
6548
6549 2003-04-01 Andrew Cagney <cagney@redhat.com>
6550
6551 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6552 CALL_DUMMY_LENGTH): Ditto.
6553 * gdbarch.c: Re-generate.
6554 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6555 (CALL_DUMMY_LENGTH): Delete macro.
6556 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6557 * arm-tdep.c (arm_gdbarch_init): Ditto.
6558 * avr-tdep.c (avr_gdbarch_init): Ditto.
6559 * cris-tdep.c (cris_gdbarch_init): Ditto.
6560 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6561 * frv-tdep.c (frv_gdbarch_init): Ditto.
6562 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6563 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6564 * i386-tdep.c (i386_gdbarch_init): Ditto.
6565 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6566 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6567 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6568 * mips-tdep.c (mips_gdbarch_init): Ditto.
6569 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6570 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6571 * s390-tdep.c (s390_gdbarch_init): Ditto.
6572 * sh-tdep.c (sh_gdbarch_init): Ditto.
6573 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6574 * v850-tdep.c (v850_gdbarch_init): Ditto.
6575 * vax-tdep.c (vax_gdbarch_init): Ditto.
6576 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6577
6578 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
6579
6580 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6581
6582 2003-04-01 Andrew Cagney <cagney@redhat.com>
6583
6584 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6585 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6586 * gdbarch.h, gdbarch.c: Re-generate.
6587 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6588 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6589 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6590 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6591 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6592 * infcmd.c (run_stack_dummy): Simplify assuming
6593 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6594 * infrun.c (handle_inferior_event): Ditto.
6595 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6596 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6597 * arm-tdep.c (arm_gdbarch_init): Ditto.
6598 * avr-tdep.c (avr_gdbarch_init): Ditto.
6599 * cris-tdep.c (cris_gdbarch_init): Ditto.
6600 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6601 * frv-tdep.c (frv_gdbarch_init): Ditto.
6602 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6603 * i386-tdep.c (i386_gdbarch_init): Ditto.
6604 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6605 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6606 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6607 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6608 * mips-tdep.c (mips_gdbarch_init): Ditto.
6609 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6610 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6611 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6612 * s390-tdep.c (s390_gdbarch_init): Ditto.
6613 * sh-tdep.c (sh_gdbarch_init): Ditto.
6614 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6615 * v850-tdep.c (v850_gdbarch_init): Ditto.
6616 * vax-tdep.c (vax_gdbarch_init): Ditto.
6617 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6618
6619 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
6620
6621 * symfile.c (symfile_relocate_debug_section): Update call to
6622 bfd_simple_get_relocated_section_contents.
6623
6624 2003-03-31 Andrew Cagney <cagney@redhat.com>
6625
6626 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6627 * gdbarch.h, gdbarch.c: Regenerate.
6628 * inferior.h (FIX_CALL_DUMMY): Delete macro.
6629 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
6630 available.
6631 * frame.h (generic_fix_call_dummy): Delete declaration.
6632 * dummy-frame.h: Update comment.
6633 * dummy-frame.c (generic_fix_call_dummy): Delete function.
6634 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6635 fix_call_dummy.
6636 * sh-tdep.c (sh_gdbarch_init): Ditto.
6637 * s390-tdep.c (s390_gdbarch_init): Ditto.
6638 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6639 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6640 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6641 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6642 * i386-tdep.c (i386_gdbarch_init): Ditto.
6643 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6644 * frv-tdep.c (frv_gdbarch_init): Ditto.
6645 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6646 * cris-tdep.c (cris_gdbarch_init): Ditto.
6647 * avr-tdep.c (avr_gdbarch_init): Ditto.
6648 * arm-tdep.c (arm_gdbarch_init): Ditto.
6649
6650 2003-03-31 J. Brobecker <brobecker@gnat.com>
6651
6652 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
6653 (INIT_FRAME_AP): Likewise.
6654 (EXTRA_FRAME_INFO): Likewise.
6655
6656 2003-03-31 Andrew Cagney <cagney@redhat.com>
6657
6658 * gdbarch.sh: Include "symfile.h".
6659 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
6660 * gdbarch.h, gdbarch.c: Re-generate.
6661 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
6662 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6663 call_dummy_address, the default is at entry_point_address.
6664 * v850-tdep.c (v850_gdbarch_init): Ditto.
6665 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6666 * sh-tdep.c (sh_gdbarch_init): Ditto.
6667 * s390-tdep.c (s390_gdbarch_init): Ditto.
6668 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6669 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6670 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6671 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6672 * i386-tdep.c (i386_gdbarch_init): Ditto.
6673 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6674 * frv-tdep.c (frv_gdbarch_init): Ditto.
6675 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6676 * cris-tdep.c (cris_gdbarch_init): Ditto.
6677 * arm-tdep.c (arm_gdbarch_init): Ditto.
6678
6679 2003-03-31 Andrew Cagney <cagney@redhat.com>
6680
6681 * gdbarch.sh (CALL_DUMMY_P): Delete.
6682 * gdbarch.h, gdbarch.c: Re-generate.
6683 * inferior.h (CALL_DUMMY_P): Delete macro.
6684 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6685 * vax-tdep.c (vax_gdbarch_init): Update.
6686 * v850-tdep.c (v850_gdbarch_init): Update.
6687 * sparc-tdep.c (sparc_gdbarch_init): Update.
6688 * sh-tdep.c (sh_gdbarch_init): Update.
6689 * s390-tdep.c (s390_gdbarch_init): Update.
6690 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6691 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6692 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6693 * mips-tdep.c (mips_gdbarch_init): Update.
6694 * mcore-tdep.c (mcore_gdbarch_init): Update.
6695 * m68k-tdep.c (m68k_gdbarch_init): Update.
6696 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6697 * ia64-tdep.c (ia64_gdbarch_init): Update.
6698 * i386-tdep.c (i386_gdbarch_init): Update.
6699 * h8300-tdep.c (h8300_gdbarch_init): Update.
6700 * frv-tdep.c (frv_gdbarch_init): Update.
6701 * d10v-tdep.c (d10v_gdbarch_init): Update.
6702 * cris-tdep.c (cris_gdbarch_init): Update.
6703 * breakpoint.c (deprecated_frame_in_dummy): Update.
6704 * avr-tdep.c (avr_gdbarch_init): Update.
6705 * alpha-tdep.c (alpha_gdbarch_init): Update.
6706 * arm-tdep.c (arm_gdbarch_init): Update.
6707 * dummy-frame.c (dummy_frame_this_id): Update comments.
6708 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
6709 * frame.c (legacy_get_prev_frame): Ditto.
6710 * valops.c (call_function_by_hand): Delete function.
6711 (hand_function_call): Rename to call_function_by_hand
6712
6713 2003-03-30 Andrew Cagney <cagney@redhat.com>
6714
6715 2002-11-10 Klee Dienes <kdienes@apple.com>
6716 * value.h (struct value): Update comment.
6717
6718 2003-03-30 Andrew Cagney <cagney@redhat.com>
6719
6720 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
6721 D10V_FP_REGNUM.
6722 (d10v_gdbarch_init): Do not set fp_regnum.
6723
6724 * frame.c (get_frame_base): Force ID initialization.
6725 (get_prev_frame): Move computation of the frame ID from here ...
6726 (get_frame_id): ... to here.
6727 (legacy_get_prev_frame): Mark the frame ID as valid.
6728 * frame.h (struct frame_info): Add field "id_p".
6729
6730 2003-03-30 Mark Kettenis <kettenis@gnu.org>
6731
6732 * i386-tdep.c (i386_store_struct_return): Removed.
6733 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
6734
6735 2003-03-30 Andrew Cagney <cagney@redhat.com>
6736
6737 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
6738 * gdbarch.h, gdbarch.c: Regenerate.
6739 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
6740 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6741 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6742 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6743 * i386-tdep.c (i386_gdbarch_init): Ditto.
6744 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6745 * cris-tdep.c (cris_gdbarch_init): Ditto.
6746 * vax-tdep.c (vax_gdbarch_init): Ditto.
6747 * s390-tdep.c (s390_gdbarch_init): Ditto.
6748 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6749 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6750 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6751 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
6752 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6753 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
6754 * sparc-tdep.c (sparc_gdbarch_init): Update.
6755 * sh-tdep.c (sh_gdbarch_init): Update.
6756 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6757 * mips-tdep.c (mips_gdbarch_init): Update.
6758 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6759 * ia64-tdep.c (ia64_gdbarch_init): Update.
6760 * frv-tdep.c (frv_gdbarch_init): Update.
6761 * avr-tdep.c (avr_gdbarch_init): Update.
6762 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
6763 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
6764 instead of when push_dummy_call is not available.
6765
6766 2003-03-30 Andrew Cagney <cagney@redhat.com>
6767
6768 * infttrace.c: Include "gdbthread.h".
6769 (parent_attach_all): Fix function signature.
6770 (call_ptrace): Update call.
6771 * Makefile.in (infttrace.o): Update dependencies.
6772
6773 2003-03-30 Andrew Cagney <cagney@redhat.com>
6774
6775 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
6776 PUSH_RETURN_ADDRESS.
6777 * gdbarch.h, gdbarch.c: Regenerate.
6778 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6779 * x86-64-tdep.c (x86_64_init_abi): Update.
6780 * v850-tdep.c (v850_gdbarch_init): Update.
6781 * sparc-tdep.c (sparc_gdbarch_init): Update.
6782 * sh-tdep.c (sh_gdbarch_init): Update.
6783 * s390-tdep.c (s390_gdbarch_init): Update.
6784 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6785 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6786 * mips-tdep.c (mips_gdbarch_init): Update.
6787 * mcore-tdep.c (mcore_gdbarch_init): Update.
6788 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6789 * ia64-tdep.c (ia64_gdbarch_init): Update.
6790 * i386-tdep.c (i386_gdbarch_init): Update.
6791 * h8300-tdep.c (h8300_gdbarch_init): Update.
6792 * frv-tdep.c (frv_gdbarch_init): Update.
6793 * cris-tdep.c (cris_gdbarch_init): Update.
6794 * avr-tdep.c (avr_gdbarch_init): Update.
6795 * arm-tdep.c (arm_gdbarch_init): Update.
6796 * valops.c (hand_function_call): Update.
6797
6798 2003-03-29 Andrew Cagney <cagney@redhat.com>
6799
6800 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
6801 sizeof_call_dummy_words.
6802 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
6803 define.
6804 * gdbarch.h: Regenerate.
6805
6806 2003-03-29 Andrew Cagney <cagney@redhat.com>
6807
6808 * infttrace.h: New file.
6809 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
6810 (hpread_get_textlow): Detect an uninitialized dn_bufp.
6811 (hpread_read_doc_function_type): Detect an initialized type1.
6812 (hpread_quick_traverse): Initialize mod_name_string.
6813 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
6814 (som_solib_get_solib_by_pc): Declare.
6815 (so_lib_thread_start_addr): Declare.
6816 (no_shared_libraries): Declare.
6817 * somread.c (init_import_symbols): Make static. Add forward
6818 declaration.
6819 * config/pa/nm-hppah.h: Include "infttrace.h" for
6820 parent_attach_all.
6821 (hppa_insert_hw_watchpoint): Declare.
6822 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
6823 * hppah-nat.c: Include "gdb_string.h".
6824 (parent_attach_all): Delete extern declaration, moved to
6825 "infttrace.h".
6826 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
6827 int.
6828 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
6829 * Makefile.in (infttrace_h): Define.
6830 (hpread.o): Update dependencies.
6831 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
6832 * hppa-hpux-tdep.c: Include "gdb_string.h".
6833 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
6834 * infrun.c (handle_inferior_event): Always initialize
6835 stepped_after_stopped_by_watchpoint. Add default and remove
6836 fallthrough in switch statement.
6837 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
6838 parameter to int.
6839 (hppa_remove_hw_watchpoint): Ditto.
6840
6841 2003-03-29 Andrew Cagney <cagney@redhat.com>
6842
6843 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
6844 offset.
6845
6846 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
6847
6848 * arm-tdep.c (arm_push_arguments): Delete.
6849 (struct stack_item): New type.
6850 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
6851 (arm_store_struct_return): Delte.
6852 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
6853 arm_push_arguments or arm_store_struct_return.
6854
6855 2003-03-28 Andrew Cagney <cagney@redhat.com>
6856
6857 * Makefile.in (d10v-tdep.o): Update dependencies.
6858 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
6859 * d10v-tdep.c: Include "remote.h".
6860 (target_resume_hook): Delete extern declaration.
6861 (target_wait_loop_hook): Ditto.
6862 (tdisassemble_command): Eliminate assignment in "if" conditional.
6863 (d10v_ts2_register_sim_regno): Eliminate call to
6864 legacy_register_sim_regno.
6865 (d10v_ts3_register_sim_regno): Ditto.
6866
6867 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
6868
6869 * thread.c: Reindented.
6870 * lin-lwp.c: Ditto.
6871 * linux-proc.c: Ditto.
6872
6873 2003-03-28 Bob Rossi <bob_rossi@cox.net>
6874
6875 * MAINTAINERS (write after approval): Add myself.
6876
6877 2003-03-27 Theodore A. Roth <troth@openavr.org>
6878
6879 * objc-exp.y: Add missing semi-colons.
6880
6881 2003-03-27 Andrew Cagney <cagney@redhat.com>
6882
6883 * regcache.c (write_sp): Delete function and references.
6884 * inferior.h (write_sp): Delete declaration.
6885 * valops.c (hand_function_call): Replace write_sp with
6886 TARGET_WRITE_SP.
6887 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
6888 (sparc_pop_frame): Ditto.
6889
6890 2003-03-27 Andrew Cagney <cagney@redhat.com>
6891
6892 * NEWS: Mention removal of support for hppa*-*-bsd* and
6893 hppa*-*-osf* natives, and hppa*-*-pro* target.
6894 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
6895 * config/pa/xm-pa.h: Obsolete file.
6896 * config/pa/xm-hppab.h: Obsolete file.
6897 * config/pa/nm-hppab.h: Obsolete file.
6898 * config/pa/tm-hppab.h: Obsolete file.
6899 * config/pa/tm-hppao.h: Obsolete file.
6900 * config/pa/nm-hppao.h: Obsolete file.
6901 * config/pa/tm-pro.h: Obsolete file.
6902 * config/pa/hppaosf.mt: Obsolete file.
6903 * config/pa/hppaosf.mh: Obsolete file.
6904 * config/pa/hppapro.mt: Obsolete file.
6905 * config/pa/hppabsd.mt: Obsolete file.
6906 * config/pa/hppabsd.mh: Obsolete file.
6907 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
6908 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
6909 hppa*-*-osf*.
6910
6911 2003-03-27 Andrew Cagney <cagney@redhat.com>
6912
6913 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
6914 push_arguments. Don't set push_return_address or write_sp.
6915 (d10v_push_dummy_call): Replace d10v_push_arguments.
6916 (d10v_push_return_address, d10v_write_sp): Delete function,
6917 handled by push_dummy_call.
6918
6919 2003-03-26 Andrew Cagney <cagney@redhat.com>
6920
6921 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
6922 (push_dummy_call): New pure multi-arch replacement with gdbarch,
6923 regcache and dummy_addr parameters.
6924 * gdbarch.h, gdbarch.c: Re-generate.
6925 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
6926 available; assume it will handle stack alignment and return
6927 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
6928 legacy_push_arguments.
6929 (legacy_push_arguments): Rename default_push_arguments.
6930 * value.h (legacy_push_arguments): Rename default_push_arguments.
6931 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
6932 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6933 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6934 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6935 * config/i386/tm-symmetry.h: Update.
6936 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6937 * x86-64-tdep.c (x86_64_init_abi): Update.
6938 * v850-tdep.c (v850_gdbarch_init): Update.
6939 * sparc-tdep.c (sparc_gdbarch_init): Update.
6940 * sh-tdep.c (sh_gdbarch_init): Update.
6941 * s390-tdep.c (s390_gdbarch_init): Update.
6942 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6943 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6944 * mips-tdep.c (mips_gdbarch_init): Update.
6945 * mcore-tdep.c (mcore_gdbarch_init): Update.
6946 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6947 * ia64-tdep.c (ia64_gdbarch_init): Update.
6948 * i386-tdep.c (i386_gdbarch_init): Update.
6949 * hppa-tdep.c (hppa_gdbarch_init): Update.
6950 * h8300-tdep.c (h8300_gdbarch_init): Update.
6951 * frv-tdep.c (frv_gdbarch_init): Update.
6952 * d10v-tdep.c (d10v_gdbarch_init): Update.
6953 * cris-tdep.c (cris_gdbarch_init): Update.
6954 * avr-tdep.c (avr_gdbarch_init): Update.
6955 * arm-tdep.c (arm_gdbarch_init): Update.
6956 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6957 * alpha-tdep.c (alpha_gdbarch_init): Update.
6958
6959 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6960
6961 * signals/signals.c (do_target_signal_to_host): Correct realtime
6962 signal range test.
6963
6964 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6965
6966 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
6967 (struct sal_chain, map_catch_names): Remove.
6968 (catch_exception_command_1): Don't call
6969 handle_gnu_4_16_catch_command.
6970
6971 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6972
6973 From Mark Dettinger <dettinge@de.ibm.com>:
6974 * dwarf2cfi.c (read_2u): Increment pointer by two.
6975
6976 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6977
6978 * signals/signals.c: Fix typos in last change.
6979
6980 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
6981
6982 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
6983 not already defined. Use __SIGRTMIN if available.
6984 (target_signal_from_host): Remove SIGRTMIN block.
6985 (do_target_signal_to_host): Remove SIGRTMIN block; check that
6986 the signal is within the realtime range.
6987
6988 2003-03-25 Adam Fedor <fedor@gnu.org>
6989
6990 * Makefile.in (infrun.o): Add $(language_h)
6991 * infrun.c (handle_inferior_event): Use skip_language_trampoline
6992 for language specific trampolines.
6993 * language.h (struct language_defn): Add skip_trampoline.
6994 (skip_language_trampoline): Declare.
6995 * language.c (unk_lang_trampoline, skip_language_trampoline):
6996 New functions.
6997 (unknown_language_defn, auto_language_defn, local_language_defn):
6998 Add ukn_lang_trampoline.
6999 * ada-lang.c (ada_language_defn): Add NULL for language
7000 specific skip_trampoline.
7001 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
7002 scm-lang.c: Likewise.
7003 * objc-lang.c (objc_skip_trampoline): New function.
7004 (objc_language_defn): Add objc_skip_trampoline.
7005
7006 2003-03-25 Andrew Cagney <cagney@redhat.com>
7007
7008 * frame.c (get_prev_frame): Delay validating a frame's ID -
7009 non-NULL, didn't go backwards - until an attempt to unwind it to
7010 the previous frame.
7011
7012 2003-03-25 Andrew Cagney <cagney@redhat.com>
7013
7014 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
7015 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
7016 * gdbarch.h, gdbarch.c: Re-generate.
7017 * config/sparc/tm-sparc.h
7018 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
7019 * sparc-tdep.c (sparc_gdbarch_init): Set
7020 deprecated_extra_stack_alignment_needed.
7021 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
7022 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
7023 extra_stack_alignment_needed.
7024 * v850-tdep.c (v850_gdbarch_init): Ditto.
7025 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7026 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7027 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7028 * cris-tdep.c (cris_gdbarch_init): Ditto.
7029 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7030 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7031
7032 2003-03-25 Andrew Cagney <cagney@redhat.com>
7033
7034 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
7035 STORE_STRUCT_RETURN.
7036 * gdbarch.h, gdbarch.c: Regenerate.
7037 * d10v-tdep.c (d10v_store_struct_return): Delete function.
7038 (d10v_push_arguments): Set the struct return register.
7039 (d10v_gdbarch_init): Update.
7040 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7041 * x86-64-tdep.c (x86_64_init_abi): Update.
7042 * vax-tdep.c (vax_gdbarch_init): Update.
7043 * v850-tdep.c (v850_gdbarch_init): Update.
7044 * sparc-tdep.c (sparc_gdbarch_init): Update.
7045 * sh-tdep.c (sh_gdbarch_init): Update.
7046 * s390-tdep.c (s390_gdbarch_init): Update.
7047 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7048 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7049 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7050 * mips-tdep.c (mips_gdbarch_init): Update.
7051 * mcore-tdep.c (mcore_gdbarch_init): Update.
7052 * m68k-tdep.c (m68k_gdbarch_init): Update.
7053 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7054 * ia64-tdep.c (ia64_gdbarch_init): Update.
7055 * i386-tdep.c (i386_gdbarch_init): Update.
7056 * hppa-tdep.c (hppa_gdbarch_init): Update.
7057 * h8300-tdep.c (h8300_gdbarch_init): Update.
7058 * frv-tdep.c (frv_gdbarch_init): Update.
7059 * cris-tdep.c (cris_gdbarch_init): Update.
7060 * avr-tdep.c (avr_gdbarch_init): Update.
7061 * arm-tdep.c (arm_gdbarch_init): Update.
7062 * alpha-tdep.c (alpha_gdbarch_init): Update.
7063
7064 2003-03-25 Andrew Cagney <cagney@redhat.com>
7065
7066 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
7067 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
7068 CALL_DUMMY_STACK_ADJUST with a predicate variable.
7069 * gdbarch.h, gdbarch.c: Regenerate.
7070 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7071 call_dummy_stack_adjust_p.
7072 * vax-tdep.c (vax_gdbarch_init): Ditto.
7073 * v850-tdep.c (v850_gdbarch_init): Ditto.
7074 * sh-tdep.c (sh_gdbarch_init): Ditto.
7075 * s390-tdep.c (s390_gdbarch_init): Ditto.
7076 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7077 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7078 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7079 * mips-tdep.c (mips_gdbarch_init): Ditto.
7080 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7081 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7082 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7083 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7084 * i386-tdep.c (i386_gdbarch_init): Ditto.
7085 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7086 * frv-tdep.c (frv_gdbarch_init): Ditto.
7087 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7088 * cris-tdep.c (cris_gdbarch_init): Ditto.
7089 * avr-tdep.c (avr_gdbarch_init): Ditto.
7090 * arm-tdep.c (arm_gdbarch_init): Ditto.
7091 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7092 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7093 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
7094 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
7095 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
7096 call_dummy_stack_adjust_p.
7097 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
7098 (CALL_DUMMY_STACK_ADJUST): Delete macro.
7099 * sparc-tdep.c (sparc32_push_arguments): Update.
7100 * valops.c (hand_function_call): Update.
7101
7102 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
7103
7104 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
7105 set_gdbarch_char_signed.
7106
7107 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7108
7109 PR cli/548
7110 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
7111
7112 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
7113
7114 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
7115 (_initialize_arm_tdep): Don't set tm_print_insn.
7116
7117 2003-03-24 Adam Fedor <fedor@gnu.org>
7118
7119 * Makefile.in (YYOBJ): Add objc-exp.tab.o
7120 * objc-lang.h: Add multiple inclusion protection.
7121 (start_msglist, add_msglist, end_msglist): Additional declarations.
7122
7123 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
7124
7125 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
7126 value was renamed to ARM_FLOAT_SOFT_FPA.
7127
7128 2003-03-23 Andrew Cagney <cagney@redhat.com>
7129
7130 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
7131 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
7132 * gdbarch.h, gdbarch.c: Regenerate.
7133 * valops.c (hand_function_call): Update.
7134 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7135 * frame.c (legacy_saved_regs_this_id): Update.
7136 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
7137 * dummy-frame.h: Update.
7138 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
7139 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
7140 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
7141 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
7142 * config/m68k/tm-sun3.h: Update.
7143 * blockframe.c (inside_main_func, frame_chain_valid): Update.
7144 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7145 * x86-64-tdep.c (x86_64_init_abi): Update.
7146 * vax-tdep.c (vax_gdbarch_init): Update.
7147 * v850-tdep.c (v850_gdbarch_init): Update.
7148 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
7149 * sh-tdep.c (sh_gdbarch_init): Update.
7150 * s390-tdep.c (s390_gdbarch_init): Update.
7151 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
7152 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
7153 (frame_get_saved_regs): Update.
7154 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7155 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7156 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7157 * mips-tdep.c (mips_gdbarch_init): Update.
7158 * mcore-tdep.c (mcore_gdbarch_init): Update.
7159 * m68k-tdep.c (m68k_gdbarch_init): Update.
7160 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7161 * ia64-tdep.c (ia64_gdbarch_init): Update.
7162 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
7163 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7164 (i386_interix_back_one_frame): Update.
7165 * hppa-tdep.c (hppa_gdbarch_init): Update.
7166 (hppa_init_extra_frame_info): Update.
7167 * h8300-tdep.c (h8300_gdbarch_init): Update.
7168 * frv-tdep.c (frv_gdbarch_init): Update.
7169 * cris-tdep.c (cris_gdbarch_init): Update.
7170 * avr-tdep.c (avr_gdbarch_init): Update.
7171 * arm-tdep.c (arm_gdbarch_init): Update.
7172 * alpha-tdep.c (alpha_gdbarch_init): Update.
7173
7174 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7175
7176 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
7177 (arm_get_fp_model): Declare.
7178 * arm-tdep.c (fp_model_strings): New string array.
7179 (arm_fp_model, current_fp_model): New variables.
7180 (arm_get_fp_model): New function.
7181 (arm_set_fp): New function.
7182 (set_fp_model_sfunc): New function.
7183 (show_fp_model): New function.
7184 (_initialize_arm_tdep): Add new command to set/show the FPU.
7185 (arm_extract_return_value): Use arm_get_fp_model.
7186 (arm_store_return_value): Likewise.
7187 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
7188 to initialize the floating-point data types.
7189 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
7190 model is FPA.
7191
7192 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7193
7194 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
7195 the current setting of each value.
7196 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
7197 new_set and new_show. Use add_setshow_cmd_full and
7198 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
7199 commands and add new version as subcommands of "set/show arm".
7200
7201 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7202
7203 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
7204 (set_arm_command, show_arm_command): New functions.
7205 (_initialize_arm_tdep): Add them.
7206 (num_disassembly_options): Renamed from num_flavor_options.
7207 (valid_disassembly_styles): Renamed from valid_flavors.
7208 (disassembly_style): Renamed from disassembly_flavor.
7209 (set_disassembly_style_sfunc): Renamed from
7210 set_disassembly_flavor_sfunc.
7211 (set_disassembly_style): Renamed from set_disassembly_flavor.
7212 (arm_othernames): Updated.
7213 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
7214 command. Add "set/show arm disassembly" commands. Deprecate
7215 "othernames" command.
7216
7217 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7218
7219 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
7220 (arm-tdep.o): Depend on elf_arm_h.
7221
7222 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7223
7224 * Makefile.in (coff_internal_h): Define.
7225 (arm-tdep.o): Update dependencies.
7226
7227 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
7228
7229 * arm-tdep.c (prologue_cache): Delete.
7230 (check_prologue_cache, save_prologue_cache): Delete.
7231 (arm_scan_prologue): Don't check or update the prologue_cache.
7232 (arm_gdb_arch_init): Don't initialize it.
7233 (_initialize_arm_tdep): Likewise.
7234
7235 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
7236
7237 * MAINTAINERS (tui): Maintainer of tui code.
7238
7239 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
7240
7241 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
7242 (i386-cygwin-tdep.o): Add dependencies.
7243 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
7244 * i386-cygwin-tdep.c: New file.
7245 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
7246 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
7247
7248 2003-03-20 Andrew Cagney <cagney@redhat.com>
7249
7250 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
7251 (handle_inferior_event): Remove code calling
7252 DYNAMIC_TRAMPOLINE_NEXTPC.
7253
7254 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
7255 already has a full path.
7256
7257 * main.c (gdb_main): Return 1.
7258 (captured_main): Call error to report an invalid interpreter.
7259
7260 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7261 * alpha-osf1-tdep.c: Include "gdb_string.h".
7262
7263 2003-03-19 J. Brobecker <brobecker@gnat.com>
7264
7265 Continuing work to convert the hppa targets to multiarch partial.
7266
7267 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
7268 method, now that hppa_push_dummy_frame has a conformant prototype.
7269 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
7270 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
7271 for the switch to multiarch partial.
7272
7273 2003-03-19 Kevin Buettner <kevinb@redhat.com>
7274
7275 * mdebugread.c (parse_symbol): For stEnd, we're done counting
7276 when iss is issNull.
7277
7278 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7279
7280 * mips-tdep.c (mips_register_name): Fix fencepost error involving
7281 NUM_REGS bounds check.
7282
7283 2003-03-18 Kevin Buettner <kevinb@redhat.com>
7284
7285 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
7286 * mips-tdep.c (gdb_assert.h): Include.
7287 (mips_generic_reg_names, mips_processor_reg_names): Make static.
7288 (mips_register_name): Handle integer registers explicitly. Add
7289 bounds checking.
7290 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
7291 (mips_lsi33k_reg_names): Don't list integer registers; they're
7292 handled by mips_register_name() now.
7293 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
7294 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
7295 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
7296 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
7297 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
7298
7299 2003-03-18 Andrew Cagney <cagney@redhat.com>
7300
7301 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
7302 a void pointer.
7303 * gdbtypes.h (print_scalar_formatted): Update declaration.
7304 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
7305
7306 2003-03-18 J. Brobecker <brobecker@gnat.com>
7307
7308 * infrun.c (observer.h): Add #include.
7309 (normal_stop): Add call to observer_notify_normal_stop.
7310 * Makefile.in (infrun.o): Add dependency on observer.h.
7311
7312 2003-03-18 J. Brobecker <brobecker@gnat.com>
7313
7314 Continuing work to convert the hppa targets to multiarch partial.
7315 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7316 parameter. Reformat comment.
7317 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7318 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7319 to match new profile.
7320
7321 2003-03-18 J. Brobecker <brobecker@gnat.com>
7322
7323 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7324 appear to be working in any case.
7325
7326 2003-03-18 J. Brobecker <brobecker@gnat.com>
7327
7328 * observer.c (observer_test_first_observer): New static variable.
7329 (observer_test_second_observer): Likewise.
7330 (observer_test_third_observer): Likewise.
7331 (observer_test_first_notification_function): New static function.
7332 (observer_test_second_notification_function): Likewise.
7333 (observer_test_third_notification_function): Likewise.
7334
7335 2003-03-17 J. Brobecker <brobecker@gnat.com>
7336
7337 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7338 * somsolib.c (gdb_assert.h): Likewise.
7339 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7340 (somsolib.o): Likewise.
7341
7342 2003-03-17 Andrew Cagney <cagney@redhat.com>
7343
7344 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7345 BFD. Simplify setting of di.endian.
7346
7347 2003-03-17 Andrew Cagney <cagney@redhat.com>
7348
7349 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7350 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7351
7352 From Elena Zannoni <ezannoni@redhat.com>
7353 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7354 vector and floating-point parameters.
7355 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7356 convention.
7357 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7358
7359 2003-03-17 Fernando Nasser <fnasser@redhat.com>
7360
7361 * MAINTAINERS: Remove my name from several maintainership roles.
7362
7363 2003-03-17 Andrew Cagney <cagney@redhat.com>
7364
7365 Fix frame off-by-one bug.
7366 * frame-unwind.h (frame_this_id_ftype): Replace
7367 frame_unwind_id_ftype.
7368 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7369 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7370 with "prev_register".
7371 * frame-unwind.c (frame_unwind_find_by_pc): Return
7372 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7373 comment.
7374 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7375 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7376 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7377 (dummy_frame_unwind): Update.
7378 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7379 sentinel_frame_register_unwind.
7380 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7381 (sentinel_frame_unwinder): Update.
7382 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7383 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7384 * frame.c (create_sentinel_frame): Update. Initialize
7385 "prologue_cache" instead of "unwind_cache".
7386 (frame_register_unwind): Call this frame's prev_register with the
7387 next frame and this frame's prologue cache.
7388 (get_prev_frame): Simplify. Always call prev frame's this_id with
7389 this frame and prev frame's prologue cache. Document that this
7390 call is shifted one to the left when compared to the
7391 frame_register_unwind call.
7392 (legacy_saved_regs_prev_register): Replace
7393 frame_saved_regs_register_unwind.
7394 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7395 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7396 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7397 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7398 (d10v_frame_unwind): Update.
7399 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7400 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7401 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7402 "saved_regs" with "this_saved_regs".
7403
7404 2003-03-16 Andrew Cagney <cagney@redhat.com>
7405
7406 * frame.c (frame_pop): Don't call target_store_registers. Fix
7407 problem reported by Mark Kettenis.
7408
7409 2003-03-16 Mark Kettenis <kettenis@gnu.org>
7410
7411 * i386-tdep.c (i386_register_type): Renamed from
7412 i386_register_virtual_type. Adjust function signature.
7413 (i386_gdbarch_init): Set register_type instead of
7414 deprecated_max_register_raw_size,
7415 deprecated_max_register_virtual_size and register_virtual_type.
7416
7417 2003-03-14 Andrew Cagney <cagney@redhat.com>
7418
7419 * frame.c (get_prev_frame): When a legacy frame, always call
7420 legacy_get_prev_frame. Simplify unwind code using assumption that
7421 the unwinder is new.
7422 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7423 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7424 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7425
7426 2003-03-14 Andrew Cagney <cagney@redhat.com>
7427
7428 * frame.c (get_saved_register): Delete function.
7429 * frame.h (get_saved_register): Delete declaration.
7430 * xstormy16-tdep.c: Update comment.
7431 * regcache.h: Update comments.
7432 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7433 get_saved_register and extract_address, use
7434 frame_read_unsigned_register.
7435 (sparc_frame_saved_pc): Ditto.
7436 (sparc_get_saved_register): Instead of get_saved_register, use
7437 frame_register.
7438 (sparc_pop_frame): Ditto.
7439 * findvar.c: Update comments.
7440 (value_of_register): Call frame_register instead of
7441 get_saved_register.
7442 (value_from_register): Ditto.
7443 * config/sparc/tm-sparc.h: Update comment.
7444 * breakpoint.c: Update comment.
7445
7446 2003-03-14 Andrew Cagney <cagney@redhat.com>
7447
7448 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7449 GET_SAVED_REGISTER.
7450 * gdbarch.h, gdbarch.c: Re-generate.
7451 * frame.h: Update comments.
7452 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7453 * x86-64-tdep.c (x86_64_init_abi): Update.
7454 * sparc-tdep.c (sparc_gdbarch_init): Update.
7455 * sh-tdep.c (sh_gdbarch_init): Update.
7456 * mips-tdep.c (mips_gdbarch_init): Update.
7457 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7458 * cris-tdep.c (cris_gdbarch_init): Update.
7459 * ia64-tdep.c (ia64_gdbarch_init): Update.
7460 * frame.c (frame_register): Update.
7461 (get_saved_register): Update.
7462 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
7463
7464 2003-03-13 Andrew Cagney <cagney@redhat.com>
7465
7466 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7467 * gdbarch.h, gdbarch.c: Regenerate.
7468 * valops.c (hand_function_call): Update comment.
7469 * stack.c (return_command): Update comment.
7470 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7471 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7472 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7473 * x86-64-tdep.c (x86_64_init_abi): Update.
7474 * vax-tdep.c (vax_gdbarch_init): Update.
7475 * v850-tdep.c (v850_gdbarch_init): Update.
7476 * sparc-tdep.c (sparc_gdbarch_init): Update.
7477 * sh-tdep.c (sh_gdbarch_init): Update.
7478 * s390-tdep.c (s390_gdbarch_init): Update.
7479 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7480 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7481 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7482 * mips-tdep.c (mips_gdbarch_init): Update.
7483 * mcore-tdep.c (mcore_gdbarch_init): Update.
7484 * m68k-tdep.c (m68k_gdbarch_init): Update.
7485 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7486 * ia64-tdep.c (ia64_gdbarch_init): Update.
7487 * i386-tdep.c (i386_gdbarch_init): Update.
7488 * hppa-tdep.c (hppa_gdbarch_init): Update.
7489 * h8300-tdep.c (h8300_gdbarch_init): Update.
7490 * frv-tdep.c (frv_gdbarch_init): Update.
7491 * cris-tdep.c (cris_gdbarch_init): Update.
7492 * avr-tdep.c (avr_gdbarch_init): Update.
7493 * arm-tdep.c (arm_gdbarch_init): Update.
7494 * alpha-tdep.c (alpha_gdbarch_init): Update.
7495
7496 2003-03-13 Andrew Cagney <cagney@redhat.com>
7497
7498 * frame.c (legacy_frame_p): New function.
7499 (get_prev_frame): Use legacy_frame_p.
7500 * frame.h (legacy_frame_p): Declare.
7501
7502 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7503
7504 * MAINTAINERS (write after approval): Alphabetically
7505 listing corrected.
7506
7507 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7508
7509 * MAINTAINERS (write after approval): Add myself.
7510
7511 2003-03-12 Andrew Cagney <cagney@redhat.com>
7512
7513 * frame.c (get_prev_frame): Rename the frame parameter to
7514 "this_frame".
7515 (get_next_frame, legacy_get_prev_frame): Ditto.
7516
7517 2003-03-12 Andrew Cagney <cagney@redhat.com>
7518
7519 * frame.c (get_current_frame): Check target_has_registers before
7520 checking target_has_stack.
7521 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7522 instead of deprecated_selected_frame.
7523 * findvar.c (value_of_register): Pass "frame", not
7524 deprecated_selected_frame, to value_of_builtin_reg.
7525
7526 2003-03-12 Andrew Cagney <cagney@redhat.com>
7527
7528 * regcache.c (regcache_cooked_write_signed): New function.
7529 (regcache_cooked_write_unsigned): New function.
7530 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7531 (regcache_cooked_read_signed): Fix regnum in range assertion.
7532 * regcache.h (regcache_cooked_write_signed): Declare.
7533 (regcache_cooked_write_unsigned): Declare.
7534
7535 2003-03-12 Andrew Cagney <cagney@redhat.com>
7536
7537 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7538 * gdbarch.h, gdbarch.c: Re-generate.
7539 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7540 * x86-64-tdep.h: Update.
7541 * x86-64-tdep.c (x86_64_init_abi): Update.
7542 * v850-tdep.c (v850_gdbarch_init): Update.
7543 * sparc-tdep.c (sparc_gdbarch_init): Update.
7544 * sh-tdep.c (sh_gdbarch_init): Update.
7545 * s390-tdep.c (s390_gdbarch_init): Update.
7546 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7547 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7548 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7549 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7550 * mips-tdep.c (mips_gdbarch_init): Update.
7551 * mcore-tdep.c (mcore_gdbarch_init): Update.
7552 * m68k-tdep.c (m68k_gdbarch_init): Update.
7553 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7554 * ia64-tdep.c (ia64_gdbarch_init): Update.
7555 * i386-tdep.c (i386_gdbarch_init): Update.
7556 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7557 * hppa-tdep.c (hppa_gdbarch_init): Update.
7558 * h8300-tdep.c (h8300_gdbarch_init): Update.
7559 * frv-tdep.c (frv_gdbarch_init): Update.
7560 * cris-tdep.c (cris_gdbarch_init): Update.
7561 * avr-tdep.c (avr_gdbarch_init): Update.
7562 * arm-tdep.c (arm_gdbarch_init): Update.
7563 * alpha-tdep.c (alpha_gdbarch_init): Update.
7564 * sh-tdep.c (sh_init_extra_frame_info): Update.
7565 (sh64_init_extra_frame_info): Update.
7566 * ns32knbsd-nat.c (frame_num_args): Update.
7567 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7568 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7569 (xstormy16_frame_chain_valid): Update.
7570 * vax-tdep.c (vax_saved_pc_after_call): Update.
7571 * v850-tdep.c (v850_frame_chain): Update.
7572 (v850_pop_frame): Update.
7573 (v850_init_extra_frame_info): Update.
7574 * sparc-tdep.c (setup_arbitrary_frame): Update.
7575 * ns32k-tdep.c (umax_frame_num_args): Update.
7576 * s390-tdep.c (s390_pop_frame_regular): Update.
7577 * mn10300-tdep.c (mn10300_frame_chain): Update.
7578 (mn10300_pop_frame_regular): Update.
7579 (mn10300_init_extra_frame_info): Update.
7580 * mips-tdep.c (mips_init_frame_pc_first): Update.
7581 (mips_frame_chain): Update.
7582 (mips_pop_frame): Update.
7583 * mcore-tdep.c (mcore_frame_chain): Update.
7584 (mcore_pop_frame): Update.
7585 (mcore_init_extra_frame_info): Update.
7586 * arch-utils.c (init_frame_pc_default): Update.
7587 * m68k-tdep.c (isi_frame_num_args): Update.
7588 (delta68_frame_num_args): Update.
7589 (news_frame_num_args): Update.
7590 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7591 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7592 (alpha_frame_chain): Update.
7593 (alpha_pop_frame): Update.
7594 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7595 (hppa_init_extra_frame_info): Update.
7596 (hppa_frame_chain): Update.
7597 (hppa_frame_chain_valid): Update.
7598 * cris-tdep.c (cris_init_extra_frame_info): Update.
7599 * avr-tdep.c (avr_init_extra_frame_info): Update.
7600 * arm-tdep.c (arm_frame_chain_valid): Update.
7601 (arm_init_extra_frame_info): Update.
7602 (arm_pop_frame): Update.
7603 * frame.c (frame_pc_unwind): Update.
7604 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7605 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7606 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7607 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7608 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7609 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7610
7611 2003-03-12 Andrew Cagney <cagney@redhat.com>
7612
7613 Eliminate the need for POP_FRAME.
7614 * frame.c (do_frame_unwind_register): New function.
7615 (frame_pop): When no POP_FRAME, pop the frame using register
7616 unwind and a scratch regcache.
7617 (frame_saved_regs_pop): Delete function.
7618 (trad_frame_unwinder): Update.
7619 * d10v-tdep.c (d10v_frame_pop): Delete function.
7620 (d10v_frame_unwind): Update.
7621 * sentinel-frame.c (sentinel_frame_pop): Delete function.
7622 (sentinel_frame_unwinder): Update.
7623 * dummy-frame.c (dummy_frame_pop): Delete function.
7624 (dummy_frame_unwind): Update.
7625 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7626 (struct frame_unwind): Update.
7627
7628 2003-03-11 Kevin Buettner <kevinb@redhat.com>
7629
7630 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
7631 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
7632 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
7633 Do range checks on register number obtained from debugging info.
7634 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
7635 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
7636 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
7637 mapping function.
7638 (do_fp_register_row): Fix typo which caused double type to be
7639 used when attempting to unpack a float.
7640
7641 2003-03-11 J. Brobecker <brobecker@gnat.com>
7642
7643 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
7644
7645 2003-03-11 Andrew Cagney <cagney@redhat.com>
7646
7647 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
7648 frame. Problem found by Corinna Vinschen.
7649
7650 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
7651
7652 * doublest.c (floatformat_from_length): Accept also
7653 the real size of 'long double' type.
7654
7655 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
7656
7657 From Klee Dienes <kdienes@apple.com>:
7658 * breakpoint.c (bpstat_copy): Copy the command lines as well
7659 as the old value, to match what is freed in bpstat_clear.
7660
7661 2003-03-10 David Carlton <carlton@math.stanford.edu>
7662
7663 * minsyms.c (add_minsym_to_hash_table): Replace
7664 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7665 (compare_minimal_symbols, compact_minimal_symbols)
7666 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
7667 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
7668 of DEPRECATED_SYMBOL_MATCHES_NAME.
7669 (lookup_minimal_symbol_solib_trampoline): Ditto.
7670
7671 2003-03-10 Andrew Cagney <cagney@redhat.com>
7672
7673 * regcache.h (regcache_cooked_read_ftype): Define.
7674 (regcache_save, regcache_restore): Add a cooked_read parameter.
7675 * regcache.c (regcache_save, regcache_restore): Update.
7676 (do_cooked_read): New function.
7677 (regcache_cpy): Pass do_cooked_read to regcache_save and
7678 regcache_restore.
7679
7680 2003-03-10 Andrew Cagney <cagney@redhat.com>
7681
7682 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7683 * gdbarch.h, gdbarch.c: Re-generate.
7684 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7685 * x86-64-tdep.h: Update.
7686 * x86-64-tdep.c (x86_64_init_abi): Update.
7687 * v850-tdep.c (v850_gdbarch_init): Update.
7688 * sparc-tdep.c (sparc_gdbarch_init): Update.
7689 * sh-tdep.c (sh_gdbarch_init): Update.
7690 * s390-tdep.c (s390_gdbarch_init): Update.
7691 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7692 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7693 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7694 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7695 * mips-tdep.c (mips_gdbarch_init): Update.
7696 * mcore-tdep.c (mcore_gdbarch_init): Update.
7697 * m68k-tdep.c (m68k_gdbarch_init): Update.
7698 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7699 * ia64-tdep.c (ia64_gdbarch_init): Update.
7700 * i386-tdep.c (i386_gdbarch_init): Update.
7701 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7702 * hppa-tdep.c (hppa_gdbarch_init): Update.
7703 * h8300-tdep.c (h8300_gdbarch_init): Update.
7704 * frv-tdep.c (frv_gdbarch_init): Update.
7705 * cris-tdep.c (cris_gdbarch_init): Update.
7706 * avr-tdep.c (avr_gdbarch_init): Update.
7707 * arm-tdep.c (arm_gdbarch_init): Update.
7708 * alpha-tdep.c (alpha_gdbarch_init): Update.
7709 * sh-tdep.c (sh_init_extra_frame_info): Update.
7710 (sh64_init_extra_frame_info): Update.
7711 * ns32knbsd-nat.c (frame_num_args): Update.
7712 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7713 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7714 (xstormy16_frame_chain_valid): Update.
7715 * vax-tdep.c (vax_saved_pc_after_call): Update.
7716 * v850-tdep.c (v850_frame_chain): Update.
7717 (v850_pop_frame): Update.
7718 (v850_init_extra_frame_info): Update.
7719 * sparc-tdep.c (setup_arbitrary_frame): Update.
7720 * ns32k-tdep.c (umax_frame_num_args): Update.
7721 * s390-tdep.c (s390_pop_frame_regular): Update.
7722 * mn10300-tdep.c (mn10300_frame_chain): Update.
7723 (mn10300_pop_frame_regular): Update.
7724 (mn10300_init_extra_frame_info): Update.
7725 * mips-tdep.c (mips_init_frame_pc_first): Update.
7726 (mips_frame_chain): Update.
7727 (mips_pop_frame): Update.
7728 * mcore-tdep.c (mcore_frame_chain): Update.
7729 (mcore_pop_frame): Update.
7730 (mcore_init_extra_frame_info): Update.
7731 * arch-utils.c (init_frame_pc_default): Update.
7732 * m68k-tdep.c (isi_frame_num_args): Update.
7733 (delta68_frame_num_args): Update.
7734 (news_frame_num_args): Update.
7735 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7736 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7737 (alpha_frame_chain): Update.
7738 (alpha_pop_frame): Update.
7739 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7740 (hppa_init_extra_frame_info): Update.
7741 (hppa_frame_chain): Update.
7742 (hppa_frame_chain_valid): Update.
7743 * cris-tdep.c (cris_init_extra_frame_info): Update.
7744 * avr-tdep.c (avr_init_extra_frame_info): Update.
7745 * arm-tdep.c (arm_frame_chain_valid): Update.
7746 (arm_init_extra_frame_info): Update.
7747 (arm_pop_frame): Update.
7748 * frame.c (frame_pc_unwind): Update.
7749 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7750 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7751 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7752 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7753 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7754 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
7755
7756 2003-03-10 Andrew Cagney <cagney@redhat.com>
7757
7758 * gdbarch.sh (gdbarch_unwind_pc): New method.
7759 * gdbarch.h, gdbarch.c: Regenerate.
7760 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
7761 but use read_pc and FRAME_SAVED_PC as fall backs.
7762 (frame_saved_regs_pc_unwind): Delete function.
7763 (trad_frame_unwinder): Update.
7764 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
7765 (struct frame_unwind): Update.
7766 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
7767 (dummy_frame_unwind): Update.
7768 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
7769 (sentinel_frame_unwinder): Update.
7770 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
7771 (d10v_frame_unwind): Update.
7772 (d10v_unwind_pc): New function.
7773 (d10v_gdbarch_init): Set unwind_pc.
7774
7775 2003-03-10 Andrew Cagney <cagney@redhat.com>
7776
7777 * gdbarch.h: Re-generate.
7778
7779 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
7780 PC.
7781 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
7782 the PC register.
7783
7784 2003-03-08 Mark Kettenis <kettenis@gnu.org>
7785
7786 * gdbarch.sh (save_dummy_frame_tos): Add comment.
7787
7788 2003-03-08 Andrew Cagney <cagney@redhat.com>
7789
7790 * cli-out.c: Update copyright.
7791 (cli_out_data): Define typedef. Use instead of ui_out_data.
7792
7793 2003-03-08 Andrew Cagney <cagney@redhat.com>
7794
7795 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
7796 the result.
7797
7798 2003-03-07 Andrew Cagney <cagney@redhat.com>
7799
7800 * gdbarch.sh: Don't generate two macro definitions when an
7801 undefined macro taking no arguments.
7802 * gdbarch.h: Regenerate.
7803
7804 2002-03-07 Michal Ludvig <mludvig@suse.cz>
7805
7806 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
7807 (x86_64_unwind_dummy_id): New functions.
7808 (x86_64_init_abi): Register these two new functions.
7809
7810 2003-03-07 Michal Ludvig <mludvig@suse.cz>
7811
7812 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
7813 (x86_64_skip_prologue): Move prologue detection to
7814 separate function.
7815 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
7816
7817 2003-03-05 Andrew Cagney <cagney@redhat.com>
7818
7819 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
7820 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
7821 * frame.c (get_prev_frame): Restructure the frame ID unwind code
7822 to use unwind_dummy_id when a dummy frame.
7823 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
7824 predicate.
7825 * gdbarch.h, gdbarch.c: Regneerate.
7826
7827 2003-03-05 Andrew Cagney <cagney@redhat.com>
7828
7829 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
7830 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
7831 Do not use d10v_read_sp or d10v_read_fp when obtaining register
7832 values.
7833
7834 2003-03-05 Andrew Cagney <cagney@redhat.com>
7835
7836 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
7837 (struct d10v_unwind_cache): Delete field "frameless". Replace
7838 "next_addr" with "sp_offset". Add "r11_offset".
7839 (d10v_frame_unwind_cache): Update.
7840 (prologue_find_regs): Update. When "mv r11, sp", save the
7841 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
7842 RN was saved in r11_offset.
7843
7844 2003-03-05 Andrew Cagney <cagney@redhat.com>
7845
7846 * frame.c (deprecated_update_frame_pc_hack): Also update the the
7847 cached PC value in the next frame.
7848
7849 2003-03-05 Andrew Cagney <cagney@redhat.com>
7850
7851 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
7852 "id_unwind_cache" with "id".
7853 (frame_id_unwind): Delete declaration.
7854 * frame.c (frame_id_unwind): Delete function.
7855 (get_prev_frame): Call the frame id unwind method directly. Store
7856 the returned next frame's ID value in NEXT_FRAME. Note that there
7857 is a problem with the wrong unwind ID being called with the wrong
7858 unwind cache.
7859
7860 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
7861
7862 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
7863
7864 2003-03-05 James Ingham <jingham@apple.com>
7865 Daniel Jacobowitz <drow@mvista.com>
7866
7867 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
7868 (auto_cp_abi): New variable.
7869 (current_cp_abi, num_cp_abis): Make static.
7870 (CP_ABI_MAX): Define.
7871 (cp_abis): Turn into an array.
7872 (value_virtual_fn_field): Fix formatting.
7873 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
7874 takes a pointer.
7875 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
7876 (list_cp_abis, _initialize_cp_abi): New functions.
7877 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
7878 declarations for cp_abis, num_cp_abis, current_cp_abi, and
7879 switch_to_cp_abi. Update prototype for register_cp_abi.
7880 * Makefile.in (cp-abi.o): Update dependencies.
7881 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
7882 instead of switch_to_cp_abi.
7883 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
7884 register_cp_abi.
7885 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
7886 register_cp_abi.
7887 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
7888
7889 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
7890
7891 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
7892 * dwarf2loc.c: Include "regcache.h".
7893 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
7894 register_size.
7895 * Makefile.in (dwarf2loc.o): Update dependencies.
7896
7897 2003-03-04 Theodore A. Roth <troth@openavr.org>
7898
7899 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
7900 number of io registers reported by remote target is not a multiple of
7901 step.
7902
7903 2003-03-04 David Carlton <carlton@math.stanford.edu>
7904
7905 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
7906 (lookup_symbol_aux_psymtabs): Update call to
7907 lookup_partial_symbol.
7908 (lookup_transparent_type, find_main_psymtab)
7909 (make_symbol_overload_list): Ditto.
7910
7911 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
7912
7913 * MAINTAINERS (Write after approval): Update my email address.
7914
7915 2003-03-03 Andrew Cagney <cagney@redhat.com>
7916
7917 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
7918 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
7919 predicate. Replace MAX_REGISTER_RAW_SIZE.
7920 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
7921 MAX_REGISTER_VIRTUAL_SIZE.
7922 * regcache.c (legacy_max_register_raw_size): New function.
7923 (legacy_max_register_virtual_size): New function.
7924 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
7925 (MAX_REGISTER_RAW_SIZE): Define.
7926 (legacy_max_register_raw_size): Declare.
7927 (legacy_max_register_virtual_size): Declare.
7928 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7929 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
7930 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7931 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7932 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7933 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7934 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7935 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7936 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7937 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7938 * vax-tdep.c (vax_gdbarch_init): Update.
7939 * v850-tdep.c (v850_gdbarch_init): Update.
7940 * sparc-tdep.c (sparc_gdbarch_init): Update.
7941 * sh-tdep.c (sh_gdbarch_init): Update.
7942 * s390-tdep.c (s390_gdbarch_init): Update.
7943 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7944 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7945 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7946 * mips-tdep.c (mips_gdbarch_init): Update.
7947 * mcore-tdep.c (mcore_gdbarch_init): Update.
7948 * m68k-tdep.c (m68k_gdbarch_init): Update.
7949 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7950 * ia64-tdep.c (ia64_gdbarch_init): Update.
7951 * i386-tdep.c (i386_gdbarch_init): Update.
7952 * hppa-tdep.c (hppa_gdbarch_init): Update.
7953 * h8300-tdep.c (h8300_gdbarch_init): Update.
7954 * frv-tdep.c (frv_gdbarch_init): Update.
7955 * cris-tdep.c (cris_gdbarch_init): Update.
7956 * avr-tdep.c (avr_gdbarch_init): Update.
7957 * arm-tdep.c (arm_gdbarch_init): Update.
7958 * alpha-tdep.c (alpha_gdbarch_init): Update.
7959 * d10v-tdep.c (d10v_gdbarch_init): Do not set
7960 max_register_raw_size or max_register_virtual_size.
7961
7962 2003-03-03 David Carlton <carlton@math.stanford.edu>
7963
7964 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
7965 SYMBOL_MATCHES_NAME, add comment.
7966 (SYMBOL_MATCHES_NATURAL_NAME): New.
7967 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
7968 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
7969 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
7970 * symtab.c (lookup_partial_symbol): Use
7971 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
7972 unhelpful comment.
7973 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
7974 SYMBOL_MATCHES_NAME.
7975 Fix for PR c++/33.
7976
7977 2003-03-03 David Carlton <carlton@math.stanford.edu>
7978
7979 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
7980 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
7981 by regexp matching against SYMBOL_NATURAL_NAME.
7982
7983 2003-03-03 David Carlton <carlton@math.stanford.edu>
7984
7985 * linespec.c (find_method): Extract code into collect_methods.
7986 (collect_methods): New.
7987
7988 2003-03-02 Mark Kettenis <kettenis@gnu.org>
7989
7990 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
7991 get_frame_base.
7992
7993 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
7994 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7995
7996 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
7997
7998 * arch-utils.c (generic_register_byte): Fix to use the loop index
7999 and not regnum when summing the size of all registers up to regnum.
8000
8001 2003-03-01 Andrew Cagney <cagney@redhat.com>
8002
8003 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
8004 FRAME_INIT_SAVED_REGS.
8005 * gdbarch.h, gdbarch.c: Regenerate.
8006 * stack.c (frame_info): Update.
8007 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
8008 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
8009 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
8010 * ns32k-tdep.c (ns32k_pop_frame): Update.
8011 * mips-tdep.c (mips_pop_frame): Update.
8012 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
8013 * ia64-tdep.c (ia64_frame_chain): Update.
8014 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
8015 (ia64_frameless_function_invocation): Update.
8016 (ia64_init_extra_frame_info): Update.
8017 (ia64_pop_frame_regular): Update.
8018 * frame.h (struct frame_info): Update comment.
8019 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
8020 * frame.c (frame_saved_regs_register_unwind): Update.
8021 (frame_saved_regs_register_unwind): Update.
8022 (deprecated_generic_get_saved_register): Update.
8023 * cris-tdep.c: Update comment.
8024 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
8025 Rename macro.
8026 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8027 * x86-64-tdep.c (x86_64_init_abi): Update.
8028 * vax-tdep.c (vax_gdbarch_init): Update.
8029 * v850-tdep.c (v850_gdbarch_init): Update.
8030 * sparc-tdep.c (sparc_gdbarch_init): Update.
8031 * sh-tdep.c (sh_gdbarch_init): Update.
8032 * s390-tdep.c (s390_gdbarch_init): Update.
8033 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8034 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8035 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8036 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8037 * mips-tdep.c (mips_gdbarch_init): Update.
8038 * mcore-tdep.c (mcore_gdbarch_init): Update.
8039 * m68k-tdep.c (m68k_gdbarch_init): Update.
8040 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8041 * ia64-tdep.c (ia64_gdbarch_init): Update.
8042 * i386-tdep.c (i386_gdbarch_init): Update.
8043 * frv-tdep.c (frv_gdbarch_init): Update.
8044 * avr-tdep.c (avr_gdbarch_init): Update.
8045 * arm-tdep.c (arm_gdbarch_init): Update.
8046 * alpha-tdep.c (alpha_gdbarch_init): Update.
8047
8048 2003-03-01 Andrew Cagney <cagney@redhat.com>
8049
8050 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
8051 option enum and switch. When no windows, set the interpreter to
8052 INTERP_CONSOLE.
8053
8054 2003-03-01 Andrew Cagney <cagney@redhat.com>
8055
8056 * main.c (captured_main): Replace magic option characters with an
8057 enum.
8058
8059 2003-03-01 Andrew Cagney <cagney@redhat.com>
8060
8061 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
8062 INIT_EXTRA_FRAME_INFO.
8063 * gdbarch.h, gdbarch.c: Regenerate.
8064 * arm-tdep.c: Update comments.
8065 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
8066 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
8067 * frame.h, avr-tdep.c: Ditto.
8068 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
8069 (create_new_frame, legacy_get_prev_frame): Ditto.
8070 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8071 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
8072 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
8073 deprecated_init_extra_frame_info instead of init_extra_frame_info.
8074 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8075 * v850-tdep.c (v850_gdbarch_init): Ditto.
8076 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8077 * sh-tdep.c (sh_gdbarch_init): Ditto.
8078 * s390-tdep.c (s390_gdbarch_init): Ditto.
8079 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
8080 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8081 * mips-tdep.c (mips_gdbarch_init): Ditto.
8082 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8083 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8084 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8085 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8086 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8087 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8088 * frv-tdep.c (frv_gdbarch_init): Ditto.
8089 * cris-tdep.c (cris_gdbarch_init): Ditto.
8090 * avr-tdep.c (avr_gdbarch_init): Ditto.
8091 * arm-tdep.c (arm_gdbarch_init): Ditto.
8092 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8093 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8094
8095 2003-03-01 Andrew Cagney <cagney@redhat.com>
8096
8097 * gdbarch.sh (register_type): New function with predicate.
8098 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
8099 * gdbarch.h, gdbarch.c: Re-generate.
8100 * arch-utils.c (generic_register_byte): Use generic_register_size.
8101 (generic_register_size): When available, use
8102 gdbarch_register_type.
8103 * regcache.c (init_regcache_descr): When available, initialize the
8104 register type array using gdbarch_register_type. If the
8105 architecture supplies gdbarch_register_type, do not use the legacy
8106 regcache layout.
8107 * d10v-tdep.c (d10v_register_type): Replace
8108 d10v_register_virtual_type.
8109 (d10v_gdbarch_init): Set register_type instead of
8110 register_virtual_type.
8111
8112 2003-03-01 Andrew Cagney <cagney@redhat.com>
8113
8114 * Makefile.in (ax-gdb.o): Update dependencies.
8115 * ax-gdb.c: Include "regcache.h".
8116 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
8117 * findvar.c (value_of_register): Ditto.
8118 * infcmd.c (default_print_registers_info): Ditto.
8119
8120 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8121
8122 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
8123 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
8124
8125 2003-03-01 Mark Kettenis <kettenis@gnu.org>
8126
8127 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
8128 of STREQ.
8129
8130 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
8131
8132 * Makefile.in (dwarf2loc.o): Update dependencies.
8133 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
8134 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
8135 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
8136 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
8137 (locexpr_tracepoint_var_ref): New function.
8138 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
8139
8140 2003-02-28 Andrew Cagney <cagney@redhat.com>
8141
8142 * regcache.c (register_size): New function.
8143 * regcache.h (register_size): Declare
8144 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
8145 max_register_size instead of MAX_REGISTER_RAW_SIZE.
8146
8147 2003-02-28 David Carlton <carlton@math.stanford.edu>
8148
8149 * linespec.c (decode_compound): Extract code into find_method.
8150 (find_method): New.
8151
8152 2003-02-28 J. Brobecker <brobecker@gnat.com>
8153
8154 * Makefile.in: Add rules to build and link in observer.o.
8155
8156 2003-02-27 J. Brobecker <brobecker@gnat.com>
8157
8158 * observer.c: Minor comments edits.
8159
8160 2003-02-27 J. Brobecker <brobecker@gnat.com>
8161
8162 * observer.h, observer.c: New file.
8163
8164 2003-02-27 Andrew Cagney <cagney@redhat.com>
8165
8166 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
8167
8168 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
8169
8170 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
8171 (M6812_OP_STS_EXT): Likewise.
8172 (m6811_prologue): Use the above to recognize prologue.
8173 (m6812_prologue): Likewise.
8174
8175 2003-02-27 David Carlton <carlton@math.stanford.edu>
8176
8177 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
8178 SYMBOL_PRINT_NAME.
8179 (compare_psymbols): Ditto.
8180 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8181
8182 2003-02-27 Michael Snyder <msnyder@redhat.com>
8183
8184 * f-lang.c (build_fortran_types): New function.
8185 (_initialize_f_language): Gdbarch-register built-in fortran types.
8186 * doublest.c (extract_floating): Fix warning text.
8187
8188 2003-02-27 Andrew Cagney <cagney@redhat.com>
8189
8190 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
8191 predicate. Replaces PUSH_DUMMY_FRAME.
8192 * gdbarch.h, gdbarch.c: Regnerate.
8193 * valops.c (hand_function_call): Update. Call
8194 generic_push_dummy_frame directly.
8195 * vax-tdep.c (vax_gdbarch_init): Update.
8196 * sparc-tdep.c (sparc_gdbarch_init): Update.
8197 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8198 * m68k-tdep.c (m68k_gdbarch_init): Update.
8199 * hppa-tdep.c (hppa_gdbarch_init): Update.
8200 * alpha-tdep.c (alpha_gdbarch_init): Update.
8201 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8202 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
8203 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
8204 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
8205 push_dummy_frame to generic_push_dummy_frame.
8206 * v850-tdep.c (v850_gdbarch_init): Ditto.
8207 * sh-tdep.c (sh_gdbarch_init): Ditto.
8208 * s390-tdep.c (s390_gdbarch_init): Ditto.
8209 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8210 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8211 * mips-tdep.c (mips_gdbarch_init): Ditto.
8212 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8213 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8214 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8215 * i386-tdep.c (i386_gdbarch_init): Ditto.
8216 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8217 * frv-tdep.c (frv_gdbarch_init): Ditto.
8218 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8219 * cris-tdep.c (cris_gdbarch_init): Ditto.
8220 * avr-tdep.c (avr_gdbarch_init): Ditto.
8221 * arm-tdep.c (arm_gdbarch_init): Ditto.
8222
8223 2003-02-26 Kevin Buettner <kevinb@redhat.com>
8224
8225 * mips-tdep.c (show_mips_abi): New function.
8226 (_initialize_mips_tdep): Use show_mips_abi() to implement the
8227 command ``show mips abi''.
8228
8229 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8230
8231 From Elena Zannoni <ezannoni@redhat.com>
8232 * dbxread.c (process_one_symbol): Only record line 0 if one or
8233 more sline entries have been seen for the function.
8234
8235 2003-02-26 Michael Chastain <mec@shout.net>
8236
8237 * configure: Regenerate with autoconf 000227.
8238
8239 2003-02-26 Michael Chastain <mec@shout.net>
8240
8241 Close PR build/660.
8242 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
8243 for old libc5/glibc.
8244 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
8245
8246 2003-02-26 Kris Warkentin <kewarken@qnx.com>
8247
8248 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
8249 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
8250
8251 2003-02-26 Michael Chastain <mec@shout.net>
8252
8253 * configure.in: New variable HAVE_UINTPTR_T.
8254 * configure, config.in: Regenerated.
8255
8256 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
8257
8258 Fix PR build/1097.
8259 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
8260
8261 2003-02-25 Andrew Cagney <cagney@redhat.com>
8262
8263 * frame.c (get_prev_frame): Add comment on check for
8264 inside_entry_func. Only check for inside_entry_file when not a
8265 dummy and not a sentinel. Check that the new frame is not inner
8266 to the old frame.
8267
8268 2003-02-25 Andrew Cagney <cagney@redhat.com>
8269
8270 * frame.c (frame_debug): New variable.
8271 (_initialize_frame): Add "set/show debug frame" command.
8272 (get_prev_frame): When frame_debug, print reason why unwind
8273 failed.
8274
8275 2003-02-25 Michael Chastain <mec@shout.net>
8276
8277 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
8278 to avoid uintptr_t definition problems.
8279
8280 2003-02-25 David Carlton <carlton@math.stanford.edu>
8281
8282 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
8283 (SYMBOL_LINKAGE_NAME): Ditto.
8284 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
8285 SYMBOL_LINKAGE_NAME.
8286 (struct general_symbol_info): Expand comment.
8287 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
8288 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
8289 (SYMBOL_MATCHES_REGEXP): Ditto.
8290 * symtab.c (symbol_natural_name): New function.
8291 * objfiles.h: Replace all uses of SYMBOL_NAME by
8292 DEPRECATED_SYMBOL_NAME.
8293 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
8294 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
8295 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
8296 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
8297 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
8298 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
8299 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
8300 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
8301 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
8302 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
8303 * ada-exp.y: Ditto.
8304 * ada-exp.y: Update copyright.
8305 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
8306 * cp-valprint.c: Ditto.
8307
8308 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8309
8310 * infptrace.c (detach): Do not flag error if ptrace detach fails
8311 and errno is set to ESRCH.
8312
8313 2003-02-24 Andrew Cagney <cagney@redhat.com>
8314
8315 * infptrace.c (udot_info): Change type of udot_off to long. Use
8316 paddr when printing udot_off's value.
8317
8318 2003-02-24 David Carlton <carlton@math.stanford.edu>
8319
8320 * symtab.c (make_symbol_overload_list): Only read in partial
8321 symtabs containing a matching partial symbol.
8322
8323 2003-02-24 David Carlton <carlton@math.stanford.edu>
8324
8325 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8326 do the comparison, not strcmp.
8327 * symfile.c (compare_psymbols): Ditto.
8328 * defs.h: Declare strcmp_iw_ordered.
8329 * utils.c (strcmp_iw_ordered): New function.
8330
8331 2003-02-24 Jim Blandy <jimb@redhat.com>
8332
8333 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8334 support, shared libs): Remove my name from here, to better reflect
8335 reality.
8336
8337 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8338
8339 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8340 (target_ops): Add to_have_continuable_watchpoint.
8341 * target.c (update_current_target): Add INHERIT line for
8342 to_have_continuable_watchpoint.
8343 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8344 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8345 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8346 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8347
8348 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
8349
8350 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8351 maintainership.
8352
8353 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8354
8355 * solib.c (solib_open): Call target defined search function after
8356 failing with solib-search-path.
8357 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8358 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
8359
8360 2003-02-24 Kris Warkentin <kewarken@qnx.com>
8361
8362 * MAINTAINERS: Add myself to Write After section.
8363
8364 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8365
8366 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8367
8368 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8369
8370 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8371 (m68hc11_add_reggroups): New function.
8372 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8373 (m68hc11_gdbarch_init): Install the reggroups.
8374 (_initialize_m68hc11_tdep): Initialize them.
8375
8376 2003-02-21 James E Wilson <wilson@tuliptree.org>
8377
8378 * MAINTAINERS: Update my email address.
8379
8380 2003-02-21 David Carlton <carlton@math.stanford.edu>
8381
8382 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8383
8384 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
8385
8386 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8387 * symtab.h: Add opaque declarations of struct axs_value and
8388 struct agent_expr.
8389 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8390 (struct location_funcs): New type.
8391 (struct symbol): Add "loc" to aux_value.
8392 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8393 * dwarf2read.c: Include "dwarf2expr.h".
8394 (dwarf2_symbol_mark_computed): New function.
8395 (read_func_scope): Use it.
8396 (var_decode_location): New function.
8397 (new_symbol): Use it.
8398 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8399
8400 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8401 (dwarf2expr_h, dwarf2loc_h): New variables.
8402 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8403 (dwarf2expr.o, dwarf2loc.o): New rules.
8404 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8405 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8406 LOC_COMPUTED_ARG.
8407 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8408 * m2-exp.y (yylex): Likewise.
8409 * printcmd.c (address_info, print_frame_args): Likewise.
8410 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8411 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8412 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8413 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8414 * symtab.c (lookup_block_symbol): Likewise.
8415
8416 2003-02-20 Adam Fedor <fedor@gnu.org>
8417
8418 * symtab.h: Remove objc_specific struct
8419 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8420 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8421 Have language_objc use cplus_specific struct.
8422
8423 2003-02-20 Tom Tromey <tromey@redhat.com>
8424
8425 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8426 TYPE_NAME, when printing a String value. PR java/1075.
8427
8428 2003-02-20 Adam Fedor <fedor@gnu.org>
8429
8430 * objc-lang.h (find_methods): Remove declaration.
8431 * objc-lang.c (find_methods): Make static.
8432
8433 2003-02-20 Christopher Faylor <cgf@redhat.com>
8434
8435 * win32-nat.c (get_image_name): Check return value from
8436 ReadProcessMemory.
8437 (child_xfer_memory): Ditto.
8438
8439 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
8440
8441 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8442 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8443 '${exec_prefix}' (in addition to the expansion thereof) as
8444 relocatable.
8445 * configure: Rebuilt.
8446
8447 2003-02-20 David Carlton <carlton@math.stanford.edu>
8448
8449 * symtab.c (search_symbols): Revert the search_symbols part of my
8450 2002-12-23 patch. Add comment.
8451
8452 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8453
8454 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8455 * dbxread.c (elfstab_build_psymtabs): Don't call
8456 install_minimal_symbols.
8457 (stabsect_build_psymtabs): Likewise.
8458 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8459 earlier.
8460 * somread.c (som_symfile_read): Call install_minimal_symbols
8461 and do_cleanups earlier.
8462 * nlmread.c (nlm_symfile_read): Likewise.
8463 * mdebugread.c (elfmdebug_build_psymtabs): Call
8464 install_minimal_symbols and make appropriate cleanups.
8465
8466 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8467
8468 * solib.c (reload_shared_libraries): New function.
8469 (_initialize_solib): Add callbacks for ``set solib-search-path''
8470 and ``set solib-absolute-prefix''.
8471
8472 2003-02-20 David Carlton <carlton@math.stanford.edu>
8473
8474 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8475 expand comment.
8476 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8477 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8478 * ada-typeprint.c (ada_typedef_print): Ditto.
8479 * ax-gdb.c (gen_var_ref): Ditto.
8480 * breakpoint.c (print_one_breakpoint): Ditto.
8481 * buildsym.c (finish_block): Ditto.
8482 * c-valprint.c (c_val_print): Ditto.
8483 * expprint.c (print_subexp): Ditto.
8484 * findvar.c (locate_var_value): Ditto.
8485 * infcmd.c (jump_command): Ditto.
8486 * linespec.c (decode_line_2, decode_compound): Ditto.
8487 * maint.c (maintenance_translate_address): Ditto.
8488 * objc-lang.c (compare_selectors, compare_classes): Ditto.
8489 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8490 Ditto.
8491 * p-valprint.c (pascal_val_print): Ditto.
8492 * stabsread.c (define_symbol): Ditto.
8493 * stack.c (print_frame, frame_info, print_block_frame_locals)
8494 (print_frame_arg_vars, return_command): Ditto.
8495 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8496 * symmisc.c (print_symbol): Ditto.
8497 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8498 (compare_search_syms, print_symbol_info, print_msymbol_info)
8499 (rbreak_command): Ditto.
8500 * tracepoint.c (tracepoints_info): Ditto.
8501 * typeprint.c (typedef_print): Ditto.
8502 * valops.c (value_of_variable, hand_function_call): Ditto.
8503 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8504 * ada-typeprint.c: Update Copyright.
8505 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8506 * tracepoint.c, cli/cli-cmds.c: Ditto.
8507
8508 2003-02-20 Kevin Buettner <kevinb@redhat.com>
8509
8510 * frame.c (generic_unwind_get_saved_register): Make non-static.
8511 * frame.h (generic_unwind_get_saved_register): Declare.
8512 * mips-tdep.c (read_next_frame_reg): Fetch register from
8513 current regcache when frame is NULL.
8514 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8515 that must be NULL.
8516 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8517 instead of frame_register_unwind().
8518
8519 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8520
8521 * remote-sim.c (gdbsim_insert_breakpoint)
8522 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8523 code.
8524
8525 2003-02-20 Andrew Cagney <ac131313@redhat.com>
8526
8527 * remote.c (_initialize_remote): Add commands "set/show remote
8528 hardware-watchpoint-limit" and "set/show remote
8529 hardware-breakpoint-limit".
8530 (remote_hw_watchpoint_limit): Initialize to -1.
8531 (remote_hw_breakpoint_limit): Ditto.
8532 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8533
8534 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8535
8536 * coff-pe-read.c: New file - support reading of minimal symbols from a
8537 portable executable using the export table.
8538 * coff-pe-read.h: New file.
8539 * coffread.c: Include coff-pe-read.h.
8540 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8541 debugging symbols found.
8542 * Makefile.in (SFILES): Add coff-pe-read.o.
8543 (coff_pe_read_h): Define.
8544 (COMMON_OBS): Add coff-pe-read.o.
8545 (coffread.o): Add coff_pe_read_h dependency.
8546 (coff-pe-read.o): New target.
8547
8548 2003-02-19 David Carlton <carlton@math.stanford.edu>
8549
8550 * Makefile.in (SFILES): Add block.c.
8551 (block_h): New.
8552 (COMMON_OBS): Add block.o.
8553 (block.o): New.
8554 (x86-64-tdep.o): Add $(block_h).
8555 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8556 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8557 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8558 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8559 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8560 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8561 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8562 * value.h: Add opaque declaration for struct block.
8563 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8564 * ada-lang.h: Ditto.
8565 * x86-64-tdep.c: #include "block.h"
8566 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8567 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8568 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8569 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8570 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8571 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8572 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8573 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8574 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8575 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8576 * symtab.c (block_function): Ditto.
8577 (contained_in): Ditto.
8578 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8579 block.h. Add opaque declaration for struct block.
8580 * symtab.h: Move block_function and contained_in declarations to
8581 block.h. Add opaque declarations for struct block, struct
8582 blockvector.
8583 (struct block): Move to block.h.
8584 (struct blockvector): Ditto.
8585 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8586 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8587 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8588 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8589 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8590 Ditto.
8591 * block.c: New file.
8592 * block.h: New file.
8593
8594 2003-02-19 Theodore A. Roth <troth@openavr.org>
8595
8596 * avr-tdep.c (avr_extract_return_value): Remove function.
8597 (avr_store_return_value): Remove function.
8598 (avr_extract_struct_value_address): Remove function.
8599 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8600
8601 2003-02-19 Andrew Cagney <ac131313@redhat.com>
8602
8603 * rs6000-tdep.c: Include "gdb_assert.h".
8604 (registers_e500): Add "acc" and "spefscr".
8605 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8606 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8607 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
8608 really is "r0".
8609 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8610
8611 2003-02-18 Keith Seitz <keiths@redhat.com>
8612
8613 * Makefile.in: Add gdbtk-interps.c.
8614
8615 2003-02-18 Kevin Buettner <kevinb@redhat.com>
8616
8617 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8618 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8619
8620 2003-02-18 Andrew Cagney <cagney@redhat.com>
8621
8622 * symtab.h (struct objfile): Add opaque declaration.
8623
8624 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
8625
8626 From Jim Ingham <jingham@apple.com>:
8627 * dbxread.c (process_one_symbol): Use last_function_start rather
8628 than function_start_offset to find the real beginning of the
8629 current function. The latter is just the text section offset on
8630 some systems, the former is always the real function start.
8631
8632 2003-02-17 Andrew Cagney <cagney@redhat.com>
8633
8634 * configure.in: Revert ${target} != ${host}.
8635
8636 2003-02-17 Andrew Cagney <ac131313@redhat.com>
8637
8638 * configure.in (Makefile): Use the test ${target} != ${host},
8639 instead of the absence of the "nm.h" file, to determine of the
8640 configuration non-native.
8641 * configure: Regenerate.
8642
8643 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
8644
8645 From Brian Ford <ford@vss.fsi.com>
8646
8647 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
8648 conditionalize tui_active test.
8649 (lookup_cmd_1): Ditto.
8650
8651 2003-02-14 Mark Kettenis <kettenis@gnu.org>
8652
8653 * configure.in: Add check for _etext.
8654 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
8655 available.
8656 * config.in, configure: regenerated.
8657
8658 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
8659
8660 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
8661
8662 2003-02-14 Andrew Cagney <ac131313@redhat.com>
8663
8664 * main.c (tui_version): Delete variable.
8665 (captured_main): When --tui, set interpreter_p to "tui" instead of
8666 enabling tui_version.
8667 * printcmd.c (display_command) [TUI]: Test tui_active instead of
8668 tui_version.
8669 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
8670 * cli/cli-cmds.c (disassemble_command): Ditto.
8671 * defs.h (tui_version): Delete declaration.
8672 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
8673 (tui-interp.o): Add rules.
8674 (SUBDIR_TUI_OBS): Add "tui-interp.o".
8675
8676 2003-02-14 Christopher Faylor <cgf@redhat.com>
8677
8678 * win32-nat.c (register_loaded_dll): Correctly set address range for
8679 just-loaded dll.
8680
8681 2003-02-12 Jason Molenda (jmolenda@apple.com)
8682
8683 * symmisc.c (print_objfile_statistics): Include information about
8684 the number of psymtabs and symtabs in each object file.
8685
8686 2003-02-13 Keith R Seitz <keiths@redhat.com>
8687
8688 * main.h (struct captured_main_args): Add interpreter_p.
8689 * main.c (captured_main): Initialize interpreter_p from context.
8690 * gdb.c (main): Set interpreter_p argument.
8691 * Makefile.in (gdb.o): Add dependency for interps.h.
8692
8693 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8694
8695 * event-top.c (cli_command_loop): Delete declaration.
8696 (_initialize_event_loop): Delete function setting event_loop_hook.
8697 * event-top.h (cli_command_loop): Declare. Update copyright.
8698 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
8699 * interps.c (current_interp_command_loop): When event_loop_p, call
8700 cli_command_loop.
8701
8702 2003-02-12 Andrew Cagney <ac131313@redhat.com>
8703
8704 * interps.h (interp_command_loop_ftype): Change return type to
8705 void.
8706
8707 2003-02-12 Michal Ludvig <mludvig@suse.cz>
8708
8709 * x86-64-tdep.c (x86_64_extract_return_value)
8710 (x86_64_store_return_value): Use regcache instead of regbuf.
8711 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
8712 * x86-64-linux-nat.c (fill_gregset): Use regcache.
8713
8714 2003-02-11 Andrew Cagney <ac131313@redhat.com>
8715
8716 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
8717 * aclocal.m4: Regenerate.
8718 * configure: Regenerate.
8719
8720 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
8721 TCL_LD_SEARCH_FLAGS.
8722
8723 2003-02-10 Michal Ludvig <mludvig@suse.cz>
8724
8725 * dwarf2cfi.c: Reindented.
8726
8727 2003-02-09 Andrew Cagney <ac131313@redhat.com>
8728
8729 * interps.c (clear_interpreter_hooks): Convert function definition
8730 to ISO C.
8731
8732 2003-02-07 David Carlton <carlton@math.stanford.edu>
8733
8734 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8735
8736 2003-02-07 Kevin Buettner <kevinb@redhat.com>
8737
8738 * gdbtypes.h (struct main_type): Move ``length'' field from here...
8739 (struct type): ...to here.
8740 (TYPE_LENGTH): Adjust to reflect different location of ``length''
8741 field.
8742 * gdbtypes.c (make_qualified_type): Set length on newly created type.
8743 (replace_type): Set length on all type variants for a given type.
8744
8745 2003-02-07 Andrew Cagney <ac131313@redhat.com>
8746
8747 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
8748 <sys/stat.h>.
8749 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8750
8751 2003-02-06 Andrew Cagney <ac131313@redhat.com>
8752
8753 * Makefile.in (symm-nat.o): Update dependencies.
8754 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
8755 (lynx-nat.o, ia64-linux-nat.): Ditto.
8756 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
8757 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
8758 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
8759
8760 * Makefile.in (inflow_h): Define.
8761 (procfs.o, inflow.o, procfs.o): Update dependencies.
8762 * inftarg.c (child_stop): Delete extern declaration of
8763 inferior_process_group. Include "inflow.h".
8764 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
8765 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
8766 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
8767 (our_process_group, inferior_process_group): Extern declarations.
8768
8769 * procfs.c: Include "gdb_assert.h".
8770
8771 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8772 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
8773 * jv-typeprint.c (java_type_print_base): Ditto.
8774 * typeprint.c (typedef_print): Eliminate STREQ.
8775 * cli/cli-script.c (define_command, define_command): Ditto.
8776 * main.c (captured_main): Ditto.
8777 * values.c (lookup_internalvar): Ditto.
8778 * utils.c (safe_strerror, parse_escape): Eliminate assignment
8779 within `if' conditional.
8780 * linespec.c (decode_line_2): Ditto.
8781 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
8782 (bfd_openw_with_cleanup): Ditto.
8783
8784 2003-02-07 Mark Kettenis <kettenis@gnu.org>
8785
8786 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
8787 legacy_extract_return_value and store_return_value to
8788 legacy_return_value.
8789
8790 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
8791
8792 * win32-nat.c (get_relocated_section_addrs): New function. Find
8793 section load addresses for symbol handling in relocated DLLs.
8794 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
8795
8796 2003-02-05 Fred Fish <fnf@intrinsity.com>
8797
8798 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
8799 '=' and '!='.
8800 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
8801 with '&' and '=='.
8802 (angel_RDI_info): Ditto.
8803 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
8804 with '&' and '!='.
8805 (threads_continue_all_with_signals): Ditto.
8806
8807 2003-02-05 Jim Ingham <jingham@apple.com>
8808 Keith Seitz <keiths@redhat.com>
8809 Elena Zannoni <ezannoni@redhat.com>
8810 Andrew Cagney <ac131313@redhat.com>
8811
8812 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
8813 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
8814 (SUBDIR_MI_OBS): Add "mi-interp.o".
8815 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
8816 (SFILES): Add "interps.c".
8817 (COMMON_OBS): Add "interps.o".
8818 (interps_h, mi_main_h): Define.
8819 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
8820 (mi-main.o, main.o, event-top.o): Update dependencies.
8821 * cli/cli-interp.c: New file.
8822 * interps.h, interps.c: New files.
8823 * top.c: (gdb_init): Don't install the default interpreter, handed
8824 by captured_main.
8825 * main.c: Include "interps.h".
8826 (interpreter_p): Note that it should malloc'ed.
8827 (captured_command_loop): Call current_interp_command_loop.
8828 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
8829 xfree and xstrdup when updating interpreter_p. Install the
8830 default interpreter. Add hack to stop mi1's copyright notice
8831 being encoded.
8832 * event-top.h (gdb_setup_readline): Declare.
8833 (gdb_disable_readline): Declare.
8834 * event-top.c: Include "interps.h".
8835 (display_gdb_prompt): Call current_interp_display_prompt_p.
8836 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
8837 gdb_stdlog, and gdb_stdtarg.
8838 (_initialize_event_loop): Don't call gdb_setup_readline.
8839 * cli-out.c (cli_out_set_stream): New function.
8840 * cli-out.h (cli_out_set_stream): Declare.
8841
8842 2003-02-06 Mark Kettenis <kettenis@gnu.org>
8843
8844 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
8845 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
8846 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
8847 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
8848 config/i386/i386v42mp.mt: Removed.
8849
8850 2003-02-05 Mark Kettenis <kettenis@gnu.org>
8851
8852 * configure.tgt (*-*-solaris*): Set gdb_osabi to
8853 GDB_OSABI_SOLARIS.
8854
8855 2003-02-05 Michael Chastain <mec@shout.net>
8856
8857 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
8858 2.12.1 and earlier versions.
8859
8860 2003-02-05 Andrew Cagney <ac131313@redhat.com>
8861
8862 Remove orphaned hosts, targets and files.
8863 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
8864 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
8865 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
8866 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
8867 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
8868 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
8869 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
8870 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
8871 * config/sparc/tm-sp64sim.h: Delete.
8872 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
8873 hosts.
8874 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
8875 mips*-dec-mach3* targets.
8876
8877 2003-02-04 Michael Chastain <mec@shout.net>
8878
8879 * NEWS: Fix typo: sepcifying -> specifying.
8880
8881 2003-02-04 Michael Chastain <mec@shout.net>
8882
8883 * dwarfread.c: Add documentation on the state of dwarf-1,
8884 looking towards obsoletion.
8885
8886 2003-02-03 Michael Chastain <mec@shout.net>
8887
8888 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
8889 gdb/testsuite/gdb.c++/pr-1023.exp.
8890
8891 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8892
8893 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
8894 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
8895
8896 * utils.c (init_page_info): Delete reference to MPW in comments.
8897 * main.c (captured_main): Delete #ifdef MPW.
8898
8899 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8900
8901 * NEWS: Note that the m32r-*-elf* is obsolete.
8902 * monitor.c (monitor_expect): Obsolete reference to m32r.
8903 * configure.tgt: Mark m32r-*-elf* as obsolete.
8904 * MAINTAINERS: Mark m32k as obsolete.
8905 * m32r-rom.c: Obsolete file.
8906 * config/m32r/m32r.mt: Obsolete file.
8907 * config/m32r/tm-m32r.h: Obsolete file.
8908 * m32r-stub.c: Obsolete file.
8909 * m32r-tdep.c: Obsolete file.
8910
8911 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8912
8913 * NEWS: Mention that the z8k-zilog-none is obsolete.
8914 * MAINTAINERS: Mark z8k as obsolete.
8915 * configure.tgt: Obsolete the z8k-*-coff* target.
8916 * config/z8k/z8k.mt: Obsolete file.
8917 * config/z8k/tm-z8k.h: Obsolete file.
8918 * z8k-tdep.c: Obsolete file.
8919
8920 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8921
8922 * NEWS: Mention that the mn10200-elf is obsolete.
8923 * configure.tgt: Obsolete mn10200-*-* target.
8924 * breakpoint.c (update_breakpoints_after_exec): Update comment to
8925 mention that the mn10200 is obsolete.
8926 * breakpoint.h: Ditto.
8927 * MAINTAINERS: Mark the mn10200-elf as obsolete.
8928 * config/mn10200/mn10200.mt: Obsolete file.
8929 * config/mn10200/tm-mn10200.h: Obsolete file.
8930 * mn10200-tdep.c: Obsolete file.
8931
8932 2003-02-04 Andrew Cagney <ac131313@redhat.com>
8933
8934 * MAINTAINERS: Mark h8500 as obsolete.
8935 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
8936 * findvar.c (value_from_register): Ditto.
8937 * h8500-tdep.c: Mark file as obsolete.
8938 * config/h8500/h8500.mt: Ditto.
8939 * config/h8500/tm-h8500.h: Ditto.
8940 * NEWS: Mention that h8500 is obsolete.
8941
8942 2003-02-04 David Carlton <carlton@math.stanford.edu>
8943
8944 * objfiles.c (allocate_objfile): Always set name. Add comment at
8945 start of function.
8946 * jv-lang.c (get_dynamics_objfile): Add comment.
8947
8948 2003-02-04 David Carlton <carlton@math.stanford.edu>
8949
8950 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
8951 * printcmd.c (build_address_symbolic): Replace uses of
8952 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
8953 SYMBOL_NAME, and asm_demangle.
8954 Update copyright.
8955
8956 2003-02-04 David Carlton <carlton@math.stanford.edu>
8957
8958 * linespec.c (decode_compound): Extract code into
8959 lookup_prefix_sym.
8960 (lookup_prefix_sym): New function.
8961
8962 2003-02-04 David Carlton <carlton@math.stanford.edu>
8963
8964 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
8965 FLOAT_COERCION_BADNESS.
8966 * gdbtypes.c (rank_one_type): Replace all uses of
8967 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
8968
8969 2003-02-04 Jim Blandy <jimb@redhat.com>
8970
8971 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
8972 section, let dwarf_macinfo_section point to it, not
8973 dwarf_loc_section.
8974
8975 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
8976
8977 Pointed out by Anton Blanchard <anton@samba.org>.
8978 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
8979 (ppc_linux_at_sigtramp_return_path): Use it.
8980
8981 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
8982
8983 * defs.h (streq): Add prototype.
8984 * utils.c (streq): New function.
8985
8986 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
8987 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
8988 * mdebugread.c (new_symbol): Likewise.
8989 * stabsread.c (define_symbol): Likewise.
8990 * coffread.c (process_coff_symbol): Likewise.
8991 * dwarfread.c (new_symbol): Likewise.
8992
8993 * minsyms.c (prim_record_minimal_symbol_and_info): Use
8994 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
8995 here.
8996 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
8997 SYMBOL_INIT_DEMANGLED_NAME.
8998 * objfiles.c: Include "hashtab.h".
8999 (allocate_objfile): Call htab_set_functions_ex for the
9000 demangled_names_hash.
9001 (free_objfile): Call htab_delete for the demangled_names_hash.
9002 * objfiles.h (struct htab): Add declaration.
9003 (struct objfile): Add demangled_names_hash.
9004 * symfile.c: Include "hashtab.h".
9005 (reread_symbols): Call htab_delete for the demangled_names_hash.
9006 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
9007 SYMBOL_NAME in the bcache.
9008 * symtab.c: Include "hashtab.h". Update comments.
9009 (create_demangled_names_hash, symbol_set_names): New functions.
9010 (symbol_find_demangled_name): New function, broken out from
9011 symbol_init_demangled_names.
9012 (symbol_init_demangled_names): Use it.
9013 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
9014 (SYMBOL_SET_NAMES): New macro.
9015 (symbol_set_names): Add prototype.
9016
9017 2003-02-03 Jim Blandy <jimb@redhat.com>
9018
9019 Use a single, consistent representation for an empty minimal
9020 symbol table in an objfile.
9021 * objfiles.c (terminate_minimal_symbol_table): New function.
9022 (allocate_objfile): Call it.
9023 * objfiles.h (terminate_minimal_symbol_table): New declaration.
9024 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
9025 non-NULL.
9026 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
9027 objfile has minimal symbols, compare minimal_symbol_count to zero,
9028 instead of comparing msymbols with NULL.
9029 * objfiles.c (have_minimal_symbols): Same.
9030 * solib-sunos.c (solib_add_common_symbols): Call
9031 terminate_minimal_symbol_table.
9032 * symfile.c (reread_symbols): Same.
9033
9034 2003-02-03 Kevin Buettner <kevinb@redhat.com>
9035
9036 * s390-tdep.c (s390_address_class_type_flags)
9037 (s390_address_class_type_flags_to_name)
9038 (s390_address_class_name_to_type_flags): New functions.
9039 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
9040 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
9041
9042 2003-02-03 Michael Snyder <msnyder@redhat.com>
9043
9044 * arm-tdep.c: Fix spell-o in comment.
9045
9046 2003-02-03 Michal Ludvig <mludvig@suse.cz>
9047
9048 * dwarf2cfi.c (pointer_encoding): Added new parameter.
9049 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
9050 error messages to contain BFD filename.
9051
9052 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
9053
9054 Fix PR gdb/742 gdb/743 gdb/877
9055 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
9056 (do_mixed_source_and_assembly): Use
9057 make_cleanup_ui_out_tuple_begin_end and
9058 make_cleanup_ui_out_tuple_begin_end.
9059 (do_mixed_source_and_assembly): Ditto.
9060 * thread.c (do_captured_list_thread_ids): Ditto.
9061 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
9062 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
9063 ui_out_tuple_end): Delete prototypes.
9064 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
9065 ui_out_list_end, ui_out_tuple_end): Delete.
9066
9067 From Kevin Buettner <kevinb@redhat.com>:
9068 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
9069 * ui-out.c (make_cleanup_ui_out_table_begin_end)
9070 (do_cleanup_table_end): New functions.
9071 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
9072 Use cleanups to invoke_ui_out_tuple_end().
9073 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
9074 * cli/cli-setshow.c (cmd_show_list): Use
9075 make_cleanup_ui_out_tuple_begin_end.
9076
9077 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9078
9079 * frame.c (frame_unwind_register): New function.
9080 (frame_unwind_unsigned_register): Use.
9081 (frame_unwind_signed_register): Use.
9082 (frame_read_register): New function.
9083 * frame.h (frame_unwind_register): Declare.
9084 (frame_read_register): Declare.
9085
9086 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
9087 and frame_unwind_register instead of read_memory, write_register
9088 and deprecated_write_register_bytes.
9089
9090 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9091
9092 * frame.h: Note that namelen can be negative.
9093 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
9094 NAME's length.
9095
9096 * NEWS: Mention that the d10v's `regs' command is deprecated.
9097 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
9098 (d10v_print_registers_info): New function.
9099 (show_regs): Call d10v_print_registers_info.
9100 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
9101
9102 2003-02-02 Mark Kettenis <kettenis@gnu.org>
9103
9104 * stack.c (print_frame_info): Restore call to annotate_frame_begin
9105 lost in the previous patch.
9106
9107 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9108
9109 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
9110 * stack.c (print_frame_info_base): Output complete FRAME tuple
9111 for synthesized frames.
9112
9113 2003-02-02 Andrew Cagney <ac131313@redhat.com>
9114
9115 * mips-nat.c (zerobuf): Delete.
9116 (fetch_inferior_registers): Alloc local zerobuf.
9117 (fetch_core_registers): Alloc local zerobuf.
9118 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
9119 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
9120 * thread-db.c (thread_db_store_registers): Ditto.
9121 * sh-tdep.c (sh_do_register): Ditto.
9122 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
9123 * remote-sim.c (gdbsim_store_register): Ditto.
9124 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9125 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9126 * monitor.c (monitor_supply_register): Ditto.
9127 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
9128 * mips-nat.c (fetch_inferior_registers): Ditto.
9129 * m68klinux-nat.c (fetch_register): Ditto.
9130 * lynx-nat.c (fetch_inferior_registers): Ditto.
9131 (fetch_inferior_registers): Ditto.
9132 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
9133 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9134 (hpux_thread_store_registers): Ditto.
9135 * hppah-nat.c (fetch_register): Ditto.
9136 * hppab-nat.c (fetch_register): Ditto.
9137 * hppa-tdep.c (pa_register_look_aside): Ditto.
9138 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
9139 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
9140
9141 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9142
9143 * gdbarch.sh: Explictly specify all method levels. When a
9144 variable with an empty level, provide a non-multi-arch default.
9145 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
9146 * gdbarch.h: Re-generate.
9147 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
9148 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
9149
9150 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9151
9152 * defs.h (host_pointer_to_address): Delete declaration.
9153 (address_to_host_pointer): Delete declaration.
9154 * utils.c (host_pointer_to_address): Delete function.
9155 (address_to_host_pointer): Delete function.
9156 * procfs.c (procfs_address_to_host_pointer): New function.
9157 * procfs.c (proc_set_watchpoint): Use.
9158 (procfs_can_use_hw_breakpoint): Update comments.
9159 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
9160 (som_solib_add): Use.
9161 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
9162 * hppa-tdep.c (unwind_command): Use.
9163
9164 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9165
9166 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
9167 strlen d_name.
9168
9169 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
9170 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
9171 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
9172 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
9173 (define_symbol): Update.
9174 * symfile.c (generic_load): Remove references to nindy.
9175 * symtab.c: Remove references to nindy.
9176
9177 2003-02-01 Andrew Cagney <ac131313@redhat.com>
9178
9179 * infcmd.c (print_float_info): Delete code conditional on
9180 FLOAT_INFO.
9181 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
9182 * config/m68k/nm-apollo68b.h: Ditto.
9183 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
9184 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
9185 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
9186
9187 2003-02-01 Mark Kettenis <kettenis@gnu.org>
9188
9189 * config/i386/tm-i386os9k.h: Removed.
9190
9191 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
9192 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
9193 they're identical to i[3456]86-*-sysv* now.
9194 * config/i386/i386v32.mh: Removed.
9195 * config/i386/xm-i386v32.h: Removed.
9196 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
9197
9198 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
9199
9200 * config/i386/i386dgux.mh: Removed.
9201 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
9202
9203 * configure.in: Fix typo.
9204 * configure: Regenerated.
9205
9206 2003-01-31 David Carlton <carlton@math.stanford.edu>
9207
9208 * dwarf2read.c (dwarf2_locate_sections): Set
9209 dwarf_ranges_section.
9210
9211 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9212
9213 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
9214 * utils.c: Update comments documenting legitimate uses of PTR.
9215
9216 * utils.c: Re-indent.
9217
9218 * config/djgpp/fnchange.lst: Delete nindy files.
9219 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
9220 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
9221 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
9222 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
9223 * nindy-share/README, nindy-share/Onindy.c: Delete files.
9224 * nindy-tdep.c, nindy-share/Makefile: Delete files.
9225 * Makefile.in (init.c): Remove nindy references.
9226 (saber_gdb): Delete rule.
9227 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
9228 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
9229 and a68v-nat.c.
9230 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
9231 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
9232 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
9233 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
9234 nindy-share/stop.h.
9235 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
9236 * saber.suppress: Delete file.
9237
9238 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
9239
9240 * dbxread.c (stabs_data): New static variable.
9241 (fill_symbuf): Support an in-memory buffer for stabs data.
9242 (stabs_seek): New function.
9243 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
9244 (read_ofile_symtab): Use stabs_seek.
9245 (elfstab_build_psymtabs): Take an asection* instead of
9246 an offset and size. Relocate the stabs data if necessary.
9247 Save the section* for dbx_psymtab_to_symtab.
9248 * dwarf2read.c: Add section variables for each debug section.
9249 (dwarf2_locate_sections): Fill them in.
9250 (dwarf2_read_section): Take an asection* argument.
9251 Relocate the section contents if necessary.
9252 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
9253 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
9254 it to dwarf2_read_section.
9255 (dwarf2_build_frame_info): Update callers.
9256 * elfread.c (elf_symfile_read): Update call to
9257 elfstab_build_psymtabs.
9258 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
9259 (DBX_STAB_SECTION): New macro.
9260 * stabsread.h (elfstab_build_psymtabs): Update prototype.
9261 * symfile.c (symfile_dummy_outputs): New function.
9262 (symfile_relocate_debug_section): New function.
9263 * symfile.h (symfile_relocate_debug_section): Add prototype.
9264
9265 2003-01-31 Richard Henderson <rth@redhat.com>
9266
9267 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
9268 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
9269 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
9270 * alpha-tdep.c (alpha_register_name): Add "unique".
9271 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
9272 (ALPHA_UNIQUE_REGNUM): New.
9273 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
9274
9275 2003-01-31 Andrew Cagney <ac131313@redhat.com>
9276
9277 * README: Remove reference to Ericsson 1800 monitor.
9278 * Makefile.in (remote-es.o): Delete rule.
9279 (ALLDEPFILES): Delete remote-es.c.
9280 * remote-es.c: Delete file.
9281 * config/m68k/es1800.mt: Delete file.
9282 * config/djgpp/fnchange.lst: Update.
9283 * configure.tgt: Delete m68*-ericsson-* target.
9284
9285 2003-01-31 Adam Fedor <fedor@gnu.org>
9286
9287 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
9288 Remove duplicate/shadowing variable of same name.
9289
9290 2003-01-30 Jim Blandy <jimb@redhat.com>
9291
9292 * symfile.c (find_separate_debug_file): Assert that the objfile's
9293 directory name we compute ends with a slash, and then assume that
9294 that's so everywhere we use it.
9295
9296 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
9297
9298 * valops.c (value_assign): Flush frame cache after stores to memory
9299 also.
9300
9301 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9302
9303 * Makefile.in (mon960-rom.o): Delete rule.
9304 * mon960-rom.c: Delete file.
9305
9306 2003-01-30 Andrew Cagney <ac131313@redhat.com>
9307
9308 * d10v-tdep.c: Include "frame-unwind.h".
9309 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9310 list.
9311 (next_addr, uses_frame): Delete.
9312 (struct d10v_unwind_cache): Define.
9313 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9314 Use info instead of next_addr and uses_frame globals.
9315 (d10v_frame_init_saved_regs): Delete function.
9316 (d10v_init_extra_frame_info): Delete function.
9317 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9318 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9319 init_frame_pc or frame_saved_pc.
9320 (d10v_pop_frame): Delete function.
9321 (do_d10v_pop_frame): Delete function.
9322 (d10v_frame_chain): Delete function.
9323 (d10v_frame_chain_valid): Delete function.
9324 (d10v_frame_pc_unwind): New function.
9325 (d10v_frame_id_unwind): New function.
9326 (saved_regs_unwinder): New function.
9327 (d10v_frame_register_unwind): New function.
9328 (d10v_frame_pop): New function.
9329 (d10v_frame_unwind): New variable.
9330 (d10v_frame_p): New function.
9331 (d10v_frame_saved_pc): Delete function.
9332 * Makefile.in (d10v-tdep.o): Update dependencies.
9333
9334 2003-01-30 J. Brobecker <brobecker@gnat.com>
9335
9336 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9337 causing some regressions due to a change in the default value
9338 for this macro.
9339
9340 2003-01-29 Richard Henderson <rth@redhat.com>
9341 Elena Zannoni <ezannoni@redhat.com>
9342 Daniel Jacobowitz <drow@mvista.com>
9343
9344 Fix PR gdb/961.
9345 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
9346 variables.
9347 (RANGES_SECTION): New.
9348 (dwarf_ranges_buffer): New variable.
9349 (struct comp_unit_head): Add member "die".
9350 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9351 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9352 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9353 (dwarf2_locate_sections): Likewise.
9354 (dwarf2_build_psymtabs): Read .debug_ranges.
9355 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9356 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9357 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9358 Look for DW_AT_ranges and return the bounding box.
9359
9360 2003-01-29 Brian Ford <ford@vss.fsi.com>
9361
9362 * win32-nat.c (cygwin_pid): Removed as unused.
9363 (child_attach): Try fall back to Cygwin pid.
9364
9365 2003-01-29 Jim Blandy <jimb@redhat.com>
9366
9367 * objfiles.h (struct objfile): Doc fix.
9368
9369 2003-01-29 Andrew Cagney <ac131313@redhat.com>
9370
9371 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9372 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9373 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9374 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9375 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9376 (FRAME_SAVED_PC): Change to a function with predicate.
9377 * gdbarch.h, gdbarch.c: Re-generate.
9378
9379 2003-01-28 Andrew Cagney <ac131313@redhat.com>
9380
9381 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9382
9383 * complaints.c (complain): Delete function.
9384 * complaints.h (struct deprecated_complaint): Delete definition.
9385 (complain): Delete declaration.
9386
9387 2003-01-28 Kevin Buettner <kevinb@redhat.com>
9388
9389 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9390 dummy frames.
9391
9392 2003-01-27 Andrew Cagney <ac131313@redhat.com>
9393
9394 * sentinel-frame.h, sentinel-frame.c: New files.
9395 * Makefile.in (frame.o): Update dependencies.
9396 (SFILES): Add sentinel-frame.c.
9397 (sentinel_frame_h): Define.
9398 (COMMON_OBS): Add sentinel-frame.o.
9399 (sentinel-frame.o): Specify dependencies.
9400 * frame.c: Include "sentinel-frame.h".
9401 (frame_register_unwind): Rewrite assuming that there is always a a
9402 ->next frame.
9403 (frame_register, generic_unwind_get_saved_register): Ditto.
9404 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9405 (create_sentinel_frame, unwind_to_current_frame): New functions.
9406 (get_current_frame): Rewrite using create_sentinel_frame and
9407 unwind_to_current_frame. When possible, always create a frame.
9408 (create_new_frame): Set next to the sentinel frame.
9409 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9410 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9411 ID cache when necessary.
9412 (frame_saved_regs_id_unwind): Use frame_relative_level.
9413 (deprecated_generic_get_saved_register): Use frame_relative_level,
9414 get_frame_saved_regs, get_frame_pc, get_frame_base and
9415 get_next_frame.
9416 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9417 frame_register.
9418
9419 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9420
9421 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9422
9423 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9424
9425 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9426 (maintenance_set_profile_cmd): Use error () instead of warning ().
9427
9428 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
9429
9430 * configure.in: Check that -pg works if using --enable-profiling.
9431 Check for monstartup and _mcleanup regardless of --enable-profiling.
9432 * maint.c: Check for monstartup and _mcleanup before using them.
9433 * config.in: Regenerated.
9434 * configure: Regenerated.
9435
9436 2003-01-24 Nick Clifton <nickc@redhat.com>
9437
9438 * Add sh2e support:
9439
9440 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9441
9442 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9443 (sh2e_show_regs): New.
9444 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9445 * config/sh/tm-sh.h: Added sh2e to comments.
9446
9447 2003-01-23 Jim Blandy <jimb@redhat.com>
9448
9449 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9450 symbols found)" message here; we haven't checked for a separate
9451 debug info file yet, so we don't know yet.
9452 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9453 we've looked everywhere. Also, there's no need to print a special
9454 message when we're loading the separate debug info file: the one
9455 symbol_file_add prints is fine.
9456
9457 2003-01-23 Alexander Larsson <alexl@redhat.com>
9458 Jim Blandy <jimb@redhat.com>
9459
9460 Add support for executables whose debug info has been separated
9461 out into a separate file, leaving only a link behind.
9462 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9463 and separate_debug_objfile_backlink.
9464 (put_objfile_before): New declaration.
9465 * symfile.c: #include "filenames.h".
9466 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9467 debug info in a separate file, read that, too. Save the addrs
9468 argument, so we can use it again to read the separated debug info;
9469 syms_from_objfile modifies the table we pass it.
9470 (reread_symbols): After re-reading an objfile, call
9471 reread_separate_symbols to refresh its separate debug info
9472 objfile, if it has one.
9473 (reread_separate_symbols, find_separate_debug_file,
9474 get_debug_link_info, separate_debug_file_exists): New functions.
9475 (debug_file_directory): New global var.
9476 (_initialize_symfile): Initialize debug_file_directory, and
9477 provide the new `set debug-file-directory' command to let the user
9478 change it.
9479 * objfiles.c (free_objfile): If this objfile has its debug info in
9480 a separate objfile, free that one too. If this is itself a
9481 separate debug info objfile, clear our parent's backlink.
9482 (put_objfile_before): New function.
9483 * utils.c (gnu_debuglink_crc32): New function.
9484 * defs.h (gnu_debuglink_crc32): New declaration.
9485 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9486 * configure.in: Handle --with-separate-debug-dir config option.
9487 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9488 * acconfig.h (DEBUGDIR): New macro.
9489 * configure, aclocal.m4, config.in: Regenerated.
9490
9491 2003-01-22 Jim Blandy <jimb@redhat.com>
9492
9493 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9494 like the old symbol_file_add, but taking new arguments: you can
9495 now pass in either a `struct section_addr_info' list to say where
9496 each section is loaded, or a `struct section_offsets' table. Pass
9497 these new arguments through to syms_from_objfile as appropriate.
9498 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
9499 with the appropriate quiescent values for the new arguments.
9500
9501 * symfile.c: #include "gdb_assert.h".
9502 (syms_from_objfile): Add the ability to pass in a section offset
9503 table directly, as an alternative to the section_addr_info table.
9504 Document arguments better.
9505 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9506 * symfile.h (syms_from_objfile): Update declaration.
9507 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9508 syms_from_objfile.
9509 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9510
9511 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
9512
9513 Original patch by Tom Tromey <tromey@cygnus.com> and
9514 Jason Molenda <jmolenda@apple.com>.
9515 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9516 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9517 * NEWS: Mention profiling.
9518 * configure.in (--enable-gdbtk): Fix typo.
9519 (--enable-profiling): New. Set PROFILE_CFLAGS.
9520 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9521 Fill in function.
9522 (profiling_state): New variable.
9523 (mcleanup_wrapper): New function.
9524 (_initialize_maint): Remove NOTYET, fix call to
9525 add_setshow_boolean_cmd for "maint set profile".
9526 * configure: Regenerated.
9527
9528 2003-01-21 Martin M. Hunt <hunt@redhat.com>
9529
9530 * Makefile.in (install-gdbtk): Install PNG images too.
9531
9532 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9533
9534 * exec.c (text_start): Delete global variable.
9535 (exec_file_attach): Make text_start local to the function.
9536 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9537 * valops.c (hand_function_call): Delete code that handles
9538 BEFORE_TEXT_END and AFTER_TEXT_END.
9539 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9540 of CALL_DUMMY_LOCATION.
9541 * gdbarch.c: Regenerate.
9542 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9543 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9544 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9545 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9546 (text_end): Delete extern declaration.
9547
9548 2003-01-21 Andrew Cagney <ac131313@redhat.com>
9549
9550 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9551 * blockframe.c (backtrace_below_main): Move to "frame.c".
9552 (frame_chain_valid): Delete check for backtrace_below_main.
9553 (_initialize_blockframe): Delete initialization, move ``set
9554 backtrace-below-main'' command to "frame.c".
9555 (do_flush_frames_sfunc): Delete function.
9556 * frame.c: Include "command.h" and "gdbcmd.h".
9557 (frame_type_from_pc): New function.
9558 (create_new_frame): Use frame_type_from_pc.
9559 (legacy_get_prev_frame): New function.
9560 (get_prev_frame): Rewrite. When an old style frame, call
9561 legacy_get_prev_frame. Otherwize, unwind the PC first.
9562 (_initialize_frame): Add ``set backtrace-below-main'' command.
9563 * Makefile.in (frame.o): Update dependencies.
9564
9565 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9566
9567 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9568 DEPRECATED_REGISTERS_INFO.
9569
9570 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9571
9572 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9573 Maintainers'. Update `Various Maintainers'.
9574
9575 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9576
9577 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9578 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9579 Suppress actual parameters when `-'.
9580 * gdbarch.h, gdbarch.c: Regenerate.
9581
9582 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9583
9584 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9585 code handling dummy frames.
9586
9587 2003-01-19 Andrew Cagney <ac131313@redhat.com>
9588
9589 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9590 (struct frame_unwind): Add field pop.
9591 * frame.h (frame_pop): Declare.
9592 * frame.c (frame_saved_regs_pop): New function.
9593 (trad_frame_unwinder): Add frame_saved_regs_pop.
9594 (frame_pop): New function.
9595 * dummy-frame.c (dummy_frame_pop): New function.
9596 (discard_innermost_dummy): New function.
9597 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9598 (dummy_frame_unwind): Add dummy_frame_pop.
9599 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9600 * valops.c (hand_function_call): Ditto.
9601 * stack.c (return_command): Ditto.
9602
9603 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9604
9605 * cris-tdep.c: Fix function declaration indentation.
9606 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9607 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9608 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9609 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9610 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9611 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9612
9613 2003-01-18 Michael Chastain <mec@shout.net>
9614
9615 * README (Unpacking and Installation -- quick overview):
9616 Warn against ".../gdb-5.3/gdb/configure".
9617
9618 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9619
9620 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9621 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9622 (struct frame_unwind): Declare opaque.
9623 (dummy_frame_p): Declare function.
9624 * dummy-frame.c (dummy_frame_id_unwind): Make static.
9625 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9626 * dummy-frame.c: Include "frame-unwind.h".
9627 (dummy_frame_p): New function.
9628 (dummy_frame_unwind): New variable.
9629 * frame.c: Include "frame-unwind.h".
9630 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
9631 to use the new unwind field.
9632 (set_unwind_by_pc): Delete function.
9633 (create_new_frame, get_prev_frame): Set unwind field using
9634 frame_unwind_find_by_pc.
9635 (trad_frame_unwind, trad_frame_unwinder): New variables.
9636 * frame.h (trad_frame_unwind): Declare variable.
9637 (frame_id_unwind_ftype): Delete declaration.
9638 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
9639 (struct frame_unwind): Declare opaque.
9640 (struct frame_info): Replace the fields id_unwind, pc_unwind and
9641 register_unwind with a single unwind pointer.
9642 * frame-unwind.h, frame-unwind.c: New files.
9643 * Makefile.in (SFILES): Add frame-unwind.c.
9644 (frame_unwind_h): Define.
9645 (COMMON_OBS): Add frame-unwind.o.
9646 (frame-unwind.o): Specify dependencies.
9647 (frame.o, dummy-frame.o): Update dependencies.
9648
9649 2003-01-18 Andrew Cagney <ac131313@redhat.com>
9650
9651 * ada-valprint.c: Eliminate PTR.
9652 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
9653 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
9654 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
9655 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
9656 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
9657 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
9658 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
9659
9660 2003-01-17 Andrew Cagney <ac131313@redhat.com>
9661
9662 * main.c (captured_main): Don't use PTR.
9663 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
9664 * gdbtypes.c (lookup_primitive_typename): Ditto.
9665 (lookup_struct_elt_type): Ditto.
9666 * f-valprint.c (info_common_command): Ditto.
9667 (list_all_visible_commons): Ditto.
9668 * jv-typeprint.c (java_type_print_base): Ditto.
9669
9670 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
9671 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
9672 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
9673 i386-interix-nat.c and i386-interix-tdep.c. Rename
9674 m68klinux-nat.c and m68klinux-tdep.c. Rename
9675 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
9676 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
9677 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
9678 * main.c (captured_main): Use xfree, not free.
9679
9680 2003-01-16 Andrew Cagney <ac131313@redhat.com>
9681
9682 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
9683 ID back using a parameter.
9684 * frame.c (frame_id_unwind): Update call.
9685 (frame_saved_regs_id_unwind): Update.
9686 * dummy-frame.c (dummy_frame_id_unwind): Update function.
9687 * dummy-frame.h (struct frame_id): Add opaque declaration.
9688 (dummy_frame_id_unwind): Update declaration.
9689
9690 2003-01-15 Andrew Cagney <ac131313@redhat.com>
9691
9692 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
9693
9694 2003-01-15 Stephen P. Smith <ischis2@cox.net>
9695
9696 * MAINTAINERS (Stephen P. Smith): Updated email address.
9697
9698 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
9699
9700 Fix PR gdb/898
9701 * breakpoint.c (until_break_command): Add new argument. Use it to
9702 decide whether to stop only at the current frame or not.
9703 * breakpoint.h (until_break_command): Update prototype.
9704 * infcmd.c (until_command): Add new argument to until_break_command
9705 call.
9706 (advance_command): New function.
9707 (_initialize_infcmd): Update help string for 'until' command.
9708 Add new 'advance' command.
9709
9710 2003-01-14 David Carlton <carlton@math.stanford.edu>
9711
9712 * linespec.c (decode_line_1): Normalize comments.
9713 (set_flags): Ditto.
9714 (locate_first_half): Ditto.
9715 (decode_compound): Ditto.
9716 (symtab_from_filename): Ditto.
9717 (decode_all_digits): Ditto.
9718 (decode_dollar): Ditto.
9719 (find_methods): Ditto.
9720 (find_toplevel_char): Ditto.
9721
9722 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9723
9724 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
9725 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
9726 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
9727 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
9728 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
9729 * language.c, language.h, m32r-tdep.c: Update copyright.
9730 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
9731 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
9732 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
9733 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
9734 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9735 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
9736
9737 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9738
9739 * stabsread.h (process_later, resolve_cfront_continuation):
9740 Obsolete.
9741 Update copyright years.
9742 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
9743 Update copyright year.
9744 * dbxread.c(struct cont_elem): Obsolete.
9745 (process_later, process_now): Obsolete functions.
9746 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
9747 Update copyright year.
9748 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
9749 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
9750 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
9751 (parse_partial_symbols): Obsolete cfront support.
9752 * stabsread.c
9753 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
9754 macros.
9755 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
9756 read_cfront_baseclasses, read_cfront_member_functions,
9757 resolve_cfront_continuation,read_cfront_static_fields,
9758 copy_cfront_struct_fields): Obsolete functions.
9759 (define_symbol, read_one_struct_field): Obsolete cfront support.
9760 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
9761 Update Copyright year.
9762
9763 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
9764
9765 * stack.c (print_frame_info, print_stack_frame_base_stub,
9766 print_stack_frame_base, show_and_print_stack_frame_stub,
9767 show_and_print_stack_frame, print_only_stack_frame_stub,
9768 print_only_stack_frame): Delete functions.
9769 (print_stack_frame_stub): Call print_frame_info instead of
9770 print_frame_info_base.
9771 (print_frame_info_base): Rename to print_frame_info.
9772 (backtrace_command_1): Call print_frame_info, instead of
9773 print_frame_info_base.
9774 (current_frame_command): Call print_stack_frame, instead of
9775 print_only_stack_frame.
9776 (frame_command): Call print_stack_frame, instead of
9777 show_and_print_stack_frame.
9778 (up_command): Ditto.
9779 (down_command): Ditto.
9780 * frame.h (print_only_stack_frame): Delete prototype.
9781 * infrun.c (normal_stop): Call print_stack_frame, instead of
9782 show_and_print_stack_frame.
9783 * thread.c (info_threads_command): Call print_stack_frame, instead
9784 of print_only_stack_frame.
9785
9786 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9787
9788 * README (Graphical interface to GDB): Update URL. Point at
9789 gdb/links/.
9790
9791 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
9792 version match.
9793
9794 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9795
9796 * symtab.c (find_pc_sect_line): Don't consider end-of-function
9797 lines.
9798
9799 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9800
9801 * thread-db.c (attach_thread): Prototype.
9802 (struct private_thread_info): Remove lwpid. Add thread handle (th),
9803 thread information (ti), and valid flags (th_valid, ti_valid).
9804 (attach_thread): Move target_pid_to_str call to after the thread
9805 is added to GDB's list. Initialize the cache.
9806 (thread_get_info_callback, thread_db_map_id2thr)
9807 (thread_db_get_info): New functions.
9808 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
9809 (thread_db_store_registers, thread_db_thread_alive)
9810 (thread_db_get_thread_local_address): Use them.
9811 (thread_db_pid_to_str): Likewise. Return "Missing" instead
9812 of calling error() for threads in unknown state.
9813
9814 (clear_lwpid_callback): New function.
9815 (thread_db_resume): Use it to clear the cache.
9816
9817 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9818
9819 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
9820 (resume_callback): Remove dead code.
9821
9822 2003-01-13 Andrew Cagney <ac131313@redhat.com>
9823
9824 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
9825 predicate.
9826 * gdbarch.h, gdbarch.c: Regenerate.
9827 * stack.c (frame_info): Only initialize the saved registers when
9828 FRAME_INIT_SAVED_REGS_P.
9829 * frame.c (frame_saved_regs_register_unwind): Assert
9830 FRAME_INIT_SAVED_REGS_P.
9831 (deprecated_generic_get_saved_register): Ditto.
9832
9833 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9834
9835 * source.c (openp): Squelch warning about "filename".
9836
9837 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9838
9839 * source.c (openp): If the file does not exist don't necessarily
9840 search the path.
9841
9842 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9843
9844 Fix PR gdb/872.
9845 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
9846 (integer_types_same_name_p): New function.
9847 (rank_one_type): Use it.
9848 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
9849
9850 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
9851
9852 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
9853 variables.
9854 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
9855 * configure.in: Add --with-sysroot.
9856 * configure: Regenerated.
9857 * main.c (gdb_sysroot): New variable.
9858 (captured_main): Initialize gdb_sysroot.
9859 * defs.h (gdb_sysroot): New extern declaration.
9860 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
9861
9862 2003-01-12 Michael Chastain <mec@shout.net>
9863
9864 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
9865
9866 2003-01-12 Michael Chastain <mec@shout.net>
9867
9868 * top.c (print_gdb_version): Bump copyright year to 2003.
9869
9870 2003-01-12 David Carlton <carlton@bactrian.org>
9871
9872 * linespec.c (symtab_from_filename): Rename variable 's' to
9873 'file_symtab'.
9874
9875 2003-01-12 Andrew Cagney <ac131313@redhat.com>
9876
9877 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
9878 dummy frame.
9879 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
9880
9881 2003-01-12 Andrew Cagney <ac131313@redhat.com>
9882
9883 * d10v-tdep.c: Include "gdb_assert.h".
9884 (d10v_store_return_value): Rewrite to match current interface.
9885 (d10v_extract_struct_value_address): Ditto.
9886 (d10v_extract_return_value): Ditto.
9887 (d10v_gdbarch_init): Set store_restore_value,
9888 extract_struct_value_address and extract_return_value.
9889
9890 2003-01-12 J. Brobecker <brobecker@gnat.com>
9891
9892 * hpread.c (set_namestring): New procedure replacing the
9893 SET_NAMESTRING macro.
9894 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
9895 by calls to set_namestring.
9896
9897 2003-01-11 J. Brobecker <brobecker@gnat.com>
9898
9899 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
9900 a compilation warning.
9901 (hpread_process_one_debug_symbol): Likewise.
9902
9903 2003-01-10 David Carlton <carlton@math.stanford.edu>
9904
9905 * linespec.c (decode_line_1): Rename variable 's' to
9906 'file_symtab'.
9907 (decode_all_digits): Rename argument 's' to 'file_symtab'.
9908 (decode_dollar): Ditto.
9909 (decode_variable): Ditto.
9910 (symbol_found): Ditto.
9911
9912 2003-01-09 Michael Chastain <mec@shout.net>
9913
9914 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
9915
9916 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
9917
9918 * win32-nat.c (set_process_privilege): New function.
9919 (child_attach): Call set_process_privilege() to enable the
9920 SE_DEBUG_NAME user privilege if available in process token.
9921
9922 2003-01-10 J. Brobecker <brobecker@gnat.com>
9923
9924 * hpread.c (hpread_process_one_debug_symbol): Fix a small
9925 compilation error in the previous revision.
9926
9927 2003-01-09 David Carlton <carlton@math.stanford.edu>
9928
9929 * linespec.c: Update copyright.
9930
9931 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
9932
9933 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
9934 than inferior_ptid.
9935 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
9936
9937 2003-01-09 Andrew Cagney <ac131313@redhat.com>
9938
9939 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
9940 Update comments.
9941 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
9942 (frame_saved_regs_zalloc): Update.
9943 (frame_saved_regs_register_unwind): Update.
9944 (create_new_frame): Update.
9945 (get_prev_frame): Update.
9946 (frame_extra_info_zalloc): Update.
9947 (deprecated_get_frame_saved_regs): Update.
9948 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
9949 * cris-tdep.c: Update comment.
9950
9951 * somsolib.h: Fix function indentation.
9952 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
9953 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
9954 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
9955 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
9956 * somsolib.c, inftarg.c: Remove assignment in if conditional.
9957
9958 * infrun.c (follow_fork): Use ISO C definition.
9959 * expprint.c (print_subexp): Use xfree instead of free.
9960 * charset.c: Include "gdb_string.h" instead of <string.h>.
9961 (register_iconv_charsets): Use ISO C definition.
9962 (host_charset, target_charset): Ditto.
9963 * Makefile.in (charset.o): Update dependencies.
9964 (mi-cmd-env.o): Update dependencies.
9965
9966 2003-01-08 Andrew Cagney <cagney@redhat.com>
9967
9968 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
9969 get_frame_base.
9970
9971 2003-01-08 Andrew Cagney <ac131313@redhat.com>
9972
9973 * gdb_mbuild.sh: Add --keep option. When specified, keep the
9974 build directories. Save edited gdb output in Mbuild.log. If a
9975 build fails, remove any final GDB executable.
9976
9977 2003-01-08 Andrew Cagney <ac131313@redhat.com>
9978
9979 * gdb_mbuild.sh: Edit the output of `maint print architecture'
9980 replacing hex constants with function names and stripping leading
9981 file name directory prefixes.
9982
9983 2003-01-08 Andrew Cagney <cagney@redhat.com>
9984
9985 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
9986 get_frame_base.
9987
9988 2003-01-08 David Carlton <carlton@math.stanford.edu>
9989
9990 * linespec.c (decode_line_1): Move code into decode_variable.
9991 (decode_variable): New function.
9992
9993 2003-01-08 Andrew Cagney <ac131313@redhat.com>
9994
9995 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
9996
9997 2003-01-08 Andrew Cagney <cagney@redhat.com>
9998
9999 * cris-tdep.c (cris_frame_init_saved_regs): Use
10000 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
10001 saved_regs buffer.
10002 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10003 (sh64_nofp_frame_init_saved_regs): Ditto.
10004 (sh_fp_frame_init_saved_regs): Ditto.
10005 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
10006 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10007 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10008 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10009
10010 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
10011
10012 * minsyms.c (lookup_minimal_symbol): Update comment.
10013 (lookup_minimal_symbol_text): Update comment. Use the hash table.
10014 (lookup_minimal_symbol_solib_trampoline): Likewise.
10015
10016 2003-01-08 Andrew Cagney <cagney@redhat.com>
10017
10018 * d10v-tdep.c (d10v_init_extra_frame_info): Use
10019 frame_relative_level.
10020
10021 * alpha-tdep.c: Use get_frame_extra_info.
10022 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10023 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
10024 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10025 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
10026
10027 * alpha-tdep.c: Use get_next_frame.
10028 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10029 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10030 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
10031 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
10032 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
10033 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
10034 * xstormy16-tdep.c: Ditto.
10035
10036 2003-01-07 Andrew Cagney <cagney@redhat.com>
10037
10038 * alpha-tdep.c: Use get_frame_base.
10039 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10040 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10041 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10042 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
10043 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
10044 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10045 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
10046 * config/sparc/tm-sparc.h: Ditto.
10047
10048 2003-01-07 Andrew Cagney <cagney@redhat.com>
10049
10050 * frame.c (deprecated_get_frame_context): New function.
10051 (deprecated_set_frame_context): New function.
10052 * frame.h (deprecated_get_frame_context): Declare.
10053 (deprecated_set_frame_context): Declare.
10054 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
10055 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
10056
10057 2003-01-07 Andrew Cagney <cagney@redhat.com>
10058
10059 * frame.c (deprecated_set_frame_next_hack): New function.
10060 (deprecated_set_frame_prev_hack): New function.
10061 * frame.h (deprecated_set_frame_next_hack): Declare.
10062 (deprecated_set_frame_prev_hack): Declare.
10063 * mcore-tdep.c (analyze_dummy_frame): Use
10064 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
10065 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10066
10067 2003-01-07 David Carlton <carlton@math.stanford.edu>
10068
10069 * linespec.c (decode_line_1): Move code into decode_dollar.
10070 (decode_dollar): New function.
10071
10072 2003-01-07 Andrew Cagney <cagney@redhat.com>
10073
10074 * arm-tdep.c (arm_init_extra_frame_info): Use
10075 deprecated_update_frame_base_hack.
10076 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
10077 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
10078 (fix_frame_pointer): Ditto.
10079 (mn10300_analyze_prologue): Ditto.
10080
10081 2003-01-07 Andrew Cagney <cagney@redhat.com>
10082
10083 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
10084 extra_info using frame_extra_info_zalloc.
10085 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10086 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
10087 (sh64_init_extra_frame_info): Ditto.
10088 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
10089 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
10090 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
10091 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
10092 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
10093 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
10094 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
10095 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
10096 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
10097 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
10098 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10099 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
10100
10101 * mn10300-tdep.c (analyze_dummy_frame): Use
10102 deprecated_set_frame_extra_info_hack.
10103 * mcore-tdep.c (analyze_dummy_frame): Ditto.
10104
10105 2003-01-07 J. Brobecker <brobecker@gnat.com>
10106
10107 * mdebugread.c (parse_symbol): Skip stProc entries which storage
10108 class is not scText. These do not define "real" procedures.
10109 (parse_partial_symbols): Likewise.
10110
10111 2003-01-06 Michael Snyder <msnyder@redhat.com>
10112
10113 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
10114
10115 2003-01-06 Andrew Cagney <ac131313@redhat.com>
10116
10117 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
10118 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
10119 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10120 deprecated_frame_xmalloc_with_cleanup.
10121 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
10122 deprecated_frame_xmalloc.
10123 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10124 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
10125
10126 2003-01-06 Andrew Cagney <cagney@redhat.com>
10127
10128 * x86-64-linux-tdep.c: Include "osabi.h".
10129 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
10130
10131 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
10132
10133 2003-01-06 Andrew Cagney <cagney@redhat.com>
10134
10135 * MAINTAINERS (Target Instruction Set Architectures): Update
10136 arm-elf. Can be built with -Werror, has been multiarched.
10137
10138 * value.h (unpack_long): Make buffer parameter constant.
10139 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
10140 * scm-lang.h (scm_parse): Ditto.
10141 * defs.h (extract_typed_address, extract_address): Ditto.
10142 (extract_long_unsigned_integer): Ditto.
10143 * inferior.h (unsigned_pointer_to_address): Ditto.
10144 (signed_pointer_to_address): Ditto.
10145 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
10146 * gdbarch.h, gdbarch.c: Regenerate.
10147 * findvar.c (extract_long_unsigned_integer): Update.
10148 (extract_address): Update.
10149 (extract_typed_address): Update.
10150 (unsigned_pointer_to_address): Update.
10151 * values.c (unpack_long): Update.
10152 (unpack_double): Update.
10153 (unpack_pointer): Update.
10154 (unpack_field_as_long): Update.
10155 * d10v-tdep.c (d10v_pointer_to_address): Update.
10156 * avr-tdep.c (avr_pointer_to_address): Update.
10157 * scm-lang.c (scm_unpack): Update.
10158 * findvar.c (signed_pointer_to_address): Update.
10159
10160 2003-01-06 Michal Ludvig <mludvig@suse.cz>
10161
10162 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
10163 since it is in i386-tdep.c.
10164
10165 2003-01-06 J. Brobecker <brobecker@gnat.com>
10166
10167 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
10168 failure introduced in the previous change.
10169
10170 2003-01-05 Michael Chastain <mec@shout.net>
10171
10172 * README: Remove references to deleted remote-*.c files:
10173 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
10174 remote-nrom.c, remote-os9k.c, remote-udi.c.
10175
10176 2003-01-05 Mark Kettenis <kettenis@gnu.org>
10177
10178 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
10179 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
10180 i386_get_longjmp_target.
10181
10182 2003-01-05 Andrew Cagney <ac131313@redhat.com>
10183
10184 * arm-tdep.c (prologue_cache): Change to a pointer.
10185 (_initialize_arm_tdep): Allocate prologue_cache.
10186 (check_prologue_cache): Update.
10187 (save_prologue_cache): Update.
10188 (arm_gdbarch_init): Update.
10189
10190 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10191
10192 * stabsread.c (update_method_name_from_physname): Call complaint()
10193 instead of error.
10194
10195 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10196
10197 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
10198 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10199 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
10200
10201 * blockframe.c: Include "gdbcmd.h" and "command.h".
10202 (backtrace_below_main): New variable.
10203 (file_frame_chain_valid, func_frame_chain_valid)
10204 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
10205 (generic_func_frame_chain_valid): Remove functions.
10206 (frame_chain_valid, do_flush_frames_sfunc): New functions.
10207 (_initialize_blockframe): New function.
10208 * Makefile.in (blockframe.o): Update dependencies.
10209 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
10210 comment. Call frame_chain_valid ().
10211 * frame.h: Remove old prototypes. Add prototype for
10212 frame_chain_valid and update comments to match.
10213 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
10214 Remove old comment.
10215 * gdbarch.h: Regenerated.
10216 * gdbarch.c: Regenerated.
10217
10218 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10219 set_gdbarch_frame_chain_valid.
10220 * avr-tdep.c (avr_gdbarch_init): Likewise.
10221 * cris-tdep.c (cris_gdbarch_init): Likewise.
10222 * frv-tdep.c (frv_gdbarch_init): Likewise.
10223 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10224 * i386-tdep.c (i386_svr4_init_abi): Likewise.
10225 (i386_nw_init_abi): Likewise.
10226 (i386_gdbarch_init): Likewise.
10227 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
10228 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10229 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10230 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
10231 * mips-tdep.c (mips_gdbarch_init): Likewise.
10232 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10233 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
10234 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10235 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10236 * s390-tdep.c (s390_gdbarch_init): Likewise.
10237 * sh-tdep.c (sh_gdbarch_init): Likewise.
10238 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10239 * v850-tdep.c (v850_gdbarch_init): Likewise.
10240 * vax-tdep.c (vax_gdbarch_init): Likewise.
10241 * x86-64-tdep.c (x86_64_init_abi): Likewise.
10242
10243 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
10244 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
10245 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
10246 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
10247 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
10248 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
10249 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
10250 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
10251
10252 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10253
10254 * Makefile.in (acconfig_h): Remove incorrect macro.
10255 (config_h): Define.
10256 (osabi.o): Update dependencies.
10257 * configure.tgt: Set gdb_osabi based on target triplet.
10258 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
10259 * configure: Regenerated.
10260 * config.in: Regenerated.
10261 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
10262 (GDB_OSABI_DEFAULT): Define if not already defined.
10263 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
10264 (set_osabi_string): New variables.
10265 (gdbarch_register_osabi): Add new OS ABI to
10266 gdb_osabi_available_names.
10267 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
10268 (set_osabi, show_osabi): New functions.
10269 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
10270
10271 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10272
10273 * arch-utils.c (gdbarch_info_init): Set osabi to
10274 GDB_OSABI_UNINITIALIZED.
10275 * gdbarch.sh: Add osabi to struct gdbarch and to struct
10276 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
10277 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
10278 * gdbarch.c: Regenerated.
10279 * gdbarch.h: Regenerated.
10280 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
10281 there's no BFD.
10282 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
10283 * osabi.h (enum gdb_osabi): Move to defs.h.
10284 (gdbarch_init_osabi): Update prototype.
10285 * defs.h (enum gdb_osabi): Moved here.
10286 * Makefile.in: Update dependencies.
10287
10288 * alpha-tdep.h: Don't include "osabi.h".
10289 (struct gdbarch_tdep): Remove osabi member.
10290 * alpha-tdep.c: Include "osabi.h".
10291 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10292 iterate over arches. Update call to gdbarch_init_osabi.
10293 (alpha_dump_tdep): Don't dump osabi.
10294 * alpha-linux-tdep.c: Include "osabi.h".
10295 * alpha-osf1-tdep.c: Include "osabi.h".
10296 * alphafbsd-tdep.c: Include "osabi.h".
10297 * alphanbsd-tdep.c: Include "osabi.h".
10298
10299 * arm-tdep.h: Don't include "osabi.h".
10300 (struct gdbarch_tdep): Remove osabi member.
10301 * arm-tdep.c: Include "osabi.h".
10302 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10303 iterate over arches. Update call to gdbarch_init_osabi.
10304 (arm_dump_tdep): Don't dump osabi.
10305 * arm-linux-tdep.c: Include "osabi.h".
10306 * armnbsd-tdep.c: Include "osabi.h".
10307
10308 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10309 Update call to gdbarch_init_osabi.
10310
10311 * i386-tdep.h: Don't include "osabi.h".
10312 (struct gdbarch_tdep): Remove osabi member.
10313 * i386-tdep.c: Include "osabi.h".
10314 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10315 iterate over arches. Update call to gdbarch_init_osabi.
10316 (i386_dump_tdep): Don't dump osabi.
10317 * i386-linux-tdep.c: Include "osabi.h".
10318 * i386-sol2-tdep.c: Include "osabi.h".
10319 * i386bsd-tdep.c: Include "osabi.h".
10320 * i386gnu-tdep.c: Include "osabi.h".
10321 * i386ly-tdep.c: Include "osabi.h".
10322 * i386nbsd-tdep.c: Include "osabi.h".
10323 * i386obsd-tdep.c: Include "osabi.h".
10324
10325 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10326 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10327 check osabi when iterating over arches. Update call to
10328 gdbarch_init_osabi.
10329 (mips_dump_tdep): Don't dump osabi.
10330
10331 * ns32k-tdep.h: Don't include "osabi.h".
10332 (struct gdbarch_tdep): Remove.
10333 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10334 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10335 allocate tdep. Update call to gdbarch_init_osabi.
10336 (ns32k_dump_tdep): Remove.
10337 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10338 * ns32knbsd-tdep.c: Include "osabi.h".
10339
10340 * ppc-tdep.h: Don't include "osabi.h".
10341 (struct gdbarch_tdep): Remove osabi member.
10342 * rs6000-tdep.c: Include "osabi.h".
10343 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10344 osabi when iterating over arches. Update call to
10345 gdbarch_init_osabi.
10346 (rs6000_dump_tdep): Don't dump osabi.
10347 * ppc-linux-tdep.c: Include "osabi.h".
10348 * ppcnbsd-tdep.c: Include "osabi.h".
10349
10350 * sh-tdep.h: Don't include "osabi.h".
10351 (struct gdbarch_tdep): Remove osabi member.
10352 * sh-tdep.c: Include "osabi.h".
10353 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10354 iterate over arches. Update call to gdbarch_init_osabi.
10355 (sh_dump_tdep): Don't dump osabi.
10356 * shnbsd-tdep.c: Include "osabi.h".
10357
10358 * sparc-tdep.c: Include "osabi.h".
10359 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10360 iterate over arches. Update call to gdbarch_init_osabi.
10361 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10362 tdep structure.
10363
10364 * vax-tdep.h: Don't include "osabi.h".
10365 (struct gdbarch_tdep): Remove.
10366 * vax-tdep.c: Include "osabi.h".
10367 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10368 iterate over arches. Don't allocate tdep. Update call
10369 to gdbarch_init_osabi.
10370 (vax_dump_tdep): Remove.
10371 (_initialize_vax_tdep): Update call to gdbarch_register.
10372
10373 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10374
10375 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10376 entirely.
10377 (breakpoint_re_set_one): Don't fetch the value for a disabled
10378 watchpoint.
10379
10380 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10381
10382 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10383 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10384 (COERCE_FLOAT_TO_DOUBLE): Remove.
10385 * gdbarch.c: Regenerate.
10386 * gdbarch.h: Regenerate.
10387 * Makefile.in: Remove value_h from gdbarch_h.
10388 * valops.c (coerce_float_to_double): New variable.
10389 (default_coerce_float_to_double): Remove.
10390 (standard_coerce_float_to_double): Remove.
10391 (value_arg_coerce): Use coerce_float_to_double.
10392 (_initialize_valops): Add "set coerce-float-to-double".
10393 * value.h (default_coerce_float_to_double): Remove prototype.
10394 (standard_coerce_float_to_double): Remove prototype.
10395
10396 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10397 prototyped.
10398 * mdebugread.c (parse_symbol): Likewise.
10399 * stabsread.c (define_symbol): Mark all functions as prototyped.
10400
10401 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10402 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10403 set_gdbarch_coerce_float_to_double.
10404 * arm-tdep.c (arm_gdbarch_init): Likewise.
10405 * frv-tdep.c (frv_gdbarch_init): Likewise.
10406 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10407 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10408 * mips-tdep.c (mips_gdbarch_init): Likewise.
10409 (mips_coerce_float_to_double): Remove.
10410 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10411 (rs6000_coerce_float_to_double): Remove.
10412 * s390-tdep.c (s390_gdbarch_init): Likewise.
10413 * sh-tdep.c (sh_gdbarch_init): Likewise.
10414 (sh_coerce_float_to_double): Remove.
10415 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10416 (sparc_coerce_float_to_double): Remove.
10417 * v850-tdep.c (v850_gdbarch_init): Likewise.
10418 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10419 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10420 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10421 (hppa_coerce_float_to_double): Remove prototype.
10422 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10423
10424 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10425
10426 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10427
10428 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
10429
10430 Suggested by Stewart Brown <sb24@avaya.com>:
10431 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10432 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10433 (c_type_print_varspec_suffix): Likewise.
10434
10435 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10436
10437 * configure.in: Don't set and AC_SUBST SUBDIRS.
10438 * configure: Regenerated.
10439
10440 * configure.in: Remove code dealing with shared libraries.
10441 * Makefile.in: Remove HLDFLAGS and HLDENV.
10442 * configure: Regenerated.
10443
10444 2003-01-04 Andrew Cagney <ac131313@redhat.com>
10445
10446 * frame.c (deprecated_frame_xmalloc): New function.
10447 (deprecated_set_frame_saved_regs_hack): New function.
10448 (deprecated_set_frame_extra_info_hack): New function.
10449 * frame.h (deprecated_frame_xmalloc): Declare.
10450 (deprecated_set_frame_saved_regs_hack): Declare.
10451 (deprecated_set_frame_extra_info_hack): Declare.
10452
10453 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10454
10455 * configure.in: Move code that provides the --enable-gdbtk option
10456 right after the code that handles the --enable-tui option, and
10457 polish it somewhat.
10458 * configure: Regenerated.
10459
10460 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10461 AC_CHECK_FUNCS and remove the old check for pread64.
10462 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10463 * acconfig.h (_GNU_SOURCE): Add.
10464 (HAVE_PREAD64): Remove.
10465 * configure, aclocal.m4, config.in: Regenerated.
10466
10467 2003-01-03 Andrew Cagney <ac131313@redhat.com>
10468
10469 * alpha-tdep.c: Use get_frame_saved_regs.
10470 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10471 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10472 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10473 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10474 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10475
10476 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10477
10478 * configure.in: Remove all use of the SUBDIRS variable; add
10479 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10480 code providing the --enable-multi-ice option, and move it right in
10481 front of the code that checks whether gdbserver is supported.
10482 Polish that too.
10483 * configure: Regenerated.
10484 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10485 @SUBDIRS@.
10486
10487 2003-01-03 Andrew Cagney <cagney@redhat.com>
10488
10489 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10490 * avr-tdep.c, cris-tdep.c: Ditto.
10491 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10492 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10493
10494 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10495
10496 * configure.in: Remove --enable-netrom option.
10497 * configure: Regenerated.
10498
10499 2003-01-03 Mark Kettenis <kettenis@gnu.org>
10500
10501 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10502 declaration for `struct re_pattern_buffer' instead.
10503 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10504
10505 2003-01-03 J. Brobecker <brobecker@gnat.com>
10506
10507 * mdebugread.c (parse_symbol): Count until the stEnd matching
10508 the structure name.
10509
10510 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10511
10512 * configure.in: Remove --with-cpu option.
10513 subscripts. Remove evil changequotes here.
10514 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10515 * config.in, configure: Regenerated.
10516
10517 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10518 * configure.in: Cleanup section that sources GDB and BFD configure
10519 subscripts. Remove evil changequotes here.
10520 * config.in, configure: Regenerated.
10521
10522 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10523
10524 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10525 frame accessor methods.
10526 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10527 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10528 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10529 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10530 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10531 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10532 * z8k-tdep.c: Ditto.
10533
10534 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10535
10536 * configure.in: Remove UI_OUT configuration code.
10537 * ada-lang.c: Update assuming UI_OUT is always true.
10538 * Makefile.in (UIOUT_CFLAGS): Remove.
10539 * configure: Regenerated.
10540 * TODO: Remove blurb about elimination of -DUI_OUT.
10541
10542 * configure.in: Move code that provides the --enable-gdbcli,
10543 --enable-gdbmi options right before the code that handles the
10544 --enable-tui option. Polish a bit.
10545 * configure: Regenerated.
10546
10547 * configure.in: Rewrite check for GNU regex and the
10548 --without-included regex option, and move it into the "Checks for
10549 library functions" section. This makes us use the system regex
10550 again by default on systems with version 2 of the GNU C library.
10551 This was apparently broken.
10552 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10553 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10554 * config.in, configure: Regenerated.
10555
10556 * configure.in: Move code that provides the --enable-tui option
10557 before the "Checks for libraries" section. Polish the code
10558 somewhat and set need_curses to yes if we build the TUI. Rewrite
10559 code that looks for a library providing termcap functionality to
10560 match more closely what's done in the Readline library, and move
10561 it into to the "Checks for libraries" section.
10562 * configure: Regenerated.
10563 * Makefile.in (TERMCAP): Remove variable.
10564 * config/i386/go32.mh (TERMCAP): Remove variable.
10565
10566 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10567
10568 * MAINTAINERS: Mention gdb_mbuild.sh.
10569 * gdb_mbuild.sh: Rewrite.
10570
10571 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10572
10573 * configure.in: Fix typo in last change.
10574 * config.in, configure: Regenerated.
10575
10576 2003-01-02 Andrew Cagney <ac131313@redhat.com>
10577
10578 * valarith.c (value_binop): Delete obsolete code and comments.
10579 * configure.host: Ditto.
10580 * buildsym.h (make_blockvector): Ditto.
10581 * buildsym.c (make_blockvector): Ditto.
10582 * defs.h (enum language): Ditto.
10583 (chill_demangle): Ditto.
10584 * elfread.c (elf_symtab_read): Ditto.
10585 * dwarfread.c (CHILL_PRODUCER): Ditto.
10586 (set_cu_language): Ditto.
10587 (handle_producer): Ditto.
10588 * expprint.c (print_subexp): Ditto.
10589 * gdbtypes.c (chill_varying_type): Ditto.
10590 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10591 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10592 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10593 (chill_varying_type): Ditto.
10594 * language.h (_LANG_chill): Ditto.
10595 * language.c (binop_result_type, integral_type): Ditto.
10596 (character_type, string_type, structured_type): Ditto.
10597 (lang_bool_type, binop_type_check): Ditto.
10598 * stabsread.h (os9k_stabs): Ditto.
10599 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10600 (define_symbol, read_type, read_struct_fields): Ditto.
10601 (read_array_type, read_enum_type, read_huge_number): Ditto.
10602 (read_range_type, start_stabs): Ditto.
10603 * symfile.c (init_filename_language_table): Ditto.
10604 (add_psymbol_with_dem_name_to_list): Ditto.
10605 * symtab.c (symbol_init_language_specific): Ditto.
10606 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10607 * symtab.h (struct general_symbol_info): Ditto.
10608 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10609 * typeprint.c (typedef_print): Ditto.
10610 * utils.c (fprintf_symbol_filtered): Ditto.
10611 * valops.c (value_cast, search_struct_field, value_slice): Delete
10612 obsolete code.
10613 (varying_to_slice): Delete function.
10614 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10615 (varying_to_slice): Delete declaration.
10616 * MAINTAINERS: Update.
10617
10618 2003-01-02 Mark Kettenis <kettenis@gnu.org>
10619
10620 * configure.in: Reorganize "Checks for library functions section"
10621 a bit. Remove check for `btowc' and `isascii' functions.
10622 * configure: Regenerated.
10623
10624 * acconfig.h (_MSE_INT_H): Remove.
10625 * configure.in: Create "Checks for header files" section, and move
10626 appropriate tests there. Don't check for objlist.h, wchar.h,
10627 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
10628 misdetection fix. Also add "Checks for types", "Checks for
10629 compiler characteristics" and "Checks for library functions"
10630 sections.
10631 * config.in, configure: Regenerated.
10632
10633 * configure.in: Create "Checks for programs" section, and move
10634 appropriate tests there.
10635
10636 2003-01-01 Mark Kettenis <kettenis@gnu.org>
10637
10638 * configure.in: Create "Checks for libraries" section, and move
10639 appropriate tests there. Cleanup check for wctype in libw. Use
10640 AC_SEARCH_LIBS to see whether we need libsocket.
10641 * configure: Regenerated.
10642
10643 For older changes see ChangeLog-2002
10644 \f
10645 Local Variables:
10646 mode: change-log
10647 left-margin: 8
10648 fill-column: 74
10649 version-control: never
10650 End: